]>
Commit | Line | Data |
---|---|---|
89354eef | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
f58aa3e1 | 3 | # Generated by GNU Autoconf 2.60 for libopm 0.1. |
89354eef | 4 | # |
f58aa3e1 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
89354eef | 7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
89354eef | 9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
13 | # Be Bourne compatible | |
14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
15 | emulate sh | |
16 | NULLCMD=: | |
49ba971d | 17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
18 | # is contrary to our usage. Disable this feature. | |
19 | alias -g '${1+"$@"}'='"$@"' | |
f58aa3e1 | 20 | setopt NO_GLOB_SUBST |
21 | else | |
22 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
23 | fi | |
24 | BIN_SH=xpg4; export BIN_SH # for Tru64 | |
25 | DUALCASE=1; export DUALCASE # for MKS sh | |
26 | ||
27 | ||
28 | # PATH needs CR | |
29 | # Avoid depending upon Character Ranges. | |
30 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
31 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
32 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
33 | as_cr_digits='0123456789' | |
34 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
35 | ||
36 | # The user is always right. | |
37 | if test "${PATH_SEPARATOR+set}" != set; then | |
38 | echo "#! /bin/sh" >conf$$.sh | |
39 | echo "exit 0" >>conf$$.sh | |
40 | chmod +x conf$$.sh | |
41 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
42 | PATH_SEPARATOR=';' | |
43 | else | |
44 | PATH_SEPARATOR=: | |
45 | fi | |
46 | rm -f conf$$.sh | |
89354eef | 47 | fi |
48 | ||
89354eef | 49 | # Support unset when possible. |
f58aa3e1 | 50 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
89354eef | 51 | as_unset=unset |
52 | else | |
53 | as_unset=false | |
54 | fi | |
55 | ||
49ba971d | 56 | |
f58aa3e1 | 57 | # IFS |
58 | # We need space, tab and new line, in precisely that order. Quoting is | |
59 | # there to prevent editors from complaining about space-tab. | |
60 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
61 | # splitting by setting IFS to empty value.) | |
62 | as_nl=' | |
63 | ' | |
64 | IFS=" "" $as_nl" | |
65 | ||
66 | # Find who we are. Look in the path if we contain no directory separator. | |
67 | case $0 in | |
68 | *[\\/]* ) as_myself=$0 ;; | |
69 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
70 | for as_dir in $PATH | |
71 | do | |
72 | IFS=$as_save_IFS | |
73 | test -z "$as_dir" && as_dir=. | |
74 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
75 | done | |
76 | IFS=$as_save_IFS | |
77 | ||
78 | ;; | |
79 | esac | |
80 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
81 | # in which case we are not to be found in the path. | |
82 | if test "x$as_myself" = x; then | |
83 | as_myself=$0 | |
84 | fi | |
85 | if test ! -f "$as_myself"; then | |
86 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
87 | { (exit 1); exit 1; } | |
88 | fi | |
89 | ||
49ba971d | 90 | # Work around bugs in pre-3.0 UWIN ksh. |
f58aa3e1 | 91 | for as_var in ENV MAIL MAILPATH |
92 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
93 | done | |
49ba971d | 94 | PS1='$ ' |
95 | PS2='> ' | |
96 | PS4='+ ' | |
97 | ||
98 | # NLS nuisances. | |
99 | for as_var in \ | |
100 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
101 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
102 | LC_TELEPHONE LC_TIME | |
103 | do | |
f58aa3e1 | 104 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
49ba971d | 105 | eval $as_var=C; export $as_var |
106 | else | |
f58aa3e1 | 107 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
49ba971d | 108 | fi |
109 | done | |
110 | ||
111 | # Required to use basename. | |
f58aa3e1 | 112 | if expr a : '\(a\)' >/dev/null 2>&1 && |
113 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
49ba971d | 114 | as_expr=expr |
115 | else | |
116 | as_expr=false | |
117 | fi | |
118 | ||
f58aa3e1 | 119 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
49ba971d | 120 | as_basename=basename |
121 | else | |
122 | as_basename=false | |
123 | fi | |
89354eef | 124 | |
125 | ||
126 | # Name of the executable. | |
f58aa3e1 | 127 | as_me=`$as_basename -- "$0" || |
89354eef | 128 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
129 | X"$0" : 'X\(//\)$' \| \ | |
f58aa3e1 | 130 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
89354eef | 131 | echo X/"$0" | |
f58aa3e1 | 132 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
133 | s//\1/ | |
134 | q | |
135 | } | |
136 | /^X\/\(\/\/\)$/{ | |
137 | s//\1/ | |
138 | q | |
139 | } | |
140 | /^X\/\(\/\).*/{ | |
141 | s//\1/ | |
142 | q | |
143 | } | |
144 | s/.*/./; q'` | |
89354eef | 145 | |
f58aa3e1 | 146 | # CDPATH. |
147 | $as_unset CDPATH | |
49ba971d | 148 | |
89354eef | 149 | |
f58aa3e1 | 150 | if test "x$CONFIG_SHELL" = x; then |
151 | if (eval ":") 2>/dev/null; then | |
152 | as_have_required=yes | |
153 | else | |
154 | as_have_required=no | |
155 | fi | |
156 | ||
157 | if test $as_have_required = yes && (eval ": | |
158 | (as_func_return () { | |
159 | (exit \$1) | |
160 | } | |
161 | as_func_success () { | |
162 | as_func_return 0 | |
163 | } | |
164 | as_func_failure () { | |
165 | as_func_return 1 | |
166 | } | |
167 | as_func_ret_success () { | |
168 | return 0 | |
169 | } | |
170 | as_func_ret_failure () { | |
171 | return 1 | |
172 | } | |
173 | ||
174 | exitcode=0 | |
175 | if as_func_success; then | |
176 | : | |
177 | else | |
178 | exitcode=1 | |
179 | echo as_func_success failed. | |
89354eef | 180 | fi |
181 | ||
f58aa3e1 | 182 | if as_func_failure; then |
183 | exitcode=1 | |
184 | echo as_func_failure succeeded. | |
185 | fi | |
89354eef | 186 | |
f58aa3e1 | 187 | if as_func_ret_success; then |
188 | : | |
189 | else | |
190 | exitcode=1 | |
191 | echo as_func_ret_success failed. | |
192 | fi | |
89354eef | 193 | |
f58aa3e1 | 194 | if as_func_ret_failure; then |
195 | exitcode=1 | |
196 | echo as_func_ret_failure succeeded. | |
197 | fi | |
198 | ||
199 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
200 | : | |
201 | else | |
202 | exitcode=1 | |
203 | echo positional parameters were not saved. | |
204 | fi | |
205 | ||
206 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
207 | ||
208 | ( | |
209 | as_lineno_1=\$LINENO | |
210 | as_lineno_2=\$LINENO | |
211 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
212 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
213 | ") 2> /dev/null; then | |
214 | : | |
215 | else | |
216 | as_candidate_shells= | |
89354eef | 217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
f58aa3e1 | 218 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
89354eef | 219 | do |
220 | IFS=$as_save_IFS | |
221 | test -z "$as_dir" && as_dir=. | |
f58aa3e1 | 222 | case $as_dir in |
89354eef | 223 | /*) |
f58aa3e1 | 224 | for as_base in sh bash ksh sh5; do |
225 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
226 | done;; | |
227 | esac | |
228 | done | |
229 | IFS=$as_save_IFS | |
230 | ||
231 | ||
232 | for as_shell in $as_candidate_shells $SHELL; do | |
233 | # Try only shells that exist, to save several forks. | |
234 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
235 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
236 | # Be Bourne compatible | |
237 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
238 | emulate sh | |
239 | NULLCMD=: | |
240 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
241 | # is contrary to our usage. Disable this feature. | |
242 | alias -g '${1+"$@"}'='"$@"' | |
243 | setopt NO_GLOB_SUBST | |
244 | else | |
245 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
246 | fi | |
247 | BIN_SH=xpg4; export BIN_SH # for Tru64 | |
248 | DUALCASE=1; export DUALCASE # for MKS sh | |
249 | ||
250 | : | |
251 | _ASEOF | |
252 | }; then | |
253 | CONFIG_SHELL=$as_shell | |
254 | as_have_required=yes | |
255 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
256 | # Be Bourne compatible | |
257 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
258 | emulate sh | |
259 | NULLCMD=: | |
260 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
261 | # is contrary to our usage. Disable this feature. | |
262 | alias -g '${1+"$@"}'='"$@"' | |
263 | setopt NO_GLOB_SUBST | |
264 | else | |
265 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
266 | fi | |
267 | BIN_SH=xpg4; export BIN_SH # for Tru64 | |
268 | DUALCASE=1; export DUALCASE # for MKS sh | |
269 | ||
270 | : | |
271 | (as_func_return () { | |
272 | (exit $1) | |
273 | } | |
274 | as_func_success () { | |
275 | as_func_return 0 | |
276 | } | |
277 | as_func_failure () { | |
278 | as_func_return 1 | |
279 | } | |
280 | as_func_ret_success () { | |
281 | return 0 | |
282 | } | |
283 | as_func_ret_failure () { | |
284 | return 1 | |
285 | } | |
286 | ||
287 | exitcode=0 | |
288 | if as_func_success; then | |
289 | : | |
290 | else | |
291 | exitcode=1 | |
292 | echo as_func_success failed. | |
293 | fi | |
294 | ||
295 | if as_func_failure; then | |
296 | exitcode=1 | |
297 | echo as_func_failure succeeded. | |
298 | fi | |
299 | ||
300 | if as_func_ret_success; then | |
301 | : | |
302 | else | |
303 | exitcode=1 | |
304 | echo as_func_ret_success failed. | |
305 | fi | |
306 | ||
307 | if as_func_ret_failure; then | |
308 | exitcode=1 | |
309 | echo as_func_ret_failure succeeded. | |
310 | fi | |
311 | ||
312 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
313 | : | |
314 | else | |
315 | exitcode=1 | |
316 | echo positional parameters were not saved. | |
317 | fi | |
318 | ||
319 | test $exitcode = 0) || { (exit 1); exit 1; } | |
320 | ||
321 | ( | |
89354eef | 322 | as_lineno_1=$LINENO |
323 | as_lineno_2=$LINENO | |
89354eef | 324 | test "x$as_lineno_1" != "x$as_lineno_2" && |
f58aa3e1 | 325 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
326 | ||
327 | _ASEOF | |
328 | }; then | |
329 | break | |
330 | fi | |
331 | ||
332 | fi | |
333 | ||
334 | done | |
335 | ||
336 | if test "x$CONFIG_SHELL" != x; then | |
337 | for as_var in BASH_ENV ENV | |
338 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
339 | done | |
340 | export CONFIG_SHELL | |
341 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
342 | fi | |
343 | ||
344 | ||
345 | if test $as_have_required = no; then | |
346 | echo This script requires a shell more modern than all the | |
347 | echo shells that I found on your system. Please install a | |
348 | echo modern shell, or manually run the script under such a | |
349 | echo shell if you do have one. | |
350 | { (exit 1); exit 1; } | |
351 | fi | |
352 | ||
353 | ||
354 | fi | |
355 | ||
356 | fi | |
357 | ||
358 | ||
359 | ||
360 | (eval "as_func_return () { | |
361 | (exit \$1) | |
362 | } | |
363 | as_func_success () { | |
364 | as_func_return 0 | |
365 | } | |
366 | as_func_failure () { | |
367 | as_func_return 1 | |
368 | } | |
369 | as_func_ret_success () { | |
370 | return 0 | |
371 | } | |
372 | as_func_ret_failure () { | |
373 | return 1 | |
374 | } | |
375 | ||
376 | exitcode=0 | |
377 | if as_func_success; then | |
378 | : | |
379 | else | |
380 | exitcode=1 | |
381 | echo as_func_success failed. | |
382 | fi | |
383 | ||
384 | if as_func_failure; then | |
385 | exitcode=1 | |
386 | echo as_func_failure succeeded. | |
387 | fi | |
388 | ||
389 | if as_func_ret_success; then | |
390 | : | |
391 | else | |
392 | exitcode=1 | |
393 | echo as_func_ret_success failed. | |
394 | fi | |
395 | ||
396 | if as_func_ret_failure; then | |
397 | exitcode=1 | |
398 | echo as_func_ret_failure succeeded. | |
399 | fi | |
400 | ||
401 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
402 | : | |
403 | else | |
404 | exitcode=1 | |
405 | echo positional parameters were not saved. | |
406 | fi | |
407 | ||
408 | test \$exitcode = 0") || { | |
409 | echo No shell found that supports shell functions. | |
410 | echo Please tell autoconf@gnu.org about your system, | |
411 | echo including any error possibly output before this | |
412 | echo message | |
413 | } | |
414 | ||
415 | ||
416 | ||
417 | as_lineno_1=$LINENO | |
418 | as_lineno_2=$LINENO | |
419 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
420 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
89354eef | 421 | |
422 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
423 | # uniformly replaced by the line number. The first 'sed' inserts a | |
f58aa3e1 | 424 | # line-number line after each line using $LINENO; the second 'sed' |
425 | # does the real work. The second script uses 'N' to pair each | |
426 | # line-number line with the line containing $LINENO, and appends | |
427 | # trailing '-' during substitution so that $LINENO is not a special | |
428 | # case at line end. | |
89354eef | 429 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
f58aa3e1 | 430 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
431 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
432 | sed -n ' | |
433 | p | |
434 | /[$]LINENO/= | |
435 | ' <$as_myself | | |
89354eef | 436 | sed ' |
f58aa3e1 | 437 | s/[$]LINENO.*/&-/ |
438 | t lineno | |
439 | b | |
440 | :lineno | |
89354eef | 441 | N |
f58aa3e1 | 442 | :loop |
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
89354eef | 444 | t loop |
f58aa3e1 | 445 | s/-\n.*// |
89354eef | 446 | ' >$as_me.lineno && |
f58aa3e1 | 447 | chmod +x "$as_me.lineno" || |
89354eef | 448 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
449 | { (exit 1); exit 1; }; } | |
450 | ||
451 | # Don't try to exec as it changes $[0], causing all sort of problems | |
452 | # (the dirname of $[0] is not the place where we might find the | |
f58aa3e1 | 453 | # original and so on. Autoconf is especially sensitive to this). |
454 | . "./$as_me.lineno" | |
89354eef | 455 | # Exit status is that of the last command. |
456 | exit | |
457 | } | |
458 | ||
459 | ||
f58aa3e1 | 460 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
461 | as_dirname=dirname | |
462 | else | |
463 | as_dirname=false | |
464 | fi | |
465 | ||
466 | ECHO_C= ECHO_N= ECHO_T= | |
467 | case `echo -n x` in | |
468 | -n*) | |
469 | case `echo 'x\c'` in | |
470 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
471 | *) ECHO_C='\c';; | |
472 | esac;; | |
473 | *) | |
474 | ECHO_N='-n';; | |
89354eef | 475 | esac |
476 | ||
f58aa3e1 | 477 | if expr a : '\(a\)' >/dev/null 2>&1 && |
478 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
89354eef | 479 | as_expr=expr |
480 | else | |
481 | as_expr=false | |
482 | fi | |
483 | ||
484 | rm -f conf$$ conf$$.exe conf$$.file | |
f58aa3e1 | 485 | if test -d conf$$.dir; then |
486 | rm -f conf$$.dir/conf$$.file | |
487 | else | |
488 | rm -f conf$$.dir | |
489 | mkdir conf$$.dir | |
490 | fi | |
89354eef | 491 | echo >conf$$.file |
492 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
f58aa3e1 | 493 | as_ln_s='ln -s' |
494 | # ... but there are two gotchas: | |
495 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
496 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
497 | # In both cases, we have to default to `cp -p'. | |
498 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
89354eef | 499 | as_ln_s='cp -p' |
89354eef | 500 | elif ln conf$$.file conf$$ 2>/dev/null; then |
501 | as_ln_s=ln | |
502 | else | |
503 | as_ln_s='cp -p' | |
504 | fi | |
f58aa3e1 | 505 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
506 | rmdir conf$$.dir 2>/dev/null | |
89354eef | 507 | |
49ba971d | 508 | if mkdir -p . 2>/dev/null; then |
509 | as_mkdir_p=: | |
510 | else | |
f58aa3e1 | 511 | test -d ./-p && rmdir ./-p |
49ba971d | 512 | as_mkdir_p=false |
513 | fi | |
514 | ||
f58aa3e1 | 515 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
516 | # systems may use methods other than mode bits to determine executability. | |
517 | cat >conf$$.file <<_ASEOF | |
518 | #! /bin/sh | |
519 | exit 0 | |
520 | _ASEOF | |
521 | chmod +x conf$$.file | |
522 | if test -x conf$$.file >/dev/null 2>&1; then | |
523 | as_executable_p="test -x" | |
524 | else | |
525 | as_executable_p=: | |
526 | fi | |
527 | rm -f conf$$.file | |
89354eef | 528 | |
529 | # Sed expression to map a string onto a valid CPP name. | |
f58aa3e1 | 530 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
89354eef | 531 | |
532 | # Sed expression to map a string onto a valid variable name. | |
f58aa3e1 | 533 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
89354eef | 534 | |
535 | ||
49ba971d | 536 | |
537 | ||
538 | # Check that we are running under the correct shell. | |
539 | SHELL=${CONFIG_SHELL-/bin/sh} | |
540 | ||
541 | case X$ECHO in | |
542 | X*--fallback-echo) | |
543 | # Remove one level of quotation (which was required for Make). | |
544 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
545 | ;; | |
546 | esac | |
547 | ||
548 | echo=${ECHO-echo} | |
549 | if test "X$1" = X--no-reexec; then | |
550 | # Discard the --no-reexec flag, and continue. | |
551 | shift | |
552 | elif test "X$1" = X--fallback-echo; then | |
553 | # Avoid inline document here, it may be left over | |
554 | : | |
f58aa3e1 | 555 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
49ba971d | 556 | # Yippee, $echo works! |
557 | : | |
558 | else | |
559 | # Restart under the correct shell. | |
560 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
561 | fi | |
562 | ||
563 | if test "X$1" = X--fallback-echo; then | |
564 | # used as fallback echo | |
565 | shift | |
566 | cat <<EOF | |
f58aa3e1 | 567 | $* |
49ba971d | 568 | EOF |
569 | exit 0 | |
570 | fi | |
571 | ||
572 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
573 | # if CDPATH is set. | |
f58aa3e1 | 574 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
49ba971d | 575 | |
576 | if test -z "$ECHO"; then | |
577 | if test "X${echo_test_string+set}" != Xset; then | |
578 | # find a string as large as possible, as long as the shell can cope with it | |
579 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
580 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
f58aa3e1 | 581 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
582 | echo_test_string=`eval $cmd` && | |
49ba971d | 583 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
584 | then | |
585 | break | |
586 | fi | |
587 | done | |
588 | fi | |
589 | ||
590 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
591 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
592 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
593 | : | |
594 | else | |
595 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
596 | # backslashes. This makes it impossible to quote backslashes using | |
597 | # echo "$something" | sed 's/\\/\\\\/g' | |
598 | # | |
599 | # So, first we look for a working echo in the user's PATH. | |
600 | ||
f58aa3e1 | 601 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
49ba971d | 602 | for dir in $PATH /usr/ucb; do |
f58aa3e1 | 603 | IFS="$lt_save_ifs" |
49ba971d | 604 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
605 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
606 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
607 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
608 | echo="$dir/echo" | |
609 | break | |
610 | fi | |
611 | done | |
f58aa3e1 | 612 | IFS="$lt_save_ifs" |
49ba971d | 613 | |
614 | if test "X$echo" = Xecho; then | |
615 | # We didn't find a better echo, so look for alternatives. | |
616 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
617 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
618 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
619 | # This shell has a builtin print -r that does the trick. | |
620 | echo='print -r' | |
621 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
622 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
623 | # If we have ksh, try running configure again with it. | |
624 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
625 | export ORIGINAL_CONFIG_SHELL | |
626 | CONFIG_SHELL=/bin/ksh | |
627 | export CONFIG_SHELL | |
628 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
629 | else | |
630 | # Try using printf. | |
631 | echo='printf %s\n' | |
632 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
633 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
634 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
635 | # Cool, printf works | |
636 | : | |
637 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
638 | test "X$echo_testing_string" = 'X\t' && | |
639 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
640 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
641 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
642 | export CONFIG_SHELL | |
643 | SHELL="$CONFIG_SHELL" | |
644 | export SHELL | |
645 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
646 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
647 | test "X$echo_testing_string" = 'X\t' && | |
648 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
649 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
650 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
651 | else | |
652 | # maybe with a smaller string... | |
653 | prev=: | |
654 | ||
655 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
656 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
657 | then | |
658 | break | |
659 | fi | |
660 | prev="$cmd" | |
661 | done | |
662 | ||
663 | if test "$prev" != 'sed 50q "$0"'; then | |
664 | echo_test_string=`eval $prev` | |
665 | export echo_test_string | |
666 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
667 | else | |
668 | # Oops. We lost completely, so just stick with echo. | |
669 | echo=echo | |
670 | fi | |
671 | fi | |
672 | fi | |
673 | fi | |
674 | fi | |
675 | fi | |
676 | ||
677 | # Copy echo and quote the copy suitably for passing to libtool from | |
678 | # the Makefile, instead of quoting the original, which is used later. | |
679 | ECHO=$echo | |
680 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
681 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
682 | fi | |
683 | ||
89354eef | 684 | |
685 | ||
f58aa3e1 | 686 | |
687 | tagnames=${tagnames+${tagnames},}CXX | |
688 | ||
689 | tagnames=${tagnames+${tagnames},}F77 | |
690 | ||
691 | exec 7<&0 </dev/null 6>&1 | |
692 | ||
89354eef | 693 | # Name of the host. |
694 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
695 | # so uname gets run too. | |
696 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
697 | ||
89354eef | 698 | # |
699 | # Initializations. | |
700 | # | |
701 | ac_default_prefix=/usr/local | |
f58aa3e1 | 702 | ac_clean_files= |
49ba971d | 703 | ac_config_libobj_dir=. |
f58aa3e1 | 704 | LIBOBJS= |
89354eef | 705 | cross_compiling=no |
706 | subdirs= | |
707 | MFLAGS= | |
708 | MAKEFLAGS= | |
709 | SHELL=${CONFIG_SHELL-/bin/sh} | |
710 | ||
89354eef | 711 | # Identity of this package. |
712 | PACKAGE_NAME='libopm' | |
713 | PACKAGE_TARNAME='libopm' | |
714 | PACKAGE_VERSION='0.1' | |
715 | PACKAGE_STRING='libopm 0.1' | |
716 | PACKAGE_BUGREPORT='' | |
717 | ||
718 | ac_unique_file="src/libopm.h" | |
a85b2128 | 719 | ac_default_prefix=/usr/local/libopm |
89354eef | 720 | # Factoring default headers for most tests. |
721 | ac_includes_default="\ | |
722 | #include <stdio.h> | |
723 | #if HAVE_SYS_TYPES_H | |
724 | # include <sys/types.h> | |
725 | #endif | |
726 | #if HAVE_SYS_STAT_H | |
727 | # include <sys/stat.h> | |
728 | #endif | |
729 | #if STDC_HEADERS | |
730 | # include <stdlib.h> | |
731 | # include <stddef.h> | |
732 | #else | |
733 | # if HAVE_STDLIB_H | |
734 | # include <stdlib.h> | |
735 | # endif | |
736 | #endif | |
737 | #if HAVE_STRING_H | |
738 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
739 | # include <memory.h> | |
740 | # endif | |
741 | # include <string.h> | |
742 | #endif | |
743 | #if HAVE_STRINGS_H | |
744 | # include <strings.h> | |
745 | #endif | |
746 | #if HAVE_INTTYPES_H | |
747 | # include <inttypes.h> | |
f58aa3e1 | 748 | #endif |
749 | #if HAVE_STDINT_H | |
750 | # include <stdint.h> | |
89354eef | 751 | #endif |
752 | #if HAVE_UNISTD_H | |
753 | # include <unistd.h> | |
754 | #endif" | |
755 | ||
f58aa3e1 | 756 | ac_subst_vars='SHELL |
757 | PATH_SEPARATOR | |
758 | PACKAGE_NAME | |
759 | PACKAGE_TARNAME | |
760 | PACKAGE_VERSION | |
761 | PACKAGE_STRING | |
762 | PACKAGE_BUGREPORT | |
763 | exec_prefix | |
764 | prefix | |
765 | program_transform_name | |
766 | bindir | |
767 | sbindir | |
768 | libexecdir | |
769 | datarootdir | |
770 | datadir | |
771 | sysconfdir | |
772 | sharedstatedir | |
773 | localstatedir | |
774 | includedir | |
775 | oldincludedir | |
776 | docdir | |
777 | infodir | |
778 | htmldir | |
779 | dvidir | |
780 | pdfdir | |
781 | psdir | |
782 | libdir | |
783 | localedir | |
784 | mandir | |
785 | DEFS | |
786 | ECHO_C | |
787 | ECHO_N | |
788 | ECHO_T | |
789 | LIBS | |
790 | build_alias | |
791 | host_alias | |
792 | target_alias | |
793 | INSTALL_PROGRAM | |
794 | INSTALL_SCRIPT | |
795 | INSTALL_DATA | |
796 | CYGPATH_W | |
797 | PACKAGE | |
798 | VERSION | |
799 | ACLOCAL | |
800 | AUTOCONF | |
801 | AUTOMAKE | |
802 | AUTOHEADER | |
803 | MAKEINFO | |
804 | install_sh | |
805 | STRIP | |
806 | INSTALL_STRIP_PROGRAM | |
807 | mkdir_p | |
808 | AWK | |
809 | SET_MAKE | |
810 | am__leading_dot | |
811 | AMTAR | |
812 | am__tar | |
813 | am__untar | |
814 | MAINTAINER_MODE_TRUE | |
815 | MAINTAINER_MODE_FALSE | |
816 | MAINT | |
817 | DOX_DIR_HTML | |
818 | DOX_DIR_LATEX | |
819 | DOX_DIR_MAN | |
820 | CC | |
821 | CFLAGS | |
822 | LDFLAGS | |
823 | CPPFLAGS | |
824 | ac_ct_CC | |
825 | EXEEXT | |
826 | OBJEXT | |
827 | DEPDIR | |
828 | am__include | |
829 | am__quote | |
830 | AMDEP_TRUE | |
831 | AMDEP_FALSE | |
832 | AMDEPBACKSLASH | |
833 | CCDEPMODE | |
834 | am__fastdepCC_TRUE | |
835 | am__fastdepCC_FALSE | |
836 | build | |
837 | build_cpu | |
838 | build_vendor | |
839 | build_os | |
840 | host | |
841 | host_cpu | |
842 | host_vendor | |
843 | host_os | |
844 | GREP | |
845 | EGREP | |
846 | LN_S | |
847 | ECHO | |
848 | AR | |
849 | RANLIB | |
850 | CPP | |
851 | CXX | |
852 | CXXFLAGS | |
853 | ac_ct_CXX | |
854 | CXXDEPMODE | |
855 | am__fastdepCXX_TRUE | |
856 | am__fastdepCXX_FALSE | |
857 | CXXCPP | |
858 | F77 | |
859 | FFLAGS | |
860 | ac_ct_F77 | |
861 | LIBTOOL | |
862 | LIBTOOL_DEPS | |
863 | ETR_SOCKET_LIBS | |
864 | LIBOBJS | |
865 | LSOCKET | |
866 | LNSL | |
867 | LTLIBOBJS' | |
49ba971d | 868 | ac_subst_files='' |
f58aa3e1 | 869 | ac_precious_vars='build_alias |
870 | host_alias | |
871 | target_alias | |
872 | CC | |
873 | CFLAGS | |
874 | LDFLAGS | |
875 | CPPFLAGS | |
876 | CPP | |
877 | CXX | |
878 | CXXFLAGS | |
879 | CCC | |
880 | CXXCPP | |
881 | F77 | |
882 | FFLAGS' | |
883 | ||
89354eef | 884 | |
885 | # Initialize some variables set by options. | |
886 | ac_init_help= | |
887 | ac_init_version=false | |
888 | # The variables have the same names as the options, with | |
889 | # dashes changed to underlines. | |
890 | cache_file=/dev/null | |
891 | exec_prefix=NONE | |
892 | no_create= | |
893 | no_recursion= | |
894 | prefix=NONE | |
895 | program_prefix=NONE | |
896 | program_suffix=NONE | |
897 | program_transform_name=s,x,x, | |
898 | silent= | |
899 | site= | |
900 | srcdir= | |
901 | verbose= | |
902 | x_includes=NONE | |
903 | x_libraries=NONE | |
904 | ||
905 | # Installation directory options. | |
906 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
907 | # and all the variables that are supposed to be based on exec_prefix | |
908 | # by default will actually change. | |
909 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
f58aa3e1 | 910 | # (The list follows the same order as the GNU Coding Standards.) |
89354eef | 911 | bindir='${exec_prefix}/bin' |
912 | sbindir='${exec_prefix}/sbin' | |
913 | libexecdir='${exec_prefix}/libexec' | |
f58aa3e1 | 914 | datarootdir='${prefix}/share' |
915 | datadir='${datarootdir}' | |
89354eef | 916 | sysconfdir='${prefix}/etc' |
917 | sharedstatedir='${prefix}/com' | |
918 | localstatedir='${prefix}/var' | |
89354eef | 919 | includedir='${prefix}/include' |
920 | oldincludedir='/usr/include' | |
f58aa3e1 | 921 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
922 | infodir='${datarootdir}/info' | |
923 | htmldir='${docdir}' | |
924 | dvidir='${docdir}' | |
925 | pdfdir='${docdir}' | |
926 | psdir='${docdir}' | |
927 | libdir='${exec_prefix}/lib' | |
928 | localedir='${datarootdir}/locale' | |
929 | mandir='${datarootdir}/man' | |
89354eef | 930 | |
931 | ac_prev= | |
f58aa3e1 | 932 | ac_dashdash= |
89354eef | 933 | for ac_option |
934 | do | |
935 | # If the previous option needs an argument, assign it. | |
936 | if test -n "$ac_prev"; then | |
f58aa3e1 | 937 | eval $ac_prev=\$ac_option |
89354eef | 938 | ac_prev= |
939 | continue | |
940 | fi | |
941 | ||
f58aa3e1 | 942 | case $ac_option in |
943 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
944 | *) ac_optarg=yes ;; | |
945 | esac | |
89354eef | 946 | |
947 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
948 | ||
f58aa3e1 | 949 | case $ac_dashdash$ac_option in |
950 | --) | |
951 | ac_dashdash=yes ;; | |
89354eef | 952 | |
953 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
954 | ac_prev=bindir ;; | |
955 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
956 | bindir=$ac_optarg ;; | |
957 | ||
958 | -build | --build | --buil | --bui | --bu) | |
959 | ac_prev=build_alias ;; | |
960 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
961 | build_alias=$ac_optarg ;; | |
962 | ||
963 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
964 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
965 | ac_prev=cache_file ;; | |
966 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
967 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
968 | cache_file=$ac_optarg ;; | |
969 | ||
970 | --config-cache | -C) | |
971 | cache_file=config.cache ;; | |
972 | ||
f58aa3e1 | 973 | -datadir | --datadir | --datadi | --datad) |
89354eef | 974 | ac_prev=datadir ;; |
f58aa3e1 | 975 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
89354eef | 976 | datadir=$ac_optarg ;; |
977 | ||
f58aa3e1 | 978 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
979 | | --dataroo | --dataro | --datar) | |
980 | ac_prev=datarootdir ;; | |
981 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
982 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
983 | datarootdir=$ac_optarg ;; | |
984 | ||
89354eef | 985 | -disable-* | --disable-*) |
986 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
987 | # Reject names that are not valid shell variable names. | |
988 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
989 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
990 | { (exit 1); exit 1; }; } | |
991 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
f58aa3e1 | 992 | eval enable_$ac_feature=no ;; |
993 | ||
994 | -docdir | --docdir | --docdi | --doc | --do) | |
995 | ac_prev=docdir ;; | |
996 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
997 | docdir=$ac_optarg ;; | |
998 | ||
999 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1000 | ac_prev=dvidir ;; | |
1001 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1002 | dvidir=$ac_optarg ;; | |
89354eef | 1003 | |
1004 | -enable-* | --enable-*) | |
1005 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1006 | # Reject names that are not valid shell variable names. | |
1007 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
1008 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
1009 | { (exit 1); exit 1; }; } | |
1010 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
f58aa3e1 | 1011 | eval enable_$ac_feature=\$ac_optarg ;; |
89354eef | 1012 | |
1013 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1014 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1015 | | --exec | --exe | --ex) | |
1016 | ac_prev=exec_prefix ;; | |
1017 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1018 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1019 | | --exec=* | --exe=* | --ex=*) | |
1020 | exec_prefix=$ac_optarg ;; | |
1021 | ||
1022 | -gas | --gas | --ga | --g) | |
1023 | # Obsolete; use --with-gas. | |
1024 | with_gas=yes ;; | |
1025 | ||
1026 | -help | --help | --hel | --he | -h) | |
1027 | ac_init_help=long ;; | |
1028 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1029 | ac_init_help=recursive ;; | |
1030 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1031 | ac_init_help=short ;; | |
1032 | ||
1033 | -host | --host | --hos | --ho) | |
1034 | ac_prev=host_alias ;; | |
1035 | -host=* | --host=* | --hos=* | --ho=*) | |
1036 | host_alias=$ac_optarg ;; | |
1037 | ||
f58aa3e1 | 1038 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1039 | ac_prev=htmldir ;; | |
1040 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1041 | | --ht=*) | |
1042 | htmldir=$ac_optarg ;; | |
1043 | ||
89354eef | 1044 | -includedir | --includedir | --includedi | --included | --include \ |
1045 | | --includ | --inclu | --incl | --inc) | |
1046 | ac_prev=includedir ;; | |
1047 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1048 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1049 | includedir=$ac_optarg ;; | |
1050 | ||
1051 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1052 | ac_prev=infodir ;; | |
1053 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1054 | infodir=$ac_optarg ;; | |
1055 | ||
1056 | -libdir | --libdir | --libdi | --libd) | |
1057 | ac_prev=libdir ;; | |
1058 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1059 | libdir=$ac_optarg ;; | |
1060 | ||
1061 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1062 | | --libexe | --libex | --libe) | |
1063 | ac_prev=libexecdir ;; | |
1064 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1065 | | --libexe=* | --libex=* | --libe=*) | |
1066 | libexecdir=$ac_optarg ;; | |
1067 | ||
f58aa3e1 | 1068 | -localedir | --localedir | --localedi | --localed | --locale) |
1069 | ac_prev=localedir ;; | |
1070 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1071 | localedir=$ac_optarg ;; | |
1072 | ||
89354eef | 1073 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
f58aa3e1 | 1074 | | --localstate | --localstat | --localsta | --localst | --locals) |
89354eef | 1075 | ac_prev=localstatedir ;; |
1076 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
f58aa3e1 | 1077 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
89354eef | 1078 | localstatedir=$ac_optarg ;; |
1079 | ||
1080 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1081 | ac_prev=mandir ;; | |
1082 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1083 | mandir=$ac_optarg ;; | |
1084 | ||
1085 | -nfp | --nfp | --nf) | |
1086 | # Obsolete; use --without-fp. | |
1087 | with_fp=no ;; | |
1088 | ||
1089 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1090 | | --no-cr | --no-c | -n) | |
1091 | no_create=yes ;; | |
1092 | ||
1093 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1094 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1095 | no_recursion=yes ;; | |
1096 | ||
1097 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1098 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1099 | | --oldin | --oldi | --old | --ol | --o) | |
1100 | ac_prev=oldincludedir ;; | |
1101 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1102 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1103 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1104 | oldincludedir=$ac_optarg ;; | |
1105 | ||
1106 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1107 | ac_prev=prefix ;; | |
1108 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1109 | prefix=$ac_optarg ;; | |
1110 | ||
1111 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1112 | | --program-pre | --program-pr | --program-p) | |
1113 | ac_prev=program_prefix ;; | |
1114 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1115 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1116 | program_prefix=$ac_optarg ;; | |
1117 | ||
1118 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1119 | | --program-suf | --program-su | --program-s) | |
1120 | ac_prev=program_suffix ;; | |
1121 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1122 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1123 | program_suffix=$ac_optarg ;; | |
1124 | ||
1125 | -program-transform-name | --program-transform-name \ | |
1126 | | --program-transform-nam | --program-transform-na \ | |
1127 | | --program-transform-n | --program-transform- \ | |
1128 | | --program-transform | --program-transfor \ | |
1129 | | --program-transfo | --program-transf \ | |
1130 | | --program-trans | --program-tran \ | |
1131 | | --progr-tra | --program-tr | --program-t) | |
1132 | ac_prev=program_transform_name ;; | |
1133 | -program-transform-name=* | --program-transform-name=* \ | |
1134 | | --program-transform-nam=* | --program-transform-na=* \ | |
1135 | | --program-transform-n=* | --program-transform-=* \ | |
1136 | | --program-transform=* | --program-transfor=* \ | |
1137 | | --program-transfo=* | --program-transf=* \ | |
1138 | | --program-trans=* | --program-tran=* \ | |
1139 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1140 | program_transform_name=$ac_optarg ;; | |
1141 | ||
f58aa3e1 | 1142 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1143 | ac_prev=pdfdir ;; | |
1144 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1145 | pdfdir=$ac_optarg ;; | |
1146 | ||
1147 | -psdir | --psdir | --psdi | --psd | --ps) | |
1148 | ac_prev=psdir ;; | |
1149 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1150 | psdir=$ac_optarg ;; | |
1151 | ||
89354eef | 1152 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1153 | | -silent | --silent | --silen | --sile | --sil) | |
1154 | silent=yes ;; | |
1155 | ||
1156 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1157 | ac_prev=sbindir ;; | |
1158 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1159 | | --sbi=* | --sb=*) | |
1160 | sbindir=$ac_optarg ;; | |
1161 | ||
1162 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1163 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1164 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1165 | | --sha | --sh) | |
1166 | ac_prev=sharedstatedir ;; | |
1167 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1168 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1169 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1170 | | --sha=* | --sh=*) | |
1171 | sharedstatedir=$ac_optarg ;; | |
1172 | ||
1173 | -site | --site | --sit) | |
1174 | ac_prev=site ;; | |
1175 | -site=* | --site=* | --sit=*) | |
1176 | site=$ac_optarg ;; | |
1177 | ||
1178 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1179 | ac_prev=srcdir ;; | |
1180 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1181 | srcdir=$ac_optarg ;; | |
1182 | ||
1183 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1184 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1185 | ac_prev=sysconfdir ;; | |
1186 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1187 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1188 | sysconfdir=$ac_optarg ;; | |
1189 | ||
1190 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1191 | ac_prev=target_alias ;; | |
1192 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1193 | target_alias=$ac_optarg ;; | |
1194 | ||
1195 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1196 | verbose=yes ;; | |
1197 | ||
1198 | -version | --version | --versio | --versi | --vers | -V) | |
1199 | ac_init_version=: ;; | |
1200 | ||
1201 | -with-* | --with-*) | |
1202 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1203 | # Reject names that are not valid shell variable names. | |
1204 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
1205 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1206 | { (exit 1); exit 1; }; } | |
1207 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
f58aa3e1 | 1208 | eval with_$ac_package=\$ac_optarg ;; |
89354eef | 1209 | |
1210 | -without-* | --without-*) | |
1211 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1212 | # Reject names that are not valid shell variable names. | |
1213 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
1214 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1215 | { (exit 1); exit 1; }; } | |
1216 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
f58aa3e1 | 1217 | eval with_$ac_package=no ;; |
89354eef | 1218 | |
1219 | --x) | |
1220 | # Obsolete; use --with-x. | |
1221 | with_x=yes ;; | |
1222 | ||
1223 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1224 | | --x-incl | --x-inc | --x-in | --x-i) | |
1225 | ac_prev=x_includes ;; | |
1226 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1227 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1228 | x_includes=$ac_optarg ;; | |
1229 | ||
1230 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1231 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1232 | ac_prev=x_libraries ;; | |
1233 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1234 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1235 | x_libraries=$ac_optarg ;; | |
1236 | ||
1237 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1238 | Try \`$0 --help' for more information." >&2 | |
1239 | { (exit 1); exit 1; }; } | |
1240 | ;; | |
1241 | ||
1242 | *=*) | |
1243 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1244 | # Reject names that are not valid shell variable names. | |
1245 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1246 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1247 | { (exit 1); exit 1; }; } | |
f58aa3e1 | 1248 | eval $ac_envvar=\$ac_optarg |
89354eef | 1249 | export $ac_envvar ;; |
1250 | ||
1251 | *) | |
1252 | # FIXME: should be removed in autoconf 3.0. | |
1253 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1254 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1255 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1256 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1257 | ;; | |
1258 | ||
1259 | esac | |
1260 | done | |
1261 | ||
1262 | if test -n "$ac_prev"; then | |
1263 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1264 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1265 | { (exit 1); exit 1; }; } | |
1266 | fi | |
1267 | ||
f58aa3e1 | 1268 | # Be sure to have absolute directory names. |
1269 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1270 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1271 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1272 | libdir localedir mandir | |
89354eef | 1273 | do |
f58aa3e1 | 1274 | eval ac_val=\$$ac_var |
89354eef | 1275 | case $ac_val in |
f58aa3e1 | 1276 | [\\/$]* | ?:[\\/]* ) continue;; |
1277 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
89354eef | 1278 | esac |
f58aa3e1 | 1279 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1280 | { (exit 1); exit 1; }; } | |
89354eef | 1281 | done |
1282 | ||
1283 | # There might be people who depend on the old broken behavior: `$host' | |
1284 | # used to hold the argument of --host etc. | |
1285 | # FIXME: To remove some day. | |
1286 | build=$build_alias | |
1287 | host=$host_alias | |
1288 | target=$target_alias | |
1289 | ||
1290 | # FIXME: To remove some day. | |
1291 | if test "x$host_alias" != x; then | |
1292 | if test "x$build_alias" = x; then | |
1293 | cross_compiling=maybe | |
1294 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1295 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1296 | elif test "x$build_alias" != "x$host_alias"; then | |
1297 | cross_compiling=yes | |
1298 | fi | |
1299 | fi | |
1300 | ||
1301 | ac_tool_prefix= | |
1302 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1303 | ||
1304 | test "$silent" = yes && exec 6>/dev/null | |
1305 | ||
1306 | ||
f58aa3e1 | 1307 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1308 | ac_ls_di=`ls -di .` && | |
1309 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1310 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1311 | { (exit 1); exit 1; }; } | |
1312 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1313 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1314 | { (exit 1); exit 1; }; } | |
1315 | ||
1316 | ||
89354eef | 1317 | # Find the source files, if location was not specified. |
1318 | if test -z "$srcdir"; then | |
1319 | ac_srcdir_defaulted=yes | |
f58aa3e1 | 1320 | # Try the directory containing this script, then the parent directory. |
1321 | ac_confdir=`$as_dirname -- "$0" || | |
89354eef | 1322 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
f58aa3e1 | 1323 | X"$0" : 'X\(//\)[^/]' \| \ |
1324 | X"$0" : 'X\(//\)$' \| \ | |
1325 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
89354eef | 1326 | echo X"$0" | |
f58aa3e1 | 1327 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1328 | s//\1/ | |
1329 | q | |
1330 | } | |
1331 | /^X\(\/\/\)[^/].*/{ | |
1332 | s//\1/ | |
1333 | q | |
1334 | } | |
1335 | /^X\(\/\/\)$/{ | |
1336 | s//\1/ | |
1337 | q | |
1338 | } | |
1339 | /^X\(\/\).*/{ | |
1340 | s//\1/ | |
1341 | q | |
1342 | } | |
1343 | s/.*/./; q'` | |
89354eef | 1344 | srcdir=$ac_confdir |
f58aa3e1 | 1345 | if test ! -r "$srcdir/$ac_unique_file"; then |
89354eef | 1346 | srcdir=.. |
1347 | fi | |
1348 | else | |
1349 | ac_srcdir_defaulted=no | |
1350 | fi | |
f58aa3e1 | 1351 | if test ! -r "$srcdir/$ac_unique_file"; then |
1352 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1353 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
89354eef | 1354 | { (exit 1); exit 1; }; } |
89354eef | 1355 | fi |
f58aa3e1 | 1356 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1357 | ac_abs_confdir=`( | |
1358 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
49ba971d | 1359 | { (exit 1); exit 1; }; } |
f58aa3e1 | 1360 | pwd)` |
1361 | # When building in place, set srcdir=. | |
1362 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1363 | srcdir=. | |
1364 | fi | |
1365 | # Remove unnecessary trailing slashes from srcdir. | |
1366 | # Double slashes in file names in object file debugging info | |
1367 | # mess up M-x gdb in Emacs. | |
1368 | case $srcdir in | |
1369 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1370 | esac | |
1371 | for ac_var in $ac_precious_vars; do | |
1372 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1373 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1374 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1375 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1376 | done | |
89354eef | 1377 | |
1378 | # | |
1379 | # Report the --help message. | |
1380 | # | |
1381 | if test "$ac_init_help" = "long"; then | |
1382 | # Omit some internal or obsolete options to make the list less imposing. | |
1383 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1384 | cat <<_ACEOF | |
1385 | \`configure' configures libopm 0.1 to adapt to many kinds of systems. | |
1386 | ||
1387 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1388 | ||
1389 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1390 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1391 | ||
1392 | Defaults for the options are specified in brackets. | |
1393 | ||
1394 | Configuration: | |
1395 | -h, --help display this help and exit | |
1396 | --help=short display options specific to this package | |
1397 | --help=recursive display the short help of all the included packages | |
1398 | -V, --version display version information and exit | |
1399 | -q, --quiet, --silent do not print \`checking...' messages | |
1400 | --cache-file=FILE cache test results in FILE [disabled] | |
1401 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1402 | -n, --no-create do not create output files | |
1403 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1404 | ||
89354eef | 1405 | Installation directories: |
1406 | --prefix=PREFIX install architecture-independent files in PREFIX | |
f58aa3e1 | 1407 | [$ac_default_prefix] |
89354eef | 1408 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
f58aa3e1 | 1409 | [PREFIX] |
89354eef | 1410 | |
1411 | By default, \`make install' will install all the files in | |
1412 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1413 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1414 | for instance \`--prefix=\$HOME'. | |
1415 | ||
1416 | For better control, use the options below. | |
1417 | ||
1418 | Fine tuning of the installation directories: | |
1419 | --bindir=DIR user executables [EPREFIX/bin] | |
1420 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1421 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
89354eef | 1422 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1423 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1424 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1425 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1426 | --includedir=DIR C header files [PREFIX/include] | |
1427 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
f58aa3e1 | 1428 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1429 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1430 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1431 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1432 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1433 | --docdir=DIR documentation root [DATAROOTDIR/doc/libopm] | |
1434 | --htmldir=DIR html documentation [DOCDIR] | |
1435 | --dvidir=DIR dvi documentation [DOCDIR] | |
1436 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1437 | --psdir=DIR ps documentation [DOCDIR] | |
89354eef | 1438 | _ACEOF |
1439 | ||
1440 | cat <<\_ACEOF | |
1441 | ||
1442 | Program names: | |
1443 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1444 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1445 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1446 | ||
1447 | System types: | |
1448 | --build=BUILD configure for building on BUILD [guessed] | |
1449 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1450 | _ACEOF | |
1451 | fi | |
1452 | ||
1453 | if test -n "$ac_init_help"; then | |
1454 | case $ac_init_help in | |
1455 | short | recursive ) echo "Configuration of libopm 0.1:";; | |
1456 | esac | |
1457 | cat <<\_ACEOF | |
1458 | ||
1459 | Optional Features: | |
1460 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1461 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
f58aa3e1 | 1462 | --enable-maintainer-mode enable make rules and dependencies not useful |
1463 | (and sometimes confusing) to the casual installer | |
1464 | --disable-dependency-tracking speeds up one-time build | |
1465 | --enable-dependency-tracking do not reject slow dependency extractors | |
1466 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1467 | --enable-static[=PKGS] build static libraries [default=yes] | |
1468 | --enable-fast-install[=PKGS] | |
1469 | optimize for fast installation [default=yes] | |
89354eef | 1470 | --disable-libtool-lock avoid locking (might break parallel builds) |
1471 | ||
1472 | Optional Packages: | |
1473 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1474 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
13931fb2 | 1475 | --with-extra-fascism add extra gcc3-specific warning flags |
f58aa3e1 | 1476 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1477 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1478 | both] | |
1479 | --with-tags[=TAGS] include additional configurations [automatic] | |
49ba971d | 1480 | --with-werror use -Werror to abort compilation on any warning |
89354eef | 1481 | |
1482 | Some influential environment variables: | |
1483 | CC C compiler command | |
1484 | CFLAGS C compiler flags | |
1485 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1486 | nonstandard directory <lib dir> | |
f58aa3e1 | 1487 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1488 | you have headers in a nonstandard directory <include dir> | |
89354eef | 1489 | CPP C preprocessor |
f58aa3e1 | 1490 | CXX C++ compiler command |
1491 | CXXFLAGS C++ compiler flags | |
1492 | CXXCPP C++ preprocessor | |
1493 | F77 Fortran 77 compiler command | |
1494 | FFLAGS Fortran 77 compiler flags | |
89354eef | 1495 | |
1496 | Use these variables to override the choices made by `configure' or to help | |
1497 | it to find libraries and programs with nonstandard names/locations. | |
1498 | ||
1499 | _ACEOF | |
f58aa3e1 | 1500 | ac_status=$? |
89354eef | 1501 | fi |
1502 | ||
1503 | if test "$ac_init_help" = "recursive"; then | |
1504 | # If there are subdirs, report their specific --help. | |
89354eef | 1505 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
f58aa3e1 | 1506 | test -d "$ac_dir" || continue |
89354eef | 1507 | ac_builddir=. |
1508 | ||
f58aa3e1 | 1509 | case "$ac_dir" in |
1510 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1511 | *) | |
89354eef | 1512 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
f58aa3e1 | 1513 | # A ".." for each directory in $ac_dir_suffix. |
1514 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1515 | case $ac_top_builddir_sub in | |
1516 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1517 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1518 | esac ;; | |
1519 | esac | |
1520 | ac_abs_top_builddir=$ac_pwd | |
1521 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1522 | # for backward compatibility: | |
1523 | ac_top_builddir=$ac_top_build_prefix | |
89354eef | 1524 | |
1525 | case $srcdir in | |
f58aa3e1 | 1526 | .) # We are building in place. |
89354eef | 1527 | ac_srcdir=. |
f58aa3e1 | 1528 | ac_top_srcdir=$ac_top_builddir_sub |
1529 | ac_abs_top_srcdir=$ac_pwd ;; | |
1530 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
89354eef | 1531 | ac_srcdir=$srcdir$ac_dir_suffix; |
f58aa3e1 | 1532 | ac_top_srcdir=$srcdir |
1533 | ac_abs_top_srcdir=$srcdir ;; | |
1534 | *) # Relative name. | |
1535 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1536 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1537 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1538 | esac | |
1539 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1540 | ||
1541 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1542 | # Check for guested configure. | |
1543 | if test -f "$ac_srcdir/configure.gnu"; then | |
1544 | echo && | |
1545 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1546 | elif test -f "$ac_srcdir/configure"; then | |
1547 | echo && | |
1548 | $SHELL "$ac_srcdir/configure" --help=recursive | |
89354eef | 1549 | else |
1550 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
f58aa3e1 | 1551 | fi || ac_status=$? |
1552 | cd "$ac_pwd" || { ac_status=$?; break; } | |
89354eef | 1553 | done |
1554 | fi | |
1555 | ||
f58aa3e1 | 1556 | test -n "$ac_init_help" && exit $ac_status |
89354eef | 1557 | if $ac_init_version; then |
1558 | cat <<\_ACEOF | |
1559 | libopm configure 0.1 | |
f58aa3e1 | 1560 | generated by GNU Autoconf 2.60 |
89354eef | 1561 | |
f58aa3e1 | 1562 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1563 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
89354eef | 1564 | This configure script is free software; the Free Software Foundation |
1565 | gives unlimited permission to copy, distribute and modify it. | |
1566 | _ACEOF | |
f58aa3e1 | 1567 | exit |
89354eef | 1568 | fi |
f58aa3e1 | 1569 | cat >config.log <<_ACEOF |
89354eef | 1570 | This file contains any messages produced by compilers while |
1571 | running configure, to aid debugging if configure makes a mistake. | |
1572 | ||
1573 | It was created by libopm $as_me 0.1, which was | |
f58aa3e1 | 1574 | generated by GNU Autoconf 2.60. Invocation command line was |
89354eef | 1575 | |
1576 | $ $0 $@ | |
1577 | ||
1578 | _ACEOF | |
f58aa3e1 | 1579 | exec 5>>config.log |
89354eef | 1580 | { |
1581 | cat <<_ASUNAME | |
1582 | ## --------- ## | |
1583 | ## Platform. ## | |
1584 | ## --------- ## | |
1585 | ||
1586 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1587 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1588 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1589 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1590 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1591 | ||
1592 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1593 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1594 | ||
1595 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1596 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1597 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
f58aa3e1 | 1598 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
89354eef | 1599 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1600 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1601 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1602 | ||
1603 | _ASUNAME | |
1604 | ||
1605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1606 | for as_dir in $PATH | |
1607 | do | |
1608 | IFS=$as_save_IFS | |
1609 | test -z "$as_dir" && as_dir=. | |
1610 | echo "PATH: $as_dir" | |
1611 | done | |
f58aa3e1 | 1612 | IFS=$as_save_IFS |
89354eef | 1613 | |
1614 | } >&5 | |
1615 | ||
1616 | cat >&5 <<_ACEOF | |
1617 | ||
1618 | ||
1619 | ## ----------- ## | |
1620 | ## Core tests. ## | |
1621 | ## ----------- ## | |
1622 | ||
1623 | _ACEOF | |
1624 | ||
1625 | ||
1626 | # Keep a trace of the command line. | |
1627 | # Strip out --no-create and --no-recursion so they do not pile up. | |
49ba971d | 1628 | # Strip out --silent because we don't want to record it for future runs. |
89354eef | 1629 | # Also quote any args containing shell meta-characters. |
49ba971d | 1630 | # Make two passes to allow for proper duplicate-argument suppression. |
89354eef | 1631 | ac_configure_args= |
49ba971d | 1632 | ac_configure_args0= |
1633 | ac_configure_args1= | |
49ba971d | 1634 | ac_must_keep_next=false |
1635 | for ac_pass in 1 2 | |
89354eef | 1636 | do |
49ba971d | 1637 | for ac_arg |
1638 | do | |
1639 | case $ac_arg in | |
1640 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1641 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1642 | | -silent | --silent | --silen | --sile | --sil) | |
1643 | continue ;; | |
f58aa3e1 | 1644 | *\'*) |
49ba971d | 1645 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1646 | esac | |
1647 | case $ac_pass in | |
1648 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1649 | 2) | |
1650 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1651 | if test $ac_must_keep_next = true; then | |
f58aa3e1 | 1652 | ac_must_keep_next=false # Got value, back to normal. |
49ba971d | 1653 | else |
f58aa3e1 | 1654 | case $ac_arg in |
1655 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1656 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1657 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1658 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1659 | case "$ac_configure_args0 " in | |
1660 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1661 | esac | |
1662 | ;; | |
1663 | -* ) ac_must_keep_next=true ;; | |
1664 | esac | |
49ba971d | 1665 | fi |
f58aa3e1 | 1666 | ac_configure_args="$ac_configure_args '$ac_arg'" |
49ba971d | 1667 | ;; |
1668 | esac | |
1669 | done | |
89354eef | 1670 | done |
49ba971d | 1671 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1672 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
89354eef | 1673 | |
1674 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1675 | # config.log. We remove comments because anyway the quotes in there | |
1676 | # would cause problems or look ugly. | |
f58aa3e1 | 1677 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1678 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
89354eef | 1679 | trap 'exit_status=$? |
1680 | # Save into config.log some information that might help in debugging. | |
1681 | { | |
1682 | echo | |
49ba971d | 1683 | |
89354eef | 1684 | cat <<\_ASBOX |
1685 | ## ---------------- ## | |
1686 | ## Cache variables. ## | |
1687 | ## ---------------- ## | |
1688 | _ASBOX | |
1689 | echo | |
1690 | # The following way of writing the cache mishandles newlines in values, | |
f58aa3e1 | 1691 | ( |
1692 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1693 | eval ac_val=\$$ac_var | |
1694 | case $ac_val in #( | |
1695 | *${as_nl}*) | |
1696 | case $ac_var in #( | |
1697 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1698 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1699 | esac | |
1700 | case $ac_var in #( | |
1701 | _ | IFS | as_nl) ;; #( | |
1702 | *) $as_unset $ac_var ;; | |
1703 | esac ;; | |
1704 | esac | |
1705 | done | |
89354eef | 1706 | (set) 2>&1 | |
f58aa3e1 | 1707 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1708 | *${as_nl}ac_space=\ *) | |
89354eef | 1709 | sed -n \ |
f58aa3e1 | 1710 | "s/'\''/'\''\\\\'\'''\''/g; |
1711 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1712 | ;; #( | |
89354eef | 1713 | *) |
f58aa3e1 | 1714 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
89354eef | 1715 | ;; |
f58aa3e1 | 1716 | esac | |
1717 | sort | |
1718 | ) | |
89354eef | 1719 | echo |
49ba971d | 1720 | |
1721 | cat <<\_ASBOX | |
1722 | ## ----------------- ## | |
1723 | ## Output variables. ## | |
1724 | ## ----------------- ## | |
1725 | _ASBOX | |
1726 | echo | |
1727 | for ac_var in $ac_subst_vars | |
1728 | do | |
f58aa3e1 | 1729 | eval ac_val=\$$ac_var |
1730 | case $ac_val in | |
1731 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1732 | esac | |
1733 | echo "$ac_var='\''$ac_val'\''" | |
49ba971d | 1734 | done | sort |
1735 | echo | |
1736 | ||
1737 | if test -n "$ac_subst_files"; then | |
1738 | cat <<\_ASBOX | |
f58aa3e1 | 1739 | ## ------------------- ## |
1740 | ## File substitutions. ## | |
1741 | ## ------------------- ## | |
49ba971d | 1742 | _ASBOX |
1743 | echo | |
1744 | for ac_var in $ac_subst_files | |
1745 | do | |
f58aa3e1 | 1746 | eval ac_val=\$$ac_var |
1747 | case $ac_val in | |
1748 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1749 | esac | |
1750 | echo "$ac_var='\''$ac_val'\''" | |
49ba971d | 1751 | done | sort |
1752 | echo | |
1753 | fi | |
1754 | ||
89354eef | 1755 | if test -s confdefs.h; then |
1756 | cat <<\_ASBOX | |
1757 | ## ----------- ## | |
1758 | ## confdefs.h. ## | |
1759 | ## ----------- ## | |
1760 | _ASBOX | |
1761 | echo | |
f58aa3e1 | 1762 | cat confdefs.h |
89354eef | 1763 | echo |
1764 | fi | |
1765 | test "$ac_signal" != 0 && | |
1766 | echo "$as_me: caught signal $ac_signal" | |
1767 | echo "$as_me: exit $exit_status" | |
1768 | } >&5 | |
f58aa3e1 | 1769 | rm -f core *.core core.conftest.* && |
1770 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
89354eef | 1771 | exit $exit_status |
f58aa3e1 | 1772 | ' 0 |
89354eef | 1773 | for ac_signal in 1 2 13 15; do |
1774 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1775 | done | |
1776 | ac_signal=0 | |
1777 | ||
1778 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
f58aa3e1 | 1779 | rm -f -r conftest* confdefs.h |
89354eef | 1780 | |
1781 | # Predefined preprocessor variables. | |
1782 | ||
1783 | cat >>confdefs.h <<_ACEOF | |
1784 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1785 | _ACEOF | |
1786 | ||
1787 | ||
1788 | cat >>confdefs.h <<_ACEOF | |
1789 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1790 | _ACEOF | |
1791 | ||
1792 | ||
1793 | cat >>confdefs.h <<_ACEOF | |
1794 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1795 | _ACEOF | |
1796 | ||
1797 | ||
1798 | cat >>confdefs.h <<_ACEOF | |
1799 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1800 | _ACEOF | |
1801 | ||
1802 | ||
1803 | cat >>confdefs.h <<_ACEOF | |
1804 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1805 | _ACEOF | |
1806 | ||
1807 | ||
1808 | # Let the site file select an alternate cache file if it wants to. | |
1809 | # Prefer explicitly selected file to automatically selected ones. | |
f58aa3e1 | 1810 | if test -n "$CONFIG_SITE"; then |
1811 | set x "$CONFIG_SITE" | |
1812 | elif test "x$prefix" != xNONE; then | |
1813 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1814 | else | |
1815 | set x "$ac_default_prefix/share/config.site" \ | |
1816 | "$ac_default_prefix/etc/config.site" | |
89354eef | 1817 | fi |
f58aa3e1 | 1818 | shift |
1819 | for ac_site_file | |
1820 | do | |
89354eef | 1821 | if test -r "$ac_site_file"; then |
1822 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1823 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1824 | sed 's/^/| /' "$ac_site_file" >&5 | |
1825 | . "$ac_site_file" | |
1826 | fi | |
1827 | done | |
1828 | ||
1829 | if test -r "$cache_file"; then | |
1830 | # Some versions of bash will fail to source /dev/null (special | |
1831 | # files actually), so we avoid doing that. | |
1832 | if test -f "$cache_file"; then | |
1833 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1834 | echo "$as_me: loading cache $cache_file" >&6;} | |
1835 | case $cache_file in | |
f58aa3e1 | 1836 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1837 | *) . "./$cache_file";; | |
89354eef | 1838 | esac |
1839 | fi | |
1840 | else | |
1841 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1842 | echo "$as_me: creating cache $cache_file" >&6;} | |
1843 | >$cache_file | |
1844 | fi | |
1845 | ||
1846 | # Check that the precious variables saved in the cache have kept the same | |
1847 | # value. | |
1848 | ac_cache_corrupted=false | |
f58aa3e1 | 1849 | for ac_var in $ac_precious_vars; do |
89354eef | 1850 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1851 | eval ac_new_set=\$ac_env_${ac_var}_set | |
f58aa3e1 | 1852 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1853 | eval ac_new_val=\$ac_env_${ac_var}_value | |
89354eef | 1854 | case $ac_old_set,$ac_new_set in |
1855 | set,) | |
1856 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1857 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1858 | ac_cache_corrupted=: ;; | |
1859 | ,set) | |
1860 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1861 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1862 | ac_cache_corrupted=: ;; | |
1863 | ,);; | |
1864 | *) | |
1865 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
f58aa3e1 | 1866 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
89354eef | 1867 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
f58aa3e1 | 1868 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
89354eef | 1869 | echo "$as_me: former value: $ac_old_val" >&2;} |
f58aa3e1 | 1870 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
89354eef | 1871 | echo "$as_me: current value: $ac_new_val" >&2;} |
f58aa3e1 | 1872 | ac_cache_corrupted=: |
89354eef | 1873 | fi;; |
1874 | esac | |
1875 | # Pass precious variables to config.status. | |
1876 | if test "$ac_new_set" = set; then | |
1877 | case $ac_new_val in | |
f58aa3e1 | 1878 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
89354eef | 1879 | *) ac_arg=$ac_var=$ac_new_val ;; |
1880 | esac | |
1881 | case " $ac_configure_args " in | |
1882 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1883 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1884 | esac | |
1885 | fi | |
1886 | done | |
1887 | if $ac_cache_corrupted; then | |
1888 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1889 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1890 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1891 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1892 | { (exit 1); exit 1; }; } | |
1893 | fi | |
1894 | ||
89354eef | 1895 | |
1896 | ||
1897 | ||
1898 | ||
1899 | ||
1900 | ||
1901 | ||
1902 | ||
1903 | ||
1904 | ||
1905 | ||
1906 | ||
1907 | ||
1908 | ||
1909 | ||
1910 | ||
1911 | ||
1912 | ||
1913 | ||
1914 | ||
1915 | ||
1916 | ||
49ba971d | 1917 | |
89354eef | 1918 | |
f58aa3e1 | 1919 | ac_ext=c |
1920 | ac_cpp='$CPP $CPPFLAGS' | |
1921 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1922 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1923 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
89354eef | 1924 | |
89354eef | 1925 | |
1926 | ||
f58aa3e1 | 1927 | ac_config_headers="$ac_config_headers src/setup.h" |
89354eef | 1928 | |
f58aa3e1 | 1929 | am__api_version="1.9" |
89354eef | 1930 | ac_aux_dir= |
f58aa3e1 | 1931 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1932 | if test -f "$ac_dir/install-sh"; then | |
89354eef | 1933 | ac_aux_dir=$ac_dir |
1934 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1935 | break | |
f58aa3e1 | 1936 | elif test -f "$ac_dir/install.sh"; then |
89354eef | 1937 | ac_aux_dir=$ac_dir |
1938 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1939 | break | |
f58aa3e1 | 1940 | elif test -f "$ac_dir/shtool"; then |
89354eef | 1941 | ac_aux_dir=$ac_dir |
1942 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1943 | break | |
1944 | fi | |
1945 | done | |
1946 | if test -z "$ac_aux_dir"; then | |
f58aa3e1 | 1947 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1948 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
89354eef | 1949 | { (exit 1); exit 1; }; } |
1950 | fi | |
f58aa3e1 | 1951 | |
1952 | # These three variables are undocumented and unsupported, | |
1953 | # and are intended to be withdrawn in a future Autoconf release. | |
1954 | # They can cause serious problems if a builder's source tree is in a directory | |
1955 | # whose full name contains unusual characters. | |
1956 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1957 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1958 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1959 | ||
89354eef | 1960 | |
1961 | # Find a good install program. We prefer a C program (faster), | |
1962 | # so one script is as good as another. But avoid the broken or | |
1963 | # incompatible versions: | |
1964 | # SysV /etc/install, /usr/sbin/install | |
1965 | # SunOS /usr/etc/install | |
1966 | # IRIX /sbin/install | |
1967 | # AIX /bin/install | |
1968 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1969 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1970 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1971 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
f58aa3e1 | 1972 | # OS/2's system install, which has a completely different semantic |
89354eef | 1973 | # ./install, which can be erroneously created by make from ./install.sh. |
f58aa3e1 | 1974 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1975 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
89354eef | 1976 | if test -z "$INSTALL"; then |
1977 | if test "${ac_cv_path_install+set}" = set; then | |
1978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1979 | else | |
1980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1981 | for as_dir in $PATH | |
1982 | do | |
1983 | IFS=$as_save_IFS | |
1984 | test -z "$as_dir" && as_dir=. | |
1985 | # Account for people who put trailing slashes in PATH elements. | |
1986 | case $as_dir/ in | |
1987 | ./ | .// | /cC/* | \ | |
1988 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
f58aa3e1 | 1989 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
89354eef | 1990 | /usr/ucb/* ) ;; |
1991 | *) | |
1992 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1993 | # Don't use installbsd from OSF since it installs stuff as root | |
1994 | # by default. | |
1995 | for ac_prog in ginstall scoinst install; do | |
1996 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f58aa3e1 | 1997 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
1998 | if test $ac_prog = install && | |
1999 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2000 | # AIX install. It has an incompatible calling convention. | |
2001 | : | |
2002 | elif test $ac_prog = install && | |
2003 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2004 | # program-specific install script used by HP pwplus--don't use. | |
2005 | : | |
2006 | else | |
2007 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2008 | break 3 | |
2009 | fi | |
2010 | fi | |
89354eef | 2011 | done |
2012 | done | |
2013 | ;; | |
2014 | esac | |
2015 | done | |
f58aa3e1 | 2016 | IFS=$as_save_IFS |
89354eef | 2017 | |
2018 | ||
2019 | fi | |
2020 | if test "${ac_cv_path_install+set}" = set; then | |
2021 | INSTALL=$ac_cv_path_install | |
2022 | else | |
f58aa3e1 | 2023 | # As a last resort, use the slow shell script. Don't cache a |
2024 | # value for INSTALL within a source directory, because that will | |
89354eef | 2025 | # break other packages using the cache if that directory is |
f58aa3e1 | 2026 | # removed, or if the value is a relative name. |
89354eef | 2027 | INSTALL=$ac_install_sh |
2028 | fi | |
2029 | fi | |
f58aa3e1 | 2030 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2031 | echo "${ECHO_T}$INSTALL" >&6; } | |
89354eef | 2032 | |
2033 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2034 | # It thinks the first close brace ends the variable substitution. | |
2035 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2036 | ||
2037 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2038 | ||
2039 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2040 | ||
f58aa3e1 | 2041 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2042 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | |
89354eef | 2043 | # Just in case |
2044 | sleep 1 | |
2045 | echo timestamp > conftest.file | |
2046 | # Do `set' in a subshell so we don't clobber the current shell's | |
2047 | # arguments. Must try -L first in case configure is actually a | |
2048 | # symlink; some systems play weird games with the mod time of symlinks | |
2049 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2050 | # directory). | |
2051 | if ( | |
2052 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
2053 | if test "$*" = "X"; then | |
2054 | # -L didn't work. | |
2055 | set X `ls -t $srcdir/configure conftest.file` | |
2056 | fi | |
2057 | rm -f conftest.file | |
2058 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2059 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2060 | ||
2061 | # If neither matched, then we have a broken ls. This can happen | |
2062 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2063 | # broken ls alias from the environment. This has actually | |
2064 | # happened. Such a system could not be considered "sane". | |
2065 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
2066 | alias in your environment" >&5 | |
2067 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2068 | alias in your environment" >&2;} | |
2069 | { (exit 1); exit 1; }; } | |
2070 | fi | |
2071 | ||
2072 | test "$2" = conftest.file | |
2073 | ) | |
2074 | then | |
2075 | # Ok. | |
2076 | : | |
2077 | else | |
2078 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
2079 | Check your system clock" >&5 | |
2080 | echo "$as_me: error: newly created file is older than distributed files! | |
2081 | Check your system clock" >&2;} | |
2082 | { (exit 1); exit 1; }; } | |
2083 | fi | |
f58aa3e1 | 2084 | { echo "$as_me:$LINENO: result: yes" >&5 |
2085 | echo "${ECHO_T}yes" >&6; } | |
89354eef | 2086 | test "$program_prefix" != NONE && |
f58aa3e1 | 2087 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
89354eef | 2088 | # Use a double $ so make ignores it. |
2089 | test "$program_suffix" != NONE && | |
f58aa3e1 | 2090 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
89354eef | 2091 | # Double any \ or $. echo might interpret backslashes. |
2092 | # By default was `s,x,x', remove it if useless. | |
2093 | cat <<\_ACEOF >conftest.sed | |
2094 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2095 | _ACEOF | |
2096 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
f58aa3e1 | 2097 | rm -f conftest.sed |
89354eef | 2098 | |
2099 | # expand $ac_aux_dir to an absolute path | |
2100 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2101 | ||
2102 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2103 | # Use eval to expand $SHELL | |
2104 | if eval "$MISSING --run true"; then | |
2105 | am_missing_run="$MISSING --run " | |
2106 | else | |
2107 | am_missing_run= | |
2108 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2109 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2110 | fi | |
2111 | ||
f58aa3e1 | 2112 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
2113 | # We used to keeping the `.' as first argument, in order to | |
2114 | # allow $(mkdir_p) to be used without argument. As in | |
2115 | # $(mkdir_p) $(somedir) | |
2116 | # where $(somedir) is conditionally defined. However this is wrong | |
2117 | # for two reasons: | |
2118 | # 1. if the package is installed by a user who cannot write `.' | |
2119 | # make install will fail, | |
2120 | # 2. the above comment should most certainly read | |
2121 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2122 | # so it does not work when $(somedir) is undefined and | |
2123 | # $(DESTDIR) is not. | |
2124 | # To support the latter case, we have to write | |
2125 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2126 | # so the `.' trick is pointless. | |
2127 | mkdir_p='mkdir -p --' | |
2128 | else | |
2129 | # On NextStep and OpenStep, the `mkdir' command does not | |
2130 | # recognize any option. It will interpret all options as | |
2131 | # directories to create, and then abort because `.' already | |
2132 | # exists. | |
2133 | for d in ./-p ./--version; | |
2134 | do | |
2135 | test -d $d && rmdir $d | |
2136 | done | |
2137 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2138 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2139 | mkdir_p='$(mkinstalldirs)' | |
2140 | else | |
2141 | mkdir_p='$(install_sh) -d' | |
2142 | fi | |
2143 | fi | |
2144 | ||
89354eef | 2145 | for ac_prog in gawk mawk nawk awk |
2146 | do | |
2147 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2148 | set dummy $ac_prog; ac_word=$2 | |
f58aa3e1 | 2149 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2150 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
89354eef | 2151 | if test "${ac_cv_prog_AWK+set}" = set; then |
2152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2153 | else | |
2154 | if test -n "$AWK"; then | |
2155 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2156 | else | |
2157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2158 | for as_dir in $PATH | |
2159 | do | |
2160 | IFS=$as_save_IFS | |
2161 | test -z "$as_dir" && as_dir=. | |
2162 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f58aa3e1 | 2163 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
89354eef | 2164 | ac_cv_prog_AWK="$ac_prog" |
2165 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2166 | break 2 | |
2167 | fi | |
2168 | done | |
2169 | done | |
f58aa3e1 | 2170 | IFS=$as_save_IFS |
89354eef | 2171 | |
2172 | fi | |
2173 | fi | |
2174 | AWK=$ac_cv_prog_AWK | |
2175 | if test -n "$AWK"; then | |
f58aa3e1 | 2176 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2177 | echo "${ECHO_T}$AWK" >&6; } | |
89354eef | 2178 | else |
f58aa3e1 | 2179 | { echo "$as_me:$LINENO: result: no" >&5 |
2180 | echo "${ECHO_T}no" >&6; } | |
89354eef | 2181 | fi |
2182 | ||
f58aa3e1 | 2183 | |
89354eef | 2184 | test -n "$AWK" && break |
2185 | done | |
2186 | ||
f58aa3e1 | 2187 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2188 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
2189 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2190 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
89354eef | 2191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2192 | else | |
2193 | cat >conftest.make <<\_ACEOF | |
f58aa3e1 | 2194 | SHELL = /bin/sh |
89354eef | 2195 | all: |
f58aa3e1 | 2196 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
89354eef | 2197 | _ACEOF |
2198 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
f58aa3e1 | 2199 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2200 | *@@@%%%=?*=@@@%%%*) | |
2201 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2202 | *) | |
2203 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2204 | esac | |
89354eef | 2205 | rm -f conftest.make |
2206 | fi | |
f58aa3e1 | 2207 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2208 | { echo "$as_me:$LINENO: result: yes" >&5 | |
2209 | echo "${ECHO_T}yes" >&6; } | |
89354eef | 2210 | SET_MAKE= |
2211 | else | |
f58aa3e1 | 2212 | { echo "$as_me:$LINENO: result: no" >&5 |
2213 | echo "${ECHO_T}no" >&6; } | |
89354eef | 2214 | SET_MAKE="MAKE=${MAKE-make}" |
2215 | fi | |
2216 | ||
f58aa3e1 | 2217 | rm -rf .tst 2>/dev/null |
2218 | mkdir .tst 2>/dev/null | |
2219 | if test -d .tst; then | |
2220 | am__leading_dot=. | |
2221 | else | |
2222 | am__leading_dot=_ | |
2223 | fi | |
2224 | rmdir .tst 2>/dev/null | |
2225 | ||
2226 | # test to see if srcdir already configured | |
89354eef | 2227 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
2228 | test -f $srcdir/config.status; then | |
2229 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2230 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2231 | { (exit 1); exit 1; }; } | |
2232 | fi | |
2233 | ||
f58aa3e1 | 2234 | # test whether we have cygpath |
2235 | if test -z "$CYGPATH_W"; then | |
2236 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2237 | CYGPATH_W='cygpath -w' | |
2238 | else | |
2239 | CYGPATH_W=echo | |
2240 | fi | |
2241 | fi | |
2242 | ||
2243 | ||
89354eef | 2244 | # Define the identity of the package. |
f58aa3e1 | 2245 | PACKAGE='libopm' |
2246 | VERSION='0.1' | |
89354eef | 2247 | |
2248 | ||
2249 | cat >>confdefs.h <<_ACEOF | |
2250 | #define PACKAGE "$PACKAGE" | |
2251 | _ACEOF | |
2252 | ||
2253 | ||
2254 | cat >>confdefs.h <<_ACEOF | |
2255 | #define VERSION "$VERSION" | |
2256 | _ACEOF | |
2257 | ||
2258 | # Some tools Automake needs. | |
2259 | ||
2260 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2261 | ||
2262 | ||
2263 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2264 | ||
2265 | ||
2266 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2267 | ||
2268 | ||
2269 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2270 | ||
2271 | ||
2272 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2273 | ||
89354eef | 2274 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
2275 | ||
2276 | # Installed binaries are usually stripped using `strip' when the user | |
2277 | # run `make install-strip'. However `strip' might not be the right | |
2278 | # tool to use in cross-compilation environments, therefore Automake | |
2279 | # will honor the `STRIP' environment variable to overrule this program. | |
2280 | if test "$cross_compiling" != no; then | |
2281 | if test -n "$ac_tool_prefix"; then | |
2282 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2283 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
f58aa3e1 | 2284 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2285 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
89354eef | 2286 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2288 | else | |
2289 | if test -n "$STRIP"; then | |
2290 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2291 | else | |
2292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2293 | for as_dir in $PATH | |
2294 | do | |
2295 | IFS=$as_save_IFS | |
2296 | test -z "$as_dir" && as_dir=. | |
2297 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f58aa3e1 | 2298 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
89354eef | 2299 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2300 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2301 | break 2 | |
2302 | fi | |
2303 | done | |
2304 | done | |
f58aa3e1 | 2305 | IFS=$as_save_IFS |
89354eef | 2306 | |
2307 | fi | |
2308 | fi | |
2309 | STRIP=$ac_cv_prog_STRIP | |
2310 | if test -n "$STRIP"; then | |
f58aa3e1 | 2311 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2312 | echo "${ECHO_T}$STRIP" >&6; } | |
89354eef | 2313 | else |
f58aa3e1 | 2314 | { echo "$as_me:$LINENO: result: no" >&5 |
2315 | echo "${ECHO_T}no" >&6; } | |
89354eef | 2316 | fi |
2317 | ||
f58aa3e1 | 2318 | |
89354eef | 2319 | fi |
2320 | if test -z "$ac_cv_prog_STRIP"; then | |
2321 | ac_ct_STRIP=$STRIP | |
2322 | # Extract the first word of "strip", so it can be a program name with args. | |
2323 | set dummy strip; ac_word=$2 | |
f58aa3e1 | 2324 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2325 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
89354eef | 2326 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2328 | else | |
2329 | if test -n "$ac_ct_STRIP"; then | |
2330 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2331 | else | |
2332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2333 | for as_dir in $PATH | |
2334 | do | |
2335 | IFS=$as_save_IFS | |
2336 | test -z "$as_dir" && as_dir=. | |
2337 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f58aa3e1 | 2338 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
89354eef | 2339 | ac_cv_prog_ac_ct_STRIP="strip" |
2340 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2341 | break 2 | |
2342 | fi | |
2343 | done | |
2344 | done | |
f58aa3e1 | 2345 | IFS=$as_save_IFS |
89354eef | 2346 | |
89354eef | 2347 | fi |
2348 | fi | |
2349 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2350 | if test -n "$ac_ct_STRIP"; then | |
f58aa3e1 | 2351 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2352 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
89354eef | 2353 | else |
f58aa3e1 | 2354 | { echo "$as_me:$LINENO: result: no" >&5 |
2355 | echo "${ECHO_T}no" >&6; } | |
89354eef | 2356 | fi |
2357 | ||
f58aa3e1 | 2358 | if test "x$ac_ct_STRIP" = x; then |
2359 | STRIP=":" | |
2360 | else | |
2361 | case $cross_compiling:$ac_tool_warned in | |
2362 | yes:) | |
2363 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2364 | whose name does not start with the host triplet. If you think this | |
2365 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2366 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2367 | whose name does not start with the host triplet. If you think this | |
2368 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2369 | ac_tool_warned=yes ;; | |
2370 | esac | |
2371 | STRIP=$ac_ct_STRIP | |
2372 | fi | |
89354eef | 2373 | else |
2374 | STRIP="$ac_cv_prog_STRIP" | |
2375 | fi | |
2376 | ||
2377 | fi | |
2378 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
2379 | ||
2380 | # We need awk for the "check" target. The system "awk" is bad on | |
2381 | # some platforms. | |
f58aa3e1 | 2382 | # Always define AMTAR for backward compatibility. |
2383 | ||
2384 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
89354eef | 2385 | |
f58aa3e1 | 2386 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
89354eef | 2387 | |
2388 | ||
2389 | ||
f58aa3e1 | 2390 | |
2391 | ||
2392 | ||
2393 | { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2394 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } | |
2395 | # Check whether --enable-maintainer-mode was given. | |
89354eef | 2396 | if test "${enable_maintainer_mode+set}" = set; then |
f58aa3e1 | 2397 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
89354eef | 2398 | else |
2399 | USE_MAINTAINER_MODE=no | |
f58aa3e1 | 2400 | fi |
2401 | ||
2402 | { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
2403 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } | |
89354eef | 2404 | |
2405 | ||
2406 | if test $USE_MAINTAINER_MODE = yes; then | |
2407 | MAINTAINER_MODE_TRUE= | |
2408 | MAINTAINER_MODE_FALSE='#' | |
2409 | else | |
2410 | MAINTAINER_MODE_TRUE='#' | |
2411 | MAINTAINER_MODE_FALSE= | |
2412 | fi | |
2413 | ||
2414 | MAINT=$MAINTAINER_MODE_TRUE | |
2415 | ||
2416 | ||
2417 | ||
03fff986 | 2418 | # for documentation purposes |
2419 | DOX_DIR_HTML=api | |
2420 | DOX_DIR_LATEX=latex | |
2421 | DOX_DIR_MAN=man | |
2422 | ||
2423 | ||
2424 | ||
2425 | ||
2426 | ||
89354eef | 2427 | |
f58aa3e1 | 2428 | # Check whether --with-extra-fascism was given. |
89354eef | 2429 | if test "${with_extra_fascism+set}" = set; then |
f58aa3e1 | 2430 | withval=$with_extra_fascism; CFLAGS="$CFLAGS -g -O0 -W -Wall -Wfloat-equal -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs" |
2431 | fi | |
2432 | ||
89354eef | 2433 | |
13931fb2 | 2434 | |
89354eef | 2435 | ac_ext=c |
2436 | ac_cpp='$CPP $CPPFLAGS' | |
2437 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2438 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2439 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2440 | if test -n "$ac_tool_prefix"; then | |
2441 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2442 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
f58aa3e1 | 2443 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2444 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
89354eef | 2445 | if test "${ac_cv_prog_CC+set}" = set; then |
2446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2447 | else | |
2448 | if test -n "$CC"; then | |
2449 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2450 | else | |
2451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2452 | for as_dir in $PATH | |
2453 | do | |
2454 | IFS=$as_save_IFS | |
2455 | test -z "$as_dir" && as_dir=. | |
2456 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f58aa3e1 | 2457 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
89354eef | 2458 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2459 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2460 | break 2 | |
2461 | fi | |
2462 | done | |
2463 | done | |
f58aa3e1 | 2464 | IFS=$as_save_IFS |
89354eef | 2465 | |
2466 | fi | |
2467 | fi | |
2468 | CC=$ac_cv_prog_CC | |
2469 | if test -n "$CC"; then | |
f58aa3e1 | 2470 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2471 | echo "${ECHO_T}$CC" >&6; } | |
89354eef | 2472 | else |
f58aa3e1 | 2473 | { echo "$as_me:$LINENO: result: no" >&5 |
2474 | echo "${ECHO_T}no" >&6; } | |
89354eef | 2475 | fi |
2476 | ||
f58aa3e1 | 2477 | |
89354eef | 2478 | fi |
2479 | if test -z "$ac_cv_prog_CC"; then | |
2480 | ac_ct_CC=$CC | |
2481 | # Extract the first word of "gcc", so it can be a program name with args. | |
2482 | set dummy gcc; ac_word=$2 | |
f58aa3e1 | 2483 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2484 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
89354eef | 2485 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2487 | else | |
2488 | if test -n "$ac_ct_CC"; then | |
2489 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2490 | else | |
2491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2492 | for as_dir in $PATH | |
2493 | do | |
2494 | IFS=$as_save_IFS | |
2495 | test -z "$as_dir" && as_dir=. | |
2496 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f58aa3e1 | 2497 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
89354eef | 2498 | ac_cv_prog_ac_ct_CC="gcc" |
2499 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2500 | break 2 | |
2501 | fi | |
2502 | done | |
2503 | done | |
f58aa3e1 | 2504 | IFS=$as_save_IFS |
89354eef | 2505 | |
2506 | fi | |
2507 | fi | |
2508 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2509 | if test -n "$ac_ct_CC"; then | |
f58aa3e1 | 2510 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2511 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
89354eef | 2512 | else |
f58aa3e1 | 2513 | { echo "$as_me:$LINENO: result: no" >&5 |
2514 | echo "${ECHO_T}no" >&6; } | |
89354eef | 2515 | fi |
2516 | ||
f58aa3e1 | 2517 | if test "x$ac_ct_CC" = x; then |
2518 | CC="" | |
2519 | else | |
2520 | case $cross_compiling:$ac_tool_warned in | |
2521 | yes:) | |
2522 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2523 | whose name does not start with the host triplet. If you think this | |
2524 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2525 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2526 | whose name does not start with the host triplet. If you think this | |
2527 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2528 | ac_tool_warned=yes ;; | |
2529 | esac | |
2530 | CC=$ac_ct_CC | |
2531 | fi | |
89354eef | 2532 | else |
2533 | CC="$ac_cv_prog_CC" | |
2534 | fi | |
2535 | ||
2536 | if test -z "$CC"; then | |
f58aa3e1 | 2537 | if test -n "$ac_tool_prefix"; then |
2538 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
89354eef | 2539 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
f58aa3e1 | 2540 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2541 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
89354eef | 2542 | if test "${ac_cv_prog_CC+set}" = set; then |
2543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2544 | else | |
2545 | if test -n "$CC"; then | |
2546 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2547 | else | |
2548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2549 | for as_dir in $PATH | |
2550 | do | |
2551 | IFS=$as_save_IFS | |
2552 | test -z "$as_dir" && as_dir=. | |
2553 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f58aa3e1 | 2554 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
89354eef | 2555 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2556 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2557 | break 2 | |
2558 | fi | |
2559 | done | |
2560 | done | |
f58aa3e1 | 2561 | IFS=$as_save_IFS |
89354eef | 2562 | |
2563 | fi | |
2564 | fi | |
2565 | CC=$ac_cv_prog_CC | |
2566 | if test -n "$CC"; then | |
f58aa3e1 | 2567 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2568 | echo "${ECHO_T}$CC" >&6; } | |
89354eef | 2569 | else |
f58aa3e1 | 2570 | { echo "$as_me:$LINENO: result: no" >&5 |
2571 | echo "${ECHO_T}no" >&6; } | |
89354eef | 2572 | fi |
2573 | ||
89354eef | 2574 | |
f58aa3e1 | 2575 | fi |
89354eef | 2576 | fi |
2577 | if test -z "$CC"; then | |
2578 | # Extract the first word of "cc", so it can be a program name with args. | |
2579 | set dummy cc; ac_word=$2 | |
f58aa3e1 | 2580 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2581 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
89354eef | 2582 | if test "${ac_cv_prog_CC+set}" = set; then |
2583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2584 | else | |
2585 | if test -n "$CC"; then | |
2586 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2587 | else | |
2588 | ac_prog_rejected=no | |
2589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2590 | for as_dir in $PATH | |
2591 | do | |
2592 | IFS=$as_save_IFS | |
2593 | test -z "$as_dir" && as_dir=. | |
2594 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f58aa3e1 | 2595 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
89354eef | 2596 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2597 | ac_prog_rejected=yes | |
2598 | continue | |
2599 | fi | |
2600 | ac_cv_prog_CC="cc" | |
2601 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2602 | break 2 | |
2603 | fi | |
2604 | done | |
2605 | done | |
f58aa3e1 | 2606 | IFS=$as_save_IFS |
89354eef | 2607 | |
2608 | if test $ac_prog_rejected = yes; then | |
2609 | # We found a bogon in the path, so make sure we never use it. | |
2610 | set dummy $ac_cv_prog_CC | |
2611 | shift | |
2612 | if test $# != 0; then | |
2613 | # We chose a different compiler from the bogus one. | |
2614 | # However, it has the same basename, so the bogon will be chosen | |
2615 | # first if we set CC to just the basename; use the full file name. | |
2616 | shift | |
49ba971d | 2617 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
89354eef | 2618 | fi |
2619 | fi | |
2620 | fi | |
2621 | fi | |
2622 | CC=$ac_cv_prog_CC | |
2623 | if test -n "$CC"; then | |
f58aa3e1 | 2624 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2625 | echo "${ECHO_T}$CC" >&6; } | |
89354eef | 2626 | else |
f58aa3e1 | 2627 | { echo "$as_me:$LINENO: result: no" >&5 |
2628 | echo "${ECHO_T}no" >&6; } | |
89354eef | 2629 | fi |
2630 | ||
f58aa3e1 | 2631 | |
89354eef | 2632 | fi |
2633 | if test -z "$CC"; then | |
2634 | if test -n "$ac_tool_prefix"; then | |
f58aa3e1 | 2635 | for ac_prog in cl.exe |
89354eef | 2636 | do |
2637 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2638 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
f58aa3e1 | 2639 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
89354eef | 2641 | if test "${ac_cv_prog_CC+set}" = set; then |
2642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2643 | else | |
2644 | if test -n "$CC"; then | |
2645 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2646 | else | |
2647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2648 | for as_dir in $PATH | |
2649 | do | |
2650 | IFS=$as_save_IFS | |
2651 | test -z "$as_dir" && as_dir=. | |
2652 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f58aa3e1 | 2653 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
89354eef | 2654 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2656 | break 2 | |
2657 | fi | |
2658 | done | |
2659 | done | |
f58aa3e1 | 2660 | IFS=$as_save_IFS |
89354eef | 2661 | |
2662 | fi | |
2663 | fi | |
2664 | CC=$ac_cv_prog_CC | |
2665 | if test -n "$CC"; then | |
f58aa3e1 | 2666 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2667 | echo "${ECHO_T}$CC" >&6; } | |
89354eef | 2668 | else |
f58aa3e1 | 2669 | { echo "$as_me:$LINENO: result: no" >&5 |
2670 | echo "${ECHO_T}no" >&6; } | |
89354eef | 2671 | fi |
2672 | ||
f58aa3e1 | 2673 | |
89354eef | 2674 | test -n "$CC" && break |
2675 | done | |
2676 | fi | |
2677 | if test -z "$CC"; then | |
2678 | ac_ct_CC=$CC | |
f58aa3e1 | 2679 | for ac_prog in cl.exe |
89354eef | 2680 | do |
2681 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2682 | set dummy $ac_prog; ac_word=$2 | |
f58aa3e1 | 2683 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2684 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
89354eef | 2685 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2687 | else | |
2688 | if test -n "$ac_ct_CC"; then | |
2689 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2690 | else | |
2691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2692 | for as_dir in $PATH | |
2693 | do | |
2694 | IFS=$as_save_IFS | |
2695 | test -z "$as_dir" && as_dir=. | |
2696 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f58aa3e1 | 2697 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
89354eef | 2698 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2699 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2700 | break 2 | |
2701 | fi | |
2702 | done | |
2703 | done | |
f58aa3e1 | 2704 | IFS=$as_save_IFS |
89354eef | 2705 | |
2706 | fi | |
2707 | fi | |
2708 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2709 | if test -n "$ac_ct_CC"; then | |
f58aa3e1 | 2710 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2711 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
89354eef | 2712 | else |
f58aa3e1 | 2713 | { echo "$as_me:$LINENO: result: no" >&5 |
2714 | echo "${ECHO_T}no" >&6; } | |
89354eef | 2715 | fi |
2716 | ||
f58aa3e1 | 2717 | |
89354eef | 2718 | test -n "$ac_ct_CC" && break |
2719 | done | |
2720 | ||
f58aa3e1 | 2721 | if test "x$ac_ct_CC" = x; then |
2722 | CC="" | |
2723 | else | |
2724 | case $cross_compiling:$ac_tool_warned in | |
2725 | yes:) | |
2726 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2727 | whose name does not start with the host triplet. If you think this | |
2728 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2729 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2730 | whose name does not start with the host triplet. If you think this | |
2731 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2732 | ac_tool_warned=yes ;; | |
2733 | esac | |
2734 | CC=$ac_ct_CC | |
2735 | fi | |
89354eef | 2736 | fi |
2737 | ||
2738 | fi | |
2739 | ||
2740 | ||
49ba971d | 2741 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2742 | See \`config.log' for more details." >&5 | |
2743 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2744 | See \`config.log' for more details." >&2;} | |
89354eef | 2745 | { (exit 1); exit 1; }; } |
2746 | ||
2747 | # Provide some information about the compiler. | |
f58aa3e1 | 2748 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
89354eef | 2749 | ac_compiler=`set X $ac_compile; echo $2` |
f58aa3e1 | 2750 | { (ac_try="$ac_compiler --version >&5" |
2751 | case "(($ac_try" in | |
2752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2753 | *) ac_try_echo=$ac_try;; | |
2754 | esac | |
2755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2756 | (eval "$ac_compiler --version >&5") 2>&5 | |
89354eef | 2757 | ac_status=$? |
2758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2759 | (exit $ac_status); } | |
f58aa3e1 | 2760 | { (ac_try="$ac_compiler -v >&5" |
2761 | case "(($ac_try" in | |
2762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2763 | *) ac_try_echo=$ac_try;; | |
2764 | esac | |
2765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2766 | (eval "$ac_compiler -v >&5") 2>&5 | |
89354eef | 2767 | ac_status=$? |
2768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2769 | (exit $ac_status); } | |
f58aa3e1 | 2770 | { (ac_try="$ac_compiler -V >&5" |
2771 | case "(($ac_try" in | |
2772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2773 | *) ac_try_echo=$ac_try;; | |
2774 | esac | |
2775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2776 | (eval "$ac_compiler -V >&5") 2>&5 | |
89354eef | 2777 | ac_status=$? |
2778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2779 | (exit $ac_status); } | |
2780 | ||
2781 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 2782 | /* confdefs.h. */ |
2783 | _ACEOF | |
2784 | cat confdefs.h >>conftest.$ac_ext | |
2785 | cat >>conftest.$ac_ext <<_ACEOF | |
2786 | /* end confdefs.h. */ | |
89354eef | 2787 | |
89354eef | 2788 | int |
2789 | main () | |
2790 | { | |
2791 | ||
2792 | ; | |
2793 | return 0; | |
2794 | } | |
2795 | _ACEOF | |
2796 | ac_clean_files_save=$ac_clean_files | |
49ba971d | 2797 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
89354eef | 2798 | # Try to create an executable without -o first, disregard a.out. |
2799 | # It will help us diagnose broken compilers, and finding out an intuition | |
2800 | # of exeext. | |
f58aa3e1 | 2801 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2802 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
89354eef | 2803 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
f58aa3e1 | 2804 | # |
2805 | # List of possible output files, starting from the most likely. | |
2806 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2807 | # only as a last resort. b.out is created by i960 compilers. | |
2808 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2809 | # | |
2810 | # The IRIX 6 linker writes into existing files which may not be | |
2811 | # executable, retaining their permissions. Remove them first so a | |
2812 | # subsequent execution test works. | |
2813 | ac_rmfiles= | |
2814 | for ac_file in $ac_files | |
2815 | do | |
2816 | case $ac_file in | |
2817 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2818 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2819 | esac | |
2820 | done | |
2821 | rm -f $ac_rmfiles | |
2822 | ||
2823 | if { (ac_try="$ac_link_default" | |
2824 | case "(($ac_try" in | |
2825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2826 | *) ac_try_echo=$ac_try;; | |
2827 | esac | |
2828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2829 | (eval "$ac_link_default") 2>&5 | |
89354eef | 2830 | ac_status=$? |
2831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2832 | (exit $ac_status); }; then | |
f58aa3e1 | 2833 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2834 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2835 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2836 | # so that the user can short-circuit this test for compilers unknown to | |
2837 | # Autoconf. | |
2838 | for ac_file in $ac_files | |
49ba971d | 2839 | do |
2840 | test -f "$ac_file" || continue | |
89354eef | 2841 | case $ac_file in |
f58aa3e1 | 2842 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
2843 | ;; | |
49ba971d | 2844 | [ab].out ) |
f58aa3e1 | 2845 | # We found the default executable, but exeext='' is most |
2846 | # certainly right. | |
2847 | break;; | |
49ba971d | 2848 | *.* ) |
f58aa3e1 | 2849 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2850 | then :; else | |
2851 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2852 | fi | |
2853 | # We set ac_cv_exeext here because the later test for it is not | |
2854 | # safe: cross compilers may not add the suffix if given an `-o' | |
2855 | # argument, so we may need to know it at that point already. | |
2856 | # Even if this section looks crufty: it has the advantage of | |
2857 | # actually working. | |
2858 | break;; | |
49ba971d | 2859 | * ) |
f58aa3e1 | 2860 | break;; |
89354eef | 2861 | esac |
2862 | done | |
f58aa3e1 | 2863 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2864 | ||
89354eef | 2865 | else |
2866 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 2867 | sed 's/^/| /' conftest.$ac_ext >&5 |
2868 | ||
2869 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2870 | See \`config.log' for more details." >&5 | |
2871 | echo "$as_me: error: C compiler cannot create executables | |
2872 | See \`config.log' for more details." >&2;} | |
89354eef | 2873 | { (exit 77); exit 77; }; } |
2874 | fi | |
2875 | ||
2876 | ac_exeext=$ac_cv_exeext | |
f58aa3e1 | 2877 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2878 | echo "${ECHO_T}$ac_file" >&6; } | |
89354eef | 2879 | |
f58aa3e1 | 2880 | # Check that the compiler produces executables we can run. If not, either |
89354eef | 2881 | # the compiler is broken, or we cross compile. |
f58aa3e1 | 2882 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2883 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
89354eef | 2884 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2885 | # If not cross compiling, check that we can run a simple program. | |
2886 | if test "$cross_compiling" != yes; then | |
2887 | if { ac_try='./$ac_file' | |
f58aa3e1 | 2888 | { (case "(($ac_try" in |
2889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2890 | *) ac_try_echo=$ac_try;; | |
2891 | esac | |
2892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2893 | (eval "$ac_try") 2>&5 | |
89354eef | 2894 | ac_status=$? |
2895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2896 | (exit $ac_status); }; }; then | |
2897 | cross_compiling=no | |
2898 | else | |
2899 | if test "$cross_compiling" = maybe; then | |
2900 | cross_compiling=yes | |
2901 | else | |
2902 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
49ba971d | 2903 | If you meant to cross compile, use \`--host'. |
2904 | See \`config.log' for more details." >&5 | |
89354eef | 2905 | echo "$as_me: error: cannot run C compiled programs. |
49ba971d | 2906 | If you meant to cross compile, use \`--host'. |
2907 | See \`config.log' for more details." >&2;} | |
89354eef | 2908 | { (exit 1); exit 1; }; } |
2909 | fi | |
2910 | fi | |
2911 | fi | |
f58aa3e1 | 2912 | { echo "$as_me:$LINENO: result: yes" >&5 |
2913 | echo "${ECHO_T}yes" >&6; } | |
89354eef | 2914 | |
49ba971d | 2915 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
89354eef | 2916 | ac_clean_files=$ac_clean_files_save |
f58aa3e1 | 2917 | # Check that the compiler produces executables we can run. If not, either |
89354eef | 2918 | # the compiler is broken, or we cross compile. |
f58aa3e1 | 2919 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2920 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2921 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2922 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2923 | ||
2924 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2925 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2926 | if { (ac_try="$ac_link" | |
2927 | case "(($ac_try" in | |
2928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2929 | *) ac_try_echo=$ac_try;; | |
2930 | esac | |
2931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2932 | (eval "$ac_link") 2>&5 | |
89354eef | 2933 | ac_status=$? |
2934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2935 | (exit $ac_status); }; then | |
2936 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2937 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2938 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2939 | # `rm'. | |
49ba971d | 2940 | for ac_file in conftest.exe conftest conftest.*; do |
2941 | test -f "$ac_file" || continue | |
89354eef | 2942 | case $ac_file in |
f58aa3e1 | 2943 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
89354eef | 2944 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
f58aa3e1 | 2945 | break;; |
89354eef | 2946 | * ) break;; |
2947 | esac | |
2948 | done | |
2949 | else | |
49ba971d | 2950 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2951 | See \`config.log' for more details." >&5 | |
2952 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2953 | See \`config.log' for more details." >&2;} | |
89354eef | 2954 | { (exit 1); exit 1; }; } |
2955 | fi | |
2956 | ||
2957 | rm -f conftest$ac_cv_exeext | |
f58aa3e1 | 2958 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2959 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
89354eef | 2960 | |
2961 | rm -f conftest.$ac_ext | |
2962 | EXEEXT=$ac_cv_exeext | |
2963 | ac_exeext=$EXEEXT | |
f58aa3e1 | 2964 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2965 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
89354eef | 2966 | if test "${ac_cv_objext+set}" = set; then |
2967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2968 | else | |
2969 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 2970 | /* confdefs.h. */ |
2971 | _ACEOF | |
2972 | cat confdefs.h >>conftest.$ac_ext | |
2973 | cat >>conftest.$ac_ext <<_ACEOF | |
2974 | /* end confdefs.h. */ | |
89354eef | 2975 | |
89354eef | 2976 | int |
2977 | main () | |
2978 | { | |
2979 | ||
2980 | ; | |
2981 | return 0; | |
2982 | } | |
2983 | _ACEOF | |
2984 | rm -f conftest.o conftest.obj | |
f58aa3e1 | 2985 | if { (ac_try="$ac_compile" |
2986 | case "(($ac_try" in | |
2987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2988 | *) ac_try_echo=$ac_try;; | |
2989 | esac | |
2990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2991 | (eval "$ac_compile") 2>&5 | |
89354eef | 2992 | ac_status=$? |
2993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2994 | (exit $ac_status); }; then | |
f58aa3e1 | 2995 | for ac_file in conftest.o conftest.obj conftest.*; do |
2996 | test -f "$ac_file" || continue; | |
89354eef | 2997 | case $ac_file in |
f58aa3e1 | 2998 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
89354eef | 2999 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3000 | break;; | |
3001 | esac | |
3002 | done | |
3003 | else | |
3004 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 3005 | sed 's/^/| /' conftest.$ac_ext >&5 |
3006 | ||
3007 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3008 | See \`config.log' for more details." >&5 | |
3009 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3010 | See \`config.log' for more details." >&2;} | |
89354eef | 3011 | { (exit 1); exit 1; }; } |
3012 | fi | |
3013 | ||
3014 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3015 | fi | |
f58aa3e1 | 3016 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3017 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
89354eef | 3018 | OBJEXT=$ac_cv_objext |
3019 | ac_objext=$OBJEXT | |
f58aa3e1 | 3020 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3021 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
89354eef | 3022 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3024 | else | |
3025 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 3026 | /* confdefs.h. */ |
3027 | _ACEOF | |
3028 | cat confdefs.h >>conftest.$ac_ext | |
3029 | cat >>conftest.$ac_ext <<_ACEOF | |
3030 | /* end confdefs.h. */ | |
89354eef | 3031 | |
89354eef | 3032 | int |
3033 | main () | |
3034 | { | |
3035 | #ifndef __GNUC__ | |
3036 | choke me | |
3037 | #endif | |
3038 | ||
3039 | ; | |
3040 | return 0; | |
3041 | } | |
3042 | _ACEOF | |
3043 | rm -f conftest.$ac_objext | |
f58aa3e1 | 3044 | if { (ac_try="$ac_compile" |
3045 | case "(($ac_try" in | |
3046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3047 | *) ac_try_echo=$ac_try;; | |
3048 | esac | |
3049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3050 | (eval "$ac_compile") 2>conftest.er1 | |
89354eef | 3051 | ac_status=$? |
f58aa3e1 | 3052 | grep -v '^ *+' conftest.er1 >conftest.err |
3053 | rm -f conftest.er1 | |
3054 | cat conftest.err >&5 | |
89354eef | 3055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3056 | (exit $ac_status); } && | |
f58aa3e1 | 3057 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3058 | { (case "(($ac_try" in | |
3059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3060 | *) ac_try_echo=$ac_try;; | |
3061 | esac | |
3062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3063 | (eval "$ac_try") 2>&5 | |
3064 | ac_status=$? | |
3065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3066 | (exit $ac_status); }; } && | |
3067 | { ac_try='test -s conftest.$ac_objext' | |
3068 | { (case "(($ac_try" in | |
3069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3070 | *) ac_try_echo=$ac_try;; | |
3071 | esac | |
3072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3073 | (eval "$ac_try") 2>&5 | |
89354eef | 3074 | ac_status=$? |
3075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3076 | (exit $ac_status); }; }; then | |
3077 | ac_compiler_gnu=yes | |
3078 | else | |
3079 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 3080 | sed 's/^/| /' conftest.$ac_ext >&5 |
3081 | ||
f58aa3e1 | 3082 | ac_compiler_gnu=no |
89354eef | 3083 | fi |
f58aa3e1 | 3084 | |
3085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
89354eef | 3086 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3087 | ||
3088 | fi | |
f58aa3e1 | 3089 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3090 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
89354eef | 3091 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3092 | ac_test_CFLAGS=${CFLAGS+set} | |
3093 | ac_save_CFLAGS=$CFLAGS | |
f58aa3e1 | 3094 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3095 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
89354eef | 3096 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3098 | else | |
f58aa3e1 | 3099 | ac_save_c_werror_flag=$ac_c_werror_flag |
3100 | ac_c_werror_flag=yes | |
3101 | ac_cv_prog_cc_g=no | |
3102 | CFLAGS="-g" | |
3103 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 3104 | /* confdefs.h. */ |
3105 | _ACEOF | |
3106 | cat confdefs.h >>conftest.$ac_ext | |
3107 | cat >>conftest.$ac_ext <<_ACEOF | |
3108 | /* end confdefs.h. */ | |
89354eef | 3109 | |
89354eef | 3110 | int |
3111 | main () | |
3112 | { | |
3113 | ||
3114 | ; | |
3115 | return 0; | |
3116 | } | |
3117 | _ACEOF | |
3118 | rm -f conftest.$ac_objext | |
f58aa3e1 | 3119 | if { (ac_try="$ac_compile" |
3120 | case "(($ac_try" in | |
3121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3122 | *) ac_try_echo=$ac_try;; | |
3123 | esac | |
3124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3125 | (eval "$ac_compile") 2>conftest.er1 | |
89354eef | 3126 | ac_status=$? |
f58aa3e1 | 3127 | grep -v '^ *+' conftest.er1 >conftest.err |
3128 | rm -f conftest.er1 | |
3129 | cat conftest.err >&5 | |
89354eef | 3130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3131 | (exit $ac_status); } && | |
f58aa3e1 | 3132 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3133 | { (case "(($ac_try" in | |
3134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3135 | *) ac_try_echo=$ac_try;; | |
3136 | esac | |
3137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3138 | (eval "$ac_try") 2>&5 | |
3139 | ac_status=$? | |
3140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3141 | (exit $ac_status); }; } && | |
3142 | { ac_try='test -s conftest.$ac_objext' | |
3143 | { (case "(($ac_try" in | |
3144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3145 | *) ac_try_echo=$ac_try;; | |
3146 | esac | |
3147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3148 | (eval "$ac_try") 2>&5 | |
89354eef | 3149 | ac_status=$? |
3150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d7ad87fe | 3151 | (exit $ac_status); }; }; then |
3152 | ac_cv_prog_cc_g=yes | |
aa93efde | 3153 | else |
3154 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 3155 | sed 's/^/| /' conftest.$ac_ext >&5 |
3156 | ||
f58aa3e1 | 3157 | CFLAGS="" |
3158 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 3159 | /* confdefs.h. */ |
3160 | _ACEOF | |
3161 | cat confdefs.h >>conftest.$ac_ext | |
3162 | cat >>conftest.$ac_ext <<_ACEOF | |
3163 | /* end confdefs.h. */ | |
f58aa3e1 | 3164 | |
49ba971d | 3165 | int |
3166 | main () | |
3167 | { | |
f58aa3e1 | 3168 | |
49ba971d | 3169 | ; |
3170 | return 0; | |
3171 | } | |
3172 | _ACEOF | |
f58aa3e1 | 3173 | rm -f conftest.$ac_objext |
3174 | if { (ac_try="$ac_compile" | |
3175 | case "(($ac_try" in | |
3176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3177 | *) ac_try_echo=$ac_try;; | |
3178 | esac | |
3179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3180 | (eval "$ac_compile") 2>conftest.er1 | |
49ba971d | 3181 | ac_status=$? |
f58aa3e1 | 3182 | grep -v '^ *+' conftest.er1 >conftest.err |
3183 | rm -f conftest.er1 | |
3184 | cat conftest.err >&5 | |
49ba971d | 3185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3186 | (exit $ac_status); } && | |
f58aa3e1 | 3187 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3188 | { (case "(($ac_try" in | |
3189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3190 | *) ac_try_echo=$ac_try;; | |
3191 | esac | |
3192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3193 | (eval "$ac_try") 2>&5 | |
3194 | ac_status=$? | |
3195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3196 | (exit $ac_status); }; } && | |
3197 | { ac_try='test -s conftest.$ac_objext' | |
3198 | { (case "(($ac_try" in | |
3199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3200 | *) ac_try_echo=$ac_try;; | |
3201 | esac | |
3202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3203 | (eval "$ac_try") 2>&5 | |
49ba971d | 3204 | ac_status=$? |
3205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3206 | (exit $ac_status); }; }; then | |
f58aa3e1 | 3207 | : |
49ba971d | 3208 | else |
3209 | echo "$as_me: failed program was:" >&5 | |
3210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3211 | ||
f58aa3e1 | 3212 | ac_c_werror_flag=$ac_save_c_werror_flag |
3213 | CFLAGS="-g" | |
3214 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 3215 | /* confdefs.h. */ |
3216 | _ACEOF | |
3217 | cat confdefs.h >>conftest.$ac_ext | |
3218 | cat >>conftest.$ac_ext <<_ACEOF | |
3219 | /* end confdefs.h. */ | |
f58aa3e1 | 3220 | |
89354eef | 3221 | int |
3222 | main () | |
3223 | { | |
f58aa3e1 | 3224 | |
89354eef | 3225 | ; |
3226 | return 0; | |
3227 | } | |
3228 | _ACEOF | |
3229 | rm -f conftest.$ac_objext | |
f58aa3e1 | 3230 | if { (ac_try="$ac_compile" |
3231 | case "(($ac_try" in | |
3232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3233 | *) ac_try_echo=$ac_try;; | |
3234 | esac | |
3235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3236 | (eval "$ac_compile") 2>conftest.er1 | |
89354eef | 3237 | ac_status=$? |
f58aa3e1 | 3238 | grep -v '^ *+' conftest.er1 >conftest.err |
3239 | rm -f conftest.er1 | |
3240 | cat conftest.err >&5 | |
89354eef | 3241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3242 | (exit $ac_status); } && | |
f58aa3e1 | 3243 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3244 | { (case "(($ac_try" in | |
3245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3246 | *) ac_try_echo=$ac_try;; | |
3247 | esac | |
3248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3249 | (eval "$ac_try") 2>&5 | |
3250 | ac_status=$? | |
3251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3252 | (exit $ac_status); }; } && | |
3253 | { ac_try='test -s conftest.$ac_objext' | |
3254 | { (case "(($ac_try" in | |
3255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3256 | *) ac_try_echo=$ac_try;; | |
3257 | esac | |
3258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3259 | (eval "$ac_try") 2>&5 | |
89354eef | 3260 | ac_status=$? |
3261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3262 | (exit $ac_status); }; }; then | |
f58aa3e1 | 3263 | ac_cv_prog_cc_g=yes |
89354eef | 3264 | else |
3265 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 3266 | sed 's/^/| /' conftest.$ac_ext >&5 |
3267 | ||
f58aa3e1 | 3268 | |
89354eef | 3269 | fi |
f58aa3e1 | 3270 | |
3271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3272 | fi | |
3273 | ||
3274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3275 | fi | |
3276 | ||
3277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3278 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3279 | fi | |
3280 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3281 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
3282 | if test "$ac_test_CFLAGS" = set; then | |
3283 | CFLAGS=$ac_save_CFLAGS | |
3284 | elif test $ac_cv_prog_cc_g = yes; then | |
3285 | if test "$GCC" = yes; then | |
3286 | CFLAGS="-g -O2" | |
3287 | else | |
3288 | CFLAGS="-g" | |
3289 | fi | |
3290 | else | |
3291 | if test "$GCC" = yes; then | |
3292 | CFLAGS="-O2" | |
3293 | else | |
3294 | CFLAGS= | |
3295 | fi | |
3296 | fi | |
3297 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
3298 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
3299 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
3300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3301 | else | |
3302 | ac_cv_prog_cc_c89=no | |
3303 | ac_save_CC=$CC | |
3304 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 3305 | /* confdefs.h. */ |
3306 | _ACEOF | |
3307 | cat confdefs.h >>conftest.$ac_ext | |
3308 | cat >>conftest.$ac_ext <<_ACEOF | |
3309 | /* end confdefs.h. */ | |
f58aa3e1 | 3310 | #include <stdarg.h> |
3311 | #include <stdio.h> | |
3312 | #include <sys/types.h> | |
3313 | #include <sys/stat.h> | |
3314 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3315 | struct buf { int x; }; | |
3316 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3317 | static char *e (p, i) | |
3318 | char **p; | |
3319 | int i; | |
3320 | { | |
3321 | return p[i]; | |
3322 | } | |
3323 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3324 | { | |
3325 | char *s; | |
3326 | va_list v; | |
3327 | va_start (v,p); | |
3328 | s = g (p, va_arg (v,int)); | |
3329 | va_end (v); | |
3330 | return s; | |
3331 | } | |
3332 | ||
3333 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3334 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3335 | These don't provoke an error unfortunately, instead are silently treated | |
3336 | as 'x'. The following induces an error, until -std is added to get | |
3337 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3338 | array size at least. It's necessary to write '\x00'==0 to get something | |
3339 | that's true only with -std. */ | |
3340 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3341 | ||
3342 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3343 | inside strings and character constants. */ | |
3344 | #define FOO(x) 'x' | |
3345 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3346 | ||
3347 | int test (int i, double x); | |
3348 | struct s1 {int (*f) (int a);}; | |
3349 | struct s2 {int (*f) (double a);}; | |
3350 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3351 | int argc; | |
3352 | char **argv; | |
89354eef | 3353 | int |
3354 | main () | |
3355 | { | |
f58aa3e1 | 3356 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
89354eef | 3357 | ; |
3358 | return 0; | |
3359 | } | |
3360 | _ACEOF | |
f58aa3e1 | 3361 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3362 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3363 | do | |
3364 | CC="$ac_save_CC $ac_arg" | |
3365 | rm -f conftest.$ac_objext | |
3366 | if { (ac_try="$ac_compile" | |
3367 | case "(($ac_try" in | |
3368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3369 | *) ac_try_echo=$ac_try;; | |
3370 | esac | |
3371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3372 | (eval "$ac_compile") 2>conftest.er1 | |
89354eef | 3373 | ac_status=$? |
f58aa3e1 | 3374 | grep -v '^ *+' conftest.er1 >conftest.err |
3375 | rm -f conftest.er1 | |
3376 | cat conftest.err >&5 | |
89354eef | 3377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3378 | (exit $ac_status); } && | |
f58aa3e1 | 3379 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3380 | { (case "(($ac_try" in | |
3381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3382 | *) ac_try_echo=$ac_try;; | |
3383 | esac | |
3384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3385 | (eval "$ac_try") 2>&5 | |
3386 | ac_status=$? | |
3387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3388 | (exit $ac_status); }; } && | |
3389 | { ac_try='test -s conftest.$ac_objext' | |
3390 | { (case "(($ac_try" in | |
3391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3392 | *) ac_try_echo=$ac_try;; | |
3393 | esac | |
3394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3395 | (eval "$ac_try") 2>&5 | |
89354eef | 3396 | ac_status=$? |
3397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3398 | (exit $ac_status); }; }; then | |
f58aa3e1 | 3399 | ac_cv_prog_cc_c89=$ac_arg |
89354eef | 3400 | else |
3401 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 3402 | sed 's/^/| /' conftest.$ac_ext >&5 |
3403 | ||
f58aa3e1 | 3404 | |
89354eef | 3405 | fi |
f58aa3e1 | 3406 | |
3407 | rm -f core conftest.err conftest.$ac_objext | |
3408 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
89354eef | 3409 | done |
f58aa3e1 | 3410 | rm -f conftest.$ac_ext |
3411 | CC=$ac_save_CC | |
3412 | ||
89354eef | 3413 | fi |
f58aa3e1 | 3414 | # AC_CACHE_VAL |
3415 | case "x$ac_cv_prog_cc_c89" in | |
3416 | x) | |
3417 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
3418 | echo "${ECHO_T}none needed" >&6; } ;; | |
3419 | xno) | |
3420 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3421 | echo "${ECHO_T}unsupported" >&6; } ;; | |
3422 | *) | |
3423 | CC="$CC $ac_cv_prog_cc_c89" | |
3424 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3425 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
3426 | esac | |
89354eef | 3427 | |
49ba971d | 3428 | |
89354eef | 3429 | ac_ext=c |
3430 | ac_cpp='$CPP $CPPFLAGS' | |
3431 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3432 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3433 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
f58aa3e1 | 3434 | DEPDIR="${am__leading_dot}deps" |
89354eef | 3435 | |
f58aa3e1 | 3436 | ac_config_commands="$ac_config_commands depfiles" |
89354eef | 3437 | |
3438 | ||
3439 | am_make=${MAKE-make} | |
3440 | cat > confinc << 'END' | |
f58aa3e1 | 3441 | am__doit: |
89354eef | 3442 | @echo done |
f58aa3e1 | 3443 | .PHONY: am__doit |
89354eef | 3444 | END |
3445 | # If we don't find an include directive, just comment out the code. | |
f58aa3e1 | 3446 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3447 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | |
89354eef | 3448 | am__include="#" |
3449 | am__quote= | |
3450 | _am_result=none | |
3451 | # First try GNU make style include. | |
3452 | echo "include confinc" > confmf | |
3453 | # We grep out `Entering directory' and `Leaving directory' | |
3454 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3455 | # In particular we don't look at `^make:' because GNU make might | |
3456 | # be invoked under some other name (usually "gmake"), in which | |
3457 | # case it prints its new name instead of `make'. | |
f58aa3e1 | 3458 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
89354eef | 3459 | am__include=include |
3460 | am__quote= | |
3461 | _am_result=GNU | |
3462 | fi | |
3463 | # Now try BSD make style include. | |
3464 | if test "$am__include" = "#"; then | |
3465 | echo '.include "confinc"' > confmf | |
3466 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3467 | am__include=.include | |
3468 | am__quote="\"" | |
3469 | _am_result=BSD | |
3470 | fi | |
3471 | fi | |
3472 | ||
3473 | ||
f58aa3e1 | 3474 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
3475 | echo "${ECHO_T}$_am_result" >&6; } | |
89354eef | 3476 | rm -f confinc confmf |
3477 | ||
f58aa3e1 | 3478 | # Check whether --enable-dependency-tracking was given. |
89354eef | 3479 | if test "${enable_dependency_tracking+set}" = set; then |
f58aa3e1 | 3480 | enableval=$enable_dependency_tracking; |
3481 | fi | |
89354eef | 3482 | |
89354eef | 3483 | if test "x$enable_dependency_tracking" != xno; then |
3484 | am_depcomp="$ac_aux_dir/depcomp" | |
3485 | AMDEPBACKSLASH='\' | |
3486 | fi | |
3487 | ||
3488 | ||
3489 | if test "x$enable_dependency_tracking" != xno; then | |
3490 | AMDEP_TRUE= | |
3491 | AMDEP_FALSE='#' | |
3492 | else | |
3493 | AMDEP_TRUE='#' | |
3494 | AMDEP_FALSE= | |
3495 | fi | |
3496 | ||
3497 | ||
3498 | ||
3499 | ||
3500 | depcc="$CC" am_compiler_list= | |
3501 | ||
f58aa3e1 | 3502 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3503 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
89354eef | 3504 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3506 | else | |
3507 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3508 | # We make a subdir and do the tests there. Otherwise we can end up | |
3509 | # making bogus files that we don't know about and never remove. For | |
3510 | # instance it was reported that on HP-UX the gcc test will end up | |
3511 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3512 | # in D'. | |
3513 | mkdir conftest.dir | |
3514 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3515 | # using a relative directory. | |
3516 | cp "$am_depcomp" conftest.dir | |
3517 | cd conftest.dir | |
f58aa3e1 | 3518 | # We will build objects and dependencies in a subdirectory because |
3519 | # it helps to detect inapplicable dependency modes. For instance | |
3520 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3521 | # side effect of compilation, but ICC will put the dependencies in | |
3522 | # the current directory while Tru64 will put them in the object | |
3523 | # directory. | |
3524 | mkdir sub | |
89354eef | 3525 | |
3526 | am_cv_CC_dependencies_compiler_type=none | |
3527 | if test "$am_compiler_list" = ""; then | |
3528 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3529 | fi | |
3530 | for depmode in $am_compiler_list; do | |
f58aa3e1 | 3531 | # Setup a source with many dependencies, because some compilers |
3532 | # like to wrap large dependency lists on column 80 (with \), and | |
3533 | # we should not choose a depcomp mode which is confused by this. | |
3534 | # | |
89354eef | 3535 | # We need to recreate these files for each test, as the compiler may |
3536 | # overwrite some of them when testing with obscure command lines. | |
3537 | # This happens at least with the AIX C compiler. | |
f58aa3e1 | 3538 | : > sub/conftest.c |
3539 | for i in 1 2 3 4 5 6; do | |
3540 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3541 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3542 | # Solaris 8's {/usr,}/bin/sh. | |
3543 | touch sub/conftst$i.h | |
3544 | done | |
3545 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
89354eef | 3546 | |
3547 | case $depmode in | |
3548 | nosideeffect) | |
3549 | # after this tag, mechanisms are not by side-effect, so they'll | |
3550 | # only be used when explicitly requested | |
3551 | if test "x$enable_dependency_tracking" = xyes; then | |
3552 | continue | |
3553 | else | |
3554 | break | |
3555 | fi | |
3556 | ;; | |
3557 | none) break ;; | |
3558 | esac | |
3559 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3560 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3561 | # handle `-M -o', and we need to detect this. | |
3562 | if depmode=$depmode \ | |
f58aa3e1 | 3563 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3564 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3565 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3566 | >/dev/null 2>conftest.err && | |
3567 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3568 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
89354eef | 3569 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
f58aa3e1 | 3570 | # icc doesn't choke on unknown options, it will just issue warnings |
3571 | # or remarks (even with -Werror). So we grep stderr for any message | |
3572 | # that says an option was ignored or not supported. | |
3573 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3574 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3575 | # The diagnosis changed in icc 8.0: | |
3576 | # icc: Command line remark: option '-MP' not supported | |
3577 | if (grep 'ignoring option' conftest.err || | |
3578 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3579 | am_cv_CC_dependencies_compiler_type=$depmode | |
3580 | break | |
3581 | fi | |
89354eef | 3582 | fi |
3583 | done | |
3584 | ||
3585 | cd .. | |
3586 | rm -rf conftest.dir | |
3587 | else | |
3588 | am_cv_CC_dependencies_compiler_type=none | |
3589 | fi | |
3590 | ||
3591 | fi | |
f58aa3e1 | 3592 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3593 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | |
89354eef | 3594 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3595 | ||
3596 | ||
f58aa3e1 | 3597 | |
3598 | if | |
3599 | test "x$enable_dependency_tracking" != xno \ | |
3600 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3601 | am__fastdepCC_TRUE= | |
3602 | am__fastdepCC_FALSE='#' | |
3603 | else | |
3604 | am__fastdepCC_TRUE='#' | |
3605 | am__fastdepCC_FALSE= | |
3606 | fi | |
3607 | ||
3608 | ||
3609 | # Check whether --enable-shared was given. | |
89354eef | 3610 | if test "${enable_shared+set}" = set; then |
f58aa3e1 | 3611 | enableval=$enable_shared; p=${PACKAGE-default} |
3612 | case $enableval in | |
3613 | yes) enable_shared=yes ;; | |
3614 | no) enable_shared=no ;; | |
3615 | *) | |
3616 | enable_shared=no | |
3617 | # Look at the argument we got. We use all the common list separators. | |
3618 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3619 | for pkg in $enableval; do | |
3620 | IFS="$lt_save_ifs" | |
3621 | if test "X$pkg" = "X$p"; then | |
3622 | enable_shared=yes | |
3623 | fi | |
3624 | done | |
3625 | IFS="$lt_save_ifs" | |
3626 | ;; | |
3627 | esac | |
89354eef | 3628 | else |
3629 | enable_shared=yes | |
f58aa3e1 | 3630 | fi |
3631 | ||
3632 | ||
3633 | # Check whether --enable-static was given. | |
89354eef | 3634 | if test "${enable_static+set}" = set; then |
f58aa3e1 | 3635 | enableval=$enable_static; p=${PACKAGE-default} |
3636 | case $enableval in | |
3637 | yes) enable_static=yes ;; | |
3638 | no) enable_static=no ;; | |
3639 | *) | |
3640 | enable_static=no | |
3641 | # Look at the argument we got. We use all the common list separators. | |
3642 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3643 | for pkg in $enableval; do | |
3644 | IFS="$lt_save_ifs" | |
3645 | if test "X$pkg" = "X$p"; then | |
3646 | enable_static=yes | |
3647 | fi | |
3648 | done | |
3649 | IFS="$lt_save_ifs" | |
3650 | ;; | |
3651 | esac | |
89354eef | 3652 | else |
3653 | enable_static=yes | |
f58aa3e1 | 3654 | fi |
3655 | ||
3656 | ||
3657 | # Check whether --enable-fast-install was given. | |
89354eef | 3658 | if test "${enable_fast_install+set}" = set; then |
f58aa3e1 | 3659 | enableval=$enable_fast_install; p=${PACKAGE-default} |
3660 | case $enableval in | |
3661 | yes) enable_fast_install=yes ;; | |
3662 | no) enable_fast_install=no ;; | |
3663 | *) | |
3664 | enable_fast_install=no | |
3665 | # Look at the argument we got. We use all the common list separators. | |
3666 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3667 | for pkg in $enableval; do | |
3668 | IFS="$lt_save_ifs" | |
3669 | if test "X$pkg" = "X$p"; then | |
3670 | enable_fast_install=yes | |
3671 | fi | |
3672 | done | |
3673 | IFS="$lt_save_ifs" | |
3674 | ;; | |
3675 | esac | |
89354eef | 3676 | else |
3677 | enable_fast_install=yes | |
f58aa3e1 | 3678 | fi |
3679 | ||
3680 | ||
89354eef | 3681 | # Make sure we can run config.sub. |
f58aa3e1 | 3682 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
3683 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
3684 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
89354eef | 3685 | { (exit 1); exit 1; }; } |
3686 | ||
f58aa3e1 | 3687 | { echo "$as_me:$LINENO: checking build system type" >&5 |
3688 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
89354eef | 3689 | if test "${ac_cv_build+set}" = set; then |
3690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3691 | else | |
f58aa3e1 | 3692 | ac_build_alias=$build_alias |
3693 | test "x$ac_build_alias" = x && | |
3694 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3695 | test "x$ac_build_alias" = x && | |
89354eef | 3696 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3697 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
3698 | { (exit 1); exit 1; }; } | |
f58aa3e1 | 3699 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
3700 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
3701 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
89354eef | 3702 | { (exit 1); exit 1; }; } |
3703 | ||
3704 | fi | |
f58aa3e1 | 3705 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3706 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
3707 | case $ac_cv_build in | |
3708 | *-*-*) ;; | |
3709 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
3710 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
3711 | { (exit 1); exit 1; }; };; | |
3712 | esac | |
89354eef | 3713 | build=$ac_cv_build |
f58aa3e1 | 3714 | ac_save_IFS=$IFS; IFS='-' |
3715 | set x $ac_cv_build | |
3716 | shift | |
3717 | build_cpu=$1 | |
3718 | build_vendor=$2 | |
3719 | shift; shift | |
3720 | # Remember, the first character of IFS is used to create $*, | |
3721 | # except with old shells: | |
3722 | build_os=$* | |
3723 | IFS=$ac_save_IFS | |
3724 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3725 | ||
3726 | ||
3727 | { echo "$as_me:$LINENO: checking host system type" >&5 | |
3728 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
89354eef | 3729 | if test "${ac_cv_host+set}" = set; then |
3730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3731 | else | |
f58aa3e1 | 3732 | if test "x$host_alias" = x; then |
3733 | ac_cv_host=$ac_cv_build | |
3734 | else | |
3735 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3736 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
3737 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
89354eef | 3738 | { (exit 1); exit 1; }; } |
89354eef | 3739 | fi |
3740 | ||
89354eef | 3741 | fi |
f58aa3e1 | 3742 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3743 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
3744 | case $ac_cv_host in | |
3745 | *-*-*) ;; | |
3746 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
3747 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
3748 | { (exit 1); exit 1; }; };; | |
3749 | esac | |
3750 | host=$ac_cv_host | |
3751 | ac_save_IFS=$IFS; IFS='-' | |
3752 | set x $ac_cv_host | |
3753 | shift | |
3754 | host_cpu=$1 | |
3755 | host_vendor=$2 | |
3756 | shift; shift | |
3757 | # Remember, the first character of IFS is used to create $*, | |
3758 | # except with old shells: | |
3759 | host_os=$* | |
3760 | IFS=$ac_save_IFS | |
3761 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3762 | ||
3763 | ||
3764 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
3765 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } | |
3766 | if test "${lt_cv_path_SED+set}" = set; then | |
89354eef | 3767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3768 | else | |
f58aa3e1 | 3769 | # Loop through the user's path and test for sed and gsed. |
3770 | # Then use that list of sed's as ones to test for truncation. | |
3771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3772 | for as_dir in $PATH | |
3773 | do | |
3774 | IFS=$as_save_IFS | |
3775 | test -z "$as_dir" && as_dir=. | |
3776 | for lt_ac_prog in sed gsed; do | |
3777 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3778 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
3779 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
89354eef | 3780 | fi |
f58aa3e1 | 3781 | done |
3782 | done | |
3783 | done | |
3784 | lt_ac_max=0 | |
3785 | lt_ac_count=0 | |
3786 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
3787 | # along with /bin/sed that truncates output. | |
3788 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
3789 | test ! -f $lt_ac_sed && continue | |
3790 | cat /dev/null > conftest.in | |
3791 | lt_ac_count=0 | |
3792 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
3793 | # Check for GNU sed and select it if it is found. | |
3794 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
3795 | lt_cv_path_SED=$lt_ac_sed | |
3796 | break | |
3797 | fi | |
3798 | while true; do | |
3799 | cat conftest.in conftest.in >conftest.tmp | |
3800 | mv conftest.tmp conftest.in | |
3801 | cp conftest.in conftest.nl | |
3802 | echo >>conftest.nl | |
3803 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
3804 | cmp -s conftest.out conftest.nl || break | |
3805 | # 10000 chars as input seems more than enough | |
3806 | test $lt_ac_count -gt 10 && break | |
3807 | lt_ac_count=`expr $lt_ac_count + 1` | |
3808 | if test $lt_ac_count -gt $lt_ac_max; then | |
3809 | lt_ac_max=$lt_ac_count | |
3810 | lt_cv_path_SED=$lt_ac_sed | |
89354eef | 3811 | fi |
3812 | done | |
f58aa3e1 | 3813 | done |
3814 | ||
89354eef | 3815 | fi |
3816 | ||
f58aa3e1 | 3817 | SED=$lt_cv_path_SED |
3818 | { echo "$as_me:$LINENO: result: $SED" >&5 | |
3819 | echo "${ECHO_T}$SED" >&6; } | |
3820 | ||
3821 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
3822 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3823 | if test "${ac_cv_path_GREP+set}" = set; then | |
3824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89354eef | 3825 | else |
f58aa3e1 | 3826 | # Extract the first word of "grep ggrep" to use in msg output |
3827 | if test -z "$GREP"; then | |
3828 | set dummy grep ggrep; ac_prog_name=$2 | |
3829 | if test "${ac_cv_path_GREP+set}" = set; then | |
3830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3831 | else | |
3832 | ac_path_GREP_found=false | |
3833 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3835 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3836 | do | |
3837 | IFS=$as_save_IFS | |
3838 | test -z "$as_dir" && as_dir=. | |
3839 | for ac_prog in grep ggrep; do | |
3840 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3841 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3842 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue | |
3843 | # Check for GNU ac_path_GREP and select it if it is found. | |
3844 | # Check for GNU $ac_path_GREP | |
3845 | case `"$ac_path_GREP" --version 2>&1` in | |
3846 | *GNU*) | |
3847 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3848 | *) | |
3849 | ac_count=0 | |
3850 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3851 | while : | |
3852 | do | |
3853 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3854 | mv "conftest.tmp" "conftest.in" | |
3855 | cp "conftest.in" "conftest.nl" | |
3856 | echo 'GREP' >> "conftest.nl" | |
3857 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3858 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3859 | ac_count=`expr $ac_count + 1` | |
3860 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3861 | # Best one so far, save it but keep looking for a better one | |
3862 | ac_cv_path_GREP="$ac_path_GREP" | |
3863 | ac_path_GREP_max=$ac_count | |
3864 | fi | |
3865 | # 10*(2^10) chars as input seems more than enough | |
3866 | test $ac_count -gt 10 && break | |
3867 | done | |
3868 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3869 | esac | |
3870 | ||
3871 | ||
3872 | $ac_path_GREP_found && break 3 | |
3873 | done | |
3874 | done | |
3875 | ||
3876 | done | |
3877 | IFS=$as_save_IFS | |
3878 | ||
3879 | ||
3880 | fi | |
3881 | ||
3882 | GREP="$ac_cv_path_GREP" | |
3883 | if test -z "$GREP"; then | |
3884 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3885 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3886 | { (exit 1); exit 1; }; } | |
3887 | fi | |
3888 | ||
3889 | else | |
3890 | ac_cv_path_GREP=$GREP | |
3891 | fi | |
3892 | ||
3893 | ||
3894 | fi | |
3895 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3896 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3897 | GREP="$ac_cv_path_GREP" | |
3898 | ||
3899 | ||
3900 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3901 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3902 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3904 | else | |
3905 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3906 | then ac_cv_path_EGREP="$GREP -E" | |
3907 | else | |
3908 | # Extract the first word of "egrep" to use in msg output | |
3909 | if test -z "$EGREP"; then | |
3910 | set dummy egrep; ac_prog_name=$2 | |
3911 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3913 | else | |
3914 | ac_path_EGREP_found=false | |
3915 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3917 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3918 | do | |
3919 | IFS=$as_save_IFS | |
3920 | test -z "$as_dir" && as_dir=. | |
3921 | for ac_prog in egrep; do | |
3922 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3923 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3924 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue | |
3925 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3926 | # Check for GNU $ac_path_EGREP | |
3927 | case `"$ac_path_EGREP" --version 2>&1` in | |
3928 | *GNU*) | |
3929 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3930 | *) | |
3931 | ac_count=0 | |
3932 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3933 | while : | |
3934 | do | |
3935 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3936 | mv "conftest.tmp" "conftest.in" | |
3937 | cp "conftest.in" "conftest.nl" | |
3938 | echo 'EGREP' >> "conftest.nl" | |
3939 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3940 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3941 | ac_count=`expr $ac_count + 1` | |
3942 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3943 | # Best one so far, save it but keep looking for a better one | |
3944 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3945 | ac_path_EGREP_max=$ac_count | |
3946 | fi | |
3947 | # 10*(2^10) chars as input seems more than enough | |
3948 | test $ac_count -gt 10 && break | |
3949 | done | |
3950 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3951 | esac | |
3952 | ||
3953 | ||
3954 | $ac_path_EGREP_found && break 3 | |
3955 | done | |
3956 | done | |
3957 | ||
3958 | done | |
3959 | IFS=$as_save_IFS | |
3960 | ||
3961 | ||
3962 | fi | |
3963 | ||
3964 | EGREP="$ac_cv_path_EGREP" | |
3965 | if test -z "$EGREP"; then | |
3966 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3967 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3968 | { (exit 1); exit 1; }; } | |
3969 | fi | |
3970 | ||
3971 | else | |
3972 | ac_cv_path_EGREP=$EGREP | |
3973 | fi | |
3974 | ||
3975 | ||
3976 | fi | |
3977 | fi | |
3978 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
3979 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
3980 | EGREP="$ac_cv_path_EGREP" | |
3981 | ||
3982 | ||
3983 | ||
3984 | # Check whether --with-gnu-ld was given. | |
3985 | if test "${with_gnu_ld+set}" = set; then | |
3986 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
3987 | else | |
3988 | with_gnu_ld=no | |
3989 | fi | |
3990 | ||
3991 | ac_prog=ld | |
3992 | if test "$GCC" = yes; then | |
3993 | # Check if gcc -print-prog-name=ld gives a path. | |
3994 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
3995 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | |
3996 | case $host in | |
3997 | *-*-mingw*) | |
3998 | # gcc leaves a trailing carriage return which upsets mingw | |
3999 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4000 | *) | |
4001 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4002 | esac | |
4003 | case $ac_prog in | |
4004 | # Accept absolute paths. | |
4005 | [\\/]* | ?:[\\/]*) | |
4006 | re_direlt='/[^/][^/]*/\.\./' | |
4007 | # Canonicalize the pathname of ld | |
4008 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
4009 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
4010 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
4011 | done | |
4012 | test -z "$LD" && LD="$ac_prog" | |
4013 | ;; | |
4014 | "") | |
4015 | # If it fails, then pretend we aren't using GCC. | |
4016 | ac_prog=ld | |
4017 | ;; | |
4018 | *) | |
4019 | # If it is relative, then search for the first ld in PATH. | |
4020 | with_gnu_ld=unknown | |
4021 | ;; | |
4022 | esac | |
4023 | elif test "$with_gnu_ld" = yes; then | |
4024 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
4025 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | |
4026 | else | |
4027 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
4028 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | |
4029 | fi | |
4030 | if test "${lt_cv_path_LD+set}" = set; then | |
4031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4032 | else | |
4033 | if test -z "$LD"; then | |
4034 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4035 | for ac_dir in $PATH; do | |
4036 | IFS="$lt_save_ifs" | |
4037 | test -z "$ac_dir" && ac_dir=. | |
4038 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4039 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4040 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4041 | # but apparently some variants of GNU ld only accept -v. | |
4042 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4043 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4044 | *GNU* | *'with BFD'*) | |
4045 | test "$with_gnu_ld" != no && break | |
4046 | ;; | |
4047 | *) | |
4048 | test "$with_gnu_ld" != yes && break | |
4049 | ;; | |
4050 | esac | |
4051 | fi | |
4052 | done | |
4053 | IFS="$lt_save_ifs" | |
4054 | else | |
4055 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4056 | fi | |
4057 | fi | |
4058 | ||
4059 | LD="$lt_cv_path_LD" | |
4060 | if test -n "$LD"; then | |
4061 | { echo "$as_me:$LINENO: result: $LD" >&5 | |
4062 | echo "${ECHO_T}$LD" >&6; } | |
4063 | else | |
4064 | { echo "$as_me:$LINENO: result: no" >&5 | |
4065 | echo "${ECHO_T}no" >&6; } | |
4066 | fi | |
4067 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
89354eef | 4068 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
4069 | { (exit 1); exit 1; }; } | |
f58aa3e1 | 4070 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4071 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | |
89354eef | 4072 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
4073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4074 | else | |
f58aa3e1 | 4075 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4076 | case `$LD -v 2>&1 </dev/null` in | |
4077 | *GNU* | *'with BFD'*) | |
89354eef | 4078 | lt_cv_prog_gnu_ld=yes |
f58aa3e1 | 4079 | ;; |
4080 | *) | |
89354eef | 4081 | lt_cv_prog_gnu_ld=no |
f58aa3e1 | 4082 | ;; |
4083 | esac | |
89354eef | 4084 | fi |
f58aa3e1 | 4085 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4086 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | |
89354eef | 4087 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4088 | ||
4089 | ||
f58aa3e1 | 4090 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
4091 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } | |
89354eef | 4092 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
4093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4094 | else | |
4095 | lt_cv_ld_reload_flag='-r' | |
4096 | fi | |
f58aa3e1 | 4097 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4098 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } | |
89354eef | 4099 | reload_flag=$lt_cv_ld_reload_flag |
f58aa3e1 | 4100 | case $reload_flag in |
4101 | "" | " "*) ;; | |
4102 | *) reload_flag=" $reload_flag" ;; | |
4103 | esac | |
4104 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4105 | case $host_os in | |
4106 | darwin*) | |
4107 | if test "$GCC" = yes; then | |
4108 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4109 | else | |
4110 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4111 | fi | |
4112 | ;; | |
4113 | esac | |
89354eef | 4114 | |
f58aa3e1 | 4115 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4116 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } | |
89354eef | 4117 | if test "${lt_cv_path_NM+set}" = set; then |
4118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4119 | else | |
4120 | if test -n "$NM"; then | |
4121 | # Let the user override the test. | |
4122 | lt_cv_path_NM="$NM" | |
4123 | else | |
f58aa3e1 | 4124 | lt_nm_to_check="${ac_tool_prefix}nm" |
4125 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4126 | lt_nm_to_check="$lt_nm_to_check nm" | |
4127 | fi | |
4128 | for lt_tmp_nm in $lt_nm_to_check; do | |
4129 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4130 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4131 | IFS="$lt_save_ifs" | |
4132 | test -z "$ac_dir" && ac_dir=. | |
4133 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4134 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4135 | # Check to see if the nm accepts a BSD-compat flag. | |
4136 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4137 | # nm: unknown option "B" ignored | |
4138 | # Tru64's nm complains that /dev/null is an invalid object file | |
4139 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4140 | */dev/null* | *'Invalid file or object type'*) | |
4141 | lt_cv_path_NM="$tmp_nm -B" | |
4142 | break | |
4143 | ;; | |
4144 | *) | |
4145 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4146 | */dev/null*) | |
4147 | lt_cv_path_NM="$tmp_nm -p" | |
4148 | break | |
4149 | ;; | |
4150 | *) | |
4151 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4152 | continue # so that we can try to find one that supports BSD flags | |
4153 | ;; | |
4154 | esac | |
4155 | ;; | |
4156 | esac | |
89354eef | 4157 | fi |
f58aa3e1 | 4158 | done |
4159 | IFS="$lt_save_ifs" | |
89354eef | 4160 | done |
89354eef | 4161 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4162 | fi | |
4163 | fi | |
f58aa3e1 | 4164 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4165 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } | |
89354eef | 4166 | NM="$lt_cv_path_NM" |
89354eef | 4167 | |
f58aa3e1 | 4168 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4169 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
89354eef | 4170 | LN_S=$as_ln_s |
4171 | if test "$LN_S" = "ln -s"; then | |
f58aa3e1 | 4172 | { echo "$as_me:$LINENO: result: yes" >&5 |
4173 | echo "${ECHO_T}yes" >&6; } | |
89354eef | 4174 | else |
f58aa3e1 | 4175 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4176 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
89354eef | 4177 | fi |
4178 | ||
f58aa3e1 | 4179 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
4180 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } | |
89354eef | 4181 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
4182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4183 | else | |
4184 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4185 | lt_cv_file_magic_test_file= | |
4186 | lt_cv_deplibs_check_method='unknown' | |
4187 | # Need to set the preceding variable on all platforms that support | |
4188 | # interlibrary dependencies. | |
4189 | # 'none' -- dependencies not supported. | |
4190 | # `unknown' -- same as none, but documents that we really don't know. | |
4191 | # 'pass_all' -- all dependencies passed with no checks. | |
4192 | # 'test_compile' -- check by making test program. | |
4193 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
f58aa3e1 | 4194 | # which responds to the $file_magic_cmd with a given extended regex. |
89354eef | 4195 | # If you have `file' or equivalent on your system and you're not sure |
4196 | # whether `pass_all' will *always* work, you probably want this one. | |
4197 | ||
4198 | case $host_os in | |
4199 | aix4* | aix5*) | |
4200 | lt_cv_deplibs_check_method=pass_all | |
4201 | ;; | |
4202 | ||
4203 | beos*) | |
4204 | lt_cv_deplibs_check_method=pass_all | |
4205 | ;; | |
4206 | ||
f58aa3e1 | 4207 | bsdi[45]*) |
89354eef | 4208 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4209 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4210 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4211 | ;; | |
4212 | ||
f58aa3e1 | 4213 | cygwin*) |
4214 | # func_win32_libid is a shell function defined in ltmain.sh | |
4215 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4216 | lt_cv_file_magic_cmd='func_win32_libid' | |
4217 | ;; | |
4218 | ||
4219 | mingw* | pw32*) | |
4220 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4221 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. | |
89354eef | 4222 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4223 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4224 | ;; | |
4225 | ||
4226 | darwin* | rhapsody*) | |
f58aa3e1 | 4227 | lt_cv_deplibs_check_method=pass_all |
89354eef | 4228 | ;; |
4229 | ||
f58aa3e1 | 4230 | freebsd* | dragonfly*) |
89354eef | 4231 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4232 | case $host_cpu in | |
4233 | i*86 ) | |
4234 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4235 | # Let's accept both of them until this is cleared up. | |
f58aa3e1 | 4236 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
89354eef | 4237 | lt_cv_file_magic_cmd=/usr/bin/file |
4238 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4239 | ;; | |
4240 | esac | |
4241 | else | |
4242 | lt_cv_deplibs_check_method=pass_all | |
4243 | fi | |
4244 | ;; | |
4245 | ||
4246 | gnu*) | |
4247 | lt_cv_deplibs_check_method=pass_all | |
4248 | ;; | |
4249 | ||
f58aa3e1 | 4250 | hpux10.20* | hpux11*) |
89354eef | 4251 | lt_cv_file_magic_cmd=/usr/bin/file |
f58aa3e1 | 4252 | case $host_cpu in |
4253 | ia64*) | |
4254 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4255 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4256 | ;; | |
4257 | hppa*64*) | |
4258 | 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]' | |
4259 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
89354eef | 4260 | ;; |
4261 | *) | |
f58aa3e1 | 4262 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4263 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
89354eef | 4264 | ;; |
4265 | esac | |
f58aa3e1 | 4266 | ;; |
4267 | ||
4268 | interix3*) | |
4269 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4270 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4271 | ;; | |
4272 | ||
4273 | irix5* | irix6* | nonstopux*) | |
4274 | case $LD in | |
4275 | *-32|*"-32 ") libmagic=32-bit;; | |
4276 | *-n32|*"-n32 ") libmagic=N32;; | |
4277 | *-64|*"-64 ") libmagic=64-bit;; | |
4278 | *) libmagic=never-match;; | |
4279 | esac | |
89354eef | 4280 | lt_cv_deplibs_check_method=pass_all |
4281 | ;; | |
4282 | ||
4283 | # This must be Linux ELF. | |
f58aa3e1 | 4284 | linux* | k*bsd*-gnu) |
4285 | lt_cv_deplibs_check_method=pass_all | |
89354eef | 4286 | ;; |
4287 | ||
f58aa3e1 | 4288 | netbsd* | netbsdelf*-gnu) |
89354eef | 4289 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
f58aa3e1 | 4290 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
89354eef | 4291 | else |
f58aa3e1 | 4292 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
89354eef | 4293 | fi |
4294 | ;; | |
4295 | ||
4296 | newos6*) | |
4297 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4298 | lt_cv_file_magic_cmd=/usr/bin/file | |
4299 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4300 | ;; | |
4301 | ||
f58aa3e1 | 4302 | nto-qnx*) |
4303 | lt_cv_deplibs_check_method=unknown | |
4304 | ;; | |
4305 | ||
89354eef | 4306 | openbsd*) |
89354eef | 4307 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
f58aa3e1 | 4308 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
89354eef | 4309 | else |
f58aa3e1 | 4310 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
89354eef | 4311 | fi |
4312 | ;; | |
4313 | ||
4314 | osf3* | osf4* | osf5*) | |
89354eef | 4315 | lt_cv_deplibs_check_method=pass_all |
4316 | ;; | |
4317 | ||
4318 | solaris*) | |
89354eef | 4319 | lt_cv_deplibs_check_method=pass_all |
4320 | ;; | |
4321 | ||
f58aa3e1 | 4322 | sysv4 | sysv4.3*) |
89354eef | 4323 | case $host_vendor in |
4324 | motorola) | |
4325 | 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]' | |
4326 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4327 | ;; | |
4328 | ncr) | |
4329 | lt_cv_deplibs_check_method=pass_all | |
4330 | ;; | |
4331 | sequent) | |
4332 | lt_cv_file_magic_cmd='/bin/file' | |
4333 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4334 | ;; | |
4335 | sni) | |
4336 | lt_cv_file_magic_cmd='/bin/file' | |
4337 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4338 | lt_cv_file_magic_test_file=/lib/libc.so | |
4339 | ;; | |
f58aa3e1 | 4340 | siemens) |
4341 | lt_cv_deplibs_check_method=pass_all | |
4342 | ;; | |
4343 | pc) | |
4344 | lt_cv_deplibs_check_method=pass_all | |
4345 | ;; | |
89354eef | 4346 | esac |
4347 | ;; | |
f58aa3e1 | 4348 | |
4349 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
4350 | lt_cv_deplibs_check_method=pass_all | |
4351 | ;; | |
89354eef | 4352 | esac |
4353 | ||
4354 | fi | |
f58aa3e1 | 4355 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4356 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } | |
89354eef | 4357 | file_magic_cmd=$lt_cv_file_magic_cmd |
4358 | deplibs_check_method=$lt_cv_deplibs_check_method | |
f58aa3e1 | 4359 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
89354eef | 4360 | |
4361 | ||
4362 | ||
4363 | ||
f58aa3e1 | 4364 | # If no C compiler was specified, use CC. |
4365 | LTCC=${LTCC-"$CC"} | |
89354eef | 4366 | |
f58aa3e1 | 4367 | # If no C compiler flags were specified, use CFLAGS. |
4368 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
89354eef | 4369 | |
f58aa3e1 | 4370 | # Allow CC to be a program name with arguments. |
4371 | compiler=$CC | |
89354eef | 4372 | |
4373 | ||
f58aa3e1 | 4374 | # Check whether --enable-libtool-lock was given. |
4375 | if test "${enable_libtool_lock+set}" = set; then | |
4376 | enableval=$enable_libtool_lock; | |
89354eef | 4377 | fi |
4378 | ||
f58aa3e1 | 4379 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
89354eef | 4380 | |
f58aa3e1 | 4381 | # Some flags need to be propagated to the compiler or linker for good |
4382 | # libtool support. | |
4383 | case $host in | |
4384 | ia64-*-hpux*) | |
4385 | # Find out which ABI we are using. | |
4386 | echo 'int i;' > conftest.$ac_ext | |
89354eef | 4387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4388 | (eval $ac_compile) 2>&5 | |
4389 | ac_status=$? | |
4390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4391 | (exit $ac_status); }; then | |
f58aa3e1 | 4392 | case `/usr/bin/file conftest.$ac_objext` in |
4393 | *ELF-32*) | |
4394 | HPUX_IA64_MODE="32" | |
4395 | ;; | |
4396 | *ELF-64*) | |
4397 | HPUX_IA64_MODE="64" | |
4398 | ;; | |
4399 | esac | |
4400 | fi | |
4401 | rm -rf conftest* | |
4402 | ;; | |
4403 | *-*-irix6*) | |
4404 | # Find out which ABI we are using. | |
4405 | echo '#line 4405 "configure"' > conftest.$ac_ext | |
4406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4407 | (eval $ac_compile) 2>&5 | |
89354eef | 4408 | ac_status=$? |
4409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f58aa3e1 | 4410 | (exit $ac_status); }; then |
4411 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
4412 | case `/usr/bin/file conftest.$ac_objext` in | |
4413 | *32-bit*) | |
4414 | LD="${LD-ld} -melf32bsmip" | |
4415 | ;; | |
4416 | *N32*) | |
4417 | LD="${LD-ld} -melf32bmipn32" | |
4418 | ;; | |
4419 | *64-bit*) | |
4420 | LD="${LD-ld} -melf64bmip" | |
4421 | ;; | |
4422 | esac | |
4423 | else | |
4424 | case `/usr/bin/file conftest.$ac_objext` in | |
4425 | *32-bit*) | |
4426 | LD="${LD-ld} -32" | |
4427 | ;; | |
4428 | *N32*) | |
4429 | LD="${LD-ld} -n32" | |
4430 | ;; | |
4431 | *64-bit*) | |
4432 | LD="${LD-ld} -64" | |
4433 | ;; | |
4434 | esac | |
4435 | fi | |
4436 | fi | |
4437 | rm -rf conftest* | |
4438 | ;; | |
89354eef | 4439 | |
f58aa3e1 | 4440 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4441 | # Find out which ABI we are using. | |
4442 | echo 'int i;' > conftest.$ac_ext | |
4443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4444 | (eval $ac_compile) 2>&5 | |
4445 | ac_status=$? | |
4446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4447 | (exit $ac_status); }; then | |
4448 | case `/usr/bin/file conftest.o` in | |
4449 | *32-bit*) | |
4450 | case $host in | |
4451 | x86_64-*linux*) | |
4452 | LD="${LD-ld} -m elf_i386" | |
4453 | ;; | |
4454 | ppc64-*linux*|powerpc64-*linux*) | |
4455 | LD="${LD-ld} -m elf32ppclinux" | |
4456 | ;; | |
4457 | s390x-*linux*) | |
4458 | LD="${LD-ld} -m elf_s390" | |
4459 | ;; | |
4460 | sparc64-*linux*) | |
4461 | LD="${LD-ld} -m elf32_sparc" | |
4462 | ;; | |
4463 | esac | |
4464 | ;; | |
4465 | *64-bit*) | |
4466 | case $host in | |
4467 | x86_64-*linux*) | |
4468 | LD="${LD-ld} -m elf_x86_64" | |
4469 | ;; | |
4470 | ppc*-*linux*|powerpc*-*linux*) | |
4471 | LD="${LD-ld} -m elf64ppc" | |
4472 | ;; | |
4473 | s390*-*linux*) | |
4474 | LD="${LD-ld} -m elf64_s390" | |
4475 | ;; | |
4476 | sparc*-*linux*) | |
4477 | LD="${LD-ld} -m elf64_sparc" | |
4478 | ;; | |
4479 | esac | |
4480 | ;; | |
4481 | esac | |
4482 | fi | |
4483 | rm -rf conftest* | |
4484 | ;; | |
89354eef | 4485 | |
f58aa3e1 | 4486 | *-*-sco3.2v5*) |
4487 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4488 | SAVE_CFLAGS="$CFLAGS" | |
4489 | CFLAGS="$CFLAGS -belf" | |
4490 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
4491 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } | |
4492 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4494 | else | |
4495 | ac_ext=c | |
4496 | ac_cpp='$CPP $CPPFLAGS' | |
4497 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4498 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4499 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
89354eef | 4500 | |
f58aa3e1 | 4501 | cat >conftest.$ac_ext <<_ACEOF |
4502 | /* confdefs.h. */ | |
4503 | _ACEOF | |
4504 | cat confdefs.h >>conftest.$ac_ext | |
4505 | cat >>conftest.$ac_ext <<_ACEOF | |
4506 | /* end confdefs.h. */ | |
89354eef | 4507 | |
f58aa3e1 | 4508 | int |
4509 | main () | |
89354eef | 4510 | { |
89354eef | 4511 | |
f58aa3e1 | 4512 | ; |
4513 | return 0; | |
89354eef | 4514 | } |
f58aa3e1 | 4515 | _ACEOF |
4516 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4517 | if { (ac_try="$ac_link" | |
4518 | case "(($ac_try" in | |
4519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4520 | *) ac_try_echo=$ac_try;; | |
4521 | esac | |
4522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4523 | (eval "$ac_link") 2>conftest.er1 | |
89354eef | 4524 | ac_status=$? |
f58aa3e1 | 4525 | grep -v '^ *+' conftest.er1 >conftest.err |
4526 | rm -f conftest.er1 | |
4527 | cat conftest.err >&5 | |
89354eef | 4528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f58aa3e1 | 4529 | (exit $ac_status); } && |
4530 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4531 | { (case "(($ac_try" in | |
4532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4533 | *) ac_try_echo=$ac_try;; | |
4534 | esac | |
4535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4536 | (eval "$ac_try") 2>&5 | |
4537 | ac_status=$? | |
4538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4539 | (exit $ac_status); }; } && | |
4540 | { ac_try='test -s conftest$ac_exeext' | |
4541 | { (case "(($ac_try" in | |
4542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4543 | *) ac_try_echo=$ac_try;; | |
4544 | esac | |
4545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4546 | (eval "$ac_try") 2>&5 | |
4547 | ac_status=$? | |
4548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4549 | (exit $ac_status); }; }; then | |
4550 | lt_cv_cc_needs_belf=yes | |
4551 | else | |
4552 | echo "$as_me: failed program was:" >&5 | |
4553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
89354eef | 4554 | |
f58aa3e1 | 4555 | lt_cv_cc_needs_belf=no |
89354eef | 4556 | fi |
4557 | ||
f58aa3e1 | 4558 | rm -f core conftest.err conftest.$ac_objext \ |
4559 | conftest$ac_exeext conftest.$ac_ext | |
4560 | ac_ext=c | |
4561 | ac_cpp='$CPP $CPPFLAGS' | |
4562 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4563 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4564 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4565 | ||
89354eef | 4566 | fi |
f58aa3e1 | 4567 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4568 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } | |
4569 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4570 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4571 | CFLAGS="$SAVE_CFLAGS" | |
4572 | fi | |
4573 | ;; | |
4574 | sparc*-*solaris*) | |
4575 | # Find out which ABI we are using. | |
4576 | echo 'int i;' > conftest.$ac_ext | |
4577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4578 | (eval $ac_compile) 2>&5 | |
4579 | ac_status=$? | |
4580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4581 | (exit $ac_status); }; then | |
4582 | case `/usr/bin/file conftest.o` in | |
4583 | *64-bit*) | |
4584 | case $lt_cv_prog_gnu_ld in | |
4585 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
4586 | *) LD="${LD-ld} -64" ;; | |
4587 | esac | |
4588 | ;; | |
4589 | esac | |
4590 | fi | |
4591 | rm -rf conftest* | |
4592 | ;; | |
4593 | ||
4594 | ||
4595 | esac | |
4596 | ||
4597 | need_locks="$enable_libtool_lock" | |
4598 | ||
89354eef | 4599 | |
4600 | ac_ext=c | |
4601 | ac_cpp='$CPP $CPPFLAGS' | |
4602 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4603 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4604 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
f58aa3e1 | 4605 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4606 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
89354eef | 4607 | # On Suns, sometimes $CPP names a directory. |
4608 | if test -n "$CPP" && test -d "$CPP"; then | |
4609 | CPP= | |
4610 | fi | |
4611 | if test -z "$CPP"; then | |
4612 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4614 | else | |
4615 | # Double quotes because CPP needs to be expanded | |
4616 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4617 | do | |
4618 | ac_preproc_ok=false | |
4619 | for ac_c_preproc_warn_flag in '' yes | |
4620 | do | |
4621 | # Use a header file that comes with gcc, so configuring glibc | |
4622 | # with a fresh cross-compiler works. | |
49ba971d | 4623 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4624 | # <limits.h> exists even on freestanding compilers. | |
89354eef | 4625 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4626 | # not just through cpp. "Syntax error" is here to catch this case. | |
4627 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 4628 | /* confdefs.h. */ |
4629 | _ACEOF | |
4630 | cat confdefs.h >>conftest.$ac_ext | |
4631 | cat >>conftest.$ac_ext <<_ACEOF | |
4632 | /* end confdefs.h. */ | |
4633 | #ifdef __STDC__ | |
4634 | # include <limits.h> | |
4635 | #else | |
4636 | # include <assert.h> | |
4637 | #endif | |
f58aa3e1 | 4638 | Syntax error |
89354eef | 4639 | _ACEOF |
f58aa3e1 | 4640 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4641 | case "(($ac_try" in | |
4642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4643 | *) ac_try_echo=$ac_try;; | |
4644 | esac | |
4645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4646 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
89354eef | 4647 | ac_status=$? |
49ba971d | 4648 | grep -v '^ *+' conftest.er1 >conftest.err |
89354eef | 4649 | rm -f conftest.er1 |
4650 | cat conftest.err >&5 | |
4651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4652 | (exit $ac_status); } >/dev/null; then | |
4653 | if test -s conftest.err; then | |
4654 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f58aa3e1 | 4655 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
89354eef | 4656 | else |
4657 | ac_cpp_err= | |
4658 | fi | |
4659 | else | |
4660 | ac_cpp_err=yes | |
4661 | fi | |
4662 | if test -z "$ac_cpp_err"; then | |
4663 | : | |
4664 | else | |
4665 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 4666 | sed 's/^/| /' conftest.$ac_ext >&5 |
4667 | ||
89354eef | 4668 | # Broken: fails on valid input. |
4669 | continue | |
4670 | fi | |
f58aa3e1 | 4671 | |
89354eef | 4672 | rm -f conftest.err conftest.$ac_ext |
4673 | ||
f58aa3e1 | 4674 | # OK, works on sane cases. Now check whether nonexistent headers |
89354eef | 4675 | # can be detected and how. |
4676 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 4677 | /* confdefs.h. */ |
4678 | _ACEOF | |
4679 | cat confdefs.h >>conftest.$ac_ext | |
4680 | cat >>conftest.$ac_ext <<_ACEOF | |
4681 | /* end confdefs.h. */ | |
89354eef | 4682 | #include <ac_nonexistent.h> |
4683 | _ACEOF | |
f58aa3e1 | 4684 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4685 | case "(($ac_try" in | |
4686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4687 | *) ac_try_echo=$ac_try;; | |
4688 | esac | |
4689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4690 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
89354eef | 4691 | ac_status=$? |
49ba971d | 4692 | grep -v '^ *+' conftest.er1 >conftest.err |
89354eef | 4693 | rm -f conftest.er1 |
4694 | cat conftest.err >&5 | |
4695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4696 | (exit $ac_status); } >/dev/null; then | |
4697 | if test -s conftest.err; then | |
4698 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f58aa3e1 | 4699 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
89354eef | 4700 | else |
4701 | ac_cpp_err= | |
4702 | fi | |
4703 | else | |
4704 | ac_cpp_err=yes | |
4705 | fi | |
4706 | if test -z "$ac_cpp_err"; then | |
4707 | # Broken: success on invalid input. | |
4708 | continue | |
4709 | else | |
4710 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 4711 | sed 's/^/| /' conftest.$ac_ext >&5 |
4712 | ||
89354eef | 4713 | # Passes both tests. |
4714 | ac_preproc_ok=: | |
4715 | break | |
4716 | fi | |
f58aa3e1 | 4717 | |
89354eef | 4718 | rm -f conftest.err conftest.$ac_ext |
4719 | ||
4720 | done | |
4721 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4722 | rm -f conftest.err conftest.$ac_ext | |
4723 | if $ac_preproc_ok; then | |
4724 | break | |
4725 | fi | |
4726 | ||
4727 | done | |
4728 | ac_cv_prog_CPP=$CPP | |
4729 | ||
4730 | fi | |
4731 | CPP=$ac_cv_prog_CPP | |
4732 | else | |
4733 | ac_cv_prog_CPP=$CPP | |
4734 | fi | |
f58aa3e1 | 4735 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4736 | echo "${ECHO_T}$CPP" >&6; } | |
89354eef | 4737 | ac_preproc_ok=false |
4738 | for ac_c_preproc_warn_flag in '' yes | |
4739 | do | |
4740 | # Use a header file that comes with gcc, so configuring glibc | |
4741 | # with a fresh cross-compiler works. | |
49ba971d | 4742 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4743 | # <limits.h> exists even on freestanding compilers. | |
89354eef | 4744 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4745 | # not just through cpp. "Syntax error" is here to catch this case. | |
4746 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 4747 | /* confdefs.h. */ |
4748 | _ACEOF | |
4749 | cat confdefs.h >>conftest.$ac_ext | |
4750 | cat >>conftest.$ac_ext <<_ACEOF | |
4751 | /* end confdefs.h. */ | |
4752 | #ifdef __STDC__ | |
4753 | # include <limits.h> | |
4754 | #else | |
4755 | # include <assert.h> | |
4756 | #endif | |
f58aa3e1 | 4757 | Syntax error |
89354eef | 4758 | _ACEOF |
f58aa3e1 | 4759 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4760 | case "(($ac_try" in | |
4761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4762 | *) ac_try_echo=$ac_try;; | |
4763 | esac | |
4764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4765 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
89354eef | 4766 | ac_status=$? |
49ba971d | 4767 | grep -v '^ *+' conftest.er1 >conftest.err |
89354eef | 4768 | rm -f conftest.er1 |
4769 | cat conftest.err >&5 | |
4770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4771 | (exit $ac_status); } >/dev/null; then | |
4772 | if test -s conftest.err; then | |
4773 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f58aa3e1 | 4774 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
89354eef | 4775 | else |
4776 | ac_cpp_err= | |
4777 | fi | |
4778 | else | |
4779 | ac_cpp_err=yes | |
4780 | fi | |
4781 | if test -z "$ac_cpp_err"; then | |
4782 | : | |
4783 | else | |
4784 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 4785 | sed 's/^/| /' conftest.$ac_ext >&5 |
4786 | ||
89354eef | 4787 | # Broken: fails on valid input. |
4788 | continue | |
4789 | fi | |
f58aa3e1 | 4790 | |
89354eef | 4791 | rm -f conftest.err conftest.$ac_ext |
4792 | ||
f58aa3e1 | 4793 | # OK, works on sane cases. Now check whether nonexistent headers |
89354eef | 4794 | # can be detected and how. |
4795 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 4796 | /* confdefs.h. */ |
4797 | _ACEOF | |
4798 | cat confdefs.h >>conftest.$ac_ext | |
4799 | cat >>conftest.$ac_ext <<_ACEOF | |
4800 | /* end confdefs.h. */ | |
89354eef | 4801 | #include <ac_nonexistent.h> |
4802 | _ACEOF | |
f58aa3e1 | 4803 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4804 | case "(($ac_try" in | |
4805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4806 | *) ac_try_echo=$ac_try;; | |
4807 | esac | |
4808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4809 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
89354eef | 4810 | ac_status=$? |
49ba971d | 4811 | grep -v '^ *+' conftest.er1 >conftest.err |
89354eef | 4812 | rm -f conftest.er1 |
4813 | cat conftest.err >&5 | |
4814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4815 | (exit $ac_status); } >/dev/null; then | |
4816 | if test -s conftest.err; then | |
4817 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f58aa3e1 | 4818 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
89354eef | 4819 | else |
4820 | ac_cpp_err= | |
4821 | fi | |
4822 | else | |
4823 | ac_cpp_err=yes | |
4824 | fi | |
4825 | if test -z "$ac_cpp_err"; then | |
4826 | # Broken: success on invalid input. | |
4827 | continue | |
4828 | else | |
4829 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 4830 | sed 's/^/| /' conftest.$ac_ext >&5 |
4831 | ||
89354eef | 4832 | # Passes both tests. |
4833 | ac_preproc_ok=: | |
4834 | break | |
4835 | fi | |
f58aa3e1 | 4836 | |
89354eef | 4837 | rm -f conftest.err conftest.$ac_ext |
4838 | ||
4839 | done | |
4840 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4841 | rm -f conftest.err conftest.$ac_ext | |
4842 | if $ac_preproc_ok; then | |
4843 | : | |
4844 | else | |
49ba971d | 4845 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4846 | See \`config.log' for more details." >&5 | |
4847 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4848 | See \`config.log' for more details." >&2;} | |
89354eef | 4849 | { (exit 1); exit 1; }; } |
4850 | fi | |
4851 | ||
4852 | ac_ext=c | |
4853 | ac_cpp='$CPP $CPPFLAGS' | |
4854 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4855 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4856 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4857 | ||
4858 | ||
f58aa3e1 | 4859 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4860 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
89354eef | 4861 | if test "${ac_cv_header_stdc+set}" = set; then |
4862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4863 | else | |
4864 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 4865 | /* confdefs.h. */ |
4866 | _ACEOF | |
4867 | cat confdefs.h >>conftest.$ac_ext | |
4868 | cat >>conftest.$ac_ext <<_ACEOF | |
4869 | /* end confdefs.h. */ | |
89354eef | 4870 | #include <stdlib.h> |
4871 | #include <stdarg.h> | |
4872 | #include <string.h> | |
4873 | #include <float.h> | |
4874 | ||
49ba971d | 4875 | int |
4876 | main () | |
4877 | { | |
4878 | ||
4879 | ; | |
4880 | return 0; | |
4881 | } | |
89354eef | 4882 | _ACEOF |
49ba971d | 4883 | rm -f conftest.$ac_objext |
f58aa3e1 | 4884 | if { (ac_try="$ac_compile" |
4885 | case "(($ac_try" in | |
4886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4887 | *) ac_try_echo=$ac_try;; | |
4888 | esac | |
4889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4890 | (eval "$ac_compile") 2>conftest.er1 | |
89354eef | 4891 | ac_status=$? |
f58aa3e1 | 4892 | grep -v '^ *+' conftest.er1 >conftest.err |
4893 | rm -f conftest.er1 | |
4894 | cat conftest.err >&5 | |
89354eef | 4895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
49ba971d | 4896 | (exit $ac_status); } && |
f58aa3e1 | 4897 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4898 | { (case "(($ac_try" in | |
4899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4900 | *) ac_try_echo=$ac_try;; | |
4901 | esac | |
4902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4903 | (eval "$ac_try") 2>&5 | |
4904 | ac_status=$? | |
4905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4906 | (exit $ac_status); }; } && | |
4907 | { ac_try='test -s conftest.$ac_objext' | |
4908 | { (case "(($ac_try" in | |
4909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4910 | *) ac_try_echo=$ac_try;; | |
4911 | esac | |
4912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4913 | (eval "$ac_try") 2>&5 | |
49ba971d | 4914 | ac_status=$? |
4915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4916 | (exit $ac_status); }; }; then | |
89354eef | 4917 | ac_cv_header_stdc=yes |
4918 | else | |
4919 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 4920 | sed 's/^/| /' conftest.$ac_ext >&5 |
4921 | ||
f58aa3e1 | 4922 | ac_cv_header_stdc=no |
89354eef | 4923 | fi |
f58aa3e1 | 4924 | |
4925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
89354eef | 4926 | |
4927 | if test $ac_cv_header_stdc = yes; then | |
4928 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4929 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 4930 | /* confdefs.h. */ |
4931 | _ACEOF | |
4932 | cat confdefs.h >>conftest.$ac_ext | |
4933 | cat >>conftest.$ac_ext <<_ACEOF | |
4934 | /* end confdefs.h. */ | |
89354eef | 4935 | #include <string.h> |
4936 | ||
4937 | _ACEOF | |
4938 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
49ba971d | 4939 | $EGREP "memchr" >/dev/null 2>&1; then |
89354eef | 4940 | : |
4941 | else | |
4942 | ac_cv_header_stdc=no | |
4943 | fi | |
4944 | rm -f conftest* | |
4945 | ||
4946 | fi | |
4947 | ||
4948 | if test $ac_cv_header_stdc = yes; then | |
4949 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4950 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 4951 | /* confdefs.h. */ |
4952 | _ACEOF | |
4953 | cat confdefs.h >>conftest.$ac_ext | |
4954 | cat >>conftest.$ac_ext <<_ACEOF | |
4955 | /* end confdefs.h. */ | |
89354eef | 4956 | #include <stdlib.h> |
4957 | ||
4958 | _ACEOF | |
4959 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
49ba971d | 4960 | $EGREP "free" >/dev/null 2>&1; then |
89354eef | 4961 | : |
4962 | else | |
4963 | ac_cv_header_stdc=no | |
4964 | fi | |
4965 | rm -f conftest* | |
4966 | ||
4967 | fi | |
4968 | ||
4969 | if test $ac_cv_header_stdc = yes; then | |
4970 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4971 | if test "$cross_compiling" = yes; then | |
4972 | : | |
4973 | else | |
4974 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 4975 | /* confdefs.h. */ |
4976 | _ACEOF | |
4977 | cat confdefs.h >>conftest.$ac_ext | |
4978 | cat >>conftest.$ac_ext <<_ACEOF | |
4979 | /* end confdefs.h. */ | |
89354eef | 4980 | #include <ctype.h> |
f58aa3e1 | 4981 | #include <stdlib.h> |
89354eef | 4982 | #if ((' ' & 0x0FF) == 0x020) |
4983 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4984 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4985 | #else | |
49ba971d | 4986 | # define ISLOWER(c) \ |
f58aa3e1 | 4987 | (('a' <= (c) && (c) <= 'i') \ |
4988 | || ('j' <= (c) && (c) <= 'r') \ | |
4989 | || ('s' <= (c) && (c) <= 'z')) | |
89354eef | 4990 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4991 | #endif | |
4992 | ||
4993 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4994 | int | |
4995 | main () | |
4996 | { | |
4997 | int i; | |
4998 | for (i = 0; i < 256; i++) | |
4999 | if (XOR (islower (i), ISLOWER (i)) | |
f58aa3e1 | 5000 | || toupper (i) != TOUPPER (i)) |
5001 | return 2; | |
5002 | return 0; | |
89354eef | 5003 | } |
5004 | _ACEOF | |
5005 | rm -f conftest$ac_exeext | |
f58aa3e1 | 5006 | if { (ac_try="$ac_link" |
5007 | case "(($ac_try" in | |
5008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5009 | *) ac_try_echo=$ac_try;; | |
5010 | esac | |
5011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5012 | (eval "$ac_link") 2>&5 | |
89354eef | 5013 | ac_status=$? |
5014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5015 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
f58aa3e1 | 5016 | { (case "(($ac_try" in |
5017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5018 | *) ac_try_echo=$ac_try;; | |
5019 | esac | |
5020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5021 | (eval "$ac_try") 2>&5 | |
89354eef | 5022 | ac_status=$? |
5023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5024 | (exit $ac_status); }; }; then | |
5025 | : | |
5026 | else | |
5027 | echo "$as_me: program exited with status $ac_status" >&5 | |
5028 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 5029 | sed 's/^/| /' conftest.$ac_ext >&5 |
5030 | ||
89354eef | 5031 | ( exit $ac_status ) |
5032 | ac_cv_header_stdc=no | |
5033 | fi | |
f58aa3e1 | 5034 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
89354eef | 5035 | fi |
f58aa3e1 | 5036 | |
5037 | ||
89354eef | 5038 | fi |
5039 | fi | |
f58aa3e1 | 5040 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5041 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
89354eef | 5042 | if test $ac_cv_header_stdc = yes; then |
5043 | ||
5044 | cat >>confdefs.h <<\_ACEOF | |
5045 | #define STDC_HEADERS 1 | |
5046 | _ACEOF | |
5047 | ||
5048 | fi | |
5049 | ||
5050 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5051 | ||
5052 | ||
5053 | ||
5054 | ||
5055 | ||
5056 | ||
5057 | ||
5058 | ||
5059 | ||
5060 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
f58aa3e1 | 5061 | inttypes.h stdint.h unistd.h |
89354eef | 5062 | do |
5063 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
f58aa3e1 | 5064 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5065 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5066 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
89354eef | 5067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5068 | else | |
5069 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 5070 | /* confdefs.h. */ |
5071 | _ACEOF | |
5072 | cat confdefs.h >>conftest.$ac_ext | |
5073 | cat >>conftest.$ac_ext <<_ACEOF | |
5074 | /* end confdefs.h. */ | |
89354eef | 5075 | $ac_includes_default |
5076 | ||
5077 | #include <$ac_header> | |
5078 | _ACEOF | |
5079 | rm -f conftest.$ac_objext | |
f58aa3e1 | 5080 | if { (ac_try="$ac_compile" |
5081 | case "(($ac_try" in | |
5082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5083 | *) ac_try_echo=$ac_try;; | |
5084 | esac | |
5085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5086 | (eval "$ac_compile") 2>conftest.er1 | |
89354eef | 5087 | ac_status=$? |
f58aa3e1 | 5088 | grep -v '^ *+' conftest.er1 >conftest.err |
5089 | rm -f conftest.er1 | |
5090 | cat conftest.err >&5 | |
89354eef | 5091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5092 | (exit $ac_status); } && | |
f58aa3e1 | 5093 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5094 | { (case "(($ac_try" in | |
5095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5096 | *) ac_try_echo=$ac_try;; | |
5097 | esac | |
5098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5099 | (eval "$ac_try") 2>&5 | |
5100 | ac_status=$? | |
5101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5102 | (exit $ac_status); }; } && | |
5103 | { ac_try='test -s conftest.$ac_objext' | |
5104 | { (case "(($ac_try" in | |
5105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5106 | *) ac_try_echo=$ac_try;; | |
5107 | esac | |
5108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5109 | (eval "$ac_try") 2>&5 | |
89354eef | 5110 | ac_status=$? |
5111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5112 | (exit $ac_status); }; }; then | |
5113 | eval "$as_ac_Header=yes" | |
5114 | else | |
5115 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 5116 | sed 's/^/| /' conftest.$ac_ext >&5 |
5117 | ||
f58aa3e1 | 5118 | eval "$as_ac_Header=no" |
89354eef | 5119 | fi |
f58aa3e1 | 5120 | |
5121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
89354eef | 5122 | fi |
f58aa3e1 | 5123 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5124 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5125 | echo "${ECHO_T}$ac_res" >&6; } | |
89354eef | 5126 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5127 | cat >>confdefs.h <<_ACEOF | |
5128 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5129 | _ACEOF | |
5130 | ||
5131 | fi | |
5132 | ||
5133 | done | |
5134 | ||
5135 | ||
5136 | ||
5137 | for ac_header in dlfcn.h | |
5138 | do | |
5139 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
f58aa3e1 | 5140 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5141 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5142 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5143 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
89354eef | 5144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5145 | fi | |
f58aa3e1 | 5146 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5147 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5148 | echo "${ECHO_T}$ac_res" >&6; } | |
89354eef | 5149 | else |
5150 | # Is the header compilable? | |
f58aa3e1 | 5151 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5152 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
89354eef | 5153 | cat >conftest.$ac_ext <<_ACEOF |
49ba971d | 5154 | /* confdefs.h. */ |
5155 | _ACEOF | |
5156 | cat confdefs.h >>conftest.$ac_ext | |
5157 | cat >>conftest.$ac_ext <<_ACEOF | |
5158 | /* end confdefs.h. */ | |
89354eef | 5159 | $ac_includes_default |
5160 | #include <$ac_header> | |
5161 | _ACEOF | |
5162 | rm -f conftest.$ac_objext | |
f58aa3e1 | 5163 | if { (ac_try="$ac_compile" |
5164 | case "(($ac_try" in | |
5165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5166 | *) ac_try_echo=$ac_try;; | |
5167 | esac | |
5168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5169 | (eval "$ac_compile") 2>conftest.er1 | |
89354eef | 5170 | ac_status=$? |
f58aa3e1 | 5171 | grep -v '^ *+' conftest.er1 >conftest.err |
5172 | rm -f conftest.er1 | |
5173 | cat conftest.err >&5 | |
89354eef | 5174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5175 | (exit $ac_status); } && | |
f58aa3e1 | 5176 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5177 | { (case "(($ac_try" in | |
5178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5179 | *) ac_try_echo=$ac_try;; | |
5180 | esac | |
5181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5182 | (eval "$ac_try") 2>&5 | |
5183 | ac_status=$? | |
5184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5185 | (exit $ac_status); }; } && | |
5186 | { ac_try='test -s conftest.$ac_objext' | |
5187 | { (case "(($ac_try" in | |
5188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5189 | *) ac_try_echo=$ac_try;; | |
5190 | esac | |
5191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5192 | (eval "$ac_try") 2>&5 | |
89354eef | 5193 | ac_status=$? |
5194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5195 | (exit $ac_status); }; }; then | |
5196 | ac_header_compiler=yes | |
5197 | else | |
5198 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 5199 | sed 's/^/| /' conftest.$ac_ext >&5 |
5200 | ||
f58aa3e1 | 5201 | ac_header_compiler=no |
89354eef | 5202 | fi |
f58aa3e1 | 5203 | |
5204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5205 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5206 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
89354eef | 5207 | |
5208 | # Is the header present? | |
f58aa3e1 | 5209 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5210 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
89354eef | 5211 | cat >conftest.$ac_ext <<_ACEOF |
49ba971d | 5212 | /* confdefs.h. */ |
5213 | _ACEOF | |
5214 | cat confdefs.h >>conftest.$ac_ext | |
5215 | cat >>conftest.$ac_ext <<_ACEOF | |
5216 | /* end confdefs.h. */ | |
89354eef | 5217 | #include <$ac_header> |
5218 | _ACEOF | |
f58aa3e1 | 5219 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5220 | case "(($ac_try" in | |
5221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5222 | *) ac_try_echo=$ac_try;; | |
5223 | esac | |
5224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5225 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
89354eef | 5226 | ac_status=$? |
49ba971d | 5227 | grep -v '^ *+' conftest.er1 >conftest.err |
89354eef | 5228 | rm -f conftest.er1 |
5229 | cat conftest.err >&5 | |
5230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5231 | (exit $ac_status); } >/dev/null; then | |
5232 | if test -s conftest.err; then | |
5233 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f58aa3e1 | 5234 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
89354eef | 5235 | else |
5236 | ac_cpp_err= | |
5237 | fi | |
5238 | else | |
5239 | ac_cpp_err=yes | |
5240 | fi | |
5241 | if test -z "$ac_cpp_err"; then | |
5242 | ac_header_preproc=yes | |
5243 | else | |
5244 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 5245 | sed 's/^/| /' conftest.$ac_ext >&5 |
5246 | ||
89354eef | 5247 | ac_header_preproc=no |
5248 | fi | |
f58aa3e1 | 5249 | |
89354eef | 5250 | rm -f conftest.err conftest.$ac_ext |
f58aa3e1 | 5251 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5252 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
89354eef | 5253 | |
5254 | # So? What about this header? | |
f58aa3e1 | 5255 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5256 | yes:no: ) | |
89354eef | 5257 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5258 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f58aa3e1 | 5259 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5260 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5261 | ac_header_preproc=yes | |
49ba971d | 5262 | ;; |
f58aa3e1 | 5263 | no:yes:* ) |
89354eef | 5264 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5265 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
f58aa3e1 | 5266 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5267 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5268 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5269 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5270 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5271 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
89354eef | 5272 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
49ba971d | 5273 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
f58aa3e1 | 5274 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5275 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5276 | ||
49ba971d | 5277 | ;; |
89354eef | 5278 | esac |
f58aa3e1 | 5279 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5280 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5281 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
89354eef | 5282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5283 | else | |
f58aa3e1 | 5284 | eval "$as_ac_Header=\$ac_header_preproc" |
89354eef | 5285 | fi |
f58aa3e1 | 5286 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5287 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5288 | echo "${ECHO_T}$ac_res" >&6; } | |
89354eef | 5289 | |
5290 | fi | |
5291 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5292 | cat >>confdefs.h <<_ACEOF | |
5293 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5294 | _ACEOF | |
5295 | ||
5296 | fi | |
5297 | ||
5298 | done | |
5299 | ||
f58aa3e1 | 5300 | ac_ext=cpp |
5301 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5302 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5303 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5304 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5305 | if test -z "$CXX"; then | |
5306 | if test -n "$CCC"; then | |
5307 | CXX=$CCC | |
89354eef | 5308 | else |
f58aa3e1 | 5309 | if test -n "$ac_tool_prefix"; then |
5310 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5311 | do | |
5312 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5313 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5314 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5315 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5316 | if test "${ac_cv_prog_CXX+set}" = set; then | |
89354eef | 5317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5318 | else | |
f58aa3e1 | 5319 | if test -n "$CXX"; then |
5320 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
89354eef | 5321 | else |
5322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5323 | for as_dir in $PATH | |
5324 | do | |
5325 | IFS=$as_save_IFS | |
5326 | test -z "$as_dir" && as_dir=. | |
5327 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f58aa3e1 | 5328 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
5329 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
89354eef | 5330 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5331 | break 2 | |
5332 | fi | |
5333 | done | |
5334 | done | |
f58aa3e1 | 5335 | IFS=$as_save_IFS |
89354eef | 5336 | |
5337 | fi | |
5338 | fi | |
f58aa3e1 | 5339 | CXX=$ac_cv_prog_CXX |
5340 | if test -n "$CXX"; then | |
5341 | { echo "$as_me:$LINENO: result: $CXX" >&5 | |
5342 | echo "${ECHO_T}$CXX" >&6; } | |
89354eef | 5343 | else |
f58aa3e1 | 5344 | { echo "$as_me:$LINENO: result: no" >&5 |
5345 | echo "${ECHO_T}no" >&6; } | |
89354eef | 5346 | fi |
5347 | ||
f58aa3e1 | 5348 | |
5349 | test -n "$CXX" && break | |
5350 | done | |
89354eef | 5351 | fi |
f58aa3e1 | 5352 | if test -z "$CXX"; then |
5353 | ac_ct_CXX=$CXX | |
5354 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5355 | do | |
5356 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5357 | set dummy $ac_prog; ac_word=$2 | |
5358 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5359 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5360 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
89354eef | 5361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5362 | else | |
f58aa3e1 | 5363 | if test -n "$ac_ct_CXX"; then |
5364 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
89354eef | 5365 | else |
5366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5367 | for as_dir in $PATH | |
5368 | do | |
5369 | IFS=$as_save_IFS | |
5370 | test -z "$as_dir" && as_dir=. | |
5371 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f58aa3e1 | 5372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
5373 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
89354eef | 5374 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5375 | break 2 | |
5376 | fi | |
5377 | done | |
5378 | done | |
f58aa3e1 | 5379 | IFS=$as_save_IFS |
89354eef | 5380 | |
89354eef | 5381 | fi |
5382 | fi | |
f58aa3e1 | 5383 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5384 | if test -n "$ac_ct_CXX"; then | |
5385 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
5386 | echo "${ECHO_T}$ac_ct_CXX" >&6; } | |
89354eef | 5387 | else |
f58aa3e1 | 5388 | { echo "$as_me:$LINENO: result: no" >&5 |
5389 | echo "${ECHO_T}no" >&6; } | |
89354eef | 5390 | fi |
5391 | ||
89354eef | 5392 | |
f58aa3e1 | 5393 | test -n "$ac_ct_CXX" && break |
89354eef | 5394 | done |
5395 | ||
f58aa3e1 | 5396 | if test "x$ac_ct_CXX" = x; then |
5397 | CXX="g++" | |
5398 | else | |
5399 | case $cross_compiling:$ac_tool_warned in | |
5400 | yes:) | |
5401 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
5402 | whose name does not start with the host triplet. If you think this | |
5403 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5404 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5405 | whose name does not start with the host triplet. If you think this | |
5406 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5407 | ac_tool_warned=yes ;; | |
5408 | esac | |
5409 | CXX=$ac_ct_CXX | |
5410 | fi | |
89354eef | 5411 | fi |
5412 | ||
f58aa3e1 | 5413 | fi |
89354eef | 5414 | fi |
f58aa3e1 | 5415 | # Provide some information about the compiler. |
5416 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 | |
5417 | ac_compiler=`set X $ac_compile; echo $2` | |
5418 | { (ac_try="$ac_compiler --version >&5" | |
5419 | case "(($ac_try" in | |
5420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5421 | *) ac_try_echo=$ac_try;; | |
5422 | esac | |
5423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5424 | (eval "$ac_compiler --version >&5") 2>&5 | |
5425 | ac_status=$? | |
5426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5427 | (exit $ac_status); } | |
5428 | { (ac_try="$ac_compiler -v >&5" | |
5429 | case "(($ac_try" in | |
5430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5431 | *) ac_try_echo=$ac_try;; | |
5432 | esac | |
5433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5434 | (eval "$ac_compiler -v >&5") 2>&5 | |
5435 | ac_status=$? | |
5436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5437 | (exit $ac_status); } | |
5438 | { (ac_try="$ac_compiler -V >&5" | |
5439 | case "(($ac_try" in | |
5440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5441 | *) ac_try_echo=$ac_try;; | |
5442 | esac | |
5443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5444 | (eval "$ac_compiler -V >&5") 2>&5 | |
5445 | ac_status=$? | |
5446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5447 | (exit $ac_status); } | |
5448 | ||
5449 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
5450 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | |
5451 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
89354eef | 5452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5453 | else | |
f58aa3e1 | 5454 | cat >conftest.$ac_ext <<_ACEOF |
5455 | /* confdefs.h. */ | |
5456 | _ACEOF | |
5457 | cat confdefs.h >>conftest.$ac_ext | |
5458 | cat >>conftest.$ac_ext <<_ACEOF | |
5459 | /* end confdefs.h. */ | |
89354eef | 5460 | |
f58aa3e1 | 5461 | int |
5462 | main () | |
5463 | { | |
5464 | #ifndef __GNUC__ | |
5465 | choke me | |
5466 | #endif | |
89354eef | 5467 | |
f58aa3e1 | 5468 | ; |
5469 | return 0; | |
5470 | } | |
5471 | _ACEOF | |
5472 | rm -f conftest.$ac_objext | |
5473 | if { (ac_try="$ac_compile" | |
5474 | case "(($ac_try" in | |
5475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5476 | *) ac_try_echo=$ac_try;; | |
5477 | esac | |
5478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5479 | (eval "$ac_compile") 2>conftest.er1 | |
5480 | ac_status=$? | |
5481 | grep -v '^ *+' conftest.er1 >conftest.err | |
5482 | rm -f conftest.er1 | |
5483 | cat conftest.err >&5 | |
5484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5485 | (exit $ac_status); } && | |
5486 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
5487 | { (case "(($ac_try" in | |
5488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5489 | *) ac_try_echo=$ac_try;; | |
5490 | esac | |
5491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5492 | (eval "$ac_try") 2>&5 | |
5493 | ac_status=$? | |
5494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5495 | (exit $ac_status); }; } && | |
5496 | { ac_try='test -s conftest.$ac_objext' | |
5497 | { (case "(($ac_try" in | |
5498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5499 | *) ac_try_echo=$ac_try;; | |
5500 | esac | |
5501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5502 | (eval "$ac_try") 2>&5 | |
5503 | ac_status=$? | |
5504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5505 | (exit $ac_status); }; }; then | |
5506 | ac_compiler_gnu=yes | |
89354eef | 5507 | else |
f58aa3e1 | 5508 | echo "$as_me: failed program was:" >&5 |
5509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5510 | ||
5511 | ac_compiler_gnu=no | |
89354eef | 5512 | fi |
5513 | ||
f58aa3e1 | 5514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5515 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
89354eef | 5516 | |
f58aa3e1 | 5517 | fi |
5518 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
5519 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | |
5520 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
5521 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
5522 | ac_save_CXXFLAGS=$CXXFLAGS | |
5523 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
5524 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | |
5525 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
5526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5527 | else | |
5528 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5529 | ac_cxx_werror_flag=yes | |
5530 | ac_cv_prog_cxx_g=no | |
5531 | CXXFLAGS="-g" | |
5532 | cat >conftest.$ac_ext <<_ACEOF | |
5533 | /* confdefs.h. */ | |
5534 | _ACEOF | |
5535 | cat confdefs.h >>conftest.$ac_ext | |
5536 | cat >>conftest.$ac_ext <<_ACEOF | |
5537 | /* end confdefs.h. */ | |
89354eef | 5538 | |
f58aa3e1 | 5539 | int |
5540 | main () | |
5541 | { | |
89354eef | 5542 | |
f58aa3e1 | 5543 | ; |
5544 | return 0; | |
5545 | } | |
5546 | _ACEOF | |
5547 | rm -f conftest.$ac_objext | |
5548 | if { (ac_try="$ac_compile" | |
5549 | case "(($ac_try" in | |
5550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5551 | *) ac_try_echo=$ac_try;; | |
5552 | esac | |
5553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5554 | (eval "$ac_compile") 2>conftest.er1 | |
5555 | ac_status=$? | |
5556 | grep -v '^ *+' conftest.er1 >conftest.err | |
5557 | rm -f conftest.er1 | |
5558 | cat conftest.err >&5 | |
5559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5560 | (exit $ac_status); } && | |
5561 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
5562 | { (case "(($ac_try" in | |
5563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5564 | *) ac_try_echo=$ac_try;; | |
5565 | esac | |
5566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5567 | (eval "$ac_try") 2>&5 | |
89354eef | 5568 | ac_status=$? |
5569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f58aa3e1 | 5570 | (exit $ac_status); }; } && |
5571 | { ac_try='test -s conftest.$ac_objext' | |
5572 | { (case "(($ac_try" in | |
5573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5574 | *) ac_try_echo=$ac_try;; | |
5575 | esac | |
5576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5577 | (eval "$ac_try") 2>&5 | |
5578 | ac_status=$? | |
5579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5580 | (exit $ac_status); }; }; then | |
5581 | ac_cv_prog_cxx_g=yes | |
89354eef | 5582 | else |
f58aa3e1 | 5583 | echo "$as_me: failed program was:" >&5 |
5584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
89354eef | 5585 | |
f58aa3e1 | 5586 | CXXFLAGS="" |
5587 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 5588 | /* confdefs.h. */ |
5589 | _ACEOF | |
5590 | cat confdefs.h >>conftest.$ac_ext | |
5591 | cat >>conftest.$ac_ext <<_ACEOF | |
5592 | /* end confdefs.h. */ | |
89354eef | 5593 | |
89354eef | 5594 | int |
5595 | main () | |
5596 | { | |
5597 | ||
5598 | ; | |
5599 | return 0; | |
5600 | } | |
5601 | _ACEOF | |
f58aa3e1 | 5602 | rm -f conftest.$ac_objext |
5603 | if { (ac_try="$ac_compile" | |
5604 | case "(($ac_try" in | |
5605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5606 | *) ac_try_echo=$ac_try;; | |
5607 | esac | |
5608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5609 | (eval "$ac_compile") 2>conftest.er1 | |
89354eef | 5610 | ac_status=$? |
f58aa3e1 | 5611 | grep -v '^ *+' conftest.er1 >conftest.err |
5612 | rm -f conftest.er1 | |
5613 | cat conftest.err >&5 | |
89354eef | 5614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5615 | (exit $ac_status); } && | |
f58aa3e1 | 5616 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5617 | { (case "(($ac_try" in | |
5618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5619 | *) ac_try_echo=$ac_try;; | |
5620 | esac | |
5621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5622 | (eval "$ac_try") 2>&5 | |
5623 | ac_status=$? | |
5624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5625 | (exit $ac_status); }; } && | |
5626 | { ac_try='test -s conftest.$ac_objext' | |
5627 | { (case "(($ac_try" in | |
5628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5629 | *) ac_try_echo=$ac_try;; | |
5630 | esac | |
5631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5632 | (eval "$ac_try") 2>&5 | |
89354eef | 5633 | ac_status=$? |
5634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5635 | (exit $ac_status); }; }; then | |
f58aa3e1 | 5636 | : |
89354eef | 5637 | else |
5638 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 5639 | sed 's/^/| /' conftest.$ac_ext >&5 |
5640 | ||
f58aa3e1 | 5641 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5642 | CXXFLAGS="-g" | |
5643 | cat >conftest.$ac_ext <<_ACEOF | |
5644 | /* confdefs.h. */ | |
5645 | _ACEOF | |
5646 | cat confdefs.h >>conftest.$ac_ext | |
5647 | cat >>conftest.$ac_ext <<_ACEOF | |
5648 | /* end confdefs.h. */ | |
89354eef | 5649 | |
f58aa3e1 | 5650 | int |
5651 | main () | |
5652 | { | |
89354eef | 5653 | |
f58aa3e1 | 5654 | ; |
5655 | return 0; | |
5656 | } | |
5657 | _ACEOF | |
5658 | rm -f conftest.$ac_objext | |
5659 | if { (ac_try="$ac_compile" | |
5660 | case "(($ac_try" in | |
5661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5662 | *) ac_try_echo=$ac_try;; | |
89354eef | 5663 | esac |
f58aa3e1 | 5664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5665 | (eval "$ac_compile") 2>conftest.er1 | |
5666 | ac_status=$? | |
5667 | grep -v '^ *+' conftest.er1 >conftest.err | |
5668 | rm -f conftest.er1 | |
5669 | cat conftest.err >&5 | |
5670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5671 | (exit $ac_status); } && | |
5672 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
5673 | { (case "(($ac_try" in | |
5674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5675 | *) ac_try_echo=$ac_try;; | |
5676 | esac | |
5677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5678 | (eval "$ac_try") 2>&5 | |
5679 | ac_status=$? | |
5680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5681 | (exit $ac_status); }; } && | |
5682 | { ac_try='test -s conftest.$ac_objext' | |
5683 | { (case "(($ac_try" in | |
5684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5685 | *) ac_try_echo=$ac_try;; | |
5686 | esac | |
5687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5688 | (eval "$ac_try") 2>&5 | |
5689 | ac_status=$? | |
5690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5691 | (exit $ac_status); }; }; then | |
5692 | ac_cv_prog_cxx_g=yes | |
5693 | else | |
5694 | echo "$as_me: failed program was:" >&5 | |
5695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
89354eef | 5696 | |
89354eef | 5697 | |
f58aa3e1 | 5698 | fi |
89354eef | 5699 | |
f58aa3e1 | 5700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5701 | fi | |
89354eef | 5702 | |
f58aa3e1 | 5703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5704 | fi | |
89354eef | 5705 | |
f58aa3e1 | 5706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5707 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5708 | fi | |
5709 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
5710 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | |
5711 | if test "$ac_test_CXXFLAGS" = set; then | |
5712 | CXXFLAGS=$ac_save_CXXFLAGS | |
5713 | elif test $ac_cv_prog_cxx_g = yes; then | |
5714 | if test "$GXX" = yes; then | |
5715 | CXXFLAGS="-g -O2" | |
5716 | else | |
5717 | CXXFLAGS="-g" | |
5718 | fi | |
89354eef | 5719 | else |
f58aa3e1 | 5720 | if test "$GXX" = yes; then |
5721 | CXXFLAGS="-O2" | |
5722 | else | |
5723 | CXXFLAGS= | |
5724 | fi | |
89354eef | 5725 | fi |
f58aa3e1 | 5726 | ac_ext=cpp |
5727 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5728 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5729 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5730 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
89354eef | 5731 | |
f58aa3e1 | 5732 | depcc="$CXX" am_compiler_list= |
89354eef | 5733 | |
f58aa3e1 | 5734 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5735 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
5736 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
5737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5738 | else | |
5739 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5740 | # We make a subdir and do the tests there. Otherwise we can end up | |
5741 | # making bogus files that we don't know about and never remove. For | |
5742 | # instance it was reported that on HP-UX the gcc test will end up | |
5743 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5744 | # in D'. | |
5745 | mkdir conftest.dir | |
5746 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5747 | # using a relative directory. | |
5748 | cp "$am_depcomp" conftest.dir | |
5749 | cd conftest.dir | |
5750 | # We will build objects and dependencies in a subdirectory because | |
5751 | # it helps to detect inapplicable dependency modes. For instance | |
5752 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5753 | # side effect of compilation, but ICC will put the dependencies in | |
5754 | # the current directory while Tru64 will put them in the object | |
5755 | # directory. | |
5756 | mkdir sub | |
5757 | ||
5758 | am_cv_CXX_dependencies_compiler_type=none | |
5759 | if test "$am_compiler_list" = ""; then | |
5760 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
89354eef | 5761 | fi |
f58aa3e1 | 5762 | for depmode in $am_compiler_list; do |
5763 | # Setup a source with many dependencies, because some compilers | |
5764 | # like to wrap large dependency lists on column 80 (with \), and | |
5765 | # we should not choose a depcomp mode which is confused by this. | |
5766 | # | |
5767 | # We need to recreate these files for each test, as the compiler may | |
5768 | # overwrite some of them when testing with obscure command lines. | |
5769 | # This happens at least with the AIX C compiler. | |
5770 | : > sub/conftest.c | |
5771 | for i in 1 2 3 4 5 6; do | |
5772 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5773 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5774 | # Solaris 8's {/usr,}/bin/sh. | |
5775 | touch sub/conftst$i.h | |
5776 | done | |
5777 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
89354eef | 5778 | |
f58aa3e1 | 5779 | case $depmode in |
5780 | nosideeffect) | |
5781 | # after this tag, mechanisms are not by side-effect, so they'll | |
5782 | # only be used when explicitly requested | |
5783 | if test "x$enable_dependency_tracking" = xyes; then | |
5784 | continue | |
5785 | else | |
5786 | break | |
5787 | fi | |
5788 | ;; | |
5789 | none) break ;; | |
5790 | esac | |
5791 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
5792 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5793 | # handle `-M -o', and we need to detect this. | |
5794 | if depmode=$depmode \ | |
5795 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
5796 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5797 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
5798 | >/dev/null 2>conftest.err && | |
5799 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5800 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
5801 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5802 | # icc doesn't choke on unknown options, it will just issue warnings | |
5803 | # or remarks (even with -Werror). So we grep stderr for any message | |
5804 | # that says an option was ignored or not supported. | |
5805 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5806 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5807 | # The diagnosis changed in icc 8.0: | |
5808 | # icc: Command line remark: option '-MP' not supported | |
5809 | if (grep 'ignoring option' conftest.err || | |
5810 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5811 | am_cv_CXX_dependencies_compiler_type=$depmode | |
5812 | break | |
5813 | fi | |
5814 | fi | |
5815 | done | |
89354eef | 5816 | |
f58aa3e1 | 5817 | cd .. |
5818 | rm -rf conftest.dir | |
5819 | else | |
5820 | am_cv_CXX_dependencies_compiler_type=none | |
89354eef | 5821 | fi |
5822 | ||
f58aa3e1 | 5823 | fi |
5824 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
5825 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } | |
5826 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
89354eef | 5827 | |
f58aa3e1 | 5828 | |
5829 | ||
5830 | if | |
5831 | test "x$enable_dependency_tracking" != xno \ | |
5832 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
5833 | am__fastdepCXX_TRUE= | |
5834 | am__fastdepCXX_FALSE='#' | |
89354eef | 5835 | else |
f58aa3e1 | 5836 | am__fastdepCXX_TRUE='#' |
5837 | am__fastdepCXX_FALSE= | |
89354eef | 5838 | fi |
89354eef | 5839 | |
5840 | ||
5841 | ||
89354eef | 5842 | |
f58aa3e1 | 5843 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5844 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
5845 | (test "X$CXX" != "Xg++"))) ; then | |
5846 | ac_ext=cpp | |
5847 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5848 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5849 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5850 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5851 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
5852 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } | |
5853 | if test -z "$CXXCPP"; then | |
5854 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
89354eef | 5855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5856 | else | |
f58aa3e1 | 5857 | # Double quotes because CXXCPP needs to be expanded |
5858 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
5859 | do | |
5860 | ac_preproc_ok=false | |
5861 | for ac_cxx_preproc_warn_flag in '' yes | |
5862 | do | |
5863 | # Use a header file that comes with gcc, so configuring glibc | |
5864 | # with a fresh cross-compiler works. | |
5865 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5866 | # <limits.h> exists even on freestanding compilers. | |
5867 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5868 | # not just through cpp. "Syntax error" is here to catch this case. | |
5869 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 5870 | /* confdefs.h. */ |
5871 | _ACEOF | |
5872 | cat confdefs.h >>conftest.$ac_ext | |
5873 | cat >>conftest.$ac_ext <<_ACEOF | |
5874 | /* end confdefs.h. */ | |
f58aa3e1 | 5875 | #ifdef __STDC__ |
5876 | # include <limits.h> | |
5877 | #else | |
5878 | # include <assert.h> | |
5879 | #endif | |
5880 | Syntax error | |
89354eef | 5881 | _ACEOF |
f58aa3e1 | 5882 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5883 | case "(($ac_try" in | |
5884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5885 | *) ac_try_echo=$ac_try;; | |
5886 | esac | |
5887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5888 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
89354eef | 5889 | ac_status=$? |
f58aa3e1 | 5890 | grep -v '^ *+' conftest.er1 >conftest.err |
5891 | rm -f conftest.er1 | |
5892 | cat conftest.err >&5 | |
89354eef | 5893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f58aa3e1 | 5894 | (exit $ac_status); } >/dev/null; then |
5895 | if test -s conftest.err; then | |
5896 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5897 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5898 | else | |
5899 | ac_cpp_err= | |
5900 | fi | |
5901 | else | |
5902 | ac_cpp_err=yes | |
5903 | fi | |
5904 | if test -z "$ac_cpp_err"; then | |
5905 | : | |
89354eef | 5906 | else |
5907 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 5908 | sed 's/^/| /' conftest.$ac_ext >&5 |
5909 | ||
f58aa3e1 | 5910 | # Broken: fails on valid input. |
5911 | continue | |
89354eef | 5912 | fi |
5913 | ||
f58aa3e1 | 5914 | rm -f conftest.err conftest.$ac_ext |
89354eef | 5915 | |
f58aa3e1 | 5916 | # OK, works on sane cases. Now check whether nonexistent headers |
5917 | # can be detected and how. | |
89354eef | 5918 | cat >conftest.$ac_ext <<_ACEOF |
49ba971d | 5919 | /* confdefs.h. */ |
5920 | _ACEOF | |
5921 | cat confdefs.h >>conftest.$ac_ext | |
5922 | cat >>conftest.$ac_ext <<_ACEOF | |
5923 | /* end confdefs.h. */ | |
f58aa3e1 | 5924 | #include <ac_nonexistent.h> |
89354eef | 5925 | _ACEOF |
f58aa3e1 | 5926 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5927 | case "(($ac_try" in | |
5928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5929 | *) ac_try_echo=$ac_try;; | |
5930 | esac | |
5931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5932 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
89354eef | 5933 | ac_status=$? |
f58aa3e1 | 5934 | grep -v '^ *+' conftest.er1 >conftest.err |
5935 | rm -f conftest.er1 | |
5936 | cat conftest.err >&5 | |
89354eef | 5937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f58aa3e1 | 5938 | (exit $ac_status); } >/dev/null; then |
5939 | if test -s conftest.err; then | |
5940 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5941 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5942 | else | |
5943 | ac_cpp_err= | |
5944 | fi | |
5945 | else | |
5946 | ac_cpp_err=yes | |
5947 | fi | |
5948 | if test -z "$ac_cpp_err"; then | |
5949 | # Broken: success on invalid input. | |
5950 | continue | |
89354eef | 5951 | else |
5952 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 5953 | sed 's/^/| /' conftest.$ac_ext >&5 |
5954 | ||
f58aa3e1 | 5955 | # Passes both tests. |
5956 | ac_preproc_ok=: | |
5957 | break | |
89354eef | 5958 | fi |
89354eef | 5959 | |
f58aa3e1 | 5960 | rm -f conftest.err conftest.$ac_ext |
89354eef | 5961 | |
f58aa3e1 | 5962 | done |
5963 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5964 | rm -f conftest.err conftest.$ac_ext | |
5965 | if $ac_preproc_ok; then | |
5966 | break | |
89354eef | 5967 | fi |
5968 | ||
f58aa3e1 | 5969 | done |
5970 | ac_cv_prog_CXXCPP=$CXXCPP | |
89354eef | 5971 | |
f58aa3e1 | 5972 | fi |
5973 | CXXCPP=$ac_cv_prog_CXXCPP | |
89354eef | 5974 | else |
f58aa3e1 | 5975 | ac_cv_prog_CXXCPP=$CXXCPP |
5976 | fi | |
5977 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
5978 | echo "${ECHO_T}$CXXCPP" >&6; } | |
5979 | ac_preproc_ok=false | |
5980 | for ac_cxx_preproc_warn_flag in '' yes | |
5981 | do | |
5982 | # Use a header file that comes with gcc, so configuring glibc | |
5983 | # with a fresh cross-compiler works. | |
5984 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5985 | # <limits.h> exists even on freestanding compilers. | |
5986 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5987 | # not just through cpp. "Syntax error" is here to catch this case. | |
89354eef | 5988 | cat >conftest.$ac_ext <<_ACEOF |
49ba971d | 5989 | /* confdefs.h. */ |
5990 | _ACEOF | |
5991 | cat confdefs.h >>conftest.$ac_ext | |
5992 | cat >>conftest.$ac_ext <<_ACEOF | |
5993 | /* end confdefs.h. */ | |
f58aa3e1 | 5994 | #ifdef __STDC__ |
5995 | # include <limits.h> | |
5996 | #else | |
5997 | # include <assert.h> | |
5998 | #endif | |
5999 | Syntax error | |
89354eef | 6000 | _ACEOF |
f58aa3e1 | 6001 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6002 | case "(($ac_try" in | |
6003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6004 | *) ac_try_echo=$ac_try;; | |
6005 | esac | |
6006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6007 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
89354eef | 6008 | ac_status=$? |
f58aa3e1 | 6009 | grep -v '^ *+' conftest.er1 >conftest.err |
6010 | rm -f conftest.er1 | |
6011 | cat conftest.err >&5 | |
89354eef | 6012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f58aa3e1 | 6013 | (exit $ac_status); } >/dev/null; then |
6014 | if test -s conftest.err; then | |
6015 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
6016 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
6017 | else | |
6018 | ac_cpp_err= | |
6019 | fi | |
6020 | else | |
6021 | ac_cpp_err=yes | |
6022 | fi | |
6023 | if test -z "$ac_cpp_err"; then | |
6024 | : | |
89354eef | 6025 | else |
6026 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 6027 | sed 's/^/| /' conftest.$ac_ext >&5 |
6028 | ||
f58aa3e1 | 6029 | # Broken: fails on valid input. |
6030 | continue | |
89354eef | 6031 | fi |
89354eef | 6032 | |
f58aa3e1 | 6033 | rm -f conftest.err conftest.$ac_ext |
6034 | ||
6035 | # OK, works on sane cases. Now check whether nonexistent headers | |
6036 | # can be detected and how. | |
6037 | cat >conftest.$ac_ext <<_ACEOF | |
6038 | /* confdefs.h. */ | |
6039 | _ACEOF | |
6040 | cat confdefs.h >>conftest.$ac_ext | |
6041 | cat >>conftest.$ac_ext <<_ACEOF | |
6042 | /* end confdefs.h. */ | |
6043 | #include <ac_nonexistent.h> | |
6044 | _ACEOF | |
6045 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6046 | case "(($ac_try" in | |
6047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6048 | *) ac_try_echo=$ac_try;; | |
6049 | esac | |
6050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6051 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6052 | ac_status=$? | |
6053 | grep -v '^ *+' conftest.er1 >conftest.err | |
6054 | rm -f conftest.er1 | |
6055 | cat conftest.err >&5 | |
6056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6057 | (exit $ac_status); } >/dev/null; then | |
6058 | if test -s conftest.err; then | |
6059 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
6060 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
6061 | else | |
6062 | ac_cpp_err= | |
6063 | fi | |
6064 | else | |
6065 | ac_cpp_err=yes | |
6066 | fi | |
6067 | if test -z "$ac_cpp_err"; then | |
6068 | # Broken: success on invalid input. | |
6069 | continue | |
6070 | else | |
6071 | echo "$as_me: failed program was:" >&5 | |
6072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6073 | ||
6074 | # Passes both tests. | |
6075 | ac_preproc_ok=: | |
6076 | break | |
89354eef | 6077 | fi |
6078 | ||
f58aa3e1 | 6079 | rm -f conftest.err conftest.$ac_ext |
6080 | ||
6081 | done | |
6082 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6083 | rm -f conftest.err conftest.$ac_ext | |
6084 | if $ac_preproc_ok; then | |
6085 | : | |
89354eef | 6086 | else |
f58aa3e1 | 6087 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
6088 | See \`config.log' for more details." >&5 | |
6089 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
6090 | See \`config.log' for more details." >&2;} | |
6091 | { (exit 1); exit 1; }; } | |
89354eef | 6092 | fi |
6093 | ||
f58aa3e1 | 6094 | ac_ext=cpp |
6095 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6096 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6097 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6098 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6099 | ||
6100 | fi | |
6101 | ||
6102 | ||
6103 | ac_ext=f | |
6104 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
6105 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6106 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
6107 | if test -n "$ac_tool_prefix"; then | |
6108 | for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn | |
6109 | do | |
6110 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6111 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6112 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6113 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6114 | if test "${ac_cv_prog_F77+set}" = set; then | |
6115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6116 | else | |
6117 | if test -n "$F77"; then | |
6118 | ac_cv_prog_F77="$F77" # Let the user override the test. | |
6119 | else | |
6120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6121 | for as_dir in $PATH | |
6122 | do | |
6123 | IFS=$as_save_IFS | |
6124 | test -z "$as_dir" && as_dir=. | |
6125 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6126 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6127 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | |
6128 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6129 | break 2 | |
89354eef | 6130 | fi |
f58aa3e1 | 6131 | done |
6132 | done | |
6133 | IFS=$as_save_IFS | |
6134 | ||
6135 | fi | |
6136 | fi | |
6137 | F77=$ac_cv_prog_F77 | |
6138 | if test -n "$F77"; then | |
6139 | { echo "$as_me:$LINENO: result: $F77" >&5 | |
6140 | echo "${ECHO_T}$F77" >&6; } | |
89354eef | 6141 | else |
f58aa3e1 | 6142 | { echo "$as_me:$LINENO: result: no" >&5 |
6143 | echo "${ECHO_T}no" >&6; } | |
89354eef | 6144 | fi |
6145 | ||
f58aa3e1 | 6146 | |
6147 | test -n "$F77" && break | |
6148 | done | |
6149 | fi | |
6150 | if test -z "$F77"; then | |
6151 | ac_ct_F77=$F77 | |
6152 | for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn | |
6153 | do | |
6154 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6155 | set dummy $ac_prog; ac_word=$2 | |
6156 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6157 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6158 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | |
6159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6160 | else | |
6161 | if test -n "$ac_ct_F77"; then | |
6162 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | |
6163 | else | |
6164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6165 | for as_dir in $PATH | |
6166 | do | |
6167 | IFS=$as_save_IFS | |
6168 | test -z "$as_dir" && as_dir=. | |
6169 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6170 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6171 | ac_cv_prog_ac_ct_F77="$ac_prog" | |
6172 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6173 | break 2 | |
6174 | fi | |
6175 | done | |
6176 | done | |
6177 | IFS=$as_save_IFS | |
6178 | ||
6179 | fi | |
6180 | fi | |
6181 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | |
6182 | if test -n "$ac_ct_F77"; then | |
6183 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | |
6184 | echo "${ECHO_T}$ac_ct_F77" >&6; } | |
6185 | else | |
6186 | { echo "$as_me:$LINENO: result: no" >&5 | |
6187 | echo "${ECHO_T}no" >&6; } | |
6188 | fi | |
6189 | ||
6190 | ||
6191 | test -n "$ac_ct_F77" && break | |
6192 | done | |
6193 | ||
6194 | if test "x$ac_ct_F77" = x; then | |
6195 | F77="" | |
6196 | else | |
6197 | case $cross_compiling:$ac_tool_warned in | |
6198 | yes:) | |
6199 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6200 | whose name does not start with the host triplet. If you think this | |
6201 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6202 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6203 | whose name does not start with the host triplet. If you think this | |
6204 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6205 | ac_tool_warned=yes ;; | |
6206 | esac | |
6207 | F77=$ac_ct_F77 | |
6208 | fi | |
6209 | fi | |
6210 | ||
6211 | ||
6212 | # Provide some information about the compiler. | |
6213 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 | |
6214 | ac_compiler=`set X $ac_compile; echo $2` | |
6215 | { (ac_try="$ac_compiler --version >&5" | |
6216 | case "(($ac_try" in | |
6217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6218 | *) ac_try_echo=$ac_try;; | |
6219 | esac | |
6220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6221 | (eval "$ac_compiler --version >&5") 2>&5 | |
6222 | ac_status=$? | |
6223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6224 | (exit $ac_status); } | |
6225 | { (ac_try="$ac_compiler -v >&5" | |
6226 | case "(($ac_try" in | |
6227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6228 | *) ac_try_echo=$ac_try;; | |
6229 | esac | |
6230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6231 | (eval "$ac_compiler -v >&5") 2>&5 | |
6232 | ac_status=$? | |
6233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6234 | (exit $ac_status); } | |
6235 | { (ac_try="$ac_compiler -V >&5" | |
6236 | case "(($ac_try" in | |
6237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6238 | *) ac_try_echo=$ac_try;; | |
6239 | esac | |
6240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6241 | (eval "$ac_compiler -V >&5") 2>&5 | |
6242 | ac_status=$? | |
6243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6244 | (exit $ac_status); } | |
6245 | rm -f a.out | |
6246 | ||
6247 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
6248 | # input file. (Note that this only needs to work for GNU compilers.) | |
6249 | ac_save_ext=$ac_ext | |
6250 | ac_ext=F | |
6251 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | |
6252 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } | |
6253 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | |
6254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6255 | else | |
89354eef | 6256 | cat >conftest.$ac_ext <<_ACEOF |
f58aa3e1 | 6257 | program main |
6258 | #ifndef __GNUC__ | |
6259 | choke me | |
6260 | #endif | |
89354eef | 6261 | |
f58aa3e1 | 6262 | end |
89354eef | 6263 | _ACEOF |
6264 | rm -f conftest.$ac_objext | |
f58aa3e1 | 6265 | if { (ac_try="$ac_compile" |
6266 | case "(($ac_try" in | |
6267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6268 | *) ac_try_echo=$ac_try;; | |
6269 | esac | |
6270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6271 | (eval "$ac_compile") 2>conftest.er1 | |
89354eef | 6272 | ac_status=$? |
f58aa3e1 | 6273 | grep -v '^ *+' conftest.er1 >conftest.err |
6274 | rm -f conftest.er1 | |
6275 | cat conftest.err >&5 | |
89354eef | 6276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6277 | (exit $ac_status); } && | |
f58aa3e1 | 6278 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
6279 | { (case "(($ac_try" in | |
6280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6281 | *) ac_try_echo=$ac_try;; | |
6282 | esac | |
6283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6284 | (eval "$ac_try") 2>&5 | |
6285 | ac_status=$? | |
6286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6287 | (exit $ac_status); }; } && | |
6288 | { ac_try='test -s conftest.$ac_objext' | |
6289 | { (case "(($ac_try" in | |
6290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6291 | *) ac_try_echo=$ac_try;; | |
6292 | esac | |
6293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6294 | (eval "$ac_try") 2>&5 | |
89354eef | 6295 | ac_status=$? |
6296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6297 | (exit $ac_status); }; }; then | |
f58aa3e1 | 6298 | ac_compiler_gnu=yes |
6299 | else | |
6300 | echo "$as_me: failed program was:" >&5 | |
6301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6302 | ||
6303 | ac_compiler_gnu=no | |
6304 | fi | |
6305 | ||
6306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6307 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | |
6308 | ||
6309 | fi | |
6310 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | |
6311 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } | |
6312 | ac_ext=$ac_save_ext | |
6313 | ac_test_FFLAGS=${FFLAGS+set} | |
6314 | ac_save_FFLAGS=$FFLAGS | |
6315 | FFLAGS= | |
6316 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | |
6317 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } | |
6318 | if test "${ac_cv_prog_f77_g+set}" = set; then | |
6319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6320 | else | |
6321 | FFLAGS=-g | |
6322 | cat >conftest.$ac_ext <<_ACEOF | |
6323 | program main | |
89354eef | 6324 | |
f58aa3e1 | 6325 | end |
6326 | _ACEOF | |
6327 | rm -f conftest.$ac_objext | |
6328 | if { (ac_try="$ac_compile" | |
6329 | case "(($ac_try" in | |
6330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6331 | *) ac_try_echo=$ac_try;; | |
6332 | esac | |
6333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6334 | (eval "$ac_compile") 2>conftest.er1 | |
6335 | ac_status=$? | |
6336 | grep -v '^ *+' conftest.er1 >conftest.err | |
6337 | rm -f conftest.er1 | |
6338 | cat conftest.err >&5 | |
6339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6340 | (exit $ac_status); } && | |
6341 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | |
6342 | { (case "(($ac_try" in | |
6343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6344 | *) ac_try_echo=$ac_try;; | |
6345 | esac | |
6346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6347 | (eval "$ac_try") 2>&5 | |
6348 | ac_status=$? | |
6349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6350 | (exit $ac_status); }; } && | |
6351 | { ac_try='test -s conftest.$ac_objext' | |
6352 | { (case "(($ac_try" in | |
6353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6354 | *) ac_try_echo=$ac_try;; | |
6355 | esac | |
6356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6357 | (eval "$ac_try") 2>&5 | |
6358 | ac_status=$? | |
6359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6360 | (exit $ac_status); }; }; then | |
6361 | ac_cv_prog_f77_g=yes | |
89354eef | 6362 | else |
6363 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 6364 | sed 's/^/| /' conftest.$ac_ext >&5 |
6365 | ||
f58aa3e1 | 6366 | ac_cv_prog_f77_g=no |
89354eef | 6367 | fi |
89354eef | 6368 | |
f58aa3e1 | 6369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6370 | ||
6371 | fi | |
6372 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | |
6373 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } | |
6374 | if test "$ac_test_FFLAGS" = set; then | |
6375 | FFLAGS=$ac_save_FFLAGS | |
6376 | elif test $ac_cv_prog_f77_g = yes; then | |
6377 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
6378 | FFLAGS="-g -O2" | |
6379 | else | |
6380 | FFLAGS="-g" | |
6381 | fi | |
6382 | else | |
6383 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
6384 | FFLAGS="-O2" | |
89354eef | 6385 | else |
f58aa3e1 | 6386 | FFLAGS= |
89354eef | 6387 | fi |
6388 | fi | |
6389 | ||
f58aa3e1 | 6390 | G77=`test $ac_compiler_gnu = yes && echo yes` |
6391 | ac_ext=c | |
6392 | ac_cpp='$CPP $CPPFLAGS' | |
6393 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6394 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6395 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
89354eef | 6396 | |
89354eef | 6397 | |
89354eef | 6398 | |
f58aa3e1 | 6399 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
89354eef | 6400 | |
f58aa3e1 | 6401 | # find the maximum length of command line arguments |
6402 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
6403 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } | |
6404 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
6405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6406 | else | |
6407 | i=0 | |
6408 | teststring="ABCD" | |
6409 | ||
6410 | case $build_os in | |
6411 | msdosdjgpp*) | |
6412 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6413 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6414 | # during glob expansion). Even if it were fixed, the result of this | |
6415 | # check would be larger than it should be. | |
6416 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6417 | ;; | |
89354eef | 6418 | |
f58aa3e1 | 6419 | gnu*) |
6420 | # Under GNU Hurd, this test is not required because there is | |
6421 | # no limit to the length of command line arguments. | |
6422 | # Libtool will interpret -1 as no limit whatsoever | |
6423 | lt_cv_sys_max_cmd_len=-1; | |
6424 | ;; | |
89354eef | 6425 | |
f58aa3e1 | 6426 | cygwin* | mingw*) |
6427 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6428 | # about 5 minutes as the teststring grows exponentially. | |
6429 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6430 | # you end up with a "frozen" computer, even though with patience | |
6431 | # the test eventually succeeds (with a max line length of 256k). | |
6432 | # Instead, let's just punt: use the minimum linelength reported by | |
6433 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6434 | lt_cv_sys_max_cmd_len=8192; | |
89354eef | 6435 | ;; |
6436 | ||
6437 | amigaos*) | |
f58aa3e1 | 6438 | # On AmigaOS with pdksh, this test takes hours, literally. |
6439 | # So we just punt and use a minimum line length of 8192. | |
6440 | lt_cv_sys_max_cmd_len=8192; | |
89354eef | 6441 | ;; |
6442 | ||
f58aa3e1 | 6443 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6444 | # This has been around since 386BSD, at least. Likely further. | |
6445 | if test -x /sbin/sysctl; then | |
6446 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6447 | elif test -x /usr/sbin/sysctl; then | |
6448 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
89354eef | 6449 | else |
f58aa3e1 | 6450 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
89354eef | 6451 | fi |
f58aa3e1 | 6452 | # And add a safety zone |
6453 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6454 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
89354eef | 6455 | ;; |
6456 | ||
f58aa3e1 | 6457 | interix*) |
6458 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6459 | lt_cv_sys_max_cmd_len=196608 | |
6460 | ;; | |
89354eef | 6461 | |
f58aa3e1 | 6462 | osf*) |
6463 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6464 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6465 | # nice to cause kernel panics so lets avoid the loop below. | |
6466 | # First set a reasonable default. | |
6467 | lt_cv_sys_max_cmd_len=16384 | |
6468 | # | |
6469 | if test -x /sbin/sysconfig; then | |
6470 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6471 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6472 | esac | |
89354eef | 6473 | fi |
89354eef | 6474 | ;; |
f58aa3e1 | 6475 | sco3.2v5*) |
6476 | lt_cv_sys_max_cmd_len=102400 | |
6477 | ;; | |
6478 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6479 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6480 | if test -n "$kargmax"; then | |
6481 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
89354eef | 6482 | else |
f58aa3e1 | 6483 | lt_cv_sys_max_cmd_len=32768 |
89354eef | 6484 | fi |
6485 | ;; | |
f58aa3e1 | 6486 | *) |
6487 | # If test is not a shell built-in, we'll probably end up computing a | |
6488 | # maximum length that is only half of the actual maximum length, but | |
6489 | # we can't tell. | |
6490 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6491 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | |
6492 | = "XX$teststring") >/dev/null 2>&1 && | |
6493 | new_result=`expr "X$teststring" : ".*" 2>&1` && | |
6494 | lt_cv_sys_max_cmd_len=$new_result && | |
6495 | test $i != 17 # 1/2 MB should be enough | |
6496 | do | |
6497 | i=`expr $i + 1` | |
6498 | teststring=$teststring$teststring | |
6499 | done | |
6500 | teststring= | |
6501 | # Add a significant safety factor because C++ compilers can tack on massive | |
6502 | # amounts of additional arguments before passing them to the linker. | |
6503 | # It appears as though 1/2 is a usable value. | |
6504 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6505 | ;; | |
6506 | esac | |
89354eef | 6507 | |
f58aa3e1 | 6508 | fi |
89354eef | 6509 | |
f58aa3e1 | 6510 | if test -n $lt_cv_sys_max_cmd_len ; then |
6511 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
6512 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } | |
6513 | else | |
6514 | { echo "$as_me:$LINENO: result: none" >&5 | |
6515 | echo "${ECHO_T}none" >&6; } | |
6516 | fi | |
6517 | ||
6518 | ||
6519 | ||
6520 | ||
6521 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6522 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
6523 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } | |
6524 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
6525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6526 | else | |
6527 | ||
6528 | # These are sane defaults that work on at least a few old systems. | |
6529 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6530 | ||
6531 | # Character class describing NM global symbol codes. | |
6532 | symcode='[BCDEGRST]' | |
6533 | ||
6534 | # Regexp to match symbols that can be accessed directly from C. | |
6535 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6536 | ||
6537 | # Transform an extracted symbol line into a proper C declaration | |
6538 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
6539 | ||
6540 | # Transform an extracted symbol line into symbol name and symbol address | |
6541 | 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'" | |
6542 | ||
6543 | # Define system-specific variables. | |
6544 | case $host_os in | |
6545 | aix*) | |
6546 | symcode='[BCDT]' | |
6547 | ;; | |
6548 | cygwin* | mingw* | pw32*) | |
6549 | symcode='[ABCDGISTW]' | |
6550 | ;; | |
6551 | hpux*) # Its linker distinguishes data from code symbols | |
6552 | if test "$host_cpu" = ia64; then | |
6553 | symcode='[ABCDEGRST]' | |
6554 | fi | |
6555 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6556 | 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'" | |
6557 | ;; | |
6558 | linux* | k*bsd*-gnu) | |
6559 | if test "$host_cpu" = ia64; then | |
6560 | symcode='[ABCDGIRSTW]' | |
6561 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6562 | 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'" | |
6563 | fi | |
6564 | ;; | |
6565 | irix* | nonstopux*) | |
6566 | symcode='[BCDEGRST]' | |
6567 | ;; | |
6568 | osf*) | |
6569 | symcode='[BCDEGQRST]' | |
6570 | ;; | |
6571 | solaris*) | |
6572 | symcode='[BDRT]' | |
6573 | ;; | |
6574 | sco3.2v5*) | |
6575 | symcode='[DT]' | |
6576 | ;; | |
6577 | sysv4.2uw2*) | |
6578 | symcode='[DT]' | |
6579 | ;; | |
6580 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6581 | symcode='[ABDT]' | |
6582 | ;; | |
6583 | sysv4) | |
6584 | symcode='[DFNSTU]' | |
6585 | ;; | |
6586 | esac | |
6587 | ||
6588 | # Handle CRLF in mingw tool chain | |
6589 | opt_cr= | |
6590 | case $build_os in | |
6591 | mingw*) | |
6592 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6593 | ;; | |
6594 | esac | |
6595 | ||
6596 | # If we're using GNU nm, then use its standard symbol codes. | |
6597 | case `$NM -V 2>&1` in | |
6598 | *GNU* | *'with BFD'*) | |
6599 | symcode='[ABCDGIRSTW]' ;; | |
6600 | esac | |
6601 | ||
6602 | # Try without a prefix undercore, then with it. | |
6603 | for ac_symprfx in "" "_"; do | |
6604 | ||
6605 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6606 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6607 | ||
6608 | # Write the raw and C identifiers. | |
6609 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6610 | ||
6611 | # Check to see that the pipe works correctly. | |
6612 | pipe_works=no | |
6613 | ||
6614 | rm -f conftest* | |
6615 | cat > conftest.$ac_ext <<EOF | |
6616 | #ifdef __cplusplus | |
6617 | extern "C" { | |
6618 | #endif | |
6619 | char nm_test_var; | |
6620 | void nm_test_func(){} | |
6621 | #ifdef __cplusplus | |
6622 | } | |
6623 | #endif | |
6624 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6625 | EOF | |
6626 | ||
6627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6628 | (eval $ac_compile) 2>&5 | |
6629 | ac_status=$? | |
6630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6631 | (exit $ac_status); }; then | |
6632 | # Now try to grab the symbols. | |
6633 | nlist=conftest.nm | |
6634 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
6635 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
6636 | ac_status=$? | |
6637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6638 | (exit $ac_status); } && test -s "$nlist"; then | |
6639 | # Try sorting and uniquifying the output. | |
6640 | if sort "$nlist" | uniq > "$nlist"T; then | |
6641 | mv -f "$nlist"T "$nlist" | |
6642 | else | |
6643 | rm -f "$nlist"T | |
6644 | fi | |
6645 | ||
6646 | # Make sure that we snagged all the symbols we need. | |
6647 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | |
6648 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | |
6649 | cat <<EOF > conftest.$ac_ext | |
6650 | #ifdef __cplusplus | |
6651 | extern "C" { | |
6652 | #endif | |
6653 | ||
6654 | EOF | |
6655 | # Now generate the symbol file. | |
6656 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | |
6657 | ||
6658 | cat <<EOF >> conftest.$ac_ext | |
6659 | #if defined (__STDC__) && __STDC__ | |
6660 | # define lt_ptr_t void * | |
6661 | #else | |
6662 | # define lt_ptr_t char * | |
6663 | # define const | |
6664 | #endif | |
6665 | ||
6666 | /* The mapping between symbol names and symbols. */ | |
6667 | const struct { | |
6668 | const char *name; | |
6669 | lt_ptr_t address; | |
6670 | } | |
6671 | lt_preloaded_symbols[] = | |
6672 | { | |
6673 | EOF | |
6674 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
6675 | cat <<\EOF >> conftest.$ac_ext | |
6676 | {0, (lt_ptr_t) 0} | |
6677 | }; | |
6678 | ||
6679 | #ifdef __cplusplus | |
6680 | } | |
6681 | #endif | |
6682 | EOF | |
6683 | # Now try linking the two files. | |
6684 | mv conftest.$ac_objext conftstm.$ac_objext | |
6685 | lt_save_LIBS="$LIBS" | |
6686 | lt_save_CFLAGS="$CFLAGS" | |
6687 | LIBS="conftstm.$ac_objext" | |
6688 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6690 | (eval $ac_link) 2>&5 | |
6691 | ac_status=$? | |
6692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6693 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
6694 | pipe_works=yes | |
6695 | fi | |
6696 | LIBS="$lt_save_LIBS" | |
6697 | CFLAGS="$lt_save_CFLAGS" | |
6698 | else | |
6699 | echo "cannot find nm_test_func in $nlist" >&5 | |
6700 | fi | |
6701 | else | |
6702 | echo "cannot find nm_test_var in $nlist" >&5 | |
6703 | fi | |
6704 | else | |
6705 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6706 | fi | |
6707 | else | |
6708 | echo "$progname: failed program was:" >&5 | |
6709 | cat conftest.$ac_ext >&5 | |
6710 | fi | |
6711 | rm -f conftest* conftst* | |
6712 | ||
6713 | # Do not use the global_symbol_pipe unless it works. | |
6714 | if test "$pipe_works" = yes; then | |
6715 | break | |
6716 | else | |
6717 | lt_cv_sys_global_symbol_pipe= | |
6718 | fi | |
6719 | done | |
6720 | ||
6721 | fi | |
6722 | ||
6723 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6724 | lt_cv_sys_global_symbol_to_cdecl= | |
6725 | fi | |
6726 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6727 | { echo "$as_me:$LINENO: result: failed" >&5 | |
6728 | echo "${ECHO_T}failed" >&6; } | |
6729 | else | |
6730 | { echo "$as_me:$LINENO: result: ok" >&5 | |
6731 | echo "${ECHO_T}ok" >&6; } | |
6732 | fi | |
6733 | ||
6734 | { echo "$as_me:$LINENO: checking for objdir" >&5 | |
6735 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } | |
6736 | if test "${lt_cv_objdir+set}" = set; then | |
6737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6738 | else | |
6739 | rm -f .libs 2>/dev/null | |
6740 | mkdir .libs 2>/dev/null | |
6741 | if test -d .libs; then | |
6742 | lt_cv_objdir=.libs | |
6743 | else | |
6744 | # MS-DOS does not allow filenames that begin with a dot. | |
6745 | lt_cv_objdir=_libs | |
6746 | fi | |
6747 | rmdir .libs 2>/dev/null | |
6748 | fi | |
6749 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
6750 | echo "${ECHO_T}$lt_cv_objdir" >&6; } | |
6751 | objdir=$lt_cv_objdir | |
6752 | ||
6753 | ||
6754 | ||
6755 | ||
6756 | ||
6757 | case $host_os in | |
6758 | aix3*) | |
6759 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6760 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6761 | # vanish in a puff of smoke. | |
6762 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6763 | COLLECT_NAMES= | |
6764 | export COLLECT_NAMES | |
6765 | fi | |
6766 | ;; | |
6767 | esac | |
6768 | ||
6769 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6770 | # metacharacters that are still active within double-quoted strings. | |
6771 | Xsed='sed -e 1s/^X//' | |
6772 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
6773 | ||
6774 | # Same as above, but do not quote variable references. | |
6775 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
6776 | ||
6777 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6778 | # double_quote_subst'ed string. | |
6779 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6780 | ||
6781 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6782 | no_glob_subst='s/\*/\\\*/g' | |
6783 | ||
6784 | # Constants: | |
6785 | rm="rm -f" | |
6786 | ||
6787 | # Global variables: | |
6788 | default_ofile=libtool | |
6789 | can_build_shared=yes | |
6790 | ||
6791 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
6792 | # which needs '.lib'). | |
6793 | libext=a | |
6794 | ltmain="$ac_aux_dir/ltmain.sh" | |
6795 | ofile="$default_ofile" | |
6796 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6797 | ||
6798 | if test -n "$ac_tool_prefix"; then | |
6799 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6800 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6801 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6802 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6803 | if test "${ac_cv_prog_AR+set}" = set; then | |
6804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6805 | else | |
6806 | if test -n "$AR"; then | |
6807 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6808 | else | |
6809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6810 | for as_dir in $PATH | |
6811 | do | |
6812 | IFS=$as_save_IFS | |
6813 | test -z "$as_dir" && as_dir=. | |
6814 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6815 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6816 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
6817 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6818 | break 2 | |
6819 | fi | |
6820 | done | |
6821 | done | |
6822 | IFS=$as_save_IFS | |
6823 | ||
6824 | fi | |
6825 | fi | |
6826 | AR=$ac_cv_prog_AR | |
6827 | if test -n "$AR"; then | |
6828 | { echo "$as_me:$LINENO: result: $AR" >&5 | |
6829 | echo "${ECHO_T}$AR" >&6; } | |
6830 | else | |
6831 | { echo "$as_me:$LINENO: result: no" >&5 | |
6832 | echo "${ECHO_T}no" >&6; } | |
6833 | fi | |
6834 | ||
6835 | ||
6836 | fi | |
6837 | if test -z "$ac_cv_prog_AR"; then | |
6838 | ac_ct_AR=$AR | |
6839 | # Extract the first word of "ar", so it can be a program name with args. | |
6840 | set dummy ar; ac_word=$2 | |
6841 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6842 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6843 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
6844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6845 | else | |
6846 | if test -n "$ac_ct_AR"; then | |
6847 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6848 | else | |
6849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6850 | for as_dir in $PATH | |
6851 | do | |
6852 | IFS=$as_save_IFS | |
6853 | test -z "$as_dir" && as_dir=. | |
6854 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6855 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6856 | ac_cv_prog_ac_ct_AR="ar" | |
6857 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6858 | break 2 | |
6859 | fi | |
6860 | done | |
6861 | done | |
6862 | IFS=$as_save_IFS | |
6863 | ||
6864 | fi | |
6865 | fi | |
6866 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6867 | if test -n "$ac_ct_AR"; then | |
6868 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
6869 | echo "${ECHO_T}$ac_ct_AR" >&6; } | |
6870 | else | |
6871 | { echo "$as_me:$LINENO: result: no" >&5 | |
6872 | echo "${ECHO_T}no" >&6; } | |
6873 | fi | |
6874 | ||
6875 | if test "x$ac_ct_AR" = x; then | |
6876 | AR="false" | |
6877 | else | |
6878 | case $cross_compiling:$ac_tool_warned in | |
6879 | yes:) | |
6880 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6881 | whose name does not start with the host triplet. If you think this | |
6882 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6883 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6884 | whose name does not start with the host triplet. If you think this | |
6885 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6886 | ac_tool_warned=yes ;; | |
6887 | esac | |
6888 | AR=$ac_ct_AR | |
6889 | fi | |
6890 | else | |
6891 | AR="$ac_cv_prog_AR" | |
6892 | fi | |
6893 | ||
6894 | if test -n "$ac_tool_prefix"; then | |
6895 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6896 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6897 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6899 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
6900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6901 | else | |
6902 | if test -n "$RANLIB"; then | |
6903 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6904 | else | |
6905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6906 | for as_dir in $PATH | |
6907 | do | |
6908 | IFS=$as_save_IFS | |
6909 | test -z "$as_dir" && as_dir=. | |
6910 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6911 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6912 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6914 | break 2 | |
6915 | fi | |
6916 | done | |
6917 | done | |
6918 | IFS=$as_save_IFS | |
6919 | ||
6920 | fi | |
6921 | fi | |
6922 | RANLIB=$ac_cv_prog_RANLIB | |
6923 | if test -n "$RANLIB"; then | |
6924 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
6925 | echo "${ECHO_T}$RANLIB" >&6; } | |
6926 | else | |
6927 | { echo "$as_me:$LINENO: result: no" >&5 | |
6928 | echo "${ECHO_T}no" >&6; } | |
6929 | fi | |
6930 | ||
6931 | ||
6932 | fi | |
6933 | if test -z "$ac_cv_prog_RANLIB"; then | |
6934 | ac_ct_RANLIB=$RANLIB | |
6935 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6936 | set dummy ranlib; ac_word=$2 | |
6937 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6938 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6939 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
6940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6941 | else | |
6942 | if test -n "$ac_ct_RANLIB"; then | |
6943 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6944 | else | |
6945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6946 | for as_dir in $PATH | |
6947 | do | |
6948 | IFS=$as_save_IFS | |
6949 | test -z "$as_dir" && as_dir=. | |
6950 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6952 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6953 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6954 | break 2 | |
6955 | fi | |
6956 | done | |
6957 | done | |
6958 | IFS=$as_save_IFS | |
6959 | ||
6960 | fi | |
6961 | fi | |
6962 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6963 | if test -n "$ac_ct_RANLIB"; then | |
6964 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
6965 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
6966 | else | |
6967 | { echo "$as_me:$LINENO: result: no" >&5 | |
6968 | echo "${ECHO_T}no" >&6; } | |
6969 | fi | |
6970 | ||
6971 | if test "x$ac_ct_RANLIB" = x; then | |
6972 | RANLIB=":" | |
6973 | else | |
6974 | case $cross_compiling:$ac_tool_warned in | |
6975 | yes:) | |
6976 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6977 | whose name does not start with the host triplet. If you think this | |
6978 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6979 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6980 | whose name does not start with the host triplet. If you think this | |
6981 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6982 | ac_tool_warned=yes ;; | |
6983 | esac | |
6984 | RANLIB=$ac_ct_RANLIB | |
6985 | fi | |
6986 | else | |
6987 | RANLIB="$ac_cv_prog_RANLIB" | |
6988 | fi | |
6989 | ||
6990 | if test -n "$ac_tool_prefix"; then | |
6991 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6992 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6993 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6995 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
6996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6997 | else | |
6998 | if test -n "$STRIP"; then | |
6999 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7000 | else | |
7001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7002 | for as_dir in $PATH | |
7003 | do | |
7004 | IFS=$as_save_IFS | |
7005 | test -z "$as_dir" && as_dir=. | |
7006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7008 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
7009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7010 | break 2 | |
7011 | fi | |
7012 | done | |
7013 | done | |
7014 | IFS=$as_save_IFS | |
7015 | ||
7016 | fi | |
7017 | fi | |
7018 | STRIP=$ac_cv_prog_STRIP | |
7019 | if test -n "$STRIP"; then | |
7020 | { echo "$as_me:$LINENO: result: $STRIP" >&5 | |
7021 | echo "${ECHO_T}$STRIP" >&6; } | |
7022 | else | |
7023 | { echo "$as_me:$LINENO: result: no" >&5 | |
7024 | echo "${ECHO_T}no" >&6; } | |
7025 | fi | |
7026 | ||
7027 | ||
7028 | fi | |
7029 | if test -z "$ac_cv_prog_STRIP"; then | |
7030 | ac_ct_STRIP=$STRIP | |
7031 | # Extract the first word of "strip", so it can be a program name with args. | |
7032 | set dummy strip; ac_word=$2 | |
7033 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7034 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7035 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
7036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7037 | else | |
7038 | if test -n "$ac_ct_STRIP"; then | |
7039 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7040 | else | |
7041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7042 | for as_dir in $PATH | |
7043 | do | |
7044 | IFS=$as_save_IFS | |
7045 | test -z "$as_dir" && as_dir=. | |
7046 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7047 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7048 | ac_cv_prog_ac_ct_STRIP="strip" | |
7049 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7050 | break 2 | |
7051 | fi | |
7052 | done | |
7053 | done | |
7054 | IFS=$as_save_IFS | |
7055 | ||
7056 | fi | |
7057 | fi | |
7058 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
7059 | if test -n "$ac_ct_STRIP"; then | |
7060 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
7061 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
7062 | else | |
7063 | { echo "$as_me:$LINENO: result: no" >&5 | |
7064 | echo "${ECHO_T}no" >&6; } | |
7065 | fi | |
7066 | ||
7067 | if test "x$ac_ct_STRIP" = x; then | |
7068 | STRIP=":" | |
7069 | else | |
7070 | case $cross_compiling:$ac_tool_warned in | |
7071 | yes:) | |
7072 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
7073 | whose name does not start with the host triplet. If you think this | |
7074 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
7075 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
7076 | whose name does not start with the host triplet. If you think this | |
7077 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
7078 | ac_tool_warned=yes ;; | |
7079 | esac | |
7080 | STRIP=$ac_ct_STRIP | |
7081 | fi | |
7082 | else | |
7083 | STRIP="$ac_cv_prog_STRIP" | |
7084 | fi | |
7085 | ||
7086 | ||
7087 | old_CC="$CC" | |
7088 | old_CFLAGS="$CFLAGS" | |
7089 | ||
7090 | # Set sane defaults for various variables | |
7091 | test -z "$AR" && AR=ar | |
7092 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
7093 | test -z "$AS" && AS=as | |
7094 | test -z "$CC" && CC=cc | |
7095 | test -z "$LTCC" && LTCC=$CC | |
7096 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7097 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
7098 | test -z "$LD" && LD=ld | |
7099 | test -z "$LN_S" && LN_S="ln -s" | |
7100 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7101 | test -z "$NM" && NM=nm | |
7102 | test -z "$SED" && SED=sed | |
7103 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
7104 | test -z "$RANLIB" && RANLIB=: | |
7105 | test -z "$STRIP" && STRIP=: | |
7106 | test -z "$ac_objext" && ac_objext=o | |
7107 | ||
7108 | # Determine commands to create old-style static archives. | |
7109 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
7110 | old_postinstall_cmds='chmod 644 $oldlib' | |
7111 | old_postuninstall_cmds= | |
7112 | ||
7113 | if test -n "$RANLIB"; then | |
7114 | case $host_os in | |
7115 | openbsd*) | |
7116 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7117 | ;; | |
7118 | *) | |
7119 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7120 | ;; | |
7121 | esac | |
7122 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
7123 | fi | |
7124 | ||
7125 | for cc_temp in $compiler""; do | |
7126 | case $cc_temp in | |
7127 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7128 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7129 | \-*) ;; | |
7130 | *) break;; | |
7131 | esac | |
7132 | done | |
7133 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7134 | ||
7135 | ||
7136 | # Only perform the check for file, if the check method requires it | |
7137 | case $deplibs_check_method in | |
7138 | file_magic*) | |
7139 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7140 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
7141 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } | |
7142 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7144 | else | |
7145 | case $MAGIC_CMD in | |
7146 | [\\/*] | ?:[\\/]*) | |
7147 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7148 | ;; | |
7149 | *) | |
7150 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7151 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7152 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7153 | for ac_dir in $ac_dummy; do | |
7154 | IFS="$lt_save_ifs" | |
7155 | test -z "$ac_dir" && ac_dir=. | |
7156 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7157 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7158 | if test -n "$file_magic_test_file"; then | |
7159 | case $deplibs_check_method in | |
7160 | "file_magic "*) | |
7161 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7162 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7163 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7164 | $EGREP "$file_magic_regex" > /dev/null; then | |
7165 | : | |
7166 | else | |
7167 | cat <<EOF 1>&2 | |
7168 | ||
7169 | *** Warning: the command libtool uses to detect shared libraries, | |
7170 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7171 | *** The result is that libtool may fail to recognize shared libraries | |
7172 | *** as such. This will affect the creation of libtool libraries that | |
7173 | *** depend on shared libraries, but programs linked with such libtool | |
7174 | *** libraries will work regardless of this problem. Nevertheless, you | |
7175 | *** may want to report the problem to your system manager and/or to | |
7176 | *** bug-libtool@gnu.org | |
7177 | ||
7178 | EOF | |
7179 | fi ;; | |
7180 | esac | |
7181 | fi | |
7182 | break | |
7183 | fi | |
7184 | done | |
7185 | IFS="$lt_save_ifs" | |
7186 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7187 | ;; | |
7188 | esac | |
7189 | fi | |
7190 | ||
7191 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7192 | if test -n "$MAGIC_CMD"; then | |
7193 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7194 | echo "${ECHO_T}$MAGIC_CMD" >&6; } | |
7195 | else | |
7196 | { echo "$as_me:$LINENO: result: no" >&5 | |
7197 | echo "${ECHO_T}no" >&6; } | |
7198 | fi | |
7199 | ||
7200 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7201 | if test -n "$ac_tool_prefix"; then | |
7202 | { echo "$as_me:$LINENO: checking for file" >&5 | |
7203 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } | |
7204 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7206 | else | |
7207 | case $MAGIC_CMD in | |
7208 | [\\/*] | ?:[\\/]*) | |
7209 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7210 | ;; | |
7211 | *) | |
7212 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7213 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7214 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7215 | for ac_dir in $ac_dummy; do | |
7216 | IFS="$lt_save_ifs" | |
7217 | test -z "$ac_dir" && ac_dir=. | |
7218 | if test -f $ac_dir/file; then | |
7219 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7220 | if test -n "$file_magic_test_file"; then | |
7221 | case $deplibs_check_method in | |
7222 | "file_magic "*) | |
7223 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7224 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7225 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7226 | $EGREP "$file_magic_regex" > /dev/null; then | |
7227 | : | |
7228 | else | |
7229 | cat <<EOF 1>&2 | |
7230 | ||
7231 | *** Warning: the command libtool uses to detect shared libraries, | |
7232 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7233 | *** The result is that libtool may fail to recognize shared libraries | |
7234 | *** as such. This will affect the creation of libtool libraries that | |
7235 | *** depend on shared libraries, but programs linked with such libtool | |
7236 | *** libraries will work regardless of this problem. Nevertheless, you | |
7237 | *** may want to report the problem to your system manager and/or to | |
7238 | *** bug-libtool@gnu.org | |
7239 | ||
7240 | EOF | |
7241 | fi ;; | |
7242 | esac | |
7243 | fi | |
7244 | break | |
7245 | fi | |
7246 | done | |
7247 | IFS="$lt_save_ifs" | |
7248 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7249 | ;; | |
7250 | esac | |
7251 | fi | |
7252 | ||
7253 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7254 | if test -n "$MAGIC_CMD"; then | |
7255 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7256 | echo "${ECHO_T}$MAGIC_CMD" >&6; } | |
7257 | else | |
7258 | { echo "$as_me:$LINENO: result: no" >&5 | |
7259 | echo "${ECHO_T}no" >&6; } | |
7260 | fi | |
7261 | ||
7262 | else | |
7263 | MAGIC_CMD=: | |
7264 | fi | |
7265 | fi | |
7266 | ||
7267 | fi | |
7268 | ;; | |
7269 | esac | |
7270 | ||
7271 | enable_dlopen=no | |
7272 | enable_win32_dll=no | |
7273 | ||
7274 | # Check whether --enable-libtool-lock was given. | |
7275 | if test "${enable_libtool_lock+set}" = set; then | |
7276 | enableval=$enable_libtool_lock; | |
7277 | fi | |
7278 | ||
7279 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
7280 | ||
7281 | ||
7282 | # Check whether --with-pic was given. | |
7283 | if test "${with_pic+set}" = set; then | |
7284 | withval=$with_pic; pic_mode="$withval" | |
7285 | else | |
7286 | pic_mode=default | |
7287 | fi | |
7288 | ||
7289 | test -z "$pic_mode" && pic_mode=default | |
7290 | ||
7291 | # Use C for the default configuration in the libtool script | |
7292 | tagname= | |
7293 | lt_save_CC="$CC" | |
7294 | ac_ext=c | |
7295 | ac_cpp='$CPP $CPPFLAGS' | |
7296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7299 | ||
7300 | ||
7301 | # Source file extension for C test sources. | |
7302 | ac_ext=c | |
7303 | ||
7304 | # Object file extension for compiled C test sources. | |
7305 | objext=o | |
7306 | objext=$objext | |
7307 | ||
7308 | # Code to be used in simple compile tests | |
7309 | lt_simple_compile_test_code="int some_variable = 0;\n" | |
7310 | ||
7311 | # Code to be used in simple link tests | |
7312 | lt_simple_link_test_code='int main(){return(0);}\n' | |
7313 | ||
7314 | ||
7315 | # If no C compiler was specified, use CC. | |
7316 | LTCC=${LTCC-"$CC"} | |
7317 | ||
7318 | # If no C compiler flags were specified, use CFLAGS. | |
7319 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7320 | ||
7321 | # Allow CC to be a program name with arguments. | |
7322 | compiler=$CC | |
7323 | ||
7324 | ||
7325 | # save warnings/boilerplate of simple test code | |
7326 | ac_outfile=conftest.$ac_objext | |
7327 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7328 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7329 | _lt_compiler_boilerplate=`cat conftest.err` | |
7330 | $rm conftest* | |
7331 | ||
7332 | ac_outfile=conftest.$ac_objext | |
7333 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
7334 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7335 | _lt_linker_boilerplate=`cat conftest.err` | |
7336 | $rm conftest* | |
7337 | ||
7338 | ||
7339 | ||
7340 | lt_prog_compiler_no_builtin_flag= | |
7341 | ||
7342 | if test "$GCC" = yes; then | |
7343 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
7344 | ||
7345 | ||
7346 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
7347 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } | |
7348 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
7349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7350 | else | |
7351 | lt_cv_prog_compiler_rtti_exceptions=no | |
7352 | ac_outfile=conftest.$ac_objext | |
7353 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7354 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7355 | # Insert the option either (1) after the last *FLAGS variable, or | |
7356 | # (2) before a word containing "conftest.", or (3) at the end. | |
7357 | # Note that $ac_compile itself does not contain backslashes and begins | |
7358 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7359 | # The option is referenced via a variable to avoid confusing sed. | |
7360 | lt_compile=`echo "$ac_compile" | $SED \ | |
7361 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7362 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7363 | -e 's:$: $lt_compiler_flag:'` | |
7364 | (eval echo "\"\$as_me:7364: $lt_compile\"" >&5) | |
7365 | (eval "$lt_compile" 2>conftest.err) | |
7366 | ac_status=$? | |
7367 | cat conftest.err >&5 | |
7368 | echo "$as_me:7368: \$? = $ac_status" >&5 | |
7369 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
7370 | # The compiler can only warn and ignore the option if not recognized | |
7371 | # So say no if there are warnings other than the usual output. | |
7372 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7373 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7374 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7375 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7376 | fi | |
7377 | fi | |
7378 | $rm conftest* | |
7379 | ||
7380 | fi | |
7381 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
7382 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
7383 | ||
7384 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7385 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7386 | else | |
7387 | : | |
7388 | fi | |
7389 | ||
7390 | fi | |
7391 | ||
7392 | lt_prog_compiler_wl= | |
7393 | lt_prog_compiler_pic= | |
7394 | lt_prog_compiler_static= | |
7395 | ||
7396 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
7397 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
7398 | ||
7399 | if test "$GCC" = yes; then | |
7400 | lt_prog_compiler_wl='-Wl,' | |
7401 | lt_prog_compiler_static='-static' | |
7402 | ||
7403 | case $host_os in | |
7404 | aix*) | |
7405 | # All AIX code is PIC. | |
7406 | if test "$host_cpu" = ia64; then | |
7407 | # AIX 5 now supports IA64 processor | |
7408 | lt_prog_compiler_static='-Bstatic' | |
7409 | fi | |
7410 | ;; | |
7411 | ||
7412 | amigaos*) | |
7413 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7414 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7415 | # like `-m68040'. | |
7416 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7417 | ;; | |
7418 | ||
7419 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
7420 | # PIC is the default for these OSes. | |
7421 | ;; | |
7422 | ||
7423 | mingw* | pw32* | os2*) | |
7424 | # This hack is so that the source file can tell whether it is being | |
7425 | # built for inclusion in a dll (and should export symbols for example). | |
7426 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7427 | ;; | |
7428 | ||
7429 | darwin* | rhapsody*) | |
7430 | # PIC is the default on this platform | |
7431 | # Common symbols not allowed in MH_DYLIB files | |
7432 | lt_prog_compiler_pic='-fno-common' | |
7433 | ;; | |
7434 | ||
7435 | interix3*) | |
7436 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7437 | # Instead, we relocate shared libraries at runtime. | |
7438 | ;; | |
7439 | ||
7440 | msdosdjgpp*) | |
7441 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7442 | # on systems that don't support them. | |
7443 | lt_prog_compiler_can_build_shared=no | |
7444 | enable_shared=no | |
7445 | ;; | |
7446 | ||
7447 | sysv4*MP*) | |
7448 | if test -d /usr/nec; then | |
7449 | lt_prog_compiler_pic=-Kconform_pic | |
7450 | fi | |
7451 | ;; | |
7452 | ||
7453 | hpux*) | |
7454 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7455 | # not for PA HP-UX. | |
7456 | case $host_cpu in | |
7457 | hppa*64*|ia64*) | |
7458 | # +Z the default | |
7459 | ;; | |
7460 | *) | |
7461 | lt_prog_compiler_pic='-fPIC' | |
7462 | ;; | |
7463 | esac | |
7464 | ;; | |
7465 | ||
7466 | *) | |
7467 | lt_prog_compiler_pic='-fPIC' | |
7468 | ;; | |
7469 | esac | |
7470 | else | |
7471 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7472 | case $host_os in | |
7473 | aix*) | |
7474 | lt_prog_compiler_wl='-Wl,' | |
7475 | if test "$host_cpu" = ia64; then | |
7476 | # AIX 5 now supports IA64 processor | |
7477 | lt_prog_compiler_static='-Bstatic' | |
7478 | else | |
7479 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
7480 | fi | |
7481 | ;; | |
7482 | darwin*) | |
7483 | # PIC is the default on this platform | |
7484 | # Common symbols not allowed in MH_DYLIB files | |
7485 | case $cc_basename in | |
7486 | xlc*) | |
7487 | lt_prog_compiler_pic='-qnocommon' | |
7488 | lt_prog_compiler_wl='-Wl,' | |
7489 | ;; | |
7490 | esac | |
7491 | ;; | |
7492 | ||
7493 | mingw* | pw32* | os2*) | |
7494 | # This hack is so that the source file can tell whether it is being | |
7495 | # built for inclusion in a dll (and should export symbols for example). | |
7496 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7497 | ;; | |
7498 | ||
7499 | hpux9* | hpux10* | hpux11*) | |
7500 | lt_prog_compiler_wl='-Wl,' | |
7501 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7502 | # not for PA HP-UX. | |
7503 | case $host_cpu in | |
7504 | hppa*64*|ia64*) | |
7505 | # +Z the default | |
7506 | ;; | |
7507 | *) | |
7508 | lt_prog_compiler_pic='+Z' | |
7509 | ;; | |
7510 | esac | |
7511 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7512 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7513 | ;; | |
7514 | ||
7515 | irix5* | irix6* | nonstopux*) | |
7516 | lt_prog_compiler_wl='-Wl,' | |
7517 | # PIC (with -KPIC) is the default. | |
7518 | lt_prog_compiler_static='-non_shared' | |
7519 | ;; | |
7520 | ||
7521 | newsos6) | |
7522 | lt_prog_compiler_pic='-KPIC' | |
7523 | lt_prog_compiler_static='-Bstatic' | |
7524 | ;; | |
7525 | ||
7526 | linux* | k*bsd*-gnu) | |
7527 | case $cc_basename in | |
7528 | icc* | ecc*) | |
7529 | lt_prog_compiler_wl='-Wl,' | |
7530 | lt_prog_compiler_pic='-KPIC' | |
7531 | lt_prog_compiler_static='-static' | |
7532 | ;; | |
7533 | pgcc* | pgf77* | pgf90* | pgf95*) | |
7534 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
7535 | # which looks to be a dead project) | |
7536 | lt_prog_compiler_wl='-Wl,' | |
7537 | lt_prog_compiler_pic='-fpic' | |
7538 | lt_prog_compiler_static='-Bstatic' | |
7539 | ;; | |
7540 | ccc*) | |
7541 | lt_prog_compiler_wl='-Wl,' | |
7542 | # All Alpha code is PIC. | |
7543 | lt_prog_compiler_static='-non_shared' | |
7544 | ;; | |
7545 | esac | |
7546 | ;; | |
7547 | ||
7548 | osf3* | osf4* | osf5*) | |
7549 | lt_prog_compiler_wl='-Wl,' | |
7550 | # All OSF/1 code is PIC. | |
7551 | lt_prog_compiler_static='-non_shared' | |
7552 | ;; | |
7553 | ||
7554 | solaris*) | |
7555 | lt_prog_compiler_pic='-KPIC' | |
7556 | lt_prog_compiler_static='-Bstatic' | |
7557 | case $cc_basename in | |
7558 | f77* | f90* | f95*) | |
7559 | lt_prog_compiler_wl='-Qoption ld ';; | |
7560 | *) | |
7561 | lt_prog_compiler_wl='-Wl,';; | |
7562 | esac | |
7563 | ;; | |
7564 | ||
7565 | sunos4*) | |
7566 | lt_prog_compiler_wl='-Qoption ld ' | |
7567 | lt_prog_compiler_pic='-PIC' | |
7568 | lt_prog_compiler_static='-Bstatic' | |
7569 | ;; | |
7570 | ||
7571 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
7572 | lt_prog_compiler_wl='-Wl,' | |
7573 | lt_prog_compiler_pic='-KPIC' | |
7574 | lt_prog_compiler_static='-Bstatic' | |
7575 | ;; | |
7576 | ||
7577 | sysv4*MP*) | |
7578 | if test -d /usr/nec ;then | |
7579 | lt_prog_compiler_pic='-Kconform_pic' | |
7580 | lt_prog_compiler_static='-Bstatic' | |
7581 | fi | |
7582 | ;; | |
7583 | ||
7584 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7585 | lt_prog_compiler_wl='-Wl,' | |
7586 | lt_prog_compiler_pic='-KPIC' | |
7587 | lt_prog_compiler_static='-Bstatic' | |
7588 | ;; | |
7589 | ||
7590 | unicos*) | |
7591 | lt_prog_compiler_wl='-Wl,' | |
7592 | lt_prog_compiler_can_build_shared=no | |
7593 | ;; | |
7594 | ||
7595 | uts4*) | |
7596 | lt_prog_compiler_pic='-pic' | |
7597 | lt_prog_compiler_static='-Bstatic' | |
7598 | ;; | |
7599 | ||
7600 | *) | |
7601 | lt_prog_compiler_can_build_shared=no | |
7602 | ;; | |
7603 | esac | |
7604 | fi | |
7605 | ||
7606 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
7607 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } | |
7608 | ||
7609 | # | |
7610 | # Check to make sure the PIC flag actually works. | |
7611 | # | |
7612 | if test -n "$lt_prog_compiler_pic"; then | |
7613 | ||
7614 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7615 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } | |
7616 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
7617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7618 | else | |
7619 | lt_prog_compiler_pic_works=no | |
7620 | ac_outfile=conftest.$ac_objext | |
7621 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7622 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7623 | # Insert the option either (1) after the last *FLAGS variable, or | |
7624 | # (2) before a word containing "conftest.", or (3) at the end. | |
7625 | # Note that $ac_compile itself does not contain backslashes and begins | |
7626 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7627 | # The option is referenced via a variable to avoid confusing sed. | |
7628 | lt_compile=`echo "$ac_compile" | $SED \ | |
7629 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7630 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7631 | -e 's:$: $lt_compiler_flag:'` | |
7632 | (eval echo "\"\$as_me:7632: $lt_compile\"" >&5) | |
7633 | (eval "$lt_compile" 2>conftest.err) | |
7634 | ac_status=$? | |
7635 | cat conftest.err >&5 | |
7636 | echo "$as_me:7636: \$? = $ac_status" >&5 | |
7637 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
7638 | # The compiler can only warn and ignore the option if not recognized | |
7639 | # So say no if there are warnings other than the usual output. | |
7640 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7641 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7642 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7643 | lt_prog_compiler_pic_works=yes | |
7644 | fi | |
7645 | fi | |
7646 | $rm conftest* | |
7647 | ||
7648 | fi | |
7649 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
7650 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } | |
7651 | ||
7652 | if test x"$lt_prog_compiler_pic_works" = xyes; then | |
7653 | case $lt_prog_compiler_pic in | |
7654 | "" | " "*) ;; | |
7655 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7656 | esac | |
7657 | else | |
7658 | lt_prog_compiler_pic= | |
7659 | lt_prog_compiler_can_build_shared=no | |
7660 | fi | |
7661 | ||
7662 | fi | |
7663 | case $host_os in | |
7664 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7665 | *djgpp*) | |
7666 | lt_prog_compiler_pic= | |
7667 | ;; | |
7668 | *) | |
7669 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7670 | ;; | |
7671 | esac | |
7672 | ||
7673 | # | |
7674 | # Check to make sure the static flag actually works. | |
7675 | # | |
7676 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7677 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7678 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
7679 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
7680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7681 | else | |
7682 | lt_prog_compiler_static_works=no | |
7683 | save_LDFLAGS="$LDFLAGS" | |
7684 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7685 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
7686 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7687 | # The linker can only warn and ignore the option if not recognized | |
7688 | # So say no if there are warnings | |
7689 | if test -s conftest.err; then | |
7690 | # Append any errors to the config.log. | |
7691 | cat conftest.err 1>&5 | |
7692 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7693 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7694 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7695 | lt_prog_compiler_static_works=yes | |
7696 | fi | |
7697 | else | |
7698 | lt_prog_compiler_static_works=yes | |
7699 | fi | |
7700 | fi | |
7701 | $rm conftest* | |
7702 | LDFLAGS="$save_LDFLAGS" | |
7703 | ||
7704 | fi | |
7705 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
7706 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } | |
7707 | ||
7708 | if test x"$lt_prog_compiler_static_works" = xyes; then | |
7709 | : | |
7710 | else | |
7711 | lt_prog_compiler_static= | |
7712 | fi | |
7713 | ||
7714 | ||
7715 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7716 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
7717 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7719 | else | |
7720 | lt_cv_prog_compiler_c_o=no | |
7721 | $rm -r conftest 2>/dev/null | |
7722 | mkdir conftest | |
7723 | cd conftest | |
7724 | mkdir out | |
7725 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7726 | ||
7727 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7728 | # Insert the option either (1) after the last *FLAGS variable, or | |
7729 | # (2) before a word containing "conftest.", or (3) at the end. | |
7730 | # Note that $ac_compile itself does not contain backslashes and begins | |
7731 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7732 | lt_compile=`echo "$ac_compile" | $SED \ | |
7733 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7734 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7735 | -e 's:$: $lt_compiler_flag:'` | |
7736 | (eval echo "\"\$as_me:7736: $lt_compile\"" >&5) | |
7737 | (eval "$lt_compile" 2>out/conftest.err) | |
7738 | ac_status=$? | |
7739 | cat out/conftest.err >&5 | |
7740 | echo "$as_me:7740: \$? = $ac_status" >&5 | |
7741 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
7742 | then | |
7743 | # The compiler can only warn and ignore the option if not recognized | |
7744 | # So say no if there are warnings | |
7745 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7746 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7747 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7748 | lt_cv_prog_compiler_c_o=yes | |
7749 | fi | |
7750 | fi | |
7751 | chmod u+w . 2>&5 | |
7752 | $rm conftest* | |
7753 | # SGI C++ compiler will create directory out/ii_files/ for | |
7754 | # template instantiation | |
7755 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
7756 | $rm out/* && rmdir out | |
7757 | cd .. | |
7758 | rmdir conftest | |
7759 | $rm conftest* | |
7760 | ||
7761 | fi | |
7762 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7763 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } | |
7764 | ||
7765 | ||
7766 | hard_links="nottested" | |
7767 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7768 | # do not overwrite the value of need_locks provided by the user | |
7769 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
7770 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
7771 | hard_links=yes | |
7772 | $rm conftest* | |
7773 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7774 | touch conftest.a | |
7775 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7776 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7777 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
7778 | echo "${ECHO_T}$hard_links" >&6; } | |
7779 | if test "$hard_links" = no; then | |
7780 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7781 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7782 | need_locks=warn | |
7783 | fi | |
7784 | else | |
7785 | need_locks=no | |
7786 | fi | |
7787 | ||
7788 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7789 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
7790 | ||
7791 | runpath_var= | |
7792 | allow_undefined_flag= | |
7793 | enable_shared_with_static_runtimes=no | |
7794 | archive_cmds= | |
7795 | archive_expsym_cmds= | |
7796 | old_archive_From_new_cmds= | |
7797 | old_archive_from_expsyms_cmds= | |
7798 | export_dynamic_flag_spec= | |
7799 | whole_archive_flag_spec= | |
7800 | thread_safe_flag_spec= | |
7801 | hardcode_libdir_flag_spec= | |
7802 | hardcode_libdir_flag_spec_ld= | |
7803 | hardcode_libdir_separator= | |
7804 | hardcode_direct=no | |
7805 | hardcode_minus_L=no | |
7806 | hardcode_shlibpath_var=unsupported | |
7807 | link_all_deplibs=unknown | |
7808 | hardcode_automatic=no | |
7809 | module_cmds= | |
7810 | module_expsym_cmds= | |
7811 | always_export_symbols=no | |
7812 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7813 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7814 | # included in the symbol list | |
7815 | include_expsyms= | |
7816 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7817 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7818 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7819 | # as well as any symbol that contains `d'. | |
7820 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
7821 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7822 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7823 | # the symbol is explicitly referenced. Since portable code cannot | |
7824 | # rely on this symbol name, it's probably fine to never include it in | |
7825 | # preloaded symbol tables. | |
7826 | extract_expsyms_cmds= | |
7827 | # Just being paranoid about ensuring that cc_basename is set. | |
7828 | for cc_temp in $compiler""; do | |
7829 | case $cc_temp in | |
7830 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7831 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7832 | \-*) ;; | |
7833 | *) break;; | |
7834 | esac | |
7835 | done | |
7836 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7837 | ||
7838 | case $host_os in | |
7839 | cygwin* | mingw* | pw32*) | |
7840 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7841 | # When not using gcc, we currently assume that we are using | |
7842 | # Microsoft Visual C++. | |
7843 | if test "$GCC" != yes; then | |
7844 | with_gnu_ld=no | |
7845 | fi | |
7846 | ;; | |
7847 | interix*) | |
7848 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7849 | with_gnu_ld=yes | |
7850 | ;; | |
7851 | openbsd*) | |
7852 | with_gnu_ld=no | |
7853 | ;; | |
7854 | esac | |
7855 | ||
7856 | ld_shlibs=yes | |
7857 | if test "$with_gnu_ld" = yes; then | |
7858 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7859 | wlarc='${wl}' | |
7860 | ||
7861 | # Set some defaults for GNU ld with shared library support. These | |
7862 | # are reset later if shared libraries are not supported. Putting them | |
7863 | # here allows them to be overridden if necessary. | |
7864 | runpath_var=LD_RUN_PATH | |
7865 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
7866 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7867 | # ancient GNU ld didn't support --whole-archive et. al. | |
7868 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
7869 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7870 | else | |
7871 | whole_archive_flag_spec= | |
7872 | fi | |
7873 | supports_anon_versioning=no | |
7874 | case `$LD -v 2>/dev/null` in | |
7875 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7876 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7877 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7878 | *\ 2.11.*) ;; # other 2.11 versions | |
7879 | *) supports_anon_versioning=yes ;; | |
7880 | esac | |
7881 | ||
7882 | # See if GNU ld supports shared libraries. | |
7883 | case $host_os in | |
7884 | aix3* | aix4* | aix5*) | |
7885 | # On AIX/PPC, the GNU linker is very broken | |
7886 | if test "$host_cpu" != ia64; then | |
7887 | ld_shlibs=no | |
7888 | cat <<EOF 1>&2 | |
7889 | ||
7890 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7891 | *** to be unable to reliably create shared libraries on AIX. | |
7892 | *** Therefore, libtool is disabling shared libraries support. If you | |
7893 | *** really care for shared libraries, you may want to modify your PATH | |
7894 | *** so that a non-GNU linker is found, and then restart. | |
7895 | ||
7896 | EOF | |
7897 | fi | |
7898 | ;; | |
7899 | ||
7900 | amigaos*) | |
7901 | 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)' | |
7902 | hardcode_libdir_flag_spec='-L$libdir' | |
7903 | hardcode_minus_L=yes | |
7904 | ||
7905 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
7906 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
7907 | # to version 4, is to share data among multiple programs linked | |
7908 | # with the same dynamic library. Since this doesn't match the | |
7909 | # behavior of shared libraries on other platforms, we can't use | |
7910 | # them. | |
7911 | ld_shlibs=no | |
7912 | ;; | |
7913 | ||
7914 | beos*) | |
7915 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7916 | allow_undefined_flag=unsupported | |
7917 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7918 | # support --undefined. This deserves some investigation. FIXME | |
7919 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7920 | else | |
7921 | ld_shlibs=no | |
7922 | fi | |
7923 | ;; | |
7924 | ||
7925 | cygwin* | mingw* | pw32*) | |
7926 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7927 | # as there is no search path for DLLs. | |
7928 | hardcode_libdir_flag_spec='-L$libdir' | |
7929 | allow_undefined_flag=unsupported | |
7930 | always_export_symbols=no | |
7931 | enable_shared_with_static_runtimes=yes | |
7932 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
7933 | ||
7934 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
7935 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7936 | # If the export-symbols file already is a .def file (1st line | |
7937 | # is EXPORTS), use it as is; otherwise, prepend... | |
7938 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7939 | cp $export_symbols $output_objdir/$soname.def; | |
7940 | else | |
7941 | echo EXPORTS > $output_objdir/$soname.def; | |
7942 | cat $export_symbols >> $output_objdir/$soname.def; | |
7943 | fi~ | |
7944 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7945 | else | |
7946 | ld_shlibs=no | |
7947 | fi | |
7948 | ;; | |
7949 | ||
7950 | interix3*) | |
7951 | hardcode_direct=no | |
7952 | hardcode_shlibpath_var=no | |
7953 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7954 | export_dynamic_flag_spec='${wl}-E' | |
7955 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7956 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7957 | # default) and relocated if they conflict, which is a slow very memory | |
7958 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7959 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7960 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7961 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7962 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7963 | ;; | |
7964 | ||
7965 | linux* | k*bsd*-gnu) | |
7966 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7967 | tmp_addflag= | |
7968 | case $cc_basename,$host_cpu in | |
7969 | pgcc*) # Portland Group C compiler | |
7970 | 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' | |
7971 | tmp_addflag=' $pic_flag' | |
7972 | ;; | |
7973 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7974 | 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' | |
7975 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7976 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7977 | tmp_addflag=' -i_dynamic' ;; | |
7978 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7979 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7980 | ifc* | ifort*) # Intel Fortran compiler | |
7981 | tmp_addflag=' -nofor_main' ;; | |
7982 | esac | |
7983 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7984 | ||
7985 | if test $supports_anon_versioning = yes; then | |
7986 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | |
7987 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7988 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7989 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7990 | fi | |
7991 | link_all_deplibs=no | |
7992 | else | |
7993 | ld_shlibs=no | |
7994 | fi | |
7995 | ;; | |
7996 | ||
7997 | netbsd* | netbsdelf*-gnu) | |
7998 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
7999 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8000 | wlarc= | |
8001 | else | |
8002 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8003 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8004 | fi | |
8005 | ;; | |
8006 | ||
8007 | solaris*) | |
8008 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
8009 | ld_shlibs=no | |
8010 | cat <<EOF 1>&2 | |
8011 | ||
8012 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8013 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8014 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8015 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8016 | *** your PATH or compiler configuration so that the native linker is | |
8017 | *** used, and then restart. | |
8018 | ||
8019 | EOF | |
8020 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
8021 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8022 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8023 | else | |
8024 | ld_shlibs=no | |
8025 | fi | |
8026 | ;; | |
8027 | ||
8028 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8029 | case `$LD -v 2>&1` in | |
8030 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8031 | ld_shlibs=no | |
8032 | cat <<_LT_EOF 1>&2 | |
8033 | ||
8034 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8035 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8036 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8037 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8038 | *** your PATH or compiler configuration so that the native linker is | |
8039 | *** used, and then restart. | |
8040 | ||
8041 | _LT_EOF | |
8042 | ;; | |
8043 | *) | |
8044 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
8045 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
8046 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
8047 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
8048 | else | |
8049 | ld_shlibs=no | |
8050 | fi | |
8051 | ;; | |
8052 | esac | |
8053 | ;; | |
8054 | ||
8055 | sunos4*) | |
8056 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8057 | wlarc= | |
8058 | hardcode_direct=yes | |
8059 | hardcode_shlibpath_var=no | |
8060 | ;; | |
8061 | ||
8062 | *) | |
8063 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
8064 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8065 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8066 | else | |
8067 | ld_shlibs=no | |
8068 | fi | |
8069 | ;; | |
8070 | esac | |
8071 | ||
8072 | if test "$ld_shlibs" = no; then | |
8073 | runpath_var= | |
8074 | hardcode_libdir_flag_spec= | |
8075 | export_dynamic_flag_spec= | |
8076 | whole_archive_flag_spec= | |
8077 | fi | |
8078 | else | |
8079 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8080 | case $host_os in | |
8081 | aix3*) | |
8082 | allow_undefined_flag=unsupported | |
8083 | always_export_symbols=yes | |
8084 | 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' | |
8085 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8086 | # are no directories specified by -L. | |
8087 | hardcode_minus_L=yes | |
8088 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8089 | # Neither direct hardcoding nor static linking is supported with a | |
8090 | # broken collect2. | |
8091 | hardcode_direct=unsupported | |
8092 | fi | |
8093 | ;; | |
8094 | ||
8095 | aix4* | aix5*) | |
8096 | if test "$host_cpu" = ia64; then | |
8097 | # On IA64, the linker does run time linking by default, so we don't | |
8098 | # have to do anything special. | |
8099 | aix_use_runtimelinking=no | |
8100 | exp_sym_flag='-Bexport' | |
8101 | no_entry_flag="" | |
8102 | else | |
8103 | # If we're using GNU nm, then we don't want the "-C" option. | |
8104 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8105 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
8106 | 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' | |
8107 | else | |
8108 | 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' | |
8109 | fi | |
8110 | aix_use_runtimelinking=no | |
8111 | ||
8112 | # Test if we are trying to use run time linking or normal | |
8113 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8114 | # need to do runtime linking. | |
8115 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
8116 | for ld_flag in $LDFLAGS; do | |
8117 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8118 | aix_use_runtimelinking=yes | |
8119 | break | |
8120 | fi | |
8121 | done | |
8122 | ;; | |
8123 | esac | |
8124 | ||
8125 | exp_sym_flag='-bexport' | |
8126 | no_entry_flag='-bnoentry' | |
8127 | fi | |
8128 | ||
8129 | # When large executables or shared objects are built, AIX ld can | |
8130 | # have problems creating the table of contents. If linking a library | |
8131 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8132 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8133 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8134 | ||
8135 | archive_cmds='' | |
8136 | hardcode_direct=yes | |
8137 | hardcode_libdir_separator=':' | |
8138 | link_all_deplibs=yes | |
8139 | ||
8140 | if test "$GCC" = yes; then | |
8141 | case $host_os in aix4.[012]|aix4.[012].*) | |
8142 | # We only want to do this on AIX 4.2 and lower, the check | |
8143 | # below for broken collect2 doesn't work under 4.3+ | |
8144 | collect2name=`${CC} -print-prog-name=collect2` | |
8145 | if test -f "$collect2name" && \ | |
8146 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
8147 | then | |
8148 | # We have reworked collect2 | |
8149 | hardcode_direct=yes | |
8150 | else | |
8151 | # We have old collect2 | |
8152 | hardcode_direct=unsupported | |
8153 | # It fails to find uninstalled libraries when the uninstalled | |
8154 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8155 | # to unsupported forces relinking | |
8156 | hardcode_minus_L=yes | |
8157 | hardcode_libdir_flag_spec='-L$libdir' | |
8158 | hardcode_libdir_separator= | |
8159 | fi | |
8160 | ;; | |
8161 | esac | |
8162 | shared_flag='-shared' | |
8163 | if test "$aix_use_runtimelinking" = yes; then | |
8164 | shared_flag="$shared_flag "'${wl}-G' | |
8165 | fi | |
8166 | else | |
8167 | # not using gcc | |
8168 | if test "$host_cpu" = ia64; then | |
8169 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8170 | # chokes on -Wl,-G. The following line is correct: | |
8171 | shared_flag='-G' | |
8172 | else | |
8173 | if test "$aix_use_runtimelinking" = yes; then | |
8174 | shared_flag='${wl}-G' | |
8175 | else | |
8176 | shared_flag='${wl}-bM:SRE' | |
8177 | fi | |
8178 | fi | |
8179 | fi | |
8180 | ||
8181 | # It seems that -bexpall does not export symbols beginning with | |
8182 | # underscore (_), so it is better to generate a list of symbols to export. | |
8183 | always_export_symbols=yes | |
8184 | if test "$aix_use_runtimelinking" = yes; then | |
8185 | # Warning - without using the other runtime loading flags (-brtl), | |
8186 | # -berok will link without error, but may produce a broken library. | |
8187 | allow_undefined_flag='-berok' | |
8188 | # Determine the default libpath from the value encoded in an empty executable. | |
8189 | cat >conftest.$ac_ext <<_ACEOF | |
8190 | /* confdefs.h. */ | |
8191 | _ACEOF | |
8192 | cat confdefs.h >>conftest.$ac_ext | |
8193 | cat >>conftest.$ac_ext <<_ACEOF | |
8194 | /* end confdefs.h. */ | |
8195 | ||
8196 | int | |
8197 | main () | |
8198 | { | |
8199 | ||
8200 | ; | |
8201 | return 0; | |
8202 | } | |
8203 | _ACEOF | |
8204 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8205 | if { (ac_try="$ac_link" | |
8206 | case "(($ac_try" in | |
8207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8208 | *) ac_try_echo=$ac_try;; | |
8209 | esac | |
8210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8211 | (eval "$ac_link") 2>conftest.er1 | |
8212 | ac_status=$? | |
8213 | grep -v '^ *+' conftest.er1 >conftest.err | |
8214 | rm -f conftest.er1 | |
8215 | cat conftest.err >&5 | |
8216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8217 | (exit $ac_status); } && | |
8218 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8219 | { (case "(($ac_try" in | |
8220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8221 | *) ac_try_echo=$ac_try;; | |
8222 | esac | |
8223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8224 | (eval "$ac_try") 2>&5 | |
8225 | ac_status=$? | |
8226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8227 | (exit $ac_status); }; } && | |
8228 | { ac_try='test -s conftest$ac_exeext' | |
8229 | { (case "(($ac_try" in | |
8230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8231 | *) ac_try_echo=$ac_try;; | |
8232 | esac | |
8233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8234 | (eval "$ac_try") 2>&5 | |
8235 | ac_status=$? | |
8236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8237 | (exit $ac_status); }; }; then | |
8238 | ||
8239 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
8240 | }'` | |
8241 | # Check for a 64-bit object if we didn't find anything. | |
8242 | 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; } | |
8243 | }'`; fi | |
8244 | else | |
8245 | echo "$as_me: failed program was:" >&5 | |
8246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8247 | ||
8248 | ||
8249 | fi | |
8250 | ||
8251 | rm -f core conftest.err conftest.$ac_objext \ | |
8252 | conftest$ac_exeext conftest.$ac_ext | |
8253 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8254 | ||
8255 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8256 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
8257 | else | |
8258 | if test "$host_cpu" = ia64; then | |
8259 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8260 | allow_undefined_flag="-z nodefs" | |
8261 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
8262 | else | |
8263 | # Determine the default libpath from the value encoded in an empty executable. | |
8264 | cat >conftest.$ac_ext <<_ACEOF | |
8265 | /* confdefs.h. */ | |
8266 | _ACEOF | |
8267 | cat confdefs.h >>conftest.$ac_ext | |
8268 | cat >>conftest.$ac_ext <<_ACEOF | |
8269 | /* end confdefs.h. */ | |
8270 | ||
8271 | int | |
8272 | main () | |
8273 | { | |
8274 | ||
8275 | ; | |
8276 | return 0; | |
8277 | } | |
8278 | _ACEOF | |
8279 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8280 | if { (ac_try="$ac_link" | |
8281 | case "(($ac_try" in | |
8282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8283 | *) ac_try_echo=$ac_try;; | |
8284 | esac | |
8285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8286 | (eval "$ac_link") 2>conftest.er1 | |
8287 | ac_status=$? | |
8288 | grep -v '^ *+' conftest.er1 >conftest.err | |
8289 | rm -f conftest.er1 | |
8290 | cat conftest.err >&5 | |
8291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8292 | (exit $ac_status); } && | |
8293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8294 | { (case "(($ac_try" in | |
8295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8296 | *) ac_try_echo=$ac_try;; | |
8297 | esac | |
8298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8299 | (eval "$ac_try") 2>&5 | |
8300 | ac_status=$? | |
8301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8302 | (exit $ac_status); }; } && | |
8303 | { ac_try='test -s conftest$ac_exeext' | |
8304 | { (case "(($ac_try" in | |
8305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8306 | *) ac_try_echo=$ac_try;; | |
8307 | esac | |
8308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8309 | (eval "$ac_try") 2>&5 | |
8310 | ac_status=$? | |
8311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8312 | (exit $ac_status); }; }; then | |
8313 | ||
8314 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
8315 | }'` | |
8316 | # Check for a 64-bit object if we didn't find anything. | |
8317 | 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; } | |
8318 | }'`; fi | |
8319 | else | |
8320 | echo "$as_me: failed program was:" >&5 | |
8321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8322 | ||
8323 | ||
8324 | fi | |
8325 | ||
8326 | rm -f core conftest.err conftest.$ac_objext \ | |
8327 | conftest$ac_exeext conftest.$ac_ext | |
8328 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8329 | ||
8330 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8331 | # Warning - without using the other run time loading flags, | |
8332 | # -berok will link without error, but may produce a broken library. | |
8333 | no_undefined_flag=' ${wl}-bernotok' | |
8334 | allow_undefined_flag=' ${wl}-berok' | |
8335 | # Exported symbols can be pulled into shared objects from archives | |
8336 | whole_archive_flag_spec='$convenience' | |
8337 | archive_cmds_need_lc=yes | |
8338 | # This is similar to how AIX traditionally builds its shared libraries. | |
8339 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
8340 | fi | |
8341 | fi | |
8342 | ;; | |
8343 | ||
8344 | amigaos*) | |
8345 | 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)' | |
8346 | hardcode_libdir_flag_spec='-L$libdir' | |
8347 | hardcode_minus_L=yes | |
8348 | # see comment about different semantics on the GNU ld section | |
8349 | ld_shlibs=no | |
8350 | ;; | |
8351 | ||
8352 | bsdi[45]*) | |
8353 | export_dynamic_flag_spec=-rdynamic | |
8354 | ;; | |
8355 | ||
8356 | cygwin* | mingw* | pw32*) | |
8357 | # When not using gcc, we currently assume that we are using | |
8358 | # Microsoft Visual C++. | |
8359 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8360 | # no search path for DLLs. | |
8361 | hardcode_libdir_flag_spec=' ' | |
8362 | allow_undefined_flag=unsupported | |
8363 | # Tell ltmain to make .lib files, not .a files. | |
8364 | libext=lib | |
8365 | # Tell ltmain to make .dll files, not .so files. | |
8366 | shrext_cmds=".dll" | |
8367 | # FIXME: Setting linknames here is a bad hack. | |
8368 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8369 | # The linker will automatically build a .lib file if we build a DLL. | |
8370 | old_archive_From_new_cmds='true' | |
8371 | # FIXME: Should let the user specify the lib program. | |
8372 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
8373 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8374 | enable_shared_with_static_runtimes=yes | |
8375 | ;; | |
8376 | ||
8377 | darwin* | rhapsody*) | |
8378 | case $host_os in | |
8379 | rhapsody* | darwin1.[012]) | |
8380 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
8381 | ;; | |
8382 | *) # Darwin 1.3 on | |
8383 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
8384 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
8385 | else | |
8386 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
8387 | 10.[012]) | |
8388 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
8389 | ;; | |
8390 | 10.*) | |
8391 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
8392 | ;; | |
8393 | esac | |
8394 | fi | |
8395 | ;; | |
8396 | esac | |
8397 | archive_cmds_need_lc=no | |
8398 | hardcode_direct=no | |
8399 | hardcode_automatic=yes | |
8400 | hardcode_shlibpath_var=unsupported | |
8401 | whole_archive_flag_spec='' | |
8402 | link_all_deplibs=yes | |
8403 | if test "$GCC" = yes ; then | |
8404 | output_verbose_link_cmd='echo' | |
8405 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
8406 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8407 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
8408 | 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}' | |
8409 | 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}' | |
8410 | else | |
8411 | case $cc_basename in | |
8412 | xlc*) | |
8413 | output_verbose_link_cmd='echo' | |
8414 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
8415 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8416 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
8417 | 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}' | |
8418 | 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}' | |
8419 | ;; | |
8420 | *) | |
8421 | ld_shlibs=no | |
8422 | ;; | |
8423 | esac | |
8424 | fi | |
8425 | ;; | |
8426 | ||
8427 | dgux*) | |
8428 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8429 | hardcode_libdir_flag_spec='-L$libdir' | |
8430 | hardcode_shlibpath_var=no | |
8431 | ;; | |
8432 | ||
8433 | freebsd1*) | |
8434 | ld_shlibs=no | |
8435 | ;; | |
8436 | ||
8437 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
8438 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8439 | # does not break anything, and helps significantly (at the cost of a little | |
8440 | # extra space). | |
8441 | freebsd2.2*) | |
8442 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8443 | hardcode_libdir_flag_spec='-R$libdir' | |
8444 | hardcode_direct=yes | |
8445 | hardcode_shlibpath_var=no | |
8446 | ;; | |
8447 | ||
8448 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
8449 | freebsd2*) | |
8450 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8451 | hardcode_direct=yes | |
8452 | hardcode_minus_L=yes | |
8453 | hardcode_shlibpath_var=no | |
8454 | ;; | |
8455 | ||
8456 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8457 | freebsd* | dragonfly*) | |
8458 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8459 | hardcode_libdir_flag_spec='-R$libdir' | |
8460 | hardcode_direct=yes | |
8461 | hardcode_shlibpath_var=no | |
8462 | ;; | |
8463 | ||
8464 | hpux9*) | |
8465 | if test "$GCC" = yes; then | |
8466 | 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' | |
8467 | else | |
8468 | 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' | |
8469 | fi | |
8470 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8471 | hardcode_libdir_separator=: | |
8472 | hardcode_direct=yes | |
8473 | ||
8474 | # hardcode_minus_L: Not really in the search PATH, | |
8475 | # but as the default location of the library. | |
8476 | hardcode_minus_L=yes | |
8477 | export_dynamic_flag_spec='${wl}-E' | |
8478 | ;; | |
8479 | ||
8480 | hpux10*) | |
8481 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8482 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8483 | else | |
8484 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8485 | fi | |
8486 | if test "$with_gnu_ld" = no; then | |
8487 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8488 | hardcode_libdir_separator=: | |
8489 | ||
8490 | hardcode_direct=yes | |
8491 | export_dynamic_flag_spec='${wl}-E' | |
8492 | ||
8493 | # hardcode_minus_L: Not really in the search PATH, | |
8494 | # but as the default location of the library. | |
8495 | hardcode_minus_L=yes | |
8496 | fi | |
8497 | ;; | |
8498 | ||
8499 | hpux11*) | |
8500 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8501 | case $host_cpu in | |
8502 | hppa*64*) | |
8503 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8504 | ;; | |
8505 | ia64*) | |
8506 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8507 | ;; | |
8508 | *) | |
8509 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8510 | ;; | |
8511 | esac | |
8512 | else | |
8513 | case $host_cpu in | |
8514 | hppa*64*) | |
8515 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8516 | ;; | |
8517 | ia64*) | |
8518 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8519 | ;; | |
8520 | *) | |
8521 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8522 | ;; | |
8523 | esac | |
8524 | fi | |
8525 | if test "$with_gnu_ld" = no; then | |
8526 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8527 | hardcode_libdir_separator=: | |
8528 | ||
8529 | case $host_cpu in | |
8530 | hppa*64*|ia64*) | |
8531 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8532 | hardcode_direct=no | |
8533 | hardcode_shlibpath_var=no | |
8534 | ;; | |
8535 | *) | |
8536 | hardcode_direct=yes | |
8537 | export_dynamic_flag_spec='${wl}-E' | |
8538 | ||
8539 | # hardcode_minus_L: Not really in the search PATH, | |
8540 | # but as the default location of the library. | |
8541 | hardcode_minus_L=yes | |
8542 | ;; | |
8543 | esac | |
8544 | fi | |
8545 | ;; | |
8546 | ||
8547 | irix5* | irix6* | nonstopux*) | |
8548 | if test "$GCC" = yes; then | |
8549 | 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' | |
8550 | else | |
8551 | 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' | |
8552 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8553 | fi | |
8554 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8555 | hardcode_libdir_separator=: | |
8556 | link_all_deplibs=yes | |
8557 | ;; | |
8558 | ||
8559 | netbsd* | netbsdelf*-gnu) | |
8560 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
8561 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8562 | else | |
8563 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8564 | fi | |
8565 | hardcode_libdir_flag_spec='-R$libdir' | |
8566 | hardcode_direct=yes | |
8567 | hardcode_shlibpath_var=no | |
8568 | ;; | |
8569 | ||
8570 | newsos6) | |
8571 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8572 | hardcode_direct=yes | |
8573 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8574 | hardcode_libdir_separator=: | |
8575 | hardcode_shlibpath_var=no | |
8576 | ;; | |
8577 | ||
8578 | openbsd*) | |
8579 | hardcode_direct=yes | |
8580 | hardcode_shlibpath_var=no | |
8581 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8582 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8583 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8584 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8585 | export_dynamic_flag_spec='${wl}-E' | |
8586 | else | |
8587 | case $host_os in | |
8588 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8589 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8590 | hardcode_libdir_flag_spec='-R$libdir' | |
8591 | ;; | |
8592 | *) | |
8593 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8594 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8595 | ;; | |
8596 | esac | |
8597 | fi | |
8598 | ;; | |
8599 | ||
8600 | os2*) | |
8601 | hardcode_libdir_flag_spec='-L$libdir' | |
8602 | hardcode_minus_L=yes | |
8603 | allow_undefined_flag=unsupported | |
8604 | 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' | |
8605 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8606 | ;; | |
8607 | ||
8608 | osf3*) | |
8609 | if test "$GCC" = yes; then | |
8610 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8611 | 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' | |
8612 | else | |
8613 | allow_undefined_flag=' -expect_unresolved \*' | |
8614 | 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' | |
8615 | fi | |
8616 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8617 | hardcode_libdir_separator=: | |
8618 | ;; | |
8619 | ||
8620 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8621 | if test "$GCC" = yes; then | |
8622 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8623 | 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' | |
8624 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8625 | else | |
8626 | allow_undefined_flag=' -expect_unresolved \*' | |
8627 | 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' | |
8628 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
8629 | $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' | |
8630 | ||
8631 | # Both c and cxx compiler support -rpath directly | |
8632 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8633 | fi | |
8634 | hardcode_libdir_separator=: | |
8635 | ;; | |
8636 | ||
8637 | solaris*) | |
8638 | no_undefined_flag=' -z text' | |
8639 | if test "$GCC" = yes; then | |
8640 | wlarc='${wl}' | |
8641 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8642 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
8643 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
8644 | else | |
8645 | wlarc='' | |
8646 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8647 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
8648 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
8649 | fi | |
8650 | hardcode_libdir_flag_spec='-R$libdir' | |
8651 | hardcode_shlibpath_var=no | |
8652 | case $host_os in | |
8653 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8654 | *) | |
8655 | # The compiler driver will combine linker options so we | |
8656 | # cannot just pass the convience library names through | |
8657 | # without $wl, iff we do not link with $LD. | |
8658 | # Luckily, gcc supports the same syntax we need for Sun Studio. | |
8659 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8660 | case $wlarc in | |
8661 | '') | |
8662 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
8663 | *) | |
8664 | 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' ;; | |
8665 | esac ;; | |
8666 | esac | |
8667 | link_all_deplibs=yes | |
8668 | ;; | |
8669 | ||
8670 | sunos4*) | |
8671 | if test "x$host_vendor" = xsequent; then | |
8672 | # Use $CC to link under sequent, because it throws in some extra .o | |
8673 | # files that make .init and .fini sections work. | |
8674 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8675 | else | |
8676 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8677 | fi | |
8678 | hardcode_libdir_flag_spec='-L$libdir' | |
8679 | hardcode_direct=yes | |
8680 | hardcode_minus_L=yes | |
8681 | hardcode_shlibpath_var=no | |
8682 | ;; | |
8683 | ||
8684 | sysv4) | |
8685 | case $host_vendor in | |
8686 | sni) | |
8687 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8688 | hardcode_direct=yes # is this really true??? | |
8689 | ;; | |
8690 | siemens) | |
8691 | ## LD is ld it makes a PLAMLIB | |
8692 | ## CC just makes a GrossModule. | |
8693 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8694 | reload_cmds='$CC -r -o $output$reload_objs' | |
8695 | hardcode_direct=no | |
8696 | ;; | |
8697 | motorola) | |
8698 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8699 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8700 | ;; | |
8701 | esac | |
8702 | runpath_var='LD_RUN_PATH' | |
8703 | hardcode_shlibpath_var=no | |
8704 | ;; | |
8705 | ||
8706 | sysv4.3*) | |
8707 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8708 | hardcode_shlibpath_var=no | |
8709 | export_dynamic_flag_spec='-Bexport' | |
8710 | ;; | |
8711 | ||
8712 | sysv4*MP*) | |
8713 | if test -d /usr/nec; then | |
8714 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8715 | hardcode_shlibpath_var=no | |
8716 | runpath_var=LD_RUN_PATH | |
8717 | hardcode_runpath_var=yes | |
8718 | ld_shlibs=yes | |
8719 | fi | |
8720 | ;; | |
8721 | ||
8722 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | |
8723 | no_undefined_flag='${wl}-z,text' | |
8724 | archive_cmds_need_lc=no | |
8725 | hardcode_shlibpath_var=no | |
8726 | runpath_var='LD_RUN_PATH' | |
8727 | ||
8728 | if test "$GCC" = yes; then | |
8729 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8730 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8731 | else | |
8732 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8733 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8734 | fi | |
8735 | ;; | |
8736 | ||
8737 | sysv5* | sco3.2v5* | sco5v6*) | |
8738 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8739 | # link with -lc, and that would cause any symbols used from libc to | |
8740 | # always be unresolved, which means just about no library would | |
8741 | # ever link correctly. If we're not using GNU ld we use -z text | |
8742 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8743 | # as -z defs. | |
8744 | no_undefined_flag='${wl}-z,text' | |
8745 | allow_undefined_flag='${wl}-z,nodefs' | |
8746 | archive_cmds_need_lc=no | |
8747 | hardcode_shlibpath_var=no | |
8748 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
8749 | hardcode_libdir_separator=':' | |
8750 | link_all_deplibs=yes | |
8751 | export_dynamic_flag_spec='${wl}-Bexport' | |
8752 | runpath_var='LD_RUN_PATH' | |
8753 | ||
8754 | if test "$GCC" = yes; then | |
8755 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8756 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8757 | else | |
8758 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8759 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8760 | fi | |
8761 | ;; | |
8762 | ||
8763 | uts4*) | |
8764 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8765 | hardcode_libdir_flag_spec='-L$libdir' | |
8766 | hardcode_shlibpath_var=no | |
8767 | ;; | |
8768 | ||
8769 | *) | |
8770 | ld_shlibs=no | |
8771 | ;; | |
8772 | esac | |
8773 | fi | |
8774 | ||
8775 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
8776 | echo "${ECHO_T}$ld_shlibs" >&6; } | |
8777 | test "$ld_shlibs" = no && can_build_shared=no | |
8778 | ||
8779 | # | |
8780 | # Do we need to explicitly link libc? | |
8781 | # | |
8782 | case "x$archive_cmds_need_lc" in | |
8783 | x|xyes) | |
8784 | # Assume -lc should be added | |
8785 | archive_cmds_need_lc=yes | |
8786 | ||
8787 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8788 | case $archive_cmds in | |
8789 | *'~'*) | |
8790 | # FIXME: we may have to deal with multi-command sequences. | |
8791 | ;; | |
8792 | '$CC '*) | |
8793 | # Test whether the compiler implicitly links with -lc since on some | |
8794 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8795 | # to ld, don't add -lc before -lgcc. | |
8796 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
8797 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
8798 | $rm conftest* | |
8799 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8800 | ||
8801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8802 | (eval $ac_compile) 2>&5 | |
8803 | ac_status=$? | |
8804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8805 | (exit $ac_status); } 2>conftest.err; then | |
8806 | soname=conftest | |
8807 | lib=conftest | |
8808 | libobjs=conftest.$ac_objext | |
8809 | deplibs= | |
8810 | wl=$lt_prog_compiler_wl | |
8811 | pic_flag=$lt_prog_compiler_pic | |
8812 | compiler_flags=-v | |
8813 | linker_flags=-v | |
8814 | verstring= | |
8815 | output_objdir=. | |
8816 | libname=conftest | |
8817 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8818 | allow_undefined_flag= | |
8819 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
8820 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8821 | ac_status=$? | |
8822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8823 | (exit $ac_status); } | |
8824 | then | |
8825 | archive_cmds_need_lc=no | |
8826 | else | |
8827 | archive_cmds_need_lc=yes | |
8828 | fi | |
8829 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8830 | else | |
8831 | cat conftest.err 1>&5 | |
8832 | fi | |
8833 | $rm conftest* | |
8834 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
8835 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } | |
8836 | ;; | |
8837 | esac | |
8838 | fi | |
8839 | ;; | |
8840 | esac | |
8841 | ||
8842 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
8843 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
8844 | library_names_spec= | |
8845 | libname_spec='lib$name' | |
8846 | soname_spec= | |
8847 | shrext_cmds=".so" | |
8848 | postinstall_cmds= | |
8849 | postuninstall_cmds= | |
8850 | finish_cmds= | |
8851 | finish_eval= | |
8852 | shlibpath_var= | |
8853 | shlibpath_overrides_runpath=unknown | |
8854 | version_type=none | |
8855 | dynamic_linker="$host_os ld.so" | |
8856 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8857 | if test "$GCC" = yes; then | |
8858 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8859 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
8860 | # if the path contains ";" then we assume it to be the separator | |
8861 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8862 | # assumed that no part of a normal pathname contains ";" but that should | |
8863 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8864 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8865 | else | |
8866 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8867 | fi | |
8868 | else | |
8869 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8870 | fi | |
8871 | need_lib_prefix=unknown | |
8872 | hardcode_into_libs=no | |
8873 | ||
8874 | # when you set need_version to no, make sure it does not cause -set_version | |
8875 | # flags to be left without arguments | |
8876 | need_version=unknown | |
8877 | ||
8878 | case $host_os in | |
8879 | aix3*) | |
8880 | version_type=linux | |
8881 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8882 | shlibpath_var=LIBPATH | |
8883 | ||
8884 | # AIX 3 has no versioning support, so we append a major version to the name. | |
8885 | soname_spec='${libname}${release}${shared_ext}$major' | |
8886 | ;; | |
8887 | ||
8888 | aix4* | aix5*) | |
8889 | version_type=linux | |
8890 | need_lib_prefix=no | |
8891 | need_version=no | |
8892 | hardcode_into_libs=yes | |
8893 | if test "$host_cpu" = ia64; then | |
8894 | # AIX 5 supports IA64 | |
8895 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8896 | shlibpath_var=LD_LIBRARY_PATH | |
8897 | else | |
8898 | # With GCC up to 2.95.x, collect2 would create an import file | |
8899 | # for dependence libraries. The import file would start with | |
8900 | # the line `#! .'. This would cause the generated library to | |
8901 | # depend on `.', always an invalid library. This was fixed in | |
8902 | # development snapshots of GCC prior to 3.0. | |
8903 | case $host_os in | |
8904 | aix4 | aix4.[01] | aix4.[01].*) | |
8905 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8906 | echo ' yes ' | |
8907 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
8908 | : | |
8909 | else | |
8910 | can_build_shared=no | |
8911 | fi | |
8912 | ;; | |
8913 | esac | |
8914 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8915 | # soname into executable. Probably we can add versioning support to | |
8916 | # collect2, so additional links can be useful in future. | |
8917 | if test "$aix_use_runtimelinking" = yes; then | |
8918 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8919 | # instead of lib<name>.a to let people know that these are not | |
8920 | # typical AIX shared libraries. | |
8921 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8922 | else | |
8923 | # We preserve .a as extension for shared libraries through AIX4.2 | |
8924 | # and later when we are not doing run time linking. | |
8925 | library_names_spec='${libname}${release}.a $libname.a' | |
8926 | soname_spec='${libname}${release}${shared_ext}$major' | |
8927 | fi | |
8928 | shlibpath_var=LIBPATH | |
8929 | fi | |
8930 | ;; | |
8931 | ||
8932 | amigaos*) | |
8933 | library_names_spec='$libname.ixlibrary $libname.a' | |
8934 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8935 | 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' | |
8936 | ;; | |
8937 | ||
8938 | beos*) | |
8939 | library_names_spec='${libname}${shared_ext}' | |
8940 | dynamic_linker="$host_os ld.so" | |
8941 | shlibpath_var=LIBRARY_PATH | |
8942 | ;; | |
8943 | ||
8944 | bsdi[45]*) | |
8945 | version_type=linux | |
8946 | need_version=no | |
8947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8948 | soname_spec='${libname}${release}${shared_ext}$major' | |
8949 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8950 | shlibpath_var=LD_LIBRARY_PATH | |
8951 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8952 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8953 | # the default ld.so.conf also contains /usr/contrib/lib and | |
8954 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8955 | # libtool to hard-code these into programs | |
8956 | ;; | |
8957 | ||
8958 | cygwin* | mingw* | pw32*) | |
8959 | version_type=windows | |
8960 | shrext_cmds=".dll" | |
8961 | need_version=no | |
8962 | need_lib_prefix=no | |
8963 | ||
8964 | case $GCC,$host_os in | |
8965 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
8966 | library_names_spec='$libname.dll.a' | |
8967 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8968 | postinstall_cmds='base_file=`basename \${file}`~ | |
8969 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
8970 | dldir=$destdir/`dirname \$dlpath`~ | |
8971 | test -d \$dldir || mkdir -p \$dldir~ | |
8972 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8973 | chmod a+x \$dldir/$dlname' | |
8974 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
8975 | dlpath=$dir/\$dldll~ | |
8976 | $rm \$dlpath' | |
8977 | shlibpath_overrides_runpath=yes | |
8978 | ||
8979 | case $host_os in | |
8980 | cygwin*) | |
8981 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8982 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8983 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8984 | ;; | |
8985 | mingw*) | |
8986 | # MinGW DLLs use traditional 'lib' prefix | |
8987 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8988 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8989 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
8990 | # It is most probably a Windows format PATH printed by | |
8991 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8992 | # path with ; separators, and with drive letters. We can handle the | |
8993 | # drive letters (cygwin fileutils understands them), so leave them, | |
8994 | # especially as we might pass files found there to a mingw objdump, | |
8995 | # which wouldn't understand a cygwinified path. Ahh. | |
8996 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8997 | else | |
8998 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8999 | fi | |
9000 | ;; | |
9001 | pw32*) | |
9002 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9003 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9004 | ;; | |
9005 | esac | |
9006 | ;; | |
9007 | ||
9008 | *) | |
9009 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9010 | ;; | |
9011 | esac | |
9012 | dynamic_linker='Win32 ld.exe' | |
9013 | # FIXME: first we should search . and the directory the executable is in | |
9014 | shlibpath_var=PATH | |
9015 | ;; | |
9016 | ||
9017 | darwin* | rhapsody*) | |
9018 | dynamic_linker="$host_os dyld" | |
9019 | version_type=darwin | |
9020 | need_lib_prefix=no | |
9021 | need_version=no | |
9022 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
9023 | soname_spec='${libname}${release}${major}$shared_ext' | |
9024 | shlibpath_overrides_runpath=yes | |
9025 | shlibpath_var=DYLD_LIBRARY_PATH | |
9026 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9027 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
9028 | if test "$GCC" = yes; then | |
9029 | 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"` | |
9030 | else | |
9031 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
9032 | fi | |
9033 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
9034 | ;; | |
9035 | ||
9036 | dgux*) | |
9037 | version_type=linux | |
9038 | need_lib_prefix=no | |
9039 | need_version=no | |
9040 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9041 | soname_spec='${libname}${release}${shared_ext}$major' | |
9042 | shlibpath_var=LD_LIBRARY_PATH | |
9043 | ;; | |
9044 | ||
9045 | freebsd1*) | |
9046 | dynamic_linker=no | |
9047 | ;; | |
9048 | ||
9049 | freebsd* | dragonfly*) | |
9050 | # DragonFly does not have aout. When/if they implement a new | |
9051 | # versioning mechanism, adjust this. | |
9052 | if test -x /usr/bin/objformat; then | |
9053 | objformat=`/usr/bin/objformat` | |
9054 | else | |
9055 | case $host_os in | |
9056 | freebsd[123]*) objformat=aout ;; | |
9057 | *) objformat=elf ;; | |
9058 | esac | |
9059 | fi | |
9060 | version_type=freebsd-$objformat | |
9061 | case $version_type in | |
9062 | freebsd-elf*) | |
9063 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9064 | need_version=no | |
9065 | need_lib_prefix=no | |
9066 | ;; | |
9067 | freebsd-*) | |
9068 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9069 | need_version=yes | |
9070 | ;; | |
9071 | esac | |
9072 | shlibpath_var=LD_LIBRARY_PATH | |
9073 | case $host_os in | |
9074 | freebsd2*) | |
9075 | shlibpath_overrides_runpath=yes | |
9076 | ;; | |
9077 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9078 | shlibpath_overrides_runpath=yes | |
9079 | hardcode_into_libs=yes | |
9080 | ;; | |
9081 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9082 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9083 | shlibpath_overrides_runpath=no | |
9084 | hardcode_into_libs=yes | |
9085 | ;; | |
9086 | freebsd*) # from 4.6 on | |
9087 | shlibpath_overrides_runpath=yes | |
9088 | hardcode_into_libs=yes | |
9089 | ;; | |
9090 | esac | |
9091 | ;; | |
9092 | ||
9093 | gnu*) | |
9094 | version_type=linux | |
9095 | need_lib_prefix=no | |
9096 | need_version=no | |
9097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9098 | soname_spec='${libname}${release}${shared_ext}$major' | |
9099 | shlibpath_var=LD_LIBRARY_PATH | |
9100 | hardcode_into_libs=yes | |
9101 | ;; | |
9102 | ||
9103 | hpux9* | hpux10* | hpux11*) | |
9104 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9105 | # link against other versions. | |
9106 | version_type=sunos | |
9107 | need_lib_prefix=no | |
9108 | need_version=no | |
9109 | case $host_cpu in | |
9110 | ia64*) | |
9111 | shrext_cmds='.so' | |
9112 | hardcode_into_libs=yes | |
9113 | dynamic_linker="$host_os dld.so" | |
9114 | shlibpath_var=LD_LIBRARY_PATH | |
9115 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9116 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9117 | soname_spec='${libname}${release}${shared_ext}$major' | |
9118 | if test "X$HPUX_IA64_MODE" = X32; then | |
9119 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9120 | else | |
9121 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9122 | fi | |
9123 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9124 | ;; | |
9125 | hppa*64*) | |
9126 | shrext_cmds='.sl' | |
9127 | hardcode_into_libs=yes | |
9128 | dynamic_linker="$host_os dld.sl" | |
9129 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9130 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9131 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9132 | soname_spec='${libname}${release}${shared_ext}$major' | |
9133 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9134 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9135 | ;; | |
9136 | *) | |
9137 | shrext_cmds='.sl' | |
9138 | dynamic_linker="$host_os dld.sl" | |
9139 | shlibpath_var=SHLIB_PATH | |
9140 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9141 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9142 | soname_spec='${libname}${release}${shared_ext}$major' | |
9143 | ;; | |
9144 | esac | |
9145 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
9146 | postinstall_cmds='chmod 555 $lib' | |
9147 | ;; | |
9148 | ||
9149 | interix3*) | |
9150 | version_type=linux | |
9151 | need_lib_prefix=no | |
9152 | need_version=no | |
9153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9154 | soname_spec='${libname}${release}${shared_ext}$major' | |
9155 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9156 | shlibpath_var=LD_LIBRARY_PATH | |
9157 | shlibpath_overrides_runpath=no | |
9158 | hardcode_into_libs=yes | |
9159 | ;; | |
9160 | ||
9161 | irix5* | irix6* | nonstopux*) | |
9162 | case $host_os in | |
9163 | nonstopux*) version_type=nonstopux ;; | |
9164 | *) | |
9165 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
9166 | version_type=linux | |
9167 | else | |
9168 | version_type=irix | |
9169 | fi ;; | |
9170 | esac | |
9171 | need_lib_prefix=no | |
9172 | need_version=no | |
9173 | soname_spec='${libname}${release}${shared_ext}$major' | |
9174 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9175 | case $host_os in | |
9176 | irix5* | nonstopux*) | |
9177 | libsuff= shlibsuff= | |
9178 | ;; | |
9179 | *) | |
9180 | case $LD in # libtool.m4 will add one of these switches to LD | |
9181 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9182 | libsuff= shlibsuff= libmagic=32-bit;; | |
9183 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9184 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9185 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9186 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9187 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9188 | esac | |
9189 | ;; | |
9190 | esac | |
9191 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9192 | shlibpath_overrides_runpath=no | |
9193 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9194 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9195 | hardcode_into_libs=yes | |
9196 | ;; | |
9197 | ||
9198 | # No shared lib support for Linux oldld, aout, or coff. | |
9199 | linux*oldld* | linux*aout* | linux*coff*) | |
9200 | dynamic_linker=no | |
9201 | ;; | |
9202 | ||
9203 | # This must be Linux ELF. | |
9204 | linux* | k*bsd*-gnu) | |
9205 | version_type=linux | |
9206 | need_lib_prefix=no | |
9207 | need_version=no | |
9208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9209 | soname_spec='${libname}${release}${shared_ext}$major' | |
9210 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9211 | shlibpath_var=LD_LIBRARY_PATH | |
9212 | shlibpath_overrides_runpath=no | |
9213 | # This implies no fast_install, which is unacceptable. | |
9214 | # Some rework will be needed to allow for fast_install | |
9215 | # before this can be enabled. | |
9216 | hardcode_into_libs=yes | |
9217 | ||
9218 | # Append ld.so.conf contents to the search path | |
9219 | if test -f /etc/ld.so.conf; then | |
9220 | 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' ' '` | |
9221 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9222 | fi | |
9223 | ||
9224 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9225 | # powerpc, because MkLinux only supported shared libraries with the | |
9226 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9227 | # most powerpc-linux boxes support dynamic linking these days and | |
9228 | # people can always --disable-shared, the test was removed, and we | |
9229 | # assume the GNU/Linux dynamic linker is in use. | |
9230 | dynamic_linker='GNU/Linux ld.so' | |
9231 | ;; | |
9232 | ||
9233 | netbsdelf*-gnu) | |
9234 | version_type=linux | |
9235 | need_lib_prefix=no | |
9236 | need_version=no | |
9237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9238 | soname_spec='${libname}${release}${shared_ext}$major' | |
9239 | shlibpath_var=LD_LIBRARY_PATH | |
9240 | shlibpath_overrides_runpath=no | |
9241 | hardcode_into_libs=yes | |
9242 | dynamic_linker='NetBSD ld.elf_so' | |
9243 | ;; | |
9244 | ||
9245 | netbsd*) | |
9246 | version_type=sunos | |
9247 | need_lib_prefix=no | |
9248 | need_version=no | |
9249 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
9250 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9251 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9252 | dynamic_linker='NetBSD (a.out) ld.so' | |
9253 | else | |
9254 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9255 | soname_spec='${libname}${release}${shared_ext}$major' | |
9256 | dynamic_linker='NetBSD ld.elf_so' | |
9257 | fi | |
9258 | shlibpath_var=LD_LIBRARY_PATH | |
9259 | shlibpath_overrides_runpath=yes | |
9260 | hardcode_into_libs=yes | |
9261 | ;; | |
9262 | ||
9263 | newsos6) | |
9264 | version_type=linux | |
9265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9266 | shlibpath_var=LD_LIBRARY_PATH | |
9267 | shlibpath_overrides_runpath=yes | |
9268 | ;; | |
9269 | ||
9270 | nto-qnx*) | |
9271 | version_type=linux | |
9272 | need_lib_prefix=no | |
9273 | need_version=no | |
9274 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9275 | soname_spec='${libname}${release}${shared_ext}$major' | |
9276 | shlibpath_var=LD_LIBRARY_PATH | |
9277 | shlibpath_overrides_runpath=yes | |
9278 | ;; | |
9279 | ||
9280 | openbsd*) | |
9281 | version_type=sunos | |
9282 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9283 | need_lib_prefix=no | |
9284 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9285 | case $host_os in | |
9286 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9287 | *) need_version=no ;; | |
9288 | esac | |
9289 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9290 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9291 | shlibpath_var=LD_LIBRARY_PATH | |
9292 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9293 | case $host_os in | |
9294 | openbsd2.[89] | openbsd2.[89].*) | |
9295 | shlibpath_overrides_runpath=no | |
9296 | ;; | |
9297 | *) | |
9298 | shlibpath_overrides_runpath=yes | |
9299 | ;; | |
9300 | esac | |
9301 | else | |
9302 | shlibpath_overrides_runpath=yes | |
9303 | fi | |
9304 | ;; | |
9305 | ||
9306 | os2*) | |
9307 | libname_spec='$name' | |
9308 | shrext_cmds=".dll" | |
9309 | need_lib_prefix=no | |
9310 | library_names_spec='$libname${shared_ext} $libname.a' | |
9311 | dynamic_linker='OS/2 ld.exe' | |
9312 | shlibpath_var=LIBPATH | |
9313 | ;; | |
9314 | ||
9315 | osf3* | osf4* | osf5*) | |
9316 | version_type=osf | |
9317 | need_lib_prefix=no | |
9318 | need_version=no | |
9319 | soname_spec='${libname}${release}${shared_ext}$major' | |
9320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9321 | shlibpath_var=LD_LIBRARY_PATH | |
9322 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9323 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9324 | ;; | |
9325 | ||
9326 | solaris*) | |
9327 | version_type=linux | |
9328 | need_lib_prefix=no | |
9329 | need_version=no | |
9330 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9331 | soname_spec='${libname}${release}${shared_ext}$major' | |
9332 | shlibpath_var=LD_LIBRARY_PATH | |
9333 | shlibpath_overrides_runpath=yes | |
9334 | hardcode_into_libs=yes | |
9335 | # ldd complains unless libraries are executable | |
9336 | postinstall_cmds='chmod +x $lib' | |
9337 | ;; | |
9338 | ||
9339 | sunos4*) | |
9340 | version_type=sunos | |
9341 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9342 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9343 | shlibpath_var=LD_LIBRARY_PATH | |
9344 | shlibpath_overrides_runpath=yes | |
9345 | if test "$with_gnu_ld" = yes; then | |
9346 | need_lib_prefix=no | |
9347 | fi | |
9348 | need_version=yes | |
9349 | ;; | |
9350 | ||
9351 | sysv4 | sysv4.3*) | |
9352 | version_type=linux | |
9353 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9354 | soname_spec='${libname}${release}${shared_ext}$major' | |
9355 | shlibpath_var=LD_LIBRARY_PATH | |
9356 | case $host_vendor in | |
9357 | sni) | |
9358 | shlibpath_overrides_runpath=no | |
9359 | need_lib_prefix=no | |
9360 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9361 | runpath_var=LD_RUN_PATH | |
9362 | ;; | |
9363 | siemens) | |
9364 | need_lib_prefix=no | |
9365 | ;; | |
9366 | motorola) | |
9367 | need_lib_prefix=no | |
9368 | need_version=no | |
9369 | shlibpath_overrides_runpath=no | |
9370 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9371 | ;; | |
9372 | esac | |
9373 | ;; | |
9374 | ||
9375 | sysv4*MP*) | |
9376 | if test -d /usr/nec ;then | |
9377 | version_type=linux | |
9378 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9379 | soname_spec='$libname${shared_ext}.$major' | |
9380 | shlibpath_var=LD_LIBRARY_PATH | |
9381 | fi | |
9382 | ;; | |
9383 | ||
9384 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9385 | version_type=freebsd-elf | |
9386 | need_lib_prefix=no | |
9387 | need_version=no | |
9388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9389 | soname_spec='${libname}${release}${shared_ext}$major' | |
9390 | shlibpath_var=LD_LIBRARY_PATH | |
9391 | hardcode_into_libs=yes | |
9392 | if test "$with_gnu_ld" = yes; then | |
9393 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9394 | shlibpath_overrides_runpath=no | |
9395 | else | |
9396 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9397 | shlibpath_overrides_runpath=yes | |
9398 | case $host_os in | |
9399 | sco3.2v5*) | |
9400 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9401 | ;; | |
9402 | esac | |
9403 | fi | |
9404 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9405 | ;; | |
9406 | ||
9407 | uts4*) | |
9408 | version_type=linux | |
9409 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9410 | soname_spec='${libname}${release}${shared_ext}$major' | |
9411 | shlibpath_var=LD_LIBRARY_PATH | |
9412 | ;; | |
9413 | ||
9414 | *) | |
9415 | dynamic_linker=no | |
9416 | ;; | |
9417 | esac | |
9418 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
9419 | echo "${ECHO_T}$dynamic_linker" >&6; } | |
9420 | test "$dynamic_linker" = no && can_build_shared=no | |
9421 | ||
9422 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9423 | if test "$GCC" = yes; then | |
9424 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9425 | fi | |
9426 | ||
9427 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
9428 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
9429 | hardcode_action= | |
9430 | if test -n "$hardcode_libdir_flag_spec" || \ | |
9431 | test -n "$runpath_var" || \ | |
9432 | test "X$hardcode_automatic" = "Xyes" ; then | |
9433 | ||
9434 | # We can hardcode non-existant directories. | |
9435 | if test "$hardcode_direct" != no && | |
9436 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9437 | # have to relink, otherwise we might link with an installed library | |
9438 | # when we should be linking with a yet-to-be-installed one | |
9439 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9440 | test "$hardcode_minus_L" != no; then | |
9441 | # Linking always hardcodes the temporary library directory. | |
9442 | hardcode_action=relink | |
9443 | else | |
9444 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9445 | hardcode_action=immediate | |
9446 | fi | |
9447 | else | |
9448 | # We cannot hardcode anything, or else we can only hardcode existing | |
9449 | # directories. | |
9450 | hardcode_action=unsupported | |
9451 | fi | |
9452 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
9453 | echo "${ECHO_T}$hardcode_action" >&6; } | |
9454 | ||
9455 | if test "$hardcode_action" = relink; then | |
9456 | # Fast installation is not supported | |
9457 | enable_fast_install=no | |
9458 | elif test "$shlibpath_overrides_runpath" = yes || | |
9459 | test "$enable_shared" = no; then | |
9460 | # Fast installation is not necessary | |
9461 | enable_fast_install=needless | |
9462 | fi | |
9463 | ||
9464 | striplib= | |
9465 | old_striplib= | |
9466 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
9467 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } | |
9468 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
9469 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
9470 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
9471 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9472 | echo "${ECHO_T}yes" >&6; } | |
9473 | else | |
9474 | # FIXME - insert some real tests, host_os isn't really good enough | |
9475 | case $host_os in | |
9476 | darwin*) | |
9477 | if test -n "$STRIP" ; then | |
9478 | striplib="$STRIP -x" | |
9479 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9480 | echo "${ECHO_T}yes" >&6; } | |
9481 | else | |
9482 | { echo "$as_me:$LINENO: result: no" >&5 | |
9483 | echo "${ECHO_T}no" >&6; } | |
9484 | fi | |
9485 | ;; | |
9486 | *) | |
9487 | { echo "$as_me:$LINENO: result: no" >&5 | |
9488 | echo "${ECHO_T}no" >&6; } | |
9489 | ;; | |
9490 | esac | |
9491 | fi | |
9492 | ||
9493 | if test "x$enable_dlopen" != xyes; then | |
9494 | enable_dlopen=unknown | |
9495 | enable_dlopen_self=unknown | |
9496 | enable_dlopen_self_static=unknown | |
9497 | else | |
9498 | lt_cv_dlopen=no | |
9499 | lt_cv_dlopen_libs= | |
9500 | ||
9501 | case $host_os in | |
9502 | beos*) | |
9503 | lt_cv_dlopen="load_add_on" | |
9504 | lt_cv_dlopen_libs= | |
9505 | lt_cv_dlopen_self=yes | |
9506 | ;; | |
9507 | ||
9508 | mingw* | pw32*) | |
9509 | lt_cv_dlopen="LoadLibrary" | |
9510 | lt_cv_dlopen_libs= | |
9511 | ;; | |
9512 | ||
9513 | cygwin*) | |
9514 | lt_cv_dlopen="dlopen" | |
9515 | lt_cv_dlopen_libs= | |
9516 | ;; | |
9517 | ||
9518 | darwin*) | |
9519 | # if libdl is installed we need to link against it | |
9520 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9521 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
9522 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
9523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9524 | else | |
9525 | ac_check_lib_save_LIBS=$LIBS | |
9526 | LIBS="-ldl $LIBS" | |
9527 | cat >conftest.$ac_ext <<_ACEOF | |
9528 | /* confdefs.h. */ | |
9529 | _ACEOF | |
9530 | cat confdefs.h >>conftest.$ac_ext | |
9531 | cat >>conftest.$ac_ext <<_ACEOF | |
9532 | /* end confdefs.h. */ | |
9533 | ||
9534 | /* Override any GCC internal prototype to avoid an error. | |
9535 | Use char because int might match the return type of a GCC | |
9536 | builtin and then its argument prototype would still apply. */ | |
9537 | #ifdef __cplusplus | |
9538 | extern "C" | |
9539 | #endif | |
9540 | char dlopen (); | |
9541 | int | |
9542 | main () | |
9543 | { | |
9544 | return dlopen (); | |
9545 | ; | |
9546 | return 0; | |
9547 | } | |
9548 | _ACEOF | |
9549 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9550 | if { (ac_try="$ac_link" | |
9551 | case "(($ac_try" in | |
9552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9553 | *) ac_try_echo=$ac_try;; | |
9554 | esac | |
9555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9556 | (eval "$ac_link") 2>conftest.er1 | |
9557 | ac_status=$? | |
9558 | grep -v '^ *+' conftest.er1 >conftest.err | |
9559 | rm -f conftest.er1 | |
9560 | cat conftest.err >&5 | |
9561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9562 | (exit $ac_status); } && | |
9563 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9564 | { (case "(($ac_try" in | |
9565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9566 | *) ac_try_echo=$ac_try;; | |
9567 | esac | |
9568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9569 | (eval "$ac_try") 2>&5 | |
9570 | ac_status=$? | |
9571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9572 | (exit $ac_status); }; } && | |
9573 | { ac_try='test -s conftest$ac_exeext' | |
9574 | { (case "(($ac_try" in | |
9575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9576 | *) ac_try_echo=$ac_try;; | |
9577 | esac | |
9578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9579 | (eval "$ac_try") 2>&5 | |
9580 | ac_status=$? | |
9581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9582 | (exit $ac_status); }; }; then | |
9583 | ac_cv_lib_dl_dlopen=yes | |
9584 | else | |
9585 | echo "$as_me: failed program was:" >&5 | |
9586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9587 | ||
9588 | ac_cv_lib_dl_dlopen=no | |
9589 | fi | |
9590 | ||
9591 | rm -f core conftest.err conftest.$ac_objext \ | |
9592 | conftest$ac_exeext conftest.$ac_ext | |
9593 | LIBS=$ac_check_lib_save_LIBS | |
9594 | fi | |
9595 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
9596 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
9597 | if test $ac_cv_lib_dl_dlopen = yes; then | |
9598 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9599 | else | |
9600 | ||
9601 | lt_cv_dlopen="dyld" | |
9602 | lt_cv_dlopen_libs= | |
9603 | lt_cv_dlopen_self=yes | |
9604 | ||
9605 | fi | |
9606 | ||
9607 | ;; | |
9608 | ||
9609 | *) | |
9610 | { echo "$as_me:$LINENO: checking for shl_load" >&5 | |
9611 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } | |
9612 | if test "${ac_cv_func_shl_load+set}" = set; then | |
9613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9614 | else | |
9615 | cat >conftest.$ac_ext <<_ACEOF | |
9616 | /* confdefs.h. */ | |
9617 | _ACEOF | |
9618 | cat confdefs.h >>conftest.$ac_ext | |
9619 | cat >>conftest.$ac_ext <<_ACEOF | |
9620 | /* end confdefs.h. */ | |
9621 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
9622 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9623 | #define shl_load innocuous_shl_load | |
9624 | ||
9625 | /* System header to define __stub macros and hopefully few prototypes, | |
9626 | which can conflict with char shl_load (); below. | |
9627 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9628 | <limits.h> exists even on freestanding compilers. */ | |
9629 | ||
9630 | #ifdef __STDC__ | |
9631 | # include <limits.h> | |
9632 | #else | |
9633 | # include <assert.h> | |
9634 | #endif | |
9635 | ||
9636 | #undef shl_load | |
9637 | ||
9638 | /* Override any GCC internal prototype to avoid an error. | |
9639 | Use char because int might match the return type of a GCC | |
9640 | builtin and then its argument prototype would still apply. */ | |
9641 | #ifdef __cplusplus | |
9642 | extern "C" | |
9643 | #endif | |
9644 | char shl_load (); | |
9645 | /* The GNU C library defines this for functions which it implements | |
9646 | to always fail with ENOSYS. Some functions are actually named | |
9647 | something starting with __ and the normal name is an alias. */ | |
9648 | #if defined __stub_shl_load || defined __stub___shl_load | |
9649 | choke me | |
9650 | #endif | |
9651 | ||
9652 | int | |
9653 | main () | |
9654 | { | |
9655 | return shl_load (); | |
9656 | ; | |
9657 | return 0; | |
9658 | } | |
9659 | _ACEOF | |
9660 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9661 | if { (ac_try="$ac_link" | |
9662 | case "(($ac_try" in | |
9663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9664 | *) ac_try_echo=$ac_try;; | |
9665 | esac | |
9666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9667 | (eval "$ac_link") 2>conftest.er1 | |
9668 | ac_status=$? | |
9669 | grep -v '^ *+' conftest.er1 >conftest.err | |
9670 | rm -f conftest.er1 | |
9671 | cat conftest.err >&5 | |
9672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9673 | (exit $ac_status); } && | |
9674 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9675 | { (case "(($ac_try" in | |
9676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9677 | *) ac_try_echo=$ac_try;; | |
9678 | esac | |
9679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9680 | (eval "$ac_try") 2>&5 | |
9681 | ac_status=$? | |
9682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9683 | (exit $ac_status); }; } && | |
9684 | { ac_try='test -s conftest$ac_exeext' | |
9685 | { (case "(($ac_try" in | |
9686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9687 | *) ac_try_echo=$ac_try;; | |
9688 | esac | |
9689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9690 | (eval "$ac_try") 2>&5 | |
9691 | ac_status=$? | |
9692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9693 | (exit $ac_status); }; }; then | |
9694 | ac_cv_func_shl_load=yes | |
9695 | else | |
9696 | echo "$as_me: failed program was:" >&5 | |
9697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9698 | ||
9699 | ac_cv_func_shl_load=no | |
9700 | fi | |
9701 | ||
9702 | rm -f core conftest.err conftest.$ac_objext \ | |
9703 | conftest$ac_exeext conftest.$ac_ext | |
9704 | fi | |
9705 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
9706 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } | |
9707 | if test $ac_cv_func_shl_load = yes; then | |
9708 | lt_cv_dlopen="shl_load" | |
9709 | else | |
9710 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
9711 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } | |
9712 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
9713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9714 | else | |
9715 | ac_check_lib_save_LIBS=$LIBS | |
9716 | LIBS="-ldld $LIBS" | |
9717 | cat >conftest.$ac_ext <<_ACEOF | |
9718 | /* confdefs.h. */ | |
9719 | _ACEOF | |
9720 | cat confdefs.h >>conftest.$ac_ext | |
9721 | cat >>conftest.$ac_ext <<_ACEOF | |
9722 | /* end confdefs.h. */ | |
9723 | ||
9724 | /* Override any GCC internal prototype to avoid an error. | |
9725 | Use char because int might match the return type of a GCC | |
9726 | builtin and then its argument prototype would still apply. */ | |
9727 | #ifdef __cplusplus | |
9728 | extern "C" | |
9729 | #endif | |
9730 | char shl_load (); | |
9731 | int | |
9732 | main () | |
9733 | { | |
9734 | return shl_load (); | |
9735 | ; | |
9736 | return 0; | |
9737 | } | |
9738 | _ACEOF | |
9739 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9740 | if { (ac_try="$ac_link" | |
9741 | case "(($ac_try" in | |
9742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9743 | *) ac_try_echo=$ac_try;; | |
9744 | esac | |
9745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9746 | (eval "$ac_link") 2>conftest.er1 | |
9747 | ac_status=$? | |
9748 | grep -v '^ *+' conftest.er1 >conftest.err | |
9749 | rm -f conftest.er1 | |
9750 | cat conftest.err >&5 | |
9751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9752 | (exit $ac_status); } && | |
9753 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9754 | { (case "(($ac_try" in | |
9755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9756 | *) ac_try_echo=$ac_try;; | |
9757 | esac | |
9758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9759 | (eval "$ac_try") 2>&5 | |
9760 | ac_status=$? | |
9761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9762 | (exit $ac_status); }; } && | |
9763 | { ac_try='test -s conftest$ac_exeext' | |
9764 | { (case "(($ac_try" in | |
9765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9766 | *) ac_try_echo=$ac_try;; | |
9767 | esac | |
9768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9769 | (eval "$ac_try") 2>&5 | |
9770 | ac_status=$? | |
9771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9772 | (exit $ac_status); }; }; then | |
9773 | ac_cv_lib_dld_shl_load=yes | |
9774 | else | |
9775 | echo "$as_me: failed program was:" >&5 | |
9776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9777 | ||
9778 | ac_cv_lib_dld_shl_load=no | |
9779 | fi | |
9780 | ||
9781 | rm -f core conftest.err conftest.$ac_objext \ | |
9782 | conftest$ac_exeext conftest.$ac_ext | |
9783 | LIBS=$ac_check_lib_save_LIBS | |
9784 | fi | |
9785 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
9786 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } | |
9787 | if test $ac_cv_lib_dld_shl_load = yes; then | |
9788 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
9789 | else | |
9790 | { echo "$as_me:$LINENO: checking for dlopen" >&5 | |
9791 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } | |
9792 | if test "${ac_cv_func_dlopen+set}" = set; then | |
9793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9794 | else | |
9795 | cat >conftest.$ac_ext <<_ACEOF | |
9796 | /* confdefs.h. */ | |
9797 | _ACEOF | |
9798 | cat confdefs.h >>conftest.$ac_ext | |
9799 | cat >>conftest.$ac_ext <<_ACEOF | |
9800 | /* end confdefs.h. */ | |
9801 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
9802 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9803 | #define dlopen innocuous_dlopen | |
9804 | ||
9805 | /* System header to define __stub macros and hopefully few prototypes, | |
9806 | which can conflict with char dlopen (); below. | |
9807 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9808 | <limits.h> exists even on freestanding compilers. */ | |
9809 | ||
9810 | #ifdef __STDC__ | |
9811 | # include <limits.h> | |
9812 | #else | |
9813 | # include <assert.h> | |
9814 | #endif | |
9815 | ||
9816 | #undef dlopen | |
9817 | ||
9818 | /* Override any GCC internal prototype to avoid an error. | |
9819 | Use char because int might match the return type of a GCC | |
9820 | builtin and then its argument prototype would still apply. */ | |
9821 | #ifdef __cplusplus | |
9822 | extern "C" | |
9823 | #endif | |
9824 | char dlopen (); | |
9825 | /* The GNU C library defines this for functions which it implements | |
9826 | to always fail with ENOSYS. Some functions are actually named | |
9827 | something starting with __ and the normal name is an alias. */ | |
9828 | #if defined __stub_dlopen || defined __stub___dlopen | |
9829 | choke me | |
9830 | #endif | |
9831 | ||
9832 | int | |
9833 | main () | |
9834 | { | |
9835 | return dlopen (); | |
9836 | ; | |
9837 | return 0; | |
9838 | } | |
9839 | _ACEOF | |
9840 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9841 | if { (ac_try="$ac_link" | |
9842 | case "(($ac_try" in | |
9843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9844 | *) ac_try_echo=$ac_try;; | |
9845 | esac | |
9846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9847 | (eval "$ac_link") 2>conftest.er1 | |
9848 | ac_status=$? | |
9849 | grep -v '^ *+' conftest.er1 >conftest.err | |
9850 | rm -f conftest.er1 | |
9851 | cat conftest.err >&5 | |
9852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9853 | (exit $ac_status); } && | |
9854 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9855 | { (case "(($ac_try" in | |
9856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9857 | *) ac_try_echo=$ac_try;; | |
9858 | esac | |
9859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9860 | (eval "$ac_try") 2>&5 | |
9861 | ac_status=$? | |
9862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9863 | (exit $ac_status); }; } && | |
9864 | { ac_try='test -s conftest$ac_exeext' | |
9865 | { (case "(($ac_try" in | |
9866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9867 | *) ac_try_echo=$ac_try;; | |
9868 | esac | |
9869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9870 | (eval "$ac_try") 2>&5 | |
9871 | ac_status=$? | |
9872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9873 | (exit $ac_status); }; }; then | |
9874 | ac_cv_func_dlopen=yes | |
9875 | else | |
9876 | echo "$as_me: failed program was:" >&5 | |
9877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9878 | ||
9879 | ac_cv_func_dlopen=no | |
9880 | fi | |
9881 | ||
9882 | rm -f core conftest.err conftest.$ac_objext \ | |
9883 | conftest$ac_exeext conftest.$ac_ext | |
9884 | fi | |
9885 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
9886 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } | |
9887 | if test $ac_cv_func_dlopen = yes; then | |
9888 | lt_cv_dlopen="dlopen" | |
9889 | else | |
9890 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9891 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
9892 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
9893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9894 | else | |
9895 | ac_check_lib_save_LIBS=$LIBS | |
9896 | LIBS="-ldl $LIBS" | |
9897 | cat >conftest.$ac_ext <<_ACEOF | |
9898 | /* confdefs.h. */ | |
9899 | _ACEOF | |
9900 | cat confdefs.h >>conftest.$ac_ext | |
9901 | cat >>conftest.$ac_ext <<_ACEOF | |
9902 | /* end confdefs.h. */ | |
9903 | ||
9904 | /* Override any GCC internal prototype to avoid an error. | |
9905 | Use char because int might match the return type of a GCC | |
9906 | builtin and then its argument prototype would still apply. */ | |
9907 | #ifdef __cplusplus | |
9908 | extern "C" | |
9909 | #endif | |
9910 | char dlopen (); | |
9911 | int | |
9912 | main () | |
9913 | { | |
9914 | return dlopen (); | |
9915 | ; | |
9916 | return 0; | |
9917 | } | |
9918 | _ACEOF | |
9919 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9920 | if { (ac_try="$ac_link" | |
9921 | case "(($ac_try" in | |
9922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9923 | *) ac_try_echo=$ac_try;; | |
9924 | esac | |
9925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9926 | (eval "$ac_link") 2>conftest.er1 | |
9927 | ac_status=$? | |
9928 | grep -v '^ *+' conftest.er1 >conftest.err | |
9929 | rm -f conftest.er1 | |
9930 | cat conftest.err >&5 | |
9931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9932 | (exit $ac_status); } && | |
9933 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9934 | { (case "(($ac_try" in | |
9935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9936 | *) ac_try_echo=$ac_try;; | |
9937 | esac | |
9938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9939 | (eval "$ac_try") 2>&5 | |
9940 | ac_status=$? | |
9941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9942 | (exit $ac_status); }; } && | |
9943 | { ac_try='test -s conftest$ac_exeext' | |
9944 | { (case "(($ac_try" in | |
9945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9946 | *) ac_try_echo=$ac_try;; | |
9947 | esac | |
9948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9949 | (eval "$ac_try") 2>&5 | |
9950 | ac_status=$? | |
9951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9952 | (exit $ac_status); }; }; then | |
9953 | ac_cv_lib_dl_dlopen=yes | |
9954 | else | |
9955 | echo "$as_me: failed program was:" >&5 | |
9956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9957 | ||
9958 | ac_cv_lib_dl_dlopen=no | |
9959 | fi | |
9960 | ||
9961 | rm -f core conftest.err conftest.$ac_objext \ | |
9962 | conftest$ac_exeext conftest.$ac_ext | |
9963 | LIBS=$ac_check_lib_save_LIBS | |
9964 | fi | |
9965 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
9966 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
9967 | if test $ac_cv_lib_dl_dlopen = yes; then | |
9968 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9969 | else | |
9970 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
9971 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } | |
9972 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
9973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9974 | else | |
9975 | ac_check_lib_save_LIBS=$LIBS | |
9976 | LIBS="-lsvld $LIBS" | |
9977 | cat >conftest.$ac_ext <<_ACEOF | |
9978 | /* confdefs.h. */ | |
9979 | _ACEOF | |
9980 | cat confdefs.h >>conftest.$ac_ext | |
9981 | cat >>conftest.$ac_ext <<_ACEOF | |
9982 | /* end confdefs.h. */ | |
9983 | ||
9984 | /* Override any GCC internal prototype to avoid an error. | |
9985 | Use char because int might match the return type of a GCC | |
9986 | builtin and then its argument prototype would still apply. */ | |
9987 | #ifdef __cplusplus | |
9988 | extern "C" | |
9989 | #endif | |
9990 | char dlopen (); | |
9991 | int | |
9992 | main () | |
9993 | { | |
9994 | return dlopen (); | |
9995 | ; | |
9996 | return 0; | |
9997 | } | |
9998 | _ACEOF | |
9999 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10000 | if { (ac_try="$ac_link" | |
10001 | case "(($ac_try" in | |
10002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10003 | *) ac_try_echo=$ac_try;; | |
10004 | esac | |
10005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10006 | (eval "$ac_link") 2>conftest.er1 | |
10007 | ac_status=$? | |
10008 | grep -v '^ *+' conftest.er1 >conftest.err | |
10009 | rm -f conftest.er1 | |
10010 | cat conftest.err >&5 | |
10011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10012 | (exit $ac_status); } && | |
10013 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
10014 | { (case "(($ac_try" in | |
10015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10016 | *) ac_try_echo=$ac_try;; | |
10017 | esac | |
10018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10019 | (eval "$ac_try") 2>&5 | |
10020 | ac_status=$? | |
10021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10022 | (exit $ac_status); }; } && | |
10023 | { ac_try='test -s conftest$ac_exeext' | |
10024 | { (case "(($ac_try" in | |
10025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10026 | *) ac_try_echo=$ac_try;; | |
10027 | esac | |
10028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10029 | (eval "$ac_try") 2>&5 | |
10030 | ac_status=$? | |
10031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10032 | (exit $ac_status); }; }; then | |
10033 | ac_cv_lib_svld_dlopen=yes | |
10034 | else | |
10035 | echo "$as_me: failed program was:" >&5 | |
10036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10037 | ||
10038 | ac_cv_lib_svld_dlopen=no | |
10039 | fi | |
10040 | ||
10041 | rm -f core conftest.err conftest.$ac_objext \ | |
10042 | conftest$ac_exeext conftest.$ac_ext | |
10043 | LIBS=$ac_check_lib_save_LIBS | |
10044 | fi | |
10045 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
10046 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } | |
10047 | if test $ac_cv_lib_svld_dlopen = yes; then | |
10048 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10049 | else | |
10050 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
10051 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } | |
10052 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
10053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10054 | else | |
10055 | ac_check_lib_save_LIBS=$LIBS | |
10056 | LIBS="-ldld $LIBS" | |
10057 | cat >conftest.$ac_ext <<_ACEOF | |
10058 | /* confdefs.h. */ | |
10059 | _ACEOF | |
10060 | cat confdefs.h >>conftest.$ac_ext | |
10061 | cat >>conftest.$ac_ext <<_ACEOF | |
10062 | /* end confdefs.h. */ | |
10063 | ||
10064 | /* Override any GCC internal prototype to avoid an error. | |
10065 | Use char because int might match the return type of a GCC | |
10066 | builtin and then its argument prototype would still apply. */ | |
10067 | #ifdef __cplusplus | |
10068 | extern "C" | |
10069 | #endif | |
10070 | char dld_link (); | |
10071 | int | |
10072 | main () | |
10073 | { | |
10074 | return dld_link (); | |
10075 | ; | |
10076 | return 0; | |
10077 | } | |
10078 | _ACEOF | |
10079 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10080 | if { (ac_try="$ac_link" | |
10081 | case "(($ac_try" in | |
10082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10083 | *) ac_try_echo=$ac_try;; | |
10084 | esac | |
10085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10086 | (eval "$ac_link") 2>conftest.er1 | |
10087 | ac_status=$? | |
10088 | grep -v '^ *+' conftest.er1 >conftest.err | |
10089 | rm -f conftest.er1 | |
10090 | cat conftest.err >&5 | |
10091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10092 | (exit $ac_status); } && | |
10093 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
10094 | { (case "(($ac_try" in | |
10095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10096 | *) ac_try_echo=$ac_try;; | |
10097 | esac | |
10098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10099 | (eval "$ac_try") 2>&5 | |
10100 | ac_status=$? | |
10101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10102 | (exit $ac_status); }; } && | |
10103 | { ac_try='test -s conftest$ac_exeext' | |
10104 | { (case "(($ac_try" in | |
10105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10106 | *) ac_try_echo=$ac_try;; | |
10107 | esac | |
10108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10109 | (eval "$ac_try") 2>&5 | |
10110 | ac_status=$? | |
10111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10112 | (exit $ac_status); }; }; then | |
10113 | ac_cv_lib_dld_dld_link=yes | |
10114 | else | |
10115 | echo "$as_me: failed program was:" >&5 | |
10116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10117 | ||
10118 | ac_cv_lib_dld_dld_link=no | |
10119 | fi | |
10120 | ||
10121 | rm -f core conftest.err conftest.$ac_objext \ | |
10122 | conftest$ac_exeext conftest.$ac_ext | |
10123 | LIBS=$ac_check_lib_save_LIBS | |
10124 | fi | |
10125 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
10126 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } | |
10127 | if test $ac_cv_lib_dld_dld_link = yes; then | |
10128 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
10129 | fi | |
10130 | ||
10131 | ||
10132 | fi | |
10133 | ||
10134 | ||
10135 | fi | |
10136 | ||
10137 | ||
10138 | fi | |
10139 | ||
10140 | ||
10141 | fi | |
10142 | ||
10143 | ||
10144 | fi | |
10145 | ||
10146 | ;; | |
10147 | esac | |
10148 | ||
10149 | if test "x$lt_cv_dlopen" != xno; then | |
10150 | enable_dlopen=yes | |
10151 | else | |
10152 | enable_dlopen=no | |
10153 | fi | |
10154 | ||
10155 | case $lt_cv_dlopen in | |
10156 | dlopen) | |
10157 | save_CPPFLAGS="$CPPFLAGS" | |
10158 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10159 | ||
10160 | save_LDFLAGS="$LDFLAGS" | |
10161 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10162 | ||
10163 | save_LIBS="$LIBS" | |
10164 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
10165 | ||
10166 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
10167 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } | |
10168 | if test "${lt_cv_dlopen_self+set}" = set; then | |
10169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10170 | else | |
10171 | if test "$cross_compiling" = yes; then : | |
10172 | lt_cv_dlopen_self=cross | |
10173 | else | |
10174 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10175 | lt_status=$lt_dlunknown | |
10176 | cat > conftest.$ac_ext <<EOF | |
10177 | #line 10177 "configure" | |
10178 | #include "confdefs.h" | |
10179 | ||
10180 | #if HAVE_DLFCN_H | |
10181 | #include <dlfcn.h> | |
10182 | #endif | |
10183 | ||
10184 | #include <stdio.h> | |
10185 | ||
10186 | #ifdef RTLD_GLOBAL | |
10187 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10188 | #else | |
10189 | # ifdef DL_GLOBAL | |
10190 | # define LT_DLGLOBAL DL_GLOBAL | |
10191 | # else | |
10192 | # define LT_DLGLOBAL 0 | |
10193 | # endif | |
10194 | #endif | |
10195 | ||
10196 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10197 | find out it does not work in some platform. */ | |
10198 | #ifndef LT_DLLAZY_OR_NOW | |
10199 | # ifdef RTLD_LAZY | |
10200 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10201 | # else | |
10202 | # ifdef DL_LAZY | |
10203 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10204 | # else | |
10205 | # ifdef RTLD_NOW | |
10206 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10207 | # else | |
10208 | # ifdef DL_NOW | |
10209 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10210 | # else | |
10211 | # define LT_DLLAZY_OR_NOW 0 | |
10212 | # endif | |
10213 | # endif | |
10214 | # endif | |
10215 | # endif | |
10216 | #endif | |
10217 | ||
10218 | #ifdef __cplusplus | |
10219 | extern "C" void exit (int); | |
10220 | #endif | |
10221 | ||
10222 | void fnord() { int i=42;} | |
10223 | int main () | |
10224 | { | |
10225 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10226 | int status = $lt_dlunknown; | |
10227 | ||
10228 | if (self) | |
10229 | { | |
10230 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10231 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10232 | /* dlclose (self); */ | |
10233 | } | |
10234 | else | |
10235 | puts (dlerror ()); | |
10236 | ||
10237 | exit (status); | |
10238 | } | |
10239 | EOF | |
10240 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10241 | (eval $ac_link) 2>&5 | |
10242 | ac_status=$? | |
10243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10244 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10245 | (./conftest; exit; ) >&5 2>/dev/null | |
10246 | lt_status=$? | |
10247 | case x$lt_status in | |
10248 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10249 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10250 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10251 | esac | |
10252 | else : | |
10253 | # compilation failed | |
10254 | lt_cv_dlopen_self=no | |
10255 | fi | |
10256 | fi | |
10257 | rm -fr conftest* | |
10258 | ||
10259 | ||
10260 | fi | |
10261 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
10262 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } | |
10263 | ||
10264 | if test "x$lt_cv_dlopen_self" = xyes; then | |
10265 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
10266 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
10267 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } | |
10268 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
10269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10270 | else | |
10271 | if test "$cross_compiling" = yes; then : | |
10272 | lt_cv_dlopen_self_static=cross | |
10273 | else | |
10274 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10275 | lt_status=$lt_dlunknown | |
10276 | cat > conftest.$ac_ext <<EOF | |
10277 | #line 10277 "configure" | |
10278 | #include "confdefs.h" | |
10279 | ||
10280 | #if HAVE_DLFCN_H | |
10281 | #include <dlfcn.h> | |
10282 | #endif | |
10283 | ||
10284 | #include <stdio.h> | |
10285 | ||
10286 | #ifdef RTLD_GLOBAL | |
10287 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10288 | #else | |
10289 | # ifdef DL_GLOBAL | |
10290 | # define LT_DLGLOBAL DL_GLOBAL | |
10291 | # else | |
10292 | # define LT_DLGLOBAL 0 | |
10293 | # endif | |
10294 | #endif | |
10295 | ||
10296 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10297 | find out it does not work in some platform. */ | |
10298 | #ifndef LT_DLLAZY_OR_NOW | |
10299 | # ifdef RTLD_LAZY | |
10300 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10301 | # else | |
10302 | # ifdef DL_LAZY | |
10303 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10304 | # else | |
10305 | # ifdef RTLD_NOW | |
10306 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10307 | # else | |
10308 | # ifdef DL_NOW | |
10309 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10310 | # else | |
10311 | # define LT_DLLAZY_OR_NOW 0 | |
10312 | # endif | |
10313 | # endif | |
10314 | # endif | |
10315 | # endif | |
10316 | #endif | |
10317 | ||
10318 | #ifdef __cplusplus | |
10319 | extern "C" void exit (int); | |
10320 | #endif | |
10321 | ||
10322 | void fnord() { int i=42;} | |
10323 | int main () | |
10324 | { | |
10325 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10326 | int status = $lt_dlunknown; | |
10327 | ||
10328 | if (self) | |
10329 | { | |
10330 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10331 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10332 | /* dlclose (self); */ | |
10333 | } | |
10334 | else | |
10335 | puts (dlerror ()); | |
10336 | ||
10337 | exit (status); | |
10338 | } | |
10339 | EOF | |
10340 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10341 | (eval $ac_link) 2>&5 | |
10342 | ac_status=$? | |
10343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10344 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10345 | (./conftest; exit; ) >&5 2>/dev/null | |
10346 | lt_status=$? | |
10347 | case x$lt_status in | |
10348 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10349 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10350 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10351 | esac | |
10352 | else : | |
10353 | # compilation failed | |
10354 | lt_cv_dlopen_self_static=no | |
10355 | fi | |
10356 | fi | |
10357 | rm -fr conftest* | |
10358 | ||
10359 | ||
10360 | fi | |
10361 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
10362 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } | |
10363 | fi | |
10364 | ||
10365 | CPPFLAGS="$save_CPPFLAGS" | |
10366 | LDFLAGS="$save_LDFLAGS" | |
10367 | LIBS="$save_LIBS" | |
10368 | ;; | |
10369 | esac | |
10370 | ||
10371 | case $lt_cv_dlopen_self in | |
10372 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10373 | *) enable_dlopen_self=unknown ;; | |
10374 | esac | |
10375 | ||
10376 | case $lt_cv_dlopen_self_static in | |
10377 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10378 | *) enable_dlopen_self_static=unknown ;; | |
10379 | esac | |
10380 | fi | |
10381 | ||
10382 | ||
10383 | # Report which library types will actually be built | |
10384 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
10385 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } | |
10386 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
10387 | echo "${ECHO_T}$can_build_shared" >&6; } | |
10388 | ||
10389 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
10390 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | |
10391 | test "$can_build_shared" = "no" && enable_shared=no | |
10392 | ||
10393 | # On AIX, shared libraries and static libraries use the same namespace, and | |
10394 | # are all built from PIC. | |
10395 | case $host_os in | |
10396 | aix3*) | |
10397 | test "$enable_shared" = yes && enable_static=no | |
10398 | if test -n "$RANLIB"; then | |
10399 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10400 | postinstall_cmds='$RANLIB $lib' | |
10401 | fi | |
10402 | ;; | |
10403 | ||
10404 | aix4* | aix5*) | |
10405 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
10406 | test "$enable_shared" = yes && enable_static=no | |
10407 | fi | |
10408 | ;; | |
10409 | esac | |
10410 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
10411 | echo "${ECHO_T}$enable_shared" >&6; } | |
10412 | ||
10413 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
10414 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } | |
10415 | # Make sure either enable_shared or enable_static is yes. | |
10416 | test "$enable_shared" = yes || enable_static=yes | |
10417 | { echo "$as_me:$LINENO: result: $enable_static" >&5 | |
10418 | echo "${ECHO_T}$enable_static" >&6; } | |
10419 | ||
10420 | # The else clause should only fire when bootstrapping the | |
10421 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
10422 | # with your package, and you will get complaints that there are | |
10423 | # no rules to generate ltmain.sh. | |
10424 | if test -f "$ltmain"; then | |
10425 | # See if we are running on zsh, and set the options which allow our commands through | |
10426 | # without removal of \ escapes. | |
10427 | if test -n "${ZSH_VERSION+set}" ; then | |
10428 | setopt NO_GLOB_SUBST | |
10429 | fi | |
10430 | # Now quote all the things that may contain metacharacters while being | |
10431 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
10432 | # variables and quote the copies for generation of the libtool script. | |
10433 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
10434 | SED SHELL STRIP \ | |
10435 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
10436 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
10437 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
10438 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
10439 | lt_cv_sys_global_symbol_to_c_name_address \ | |
10440 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
10441 | old_postinstall_cmds old_postuninstall_cmds \ | |
10442 | compiler \ | |
10443 | CC \ | |
10444 | LD \ | |
10445 | lt_prog_compiler_wl \ | |
10446 | lt_prog_compiler_pic \ | |
10447 | lt_prog_compiler_static \ | |
10448 | lt_prog_compiler_no_builtin_flag \ | |
10449 | export_dynamic_flag_spec \ | |
10450 | thread_safe_flag_spec \ | |
10451 | whole_archive_flag_spec \ | |
10452 | enable_shared_with_static_runtimes \ | |
10453 | old_archive_cmds \ | |
10454 | old_archive_from_new_cmds \ | |
10455 | predep_objects \ | |
10456 | postdep_objects \ | |
10457 | predeps \ | |
10458 | postdeps \ | |
10459 | compiler_lib_search_path \ | |
10460 | archive_cmds \ | |
10461 | archive_expsym_cmds \ | |
10462 | postinstall_cmds \ | |
10463 | postuninstall_cmds \ | |
10464 | old_archive_from_expsyms_cmds \ | |
10465 | allow_undefined_flag \ | |
10466 | no_undefined_flag \ | |
10467 | export_symbols_cmds \ | |
10468 | hardcode_libdir_flag_spec \ | |
10469 | hardcode_libdir_flag_spec_ld \ | |
10470 | hardcode_libdir_separator \ | |
10471 | hardcode_automatic \ | |
10472 | module_cmds \ | |
10473 | module_expsym_cmds \ | |
10474 | lt_cv_prog_compiler_c_o \ | |
10475 | exclude_expsyms \ | |
10476 | include_expsyms; do | |
10477 | ||
10478 | case $var in | |
10479 | old_archive_cmds | \ | |
10480 | old_archive_from_new_cmds | \ | |
10481 | archive_cmds | \ | |
10482 | archive_expsym_cmds | \ | |
10483 | module_cmds | \ | |
10484 | module_expsym_cmds | \ | |
10485 | old_archive_from_expsyms_cmds | \ | |
10486 | export_symbols_cmds | \ | |
10487 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
10488 | postinstall_cmds | postuninstall_cmds | \ | |
10489 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
10490 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
10491 | # Double-quote double-evaled strings. | |
10492 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
10493 | ;; | |
10494 | *) | |
10495 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
10496 | ;; | |
10497 | esac | |
10498 | done | |
10499 | ||
10500 | case $lt_echo in | |
10501 | *'\$0 --fallback-echo"') | |
10502 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
10503 | ;; | |
10504 | esac | |
10505 | ||
10506 | cfgfile="${ofile}T" | |
10507 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
10508 | $rm -f "$cfgfile" | |
10509 | { echo "$as_me:$LINENO: creating $ofile" >&5 | |
10510 | echo "$as_me: creating $ofile" >&6;} | |
10511 | ||
10512 | cat <<__EOF__ >> "$cfgfile" | |
10513 | #! $SHELL | |
10514 | ||
10515 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
10516 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
10517 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
10518 | # | |
10519 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | |
10520 | # Free Software Foundation, Inc. | |
10521 | # | |
10522 | # This file is part of GNU Libtool: | |
10523 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
10524 | # | |
10525 | # This program is free software; you can redistribute it and/or modify | |
10526 | # it under the terms of the GNU General Public License as published by | |
10527 | # the Free Software Foundation; either version 2 of the License, or | |
10528 | # (at your option) any later version. | |
10529 | # | |
10530 | # This program is distributed in the hope that it will be useful, but | |
10531 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
10532 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
10533 | # General Public License for more details. | |
10534 | # | |
10535 | # You should have received a copy of the GNU General Public License | |
10536 | # along with this program; if not, write to the Free Software | |
10537 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
10538 | # | |
10539 | # As a special exception to the GNU General Public License, if you | |
10540 | # distribute this file as part of a program that contains a | |
10541 | # configuration script generated by Autoconf, you may include it under | |
10542 | # the same distribution terms that you use for the rest of that program. | |
10543 | ||
10544 | # A sed program that does not truncate output. | |
10545 | SED=$lt_SED | |
10546 | ||
10547 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
10548 | Xsed="$SED -e 1s/^X//" | |
10549 | ||
10550 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
10551 | # if CDPATH is set. | |
10552 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10553 | ||
10554 | # The names of the tagged configurations supported by this script. | |
10555 | available_tags= | |
10556 | ||
10557 | # ### BEGIN LIBTOOL CONFIG | |
10558 | ||
10559 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
10560 | ||
10561 | # Shell to use when invoking shell scripts. | |
10562 | SHELL=$lt_SHELL | |
10563 | ||
10564 | # Whether or not to build shared libraries. | |
10565 | build_libtool_libs=$enable_shared | |
10566 | ||
10567 | # Whether or not to build static libraries. | |
10568 | build_old_libs=$enable_static | |
10569 | ||
10570 | # Whether or not to add -lc for building shared libraries. | |
10571 | build_libtool_need_lc=$archive_cmds_need_lc | |
10572 | ||
10573 | # Whether or not to disallow shared libs when runtime libs are static | |
10574 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
10575 | ||
10576 | # Whether or not to optimize for fast installation. | |
10577 | fast_install=$enable_fast_install | |
10578 | ||
10579 | # The host system. | |
10580 | host_alias=$host_alias | |
10581 | host=$host | |
10582 | host_os=$host_os | |
10583 | ||
10584 | # The build system. | |
10585 | build_alias=$build_alias | |
10586 | build=$build | |
10587 | build_os=$build_os | |
10588 | ||
10589 | # An echo program that does not interpret backslashes. | |
10590 | echo=$lt_echo | |
10591 | ||
10592 | # The archiver. | |
10593 | AR=$lt_AR | |
10594 | AR_FLAGS=$lt_AR_FLAGS | |
10595 | ||
10596 | # A C compiler. | |
10597 | LTCC=$lt_LTCC | |
10598 | ||
10599 | # LTCC compiler flags. | |
10600 | LTCFLAGS=$lt_LTCFLAGS | |
10601 | ||
10602 | # A language-specific compiler. | |
10603 | CC=$lt_compiler | |
10604 | ||
10605 | # Is the compiler the GNU C compiler? | |
10606 | with_gcc=$GCC | |
10607 | ||
10608 | # An ERE matcher. | |
10609 | EGREP=$lt_EGREP | |
10610 | ||
10611 | # The linker used to build libraries. | |
10612 | LD=$lt_LD | |
10613 | ||
10614 | # Whether we need hard or soft links. | |
10615 | LN_S=$lt_LN_S | |
10616 | ||
10617 | # A BSD-compatible nm program. | |
10618 | NM=$lt_NM | |
10619 | ||
10620 | # A symbol stripping program | |
10621 | STRIP=$lt_STRIP | |
10622 | ||
10623 | # Used to examine libraries when file_magic_cmd begins "file" | |
10624 | MAGIC_CMD=$MAGIC_CMD | |
10625 | ||
10626 | # Used on cygwin: DLL creation program. | |
10627 | DLLTOOL="$DLLTOOL" | |
10628 | ||
10629 | # Used on cygwin: object dumper. | |
10630 | OBJDUMP="$OBJDUMP" | |
10631 | ||
10632 | # Used on cygwin: assembler. | |
10633 | AS="$AS" | |
10634 | ||
10635 | # The name of the directory that contains temporary libtool files. | |
10636 | objdir=$objdir | |
10637 | ||
10638 | # How to create reloadable object files. | |
10639 | reload_flag=$lt_reload_flag | |
10640 | reload_cmds=$lt_reload_cmds | |
10641 | ||
10642 | # How to pass a linker flag through the compiler. | |
10643 | wl=$lt_lt_prog_compiler_wl | |
10644 | ||
10645 | # Object file suffix (normally "o"). | |
10646 | objext="$ac_objext" | |
10647 | ||
10648 | # Old archive suffix (normally "a"). | |
10649 | libext="$libext" | |
10650 | ||
10651 | # Shared library suffix (normally ".so"). | |
10652 | shrext_cmds='$shrext_cmds' | |
10653 | ||
10654 | # Executable file suffix (normally ""). | |
10655 | exeext="$exeext" | |
10656 | ||
10657 | # Additional compiler flags for building library objects. | |
10658 | pic_flag=$lt_lt_prog_compiler_pic | |
10659 | pic_mode=$pic_mode | |
10660 | ||
10661 | # What is the maximum length of a command? | |
10662 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
10663 | ||
10664 | # Does compiler simultaneously support -c and -o options? | |
10665 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
10666 | ||
10667 | # Must we lock files when doing compilation? | |
10668 | need_locks=$lt_need_locks | |
10669 | ||
10670 | # Do we need the lib prefix for modules? | |
10671 | need_lib_prefix=$need_lib_prefix | |
10672 | ||
10673 | # Do we need a version for libraries? | |
10674 | need_version=$need_version | |
10675 | ||
10676 | # Whether dlopen is supported. | |
10677 | dlopen_support=$enable_dlopen | |
10678 | ||
10679 | # Whether dlopen of programs is supported. | |
10680 | dlopen_self=$enable_dlopen_self | |
10681 | ||
10682 | # Whether dlopen of statically linked programs is supported. | |
10683 | dlopen_self_static=$enable_dlopen_self_static | |
10684 | ||
10685 | # Compiler flag to prevent dynamic linking. | |
10686 | link_static_flag=$lt_lt_prog_compiler_static | |
10687 | ||
10688 | # Compiler flag to turn off builtin functions. | |
10689 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
10690 | ||
10691 | # Compiler flag to allow reflexive dlopens. | |
10692 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
10693 | ||
10694 | # Compiler flag to generate shared objects directly from archives. | |
10695 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
10696 | ||
10697 | # Compiler flag to generate thread-safe objects. | |
10698 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
10699 | ||
10700 | # Library versioning type. | |
10701 | version_type=$version_type | |
10702 | ||
10703 | # Format of library name prefix. | |
10704 | libname_spec=$lt_libname_spec | |
10705 | ||
10706 | # List of archive names. First name is the real one, the rest are links. | |
10707 | # The last name is the one that the linker finds with -lNAME. | |
10708 | library_names_spec=$lt_library_names_spec | |
10709 | ||
10710 | # The coded name of the library, if different from the real name. | |
10711 | soname_spec=$lt_soname_spec | |
10712 | ||
10713 | # Commands used to build and install an old-style archive. | |
10714 | RANLIB=$lt_RANLIB | |
10715 | old_archive_cmds=$lt_old_archive_cmds | |
10716 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
10717 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
10718 | ||
10719 | # Create an old-style archive from a shared archive. | |
10720 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
10721 | ||
10722 | # Create a temporary old-style archive to link instead of a shared archive. | |
10723 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
10724 | ||
10725 | # Commands used to build and install a shared archive. | |
10726 | archive_cmds=$lt_archive_cmds | |
10727 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
10728 | postinstall_cmds=$lt_postinstall_cmds | |
10729 | postuninstall_cmds=$lt_postuninstall_cmds | |
10730 | ||
10731 | # Commands used to build a loadable module (assumed same as above if empty) | |
10732 | module_cmds=$lt_module_cmds | |
10733 | module_expsym_cmds=$lt_module_expsym_cmds | |
10734 | ||
10735 | # Commands to strip libraries. | |
10736 | old_striplib=$lt_old_striplib | |
10737 | striplib=$lt_striplib | |
10738 | ||
10739 | # Dependencies to place before the objects being linked to create a | |
10740 | # shared library. | |
10741 | predep_objects=$lt_predep_objects | |
10742 | ||
10743 | # Dependencies to place after the objects being linked to create a | |
10744 | # shared library. | |
10745 | postdep_objects=$lt_postdep_objects | |
10746 | ||
10747 | # Dependencies to place before the objects being linked to create a | |
10748 | # shared library. | |
10749 | predeps=$lt_predeps | |
10750 | ||
10751 | # Dependencies to place after the objects being linked to create a | |
10752 | # shared library. | |
10753 | postdeps=$lt_postdeps | |
10754 | ||
10755 | # The library search path used internally by the compiler when linking | |
10756 | # a shared library. | |
10757 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
10758 | ||
10759 | # Method to check whether dependent libraries are shared objects. | |
10760 | deplibs_check_method=$lt_deplibs_check_method | |
10761 | ||
10762 | # Command to use when deplibs_check_method == file_magic. | |
10763 | file_magic_cmd=$lt_file_magic_cmd | |
10764 | ||
10765 | # Flag that allows shared libraries with undefined symbols to be built. | |
10766 | allow_undefined_flag=$lt_allow_undefined_flag | |
10767 | ||
10768 | # Flag that forces no undefined symbols. | |
10769 | no_undefined_flag=$lt_no_undefined_flag | |
10770 | ||
10771 | # Commands used to finish a libtool library installation in a directory. | |
10772 | finish_cmds=$lt_finish_cmds | |
10773 | ||
10774 | # Same as above, but a single script fragment to be evaled but not shown. | |
10775 | finish_eval=$lt_finish_eval | |
10776 | ||
10777 | # Take the output of nm and produce a listing of raw symbols and C names. | |
10778 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
10779 | ||
10780 | # Transform the output of nm in a proper C declaration | |
10781 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
10782 | ||
10783 | # Transform the output of nm in a C name address pair | |
10784 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
10785 | ||
10786 | # This is the shared library runtime path variable. | |
10787 | runpath_var=$runpath_var | |
10788 | ||
10789 | # This is the shared library path variable. | |
10790 | shlibpath_var=$shlibpath_var | |
10791 | ||
10792 | # Is shlibpath searched before the hard-coded library search path? | |
10793 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
10794 | ||
10795 | # How to hardcode a shared library path into an executable. | |
10796 | hardcode_action=$hardcode_action | |
10797 | ||
10798 | # Whether we should hardcode library paths into libraries. | |
10799 | hardcode_into_libs=$hardcode_into_libs | |
10800 | ||
10801 | # Flag to hardcode \$libdir into a binary during linking. | |
10802 | # This must work even if \$libdir does not exist. | |
10803 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
10804 | ||
10805 | # If ld is used when linking, flag to hardcode \$libdir into | |
10806 | # a binary during linking. This must work even if \$libdir does | |
10807 | # not exist. | |
10808 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
10809 | ||
10810 | # Whether we need a single -rpath flag with a separated argument. | |
10811 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
10812 | ||
10813 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
10814 | # resulting binary. | |
10815 | hardcode_direct=$hardcode_direct | |
10816 | ||
10817 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
10818 | # resulting binary. | |
10819 | hardcode_minus_L=$hardcode_minus_L | |
10820 | ||
10821 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
10822 | # the resulting binary. | |
10823 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
10824 | ||
10825 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
10826 | # and all subsequent libraries and executables linked against it. | |
10827 | hardcode_automatic=$hardcode_automatic | |
10828 | ||
10829 | # Variables whose values should be saved in libtool wrapper scripts and | |
10830 | # restored at relink time. | |
10831 | variables_saved_for_relink="$variables_saved_for_relink" | |
10832 | ||
10833 | # Whether libtool must link a program against all its dependency libraries. | |
10834 | link_all_deplibs=$link_all_deplibs | |
10835 | ||
10836 | # Compile-time system search path for libraries | |
10837 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
10838 | ||
10839 | # Run-time system search path for libraries | |
10840 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
10841 | ||
10842 | # Fix the shell variable \$srcfile for the compiler. | |
10843 | fix_srcfile_path="$fix_srcfile_path" | |
10844 | ||
10845 | # Set to yes if exported symbols are required. | |
10846 | always_export_symbols=$always_export_symbols | |
10847 | ||
10848 | # The commands to list exported symbols. | |
10849 | export_symbols_cmds=$lt_export_symbols_cmds | |
10850 | ||
10851 | # The commands to extract the exported symbol list from a shared archive. | |
10852 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
10853 | ||
10854 | # Symbols that should not be listed in the preloaded symbols. | |
10855 | exclude_expsyms=$lt_exclude_expsyms | |
10856 | ||
10857 | # Symbols that must always be exported. | |
10858 | include_expsyms=$lt_include_expsyms | |
10859 | ||
10860 | # ### END LIBTOOL CONFIG | |
10861 | ||
10862 | __EOF__ | |
10863 | ||
10864 | ||
10865 | case $host_os in | |
10866 | aix3*) | |
10867 | cat <<\EOF >> "$cfgfile" | |
10868 | ||
10869 | # AIX sometimes has problems with the GCC collect2 program. For some | |
10870 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
10871 | # vanish in a puff of smoke. | |
10872 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
10873 | COLLECT_NAMES= | |
10874 | export COLLECT_NAMES | |
10875 | fi | |
10876 | EOF | |
10877 | ;; | |
10878 | esac | |
10879 | ||
10880 | # We use sed instead of cat because bash on DJGPP gets confused if | |
10881 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
10882 | # text mode, it properly converts lines to CR/LF. This bash problem | |
10883 | # is reportedly fixed, but why not run on old versions too? | |
10884 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
10885 | ||
10886 | mv -f "$cfgfile" "$ofile" || \ | |
10887 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
10888 | chmod +x "$ofile" | |
10889 | ||
10890 | else | |
10891 | # If there is no Makefile yet, we rely on a make rule to execute | |
10892 | # `config.status --recheck' to rerun these tests and create the | |
10893 | # libtool script then. | |
10894 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
10895 | if test -f "$ltmain_in"; then | |
10896 | test -f Makefile && make "$ltmain" | |
10897 | fi | |
10898 | fi | |
10899 | ||
10900 | ||
10901 | ac_ext=c | |
10902 | ac_cpp='$CPP $CPPFLAGS' | |
10903 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10904 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10905 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10906 | ||
10907 | CC="$lt_save_CC" | |
10908 | ||
10909 | ||
10910 | # Check whether --with-tags was given. | |
10911 | if test "${with_tags+set}" = set; then | |
10912 | withval=$with_tags; tagnames="$withval" | |
10913 | fi | |
10914 | ||
10915 | ||
10916 | if test -f "$ltmain" && test -n "$tagnames"; then | |
10917 | if test ! -f "${ofile}"; then | |
10918 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | |
10919 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | |
10920 | fi | |
10921 | ||
10922 | if test -z "$LTCC"; then | |
10923 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
10924 | if test -z "$LTCC"; then | |
10925 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | |
10926 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | |
10927 | else | |
10928 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | |
10929 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | |
10930 | fi | |
10931 | fi | |
10932 | if test -z "$LTCFLAGS"; then | |
10933 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | |
10934 | fi | |
10935 | ||
10936 | # Extract list of available tagged configurations in $ofile. | |
10937 | # Note that this assumes the entire list is on one line. | |
10938 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
10939 | ||
10940 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
10941 | for tagname in $tagnames; do | |
10942 | IFS="$lt_save_ifs" | |
10943 | # Check whether tagname contains only valid characters | |
10944 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | |
10945 | "") ;; | |
10946 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | |
10947 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | |
10948 | { (exit 1); exit 1; }; } | |
10949 | ;; | |
10950 | esac | |
10951 | ||
10952 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
10953 | then | |
10954 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | |
10955 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | |
10956 | { (exit 1); exit 1; }; } | |
10957 | fi | |
10958 | ||
10959 | # Update the list of available tags. | |
10960 | if test -n "$tagname"; then | |
10961 | echo appending configuration tag \"$tagname\" to $ofile | |
10962 | ||
10963 | case $tagname in | |
10964 | CXX) | |
10965 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
10966 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
10967 | (test "X$CXX" != "Xg++"))) ; then | |
10968 | ac_ext=cpp | |
10969 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10970 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10971 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10972 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10973 | ||
10974 | ||
10975 | ||
10976 | ||
10977 | archive_cmds_need_lc_CXX=no | |
10978 | allow_undefined_flag_CXX= | |
10979 | always_export_symbols_CXX=no | |
10980 | archive_expsym_cmds_CXX= | |
10981 | export_dynamic_flag_spec_CXX= | |
10982 | hardcode_direct_CXX=no | |
10983 | hardcode_libdir_flag_spec_CXX= | |
10984 | hardcode_libdir_flag_spec_ld_CXX= | |
10985 | hardcode_libdir_separator_CXX= | |
10986 | hardcode_minus_L_CXX=no | |
10987 | hardcode_shlibpath_var_CXX=unsupported | |
10988 | hardcode_automatic_CXX=no | |
10989 | module_cmds_CXX= | |
10990 | module_expsym_cmds_CXX= | |
10991 | link_all_deplibs_CXX=unknown | |
10992 | old_archive_cmds_CXX=$old_archive_cmds | |
10993 | no_undefined_flag_CXX= | |
10994 | whole_archive_flag_spec_CXX= | |
10995 | enable_shared_with_static_runtimes_CXX=no | |
10996 | ||
10997 | # Dependencies to place before and after the object being linked: | |
10998 | predep_objects_CXX= | |
10999 | postdep_objects_CXX= | |
11000 | predeps_CXX= | |
11001 | postdeps_CXX= | |
11002 | compiler_lib_search_path_CXX= | |
11003 | ||
11004 | # Source file extension for C++ test sources. | |
11005 | ac_ext=cpp | |
11006 | ||
11007 | # Object file extension for compiled C++ test sources. | |
11008 | objext=o | |
11009 | objext_CXX=$objext | |
11010 | ||
11011 | # Code to be used in simple compile tests | |
11012 | lt_simple_compile_test_code="int some_variable = 0;\n" | |
11013 | ||
11014 | # Code to be used in simple link tests | |
11015 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' | |
11016 | ||
11017 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
11018 | ||
11019 | # If no C compiler was specified, use CC. | |
11020 | LTCC=${LTCC-"$CC"} | |
11021 | ||
11022 | # If no C compiler flags were specified, use CFLAGS. | |
11023 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
11024 | ||
11025 | # Allow CC to be a program name with arguments. | |
11026 | compiler=$CC | |
11027 | ||
11028 | ||
11029 | # save warnings/boilerplate of simple test code | |
11030 | ac_outfile=conftest.$ac_objext | |
11031 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
11032 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11033 | _lt_compiler_boilerplate=`cat conftest.err` | |
11034 | $rm conftest* | |
11035 | ||
11036 | ac_outfile=conftest.$ac_objext | |
11037 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
11038 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11039 | _lt_linker_boilerplate=`cat conftest.err` | |
11040 | $rm conftest* | |
11041 | ||
11042 | ||
11043 | # Allow CC to be a program name with arguments. | |
11044 | lt_save_CC=$CC | |
11045 | lt_save_LD=$LD | |
11046 | lt_save_GCC=$GCC | |
11047 | GCC=$GXX | |
11048 | lt_save_with_gnu_ld=$with_gnu_ld | |
11049 | lt_save_path_LD=$lt_cv_path_LD | |
11050 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
11051 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
11052 | else | |
11053 | $as_unset lt_cv_prog_gnu_ld | |
11054 | fi | |
11055 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
11056 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
11057 | else | |
11058 | $as_unset lt_cv_path_LD | |
11059 | fi | |
11060 | test -z "${LDCXX+set}" || LD=$LDCXX | |
11061 | CC=${CXX-"c++"} | |
11062 | compiler=$CC | |
11063 | compiler_CXX=$CC | |
11064 | for cc_temp in $compiler""; do | |
11065 | case $cc_temp in | |
11066 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
11067 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
11068 | \-*) ;; | |
11069 | *) break;; | |
11070 | esac | |
11071 | done | |
11072 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
11073 | ||
11074 | ||
11075 | # We don't want -fno-exception wen compiling C++ code, so set the | |
11076 | # no_builtin_flag separately | |
11077 | if test "$GXX" = yes; then | |
11078 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
11079 | else | |
11080 | lt_prog_compiler_no_builtin_flag_CXX= | |
11081 | fi | |
11082 | ||
11083 | if test "$GXX" = yes; then | |
11084 | # Set up default GNU C++ configuration | |
11085 | ||
11086 | ||
11087 | # Check whether --with-gnu-ld was given. | |
11088 | if test "${with_gnu_ld+set}" = set; then | |
11089 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
11090 | else | |
11091 | with_gnu_ld=no | |
11092 | fi | |
11093 | ||
11094 | ac_prog=ld | |
11095 | if test "$GCC" = yes; then | |
11096 | # Check if gcc -print-prog-name=ld gives a path. | |
11097 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
11098 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | |
11099 | case $host in | |
11100 | *-*-mingw*) | |
11101 | # gcc leaves a trailing carriage return which upsets mingw | |
11102 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
11103 | *) | |
11104 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
11105 | esac | |
11106 | case $ac_prog in | |
11107 | # Accept absolute paths. | |
11108 | [\\/]* | ?:[\\/]*) | |
11109 | re_direlt='/[^/][^/]*/\.\./' | |
11110 | # Canonicalize the pathname of ld | |
11111 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
11112 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
11113 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
11114 | done | |
11115 | test -z "$LD" && LD="$ac_prog" | |
11116 | ;; | |
11117 | "") | |
11118 | # If it fails, then pretend we aren't using GCC. | |
11119 | ac_prog=ld | |
11120 | ;; | |
11121 | *) | |
11122 | # If it is relative, then search for the first ld in PATH. | |
11123 | with_gnu_ld=unknown | |
11124 | ;; | |
11125 | esac | |
11126 | elif test "$with_gnu_ld" = yes; then | |
11127 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
11128 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | |
11129 | else | |
11130 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
11131 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | |
11132 | fi | |
11133 | if test "${lt_cv_path_LD+set}" = set; then | |
11134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11135 | else | |
11136 | if test -z "$LD"; then | |
11137 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
11138 | for ac_dir in $PATH; do | |
11139 | IFS="$lt_save_ifs" | |
11140 | test -z "$ac_dir" && ac_dir=. | |
11141 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
11142 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
11143 | # Check to see if the program is GNU ld. I'd rather use --version, | |
11144 | # but apparently some variants of GNU ld only accept -v. | |
11145 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
11146 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
11147 | *GNU* | *'with BFD'*) | |
11148 | test "$with_gnu_ld" != no && break | |
11149 | ;; | |
11150 | *) | |
11151 | test "$with_gnu_ld" != yes && break | |
11152 | ;; | |
11153 | esac | |
11154 | fi | |
11155 | done | |
11156 | IFS="$lt_save_ifs" | |
11157 | else | |
11158 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
11159 | fi | |
11160 | fi | |
11161 | ||
11162 | LD="$lt_cv_path_LD" | |
11163 | if test -n "$LD"; then | |
11164 | { echo "$as_me:$LINENO: result: $LD" >&5 | |
11165 | echo "${ECHO_T}$LD" >&6; } | |
11166 | else | |
11167 | { echo "$as_me:$LINENO: result: no" >&5 | |
11168 | echo "${ECHO_T}no" >&6; } | |
11169 | fi | |
11170 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
11171 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
11172 | { (exit 1); exit 1; }; } | |
11173 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
11174 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | |
11175 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
11176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11177 | else | |
11178 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
11179 | case `$LD -v 2>&1 </dev/null` in | |
11180 | *GNU* | *'with BFD'*) | |
11181 | lt_cv_prog_gnu_ld=yes | |
11182 | ;; | |
11183 | *) | |
11184 | lt_cv_prog_gnu_ld=no | |
11185 | ;; | |
11186 | esac | |
11187 | fi | |
11188 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
11189 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | |
11190 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
11191 | ||
11192 | ||
11193 | ||
11194 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
11195 | # archiving commands below assume that GNU ld is being used. | |
11196 | if test "$with_gnu_ld" = yes; then | |
11197 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11198 | 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' | |
11199 | ||
11200 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
11201 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11202 | ||
11203 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
11204 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
11205 | # investigate it a little bit more. (MM) | |
11206 | wlarc='${wl}' | |
11207 | ||
11208 | # ancient GNU ld didn't support --whole-archive et. al. | |
11209 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
11210 | grep 'no-whole-archive' > /dev/null; then | |
11211 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11212 | else | |
11213 | whole_archive_flag_spec_CXX= | |
11214 | fi | |
11215 | else | |
11216 | with_gnu_ld=no | |
11217 | wlarc= | |
11218 | ||
11219 | # A generic and very simple default shared library creation | |
11220 | # command for GNU C++ for the case where it uses the native | |
11221 | # linker, instead of GNU ld. If possible, this setting should | |
11222 | # overridden to take advantage of the native linker features on | |
11223 | # the platform it is being used on. | |
11224 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11225 | fi | |
11226 | ||
11227 | # Commands to make compiler produce verbose output that lists | |
11228 | # what "hidden" libraries, object files and flags are used when | |
11229 | # linking a shared library. | |
11230 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
11231 | ||
11232 | else | |
11233 | GXX=no | |
11234 | with_gnu_ld=no | |
11235 | wlarc= | |
11236 | fi | |
11237 | ||
11238 | # PORTME: fill in a description of your system's C++ link characteristics | |
11239 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11240 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
11241 | ld_shlibs_CXX=yes | |
11242 | case $host_os in | |
11243 | aix3*) | |
11244 | # FIXME: insert proper C++ library support | |
11245 | ld_shlibs_CXX=no | |
11246 | ;; | |
11247 | aix4* | aix5*) | |
11248 | if test "$host_cpu" = ia64; then | |
11249 | # On IA64, the linker does run time linking by default, so we don't | |
11250 | # have to do anything special. | |
11251 | aix_use_runtimelinking=no | |
11252 | exp_sym_flag='-Bexport' | |
11253 | no_entry_flag="" | |
11254 | else | |
11255 | aix_use_runtimelinking=no | |
11256 | ||
11257 | # Test if we are trying to use run time linking or normal | |
11258 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
11259 | # need to do runtime linking. | |
11260 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
11261 | for ld_flag in $LDFLAGS; do | |
11262 | case $ld_flag in | |
11263 | *-brtl*) | |
11264 | aix_use_runtimelinking=yes | |
11265 | break | |
11266 | ;; | |
11267 | esac | |
11268 | done | |
11269 | ;; | |
11270 | esac | |
11271 | ||
11272 | exp_sym_flag='-bexport' | |
11273 | no_entry_flag='-bnoentry' | |
11274 | fi | |
11275 | ||
11276 | # When large executables or shared objects are built, AIX ld can | |
11277 | # have problems creating the table of contents. If linking a library | |
11278 | # or program results in "error TOC overflow" add -mminimal-toc to | |
11279 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
11280 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
11281 | ||
11282 | archive_cmds_CXX='' | |
11283 | hardcode_direct_CXX=yes | |
11284 | hardcode_libdir_separator_CXX=':' | |
11285 | link_all_deplibs_CXX=yes | |
11286 | ||
11287 | if test "$GXX" = yes; then | |
11288 | case $host_os in aix4.[012]|aix4.[012].*) | |
11289 | # We only want to do this on AIX 4.2 and lower, the check | |
11290 | # below for broken collect2 doesn't work under 4.3+ | |
11291 | collect2name=`${CC} -print-prog-name=collect2` | |
11292 | if test -f "$collect2name" && \ | |
11293 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
11294 | then | |
11295 | # We have reworked collect2 | |
11296 | hardcode_direct_CXX=yes | |
11297 | else | |
11298 | # We have old collect2 | |
11299 | hardcode_direct_CXX=unsupported | |
11300 | # It fails to find uninstalled libraries when the uninstalled | |
11301 | # path is not listed in the libpath. Setting hardcode_minus_L | |
11302 | # to unsupported forces relinking | |
11303 | hardcode_minus_L_CXX=yes | |
11304 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11305 | hardcode_libdir_separator_CXX= | |
11306 | fi | |
11307 | ;; | |
11308 | esac | |
11309 | shared_flag='-shared' | |
11310 | if test "$aix_use_runtimelinking" = yes; then | |
11311 | shared_flag="$shared_flag "'${wl}-G' | |
11312 | fi | |
11313 | else | |
11314 | # not using gcc | |
11315 | if test "$host_cpu" = ia64; then | |
11316 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
11317 | # chokes on -Wl,-G. The following line is correct: | |
11318 | shared_flag='-G' | |
11319 | else | |
11320 | if test "$aix_use_runtimelinking" = yes; then | |
11321 | shared_flag='${wl}-G' | |
11322 | else | |
11323 | shared_flag='${wl}-bM:SRE' | |
11324 | fi | |
11325 | fi | |
11326 | fi | |
11327 | ||
11328 | # It seems that -bexpall does not export symbols beginning with | |
11329 | # underscore (_), so it is better to generate a list of symbols to export. | |
11330 | always_export_symbols_CXX=yes | |
11331 | if test "$aix_use_runtimelinking" = yes; then | |
11332 | # Warning - without using the other runtime loading flags (-brtl), | |
11333 | # -berok will link without error, but may produce a broken library. | |
11334 | allow_undefined_flag_CXX='-berok' | |
11335 | # Determine the default libpath from the value encoded in an empty executable. | |
11336 | cat >conftest.$ac_ext <<_ACEOF | |
11337 | /* confdefs.h. */ | |
11338 | _ACEOF | |
11339 | cat confdefs.h >>conftest.$ac_ext | |
11340 | cat >>conftest.$ac_ext <<_ACEOF | |
11341 | /* end confdefs.h. */ | |
11342 | ||
11343 | int | |
11344 | main () | |
11345 | { | |
11346 | ||
11347 | ; | |
11348 | return 0; | |
11349 | } | |
11350 | _ACEOF | |
11351 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11352 | if { (ac_try="$ac_link" | |
11353 | case "(($ac_try" in | |
11354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11355 | *) ac_try_echo=$ac_try;; | |
11356 | esac | |
11357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11358 | (eval "$ac_link") 2>conftest.er1 | |
11359 | ac_status=$? | |
11360 | grep -v '^ *+' conftest.er1 >conftest.err | |
11361 | rm -f conftest.er1 | |
11362 | cat conftest.err >&5 | |
11363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11364 | (exit $ac_status); } && | |
11365 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
11366 | { (case "(($ac_try" in | |
11367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11368 | *) ac_try_echo=$ac_try;; | |
11369 | esac | |
11370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11371 | (eval "$ac_try") 2>&5 | |
11372 | ac_status=$? | |
11373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11374 | (exit $ac_status); }; } && | |
11375 | { ac_try='test -s conftest$ac_exeext' | |
11376 | { (case "(($ac_try" in | |
11377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11378 | *) ac_try_echo=$ac_try;; | |
11379 | esac | |
11380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11381 | (eval "$ac_try") 2>&5 | |
11382 | ac_status=$? | |
11383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11384 | (exit $ac_status); }; }; then | |
11385 | ||
11386 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
11387 | }'` | |
11388 | # Check for a 64-bit object if we didn't find anything. | |
11389 | 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; } | |
11390 | }'`; fi | |
11391 | else | |
11392 | echo "$as_me: failed program was:" >&5 | |
11393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11394 | ||
11395 | ||
11396 | fi | |
11397 | ||
11398 | rm -f core conftest.err conftest.$ac_objext \ | |
11399 | conftest$ac_exeext conftest.$ac_ext | |
11400 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11401 | ||
11402 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11403 | ||
11404 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
11405 | else | |
11406 | if test "$host_cpu" = ia64; then | |
11407 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
11408 | allow_undefined_flag_CXX="-z nodefs" | |
11409 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
11410 | else | |
11411 | # Determine the default libpath from the value encoded in an empty executable. | |
11412 | cat >conftest.$ac_ext <<_ACEOF | |
11413 | /* confdefs.h. */ | |
11414 | _ACEOF | |
11415 | cat confdefs.h >>conftest.$ac_ext | |
11416 | cat >>conftest.$ac_ext <<_ACEOF | |
11417 | /* end confdefs.h. */ | |
11418 | ||
11419 | int | |
11420 | main () | |
11421 | { | |
11422 | ||
11423 | ; | |
11424 | return 0; | |
11425 | } | |
11426 | _ACEOF | |
11427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11428 | if { (ac_try="$ac_link" | |
11429 | case "(($ac_try" in | |
11430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11431 | *) ac_try_echo=$ac_try;; | |
11432 | esac | |
11433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11434 | (eval "$ac_link") 2>conftest.er1 | |
11435 | ac_status=$? | |
11436 | grep -v '^ *+' conftest.er1 >conftest.err | |
11437 | rm -f conftest.er1 | |
11438 | cat conftest.err >&5 | |
11439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11440 | (exit $ac_status); } && | |
11441 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
11442 | { (case "(($ac_try" in | |
11443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11444 | *) ac_try_echo=$ac_try;; | |
11445 | esac | |
11446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11447 | (eval "$ac_try") 2>&5 | |
11448 | ac_status=$? | |
11449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11450 | (exit $ac_status); }; } && | |
11451 | { ac_try='test -s conftest$ac_exeext' | |
11452 | { (case "(($ac_try" in | |
11453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11454 | *) ac_try_echo=$ac_try;; | |
11455 | esac | |
11456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11457 | (eval "$ac_try") 2>&5 | |
11458 | ac_status=$? | |
11459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11460 | (exit $ac_status); }; }; then | |
11461 | ||
11462 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
11463 | }'` | |
11464 | # Check for a 64-bit object if we didn't find anything. | |
11465 | 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; } | |
11466 | }'`; fi | |
11467 | else | |
11468 | echo "$as_me: failed program was:" >&5 | |
11469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11470 | ||
11471 | ||
11472 | fi | |
11473 | ||
11474 | rm -f core conftest.err conftest.$ac_objext \ | |
11475 | conftest$ac_exeext conftest.$ac_ext | |
11476 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11477 | ||
11478 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11479 | # Warning - without using the other run time loading flags, | |
11480 | # -berok will link without error, but may produce a broken library. | |
11481 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
11482 | allow_undefined_flag_CXX=' ${wl}-berok' | |
11483 | # Exported symbols can be pulled into shared objects from archives | |
11484 | whole_archive_flag_spec_CXX='$convenience' | |
11485 | archive_cmds_need_lc_CXX=yes | |
11486 | # This is similar to how AIX traditionally builds its shared libraries. | |
11487 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
11488 | fi | |
11489 | fi | |
11490 | ;; | |
11491 | ||
11492 | beos*) | |
11493 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
11494 | allow_undefined_flag_CXX=unsupported | |
11495 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
11496 | # support --undefined. This deserves some investigation. FIXME | |
11497 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11498 | else | |
11499 | ld_shlibs_CXX=no | |
11500 | fi | |
11501 | ;; | |
11502 | ||
11503 | chorus*) | |
11504 | case $cc_basename in | |
11505 | *) | |
11506 | # FIXME: insert proper C++ library support | |
11507 | ld_shlibs_CXX=no | |
11508 | ;; | |
11509 | esac | |
11510 | ;; | |
11511 | ||
11512 | cygwin* | mingw* | pw32*) | |
11513 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
11514 | # as there is no search path for DLLs. | |
11515 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11516 | allow_undefined_flag_CXX=unsupported | |
11517 | always_export_symbols_CXX=no | |
11518 | enable_shared_with_static_runtimes_CXX=yes | |
11519 | ||
11520 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
11521 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
11522 | # If the export-symbols file already is a .def file (1st line | |
11523 | # is EXPORTS), use it as is; otherwise, prepend... | |
11524 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
11525 | cp $export_symbols $output_objdir/$soname.def; | |
11526 | else | |
11527 | echo EXPORTS > $output_objdir/$soname.def; | |
11528 | cat $export_symbols >> $output_objdir/$soname.def; | |
11529 | fi~ | |
11530 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
11531 | else | |
11532 | ld_shlibs_CXX=no | |
11533 | fi | |
11534 | ;; | |
11535 | darwin* | rhapsody*) | |
11536 | case $host_os in | |
11537 | rhapsody* | darwin1.[012]) | |
11538 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | |
11539 | ;; | |
11540 | *) # Darwin 1.3 on | |
11541 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
11542 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
11543 | else | |
11544 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
11545 | 10.[012]) | |
11546 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
11547 | ;; | |
11548 | 10.*) | |
11549 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | |
11550 | ;; | |
11551 | esac | |
11552 | fi | |
11553 | ;; | |
11554 | esac | |
11555 | archive_cmds_need_lc_CXX=no | |
11556 | hardcode_direct_CXX=no | |
11557 | hardcode_automatic_CXX=yes | |
11558 | hardcode_shlibpath_var_CXX=unsupported | |
11559 | whole_archive_flag_spec_CXX='' | |
11560 | link_all_deplibs_CXX=yes | |
11561 | ||
11562 | if test "$GXX" = yes ; then | |
11563 | lt_int_apple_cc_single_mod=no | |
11564 | output_verbose_link_cmd='echo' | |
11565 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | |
11566 | lt_int_apple_cc_single_mod=yes | |
11567 | fi | |
11568 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
11569 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
11570 | else | |
11571 | 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' | |
11572 | fi | |
11573 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
11574 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
11575 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
11576 | 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}' | |
11577 | else | |
11578 | 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}' | |
11579 | fi | |
11580 | 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}' | |
11581 | else | |
11582 | case $cc_basename in | |
11583 | xlc*) | |
11584 | output_verbose_link_cmd='echo' | |
11585 | 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' | |
11586 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
11587 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
11588 | 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}' | |
11589 | 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}' | |
11590 | ;; | |
11591 | *) | |
11592 | ld_shlibs_CXX=no | |
11593 | ;; | |
11594 | esac | |
11595 | fi | |
11596 | ;; | |
11597 | ||
11598 | dgux*) | |
11599 | case $cc_basename in | |
11600 | ec++*) | |
11601 | # FIXME: insert proper C++ library support | |
11602 | ld_shlibs_CXX=no | |
11603 | ;; | |
11604 | ghcx*) | |
11605 | # Green Hills C++ Compiler | |
11606 | # FIXME: insert proper C++ library support | |
11607 | ld_shlibs_CXX=no | |
11608 | ;; | |
11609 | *) | |
11610 | # FIXME: insert proper C++ library support | |
11611 | ld_shlibs_CXX=no | |
11612 | ;; | |
11613 | esac | |
11614 | ;; | |
11615 | freebsd[12]*) | |
11616 | # C++ shared libraries reported to be fairly broken before switch to ELF | |
11617 | ld_shlibs_CXX=no | |
11618 | ;; | |
11619 | freebsd-elf*) | |
11620 | archive_cmds_need_lc_CXX=no | |
11621 | ;; | |
11622 | freebsd* | dragonfly*) | |
11623 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
11624 | # conventions | |
11625 | ld_shlibs_CXX=yes | |
11626 | ;; | |
11627 | gnu*) | |
11628 | ;; | |
11629 | hpux9*) | |
11630 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11631 | hardcode_libdir_separator_CXX=: | |
11632 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11633 | hardcode_direct_CXX=yes | |
11634 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11635 | # but as the default | |
11636 | # location of the library. | |
11637 | ||
11638 | case $cc_basename in | |
11639 | CC*) | |
11640 | # FIXME: insert proper C++ library support | |
11641 | ld_shlibs_CXX=no | |
11642 | ;; | |
11643 | aCC*) | |
11644 | 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' | |
11645 | # Commands to make compiler produce verbose output that lists | |
11646 | # what "hidden" libraries, object files and flags are used when | |
11647 | # linking a shared library. | |
11648 | # | |
11649 | # There doesn't appear to be a way to prevent this compiler from | |
11650 | # explicitly linking system object files so we need to strip them | |
11651 | # from the output so that they don't get included in the library | |
11652 | # dependencies. | |
11653 | 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' | |
11654 | ;; | |
11655 | *) | |
11656 | if test "$GXX" = yes; then | |
11657 | 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' | |
11658 | else | |
11659 | # FIXME: insert proper C++ library support | |
11660 | ld_shlibs_CXX=no | |
11661 | fi | |
11662 | ;; | |
11663 | esac | |
11664 | ;; | |
11665 | hpux10*|hpux11*) | |
11666 | if test $with_gnu_ld = no; then | |
11667 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11668 | hardcode_libdir_separator_CXX=: | |
11669 | ||
11670 | case $host_cpu in | |
11671 | hppa*64*|ia64*) | |
11672 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | |
11673 | ;; | |
11674 | *) | |
11675 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11676 | ;; | |
11677 | esac | |
11678 | fi | |
11679 | case $host_cpu in | |
11680 | hppa*64*|ia64*) | |
11681 | hardcode_direct_CXX=no | |
11682 | hardcode_shlibpath_var_CXX=no | |
11683 | ;; | |
11684 | *) | |
11685 | hardcode_direct_CXX=yes | |
11686 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11687 | # but as the default | |
11688 | # location of the library. | |
11689 | ;; | |
11690 | esac | |
11691 | ||
11692 | case $cc_basename in | |
11693 | CC*) | |
11694 | # FIXME: insert proper C++ library support | |
11695 | ld_shlibs_CXX=no | |
11696 | ;; | |
11697 | aCC*) | |
11698 | case $host_cpu in | |
11699 | hppa*64*) | |
11700 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11701 | ;; | |
11702 | ia64*) | |
11703 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11704 | ;; | |
11705 | *) | |
11706 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11707 | ;; | |
11708 | esac | |
11709 | # Commands to make compiler produce verbose output that lists | |
11710 | # what "hidden" libraries, object files and flags are used when | |
11711 | # linking a shared library. | |
11712 | # | |
11713 | # There doesn't appear to be a way to prevent this compiler from | |
11714 | # explicitly linking system object files so we need to strip them | |
11715 | # from the output so that they don't get included in the library | |
11716 | # dependencies. | |
11717 | 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' | |
11718 | ;; | |
11719 | *) | |
11720 | if test "$GXX" = yes; then | |
11721 | if test $with_gnu_ld = no; then | |
11722 | case $host_cpu in | |
11723 | hppa*64*) | |
11724 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11725 | ;; | |
11726 | ia64*) | |
11727 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11728 | ;; | |
11729 | *) | |
11730 | 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' | |
11731 | ;; | |
11732 | esac | |
11733 | fi | |
11734 | else | |
11735 | # FIXME: insert proper C++ library support | |
11736 | ld_shlibs_CXX=no | |
11737 | fi | |
11738 | ;; | |
11739 | esac | |
11740 | ;; | |
11741 | interix3*) | |
11742 | hardcode_direct_CXX=no | |
11743 | hardcode_shlibpath_var_CXX=no | |
11744 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11745 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11746 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
11747 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
11748 | # default) and relocated if they conflict, which is a slow very memory | |
11749 | # consuming and fragmenting process. To avoid this, we pick a random, | |
11750 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
11751 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
11752 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
11753 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
11754 | ;; | |
11755 | irix5* | irix6*) | |
11756 | case $cc_basename in | |
11757 | CC*) | |
11758 | # SGI C++ | |
11759 | 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' | |
11760 | ||
11761 | # Archives containing C++ object files must be created using | |
11762 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
11763 | # necessary to make sure instantiated templates are included | |
11764 | # in the archive. | |
11765 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
11766 | ;; | |
11767 | *) | |
11768 | if test "$GXX" = yes; then | |
11769 | if test "$with_gnu_ld" = no; then | |
11770 | 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' | |
11771 | else | |
11772 | 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' | |
11773 | fi | |
11774 | fi | |
11775 | link_all_deplibs_CXX=yes | |
11776 | ;; | |
11777 | esac | |
11778 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11779 | hardcode_libdir_separator_CXX=: | |
11780 | ;; | |
11781 | linux* | k*bsd*-gnu) | |
11782 | case $cc_basename in | |
11783 | KCC*) | |
11784 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
11785 | ||
11786 | # KCC will only create a shared library if the output file | |
11787 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11788 | # to its proper name (with version) after linking. | |
11789 | 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' | |
11790 | 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' | |
11791 | # Commands to make compiler produce verbose output that lists | |
11792 | # what "hidden" libraries, object files and flags are used when | |
11793 | # linking a shared library. | |
11794 | # | |
11795 | # There doesn't appear to be a way to prevent this compiler from | |
11796 | # explicitly linking system object files so we need to strip them | |
11797 | # from the output so that they don't get included in the library | |
11798 | # dependencies. | |
11799 | 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' | |
11800 | ||
11801 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
11802 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11803 | ||
11804 | # Archives containing C++ object files must be created using | |
11805 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
11806 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
11807 | ;; | |
11808 | icpc*) | |
11809 | # Intel C++ | |
11810 | with_gnu_ld=yes | |
11811 | # version 8.0 and above of icpc choke on multiply defined symbols | |
11812 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
11813 | # earlier do not add the objects themselves. | |
11814 | case `$CC -V 2>&1` in | |
11815 | *"Version 7."*) | |
11816 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11817 | 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' | |
11818 | ;; | |
11819 | *) # Version 8.0 or newer | |
11820 | tmp_idyn= | |
11821 | case $host_cpu in | |
11822 | ia64*) tmp_idyn=' -i_dynamic';; | |
11823 | esac | |
11824 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11825 | 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' | |
11826 | ;; | |
11827 | esac | |
11828 | archive_cmds_need_lc_CXX=no | |
11829 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11830 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11831 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
11832 | ;; | |
11833 | pgCC*) | |
11834 | # Portland Group C++ compiler | |
11835 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
11836 | 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' | |
11837 | ||
11838 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
11839 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11840 | 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' | |
11841 | ;; | |
11842 | cxx*) | |
11843 | # Compaq C++ | |
11844 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11845 | 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' | |
11846 | ||
11847 | runpath_var=LD_RUN_PATH | |
11848 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11849 | hardcode_libdir_separator_CXX=: | |
11850 | ||
11851 | # Commands to make compiler produce verbose output that lists | |
11852 | # what "hidden" libraries, object files and flags are used when | |
11853 | # linking a shared library. | |
11854 | # | |
11855 | # There doesn't appear to be a way to prevent this compiler from | |
11856 | # explicitly linking system object files so we need to strip them | |
11857 | # from the output so that they don't get included in the library | |
11858 | # dependencies. | |
11859 | 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' | |
11860 | ;; | |
11861 | esac | |
11862 | ;; | |
11863 | lynxos*) | |
11864 | # FIXME: insert proper C++ library support | |
11865 | ld_shlibs_CXX=no | |
11866 | ;; | |
11867 | m88k*) | |
11868 | # FIXME: insert proper C++ library support | |
11869 | ld_shlibs_CXX=no | |
11870 | ;; | |
11871 | mvs*) | |
11872 | case $cc_basename in | |
11873 | cxx*) | |
11874 | # FIXME: insert proper C++ library support | |
11875 | ld_shlibs_CXX=no | |
11876 | ;; | |
11877 | *) | |
11878 | # FIXME: insert proper C++ library support | |
11879 | ld_shlibs_CXX=no | |
11880 | ;; | |
11881 | esac | |
11882 | ;; | |
11883 | netbsd* | netbsdelf*-gnu) | |
11884 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
11885 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
11886 | wlarc= | |
11887 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11888 | hardcode_direct_CXX=yes | |
11889 | hardcode_shlibpath_var_CXX=no | |
11890 | fi | |
11891 | # Workaround some broken pre-1.5 toolchains | |
11892 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
11893 | ;; | |
11894 | openbsd2*) | |
11895 | # C++ shared libraries are fairly broken | |
11896 | ld_shlibs_CXX=no | |
11897 | ;; | |
11898 | openbsd*) | |
11899 | hardcode_direct_CXX=yes | |
11900 | hardcode_shlibpath_var_CXX=no | |
11901 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11902 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11903 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11904 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
11905 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11906 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11907 | fi | |
11908 | output_verbose_link_cmd='echo' | |
11909 | ;; | |
11910 | osf3*) | |
11911 | case $cc_basename in | |
11912 | KCC*) | |
11913 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
11914 | ||
11915 | # KCC will only create a shared library if the output file | |
11916 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11917 | # to its proper name (with version) after linking. | |
11918 | 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' | |
11919 | ||
11920 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11921 | hardcode_libdir_separator_CXX=: | |
11922 | ||
11923 | # Archives containing C++ object files must be created using | |
11924 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
11925 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
11926 | ||
11927 | ;; | |
11928 | RCC*) | |
11929 | # Rational C++ 2.4.1 | |
11930 | # FIXME: insert proper C++ library support | |
11931 | ld_shlibs_CXX=no | |
11932 | ;; | |
11933 | cxx*) | |
11934 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11935 | 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' | |
11936 | ||
11937 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11938 | hardcode_libdir_separator_CXX=: | |
11939 | ||
11940 | # Commands to make compiler produce verbose output that lists | |
11941 | # what "hidden" libraries, object files and flags are used when | |
11942 | # linking a shared library. | |
11943 | # | |
11944 | # There doesn't appear to be a way to prevent this compiler from | |
11945 | # explicitly linking system object files so we need to strip them | |
11946 | # from the output so that they don't get included in the library | |
11947 | # dependencies. | |
11948 | 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' | |
11949 | ;; | |
11950 | *) | |
11951 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11952 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11953 | 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' | |
11954 | ||
11955 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11956 | hardcode_libdir_separator_CXX=: | |
11957 | ||
11958 | # Commands to make compiler produce verbose output that lists | |
11959 | # what "hidden" libraries, object files and flags are used when | |
11960 | # linking a shared library. | |
11961 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
11962 | ||
11963 | else | |
11964 | # FIXME: insert proper C++ library support | |
11965 | ld_shlibs_CXX=no | |
11966 | fi | |
11967 | ;; | |
11968 | esac | |
11969 | ;; | |
11970 | osf4* | osf5*) | |
11971 | case $cc_basename in | |
11972 | KCC*) | |
11973 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
11974 | ||
11975 | # KCC will only create a shared library if the output file | |
11976 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11977 | # to its proper name (with version) after linking. | |
11978 | 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' | |
11979 | ||
11980 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11981 | hardcode_libdir_separator_CXX=: | |
11982 | ||
11983 | # Archives containing C++ object files must be created using | |
11984 | # the KAI C++ compiler. | |
11985 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
11986 | ;; | |
11987 | RCC*) | |
11988 | # Rational C++ 2.4.1 | |
11989 | # FIXME: insert proper C++ library support | |
11990 | ld_shlibs_CXX=no | |
11991 | ;; | |
11992 | cxx*) | |
11993 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
11994 | 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' | |
11995 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
11996 | echo "-hidden">> $lib.exp~ | |
11997 | $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~ | |
11998 | $rm $lib.exp' | |
11999 | ||
12000 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
12001 | hardcode_libdir_separator_CXX=: | |
12002 | ||
12003 | # Commands to make compiler produce verbose output that lists | |
12004 | # what "hidden" libraries, object files and flags are used when | |
12005 | # linking a shared library. | |
12006 | # | |
12007 | # There doesn't appear to be a way to prevent this compiler from | |
12008 | # explicitly linking system object files so we need to strip them | |
12009 | # from the output so that they don't get included in the library | |
12010 | # dependencies. | |
12011 | 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' | |
12012 | ;; | |
12013 | *) | |
12014 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
12015 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
12016 | 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' | |
12017 | ||
12018 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12019 | hardcode_libdir_separator_CXX=: | |
12020 | ||
12021 | # Commands to make compiler produce verbose output that lists | |
12022 | # what "hidden" libraries, object files and flags are used when | |
12023 | # linking a shared library. | |
12024 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
12025 | ||
12026 | else | |
12027 | # FIXME: insert proper C++ library support | |
12028 | ld_shlibs_CXX=no | |
12029 | fi | |
12030 | ;; | |
12031 | esac | |
12032 | ;; | |
12033 | psos*) | |
12034 | # FIXME: insert proper C++ library support | |
12035 | ld_shlibs_CXX=no | |
12036 | ;; | |
12037 | sunos4*) | |
12038 | case $cc_basename in | |
12039 | CC*) | |
12040 | # Sun C++ 4.x | |
12041 | # FIXME: insert proper C++ library support | |
12042 | ld_shlibs_CXX=no | |
12043 | ;; | |
12044 | lcc*) | |
12045 | # Lucid | |
12046 | # FIXME: insert proper C++ library support | |
12047 | ld_shlibs_CXX=no | |
12048 | ;; | |
12049 | *) | |
12050 | # FIXME: insert proper C++ library support | |
12051 | ld_shlibs_CXX=no | |
12052 | ;; | |
12053 | esac | |
12054 | ;; | |
12055 | solaris*) | |
12056 | case $cc_basename in | |
12057 | CC*) | |
12058 | # Sun C++ 4.2, 5.x and Centerline C++ | |
12059 | archive_cmds_need_lc_CXX=yes | |
12060 | no_undefined_flag_CXX=' -zdefs' | |
12061 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12062 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
12063 | $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' | |
12064 | ||
12065 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12066 | hardcode_shlibpath_var_CXX=no | |
12067 | case $host_os in | |
12068 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12069 | *) | |
12070 | # The C++ compiler is used as linker so we must use $wl | |
12071 | # flag to pass the commands to the underlying system | |
12072 | # linker. We must also pass each convience library through | |
12073 | # to the system linker between allextract/defaultextract. | |
12074 | # The C++ compiler will combine linker options so we | |
12075 | # cannot just pass the convience library names through | |
12076 | # without $wl. | |
12077 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
12078 | 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' | |
12079 | ;; | |
12080 | esac | |
12081 | link_all_deplibs_CXX=yes | |
12082 | ||
12083 | output_verbose_link_cmd='echo' | |
12084 | ||
12085 | # Archives containing C++ object files must be created using | |
12086 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
12087 | # necessary to make sure instantiated templates are included | |
12088 | # in the archive. | |
12089 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
12090 | ;; | |
12091 | gcx*) | |
12092 | # Green Hills C++ Compiler | |
12093 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12094 | ||
12095 | # The C++ compiler must be used to create the archive. | |
12096 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
12097 | ;; | |
12098 | *) | |
12099 | # GNU C++ compiler with Solaris linker | |
12100 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
12101 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
12102 | if $CC --version | grep -v '^2\.7' > /dev/null; then | |
12103 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12104 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
12105 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
12106 | ||
12107 | # Commands to make compiler produce verbose output that lists | |
12108 | # what "hidden" libraries, object files and flags are used when | |
12109 | # linking a shared library. | |
12110 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
12111 | else | |
12112 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
12113 | # platform. | |
12114 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12115 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
12116 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
12117 | ||
12118 | # Commands to make compiler produce verbose output that lists | |
12119 | # what "hidden" libraries, object files and flags are used when | |
12120 | # linking a shared library. | |
12121 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
12122 | fi | |
12123 | ||
12124 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
12125 | fi | |
12126 | ;; | |
12127 | esac | |
12128 | ;; | |
12129 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
12130 | no_undefined_flag_CXX='${wl}-z,text' | |
12131 | archive_cmds_need_lc_CXX=no | |
12132 | hardcode_shlibpath_var_CXX=no | |
12133 | runpath_var='LD_RUN_PATH' | |
12134 | ||
12135 | case $cc_basename in | |
12136 | CC*) | |
12137 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12138 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12139 | ;; | |
12140 | *) | |
12141 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12142 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12143 | ;; | |
12144 | esac | |
12145 | ;; | |
12146 | sysv5* | sco3.2v5* | sco5v6*) | |
12147 | # Note: We can NOT use -z defs as we might desire, because we do not | |
12148 | # link with -lc, and that would cause any symbols used from libc to | |
12149 | # always be unresolved, which means just about no library would | |
12150 | # ever link correctly. If we're not using GNU ld we use -z text | |
12151 | # though, which does catch some bad symbols but isn't as heavy-handed | |
12152 | # as -z defs. | |
12153 | # For security reasons, it is highly recommended that you always | |
12154 | # use absolute paths for naming shared libraries, and exclude the | |
12155 | # DT_RUNPATH tag from executables and libraries. But doing so | |
12156 | # requires that you compile everything twice, which is a pain. | |
12157 | # So that behaviour is only enabled if SCOABSPATH is set to a | |
12158 | # non-empty value in the environment. Most likely only useful for | |
12159 | # creating official distributions of packages. | |
12160 | # This is a hack until libtool officially supports absolute path | |
12161 | # names for shared libraries. | |
12162 | no_undefined_flag_CXX='${wl}-z,text' | |
12163 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
12164 | archive_cmds_need_lc_CXX=no | |
12165 | hardcode_shlibpath_var_CXX=no | |
12166 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
12167 | hardcode_libdir_separator_CXX=':' | |
12168 | link_all_deplibs_CXX=yes | |
12169 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
12170 | runpath_var='LD_RUN_PATH' | |
12171 | ||
12172 | case $cc_basename in | |
12173 | CC*) | |
12174 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12175 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12176 | ;; | |
12177 | *) | |
12178 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12179 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12180 | ;; | |
12181 | esac | |
12182 | ;; | |
12183 | tandem*) | |
12184 | case $cc_basename in | |
12185 | NCC*) | |
12186 | # NonStop-UX NCC 3.20 | |
12187 | # FIXME: insert proper C++ library support | |
12188 | ld_shlibs_CXX=no | |
12189 | ;; | |
12190 | *) | |
12191 | # FIXME: insert proper C++ library support | |
12192 | ld_shlibs_CXX=no | |
12193 | ;; | |
12194 | esac | |
12195 | ;; | |
12196 | vxworks*) | |
12197 | # FIXME: insert proper C++ library support | |
12198 | ld_shlibs_CXX=no | |
12199 | ;; | |
12200 | *) | |
12201 | # FIXME: insert proper C++ library support | |
12202 | ld_shlibs_CXX=no | |
12203 | ;; | |
12204 | esac | |
12205 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
12206 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | |
12207 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
12208 | ||
12209 | GCC_CXX="$GXX" | |
12210 | LD_CXX="$LD" | |
12211 | ||
12212 | ||
12213 | cat > conftest.$ac_ext <<EOF | |
12214 | class Foo | |
12215 | { | |
12216 | public: | |
12217 | Foo (void) { a = 0; } | |
12218 | private: | |
12219 | int a; | |
12220 | }; | |
12221 | EOF | |
12222 | ||
12223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12224 | (eval $ac_compile) 2>&5 | |
12225 | ac_status=$? | |
12226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12227 | (exit $ac_status); }; then | |
12228 | # Parse the compiler output and extract the necessary | |
12229 | # objects, libraries and library flags. | |
12230 | ||
12231 | # Sentinel used to keep track of whether or not we are before | |
12232 | # the conftest object file. | |
12233 | pre_test_object_deps_done=no | |
12234 | ||
12235 | # The `*' in the case matches for architectures that use `case' in | |
12236 | # $output_verbose_cmd can trigger glob expansion during the loop | |
12237 | # eval without this substitution. | |
12238 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | |
12239 | ||
12240 | for p in `eval $output_verbose_link_cmd`; do | |
12241 | case $p in | |
12242 | ||
12243 | -L* | -R* | -l*) | |
12244 | # Some compilers place space between "-{L,R}" and the path. | |
12245 | # Remove the space. | |
12246 | if test $p = "-L" \ | |
12247 | || test $p = "-R"; then | |
12248 | prev=$p | |
12249 | continue | |
12250 | else | |
12251 | prev= | |
12252 | fi | |
12253 | ||
12254 | if test "$pre_test_object_deps_done" = no; then | |
12255 | case $p in | |
12256 | -L* | -R*) | |
12257 | # Internal compiler library paths should come after those | |
12258 | # provided the user. The postdeps already come after the | |
12259 | # user supplied libs so there is no need to process them. | |
12260 | if test -z "$compiler_lib_search_path_CXX"; then | |
12261 | compiler_lib_search_path_CXX="${prev}${p}" | |
12262 | else | |
12263 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
12264 | fi | |
12265 | ;; | |
12266 | # The "-l" case would never come before the object being | |
12267 | # linked, so don't bother handling this case. | |
12268 | esac | |
12269 | else | |
12270 | if test -z "$postdeps_CXX"; then | |
12271 | postdeps_CXX="${prev}${p}" | |
12272 | else | |
12273 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
12274 | fi | |
12275 | fi | |
12276 | ;; | |
12277 | ||
12278 | *.$objext) | |
12279 | # This assumes that the test object file only shows up | |
12280 | # once in the compiler output. | |
12281 | if test "$p" = "conftest.$objext"; then | |
12282 | pre_test_object_deps_done=yes | |
12283 | continue | |
12284 | fi | |
12285 | ||
12286 | if test "$pre_test_object_deps_done" = no; then | |
12287 | if test -z "$predep_objects_CXX"; then | |
12288 | predep_objects_CXX="$p" | |
12289 | else | |
12290 | predep_objects_CXX="$predep_objects_CXX $p" | |
12291 | fi | |
12292 | else | |
12293 | if test -z "$postdep_objects_CXX"; then | |
12294 | postdep_objects_CXX="$p" | |
12295 | else | |
12296 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
12297 | fi | |
12298 | fi | |
12299 | ;; | |
12300 | ||
12301 | *) ;; # Ignore the rest. | |
12302 | ||
12303 | esac | |
12304 | done | |
12305 | ||
12306 | # Clean up. | |
12307 | rm -f a.out a.exe | |
12308 | else | |
12309 | echo "libtool.m4: error: problem compiling CXX test program" | |
12310 | fi | |
12311 | ||
12312 | $rm -f confest.$objext | |
12313 | ||
12314 | # PORTME: override above test on systems where it is broken | |
12315 | case $host_os in | |
12316 | interix3*) | |
12317 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
12318 | # hack all around it, let's just trust "g++" to DTRT. | |
12319 | predep_objects_CXX= | |
12320 | postdep_objects_CXX= | |
12321 | postdeps_CXX= | |
12322 | ;; | |
12323 | ||
12324 | solaris*) | |
12325 | case $cc_basename in | |
12326 | CC*) | |
12327 | # Adding this requires a known-good setup of shared libraries for | |
12328 | # Sun compiler versions before 5.6, else PIC objects from an old | |
12329 | # archive will be linked into the output, leading to subtle bugs. | |
12330 | postdeps_CXX='-lCstd -lCrun' | |
12331 | ;; | |
12332 | esac | |
12333 | ;; | |
12334 | esac | |
12335 | ||
12336 | ||
12337 | case " $postdeps_CXX " in | |
12338 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
12339 | esac | |
12340 | ||
12341 | lt_prog_compiler_wl_CXX= | |
12342 | lt_prog_compiler_pic_CXX= | |
12343 | lt_prog_compiler_static_CXX= | |
12344 | ||
12345 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
12346 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
12347 | ||
12348 | # C++ specific cases for pic, static, wl, etc. | |
12349 | if test "$GXX" = yes; then | |
12350 | lt_prog_compiler_wl_CXX='-Wl,' | |
12351 | lt_prog_compiler_static_CXX='-static' | |
12352 | ||
12353 | case $host_os in | |
12354 | aix*) | |
12355 | # All AIX code is PIC. | |
12356 | if test "$host_cpu" = ia64; then | |
12357 | # AIX 5 now supports IA64 processor | |
12358 | lt_prog_compiler_static_CXX='-Bstatic' | |
12359 | fi | |
12360 | ;; | |
12361 | amigaos*) | |
12362 | # FIXME: we need at least 68020 code to build shared libraries, but | |
12363 | # adding the `-m68020' flag to GCC prevents building anything better, | |
12364 | # like `-m68040'. | |
12365 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
12366 | ;; | |
12367 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12368 | # PIC is the default for these OSes. | |
12369 | ;; | |
12370 | mingw* | os2* | pw32*) | |
12371 | # This hack is so that the source file can tell whether it is being | |
12372 | # built for inclusion in a dll (and should export symbols for example). | |
12373 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
12374 | ;; | |
12375 | darwin* | rhapsody*) | |
12376 | # PIC is the default on this platform | |
12377 | # Common symbols not allowed in MH_DYLIB files | |
12378 | lt_prog_compiler_pic_CXX='-fno-common' | |
12379 | ;; | |
12380 | *djgpp*) | |
12381 | # DJGPP does not support shared libraries at all | |
12382 | lt_prog_compiler_pic_CXX= | |
12383 | ;; | |
12384 | interix3*) | |
12385 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
12386 | # Instead, we relocate shared libraries at runtime. | |
12387 | ;; | |
12388 | sysv4*MP*) | |
12389 | if test -d /usr/nec; then | |
12390 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
12391 | fi | |
12392 | ;; | |
12393 | hpux*) | |
12394 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
12395 | # not for PA HP-UX. | |
12396 | case $host_cpu in | |
12397 | hppa*64*|ia64*) | |
12398 | ;; | |
12399 | *) | |
12400 | lt_prog_compiler_pic_CXX='-fPIC' | |
12401 | ;; | |
12402 | esac | |
12403 | ;; | |
12404 | *) | |
12405 | lt_prog_compiler_pic_CXX='-fPIC' | |
12406 | ;; | |
12407 | esac | |
12408 | else | |
12409 | case $host_os in | |
12410 | aix4* | aix5*) | |
12411 | # All AIX code is PIC. | |
12412 | if test "$host_cpu" = ia64; then | |
12413 | # AIX 5 now supports IA64 processor | |
12414 | lt_prog_compiler_static_CXX='-Bstatic' | |
12415 | else | |
12416 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
12417 | fi | |
12418 | ;; | |
12419 | chorus*) | |
12420 | case $cc_basename in | |
12421 | cxch68*) | |
12422 | # Green Hills C++ Compiler | |
12423 | # _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" | |
12424 | ;; | |
12425 | esac | |
12426 | ;; | |
12427 | darwin*) | |
12428 | # PIC is the default on this platform | |
12429 | # Common symbols not allowed in MH_DYLIB files | |
12430 | case $cc_basename in | |
12431 | xlc*) | |
12432 | lt_prog_compiler_pic_CXX='-qnocommon' | |
12433 | lt_prog_compiler_wl_CXX='-Wl,' | |
12434 | ;; | |
12435 | esac | |
12436 | ;; | |
12437 | dgux*) | |
12438 | case $cc_basename in | |
12439 | ec++*) | |
12440 | lt_prog_compiler_pic_CXX='-KPIC' | |
12441 | ;; | |
12442 | ghcx*) | |
12443 | # Green Hills C++ Compiler | |
12444 | lt_prog_compiler_pic_CXX='-pic' | |
12445 | ;; | |
12446 | *) | |
12447 | ;; | |
12448 | esac | |
12449 | ;; | |
12450 | freebsd* | dragonfly*) | |
12451 | # FreeBSD uses GNU C++ | |
12452 | ;; | |
12453 | hpux9* | hpux10* | hpux11*) | |
12454 | case $cc_basename in | |
12455 | CC*) | |
12456 | lt_prog_compiler_wl_CXX='-Wl,' | |
12457 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12458 | if test "$host_cpu" != ia64; then | |
12459 | lt_prog_compiler_pic_CXX='+Z' | |
12460 | fi | |
12461 | ;; | |
12462 | aCC*) | |
12463 | lt_prog_compiler_wl_CXX='-Wl,' | |
12464 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12465 | case $host_cpu in | |
12466 | hppa*64*|ia64*) | |
12467 | # +Z the default | |
12468 | ;; | |
12469 | *) | |
12470 | lt_prog_compiler_pic_CXX='+Z' | |
12471 | ;; | |
12472 | esac | |
12473 | ;; | |
12474 | *) | |
12475 | ;; | |
12476 | esac | |
12477 | ;; | |
12478 | interix*) | |
12479 | # This is c89, which is MS Visual C++ (no shared libs) | |
12480 | # Anyone wants to do a port? | |
12481 | ;; | |
12482 | irix5* | irix6* | nonstopux*) | |
12483 | case $cc_basename in | |
12484 | CC*) | |
12485 | lt_prog_compiler_wl_CXX='-Wl,' | |
12486 | lt_prog_compiler_static_CXX='-non_shared' | |
12487 | # CC pic flag -KPIC is the default. | |
12488 | ;; | |
12489 | *) | |
12490 | ;; | |
12491 | esac | |
12492 | ;; | |
12493 | linux* | k*bsd*-gnu) | |
12494 | case $cc_basename in | |
12495 | KCC*) | |
12496 | # KAI C++ Compiler | |
12497 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12498 | lt_prog_compiler_pic_CXX='-fPIC' | |
12499 | ;; | |
12500 | icpc* | ecpc*) | |
12501 | # Intel C++ | |
12502 | lt_prog_compiler_wl_CXX='-Wl,' | |
12503 | lt_prog_compiler_pic_CXX='-KPIC' | |
12504 | lt_prog_compiler_static_CXX='-static' | |
12505 | ;; | |
12506 | pgCC*) | |
12507 | # Portland Group C++ compiler. | |
12508 | lt_prog_compiler_wl_CXX='-Wl,' | |
12509 | lt_prog_compiler_pic_CXX='-fpic' | |
12510 | lt_prog_compiler_static_CXX='-Bstatic' | |
12511 | ;; | |
12512 | cxx*) | |
12513 | # Compaq C++ | |
12514 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12515 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12516 | lt_prog_compiler_pic_CXX= | |
12517 | lt_prog_compiler_static_CXX='-non_shared' | |
12518 | ;; | |
12519 | *) | |
12520 | ;; | |
12521 | esac | |
12522 | ;; | |
12523 | lynxos*) | |
12524 | ;; | |
12525 | m88k*) | |
12526 | ;; | |
12527 | mvs*) | |
12528 | case $cc_basename in | |
12529 | cxx*) | |
12530 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
12531 | ;; | |
12532 | *) | |
12533 | ;; | |
12534 | esac | |
12535 | ;; | |
12536 | netbsd* | netbsdelf*-gnu) | |
12537 | ;; | |
12538 | osf3* | osf4* | osf5*) | |
12539 | case $cc_basename in | |
12540 | KCC*) | |
12541 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12542 | ;; | |
12543 | RCC*) | |
12544 | # Rational C++ 2.4.1 | |
12545 | lt_prog_compiler_pic_CXX='-pic' | |
12546 | ;; | |
12547 | cxx*) | |
12548 | # Digital/Compaq C++ | |
12549 | lt_prog_compiler_wl_CXX='-Wl,' | |
12550 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12551 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12552 | lt_prog_compiler_pic_CXX= | |
12553 | lt_prog_compiler_static_CXX='-non_shared' | |
12554 | ;; | |
12555 | *) | |
12556 | ;; | |
12557 | esac | |
12558 | ;; | |
12559 | psos*) | |
12560 | ;; | |
12561 | solaris*) | |
12562 | case $cc_basename in | |
12563 | CC*) | |
12564 | # Sun C++ 4.2, 5.x and Centerline C++ | |
12565 | lt_prog_compiler_pic_CXX='-KPIC' | |
12566 | lt_prog_compiler_static_CXX='-Bstatic' | |
12567 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12568 | ;; | |
12569 | gcx*) | |
12570 | # Green Hills C++ Compiler | |
12571 | lt_prog_compiler_pic_CXX='-PIC' | |
12572 | ;; | |
12573 | *) | |
12574 | ;; | |
12575 | esac | |
12576 | ;; | |
12577 | sunos4*) | |
12578 | case $cc_basename in | |
12579 | CC*) | |
12580 | # Sun C++ 4.x | |
12581 | lt_prog_compiler_pic_CXX='-pic' | |
12582 | lt_prog_compiler_static_CXX='-Bstatic' | |
12583 | ;; | |
12584 | lcc*) | |
12585 | # Lucid | |
12586 | lt_prog_compiler_pic_CXX='-pic' | |
12587 | ;; | |
12588 | *) | |
12589 | ;; | |
12590 | esac | |
12591 | ;; | |
12592 | tandem*) | |
12593 | case $cc_basename in | |
12594 | NCC*) | |
12595 | # NonStop-UX NCC 3.20 | |
12596 | lt_prog_compiler_pic_CXX='-KPIC' | |
12597 | ;; | |
12598 | *) | |
12599 | ;; | |
12600 | esac | |
12601 | ;; | |
12602 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
12603 | case $cc_basename in | |
12604 | CC*) | |
12605 | lt_prog_compiler_wl_CXX='-Wl,' | |
12606 | lt_prog_compiler_pic_CXX='-KPIC' | |
12607 | lt_prog_compiler_static_CXX='-Bstatic' | |
12608 | ;; | |
12609 | esac | |
12610 | ;; | |
12611 | vxworks*) | |
12612 | ;; | |
12613 | *) | |
12614 | lt_prog_compiler_can_build_shared_CXX=no | |
12615 | ;; | |
12616 | esac | |
12617 | fi | |
12618 | ||
12619 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
12620 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } | |
12621 | ||
12622 | # | |
12623 | # Check to make sure the PIC flag actually works. | |
12624 | # | |
12625 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
12626 | ||
12627 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
12628 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } | |
12629 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
12630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12631 | else | |
12632 | lt_prog_compiler_pic_works_CXX=no | |
12633 | ac_outfile=conftest.$ac_objext | |
12634 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12635 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
12636 | # Insert the option either (1) after the last *FLAGS variable, or | |
12637 | # (2) before a word containing "conftest.", or (3) at the end. | |
12638 | # Note that $ac_compile itself does not contain backslashes and begins | |
12639 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12640 | # The option is referenced via a variable to avoid confusing sed. | |
12641 | lt_compile=`echo "$ac_compile" | $SED \ | |
12642 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12643 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12644 | -e 's:$: $lt_compiler_flag:'` | |
12645 | (eval echo "\"\$as_me:12645: $lt_compile\"" >&5) | |
12646 | (eval "$lt_compile" 2>conftest.err) | |
12647 | ac_status=$? | |
12648 | cat conftest.err >&5 | |
12649 | echo "$as_me:12649: \$? = $ac_status" >&5 | |
12650 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
12651 | # The compiler can only warn and ignore the option if not recognized | |
12652 | # So say no if there are warnings other than the usual output. | |
12653 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
12654 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12655 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
12656 | lt_prog_compiler_pic_works_CXX=yes | |
12657 | fi | |
12658 | fi | |
12659 | $rm conftest* | |
12660 | ||
12661 | fi | |
12662 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | |
12663 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } | |
12664 | ||
12665 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
12666 | case $lt_prog_compiler_pic_CXX in | |
12667 | "" | " "*) ;; | |
12668 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
12669 | esac | |
12670 | else | |
12671 | lt_prog_compiler_pic_CXX= | |
12672 | lt_prog_compiler_can_build_shared_CXX=no | |
12673 | fi | |
12674 | ||
12675 | fi | |
12676 | case $host_os in | |
12677 | # For platforms which do not support PIC, -DPIC is meaningless: | |
12678 | *djgpp*) | |
12679 | lt_prog_compiler_pic_CXX= | |
12680 | ;; | |
12681 | *) | |
12682 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
12683 | ;; | |
12684 | esac | |
12685 | ||
12686 | # | |
12687 | # Check to make sure the static flag actually works. | |
12688 | # | |
12689 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
12690 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
12691 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
12692 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then | |
12693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12694 | else | |
12695 | lt_prog_compiler_static_works_CXX=no | |
12696 | save_LDFLAGS="$LDFLAGS" | |
12697 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
12698 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
12699 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
12700 | # The linker can only warn and ignore the option if not recognized | |
12701 | # So say no if there are warnings | |
12702 | if test -s conftest.err; then | |
12703 | # Append any errors to the config.log. | |
12704 | cat conftest.err 1>&5 | |
12705 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
12706 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12707 | if diff conftest.exp conftest.er2 >/dev/null; then | |
12708 | lt_prog_compiler_static_works_CXX=yes | |
12709 | fi | |
12710 | else | |
12711 | lt_prog_compiler_static_works_CXX=yes | |
12712 | fi | |
12713 | fi | |
12714 | $rm conftest* | |
12715 | LDFLAGS="$save_LDFLAGS" | |
12716 | ||
12717 | fi | |
12718 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 | |
12719 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } | |
12720 | ||
12721 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then | |
12722 | : | |
12723 | else | |
12724 | lt_prog_compiler_static_CXX= | |
12725 | fi | |
12726 | ||
12727 | ||
12728 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
12729 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
12730 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
12731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12732 | else | |
12733 | lt_cv_prog_compiler_c_o_CXX=no | |
12734 | $rm -r conftest 2>/dev/null | |
12735 | mkdir conftest | |
12736 | cd conftest | |
12737 | mkdir out | |
12738 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12739 | ||
12740 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12741 | # Insert the option either (1) after the last *FLAGS variable, or | |
12742 | # (2) before a word containing "conftest.", or (3) at the end. | |
12743 | # Note that $ac_compile itself does not contain backslashes and begins | |
12744 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12745 | lt_compile=`echo "$ac_compile" | $SED \ | |
12746 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12747 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12748 | -e 's:$: $lt_compiler_flag:'` | |
12749 | (eval echo "\"\$as_me:12749: $lt_compile\"" >&5) | |
12750 | (eval "$lt_compile" 2>out/conftest.err) | |
12751 | ac_status=$? | |
12752 | cat out/conftest.err >&5 | |
12753 | echo "$as_me:12753: \$? = $ac_status" >&5 | |
12754 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
12755 | then | |
12756 | # The compiler can only warn and ignore the option if not recognized | |
12757 | # So say no if there are warnings | |
12758 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
12759 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12760 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12761 | lt_cv_prog_compiler_c_o_CXX=yes | |
12762 | fi | |
12763 | fi | |
12764 | chmod u+w . 2>&5 | |
12765 | $rm conftest* | |
12766 | # SGI C++ compiler will create directory out/ii_files/ for | |
12767 | # template instantiation | |
12768 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
12769 | $rm out/* && rmdir out | |
12770 | cd .. | |
12771 | rmdir conftest | |
12772 | $rm conftest* | |
12773 | ||
12774 | fi | |
12775 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
12776 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
12777 | ||
12778 | ||
12779 | hard_links="nottested" | |
12780 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
12781 | # do not overwrite the value of need_locks provided by the user | |
12782 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
12783 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
12784 | hard_links=yes | |
12785 | $rm conftest* | |
12786 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12787 | touch conftest.a | |
12788 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
12789 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12790 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
12791 | echo "${ECHO_T}$hard_links" >&6; } | |
12792 | if test "$hard_links" = no; then | |
12793 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
12794 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
12795 | need_locks=warn | |
12796 | fi | |
12797 | else | |
12798 | need_locks=no | |
12799 | fi | |
12800 | ||
12801 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12802 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
12803 | ||
12804 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12805 | case $host_os in | |
12806 | aix4* | aix5*) | |
12807 | # If we're using GNU nm, then we don't want the "-C" option. | |
12808 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
12809 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
12810 | 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' | |
12811 | else | |
12812 | 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' | |
12813 | fi | |
12814 | ;; | |
12815 | pw32*) | |
12816 | export_symbols_cmds_CXX="$ltdll_cmds" | |
12817 | ;; | |
12818 | cygwin* | mingw*) | |
12819 | 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' | |
12820 | ;; | |
12821 | linux* | k*bsd*-gnu) | |
12822 | link_all_deplibs_CXX=no | |
12823 | ;; | |
12824 | *) | |
12825 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12826 | ;; | |
12827 | esac | |
12828 | ||
12829 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
12830 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | |
12831 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
12832 | ||
12833 | # | |
12834 | # Do we need to explicitly link libc? | |
12835 | # | |
12836 | case "x$archive_cmds_need_lc_CXX" in | |
12837 | x|xyes) | |
12838 | # Assume -lc should be added | |
12839 | archive_cmds_need_lc_CXX=yes | |
12840 | ||
12841 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
12842 | case $archive_cmds_CXX in | |
12843 | *'~'*) | |
12844 | # FIXME: we may have to deal with multi-command sequences. | |
12845 | ;; | |
12846 | '$CC '*) | |
12847 | # Test whether the compiler implicitly links with -lc since on some | |
12848 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
12849 | # to ld, don't add -lc before -lgcc. | |
12850 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
12851 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
12852 | $rm conftest* | |
12853 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12854 | ||
12855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12856 | (eval $ac_compile) 2>&5 | |
12857 | ac_status=$? | |
12858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12859 | (exit $ac_status); } 2>conftest.err; then | |
12860 | soname=conftest | |
12861 | lib=conftest | |
12862 | libobjs=conftest.$ac_objext | |
12863 | deplibs= | |
12864 | wl=$lt_prog_compiler_wl_CXX | |
12865 | pic_flag=$lt_prog_compiler_pic_CXX | |
12866 | compiler_flags=-v | |
12867 | linker_flags=-v | |
12868 | verstring= | |
12869 | output_objdir=. | |
12870 | libname=conftest | |
12871 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
12872 | allow_undefined_flag_CXX= | |
12873 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
12874 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
12875 | ac_status=$? | |
12876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12877 | (exit $ac_status); } | |
12878 | then | |
12879 | archive_cmds_need_lc_CXX=no | |
12880 | else | |
12881 | archive_cmds_need_lc_CXX=yes | |
12882 | fi | |
12883 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
12884 | else | |
12885 | cat conftest.err 1>&5 | |
12886 | fi | |
12887 | $rm conftest* | |
12888 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
12889 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } | |
12890 | ;; | |
12891 | esac | |
12892 | fi | |
12893 | ;; | |
12894 | esac | |
12895 | ||
12896 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
12897 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
12898 | library_names_spec= | |
12899 | libname_spec='lib$name' | |
12900 | soname_spec= | |
12901 | shrext_cmds=".so" | |
12902 | postinstall_cmds= | |
12903 | postuninstall_cmds= | |
12904 | finish_cmds= | |
12905 | finish_eval= | |
12906 | shlibpath_var= | |
12907 | shlibpath_overrides_runpath=unknown | |
12908 | version_type=none | |
12909 | dynamic_linker="$host_os ld.so" | |
12910 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
12911 | if test "$GCC" = yes; then | |
12912 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
12913 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
12914 | # if the path contains ";" then we assume it to be the separator | |
12915 | # otherwise default to the standard path separator (i.e. ":") - it is | |
12916 | # assumed that no part of a normal pathname contains ";" but that should | |
12917 | # okay in the real world where ";" in dirpaths is itself problematic. | |
12918 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
12919 | else | |
12920 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
12921 | fi | |
12922 | else | |
12923 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
12924 | fi | |
12925 | need_lib_prefix=unknown | |
12926 | hardcode_into_libs=no | |
12927 | ||
12928 | # when you set need_version to no, make sure it does not cause -set_version | |
12929 | # flags to be left without arguments | |
12930 | need_version=unknown | |
12931 | ||
12932 | case $host_os in | |
12933 | aix3*) | |
12934 | version_type=linux | |
12935 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
12936 | shlibpath_var=LIBPATH | |
12937 | ||
12938 | # AIX 3 has no versioning support, so we append a major version to the name. | |
12939 | soname_spec='${libname}${release}${shared_ext}$major' | |
12940 | ;; | |
12941 | ||
12942 | aix4* | aix5*) | |
12943 | version_type=linux | |
12944 | need_lib_prefix=no | |
12945 | need_version=no | |
12946 | hardcode_into_libs=yes | |
12947 | if test "$host_cpu" = ia64; then | |
12948 | # AIX 5 supports IA64 | |
12949 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
12950 | shlibpath_var=LD_LIBRARY_PATH | |
12951 | else | |
12952 | # With GCC up to 2.95.x, collect2 would create an import file | |
12953 | # for dependence libraries. The import file would start with | |
12954 | # the line `#! .'. This would cause the generated library to | |
12955 | # depend on `.', always an invalid library. This was fixed in | |
12956 | # development snapshots of GCC prior to 3.0. | |
12957 | case $host_os in | |
12958 | aix4 | aix4.[01] | aix4.[01].*) | |
12959 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
12960 | echo ' yes ' | |
12961 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
12962 | : | |
12963 | else | |
12964 | can_build_shared=no | |
12965 | fi | |
12966 | ;; | |
12967 | esac | |
12968 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
12969 | # soname into executable. Probably we can add versioning support to | |
12970 | # collect2, so additional links can be useful in future. | |
12971 | if test "$aix_use_runtimelinking" = yes; then | |
12972 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
12973 | # instead of lib<name>.a to let people know that these are not | |
12974 | # typical AIX shared libraries. | |
12975 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12976 | else | |
12977 | # We preserve .a as extension for shared libraries through AIX4.2 | |
12978 | # and later when we are not doing run time linking. | |
12979 | library_names_spec='${libname}${release}.a $libname.a' | |
12980 | soname_spec='${libname}${release}${shared_ext}$major' | |
12981 | fi | |
12982 | shlibpath_var=LIBPATH | |
12983 | fi | |
12984 | ;; | |
12985 | ||
12986 | amigaos*) | |
12987 | library_names_spec='$libname.ixlibrary $libname.a' | |
12988 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
12989 | 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' | |
12990 | ;; | |
12991 | ||
12992 | beos*) | |
12993 | library_names_spec='${libname}${shared_ext}' | |
12994 | dynamic_linker="$host_os ld.so" | |
12995 | shlibpath_var=LIBRARY_PATH | |
12996 | ;; | |
12997 | ||
12998 | bsdi[45]*) | |
12999 | version_type=linux | |
13000 | need_version=no | |
13001 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13002 | soname_spec='${libname}${release}${shared_ext}$major' | |
13003 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
13004 | shlibpath_var=LD_LIBRARY_PATH | |
13005 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
13006 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
13007 | # the default ld.so.conf also contains /usr/contrib/lib and | |
13008 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
13009 | # libtool to hard-code these into programs | |
13010 | ;; | |
13011 | ||
13012 | cygwin* | mingw* | pw32*) | |
13013 | version_type=windows | |
13014 | shrext_cmds=".dll" | |
13015 | need_version=no | |
13016 | need_lib_prefix=no | |
13017 | ||
13018 | case $GCC,$host_os in | |
13019 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
13020 | library_names_spec='$libname.dll.a' | |
13021 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
13022 | postinstall_cmds='base_file=`basename \${file}`~ | |
13023 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
13024 | dldir=$destdir/`dirname \$dlpath`~ | |
13025 | test -d \$dldir || mkdir -p \$dldir~ | |
13026 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
13027 | chmod a+x \$dldir/$dlname' | |
13028 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13029 | dlpath=$dir/\$dldll~ | |
13030 | $rm \$dlpath' | |
13031 | shlibpath_overrides_runpath=yes | |
13032 | ||
13033 | case $host_os in | |
13034 | cygwin*) | |
13035 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
13036 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13037 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
13038 | ;; | |
13039 | mingw*) | |
13040 | # MinGW DLLs use traditional 'lib' prefix | |
13041 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13042 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
13043 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
13044 | # It is most probably a Windows format PATH printed by | |
13045 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
13046 | # path with ; separators, and with drive letters. We can handle the | |
13047 | # drive letters (cygwin fileutils understands them), so leave them, | |
13048 | # especially as we might pass files found there to a mingw objdump, | |
13049 | # which wouldn't understand a cygwinified path. Ahh. | |
13050 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
13051 | else | |
13052 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
13053 | fi | |
13054 | ;; | |
13055 | pw32*) | |
13056 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
13057 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13058 | ;; | |
13059 | esac | |
13060 | ;; | |
13061 | ||
13062 | *) | |
13063 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
13064 | ;; | |
13065 | esac | |
13066 | dynamic_linker='Win32 ld.exe' | |
13067 | # FIXME: first we should search . and the directory the executable is in | |
13068 | shlibpath_var=PATH | |
13069 | ;; | |
13070 | ||
13071 | darwin* | rhapsody*) | |
13072 | dynamic_linker="$host_os dyld" | |
13073 | version_type=darwin | |
13074 | need_lib_prefix=no | |
13075 | need_version=no | |
13076 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
13077 | soname_spec='${libname}${release}${major}$shared_ext' | |
13078 | shlibpath_overrides_runpath=yes | |
13079 | shlibpath_var=DYLD_LIBRARY_PATH | |
13080 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
13081 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
13082 | if test "$GCC" = yes; then | |
13083 | 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"` | |
13084 | else | |
13085 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
13086 | fi | |
13087 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
13088 | ;; | |
13089 | ||
13090 | dgux*) | |
13091 | version_type=linux | |
13092 | need_lib_prefix=no | |
13093 | need_version=no | |
13094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
13095 | soname_spec='${libname}${release}${shared_ext}$major' | |
13096 | shlibpath_var=LD_LIBRARY_PATH | |
13097 | ;; | |
13098 | ||
13099 | freebsd1*) | |
13100 | dynamic_linker=no | |
13101 | ;; | |
13102 | ||
13103 | freebsd* | dragonfly*) | |
13104 | # DragonFly does not have aout. When/if they implement a new | |
13105 | # versioning mechanism, adjust this. | |
13106 | if test -x /usr/bin/objformat; then | |
13107 | objformat=`/usr/bin/objformat` | |
13108 | else | |
13109 | case $host_os in | |
13110 | freebsd[123]*) objformat=aout ;; | |
13111 | *) objformat=elf ;; | |
13112 | esac | |
13113 | fi | |
13114 | version_type=freebsd-$objformat | |
13115 | case $version_type in | |
13116 | freebsd-elf*) | |
13117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13118 | need_version=no | |
13119 | need_lib_prefix=no | |
13120 | ;; | |
13121 | freebsd-*) | |
13122 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
13123 | need_version=yes | |
13124 | ;; | |
13125 | esac | |
13126 | shlibpath_var=LD_LIBRARY_PATH | |
13127 | case $host_os in | |
13128 | freebsd2*) | |
13129 | shlibpath_overrides_runpath=yes | |
13130 | ;; | |
13131 | freebsd3.[01]* | freebsdelf3.[01]*) | |
13132 | shlibpath_overrides_runpath=yes | |
13133 | hardcode_into_libs=yes | |
13134 | ;; | |
13135 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
13136 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
13137 | shlibpath_overrides_runpath=no | |
13138 | hardcode_into_libs=yes | |
13139 | ;; | |
13140 | freebsd*) # from 4.6 on | |
13141 | shlibpath_overrides_runpath=yes | |
13142 | hardcode_into_libs=yes | |
13143 | ;; | |
13144 | esac | |
13145 | ;; | |
13146 | ||
13147 | gnu*) | |
13148 | version_type=linux | |
13149 | need_lib_prefix=no | |
13150 | need_version=no | |
13151 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
13152 | soname_spec='${libname}${release}${shared_ext}$major' | |
13153 | shlibpath_var=LD_LIBRARY_PATH | |
13154 | hardcode_into_libs=yes | |
13155 | ;; | |
13156 | ||
13157 | hpux9* | hpux10* | hpux11*) | |
13158 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
13159 | # link against other versions. | |
13160 | version_type=sunos | |
13161 | need_lib_prefix=no | |
13162 | need_version=no | |
13163 | case $host_cpu in | |
13164 | ia64*) | |
13165 | shrext_cmds='.so' | |
13166 | hardcode_into_libs=yes | |
13167 | dynamic_linker="$host_os dld.so" | |
13168 | shlibpath_var=LD_LIBRARY_PATH | |
13169 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13170 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13171 | soname_spec='${libname}${release}${shared_ext}$major' | |
13172 | if test "X$HPUX_IA64_MODE" = X32; then | |
13173 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
13174 | else | |
13175 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
13176 | fi | |
13177 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13178 | ;; | |
13179 | hppa*64*) | |
13180 | shrext_cmds='.sl' | |
13181 | hardcode_into_libs=yes | |
13182 | dynamic_linker="$host_os dld.sl" | |
13183 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
13184 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13186 | soname_spec='${libname}${release}${shared_ext}$major' | |
13187 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
13188 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13189 | ;; | |
13190 | *) | |
13191 | shrext_cmds='.sl' | |
13192 | dynamic_linker="$host_os dld.sl" | |
13193 | shlibpath_var=SHLIB_PATH | |
13194 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
13195 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13196 | soname_spec='${libname}${release}${shared_ext}$major' | |
13197 | ;; | |
13198 | esac | |
13199 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
13200 | postinstall_cmds='chmod 555 $lib' | |
13201 | ;; | |
13202 | ||
13203 | interix3*) | |
13204 | version_type=linux | |
13205 | need_lib_prefix=no | |
13206 | need_version=no | |
13207 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13208 | soname_spec='${libname}${release}${shared_ext}$major' | |
13209 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
13210 | shlibpath_var=LD_LIBRARY_PATH | |
13211 | shlibpath_overrides_runpath=no | |
13212 | hardcode_into_libs=yes | |
13213 | ;; | |
13214 | ||
13215 | irix5* | irix6* | nonstopux*) | |
13216 | case $host_os in | |
13217 | nonstopux*) version_type=nonstopux ;; | |
13218 | *) | |
13219 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
13220 | version_type=linux | |
13221 | else | |
13222 | version_type=irix | |
13223 | fi ;; | |
13224 | esac | |
13225 | need_lib_prefix=no | |
13226 | need_version=no | |
13227 | soname_spec='${libname}${release}${shared_ext}$major' | |
13228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13229 | case $host_os in | |
13230 | irix5* | nonstopux*) | |
13231 | libsuff= shlibsuff= | |
13232 | ;; | |
13233 | *) | |
13234 | case $LD in # libtool.m4 will add one of these switches to LD | |
13235 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
13236 | libsuff= shlibsuff= libmagic=32-bit;; | |
13237 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
13238 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
13239 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
13240 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
13241 | *) libsuff= shlibsuff= libmagic=never-match;; | |
13242 | esac | |
13243 | ;; | |
13244 | esac | |
13245 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
13246 | shlibpath_overrides_runpath=no | |
13247 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
13248 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
13249 | hardcode_into_libs=yes | |
13250 | ;; | |
13251 | ||
13252 | # No shared lib support for Linux oldld, aout, or coff. | |
13253 | linux*oldld* | linux*aout* | linux*coff*) | |
13254 | dynamic_linker=no | |
13255 | ;; | |
13256 | ||
13257 | # This must be Linux ELF. | |
13258 | linux* | k*bsd*-gnu) | |
13259 | version_type=linux | |
13260 | need_lib_prefix=no | |
13261 | need_version=no | |
13262 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13263 | soname_spec='${libname}${release}${shared_ext}$major' | |
13264 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
13265 | shlibpath_var=LD_LIBRARY_PATH | |
13266 | shlibpath_overrides_runpath=no | |
13267 | # This implies no fast_install, which is unacceptable. | |
13268 | # Some rework will be needed to allow for fast_install | |
13269 | # before this can be enabled. | |
13270 | hardcode_into_libs=yes | |
13271 | ||
13272 | # Append ld.so.conf contents to the search path | |
13273 | if test -f /etc/ld.so.conf; then | |
13274 | 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' ' '` | |
13275 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
13276 | fi | |
13277 | ||
13278 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
13279 | # powerpc, because MkLinux only supported shared libraries with the | |
13280 | # GNU dynamic linker. Since this was broken with cross compilers, | |
13281 | # most powerpc-linux boxes support dynamic linking these days and | |
13282 | # people can always --disable-shared, the test was removed, and we | |
13283 | # assume the GNU/Linux dynamic linker is in use. | |
13284 | dynamic_linker='GNU/Linux ld.so' | |
13285 | ;; | |
13286 | ||
13287 | netbsdelf*-gnu) | |
13288 | version_type=linux | |
13289 | need_lib_prefix=no | |
13290 | need_version=no | |
13291 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13292 | soname_spec='${libname}${release}${shared_ext}$major' | |
13293 | shlibpath_var=LD_LIBRARY_PATH | |
13294 | shlibpath_overrides_runpath=no | |
13295 | hardcode_into_libs=yes | |
13296 | dynamic_linker='NetBSD ld.elf_so' | |
13297 | ;; | |
13298 | ||
13299 | netbsd*) | |
13300 | version_type=sunos | |
13301 | need_lib_prefix=no | |
13302 | need_version=no | |
13303 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
13304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13305 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13306 | dynamic_linker='NetBSD (a.out) ld.so' | |
13307 | else | |
13308 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13309 | soname_spec='${libname}${release}${shared_ext}$major' | |
13310 | dynamic_linker='NetBSD ld.elf_so' | |
13311 | fi | |
13312 | shlibpath_var=LD_LIBRARY_PATH | |
13313 | shlibpath_overrides_runpath=yes | |
13314 | hardcode_into_libs=yes | |
13315 | ;; | |
13316 | ||
13317 | newsos6) | |
13318 | version_type=linux | |
13319 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13320 | shlibpath_var=LD_LIBRARY_PATH | |
13321 | shlibpath_overrides_runpath=yes | |
13322 | ;; | |
13323 | ||
13324 | nto-qnx*) | |
13325 | version_type=linux | |
13326 | need_lib_prefix=no | |
13327 | need_version=no | |
13328 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13329 | soname_spec='${libname}${release}${shared_ext}$major' | |
13330 | shlibpath_var=LD_LIBRARY_PATH | |
13331 | shlibpath_overrides_runpath=yes | |
13332 | ;; | |
13333 | ||
13334 | openbsd*) | |
13335 | version_type=sunos | |
13336 | sys_lib_dlsearch_path_spec="/usr/lib" | |
13337 | need_lib_prefix=no | |
13338 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
13339 | case $host_os in | |
13340 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
13341 | *) need_version=no ;; | |
13342 | esac | |
13343 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13344 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13345 | shlibpath_var=LD_LIBRARY_PATH | |
13346 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13347 | case $host_os in | |
13348 | openbsd2.[89] | openbsd2.[89].*) | |
13349 | shlibpath_overrides_runpath=no | |
13350 | ;; | |
13351 | *) | |
13352 | shlibpath_overrides_runpath=yes | |
13353 | ;; | |
13354 | esac | |
13355 | else | |
13356 | shlibpath_overrides_runpath=yes | |
13357 | fi | |
13358 | ;; | |
13359 | ||
13360 | os2*) | |
13361 | libname_spec='$name' | |
13362 | shrext_cmds=".dll" | |
13363 | need_lib_prefix=no | |
13364 | library_names_spec='$libname${shared_ext} $libname.a' | |
13365 | dynamic_linker='OS/2 ld.exe' | |
13366 | shlibpath_var=LIBPATH | |
13367 | ;; | |
13368 | ||
13369 | osf3* | osf4* | osf5*) | |
13370 | version_type=osf | |
13371 | need_lib_prefix=no | |
13372 | need_version=no | |
13373 | soname_spec='${libname}${release}${shared_ext}$major' | |
13374 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13375 | shlibpath_var=LD_LIBRARY_PATH | |
13376 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
13377 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
13378 | ;; | |
13379 | ||
13380 | solaris*) | |
13381 | version_type=linux | |
13382 | need_lib_prefix=no | |
13383 | need_version=no | |
13384 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13385 | soname_spec='${libname}${release}${shared_ext}$major' | |
13386 | shlibpath_var=LD_LIBRARY_PATH | |
13387 | shlibpath_overrides_runpath=yes | |
13388 | hardcode_into_libs=yes | |
13389 | # ldd complains unless libraries are executable | |
13390 | postinstall_cmds='chmod +x $lib' | |
13391 | ;; | |
13392 | ||
13393 | sunos4*) | |
13394 | version_type=sunos | |
13395 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13396 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
13397 | shlibpath_var=LD_LIBRARY_PATH | |
13398 | shlibpath_overrides_runpath=yes | |
13399 | if test "$with_gnu_ld" = yes; then | |
13400 | need_lib_prefix=no | |
13401 | fi | |
13402 | need_version=yes | |
13403 | ;; | |
13404 | ||
13405 | sysv4 | sysv4.3*) | |
13406 | version_type=linux | |
13407 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13408 | soname_spec='${libname}${release}${shared_ext}$major' | |
13409 | shlibpath_var=LD_LIBRARY_PATH | |
13410 | case $host_vendor in | |
13411 | sni) | |
13412 | shlibpath_overrides_runpath=no | |
13413 | need_lib_prefix=no | |
13414 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
13415 | runpath_var=LD_RUN_PATH | |
13416 | ;; | |
13417 | siemens) | |
13418 | need_lib_prefix=no | |
13419 | ;; | |
13420 | motorola) | |
13421 | need_lib_prefix=no | |
13422 | need_version=no | |
13423 | shlibpath_overrides_runpath=no | |
13424 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
13425 | ;; | |
13426 | esac | |
13427 | ;; | |
13428 | ||
13429 | sysv4*MP*) | |
13430 | if test -d /usr/nec ;then | |
13431 | version_type=linux | |
13432 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
13433 | soname_spec='$libname${shared_ext}.$major' | |
13434 | shlibpath_var=LD_LIBRARY_PATH | |
13435 | fi | |
13436 | ;; | |
13437 | ||
13438 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
13439 | version_type=freebsd-elf | |
13440 | need_lib_prefix=no | |
13441 | need_version=no | |
13442 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13443 | soname_spec='${libname}${release}${shared_ext}$major' | |
13444 | shlibpath_var=LD_LIBRARY_PATH | |
13445 | hardcode_into_libs=yes | |
13446 | if test "$with_gnu_ld" = yes; then | |
13447 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
13448 | shlibpath_overrides_runpath=no | |
13449 | else | |
13450 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
13451 | shlibpath_overrides_runpath=yes | |
13452 | case $host_os in | |
13453 | sco3.2v5*) | |
13454 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
13455 | ;; | |
13456 | esac | |
13457 | fi | |
13458 | sys_lib_dlsearch_path_spec='/usr/lib' | |
13459 | ;; | |
13460 | ||
13461 | uts4*) | |
13462 | version_type=linux | |
13463 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13464 | soname_spec='${libname}${release}${shared_ext}$major' | |
13465 | shlibpath_var=LD_LIBRARY_PATH | |
13466 | ;; | |
13467 | ||
13468 | *) | |
13469 | dynamic_linker=no | |
13470 | ;; | |
13471 | esac | |
13472 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
13473 | echo "${ECHO_T}$dynamic_linker" >&6; } | |
13474 | test "$dynamic_linker" = no && can_build_shared=no | |
13475 | ||
13476 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
13477 | if test "$GCC" = yes; then | |
13478 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
13479 | fi | |
13480 | ||
13481 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
13482 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
13483 | hardcode_action_CXX= | |
13484 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
13485 | test -n "$runpath_var_CXX" || \ | |
13486 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
13487 | ||
13488 | # We can hardcode non-existant directories. | |
13489 | if test "$hardcode_direct_CXX" != no && | |
13490 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
13491 | # have to relink, otherwise we might link with an installed library | |
13492 | # when we should be linking with a yet-to-be-installed one | |
13493 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
13494 | test "$hardcode_minus_L_CXX" != no; then | |
13495 | # Linking always hardcodes the temporary library directory. | |
13496 | hardcode_action_CXX=relink | |
13497 | else | |
13498 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
13499 | hardcode_action_CXX=immediate | |
13500 | fi | |
13501 | else | |
13502 | # We cannot hardcode anything, or else we can only hardcode existing | |
13503 | # directories. | |
13504 | hardcode_action_CXX=unsupported | |
13505 | fi | |
13506 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | |
13507 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } | |
13508 | ||
13509 | if test "$hardcode_action_CXX" = relink; then | |
13510 | # Fast installation is not supported | |
13511 | enable_fast_install=no | |
13512 | elif test "$shlibpath_overrides_runpath" = yes || | |
13513 | test "$enable_shared" = no; then | |
13514 | # Fast installation is not necessary | |
13515 | enable_fast_install=needless | |
13516 | fi | |
13517 | ||
13518 | ||
13519 | # The else clause should only fire when bootstrapping the | |
13520 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
13521 | # with your package, and you will get complaints that there are | |
13522 | # no rules to generate ltmain.sh. | |
13523 | if test -f "$ltmain"; then | |
13524 | # See if we are running on zsh, and set the options which allow our commands through | |
13525 | # without removal of \ escapes. | |
13526 | if test -n "${ZSH_VERSION+set}" ; then | |
13527 | setopt NO_GLOB_SUBST | |
13528 | fi | |
13529 | # Now quote all the things that may contain metacharacters while being | |
13530 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
13531 | # variables and quote the copies for generation of the libtool script. | |
13532 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
13533 | SED SHELL STRIP \ | |
13534 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
13535 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
13536 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
13537 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
13538 | lt_cv_sys_global_symbol_to_c_name_address \ | |
13539 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
13540 | old_postinstall_cmds old_postuninstall_cmds \ | |
13541 | compiler_CXX \ | |
13542 | CC_CXX \ | |
13543 | LD_CXX \ | |
13544 | lt_prog_compiler_wl_CXX \ | |
13545 | lt_prog_compiler_pic_CXX \ | |
13546 | lt_prog_compiler_static_CXX \ | |
13547 | lt_prog_compiler_no_builtin_flag_CXX \ | |
13548 | export_dynamic_flag_spec_CXX \ | |
13549 | thread_safe_flag_spec_CXX \ | |
13550 | whole_archive_flag_spec_CXX \ | |
13551 | enable_shared_with_static_runtimes_CXX \ | |
13552 | old_archive_cmds_CXX \ | |
13553 | old_archive_from_new_cmds_CXX \ | |
13554 | predep_objects_CXX \ | |
13555 | postdep_objects_CXX \ | |
13556 | predeps_CXX \ | |
13557 | postdeps_CXX \ | |
13558 | compiler_lib_search_path_CXX \ | |
13559 | archive_cmds_CXX \ | |
13560 | archive_expsym_cmds_CXX \ | |
13561 | postinstall_cmds_CXX \ | |
13562 | postuninstall_cmds_CXX \ | |
13563 | old_archive_from_expsyms_cmds_CXX \ | |
13564 | allow_undefined_flag_CXX \ | |
13565 | no_undefined_flag_CXX \ | |
13566 | export_symbols_cmds_CXX \ | |
13567 | hardcode_libdir_flag_spec_CXX \ | |
13568 | hardcode_libdir_flag_spec_ld_CXX \ | |
13569 | hardcode_libdir_separator_CXX \ | |
13570 | hardcode_automatic_CXX \ | |
13571 | module_cmds_CXX \ | |
13572 | module_expsym_cmds_CXX \ | |
13573 | lt_cv_prog_compiler_c_o_CXX \ | |
13574 | exclude_expsyms_CXX \ | |
13575 | include_expsyms_CXX; do | |
13576 | ||
13577 | case $var in | |
13578 | old_archive_cmds_CXX | \ | |
13579 | old_archive_from_new_cmds_CXX | \ | |
13580 | archive_cmds_CXX | \ | |
13581 | archive_expsym_cmds_CXX | \ | |
13582 | module_cmds_CXX | \ | |
13583 | module_expsym_cmds_CXX | \ | |
13584 | old_archive_from_expsyms_cmds_CXX | \ | |
13585 | export_symbols_cmds_CXX | \ | |
13586 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
13587 | postinstall_cmds | postuninstall_cmds | \ | |
13588 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
13589 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
13590 | # Double-quote double-evaled strings. | |
13591 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
13592 | ;; | |
13593 | *) | |
13594 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
13595 | ;; | |
13596 | esac | |
13597 | done | |
13598 | ||
13599 | case $lt_echo in | |
13600 | *'\$0 --fallback-echo"') | |
13601 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
13602 | ;; | |
13603 | esac | |
13604 | ||
13605 | cfgfile="$ofile" | |
13606 | ||
13607 | cat <<__EOF__ >> "$cfgfile" | |
13608 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
13609 | ||
13610 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
13611 | ||
13612 | # Shell to use when invoking shell scripts. | |
13613 | SHELL=$lt_SHELL | |
13614 | ||
13615 | # Whether or not to build shared libraries. | |
13616 | build_libtool_libs=$enable_shared | |
13617 | ||
13618 | # Whether or not to build static libraries. | |
13619 | build_old_libs=$enable_static | |
13620 | ||
13621 | # Whether or not to add -lc for building shared libraries. | |
13622 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
13623 | ||
13624 | # Whether or not to disallow shared libs when runtime libs are static | |
13625 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
13626 | ||
13627 | # Whether or not to optimize for fast installation. | |
13628 | fast_install=$enable_fast_install | |
13629 | ||
13630 | # The host system. | |
13631 | host_alias=$host_alias | |
13632 | host=$host | |
13633 | host_os=$host_os | |
13634 | ||
13635 | # The build system. | |
13636 | build_alias=$build_alias | |
13637 | build=$build | |
13638 | build_os=$build_os | |
13639 | ||
13640 | # An echo program that does not interpret backslashes. | |
13641 | echo=$lt_echo | |
13642 | ||
13643 | # The archiver. | |
13644 | AR=$lt_AR | |
13645 | AR_FLAGS=$lt_AR_FLAGS | |
13646 | ||
13647 | # A C compiler. | |
13648 | LTCC=$lt_LTCC | |
13649 | ||
13650 | # LTCC compiler flags. | |
13651 | LTCFLAGS=$lt_LTCFLAGS | |
13652 | ||
13653 | # A language-specific compiler. | |
13654 | CC=$lt_compiler_CXX | |
13655 | ||
13656 | # Is the compiler the GNU C compiler? | |
13657 | with_gcc=$GCC_CXX | |
13658 | ||
13659 | # An ERE matcher. | |
13660 | EGREP=$lt_EGREP | |
13661 | ||
13662 | # The linker used to build libraries. | |
13663 | LD=$lt_LD_CXX | |
13664 | ||
13665 | # Whether we need hard or soft links. | |
13666 | LN_S=$lt_LN_S | |
13667 | ||
13668 | # A BSD-compatible nm program. | |
13669 | NM=$lt_NM | |
13670 | ||
13671 | # A symbol stripping program | |
13672 | STRIP=$lt_STRIP | |
13673 | ||
13674 | # Used to examine libraries when file_magic_cmd begins "file" | |
13675 | MAGIC_CMD=$MAGIC_CMD | |
13676 | ||
13677 | # Used on cygwin: DLL creation program. | |
13678 | DLLTOOL="$DLLTOOL" | |
13679 | ||
13680 | # Used on cygwin: object dumper. | |
13681 | OBJDUMP="$OBJDUMP" | |
13682 | ||
13683 | # Used on cygwin: assembler. | |
13684 | AS="$AS" | |
13685 | ||
13686 | # The name of the directory that contains temporary libtool files. | |
13687 | objdir=$objdir | |
13688 | ||
13689 | # How to create reloadable object files. | |
13690 | reload_flag=$lt_reload_flag | |
13691 | reload_cmds=$lt_reload_cmds | |
13692 | ||
13693 | # How to pass a linker flag through the compiler. | |
13694 | wl=$lt_lt_prog_compiler_wl_CXX | |
13695 | ||
13696 | # Object file suffix (normally "o"). | |
13697 | objext="$ac_objext" | |
13698 | ||
13699 | # Old archive suffix (normally "a"). | |
13700 | libext="$libext" | |
13701 | ||
13702 | # Shared library suffix (normally ".so"). | |
13703 | shrext_cmds='$shrext_cmds' | |
13704 | ||
13705 | # Executable file suffix (normally ""). | |
13706 | exeext="$exeext" | |
13707 | ||
13708 | # Additional compiler flags for building library objects. | |
13709 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
13710 | pic_mode=$pic_mode | |
13711 | ||
13712 | # What is the maximum length of a command? | |
13713 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
13714 | ||
13715 | # Does compiler simultaneously support -c and -o options? | |
13716 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
13717 | ||
13718 | # Must we lock files when doing compilation? | |
13719 | need_locks=$lt_need_locks | |
13720 | ||
13721 | # Do we need the lib prefix for modules? | |
13722 | need_lib_prefix=$need_lib_prefix | |
13723 | ||
13724 | # Do we need a version for libraries? | |
13725 | need_version=$need_version | |
13726 | ||
13727 | # Whether dlopen is supported. | |
13728 | dlopen_support=$enable_dlopen | |
13729 | ||
13730 | # Whether dlopen of programs is supported. | |
13731 | dlopen_self=$enable_dlopen_self | |
13732 | ||
13733 | # Whether dlopen of statically linked programs is supported. | |
13734 | dlopen_self_static=$enable_dlopen_self_static | |
13735 | ||
13736 | # Compiler flag to prevent dynamic linking. | |
13737 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
13738 | ||
13739 | # Compiler flag to turn off builtin functions. | |
13740 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
13741 | ||
13742 | # Compiler flag to allow reflexive dlopens. | |
13743 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
13744 | ||
13745 | # Compiler flag to generate shared objects directly from archives. | |
13746 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
13747 | ||
13748 | # Compiler flag to generate thread-safe objects. | |
13749 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
13750 | ||
13751 | # Library versioning type. | |
13752 | version_type=$version_type | |
13753 | ||
13754 | # Format of library name prefix. | |
13755 | libname_spec=$lt_libname_spec | |
13756 | ||
13757 | # List of archive names. First name is the real one, the rest are links. | |
13758 | # The last name is the one that the linker finds with -lNAME. | |
13759 | library_names_spec=$lt_library_names_spec | |
13760 | ||
13761 | # The coded name of the library, if different from the real name. | |
13762 | soname_spec=$lt_soname_spec | |
13763 | ||
13764 | # Commands used to build and install an old-style archive. | |
13765 | RANLIB=$lt_RANLIB | |
13766 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
13767 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
13768 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
13769 | ||
13770 | # Create an old-style archive from a shared archive. | |
13771 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
13772 | ||
13773 | # Create a temporary old-style archive to link instead of a shared archive. | |
13774 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
13775 | ||
13776 | # Commands used to build and install a shared archive. | |
13777 | archive_cmds=$lt_archive_cmds_CXX | |
13778 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
13779 | postinstall_cmds=$lt_postinstall_cmds | |
13780 | postuninstall_cmds=$lt_postuninstall_cmds | |
13781 | ||
13782 | # Commands used to build a loadable module (assumed same as above if empty) | |
13783 | module_cmds=$lt_module_cmds_CXX | |
13784 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
13785 | ||
13786 | # Commands to strip libraries. | |
13787 | old_striplib=$lt_old_striplib | |
13788 | striplib=$lt_striplib | |
13789 | ||
13790 | # Dependencies to place before the objects being linked to create a | |
13791 | # shared library. | |
13792 | predep_objects=$lt_predep_objects_CXX | |
13793 | ||
13794 | # Dependencies to place after the objects being linked to create a | |
13795 | # shared library. | |
13796 | postdep_objects=$lt_postdep_objects_CXX | |
13797 | ||
13798 | # Dependencies to place before the objects being linked to create a | |
13799 | # shared library. | |
13800 | predeps=$lt_predeps_CXX | |
13801 | ||
13802 | # Dependencies to place after the objects being linked to create a | |
13803 | # shared library. | |
13804 | postdeps=$lt_postdeps_CXX | |
13805 | ||
13806 | # The library search path used internally by the compiler when linking | |
13807 | # a shared library. | |
13808 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
13809 | ||
13810 | # Method to check whether dependent libraries are shared objects. | |
13811 | deplibs_check_method=$lt_deplibs_check_method | |
13812 | ||
13813 | # Command to use when deplibs_check_method == file_magic. | |
13814 | file_magic_cmd=$lt_file_magic_cmd | |
13815 | ||
13816 | # Flag that allows shared libraries with undefined symbols to be built. | |
13817 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
13818 | ||
13819 | # Flag that forces no undefined symbols. | |
13820 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
13821 | ||
13822 | # Commands used to finish a libtool library installation in a directory. | |
13823 | finish_cmds=$lt_finish_cmds | |
13824 | ||
13825 | # Same as above, but a single script fragment to be evaled but not shown. | |
13826 | finish_eval=$lt_finish_eval | |
13827 | ||
13828 | # Take the output of nm and produce a listing of raw symbols and C names. | |
13829 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
13830 | ||
13831 | # Transform the output of nm in a proper C declaration | |
13832 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
13833 | ||
13834 | # Transform the output of nm in a C name address pair | |
13835 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
13836 | ||
13837 | # This is the shared library runtime path variable. | |
13838 | runpath_var=$runpath_var | |
13839 | ||
13840 | # This is the shared library path variable. | |
13841 | shlibpath_var=$shlibpath_var | |
13842 | ||
13843 | # Is shlibpath searched before the hard-coded library search path? | |
13844 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
13845 | ||
13846 | # How to hardcode a shared library path into an executable. | |
13847 | hardcode_action=$hardcode_action_CXX | |
13848 | ||
13849 | # Whether we should hardcode library paths into libraries. | |
13850 | hardcode_into_libs=$hardcode_into_libs | |
13851 | ||
13852 | # Flag to hardcode \$libdir into a binary during linking. | |
13853 | # This must work even if \$libdir does not exist. | |
13854 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
13855 | ||
13856 | # If ld is used when linking, flag to hardcode \$libdir into | |
13857 | # a binary during linking. This must work even if \$libdir does | |
13858 | # not exist. | |
13859 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
13860 | ||
13861 | # Whether we need a single -rpath flag with a separated argument. | |
13862 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
13863 | ||
13864 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
13865 | # resulting binary. | |
13866 | hardcode_direct=$hardcode_direct_CXX | |
13867 | ||
13868 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
13869 | # resulting binary. | |
13870 | hardcode_minus_L=$hardcode_minus_L_CXX | |
13871 | ||
13872 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
13873 | # the resulting binary. | |
13874 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
13875 | ||
13876 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
13877 | # and all subsequent libraries and executables linked against it. | |
13878 | hardcode_automatic=$hardcode_automatic_CXX | |
13879 | ||
13880 | # Variables whose values should be saved in libtool wrapper scripts and | |
13881 | # restored at relink time. | |
13882 | variables_saved_for_relink="$variables_saved_for_relink" | |
13883 | ||
13884 | # Whether libtool must link a program against all its dependency libraries. | |
13885 | link_all_deplibs=$link_all_deplibs_CXX | |
13886 | ||
13887 | # Compile-time system search path for libraries | |
13888 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
13889 | ||
13890 | # Run-time system search path for libraries | |
13891 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
13892 | ||
13893 | # Fix the shell variable \$srcfile for the compiler. | |
13894 | fix_srcfile_path="$fix_srcfile_path_CXX" | |
13895 | ||
13896 | # Set to yes if exported symbols are required. | |
13897 | always_export_symbols=$always_export_symbols_CXX | |
13898 | ||
13899 | # The commands to list exported symbols. | |
13900 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
13901 | ||
13902 | # The commands to extract the exported symbol list from a shared archive. | |
13903 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
13904 | ||
13905 | # Symbols that should not be listed in the preloaded symbols. | |
13906 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
13907 | ||
13908 | # Symbols that must always be exported. | |
13909 | include_expsyms=$lt_include_expsyms_CXX | |
13910 | ||
13911 | # ### END LIBTOOL TAG CONFIG: $tagname | |
13912 | ||
13913 | __EOF__ | |
13914 | ||
13915 | ||
13916 | else | |
13917 | # If there is no Makefile yet, we rely on a make rule to execute | |
13918 | # `config.status --recheck' to rerun these tests and create the | |
13919 | # libtool script then. | |
13920 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
13921 | if test -f "$ltmain_in"; then | |
13922 | test -f Makefile && make "$ltmain" | |
13923 | fi | |
13924 | fi | |
13925 | ||
13926 | ||
13927 | ac_ext=c | |
13928 | ac_cpp='$CPP $CPPFLAGS' | |
13929 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13930 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13931 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13932 | ||
13933 | CC=$lt_save_CC | |
13934 | LDCXX=$LD | |
13935 | LD=$lt_save_LD | |
13936 | GCC=$lt_save_GCC | |
13937 | with_gnu_ldcxx=$with_gnu_ld | |
13938 | with_gnu_ld=$lt_save_with_gnu_ld | |
13939 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
13940 | lt_cv_path_LD=$lt_save_path_LD | |
13941 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
13942 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
13943 | ||
13944 | else | |
13945 | tagname="" | |
13946 | fi | |
13947 | ;; | |
13948 | ||
13949 | F77) | |
13950 | if test -n "$F77" && test "X$F77" != "Xno"; then | |
13951 | ||
13952 | ac_ext=f | |
13953 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
13954 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13955 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
13956 | ||
13957 | ||
13958 | archive_cmds_need_lc_F77=no | |
13959 | allow_undefined_flag_F77= | |
13960 | always_export_symbols_F77=no | |
13961 | archive_expsym_cmds_F77= | |
13962 | export_dynamic_flag_spec_F77= | |
13963 | hardcode_direct_F77=no | |
13964 | hardcode_libdir_flag_spec_F77= | |
13965 | hardcode_libdir_flag_spec_ld_F77= | |
13966 | hardcode_libdir_separator_F77= | |
13967 | hardcode_minus_L_F77=no | |
13968 | hardcode_automatic_F77=no | |
13969 | module_cmds_F77= | |
13970 | module_expsym_cmds_F77= | |
13971 | link_all_deplibs_F77=unknown | |
13972 | old_archive_cmds_F77=$old_archive_cmds | |
13973 | no_undefined_flag_F77= | |
13974 | whole_archive_flag_spec_F77= | |
13975 | enable_shared_with_static_runtimes_F77=no | |
13976 | ||
13977 | # Source file extension for f77 test sources. | |
13978 | ac_ext=f | |
13979 | ||
13980 | # Object file extension for compiled f77 test sources. | |
13981 | objext=o | |
13982 | objext_F77=$objext | |
13983 | ||
13984 | # Code to be used in simple compile tests | |
13985 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" | |
13986 | ||
13987 | # Code to be used in simple link tests | |
13988 | lt_simple_link_test_code=" program t\n end\n" | |
13989 | ||
13990 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13991 | ||
13992 | # If no C compiler was specified, use CC. | |
13993 | LTCC=${LTCC-"$CC"} | |
13994 | ||
13995 | # If no C compiler flags were specified, use CFLAGS. | |
13996 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13997 | ||
13998 | # Allow CC to be a program name with arguments. | |
13999 | compiler=$CC | |
14000 | ||
14001 | ||
14002 | # save warnings/boilerplate of simple test code | |
14003 | ac_outfile=conftest.$ac_objext | |
14004 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
14005 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
14006 | _lt_compiler_boilerplate=`cat conftest.err` | |
14007 | $rm conftest* | |
14008 | ||
14009 | ac_outfile=conftest.$ac_objext | |
14010 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
14011 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
14012 | _lt_linker_boilerplate=`cat conftest.err` | |
14013 | $rm conftest* | |
14014 | ||
14015 | ||
14016 | # Allow CC to be a program name with arguments. | |
14017 | lt_save_CC="$CC" | |
14018 | CC=${F77-"f77"} | |
14019 | compiler=$CC | |
14020 | compiler_F77=$CC | |
14021 | for cc_temp in $compiler""; do | |
14022 | case $cc_temp in | |
14023 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
14024 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
14025 | \-*) ;; | |
14026 | *) break;; | |
14027 | esac | |
14028 | done | |
14029 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
14030 | ||
14031 | ||
14032 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
14033 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } | |
14034 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
14035 | echo "${ECHO_T}$can_build_shared" >&6; } | |
14036 | ||
14037 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
14038 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | |
14039 | test "$can_build_shared" = "no" && enable_shared=no | |
14040 | ||
14041 | # On AIX, shared libraries and static libraries use the same namespace, and | |
14042 | # are all built from PIC. | |
14043 | case $host_os in | |
14044 | aix3*) | |
14045 | test "$enable_shared" = yes && enable_static=no | |
14046 | if test -n "$RANLIB"; then | |
14047 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
14048 | postinstall_cmds='$RANLIB $lib' | |
14049 | fi | |
14050 | ;; | |
14051 | aix4* | aix5*) | |
14052 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
14053 | test "$enable_shared" = yes && enable_static=no | |
14054 | fi | |
14055 | ;; | |
14056 | esac | |
14057 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
14058 | echo "${ECHO_T}$enable_shared" >&6; } | |
14059 | ||
14060 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
14061 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } | |
14062 | # Make sure either enable_shared or enable_static is yes. | |
14063 | test "$enable_shared" = yes || enable_static=yes | |
14064 | { echo "$as_me:$LINENO: result: $enable_static" >&5 | |
14065 | echo "${ECHO_T}$enable_static" >&6; } | |
14066 | ||
14067 | GCC_F77="$G77" | |
14068 | LD_F77="$LD" | |
14069 | ||
14070 | lt_prog_compiler_wl_F77= | |
14071 | lt_prog_compiler_pic_F77= | |
14072 | lt_prog_compiler_static_F77= | |
14073 | ||
14074 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
14075 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
14076 | ||
14077 | if test "$GCC" = yes; then | |
14078 | lt_prog_compiler_wl_F77='-Wl,' | |
14079 | lt_prog_compiler_static_F77='-static' | |
14080 | ||
14081 | case $host_os in | |
14082 | aix*) | |
14083 | # All AIX code is PIC. | |
14084 | if test "$host_cpu" = ia64; then | |
14085 | # AIX 5 now supports IA64 processor | |
14086 | lt_prog_compiler_static_F77='-Bstatic' | |
14087 | fi | |
14088 | ;; | |
14089 | ||
14090 | amigaos*) | |
14091 | # FIXME: we need at least 68020 code to build shared libraries, but | |
14092 | # adding the `-m68020' flag to GCC prevents building anything better, | |
14093 | # like `-m68040'. | |
14094 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | |
14095 | ;; | |
14096 | ||
14097 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
14098 | # PIC is the default for these OSes. | |
14099 | ;; | |
14100 | ||
14101 | mingw* | pw32* | os2*) | |
14102 | # This hack is so that the source file can tell whether it is being | |
14103 | # built for inclusion in a dll (and should export symbols for example). | |
14104 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
14105 | ;; | |
14106 | ||
14107 | darwin* | rhapsody*) | |
14108 | # PIC is the default on this platform | |
14109 | # Common symbols not allowed in MH_DYLIB files | |
14110 | lt_prog_compiler_pic_F77='-fno-common' | |
14111 | ;; | |
14112 | ||
14113 | interix3*) | |
14114 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
14115 | # Instead, we relocate shared libraries at runtime. | |
14116 | ;; | |
14117 | ||
14118 | msdosdjgpp*) | |
14119 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
14120 | # on systems that don't support them. | |
14121 | lt_prog_compiler_can_build_shared_F77=no | |
14122 | enable_shared=no | |
14123 | ;; | |
14124 | ||
14125 | sysv4*MP*) | |
14126 | if test -d /usr/nec; then | |
14127 | lt_prog_compiler_pic_F77=-Kconform_pic | |
14128 | fi | |
14129 | ;; | |
14130 | ||
14131 | hpux*) | |
14132 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
14133 | # not for PA HP-UX. | |
14134 | case $host_cpu in | |
14135 | hppa*64*|ia64*) | |
14136 | # +Z the default | |
14137 | ;; | |
14138 | *) | |
14139 | lt_prog_compiler_pic_F77='-fPIC' | |
14140 | ;; | |
14141 | esac | |
14142 | ;; | |
14143 | ||
14144 | *) | |
14145 | lt_prog_compiler_pic_F77='-fPIC' | |
14146 | ;; | |
14147 | esac | |
14148 | else | |
14149 | # PORTME Check for flag to pass linker flags through the system compiler. | |
14150 | case $host_os in | |
14151 | aix*) | |
14152 | lt_prog_compiler_wl_F77='-Wl,' | |
14153 | if test "$host_cpu" = ia64; then | |
14154 | # AIX 5 now supports IA64 processor | |
14155 | lt_prog_compiler_static_F77='-Bstatic' | |
14156 | else | |
14157 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | |
14158 | fi | |
14159 | ;; | |
14160 | darwin*) | |
14161 | # PIC is the default on this platform | |
14162 | # Common symbols not allowed in MH_DYLIB files | |
14163 | case $cc_basename in | |
14164 | xlc*) | |
14165 | lt_prog_compiler_pic_F77='-qnocommon' | |
14166 | lt_prog_compiler_wl_F77='-Wl,' | |
14167 | ;; | |
14168 | esac | |
14169 | ;; | |
14170 | ||
14171 | mingw* | pw32* | os2*) | |
14172 | # This hack is so that the source file can tell whether it is being | |
14173 | # built for inclusion in a dll (and should export symbols for example). | |
14174 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
14175 | ;; | |
14176 | ||
14177 | hpux9* | hpux10* | hpux11*) | |
14178 | lt_prog_compiler_wl_F77='-Wl,' | |
14179 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
14180 | # not for PA HP-UX. | |
14181 | case $host_cpu in | |
14182 | hppa*64*|ia64*) | |
14183 | # +Z the default | |
14184 | ;; | |
14185 | *) | |
14186 | lt_prog_compiler_pic_F77='+Z' | |
14187 | ;; | |
14188 | esac | |
14189 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
14190 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | |
14191 | ;; | |
14192 | ||
14193 | irix5* | irix6* | nonstopux*) | |
14194 | lt_prog_compiler_wl_F77='-Wl,' | |
14195 | # PIC (with -KPIC) is the default. | |
14196 | lt_prog_compiler_static_F77='-non_shared' | |
14197 | ;; | |
14198 | ||
14199 | newsos6) | |
14200 | lt_prog_compiler_pic_F77='-KPIC' | |
14201 | lt_prog_compiler_static_F77='-Bstatic' | |
14202 | ;; | |
14203 | ||
14204 | linux* | k*bsd*-gnu) | |
14205 | case $cc_basename in | |
14206 | icc* | ecc*) | |
14207 | lt_prog_compiler_wl_F77='-Wl,' | |
14208 | lt_prog_compiler_pic_F77='-KPIC' | |
14209 | lt_prog_compiler_static_F77='-static' | |
14210 | ;; | |
14211 | pgcc* | pgf77* | pgf90* | pgf95*) | |
14212 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
14213 | # which looks to be a dead project) | |
14214 | lt_prog_compiler_wl_F77='-Wl,' | |
14215 | lt_prog_compiler_pic_F77='-fpic' | |
14216 | lt_prog_compiler_static_F77='-Bstatic' | |
14217 | ;; | |
14218 | ccc*) | |
14219 | lt_prog_compiler_wl_F77='-Wl,' | |
14220 | # All Alpha code is PIC. | |
14221 | lt_prog_compiler_static_F77='-non_shared' | |
14222 | ;; | |
14223 | esac | |
14224 | ;; | |
14225 | ||
14226 | osf3* | osf4* | osf5*) | |
14227 | lt_prog_compiler_wl_F77='-Wl,' | |
14228 | # All OSF/1 code is PIC. | |
14229 | lt_prog_compiler_static_F77='-non_shared' | |
14230 | ;; | |
14231 | ||
14232 | solaris*) | |
14233 | lt_prog_compiler_pic_F77='-KPIC' | |
14234 | lt_prog_compiler_static_F77='-Bstatic' | |
14235 | case $cc_basename in | |
14236 | f77* | f90* | f95*) | |
14237 | lt_prog_compiler_wl_F77='-Qoption ld ';; | |
14238 | *) | |
14239 | lt_prog_compiler_wl_F77='-Wl,';; | |
14240 | esac | |
14241 | ;; | |
14242 | ||
14243 | sunos4*) | |
14244 | lt_prog_compiler_wl_F77='-Qoption ld ' | |
14245 | lt_prog_compiler_pic_F77='-PIC' | |
14246 | lt_prog_compiler_static_F77='-Bstatic' | |
14247 | ;; | |
14248 | ||
14249 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
14250 | lt_prog_compiler_wl_F77='-Wl,' | |
14251 | lt_prog_compiler_pic_F77='-KPIC' | |
14252 | lt_prog_compiler_static_F77='-Bstatic' | |
14253 | ;; | |
14254 | ||
14255 | sysv4*MP*) | |
14256 | if test -d /usr/nec ;then | |
14257 | lt_prog_compiler_pic_F77='-Kconform_pic' | |
14258 | lt_prog_compiler_static_F77='-Bstatic' | |
14259 | fi | |
14260 | ;; | |
14261 | ||
14262 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14263 | lt_prog_compiler_wl_F77='-Wl,' | |
14264 | lt_prog_compiler_pic_F77='-KPIC' | |
14265 | lt_prog_compiler_static_F77='-Bstatic' | |
14266 | ;; | |
14267 | ||
14268 | unicos*) | |
14269 | lt_prog_compiler_wl_F77='-Wl,' | |
14270 | lt_prog_compiler_can_build_shared_F77=no | |
14271 | ;; | |
14272 | ||
14273 | uts4*) | |
14274 | lt_prog_compiler_pic_F77='-pic' | |
14275 | lt_prog_compiler_static_F77='-Bstatic' | |
14276 | ;; | |
14277 | ||
14278 | *) | |
14279 | lt_prog_compiler_can_build_shared_F77=no | |
14280 | ;; | |
14281 | esac | |
14282 | fi | |
14283 | ||
14284 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | |
14285 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } | |
14286 | ||
14287 | # | |
14288 | # Check to make sure the PIC flag actually works. | |
14289 | # | |
14290 | if test -n "$lt_prog_compiler_pic_F77"; then | |
14291 | ||
14292 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | |
14293 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } | |
14294 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | |
14295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14296 | else | |
14297 | lt_prog_compiler_pic_works_F77=no | |
14298 | ac_outfile=conftest.$ac_objext | |
14299 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14300 | lt_compiler_flag="$lt_prog_compiler_pic_F77" | |
14301 | # Insert the option either (1) after the last *FLAGS variable, or | |
14302 | # (2) before a word containing "conftest.", or (3) at the end. | |
14303 | # Note that $ac_compile itself does not contain backslashes and begins | |
14304 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14305 | # The option is referenced via a variable to avoid confusing sed. | |
14306 | lt_compile=`echo "$ac_compile" | $SED \ | |
14307 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14308 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14309 | -e 's:$: $lt_compiler_flag:'` | |
14310 | (eval echo "\"\$as_me:14310: $lt_compile\"" >&5) | |
14311 | (eval "$lt_compile" 2>conftest.err) | |
14312 | ac_status=$? | |
14313 | cat conftest.err >&5 | |
14314 | echo "$as_me:14314: \$? = $ac_status" >&5 | |
14315 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
14316 | # The compiler can only warn and ignore the option if not recognized | |
14317 | # So say no if there are warnings other than the usual output. | |
14318 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
14319 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14320 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
14321 | lt_prog_compiler_pic_works_F77=yes | |
14322 | fi | |
14323 | fi | |
14324 | $rm conftest* | |
14325 | ||
14326 | fi | |
14327 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | |
14328 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } | |
14329 | ||
14330 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | |
14331 | case $lt_prog_compiler_pic_F77 in | |
14332 | "" | " "*) ;; | |
14333 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | |
14334 | esac | |
14335 | else | |
14336 | lt_prog_compiler_pic_F77= | |
14337 | lt_prog_compiler_can_build_shared_F77=no | |
14338 | fi | |
14339 | ||
14340 | fi | |
14341 | case $host_os in | |
14342 | # For platforms which do not support PIC, -DPIC is meaningless: | |
14343 | *djgpp*) | |
14344 | lt_prog_compiler_pic_F77= | |
14345 | ;; | |
14346 | *) | |
14347 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | |
14348 | ;; | |
14349 | esac | |
14350 | ||
14351 | # | |
14352 | # Check to make sure the static flag actually works. | |
14353 | # | |
14354 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" | |
14355 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
14356 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
14357 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then | |
14358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14359 | else | |
14360 | lt_prog_compiler_static_works_F77=no | |
14361 | save_LDFLAGS="$LDFLAGS" | |
14362 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14363 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
14364 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14365 | # The linker can only warn and ignore the option if not recognized | |
14366 | # So say no if there are warnings | |
14367 | if test -s conftest.err; then | |
14368 | # Append any errors to the config.log. | |
14369 | cat conftest.err 1>&5 | |
14370 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
14371 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14372 | if diff conftest.exp conftest.er2 >/dev/null; then | |
14373 | lt_prog_compiler_static_works_F77=yes | |
14374 | fi | |
14375 | else | |
14376 | lt_prog_compiler_static_works_F77=yes | |
14377 | fi | |
14378 | fi | |
14379 | $rm conftest* | |
14380 | LDFLAGS="$save_LDFLAGS" | |
14381 | ||
14382 | fi | |
14383 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 | |
14384 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } | |
14385 | ||
14386 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then | |
14387 | : | |
14388 | else | |
14389 | lt_prog_compiler_static_F77= | |
14390 | fi | |
14391 | ||
14392 | ||
14393 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14394 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
14395 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | |
14396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14397 | else | |
14398 | lt_cv_prog_compiler_c_o_F77=no | |
14399 | $rm -r conftest 2>/dev/null | |
14400 | mkdir conftest | |
14401 | cd conftest | |
14402 | mkdir out | |
14403 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14404 | ||
14405 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14406 | # Insert the option either (1) after the last *FLAGS variable, or | |
14407 | # (2) before a word containing "conftest.", or (3) at the end. | |
14408 | # Note that $ac_compile itself does not contain backslashes and begins | |
14409 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14410 | lt_compile=`echo "$ac_compile" | $SED \ | |
14411 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14412 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14413 | -e 's:$: $lt_compiler_flag:'` | |
14414 | (eval echo "\"\$as_me:14414: $lt_compile\"" >&5) | |
14415 | (eval "$lt_compile" 2>out/conftest.err) | |
14416 | ac_status=$? | |
14417 | cat out/conftest.err >&5 | |
14418 | echo "$as_me:14418: \$? = $ac_status" >&5 | |
14419 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14420 | then | |
14421 | # The compiler can only warn and ignore the option if not recognized | |
14422 | # So say no if there are warnings | |
14423 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
14424 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14425 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14426 | lt_cv_prog_compiler_c_o_F77=yes | |
14427 | fi | |
14428 | fi | |
14429 | chmod u+w . 2>&5 | |
14430 | $rm conftest* | |
14431 | # SGI C++ compiler will create directory out/ii_files/ for | |
14432 | # template instantiation | |
14433 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
14434 | $rm out/* && rmdir out | |
14435 | cd .. | |
14436 | rmdir conftest | |
14437 | $rm conftest* | |
14438 | ||
14439 | fi | |
14440 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | |
14441 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } | |
14442 | ||
14443 | ||
14444 | hard_links="nottested" | |
14445 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | |
14446 | # do not overwrite the value of need_locks provided by the user | |
14447 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
14448 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
14449 | hard_links=yes | |
14450 | $rm conftest* | |
14451 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14452 | touch conftest.a | |
14453 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14454 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14455 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
14456 | echo "${ECHO_T}$hard_links" >&6; } | |
14457 | if test "$hard_links" = no; then | |
14458 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
14459 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
14460 | need_locks=warn | |
14461 | fi | |
14462 | else | |
14463 | need_locks=no | |
14464 | fi | |
14465 | ||
14466 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
14467 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
14468 | ||
14469 | runpath_var= | |
14470 | allow_undefined_flag_F77= | |
14471 | enable_shared_with_static_runtimes_F77=no | |
14472 | archive_cmds_F77= | |
14473 | archive_expsym_cmds_F77= | |
14474 | old_archive_From_new_cmds_F77= | |
14475 | old_archive_from_expsyms_cmds_F77= | |
14476 | export_dynamic_flag_spec_F77= | |
14477 | whole_archive_flag_spec_F77= | |
14478 | thread_safe_flag_spec_F77= | |
14479 | hardcode_libdir_flag_spec_F77= | |
14480 | hardcode_libdir_flag_spec_ld_F77= | |
14481 | hardcode_libdir_separator_F77= | |
14482 | hardcode_direct_F77=no | |
14483 | hardcode_minus_L_F77=no | |
14484 | hardcode_shlibpath_var_F77=unsupported | |
14485 | link_all_deplibs_F77=unknown | |
14486 | hardcode_automatic_F77=no | |
14487 | module_cmds_F77= | |
14488 | module_expsym_cmds_F77= | |
14489 | always_export_symbols_F77=no | |
14490 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14491 | # include_expsyms should be a list of space-separated symbols to be *always* | |
14492 | # included in the symbol list | |
14493 | include_expsyms_F77= | |
14494 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
14495 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
14496 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
14497 | # as well as any symbol that contains `d'. | |
14498 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | |
14499 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
14500 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
14501 | # the symbol is explicitly referenced. Since portable code cannot | |
14502 | # rely on this symbol name, it's probably fine to never include it in | |
14503 | # preloaded symbol tables. | |
14504 | extract_expsyms_cmds= | |
14505 | # Just being paranoid about ensuring that cc_basename is set. | |
14506 | for cc_temp in $compiler""; do | |
14507 | case $cc_temp in | |
14508 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
14509 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
14510 | \-*) ;; | |
14511 | *) break;; | |
14512 | esac | |
14513 | done | |
14514 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
14515 | ||
14516 | case $host_os in | |
14517 | cygwin* | mingw* | pw32*) | |
14518 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
14519 | # When not using gcc, we currently assume that we are using | |
14520 | # Microsoft Visual C++. | |
14521 | if test "$GCC" != yes; then | |
14522 | with_gnu_ld=no | |
14523 | fi | |
14524 | ;; | |
14525 | interix*) | |
14526 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
14527 | with_gnu_ld=yes | |
14528 | ;; | |
14529 | openbsd*) | |
14530 | with_gnu_ld=no | |
14531 | ;; | |
14532 | esac | |
14533 | ||
14534 | ld_shlibs_F77=yes | |
14535 | if test "$with_gnu_ld" = yes; then | |
14536 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
14537 | wlarc='${wl}' | |
14538 | ||
14539 | # Set some defaults for GNU ld with shared library support. These | |
14540 | # are reset later if shared libraries are not supported. Putting them | |
14541 | # here allows them to be overridden if necessary. | |
14542 | runpath_var=LD_RUN_PATH | |
14543 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | |
14544 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' | |
14545 | # ancient GNU ld didn't support --whole-archive et. al. | |
14546 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
14547 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
14548 | else | |
14549 | whole_archive_flag_spec_F77= | |
14550 | fi | |
14551 | supports_anon_versioning=no | |
14552 | case `$LD -v 2>/dev/null` in | |
14553 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
14554 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
14555 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
14556 | *\ 2.11.*) ;; # other 2.11 versions | |
14557 | *) supports_anon_versioning=yes ;; | |
14558 | esac | |
14559 | ||
14560 | # See if GNU ld supports shared libraries. | |
14561 | case $host_os in | |
14562 | aix3* | aix4* | aix5*) | |
14563 | # On AIX/PPC, the GNU linker is very broken | |
14564 | if test "$host_cpu" != ia64; then | |
14565 | ld_shlibs_F77=no | |
14566 | cat <<EOF 1>&2 | |
14567 | ||
14568 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
14569 | *** to be unable to reliably create shared libraries on AIX. | |
14570 | *** Therefore, libtool is disabling shared libraries support. If you | |
14571 | *** really care for shared libraries, you may want to modify your PATH | |
14572 | *** so that a non-GNU linker is found, and then restart. | |
14573 | ||
14574 | EOF | |
14575 | fi | |
14576 | ;; | |
14577 | ||
14578 | amigaos*) | |
14579 | 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)' | |
14580 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14581 | hardcode_minus_L_F77=yes | |
14582 | ||
14583 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
14584 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
14585 | # to version 4, is to share data among multiple programs linked | |
14586 | # with the same dynamic library. Since this doesn't match the | |
14587 | # behavior of shared libraries on other platforms, we can't use | |
14588 | # them. | |
14589 | ld_shlibs_F77=no | |
14590 | ;; | |
14591 | ||
14592 | beos*) | |
14593 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14594 | allow_undefined_flag_F77=unsupported | |
14595 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
14596 | # support --undefined. This deserves some investigation. FIXME | |
14597 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14598 | else | |
14599 | ld_shlibs_F77=no | |
14600 | fi | |
14601 | ;; | |
14602 | ||
14603 | cygwin* | mingw* | pw32*) | |
14604 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | |
14605 | # as there is no search path for DLLs. | |
14606 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14607 | allow_undefined_flag_F77=unsupported | |
14608 | always_export_symbols_F77=no | |
14609 | enable_shared_with_static_runtimes_F77=yes | |
14610 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
14611 | ||
14612 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
14613 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14614 | # If the export-symbols file already is a .def file (1st line | |
14615 | # is EXPORTS), use it as is; otherwise, prepend... | |
14616 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
14617 | cp $export_symbols $output_objdir/$soname.def; | |
14618 | else | |
14619 | echo EXPORTS > $output_objdir/$soname.def; | |
14620 | cat $export_symbols >> $output_objdir/$soname.def; | |
14621 | fi~ | |
14622 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14623 | else | |
14624 | ld_shlibs_F77=no | |
14625 | fi | |
14626 | ;; | |
14627 | ||
14628 | interix3*) | |
14629 | hardcode_direct_F77=no | |
14630 | hardcode_shlibpath_var_F77=no | |
14631 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
14632 | export_dynamic_flag_spec_F77='${wl}-E' | |
14633 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
14634 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
14635 | # default) and relocated if they conflict, which is a slow very memory | |
14636 | # consuming and fragmenting process. To avoid this, we pick a random, | |
14637 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
14638 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
14639 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
14640 | archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
14641 | ;; | |
14642 | ||
14643 | linux* | k*bsd*-gnu) | |
14644 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14645 | tmp_addflag= | |
14646 | case $cc_basename,$host_cpu in | |
14647 | pgcc*) # Portland Group C compiler | |
14648 | 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' | |
14649 | tmp_addflag=' $pic_flag' | |
14650 | ;; | |
14651 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
14652 | 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' | |
14653 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
14654 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
14655 | tmp_addflag=' -i_dynamic' ;; | |
14656 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
14657 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
14658 | ifc* | ifort*) # Intel Fortran compiler | |
14659 | tmp_addflag=' -nofor_main' ;; | |
14660 | esac | |
14661 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14662 | ||
14663 | if test $supports_anon_versioning = yes; then | |
14664 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | |
14665 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14666 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14667 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
14668 | fi | |
14669 | link_all_deplibs_F77=no | |
14670 | else | |
14671 | ld_shlibs_F77=no | |
14672 | fi | |
14673 | ;; | |
14674 | ||
14675 | netbsd* | netbsdelf*-gnu) | |
14676 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
14677 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
14678 | wlarc= | |
14679 | else | |
14680 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14681 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14682 | fi | |
14683 | ;; | |
14684 | ||
14685 | solaris*) | |
14686 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
14687 | ld_shlibs_F77=no | |
14688 | cat <<EOF 1>&2 | |
14689 | ||
14690 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
14691 | *** create shared libraries on Solaris systems. Therefore, libtool | |
14692 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14693 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
14694 | *** your PATH or compiler configuration so that the native linker is | |
14695 | *** used, and then restart. | |
14696 | ||
14697 | EOF | |
14698 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14699 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14700 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14701 | else | |
14702 | ld_shlibs_F77=no | |
14703 | fi | |
14704 | ;; | |
14705 | ||
14706 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
14707 | case `$LD -v 2>&1` in | |
14708 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
14709 | ld_shlibs_F77=no | |
14710 | cat <<_LT_EOF 1>&2 | |
14711 | ||
14712 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
14713 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
14714 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14715 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
14716 | *** your PATH or compiler configuration so that the native linker is | |
14717 | *** used, and then restart. | |
14718 | ||
14719 | _LT_EOF | |
14720 | ;; | |
14721 | *) | |
14722 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14723 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
14724 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
14725 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
14726 | else | |
14727 | ld_shlibs_F77=no | |
14728 | fi | |
14729 | ;; | |
14730 | esac | |
14731 | ;; | |
14732 | ||
14733 | sunos4*) | |
14734 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14735 | wlarc= | |
14736 | hardcode_direct_F77=yes | |
14737 | hardcode_shlibpath_var_F77=no | |
14738 | ;; | |
14739 | ||
14740 | *) | |
14741 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14742 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14743 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14744 | else | |
14745 | ld_shlibs_F77=no | |
14746 | fi | |
14747 | ;; | |
14748 | esac | |
14749 | ||
14750 | if test "$ld_shlibs_F77" = no; then | |
14751 | runpath_var= | |
14752 | hardcode_libdir_flag_spec_F77= | |
14753 | export_dynamic_flag_spec_F77= | |
14754 | whole_archive_flag_spec_F77= | |
14755 | fi | |
14756 | else | |
14757 | # PORTME fill in a description of your system's linker (not GNU ld) | |
14758 | case $host_os in | |
14759 | aix3*) | |
14760 | allow_undefined_flag_F77=unsupported | |
14761 | always_export_symbols_F77=yes | |
14762 | 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' | |
14763 | # Note: this linker hardcodes the directories in LIBPATH if there | |
14764 | # are no directories specified by -L. | |
14765 | hardcode_minus_L_F77=yes | |
14766 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
14767 | # Neither direct hardcoding nor static linking is supported with a | |
14768 | # broken collect2. | |
14769 | hardcode_direct_F77=unsupported | |
14770 | fi | |
14771 | ;; | |
14772 | ||
14773 | aix4* | aix5*) | |
14774 | if test "$host_cpu" = ia64; then | |
14775 | # On IA64, the linker does run time linking by default, so we don't | |
14776 | # have to do anything special. | |
14777 | aix_use_runtimelinking=no | |
14778 | exp_sym_flag='-Bexport' | |
14779 | no_entry_flag="" | |
14780 | else | |
14781 | # If we're using GNU nm, then we don't want the "-C" option. | |
14782 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
14783 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
14784 | 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' | |
14785 | else | |
14786 | 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' | |
14787 | fi | |
14788 | aix_use_runtimelinking=no | |
14789 | ||
14790 | # Test if we are trying to use run time linking or normal | |
14791 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
14792 | # need to do runtime linking. | |
14793 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
14794 | for ld_flag in $LDFLAGS; do | |
14795 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
14796 | aix_use_runtimelinking=yes | |
14797 | break | |
14798 | fi | |
14799 | done | |
14800 | ;; | |
14801 | esac | |
14802 | ||
14803 | exp_sym_flag='-bexport' | |
14804 | no_entry_flag='-bnoentry' | |
14805 | fi | |
14806 | ||
14807 | # When large executables or shared objects are built, AIX ld can | |
14808 | # have problems creating the table of contents. If linking a library | |
14809 | # or program results in "error TOC overflow" add -mminimal-toc to | |
14810 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
14811 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
14812 | ||
14813 | archive_cmds_F77='' | |
14814 | hardcode_direct_F77=yes | |
14815 | hardcode_libdir_separator_F77=':' | |
14816 | link_all_deplibs_F77=yes | |
14817 | ||
14818 | if test "$GCC" = yes; then | |
14819 | case $host_os in aix4.[012]|aix4.[012].*) | |
14820 | # We only want to do this on AIX 4.2 and lower, the check | |
14821 | # below for broken collect2 doesn't work under 4.3+ | |
14822 | collect2name=`${CC} -print-prog-name=collect2` | |
14823 | if test -f "$collect2name" && \ | |
14824 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
14825 | then | |
14826 | # We have reworked collect2 | |
14827 | hardcode_direct_F77=yes | |
14828 | else | |
14829 | # We have old collect2 | |
14830 | hardcode_direct_F77=unsupported | |
14831 | # It fails to find uninstalled libraries when the uninstalled | |
14832 | # path is not listed in the libpath. Setting hardcode_minus_L | |
14833 | # to unsupported forces relinking | |
14834 | hardcode_minus_L_F77=yes | |
14835 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14836 | hardcode_libdir_separator_F77= | |
14837 | fi | |
14838 | ;; | |
14839 | esac | |
14840 | shared_flag='-shared' | |
14841 | if test "$aix_use_runtimelinking" = yes; then | |
14842 | shared_flag="$shared_flag "'${wl}-G' | |
14843 | fi | |
14844 | else | |
14845 | # not using gcc | |
14846 | if test "$host_cpu" = ia64; then | |
14847 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
14848 | # chokes on -Wl,-G. The following line is correct: | |
14849 | shared_flag='-G' | |
14850 | else | |
14851 | if test "$aix_use_runtimelinking" = yes; then | |
14852 | shared_flag='${wl}-G' | |
14853 | else | |
14854 | shared_flag='${wl}-bM:SRE' | |
14855 | fi | |
14856 | fi | |
14857 | fi | |
14858 | ||
14859 | # It seems that -bexpall does not export symbols beginning with | |
14860 | # underscore (_), so it is better to generate a list of symbols to export. | |
14861 | always_export_symbols_F77=yes | |
14862 | if test "$aix_use_runtimelinking" = yes; then | |
14863 | # Warning - without using the other runtime loading flags (-brtl), | |
14864 | # -berok will link without error, but may produce a broken library. | |
14865 | allow_undefined_flag_F77='-berok' | |
14866 | # Determine the default libpath from the value encoded in an empty executable. | |
14867 | cat >conftest.$ac_ext <<_ACEOF | |
14868 | program main | |
14869 | ||
14870 | end | |
14871 | _ACEOF | |
14872 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14873 | if { (ac_try="$ac_link" | |
14874 | case "(($ac_try" in | |
14875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14876 | *) ac_try_echo=$ac_try;; | |
14877 | esac | |
14878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14879 | (eval "$ac_link") 2>conftest.er1 | |
14880 | ac_status=$? | |
14881 | grep -v '^ *+' conftest.er1 >conftest.err | |
14882 | rm -f conftest.er1 | |
14883 | cat conftest.err >&5 | |
14884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14885 | (exit $ac_status); } && | |
14886 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | |
14887 | { (case "(($ac_try" in | |
14888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14889 | *) ac_try_echo=$ac_try;; | |
14890 | esac | |
14891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14892 | (eval "$ac_try") 2>&5 | |
14893 | ac_status=$? | |
14894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14895 | (exit $ac_status); }; } && | |
14896 | { ac_try='test -s conftest$ac_exeext' | |
14897 | { (case "(($ac_try" in | |
14898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14899 | *) ac_try_echo=$ac_try;; | |
14900 | esac | |
14901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14902 | (eval "$ac_try") 2>&5 | |
14903 | ac_status=$? | |
14904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14905 | (exit $ac_status); }; }; then | |
14906 | ||
14907 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14908 | }'` | |
14909 | # Check for a 64-bit object if we didn't find anything. | |
14910 | 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; } | |
14911 | }'`; fi | |
14912 | else | |
14913 | echo "$as_me: failed program was:" >&5 | |
14914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14915 | ||
14916 | ||
14917 | fi | |
14918 | ||
14919 | rm -f core conftest.err conftest.$ac_objext \ | |
14920 | conftest$ac_exeext conftest.$ac_ext | |
14921 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
14922 | ||
14923 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14924 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
14925 | else | |
14926 | if test "$host_cpu" = ia64; then | |
14927 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | |
14928 | allow_undefined_flag_F77="-z nodefs" | |
14929 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
14930 | else | |
14931 | # Determine the default libpath from the value encoded in an empty executable. | |
14932 | cat >conftest.$ac_ext <<_ACEOF | |
14933 | program main | |
14934 | ||
14935 | end | |
14936 | _ACEOF | |
14937 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14938 | if { (ac_try="$ac_link" | |
14939 | case "(($ac_try" in | |
14940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14941 | *) ac_try_echo=$ac_try;; | |
14942 | esac | |
14943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14944 | (eval "$ac_link") 2>conftest.er1 | |
14945 | ac_status=$? | |
14946 | grep -v '^ *+' conftest.er1 >conftest.err | |
14947 | rm -f conftest.er1 | |
14948 | cat conftest.err >&5 | |
14949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14950 | (exit $ac_status); } && | |
14951 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | |
14952 | { (case "(($ac_try" in | |
14953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14954 | *) ac_try_echo=$ac_try;; | |
14955 | esac | |
14956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14957 | (eval "$ac_try") 2>&5 | |
14958 | ac_status=$? | |
14959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14960 | (exit $ac_status); }; } && | |
14961 | { ac_try='test -s conftest$ac_exeext' | |
14962 | { (case "(($ac_try" in | |
14963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14964 | *) ac_try_echo=$ac_try;; | |
14965 | esac | |
14966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14967 | (eval "$ac_try") 2>&5 | |
14968 | ac_status=$? | |
14969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14970 | (exit $ac_status); }; }; then | |
14971 | ||
14972 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14973 | }'` | |
14974 | # Check for a 64-bit object if we didn't find anything. | |
14975 | 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; } | |
14976 | }'`; fi | |
14977 | else | |
14978 | echo "$as_me: failed program was:" >&5 | |
14979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14980 | ||
14981 | ||
14982 | fi | |
14983 | ||
14984 | rm -f core conftest.err conftest.$ac_objext \ | |
14985 | conftest$ac_exeext conftest.$ac_ext | |
14986 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
14987 | ||
14988 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14989 | # Warning - without using the other run time loading flags, | |
14990 | # -berok will link without error, but may produce a broken library. | |
14991 | no_undefined_flag_F77=' ${wl}-bernotok' | |
14992 | allow_undefined_flag_F77=' ${wl}-berok' | |
14993 | # Exported symbols can be pulled into shared objects from archives | |
14994 | whole_archive_flag_spec_F77='$convenience' | |
14995 | archive_cmds_need_lc_F77=yes | |
14996 | # This is similar to how AIX traditionally builds its shared libraries. | |
14997 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
14998 | fi | |
14999 | fi | |
15000 | ;; | |
15001 | ||
15002 | amigaos*) | |
15003 | 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)' | |
15004 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
15005 | hardcode_minus_L_F77=yes | |
15006 | # see comment about different semantics on the GNU ld section | |
15007 | ld_shlibs_F77=no | |
15008 | ;; | |
15009 | ||
15010 | bsdi[45]*) | |
15011 | export_dynamic_flag_spec_F77=-rdynamic | |
15012 | ;; | |
15013 | ||
15014 | cygwin* | mingw* | pw32*) | |
15015 | # When not using gcc, we currently assume that we are using | |
15016 | # Microsoft Visual C++. | |
15017 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
15018 | # no search path for DLLs. | |
15019 | hardcode_libdir_flag_spec_F77=' ' | |
15020 | allow_undefined_flag_F77=unsupported | |
15021 | # Tell ltmain to make .lib files, not .a files. | |
15022 | libext=lib | |
15023 | # Tell ltmain to make .dll files, not .so files. | |
15024 | shrext_cmds=".dll" | |
15025 | # FIXME: Setting linknames here is a bad hack. | |
15026 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
15027 | # The linker will automatically build a .lib file if we build a DLL. | |
15028 | old_archive_From_new_cmds_F77='true' | |
15029 | # FIXME: Should let the user specify the lib program. | |
15030 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
15031 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' | |
15032 | enable_shared_with_static_runtimes_F77=yes | |
15033 | ;; | |
15034 | ||
15035 | darwin* | rhapsody*) | |
15036 | case $host_os in | |
15037 | rhapsody* | darwin1.[012]) | |
15038 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | |
15039 | ;; | |
15040 | *) # Darwin 1.3 on | |
15041 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
15042 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
15043 | else | |
15044 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
15045 | 10.[012]) | |
15046 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
15047 | ;; | |
15048 | 10.*) | |
15049 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | |
15050 | ;; | |
15051 | esac | |
15052 | fi | |
15053 | ;; | |
15054 | esac | |
15055 | archive_cmds_need_lc_F77=no | |
15056 | hardcode_direct_F77=no | |
15057 | hardcode_automatic_F77=yes | |
15058 | hardcode_shlibpath_var_F77=unsupported | |
15059 | whole_archive_flag_spec_F77='' | |
15060 | link_all_deplibs_F77=yes | |
15061 | if test "$GCC" = yes ; then | |
15062 | output_verbose_link_cmd='echo' | |
15063 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
15064 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
15065 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
15066 | 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}' | |
15067 | 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}' | |
15068 | else | |
15069 | case $cc_basename in | |
15070 | xlc*) | |
15071 | output_verbose_link_cmd='echo' | |
15072 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
15073 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
15074 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
15075 | 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}' | |
15076 | 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}' | |
15077 | ;; | |
15078 | *) | |
15079 | ld_shlibs_F77=no | |
15080 | ;; | |
15081 | esac | |
15082 | fi | |
15083 | ;; | |
15084 | ||
15085 | dgux*) | |
15086 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15087 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
15088 | hardcode_shlibpath_var_F77=no | |
15089 | ;; | |
15090 | ||
15091 | freebsd1*) | |
15092 | ld_shlibs_F77=no | |
15093 | ;; | |
15094 | ||
15095 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
15096 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
15097 | # does not break anything, and helps significantly (at the cost of a little | |
15098 | # extra space). | |
15099 | freebsd2.2*) | |
15100 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
15101 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
15102 | hardcode_direct_F77=yes | |
15103 | hardcode_shlibpath_var_F77=no | |
15104 | ;; | |
15105 | ||
15106 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
15107 | freebsd2*) | |
15108 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
15109 | hardcode_direct_F77=yes | |
15110 | hardcode_minus_L_F77=yes | |
15111 | hardcode_shlibpath_var_F77=no | |
15112 | ;; | |
15113 | ||
15114 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
15115 | freebsd* | dragonfly*) | |
15116 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
15117 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
15118 | hardcode_direct_F77=yes | |
15119 | hardcode_shlibpath_var_F77=no | |
15120 | ;; | |
15121 | ||
15122 | hpux9*) | |
15123 | if test "$GCC" = yes; then | |
15124 | 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' | |
15125 | else | |
15126 | 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' | |
15127 | fi | |
15128 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
15129 | hardcode_libdir_separator_F77=: | |
15130 | hardcode_direct_F77=yes | |
15131 | ||
15132 | # hardcode_minus_L: Not really in the search PATH, | |
15133 | # but as the default location of the library. | |
15134 | hardcode_minus_L_F77=yes | |
15135 | export_dynamic_flag_spec_F77='${wl}-E' | |
15136 | ;; | |
15137 | ||
15138 | hpux10*) | |
15139 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
15140 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
15141 | else | |
15142 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
15143 | fi | |
15144 | if test "$with_gnu_ld" = no; then | |
15145 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
15146 | hardcode_libdir_separator_F77=: | |
15147 | ||
15148 | hardcode_direct_F77=yes | |
15149 | export_dynamic_flag_spec_F77='${wl}-E' | |
15150 | ||
15151 | # hardcode_minus_L: Not really in the search PATH, | |
15152 | # but as the default location of the library. | |
15153 | hardcode_minus_L_F77=yes | |
15154 | fi | |
15155 | ;; | |
15156 | ||
15157 | hpux11*) | |
15158 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
15159 | case $host_cpu in | |
15160 | hppa*64*) | |
15161 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15162 | ;; | |
15163 | ia64*) | |
15164 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
15165 | ;; | |
15166 | *) | |
15167 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
15168 | ;; | |
15169 | esac | |
15170 | else | |
15171 | case $host_cpu in | |
15172 | hppa*64*) | |
15173 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15174 | ;; | |
15175 | ia64*) | |
15176 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
15177 | ;; | |
15178 | *) | |
15179 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
15180 | ;; | |
15181 | esac | |
15182 | fi | |
15183 | if test "$with_gnu_ld" = no; then | |
15184 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
15185 | hardcode_libdir_separator_F77=: | |
15186 | ||
15187 | case $host_cpu in | |
15188 | hppa*64*|ia64*) | |
15189 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' | |
15190 | hardcode_direct_F77=no | |
15191 | hardcode_shlibpath_var_F77=no | |
15192 | ;; | |
15193 | *) | |
15194 | hardcode_direct_F77=yes | |
15195 | export_dynamic_flag_spec_F77='${wl}-E' | |
15196 | ||
15197 | # hardcode_minus_L: Not really in the search PATH, | |
15198 | # but as the default location of the library. | |
15199 | hardcode_minus_L_F77=yes | |
15200 | ;; | |
15201 | esac | |
15202 | fi | |
15203 | ;; | |
15204 | ||
15205 | irix5* | irix6* | nonstopux*) | |
15206 | if test "$GCC" = yes; then | |
15207 | 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' | |
15208 | else | |
15209 | 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' | |
15210 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | |
15211 | fi | |
15212 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
15213 | hardcode_libdir_separator_F77=: | |
15214 | link_all_deplibs_F77=yes | |
15215 | ;; | |
15216 | ||
15217 | netbsd* | netbsdelf*-gnu) | |
15218 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
15219 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
15220 | else | |
15221 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
15222 | fi | |
15223 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
15224 | hardcode_direct_F77=yes | |
15225 | hardcode_shlibpath_var_F77=no | |
15226 | ;; | |
15227 | ||
15228 | newsos6) | |
15229 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15230 | hardcode_direct_F77=yes | |
15231 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
15232 | hardcode_libdir_separator_F77=: | |
15233 | hardcode_shlibpath_var_F77=no | |
15234 | ;; | |
15235 | ||
15236 | openbsd*) | |
15237 | hardcode_direct_F77=yes | |
15238 | hardcode_shlibpath_var_F77=no | |
15239 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15240 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
15241 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
15242 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
15243 | export_dynamic_flag_spec_F77='${wl}-E' | |
15244 | else | |
15245 | case $host_os in | |
15246 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
15247 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
15248 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
15249 | ;; | |
15250 | *) | |
15251 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
15252 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
15253 | ;; | |
15254 | esac | |
15255 | fi | |
15256 | ;; | |
15257 | ||
15258 | os2*) | |
15259 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
15260 | hardcode_minus_L_F77=yes | |
15261 | allow_undefined_flag_F77=unsupported | |
15262 | 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' | |
15263 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
15264 | ;; | |
15265 | ||
15266 | osf3*) | |
15267 | if test "$GCC" = yes; then | |
15268 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
15269 | 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' | |
15270 | else | |
15271 | allow_undefined_flag_F77=' -expect_unresolved \*' | |
15272 | 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' | |
15273 | fi | |
15274 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
15275 | hardcode_libdir_separator_F77=: | |
15276 | ;; | |
15277 | ||
15278 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
15279 | if test "$GCC" = yes; then | |
15280 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
15281 | 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' | |
15282 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
15283 | else | |
15284 | allow_undefined_flag_F77=' -expect_unresolved \*' | |
15285 | 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' | |
15286 | 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~ | |
15287 | $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' | |
15288 | ||
15289 | # Both c and cxx compiler support -rpath directly | |
15290 | hardcode_libdir_flag_spec_F77='-rpath $libdir' | |
15291 | fi | |
15292 | hardcode_libdir_separator_F77=: | |
15293 | ;; | |
15294 | ||
15295 | solaris*) | |
15296 | no_undefined_flag_F77=' -z text' | |
15297 | if test "$GCC" = yes; then | |
15298 | wlarc='${wl}' | |
15299 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15300 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
15301 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
15302 | else | |
15303 | wlarc='' | |
15304 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15305 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
15306 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
15307 | fi | |
15308 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
15309 | hardcode_shlibpath_var_F77=no | |
15310 | case $host_os in | |
15311 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
15312 | *) | |
15313 | # The compiler driver will combine linker options so we | |
15314 | # cannot just pass the convience library names through | |
15315 | # without $wl, iff we do not link with $LD. | |
15316 | # Luckily, gcc supports the same syntax we need for Sun Studio. | |
15317 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
15318 | case $wlarc in | |
15319 | '') | |
15320 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | |
15321 | *) | |
15322 | 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' ;; | |
15323 | esac ;; | |
15324 | esac | |
15325 | link_all_deplibs_F77=yes | |
15326 | ;; | |
15327 | ||
15328 | sunos4*) | |
15329 | if test "x$host_vendor" = xsequent; then | |
15330 | # Use $CC to link under sequent, because it throws in some extra .o | |
15331 | # files that make .init and .fini sections work. | |
15332 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
15333 | else | |
15334 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
15335 | fi | |
15336 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
15337 | hardcode_direct_F77=yes | |
15338 | hardcode_minus_L_F77=yes | |
15339 | hardcode_shlibpath_var_F77=no | |
15340 | ;; | |
15341 | ||
15342 | sysv4) | |
15343 | case $host_vendor in | |
15344 | sni) | |
15345 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15346 | hardcode_direct_F77=yes # is this really true??? | |
15347 | ;; | |
15348 | siemens) | |
15349 | ## LD is ld it makes a PLAMLIB | |
15350 | ## CC just makes a GrossModule. | |
15351 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
15352 | reload_cmds_F77='$CC -r -o $output$reload_objs' | |
15353 | hardcode_direct_F77=no | |
15354 | ;; | |
15355 | motorola) | |
15356 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15357 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | |
15358 | ;; | |
15359 | esac | |
15360 | runpath_var='LD_RUN_PATH' | |
15361 | hardcode_shlibpath_var_F77=no | |
15362 | ;; | |
15363 | ||
15364 | sysv4.3*) | |
15365 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15366 | hardcode_shlibpath_var_F77=no | |
15367 | export_dynamic_flag_spec_F77='-Bexport' | |
15368 | ;; | |
15369 | ||
15370 | sysv4*MP*) | |
15371 | if test -d /usr/nec; then | |
15372 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15373 | hardcode_shlibpath_var_F77=no | |
15374 | runpath_var=LD_RUN_PATH | |
15375 | hardcode_runpath_var=yes | |
15376 | ld_shlibs_F77=yes | |
15377 | fi | |
15378 | ;; | |
15379 | ||
15380 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | |
15381 | no_undefined_flag_F77='${wl}-z,text' | |
15382 | archive_cmds_need_lc_F77=no | |
15383 | hardcode_shlibpath_var_F77=no | |
15384 | runpath_var='LD_RUN_PATH' | |
15385 | ||
15386 | if test "$GCC" = yes; then | |
15387 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15388 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15389 | else | |
15390 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15391 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15392 | fi | |
15393 | ;; | |
15394 | ||
15395 | sysv5* | sco3.2v5* | sco5v6*) | |
15396 | # Note: We can NOT use -z defs as we might desire, because we do not | |
15397 | # link with -lc, and that would cause any symbols used from libc to | |
15398 | # always be unresolved, which means just about no library would | |
15399 | # ever link correctly. If we're not using GNU ld we use -z text | |
15400 | # though, which does catch some bad symbols but isn't as heavy-handed | |
15401 | # as -z defs. | |
15402 | no_undefined_flag_F77='${wl}-z,text' | |
15403 | allow_undefined_flag_F77='${wl}-z,nodefs' | |
15404 | archive_cmds_need_lc_F77=no | |
15405 | hardcode_shlibpath_var_F77=no | |
15406 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
15407 | hardcode_libdir_separator_F77=':' | |
15408 | link_all_deplibs_F77=yes | |
15409 | export_dynamic_flag_spec_F77='${wl}-Bexport' | |
15410 | runpath_var='LD_RUN_PATH' | |
15411 | ||
15412 | if test "$GCC" = yes; then | |
15413 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15414 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15415 | else | |
15416 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15417 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15418 | fi | |
15419 | ;; | |
15420 | ||
15421 | uts4*) | |
15422 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15423 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
15424 | hardcode_shlibpath_var_F77=no | |
15425 | ;; | |
15426 | ||
15427 | *) | |
15428 | ld_shlibs_F77=no | |
15429 | ;; | |
15430 | esac | |
15431 | fi | |
15432 | ||
15433 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | |
15434 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } | |
15435 | test "$ld_shlibs_F77" = no && can_build_shared=no | |
15436 | ||
15437 | # | |
15438 | # Do we need to explicitly link libc? | |
15439 | # | |
15440 | case "x$archive_cmds_need_lc_F77" in | |
15441 | x|xyes) | |
15442 | # Assume -lc should be added | |
15443 | archive_cmds_need_lc_F77=yes | |
15444 | ||
15445 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
15446 | case $archive_cmds_F77 in | |
15447 | *'~'*) | |
15448 | # FIXME: we may have to deal with multi-command sequences. | |
15449 | ;; | |
15450 | '$CC '*) | |
15451 | # Test whether the compiler implicitly links with -lc since on some | |
15452 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15453 | # to ld, don't add -lc before -lgcc. | |
15454 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
15455 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
15456 | $rm conftest* | |
15457 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15458 | ||
15459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15460 | (eval $ac_compile) 2>&5 | |
15461 | ac_status=$? | |
15462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15463 | (exit $ac_status); } 2>conftest.err; then | |
15464 | soname=conftest | |
15465 | lib=conftest | |
15466 | libobjs=conftest.$ac_objext | |
15467 | deplibs= | |
15468 | wl=$lt_prog_compiler_wl_F77 | |
15469 | pic_flag=$lt_prog_compiler_pic_F77 | |
15470 | compiler_flags=-v | |
15471 | linker_flags=-v | |
15472 | verstring= | |
15473 | output_objdir=. | |
15474 | libname=conftest | |
15475 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | |
15476 | allow_undefined_flag_F77= | |
15477 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
15478 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
15479 | ac_status=$? | |
15480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15481 | (exit $ac_status); } | |
15482 | then | |
15483 | archive_cmds_need_lc_F77=no | |
15484 | else | |
15485 | archive_cmds_need_lc_F77=yes | |
15486 | fi | |
15487 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag | |
15488 | else | |
15489 | cat conftest.err 1>&5 | |
15490 | fi | |
15491 | $rm conftest* | |
15492 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | |
15493 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } | |
15494 | ;; | |
15495 | esac | |
15496 | fi | |
15497 | ;; | |
15498 | esac | |
15499 | ||
15500 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
15501 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
15502 | library_names_spec= | |
15503 | libname_spec='lib$name' | |
15504 | soname_spec= | |
15505 | shrext_cmds=".so" | |
15506 | postinstall_cmds= | |
15507 | postuninstall_cmds= | |
15508 | finish_cmds= | |
15509 | finish_eval= | |
15510 | shlibpath_var= | |
15511 | shlibpath_overrides_runpath=unknown | |
15512 | version_type=none | |
15513 | dynamic_linker="$host_os ld.so" | |
15514 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15515 | if test "$GCC" = yes; then | |
15516 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
15517 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
15518 | # if the path contains ";" then we assume it to be the separator | |
15519 | # otherwise default to the standard path separator (i.e. ":") - it is | |
15520 | # assumed that no part of a normal pathname contains ";" but that should | |
15521 | # okay in the real world where ";" in dirpaths is itself problematic. | |
15522 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
15523 | else | |
15524 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15525 | fi | |
15526 | else | |
15527 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
15528 | fi | |
15529 | need_lib_prefix=unknown | |
15530 | hardcode_into_libs=no | |
15531 | ||
15532 | # when you set need_version to no, make sure it does not cause -set_version | |
15533 | # flags to be left without arguments | |
15534 | need_version=unknown | |
15535 | ||
15536 | case $host_os in | |
15537 | aix3*) | |
15538 | version_type=linux | |
15539 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
15540 | shlibpath_var=LIBPATH | |
15541 | ||
15542 | # AIX 3 has no versioning support, so we append a major version to the name. | |
15543 | soname_spec='${libname}${release}${shared_ext}$major' | |
15544 | ;; | |
15545 | ||
15546 | aix4* | aix5*) | |
15547 | version_type=linux | |
15548 | need_lib_prefix=no | |
15549 | need_version=no | |
15550 | hardcode_into_libs=yes | |
15551 | if test "$host_cpu" = ia64; then | |
15552 | # AIX 5 supports IA64 | |
15553 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
15554 | shlibpath_var=LD_LIBRARY_PATH | |
15555 | else | |
15556 | # With GCC up to 2.95.x, collect2 would create an import file | |
15557 | # for dependence libraries. The import file would start with | |
15558 | # the line `#! .'. This would cause the generated library to | |
15559 | # depend on `.', always an invalid library. This was fixed in | |
15560 | # development snapshots of GCC prior to 3.0. | |
15561 | case $host_os in | |
15562 | aix4 | aix4.[01] | aix4.[01].*) | |
15563 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15564 | echo ' yes ' | |
15565 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
15566 | : | |
15567 | else | |
15568 | can_build_shared=no | |
15569 | fi | |
15570 | ;; | |
15571 | esac | |
15572 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
15573 | # soname into executable. Probably we can add versioning support to | |
15574 | # collect2, so additional links can be useful in future. | |
15575 | if test "$aix_use_runtimelinking" = yes; then | |
15576 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15577 | # instead of lib<name>.a to let people know that these are not | |
15578 | # typical AIX shared libraries. | |
15579 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15580 | else | |
15581 | # We preserve .a as extension for shared libraries through AIX4.2 | |
15582 | # and later when we are not doing run time linking. | |
15583 | library_names_spec='${libname}${release}.a $libname.a' | |
15584 | soname_spec='${libname}${release}${shared_ext}$major' | |
15585 | fi | |
15586 | shlibpath_var=LIBPATH | |
15587 | fi | |
15588 | ;; | |
15589 | ||
15590 | amigaos*) | |
15591 | library_names_spec='$libname.ixlibrary $libname.a' | |
15592 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
15593 | 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' | |
15594 | ;; | |
15595 | ||
15596 | beos*) | |
15597 | library_names_spec='${libname}${shared_ext}' | |
15598 | dynamic_linker="$host_os ld.so" | |
15599 | shlibpath_var=LIBRARY_PATH | |
15600 | ;; | |
15601 | ||
15602 | bsdi[45]*) | |
15603 | version_type=linux | |
15604 | need_version=no | |
15605 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15606 | soname_spec='${libname}${release}${shared_ext}$major' | |
15607 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15608 | shlibpath_var=LD_LIBRARY_PATH | |
15609 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15610 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15611 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15612 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15613 | # libtool to hard-code these into programs | |
15614 | ;; | |
15615 | ||
15616 | cygwin* | mingw* | pw32*) | |
15617 | version_type=windows | |
15618 | shrext_cmds=".dll" | |
15619 | need_version=no | |
15620 | need_lib_prefix=no | |
15621 | ||
15622 | case $GCC,$host_os in | |
15623 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
15624 | library_names_spec='$libname.dll.a' | |
15625 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15626 | postinstall_cmds='base_file=`basename \${file}`~ | |
15627 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
15628 | dldir=$destdir/`dirname \$dlpath`~ | |
15629 | test -d \$dldir || mkdir -p \$dldir~ | |
15630 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15631 | chmod a+x \$dldir/$dlname' | |
15632 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15633 | dlpath=$dir/\$dldll~ | |
15634 | $rm \$dlpath' | |
15635 | shlibpath_overrides_runpath=yes | |
15636 | ||
15637 | case $host_os in | |
15638 | cygwin*) | |
15639 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15640 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15641 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
15642 | ;; | |
15643 | mingw*) | |
15644 | # MinGW DLLs use traditional 'lib' prefix | |
15645 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15646 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
15647 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
15648 | # It is most probably a Windows format PATH printed by | |
15649 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
15650 | # path with ; separators, and with drive letters. We can handle the | |
15651 | # drive letters (cygwin fileutils understands them), so leave them, | |
15652 | # especially as we might pass files found there to a mingw objdump, | |
15653 | # which wouldn't understand a cygwinified path. Ahh. | |
15654 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
15655 | else | |
15656 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15657 | fi | |
15658 | ;; | |
15659 | pw32*) | |
15660 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15661 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15662 | ;; | |
15663 | esac | |
15664 | ;; | |
15665 | ||
15666 | *) | |
15667 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
15668 | ;; | |
15669 | esac | |
15670 | dynamic_linker='Win32 ld.exe' | |
15671 | # FIXME: first we should search . and the directory the executable is in | |
15672 | shlibpath_var=PATH | |
15673 | ;; | |
15674 | ||
15675 | darwin* | rhapsody*) | |
15676 | dynamic_linker="$host_os dyld" | |
15677 | version_type=darwin | |
15678 | need_lib_prefix=no | |
15679 | need_version=no | |
15680 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
15681 | soname_spec='${libname}${release}${major}$shared_ext' | |
15682 | shlibpath_overrides_runpath=yes | |
15683 | shlibpath_var=DYLD_LIBRARY_PATH | |
15684 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
15685 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
15686 | if test "$GCC" = yes; then | |
15687 | 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"` | |
15688 | else | |
15689 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
15690 | fi | |
15691 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
15692 | ;; | |
15693 | ||
15694 | dgux*) | |
15695 | version_type=linux | |
15696 | need_lib_prefix=no | |
15697 | need_version=no | |
15698 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
15699 | soname_spec='${libname}${release}${shared_ext}$major' | |
15700 | shlibpath_var=LD_LIBRARY_PATH | |
15701 | ;; | |
15702 | ||
15703 | freebsd1*) | |
15704 | dynamic_linker=no | |
15705 | ;; | |
15706 | ||
15707 | freebsd* | dragonfly*) | |
15708 | # DragonFly does not have aout. When/if they implement a new | |
15709 | # versioning mechanism, adjust this. | |
15710 | if test -x /usr/bin/objformat; then | |
15711 | objformat=`/usr/bin/objformat` | |
15712 | else | |
15713 | case $host_os in | |
15714 | freebsd[123]*) objformat=aout ;; | |
15715 | *) objformat=elf ;; | |
15716 | esac | |
15717 | fi | |
15718 | version_type=freebsd-$objformat | |
15719 | case $version_type in | |
15720 | freebsd-elf*) | |
15721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15722 | need_version=no | |
15723 | need_lib_prefix=no | |
15724 | ;; | |
15725 | freebsd-*) | |
15726 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15727 | need_version=yes | |
15728 | ;; | |
15729 | esac | |
15730 | shlibpath_var=LD_LIBRARY_PATH | |
15731 | case $host_os in | |
15732 | freebsd2*) | |
15733 | shlibpath_overrides_runpath=yes | |
15734 | ;; | |
15735 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15736 | shlibpath_overrides_runpath=yes | |
15737 | hardcode_into_libs=yes | |
15738 | ;; | |
15739 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15740 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15741 | shlibpath_overrides_runpath=no | |
15742 | hardcode_into_libs=yes | |
15743 | ;; | |
15744 | freebsd*) # from 4.6 on | |
15745 | shlibpath_overrides_runpath=yes | |
15746 | hardcode_into_libs=yes | |
15747 | ;; | |
15748 | esac | |
15749 | ;; | |
15750 | ||
15751 | gnu*) | |
15752 | version_type=linux | |
15753 | need_lib_prefix=no | |
15754 | need_version=no | |
15755 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15756 | soname_spec='${libname}${release}${shared_ext}$major' | |
15757 | shlibpath_var=LD_LIBRARY_PATH | |
15758 | hardcode_into_libs=yes | |
15759 | ;; | |
15760 | ||
15761 | hpux9* | hpux10* | hpux11*) | |
15762 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15763 | # link against other versions. | |
15764 | version_type=sunos | |
15765 | need_lib_prefix=no | |
15766 | need_version=no | |
15767 | case $host_cpu in | |
15768 | ia64*) | |
15769 | shrext_cmds='.so' | |
15770 | hardcode_into_libs=yes | |
15771 | dynamic_linker="$host_os dld.so" | |
15772 | shlibpath_var=LD_LIBRARY_PATH | |
15773 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15774 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15775 | soname_spec='${libname}${release}${shared_ext}$major' | |
15776 | if test "X$HPUX_IA64_MODE" = X32; then | |
15777 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15778 | else | |
15779 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15780 | fi | |
15781 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15782 | ;; | |
15783 | hppa*64*) | |
15784 | shrext_cmds='.sl' | |
15785 | hardcode_into_libs=yes | |
15786 | dynamic_linker="$host_os dld.sl" | |
15787 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15788 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15790 | soname_spec='${libname}${release}${shared_ext}$major' | |
15791 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15792 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15793 | ;; | |
15794 | *) | |
15795 | shrext_cmds='.sl' | |
15796 | dynamic_linker="$host_os dld.sl" | |
15797 | shlibpath_var=SHLIB_PATH | |
15798 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15799 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15800 | soname_spec='${libname}${release}${shared_ext}$major' | |
15801 | ;; | |
15802 | esac | |
15803 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
15804 | postinstall_cmds='chmod 555 $lib' | |
15805 | ;; | |
15806 | ||
15807 | interix3*) | |
15808 | version_type=linux | |
15809 | need_lib_prefix=no | |
15810 | need_version=no | |
15811 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15812 | soname_spec='${libname}${release}${shared_ext}$major' | |
15813 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15814 | shlibpath_var=LD_LIBRARY_PATH | |
15815 | shlibpath_overrides_runpath=no | |
15816 | hardcode_into_libs=yes | |
15817 | ;; | |
15818 | ||
15819 | irix5* | irix6* | nonstopux*) | |
15820 | case $host_os in | |
15821 | nonstopux*) version_type=nonstopux ;; | |
15822 | *) | |
15823 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
15824 | version_type=linux | |
15825 | else | |
15826 | version_type=irix | |
15827 | fi ;; | |
15828 | esac | |
15829 | need_lib_prefix=no | |
15830 | need_version=no | |
15831 | soname_spec='${libname}${release}${shared_ext}$major' | |
15832 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15833 | case $host_os in | |
15834 | irix5* | nonstopux*) | |
15835 | libsuff= shlibsuff= | |
15836 | ;; | |
15837 | *) | |
15838 | case $LD in # libtool.m4 will add one of these switches to LD | |
15839 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15840 | libsuff= shlibsuff= libmagic=32-bit;; | |
15841 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15842 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15843 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15844 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15845 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15846 | esac | |
15847 | ;; | |
15848 | esac | |
15849 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15850 | shlibpath_overrides_runpath=no | |
15851 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15852 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15853 | hardcode_into_libs=yes | |
15854 | ;; | |
15855 | ||
15856 | # No shared lib support for Linux oldld, aout, or coff. | |
15857 | linux*oldld* | linux*aout* | linux*coff*) | |
15858 | dynamic_linker=no | |
15859 | ;; | |
15860 | ||
15861 | # This must be Linux ELF. | |
15862 | linux* | k*bsd*-gnu) | |
15863 | version_type=linux | |
15864 | need_lib_prefix=no | |
15865 | need_version=no | |
15866 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15867 | soname_spec='${libname}${release}${shared_ext}$major' | |
15868 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15869 | shlibpath_var=LD_LIBRARY_PATH | |
15870 | shlibpath_overrides_runpath=no | |
15871 | # This implies no fast_install, which is unacceptable. | |
15872 | # Some rework will be needed to allow for fast_install | |
15873 | # before this can be enabled. | |
15874 | hardcode_into_libs=yes | |
15875 | ||
15876 | # Append ld.so.conf contents to the search path | |
15877 | if test -f /etc/ld.so.conf; then | |
15878 | 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' ' '` | |
15879 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
15880 | fi | |
15881 | ||
15882 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15883 | # powerpc, because MkLinux only supported shared libraries with the | |
15884 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15885 | # most powerpc-linux boxes support dynamic linking these days and | |
15886 | # people can always --disable-shared, the test was removed, and we | |
15887 | # assume the GNU/Linux dynamic linker is in use. | |
15888 | dynamic_linker='GNU/Linux ld.so' | |
15889 | ;; | |
15890 | ||
15891 | netbsdelf*-gnu) | |
15892 | version_type=linux | |
15893 | need_lib_prefix=no | |
15894 | need_version=no | |
15895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15896 | soname_spec='${libname}${release}${shared_ext}$major' | |
15897 | shlibpath_var=LD_LIBRARY_PATH | |
15898 | shlibpath_overrides_runpath=no | |
15899 | hardcode_into_libs=yes | |
15900 | dynamic_linker='NetBSD ld.elf_so' | |
15901 | ;; | |
15902 | ||
15903 | netbsd*) | |
15904 | version_type=sunos | |
15905 | need_lib_prefix=no | |
15906 | need_version=no | |
15907 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
15908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15909 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15910 | dynamic_linker='NetBSD (a.out) ld.so' | |
15911 | else | |
15912 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15913 | soname_spec='${libname}${release}${shared_ext}$major' | |
15914 | dynamic_linker='NetBSD ld.elf_so' | |
15915 | fi | |
15916 | shlibpath_var=LD_LIBRARY_PATH | |
15917 | shlibpath_overrides_runpath=yes | |
15918 | hardcode_into_libs=yes | |
15919 | ;; | |
15920 | ||
15921 | newsos6) | |
15922 | version_type=linux | |
15923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15924 | shlibpath_var=LD_LIBRARY_PATH | |
15925 | shlibpath_overrides_runpath=yes | |
15926 | ;; | |
15927 | ||
15928 | nto-qnx*) | |
15929 | version_type=linux | |
15930 | need_lib_prefix=no | |
15931 | need_version=no | |
15932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15933 | soname_spec='${libname}${release}${shared_ext}$major' | |
15934 | shlibpath_var=LD_LIBRARY_PATH | |
15935 | shlibpath_overrides_runpath=yes | |
15936 | ;; | |
15937 | ||
15938 | openbsd*) | |
15939 | version_type=sunos | |
15940 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15941 | need_lib_prefix=no | |
15942 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15943 | case $host_os in | |
15944 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15945 | *) need_version=no ;; | |
15946 | esac | |
15947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15948 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15949 | shlibpath_var=LD_LIBRARY_PATH | |
15950 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15951 | case $host_os in | |
15952 | openbsd2.[89] | openbsd2.[89].*) | |
15953 | shlibpath_overrides_runpath=no | |
15954 | ;; | |
15955 | *) | |
15956 | shlibpath_overrides_runpath=yes | |
15957 | ;; | |
15958 | esac | |
15959 | else | |
15960 | shlibpath_overrides_runpath=yes | |
15961 | fi | |
15962 | ;; | |
15963 | ||
15964 | os2*) | |
15965 | libname_spec='$name' | |
15966 | shrext_cmds=".dll" | |
15967 | need_lib_prefix=no | |
15968 | library_names_spec='$libname${shared_ext} $libname.a' | |
15969 | dynamic_linker='OS/2 ld.exe' | |
15970 | shlibpath_var=LIBPATH | |
15971 | ;; | |
15972 | ||
15973 | osf3* | osf4* | osf5*) | |
15974 | version_type=osf | |
15975 | need_lib_prefix=no | |
15976 | need_version=no | |
15977 | soname_spec='${libname}${release}${shared_ext}$major' | |
15978 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15979 | shlibpath_var=LD_LIBRARY_PATH | |
15980 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15981 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15982 | ;; | |
15983 | ||
15984 | solaris*) | |
15985 | version_type=linux | |
15986 | need_lib_prefix=no | |
15987 | need_version=no | |
15988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15989 | soname_spec='${libname}${release}${shared_ext}$major' | |
15990 | shlibpath_var=LD_LIBRARY_PATH | |
15991 | shlibpath_overrides_runpath=yes | |
15992 | hardcode_into_libs=yes | |
15993 | # ldd complains unless libraries are executable | |
15994 | postinstall_cmds='chmod +x $lib' | |
15995 | ;; | |
15996 | ||
15997 | sunos4*) | |
15998 | version_type=sunos | |
15999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
16000 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
16001 | shlibpath_var=LD_LIBRARY_PATH | |
16002 | shlibpath_overrides_runpath=yes | |
16003 | if test "$with_gnu_ld" = yes; then | |
16004 | need_lib_prefix=no | |
16005 | fi | |
16006 | need_version=yes | |
16007 | ;; | |
16008 | ||
16009 | sysv4 | sysv4.3*) | |
16010 | version_type=linux | |
16011 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16012 | soname_spec='${libname}${release}${shared_ext}$major' | |
16013 | shlibpath_var=LD_LIBRARY_PATH | |
16014 | case $host_vendor in | |
16015 | sni) | |
16016 | shlibpath_overrides_runpath=no | |
16017 | need_lib_prefix=no | |
16018 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
16019 | runpath_var=LD_RUN_PATH | |
16020 | ;; | |
16021 | siemens) | |
16022 | need_lib_prefix=no | |
16023 | ;; | |
16024 | motorola) | |
16025 | need_lib_prefix=no | |
16026 | need_version=no | |
16027 | shlibpath_overrides_runpath=no | |
16028 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
16029 | ;; | |
16030 | esac | |
16031 | ;; | |
16032 | ||
16033 | sysv4*MP*) | |
16034 | if test -d /usr/nec ;then | |
16035 | version_type=linux | |
16036 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
16037 | soname_spec='$libname${shared_ext}.$major' | |
16038 | shlibpath_var=LD_LIBRARY_PATH | |
16039 | fi | |
16040 | ;; | |
16041 | ||
16042 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
16043 | version_type=freebsd-elf | |
16044 | need_lib_prefix=no | |
16045 | need_version=no | |
16046 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
16047 | soname_spec='${libname}${release}${shared_ext}$major' | |
16048 | shlibpath_var=LD_LIBRARY_PATH | |
16049 | hardcode_into_libs=yes | |
16050 | if test "$with_gnu_ld" = yes; then | |
16051 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
16052 | shlibpath_overrides_runpath=no | |
16053 | else | |
16054 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
16055 | shlibpath_overrides_runpath=yes | |
16056 | case $host_os in | |
16057 | sco3.2v5*) | |
16058 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
16059 | ;; | |
16060 | esac | |
16061 | fi | |
16062 | sys_lib_dlsearch_path_spec='/usr/lib' | |
16063 | ;; | |
16064 | ||
16065 | uts4*) | |
16066 | version_type=linux | |
16067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16068 | soname_spec='${libname}${release}${shared_ext}$major' | |
16069 | shlibpath_var=LD_LIBRARY_PATH | |
16070 | ;; | |
16071 | ||
16072 | *) | |
16073 | dynamic_linker=no | |
16074 | ;; | |
16075 | esac | |
16076 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
16077 | echo "${ECHO_T}$dynamic_linker" >&6; } | |
16078 | test "$dynamic_linker" = no && can_build_shared=no | |
16079 | ||
16080 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
16081 | if test "$GCC" = yes; then | |
16082 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
16083 | fi | |
16084 | ||
16085 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
16086 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
16087 | hardcode_action_F77= | |
16088 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | |
16089 | test -n "$runpath_var_F77" || \ | |
16090 | test "X$hardcode_automatic_F77" = "Xyes" ; then | |
16091 | ||
16092 | # We can hardcode non-existant directories. | |
16093 | if test "$hardcode_direct_F77" != no && | |
16094 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
16095 | # have to relink, otherwise we might link with an installed library | |
16096 | # when we should be linking with a yet-to-be-installed one | |
16097 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | |
16098 | test "$hardcode_minus_L_F77" != no; then | |
16099 | # Linking always hardcodes the temporary library directory. | |
16100 | hardcode_action_F77=relink | |
16101 | else | |
16102 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
16103 | hardcode_action_F77=immediate | |
16104 | fi | |
16105 | else | |
16106 | # We cannot hardcode anything, or else we can only hardcode existing | |
16107 | # directories. | |
16108 | hardcode_action_F77=unsupported | |
16109 | fi | |
16110 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | |
16111 | echo "${ECHO_T}$hardcode_action_F77" >&6; } | |
16112 | ||
16113 | if test "$hardcode_action_F77" = relink; then | |
16114 | # Fast installation is not supported | |
16115 | enable_fast_install=no | |
16116 | elif test "$shlibpath_overrides_runpath" = yes || | |
16117 | test "$enable_shared" = no; then | |
16118 | # Fast installation is not necessary | |
16119 | enable_fast_install=needless | |
16120 | fi | |
16121 | ||
16122 | ||
16123 | # The else clause should only fire when bootstrapping the | |
16124 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
16125 | # with your package, and you will get complaints that there are | |
16126 | # no rules to generate ltmain.sh. | |
16127 | if test -f "$ltmain"; then | |
16128 | # See if we are running on zsh, and set the options which allow our commands through | |
16129 | # without removal of \ escapes. | |
16130 | if test -n "${ZSH_VERSION+set}" ; then | |
16131 | setopt NO_GLOB_SUBST | |
16132 | fi | |
16133 | # Now quote all the things that may contain metacharacters while being | |
16134 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
16135 | # variables and quote the copies for generation of the libtool script. | |
16136 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
16137 | SED SHELL STRIP \ | |
16138 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
16139 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
16140 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
16141 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
16142 | lt_cv_sys_global_symbol_to_c_name_address \ | |
16143 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
16144 | old_postinstall_cmds old_postuninstall_cmds \ | |
16145 | compiler_F77 \ | |
16146 | CC_F77 \ | |
16147 | LD_F77 \ | |
16148 | lt_prog_compiler_wl_F77 \ | |
16149 | lt_prog_compiler_pic_F77 \ | |
16150 | lt_prog_compiler_static_F77 \ | |
16151 | lt_prog_compiler_no_builtin_flag_F77 \ | |
16152 | export_dynamic_flag_spec_F77 \ | |
16153 | thread_safe_flag_spec_F77 \ | |
16154 | whole_archive_flag_spec_F77 \ | |
16155 | enable_shared_with_static_runtimes_F77 \ | |
16156 | old_archive_cmds_F77 \ | |
16157 | old_archive_from_new_cmds_F77 \ | |
16158 | predep_objects_F77 \ | |
16159 | postdep_objects_F77 \ | |
16160 | predeps_F77 \ | |
16161 | postdeps_F77 \ | |
16162 | compiler_lib_search_path_F77 \ | |
16163 | archive_cmds_F77 \ | |
16164 | archive_expsym_cmds_F77 \ | |
16165 | postinstall_cmds_F77 \ | |
16166 | postuninstall_cmds_F77 \ | |
16167 | old_archive_from_expsyms_cmds_F77 \ | |
16168 | allow_undefined_flag_F77 \ | |
16169 | no_undefined_flag_F77 \ | |
16170 | export_symbols_cmds_F77 \ | |
16171 | hardcode_libdir_flag_spec_F77 \ | |
16172 | hardcode_libdir_flag_spec_ld_F77 \ | |
16173 | hardcode_libdir_separator_F77 \ | |
16174 | hardcode_automatic_F77 \ | |
16175 | module_cmds_F77 \ | |
16176 | module_expsym_cmds_F77 \ | |
16177 | lt_cv_prog_compiler_c_o_F77 \ | |
16178 | exclude_expsyms_F77 \ | |
16179 | include_expsyms_F77; do | |
16180 | ||
16181 | case $var in | |
16182 | old_archive_cmds_F77 | \ | |
16183 | old_archive_from_new_cmds_F77 | \ | |
16184 | archive_cmds_F77 | \ | |
16185 | archive_expsym_cmds_F77 | \ | |
16186 | module_cmds_F77 | \ | |
16187 | module_expsym_cmds_F77 | \ | |
16188 | old_archive_from_expsyms_cmds_F77 | \ | |
16189 | export_symbols_cmds_F77 | \ | |
16190 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
16191 | postinstall_cmds | postuninstall_cmds | \ | |
16192 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
16193 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
16194 | # Double-quote double-evaled strings. | |
16195 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
16196 | ;; | |
16197 | *) | |
16198 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
16199 | ;; | |
16200 | esac | |
16201 | done | |
16202 | ||
16203 | case $lt_echo in | |
16204 | *'\$0 --fallback-echo"') | |
16205 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
16206 | ;; | |
16207 | esac | |
16208 | ||
16209 | cfgfile="$ofile" | |
16210 | ||
16211 | cat <<__EOF__ >> "$cfgfile" | |
16212 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
16213 | ||
16214 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
16215 | ||
16216 | # Shell to use when invoking shell scripts. | |
16217 | SHELL=$lt_SHELL | |
16218 | ||
16219 | # Whether or not to build shared libraries. | |
16220 | build_libtool_libs=$enable_shared | |
16221 | ||
16222 | # Whether or not to build static libraries. | |
16223 | build_old_libs=$enable_static | |
16224 | ||
16225 | # Whether or not to add -lc for building shared libraries. | |
16226 | build_libtool_need_lc=$archive_cmds_need_lc_F77 | |
16227 | ||
16228 | # Whether or not to disallow shared libs when runtime libs are static | |
16229 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | |
16230 | ||
16231 | # Whether or not to optimize for fast installation. | |
16232 | fast_install=$enable_fast_install | |
16233 | ||
16234 | # The host system. | |
16235 | host_alias=$host_alias | |
16236 | host=$host | |
16237 | host_os=$host_os | |
16238 | ||
16239 | # The build system. | |
16240 | build_alias=$build_alias | |
16241 | build=$build | |
16242 | build_os=$build_os | |
16243 | ||
16244 | # An echo program that does not interpret backslashes. | |
16245 | echo=$lt_echo | |
16246 | ||
16247 | # The archiver. | |
16248 | AR=$lt_AR | |
16249 | AR_FLAGS=$lt_AR_FLAGS | |
16250 | ||
16251 | # A C compiler. | |
16252 | LTCC=$lt_LTCC | |
16253 | ||
16254 | # LTCC compiler flags. | |
16255 | LTCFLAGS=$lt_LTCFLAGS | |
16256 | ||
16257 | # A language-specific compiler. | |
16258 | CC=$lt_compiler_F77 | |
16259 | ||
16260 | # Is the compiler the GNU C compiler? | |
16261 | with_gcc=$GCC_F77 | |
16262 | ||
16263 | # An ERE matcher. | |
16264 | EGREP=$lt_EGREP | |
16265 | ||
16266 | # The linker used to build libraries. | |
16267 | LD=$lt_LD_F77 | |
16268 | ||
16269 | # Whether we need hard or soft links. | |
16270 | LN_S=$lt_LN_S | |
16271 | ||
16272 | # A BSD-compatible nm program. | |
16273 | NM=$lt_NM | |
16274 | ||
16275 | # A symbol stripping program | |
16276 | STRIP=$lt_STRIP | |
16277 | ||
16278 | # Used to examine libraries when file_magic_cmd begins "file" | |
16279 | MAGIC_CMD=$MAGIC_CMD | |
16280 | ||
16281 | # Used on cygwin: DLL creation program. | |
16282 | DLLTOOL="$DLLTOOL" | |
16283 | ||
16284 | # Used on cygwin: object dumper. | |
16285 | OBJDUMP="$OBJDUMP" | |
16286 | ||
16287 | # Used on cygwin: assembler. | |
16288 | AS="$AS" | |
16289 | ||
16290 | # The name of the directory that contains temporary libtool files. | |
16291 | objdir=$objdir | |
16292 | ||
16293 | # How to create reloadable object files. | |
16294 | reload_flag=$lt_reload_flag | |
16295 | reload_cmds=$lt_reload_cmds | |
16296 | ||
16297 | # How to pass a linker flag through the compiler. | |
16298 | wl=$lt_lt_prog_compiler_wl_F77 | |
16299 | ||
16300 | # Object file suffix (normally "o"). | |
16301 | objext="$ac_objext" | |
16302 | ||
16303 | # Old archive suffix (normally "a"). | |
16304 | libext="$libext" | |
16305 | ||
16306 | # Shared library suffix (normally ".so"). | |
16307 | shrext_cmds='$shrext_cmds' | |
16308 | ||
16309 | # Executable file suffix (normally ""). | |
16310 | exeext="$exeext" | |
16311 | ||
16312 | # Additional compiler flags for building library objects. | |
16313 | pic_flag=$lt_lt_prog_compiler_pic_F77 | |
16314 | pic_mode=$pic_mode | |
16315 | ||
16316 | # What is the maximum length of a command? | |
16317 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
16318 | ||
16319 | # Does compiler simultaneously support -c and -o options? | |
16320 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | |
16321 | ||
16322 | # Must we lock files when doing compilation? | |
16323 | need_locks=$lt_need_locks | |
16324 | ||
16325 | # Do we need the lib prefix for modules? | |
16326 | need_lib_prefix=$need_lib_prefix | |
16327 | ||
16328 | # Do we need a version for libraries? | |
16329 | need_version=$need_version | |
16330 | ||
16331 | # Whether dlopen is supported. | |
16332 | dlopen_support=$enable_dlopen | |
16333 | ||
16334 | # Whether dlopen of programs is supported. | |
16335 | dlopen_self=$enable_dlopen_self | |
16336 | ||
16337 | # Whether dlopen of statically linked programs is supported. | |
16338 | dlopen_self_static=$enable_dlopen_self_static | |
16339 | ||
16340 | # Compiler flag to prevent dynamic linking. | |
16341 | link_static_flag=$lt_lt_prog_compiler_static_F77 | |
16342 | ||
16343 | # Compiler flag to turn off builtin functions. | |
16344 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | |
16345 | ||
16346 | # Compiler flag to allow reflexive dlopens. | |
16347 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | |
16348 | ||
16349 | # Compiler flag to generate shared objects directly from archives. | |
16350 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | |
16351 | ||
16352 | # Compiler flag to generate thread-safe objects. | |
16353 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | |
16354 | ||
16355 | # Library versioning type. | |
16356 | version_type=$version_type | |
16357 | ||
16358 | # Format of library name prefix. | |
16359 | libname_spec=$lt_libname_spec | |
16360 | ||
16361 | # List of archive names. First name is the real one, the rest are links. | |
16362 | # The last name is the one that the linker finds with -lNAME. | |
16363 | library_names_spec=$lt_library_names_spec | |
16364 | ||
16365 | # The coded name of the library, if different from the real name. | |
16366 | soname_spec=$lt_soname_spec | |
16367 | ||
16368 | # Commands used to build and install an old-style archive. | |
16369 | RANLIB=$lt_RANLIB | |
16370 | old_archive_cmds=$lt_old_archive_cmds_F77 | |
16371 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
16372 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
16373 | ||
16374 | # Create an old-style archive from a shared archive. | |
16375 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | |
16376 | ||
16377 | # Create a temporary old-style archive to link instead of a shared archive. | |
16378 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | |
16379 | ||
16380 | # Commands used to build and install a shared archive. | |
16381 | archive_cmds=$lt_archive_cmds_F77 | |
16382 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | |
16383 | postinstall_cmds=$lt_postinstall_cmds | |
16384 | postuninstall_cmds=$lt_postuninstall_cmds | |
16385 | ||
16386 | # Commands used to build a loadable module (assumed same as above if empty) | |
16387 | module_cmds=$lt_module_cmds_F77 | |
16388 | module_expsym_cmds=$lt_module_expsym_cmds_F77 | |
16389 | ||
16390 | # Commands to strip libraries. | |
16391 | old_striplib=$lt_old_striplib | |
16392 | striplib=$lt_striplib | |
16393 | ||
16394 | # Dependencies to place before the objects being linked to create a | |
16395 | # shared library. | |
16396 | predep_objects=$lt_predep_objects_F77 | |
16397 | ||
16398 | # Dependencies to place after the objects being linked to create a | |
16399 | # shared library. | |
16400 | postdep_objects=$lt_postdep_objects_F77 | |
16401 | ||
16402 | # Dependencies to place before the objects being linked to create a | |
16403 | # shared library. | |
16404 | predeps=$lt_predeps_F77 | |
16405 | ||
16406 | # Dependencies to place after the objects being linked to create a | |
16407 | # shared library. | |
16408 | postdeps=$lt_postdeps_F77 | |
16409 | ||
16410 | # The library search path used internally by the compiler when linking | |
16411 | # a shared library. | |
16412 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | |
16413 | ||
16414 | # Method to check whether dependent libraries are shared objects. | |
16415 | deplibs_check_method=$lt_deplibs_check_method | |
16416 | ||
16417 | # Command to use when deplibs_check_method == file_magic. | |
16418 | file_magic_cmd=$lt_file_magic_cmd | |
16419 | ||
16420 | # Flag that allows shared libraries with undefined symbols to be built. | |
16421 | allow_undefined_flag=$lt_allow_undefined_flag_F77 | |
16422 | ||
16423 | # Flag that forces no undefined symbols. | |
16424 | no_undefined_flag=$lt_no_undefined_flag_F77 | |
16425 | ||
16426 | # Commands used to finish a libtool library installation in a directory. | |
16427 | finish_cmds=$lt_finish_cmds | |
16428 | ||
16429 | # Same as above, but a single script fragment to be evaled but not shown. | |
16430 | finish_eval=$lt_finish_eval | |
16431 | ||
16432 | # Take the output of nm and produce a listing of raw symbols and C names. | |
16433 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
16434 | ||
16435 | # Transform the output of nm in a proper C declaration | |
16436 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
16437 | ||
16438 | # Transform the output of nm in a C name address pair | |
16439 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
16440 | ||
16441 | # This is the shared library runtime path variable. | |
16442 | runpath_var=$runpath_var | |
16443 | ||
16444 | # This is the shared library path variable. | |
16445 | shlibpath_var=$shlibpath_var | |
16446 | ||
16447 | # Is shlibpath searched before the hard-coded library search path? | |
16448 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
16449 | ||
16450 | # How to hardcode a shared library path into an executable. | |
16451 | hardcode_action=$hardcode_action_F77 | |
16452 | ||
16453 | # Whether we should hardcode library paths into libraries. | |
16454 | hardcode_into_libs=$hardcode_into_libs | |
16455 | ||
16456 | # Flag to hardcode \$libdir into a binary during linking. | |
16457 | # This must work even if \$libdir does not exist. | |
16458 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | |
16459 | ||
16460 | # If ld is used when linking, flag to hardcode \$libdir into | |
16461 | # a binary during linking. This must work even if \$libdir does | |
16462 | # not exist. | |
16463 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | |
16464 | ||
16465 | # Whether we need a single -rpath flag with a separated argument. | |
16466 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | |
16467 | ||
16468 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
16469 | # resulting binary. | |
16470 | hardcode_direct=$hardcode_direct_F77 | |
16471 | ||
16472 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
16473 | # resulting binary. | |
16474 | hardcode_minus_L=$hardcode_minus_L_F77 | |
16475 | ||
16476 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
16477 | # the resulting binary. | |
16478 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | |
16479 | ||
16480 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
16481 | # and all subsequent libraries and executables linked against it. | |
16482 | hardcode_automatic=$hardcode_automatic_F77 | |
16483 | ||
16484 | # Variables whose values should be saved in libtool wrapper scripts and | |
16485 | # restored at relink time. | |
16486 | variables_saved_for_relink="$variables_saved_for_relink" | |
16487 | ||
16488 | # Whether libtool must link a program against all its dependency libraries. | |
16489 | link_all_deplibs=$link_all_deplibs_F77 | |
16490 | ||
16491 | # Compile-time system search path for libraries | |
16492 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
16493 | ||
16494 | # Run-time system search path for libraries | |
16495 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
16496 | ||
16497 | # Fix the shell variable \$srcfile for the compiler. | |
16498 | fix_srcfile_path="$fix_srcfile_path_F77" | |
16499 | ||
16500 | # Set to yes if exported symbols are required. | |
16501 | always_export_symbols=$always_export_symbols_F77 | |
16502 | ||
16503 | # The commands to list exported symbols. | |
16504 | export_symbols_cmds=$lt_export_symbols_cmds_F77 | |
16505 | ||
16506 | # The commands to extract the exported symbol list from a shared archive. | |
16507 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
16508 | ||
16509 | # Symbols that should not be listed in the preloaded symbols. | |
16510 | exclude_expsyms=$lt_exclude_expsyms_F77 | |
16511 | ||
16512 | # Symbols that must always be exported. | |
16513 | include_expsyms=$lt_include_expsyms_F77 | |
16514 | ||
16515 | # ### END LIBTOOL TAG CONFIG: $tagname | |
16516 | ||
16517 | __EOF__ | |
16518 | ||
16519 | ||
16520 | else | |
16521 | # If there is no Makefile yet, we rely on a make rule to execute | |
16522 | # `config.status --recheck' to rerun these tests and create the | |
16523 | # libtool script then. | |
16524 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
16525 | if test -f "$ltmain_in"; then | |
16526 | test -f Makefile && make "$ltmain" | |
16527 | fi | |
16528 | fi | |
16529 | ||
16530 | ||
16531 | ac_ext=c | |
16532 | ac_cpp='$CPP $CPPFLAGS' | |
16533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16536 | ||
16537 | CC="$lt_save_CC" | |
16538 | ||
16539 | else | |
16540 | tagname="" | |
16541 | fi | |
16542 | ;; | |
16543 | ||
16544 | GCJ) | |
16545 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | |
16546 | ||
16547 | ||
16548 | # Source file extension for Java test sources. | |
16549 | ac_ext=java | |
16550 | ||
16551 | # Object file extension for compiled Java test sources. | |
16552 | objext=o | |
16553 | objext_GCJ=$objext | |
16554 | ||
16555 | # Code to be used in simple compile tests | |
16556 | lt_simple_compile_test_code="class foo {}\n" | |
16557 | ||
16558 | # Code to be used in simple link tests | |
16559 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' | |
16560 | ||
16561 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
16562 | ||
16563 | # If no C compiler was specified, use CC. | |
16564 | LTCC=${LTCC-"$CC"} | |
16565 | ||
16566 | # If no C compiler flags were specified, use CFLAGS. | |
16567 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
16568 | ||
16569 | # Allow CC to be a program name with arguments. | |
16570 | compiler=$CC | |
16571 | ||
16572 | ||
16573 | # save warnings/boilerplate of simple test code | |
16574 | ac_outfile=conftest.$ac_objext | |
16575 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
16576 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
16577 | _lt_compiler_boilerplate=`cat conftest.err` | |
16578 | $rm conftest* | |
16579 | ||
16580 | ac_outfile=conftest.$ac_objext | |
16581 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
16582 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
16583 | _lt_linker_boilerplate=`cat conftest.err` | |
16584 | $rm conftest* | |
16585 | ||
16586 | ||
16587 | # Allow CC to be a program name with arguments. | |
16588 | lt_save_CC="$CC" | |
16589 | CC=${GCJ-"gcj"} | |
16590 | compiler=$CC | |
16591 | compiler_GCJ=$CC | |
16592 | for cc_temp in $compiler""; do | |
16593 | case $cc_temp in | |
16594 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
16595 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
16596 | \-*) ;; | |
16597 | *) break;; | |
16598 | esac | |
16599 | done | |
16600 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
16601 | ||
16602 | ||
16603 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
16604 | archive_cmds_need_lc_GCJ=no | |
16605 | ||
16606 | old_archive_cmds_GCJ=$old_archive_cmds | |
16607 | ||
16608 | ||
16609 | lt_prog_compiler_no_builtin_flag_GCJ= | |
16610 | ||
16611 | if test "$GCC" = yes; then | |
16612 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
16613 | ||
16614 | ||
16615 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
16616 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } | |
16617 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
16618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16619 | else | |
16620 | lt_cv_prog_compiler_rtti_exceptions=no | |
16621 | ac_outfile=conftest.$ac_objext | |
16622 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16623 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
16624 | # Insert the option either (1) after the last *FLAGS variable, or | |
16625 | # (2) before a word containing "conftest.", or (3) at the end. | |
16626 | # Note that $ac_compile itself does not contain backslashes and begins | |
16627 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16628 | # The option is referenced via a variable to avoid confusing sed. | |
16629 | lt_compile=`echo "$ac_compile" | $SED \ | |
16630 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16631 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16632 | -e 's:$: $lt_compiler_flag:'` | |
16633 | (eval echo "\"\$as_me:16633: $lt_compile\"" >&5) | |
16634 | (eval "$lt_compile" 2>conftest.err) | |
16635 | ac_status=$? | |
16636 | cat conftest.err >&5 | |
16637 | echo "$as_me:16637: \$? = $ac_status" >&5 | |
16638 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
16639 | # The compiler can only warn and ignore the option if not recognized | |
16640 | # So say no if there are warnings other than the usual output. | |
16641 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
16642 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16643 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
16644 | lt_cv_prog_compiler_rtti_exceptions=yes | |
16645 | fi | |
16646 | fi | |
16647 | $rm conftest* | |
16648 | ||
16649 | fi | |
16650 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
16651 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
16652 | ||
16653 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
16654 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
16655 | else | |
16656 | : | |
16657 | fi | |
16658 | ||
16659 | fi | |
16660 | ||
16661 | lt_prog_compiler_wl_GCJ= | |
16662 | lt_prog_compiler_pic_GCJ= | |
16663 | lt_prog_compiler_static_GCJ= | |
16664 | ||
16665 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
16666 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
16667 | ||
16668 | if test "$GCC" = yes; then | |
16669 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16670 | lt_prog_compiler_static_GCJ='-static' | |
16671 | ||
16672 | case $host_os in | |
16673 | aix*) | |
16674 | # All AIX code is PIC. | |
16675 | if test "$host_cpu" = ia64; then | |
16676 | # AIX 5 now supports IA64 processor | |
16677 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16678 | fi | |
16679 | ;; | |
16680 | ||
16681 | amigaos*) | |
16682 | # FIXME: we need at least 68020 code to build shared libraries, but | |
16683 | # adding the `-m68020' flag to GCC prevents building anything better, | |
16684 | # like `-m68040'. | |
16685 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
16686 | ;; | |
16687 | ||
16688 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
16689 | # PIC is the default for these OSes. | |
16690 | ;; | |
16691 | ||
16692 | mingw* | pw32* | os2*) | |
16693 | # This hack is so that the source file can tell whether it is being | |
16694 | # built for inclusion in a dll (and should export symbols for example). | |
16695 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
16696 | ;; | |
16697 | ||
16698 | darwin* | rhapsody*) | |
16699 | # PIC is the default on this platform | |
16700 | # Common symbols not allowed in MH_DYLIB files | |
16701 | lt_prog_compiler_pic_GCJ='-fno-common' | |
16702 | ;; | |
16703 | ||
16704 | interix3*) | |
16705 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
16706 | # Instead, we relocate shared libraries at runtime. | |
16707 | ;; | |
16708 | ||
16709 | msdosdjgpp*) | |
16710 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
16711 | # on systems that don't support them. | |
16712 | lt_prog_compiler_can_build_shared_GCJ=no | |
16713 | enable_shared=no | |
16714 | ;; | |
16715 | ||
16716 | sysv4*MP*) | |
16717 | if test -d /usr/nec; then | |
16718 | lt_prog_compiler_pic_GCJ=-Kconform_pic | |
16719 | fi | |
16720 | ;; | |
16721 | ||
16722 | hpux*) | |
16723 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
16724 | # not for PA HP-UX. | |
16725 | case $host_cpu in | |
16726 | hppa*64*|ia64*) | |
16727 | # +Z the default | |
16728 | ;; | |
16729 | *) | |
16730 | lt_prog_compiler_pic_GCJ='-fPIC' | |
16731 | ;; | |
16732 | esac | |
16733 | ;; | |
16734 | ||
16735 | *) | |
16736 | lt_prog_compiler_pic_GCJ='-fPIC' | |
16737 | ;; | |
16738 | esac | |
16739 | else | |
16740 | # PORTME Check for flag to pass linker flags through the system compiler. | |
16741 | case $host_os in | |
16742 | aix*) | |
16743 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16744 | if test "$host_cpu" = ia64; then | |
16745 | # AIX 5 now supports IA64 processor | |
16746 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16747 | else | |
16748 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
16749 | fi | |
16750 | ;; | |
16751 | darwin*) | |
16752 | # PIC is the default on this platform | |
16753 | # Common symbols not allowed in MH_DYLIB files | |
16754 | case $cc_basename in | |
16755 | xlc*) | |
16756 | lt_prog_compiler_pic_GCJ='-qnocommon' | |
16757 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16758 | ;; | |
16759 | esac | |
16760 | ;; | |
16761 | ||
16762 | mingw* | pw32* | os2*) | |
16763 | # This hack is so that the source file can tell whether it is being | |
16764 | # built for inclusion in a dll (and should export symbols for example). | |
16765 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
16766 | ;; | |
16767 | ||
16768 | hpux9* | hpux10* | hpux11*) | |
16769 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16770 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
16771 | # not for PA HP-UX. | |
16772 | case $host_cpu in | |
16773 | hppa*64*|ia64*) | |
16774 | # +Z the default | |
16775 | ;; | |
16776 | *) | |
16777 | lt_prog_compiler_pic_GCJ='+Z' | |
16778 | ;; | |
16779 | esac | |
16780 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
16781 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
16782 | ;; | |
16783 | ||
16784 | irix5* | irix6* | nonstopux*) | |
16785 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16786 | # PIC (with -KPIC) is the default. | |
16787 | lt_prog_compiler_static_GCJ='-non_shared' | |
16788 | ;; | |
16789 | ||
16790 | newsos6) | |
16791 | lt_prog_compiler_pic_GCJ='-KPIC' | |
16792 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16793 | ;; | |
16794 | ||
16795 | linux* | k*bsd*-gnu) | |
16796 | case $cc_basename in | |
16797 | icc* | ecc*) | |
16798 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16799 | lt_prog_compiler_pic_GCJ='-KPIC' | |
16800 | lt_prog_compiler_static_GCJ='-static' | |
16801 | ;; | |
16802 | pgcc* | pgf77* | pgf90* | pgf95*) | |
16803 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
16804 | # which looks to be a dead project) | |
16805 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16806 | lt_prog_compiler_pic_GCJ='-fpic' | |
16807 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16808 | ;; | |
16809 | ccc*) | |
16810 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16811 | # All Alpha code is PIC. | |
16812 | lt_prog_compiler_static_GCJ='-non_shared' | |
16813 | ;; | |
16814 | esac | |
16815 | ;; | |
16816 | ||
16817 | osf3* | osf4* | osf5*) | |
16818 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16819 | # All OSF/1 code is PIC. | |
16820 | lt_prog_compiler_static_GCJ='-non_shared' | |
16821 | ;; | |
16822 | ||
16823 | solaris*) | |
16824 | lt_prog_compiler_pic_GCJ='-KPIC' | |
16825 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16826 | case $cc_basename in | |
16827 | f77* | f90* | f95*) | |
16828 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; | |
16829 | *) | |
16830 | lt_prog_compiler_wl_GCJ='-Wl,';; | |
16831 | esac | |
16832 | ;; | |
16833 | ||
16834 | sunos4*) | |
16835 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
16836 | lt_prog_compiler_pic_GCJ='-PIC' | |
16837 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16838 | ;; | |
16839 | ||
16840 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
16841 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16842 | lt_prog_compiler_pic_GCJ='-KPIC' | |
16843 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16844 | ;; | |
16845 | ||
16846 | sysv4*MP*) | |
16847 | if test -d /usr/nec ;then | |
16848 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
16849 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16850 | fi | |
16851 | ;; | |
16852 | ||
16853 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
16854 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16855 | lt_prog_compiler_pic_GCJ='-KPIC' | |
16856 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16857 | ;; | |
16858 | ||
16859 | unicos*) | |
16860 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16861 | lt_prog_compiler_can_build_shared_GCJ=no | |
16862 | ;; | |
16863 | ||
16864 | uts4*) | |
16865 | lt_prog_compiler_pic_GCJ='-pic' | |
16866 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16867 | ;; | |
16868 | ||
16869 | *) | |
16870 | lt_prog_compiler_can_build_shared_GCJ=no | |
16871 | ;; | |
16872 | esac | |
16873 | fi | |
16874 | ||
16875 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | |
16876 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } | |
16877 | ||
16878 | # | |
16879 | # Check to make sure the PIC flag actually works. | |
16880 | # | |
16881 | if test -n "$lt_prog_compiler_pic_GCJ"; then | |
16882 | ||
16883 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | |
16884 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } | |
16885 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | |
16886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16887 | else | |
16888 | lt_prog_compiler_pic_works_GCJ=no | |
16889 | ac_outfile=conftest.$ac_objext | |
16890 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16891 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | |
16892 | # Insert the option either (1) after the last *FLAGS variable, or | |
16893 | # (2) before a word containing "conftest.", or (3) at the end. | |
16894 | # Note that $ac_compile itself does not contain backslashes and begins | |
16895 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16896 | # The option is referenced via a variable to avoid confusing sed. | |
16897 | lt_compile=`echo "$ac_compile" | $SED \ | |
16898 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16899 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16900 | -e 's:$: $lt_compiler_flag:'` | |
16901 | (eval echo "\"\$as_me:16901: $lt_compile\"" >&5) | |
16902 | (eval "$lt_compile" 2>conftest.err) | |
16903 | ac_status=$? | |
16904 | cat conftest.err >&5 | |
16905 | echo "$as_me:16905: \$? = $ac_status" >&5 | |
16906 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
16907 | # The compiler can only warn and ignore the option if not recognized | |
16908 | # So say no if there are warnings other than the usual output. | |
16909 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
16910 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16911 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
16912 | lt_prog_compiler_pic_works_GCJ=yes | |
16913 | fi | |
16914 | fi | |
16915 | $rm conftest* | |
16916 | ||
16917 | fi | |
16918 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | |
16919 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } | |
16920 | ||
16921 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | |
16922 | case $lt_prog_compiler_pic_GCJ in | |
16923 | "" | " "*) ;; | |
16924 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
16925 | esac | |
16926 | else | |
16927 | lt_prog_compiler_pic_GCJ= | |
16928 | lt_prog_compiler_can_build_shared_GCJ=no | |
16929 | fi | |
16930 | ||
16931 | fi | |
16932 | case $host_os in | |
16933 | # For platforms which do not support PIC, -DPIC is meaningless: | |
16934 | *djgpp*) | |
16935 | lt_prog_compiler_pic_GCJ= | |
16936 | ;; | |
16937 | *) | |
16938 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | |
16939 | ;; | |
16940 | esac | |
16941 | ||
16942 | # | |
16943 | # Check to make sure the static flag actually works. | |
16944 | # | |
16945 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" | |
16946 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
16947 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
16948 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then | |
16949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16950 | else | |
16951 | lt_prog_compiler_static_works_GCJ=no | |
16952 | save_LDFLAGS="$LDFLAGS" | |
16953 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
16954 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
16955 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
16956 | # The linker can only warn and ignore the option if not recognized | |
16957 | # So say no if there are warnings | |
16958 | if test -s conftest.err; then | |
16959 | # Append any errors to the config.log. | |
16960 | cat conftest.err 1>&5 | |
16961 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
16962 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16963 | if diff conftest.exp conftest.er2 >/dev/null; then | |
16964 | lt_prog_compiler_static_works_GCJ=yes | |
16965 | fi | |
16966 | else | |
16967 | lt_prog_compiler_static_works_GCJ=yes | |
16968 | fi | |
16969 | fi | |
16970 | $rm conftest* | |
16971 | LDFLAGS="$save_LDFLAGS" | |
16972 | ||
16973 | fi | |
16974 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 | |
16975 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } | |
16976 | ||
16977 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then | |
16978 | : | |
16979 | else | |
16980 | lt_prog_compiler_static_GCJ= | |
16981 | fi | |
16982 | ||
16983 | ||
16984 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
16985 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
16986 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | |
16987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16988 | else | |
16989 | lt_cv_prog_compiler_c_o_GCJ=no | |
16990 | $rm -r conftest 2>/dev/null | |
16991 | mkdir conftest | |
16992 | cd conftest | |
16993 | mkdir out | |
16994 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16995 | ||
16996 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
16997 | # Insert the option either (1) after the last *FLAGS variable, or | |
16998 | # (2) before a word containing "conftest.", or (3) at the end. | |
16999 | # Note that $ac_compile itself does not contain backslashes and begins | |
17000 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
17001 | lt_compile=`echo "$ac_compile" | $SED \ | |
17002 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
17003 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
17004 | -e 's:$: $lt_compiler_flag:'` | |
17005 | (eval echo "\"\$as_me:17005: $lt_compile\"" >&5) | |
17006 | (eval "$lt_compile" 2>out/conftest.err) | |
17007 | ac_status=$? | |
17008 | cat out/conftest.err >&5 | |
17009 | echo "$as_me:17009: \$? = $ac_status" >&5 | |
17010 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
17011 | then | |
17012 | # The compiler can only warn and ignore the option if not recognized | |
17013 | # So say no if there are warnings | |
17014 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
17015 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
17016 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
17017 | lt_cv_prog_compiler_c_o_GCJ=yes | |
17018 | fi | |
17019 | fi | |
17020 | chmod u+w . 2>&5 | |
17021 | $rm conftest* | |
17022 | # SGI C++ compiler will create directory out/ii_files/ for | |
17023 | # template instantiation | |
17024 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
17025 | $rm out/* && rmdir out | |
17026 | cd .. | |
17027 | rmdir conftest | |
17028 | $rm conftest* | |
17029 | ||
17030 | fi | |
17031 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | |
17032 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } | |
17033 | ||
17034 | ||
17035 | hard_links="nottested" | |
17036 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
17037 | # do not overwrite the value of need_locks provided by the user | |
17038 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
17039 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
17040 | hard_links=yes | |
17041 | $rm conftest* | |
17042 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
17043 | touch conftest.a | |
17044 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
17045 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
17046 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
17047 | echo "${ECHO_T}$hard_links" >&6; } | |
17048 | if test "$hard_links" = no; then | |
17049 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
17050 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
17051 | need_locks=warn | |
17052 | fi | |
17053 | else | |
17054 | need_locks=no | |
17055 | fi | |
17056 | ||
17057 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
17058 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
17059 | ||
17060 | runpath_var= | |
17061 | allow_undefined_flag_GCJ= | |
17062 | enable_shared_with_static_runtimes_GCJ=no | |
17063 | archive_cmds_GCJ= | |
17064 | archive_expsym_cmds_GCJ= | |
17065 | old_archive_From_new_cmds_GCJ= | |
17066 | old_archive_from_expsyms_cmds_GCJ= | |
17067 | export_dynamic_flag_spec_GCJ= | |
17068 | whole_archive_flag_spec_GCJ= | |
17069 | thread_safe_flag_spec_GCJ= | |
17070 | hardcode_libdir_flag_spec_GCJ= | |
17071 | hardcode_libdir_flag_spec_ld_GCJ= | |
17072 | hardcode_libdir_separator_GCJ= | |
17073 | hardcode_direct_GCJ=no | |
17074 | hardcode_minus_L_GCJ=no | |
17075 | hardcode_shlibpath_var_GCJ=unsupported | |
17076 | link_all_deplibs_GCJ=unknown | |
17077 | hardcode_automatic_GCJ=no | |
17078 | module_cmds_GCJ= | |
17079 | module_expsym_cmds_GCJ= | |
17080 | always_export_symbols_GCJ=no | |
17081 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
17082 | # include_expsyms should be a list of space-separated symbols to be *always* | |
17083 | # included in the symbol list | |
17084 | include_expsyms_GCJ= | |
17085 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
17086 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
17087 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
17088 | # as well as any symbol that contains `d'. | |
17089 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | |
17090 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
17091 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
17092 | # the symbol is explicitly referenced. Since portable code cannot | |
17093 | # rely on this symbol name, it's probably fine to never include it in | |
17094 | # preloaded symbol tables. | |
17095 | extract_expsyms_cmds= | |
17096 | # Just being paranoid about ensuring that cc_basename is set. | |
17097 | for cc_temp in $compiler""; do | |
17098 | case $cc_temp in | |
17099 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
17100 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
17101 | \-*) ;; | |
17102 | *) break;; | |
17103 | esac | |
17104 | done | |
17105 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
17106 | ||
17107 | case $host_os in | |
17108 | cygwin* | mingw* | pw32*) | |
17109 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
17110 | # When not using gcc, we currently assume that we are using | |
17111 | # Microsoft Visual C++. | |
17112 | if test "$GCC" != yes; then | |
17113 | with_gnu_ld=no | |
17114 | fi | |
17115 | ;; | |
17116 | interix*) | |
17117 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
17118 | with_gnu_ld=yes | |
17119 | ;; | |
17120 | openbsd*) | |
17121 | with_gnu_ld=no | |
17122 | ;; | |
17123 | esac | |
17124 | ||
17125 | ld_shlibs_GCJ=yes | |
17126 | if test "$with_gnu_ld" = yes; then | |
17127 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
17128 | wlarc='${wl}' | |
17129 | ||
17130 | # Set some defaults for GNU ld with shared library support. These | |
17131 | # are reset later if shared libraries are not supported. Putting them | |
17132 | # here allows them to be overridden if necessary. | |
17133 | runpath_var=LD_RUN_PATH | |
17134 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
17135 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
17136 | # ancient GNU ld didn't support --whole-archive et. al. | |
17137 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
17138 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
17139 | else | |
17140 | whole_archive_flag_spec_GCJ= | |
17141 | fi | |
17142 | supports_anon_versioning=no | |
17143 | case `$LD -v 2>/dev/null` in | |
17144 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
17145 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
17146 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
17147 | *\ 2.11.*) ;; # other 2.11 versions | |
17148 | *) supports_anon_versioning=yes ;; | |
17149 | esac | |
17150 | ||
17151 | # See if GNU ld supports shared libraries. | |
17152 | case $host_os in | |
17153 | aix3* | aix4* | aix5*) | |
17154 | # On AIX/PPC, the GNU linker is very broken | |
17155 | if test "$host_cpu" != ia64; then | |
17156 | ld_shlibs_GCJ=no | |
17157 | cat <<EOF 1>&2 | |
17158 | ||
17159 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
17160 | *** to be unable to reliably create shared libraries on AIX. | |
17161 | *** Therefore, libtool is disabling shared libraries support. If you | |
17162 | *** really care for shared libraries, you may want to modify your PATH | |
17163 | *** so that a non-GNU linker is found, and then restart. | |
17164 | ||
17165 | EOF | |
17166 | fi | |
17167 | ;; | |
17168 | ||
17169 | amigaos*) | |
17170 | 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)' | |
17171 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17172 | hardcode_minus_L_GCJ=yes | |
17173 | ||
17174 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
17175 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
17176 | # to version 4, is to share data among multiple programs linked | |
17177 | # with the same dynamic library. Since this doesn't match the | |
17178 | # behavior of shared libraries on other platforms, we can't use | |
17179 | # them. | |
17180 | ld_shlibs_GCJ=no | |
17181 | ;; | |
17182 | ||
17183 | beos*) | |
17184 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
17185 | allow_undefined_flag_GCJ=unsupported | |
17186 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
17187 | # support --undefined. This deserves some investigation. FIXME | |
17188 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17189 | else | |
17190 | ld_shlibs_GCJ=no | |
17191 | fi | |
17192 | ;; | |
17193 | ||
17194 | cygwin* | mingw* | pw32*) | |
17195 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | |
17196 | # as there is no search path for DLLs. | |
17197 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17198 | allow_undefined_flag_GCJ=unsupported | |
17199 | always_export_symbols_GCJ=no | |
17200 | enable_shared_with_static_runtimes_GCJ=yes | |
17201 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
17202 | ||
17203 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
17204 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
17205 | # If the export-symbols file already is a .def file (1st line | |
17206 | # is EXPORTS), use it as is; otherwise, prepend... | |
17207 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
17208 | cp $export_symbols $output_objdir/$soname.def; | |
17209 | else | |
17210 | echo EXPORTS > $output_objdir/$soname.def; | |
17211 | cat $export_symbols >> $output_objdir/$soname.def; | |
17212 | fi~ | |
17213 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
17214 | else | |
17215 | ld_shlibs_GCJ=no | |
17216 | fi | |
17217 | ;; | |
17218 | ||
17219 | interix3*) | |
17220 | hardcode_direct_GCJ=no | |
17221 | hardcode_shlibpath_var_GCJ=no | |
17222 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
17223 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
17224 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
17225 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
17226 | # default) and relocated if they conflict, which is a slow very memory | |
17227 | # consuming and fragmenting process. To avoid this, we pick a random, | |
17228 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
17229 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
17230 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
17231 | archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
17232 | ;; | |
17233 | ||
17234 | linux* | k*bsd*-gnu) | |
17235 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
17236 | tmp_addflag= | |
17237 | case $cc_basename,$host_cpu in | |
17238 | pgcc*) # Portland Group C compiler | |
17239 | 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' | |
17240 | tmp_addflag=' $pic_flag' | |
17241 | ;; | |
17242 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
17243 | 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' | |
17244 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
17245 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
17246 | tmp_addflag=' -i_dynamic' ;; | |
17247 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
17248 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
17249 | ifc* | ifort*) # Intel Fortran compiler | |
17250 | tmp_addflag=' -nofor_main' ;; | |
17251 | esac | |
17252 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17253 | ||
17254 | if test $supports_anon_versioning = yes; then | |
17255 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | |
17256 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
17257 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
17258 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
17259 | fi | |
17260 | link_all_deplibs_GCJ=no | |
17261 | else | |
17262 | ld_shlibs_GCJ=no | |
17263 | fi | |
17264 | ;; | |
17265 | ||
17266 | netbsd* | netbsdelf*-gnu) | |
17267 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
17268 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
17269 | wlarc= | |
17270 | else | |
17271 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17272 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
17273 | fi | |
17274 | ;; | |
17275 | ||
17276 | solaris*) | |
17277 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
17278 | ld_shlibs_GCJ=no | |
17279 | cat <<EOF 1>&2 | |
17280 | ||
17281 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
17282 | *** create shared libraries on Solaris systems. Therefore, libtool | |
17283 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
89354eef | 17284 | *** binutils to release 2.9.1 or newer. Another option is to modify |
17285 | *** your PATH or compiler configuration so that the native linker is | |
17286 | *** used, and then restart. | |
17287 | ||
17288 | EOF | |
f58aa3e1 | 17289 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17290 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17291 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
17292 | else | |
17293 | ld_shlibs_GCJ=no | |
17294 | fi | |
17295 | ;; | |
89354eef | 17296 | |
f58aa3e1 | 17297 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
17298 | case `$LD -v 2>&1` in | |
17299 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
17300 | ld_shlibs_GCJ=no | |
17301 | cat <<_LT_EOF 1>&2 | |
89354eef | 17302 | |
f58aa3e1 | 17303 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
17304 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
17305 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
17306 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
17307 | *** your PATH or compiler configuration so that the native linker is | |
17308 | *** used, and then restart. | |
89354eef | 17309 | |
f58aa3e1 | 17310 | _LT_EOF |
17311 | ;; | |
17312 | *) | |
17313 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
17314 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
17315 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
17316 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
17317 | else | |
17318 | ld_shlibs_GCJ=no | |
17319 | fi | |
17320 | ;; | |
17321 | esac | |
89354eef | 17322 | ;; |
f58aa3e1 | 17323 | |
17324 | sunos4*) | |
17325 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
17326 | wlarc= | |
17327 | hardcode_direct_GCJ=yes | |
17328 | hardcode_shlibpath_var_GCJ=no | |
17329 | ;; | |
17330 | ||
89354eef | 17331 | *) |
f58aa3e1 | 17332 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17333 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17334 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
89354eef | 17335 | else |
f58aa3e1 | 17336 | ld_shlibs_GCJ=no |
89354eef | 17337 | fi |
17338 | ;; | |
17339 | esac | |
89354eef | 17340 | |
f58aa3e1 | 17341 | if test "$ld_shlibs_GCJ" = no; then |
17342 | runpath_var= | |
17343 | hardcode_libdir_flag_spec_GCJ= | |
17344 | export_dynamic_flag_spec_GCJ= | |
17345 | whole_archive_flag_spec_GCJ= | |
89354eef | 17346 | fi |
f58aa3e1 | 17347 | else |
17348 | # PORTME fill in a description of your system's linker (not GNU ld) | |
17349 | case $host_os in | |
17350 | aix3*) | |
17351 | allow_undefined_flag_GCJ=unsupported | |
17352 | always_export_symbols_GCJ=yes | |
17353 | 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' | |
17354 | # Note: this linker hardcodes the directories in LIBPATH if there | |
17355 | # are no directories specified by -L. | |
17356 | hardcode_minus_L_GCJ=yes | |
17357 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
17358 | # Neither direct hardcoding nor static linking is supported with a | |
17359 | # broken collect2. | |
17360 | hardcode_direct_GCJ=unsupported | |
17361 | fi | |
17362 | ;; | |
89354eef | 17363 | |
f58aa3e1 | 17364 | aix4* | aix5*) |
17365 | if test "$host_cpu" = ia64; then | |
17366 | # On IA64, the linker does run time linking by default, so we don't | |
17367 | # have to do anything special. | |
17368 | aix_use_runtimelinking=no | |
17369 | exp_sym_flag='-Bexport' | |
17370 | no_entry_flag="" | |
17371 | else | |
17372 | # If we're using GNU nm, then we don't want the "-C" option. | |
17373 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
17374 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
17375 | 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' | |
89354eef | 17376 | else |
f58aa3e1 | 17377 | 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' |
89354eef | 17378 | fi |
f58aa3e1 | 17379 | aix_use_runtimelinking=no |
17380 | ||
17381 | # Test if we are trying to use run time linking or normal | |
17382 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
17383 | # need to do runtime linking. | |
17384 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
17385 | for ld_flag in $LDFLAGS; do | |
17386 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
17387 | aix_use_runtimelinking=yes | |
17388 | break | |
17389 | fi | |
17390 | done | |
17391 | ;; | |
17392 | esac | |
89354eef | 17393 | |
f58aa3e1 | 17394 | exp_sym_flag='-bexport' |
17395 | no_entry_flag='-bnoentry' | |
17396 | fi | |
17397 | ||
17398 | # When large executables or shared objects are built, AIX ld can | |
17399 | # have problems creating the table of contents. If linking a library | |
17400 | # or program results in "error TOC overflow" add -mminimal-toc to | |
17401 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
17402 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
17403 | ||
17404 | archive_cmds_GCJ='' | |
17405 | hardcode_direct_GCJ=yes | |
17406 | hardcode_libdir_separator_GCJ=':' | |
17407 | link_all_deplibs_GCJ=yes | |
17408 | ||
17409 | if test "$GCC" = yes; then | |
17410 | case $host_os in aix4.[012]|aix4.[012].*) | |
17411 | # We only want to do this on AIX 4.2 and lower, the check | |
17412 | # below for broken collect2 doesn't work under 4.3+ | |
17413 | collect2name=`${CC} -print-prog-name=collect2` | |
17414 | if test -f "$collect2name" && \ | |
17415 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
17416 | then | |
17417 | # We have reworked collect2 | |
17418 | hardcode_direct_GCJ=yes | |
17419 | else | |
17420 | # We have old collect2 | |
17421 | hardcode_direct_GCJ=unsupported | |
17422 | # It fails to find uninstalled libraries when the uninstalled | |
17423 | # path is not listed in the libpath. Setting hardcode_minus_L | |
17424 | # to unsupported forces relinking | |
17425 | hardcode_minus_L_GCJ=yes | |
17426 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17427 | hardcode_libdir_separator_GCJ= | |
17428 | fi | |
17429 | ;; | |
17430 | esac | |
17431 | shared_flag='-shared' | |
89354eef | 17432 | if test "$aix_use_runtimelinking" = yes; then |
f58aa3e1 | 17433 | shared_flag="$shared_flag "'${wl}-G' |
17434 | fi | |
17435 | else | |
17436 | # not using gcc | |
17437 | if test "$host_cpu" = ia64; then | |
17438 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
17439 | # chokes on -Wl,-G. The following line is correct: | |
17440 | shared_flag='-G' | |
89354eef | 17441 | else |
f58aa3e1 | 17442 | if test "$aix_use_runtimelinking" = yes; then |
17443 | shared_flag='${wl}-G' | |
17444 | else | |
17445 | shared_flag='${wl}-bM:SRE' | |
17446 | fi | |
89354eef | 17447 | fi |
17448 | fi | |
89354eef | 17449 | |
f58aa3e1 | 17450 | # It seems that -bexpall does not export symbols beginning with |
17451 | # underscore (_), so it is better to generate a list of symbols to export. | |
17452 | always_export_symbols_GCJ=yes | |
17453 | if test "$aix_use_runtimelinking" = yes; then | |
17454 | # Warning - without using the other runtime loading flags (-brtl), | |
89354eef | 17455 | # -berok will link without error, but may produce a broken library. |
f58aa3e1 | 17456 | allow_undefined_flag_GCJ='-berok' |
17457 | # Determine the default libpath from the value encoded in an empty executable. | |
17458 | cat >conftest.$ac_ext <<_ACEOF | |
17459 | /* confdefs.h. */ | |
17460 | _ACEOF | |
17461 | cat confdefs.h >>conftest.$ac_ext | |
17462 | cat >>conftest.$ac_ext <<_ACEOF | |
17463 | /* end confdefs.h. */ | |
89354eef | 17464 | |
f58aa3e1 | 17465 | int |
17466 | main () | |
17467 | { | |
89354eef | 17468 | |
f58aa3e1 | 17469 | ; |
17470 | return 0; | |
17471 | } | |
17472 | _ACEOF | |
17473 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17474 | if { (ac_try="$ac_link" | |
17475 | case "(($ac_try" in | |
17476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17477 | *) ac_try_echo=$ac_try;; | |
17478 | esac | |
17479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17480 | (eval "$ac_link") 2>conftest.er1 | |
17481 | ac_status=$? | |
17482 | grep -v '^ *+' conftest.er1 >conftest.err | |
17483 | rm -f conftest.er1 | |
17484 | cat conftest.err >&5 | |
17485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17486 | (exit $ac_status); } && | |
17487 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17488 | { (case "(($ac_try" in | |
17489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17490 | *) ac_try_echo=$ac_try;; | |
17491 | esac | |
17492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17493 | (eval "$ac_try") 2>&5 | |
17494 | ac_status=$? | |
17495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17496 | (exit $ac_status); }; } && | |
17497 | { ac_try='test -s conftest$ac_exeext' | |
17498 | { (case "(($ac_try" in | |
17499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17500 | *) ac_try_echo=$ac_try;; | |
17501 | esac | |
17502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17503 | (eval "$ac_try") 2>&5 | |
17504 | ac_status=$? | |
17505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17506 | (exit $ac_status); }; }; then | |
89354eef | 17507 | |
f58aa3e1 | 17508 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17509 | }'` | |
17510 | # Check for a 64-bit object if we didn't find anything. | |
17511 | 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; } | |
17512 | }'`; fi | |
17513 | else | |
17514 | echo "$as_me: failed program was:" >&5 | |
17515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
89354eef | 17516 | |
89354eef | 17517 | |
f58aa3e1 | 17518 | fi |
89354eef | 17519 | |
f58aa3e1 | 17520 | rm -f core conftest.err conftest.$ac_objext \ |
17521 | conftest$ac_exeext conftest.$ac_ext | |
17522 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
89354eef | 17523 | |
f58aa3e1 | 17524 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17525 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
17526 | else | |
17527 | if test "$host_cpu" = ia64; then | |
17528 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
17529 | allow_undefined_flag_GCJ="-z nodefs" | |
17530 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
17531 | else | |
17532 | # Determine the default libpath from the value encoded in an empty executable. | |
17533 | cat >conftest.$ac_ext <<_ACEOF | |
17534 | /* confdefs.h. */ | |
17535 | _ACEOF | |
17536 | cat confdefs.h >>conftest.$ac_ext | |
17537 | cat >>conftest.$ac_ext <<_ACEOF | |
17538 | /* end confdefs.h. */ | |
89354eef | 17539 | |
f58aa3e1 | 17540 | int |
17541 | main () | |
17542 | { | |
89354eef | 17543 | |
f58aa3e1 | 17544 | ; |
17545 | return 0; | |
17546 | } | |
17547 | _ACEOF | |
17548 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17549 | if { (ac_try="$ac_link" | |
17550 | case "(($ac_try" in | |
17551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17552 | *) ac_try_echo=$ac_try;; | |
17553 | esac | |
17554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17555 | (eval "$ac_link") 2>conftest.er1 | |
17556 | ac_status=$? | |
17557 | grep -v '^ *+' conftest.er1 >conftest.err | |
17558 | rm -f conftest.er1 | |
17559 | cat conftest.err >&5 | |
17560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17561 | (exit $ac_status); } && | |
17562 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17563 | { (case "(($ac_try" in | |
17564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17565 | *) ac_try_echo=$ac_try;; | |
17566 | esac | |
17567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17568 | (eval "$ac_try") 2>&5 | |
17569 | ac_status=$? | |
17570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17571 | (exit $ac_status); }; } && | |
17572 | { ac_try='test -s conftest$ac_exeext' | |
17573 | { (case "(($ac_try" in | |
17574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17575 | *) ac_try_echo=$ac_try;; | |
17576 | esac | |
17577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17578 | (eval "$ac_try") 2>&5 | |
17579 | ac_status=$? | |
17580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17581 | (exit $ac_status); }; }; then | |
17582 | ||
17583 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
17584 | }'` | |
17585 | # Check for a 64-bit object if we didn't find anything. | |
17586 | 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; } | |
17587 | }'`; fi | |
17588 | else | |
17589 | echo "$as_me: failed program was:" >&5 | |
17590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17591 | ||
17592 | ||
17593 | fi | |
17594 | ||
17595 | rm -f core conftest.err conftest.$ac_objext \ | |
17596 | conftest$ac_exeext conftest.$ac_ext | |
17597 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
17598 | ||
17599 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
17600 | # Warning - without using the other run time loading flags, | |
17601 | # -berok will link without error, but may produce a broken library. | |
17602 | no_undefined_flag_GCJ=' ${wl}-bernotok' | |
17603 | allow_undefined_flag_GCJ=' ${wl}-berok' | |
17604 | # Exported symbols can be pulled into shared objects from archives | |
17605 | whole_archive_flag_spec_GCJ='$convenience' | |
17606 | archive_cmds_need_lc_GCJ=yes | |
17607 | # This is similar to how AIX traditionally builds its shared libraries. | |
17608 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
17609 | fi | |
17610 | fi | |
17611 | ;; | |
17612 | ||
17613 | amigaos*) | |
17614 | 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)' | |
17615 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17616 | hardcode_minus_L_GCJ=yes | |
17617 | # see comment about different semantics on the GNU ld section | |
17618 | ld_shlibs_GCJ=no | |
17619 | ;; | |
17620 | ||
17621 | bsdi[45]*) | |
17622 | export_dynamic_flag_spec_GCJ=-rdynamic | |
17623 | ;; | |
17624 | ||
17625 | cygwin* | mingw* | pw32*) | |
17626 | # When not using gcc, we currently assume that we are using | |
17627 | # Microsoft Visual C++. | |
17628 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
17629 | # no search path for DLLs. | |
17630 | hardcode_libdir_flag_spec_GCJ=' ' | |
17631 | allow_undefined_flag_GCJ=unsupported | |
17632 | # Tell ltmain to make .lib files, not .a files. | |
17633 | libext=lib | |
17634 | # Tell ltmain to make .dll files, not .so files. | |
17635 | shrext_cmds=".dll" | |
17636 | # FIXME: Setting linknames here is a bad hack. | |
17637 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
17638 | # The linker will automatically build a .lib file if we build a DLL. | |
17639 | old_archive_From_new_cmds_GCJ='true' | |
17640 | # FIXME: Should let the user specify the lib program. | |
17641 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
17642 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' | |
17643 | enable_shared_with_static_runtimes_GCJ=yes | |
17644 | ;; | |
17645 | ||
17646 | darwin* | rhapsody*) | |
17647 | case $host_os in | |
17648 | rhapsody* | darwin1.[012]) | |
17649 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | |
17650 | ;; | |
17651 | *) # Darwin 1.3 on | |
17652 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
17653 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
17654 | else | |
17655 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
17656 | 10.[012]) | |
17657 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
17658 | ;; | |
17659 | 10.*) | |
17660 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | |
17661 | ;; | |
17662 | esac | |
17663 | fi | |
17664 | ;; | |
17665 | esac | |
17666 | archive_cmds_need_lc_GCJ=no | |
17667 | hardcode_direct_GCJ=no | |
17668 | hardcode_automatic_GCJ=yes | |
17669 | hardcode_shlibpath_var_GCJ=unsupported | |
17670 | whole_archive_flag_spec_GCJ='' | |
17671 | link_all_deplibs_GCJ=yes | |
17672 | if test "$GCC" = yes ; then | |
17673 | output_verbose_link_cmd='echo' | |
17674 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
17675 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
17676 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
17677 | 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}' | |
17678 | 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}' | |
89354eef | 17679 | else |
f58aa3e1 | 17680 | case $cc_basename in |
17681 | xlc*) | |
17682 | output_verbose_link_cmd='echo' | |
17683 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
17684 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
17685 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
17686 | 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}' | |
17687 | 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}' | |
17688 | ;; | |
17689 | *) | |
17690 | ld_shlibs_GCJ=no | |
17691 | ;; | |
17692 | esac | |
89354eef | 17693 | fi |
f58aa3e1 | 17694 | ;; |
17695 | ||
17696 | dgux*) | |
17697 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17698 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17699 | hardcode_shlibpath_var_GCJ=no | |
17700 | ;; | |
17701 | ||
17702 | freebsd1*) | |
17703 | ld_shlibs_GCJ=no | |
17704 | ;; | |
17705 | ||
17706 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
17707 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
17708 | # does not break anything, and helps significantly (at the cost of a little | |
17709 | # extra space). | |
17710 | freebsd2.2*) | |
17711 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
17712 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17713 | hardcode_direct_GCJ=yes | |
17714 | hardcode_shlibpath_var_GCJ=no | |
17715 | ;; | |
17716 | ||
17717 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
17718 | freebsd2*) | |
17719 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
17720 | hardcode_direct_GCJ=yes | |
17721 | hardcode_minus_L_GCJ=yes | |
17722 | hardcode_shlibpath_var_GCJ=no | |
17723 | ;; | |
17724 | ||
17725 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
17726 | freebsd* | dragonfly*) | |
17727 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
17728 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17729 | hardcode_direct_GCJ=yes | |
17730 | hardcode_shlibpath_var_GCJ=no | |
17731 | ;; | |
17732 | ||
17733 | hpux9*) | |
17734 | if test "$GCC" = yes; then | |
17735 | 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' | |
17736 | else | |
17737 | 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' | |
17738 | fi | |
17739 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
17740 | hardcode_libdir_separator_GCJ=: | |
17741 | hardcode_direct_GCJ=yes | |
17742 | ||
17743 | # hardcode_minus_L: Not really in the search PATH, | |
17744 | # but as the default location of the library. | |
17745 | hardcode_minus_L_GCJ=yes | |
17746 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
17747 | ;; | |
89354eef | 17748 | |
f58aa3e1 | 17749 | hpux10*) |
17750 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
17751 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
17752 | else | |
17753 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
17754 | fi | |
17755 | if test "$with_gnu_ld" = no; then | |
17756 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
17757 | hardcode_libdir_separator_GCJ=: | |
89354eef | 17758 | |
f58aa3e1 | 17759 | hardcode_direct_GCJ=yes |
17760 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
89354eef | 17761 | |
f58aa3e1 | 17762 | # hardcode_minus_L: Not really in the search PATH, |
17763 | # but as the default location of the library. | |
17764 | hardcode_minus_L_GCJ=yes | |
17765 | fi | |
17766 | ;; | |
89354eef | 17767 | |
f58aa3e1 | 17768 | hpux11*) |
17769 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
17770 | case $host_cpu in | |
17771 | hppa*64*) | |
17772 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17773 | ;; | |
17774 | ia64*) | |
17775 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
17776 | ;; | |
17777 | *) | |
17778 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
17779 | ;; | |
17780 | esac | |
17781 | else | |
17782 | case $host_cpu in | |
17783 | hppa*64*) | |
17784 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17785 | ;; | |
17786 | ia64*) | |
17787 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
17788 | ;; | |
17789 | *) | |
17790 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
17791 | ;; | |
17792 | esac | |
17793 | fi | |
17794 | if test "$with_gnu_ld" = no; then | |
17795 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
17796 | hardcode_libdir_separator_GCJ=: | |
17797 | ||
17798 | case $host_cpu in | |
17799 | hppa*64*|ia64*) | |
17800 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | |
17801 | hardcode_direct_GCJ=no | |
17802 | hardcode_shlibpath_var_GCJ=no | |
17803 | ;; | |
17804 | *) | |
17805 | hardcode_direct_GCJ=yes | |
17806 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
17807 | ||
17808 | # hardcode_minus_L: Not really in the search PATH, | |
17809 | # but as the default location of the library. | |
17810 | hardcode_minus_L_GCJ=yes | |
17811 | ;; | |
17812 | esac | |
17813 | fi | |
17814 | ;; | |
89354eef | 17815 | |
f58aa3e1 | 17816 | irix5* | irix6* | nonstopux*) |
17817 | if test "$GCC" = yes; then | |
17818 | 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' | |
17819 | else | |
17820 | 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' | |
17821 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | |
17822 | fi | |
17823 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17824 | hardcode_libdir_separator_GCJ=: | |
17825 | link_all_deplibs_GCJ=yes | |
17826 | ;; | |
89354eef | 17827 | |
f58aa3e1 | 17828 | netbsd* | netbsdelf*-gnu) |
17829 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
17830 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
17831 | else | |
17832 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
17833 | fi | |
17834 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17835 | hardcode_direct_GCJ=yes | |
17836 | hardcode_shlibpath_var_GCJ=no | |
17837 | ;; | |
89354eef | 17838 | |
f58aa3e1 | 17839 | newsos6) |
17840 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17841 | hardcode_direct_GCJ=yes | |
17842 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17843 | hardcode_libdir_separator_GCJ=: | |
17844 | hardcode_shlibpath_var_GCJ=no | |
17845 | ;; | |
89354eef | 17846 | |
f58aa3e1 | 17847 | openbsd*) |
17848 | hardcode_direct_GCJ=yes | |
17849 | hardcode_shlibpath_var_GCJ=no | |
17850 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
17851 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
17852 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
17853 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
17854 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
17855 | else | |
17856 | case $host_os in | |
17857 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
17858 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
17859 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17860 | ;; | |
17861 | *) | |
17862 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
17863 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
17864 | ;; | |
17865 | esac | |
17866 | fi | |
17867 | ;; | |
89354eef | 17868 | |
f58aa3e1 | 17869 | os2*) |
17870 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17871 | hardcode_minus_L_GCJ=yes | |
17872 | allow_undefined_flag_GCJ=unsupported | |
17873 | 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' | |
17874 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
17875 | ;; | |
89354eef | 17876 | |
f58aa3e1 | 17877 | osf3*) |
17878 | if test "$GCC" = yes; then | |
17879 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
17880 | 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' | |
17881 | else | |
17882 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
17883 | 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' | |
17884 | fi | |
17885 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17886 | hardcode_libdir_separator_GCJ=: | |
17887 | ;; | |
89354eef | 17888 | |
f58aa3e1 | 17889 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
17890 | if test "$GCC" = yes; then | |
17891 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
17892 | 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' | |
17893 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17894 | else | |
17895 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
17896 | 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' | |
17897 | 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~ | |
17898 | $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' | |
89354eef | 17899 | |
f58aa3e1 | 17900 | # Both c and cxx compiler support -rpath directly |
17901 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
17902 | fi | |
17903 | hardcode_libdir_separator_GCJ=: | |
17904 | ;; | |
89354eef | 17905 | |
f58aa3e1 | 17906 | solaris*) |
17907 | no_undefined_flag_GCJ=' -z text' | |
17908 | if test "$GCC" = yes; then | |
17909 | wlarc='${wl}' | |
17910 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17911 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
17912 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
17913 | else | |
17914 | wlarc='' | |
17915 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17916 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
17917 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
17918 | fi | |
17919 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17920 | hardcode_shlibpath_var_GCJ=no | |
17921 | case $host_os in | |
17922 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
17923 | *) | |
17924 | # The compiler driver will combine linker options so we | |
17925 | # cannot just pass the convience library names through | |
17926 | # without $wl, iff we do not link with $LD. | |
17927 | # Luckily, gcc supports the same syntax we need for Sun Studio. | |
17928 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
17929 | case $wlarc in | |
17930 | '') | |
17931 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | |
17932 | *) | |
17933 | 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' ;; | |
17934 | esac ;; | |
17935 | esac | |
17936 | link_all_deplibs_GCJ=yes | |
17937 | ;; | |
89354eef | 17938 | |
f58aa3e1 | 17939 | sunos4*) |
17940 | if test "x$host_vendor" = xsequent; then | |
17941 | # Use $CC to link under sequent, because it throws in some extra .o | |
17942 | # files that make .init and .fini sections work. | |
17943 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
17944 | else | |
17945 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
17946 | fi | |
17947 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17948 | hardcode_direct_GCJ=yes | |
17949 | hardcode_minus_L_GCJ=yes | |
17950 | hardcode_shlibpath_var_GCJ=no | |
17951 | ;; | |
89354eef | 17952 | |
f58aa3e1 | 17953 | sysv4) |
17954 | case $host_vendor in | |
17955 | sni) | |
17956 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17957 | hardcode_direct_GCJ=yes # is this really true??? | |
17958 | ;; | |
17959 | siemens) | |
17960 | ## LD is ld it makes a PLAMLIB | |
17961 | ## CC just makes a GrossModule. | |
17962 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
17963 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' | |
17964 | hardcode_direct_GCJ=no | |
17965 | ;; | |
17966 | motorola) | |
17967 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17968 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
17969 | ;; | |
17970 | esac | |
17971 | runpath_var='LD_RUN_PATH' | |
17972 | hardcode_shlibpath_var_GCJ=no | |
17973 | ;; | |
89354eef | 17974 | |
f58aa3e1 | 17975 | sysv4.3*) |
17976 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17977 | hardcode_shlibpath_var_GCJ=no | |
17978 | export_dynamic_flag_spec_GCJ='-Bexport' | |
17979 | ;; | |
89354eef | 17980 | |
f58aa3e1 | 17981 | sysv4*MP*) |
17982 | if test -d /usr/nec; then | |
17983 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17984 | hardcode_shlibpath_var_GCJ=no | |
17985 | runpath_var=LD_RUN_PATH | |
17986 | hardcode_runpath_var=yes | |
17987 | ld_shlibs_GCJ=yes | |
17988 | fi | |
17989 | ;; | |
89354eef | 17990 | |
f58aa3e1 | 17991 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
17992 | no_undefined_flag_GCJ='${wl}-z,text' | |
17993 | archive_cmds_need_lc_GCJ=no | |
17994 | hardcode_shlibpath_var_GCJ=no | |
17995 | runpath_var='LD_RUN_PATH' | |
89354eef | 17996 | |
f58aa3e1 | 17997 | if test "$GCC" = yes; then |
17998 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17999 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18000 | else | |
18001 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18002 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18003 | fi | |
18004 | ;; | |
89354eef | 18005 | |
f58aa3e1 | 18006 | sysv5* | sco3.2v5* | sco5v6*) |
18007 | # Note: We can NOT use -z defs as we might desire, because we do not | |
18008 | # link with -lc, and that would cause any symbols used from libc to | |
18009 | # always be unresolved, which means just about no library would | |
18010 | # ever link correctly. If we're not using GNU ld we use -z text | |
18011 | # though, which does catch some bad symbols but isn't as heavy-handed | |
18012 | # as -z defs. | |
18013 | no_undefined_flag_GCJ='${wl}-z,text' | |
18014 | allow_undefined_flag_GCJ='${wl}-z,nodefs' | |
18015 | archive_cmds_need_lc_GCJ=no | |
18016 | hardcode_shlibpath_var_GCJ=no | |
18017 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
18018 | hardcode_libdir_separator_GCJ=':' | |
18019 | link_all_deplibs_GCJ=yes | |
18020 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
18021 | runpath_var='LD_RUN_PATH' | |
18022 | ||
18023 | if test "$GCC" = yes; then | |
18024 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18025 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18026 | else | |
18027 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18028 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18029 | fi | |
18030 | ;; | |
89354eef | 18031 | |
f58aa3e1 | 18032 | uts4*) |
18033 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18034 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
18035 | hardcode_shlibpath_var_GCJ=no | |
18036 | ;; | |
89354eef | 18037 | |
f58aa3e1 | 18038 | *) |
18039 | ld_shlibs_GCJ=no | |
18040 | ;; | |
18041 | esac | |
89354eef | 18042 | fi |
89354eef | 18043 | |
f58aa3e1 | 18044 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
18045 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } | |
18046 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | |
89354eef | 18047 | |
f58aa3e1 | 18048 | # |
18049 | # Do we need to explicitly link libc? | |
18050 | # | |
18051 | case "x$archive_cmds_need_lc_GCJ" in | |
18052 | x|xyes) | |
18053 | # Assume -lc should be added | |
18054 | archive_cmds_need_lc_GCJ=yes | |
18055 | ||
18056 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
18057 | case $archive_cmds_GCJ in | |
18058 | *'~'*) | |
18059 | # FIXME: we may have to deal with multi-command sequences. | |
18060 | ;; | |
18061 | '$CC '*) | |
18062 | # Test whether the compiler implicitly links with -lc since on some | |
18063 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
18064 | # to ld, don't add -lc before -lgcc. | |
18065 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
18066 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
18067 | $rm conftest* | |
18068 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
18069 | ||
18070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18071 | (eval $ac_compile) 2>&5 | |
18072 | ac_status=$? | |
18073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18074 | (exit $ac_status); } 2>conftest.err; then | |
18075 | soname=conftest | |
18076 | lib=conftest | |
18077 | libobjs=conftest.$ac_objext | |
18078 | deplibs= | |
18079 | wl=$lt_prog_compiler_wl_GCJ | |
18080 | pic_flag=$lt_prog_compiler_pic_GCJ | |
18081 | compiler_flags=-v | |
18082 | linker_flags=-v | |
18083 | verstring= | |
18084 | output_objdir=. | |
18085 | libname=conftest | |
18086 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
18087 | allow_undefined_flag_GCJ= | |
18088 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
18089 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
18090 | ac_status=$? | |
18091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18092 | (exit $ac_status); } | |
18093 | then | |
18094 | archive_cmds_need_lc_GCJ=no | |
18095 | else | |
18096 | archive_cmds_need_lc_GCJ=yes | |
18097 | fi | |
18098 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
18099 | else | |
18100 | cat conftest.err 1>&5 | |
18101 | fi | |
18102 | $rm conftest* | |
18103 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | |
18104 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } | |
18105 | ;; | |
18106 | esac | |
18107 | fi | |
18108 | ;; | |
18109 | esac | |
89354eef | 18110 | |
f58aa3e1 | 18111 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
18112 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
89354eef | 18113 | library_names_spec= |
18114 | libname_spec='lib$name' | |
18115 | soname_spec= | |
f58aa3e1 | 18116 | shrext_cmds=".so" |
89354eef | 18117 | postinstall_cmds= |
18118 | postuninstall_cmds= | |
18119 | finish_cmds= | |
18120 | finish_eval= | |
18121 | shlibpath_var= | |
18122 | shlibpath_overrides_runpath=unknown | |
18123 | version_type=none | |
18124 | dynamic_linker="$host_os ld.so" | |
18125 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
f58aa3e1 | 18126 | if test "$GCC" = yes; then |
18127 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
18128 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
18129 | # if the path contains ";" then we assume it to be the separator | |
18130 | # otherwise default to the standard path separator (i.e. ":") - it is | |
18131 | # assumed that no part of a normal pathname contains ";" but that should | |
18132 | # okay in the real world where ";" in dirpaths is itself problematic. | |
18133 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
18134 | else | |
18135 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
18136 | fi | |
18137 | else | |
18138 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
18139 | fi | |
18140 | need_lib_prefix=unknown | |
18141 | hardcode_into_libs=no | |
18142 | ||
18143 | # when you set need_version to no, make sure it does not cause -set_version | |
18144 | # flags to be left without arguments | |
18145 | need_version=unknown | |
89354eef | 18146 | |
18147 | case $host_os in | |
18148 | aix3*) | |
18149 | version_type=linux | |
f58aa3e1 | 18150 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
89354eef | 18151 | shlibpath_var=LIBPATH |
18152 | ||
f58aa3e1 | 18153 | # AIX 3 has no versioning support, so we append a major version to the name. |
18154 | soname_spec='${libname}${release}${shared_ext}$major' | |
89354eef | 18155 | ;; |
18156 | ||
18157 | aix4* | aix5*) | |
18158 | version_type=linux | |
f58aa3e1 | 18159 | need_lib_prefix=no |
18160 | need_version=no | |
18161 | hardcode_into_libs=yes | |
89354eef | 18162 | if test "$host_cpu" = ia64; then |
18163 | # AIX 5 supports IA64 | |
f58aa3e1 | 18164 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
89354eef | 18165 | shlibpath_var=LD_LIBRARY_PATH |
18166 | else | |
18167 | # With GCC up to 2.95.x, collect2 would create an import file | |
18168 | # for dependence libraries. The import file would start with | |
18169 | # the line `#! .'. This would cause the generated library to | |
18170 | # depend on `.', always an invalid library. This was fixed in | |
18171 | # development snapshots of GCC prior to 3.0. | |
18172 | case $host_os in | |
18173 | aix4 | aix4.[01] | aix4.[01].*) | |
f58aa3e1 | 18174 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
18175 | echo ' yes ' | |
18176 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
18177 | : | |
18178 | else | |
18179 | can_build_shared=no | |
18180 | fi | |
18181 | ;; | |
89354eef | 18182 | esac |
f58aa3e1 | 18183 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
18184 | # soname into executable. Probably we can add versioning support to | |
18185 | # collect2, so additional links can be useful in future. | |
89354eef | 18186 | if test "$aix_use_runtimelinking" = yes; then |
18187 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
18188 | # instead of lib<name>.a to let people know that these are not | |
18189 | # typical AIX shared libraries. | |
f58aa3e1 | 18190 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
89354eef | 18191 | else |
18192 | # We preserve .a as extension for shared libraries through AIX4.2 | |
18193 | # and later when we are not doing run time linking. | |
18194 | library_names_spec='${libname}${release}.a $libname.a' | |
f58aa3e1 | 18195 | soname_spec='${libname}${release}${shared_ext}$major' |
89354eef | 18196 | fi |
18197 | shlibpath_var=LIBPATH | |
18198 | fi | |
18199 | ;; | |
18200 | ||
18201 | amigaos*) | |
18202 | library_names_spec='$libname.ixlibrary $libname.a' | |
18203 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
f58aa3e1 | 18204 | 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' |
89354eef | 18205 | ;; |
18206 | ||
18207 | beos*) | |
f58aa3e1 | 18208 | library_names_spec='${libname}${shared_ext}' |
89354eef | 18209 | dynamic_linker="$host_os ld.so" |
18210 | shlibpath_var=LIBRARY_PATH | |
18211 | ;; | |
18212 | ||
f58aa3e1 | 18213 | bsdi[45]*) |
89354eef | 18214 | version_type=linux |
18215 | need_version=no | |
f58aa3e1 | 18216 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18217 | soname_spec='${libname}${release}${shared_ext}$major' | |
89354eef | 18218 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
18219 | shlibpath_var=LD_LIBRARY_PATH | |
18220 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
18221 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
89354eef | 18222 | # the default ld.so.conf also contains /usr/contrib/lib and |
18223 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
18224 | # libtool to hard-code these into programs | |
18225 | ;; | |
18226 | ||
18227 | cygwin* | mingw* | pw32*) | |
18228 | version_type=windows | |
f58aa3e1 | 18229 | shrext_cmds=".dll" |
89354eef | 18230 | need_version=no |
18231 | need_lib_prefix=no | |
f58aa3e1 | 18232 | |
89354eef | 18233 | case $GCC,$host_os in |
f58aa3e1 | 18234 | yes,cygwin* | yes,mingw* | yes,pw32*) |
89354eef | 18235 | library_names_spec='$libname.dll.a' |
f58aa3e1 | 18236 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
18237 | postinstall_cmds='base_file=`basename \${file}`~ | |
18238 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
89354eef | 18239 | dldir=$destdir/`dirname \$dlpath`~ |
18240 | test -d \$dldir || mkdir -p \$dldir~ | |
f58aa3e1 | 18241 | $install_prog $dir/$dlname \$dldir/$dlname~ |
18242 | chmod a+x \$dldir/$dlname' | |
18243 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
89354eef | 18244 | dlpath=$dir/\$dldll~ |
18245 | $rm \$dlpath' | |
f58aa3e1 | 18246 | shlibpath_overrides_runpath=yes |
18247 | ||
18248 | case $host_os in | |
18249 | cygwin*) | |
18250 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
18251 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
18252 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
18253 | ;; | |
18254 | mingw*) | |
18255 | # MinGW DLLs use traditional 'lib' prefix | |
18256 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
18257 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
18258 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
18259 | # It is most probably a Windows format PATH printed by | |
18260 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
18261 | # path with ; separators, and with drive letters. We can handle the | |
18262 | # drive letters (cygwin fileutils understands them), so leave them, | |
18263 | # especially as we might pass files found there to a mingw objdump, | |
18264 | # which wouldn't understand a cygwinified path. Ahh. | |
18265 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
18266 | else | |
18267 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
18268 | fi | |
18269 | ;; | |
18270 | pw32*) | |
18271 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
18272 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
18273 | ;; | |
18274 | esac | |
89354eef | 18275 | ;; |
f58aa3e1 | 18276 | |
89354eef | 18277 | *) |
f58aa3e1 | 18278 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
89354eef | 18279 | ;; |
18280 | esac | |
18281 | dynamic_linker='Win32 ld.exe' | |
18282 | # FIXME: first we should search . and the directory the executable is in | |
18283 | shlibpath_var=PATH | |
18284 | ;; | |
18285 | ||
18286 | darwin* | rhapsody*) | |
18287 | dynamic_linker="$host_os dyld" | |
18288 | version_type=darwin | |
18289 | need_lib_prefix=no | |
18290 | need_version=no | |
f58aa3e1 | 18291 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
18292 | soname_spec='${libname}${release}${major}$shared_ext' | |
89354eef | 18293 | shlibpath_overrides_runpath=yes |
18294 | shlibpath_var=DYLD_LIBRARY_PATH | |
f58aa3e1 | 18295 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
18296 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
18297 | if test "$GCC" = yes; then | |
18298 | 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"` | |
18299 | else | |
18300 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
18301 | fi | |
18302 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
18303 | ;; | |
18304 | ||
18305 | dgux*) | |
18306 | version_type=linux | |
18307 | need_lib_prefix=no | |
18308 | need_version=no | |
18309 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
18310 | soname_spec='${libname}${release}${shared_ext}$major' | |
18311 | shlibpath_var=LD_LIBRARY_PATH | |
89354eef | 18312 | ;; |
18313 | ||
18314 | freebsd1*) | |
18315 | dynamic_linker=no | |
18316 | ;; | |
18317 | ||
f58aa3e1 | 18318 | freebsd* | dragonfly*) |
18319 | # DragonFly does not have aout. When/if they implement a new | |
18320 | # versioning mechanism, adjust this. | |
18321 | if test -x /usr/bin/objformat; then | |
18322 | objformat=`/usr/bin/objformat` | |
18323 | else | |
18324 | case $host_os in | |
18325 | freebsd[123]*) objformat=aout ;; | |
18326 | *) objformat=elf ;; | |
18327 | esac | |
18328 | fi | |
89354eef | 18329 | version_type=freebsd-$objformat |
18330 | case $version_type in | |
18331 | freebsd-elf*) | |
f58aa3e1 | 18332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
89354eef | 18333 | need_version=no |
18334 | need_lib_prefix=no | |
18335 | ;; | |
18336 | freebsd-*) | |
f58aa3e1 | 18337 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
89354eef | 18338 | need_version=yes |
18339 | ;; | |
18340 | esac | |
18341 | shlibpath_var=LD_LIBRARY_PATH | |
18342 | case $host_os in | |
18343 | freebsd2*) | |
18344 | shlibpath_overrides_runpath=yes | |
18345 | ;; | |
f58aa3e1 | 18346 | freebsd3.[01]* | freebsdelf3.[01]*) |
18347 | shlibpath_overrides_runpath=yes | |
18348 | hardcode_into_libs=yes | |
18349 | ;; | |
18350 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
18351 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
89354eef | 18352 | shlibpath_overrides_runpath=no |
18353 | hardcode_into_libs=yes | |
18354 | ;; | |
f58aa3e1 | 18355 | freebsd*) # from 4.6 on |
18356 | shlibpath_overrides_runpath=yes | |
18357 | hardcode_into_libs=yes | |
18358 | ;; | |
18359 | esac | |
18360 | ;; | |
18361 | ||
18362 | gnu*) | |
18363 | version_type=linux | |
18364 | need_lib_prefix=no | |
18365 | need_version=no | |
18366 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
18367 | soname_spec='${libname}${release}${shared_ext}$major' | |
18368 | shlibpath_var=LD_LIBRARY_PATH | |
18369 | hardcode_into_libs=yes | |
18370 | ;; | |
18371 | ||
18372 | hpux9* | hpux10* | hpux11*) | |
18373 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
18374 | # link against other versions. | |
18375 | version_type=sunos | |
18376 | need_lib_prefix=no | |
18377 | need_version=no | |
18378 | case $host_cpu in | |
18379 | ia64*) | |
18380 | shrext_cmds='.so' | |
18381 | hardcode_into_libs=yes | |
18382 | dynamic_linker="$host_os dld.so" | |
18383 | shlibpath_var=LD_LIBRARY_PATH | |
18384 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
18385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18386 | soname_spec='${libname}${release}${shared_ext}$major' | |
18387 | if test "X$HPUX_IA64_MODE" = X32; then | |
18388 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
18389 | else | |
18390 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
18391 | fi | |
18392 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
18393 | ;; | |
18394 | hppa*64*) | |
18395 | shrext_cmds='.sl' | |
18396 | hardcode_into_libs=yes | |
18397 | dynamic_linker="$host_os dld.sl" | |
18398 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
18399 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
18400 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18401 | soname_spec='${libname}${release}${shared_ext}$major' | |
18402 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
18403 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
18404 | ;; | |
18405 | *) | |
18406 | shrext_cmds='.sl' | |
18407 | dynamic_linker="$host_os dld.sl" | |
18408 | shlibpath_var=SHLIB_PATH | |
18409 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
18410 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18411 | soname_spec='${libname}${release}${shared_ext}$major' | |
18412 | ;; | |
89354eef | 18413 | esac |
f58aa3e1 | 18414 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
18415 | postinstall_cmds='chmod 555 $lib' | |
89354eef | 18416 | ;; |
18417 | ||
f58aa3e1 | 18418 | interix3*) |
89354eef | 18419 | version_type=linux |
18420 | need_lib_prefix=no | |
18421 | need_version=no | |
f58aa3e1 | 18422 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18423 | soname_spec='${libname}${release}${shared_ext}$major' | |
18424 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
89354eef | 18425 | shlibpath_var=LD_LIBRARY_PATH |
f58aa3e1 | 18426 | shlibpath_overrides_runpath=no |
89354eef | 18427 | hardcode_into_libs=yes |
18428 | ;; | |
18429 | ||
f58aa3e1 | 18430 | irix5* | irix6* | nonstopux*) |
18431 | case $host_os in | |
18432 | nonstopux*) version_type=nonstopux ;; | |
18433 | *) | |
18434 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
18435 | version_type=linux | |
18436 | else | |
18437 | version_type=irix | |
18438 | fi ;; | |
18439 | esac | |
89354eef | 18440 | need_lib_prefix=no |
18441 | need_version=no | |
f58aa3e1 | 18442 | soname_spec='${libname}${release}${shared_ext}$major' |
18443 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
89354eef | 18444 | case $host_os in |
f58aa3e1 | 18445 | irix5* | nonstopux*) |
89354eef | 18446 | libsuff= shlibsuff= |
18447 | ;; | |
18448 | *) | |
18449 | case $LD in # libtool.m4 will add one of these switches to LD | |
f58aa3e1 | 18450 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
18451 | libsuff= shlibsuff= libmagic=32-bit;; | |
18452 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
18453 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
18454 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
18455 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
89354eef | 18456 | *) libsuff= shlibsuff= libmagic=never-match;; |
18457 | esac | |
18458 | ;; | |
18459 | esac | |
18460 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
18461 | shlibpath_overrides_runpath=no | |
18462 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
18463 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
f58aa3e1 | 18464 | hardcode_into_libs=yes |
89354eef | 18465 | ;; |
18466 | ||
18467 | # No shared lib support for Linux oldld, aout, or coff. | |
f58aa3e1 | 18468 | linux*oldld* | linux*aout* | linux*coff*) |
89354eef | 18469 | dynamic_linker=no |
18470 | ;; | |
18471 | ||
18472 | # This must be Linux ELF. | |
f58aa3e1 | 18473 | linux* | k*bsd*-gnu) |
89354eef | 18474 | version_type=linux |
18475 | need_lib_prefix=no | |
18476 | need_version=no | |
f58aa3e1 | 18477 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18478 | soname_spec='${libname}${release}${shared_ext}$major' | |
89354eef | 18479 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
18480 | shlibpath_var=LD_LIBRARY_PATH | |
18481 | shlibpath_overrides_runpath=no | |
18482 | # This implies no fast_install, which is unacceptable. | |
18483 | # Some rework will be needed to allow for fast_install | |
18484 | # before this can be enabled. | |
18485 | hardcode_into_libs=yes | |
18486 | ||
f58aa3e1 | 18487 | # Append ld.so.conf contents to the search path |
18488 | if test -f /etc/ld.so.conf; then | |
18489 | 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' ' '` | |
18490 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
18491 | fi | |
18492 | ||
89354eef | 18493 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
18494 | # powerpc, because MkLinux only supported shared libraries with the | |
18495 | # GNU dynamic linker. Since this was broken with cross compilers, | |
18496 | # most powerpc-linux boxes support dynamic linking these days and | |
18497 | # people can always --disable-shared, the test was removed, and we | |
18498 | # assume the GNU/Linux dynamic linker is in use. | |
18499 | dynamic_linker='GNU/Linux ld.so' | |
18500 | ;; | |
18501 | ||
f58aa3e1 | 18502 | netbsdelf*-gnu) |
18503 | version_type=linux | |
18504 | need_lib_prefix=no | |
18505 | need_version=no | |
18506 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
18507 | soname_spec='${libname}${release}${shared_ext}$major' | |
18508 | shlibpath_var=LD_LIBRARY_PATH | |
18509 | shlibpath_overrides_runpath=no | |
18510 | hardcode_into_libs=yes | |
18511 | dynamic_linker='NetBSD ld.elf_so' | |
18512 | ;; | |
18513 | ||
89354eef | 18514 | netbsd*) |
18515 | version_type=sunos | |
18516 | need_lib_prefix=no | |
18517 | need_version=no | |
18518 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
f58aa3e1 | 18519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
89354eef | 18520 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18521 | dynamic_linker='NetBSD (a.out) ld.so' | |
18522 | else | |
f58aa3e1 | 18523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18524 | soname_spec='${libname}${release}${shared_ext}$major' | |
89354eef | 18525 | dynamic_linker='NetBSD ld.elf_so' |
18526 | fi | |
18527 | shlibpath_var=LD_LIBRARY_PATH | |
18528 | shlibpath_overrides_runpath=yes | |
18529 | hardcode_into_libs=yes | |
18530 | ;; | |
18531 | ||
18532 | newsos6) | |
18533 | version_type=linux | |
f58aa3e1 | 18534 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18535 | shlibpath_var=LD_LIBRARY_PATH | |
18536 | shlibpath_overrides_runpath=yes | |
18537 | ;; | |
18538 | ||
18539 | nto-qnx*) | |
18540 | version_type=linux | |
18541 | need_lib_prefix=no | |
18542 | need_version=no | |
18543 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18544 | soname_spec='${libname}${release}${shared_ext}$major' | |
89354eef | 18545 | shlibpath_var=LD_LIBRARY_PATH |
18546 | shlibpath_overrides_runpath=yes | |
18547 | ;; | |
18548 | ||
18549 | openbsd*) | |
18550 | version_type=sunos | |
f58aa3e1 | 18551 | sys_lib_dlsearch_path_spec="/usr/lib" |
89354eef | 18552 | need_lib_prefix=no |
f58aa3e1 | 18553 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
18554 | case $host_os in | |
18555 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
18556 | *) need_version=no ;; | |
18557 | esac | |
18558 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
18559 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
18560 | shlibpath_var=LD_LIBRARY_PATH | |
89354eef | 18561 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
f58aa3e1 | 18562 | case $host_os in |
18563 | openbsd2.[89] | openbsd2.[89].*) | |
18564 | shlibpath_overrides_runpath=no | |
18565 | ;; | |
18566 | *) | |
18567 | shlibpath_overrides_runpath=yes | |
18568 | ;; | |
18569 | esac | |
18570 | else | |
18571 | shlibpath_overrides_runpath=yes | |
18572 | fi | |
18573 | ;; | |
18574 | ||
18575 | os2*) | |
18576 | libname_spec='$name' | |
18577 | shrext_cmds=".dll" | |
18578 | need_lib_prefix=no | |
18579 | library_names_spec='$libname${shared_ext} $libname.a' | |
18580 | dynamic_linker='OS/2 ld.exe' | |
18581 | shlibpath_var=LIBPATH | |
18582 | ;; | |
18583 | ||
18584 | osf3* | osf4* | osf5*) | |
18585 | version_type=osf | |
18586 | need_lib_prefix=no | |
18587 | need_version=no | |
18588 | soname_spec='${libname}${release}${shared_ext}$major' | |
18589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18590 | shlibpath_var=LD_LIBRARY_PATH | |
18591 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
18592 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
18593 | ;; | |
18594 | ||
18595 | solaris*) | |
18596 | version_type=linux | |
18597 | need_lib_prefix=no | |
18598 | need_version=no | |
18599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18600 | soname_spec='${libname}${release}${shared_ext}$major' | |
18601 | shlibpath_var=LD_LIBRARY_PATH | |
18602 | shlibpath_overrides_runpath=yes | |
18603 | hardcode_into_libs=yes | |
18604 | # ldd complains unless libraries are executable | |
18605 | postinstall_cmds='chmod +x $lib' | |
18606 | ;; | |
18607 | ||
18608 | sunos4*) | |
18609 | version_type=sunos | |
18610 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
18611 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
18612 | shlibpath_var=LD_LIBRARY_PATH | |
18613 | shlibpath_overrides_runpath=yes | |
18614 | if test "$with_gnu_ld" = yes; then | |
18615 | need_lib_prefix=no | |
18616 | fi | |
18617 | need_version=yes | |
18618 | ;; | |
18619 | ||
18620 | sysv4 | sysv4.3*) | |
18621 | version_type=linux | |
18622 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18623 | soname_spec='${libname}${release}${shared_ext}$major' | |
18624 | shlibpath_var=LD_LIBRARY_PATH | |
18625 | case $host_vendor in | |
18626 | sni) | |
89354eef | 18627 | shlibpath_overrides_runpath=no |
f58aa3e1 | 18628 | need_lib_prefix=no |
18629 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
18630 | runpath_var=LD_RUN_PATH | |
89354eef | 18631 | ;; |
f58aa3e1 | 18632 | siemens) |
18633 | need_lib_prefix=no | |
89354eef | 18634 | ;; |
f58aa3e1 | 18635 | motorola) |
18636 | need_lib_prefix=no | |
18637 | need_version=no | |
18638 | shlibpath_overrides_runpath=no | |
18639 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
18640 | ;; | |
18641 | esac | |
18642 | ;; | |
18643 | ||
18644 | sysv4*MP*) | |
18645 | if test -d /usr/nec ;then | |
18646 | version_type=linux | |
18647 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
18648 | soname_spec='$libname${shared_ext}.$major' | |
18649 | shlibpath_var=LD_LIBRARY_PATH | |
18650 | fi | |
18651 | ;; | |
18652 | ||
18653 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
18654 | version_type=freebsd-elf | |
18655 | need_lib_prefix=no | |
18656 | need_version=no | |
18657 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
18658 | soname_spec='${libname}${release}${shared_ext}$major' | |
18659 | shlibpath_var=LD_LIBRARY_PATH | |
18660 | hardcode_into_libs=yes | |
18661 | if test "$with_gnu_ld" = yes; then | |
18662 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
18663 | shlibpath_overrides_runpath=no | |
89354eef | 18664 | else |
f58aa3e1 | 18665 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
89354eef | 18666 | shlibpath_overrides_runpath=yes |
f58aa3e1 | 18667 | case $host_os in |
18668 | sco3.2v5*) | |
18669 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
18670 | ;; | |
18671 | esac | |
89354eef | 18672 | fi |
f58aa3e1 | 18673 | sys_lib_dlsearch_path_spec='/usr/lib' |
18674 | ;; | |
18675 | ||
18676 | uts4*) | |
18677 | version_type=linux | |
18678 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18679 | soname_spec='${libname}${release}${shared_ext}$major' | |
89354eef | 18680 | shlibpath_var=LD_LIBRARY_PATH |
18681 | ;; | |
18682 | ||
f58aa3e1 | 18683 | *) |
18684 | dynamic_linker=no | |
18685 | ;; | |
18686 | esac | |
18687 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
18688 | echo "${ECHO_T}$dynamic_linker" >&6; } | |
18689 | test "$dynamic_linker" = no && can_build_shared=no | |
18690 | ||
18691 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
18692 | if test "$GCC" = yes; then | |
18693 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
18694 | fi | |
18695 | ||
18696 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
18697 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
18698 | hardcode_action_GCJ= | |
18699 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
18700 | test -n "$runpath_var_GCJ" || \ | |
18701 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then | |
18702 | ||
18703 | # We can hardcode non-existant directories. | |
18704 | if test "$hardcode_direct_GCJ" != no && | |
18705 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
18706 | # have to relink, otherwise we might link with an installed library | |
18707 | # when we should be linking with a yet-to-be-installed one | |
18708 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
18709 | test "$hardcode_minus_L_GCJ" != no; then | |
18710 | # Linking always hardcodes the temporary library directory. | |
18711 | hardcode_action_GCJ=relink | |
18712 | else | |
18713 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
18714 | hardcode_action_GCJ=immediate | |
18715 | fi | |
18716 | else | |
18717 | # We cannot hardcode anything, or else we can only hardcode existing | |
18718 | # directories. | |
18719 | hardcode_action_GCJ=unsupported | |
18720 | fi | |
18721 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | |
18722 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } | |
18723 | ||
18724 | if test "$hardcode_action_GCJ" = relink; then | |
18725 | # Fast installation is not supported | |
18726 | enable_fast_install=no | |
18727 | elif test "$shlibpath_overrides_runpath" = yes || | |
18728 | test "$enable_shared" = no; then | |
18729 | # Fast installation is not necessary | |
18730 | enable_fast_install=needless | |
18731 | fi | |
18732 | ||
18733 | ||
18734 | # The else clause should only fire when bootstrapping the | |
18735 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
18736 | # with your package, and you will get complaints that there are | |
18737 | # no rules to generate ltmain.sh. | |
18738 | if test -f "$ltmain"; then | |
18739 | # See if we are running on zsh, and set the options which allow our commands through | |
18740 | # without removal of \ escapes. | |
18741 | if test -n "${ZSH_VERSION+set}" ; then | |
18742 | setopt NO_GLOB_SUBST | |
18743 | fi | |
18744 | # Now quote all the things that may contain metacharacters while being | |
18745 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
18746 | # variables and quote the copies for generation of the libtool script. | |
18747 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
18748 | SED SHELL STRIP \ | |
18749 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
18750 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
18751 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
18752 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
18753 | lt_cv_sys_global_symbol_to_c_name_address \ | |
18754 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
18755 | old_postinstall_cmds old_postuninstall_cmds \ | |
18756 | compiler_GCJ \ | |
18757 | CC_GCJ \ | |
18758 | LD_GCJ \ | |
18759 | lt_prog_compiler_wl_GCJ \ | |
18760 | lt_prog_compiler_pic_GCJ \ | |
18761 | lt_prog_compiler_static_GCJ \ | |
18762 | lt_prog_compiler_no_builtin_flag_GCJ \ | |
18763 | export_dynamic_flag_spec_GCJ \ | |
18764 | thread_safe_flag_spec_GCJ \ | |
18765 | whole_archive_flag_spec_GCJ \ | |
18766 | enable_shared_with_static_runtimes_GCJ \ | |
18767 | old_archive_cmds_GCJ \ | |
18768 | old_archive_from_new_cmds_GCJ \ | |
18769 | predep_objects_GCJ \ | |
18770 | postdep_objects_GCJ \ | |
18771 | predeps_GCJ \ | |
18772 | postdeps_GCJ \ | |
18773 | compiler_lib_search_path_GCJ \ | |
18774 | archive_cmds_GCJ \ | |
18775 | archive_expsym_cmds_GCJ \ | |
18776 | postinstall_cmds_GCJ \ | |
18777 | postuninstall_cmds_GCJ \ | |
18778 | old_archive_from_expsyms_cmds_GCJ \ | |
18779 | allow_undefined_flag_GCJ \ | |
18780 | no_undefined_flag_GCJ \ | |
18781 | export_symbols_cmds_GCJ \ | |
18782 | hardcode_libdir_flag_spec_GCJ \ | |
18783 | hardcode_libdir_flag_spec_ld_GCJ \ | |
18784 | hardcode_libdir_separator_GCJ \ | |
18785 | hardcode_automatic_GCJ \ | |
18786 | module_cmds_GCJ \ | |
18787 | module_expsym_cmds_GCJ \ | |
18788 | lt_cv_prog_compiler_c_o_GCJ \ | |
18789 | exclude_expsyms_GCJ \ | |
18790 | include_expsyms_GCJ; do | |
18791 | ||
18792 | case $var in | |
18793 | old_archive_cmds_GCJ | \ | |
18794 | old_archive_from_new_cmds_GCJ | \ | |
18795 | archive_cmds_GCJ | \ | |
18796 | archive_expsym_cmds_GCJ | \ | |
18797 | module_cmds_GCJ | \ | |
18798 | module_expsym_cmds_GCJ | \ | |
18799 | old_archive_from_expsyms_cmds_GCJ | \ | |
18800 | export_symbols_cmds_GCJ | \ | |
18801 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
18802 | postinstall_cmds | postuninstall_cmds | \ | |
18803 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
18804 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
18805 | # Double-quote double-evaled strings. | |
18806 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
18807 | ;; | |
18808 | *) | |
18809 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
18810 | ;; | |
18811 | esac | |
18812 | done | |
18813 | ||
18814 | case $lt_echo in | |
18815 | *'\$0 --fallback-echo"') | |
18816 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
18817 | ;; | |
18818 | esac | |
18819 | ||
18820 | cfgfile="$ofile" | |
18821 | ||
18822 | cat <<__EOF__ >> "$cfgfile" | |
18823 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
18824 | ||
18825 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18826 | ||
18827 | # Shell to use when invoking shell scripts. | |
18828 | SHELL=$lt_SHELL | |
18829 | ||
18830 | # Whether or not to build shared libraries. | |
18831 | build_libtool_libs=$enable_shared | |
18832 | ||
18833 | # Whether or not to build static libraries. | |
18834 | build_old_libs=$enable_static | |
18835 | ||
18836 | # Whether or not to add -lc for building shared libraries. | |
18837 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
18838 | ||
18839 | # Whether or not to disallow shared libs when runtime libs are static | |
18840 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | |
18841 | ||
18842 | # Whether or not to optimize for fast installation. | |
18843 | fast_install=$enable_fast_install | |
18844 | ||
18845 | # The host system. | |
18846 | host_alias=$host_alias | |
18847 | host=$host | |
18848 | host_os=$host_os | |
18849 | ||
18850 | # The build system. | |
18851 | build_alias=$build_alias | |
18852 | build=$build | |
18853 | build_os=$build_os | |
18854 | ||
18855 | # An echo program that does not interpret backslashes. | |
18856 | echo=$lt_echo | |
18857 | ||
18858 | # The archiver. | |
18859 | AR=$lt_AR | |
18860 | AR_FLAGS=$lt_AR_FLAGS | |
18861 | ||
18862 | # A C compiler. | |
18863 | LTCC=$lt_LTCC | |
18864 | ||
18865 | # LTCC compiler flags. | |
18866 | LTCFLAGS=$lt_LTCFLAGS | |
18867 | ||
18868 | # A language-specific compiler. | |
18869 | CC=$lt_compiler_GCJ | |
18870 | ||
18871 | # Is the compiler the GNU C compiler? | |
18872 | with_gcc=$GCC_GCJ | |
18873 | ||
18874 | # An ERE matcher. | |
18875 | EGREP=$lt_EGREP | |
18876 | ||
18877 | # The linker used to build libraries. | |
18878 | LD=$lt_LD_GCJ | |
18879 | ||
18880 | # Whether we need hard or soft links. | |
18881 | LN_S=$lt_LN_S | |
18882 | ||
18883 | # A BSD-compatible nm program. | |
18884 | NM=$lt_NM | |
18885 | ||
18886 | # A symbol stripping program | |
18887 | STRIP=$lt_STRIP | |
18888 | ||
18889 | # Used to examine libraries when file_magic_cmd begins "file" | |
18890 | MAGIC_CMD=$MAGIC_CMD | |
18891 | ||
18892 | # Used on cygwin: DLL creation program. | |
18893 | DLLTOOL="$DLLTOOL" | |
18894 | ||
18895 | # Used on cygwin: object dumper. | |
18896 | OBJDUMP="$OBJDUMP" | |
18897 | ||
18898 | # Used on cygwin: assembler. | |
18899 | AS="$AS" | |
18900 | ||
18901 | # The name of the directory that contains temporary libtool files. | |
18902 | objdir=$objdir | |
18903 | ||
18904 | # How to create reloadable object files. | |
18905 | reload_flag=$lt_reload_flag | |
18906 | reload_cmds=$lt_reload_cmds | |
18907 | ||
18908 | # How to pass a linker flag through the compiler. | |
18909 | wl=$lt_lt_prog_compiler_wl_GCJ | |
18910 | ||
18911 | # Object file suffix (normally "o"). | |
18912 | objext="$ac_objext" | |
89354eef | 18913 | |
f58aa3e1 | 18914 | # Old archive suffix (normally "a"). |
18915 | libext="$libext" | |
89354eef | 18916 | |
f58aa3e1 | 18917 | # Shared library suffix (normally ".so"). |
18918 | shrext_cmds='$shrext_cmds' | |
89354eef | 18919 | |
f58aa3e1 | 18920 | # Executable file suffix (normally ""). |
18921 | exeext="$exeext" | |
89354eef | 18922 | |
f58aa3e1 | 18923 | # Additional compiler flags for building library objects. |
18924 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
18925 | pic_mode=$pic_mode | |
89354eef | 18926 | |
f58aa3e1 | 18927 | # What is the maximum length of a command? |
18928 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
89354eef | 18929 | |
f58aa3e1 | 18930 | # Does compiler simultaneously support -c and -o options? |
18931 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
89354eef | 18932 | |
f58aa3e1 | 18933 | # Must we lock files when doing compilation? |
18934 | need_locks=$lt_need_locks | |
89354eef | 18935 | |
f58aa3e1 | 18936 | # Do we need the lib prefix for modules? |
18937 | need_lib_prefix=$need_lib_prefix | |
89354eef | 18938 | |
f58aa3e1 | 18939 | # Do we need a version for libraries? |
18940 | need_version=$need_version | |
89354eef | 18941 | |
f58aa3e1 | 18942 | # Whether dlopen is supported. |
18943 | dlopen_support=$enable_dlopen | |
89354eef | 18944 | |
f58aa3e1 | 18945 | # Whether dlopen of programs is supported. |
18946 | dlopen_self=$enable_dlopen_self | |
89354eef | 18947 | |
f58aa3e1 | 18948 | # Whether dlopen of statically linked programs is supported. |
18949 | dlopen_self_static=$enable_dlopen_self_static | |
89354eef | 18950 | |
f58aa3e1 | 18951 | # Compiler flag to prevent dynamic linking. |
18952 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
89354eef | 18953 | |
f58aa3e1 | 18954 | # Compiler flag to turn off builtin functions. |
18955 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
89354eef | 18956 | |
f58aa3e1 | 18957 | # Compiler flag to allow reflexive dlopens. |
18958 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
89354eef | 18959 | |
f58aa3e1 | 18960 | # Compiler flag to generate shared objects directly from archives. |
18961 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
89354eef | 18962 | |
f58aa3e1 | 18963 | # Compiler flag to generate thread-safe objects. |
18964 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
89354eef | 18965 | |
f58aa3e1 | 18966 | # Library versioning type. |
18967 | version_type=$version_type | |
89354eef | 18968 | |
f58aa3e1 | 18969 | # Format of library name prefix. |
18970 | libname_spec=$lt_libname_spec | |
89354eef | 18971 | |
f58aa3e1 | 18972 | # List of archive names. First name is the real one, the rest are links. |
18973 | # The last name is the one that the linker finds with -lNAME. | |
18974 | library_names_spec=$lt_library_names_spec | |
89354eef | 18975 | |
f58aa3e1 | 18976 | # The coded name of the library, if different from the real name. |
18977 | soname_spec=$lt_soname_spec | |
49ba971d | 18978 | |
f58aa3e1 | 18979 | # Commands used to build and install an old-style archive. |
18980 | RANLIB=$lt_RANLIB | |
18981 | old_archive_cmds=$lt_old_archive_cmds_GCJ | |
18982 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18983 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
89354eef | 18984 | |
f58aa3e1 | 18985 | # Create an old-style archive from a shared archive. |
18986 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
18987 | ||
18988 | # Create a temporary old-style archive to link instead of a shared archive. | |
18989 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
18990 | ||
18991 | # Commands used to build and install a shared archive. | |
18992 | archive_cmds=$lt_archive_cmds_GCJ | |
18993 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
18994 | postinstall_cmds=$lt_postinstall_cmds | |
18995 | postuninstall_cmds=$lt_postuninstall_cmds | |
49ba971d | 18996 | |
f58aa3e1 | 18997 | # Commands used to build a loadable module (assumed same as above if empty) |
18998 | module_cmds=$lt_module_cmds_GCJ | |
18999 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | |
89354eef | 19000 | |
f58aa3e1 | 19001 | # Commands to strip libraries. |
19002 | old_striplib=$lt_old_striplib | |
19003 | striplib=$lt_striplib | |
49ba971d | 19004 | |
f58aa3e1 | 19005 | # Dependencies to place before the objects being linked to create a |
19006 | # shared library. | |
19007 | predep_objects=$lt_predep_objects_GCJ | |
89354eef | 19008 | |
f58aa3e1 | 19009 | # Dependencies to place after the objects being linked to create a |
19010 | # shared library. | |
19011 | postdep_objects=$lt_postdep_objects_GCJ | |
49ba971d | 19012 | |
f58aa3e1 | 19013 | # Dependencies to place before the objects being linked to create a |
19014 | # shared library. | |
19015 | predeps=$lt_predeps_GCJ | |
89354eef | 19016 | |
f58aa3e1 | 19017 | # Dependencies to place after the objects being linked to create a |
19018 | # shared library. | |
19019 | postdeps=$lt_postdeps_GCJ | |
49ba971d | 19020 | |
f58aa3e1 | 19021 | # The library search path used internally by the compiler when linking |
19022 | # a shared library. | |
19023 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | |
89354eef | 19024 | |
f58aa3e1 | 19025 | # Method to check whether dependent libraries are shared objects. |
19026 | deplibs_check_method=$lt_deplibs_check_method | |
49ba971d | 19027 | |
f58aa3e1 | 19028 | # Command to use when deplibs_check_method == file_magic. |
19029 | file_magic_cmd=$lt_file_magic_cmd | |
89354eef | 19030 | |
f58aa3e1 | 19031 | # Flag that allows shared libraries with undefined symbols to be built. |
19032 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
89354eef | 19033 | |
f58aa3e1 | 19034 | # Flag that forces no undefined symbols. |
19035 | no_undefined_flag=$lt_no_undefined_flag_GCJ | |
89354eef | 19036 | |
f58aa3e1 | 19037 | # Commands used to finish a libtool library installation in a directory. |
19038 | finish_cmds=$lt_finish_cmds | |
89354eef | 19039 | |
f58aa3e1 | 19040 | # Same as above, but a single script fragment to be evaled but not shown. |
19041 | finish_eval=$lt_finish_eval | |
89354eef | 19042 | |
f58aa3e1 | 19043 | # Take the output of nm and produce a listing of raw symbols and C names. |
19044 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
89354eef | 19045 | |
f58aa3e1 | 19046 | # Transform the output of nm in a proper C declaration |
19047 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
89354eef | 19048 | |
f58aa3e1 | 19049 | # Transform the output of nm in a C name address pair |
19050 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
89354eef | 19051 | |
f58aa3e1 | 19052 | # This is the shared library runtime path variable. |
19053 | runpath_var=$runpath_var | |
89354eef | 19054 | |
f58aa3e1 | 19055 | # This is the shared library path variable. |
19056 | shlibpath_var=$shlibpath_var | |
89354eef | 19057 | |
f58aa3e1 | 19058 | # Is shlibpath searched before the hard-coded library search path? |
19059 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
89354eef | 19060 | |
f58aa3e1 | 19061 | # How to hardcode a shared library path into an executable. |
19062 | hardcode_action=$hardcode_action_GCJ | |
89354eef | 19063 | |
f58aa3e1 | 19064 | # Whether we should hardcode library paths into libraries. |
19065 | hardcode_into_libs=$hardcode_into_libs | |
89354eef | 19066 | |
f58aa3e1 | 19067 | # Flag to hardcode \$libdir into a binary during linking. |
19068 | # This must work even if \$libdir does not exist. | |
19069 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
89354eef | 19070 | |
f58aa3e1 | 19071 | # If ld is used when linking, flag to hardcode \$libdir into |
19072 | # a binary during linking. This must work even if \$libdir does | |
19073 | # not exist. | |
19074 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | |
89354eef | 19075 | |
f58aa3e1 | 19076 | # Whether we need a single -rpath flag with a separated argument. |
19077 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
19078 | ||
19079 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
19080 | # resulting binary. | |
19081 | hardcode_direct=$hardcode_direct_GCJ | |
19082 | ||
19083 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
19084 | # resulting binary. | |
19085 | hardcode_minus_L=$hardcode_minus_L_GCJ | |
19086 | ||
19087 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
19088 | # the resulting binary. | |
19089 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
19090 | ||
19091 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
19092 | # and all subsequent libraries and executables linked against it. | |
19093 | hardcode_automatic=$hardcode_automatic_GCJ | |
19094 | ||
19095 | # Variables whose values should be saved in libtool wrapper scripts and | |
19096 | # restored at relink time. | |
19097 | variables_saved_for_relink="$variables_saved_for_relink" | |
19098 | ||
19099 | # Whether libtool must link a program against all its dependency libraries. | |
19100 | link_all_deplibs=$link_all_deplibs_GCJ | |
19101 | ||
19102 | # Compile-time system search path for libraries | |
19103 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19104 | ||
19105 | # Run-time system search path for libraries | |
19106 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19107 | ||
19108 | # Fix the shell variable \$srcfile for the compiler. | |
19109 | fix_srcfile_path="$fix_srcfile_path_GCJ" | |
89354eef | 19110 | |
f58aa3e1 | 19111 | # Set to yes if exported symbols are required. |
19112 | always_export_symbols=$always_export_symbols_GCJ | |
89354eef | 19113 | |
f58aa3e1 | 19114 | # The commands to list exported symbols. |
19115 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
89354eef | 19116 | |
f58aa3e1 | 19117 | # The commands to extract the exported symbol list from a shared archive. |
19118 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
89354eef | 19119 | |
f58aa3e1 | 19120 | # Symbols that should not be listed in the preloaded symbols. |
19121 | exclude_expsyms=$lt_exclude_expsyms_GCJ | |
89354eef | 19122 | |
f58aa3e1 | 19123 | # Symbols that must always be exported. |
19124 | include_expsyms=$lt_include_expsyms_GCJ | |
89354eef | 19125 | |
f58aa3e1 | 19126 | # ### END LIBTOOL TAG CONFIG: $tagname |
89354eef | 19127 | |
f58aa3e1 | 19128 | __EOF__ |
89354eef | 19129 | |
89354eef | 19130 | |
f58aa3e1 | 19131 | else |
19132 | # If there is no Makefile yet, we rely on a make rule to execute | |
19133 | # `config.status --recheck' to rerun these tests and create the | |
19134 | # libtool script then. | |
19135 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
19136 | if test -f "$ltmain_in"; then | |
19137 | test -f Makefile && make "$ltmain" | |
89354eef | 19138 | fi |
19139 | fi | |
89354eef | 19140 | |
89354eef | 19141 | |
f58aa3e1 | 19142 | ac_ext=c |
19143 | ac_cpp='$CPP $CPPFLAGS' | |
19144 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19145 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19146 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
89354eef | 19147 | |
f58aa3e1 | 19148 | CC="$lt_save_CC" |
89354eef | 19149 | |
f58aa3e1 | 19150 | else |
19151 | tagname="" | |
19152 | fi | |
19153 | ;; | |
89354eef | 19154 | |
f58aa3e1 | 19155 | RC) |
89354eef | 19156 | |
89354eef | 19157 | |
f58aa3e1 | 19158 | # Source file extension for RC test sources. |
19159 | ac_ext=rc | |
89354eef | 19160 | |
f58aa3e1 | 19161 | # Object file extension for compiled RC test sources. |
19162 | objext=o | |
19163 | objext_RC=$objext | |
89354eef | 19164 | |
f58aa3e1 | 19165 | # Code to be used in simple compile tests |
19166 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | |
89354eef | 19167 | |
f58aa3e1 | 19168 | # Code to be used in simple link tests |
19169 | lt_simple_link_test_code="$lt_simple_compile_test_code" | |
89354eef | 19170 | |
f58aa3e1 | 19171 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
89354eef | 19172 | |
f58aa3e1 | 19173 | # If no C compiler was specified, use CC. |
19174 | LTCC=${LTCC-"$CC"} | |
89354eef | 19175 | |
f58aa3e1 | 19176 | # If no C compiler flags were specified, use CFLAGS. |
19177 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
89354eef | 19178 | |
f58aa3e1 | 19179 | # Allow CC to be a program name with arguments. |
19180 | compiler=$CC | |
89354eef | 19181 | |
89354eef | 19182 | |
f58aa3e1 | 19183 | # save warnings/boilerplate of simple test code |
19184 | ac_outfile=conftest.$ac_objext | |
19185 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
19186 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
19187 | _lt_compiler_boilerplate=`cat conftest.err` | |
19188 | $rm conftest* | |
89354eef | 19189 | |
f58aa3e1 | 19190 | ac_outfile=conftest.$ac_objext |
19191 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
19192 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
19193 | _lt_linker_boilerplate=`cat conftest.err` | |
19194 | $rm conftest* | |
89354eef | 19195 | |
89354eef | 19196 | |
f58aa3e1 | 19197 | # Allow CC to be a program name with arguments. |
19198 | lt_save_CC="$CC" | |
19199 | CC=${RC-"windres"} | |
19200 | compiler=$CC | |
19201 | compiler_RC=$CC | |
19202 | for cc_temp in $compiler""; do | |
19203 | case $cc_temp in | |
19204 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
19205 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
19206 | \-*) ;; | |
19207 | *) break;; | |
89354eef | 19208 | esac |
f58aa3e1 | 19209 | done |
19210 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
89354eef | 19211 | |
f58aa3e1 | 19212 | lt_cv_prog_compiler_c_o_RC=yes |
19213 | ||
19214 | # The else clause should only fire when bootstrapping the | |
89354eef | 19215 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
19216 | # with your package, and you will get complaints that there are | |
19217 | # no rules to generate ltmain.sh. | |
19218 | if test -f "$ltmain"; then | |
f58aa3e1 | 19219 | # See if we are running on zsh, and set the options which allow our commands through |
19220 | # without removal of \ escapes. | |
19221 | if test -n "${ZSH_VERSION+set}" ; then | |
19222 | setopt NO_GLOB_SUBST | |
19223 | fi | |
89354eef | 19224 | # Now quote all the things that may contain metacharacters while being |
19225 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
19226 | # variables and quote the copies for generation of the libtool script. | |
f58aa3e1 | 19227 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
19228 | SED SHELL STRIP \ | |
19229 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
19230 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
19231 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
19232 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
19233 | lt_cv_sys_global_symbol_to_c_name_address \ | |
89354eef | 19234 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
f58aa3e1 | 19235 | old_postinstall_cmds old_postuninstall_cmds \ |
19236 | compiler_RC \ | |
19237 | CC_RC \ | |
19238 | LD_RC \ | |
19239 | lt_prog_compiler_wl_RC \ | |
19240 | lt_prog_compiler_pic_RC \ | |
19241 | lt_prog_compiler_static_RC \ | |
19242 | lt_prog_compiler_no_builtin_flag_RC \ | |
19243 | export_dynamic_flag_spec_RC \ | |
19244 | thread_safe_flag_spec_RC \ | |
19245 | whole_archive_flag_spec_RC \ | |
19246 | enable_shared_with_static_runtimes_RC \ | |
19247 | old_archive_cmds_RC \ | |
19248 | old_archive_from_new_cmds_RC \ | |
19249 | predep_objects_RC \ | |
19250 | postdep_objects_RC \ | |
19251 | predeps_RC \ | |
19252 | postdeps_RC \ | |
19253 | compiler_lib_search_path_RC \ | |
19254 | archive_cmds_RC \ | |
19255 | archive_expsym_cmds_RC \ | |
19256 | postinstall_cmds_RC \ | |
19257 | postuninstall_cmds_RC \ | |
19258 | old_archive_from_expsyms_cmds_RC \ | |
19259 | allow_undefined_flag_RC \ | |
19260 | no_undefined_flag_RC \ | |
19261 | export_symbols_cmds_RC \ | |
19262 | hardcode_libdir_flag_spec_RC \ | |
19263 | hardcode_libdir_flag_spec_ld_RC \ | |
19264 | hardcode_libdir_separator_RC \ | |
19265 | hardcode_automatic_RC \ | |
19266 | module_cmds_RC \ | |
19267 | module_expsym_cmds_RC \ | |
19268 | lt_cv_prog_compiler_c_o_RC \ | |
19269 | exclude_expsyms_RC \ | |
19270 | include_expsyms_RC; do | |
89354eef | 19271 | |
19272 | case $var in | |
f58aa3e1 | 19273 | old_archive_cmds_RC | \ |
19274 | old_archive_from_new_cmds_RC | \ | |
19275 | archive_cmds_RC | \ | |
19276 | archive_expsym_cmds_RC | \ | |
19277 | module_cmds_RC | \ | |
19278 | module_expsym_cmds_RC | \ | |
19279 | old_archive_from_expsyms_cmds_RC | \ | |
19280 | export_symbols_cmds_RC | \ | |
19281 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
89354eef | 19282 | postinstall_cmds | postuninstall_cmds | \ |
f58aa3e1 | 19283 | old_postinstall_cmds | old_postuninstall_cmds | \ |
19284 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
89354eef | 19285 | # Double-quote double-evaled strings. |
19286 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
19287 | ;; | |
19288 | *) | |
19289 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
19290 | ;; | |
19291 | esac | |
19292 | done | |
19293 | ||
f58aa3e1 | 19294 | case $lt_echo in |
19295 | *'\$0 --fallback-echo"') | |
19296 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
19297 | ;; | |
19298 | esac | |
89354eef | 19299 | |
f58aa3e1 | 19300 | cfgfile="$ofile" |
89354eef | 19301 | |
f58aa3e1 | 19302 | cat <<__EOF__ >> "$cfgfile" |
19303 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
89354eef | 19304 | |
19305 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19306 | ||
19307 | # Shell to use when invoking shell scripts. | |
19308 | SHELL=$lt_SHELL | |
19309 | ||
19310 | # Whether or not to build shared libraries. | |
19311 | build_libtool_libs=$enable_shared | |
19312 | ||
19313 | # Whether or not to build static libraries. | |
19314 | build_old_libs=$enable_static | |
19315 | ||
19316 | # Whether or not to add -lc for building shared libraries. | |
f58aa3e1 | 19317 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
19318 | ||
19319 | # Whether or not to disallow shared libs when runtime libs are static | |
19320 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | |
89354eef | 19321 | |
19322 | # Whether or not to optimize for fast installation. | |
19323 | fast_install=$enable_fast_install | |
19324 | ||
19325 | # The host system. | |
19326 | host_alias=$host_alias | |
19327 | host=$host | |
f58aa3e1 | 19328 | host_os=$host_os |
19329 | ||
19330 | # The build system. | |
19331 | build_alias=$build_alias | |
19332 | build=$build | |
19333 | build_os=$build_os | |
89354eef | 19334 | |
19335 | # An echo program that does not interpret backslashes. | |
19336 | echo=$lt_echo | |
19337 | ||
19338 | # The archiver. | |
19339 | AR=$lt_AR | |
19340 | AR_FLAGS=$lt_AR_FLAGS | |
19341 | ||
f58aa3e1 | 19342 | # A C compiler. |
19343 | LTCC=$lt_LTCC | |
19344 | ||
19345 | # LTCC compiler flags. | |
19346 | LTCFLAGS=$lt_LTCFLAGS | |
19347 | ||
19348 | # A language-specific compiler. | |
19349 | CC=$lt_compiler_RC | |
89354eef | 19350 | |
19351 | # Is the compiler the GNU C compiler? | |
f58aa3e1 | 19352 | with_gcc=$GCC_RC |
19353 | ||
19354 | # An ERE matcher. | |
19355 | EGREP=$lt_EGREP | |
89354eef | 19356 | |
19357 | # The linker used to build libraries. | |
f58aa3e1 | 19358 | LD=$lt_LD_RC |
89354eef | 19359 | |
19360 | # Whether we need hard or soft links. | |
19361 | LN_S=$lt_LN_S | |
19362 | ||
19363 | # A BSD-compatible nm program. | |
19364 | NM=$lt_NM | |
19365 | ||
19366 | # A symbol stripping program | |
f58aa3e1 | 19367 | STRIP=$lt_STRIP |
89354eef | 19368 | |
19369 | # Used to examine libraries when file_magic_cmd begins "file" | |
19370 | MAGIC_CMD=$MAGIC_CMD | |
19371 | ||
19372 | # Used on cygwin: DLL creation program. | |
19373 | DLLTOOL="$DLLTOOL" | |
19374 | ||
19375 | # Used on cygwin: object dumper. | |
19376 | OBJDUMP="$OBJDUMP" | |
19377 | ||
19378 | # Used on cygwin: assembler. | |
19379 | AS="$AS" | |
19380 | ||
19381 | # The name of the directory that contains temporary libtool files. | |
19382 | objdir=$objdir | |
19383 | ||
19384 | # How to create reloadable object files. | |
19385 | reload_flag=$lt_reload_flag | |
19386 | reload_cmds=$lt_reload_cmds | |
19387 | ||
19388 | # How to pass a linker flag through the compiler. | |
f58aa3e1 | 19389 | wl=$lt_lt_prog_compiler_wl_RC |
89354eef | 19390 | |
19391 | # Object file suffix (normally "o"). | |
19392 | objext="$ac_objext" | |
19393 | ||
19394 | # Old archive suffix (normally "a"). | |
19395 | libext="$libext" | |
19396 | ||
f58aa3e1 | 19397 | # Shared library suffix (normally ".so"). |
19398 | shrext_cmds='$shrext_cmds' | |
19399 | ||
89354eef | 19400 | # Executable file suffix (normally ""). |
19401 | exeext="$exeext" | |
19402 | ||
19403 | # Additional compiler flags for building library objects. | |
f58aa3e1 | 19404 | pic_flag=$lt_lt_prog_compiler_pic_RC |
89354eef | 19405 | pic_mode=$pic_mode |
19406 | ||
f58aa3e1 | 19407 | # What is the maximum length of a command? |
19408 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
89354eef | 19409 | |
f58aa3e1 | 19410 | # Does compiler simultaneously support -c and -o options? |
19411 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
89354eef | 19412 | |
f58aa3e1 | 19413 | # Must we lock files when doing compilation? |
89354eef | 19414 | need_locks=$lt_need_locks |
19415 | ||
19416 | # Do we need the lib prefix for modules? | |
19417 | need_lib_prefix=$need_lib_prefix | |
19418 | ||
19419 | # Do we need a version for libraries? | |
19420 | need_version=$need_version | |
19421 | ||
19422 | # Whether dlopen is supported. | |
19423 | dlopen_support=$enable_dlopen | |
19424 | ||
19425 | # Whether dlopen of programs is supported. | |
19426 | dlopen_self=$enable_dlopen_self | |
19427 | ||
19428 | # Whether dlopen of statically linked programs is supported. | |
19429 | dlopen_self_static=$enable_dlopen_self_static | |
19430 | ||
19431 | # Compiler flag to prevent dynamic linking. | |
f58aa3e1 | 19432 | link_static_flag=$lt_lt_prog_compiler_static_RC |
89354eef | 19433 | |
19434 | # Compiler flag to turn off builtin functions. | |
f58aa3e1 | 19435 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
89354eef | 19436 | |
19437 | # Compiler flag to allow reflexive dlopens. | |
f58aa3e1 | 19438 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
89354eef | 19439 | |
19440 | # Compiler flag to generate shared objects directly from archives. | |
f58aa3e1 | 19441 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
89354eef | 19442 | |
19443 | # Compiler flag to generate thread-safe objects. | |
f58aa3e1 | 19444 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
89354eef | 19445 | |
19446 | # Library versioning type. | |
19447 | version_type=$version_type | |
19448 | ||
19449 | # Format of library name prefix. | |
19450 | libname_spec=$lt_libname_spec | |
19451 | ||
19452 | # List of archive names. First name is the real one, the rest are links. | |
19453 | # The last name is the one that the linker finds with -lNAME. | |
19454 | library_names_spec=$lt_library_names_spec | |
19455 | ||
19456 | # The coded name of the library, if different from the real name. | |
19457 | soname_spec=$lt_soname_spec | |
19458 | ||
19459 | # Commands used to build and install an old-style archive. | |
19460 | RANLIB=$lt_RANLIB | |
f58aa3e1 | 19461 | old_archive_cmds=$lt_old_archive_cmds_RC |
89354eef | 19462 | old_postinstall_cmds=$lt_old_postinstall_cmds |
19463 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19464 | ||
19465 | # Create an old-style archive from a shared archive. | |
f58aa3e1 | 19466 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
89354eef | 19467 | |
19468 | # Create a temporary old-style archive to link instead of a shared archive. | |
f58aa3e1 | 19469 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
89354eef | 19470 | |
19471 | # Commands used to build and install a shared archive. | |
f58aa3e1 | 19472 | archive_cmds=$lt_archive_cmds_RC |
19473 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
89354eef | 19474 | postinstall_cmds=$lt_postinstall_cmds |
19475 | postuninstall_cmds=$lt_postuninstall_cmds | |
19476 | ||
f58aa3e1 | 19477 | # Commands used to build a loadable module (assumed same as above if empty) |
19478 | module_cmds=$lt_module_cmds_RC | |
19479 | module_expsym_cmds=$lt_module_expsym_cmds_RC | |
19480 | ||
89354eef | 19481 | # Commands to strip libraries. |
19482 | old_striplib=$lt_old_striplib | |
19483 | striplib=$lt_striplib | |
19484 | ||
f58aa3e1 | 19485 | # Dependencies to place before the objects being linked to create a |
19486 | # shared library. | |
19487 | predep_objects=$lt_predep_objects_RC | |
19488 | ||
19489 | # Dependencies to place after the objects being linked to create a | |
19490 | # shared library. | |
19491 | postdep_objects=$lt_postdep_objects_RC | |
19492 | ||
19493 | # Dependencies to place before the objects being linked to create a | |
19494 | # shared library. | |
19495 | predeps=$lt_predeps_RC | |
19496 | ||
19497 | # Dependencies to place after the objects being linked to create a | |
19498 | # shared library. | |
19499 | postdeps=$lt_postdeps_RC | |
19500 | ||
19501 | # The library search path used internally by the compiler when linking | |
19502 | # a shared library. | |
19503 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | |
19504 | ||
89354eef | 19505 | # Method to check whether dependent libraries are shared objects. |
19506 | deplibs_check_method=$lt_deplibs_check_method | |
19507 | ||
19508 | # Command to use when deplibs_check_method == file_magic. | |
19509 | file_magic_cmd=$lt_file_magic_cmd | |
19510 | ||
19511 | # Flag that allows shared libraries with undefined symbols to be built. | |
f58aa3e1 | 19512 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
89354eef | 19513 | |
19514 | # Flag that forces no undefined symbols. | |
f58aa3e1 | 19515 | no_undefined_flag=$lt_no_undefined_flag_RC |
89354eef | 19516 | |
19517 | # Commands used to finish a libtool library installation in a directory. | |
19518 | finish_cmds=$lt_finish_cmds | |
19519 | ||
19520 | # Same as above, but a single script fragment to be evaled but not shown. | |
19521 | finish_eval=$lt_finish_eval | |
19522 | ||
19523 | # Take the output of nm and produce a listing of raw symbols and C names. | |
f58aa3e1 | 19524 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
89354eef | 19525 | |
19526 | # Transform the output of nm in a proper C declaration | |
f58aa3e1 | 19527 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
89354eef | 19528 | |
19529 | # Transform the output of nm in a C name address pair | |
f58aa3e1 | 19530 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
89354eef | 19531 | |
19532 | # This is the shared library runtime path variable. | |
19533 | runpath_var=$runpath_var | |
19534 | ||
19535 | # This is the shared library path variable. | |
19536 | shlibpath_var=$shlibpath_var | |
19537 | ||
19538 | # Is shlibpath searched before the hard-coded library search path? | |
19539 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19540 | ||
19541 | # How to hardcode a shared library path into an executable. | |
f58aa3e1 | 19542 | hardcode_action=$hardcode_action_RC |
89354eef | 19543 | |
19544 | # Whether we should hardcode library paths into libraries. | |
19545 | hardcode_into_libs=$hardcode_into_libs | |
19546 | ||
19547 | # Flag to hardcode \$libdir into a binary during linking. | |
19548 | # This must work even if \$libdir does not exist. | |
f58aa3e1 | 19549 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
19550 | ||
19551 | # If ld is used when linking, flag to hardcode \$libdir into | |
19552 | # a binary during linking. This must work even if \$libdir does | |
19553 | # not exist. | |
19554 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | |
89354eef | 19555 | |
19556 | # Whether we need a single -rpath flag with a separated argument. | |
f58aa3e1 | 19557 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
89354eef | 19558 | |
f58aa3e1 | 19559 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
89354eef | 19560 | # resulting binary. |
f58aa3e1 | 19561 | hardcode_direct=$hardcode_direct_RC |
89354eef | 19562 | |
19563 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
19564 | # resulting binary. | |
f58aa3e1 | 19565 | hardcode_minus_L=$hardcode_minus_L_RC |
89354eef | 19566 | |
19567 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
19568 | # the resulting binary. | |
f58aa3e1 | 19569 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
19570 | ||
19571 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
19572 | # and all subsequent libraries and executables linked against it. | |
19573 | hardcode_automatic=$hardcode_automatic_RC | |
89354eef | 19574 | |
19575 | # Variables whose values should be saved in libtool wrapper scripts and | |
19576 | # restored at relink time. | |
19577 | variables_saved_for_relink="$variables_saved_for_relink" | |
19578 | ||
19579 | # Whether libtool must link a program against all its dependency libraries. | |
f58aa3e1 | 19580 | link_all_deplibs=$link_all_deplibs_RC |
89354eef | 19581 | |
19582 | # Compile-time system search path for libraries | |
19583 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19584 | ||
19585 | # Run-time system search path for libraries | |
19586 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19587 | ||
19588 | # Fix the shell variable \$srcfile for the compiler. | |
f58aa3e1 | 19589 | fix_srcfile_path="$fix_srcfile_path_RC" |
89354eef | 19590 | |
19591 | # Set to yes if exported symbols are required. | |
f58aa3e1 | 19592 | always_export_symbols=$always_export_symbols_RC |
89354eef | 19593 | |
19594 | # The commands to list exported symbols. | |
f58aa3e1 | 19595 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
89354eef | 19596 | |
19597 | # The commands to extract the exported symbol list from a shared archive. | |
19598 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19599 | ||
19600 | # Symbols that should not be listed in the preloaded symbols. | |
f58aa3e1 | 19601 | exclude_expsyms=$lt_exclude_expsyms_RC |
89354eef | 19602 | |
19603 | # Symbols that must always be exported. | |
f58aa3e1 | 19604 | include_expsyms=$lt_include_expsyms_RC |
89354eef | 19605 | |
f58aa3e1 | 19606 | # ### END LIBTOOL TAG CONFIG: $tagname |
89354eef | 19607 | |
19608 | __EOF__ | |
19609 | ||
89354eef | 19610 | |
f58aa3e1 | 19611 | else |
19612 | # If there is no Makefile yet, we rely on a make rule to execute | |
19613 | # `config.status --recheck' to rerun these tests and create the | |
19614 | # libtool script then. | |
19615 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
19616 | if test -f "$ltmain_in"; then | |
19617 | test -f Makefile && make "$ltmain" | |
19618 | fi | |
89354eef | 19619 | fi |
89354eef | 19620 | |
89354eef | 19621 | |
f58aa3e1 | 19622 | ac_ext=c |
19623 | ac_cpp='$CPP $CPPFLAGS' | |
19624 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19625 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19626 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
89354eef | 19627 | |
f58aa3e1 | 19628 | CC="$lt_save_CC" |
89354eef | 19629 | |
f58aa3e1 | 19630 | ;; |
19631 | ||
19632 | *) | |
19633 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | |
19634 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | |
19635 | { (exit 1); exit 1; }; } | |
19636 | ;; | |
19637 | esac | |
89354eef | 19638 | |
f58aa3e1 | 19639 | # Append the new tag name to the list of available tags. |
19640 | if test -n "$tagname" ; then | |
19641 | available_tags="$available_tags $tagname" | |
19642 | fi | |
19643 | fi | |
19644 | done | |
19645 | IFS="$lt_save_ifs" | |
89354eef | 19646 | |
f58aa3e1 | 19647 | # Now substitute the updated list of available tags. |
19648 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
19649 | mv "${ofile}T" "$ofile" | |
19650 | chmod +x "$ofile" | |
19651 | else | |
19652 | rm -f "${ofile}T" | |
19653 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | |
19654 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | |
19655 | { (exit 1); exit 1; }; } | |
19656 | fi | |
19657 | fi | |
89354eef | 19658 | |
19659 | ||
19660 | ||
19661 | # This can be used to rebuild libtool when needed | |
19662 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | |
19663 | ||
19664 | # Always use our own libtool. | |
19665 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
19666 | ||
19667 | # Prevent multiple expansion | |
19668 | ||
19669 | ||
19670 | ||
19671 | ||
19672 | ||
f58aa3e1 | 19673 | |
19674 | ||
19675 | ||
19676 | ||
19677 | ||
19678 | ||
19679 | ||
19680 | ||
19681 | ||
19682 | ||
19683 | ||
19684 | ||
19685 | ||
19686 | ||
19687 | ||
19688 | ||
19689 | ||
19690 | ||
19691 | { echo "$as_me:$LINENO: checking for libraries containing socket functions" >&5 | |
19692 | echo $ECHO_N "checking for libraries containing socket functions... $ECHO_C" >&6; } | |
c004766d | 19693 | if test "${ac_cv_socket_libs+set}" = set; then |
19694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19695 | else | |
19696 | ||
19697 | oCFLAGS=$CFLAGS | |
19698 | ||
19699 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 19700 | /* confdefs.h. */ |
19701 | _ACEOF | |
19702 | cat confdefs.h >>conftest.$ac_ext | |
19703 | cat >>conftest.$ac_ext <<_ACEOF | |
19704 | /* end confdefs.h. */ | |
c004766d | 19705 | |
19706 | #include <sys/types.h> | |
19707 | #include <sys/socket.h> | |
19708 | #include <netinet/in.h> | |
19709 | #include <arpa/inet.h> | |
19710 | ||
c004766d | 19711 | int |
19712 | main () | |
19713 | { | |
19714 | ||
19715 | struct in_addr add; | |
19716 | int sd = socket(AF_INET, SOCK_STREAM, 0); | |
19717 | inet_ntoa(add); | |
19718 | ||
19719 | ; | |
19720 | return 0; | |
19721 | } | |
19722 | _ACEOF | |
19723 | rm -f conftest.$ac_objext conftest$ac_exeext | |
f58aa3e1 | 19724 | if { (ac_try="$ac_link" |
19725 | case "(($ac_try" in | |
19726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19727 | *) ac_try_echo=$ac_try;; | |
19728 | esac | |
19729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19730 | (eval "$ac_link") 2>conftest.er1 | |
c004766d | 19731 | ac_status=$? |
f58aa3e1 | 19732 | grep -v '^ *+' conftest.er1 >conftest.err |
19733 | rm -f conftest.er1 | |
19734 | cat conftest.err >&5 | |
c004766d | 19735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19736 | (exit $ac_status); } && | |
f58aa3e1 | 19737 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
19738 | { (case "(($ac_try" in | |
19739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19740 | *) ac_try_echo=$ac_try;; | |
19741 | esac | |
19742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19743 | (eval "$ac_try") 2>&5 | |
19744 | ac_status=$? | |
19745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19746 | (exit $ac_status); }; } && | |
19747 | { ac_try='test -s conftest$ac_exeext' | |
19748 | { (case "(($ac_try" in | |
19749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19750 | *) ac_try_echo=$ac_try;; | |
19751 | esac | |
19752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19753 | (eval "$ac_try") 2>&5 | |
c004766d | 19754 | ac_status=$? |
19755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19756 | (exit $ac_status); }; }; then | |
19757 | ac_cv_socket_libs=-lc | |
19758 | else | |
19759 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 19760 | sed 's/^/| /' conftest.$ac_ext >&5 |
19761 | ||
f58aa3e1 | 19762 | ac_cv_socket_libs=no |
c004766d | 19763 | fi |
f58aa3e1 | 19764 | |
19765 | rm -f core conftest.err conftest.$ac_objext \ | |
19766 | conftest$ac_exeext conftest.$ac_ext | |
c004766d | 19767 | |
19768 | if test x"$ac_cv_socket_libs" = "xno" | |
19769 | then | |
19770 | CFLAGS="$oCFLAGS -lsocket" | |
19771 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 19772 | /* confdefs.h. */ |
19773 | _ACEOF | |
19774 | cat confdefs.h >>conftest.$ac_ext | |
19775 | cat >>conftest.$ac_ext <<_ACEOF | |
19776 | /* end confdefs.h. */ | |
c004766d | 19777 | |
19778 | #include <sys/types.h> | |
19779 | #include <sys/socket.h> | |
19780 | #include <netinet/in.h> | |
19781 | #include <arpa/inet.h> | |
19782 | ||
c004766d | 19783 | int |
19784 | main () | |
19785 | { | |
19786 | ||
19787 | struct in_addr add; | |
19788 | int sd = socket(AF_INET, SOCK_STREAM, 0); | |
19789 | inet_ntoa(add); | |
19790 | ||
19791 | ; | |
19792 | return 0; | |
19793 | } | |
19794 | _ACEOF | |
19795 | rm -f conftest.$ac_objext conftest$ac_exeext | |
f58aa3e1 | 19796 | if { (ac_try="$ac_link" |
19797 | case "(($ac_try" in | |
19798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19799 | *) ac_try_echo=$ac_try;; | |
19800 | esac | |
19801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19802 | (eval "$ac_link") 2>conftest.er1 | |
c004766d | 19803 | ac_status=$? |
f58aa3e1 | 19804 | grep -v '^ *+' conftest.er1 >conftest.err |
19805 | rm -f conftest.er1 | |
19806 | cat conftest.err >&5 | |
c004766d | 19807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19808 | (exit $ac_status); } && | |
f58aa3e1 | 19809 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
19810 | { (case "(($ac_try" in | |
19811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19812 | *) ac_try_echo=$ac_try;; | |
19813 | esac | |
19814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19815 | (eval "$ac_try") 2>&5 | |
19816 | ac_status=$? | |
19817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19818 | (exit $ac_status); }; } && | |
19819 | { ac_try='test -s conftest$ac_exeext' | |
19820 | { (case "(($ac_try" in | |
19821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19822 | *) ac_try_echo=$ac_try;; | |
19823 | esac | |
19824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19825 | (eval "$ac_try") 2>&5 | |
c004766d | 19826 | ac_status=$? |
19827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19828 | (exit $ac_status); }; }; then | |
19829 | ac_cv_socket_libs=-lsocket | |
19830 | else | |
19831 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 19832 | sed 's/^/| /' conftest.$ac_ext >&5 |
19833 | ||
f58aa3e1 | 19834 | ac_cv_socket_libs=no |
c004766d | 19835 | fi |
f58aa3e1 | 19836 | |
19837 | rm -f core conftest.err conftest.$ac_objext \ | |
19838 | conftest$ac_exeext conftest.$ac_ext | |
c004766d | 19839 | fi |
19840 | ||
19841 | if test x"$ac_cv_socket_libs" = "xno" | |
19842 | then | |
19843 | CFLAGS="$oCFLAGS -lsocket -lnsl" | |
19844 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 19845 | /* confdefs.h. */ |
19846 | _ACEOF | |
19847 | cat confdefs.h >>conftest.$ac_ext | |
19848 | cat >>conftest.$ac_ext <<_ACEOF | |
19849 | /* end confdefs.h. */ | |
c004766d | 19850 | |
19851 | #include <sys/types.h> | |
19852 | #include <sys/socket.h> | |
19853 | #include <netinet/in.h> | |
19854 | #include <arpa/inet.h> | |
19855 | ||
c004766d | 19856 | int |
19857 | main () | |
19858 | { | |
19859 | ||
19860 | struct in_addr add; | |
19861 | int sd = socket(AF_INET, SOCK_STREAM, 0); | |
19862 | inet_ntoa(add); | |
19863 | ||
19864 | ; | |
19865 | return 0; | |
19866 | } | |
19867 | _ACEOF | |
19868 | rm -f conftest.$ac_objext conftest$ac_exeext | |
f58aa3e1 | 19869 | if { (ac_try="$ac_link" |
19870 | case "(($ac_try" in | |
19871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19872 | *) ac_try_echo=$ac_try;; | |
19873 | esac | |
19874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19875 | (eval "$ac_link") 2>conftest.er1 | |
c004766d | 19876 | ac_status=$? |
f58aa3e1 | 19877 | grep -v '^ *+' conftest.er1 >conftest.err |
19878 | rm -f conftest.er1 | |
19879 | cat conftest.err >&5 | |
c004766d | 19880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19881 | (exit $ac_status); } && | |
f58aa3e1 | 19882 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
19883 | { (case "(($ac_try" in | |
19884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19885 | *) ac_try_echo=$ac_try;; | |
19886 | esac | |
19887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19888 | (eval "$ac_try") 2>&5 | |
19889 | ac_status=$? | |
19890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19891 | (exit $ac_status); }; } && | |
19892 | { ac_try='test -s conftest$ac_exeext' | |
19893 | { (case "(($ac_try" in | |
19894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19895 | *) ac_try_echo=$ac_try;; | |
19896 | esac | |
19897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19898 | (eval "$ac_try") 2>&5 | |
c004766d | 19899 | ac_status=$? |
19900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19901 | (exit $ac_status); }; }; then | |
19902 | ac_cv_socket_libs="-lsocket -lnsl" | |
19903 | else | |
19904 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 19905 | sed 's/^/| /' conftest.$ac_ext >&5 |
19906 | ||
f58aa3e1 | 19907 | ac_cv_socket_libs=no |
c004766d | 19908 | fi |
f58aa3e1 | 19909 | |
19910 | rm -f core conftest.err conftest.$ac_objext \ | |
19911 | conftest$ac_exeext conftest.$ac_ext | |
c004766d | 19912 | fi |
19913 | ||
19914 | CFLAGS=$oCFLAGS | |
19915 | ||
19916 | fi | |
f58aa3e1 | 19917 | { echo "$as_me:$LINENO: result: $ac_cv_socket_libs" >&5 |
19918 | echo "${ECHO_T}$ac_cv_socket_libs" >&6; } | |
c004766d | 19919 | |
19920 | if test x"$ac_cv_socket_libs" = "xno" | |
19921 | then | |
19922 | { { echo "$as_me:$LINENO: error: Cannot find socket libraries" >&5 | |
19923 | echo "$as_me: error: Cannot find socket libraries" >&2;} | |
19924 | { (exit 1); exit 1; }; } | |
19925 | elif test x"$ac_cv_socket_libs" = "x-lc" | |
19926 | then | |
19927 | ETR_SOCKET_LIBS="" | |
19928 | else | |
19929 | ETR_SOCKET_LIBS="$ac_cv_socket_libs" | |
19930 | fi | |
19931 | ||
19932 | ||
19933 | ||
19934 | ||
f58aa3e1 | 19935 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
19936 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
89354eef | 19937 | if test "${ac_cv_header_stdc+set}" = set; then |
19938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19939 | else | |
19940 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 19941 | /* confdefs.h. */ |
19942 | _ACEOF | |
19943 | cat confdefs.h >>conftest.$ac_ext | |
19944 | cat >>conftest.$ac_ext <<_ACEOF | |
19945 | /* end confdefs.h. */ | |
89354eef | 19946 | #include <stdlib.h> |
19947 | #include <stdarg.h> | |
19948 | #include <string.h> | |
19949 | #include <float.h> | |
19950 | ||
49ba971d | 19951 | int |
19952 | main () | |
19953 | { | |
19954 | ||
19955 | ; | |
19956 | return 0; | |
19957 | } | |
89354eef | 19958 | _ACEOF |
49ba971d | 19959 | rm -f conftest.$ac_objext |
f58aa3e1 | 19960 | if { (ac_try="$ac_compile" |
19961 | case "(($ac_try" in | |
19962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19963 | *) ac_try_echo=$ac_try;; | |
19964 | esac | |
19965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19966 | (eval "$ac_compile") 2>conftest.er1 | |
89354eef | 19967 | ac_status=$? |
f58aa3e1 | 19968 | grep -v '^ *+' conftest.er1 >conftest.err |
19969 | rm -f conftest.er1 | |
19970 | cat conftest.err >&5 | |
89354eef | 19971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
49ba971d | 19972 | (exit $ac_status); } && |
f58aa3e1 | 19973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
19974 | { (case "(($ac_try" in | |
19975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19976 | *) ac_try_echo=$ac_try;; | |
19977 | esac | |
19978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19979 | (eval "$ac_try") 2>&5 | |
19980 | ac_status=$? | |
19981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19982 | (exit $ac_status); }; } && | |
19983 | { ac_try='test -s conftest.$ac_objext' | |
19984 | { (case "(($ac_try" in | |
19985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19986 | *) ac_try_echo=$ac_try;; | |
19987 | esac | |
19988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19989 | (eval "$ac_try") 2>&5 | |
49ba971d | 19990 | ac_status=$? |
19991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19992 | (exit $ac_status); }; }; then | |
89354eef | 19993 | ac_cv_header_stdc=yes |
19994 | else | |
19995 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 19996 | sed 's/^/| /' conftest.$ac_ext >&5 |
19997 | ||
f58aa3e1 | 19998 | ac_cv_header_stdc=no |
89354eef | 19999 | fi |
f58aa3e1 | 20000 | |
20001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
89354eef | 20002 | |
20003 | if test $ac_cv_header_stdc = yes; then | |
20004 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
20005 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 20006 | /* confdefs.h. */ |
20007 | _ACEOF | |
20008 | cat confdefs.h >>conftest.$ac_ext | |
20009 | cat >>conftest.$ac_ext <<_ACEOF | |
20010 | /* end confdefs.h. */ | |
89354eef | 20011 | #include <string.h> |
20012 | ||
20013 | _ACEOF | |
20014 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
49ba971d | 20015 | $EGREP "memchr" >/dev/null 2>&1; then |
89354eef | 20016 | : |
20017 | else | |
20018 | ac_cv_header_stdc=no | |
20019 | fi | |
20020 | rm -f conftest* | |
20021 | ||
20022 | fi | |
20023 | ||
20024 | if test $ac_cv_header_stdc = yes; then | |
20025 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
20026 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 20027 | /* confdefs.h. */ |
20028 | _ACEOF | |
20029 | cat confdefs.h >>conftest.$ac_ext | |
20030 | cat >>conftest.$ac_ext <<_ACEOF | |
20031 | /* end confdefs.h. */ | |
89354eef | 20032 | #include <stdlib.h> |
20033 | ||
20034 | _ACEOF | |
20035 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
49ba971d | 20036 | $EGREP "free" >/dev/null 2>&1; then |
89354eef | 20037 | : |
20038 | else | |
20039 | ac_cv_header_stdc=no | |
20040 | fi | |
20041 | rm -f conftest* | |
20042 | ||
20043 | fi | |
20044 | ||
20045 | if test $ac_cv_header_stdc = yes; then | |
20046 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
20047 | if test "$cross_compiling" = yes; then | |
20048 | : | |
20049 | else | |
20050 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 20051 | /* confdefs.h. */ |
20052 | _ACEOF | |
20053 | cat confdefs.h >>conftest.$ac_ext | |
20054 | cat >>conftest.$ac_ext <<_ACEOF | |
20055 | /* end confdefs.h. */ | |
89354eef | 20056 | #include <ctype.h> |
f58aa3e1 | 20057 | #include <stdlib.h> |
89354eef | 20058 | #if ((' ' & 0x0FF) == 0x020) |
20059 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
20060 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
20061 | #else | |
49ba971d | 20062 | # define ISLOWER(c) \ |
f58aa3e1 | 20063 | (('a' <= (c) && (c) <= 'i') \ |
20064 | || ('j' <= (c) && (c) <= 'r') \ | |
20065 | || ('s' <= (c) && (c) <= 'z')) | |
89354eef | 20066 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
20067 | #endif | |
20068 | ||
20069 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
20070 | int | |
20071 | main () | |
20072 | { | |
20073 | int i; | |
20074 | for (i = 0; i < 256; i++) | |
20075 | if (XOR (islower (i), ISLOWER (i)) | |
f58aa3e1 | 20076 | || toupper (i) != TOUPPER (i)) |
20077 | return 2; | |
20078 | return 0; | |
89354eef | 20079 | } |
20080 | _ACEOF | |
20081 | rm -f conftest$ac_exeext | |
f58aa3e1 | 20082 | if { (ac_try="$ac_link" |
20083 | case "(($ac_try" in | |
20084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20085 | *) ac_try_echo=$ac_try;; | |
20086 | esac | |
20087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20088 | (eval "$ac_link") 2>&5 | |
89354eef | 20089 | ac_status=$? |
20090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20091 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
f58aa3e1 | 20092 | { (case "(($ac_try" in |
20093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20094 | *) ac_try_echo=$ac_try;; | |
20095 | esac | |
20096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20097 | (eval "$ac_try") 2>&5 | |
89354eef | 20098 | ac_status=$? |
20099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20100 | (exit $ac_status); }; }; then | |
20101 | : | |
20102 | else | |
20103 | echo "$as_me: program exited with status $ac_status" >&5 | |
20104 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 20105 | sed 's/^/| /' conftest.$ac_ext >&5 |
20106 | ||
89354eef | 20107 | ( exit $ac_status ) |
20108 | ac_cv_header_stdc=no | |
20109 | fi | |
f58aa3e1 | 20110 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
89354eef | 20111 | fi |
f58aa3e1 | 20112 | |
20113 | ||
89354eef | 20114 | fi |
20115 | fi | |
f58aa3e1 | 20116 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
20117 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
89354eef | 20118 | if test $ac_cv_header_stdc = yes; then |
20119 | ||
20120 | cat >>confdefs.h <<\_ACEOF | |
20121 | #define STDC_HEADERS 1 | |
20122 | _ACEOF | |
20123 | ||
20124 | fi | |
20125 | ||
20126 | ||
20127 | ||
20128 | for ac_header in sys/poll.h | |
20129 | do | |
20130 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
f58aa3e1 | 20131 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
20132 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20133 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20134 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
89354eef | 20135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20136 | fi | |
f58aa3e1 | 20137 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20138 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20139 | echo "${ECHO_T}$ac_res" >&6; } | |
89354eef | 20140 | else |
20141 | # Is the header compilable? | |
f58aa3e1 | 20142 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20143 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
89354eef | 20144 | cat >conftest.$ac_ext <<_ACEOF |
49ba971d | 20145 | /* confdefs.h. */ |
20146 | _ACEOF | |
20147 | cat confdefs.h >>conftest.$ac_ext | |
20148 | cat >>conftest.$ac_ext <<_ACEOF | |
20149 | /* end confdefs.h. */ | |
89354eef | 20150 | $ac_includes_default |
20151 | #include <$ac_header> | |
20152 | _ACEOF | |
20153 | rm -f conftest.$ac_objext | |
f58aa3e1 | 20154 | if { (ac_try="$ac_compile" |
20155 | case "(($ac_try" in | |
20156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20157 | *) ac_try_echo=$ac_try;; | |
20158 | esac | |
20159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20160 | (eval "$ac_compile") 2>conftest.er1 | |
89354eef | 20161 | ac_status=$? |
f58aa3e1 | 20162 | grep -v '^ *+' conftest.er1 >conftest.err |
20163 | rm -f conftest.er1 | |
20164 | cat conftest.err >&5 | |
89354eef | 20165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20166 | (exit $ac_status); } && | |
f58aa3e1 | 20167 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20168 | { (case "(($ac_try" in | |
20169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20170 | *) ac_try_echo=$ac_try;; | |
20171 | esac | |
20172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20173 | (eval "$ac_try") 2>&5 | |
20174 | ac_status=$? | |
20175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20176 | (exit $ac_status); }; } && | |
20177 | { ac_try='test -s conftest.$ac_objext' | |
20178 | { (case "(($ac_try" in | |
20179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20180 | *) ac_try_echo=$ac_try;; | |
20181 | esac | |
20182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20183 | (eval "$ac_try") 2>&5 | |
89354eef | 20184 | ac_status=$? |
20185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20186 | (exit $ac_status); }; }; then | |
20187 | ac_header_compiler=yes | |
20188 | else | |
20189 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 20190 | sed 's/^/| /' conftest.$ac_ext >&5 |
20191 | ||
f58aa3e1 | 20192 | ac_header_compiler=no |
89354eef | 20193 | fi |
f58aa3e1 | 20194 | |
20195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20196 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20197 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
89354eef | 20198 | |
20199 | # Is the header present? | |
f58aa3e1 | 20200 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
20201 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
89354eef | 20202 | cat >conftest.$ac_ext <<_ACEOF |
49ba971d | 20203 | /* confdefs.h. */ |
20204 | _ACEOF | |
20205 | cat confdefs.h >>conftest.$ac_ext | |
20206 | cat >>conftest.$ac_ext <<_ACEOF | |
20207 | /* end confdefs.h. */ | |
89354eef | 20208 | #include <$ac_header> |
20209 | _ACEOF | |
f58aa3e1 | 20210 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
20211 | case "(($ac_try" in | |
20212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20213 | *) ac_try_echo=$ac_try;; | |
20214 | esac | |
20215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20216 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
89354eef | 20217 | ac_status=$? |
49ba971d | 20218 | grep -v '^ *+' conftest.er1 >conftest.err |
89354eef | 20219 | rm -f conftest.er1 |
20220 | cat conftest.err >&5 | |
20221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20222 | (exit $ac_status); } >/dev/null; then | |
20223 | if test -s conftest.err; then | |
20224 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f58aa3e1 | 20225 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
89354eef | 20226 | else |
20227 | ac_cpp_err= | |
20228 | fi | |
20229 | else | |
20230 | ac_cpp_err=yes | |
20231 | fi | |
20232 | if test -z "$ac_cpp_err"; then | |
20233 | ac_header_preproc=yes | |
20234 | else | |
20235 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 20236 | sed 's/^/| /' conftest.$ac_ext >&5 |
20237 | ||
89354eef | 20238 | ac_header_preproc=no |
20239 | fi | |
f58aa3e1 | 20240 | |
89354eef | 20241 | rm -f conftest.err conftest.$ac_ext |
f58aa3e1 | 20242 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20243 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
89354eef | 20244 | |
20245 | # So? What about this header? | |
f58aa3e1 | 20246 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20247 | yes:no: ) | |
89354eef | 20248 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20249 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f58aa3e1 | 20250 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20251 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20252 | ac_header_preproc=yes | |
49ba971d | 20253 | ;; |
f58aa3e1 | 20254 | no:yes:* ) |
89354eef | 20255 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20256 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
f58aa3e1 | 20257 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20258 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20259 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20260 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20261 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20262 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
89354eef | 20263 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
49ba971d | 20264 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
f58aa3e1 | 20265 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20266 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
20267 | ||
49ba971d | 20268 | ;; |
89354eef | 20269 | esac |
f58aa3e1 | 20270 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20271 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20272 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
89354eef | 20273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20274 | else | |
f58aa3e1 | 20275 | eval "$as_ac_Header=\$ac_header_preproc" |
89354eef | 20276 | fi |
f58aa3e1 | 20277 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20278 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20279 | echo "${ECHO_T}$ac_res" >&6; } | |
89354eef | 20280 | |
20281 | fi | |
20282 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20283 | cat >>confdefs.h <<_ACEOF | |
20284 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20285 | _ACEOF | |
20286 | have_poll_sys_h=yes | |
20287 | else | |
20288 | have_sys_poll_h=no | |
20289 | fi | |
20290 | ||
20291 | done | |
20292 | ||
20293 | ||
20294 | ||
20295 | ||
20296 | ||
20297 | ||
20298 | for ac_header in fcntl.h sys/time.h unistd.h strings.h | |
20299 | do | |
20300 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
f58aa3e1 | 20301 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
20302 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20303 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20304 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
89354eef | 20305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20306 | fi | |
f58aa3e1 | 20307 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20308 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20309 | echo "${ECHO_T}$ac_res" >&6; } | |
89354eef | 20310 | else |
20311 | # Is the header compilable? | |
f58aa3e1 | 20312 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20313 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
89354eef | 20314 | cat >conftest.$ac_ext <<_ACEOF |
49ba971d | 20315 | /* confdefs.h. */ |
20316 | _ACEOF | |
20317 | cat confdefs.h >>conftest.$ac_ext | |
20318 | cat >>conftest.$ac_ext <<_ACEOF | |
20319 | /* end confdefs.h. */ | |
89354eef | 20320 | $ac_includes_default |
20321 | #include <$ac_header> | |
20322 | _ACEOF | |
20323 | rm -f conftest.$ac_objext | |
f58aa3e1 | 20324 | if { (ac_try="$ac_compile" |
20325 | case "(($ac_try" in | |
20326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20327 | *) ac_try_echo=$ac_try;; | |
20328 | esac | |
20329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20330 | (eval "$ac_compile") 2>conftest.er1 | |
89354eef | 20331 | ac_status=$? |
f58aa3e1 | 20332 | grep -v '^ *+' conftest.er1 >conftest.err |
20333 | rm -f conftest.er1 | |
20334 | cat conftest.err >&5 | |
89354eef | 20335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20336 | (exit $ac_status); } && | |
f58aa3e1 | 20337 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20338 | { (case "(($ac_try" in | |
20339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20340 | *) ac_try_echo=$ac_try;; | |
20341 | esac | |
20342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20343 | (eval "$ac_try") 2>&5 | |
20344 | ac_status=$? | |
20345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20346 | (exit $ac_status); }; } && | |
20347 | { ac_try='test -s conftest.$ac_objext' | |
20348 | { (case "(($ac_try" in | |
20349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20350 | *) ac_try_echo=$ac_try;; | |
20351 | esac | |
20352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20353 | (eval "$ac_try") 2>&5 | |
89354eef | 20354 | ac_status=$? |
20355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20356 | (exit $ac_status); }; }; then | |
20357 | ac_header_compiler=yes | |
20358 | else | |
20359 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 20360 | sed 's/^/| /' conftest.$ac_ext >&5 |
20361 | ||
f58aa3e1 | 20362 | ac_header_compiler=no |
89354eef | 20363 | fi |
f58aa3e1 | 20364 | |
20365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20366 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20367 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
89354eef | 20368 | |
20369 | # Is the header present? | |
f58aa3e1 | 20370 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
20371 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
89354eef | 20372 | cat >conftest.$ac_ext <<_ACEOF |
49ba971d | 20373 | /* confdefs.h. */ |
20374 | _ACEOF | |
20375 | cat confdefs.h >>conftest.$ac_ext | |
20376 | cat >>conftest.$ac_ext <<_ACEOF | |
20377 | /* end confdefs.h. */ | |
89354eef | 20378 | #include <$ac_header> |
20379 | _ACEOF | |
f58aa3e1 | 20380 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
20381 | case "(($ac_try" in | |
20382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20383 | *) ac_try_echo=$ac_try;; | |
20384 | esac | |
20385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20386 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
89354eef | 20387 | ac_status=$? |
49ba971d | 20388 | grep -v '^ *+' conftest.er1 >conftest.err |
89354eef | 20389 | rm -f conftest.er1 |
20390 | cat conftest.err >&5 | |
20391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20392 | (exit $ac_status); } >/dev/null; then | |
20393 | if test -s conftest.err; then | |
20394 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f58aa3e1 | 20395 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
89354eef | 20396 | else |
20397 | ac_cpp_err= | |
20398 | fi | |
20399 | else | |
20400 | ac_cpp_err=yes | |
20401 | fi | |
20402 | if test -z "$ac_cpp_err"; then | |
20403 | ac_header_preproc=yes | |
20404 | else | |
20405 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 20406 | sed 's/^/| /' conftest.$ac_ext >&5 |
20407 | ||
89354eef | 20408 | ac_header_preproc=no |
20409 | fi | |
f58aa3e1 | 20410 | |
89354eef | 20411 | rm -f conftest.err conftest.$ac_ext |
f58aa3e1 | 20412 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20413 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
89354eef | 20414 | |
20415 | # So? What about this header? | |
f58aa3e1 | 20416 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20417 | yes:no: ) | |
49ba971d | 20418 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20419 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f58aa3e1 | 20420 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20421 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20422 | ac_header_preproc=yes | |
49ba971d | 20423 | ;; |
f58aa3e1 | 20424 | no:yes:* ) |
49ba971d | 20425 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20426 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
f58aa3e1 | 20427 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20428 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20429 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20430 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20431 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20432 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
49ba971d | 20433 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20434 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
f58aa3e1 | 20435 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20436 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
20437 | ||
49ba971d | 20438 | ;; |
20439 | esac | |
f58aa3e1 | 20440 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20441 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20442 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
49ba971d | 20443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d7ad87fe | 20444 | else |
f58aa3e1 | 20445 | eval "$as_ac_Header=\$ac_header_preproc" |
d7ad87fe | 20446 | fi |
f58aa3e1 | 20447 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20448 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20449 | echo "${ECHO_T}$ac_res" >&6; } | |
49ba971d | 20450 | |
20451 | fi | |
20452 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20453 | cat >>confdefs.h <<_ACEOF | |
20454 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20455 | _ACEOF | |
d7ad87fe | 20456 | |
20457 | fi | |
20458 | ||
49ba971d | 20459 | done |
20460 | ||
d7ad87fe | 20461 | |
f58aa3e1 | 20462 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
20463 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
89354eef | 20464 | if test "${ac_cv_c_const+set}" = set; then |
20465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20466 | else | |
20467 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 20468 | /* confdefs.h. */ |
20469 | _ACEOF | |
20470 | cat confdefs.h >>conftest.$ac_ext | |
20471 | cat >>conftest.$ac_ext <<_ACEOF | |
20472 | /* end confdefs.h. */ | |
89354eef | 20473 | |
89354eef | 20474 | int |
20475 | main () | |
20476 | { | |
20477 | /* FIXME: Include the comments suggested by Paul. */ | |
20478 | #ifndef __cplusplus | |
20479 | /* Ultrix mips cc rejects this. */ | |
20480 | typedef int charset[2]; | |
20481 | const charset x; | |
20482 | /* SunOS 4.1.1 cc rejects this. */ | |
20483 | char const *const *ccp; | |
20484 | char **p; | |
20485 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
20486 | struct point {int x, y;}; | |
20487 | static struct point const zero = {0,0}; | |
20488 | /* AIX XL C 1.02.0.0 rejects this. | |
20489 | It does not let you subtract one const X* pointer from another in | |
20490 | an arm of an if-expression whose if-part is not a constant | |
20491 | expression */ | |
20492 | const char *g = "string"; | |
20493 | ccp = &g + (g ? g-g : 0); | |
20494 | /* HPUX 7.0 cc rejects these. */ | |
20495 | ++ccp; | |
20496 | p = (char**) ccp; | |
20497 | ccp = (char const *const *) p; | |
20498 | { /* SCO 3.2v4 cc rejects this. */ | |
20499 | char *t; | |
20500 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
20501 | ||
20502 | *t++ = 0; | |
f58aa3e1 | 20503 | if (s) return 0; |
89354eef | 20504 | } |
20505 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
20506 | int x[] = {25, 17}; | |
20507 | const int *foo = &x[0]; | |
20508 | ++foo; | |
20509 | } | |
20510 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
20511 | typedef const int *iptr; | |
20512 | iptr p = 0; | |
20513 | ++p; | |
20514 | } | |
20515 | { /* AIX XL C 1.02.0.0 rejects this saying | |
20516 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
20517 | struct s { int j; const int *ap[3]; }; | |
20518 | struct s *b; b->j = 5; | |
20519 | } | |
20520 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
20521 | const int foo = 10; | |
f58aa3e1 | 20522 | if (!foo) return 0; |
89354eef | 20523 | } |
f58aa3e1 | 20524 | return !x[0] && !zero.x; |
89354eef | 20525 | #endif |
20526 | ||
20527 | ; | |
20528 | return 0; | |
20529 | } | |
20530 | _ACEOF | |
20531 | rm -f conftest.$ac_objext | |
f58aa3e1 | 20532 | if { (ac_try="$ac_compile" |
20533 | case "(($ac_try" in | |
20534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20535 | *) ac_try_echo=$ac_try;; | |
20536 | esac | |
20537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20538 | (eval "$ac_compile") 2>conftest.er1 | |
89354eef | 20539 | ac_status=$? |
f58aa3e1 | 20540 | grep -v '^ *+' conftest.er1 >conftest.err |
20541 | rm -f conftest.er1 | |
20542 | cat conftest.err >&5 | |
89354eef | 20543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20544 | (exit $ac_status); } && | |
f58aa3e1 | 20545 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20546 | { (case "(($ac_try" in | |
20547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20548 | *) ac_try_echo=$ac_try;; | |
20549 | esac | |
20550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20551 | (eval "$ac_try") 2>&5 | |
20552 | ac_status=$? | |
20553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20554 | (exit $ac_status); }; } && | |
20555 | { ac_try='test -s conftest.$ac_objext' | |
20556 | { (case "(($ac_try" in | |
20557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20558 | *) ac_try_echo=$ac_try;; | |
20559 | esac | |
20560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20561 | (eval "$ac_try") 2>&5 | |
89354eef | 20562 | ac_status=$? |
20563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20564 | (exit $ac_status); }; }; then | |
20565 | ac_cv_c_const=yes | |
20566 | else | |
20567 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 20568 | sed 's/^/| /' conftest.$ac_ext >&5 |
20569 | ||
f58aa3e1 | 20570 | ac_cv_c_const=no |
89354eef | 20571 | fi |
f58aa3e1 | 20572 | |
20573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
89354eef | 20574 | fi |
f58aa3e1 | 20575 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
20576 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
89354eef | 20577 | if test $ac_cv_c_const = no; then |
20578 | ||
20579 | cat >>confdefs.h <<\_ACEOF | |
20580 | #define const | |
20581 | _ACEOF | |
20582 | ||
20583 | fi | |
20584 | ||
f58aa3e1 | 20585 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
20586 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
89354eef | 20587 | if test "${ac_cv_type_size_t+set}" = set; then |
20588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20589 | else | |
20590 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 20591 | /* confdefs.h. */ |
20592 | _ACEOF | |
20593 | cat confdefs.h >>conftest.$ac_ext | |
20594 | cat >>conftest.$ac_ext <<_ACEOF | |
20595 | /* end confdefs.h. */ | |
89354eef | 20596 | $ac_includes_default |
f58aa3e1 | 20597 | typedef size_t ac__type_new_; |
89354eef | 20598 | int |
20599 | main () | |
20600 | { | |
f58aa3e1 | 20601 | if ((ac__type_new_ *) 0) |
89354eef | 20602 | return 0; |
f58aa3e1 | 20603 | if (sizeof (ac__type_new_)) |
89354eef | 20604 | return 0; |
20605 | ; | |
20606 | return 0; | |
20607 | } | |
20608 | _ACEOF | |
20609 | rm -f conftest.$ac_objext | |
f58aa3e1 | 20610 | if { (ac_try="$ac_compile" |
20611 | case "(($ac_try" in | |
20612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20613 | *) ac_try_echo=$ac_try;; | |
20614 | esac | |
20615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20616 | (eval "$ac_compile") 2>conftest.er1 | |
89354eef | 20617 | ac_status=$? |
f58aa3e1 | 20618 | grep -v '^ *+' conftest.er1 >conftest.err |
20619 | rm -f conftest.er1 | |
20620 | cat conftest.err >&5 | |
89354eef | 20621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20622 | (exit $ac_status); } && | |
f58aa3e1 | 20623 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20624 | { (case "(($ac_try" in | |
20625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20626 | *) ac_try_echo=$ac_try;; | |
20627 | esac | |
20628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20629 | (eval "$ac_try") 2>&5 | |
20630 | ac_status=$? | |
20631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20632 | (exit $ac_status); }; } && | |
20633 | { ac_try='test -s conftest.$ac_objext' | |
20634 | { (case "(($ac_try" in | |
20635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20636 | *) ac_try_echo=$ac_try;; | |
20637 | esac | |
20638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20639 | (eval "$ac_try") 2>&5 | |
89354eef | 20640 | ac_status=$? |
20641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20642 | (exit $ac_status); }; }; then | |
20643 | ac_cv_type_size_t=yes | |
20644 | else | |
20645 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 20646 | sed 's/^/| /' conftest.$ac_ext >&5 |
20647 | ||
f58aa3e1 | 20648 | ac_cv_type_size_t=no |
89354eef | 20649 | fi |
f58aa3e1 | 20650 | |
20651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
89354eef | 20652 | fi |
f58aa3e1 | 20653 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
20654 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
89354eef | 20655 | if test $ac_cv_type_size_t = yes; then |
20656 | : | |
20657 | else | |
20658 | ||
20659 | cat >>confdefs.h <<_ACEOF | |
f58aa3e1 | 20660 | #define size_t unsigned int |
89354eef | 20661 | _ACEOF |
20662 | ||
20663 | fi | |
20664 | ||
f58aa3e1 | 20665 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
20666 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
89354eef | 20667 | if test "${ac_cv_header_time+set}" = set; then |
20668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20669 | else | |
20670 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 20671 | /* confdefs.h. */ |
20672 | _ACEOF | |
20673 | cat confdefs.h >>conftest.$ac_ext | |
20674 | cat >>conftest.$ac_ext <<_ACEOF | |
20675 | /* end confdefs.h. */ | |
89354eef | 20676 | #include <sys/types.h> |
20677 | #include <sys/time.h> | |
20678 | #include <time.h> | |
20679 | ||
89354eef | 20680 | int |
20681 | main () | |
20682 | { | |
20683 | if ((struct tm *) 0) | |
20684 | return 0; | |
20685 | ; | |
20686 | return 0; | |
20687 | } | |
20688 | _ACEOF | |
20689 | rm -f conftest.$ac_objext | |
f58aa3e1 | 20690 | if { (ac_try="$ac_compile" |
20691 | case "(($ac_try" in | |
20692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20693 | *) ac_try_echo=$ac_try;; | |
20694 | esac | |
20695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20696 | (eval "$ac_compile") 2>conftest.er1 | |
89354eef | 20697 | ac_status=$? |
f58aa3e1 | 20698 | grep -v '^ *+' conftest.er1 >conftest.err |
20699 | rm -f conftest.er1 | |
20700 | cat conftest.err >&5 | |
89354eef | 20701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20702 | (exit $ac_status); } && | |
f58aa3e1 | 20703 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20704 | { (case "(($ac_try" in | |
20705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20706 | *) ac_try_echo=$ac_try;; | |
20707 | esac | |
20708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20709 | (eval "$ac_try") 2>&5 | |
20710 | ac_status=$? | |
20711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20712 | (exit $ac_status); }; } && | |
20713 | { ac_try='test -s conftest.$ac_objext' | |
20714 | { (case "(($ac_try" in | |
20715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20716 | *) ac_try_echo=$ac_try;; | |
20717 | esac | |
20718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20719 | (eval "$ac_try") 2>&5 | |
89354eef | 20720 | ac_status=$? |
20721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20722 | (exit $ac_status); }; }; then | |
20723 | ac_cv_header_time=yes | |
20724 | else | |
20725 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 20726 | sed 's/^/| /' conftest.$ac_ext >&5 |
20727 | ||
f58aa3e1 | 20728 | ac_cv_header_time=no |
89354eef | 20729 | fi |
f58aa3e1 | 20730 | |
20731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
89354eef | 20732 | fi |
f58aa3e1 | 20733 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
20734 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
89354eef | 20735 | if test $ac_cv_header_time = yes; then |
20736 | ||
20737 | cat >>confdefs.h <<\_ACEOF | |
20738 | #define TIME_WITH_SYS_TIME 1 | |
20739 | _ACEOF | |
20740 | ||
20741 | fi | |
20742 | ||
89354eef | 20743 | |
c3fda854 | 20744 | |
20745 | ||
20746 | for ac_func in snprintf vsnprintf | |
20747 | do | |
20748 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
f58aa3e1 | 20749 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
20750 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
20751 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
c3fda854 | 20752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20753 | else | |
20754 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 20755 | /* confdefs.h. */ |
20756 | _ACEOF | |
20757 | cat confdefs.h >>conftest.$ac_ext | |
20758 | cat >>conftest.$ac_ext <<_ACEOF | |
20759 | /* end confdefs.h. */ | |
f58aa3e1 | 20760 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20761 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20762 | #define $ac_func innocuous_$ac_func | |
20763 | ||
c3fda854 | 20764 | /* System header to define __stub macros and hopefully few prototypes, |
49ba971d | 20765 | which can conflict with char $ac_func (); below. |
20766 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20767 | <limits.h> exists even on freestanding compilers. */ | |
f58aa3e1 | 20768 | |
49ba971d | 20769 | #ifdef __STDC__ |
20770 | # include <limits.h> | |
20771 | #else | |
20772 | # include <assert.h> | |
20773 | #endif | |
f58aa3e1 | 20774 | |
20775 | #undef $ac_func | |
20776 | ||
20777 | /* Override any GCC internal prototype to avoid an error. | |
20778 | Use char because int might match the return type of a GCC | |
20779 | builtin and then its argument prototype would still apply. */ | |
c3fda854 | 20780 | #ifdef __cplusplus |
20781 | extern "C" | |
20782 | #endif | |
c3fda854 | 20783 | char $ac_func (); |
c3fda854 | 20784 | /* The GNU C library defines this for functions which it implements |
20785 | to always fail with ENOSYS. Some functions are actually named | |
20786 | something starting with __ and the normal name is an alias. */ | |
f58aa3e1 | 20787 | #if defined __stub_$ac_func || defined __stub___$ac_func |
c3fda854 | 20788 | choke me |
c3fda854 | 20789 | #endif |
20790 | ||
49ba971d | 20791 | int |
20792 | main () | |
20793 | { | |
f58aa3e1 | 20794 | return $ac_func (); |
c3fda854 | 20795 | ; |
20796 | return 0; | |
20797 | } | |
20798 | _ACEOF | |
20799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
f58aa3e1 | 20800 | if { (ac_try="$ac_link" |
20801 | case "(($ac_try" in | |
20802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20803 | *) ac_try_echo=$ac_try;; | |
20804 | esac | |
20805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20806 | (eval "$ac_link") 2>conftest.er1 | |
c3fda854 | 20807 | ac_status=$? |
f58aa3e1 | 20808 | grep -v '^ *+' conftest.er1 >conftest.err |
20809 | rm -f conftest.er1 | |
20810 | cat conftest.err >&5 | |
c3fda854 | 20811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20812 | (exit $ac_status); } && | |
f58aa3e1 | 20813 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20814 | { (case "(($ac_try" in | |
20815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20816 | *) ac_try_echo=$ac_try;; | |
20817 | esac | |
20818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20819 | (eval "$ac_try") 2>&5 | |
20820 | ac_status=$? | |
20821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20822 | (exit $ac_status); }; } && | |
20823 | { ac_try='test -s conftest$ac_exeext' | |
20824 | { (case "(($ac_try" in | |
20825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20826 | *) ac_try_echo=$ac_try;; | |
20827 | esac | |
20828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20829 | (eval "$ac_try") 2>&5 | |
c3fda854 | 20830 | ac_status=$? |
20831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20832 | (exit $ac_status); }; }; then | |
20833 | eval "$as_ac_var=yes" | |
20834 | else | |
20835 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 20836 | sed 's/^/| /' conftest.$ac_ext >&5 |
20837 | ||
f58aa3e1 | 20838 | eval "$as_ac_var=no" |
c3fda854 | 20839 | fi |
f58aa3e1 | 20840 | |
20841 | rm -f core conftest.err conftest.$ac_objext \ | |
20842 | conftest$ac_exeext conftest.$ac_ext | |
c3fda854 | 20843 | fi |
f58aa3e1 | 20844 | ac_res=`eval echo '${'$as_ac_var'}'` |
20845 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20846 | echo "${ECHO_T}$ac_res" >&6; } | |
c3fda854 | 20847 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
20848 | cat >>confdefs.h <<_ACEOF | |
20849 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20850 | _ACEOF | |
20851 | ||
20852 | fi | |
20853 | done | |
20854 | ||
f58aa3e1 | 20855 | { echo "$as_me:$LINENO: checking for working snprintf" >&5 |
20856 | echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; } | |
c3fda854 | 20857 | if test "${ac_cv_have_working_snprintf+set}" = set; then |
20858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20859 | else | |
20860 | if test "$cross_compiling" = yes; then | |
20861 | ac_cv_have_working_snprintf=cross | |
20862 | else | |
20863 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 20864 | /* confdefs.h. */ |
20865 | _ACEOF | |
20866 | cat confdefs.h >>conftest.$ac_ext | |
20867 | cat >>conftest.$ac_ext <<_ACEOF | |
20868 | /* end confdefs.h. */ | |
c3fda854 | 20869 | #include <stdio.h> |
20870 | ||
20871 | int main(void) | |
20872 | { | |
20873 | char bufs[5] = { 'x', 'x', 'x', '\0', '\0' }; | |
20874 | char bufd[5] = { 'x', 'x', 'x', '\0', '\0' }; | |
20875 | int i; | |
20876 | i = snprintf (bufs, 2, "%s", "111"); | |
20877 | if (strcmp (bufs, "1")) exit (1); | |
20878 | if (i != 3) exit (1); | |
20879 | i = snprintf (bufd, 2, "%d", 111); | |
20880 | if (strcmp (bufd, "1")) exit (1); | |
20881 | if (i != 3) exit (1); | |
20882 | exit(0); | |
20883 | } | |
20884 | _ACEOF | |
20885 | rm -f conftest$ac_exeext | |
f58aa3e1 | 20886 | if { (ac_try="$ac_link" |
20887 | case "(($ac_try" in | |
20888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20889 | *) ac_try_echo=$ac_try;; | |
20890 | esac | |
20891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20892 | (eval "$ac_link") 2>&5 | |
c3fda854 | 20893 | ac_status=$? |
20894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20895 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
f58aa3e1 | 20896 | { (case "(($ac_try" in |
20897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20898 | *) ac_try_echo=$ac_try;; | |
20899 | esac | |
20900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20901 | (eval "$ac_try") 2>&5 | |
c3fda854 | 20902 | ac_status=$? |
20903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20904 | (exit $ac_status); }; }; then | |
20905 | ac_cv_have_working_snprintf=yes | |
20906 | else | |
20907 | echo "$as_me: program exited with status $ac_status" >&5 | |
20908 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 20909 | sed 's/^/| /' conftest.$ac_ext >&5 |
20910 | ||
c3fda854 | 20911 | ( exit $ac_status ) |
20912 | ac_cv_have_working_snprintf=no | |
20913 | fi | |
f58aa3e1 | 20914 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c3fda854 | 20915 | fi |
f58aa3e1 | 20916 | |
20917 | ||
c3fda854 | 20918 | fi |
20919 | ||
f58aa3e1 | 20920 | { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5 |
20921 | echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; } | |
20922 | { echo "$as_me:$LINENO: checking for working vsnprintf" >&5 | |
20923 | echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; } | |
c3fda854 | 20924 | if test "${ac_cv_have_working_vsnprintf+set}" = set; then |
20925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20926 | else | |
20927 | if test "$cross_compiling" = yes; then | |
20928 | ac_cv_have_working_vsnprintf=cross | |
20929 | else | |
20930 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 20931 | /* confdefs.h. */ |
20932 | _ACEOF | |
20933 | cat confdefs.h >>conftest.$ac_ext | |
20934 | cat >>conftest.$ac_ext <<_ACEOF | |
20935 | /* end confdefs.h. */ | |
c3fda854 | 20936 | #include <stdio.h> |
20937 | #include <stdarg.h> | |
20938 | ||
20939 | int my_vsnprintf (char *buf, const char *tmpl, ...) | |
20940 | { | |
20941 | int i; | |
20942 | va_list args; | |
20943 | va_start (args, tmpl); | |
20944 | i = vsnprintf (buf, 2, tmpl, args); | |
20945 | va_end (args); | |
20946 | return i; | |
20947 | } | |
20948 | ||
20949 | int main(void) | |
20950 | { | |
20951 | char bufs[5] = { 'x', 'x', 'x', '\0', '\0' }; | |
20952 | char bufd[5] = { 'x', 'x', 'x', '\0', '\0' }; | |
20953 | int i; | |
20954 | i = my_vsnprintf (bufs, "%s", "111"); | |
20955 | if (strcmp (bufs, "1")) exit (1); | |
20956 | if (i != 3) exit (1); | |
20957 | i = my_vsnprintf (bufd, "%d", 111); | |
20958 | if (strcmp (bufd, "1")) exit (1); | |
20959 | if (i != 3) exit (1); | |
20960 | exit(0); | |
20961 | } | |
20962 | _ACEOF | |
20963 | rm -f conftest$ac_exeext | |
f58aa3e1 | 20964 | if { (ac_try="$ac_link" |
20965 | case "(($ac_try" in | |
20966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20967 | *) ac_try_echo=$ac_try;; | |
20968 | esac | |
20969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20970 | (eval "$ac_link") 2>&5 | |
c3fda854 | 20971 | ac_status=$? |
20972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20973 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
f58aa3e1 | 20974 | { (case "(($ac_try" in |
20975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20976 | *) ac_try_echo=$ac_try;; | |
20977 | esac | |
20978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20979 | (eval "$ac_try") 2>&5 | |
c3fda854 | 20980 | ac_status=$? |
20981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20982 | (exit $ac_status); }; }; then | |
20983 | ac_cv_have_working_vsnprintf=yes | |
20984 | else | |
20985 | echo "$as_me: program exited with status $ac_status" >&5 | |
20986 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 20987 | sed 's/^/| /' conftest.$ac_ext >&5 |
20988 | ||
c3fda854 | 20989 | ( exit $ac_status ) |
20990 | ac_cv_have_working_vsnprintf=no | |
20991 | fi | |
f58aa3e1 | 20992 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c3fda854 | 20993 | fi |
f58aa3e1 | 20994 | |
20995 | ||
c3fda854 | 20996 | fi |
20997 | ||
f58aa3e1 | 20998 | { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5 |
20999 | echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; } | |
c3fda854 | 21000 | if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then |
f58aa3e1 | 21001 | case " $LIBOBJS " in |
21002 | *" snprintf.$ac_objext "* ) ;; | |
21003 | *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" | |
21004 | ;; | |
21005 | esac | |
21006 | ||
c3fda854 | 21007 | { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5 |
21008 | echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;} | |
21009 | ||
21010 | cat >>confdefs.h <<\_ACEOF | |
21011 | #define PREFER_PORTABLE_SNPRINTF 1 | |
21012 | _ACEOF | |
21013 | ||
21014 | fi | |
21015 | ||
89354eef | 21016 | if test "$have_sys_poll_h" = "no"; then |
21017 | ||
21018 | for ac_func in select | |
21019 | do | |
21020 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
f58aa3e1 | 21021 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
21022 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
21023 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
89354eef | 21024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21025 | else | |
21026 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 21027 | /* confdefs.h. */ |
21028 | _ACEOF | |
21029 | cat confdefs.h >>conftest.$ac_ext | |
21030 | cat >>conftest.$ac_ext <<_ACEOF | |
21031 | /* end confdefs.h. */ | |
f58aa3e1 | 21032 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
21033 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21034 | #define $ac_func innocuous_$ac_func | |
21035 | ||
89354eef | 21036 | /* System header to define __stub macros and hopefully few prototypes, |
49ba971d | 21037 | which can conflict with char $ac_func (); below. |
21038 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21039 | <limits.h> exists even on freestanding compilers. */ | |
f58aa3e1 | 21040 | |
49ba971d | 21041 | #ifdef __STDC__ |
21042 | # include <limits.h> | |
21043 | #else | |
21044 | # include <assert.h> | |
21045 | #endif | |
f58aa3e1 | 21046 | |
21047 | #undef $ac_func | |
21048 | ||
21049 | /* Override any GCC internal prototype to avoid an error. | |
21050 | Use char because int might match the return type of a GCC | |
21051 | builtin and then its argument prototype would still apply. */ | |
89354eef | 21052 | #ifdef __cplusplus |
21053 | extern "C" | |
21054 | #endif | |
89354eef | 21055 | char $ac_func (); |
89354eef | 21056 | /* The GNU C library defines this for functions which it implements |
21057 | to always fail with ENOSYS. Some functions are actually named | |
21058 | something starting with __ and the normal name is an alias. */ | |
f58aa3e1 | 21059 | #if defined __stub_$ac_func || defined __stub___$ac_func |
89354eef | 21060 | choke me |
89354eef | 21061 | #endif |
21062 | ||
49ba971d | 21063 | int |
21064 | main () | |
21065 | { | |
f58aa3e1 | 21066 | return $ac_func (); |
89354eef | 21067 | ; |
21068 | return 0; | |
21069 | } | |
21070 | _ACEOF | |
21071 | rm -f conftest.$ac_objext conftest$ac_exeext | |
f58aa3e1 | 21072 | if { (ac_try="$ac_link" |
21073 | case "(($ac_try" in | |
21074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21075 | *) ac_try_echo=$ac_try;; | |
21076 | esac | |
21077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21078 | (eval "$ac_link") 2>conftest.er1 | |
89354eef | 21079 | ac_status=$? |
f58aa3e1 | 21080 | grep -v '^ *+' conftest.er1 >conftest.err |
21081 | rm -f conftest.er1 | |
21082 | cat conftest.err >&5 | |
89354eef | 21083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21084 | (exit $ac_status); } && | |
f58aa3e1 | 21085 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21086 | { (case "(($ac_try" in | |
21087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21088 | *) ac_try_echo=$ac_try;; | |
21089 | esac | |
21090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21091 | (eval "$ac_try") 2>&5 | |
21092 | ac_status=$? | |
21093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21094 | (exit $ac_status); }; } && | |
21095 | { ac_try='test -s conftest$ac_exeext' | |
21096 | { (case "(($ac_try" in | |
21097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21098 | *) ac_try_echo=$ac_try;; | |
21099 | esac | |
21100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21101 | (eval "$ac_try") 2>&5 | |
89354eef | 21102 | ac_status=$? |
21103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21104 | (exit $ac_status); }; }; then | |
21105 | eval "$as_ac_var=yes" | |
21106 | else | |
21107 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 21108 | sed 's/^/| /' conftest.$ac_ext >&5 |
21109 | ||
f58aa3e1 | 21110 | eval "$as_ac_var=no" |
89354eef | 21111 | fi |
f58aa3e1 | 21112 | |
21113 | rm -f core conftest.err conftest.$ac_objext \ | |
21114 | conftest$ac_exeext conftest.$ac_ext | |
89354eef | 21115 | fi |
f58aa3e1 | 21116 | ac_res=`eval echo '${'$as_ac_var'}'` |
21117 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21118 | echo "${ECHO_T}$ac_res" >&6; } | |
89354eef | 21119 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
21120 | cat >>confdefs.h <<_ACEOF | |
21121 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
21122 | _ACEOF | |
21123 | have_select=yes | |
21124 | else | |
21125 | have_select=no | |
21126 | fi | |
21127 | done | |
21128 | ||
21129 | if test "$have_select" = "no"; then | |
21130 | { { echo "$as_me:$LINENO: error: No select() implementation found" >&5 | |
21131 | echo "$as_me: error: No select() implementation found" >&2;} | |
21132 | { (exit 1); exit 1; }; } | |
21133 | fi | |
21134 | fi | |
21135 | ||
21136 | ||
f3a6a023 | 21137 | |
21138 | for ac_func in inet_aton inet_pton | |
89354eef | 21139 | do |
21140 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
f58aa3e1 | 21141 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
21142 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
21143 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
89354eef | 21144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21145 | else | |
21146 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 21147 | /* confdefs.h. */ |
21148 | _ACEOF | |
21149 | cat confdefs.h >>conftest.$ac_ext | |
21150 | cat >>conftest.$ac_ext <<_ACEOF | |
21151 | /* end confdefs.h. */ | |
f58aa3e1 | 21152 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
21153 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21154 | #define $ac_func innocuous_$ac_func | |
21155 | ||
89354eef | 21156 | /* System header to define __stub macros and hopefully few prototypes, |
49ba971d | 21157 | which can conflict with char $ac_func (); below. |
21158 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21159 | <limits.h> exists even on freestanding compilers. */ | |
f58aa3e1 | 21160 | |
49ba971d | 21161 | #ifdef __STDC__ |
21162 | # include <limits.h> | |
21163 | #else | |
21164 | # include <assert.h> | |
21165 | #endif | |
f58aa3e1 | 21166 | |
21167 | #undef $ac_func | |
21168 | ||
21169 | /* Override any GCC internal prototype to avoid an error. | |
21170 | Use char because int might match the return type of a GCC | |
21171 | builtin and then its argument prototype would still apply. */ | |
89354eef | 21172 | #ifdef __cplusplus |
21173 | extern "C" | |
21174 | #endif | |
89354eef | 21175 | char $ac_func (); |
89354eef | 21176 | /* The GNU C library defines this for functions which it implements |
21177 | to always fail with ENOSYS. Some functions are actually named | |
21178 | something starting with __ and the normal name is an alias. */ | |
f58aa3e1 | 21179 | #if defined __stub_$ac_func || defined __stub___$ac_func |
89354eef | 21180 | choke me |
89354eef | 21181 | #endif |
21182 | ||
49ba971d | 21183 | int |
21184 | main () | |
21185 | { | |
f58aa3e1 | 21186 | return $ac_func (); |
89354eef | 21187 | ; |
21188 | return 0; | |
21189 | } | |
21190 | _ACEOF | |
21191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
f58aa3e1 | 21192 | if { (ac_try="$ac_link" |
21193 | case "(($ac_try" in | |
21194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21195 | *) ac_try_echo=$ac_try;; | |
21196 | esac | |
21197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21198 | (eval "$ac_link") 2>conftest.er1 | |
89354eef | 21199 | ac_status=$? |
f58aa3e1 | 21200 | grep -v '^ *+' conftest.er1 >conftest.err |
21201 | rm -f conftest.er1 | |
21202 | cat conftest.err >&5 | |
89354eef | 21203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21204 | (exit $ac_status); } && | |
f58aa3e1 | 21205 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21206 | { (case "(($ac_try" in | |
21207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21208 | *) ac_try_echo=$ac_try;; | |
21209 | esac | |
21210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21211 | (eval "$ac_try") 2>&5 | |
21212 | ac_status=$? | |
21213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21214 | (exit $ac_status); }; } && | |
21215 | { ac_try='test -s conftest$ac_exeext' | |
21216 | { (case "(($ac_try" in | |
21217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21218 | *) ac_try_echo=$ac_try;; | |
21219 | esac | |
21220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21221 | (eval "$ac_try") 2>&5 | |
89354eef | 21222 | ac_status=$? |
21223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21224 | (exit $ac_status); }; }; then | |
21225 | eval "$as_ac_var=yes" | |
21226 | else | |
21227 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 21228 | sed 's/^/| /' conftest.$ac_ext >&5 |
21229 | ||
f58aa3e1 | 21230 | eval "$as_ac_var=no" |
89354eef | 21231 | fi |
f58aa3e1 | 21232 | |
21233 | rm -f core conftest.err conftest.$ac_objext \ | |
21234 | conftest$ac_exeext conftest.$ac_ext | |
89354eef | 21235 | fi |
f58aa3e1 | 21236 | ac_res=`eval echo '${'$as_ac_var'}'` |
21237 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21238 | echo "${ECHO_T}$ac_res" >&6; } | |
89354eef | 21239 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
21240 | cat >>confdefs.h <<_ACEOF | |
21241 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
21242 | _ACEOF | |
21243 | ||
21244 | fi | |
21245 | done | |
21246 | ||
21247 | ||
21248 | ||
21249 | ||
21250 | for ac_func in gethostbyname gethostbyname2 | |
21251 | do | |
21252 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
f58aa3e1 | 21253 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
21254 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
21255 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
89354eef | 21256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21257 | else | |
21258 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 21259 | /* confdefs.h. */ |
21260 | _ACEOF | |
21261 | cat confdefs.h >>conftest.$ac_ext | |
21262 | cat >>conftest.$ac_ext <<_ACEOF | |
21263 | /* end confdefs.h. */ | |
f58aa3e1 | 21264 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
21265 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21266 | #define $ac_func innocuous_$ac_func | |
21267 | ||
89354eef | 21268 | /* System header to define __stub macros and hopefully few prototypes, |
49ba971d | 21269 | which can conflict with char $ac_func (); below. |
21270 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21271 | <limits.h> exists even on freestanding compilers. */ | |
f58aa3e1 | 21272 | |
49ba971d | 21273 | #ifdef __STDC__ |
21274 | # include <limits.h> | |
21275 | #else | |
21276 | # include <assert.h> | |
21277 | #endif | |
f58aa3e1 | 21278 | |
21279 | #undef $ac_func | |
21280 | ||
21281 | /* Override any GCC internal prototype to avoid an error. | |
21282 | Use char because int might match the return type of a GCC | |
21283 | builtin and then its argument prototype would still apply. */ | |
89354eef | 21284 | #ifdef __cplusplus |
21285 | extern "C" | |
21286 | #endif | |
89354eef | 21287 | char $ac_func (); |
89354eef | 21288 | /* The GNU C library defines this for functions which it implements |
21289 | to always fail with ENOSYS. Some functions are actually named | |
21290 | something starting with __ and the normal name is an alias. */ | |
f58aa3e1 | 21291 | #if defined __stub_$ac_func || defined __stub___$ac_func |
89354eef | 21292 | choke me |
89354eef | 21293 | #endif |
21294 | ||
49ba971d | 21295 | int |
21296 | main () | |
21297 | { | |
f58aa3e1 | 21298 | return $ac_func (); |
89354eef | 21299 | ; |
21300 | return 0; | |
21301 | } | |
21302 | _ACEOF | |
21303 | rm -f conftest.$ac_objext conftest$ac_exeext | |
f58aa3e1 | 21304 | if { (ac_try="$ac_link" |
21305 | case "(($ac_try" in | |
21306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21307 | *) ac_try_echo=$ac_try;; | |
21308 | esac | |
21309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21310 | (eval "$ac_link") 2>conftest.er1 | |
89354eef | 21311 | ac_status=$? |
f58aa3e1 | 21312 | grep -v '^ *+' conftest.er1 >conftest.err |
21313 | rm -f conftest.er1 | |
21314 | cat conftest.err >&5 | |
89354eef | 21315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21316 | (exit $ac_status); } && | |
f58aa3e1 | 21317 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21318 | { (case "(($ac_try" in | |
21319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21320 | *) ac_try_echo=$ac_try;; | |
21321 | esac | |
21322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21323 | (eval "$ac_try") 2>&5 | |
21324 | ac_status=$? | |
21325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21326 | (exit $ac_status); }; } && | |
21327 | { ac_try='test -s conftest$ac_exeext' | |
21328 | { (case "(($ac_try" in | |
21329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21330 | *) ac_try_echo=$ac_try;; | |
21331 | esac | |
21332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21333 | (eval "$ac_try") 2>&5 | |
89354eef | 21334 | ac_status=$? |
21335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21336 | (exit $ac_status); }; }; then | |
21337 | eval "$as_ac_var=yes" | |
21338 | else | |
21339 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 21340 | sed 's/^/| /' conftest.$ac_ext >&5 |
21341 | ||
f58aa3e1 | 21342 | eval "$as_ac_var=no" |
89354eef | 21343 | fi |
f58aa3e1 | 21344 | |
21345 | rm -f core conftest.err conftest.$ac_objext \ | |
21346 | conftest$ac_exeext conftest.$ac_ext | |
89354eef | 21347 | fi |
f58aa3e1 | 21348 | ac_res=`eval echo '${'$as_ac_var'}'` |
21349 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21350 | echo "${ECHO_T}$ac_res" >&6; } | |
89354eef | 21351 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
21352 | cat >>confdefs.h <<_ACEOF | |
21353 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
21354 | _ACEOF | |
21355 | ||
21356 | fi | |
21357 | done | |
21358 | ||
21359 | ||
f58aa3e1 | 21360 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
21361 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
89354eef | 21362 | if test "${ac_cv_c_bigendian+set}" = set; then |
21363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21364 | else | |
21365 | # See if sys/param.h defines the BYTE_ORDER macro. | |
21366 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 21367 | /* confdefs.h. */ |
21368 | _ACEOF | |
21369 | cat confdefs.h >>conftest.$ac_ext | |
21370 | cat >>conftest.$ac_ext <<_ACEOF | |
21371 | /* end confdefs.h. */ | |
89354eef | 21372 | #include <sys/types.h> |
21373 | #include <sys/param.h> | |
21374 | ||
89354eef | 21375 | int |
21376 | main () | |
21377 | { | |
21378 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
21379 | bogus endian macros | |
21380 | #endif | |
21381 | ||
21382 | ; | |
21383 | return 0; | |
21384 | } | |
21385 | _ACEOF | |
21386 | rm -f conftest.$ac_objext | |
f58aa3e1 | 21387 | if { (ac_try="$ac_compile" |
21388 | case "(($ac_try" in | |
21389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21390 | *) ac_try_echo=$ac_try;; | |
21391 | esac | |
21392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21393 | (eval "$ac_compile") 2>conftest.er1 | |
89354eef | 21394 | ac_status=$? |
f58aa3e1 | 21395 | grep -v '^ *+' conftest.er1 >conftest.err |
21396 | rm -f conftest.er1 | |
21397 | cat conftest.err >&5 | |
89354eef | 21398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21399 | (exit $ac_status); } && | |
f58aa3e1 | 21400 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21401 | { (case "(($ac_try" in | |
21402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21403 | *) ac_try_echo=$ac_try;; | |
21404 | esac | |
21405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21406 | (eval "$ac_try") 2>&5 | |
21407 | ac_status=$? | |
21408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21409 | (exit $ac_status); }; } && | |
21410 | { ac_try='test -s conftest.$ac_objext' | |
21411 | { (case "(($ac_try" in | |
21412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21413 | *) ac_try_echo=$ac_try;; | |
21414 | esac | |
21415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21416 | (eval "$ac_try") 2>&5 | |
89354eef | 21417 | ac_status=$? |
21418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21419 | (exit $ac_status); }; }; then | |
21420 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
21421 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 21422 | /* confdefs.h. */ |
21423 | _ACEOF | |
21424 | cat confdefs.h >>conftest.$ac_ext | |
21425 | cat >>conftest.$ac_ext <<_ACEOF | |
21426 | /* end confdefs.h. */ | |
89354eef | 21427 | #include <sys/types.h> |
21428 | #include <sys/param.h> | |
21429 | ||
89354eef | 21430 | int |
21431 | main () | |
21432 | { | |
21433 | #if BYTE_ORDER != BIG_ENDIAN | |
21434 | not big endian | |
21435 | #endif | |
21436 | ||
21437 | ; | |
21438 | return 0; | |
21439 | } | |
21440 | _ACEOF | |
21441 | rm -f conftest.$ac_objext | |
f58aa3e1 | 21442 | if { (ac_try="$ac_compile" |
21443 | case "(($ac_try" in | |
21444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21445 | *) ac_try_echo=$ac_try;; | |
21446 | esac | |
21447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21448 | (eval "$ac_compile") 2>conftest.er1 | |
89354eef | 21449 | ac_status=$? |
f58aa3e1 | 21450 | grep -v '^ *+' conftest.er1 >conftest.err |
21451 | rm -f conftest.er1 | |
21452 | cat conftest.err >&5 | |
89354eef | 21453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21454 | (exit $ac_status); } && | |
f58aa3e1 | 21455 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21456 | { (case "(($ac_try" in | |
21457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21458 | *) ac_try_echo=$ac_try;; | |
21459 | esac | |
21460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21461 | (eval "$ac_try") 2>&5 | |
21462 | ac_status=$? | |
21463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21464 | (exit $ac_status); }; } && | |
21465 | { ac_try='test -s conftest.$ac_objext' | |
21466 | { (case "(($ac_try" in | |
21467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21468 | *) ac_try_echo=$ac_try;; | |
21469 | esac | |
21470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21471 | (eval "$ac_try") 2>&5 | |
89354eef | 21472 | ac_status=$? |
21473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21474 | (exit $ac_status); }; }; then | |
21475 | ac_cv_c_bigendian=yes | |
21476 | else | |
21477 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 21478 | sed 's/^/| /' conftest.$ac_ext >&5 |
21479 | ||
f58aa3e1 | 21480 | ac_cv_c_bigendian=no |
89354eef | 21481 | fi |
f58aa3e1 | 21482 | |
21483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
89354eef | 21484 | else |
21485 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 21486 | sed 's/^/| /' conftest.$ac_ext >&5 |
21487 | ||
f58aa3e1 | 21488 | # It does not; compile a test program. |
89354eef | 21489 | if test "$cross_compiling" = yes; then |
49ba971d | 21490 | # try to guess the endianness by grepping values into an object file |
89354eef | 21491 | ac_cv_c_bigendian=unknown |
21492 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 21493 | /* confdefs.h. */ |
21494 | _ACEOF | |
21495 | cat confdefs.h >>conftest.$ac_ext | |
21496 | cat >>conftest.$ac_ext <<_ACEOF | |
21497 | /* end confdefs.h. */ | |
f58aa3e1 | 21498 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
21499 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
89354eef | 21500 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
f58aa3e1 | 21501 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
21502 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
89354eef | 21503 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
89354eef | 21504 | int |
21505 | main () | |
21506 | { | |
21507 | _ascii (); _ebcdic (); | |
21508 | ; | |
21509 | return 0; | |
21510 | } | |
21511 | _ACEOF | |
21512 | rm -f conftest.$ac_objext | |
f58aa3e1 | 21513 | if { (ac_try="$ac_compile" |
21514 | case "(($ac_try" in | |
21515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21516 | *) ac_try_echo=$ac_try;; | |
21517 | esac | |
21518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21519 | (eval "$ac_compile") 2>conftest.er1 | |
89354eef | 21520 | ac_status=$? |
f58aa3e1 | 21521 | grep -v '^ *+' conftest.er1 >conftest.err |
21522 | rm -f conftest.er1 | |
21523 | cat conftest.err >&5 | |
89354eef | 21524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21525 | (exit $ac_status); } && | |
f58aa3e1 | 21526 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21527 | { (case "(($ac_try" in | |
21528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21529 | *) ac_try_echo=$ac_try;; | |
21530 | esac | |
21531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21532 | (eval "$ac_try") 2>&5 | |
21533 | ac_status=$? | |
21534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21535 | (exit $ac_status); }; } && | |
21536 | { ac_try='test -s conftest.$ac_objext' | |
21537 | { (case "(($ac_try" in | |
21538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21539 | *) ac_try_echo=$ac_try;; | |
21540 | esac | |
21541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21542 | (eval "$ac_try") 2>&5 | |
89354eef | 21543 | ac_status=$? |
21544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21545 | (exit $ac_status); }; }; then | |
49ba971d | 21546 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
89354eef | 21547 | ac_cv_c_bigendian=yes |
21548 | fi | |
49ba971d | 21549 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
89354eef | 21550 | if test "$ac_cv_c_bigendian" = unknown; then |
21551 | ac_cv_c_bigendian=no | |
21552 | else | |
21553 | # finding both strings is unlikely to happen, but who knows? | |
21554 | ac_cv_c_bigendian=unknown | |
21555 | fi | |
21556 | fi | |
21557 | else | |
21558 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 21559 | sed 's/^/| /' conftest.$ac_ext >&5 |
21560 | ||
f58aa3e1 | 21561 | |
89354eef | 21562 | fi |
f58aa3e1 | 21563 | |
21564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
89354eef | 21565 | else |
21566 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 21567 | /* confdefs.h. */ |
21568 | _ACEOF | |
21569 | cat confdefs.h >>conftest.$ac_ext | |
21570 | cat >>conftest.$ac_ext <<_ACEOF | |
21571 | /* end confdefs.h. */ | |
f58aa3e1 | 21572 | $ac_includes_default |
89354eef | 21573 | int |
21574 | main () | |
21575 | { | |
f58aa3e1 | 21576 | |
89354eef | 21577 | /* Are we little or big endian? From Harbison&Steele. */ |
21578 | union | |
21579 | { | |
f58aa3e1 | 21580 | long int l; |
21581 | char c[sizeof (long int)]; | |
89354eef | 21582 | } u; |
21583 | u.l = 1; | |
f58aa3e1 | 21584 | return u.c[sizeof (long int) - 1] == 1; |
21585 | ||
21586 | ; | |
21587 | return 0; | |
89354eef | 21588 | } |
21589 | _ACEOF | |
21590 | rm -f conftest$ac_exeext | |
f58aa3e1 | 21591 | if { (ac_try="$ac_link" |
21592 | case "(($ac_try" in | |
21593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21594 | *) ac_try_echo=$ac_try;; | |
21595 | esac | |
21596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21597 | (eval "$ac_link") 2>&5 | |
89354eef | 21598 | ac_status=$? |
21599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21600 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
f58aa3e1 | 21601 | { (case "(($ac_try" in |
21602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21603 | *) ac_try_echo=$ac_try;; | |
21604 | esac | |
21605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21606 | (eval "$ac_try") 2>&5 | |
89354eef | 21607 | ac_status=$? |
21608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21609 | (exit $ac_status); }; }; then | |
21610 | ac_cv_c_bigendian=no | |
21611 | else | |
21612 | echo "$as_me: program exited with status $ac_status" >&5 | |
21613 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 21614 | sed 's/^/| /' conftest.$ac_ext >&5 |
21615 | ||
89354eef | 21616 | ( exit $ac_status ) |
21617 | ac_cv_c_bigendian=yes | |
21618 | fi | |
f58aa3e1 | 21619 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
89354eef | 21620 | fi |
f58aa3e1 | 21621 | |
21622 | ||
89354eef | 21623 | fi |
f58aa3e1 | 21624 | |
21625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
89354eef | 21626 | fi |
f58aa3e1 | 21627 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
21628 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
89354eef | 21629 | case $ac_cv_c_bigendian in |
21630 | yes) | |
21631 | ||
21632 | cat >>confdefs.h <<\_ACEOF | |
21633 | #define WORDS_BIGENDIAN 1 | |
21634 | _ACEOF | |
21635 | ;; | |
21636 | no) | |
21637 | ;; | |
21638 | *) | |
49ba971d | 21639 | { { echo "$as_me:$LINENO: error: unknown endianness |
89354eef | 21640 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
49ba971d | 21641 | echo "$as_me: error: unknown endianness |
89354eef | 21642 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
21643 | { (exit 1); exit 1; }; } ;; | |
21644 | esac | |
21645 | ||
21646 | ||
f58aa3e1 | 21647 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
21648 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } | |
89354eef | 21649 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
21650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21651 | else | |
21652 | ac_check_lib_save_LIBS=$LIBS | |
21653 | LIBS="-lsocket $LIBS" | |
21654 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 21655 | /* confdefs.h. */ |
21656 | _ACEOF | |
21657 | cat confdefs.h >>conftest.$ac_ext | |
21658 | cat >>conftest.$ac_ext <<_ACEOF | |
21659 | /* end confdefs.h. */ | |
89354eef | 21660 | |
f58aa3e1 | 21661 | /* Override any GCC internal prototype to avoid an error. |
21662 | Use char because int might match the return type of a GCC | |
21663 | builtin and then its argument prototype would still apply. */ | |
89354eef | 21664 | #ifdef __cplusplus |
21665 | extern "C" | |
21666 | #endif | |
89354eef | 21667 | char socket (); |
89354eef | 21668 | int |
21669 | main () | |
21670 | { | |
f58aa3e1 | 21671 | return socket (); |
89354eef | 21672 | ; |
21673 | return 0; | |
21674 | } | |
21675 | _ACEOF | |
21676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
f58aa3e1 | 21677 | if { (ac_try="$ac_link" |
21678 | case "(($ac_try" in | |
21679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21680 | *) ac_try_echo=$ac_try;; | |
21681 | esac | |
21682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21683 | (eval "$ac_link") 2>conftest.er1 | |
89354eef | 21684 | ac_status=$? |
f58aa3e1 | 21685 | grep -v '^ *+' conftest.er1 >conftest.err |
21686 | rm -f conftest.er1 | |
21687 | cat conftest.err >&5 | |
89354eef | 21688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21689 | (exit $ac_status); } && | |
f58aa3e1 | 21690 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21691 | { (case "(($ac_try" in | |
21692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21693 | *) ac_try_echo=$ac_try;; | |
21694 | esac | |
21695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21696 | (eval "$ac_try") 2>&5 | |
21697 | ac_status=$? | |
21698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21699 | (exit $ac_status); }; } && | |
21700 | { ac_try='test -s conftest$ac_exeext' | |
21701 | { (case "(($ac_try" in | |
21702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21703 | *) ac_try_echo=$ac_try;; | |
21704 | esac | |
21705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21706 | (eval "$ac_try") 2>&5 | |
89354eef | 21707 | ac_status=$? |
21708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21709 | (exit $ac_status); }; }; then | |
21710 | ac_cv_lib_socket_socket=yes | |
21711 | else | |
21712 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 21713 | sed 's/^/| /' conftest.$ac_ext >&5 |
21714 | ||
f58aa3e1 | 21715 | ac_cv_lib_socket_socket=no |
89354eef | 21716 | fi |
f58aa3e1 | 21717 | |
21718 | rm -f core conftest.err conftest.$ac_objext \ | |
21719 | conftest$ac_exeext conftest.$ac_ext | |
89354eef | 21720 | LIBS=$ac_check_lib_save_LIBS |
21721 | fi | |
f58aa3e1 | 21722 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
21723 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } | |
89354eef | 21724 | if test $ac_cv_lib_socket_socket = yes; then |
21725 | LSOCKET=-lsocket | |
21726 | ||
21727 | fi | |
21728 | ||
f58aa3e1 | 21729 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
21730 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } | |
89354eef | 21731 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
21732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21733 | else | |
21734 | ac_check_lib_save_LIBS=$LIBS | |
21735 | LIBS="-lnsl $LIBS" | |
21736 | cat >conftest.$ac_ext <<_ACEOF | |
49ba971d | 21737 | /* confdefs.h. */ |
21738 | _ACEOF | |
21739 | cat confdefs.h >>conftest.$ac_ext | |
21740 | cat >>conftest.$ac_ext <<_ACEOF | |
21741 | /* end confdefs.h. */ | |
89354eef | 21742 | |
f58aa3e1 | 21743 | /* Override any GCC internal prototype to avoid an error. |
21744 | Use char because int might match the return type of a GCC | |
21745 | builtin and then its argument prototype would still apply. */ | |
89354eef | 21746 | #ifdef __cplusplus |
21747 | extern "C" | |
21748 | #endif | |
89354eef | 21749 | char gethostbyname (); |
89354eef | 21750 | int |
21751 | main () | |
21752 | { | |
f58aa3e1 | 21753 | return gethostbyname (); |
89354eef | 21754 | ; |
21755 | return 0; | |
21756 | } | |
21757 | _ACEOF | |
21758 | rm -f conftest.$ac_objext conftest$ac_exeext | |
f58aa3e1 | 21759 | if { (ac_try="$ac_link" |
21760 | case "(($ac_try" in | |
21761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21762 | *) ac_try_echo=$ac_try;; | |
21763 | esac | |
21764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21765 | (eval "$ac_link") 2>conftest.er1 | |
89354eef | 21766 | ac_status=$? |
f58aa3e1 | 21767 | grep -v '^ *+' conftest.er1 >conftest.err |
21768 | rm -f conftest.er1 | |
21769 | cat conftest.err >&5 | |
89354eef | 21770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21771 | (exit $ac_status); } && | |
f58aa3e1 | 21772 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21773 | { (case "(($ac_try" in | |
21774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21775 | *) ac_try_echo=$ac_try;; | |
21776 | esac | |
21777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21778 | (eval "$ac_try") 2>&5 | |
21779 | ac_status=$? | |
21780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21781 | (exit $ac_status); }; } && | |
21782 | { ac_try='test -s conftest$ac_exeext' | |
21783 | { (case "(($ac_try" in | |
21784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21785 | *) ac_try_echo=$ac_try;; | |
21786 | esac | |
21787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21788 | (eval "$ac_try") 2>&5 | |
89354eef | 21789 | ac_status=$? |
21790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21791 | (exit $ac_status); }; }; then | |
21792 | ac_cv_lib_nsl_gethostbyname=yes | |
21793 | else | |
21794 | echo "$as_me: failed program was:" >&5 | |
49ba971d | 21795 | sed 's/^/| /' conftest.$ac_ext >&5 |
21796 | ||
f58aa3e1 | 21797 | ac_cv_lib_nsl_gethostbyname=no |
89354eef | 21798 | fi |
f58aa3e1 | 21799 | |
21800 | rm -f core conftest.err conftest.$ac_objext \ | |
21801 | conftest$ac_exeext conftest.$ac_ext | |
89354eef | 21802 | LIBS=$ac_check_lib_save_LIBS |
21803 | fi | |
f58aa3e1 | 21804 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
21805 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } | |
89354eef | 21806 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
21807 | LNSL=-lnsl | |
21808 | ||
21809 | fi | |
21810 | ||
21811 | ||
13931fb2 | 21812 | |
a72c9e1a | 21813 | LTLIBOBJS=`echo "$LIBOBJS" | |
21814 | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'` | |
21815 | ||
21816 | ||
49ba971d | 21817 | |
f58aa3e1 | 21818 | # Check whether --with-werror was given. |
49ba971d | 21819 | if test "${with_werror+set}" = set; then |
f58aa3e1 | 21820 | withval=$with_werror; CFLAGS="$CFLAGS -Werror" |
21821 | fi | |
21822 | ||
21823 | ||
21824 | ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/Doxyfile" | |
49ba971d | 21825 | |
89354eef | 21826 | cat >confcache <<\_ACEOF |
21827 | # This file is a shell script that caches the results of configure | |
21828 | # tests run on this system so they can be shared between configure | |
21829 | # scripts and configure runs, see configure's option --config-cache. | |
21830 | # It is not useful on other systems. If it contains results you don't | |
21831 | # want to keep, you may remove or edit it. | |
21832 | # | |
21833 | # config.status only pays attention to the cache file if you give it | |
21834 | # the --recheck option to rerun configure. | |
21835 | # | |
49ba971d | 21836 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
89354eef | 21837 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
21838 | # following values. | |
21839 | ||
21840 | _ACEOF | |
21841 | ||
21842 | # The following way of writing the cache mishandles newlines in values, | |
21843 | # but we know of no workaround that is simple, portable, and efficient. | |
f58aa3e1 | 21844 | # So, we kill variables containing newlines. |
89354eef | 21845 | # Ultrix sh set writes to stderr and can't be redirected directly, |
21846 | # and sets the high bit in the cache file unless we assign to the vars. | |
f58aa3e1 | 21847 | ( |
21848 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
21849 | eval ac_val=\$$ac_var | |
21850 | case $ac_val in #( | |
21851 | *${as_nl}*) | |
21852 | case $ac_var in #( | |
21853 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
21854 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
21855 | esac | |
21856 | case $ac_var in #( | |
21857 | _ | IFS | as_nl) ;; #( | |
21858 | *) $as_unset $ac_var ;; | |
21859 | esac ;; | |
21860 | esac | |
21861 | done | |
21862 | ||
89354eef | 21863 | (set) 2>&1 | |
f58aa3e1 | 21864 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
21865 | *${as_nl}ac_space=\ *) | |
89354eef | 21866 | # `set' does not quote correctly, so add quotes (double-quote |
21867 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21868 | sed -n \ | |
f58aa3e1 | 21869 | "s/'/'\\\\''/g; |
21870 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
21871 | ;; #( | |
89354eef | 21872 | *) |
21873 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
f58aa3e1 | 21874 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
89354eef | 21875 | ;; |
f58aa3e1 | 21876 | esac | |
21877 | sort | |
21878 | ) | | |
89354eef | 21879 | sed ' |
f58aa3e1 | 21880 | /^ac_cv_env_/b end |
89354eef | 21881 | t clear |
f58aa3e1 | 21882 | :clear |
89354eef | 21883 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
21884 | t end | |
f58aa3e1 | 21885 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
21886 | :end' >>confcache | |
21887 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
21888 | if test -w "$cache_file"; then | |
21889 | test "x$cache_file" != "x/dev/null" && | |
21890 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
21891 | echo "$as_me: updating cache $cache_file" >&6;} | |
89354eef | 21892 | cat confcache >$cache_file |
21893 | else | |
f58aa3e1 | 21894 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
21895 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
89354eef | 21896 | fi |
21897 | fi | |
21898 | rm -f confcache | |
21899 | ||
21900 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
21901 | # Let make expand exec_prefix. | |
21902 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21903 | ||
89354eef | 21904 | DEFS=-DHAVE_CONFIG_H |
21905 | ||
49ba971d | 21906 | ac_libobjs= |
21907 | ac_ltlibobjs= | |
21908 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
21909 | # 1. Remove the extension, and $U if already installed. | |
f58aa3e1 | 21910 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
21911 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
21912 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
21913 | # will be set to the directory where LIBOBJS objects are built. | |
21914 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
21915 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
49ba971d | 21916 | done |
21917 | LIBOBJS=$ac_libobjs | |
21918 | ||
21919 | LTLIBOBJS=$ac_ltlibobjs | |
21920 | ||
21921 | ||
89354eef | 21922 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
21923 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
21924 | Usually this means the macro was only invoked conditionally." >&5 | |
21925 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
21926 | Usually this means the macro was only invoked conditionally." >&2;} | |
21927 | { (exit 1); exit 1; }; } | |
21928 | fi | |
21929 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
21930 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
21931 | Usually this means the macro was only invoked conditionally." >&5 | |
21932 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
21933 | Usually this means the macro was only invoked conditionally." >&2;} | |
21934 | { (exit 1); exit 1; }; } | |
21935 | fi | |
f58aa3e1 | 21936 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
21937 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
21938 | Usually this means the macro was only invoked conditionally." >&5 | |
21939 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
21940 | Usually this means the macro was only invoked conditionally." >&2;} | |
21941 | { (exit 1); exit 1; }; } | |
21942 | fi | |
21943 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
21944 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | |
21945 | Usually this means the macro was only invoked conditionally." >&5 | |
21946 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
21947 | Usually this means the macro was only invoked conditionally." >&2;} | |
21948 | { (exit 1); exit 1; }; } | |
21949 | fi | |
89354eef | 21950 | |
21951 | : ${CONFIG_STATUS=./config.status} | |
21952 | ac_clean_files_save=$ac_clean_files | |
21953 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
21954 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
21955 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
21956 | cat >$CONFIG_STATUS <<_ACEOF | |
21957 | #! $SHELL | |
21958 | # Generated by $as_me. | |
21959 | # Run this file to recreate the current configuration. | |
21960 | # Compiler output produced by configure, useful for debugging | |
21961 | # configure, is in config.log if it exists. | |
21962 | ||
21963 | debug=false | |
49ba971d | 21964 | ac_cs_recheck=false |
21965 | ac_cs_silent=false | |
89354eef | 21966 | SHELL=\${CONFIG_SHELL-$SHELL} |
21967 | _ACEOF | |
21968 | ||
21969 | cat >>$CONFIG_STATUS <<\_ACEOF | |
89354eef | 21970 | ## --------------------- ## |
21971 | ## M4sh Initialization. ## | |
21972 | ## --------------------- ## | |
21973 | ||
21974 | # Be Bourne compatible | |
21975 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
21976 | emulate sh | |
21977 | NULLCMD=: | |
49ba971d | 21978 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
21979 | # is contrary to our usage. Disable this feature. | |
21980 | alias -g '${1+"$@"}'='"$@"' | |
f58aa3e1 | 21981 | setopt NO_GLOB_SUBST |
21982 | else | |
21983 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
21984 | fi | |
21985 | BIN_SH=xpg4; export BIN_SH # for Tru64 | |
21986 | DUALCASE=1; export DUALCASE # for MKS sh | |
21987 | ||
21988 | ||
21989 | # PATH needs CR | |
21990 | # Avoid depending upon Character Ranges. | |
21991 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
21992 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
21993 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
21994 | as_cr_digits='0123456789' | |
21995 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
21996 | ||
21997 | # The user is always right. | |
21998 | if test "${PATH_SEPARATOR+set}" != set; then | |
21999 | echo "#! /bin/sh" >conf$$.sh | |
22000 | echo "exit 0" >>conf$$.sh | |
22001 | chmod +x conf$$.sh | |
22002 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
22003 | PATH_SEPARATOR=';' | |
22004 | else | |
22005 | PATH_SEPARATOR=: | |
22006 | fi | |
22007 | rm -f conf$$.sh | |
89354eef | 22008 | fi |
22009 | ||
89354eef | 22010 | # Support unset when possible. |
f58aa3e1 | 22011 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
89354eef | 22012 | as_unset=unset |
22013 | else | |
22014 | as_unset=false | |
22015 | fi | |
22016 | ||
49ba971d | 22017 | |
f58aa3e1 | 22018 | # IFS |
22019 | # We need space, tab and new line, in precisely that order. Quoting is | |
22020 | # there to prevent editors from complaining about space-tab. | |
22021 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
22022 | # splitting by setting IFS to empty value.) | |
22023 | as_nl=' | |
22024 | ' | |
22025 | IFS=" "" $as_nl" | |
22026 | ||
22027 | # Find who we are. Look in the path if we contain no directory separator. | |
22028 | case $0 in | |
22029 | *[\\/]* ) as_myself=$0 ;; | |
22030 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22031 | for as_dir in $PATH | |
22032 | do | |
22033 | IFS=$as_save_IFS | |
22034 | test -z "$as_dir" && as_dir=. | |
22035 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
22036 | done | |
22037 | IFS=$as_save_IFS | |
22038 | ||
22039 | ;; | |
22040 | esac | |
22041 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
22042 | # in which case we are not to be found in the path. | |
22043 | if test "x$as_myself" = x; then | |
22044 | as_myself=$0 | |
22045 | fi | |
22046 | if test ! -f "$as_myself"; then | |
22047 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
22048 | { (exit 1); exit 1; } | |
22049 | fi | |
22050 | ||
49ba971d | 22051 | # Work around bugs in pre-3.0 UWIN ksh. |
f58aa3e1 | 22052 | for as_var in ENV MAIL MAILPATH |
22053 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
22054 | done | |
49ba971d | 22055 | PS1='$ ' |
22056 | PS2='> ' | |
22057 | PS4='+ ' | |
22058 | ||
22059 | # NLS nuisances. | |
22060 | for as_var in \ | |
22061 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
22062 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
22063 | LC_TELEPHONE LC_TIME | |
22064 | do | |
f58aa3e1 | 22065 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
49ba971d | 22066 | eval $as_var=C; export $as_var |
22067 | else | |
f58aa3e1 | 22068 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
49ba971d | 22069 | fi |
22070 | done | |
22071 | ||
22072 | # Required to use basename. | |
f58aa3e1 | 22073 | if expr a : '\(a\)' >/dev/null 2>&1 && |
22074 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
49ba971d | 22075 | as_expr=expr |
22076 | else | |
22077 | as_expr=false | |
22078 | fi | |
22079 | ||
f58aa3e1 | 22080 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
49ba971d | 22081 | as_basename=basename |
22082 | else | |
22083 | as_basename=false | |
22084 | fi | |
89354eef | 22085 | |
22086 | ||
22087 | # Name of the executable. | |
f58aa3e1 | 22088 | as_me=`$as_basename -- "$0" || |
89354eef | 22089 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
22090 | X"$0" : 'X\(//\)$' \| \ | |
f58aa3e1 | 22091 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
89354eef | 22092 | echo X/"$0" | |
f58aa3e1 | 22093 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
22094 | s//\1/ | |
22095 | q | |
22096 | } | |
22097 | /^X\/\(\/\/\)$/{ | |
22098 | s//\1/ | |
22099 | q | |
22100 | } | |
22101 | /^X\/\(\/\).*/{ | |
22102 | s//\1/ | |
22103 | q | |
22104 | } | |
22105 | s/.*/./; q'` | |
22106 | ||
22107 | # CDPATH. | |
22108 | $as_unset CDPATH | |
89354eef | 22109 | |
22110 | ||
89354eef | 22111 | |
89354eef | 22112 | as_lineno_1=$LINENO |
22113 | as_lineno_2=$LINENO | |
89354eef | 22114 | test "x$as_lineno_1" != "x$as_lineno_2" && |
f58aa3e1 | 22115 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
89354eef | 22116 | |
22117 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
22118 | # uniformly replaced by the line number. The first 'sed' inserts a | |
f58aa3e1 | 22119 | # line-number line after each line using $LINENO; the second 'sed' |
22120 | # does the real work. The second script uses 'N' to pair each | |
22121 | # line-number line with the line containing $LINENO, and appends | |
22122 | # trailing '-' during substitution so that $LINENO is not a special | |
22123 | # case at line end. | |
89354eef | 22124 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
f58aa3e1 | 22125 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
22126 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
22127 | sed -n ' | |
22128 | p | |
22129 | /[$]LINENO/= | |
22130 | ' <$as_myself | | |
89354eef | 22131 | sed ' |
f58aa3e1 | 22132 | s/[$]LINENO.*/&-/ |
22133 | t lineno | |
22134 | b | |
22135 | :lineno | |
89354eef | 22136 | N |
f58aa3e1 | 22137 | :loop |
22138 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
89354eef | 22139 | t loop |
f58aa3e1 | 22140 | s/-\n.*// |
89354eef | 22141 | ' >$as_me.lineno && |
f58aa3e1 | 22142 | chmod +x "$as_me.lineno" || |
22143 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
89354eef | 22144 | { (exit 1); exit 1; }; } |
22145 | ||
22146 | # Don't try to exec as it changes $[0], causing all sort of problems | |
22147 | # (the dirname of $[0] is not the place where we might find the | |
f58aa3e1 | 22148 | # original and so on. Autoconf is especially sensitive to this). |
22149 | . "./$as_me.lineno" | |
89354eef | 22150 | # Exit status is that of the last command. |
22151 | exit | |
22152 | } | |
22153 | ||
22154 | ||
f58aa3e1 | 22155 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
22156 | as_dirname=dirname | |
22157 | else | |
22158 | as_dirname=false | |
22159 | fi | |
22160 | ||
22161 | ECHO_C= ECHO_N= ECHO_T= | |
22162 | case `echo -n x` in | |
22163 | -n*) | |
22164 | case `echo 'x\c'` in | |
22165 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
22166 | *) ECHO_C='\c';; | |
22167 | esac;; | |
22168 | *) | |
22169 | ECHO_N='-n';; | |
89354eef | 22170 | esac |
22171 | ||
f58aa3e1 | 22172 | if expr a : '\(a\)' >/dev/null 2>&1 && |
22173 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
89354eef | 22174 | as_expr=expr |
22175 | else | |
22176 | as_expr=false | |
22177 | fi | |
22178 | ||
22179 | rm -f conf$$ conf$$.exe conf$$.file | |
f58aa3e1 | 22180 | if test -d conf$$.dir; then |
22181 | rm -f conf$$.dir/conf$$.file | |
22182 | else | |
22183 | rm -f conf$$.dir | |
22184 | mkdir conf$$.dir | |
22185 | fi | |
89354eef | 22186 | echo >conf$$.file |
22187 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
f58aa3e1 | 22188 | as_ln_s='ln -s' |
22189 | # ... but there are two gotchas: | |
22190 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
22191 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22192 | # In both cases, we have to default to `cp -p'. | |
22193 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
89354eef | 22194 | as_ln_s='cp -p' |
89354eef | 22195 | elif ln conf$$.file conf$$ 2>/dev/null; then |
22196 | as_ln_s=ln | |
22197 | else | |
22198 | as_ln_s='cp -p' | |
22199 | fi | |
f58aa3e1 | 22200 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
22201 | rmdir conf$$.dir 2>/dev/null | |
89354eef | 22202 | |
49ba971d | 22203 | if mkdir -p . 2>/dev/null; then |
22204 | as_mkdir_p=: | |
22205 | else | |
f58aa3e1 | 22206 | test -d ./-p && rmdir ./-p |
49ba971d | 22207 | as_mkdir_p=false |
22208 | fi | |
22209 | ||
f58aa3e1 | 22210 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
22211 | # systems may use methods other than mode bits to determine executability. | |
22212 | cat >conf$$.file <<_ASEOF | |
22213 | #! /bin/sh | |
22214 | exit 0 | |
22215 | _ASEOF | |
22216 | chmod +x conf$$.file | |
22217 | if test -x conf$$.file >/dev/null 2>&1; then | |
22218 | as_executable_p="test -x" | |
22219 | else | |
22220 | as_executable_p=: | |
22221 | fi | |
22222 | rm -f conf$$.file | |
89354eef | 22223 | |
22224 | # Sed expression to map a string onto a valid CPP name. | |
f58aa3e1 | 22225 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
89354eef | 22226 | |
22227 | # Sed expression to map a string onto a valid variable name. | |
f58aa3e1 | 22228 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
89354eef | 22229 | |
89354eef | 22230 | |
22231 | exec 6>&1 | |
22232 | ||
f58aa3e1 | 22233 | # Save the log message, to keep $[0] and so on meaningful, and to |
89354eef | 22234 | # report actual input values of CONFIG_FILES etc. instead of their |
f58aa3e1 | 22235 | # values after options handling. |
22236 | ac_log=" | |
89354eef | 22237 | This file was extended by libopm $as_me 0.1, which was |
f58aa3e1 | 22238 | generated by GNU Autoconf 2.60. Invocation command line was |
89354eef | 22239 | |
22240 | CONFIG_FILES = $CONFIG_FILES | |
22241 | CONFIG_HEADERS = $CONFIG_HEADERS | |
22242 | CONFIG_LINKS = $CONFIG_LINKS | |
22243 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
22244 | $ $0 $@ | |
22245 | ||
f58aa3e1 | 22246 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
22247 | " | |
22248 | ||
89354eef | 22249 | _ACEOF |
22250 | ||
f58aa3e1 | 22251 | cat >>$CONFIG_STATUS <<_ACEOF |
89354eef | 22252 | # Files that config.status was made for. |
f58aa3e1 | 22253 | config_files="$ac_config_files" |
22254 | config_headers="$ac_config_headers" | |
22255 | config_commands="$ac_config_commands" | |
89354eef | 22256 | |
f58aa3e1 | 22257 | _ACEOF |
89354eef | 22258 | |
22259 | cat >>$CONFIG_STATUS <<\_ACEOF | |
89354eef | 22260 | ac_cs_usage="\ |
22261 | \`$as_me' instantiates files from templates according to the | |
22262 | current configuration. | |
22263 | ||
22264 | Usage: $0 [OPTIONS] [FILE]... | |
22265 | ||
22266 | -h, --help print this help, then exit | |
22267 | -V, --version print version number, then exit | |
49ba971d | 22268 | -q, --quiet do not print progress messages |
89354eef | 22269 | -d, --debug don't remove temporary files |
22270 | --recheck update $as_me by reconfiguring in the same conditions | |
22271 | --file=FILE[:TEMPLATE] | |
f58aa3e1 | 22272 | instantiate the configuration file FILE |
89354eef | 22273 | --header=FILE[:TEMPLATE] |
f58aa3e1 | 22274 | instantiate the configuration header FILE |
89354eef | 22275 | |
22276 | Configuration files: | |
22277 | $config_files | |
22278 | ||
22279 | Configuration headers: | |
22280 | $config_headers | |
22281 | ||
22282 | Configuration commands: | |
22283 | $config_commands | |
22284 | ||
22285 | Report bugs to <bug-autoconf@gnu.org>." | |
89354eef | 22286 | |
f58aa3e1 | 22287 | _ACEOF |
89354eef | 22288 | cat >>$CONFIG_STATUS <<_ACEOF |
22289 | ac_cs_version="\\ | |
22290 | libopm config.status 0.1 | |
f58aa3e1 | 22291 | configured by $0, generated by GNU Autoconf 2.60, |
22292 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
89354eef | 22293 | |
f58aa3e1 | 22294 | Copyright (C) 2006 Free Software Foundation, Inc. |
89354eef | 22295 | This config.status script is free software; the Free Software Foundation |
22296 | gives unlimited permission to copy, distribute and modify it." | |
f58aa3e1 | 22297 | |
22298 | ac_pwd='$ac_pwd' | |
22299 | srcdir='$srcdir' | |
22300 | INSTALL='$INSTALL' | |
89354eef | 22301 | _ACEOF |
22302 | ||
22303 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22304 | # If no file are specified by the user, then we need to provide default | |
22305 | # value. By we need to know if files were specified by the user. | |
22306 | ac_need_defaults=: | |
22307 | while test $# != 0 | |
22308 | do | |
22309 | case $1 in | |
22310 | --*=*) | |
f58aa3e1 | 22311 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
22312 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
49ba971d | 22313 | ac_shift=: |
22314 | ;; | |
f58aa3e1 | 22315 | *) |
49ba971d | 22316 | ac_option=$1 |
22317 | ac_optarg=$2 | |
22318 | ac_shift=shift | |
89354eef | 22319 | ;; |
89354eef | 22320 | esac |
22321 | ||
49ba971d | 22322 | case $ac_option in |
89354eef | 22323 | # Handling of the options. |
49ba971d | 22324 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
22325 | ac_cs_recheck=: ;; | |
f58aa3e1 | 22326 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
22327 | echo "$ac_cs_version"; exit ;; | |
22328 | --debug | --debu | --deb | --de | --d | -d ) | |
89354eef | 22329 | debug=: ;; |
22330 | --file | --fil | --fi | --f ) | |
49ba971d | 22331 | $ac_shift |
22332 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
89354eef | 22333 | ac_need_defaults=false;; |
22334 | --header | --heade | --head | --hea ) | |
49ba971d | 22335 | $ac_shift |
22336 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
89354eef | 22337 | ac_need_defaults=false;; |
f58aa3e1 | 22338 | --he | --h) |
22339 | # Conflict between --help and --header | |
22340 | { echo "$as_me: error: ambiguous option: $1 | |
22341 | Try \`$0 --help' for more information." >&2 | |
22342 | { (exit 1); exit 1; }; };; | |
22343 | --help | --hel | -h ) | |
22344 | echo "$ac_cs_usage"; exit ;; | |
49ba971d | 22345 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
22346 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
22347 | ac_cs_silent=: ;; | |
89354eef | 22348 | |
22349 | # This is an error. | |
f58aa3e1 | 22350 | -*) { echo "$as_me: error: unrecognized option: $1 |
22351 | Try \`$0 --help' for more information." >&2 | |
89354eef | 22352 | { (exit 1); exit 1; }; } ;; |
22353 | ||
f58aa3e1 | 22354 | *) ac_config_targets="$ac_config_targets $1" |
22355 | ac_need_defaults=false ;; | |
89354eef | 22356 | |
22357 | esac | |
22358 | shift | |
22359 | done | |
22360 | ||
49ba971d | 22361 | ac_configure_extra_args= |
22362 | ||
22363 | if $ac_cs_silent; then | |
22364 | exec 6>/dev/null | |
22365 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
22366 | fi | |
22367 | ||
22368 | _ACEOF | |
22369 | cat >>$CONFIG_STATUS <<_ACEOF | |
22370 | if \$ac_cs_recheck; then | |
f58aa3e1 | 22371 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
22372 | CONFIG_SHELL=$SHELL | |
22373 | export CONFIG_SHELL | |
22374 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
49ba971d | 22375 | fi |
22376 | ||
89354eef | 22377 | _ACEOF |
f58aa3e1 | 22378 | cat >>$CONFIG_STATUS <<\_ACEOF |
22379 | exec 5>>config.log | |
22380 | { | |
22381 | echo | |
22382 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
22383 | ## Running $as_me. ## | |
22384 | _ASBOX | |
22385 | echo "$ac_log" | |
22386 | } >&5 | |
89354eef | 22387 | |
f58aa3e1 | 22388 | _ACEOF |
89354eef | 22389 | cat >>$CONFIG_STATUS <<_ACEOF |
22390 | # | |
f58aa3e1 | 22391 | # INIT-COMMANDS |
89354eef | 22392 | # |
89354eef | 22393 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
22394 | ||
22395 | _ACEOF | |
22396 | ||
89354eef | 22397 | cat >>$CONFIG_STATUS <<\_ACEOF |
f58aa3e1 | 22398 | |
22399 | # Handling of arguments. | |
89354eef | 22400 | for ac_config_target in $ac_config_targets |
22401 | do | |
f58aa3e1 | 22402 | case $ac_config_target in |
22403 | "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;; | |
22404 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
22405 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
22406 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
22407 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
22408 | "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; | |
22409 | ||
89354eef | 22410 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
22411 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
22412 | { (exit 1); exit 1; }; };; | |
22413 | esac | |
22414 | done | |
22415 | ||
f58aa3e1 | 22416 | |
89354eef | 22417 | # If the user did not use the arguments to specify the items to instantiate, |
22418 | # then the envvar interface is used. Set only those that are not. | |
22419 | # We use the long form for the default assignment because of an extremely | |
22420 | # bizarre bug on SunOS 4.1.3. | |
22421 | if $ac_need_defaults; then | |
22422 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
22423 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
22424 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
22425 | fi | |
22426 | ||
49ba971d | 22427 | # Have a temporary directory for convenience. Make it in the build tree |
f58aa3e1 | 22428 | # simply because there is no reason against having it here, and in addition, |
49ba971d | 22429 | # creating and moving files from /tmp can sometimes cause problems. |
f58aa3e1 | 22430 | # Hook for its removal unless debugging. |
22431 | # Note that there is a small window in which the directory will not be cleaned: | |
22432 | # after its creation but before its name has been assigned to `$tmp'. | |
89354eef | 22433 | $debug || |
22434 | { | |
f58aa3e1 | 22435 | tmp= |
22436 | trap 'exit_status=$? | |
22437 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
22438 | ' 0 | |
89354eef | 22439 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
22440 | } | |
89354eef | 22441 | # Create a (secure) tmp directory for tmp files. |
49ba971d | 22442 | |
89354eef | 22443 | { |
f58aa3e1 | 22444 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
89354eef | 22445 | test -n "$tmp" && test -d "$tmp" |
22446 | } || | |
22447 | { | |
f58aa3e1 | 22448 | tmp=./conf$$-$RANDOM |
22449 | (umask 077 && mkdir "$tmp") | |
89354eef | 22450 | } || |
22451 | { | |
49ba971d | 22452 | echo "$me: cannot create a temporary directory in ." >&2 |
89354eef | 22453 | { (exit 1); exit 1; } |
22454 | } | |
22455 | ||
89354eef | 22456 | # |
f58aa3e1 | 22457 | # Set up the sed scripts for CONFIG_FILES section. |
89354eef | 22458 | # |
22459 | ||
22460 | # No need to generate the scripts if there are no CONFIG_FILES. | |
22461 | # This happens for instance when ./config.status config.h | |
f58aa3e1 | 22462 | if test -n "$CONFIG_FILES"; then |
22463 | ||
22464 | _ACEOF | |
22465 | ||
22466 | ||
22467 | ||
22468 | ac_delim='%!_!# ' | |
22469 | for ac_last_try in false false false false false :; do | |
22470 | cat >conf$$subs.sed <<_ACEOF | |
22471 | SHELL!$SHELL$ac_delim | |
22472 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
22473 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
22474 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
22475 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
22476 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
22477 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
22478 | exec_prefix!$exec_prefix$ac_delim | |
22479 | prefix!$prefix$ac_delim | |
22480 | program_transform_name!$program_transform_name$ac_delim | |
22481 | bindir!$bindir$ac_delim | |
22482 | sbindir!$sbindir$ac_delim | |
22483 | libexecdir!$libexecdir$ac_delim | |
22484 | datarootdir!$datarootdir$ac_delim | |
22485 | datadir!$datadir$ac_delim | |
22486 | sysconfdir!$sysconfdir$ac_delim | |
22487 | sharedstatedir!$sharedstatedir$ac_delim | |
22488 | localstatedir!$localstatedir$ac_delim | |
22489 | includedir!$includedir$ac_delim | |
22490 | oldincludedir!$oldincludedir$ac_delim | |
22491 | docdir!$docdir$ac_delim | |
22492 | infodir!$infodir$ac_delim | |
22493 | htmldir!$htmldir$ac_delim | |
22494 | dvidir!$dvidir$ac_delim | |
22495 | pdfdir!$pdfdir$ac_delim | |
22496 | psdir!$psdir$ac_delim | |
22497 | libdir!$libdir$ac_delim | |
22498 | localedir!$localedir$ac_delim | |
22499 | mandir!$mandir$ac_delim | |
22500 | DEFS!$DEFS$ac_delim | |
22501 | ECHO_C!$ECHO_C$ac_delim | |
22502 | ECHO_N!$ECHO_N$ac_delim | |
22503 | ECHO_T!$ECHO_T$ac_delim | |
22504 | LIBS!$LIBS$ac_delim | |
22505 | build_alias!$build_alias$ac_delim | |
22506 | host_alias!$host_alias$ac_delim | |
22507 | target_alias!$target_alias$ac_delim | |
22508 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
22509 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
22510 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
22511 | CYGPATH_W!$CYGPATH_W$ac_delim | |
22512 | PACKAGE!$PACKAGE$ac_delim | |
22513 | VERSION!$VERSION$ac_delim | |
22514 | ACLOCAL!$ACLOCAL$ac_delim | |
22515 | AUTOCONF!$AUTOCONF$ac_delim | |
22516 | AUTOMAKE!$AUTOMAKE$ac_delim | |
22517 | AUTOHEADER!$AUTOHEADER$ac_delim | |
22518 | MAKEINFO!$MAKEINFO$ac_delim | |
22519 | install_sh!$install_sh$ac_delim | |
22520 | STRIP!$STRIP$ac_delim | |
22521 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | |
22522 | mkdir_p!$mkdir_p$ac_delim | |
22523 | AWK!$AWK$ac_delim | |
22524 | SET_MAKE!$SET_MAKE$ac_delim | |
22525 | am__leading_dot!$am__leading_dot$ac_delim | |
22526 | AMTAR!$AMTAR$ac_delim | |
22527 | am__tar!$am__tar$ac_delim | |
22528 | am__untar!$am__untar$ac_delim | |
22529 | MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim | |
22530 | MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim | |
22531 | MAINT!$MAINT$ac_delim | |
22532 | DOX_DIR_HTML!$DOX_DIR_HTML$ac_delim | |
22533 | DOX_DIR_LATEX!$DOX_DIR_LATEX$ac_delim | |
22534 | DOX_DIR_MAN!$DOX_DIR_MAN$ac_delim | |
22535 | CC!$CC$ac_delim | |
22536 | CFLAGS!$CFLAGS$ac_delim | |
22537 | LDFLAGS!$LDFLAGS$ac_delim | |
22538 | CPPFLAGS!$CPPFLAGS$ac_delim | |
22539 | ac_ct_CC!$ac_ct_CC$ac_delim | |
22540 | EXEEXT!$EXEEXT$ac_delim | |
22541 | OBJEXT!$OBJEXT$ac_delim | |
22542 | DEPDIR!$DEPDIR$ac_delim | |
22543 | am__include!$am__include$ac_delim | |
22544 | am__quote!$am__quote$ac_delim | |
22545 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim | |
22546 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim | |
22547 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | |
22548 | CCDEPMODE!$CCDEPMODE$ac_delim | |
22549 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | |
22550 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | |
22551 | build!$build$ac_delim | |
22552 | build_cpu!$build_cpu$ac_delim | |
22553 | build_vendor!$build_vendor$ac_delim | |
22554 | build_os!$build_os$ac_delim | |
22555 | host!$host$ac_delim | |
22556 | host_cpu!$host_cpu$ac_delim | |
22557 | host_vendor!$host_vendor$ac_delim | |
22558 | host_os!$host_os$ac_delim | |
22559 | GREP!$GREP$ac_delim | |
22560 | EGREP!$EGREP$ac_delim | |
22561 | LN_S!$LN_S$ac_delim | |
22562 | ECHO!$ECHO$ac_delim | |
22563 | AR!$AR$ac_delim | |
22564 | RANLIB!$RANLIB$ac_delim | |
22565 | CPP!$CPP$ac_delim | |
22566 | CXX!$CXX$ac_delim | |
22567 | CXXFLAGS!$CXXFLAGS$ac_delim | |
22568 | _ACEOF | |
22569 | ||
22570 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
22571 | break | |
22572 | elif $ac_last_try; then | |
22573 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
22574 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
22575 | { (exit 1); exit 1; }; } | |
22576 | else | |
22577 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
89354eef | 22578 | fi |
f58aa3e1 | 22579 | done |
22580 | ||
22581 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
22582 | if test -n "$ac_eof"; then | |
22583 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
22584 | ac_eof=`expr $ac_eof + 1` | |
22585 | fi | |
22586 | ||
22587 | cat >>$CONFIG_STATUS <<_ACEOF | |
22588 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
22589 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
22590 | _ACEOF | |
22591 | sed ' | |
22592 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
22593 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
22594 | :n | |
22595 | t n | |
22596 | s/'"$ac_delim"'$/,g/; t | |
22597 | s/$/\\/; p | |
22598 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
22599 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
22600 | rm -f conf$$subs.sed | |
22601 | cat >>$CONFIG_STATUS <<_ACEOF | |
22602 | CEOF$ac_eof | |
22603 | _ACEOF | |
22604 | ||
22605 | ||
22606 | ac_delim='%!_!# ' | |
22607 | for ac_last_try in false false false false false :; do | |
22608 | cat >conf$$subs.sed <<_ACEOF | |
22609 | ac_ct_CXX!$ac_ct_CXX$ac_delim | |
22610 | CXXDEPMODE!$CXXDEPMODE$ac_delim | |
22611 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim | |
22612 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim | |
22613 | CXXCPP!$CXXCPP$ac_delim | |
22614 | F77!$F77$ac_delim | |
22615 | FFLAGS!$FFLAGS$ac_delim | |
22616 | ac_ct_F77!$ac_ct_F77$ac_delim | |
22617 | LIBTOOL!$LIBTOOL$ac_delim | |
22618 | LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim | |
22619 | ETR_SOCKET_LIBS!$ETR_SOCKET_LIBS$ac_delim | |
22620 | LIBOBJS!$LIBOBJS$ac_delim | |
22621 | LSOCKET!$LSOCKET$ac_delim | |
22622 | LNSL!$LNSL$ac_delim | |
22623 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
22624 | _ACEOF | |
22625 | ||
22626 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then | |
22627 | break | |
22628 | elif $ac_last_try; then | |
22629 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
22630 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
22631 | { (exit 1); exit 1; }; } | |
22632 | else | |
22633 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
22634 | fi | |
22635 | done | |
89354eef | 22636 | |
f58aa3e1 | 22637 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
22638 | if test -n "$ac_eof"; then | |
22639 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
22640 | ac_eof=`expr $ac_eof + 1` | |
22641 | fi | |
22642 | ||
22643 | cat >>$CONFIG_STATUS <<_ACEOF | |
22644 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
22645 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
22646 | _ACEOF | |
22647 | sed ' | |
22648 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
22649 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
22650 | :n | |
22651 | t n | |
22652 | s/'"$ac_delim"'$/,g/; t | |
22653 | s/$/\\/; p | |
22654 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
22655 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
22656 | rm -f conf$$subs.sed | |
22657 | cat >>$CONFIG_STATUS <<_ACEOF | |
22658 | :end | |
22659 | s/|#_!!_#|//g | |
22660 | CEOF$ac_eof | |
89354eef | 22661 | _ACEOF |
f58aa3e1 | 22662 | |
22663 | ||
22664 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
22665 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
22666 | # trailing colons and then remove the whole line if VPATH becomes empty | |
22667 | # (actually we leave an empty line to preserve line numbers). | |
22668 | if test "x$srcdir" = x.; then | |
22669 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
22670 | s/:*\$(srcdir):*/:/ | |
22671 | s/:*\${srcdir}:*/:/ | |
22672 | s/:*@srcdir@:*/:/ | |
22673 | s/^\([^=]*=[ ]*\):*/\1/ | |
22674 | s/:*$// | |
22675 | s/^[^=]*=[ ]*$// | |
22676 | }' | |
22677 | fi | |
22678 | ||
89354eef | 22679 | cat >>$CONFIG_STATUS <<\_ACEOF |
f58aa3e1 | 22680 | fi # test -n "$CONFIG_FILES" |
22681 | ||
22682 | ||
22683 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | |
22684 | do | |
22685 | case $ac_tag in | |
22686 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
22687 | esac | |
22688 | case $ac_mode$ac_tag in | |
22689 | :[FHL]*:*);; | |
22690 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
22691 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
22692 | { (exit 1); exit 1; }; };; | |
22693 | :[FH]-) ac_tag=-:-;; | |
22694 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
22695 | esac | |
22696 | ac_save_IFS=$IFS | |
22697 | IFS=: | |
22698 | set x $ac_tag | |
22699 | IFS=$ac_save_IFS | |
22700 | shift | |
22701 | ac_file=$1 | |
22702 | shift | |
22703 | ||
22704 | case $ac_mode in | |
22705 | :L) ac_source=$1;; | |
22706 | :[FH]) | |
22707 | ac_file_inputs= | |
22708 | for ac_f | |
22709 | do | |
22710 | case $ac_f in | |
22711 | -) ac_f="$tmp/stdin";; | |
22712 | *) # Look for the file first in the build tree, then in the source tree | |
22713 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
22714 | # because $ac_f cannot contain `:'. | |
22715 | test -f "$ac_f" || | |
22716 | case $ac_f in | |
22717 | [\\/$]*) false;; | |
22718 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
22719 | esac || | |
22720 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
22721 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
22722 | { (exit 1); exit 1; }; };; | |
22723 | esac | |
22724 | ac_file_inputs="$ac_file_inputs $ac_f" | |
22725 | done | |
22726 | ||
22727 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22728 | # use $as_me), people would be surprised to read: | |
22729 | # /* config.h. Generated by config.status. */ | |
22730 | configure_input="Generated from "`IFS=: | |
22731 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
22732 | if test x"$ac_file" != x-; then | |
22733 | configure_input="$ac_file. $configure_input" | |
22734 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
22735 | echo "$as_me: creating $ac_file" >&6;} | |
22736 | fi | |
22737 | ||
22738 | case $ac_tag in | |
22739 | *:-:* | *:-) cat >"$tmp/stdin";; | |
22740 | esac | |
22741 | ;; | |
89354eef | 22742 | esac |
22743 | ||
f58aa3e1 | 22744 | ac_dir=`$as_dirname -- "$ac_file" || |
89354eef | 22745 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
f58aa3e1 | 22746 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
22747 | X"$ac_file" : 'X\(//\)$' \| \ | |
22748 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
89354eef | 22749 | echo X"$ac_file" | |
f58aa3e1 | 22750 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
22751 | s//\1/ | |
22752 | q | |
22753 | } | |
22754 | /^X\(\/\/\)[^/].*/{ | |
22755 | s//\1/ | |
22756 | q | |
22757 | } | |
22758 | /^X\(\/\/\)$/{ | |
22759 | s//\1/ | |
22760 | q | |
22761 | } | |
22762 | /^X\(\/\).*/{ | |
22763 | s//\1/ | |
22764 | q | |
22765 | } | |
22766 | s/.*/./; q'` | |
22767 | { as_dir="$ac_dir" | |
22768 | case $as_dir in #( | |
22769 | -*) as_dir=./$as_dir;; | |
22770 | esac | |
22771 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
49ba971d | 22772 | as_dirs= |
f58aa3e1 | 22773 | while :; do |
22774 | case $as_dir in #( | |
22775 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
22776 | *) as_qdir=$as_dir;; | |
22777 | esac | |
22778 | as_dirs="'$as_qdir' $as_dirs" | |
22779 | as_dir=`$as_dirname -- "$as_dir" || | |
49ba971d | 22780 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
f58aa3e1 | 22781 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
22782 | X"$as_dir" : 'X\(//\)$' \| \ | |
22783 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
49ba971d | 22784 | echo X"$as_dir" | |
f58aa3e1 | 22785 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
22786 | s//\1/ | |
22787 | q | |
22788 | } | |
22789 | /^X\(\/\/\)[^/].*/{ | |
22790 | s//\1/ | |
22791 | q | |
22792 | } | |
22793 | /^X\(\/\/\)$/{ | |
22794 | s//\1/ | |
22795 | q | |
22796 | } | |
22797 | /^X\(\/\).*/{ | |
22798 | s//\1/ | |
22799 | q | |
22800 | } | |
22801 | s/.*/./; q'` | |
22802 | test -d "$as_dir" && break | |
49ba971d | 22803 | done |
f58aa3e1 | 22804 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
22805 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
22806 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
49ba971d | 22807 | { (exit 1); exit 1; }; }; } |
89354eef | 22808 | ac_builddir=. |
22809 | ||
f58aa3e1 | 22810 | case "$ac_dir" in |
22811 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
22812 | *) | |
89354eef | 22813 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
f58aa3e1 | 22814 | # A ".." for each directory in $ac_dir_suffix. |
22815 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
22816 | case $ac_top_builddir_sub in | |
22817 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
22818 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
22819 | esac ;; | |
22820 | esac | |
22821 | ac_abs_top_builddir=$ac_pwd | |
22822 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
22823 | # for backward compatibility: | |
22824 | ac_top_builddir=$ac_top_build_prefix | |
89354eef | 22825 | |
22826 | case $srcdir in | |
f58aa3e1 | 22827 | .) # We are building in place. |
89354eef | 22828 | ac_srcdir=. |
f58aa3e1 | 22829 | ac_top_srcdir=$ac_top_builddir_sub |
22830 | ac_abs_top_srcdir=$ac_pwd ;; | |
22831 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
89354eef | 22832 | ac_srcdir=$srcdir$ac_dir_suffix; |
f58aa3e1 | 22833 | ac_top_srcdir=$srcdir |
22834 | ac_abs_top_srcdir=$srcdir ;; | |
22835 | *) # Relative name. | |
22836 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
22837 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
22838 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
89354eef | 22839 | esac |
f58aa3e1 | 22840 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
22841 | ||
89354eef | 22842 | |
f58aa3e1 | 22843 | case $ac_mode in |
22844 | :F) | |
22845 | # | |
22846 | # CONFIG_FILE | |
22847 | # | |
89354eef | 22848 | |
22849 | case $INSTALL in | |
22850 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
f58aa3e1 | 22851 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
89354eef | 22852 | esac |
f58aa3e1 | 22853 | _ACEOF |
89354eef | 22854 | |
f58aa3e1 | 22855 | cat >>$CONFIG_STATUS <<\_ACEOF |
22856 | # If the template does not know about datarootdir, expand it. | |
22857 | # FIXME: This hack should be removed a few years after 2.60. | |
22858 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
22859 | ||
22860 | case `sed -n '/datarootdir/ { | |
22861 | p | |
22862 | q | |
22863 | } | |
22864 | /@datadir@/p | |
22865 | /@docdir@/p | |
22866 | /@infodir@/p | |
22867 | /@localedir@/p | |
22868 | /@mandir@/p | |
22869 | ' $ac_file_inputs` in | |
22870 | *datarootdir*) ac_datarootdir_seen=yes;; | |
22871 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
22872 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
22873 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
89354eef | 22874 | _ACEOF |
f58aa3e1 | 22875 | cat >>$CONFIG_STATUS <<_ACEOF |
22876 | ac_datarootdir_hack=' | |
22877 | s&@datadir@&$datadir&g | |
22878 | s&@docdir@&$docdir&g | |
22879 | s&@infodir@&$infodir&g | |
22880 | s&@localedir@&$localedir&g | |
22881 | s&@mandir@&$mandir&g | |
22882 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
22883 | esac | |
22884 | _ACEOF | |
22885 | ||
22886 | # Neutralize VPATH when `$srcdir' = `.'. | |
22887 | # Shell code in configure.ac might set extrasub. | |
22888 | # FIXME: do we really want to maintain this feature? | |
89354eef | 22889 | cat >>$CONFIG_STATUS <<_ACEOF |
22890 | sed "$ac_vpsub | |
22891 | $extrasub | |
22892 | _ACEOF | |
22893 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22894 | :t | |
22895 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
f58aa3e1 | 22896 | s&@configure_input@&$configure_input&;t t |
22897 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
22898 | s&@srcdir@&$ac_srcdir&;t t | |
22899 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
22900 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
22901 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
22902 | s&@builddir@&$ac_builddir&;t t | |
22903 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
22904 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
22905 | s&@INSTALL@&$ac_INSTALL&;t t | |
22906 | $ac_datarootdir_hack | |
22907 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | |
22908 | ||
22909 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22910 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
22911 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
22912 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
22913 | which seems to be undefined. Please make sure it is defined." >&5 | |
22914 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
22915 | which seems to be undefined. Please make sure it is defined." >&2;} | |
22916 | ||
22917 | rm -f "$tmp/stdin" | |
89354eef | 22918 | case $ac_file in |
f58aa3e1 | 22919 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
22920 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
89354eef | 22921 | esac |
f58aa3e1 | 22922 | ;; |
22923 | :H) | |
22924 | # | |
22925 | # CONFIG_HEADER | |
22926 | # | |
22927 | _ACEOF | |
89354eef | 22928 | |
f58aa3e1 | 22929 | # Transform confdefs.h into a sed script `conftest.defines', that |
22930 | # substitutes the proper values into config.h.in to produce config.h. | |
22931 | rm -f conftest.defines conftest.tail | |
22932 | # First, append a space to every undef/define line, to ease matching. | |
22933 | echo 's/$/ /' >conftest.defines | |
22934 | # Then, protect against being on the right side of a sed subst, or in | |
22935 | # an unquoted here document, in config.status. If some macros were | |
22936 | # called several times there might be several #defines for the same | |
22937 | # symbol, which is useless. But do not sort them, since the last | |
22938 | # AC_DEFINE must be honored. | |
22939 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
22940 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
22941 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
22942 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
22943 | # just an empty string. | |
22944 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
22945 | ac_dB='\\)[ (].*,\\1define\\2' | |
22946 | ac_dC=' ' | |
22947 | ac_dD=' ,' | |
22948 | ||
22949 | uniq confdefs.h | | |
22950 | sed -n ' | |
22951 | t rset | |
22952 | :rset | |
22953 | s/^[ ]*#[ ]*define[ ][ ]*// | |
22954 | t ok | |
22955 | d | |
22956 | :ok | |
22957 | s/[\\&,]/\\&/g | |
22958 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
22959 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
22960 | ' >>conftest.defines | |
22961 | ||
22962 | # Remove the space that was appended to ease matching. | |
22963 | # Then replace #undef with comments. This is necessary, for | |
89354eef | 22964 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
22965 | # on some systems where configure will not decide to define it. | |
f58aa3e1 | 22966 | # (The regexp can be short, since the line contains either #define or #undef.) |
22967 | echo 's/ $// | |
22968 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
22969 | ||
22970 | # Break up conftest.defines: | |
22971 | ac_max_sed_lines=50 | |
22972 | ||
22973 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
22974 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
22975 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
22976 | # et cetera. | |
22977 | ac_in='$ac_file_inputs' | |
22978 | ac_out='"$tmp/out1"' | |
22979 | ac_nxt='"$tmp/out2"' | |
22980 | ||
22981 | while : | |
89354eef | 22982 | do |
f58aa3e1 | 22983 | # Write a here document: |
22984 | cat >>$CONFIG_STATUS <<_ACEOF | |
22985 | # First, check the format of the line: | |
22986 | cat >"\$tmp/defines.sed" <<\\CEOF | |
22987 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
22988 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
22989 | b | |
22990 | :def | |
22991 | _ACEOF | |
22992 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
89354eef | 22993 | echo 'CEOF |
f58aa3e1 | 22994 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
22995 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
22996 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
22997 | grep . conftest.tail >/dev/null || break | |
89354eef | 22998 | rm -f conftest.defines |
22999 | mv conftest.tail conftest.defines | |
23000 | done | |
f58aa3e1 | 23001 | rm -f conftest.defines conftest.tail |
89354eef | 23002 | |
f58aa3e1 | 23003 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
89354eef | 23004 | cat >>$CONFIG_STATUS <<\_ACEOF |
89354eef | 23005 | if test x"$ac_file" != x-; then |
f58aa3e1 | 23006 | echo "/* $configure_input */" >"$tmp/config.h" |
23007 | cat "$ac_result" >>"$tmp/config.h" | |
23008 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
89354eef | 23009 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
23010 | echo "$as_me: $ac_file is unchanged" >&6;} | |
23011 | else | |
89354eef | 23012 | rm -f $ac_file |
f58aa3e1 | 23013 | mv "$tmp/config.h" $ac_file |
89354eef | 23014 | fi |
23015 | else | |
f58aa3e1 | 23016 | echo "/* $configure_input */" |
23017 | cat "$ac_result" | |
89354eef | 23018 | fi |
f58aa3e1 | 23019 | rm -f "$tmp/out12" |
23020 | # Compute $ac_file's index in $config_headers. | |
23021 | _am_stamp_count=1 | |
23022 | for _am_header in $config_headers :; do | |
23023 | case $_am_header in | |
23024 | $ac_file | $ac_file:* ) | |
23025 | break ;; | |
23026 | * ) | |
23027 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
89354eef | 23028 | esac |
23029 | done | |
f58aa3e1 | 23030 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
23031 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23032 | X$ac_file : 'X\(//\)[^/]' \| \ | |
23033 | X$ac_file : 'X\(//\)$' \| \ | |
23034 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || | |
23035 | echo X$ac_file | | |
23036 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23037 | s//\1/ | |
23038 | q | |
23039 | } | |
23040 | /^X\(\/\/\)[^/].*/{ | |
23041 | s//\1/ | |
23042 | q | |
23043 | } | |
23044 | /^X\(\/\/\)$/{ | |
23045 | s//\1/ | |
23046 | q | |
23047 | } | |
23048 | /^X\(\/\).*/{ | |
23049 | s//\1/ | |
23050 | q | |
23051 | } | |
23052 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
23053 | ;; | |
89354eef | 23054 | |
f58aa3e1 | 23055 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
23056 | echo "$as_me: executing $ac_file commands" >&6;} | |
23057 | ;; | |
23058 | esac | |
89354eef | 23059 | |
89354eef | 23060 | |
f58aa3e1 | 23061 | case $ac_file$ac_mode in |
23062 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
89354eef | 23063 | # Strip MF so we end up with the name of the file. |
23064 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
23065 | # Check whether this is an Automake generated Makefile or not. | |
23066 | # We used to match only the files named `Makefile.in', but | |
23067 | # some people rename them; so instead we look at the file content. | |
23068 | # Grep'ing the first line is not enough: some people post-process | |
23069 | # each Makefile.in and add a new line on top of each file to say so. | |
23070 | # So let's grep whole file. | |
23071 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
f58aa3e1 | 23072 | dirpart=`$as_dirname -- "$mf" || |
89354eef | 23073 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
f58aa3e1 | 23074 | X"$mf" : 'X\(//\)[^/]' \| \ |
23075 | X"$mf" : 'X\(//\)$' \| \ | |
23076 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
89354eef | 23077 | echo X"$mf" | |
f58aa3e1 | 23078 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
23079 | s//\1/ | |
23080 | q | |
23081 | } | |
23082 | /^X\(\/\/\)[^/].*/{ | |
23083 | s//\1/ | |
23084 | q | |
23085 | } | |
23086 | /^X\(\/\/\)$/{ | |
23087 | s//\1/ | |
23088 | q | |
23089 | } | |
23090 | /^X\(\/\).*/{ | |
23091 | s//\1/ | |
23092 | q | |
23093 | } | |
23094 | s/.*/./; q'` | |
89354eef | 23095 | else |
23096 | continue | |
23097 | fi | |
f58aa3e1 | 23098 | # Extract the definition of DEPDIR, am__include, and am__quote |
23099 | # from the Makefile without running `make'. | |
23100 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
89354eef | 23101 | test -z "$DEPDIR" && continue |
f58aa3e1 | 23102 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
23103 | test -z "am__include" && continue | |
23104 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
89354eef | 23105 | # When using ansi2knr, U may be empty or an underscore; expand it |
f58aa3e1 | 23106 | U=`sed -n 's/^U = //p' < "$mf"` |
23107 | # Find all dependency output files, they are included files with | |
23108 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
23109 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
23110 | # expansion. | |
23111 | for file in `sed -n " | |
23112 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
89354eef | 23113 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
23114 | # Make sure the directory exists. | |
23115 | test -f "$dirpart/$file" && continue | |
f58aa3e1 | 23116 | fdir=`$as_dirname -- "$file" || |
89354eef | 23117 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
f58aa3e1 | 23118 | X"$file" : 'X\(//\)[^/]' \| \ |
23119 | X"$file" : 'X\(//\)$' \| \ | |
23120 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
89354eef | 23121 | echo X"$file" | |
f58aa3e1 | 23122 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
23123 | s//\1/ | |
23124 | q | |
23125 | } | |
23126 | /^X\(\/\/\)[^/].*/{ | |
23127 | s//\1/ | |
23128 | q | |
23129 | } | |
23130 | /^X\(\/\/\)$/{ | |
23131 | s//\1/ | |
23132 | q | |
23133 | } | |
23134 | /^X\(\/\).*/{ | |
23135 | s//\1/ | |
23136 | q | |
23137 | } | |
23138 | s/.*/./; q'` | |
23139 | { as_dir=$dirpart/$fdir | |
23140 | case $as_dir in #( | |
23141 | -*) as_dir=./$as_dir;; | |
23142 | esac | |
23143 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
49ba971d | 23144 | as_dirs= |
f58aa3e1 | 23145 | while :; do |
23146 | case $as_dir in #( | |
23147 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
23148 | *) as_qdir=$as_dir;; | |
23149 | esac | |
23150 | as_dirs="'$as_qdir' $as_dirs" | |
23151 | as_dir=`$as_dirname -- "$as_dir" || | |
49ba971d | 23152 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
f58aa3e1 | 23153 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
23154 | X"$as_dir" : 'X\(//\)$' \| \ | |
23155 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
49ba971d | 23156 | echo X"$as_dir" | |
f58aa3e1 | 23157 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
23158 | s//\1/ | |
23159 | q | |
23160 | } | |
23161 | /^X\(\/\/\)[^/].*/{ | |
23162 | s//\1/ | |
23163 | q | |
23164 | } | |
23165 | /^X\(\/\/\)$/{ | |
23166 | s//\1/ | |
23167 | q | |
23168 | } | |
23169 | /^X\(\/\).*/{ | |
23170 | s//\1/ | |
23171 | q | |
23172 | } | |
23173 | s/.*/./; q'` | |
23174 | test -d "$as_dir" && break | |
49ba971d | 23175 | done |
f58aa3e1 | 23176 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
23177 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
23178 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
49ba971d | 23179 | { (exit 1); exit 1; }; }; } |
89354eef | 23180 | # echo "creating $dirpart/$file" |
23181 | echo '# dummy' > "$dirpart/$file" | |
23182 | done | |
23183 | done | |
23184 | ;; | |
f58aa3e1 | 23185 | |
89354eef | 23186 | esac |
f58aa3e1 | 23187 | done # for ac_tag |
89354eef | 23188 | |
89354eef | 23189 | |
23190 | { (exit 0); exit 0; } | |
23191 | _ACEOF | |
23192 | chmod +x $CONFIG_STATUS | |
23193 | ac_clean_files=$ac_clean_files_save | |
23194 | ||
23195 | ||
23196 | # configure is writing to config.log, and then calls config.status. | |
23197 | # config.status does its own redirection, appending to config.log. | |
23198 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
23199 | # by configure, so config.status won't be able to write to it; its | |
23200 | # output is simply discarded. So we exec the FD to /dev/null, | |
23201 | # effectively closing config.log, so it can be properly (re)opened and | |
23202 | # appended to by config.status. When coming back to configure, we | |
23203 | # need to make the FD available again. | |
23204 | if test "$no_create" != yes; then | |
23205 | ac_cs_success=: | |
49ba971d | 23206 | ac_config_status_args= |
23207 | test "$silent" = yes && | |
23208 | ac_config_status_args="$ac_config_status_args --quiet" | |
89354eef | 23209 | exec 5>/dev/null |
49ba971d | 23210 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
89354eef | 23211 | exec 5>>config.log |
23212 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
23213 | # would make configure fail if this is the last instruction. | |
23214 | $ac_cs_success || { (exit 1); exit 1; } | |
23215 | fi | |
23216 | ||
23217 | ||
23218 | echo "##############################################################################" | |
23219 | echo "Everything is now configured. To compile libopm now, just type make. It" | |
23220 | echo "requires GNU Make, which may be installed as gmake on your system." | |
23221 | echo | |
23222 | echo "libopm will be installed in ${prefix}. To change this, run:" | |
23223 | echo " ./configure --prefix=DIRECTORY" | |
23224 | echo | |
23225 | echo "##############################################################################" | |
23226 | echo |