]>
Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.61 for LibTIFF Software 3.8.2. | |
4 | # | |
5 | # Report bugs to <tiff@lists.maptools.org>. | |
6 | # | |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
15 | # Be more Bourne compatible | |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | setopt NO_GLOB_SUBST | |
24 | else | |
25 | case `(set -o) 2>/dev/null` in | |
26 | *posix*) set -o posix ;; | |
27 | esac | |
28 | ||
29 | fi | |
30 | ||
31 | ||
32 | ||
33 | ||
34 | # PATH needs CR | |
35 | # Avoid depending upon Character Ranges. | |
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
39 | as_cr_digits='0123456789' | |
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41 | ||
42 | # The user is always right. | |
43 | if test "${PATH_SEPARATOR+set}" != set; then | |
44 | echo "#! /bin/sh" >conf$$.sh | |
45 | echo "exit 0" >>conf$$.sh | |
46 | chmod +x conf$$.sh | |
47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
48 | PATH_SEPARATOR=';' | |
49 | else | |
50 | PATH_SEPARATOR=: | |
51 | fi | |
52 | rm -f conf$$.sh | |
53 | fi | |
54 | ||
55 | # Support unset when possible. | |
56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
57 | as_unset=unset | |
58 | else | |
59 | as_unset=false | |
60 | fi | |
61 | ||
62 | ||
63 | # IFS | |
64 | # We need space, tab and new line, in precisely that order. Quoting is | |
65 | # there to prevent editors from complaining about space-tab. | |
66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
67 | # splitting by setting IFS to empty value.) | |
68 | as_nl=' | |
69 | ' | |
70 | IFS=" "" $as_nl" | |
71 | ||
72 | # Find who we are. Look in the path if we contain no directory separator. | |
73 | case $0 in | |
74 | *[\\/]* ) as_myself=$0 ;; | |
75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
76 | for as_dir in $PATH | |
77 | do | |
78 | IFS=$as_save_IFS | |
79 | test -z "$as_dir" && as_dir=. | |
80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
81 | done | |
82 | IFS=$as_save_IFS | |
83 | ||
84 | ;; | |
85 | esac | |
86 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
87 | # in which case we are not to be found in the path. | |
88 | if test "x$as_myself" = x; then | |
89 | as_myself=$0 | |
90 | fi | |
91 | if test ! -f "$as_myself"; then | |
92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
93 | { (exit 1); exit 1; } | |
94 | fi | |
95 | ||
96 | # Work around bugs in pre-3.0 UWIN ksh. | |
97 | for as_var in ENV MAIL MAILPATH | |
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
99 | done | |
100 | PS1='$ ' | |
101 | PS2='> ' | |
102 | PS4='+ ' | |
103 | ||
104 | # NLS nuisances. | |
105 | for as_var in \ | |
106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
108 | LC_TELEPHONE LC_TIME | |
109 | do | |
110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
111 | eval $as_var=C; export $as_var | |
112 | else | |
113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
114 | fi | |
115 | done | |
116 | ||
117 | # Required to use basename. | |
118 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
120 | as_expr=expr | |
121 | else | |
122 | as_expr=false | |
123 | fi | |
124 | ||
125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
126 | as_basename=basename | |
127 | else | |
128 | as_basename=false | |
129 | fi | |
130 | ||
131 | ||
132 | # Name of the executable. | |
133 | as_me=`$as_basename -- "$0" || | |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
135 | X"$0" : 'X\(//\)$' \| \ | |
136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
137 | echo X/"$0" | | |
138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
139 | s//\1/ | |
140 | q | |
141 | } | |
142 | /^X\/\(\/\/\)$/{ | |
143 | s//\1/ | |
144 | q | |
145 | } | |
146 | /^X\/\(\/\).*/{ | |
147 | s//\1/ | |
148 | q | |
149 | } | |
150 | s/.*/./; q'` | |
151 | ||
152 | # CDPATH. | |
153 | $as_unset CDPATH | |
154 | ||
155 | ||
156 | if test "x$CONFIG_SHELL" = x; then | |
157 | if (eval ":") 2>/dev/null; then | |
158 | as_have_required=yes | |
159 | else | |
160 | as_have_required=no | |
161 | fi | |
162 | ||
163 | if test $as_have_required = yes && (eval ": | |
164 | (as_func_return () { | |
165 | (exit \$1) | |
166 | } | |
167 | as_func_success () { | |
168 | as_func_return 0 | |
169 | } | |
170 | as_func_failure () { | |
171 | as_func_return 1 | |
172 | } | |
173 | as_func_ret_success () { | |
174 | return 0 | |
175 | } | |
176 | as_func_ret_failure () { | |
177 | return 1 | |
178 | } | |
179 | ||
180 | exitcode=0 | |
181 | if as_func_success; then | |
182 | : | |
183 | else | |
184 | exitcode=1 | |
185 | echo as_func_success failed. | |
186 | fi | |
187 | ||
188 | if as_func_failure; then | |
189 | exitcode=1 | |
190 | echo as_func_failure succeeded. | |
191 | fi | |
192 | ||
193 | if as_func_ret_success; then | |
194 | : | |
195 | else | |
196 | exitcode=1 | |
197 | echo as_func_ret_success failed. | |
198 | fi | |
199 | ||
200 | if as_func_ret_failure; then | |
201 | exitcode=1 | |
202 | echo as_func_ret_failure succeeded. | |
203 | fi | |
204 | ||
205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
206 | : | |
207 | else | |
208 | exitcode=1 | |
209 | echo positional parameters were not saved. | |
210 | fi | |
211 | ||
212 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
213 | ||
214 | ( | |
215 | as_lineno_1=\$LINENO | |
216 | as_lineno_2=\$LINENO | |
217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
219 | ") 2> /dev/null; then | |
220 | : | |
221 | else | |
222 | as_candidate_shells= | |
223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
225 | do | |
226 | IFS=$as_save_IFS | |
227 | test -z "$as_dir" && as_dir=. | |
228 | case $as_dir in | |
229 | /*) | |
230 | for as_base in sh bash ksh sh5; do | |
231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
232 | done;; | |
233 | esac | |
234 | done | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | for as_shell in $as_candidate_shells $SHELL; do | |
239 | # Try only shells that exist, to save several forks. | |
240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
241 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
243 | emulate sh | |
244 | NULLCMD=: | |
245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
246 | # is contrary to our usage. Disable this feature. | |
247 | alias -g '${1+"$@"}'='"$@"' | |
248 | setopt NO_GLOB_SUBST | |
249 | else | |
250 | case `(set -o) 2>/dev/null` in | |
251 | *posix*) set -o posix ;; | |
252 | esac | |
253 | ||
254 | fi | |
255 | ||
256 | ||
257 | : | |
258 | _ASEOF | |
259 | }; then | |
260 | CONFIG_SHELL=$as_shell | |
261 | as_have_required=yes | |
262 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
264 | emulate sh | |
265 | NULLCMD=: | |
266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
267 | # is contrary to our usage. Disable this feature. | |
268 | alias -g '${1+"$@"}'='"$@"' | |
269 | setopt NO_GLOB_SUBST | |
270 | else | |
271 | case `(set -o) 2>/dev/null` in | |
272 | *posix*) set -o posix ;; | |
273 | esac | |
274 | ||
275 | fi | |
276 | ||
277 | ||
278 | : | |
279 | (as_func_return () { | |
280 | (exit $1) | |
281 | } | |
282 | as_func_success () { | |
283 | as_func_return 0 | |
284 | } | |
285 | as_func_failure () { | |
286 | as_func_return 1 | |
287 | } | |
288 | as_func_ret_success () { | |
289 | return 0 | |
290 | } | |
291 | as_func_ret_failure () { | |
292 | return 1 | |
293 | } | |
294 | ||
295 | exitcode=0 | |
296 | if as_func_success; then | |
297 | : | |
298 | else | |
299 | exitcode=1 | |
300 | echo as_func_success failed. | |
301 | fi | |
302 | ||
303 | if as_func_failure; then | |
304 | exitcode=1 | |
305 | echo as_func_failure succeeded. | |
306 | fi | |
307 | ||
308 | if as_func_ret_success; then | |
309 | : | |
310 | else | |
311 | exitcode=1 | |
312 | echo as_func_ret_success failed. | |
313 | fi | |
314 | ||
315 | if as_func_ret_failure; then | |
316 | exitcode=1 | |
317 | echo as_func_ret_failure succeeded. | |
318 | fi | |
319 | ||
320 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
321 | : | |
322 | else | |
323 | exitcode=1 | |
324 | echo positional parameters were not saved. | |
325 | fi | |
326 | ||
327 | test $exitcode = 0) || { (exit 1); exit 1; } | |
328 | ||
329 | ( | |
330 | as_lineno_1=$LINENO | |
331 | as_lineno_2=$LINENO | |
332 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | |
334 | ||
335 | _ASEOF | |
336 | }; then | |
337 | break | |
338 | fi | |
339 | ||
340 | fi | |
341 | ||
342 | done | |
343 | ||
344 | if test "x$CONFIG_SHELL" != x; then | |
345 | for as_var in BASH_ENV ENV | |
346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
347 | done | |
348 | export CONFIG_SHELL | |
349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
350 | fi | |
351 | ||
352 | ||
353 | if test $as_have_required = no; then | |
354 | echo This script requires a shell more modern than all the | |
355 | echo shells that I found on your system. Please install a | |
356 | echo modern shell, or manually run the script under such a | |
357 | echo shell if you do have one. | |
358 | { (exit 1); exit 1; } | |
359 | fi | |
360 | ||
361 | ||
362 | fi | |
363 | ||
364 | fi | |
365 | ||
366 | ||
367 | ||
368 | (eval "as_func_return () { | |
369 | (exit \$1) | |
370 | } | |
371 | as_func_success () { | |
372 | as_func_return 0 | |
373 | } | |
374 | as_func_failure () { | |
375 | as_func_return 1 | |
376 | } | |
377 | as_func_ret_success () { | |
378 | return 0 | |
379 | } | |
380 | as_func_ret_failure () { | |
381 | return 1 | |
382 | } | |
383 | ||
384 | exitcode=0 | |
385 | if as_func_success; then | |
386 | : | |
387 | else | |
388 | exitcode=1 | |
389 | echo as_func_success failed. | |
390 | fi | |
391 | ||
392 | if as_func_failure; then | |
393 | exitcode=1 | |
394 | echo as_func_failure succeeded. | |
395 | fi | |
396 | ||
397 | if as_func_ret_success; then | |
398 | : | |
399 | else | |
400 | exitcode=1 | |
401 | echo as_func_ret_success failed. | |
402 | fi | |
403 | ||
404 | if as_func_ret_failure; then | |
405 | exitcode=1 | |
406 | echo as_func_ret_failure succeeded. | |
407 | fi | |
408 | ||
409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
410 | : | |
411 | else | |
412 | exitcode=1 | |
413 | echo positional parameters were not saved. | |
414 | fi | |
415 | ||
416 | test \$exitcode = 0") || { | |
417 | echo No shell found that supports shell functions. | |
418 | echo Please tell autoconf@gnu.org about your system, | |
419 | echo including any error possibly output before this | |
420 | echo message | |
421 | } | |
422 | ||
423 | ||
424 | ||
425 | as_lineno_1=$LINENO | |
426 | as_lineno_2=$LINENO | |
427 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
429 | ||
430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
431 | # uniformly replaced by the line number. The first 'sed' inserts a | |
432 | # line-number line after each line using $LINENO; the second 'sed' | |
433 | # does the real work. The second script uses 'N' to pair each | |
434 | # line-number line with the line containing $LINENO, and appends | |
435 | # trailing '-' during substitution so that $LINENO is not a special | |
436 | # case at line end. | |
437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
438 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
439 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
440 | sed -n ' | |
441 | p | |
442 | /[$]LINENO/= | |
443 | ' <$as_myself | | |
444 | sed ' | |
445 | s/[$]LINENO.*/&-/ | |
446 | t lineno | |
447 | b | |
448 | :lineno | |
449 | N | |
450 | :loop | |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
452 | t loop | |
453 | s/-\n.*// | |
454 | ' >$as_me.lineno && | |
455 | chmod +x "$as_me.lineno" || | |
456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
457 | { (exit 1); exit 1; }; } | |
458 | ||
459 | # Don't try to exec as it changes $[0], causing all sort of problems | |
460 | # (the dirname of $[0] is not the place where we might find the | |
461 | # original and so on. Autoconf is especially sensitive to this). | |
462 | . "./$as_me.lineno" | |
463 | # Exit status is that of the last command. | |
464 | exit | |
465 | } | |
466 | ||
467 | ||
468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
469 | as_dirname=dirname | |
470 | else | |
471 | as_dirname=false | |
472 | fi | |
473 | ||
474 | ECHO_C= ECHO_N= ECHO_T= | |
475 | case `echo -n x` in | |
476 | -n*) | |
477 | case `echo 'x\c'` in | |
478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
479 | *) ECHO_C='\c';; | |
480 | esac;; | |
481 | *) | |
482 | ECHO_N='-n';; | |
483 | esac | |
484 | ||
485 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
487 | as_expr=expr | |
488 | else | |
489 | as_expr=false | |
490 | fi | |
491 | ||
492 | rm -f conf$$ conf$$.exe conf$$.file | |
493 | if test -d conf$$.dir; then | |
494 | rm -f conf$$.dir/conf$$.file | |
495 | else | |
496 | rm -f conf$$.dir | |
497 | mkdir conf$$.dir | |
498 | fi | |
499 | echo >conf$$.file | |
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
501 | as_ln_s='ln -s' | |
502 | # ... but there are two gotchas: | |
503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
505 | # In both cases, we have to default to `cp -p'. | |
506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
507 | as_ln_s='cp -p' | |
508 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
509 | as_ln_s=ln | |
510 | else | |
511 | as_ln_s='cp -p' | |
512 | fi | |
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
514 | rmdir conf$$.dir 2>/dev/null | |
515 | ||
516 | if mkdir -p . 2>/dev/null; then | |
517 | as_mkdir_p=: | |
518 | else | |
519 | test -d ./-p && rmdir ./-p | |
520 | as_mkdir_p=false | |
521 | fi | |
522 | ||
523 | if test -x / >/dev/null 2>&1; then | |
524 | as_test_x='test -x' | |
525 | else | |
526 | if ls -dL / >/dev/null 2>&1; then | |
527 | as_ls_L_option=L | |
528 | else | |
529 | as_ls_L_option= | |
530 | fi | |
531 | as_test_x=' | |
532 | eval sh -c '\'' | |
533 | if test -d "$1"; then | |
534 | test -d "$1/."; | |
535 | else | |
536 | case $1 in | |
537 | -*)set "./$1";; | |
538 | esac; | |
539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
540 | ???[sx]*):;;*)false;;esac;fi | |
541 | '\'' sh | |
542 | ' | |
543 | fi | |
544 | as_executable_p=$as_test_x | |
545 | ||
546 | # Sed expression to map a string onto a valid CPP name. | |
547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
548 | ||
549 | # Sed expression to map a string onto a valid variable name. | |
550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
551 | ||
552 | ||
553 | ||
554 | ||
555 | # Check that we are running under the correct shell. | |
556 | SHELL=${CONFIG_SHELL-/bin/sh} | |
557 | ||
558 | case X$lt_ECHO in | |
559 | X*--fallback-echo) | |
560 | # Remove one level of quotation (which was required for Make). | |
561 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
562 | ;; | |
563 | esac | |
564 | ||
565 | ECHO=${lt_ECHO-echo} | |
566 | if test "X$1" = X--no-reexec; then | |
567 | # Discard the --no-reexec flag, and continue. | |
568 | shift | |
569 | elif test "X$1" = X--fallback-echo; then | |
570 | # Avoid inline document here, it may be left over | |
571 | : | |
572 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
573 | # Yippee, $ECHO works! | |
574 | : | |
575 | else | |
576 | # Restart under the correct shell. | |
577 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
578 | fi | |
579 | ||
580 | if test "X$1" = X--fallback-echo; then | |
581 | # used as fallback echo | |
582 | shift | |
583 | cat <<_LT_EOF | |
584 | $* | |
585 | _LT_EOF | |
586 | exit 0 | |
587 | fi | |
588 | ||
589 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
590 | # if CDPATH is set. | |
591 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
592 | ||
593 | if test -z "$lt_ECHO"; then | |
594 | if test "X${echo_test_string+set}" != Xset; then | |
595 | # find a string as large as possible, as long as the shell can cope with it | |
596 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
597 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
598 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
599 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
600 | then | |
601 | break | |
602 | fi | |
603 | done | |
604 | fi | |
605 | ||
606 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
607 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
608 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
609 | : | |
610 | else | |
611 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
612 | # backslashes. This makes it impossible to quote backslashes using | |
613 | # echo "$something" | sed 's/\\/\\\\/g' | |
614 | # | |
615 | # So, first we look for a working echo in the user's PATH. | |
616 | ||
617 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
618 | for dir in $PATH /usr/ucb; do | |
619 | IFS="$lt_save_ifs" | |
620 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
621 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
622 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
623 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
624 | ECHO="$dir/echo" | |
625 | break | |
626 | fi | |
627 | done | |
628 | IFS="$lt_save_ifs" | |
629 | ||
630 | if test "X$ECHO" = Xecho; then | |
631 | # We didn't find a better echo, so look for alternatives. | |
632 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
633 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
634 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
635 | # This shell has a builtin print -r that does the trick. | |
636 | ECHO='print -r' | |
637 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
638 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
639 | # If we have ksh, try running configure again with it. | |
640 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
641 | export ORIGINAL_CONFIG_SHELL | |
642 | CONFIG_SHELL=/bin/ksh | |
643 | export CONFIG_SHELL | |
644 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
645 | else | |
646 | # Try using printf. | |
647 | ECHO='printf %s\n' | |
648 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
649 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
650 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
651 | # Cool, printf works | |
652 | : | |
653 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
654 | test "X$echo_testing_string" = 'X\t' && | |
655 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
656 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
657 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
658 | export CONFIG_SHELL | |
659 | SHELL="$CONFIG_SHELL" | |
660 | export SHELL | |
661 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
662 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
663 | test "X$echo_testing_string" = 'X\t' && | |
664 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
665 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
666 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
667 | else | |
668 | # maybe with a smaller string... | |
669 | prev=: | |
670 | ||
671 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
672 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
673 | then | |
674 | break | |
675 | fi | |
676 | prev="$cmd" | |
677 | done | |
678 | ||
679 | if test "$prev" != 'sed 50q "$0"'; then | |
680 | echo_test_string=`eval $prev` | |
681 | export echo_test_string | |
682 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
683 | else | |
684 | # Oops. We lost completely, so just stick with echo. | |
685 | ECHO=echo | |
686 | fi | |
687 | fi | |
688 | fi | |
689 | fi | |
690 | fi | |
691 | fi | |
692 | ||
693 | # Copy echo and quote the copy suitably for passing to libtool from | |
694 | # the Makefile, instead of quoting the original, which is used later. | |
695 | lt_ECHO=$ECHO | |
696 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
697 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
698 | fi | |
699 | ||
700 | ||
701 | ||
702 | ||
703 | exec 7<&0 </dev/null 6>&1 | |
704 | ||
705 | # Name of the host. | |
706 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
707 | # so uname gets run too. | |
708 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
709 | ||
710 | # | |
711 | # Initializations. | |
712 | # | |
713 | ac_default_prefix=/usr/local | |
714 | ac_clean_files= | |
715 | ac_config_libobj_dir=. | |
716 | LIBOBJS= | |
717 | cross_compiling=no | |
718 | subdirs= | |
719 | MFLAGS= | |
720 | MAKEFLAGS= | |
721 | SHELL=${CONFIG_SHELL-/bin/sh} | |
722 | ||
723 | # Identity of this package. | |
724 | PACKAGE_NAME='LibTIFF Software' | |
725 | PACKAGE_TARNAME='tiff' | |
726 | PACKAGE_VERSION='3.8.2' | |
727 | PACKAGE_STRING='LibTIFF Software 3.8.2' | |
728 | PACKAGE_BUGREPORT='tiff@lists.maptools.org' | |
729 | ||
730 | # Factoring default headers for most tests. | |
731 | ac_includes_default="\ | |
732 | #include <stdio.h> | |
733 | #ifdef HAVE_SYS_TYPES_H | |
734 | # include <sys/types.h> | |
735 | #endif | |
736 | #ifdef HAVE_SYS_STAT_H | |
737 | # include <sys/stat.h> | |
738 | #endif | |
739 | #ifdef STDC_HEADERS | |
740 | # include <stdlib.h> | |
741 | # include <stddef.h> | |
742 | #else | |
743 | # ifdef HAVE_STDLIB_H | |
744 | # include <stdlib.h> | |
745 | # endif | |
746 | #endif | |
747 | #ifdef HAVE_STRING_H | |
748 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
749 | # include <memory.h> | |
750 | # endif | |
751 | # include <string.h> | |
752 | #endif | |
753 | #ifdef HAVE_STRINGS_H | |
754 | # include <strings.h> | |
755 | #endif | |
756 | #ifdef HAVE_INTTYPES_H | |
757 | # include <inttypes.h> | |
758 | #endif | |
759 | #ifdef HAVE_STDINT_H | |
760 | # include <stdint.h> | |
761 | #endif | |
762 | #ifdef HAVE_UNISTD_H | |
763 | # include <unistd.h> | |
764 | #endif" | |
765 | ||
766 | ac_subst_vars='SHELL | |
767 | PATH_SEPARATOR | |
768 | PACKAGE_NAME | |
769 | PACKAGE_TARNAME | |
770 | PACKAGE_VERSION | |
771 | PACKAGE_STRING | |
772 | PACKAGE_BUGREPORT | |
773 | exec_prefix | |
774 | prefix | |
775 | program_transform_name | |
776 | bindir | |
777 | sbindir | |
778 | libexecdir | |
779 | datarootdir | |
780 | datadir | |
781 | sysconfdir | |
782 | sharedstatedir | |
783 | localstatedir | |
784 | includedir | |
785 | oldincludedir | |
786 | docdir | |
787 | infodir | |
788 | htmldir | |
789 | dvidir | |
790 | pdfdir | |
791 | psdir | |
792 | libdir | |
793 | localedir | |
794 | mandir | |
795 | DEFS | |
796 | ECHO_C | |
797 | ECHO_N | |
798 | ECHO_T | |
799 | LIBS | |
800 | build_alias | |
801 | host_alias | |
802 | target_alias | |
803 | build | |
804 | build_cpu | |
805 | build_vendor | |
806 | build_os | |
807 | host | |
808 | host_cpu | |
809 | host_vendor | |
810 | host_os | |
811 | INSTALL_PROGRAM | |
812 | INSTALL_SCRIPT | |
813 | INSTALL_DATA | |
814 | CYGPATH_W | |
815 | PACKAGE | |
816 | VERSION | |
817 | ACLOCAL | |
818 | AUTOCONF | |
819 | AUTOMAKE | |
820 | AUTOHEADER | |
821 | MAKEINFO | |
822 | install_sh | |
823 | STRIP | |
824 | INSTALL_STRIP_PROGRAM | |
825 | mkdir_p | |
826 | AWK | |
827 | SET_MAKE | |
828 | am__leading_dot | |
829 | AMTAR | |
830 | am__tar | |
831 | am__untar | |
832 | MAINTAINER_MODE_TRUE | |
833 | MAINTAINER_MODE_FALSE | |
834 | MAINT | |
835 | LIBTIFF_MAJOR_VERSION | |
836 | LIBTIFF_MINOR_VERSION | |
837 | LIBTIFF_MICRO_VERSION | |
838 | LIBTIFF_ALPHA_VERSION | |
839 | LIBTIFF_VERSION | |
840 | LIBTIFF_VERSION_INFO | |
841 | LIBTIFF_RELEASE_DATE | |
842 | CC | |
843 | CFLAGS | |
844 | LDFLAGS | |
845 | CPPFLAGS | |
846 | ac_ct_CC | |
847 | EXEEXT | |
848 | OBJEXT | |
849 | DEPDIR | |
850 | am__include | |
851 | am__quote | |
852 | AMDEP_TRUE | |
853 | AMDEP_FALSE | |
854 | AMDEPBACKSLASH | |
855 | CCDEPMODE | |
856 | am__fastdepCC_TRUE | |
857 | am__fastdepCC_FALSE | |
858 | LN_S | |
859 | LIBTOOL | |
860 | SED | |
861 | GREP | |
862 | EGREP | |
863 | FGREP | |
864 | LD | |
865 | DUMPBIN | |
866 | ac_ct_DUMPBIN | |
867 | NM | |
868 | AR | |
869 | RANLIB | |
870 | lt_ECHO | |
871 | CPP | |
872 | AS | |
873 | DLLTOOL | |
874 | OBJDUMP | |
875 | LIBOBJS | |
876 | HAVE_RPATH_TRUE | |
877 | HAVE_RPATH_FALSE | |
878 | LIBTIFF_DOCDIR | |
879 | HAVE_CXX_TRUE | |
880 | HAVE_CXX_FALSE | |
881 | XMKMF | |
882 | X_CFLAGS | |
883 | X_PRE_LIBS | |
884 | X_LIBS | |
885 | X_EXTRA_LIBS | |
886 | acx_pthread_config | |
887 | PTHREAD_CC | |
888 | PTHREAD_LIBS | |
889 | PTHREAD_CFLAGS | |
890 | GL_CFLAGS | |
891 | GL_LIBS | |
892 | CXX | |
893 | CXXFLAGS | |
894 | ac_ct_CXX | |
895 | CXXDEPMODE | |
896 | am__fastdepCXX_TRUE | |
897 | am__fastdepCXX_FALSE | |
898 | CXXCPP | |
899 | GLU_CFLAGS | |
900 | GLU_LIBS | |
901 | GLUT_CFLAGS | |
902 | GLUT_LIBS | |
903 | HAVE_OPENGL_TRUE | |
904 | HAVE_OPENGL_FALSE | |
905 | LIBDIR | |
906 | LTLIBOBJS' | |
907 | ac_subst_files='' | |
908 | ac_precious_vars='build_alias | |
909 | host_alias | |
910 | target_alias | |
911 | CC | |
912 | CFLAGS | |
913 | LDFLAGS | |
914 | LIBS | |
915 | CPPFLAGS | |
916 | CPP | |
917 | XMKMF | |
918 | CXX | |
919 | CXXFLAGS | |
920 | CCC | |
921 | CXXCPP' | |
922 | ||
923 | ||
924 | # Initialize some variables set by options. | |
925 | ac_init_help= | |
926 | ac_init_version=false | |
927 | # The variables have the same names as the options, with | |
928 | # dashes changed to underlines. | |
929 | cache_file=/dev/null | |
930 | exec_prefix=NONE | |
931 | no_create= | |
932 | no_recursion= | |
933 | prefix=NONE | |
934 | program_prefix=NONE | |
935 | program_suffix=NONE | |
936 | program_transform_name=s,x,x, | |
937 | silent= | |
938 | site= | |
939 | srcdir= | |
940 | verbose= | |
941 | x_includes=NONE | |
942 | x_libraries=NONE | |
943 | ||
944 | # Installation directory options. | |
945 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
946 | # and all the variables that are supposed to be based on exec_prefix | |
947 | # by default will actually change. | |
948 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
949 | # (The list follows the same order as the GNU Coding Standards.) | |
950 | bindir='${exec_prefix}/bin' | |
951 | sbindir='${exec_prefix}/sbin' | |
952 | libexecdir='${exec_prefix}/libexec' | |
953 | datarootdir='${prefix}/share' | |
954 | datadir='${datarootdir}' | |
955 | sysconfdir='${prefix}/etc' | |
956 | sharedstatedir='${prefix}/com' | |
957 | localstatedir='${prefix}/var' | |
958 | includedir='${prefix}/include' | |
959 | oldincludedir='/usr/include' | |
960 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
961 | infodir='${datarootdir}/info' | |
962 | htmldir='${docdir}' | |
963 | dvidir='${docdir}' | |
964 | pdfdir='${docdir}' | |
965 | psdir='${docdir}' | |
966 | libdir='${exec_prefix}/lib' | |
967 | localedir='${datarootdir}/locale' | |
968 | mandir='${datarootdir}/man' | |
969 | ||
970 | ac_prev= | |
971 | ac_dashdash= | |
972 | for ac_option | |
973 | do | |
974 | # If the previous option needs an argument, assign it. | |
975 | if test -n "$ac_prev"; then | |
976 | eval $ac_prev=\$ac_option | |
977 | ac_prev= | |
978 | continue | |
979 | fi | |
980 | ||
981 | case $ac_option in | |
982 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
983 | *) ac_optarg=yes ;; | |
984 | esac | |
985 | ||
986 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
987 | ||
988 | case $ac_dashdash$ac_option in | |
989 | --) | |
990 | ac_dashdash=yes ;; | |
991 | ||
992 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
993 | ac_prev=bindir ;; | |
994 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
995 | bindir=$ac_optarg ;; | |
996 | ||
997 | -build | --build | --buil | --bui | --bu) | |
998 | ac_prev=build_alias ;; | |
999 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1000 | build_alias=$ac_optarg ;; | |
1001 | ||
1002 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1003 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1004 | ac_prev=cache_file ;; | |
1005 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1006 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1007 | cache_file=$ac_optarg ;; | |
1008 | ||
1009 | --config-cache | -C) | |
1010 | cache_file=config.cache ;; | |
1011 | ||
1012 | -datadir | --datadir | --datadi | --datad) | |
1013 | ac_prev=datadir ;; | |
1014 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1015 | datadir=$ac_optarg ;; | |
1016 | ||
1017 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1018 | | --dataroo | --dataro | --datar) | |
1019 | ac_prev=datarootdir ;; | |
1020 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1021 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1022 | datarootdir=$ac_optarg ;; | |
1023 | ||
1024 | -disable-* | --disable-*) | |
1025 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1026 | # Reject names that are not valid shell variable names. | |
1027 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1028 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
1029 | { (exit 1); exit 1; }; } | |
1030 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
1031 | eval enable_$ac_feature=no ;; | |
1032 | ||
1033 | -docdir | --docdir | --docdi | --doc | --do) | |
1034 | ac_prev=docdir ;; | |
1035 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1036 | docdir=$ac_optarg ;; | |
1037 | ||
1038 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1039 | ac_prev=dvidir ;; | |
1040 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1041 | dvidir=$ac_optarg ;; | |
1042 | ||
1043 | -enable-* | --enable-*) | |
1044 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1045 | # Reject names that are not valid shell variable names. | |
1046 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1047 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
1048 | { (exit 1); exit 1; }; } | |
1049 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
1050 | eval enable_$ac_feature=\$ac_optarg ;; | |
1051 | ||
1052 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1053 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1054 | | --exec | --exe | --ex) | |
1055 | ac_prev=exec_prefix ;; | |
1056 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1057 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1058 | | --exec=* | --exe=* | --ex=*) | |
1059 | exec_prefix=$ac_optarg ;; | |
1060 | ||
1061 | -gas | --gas | --ga | --g) | |
1062 | # Obsolete; use --with-gas. | |
1063 | with_gas=yes ;; | |
1064 | ||
1065 | -help | --help | --hel | --he | -h) | |
1066 | ac_init_help=long ;; | |
1067 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1068 | ac_init_help=recursive ;; | |
1069 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1070 | ac_init_help=short ;; | |
1071 | ||
1072 | -host | --host | --hos | --ho) | |
1073 | ac_prev=host_alias ;; | |
1074 | -host=* | --host=* | --hos=* | --ho=*) | |
1075 | host_alias=$ac_optarg ;; | |
1076 | ||
1077 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1078 | ac_prev=htmldir ;; | |
1079 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1080 | | --ht=*) | |
1081 | htmldir=$ac_optarg ;; | |
1082 | ||
1083 | -includedir | --includedir | --includedi | --included | --include \ | |
1084 | | --includ | --inclu | --incl | --inc) | |
1085 | ac_prev=includedir ;; | |
1086 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1087 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1088 | includedir=$ac_optarg ;; | |
1089 | ||
1090 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1091 | ac_prev=infodir ;; | |
1092 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1093 | infodir=$ac_optarg ;; | |
1094 | ||
1095 | -libdir | --libdir | --libdi | --libd) | |
1096 | ac_prev=libdir ;; | |
1097 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1098 | libdir=$ac_optarg ;; | |
1099 | ||
1100 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1101 | | --libexe | --libex | --libe) | |
1102 | ac_prev=libexecdir ;; | |
1103 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1104 | | --libexe=* | --libex=* | --libe=*) | |
1105 | libexecdir=$ac_optarg ;; | |
1106 | ||
1107 | -localedir | --localedir | --localedi | --localed | --locale) | |
1108 | ac_prev=localedir ;; | |
1109 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1110 | localedir=$ac_optarg ;; | |
1111 | ||
1112 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1113 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1114 | ac_prev=localstatedir ;; | |
1115 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1116 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1117 | localstatedir=$ac_optarg ;; | |
1118 | ||
1119 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1120 | ac_prev=mandir ;; | |
1121 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1122 | mandir=$ac_optarg ;; | |
1123 | ||
1124 | -nfp | --nfp | --nf) | |
1125 | # Obsolete; use --without-fp. | |
1126 | with_fp=no ;; | |
1127 | ||
1128 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1129 | | --no-cr | --no-c | -n) | |
1130 | no_create=yes ;; | |
1131 | ||
1132 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1133 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1134 | no_recursion=yes ;; | |
1135 | ||
1136 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1137 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1138 | | --oldin | --oldi | --old | --ol | --o) | |
1139 | ac_prev=oldincludedir ;; | |
1140 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1141 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1142 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1143 | oldincludedir=$ac_optarg ;; | |
1144 | ||
1145 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1146 | ac_prev=prefix ;; | |
1147 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1148 | prefix=$ac_optarg ;; | |
1149 | ||
1150 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1151 | | --program-pre | --program-pr | --program-p) | |
1152 | ac_prev=program_prefix ;; | |
1153 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1154 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1155 | program_prefix=$ac_optarg ;; | |
1156 | ||
1157 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1158 | | --program-suf | --program-su | --program-s) | |
1159 | ac_prev=program_suffix ;; | |
1160 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1161 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1162 | program_suffix=$ac_optarg ;; | |
1163 | ||
1164 | -program-transform-name | --program-transform-name \ | |
1165 | | --program-transform-nam | --program-transform-na \ | |
1166 | | --program-transform-n | --program-transform- \ | |
1167 | | --program-transform | --program-transfor \ | |
1168 | | --program-transfo | --program-transf \ | |
1169 | | --program-trans | --program-tran \ | |
1170 | | --progr-tra | --program-tr | --program-t) | |
1171 | ac_prev=program_transform_name ;; | |
1172 | -program-transform-name=* | --program-transform-name=* \ | |
1173 | | --program-transform-nam=* | --program-transform-na=* \ | |
1174 | | --program-transform-n=* | --program-transform-=* \ | |
1175 | | --program-transform=* | --program-transfor=* \ | |
1176 | | --program-transfo=* | --program-transf=* \ | |
1177 | | --program-trans=* | --program-tran=* \ | |
1178 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1179 | program_transform_name=$ac_optarg ;; | |
1180 | ||
1181 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1182 | ac_prev=pdfdir ;; | |
1183 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1184 | pdfdir=$ac_optarg ;; | |
1185 | ||
1186 | -psdir | --psdir | --psdi | --psd | --ps) | |
1187 | ac_prev=psdir ;; | |
1188 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1189 | psdir=$ac_optarg ;; | |
1190 | ||
1191 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1192 | | -silent | --silent | --silen | --sile | --sil) | |
1193 | silent=yes ;; | |
1194 | ||
1195 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1196 | ac_prev=sbindir ;; | |
1197 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1198 | | --sbi=* | --sb=*) | |
1199 | sbindir=$ac_optarg ;; | |
1200 | ||
1201 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1202 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1203 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1204 | | --sha | --sh) | |
1205 | ac_prev=sharedstatedir ;; | |
1206 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1207 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1208 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1209 | | --sha=* | --sh=*) | |
1210 | sharedstatedir=$ac_optarg ;; | |
1211 | ||
1212 | -site | --site | --sit) | |
1213 | ac_prev=site ;; | |
1214 | -site=* | --site=* | --sit=*) | |
1215 | site=$ac_optarg ;; | |
1216 | ||
1217 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1218 | ac_prev=srcdir ;; | |
1219 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1220 | srcdir=$ac_optarg ;; | |
1221 | ||
1222 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1223 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1224 | ac_prev=sysconfdir ;; | |
1225 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1226 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1227 | sysconfdir=$ac_optarg ;; | |
1228 | ||
1229 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1230 | ac_prev=target_alias ;; | |
1231 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1232 | target_alias=$ac_optarg ;; | |
1233 | ||
1234 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1235 | verbose=yes ;; | |
1236 | ||
1237 | -version | --version | --versio | --versi | --vers | -V) | |
1238 | ac_init_version=: ;; | |
1239 | ||
1240 | -with-* | --with-*) | |
1241 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1242 | # Reject names that are not valid shell variable names. | |
1243 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1244 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1245 | { (exit 1); exit 1; }; } | |
1246 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1247 | eval with_$ac_package=\$ac_optarg ;; | |
1248 | ||
1249 | -without-* | --without-*) | |
1250 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1251 | # Reject names that are not valid shell variable names. | |
1252 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1253 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1254 | { (exit 1); exit 1; }; } | |
1255 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1256 | eval with_$ac_package=no ;; | |
1257 | ||
1258 | --x) | |
1259 | # Obsolete; use --with-x. | |
1260 | with_x=yes ;; | |
1261 | ||
1262 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1263 | | --x-incl | --x-inc | --x-in | --x-i) | |
1264 | ac_prev=x_includes ;; | |
1265 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1266 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1267 | x_includes=$ac_optarg ;; | |
1268 | ||
1269 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1270 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1271 | ac_prev=x_libraries ;; | |
1272 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1273 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1274 | x_libraries=$ac_optarg ;; | |
1275 | ||
1276 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1277 | Try \`$0 --help' for more information." >&2 | |
1278 | { (exit 1); exit 1; }; } | |
1279 | ;; | |
1280 | ||
1281 | *=*) | |
1282 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1283 | # Reject names that are not valid shell variable names. | |
1284 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1285 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1286 | { (exit 1); exit 1; }; } | |
1287 | eval $ac_envvar=\$ac_optarg | |
1288 | export $ac_envvar ;; | |
1289 | ||
1290 | *) | |
1291 | # FIXME: should be removed in autoconf 3.0. | |
1292 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1293 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1294 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1295 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1296 | ;; | |
1297 | ||
1298 | esac | |
1299 | done | |
1300 | ||
1301 | if test -n "$ac_prev"; then | |
1302 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1303 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1304 | { (exit 1); exit 1; }; } | |
1305 | fi | |
1306 | ||
1307 | # Be sure to have absolute directory names. | |
1308 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1309 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1310 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1311 | libdir localedir mandir | |
1312 | do | |
1313 | eval ac_val=\$$ac_var | |
1314 | case $ac_val in | |
1315 | [\\/$]* | ?:[\\/]* ) continue;; | |
1316 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1317 | esac | |
1318 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1319 | { (exit 1); exit 1; }; } | |
1320 | done | |
1321 | ||
1322 | # There might be people who depend on the old broken behavior: `$host' | |
1323 | # used to hold the argument of --host etc. | |
1324 | # FIXME: To remove some day. | |
1325 | build=$build_alias | |
1326 | host=$host_alias | |
1327 | target=$target_alias | |
1328 | ||
1329 | # FIXME: To remove some day. | |
1330 | if test "x$host_alias" != x; then | |
1331 | if test "x$build_alias" = x; then | |
1332 | cross_compiling=maybe | |
1333 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1334 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1335 | elif test "x$build_alias" != "x$host_alias"; then | |
1336 | cross_compiling=yes | |
1337 | fi | |
1338 | fi | |
1339 | ||
1340 | ac_tool_prefix= | |
1341 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1342 | ||
1343 | test "$silent" = yes && exec 6>/dev/null | |
1344 | ||
1345 | ||
1346 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1347 | ac_ls_di=`ls -di .` && | |
1348 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1349 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1350 | { (exit 1); exit 1; }; } | |
1351 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1352 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1353 | { (exit 1); exit 1; }; } | |
1354 | ||
1355 | ||
1356 | # Find the source files, if location was not specified. | |
1357 | if test -z "$srcdir"; then | |
1358 | ac_srcdir_defaulted=yes | |
1359 | # Try the directory containing this script, then the parent directory. | |
1360 | ac_confdir=`$as_dirname -- "$0" || | |
1361 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1362 | X"$0" : 'X\(//\)[^/]' \| \ | |
1363 | X"$0" : 'X\(//\)$' \| \ | |
1364 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1365 | echo X"$0" | | |
1366 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1367 | s//\1/ | |
1368 | q | |
1369 | } | |
1370 | /^X\(\/\/\)[^/].*/{ | |
1371 | s//\1/ | |
1372 | q | |
1373 | } | |
1374 | /^X\(\/\/\)$/{ | |
1375 | s//\1/ | |
1376 | q | |
1377 | } | |
1378 | /^X\(\/\).*/{ | |
1379 | s//\1/ | |
1380 | q | |
1381 | } | |
1382 | s/.*/./; q'` | |
1383 | srcdir=$ac_confdir | |
1384 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1385 | srcdir=.. | |
1386 | fi | |
1387 | else | |
1388 | ac_srcdir_defaulted=no | |
1389 | fi | |
1390 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1391 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1392 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1393 | { (exit 1); exit 1; }; } | |
1394 | fi | |
1395 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1396 | ac_abs_confdir=`( | |
1397 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
1398 | { (exit 1); exit 1; }; } | |
1399 | pwd)` | |
1400 | # When building in place, set srcdir=. | |
1401 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1402 | srcdir=. | |
1403 | fi | |
1404 | # Remove unnecessary trailing slashes from srcdir. | |
1405 | # Double slashes in file names in object file debugging info | |
1406 | # mess up M-x gdb in Emacs. | |
1407 | case $srcdir in | |
1408 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1409 | esac | |
1410 | for ac_var in $ac_precious_vars; do | |
1411 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1412 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1413 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1414 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1415 | done | |
1416 | ||
1417 | # | |
1418 | # Report the --help message. | |
1419 | # | |
1420 | if test "$ac_init_help" = "long"; then | |
1421 | # Omit some internal or obsolete options to make the list less imposing. | |
1422 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1423 | cat <<_ACEOF | |
1424 | \`configure' configures LibTIFF Software 3.8.2 to adapt to many kinds of systems. | |
1425 | ||
1426 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1427 | ||
1428 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1429 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1430 | ||
1431 | Defaults for the options are specified in brackets. | |
1432 | ||
1433 | Configuration: | |
1434 | -h, --help display this help and exit | |
1435 | --help=short display options specific to this package | |
1436 | --help=recursive display the short help of all the included packages | |
1437 | -V, --version display version information and exit | |
1438 | -q, --quiet, --silent do not print \`checking...' messages | |
1439 | --cache-file=FILE cache test results in FILE [disabled] | |
1440 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1441 | -n, --no-create do not create output files | |
1442 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1443 | ||
1444 | Installation directories: | |
1445 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1446 | [$ac_default_prefix] | |
1447 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1448 | [PREFIX] | |
1449 | ||
1450 | By default, \`make install' will install all the files in | |
1451 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1452 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1453 | for instance \`--prefix=\$HOME'. | |
1454 | ||
1455 | For better control, use the options below. | |
1456 | ||
1457 | Fine tuning of the installation directories: | |
1458 | --bindir=DIR user executables [EPREFIX/bin] | |
1459 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1460 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1461 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1462 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1463 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1464 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1465 | --includedir=DIR C header files [PREFIX/include] | |
1466 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1467 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1468 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1469 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1470 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1471 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1472 | --docdir=DIR documentation root [DATAROOTDIR/doc/tiff] | |
1473 | --htmldir=DIR html documentation [DOCDIR] | |
1474 | --dvidir=DIR dvi documentation [DOCDIR] | |
1475 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1476 | --psdir=DIR ps documentation [DOCDIR] | |
1477 | _ACEOF | |
1478 | ||
1479 | cat <<\_ACEOF | |
1480 | ||
1481 | Program names: | |
1482 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1483 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1484 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1485 | ||
1486 | X features: | |
1487 | --x-includes=DIR X include files are in DIR | |
1488 | --x-libraries=DIR X library files are in DIR | |
1489 | ||
1490 | System types: | |
1491 | --build=BUILD configure for building on BUILD [guessed] | |
1492 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1493 | _ACEOF | |
1494 | fi | |
1495 | ||
1496 | if test -n "$ac_init_help"; then | |
1497 | case $ac_init_help in | |
1498 | short | recursive ) echo "Configuration of LibTIFF Software 3.8.2:";; | |
1499 | esac | |
1500 | cat <<\_ACEOF | |
1501 | ||
1502 | Optional Features: | |
1503 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1504 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1505 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1506 | (and sometimes confusing) to the casual installer | |
1507 | --disable-dependency-tracking speeds up one-time build | |
1508 | --enable-dependency-tracking do not reject slow dependency extractors | |
1509 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1510 | --enable-static[=PKGS] build static libraries [default=yes] | |
1511 | --enable-fast-install[=PKGS] | |
1512 | optimize for fast installation [default=yes] | |
1513 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1514 | --enable-rpath Enable runtime linker paths (-R libtool option) | |
1515 | --disable-largefile omit support for large files | |
1516 | --disable-ccitt disable support for CCITT Group 3 & 4 algorithms | |
1517 | --disable-packbits disable support for Macintosh PackBits algorithm | |
1518 | --disable-lzw disable support for LZW algorithm | |
1519 | --disable-thunder disable support for ThunderScan 4-bit RLE algorithm | |
1520 | --disable-next disable support for NeXT 2-bit RLE algorithm | |
1521 | --disable-logluv disable support for LogLuv high dynamic range | |
1522 | encoding | |
1523 | --disable-mdi disable support for Microsoft Document Imaging | |
1524 | --disable-zlib disable Zlib usage (required for Deflate | |
1525 | compression, enabled by default) | |
1526 | --disable-pixarlog disable support for Pixar log-format algorithm | |
1527 | (requires Zlib) | |
1528 | --disable-jpeg disable IJG JPEG library usage (required for JPEG | |
1529 | compression, enabled by default) | |
1530 | --enable-old-jpeg enable support for Old JPEG compresson (read | |
1531 | contrib/ojpeg/README first! Compilation fails with | |
1532 | unpatched IJG JPEG library) | |
1533 | --enable-cxx enable C++ stream API building (requires C++ | |
1534 | compiler) | |
1535 | --disable-strip-chopping | |
1536 | disable support for strip chopping (whether or not | |
1537 | to convert single-strip uncompressed images to | |
1538 | mutiple strips of specified size to reduce memory | |
1539 | usage) | |
1540 | --disable-extrasample-as-alpha | |
1541 | the RGBA interface will treat a fourth sample with | |
1542 | no EXTRASAMPLE_ value as being ASSOCALPHA. Many | |
1543 | packages produce RGBA files but don't mark the alpha | |
1544 | properly | |
1545 | --disable-check-ycbcr-subsampling | |
1546 | disable picking up YCbCr subsampling info from the | |
1547 | JPEG data stream to support files lacking the tag | |
1548 | ||
1549 | Optional Packages: | |
1550 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1551 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1552 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1553 | both] | |
1554 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1555 | --with-docdir=DIR directory where documentation should be installed | |
1556 | --with-zlib-include-dir=DIR | |
1557 | location of Zlib headers | |
1558 | --with-zlib-lib-dir=DIR location of Zlib library binary | |
1559 | --with-jpeg-include-dir=DIR | |
1560 | location of IJG JPEG library headers | |
1561 | --with-jpeg-lib-dir=DIR location of IJG JPEG library binary | |
1562 | --with-x use the X Window System | |
1563 | --with-apple-opengl-framework | |
1564 | use Apple OpenGL framework (Mac OS X only) | |
1565 | --with-default-strip-size=SIZE | |
1566 | default size of the strip in bytes (when strip | |
1567 | chopping enabled) [default=8192] | |
1568 | ||
1569 | Some influential environment variables: | |
1570 | CC C compiler command | |
1571 | CFLAGS C compiler flags | |
1572 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1573 | nonstandard directory <lib dir> | |
1574 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1575 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1576 | you have headers in a nonstandard directory <include dir> | |
1577 | CPP C preprocessor | |
1578 | XMKMF Path to xmkmf, Makefile generator for X Window System | |
1579 | CXX C++ compiler command | |
1580 | CXXFLAGS C++ compiler flags | |
1581 | CXXCPP C++ preprocessor | |
1582 | ||
1583 | Use these variables to override the choices made by `configure' or to help | |
1584 | it to find libraries and programs with nonstandard names/locations. | |
1585 | ||
1586 | Report bugs to <tiff@lists.maptools.org>. | |
1587 | _ACEOF | |
1588 | ac_status=$? | |
1589 | fi | |
1590 | ||
1591 | if test "$ac_init_help" = "recursive"; then | |
1592 | # If there are subdirs, report their specific --help. | |
1593 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1594 | test -d "$ac_dir" || continue | |
1595 | ac_builddir=. | |
1596 | ||
1597 | case "$ac_dir" in | |
1598 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1599 | *) | |
1600 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1601 | # A ".." for each directory in $ac_dir_suffix. | |
1602 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1603 | case $ac_top_builddir_sub in | |
1604 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1605 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1606 | esac ;; | |
1607 | esac | |
1608 | ac_abs_top_builddir=$ac_pwd | |
1609 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1610 | # for backward compatibility: | |
1611 | ac_top_builddir=$ac_top_build_prefix | |
1612 | ||
1613 | case $srcdir in | |
1614 | .) # We are building in place. | |
1615 | ac_srcdir=. | |
1616 | ac_top_srcdir=$ac_top_builddir_sub | |
1617 | ac_abs_top_srcdir=$ac_pwd ;; | |
1618 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1619 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1620 | ac_top_srcdir=$srcdir | |
1621 | ac_abs_top_srcdir=$srcdir ;; | |
1622 | *) # Relative name. | |
1623 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1624 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1625 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1626 | esac | |
1627 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1628 | ||
1629 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1630 | # Check for guested configure. | |
1631 | if test -f "$ac_srcdir/configure.gnu"; then | |
1632 | echo && | |
1633 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1634 | elif test -f "$ac_srcdir/configure"; then | |
1635 | echo && | |
1636 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1637 | else | |
1638 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1639 | fi || ac_status=$? | |
1640 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1641 | done | |
1642 | fi | |
1643 | ||
1644 | test -n "$ac_init_help" && exit $ac_status | |
1645 | if $ac_init_version; then | |
1646 | cat <<\_ACEOF | |
1647 | LibTIFF Software configure 3.8.2 | |
1648 | generated by GNU Autoconf 2.61 | |
1649 | ||
1650 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1651 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
1652 | This configure script is free software; the Free Software Foundation | |
1653 | gives unlimited permission to copy, distribute and modify it. | |
1654 | _ACEOF | |
1655 | exit | |
1656 | fi | |
1657 | cat >config.log <<_ACEOF | |
1658 | This file contains any messages produced by compilers while | |
1659 | running configure, to aid debugging if configure makes a mistake. | |
1660 | ||
1661 | It was created by LibTIFF Software $as_me 3.8.2, which was | |
1662 | generated by GNU Autoconf 2.61. Invocation command line was | |
1663 | ||
1664 | $ $0 $@ | |
1665 | ||
1666 | _ACEOF | |
1667 | exec 5>>config.log | |
1668 | { | |
1669 | cat <<_ASUNAME | |
1670 | ## --------- ## | |
1671 | ## Platform. ## | |
1672 | ## --------- ## | |
1673 | ||
1674 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1675 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1676 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1677 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1678 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1679 | ||
1680 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1681 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1682 | ||
1683 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1684 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1685 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1686 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1687 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1688 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1689 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1690 | ||
1691 | _ASUNAME | |
1692 | ||
1693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1694 | for as_dir in $PATH | |
1695 | do | |
1696 | IFS=$as_save_IFS | |
1697 | test -z "$as_dir" && as_dir=. | |
1698 | echo "PATH: $as_dir" | |
1699 | done | |
1700 | IFS=$as_save_IFS | |
1701 | ||
1702 | } >&5 | |
1703 | ||
1704 | cat >&5 <<_ACEOF | |
1705 | ||
1706 | ||
1707 | ## ----------- ## | |
1708 | ## Core tests. ## | |
1709 | ## ----------- ## | |
1710 | ||
1711 | _ACEOF | |
1712 | ||
1713 | ||
1714 | # Keep a trace of the command line. | |
1715 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1716 | # Strip out --silent because we don't want to record it for future runs. | |
1717 | # Also quote any args containing shell meta-characters. | |
1718 | # Make two passes to allow for proper duplicate-argument suppression. | |
1719 | ac_configure_args= | |
1720 | ac_configure_args0= | |
1721 | ac_configure_args1= | |
1722 | ac_must_keep_next=false | |
1723 | for ac_pass in 1 2 | |
1724 | do | |
1725 | for ac_arg | |
1726 | do | |
1727 | case $ac_arg in | |
1728 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1729 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1730 | | -silent | --silent | --silen | --sile | --sil) | |
1731 | continue ;; | |
1732 | *\'*) | |
1733 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1734 | esac | |
1735 | case $ac_pass in | |
1736 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1737 | 2) | |
1738 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1739 | if test $ac_must_keep_next = true; then | |
1740 | ac_must_keep_next=false # Got value, back to normal. | |
1741 | else | |
1742 | case $ac_arg in | |
1743 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1744 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1745 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1746 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1747 | case "$ac_configure_args0 " in | |
1748 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1749 | esac | |
1750 | ;; | |
1751 | -* ) ac_must_keep_next=true ;; | |
1752 | esac | |
1753 | fi | |
1754 | ac_configure_args="$ac_configure_args '$ac_arg'" | |
1755 | ;; | |
1756 | esac | |
1757 | done | |
1758 | done | |
1759 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1760 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1761 | ||
1762 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1763 | # config.log. We remove comments because anyway the quotes in there | |
1764 | # would cause problems or look ugly. | |
1765 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1766 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1767 | trap 'exit_status=$? | |
1768 | # Save into config.log some information that might help in debugging. | |
1769 | { | |
1770 | echo | |
1771 | ||
1772 | cat <<\_ASBOX | |
1773 | ## ---------------- ## | |
1774 | ## Cache variables. ## | |
1775 | ## ---------------- ## | |
1776 | _ASBOX | |
1777 | echo | |
1778 | # The following way of writing the cache mishandles newlines in values, | |
1779 | ( | |
1780 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1781 | eval ac_val=\$$ac_var | |
1782 | case $ac_val in #( | |
1783 | *${as_nl}*) | |
1784 | case $ac_var in #( | |
1785 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1786 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1787 | esac | |
1788 | case $ac_var in #( | |
1789 | _ | IFS | as_nl) ;; #( | |
1790 | *) $as_unset $ac_var ;; | |
1791 | esac ;; | |
1792 | esac | |
1793 | done | |
1794 | (set) 2>&1 | | |
1795 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1796 | *${as_nl}ac_space=\ *) | |
1797 | sed -n \ | |
1798 | "s/'\''/'\''\\\\'\'''\''/g; | |
1799 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1800 | ;; #( | |
1801 | *) | |
1802 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1803 | ;; | |
1804 | esac | | |
1805 | sort | |
1806 | ) | |
1807 | echo | |
1808 | ||
1809 | cat <<\_ASBOX | |
1810 | ## ----------------- ## | |
1811 | ## Output variables. ## | |
1812 | ## ----------------- ## | |
1813 | _ASBOX | |
1814 | echo | |
1815 | for ac_var in $ac_subst_vars | |
1816 | do | |
1817 | eval ac_val=\$$ac_var | |
1818 | case $ac_val in | |
1819 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1820 | esac | |
1821 | echo "$ac_var='\''$ac_val'\''" | |
1822 | done | sort | |
1823 | echo | |
1824 | ||
1825 | if test -n "$ac_subst_files"; then | |
1826 | cat <<\_ASBOX | |
1827 | ## ------------------- ## | |
1828 | ## File substitutions. ## | |
1829 | ## ------------------- ## | |
1830 | _ASBOX | |
1831 | echo | |
1832 | for ac_var in $ac_subst_files | |
1833 | do | |
1834 | eval ac_val=\$$ac_var | |
1835 | case $ac_val in | |
1836 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1837 | esac | |
1838 | echo "$ac_var='\''$ac_val'\''" | |
1839 | done | sort | |
1840 | echo | |
1841 | fi | |
1842 | ||
1843 | if test -s confdefs.h; then | |
1844 | cat <<\_ASBOX | |
1845 | ## ----------- ## | |
1846 | ## confdefs.h. ## | |
1847 | ## ----------- ## | |
1848 | _ASBOX | |
1849 | echo | |
1850 | cat confdefs.h | |
1851 | echo | |
1852 | fi | |
1853 | test "$ac_signal" != 0 && | |
1854 | echo "$as_me: caught signal $ac_signal" | |
1855 | echo "$as_me: exit $exit_status" | |
1856 | } >&5 | |
1857 | rm -f core *.core core.conftest.* && | |
1858 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1859 | exit $exit_status | |
1860 | ' 0 | |
1861 | for ac_signal in 1 2 13 15; do | |
1862 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1863 | done | |
1864 | ac_signal=0 | |
1865 | ||
1866 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1867 | rm -f -r conftest* confdefs.h | |
1868 | ||
1869 | # Predefined preprocessor variables. | |
1870 | ||
1871 | cat >>confdefs.h <<_ACEOF | |
1872 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1873 | _ACEOF | |
1874 | ||
1875 | ||
1876 | cat >>confdefs.h <<_ACEOF | |
1877 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1878 | _ACEOF | |
1879 | ||
1880 | ||
1881 | cat >>confdefs.h <<_ACEOF | |
1882 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1883 | _ACEOF | |
1884 | ||
1885 | ||
1886 | cat >>confdefs.h <<_ACEOF | |
1887 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1888 | _ACEOF | |
1889 | ||
1890 | ||
1891 | cat >>confdefs.h <<_ACEOF | |
1892 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1893 | _ACEOF | |
1894 | ||
1895 | ||
1896 | # Let the site file select an alternate cache file if it wants to. | |
1897 | # Prefer explicitly selected file to automatically selected ones. | |
1898 | if test -n "$CONFIG_SITE"; then | |
1899 | set x "$CONFIG_SITE" | |
1900 | elif test "x$prefix" != xNONE; then | |
1901 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1902 | else | |
1903 | set x "$ac_default_prefix/share/config.site" \ | |
1904 | "$ac_default_prefix/etc/config.site" | |
1905 | fi | |
1906 | shift | |
1907 | for ac_site_file | |
1908 | do | |
1909 | if test -r "$ac_site_file"; then | |
1910 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1911 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1912 | sed 's/^/| /' "$ac_site_file" >&5 | |
1913 | . "$ac_site_file" | |
1914 | fi | |
1915 | done | |
1916 | ||
1917 | if test -r "$cache_file"; then | |
1918 | # Some versions of bash will fail to source /dev/null (special | |
1919 | # files actually), so we avoid doing that. | |
1920 | if test -f "$cache_file"; then | |
1921 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1922 | echo "$as_me: loading cache $cache_file" >&6;} | |
1923 | case $cache_file in | |
1924 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1925 | *) . "./$cache_file";; | |
1926 | esac | |
1927 | fi | |
1928 | else | |
1929 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1930 | echo "$as_me: creating cache $cache_file" >&6;} | |
1931 | >$cache_file | |
1932 | fi | |
1933 | ||
1934 | # Check that the precious variables saved in the cache have kept the same | |
1935 | # value. | |
1936 | ac_cache_corrupted=false | |
1937 | for ac_var in $ac_precious_vars; do | |
1938 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1939 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1940 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1941 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1942 | case $ac_old_set,$ac_new_set in | |
1943 | set,) | |
1944 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1945 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1946 | ac_cache_corrupted=: ;; | |
1947 | ,set) | |
1948 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1949 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1950 | ac_cache_corrupted=: ;; | |
1951 | ,);; | |
1952 | *) | |
1953 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1954 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1955 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1956 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1957 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1958 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1959 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1960 | ac_cache_corrupted=: | |
1961 | fi;; | |
1962 | esac | |
1963 | # Pass precious variables to config.status. | |
1964 | if test "$ac_new_set" = set; then | |
1965 | case $ac_new_val in | |
1966 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1967 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1968 | esac | |
1969 | case " $ac_configure_args " in | |
1970 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1971 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1972 | esac | |
1973 | fi | |
1974 | done | |
1975 | if $ac_cache_corrupted; then | |
1976 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1977 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1978 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1979 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1980 | { (exit 1); exit 1; }; } | |
1981 | fi | |
1982 | ||
1983 | ||
1984 | ||
1985 | ||
1986 | ||
1987 | ||
1988 | ||
1989 | ||
1990 | ||
1991 | ||
1992 | ||
1993 | ||
1994 | ||
1995 | ||
1996 | ||
1997 | ||
1998 | ||
1999 | ||
2000 | ||
2001 | ||
2002 | ||
2003 | ||
2004 | ||
2005 | ||
2006 | ||
2007 | ac_ext=c | |
2008 | ac_cpp='$CPP $CPPFLAGS' | |
2009 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2010 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2011 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2012 | ||
2013 | ||
2014 | ac_aux_dir= | |
2015 | for ac_dir in config "$srcdir"/config; do | |
2016 | if test -f "$ac_dir/install-sh"; then | |
2017 | ac_aux_dir=$ac_dir | |
2018 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2019 | break | |
2020 | elif test -f "$ac_dir/install.sh"; then | |
2021 | ac_aux_dir=$ac_dir | |
2022 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2023 | break | |
2024 | elif test -f "$ac_dir/shtool"; then | |
2025 | ac_aux_dir=$ac_dir | |
2026 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2027 | break | |
2028 | fi | |
2029 | done | |
2030 | if test -z "$ac_aux_dir"; then | |
2031 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 | |
2032 | echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} | |
2033 | { (exit 1); exit 1; }; } | |
2034 | fi | |
2035 | ||
2036 | # These three variables are undocumented and unsupported, | |
2037 | # and are intended to be withdrawn in a future Autoconf release. | |
2038 | # They can cause serious problems if a builder's source tree is in a directory | |
2039 | # whose full name contains unusual characters. | |
2040 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2041 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2042 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2043 | ||
2044 | ||
2045 | ||
2046 | ac_ext=c | |
2047 | ac_cpp='$CPP $CPPFLAGS' | |
2048 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2049 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2050 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2051 | ||
2052 | ||
2053 | # Make sure we can run config.sub. | |
2054 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2055 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
2056 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
2057 | { (exit 1); exit 1; }; } | |
2058 | ||
2059 | { echo "$as_me:$LINENO: checking build system type" >&5 | |
2060 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
2061 | if test "${ac_cv_build+set}" = set; then | |
2062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2063 | else | |
2064 | ac_build_alias=$build_alias | |
2065 | test "x$ac_build_alias" = x && | |
2066 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2067 | test "x$ac_build_alias" = x && | |
2068 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
2069 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2070 | { (exit 1); exit 1; }; } | |
2071 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2072 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
2073 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
2074 | { (exit 1); exit 1; }; } | |
2075 | ||
2076 | fi | |
2077 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
2078 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
2079 | case $ac_cv_build in | |
2080 | *-*-*) ;; | |
2081 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
2082 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
2083 | { (exit 1); exit 1; }; };; | |
2084 | esac | |
2085 | build=$ac_cv_build | |
2086 | ac_save_IFS=$IFS; IFS='-' | |
2087 | set x $ac_cv_build | |
2088 | shift | |
2089 | build_cpu=$1 | |
2090 | build_vendor=$2 | |
2091 | shift; shift | |
2092 | # Remember, the first character of IFS is used to create $*, | |
2093 | # except with old shells: | |
2094 | build_os=$* | |
2095 | IFS=$ac_save_IFS | |
2096 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2097 | ||
2098 | ||
2099 | { echo "$as_me:$LINENO: checking host system type" >&5 | |
2100 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
2101 | if test "${ac_cv_host+set}" = set; then | |
2102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2103 | else | |
2104 | if test "x$host_alias" = x; then | |
2105 | ac_cv_host=$ac_cv_build | |
2106 | else | |
2107 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2108 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
2109 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
2110 | { (exit 1); exit 1; }; } | |
2111 | fi | |
2112 | ||
2113 | fi | |
2114 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
2115 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
2116 | case $ac_cv_host in | |
2117 | *-*-*) ;; | |
2118 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
2119 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
2120 | { (exit 1); exit 1; }; };; | |
2121 | esac | |
2122 | host=$ac_cv_host | |
2123 | ac_save_IFS=$IFS; IFS='-' | |
2124 | set x $ac_cv_host | |
2125 | shift | |
2126 | host_cpu=$1 | |
2127 | host_vendor=$2 | |
2128 | shift; shift | |
2129 | # Remember, the first character of IFS is used to create $*, | |
2130 | # except with old shells: | |
2131 | host_os=$* | |
2132 | IFS=$ac_save_IFS | |
2133 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2134 | ||
2135 | ||
2136 | ||
2137 | am__api_version="1.9" | |
2138 | # Find a good install program. We prefer a C program (faster), | |
2139 | # so one script is as good as another. But avoid the broken or | |
2140 | # incompatible versions: | |
2141 | # SysV /etc/install, /usr/sbin/install | |
2142 | # SunOS /usr/etc/install | |
2143 | # IRIX /sbin/install | |
2144 | # AIX /bin/install | |
2145 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2146 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2147 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2148 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2149 | # OS/2's system install, which has a completely different semantic | |
2150 | # ./install, which can be erroneously created by make from ./install.sh. | |
2151 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2152 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
2153 | if test -z "$INSTALL"; then | |
2154 | if test "${ac_cv_path_install+set}" = set; then | |
2155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
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 | # Account for people who put trailing slashes in PATH elements. | |
2163 | case $as_dir/ in | |
2164 | ./ | .// | /cC/* | \ | |
2165 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2166 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2167 | /usr/ucb/* ) ;; | |
2168 | *) | |
2169 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2170 | # Don't use installbsd from OSF since it installs stuff as root | |
2171 | # by default. | |
2172 | for ac_prog in ginstall scoinst install; do | |
2173 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2174 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2175 | if test $ac_prog = install && | |
2176 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2177 | # AIX install. It has an incompatible calling convention. | |
2178 | : | |
2179 | elif test $ac_prog = install && | |
2180 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2181 | # program-specific install script used by HP pwplus--don't use. | |
2182 | : | |
2183 | else | |
2184 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2185 | break 3 | |
2186 | fi | |
2187 | fi | |
2188 | done | |
2189 | done | |
2190 | ;; | |
2191 | esac | |
2192 | done | |
2193 | IFS=$as_save_IFS | |
2194 | ||
2195 | ||
2196 | fi | |
2197 | if test "${ac_cv_path_install+set}" = set; then | |
2198 | INSTALL=$ac_cv_path_install | |
2199 | else | |
2200 | # As a last resort, use the slow shell script. Don't cache a | |
2201 | # value for INSTALL within a source directory, because that will | |
2202 | # break other packages using the cache if that directory is | |
2203 | # removed, or if the value is a relative name. | |
2204 | INSTALL=$ac_install_sh | |
2205 | fi | |
2206 | fi | |
2207 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2208 | echo "${ECHO_T}$INSTALL" >&6; } | |
2209 | ||
2210 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2211 | # It thinks the first close brace ends the variable substitution. | |
2212 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2213 | ||
2214 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2215 | ||
2216 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2217 | ||
2218 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
2219 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | |
2220 | # Just in case | |
2221 | sleep 1 | |
2222 | echo timestamp > conftest.file | |
2223 | # Do `set' in a subshell so we don't clobber the current shell's | |
2224 | # arguments. Must try -L first in case configure is actually a | |
2225 | # symlink; some systems play weird games with the mod time of symlinks | |
2226 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2227 | # directory). | |
2228 | if ( | |
2229 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
2230 | if test "$*" = "X"; then | |
2231 | # -L didn't work. | |
2232 | set X `ls -t $srcdir/configure conftest.file` | |
2233 | fi | |
2234 | rm -f conftest.file | |
2235 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2236 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2237 | ||
2238 | # If neither matched, then we have a broken ls. This can happen | |
2239 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2240 | # broken ls alias from the environment. This has actually | |
2241 | # happened. Such a system could not be considered "sane". | |
2242 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
2243 | alias in your environment" >&5 | |
2244 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2245 | alias in your environment" >&2;} | |
2246 | { (exit 1); exit 1; }; } | |
2247 | fi | |
2248 | ||
2249 | test "$2" = conftest.file | |
2250 | ) | |
2251 | then | |
2252 | # Ok. | |
2253 | : | |
2254 | else | |
2255 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
2256 | Check your system clock" >&5 | |
2257 | echo "$as_me: error: newly created file is older than distributed files! | |
2258 | Check your system clock" >&2;} | |
2259 | { (exit 1); exit 1; }; } | |
2260 | fi | |
2261 | { echo "$as_me:$LINENO: result: yes" >&5 | |
2262 | echo "${ECHO_T}yes" >&6; } | |
2263 | test "$program_prefix" != NONE && | |
2264 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2265 | # Use a double $ so make ignores it. | |
2266 | test "$program_suffix" != NONE && | |
2267 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2268 | # Double any \ or $. echo might interpret backslashes. | |
2269 | # By default was `s,x,x', remove it if useless. | |
2270 | cat <<\_ACEOF >conftest.sed | |
2271 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2272 | _ACEOF | |
2273 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2274 | rm -f conftest.sed | |
2275 | ||
2276 | # expand $ac_aux_dir to an absolute path | |
2277 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2278 | ||
2279 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2280 | # Use eval to expand $SHELL | |
2281 | if eval "$MISSING --run true"; then | |
2282 | am_missing_run="$MISSING --run " | |
2283 | else | |
2284 | am_missing_run= | |
2285 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2286 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2287 | fi | |
2288 | ||
2289 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
2290 | # We used to keeping the `.' as first argument, in order to | |
2291 | # allow $(mkdir_p) to be used without argument. As in | |
2292 | # $(mkdir_p) $(somedir) | |
2293 | # where $(somedir) is conditionally defined. However this is wrong | |
2294 | # for two reasons: | |
2295 | # 1. if the package is installed by a user who cannot write `.' | |
2296 | # make install will fail, | |
2297 | # 2. the above comment should most certainly read | |
2298 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2299 | # so it does not work when $(somedir) is undefined and | |
2300 | # $(DESTDIR) is not. | |
2301 | # To support the latter case, we have to write | |
2302 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2303 | # so the `.' trick is pointless. | |
2304 | mkdir_p='mkdir -p --' | |
2305 | else | |
2306 | # On NextStep and OpenStep, the `mkdir' command does not | |
2307 | # recognize any option. It will interpret all options as | |
2308 | # directories to create, and then abort because `.' already | |
2309 | # exists. | |
2310 | for d in ./-p ./--version; | |
2311 | do | |
2312 | test -d $d && rmdir $d | |
2313 | done | |
2314 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2315 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2316 | mkdir_p='$(mkinstalldirs)' | |
2317 | else | |
2318 | mkdir_p='$(install_sh) -d' | |
2319 | fi | |
2320 | fi | |
2321 | ||
2322 | for ac_prog in gawk mawk nawk awk | |
2323 | do | |
2324 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2325 | set dummy $ac_prog; ac_word=$2 | |
2326 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2327 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2328 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2330 | else | |
2331 | if test -n "$AWK"; then | |
2332 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2333 | else | |
2334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2335 | for as_dir in $PATH | |
2336 | do | |
2337 | IFS=$as_save_IFS | |
2338 | test -z "$as_dir" && as_dir=. | |
2339 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2340 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2341 | ac_cv_prog_AWK="$ac_prog" | |
2342 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2343 | break 2 | |
2344 | fi | |
2345 | done | |
2346 | done | |
2347 | IFS=$as_save_IFS | |
2348 | ||
2349 | fi | |
2350 | fi | |
2351 | AWK=$ac_cv_prog_AWK | |
2352 | if test -n "$AWK"; then | |
2353 | { echo "$as_me:$LINENO: result: $AWK" >&5 | |
2354 | echo "${ECHO_T}$AWK" >&6; } | |
2355 | else | |
2356 | { echo "$as_me:$LINENO: result: no" >&5 | |
2357 | echo "${ECHO_T}no" >&6; } | |
2358 | fi | |
2359 | ||
2360 | ||
2361 | test -n "$AWK" && break | |
2362 | done | |
2363 | ||
2364 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2365 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
2366 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2367 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
2368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2369 | else | |
2370 | cat >conftest.make <<\_ACEOF | |
2371 | SHELL = /bin/sh | |
2372 | all: | |
2373 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2374 | _ACEOF | |
2375 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2376 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2377 | *@@@%%%=?*=@@@%%%*) | |
2378 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2379 | *) | |
2380 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2381 | esac | |
2382 | rm -f conftest.make | |
2383 | fi | |
2384 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2385 | { echo "$as_me:$LINENO: result: yes" >&5 | |
2386 | echo "${ECHO_T}yes" >&6; } | |
2387 | SET_MAKE= | |
2388 | else | |
2389 | { echo "$as_me:$LINENO: result: no" >&5 | |
2390 | echo "${ECHO_T}no" >&6; } | |
2391 | SET_MAKE="MAKE=${MAKE-make}" | |
2392 | fi | |
2393 | ||
2394 | rm -rf .tst 2>/dev/null | |
2395 | mkdir .tst 2>/dev/null | |
2396 | if test -d .tst; then | |
2397 | am__leading_dot=. | |
2398 | else | |
2399 | am__leading_dot=_ | |
2400 | fi | |
2401 | rmdir .tst 2>/dev/null | |
2402 | ||
2403 | # test to see if srcdir already configured | |
2404 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2405 | test -f $srcdir/config.status; then | |
2406 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2407 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2408 | { (exit 1); exit 1; }; } | |
2409 | fi | |
2410 | ||
2411 | # test whether we have cygpath | |
2412 | if test -z "$CYGPATH_W"; then | |
2413 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2414 | CYGPATH_W='cygpath -w' | |
2415 | else | |
2416 | CYGPATH_W=echo | |
2417 | fi | |
2418 | fi | |
2419 | ||
2420 | ||
2421 | # Define the identity of the package. | |
2422 | PACKAGE='tiff' | |
2423 | VERSION='3.8.2' | |
2424 | ||
2425 | ||
2426 | cat >>confdefs.h <<_ACEOF | |
2427 | #define PACKAGE "$PACKAGE" | |
2428 | _ACEOF | |
2429 | ||
2430 | ||
2431 | cat >>confdefs.h <<_ACEOF | |
2432 | #define VERSION "$VERSION" | |
2433 | _ACEOF | |
2434 | ||
2435 | # Some tools Automake needs. | |
2436 | ||
2437 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2438 | ||
2439 | ||
2440 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2441 | ||
2442 | ||
2443 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2444 | ||
2445 | ||
2446 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2447 | ||
2448 | ||
2449 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2450 | ||
2451 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
2452 | ||
2453 | # Installed binaries are usually stripped using `strip' when the user | |
2454 | # run `make install-strip'. However `strip' might not be the right | |
2455 | # tool to use in cross-compilation environments, therefore Automake | |
2456 | # will honor the `STRIP' environment variable to overrule this program. | |
2457 | if test "$cross_compiling" != no; then | |
2458 | if test -n "$ac_tool_prefix"; then | |
2459 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2460 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2461 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2462 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2463 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2465 | else | |
2466 | if test -n "$STRIP"; then | |
2467 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2468 | else | |
2469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2470 | for as_dir in $PATH | |
2471 | do | |
2472 | IFS=$as_save_IFS | |
2473 | test -z "$as_dir" && as_dir=. | |
2474 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2475 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2476 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2477 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2478 | break 2 | |
2479 | fi | |
2480 | done | |
2481 | done | |
2482 | IFS=$as_save_IFS | |
2483 | ||
2484 | fi | |
2485 | fi | |
2486 | STRIP=$ac_cv_prog_STRIP | |
2487 | if test -n "$STRIP"; then | |
2488 | { echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2489 | echo "${ECHO_T}$STRIP" >&6; } | |
2490 | else | |
2491 | { echo "$as_me:$LINENO: result: no" >&5 | |
2492 | echo "${ECHO_T}no" >&6; } | |
2493 | fi | |
2494 | ||
2495 | ||
2496 | fi | |
2497 | if test -z "$ac_cv_prog_STRIP"; then | |
2498 | ac_ct_STRIP=$STRIP | |
2499 | # Extract the first word of "strip", so it can be a program name with args. | |
2500 | set dummy strip; ac_word=$2 | |
2501 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2503 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2505 | else | |
2506 | if test -n "$ac_ct_STRIP"; then | |
2507 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2508 | else | |
2509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2510 | for as_dir in $PATH | |
2511 | do | |
2512 | IFS=$as_save_IFS | |
2513 | test -z "$as_dir" && as_dir=. | |
2514 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2515 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2516 | ac_cv_prog_ac_ct_STRIP="strip" | |
2517 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2518 | break 2 | |
2519 | fi | |
2520 | done | |
2521 | done | |
2522 | IFS=$as_save_IFS | |
2523 | ||
2524 | fi | |
2525 | fi | |
2526 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2527 | if test -n "$ac_ct_STRIP"; then | |
2528 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2529 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
2530 | else | |
2531 | { echo "$as_me:$LINENO: result: no" >&5 | |
2532 | echo "${ECHO_T}no" >&6; } | |
2533 | fi | |
2534 | ||
2535 | if test "x$ac_ct_STRIP" = x; then | |
2536 | STRIP=":" | |
2537 | else | |
2538 | case $cross_compiling:$ac_tool_warned in | |
2539 | yes:) | |
2540 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2541 | whose name does not start with the host triplet. If you think this | |
2542 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2543 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2544 | whose name does not start with the host triplet. If you think this | |
2545 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2546 | ac_tool_warned=yes ;; | |
2547 | esac | |
2548 | STRIP=$ac_ct_STRIP | |
2549 | fi | |
2550 | else | |
2551 | STRIP="$ac_cv_prog_STRIP" | |
2552 | fi | |
2553 | ||
2554 | fi | |
2555 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
2556 | ||
2557 | # We need awk for the "check" target. The system "awk" is bad on | |
2558 | # some platforms. | |
2559 | # Always define AMTAR for backward compatibility. | |
2560 | ||
2561 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2562 | ||
2563 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2564 | ||
2565 | ||
2566 | ||
2567 | ||
2568 | ||
2569 | { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2570 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } | |
2571 | # Check whether --enable-maintainer-mode was given. | |
2572 | if test "${enable_maintainer_mode+set}" = set; then | |
2573 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
2574 | else | |
2575 | USE_MAINTAINER_MODE=no | |
2576 | fi | |
2577 | ||
2578 | { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
2579 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } | |
2580 | ||
2581 | ||
2582 | if test $USE_MAINTAINER_MODE = yes; then | |
2583 | MAINTAINER_MODE_TRUE= | |
2584 | MAINTAINER_MODE_FALSE='#' | |
2585 | else | |
2586 | MAINTAINER_MODE_TRUE='#' | |
2587 | MAINTAINER_MODE_FALSE= | |
2588 | fi | |
2589 | ||
2590 | MAINT=$MAINTAINER_MODE_TRUE | |
2591 | ||
2592 | ||
2593 | ||
2594 | LIBTIFF_MAJOR_VERSION=3 | |
2595 | LIBTIFF_MINOR_VERSION=8 | |
2596 | LIBTIFF_MICRO_VERSION=2 | |
2597 | LIBTIFF_ALPHA_VERSION= | |
2598 | LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION | |
2599 | LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"` | |
2600 | ||
2601 | # This is a special hack for OpenBSD and MirOS systems. The dynamic linker | |
2602 | # in OpenBSD uses some special semantics for shared libraries. Their soname | |
2603 | # contains only two numbers, major and minor. | |
2604 | # See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details. | |
2605 | case "$target_os" in | |
2606 | openbsd* | mirbsd*) | |
2607 | LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION:0 | |
2608 | ;; | |
2609 | *) | |
2610 | LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION | |
2611 | ;; | |
2612 | esac | |
2613 | ||
2614 | ||
2615 | ||
2616 | ||
2617 | ||
2618 | ||
2619 | ||
2620 | ||
2621 | ||
2622 | ac_ext=c | |
2623 | ac_cpp='$CPP $CPPFLAGS' | |
2624 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2625 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2626 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2627 | if test -n "$ac_tool_prefix"; then | |
2628 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2629 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2630 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2631 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2632 | if test "${ac_cv_prog_CC+set}" = set; then | |
2633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2634 | else | |
2635 | if test -n "$CC"; then | |
2636 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2637 | else | |
2638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2639 | for as_dir in $PATH | |
2640 | do | |
2641 | IFS=$as_save_IFS | |
2642 | test -z "$as_dir" && as_dir=. | |
2643 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2644 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2645 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2646 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2647 | break 2 | |
2648 | fi | |
2649 | done | |
2650 | done | |
2651 | IFS=$as_save_IFS | |
2652 | ||
2653 | fi | |
2654 | fi | |
2655 | CC=$ac_cv_prog_CC | |
2656 | if test -n "$CC"; then | |
2657 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2658 | echo "${ECHO_T}$CC" >&6; } | |
2659 | else | |
2660 | { echo "$as_me:$LINENO: result: no" >&5 | |
2661 | echo "${ECHO_T}no" >&6; } | |
2662 | fi | |
2663 | ||
2664 | ||
2665 | fi | |
2666 | if test -z "$ac_cv_prog_CC"; then | |
2667 | ac_ct_CC=$CC | |
2668 | # Extract the first word of "gcc", so it can be a program name with args. | |
2669 | set dummy gcc; ac_word=$2 | |
2670 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2671 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2672 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2674 | else | |
2675 | if test -n "$ac_ct_CC"; then | |
2676 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2677 | else | |
2678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2679 | for as_dir in $PATH | |
2680 | do | |
2681 | IFS=$as_save_IFS | |
2682 | test -z "$as_dir" && as_dir=. | |
2683 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2685 | ac_cv_prog_ac_ct_CC="gcc" | |
2686 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2687 | break 2 | |
2688 | fi | |
2689 | done | |
2690 | done | |
2691 | IFS=$as_save_IFS | |
2692 | ||
2693 | fi | |
2694 | fi | |
2695 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2696 | if test -n "$ac_ct_CC"; then | |
2697 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2698 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2699 | else | |
2700 | { echo "$as_me:$LINENO: result: no" >&5 | |
2701 | echo "${ECHO_T}no" >&6; } | |
2702 | fi | |
2703 | ||
2704 | if test "x$ac_ct_CC" = x; then | |
2705 | CC="" | |
2706 | else | |
2707 | case $cross_compiling:$ac_tool_warned in | |
2708 | yes:) | |
2709 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2710 | whose name does not start with the host triplet. If you think this | |
2711 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2712 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2713 | whose name does not start with the host triplet. If you think this | |
2714 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2715 | ac_tool_warned=yes ;; | |
2716 | esac | |
2717 | CC=$ac_ct_CC | |
2718 | fi | |
2719 | else | |
2720 | CC="$ac_cv_prog_CC" | |
2721 | fi | |
2722 | ||
2723 | if test -z "$CC"; then | |
2724 | if test -n "$ac_tool_prefix"; then | |
2725 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2726 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2727 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2729 | if test "${ac_cv_prog_CC+set}" = set; then | |
2730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2731 | else | |
2732 | if test -n "$CC"; then | |
2733 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2734 | else | |
2735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2736 | for as_dir in $PATH | |
2737 | do | |
2738 | IFS=$as_save_IFS | |
2739 | test -z "$as_dir" && as_dir=. | |
2740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2741 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2742 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2744 | break 2 | |
2745 | fi | |
2746 | done | |
2747 | done | |
2748 | IFS=$as_save_IFS | |
2749 | ||
2750 | fi | |
2751 | fi | |
2752 | CC=$ac_cv_prog_CC | |
2753 | if test -n "$CC"; then | |
2754 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2755 | echo "${ECHO_T}$CC" >&6; } | |
2756 | else | |
2757 | { echo "$as_me:$LINENO: result: no" >&5 | |
2758 | echo "${ECHO_T}no" >&6; } | |
2759 | fi | |
2760 | ||
2761 | ||
2762 | fi | |
2763 | fi | |
2764 | if test -z "$CC"; then | |
2765 | # Extract the first word of "cc", so it can be a program name with args. | |
2766 | set dummy cc; ac_word=$2 | |
2767 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2769 | if test "${ac_cv_prog_CC+set}" = set; then | |
2770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2771 | else | |
2772 | if test -n "$CC"; then | |
2773 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2774 | else | |
2775 | ac_prog_rejected=no | |
2776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2777 | for as_dir in $PATH | |
2778 | do | |
2779 | IFS=$as_save_IFS | |
2780 | test -z "$as_dir" && as_dir=. | |
2781 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2782 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2783 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2784 | ac_prog_rejected=yes | |
2785 | continue | |
2786 | fi | |
2787 | ac_cv_prog_CC="cc" | |
2788 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2789 | break 2 | |
2790 | fi | |
2791 | done | |
2792 | done | |
2793 | IFS=$as_save_IFS | |
2794 | ||
2795 | if test $ac_prog_rejected = yes; then | |
2796 | # We found a bogon in the path, so make sure we never use it. | |
2797 | set dummy $ac_cv_prog_CC | |
2798 | shift | |
2799 | if test $# != 0; then | |
2800 | # We chose a different compiler from the bogus one. | |
2801 | # However, it has the same basename, so the bogon will be chosen | |
2802 | # first if we set CC to just the basename; use the full file name. | |
2803 | shift | |
2804 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2805 | fi | |
2806 | fi | |
2807 | fi | |
2808 | fi | |
2809 | CC=$ac_cv_prog_CC | |
2810 | if test -n "$CC"; then | |
2811 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2812 | echo "${ECHO_T}$CC" >&6; } | |
2813 | else | |
2814 | { echo "$as_me:$LINENO: result: no" >&5 | |
2815 | echo "${ECHO_T}no" >&6; } | |
2816 | fi | |
2817 | ||
2818 | ||
2819 | fi | |
2820 | if test -z "$CC"; then | |
2821 | if test -n "$ac_tool_prefix"; then | |
2822 | for ac_prog in cl.exe | |
2823 | do | |
2824 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2825 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2826 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2828 | if test "${ac_cv_prog_CC+set}" = set; then | |
2829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2830 | else | |
2831 | if test -n "$CC"; then | |
2832 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2833 | else | |
2834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2835 | for as_dir in $PATH | |
2836 | do | |
2837 | IFS=$as_save_IFS | |
2838 | test -z "$as_dir" && as_dir=. | |
2839 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2841 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2843 | break 2 | |
2844 | fi | |
2845 | done | |
2846 | done | |
2847 | IFS=$as_save_IFS | |
2848 | ||
2849 | fi | |
2850 | fi | |
2851 | CC=$ac_cv_prog_CC | |
2852 | if test -n "$CC"; then | |
2853 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2854 | echo "${ECHO_T}$CC" >&6; } | |
2855 | else | |
2856 | { echo "$as_me:$LINENO: result: no" >&5 | |
2857 | echo "${ECHO_T}no" >&6; } | |
2858 | fi | |
2859 | ||
2860 | ||
2861 | test -n "$CC" && break | |
2862 | done | |
2863 | fi | |
2864 | if test -z "$CC"; then | |
2865 | ac_ct_CC=$CC | |
2866 | for ac_prog in cl.exe | |
2867 | do | |
2868 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2869 | set dummy $ac_prog; ac_word=$2 | |
2870 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2871 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2872 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2874 | else | |
2875 | if test -n "$ac_ct_CC"; then | |
2876 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2877 | else | |
2878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2879 | for as_dir in $PATH | |
2880 | do | |
2881 | IFS=$as_save_IFS | |
2882 | test -z "$as_dir" && as_dir=. | |
2883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2884 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2885 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2886 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2887 | break 2 | |
2888 | fi | |
2889 | done | |
2890 | done | |
2891 | IFS=$as_save_IFS | |
2892 | ||
2893 | fi | |
2894 | fi | |
2895 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2896 | if test -n "$ac_ct_CC"; then | |
2897 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2898 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2899 | else | |
2900 | { echo "$as_me:$LINENO: result: no" >&5 | |
2901 | echo "${ECHO_T}no" >&6; } | |
2902 | fi | |
2903 | ||
2904 | ||
2905 | test -n "$ac_ct_CC" && break | |
2906 | done | |
2907 | ||
2908 | if test "x$ac_ct_CC" = x; then | |
2909 | CC="" | |
2910 | else | |
2911 | case $cross_compiling:$ac_tool_warned in | |
2912 | yes:) | |
2913 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2914 | whose name does not start with the host triplet. If you think this | |
2915 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2916 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2917 | whose name does not start with the host triplet. If you think this | |
2918 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2919 | ac_tool_warned=yes ;; | |
2920 | esac | |
2921 | CC=$ac_ct_CC | |
2922 | fi | |
2923 | fi | |
2924 | ||
2925 | fi | |
2926 | ||
2927 | ||
2928 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2929 | See \`config.log' for more details." >&5 | |
2930 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2931 | See \`config.log' for more details." >&2;} | |
2932 | { (exit 1); exit 1; }; } | |
2933 | ||
2934 | # Provide some information about the compiler. | |
2935 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
2936 | ac_compiler=`set X $ac_compile; echo $2` | |
2937 | { (ac_try="$ac_compiler --version >&5" | |
2938 | case "(($ac_try" in | |
2939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2940 | *) ac_try_echo=$ac_try;; | |
2941 | esac | |
2942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2943 | (eval "$ac_compiler --version >&5") 2>&5 | |
2944 | ac_status=$? | |
2945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2946 | (exit $ac_status); } | |
2947 | { (ac_try="$ac_compiler -v >&5" | |
2948 | case "(($ac_try" in | |
2949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2950 | *) ac_try_echo=$ac_try;; | |
2951 | esac | |
2952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2953 | (eval "$ac_compiler -v >&5") 2>&5 | |
2954 | ac_status=$? | |
2955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2956 | (exit $ac_status); } | |
2957 | { (ac_try="$ac_compiler -V >&5" | |
2958 | case "(($ac_try" in | |
2959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2960 | *) ac_try_echo=$ac_try;; | |
2961 | esac | |
2962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2963 | (eval "$ac_compiler -V >&5") 2>&5 | |
2964 | ac_status=$? | |
2965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2966 | (exit $ac_status); } | |
2967 | ||
2968 | cat >conftest.$ac_ext <<_ACEOF | |
2969 | /* confdefs.h. */ | |
2970 | _ACEOF | |
2971 | cat confdefs.h >>conftest.$ac_ext | |
2972 | cat >>conftest.$ac_ext <<_ACEOF | |
2973 | /* end confdefs.h. */ | |
2974 | ||
2975 | int | |
2976 | main () | |
2977 | { | |
2978 | ||
2979 | ; | |
2980 | return 0; | |
2981 | } | |
2982 | _ACEOF | |
2983 | ac_clean_files_save=$ac_clean_files | |
2984 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2985 | # Try to create an executable without -o first, disregard a.out. | |
2986 | # It will help us diagnose broken compilers, and finding out an intuition | |
2987 | # of exeext. | |
2988 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2989 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2990 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2991 | # | |
2992 | # List of possible output files, starting from the most likely. | |
2993 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2994 | # only as a last resort. b.out is created by i960 compilers. | |
2995 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2996 | # | |
2997 | # The IRIX 6 linker writes into existing files which may not be | |
2998 | # executable, retaining their permissions. Remove them first so a | |
2999 | # subsequent execution test works. | |
3000 | ac_rmfiles= | |
3001 | for ac_file in $ac_files | |
3002 | do | |
3003 | case $ac_file in | |
3004 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
3005 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3006 | esac | |
3007 | done | |
3008 | rm -f $ac_rmfiles | |
3009 | ||
3010 | if { (ac_try="$ac_link_default" | |
3011 | case "(($ac_try" in | |
3012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3013 | *) ac_try_echo=$ac_try;; | |
3014 | esac | |
3015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3016 | (eval "$ac_link_default") 2>&5 | |
3017 | ac_status=$? | |
3018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3019 | (exit $ac_status); }; then | |
3020 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3021 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3022 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3023 | # so that the user can short-circuit this test for compilers unknown to | |
3024 | # Autoconf. | |
3025 | for ac_file in $ac_files '' | |
3026 | do | |
3027 | test -f "$ac_file" || continue | |
3028 | case $ac_file in | |
3029 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | |
3030 | ;; | |
3031 | [ab].out ) | |
3032 | # We found the default executable, but exeext='' is most | |
3033 | # certainly right. | |
3034 | break;; | |
3035 | *.* ) | |
3036 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3037 | then :; else | |
3038 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3039 | fi | |
3040 | # We set ac_cv_exeext here because the later test for it is not | |
3041 | # safe: cross compilers may not add the suffix if given an `-o' | |
3042 | # argument, so we may need to know it at that point already. | |
3043 | # Even if this section looks crufty: it has the advantage of | |
3044 | # actually working. | |
3045 | break;; | |
3046 | * ) | |
3047 | break;; | |
3048 | esac | |
3049 | done | |
3050 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3051 | ||
3052 | else | |
3053 | ac_file='' | |
3054 | fi | |
3055 | ||
3056 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3057 | echo "${ECHO_T}$ac_file" >&6; } | |
3058 | if test -z "$ac_file"; then | |
3059 | echo "$as_me: failed program was:" >&5 | |
3060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3061 | ||
3062 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
3063 | See \`config.log' for more details." >&5 | |
3064 | echo "$as_me: error: C compiler cannot create executables | |
3065 | See \`config.log' for more details." >&2;} | |
3066 | { (exit 77); exit 77; }; } | |
3067 | fi | |
3068 | ||
3069 | ac_exeext=$ac_cv_exeext | |
3070 | ||
3071 | # Check that the compiler produces executables we can run. If not, either | |
3072 | # the compiler is broken, or we cross compile. | |
3073 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
3074 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
3075 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
3076 | # If not cross compiling, check that we can run a simple program. | |
3077 | if test "$cross_compiling" != yes; then | |
3078 | if { ac_try='./$ac_file' | |
3079 | { (case "(($ac_try" in | |
3080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3081 | *) ac_try_echo=$ac_try;; | |
3082 | esac | |
3083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3084 | (eval "$ac_try") 2>&5 | |
3085 | ac_status=$? | |
3086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3087 | (exit $ac_status); }; }; then | |
3088 | cross_compiling=no | |
3089 | else | |
3090 | if test "$cross_compiling" = maybe; then | |
3091 | cross_compiling=yes | |
3092 | else | |
3093 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
3094 | If you meant to cross compile, use \`--host'. | |
3095 | See \`config.log' for more details." >&5 | |
3096 | echo "$as_me: error: cannot run C compiled programs. | |
3097 | If you meant to cross compile, use \`--host'. | |
3098 | See \`config.log' for more details." >&2;} | |
3099 | { (exit 1); exit 1; }; } | |
3100 | fi | |
3101 | fi | |
3102 | fi | |
3103 | { echo "$as_me:$LINENO: result: yes" >&5 | |
3104 | echo "${ECHO_T}yes" >&6; } | |
3105 | ||
3106 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
3107 | ac_clean_files=$ac_clean_files_save | |
3108 | # Check that the compiler produces executables we can run. If not, either | |
3109 | # the compiler is broken, or we cross compile. | |
3110 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
3111 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
3112 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3113 | echo "${ECHO_T}$cross_compiling" >&6; } | |
3114 | ||
3115 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3116 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
3117 | if { (ac_try="$ac_link" | |
3118 | case "(($ac_try" in | |
3119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3120 | *) ac_try_echo=$ac_try;; | |
3121 | esac | |
3122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3123 | (eval "$ac_link") 2>&5 | |
3124 | ac_status=$? | |
3125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3126 | (exit $ac_status); }; then | |
3127 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3128 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3129 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3130 | # `rm'. | |
3131 | for ac_file in conftest.exe conftest conftest.*; do | |
3132 | test -f "$ac_file" || continue | |
3133 | case $ac_file in | |
3134 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
3135 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3136 | break;; | |
3137 | * ) break;; | |
3138 | esac | |
3139 | done | |
3140 | else | |
3141 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
3142 | See \`config.log' for more details." >&5 | |
3143 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3144 | See \`config.log' for more details." >&2;} | |
3145 | { (exit 1); exit 1; }; } | |
3146 | fi | |
3147 | ||
3148 | rm -f conftest$ac_cv_exeext | |
3149 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
3150 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
3151 | ||
3152 | rm -f conftest.$ac_ext | |
3153 | EXEEXT=$ac_cv_exeext | |
3154 | ac_exeext=$EXEEXT | |
3155 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
3156 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
3157 | if test "${ac_cv_objext+set}" = set; then | |
3158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3159 | else | |
3160 | cat >conftest.$ac_ext <<_ACEOF | |
3161 | /* confdefs.h. */ | |
3162 | _ACEOF | |
3163 | cat confdefs.h >>conftest.$ac_ext | |
3164 | cat >>conftest.$ac_ext <<_ACEOF | |
3165 | /* end confdefs.h. */ | |
3166 | ||
3167 | int | |
3168 | main () | |
3169 | { | |
3170 | ||
3171 | ; | |
3172 | return 0; | |
3173 | } | |
3174 | _ACEOF | |
3175 | rm -f conftest.o conftest.obj | |
3176 | if { (ac_try="$ac_compile" | |
3177 | case "(($ac_try" in | |
3178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3179 | *) ac_try_echo=$ac_try;; | |
3180 | esac | |
3181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3182 | (eval "$ac_compile") 2>&5 | |
3183 | ac_status=$? | |
3184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3185 | (exit $ac_status); }; then | |
3186 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3187 | test -f "$ac_file" || continue; | |
3188 | case $ac_file in | |
3189 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | |
3190 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3191 | break;; | |
3192 | esac | |
3193 | done | |
3194 | else | |
3195 | echo "$as_me: failed program was:" >&5 | |
3196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3197 | ||
3198 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3199 | See \`config.log' for more details." >&5 | |
3200 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3201 | See \`config.log' for more details." >&2;} | |
3202 | { (exit 1); exit 1; }; } | |
3203 | fi | |
3204 | ||
3205 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3206 | fi | |
3207 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
3208 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
3209 | OBJEXT=$ac_cv_objext | |
3210 | ac_objext=$OBJEXT | |
3211 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
3212 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
3213 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3215 | else | |
3216 | cat >conftest.$ac_ext <<_ACEOF | |
3217 | /* confdefs.h. */ | |
3218 | _ACEOF | |
3219 | cat confdefs.h >>conftest.$ac_ext | |
3220 | cat >>conftest.$ac_ext <<_ACEOF | |
3221 | /* end confdefs.h. */ | |
3222 | ||
3223 | int | |
3224 | main () | |
3225 | { | |
3226 | #ifndef __GNUC__ | |
3227 | choke me | |
3228 | #endif | |
3229 | ||
3230 | ; | |
3231 | return 0; | |
3232 | } | |
3233 | _ACEOF | |
3234 | rm -f conftest.$ac_objext | |
3235 | if { (ac_try="$ac_compile" | |
3236 | case "(($ac_try" in | |
3237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3238 | *) ac_try_echo=$ac_try;; | |
3239 | esac | |
3240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3241 | (eval "$ac_compile") 2>conftest.er1 | |
3242 | ac_status=$? | |
3243 | grep -v '^ *+' conftest.er1 >conftest.err | |
3244 | rm -f conftest.er1 | |
3245 | cat conftest.err >&5 | |
3246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3247 | (exit $ac_status); } && { | |
3248 | test -z "$ac_c_werror_flag" || | |
3249 | test ! -s conftest.err | |
3250 | } && test -s conftest.$ac_objext; then | |
3251 | ac_compiler_gnu=yes | |
3252 | else | |
3253 | echo "$as_me: failed program was:" >&5 | |
3254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3255 | ||
3256 | ac_compiler_gnu=no | |
3257 | fi | |
3258 | ||
3259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3260 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3261 | ||
3262 | fi | |
3263 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3264 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
3265 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3266 | ac_test_CFLAGS=${CFLAGS+set} | |
3267 | ac_save_CFLAGS=$CFLAGS | |
3268 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3269 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
3270 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3272 | else | |
3273 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3274 | ac_c_werror_flag=yes | |
3275 | ac_cv_prog_cc_g=no | |
3276 | CFLAGS="-g" | |
3277 | cat >conftest.$ac_ext <<_ACEOF | |
3278 | /* confdefs.h. */ | |
3279 | _ACEOF | |
3280 | cat confdefs.h >>conftest.$ac_ext | |
3281 | cat >>conftest.$ac_ext <<_ACEOF | |
3282 | /* end confdefs.h. */ | |
3283 | ||
3284 | int | |
3285 | main () | |
3286 | { | |
3287 | ||
3288 | ; | |
3289 | return 0; | |
3290 | } | |
3291 | _ACEOF | |
3292 | rm -f conftest.$ac_objext | |
3293 | if { (ac_try="$ac_compile" | |
3294 | case "(($ac_try" in | |
3295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3296 | *) ac_try_echo=$ac_try;; | |
3297 | esac | |
3298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3299 | (eval "$ac_compile") 2>conftest.er1 | |
3300 | ac_status=$? | |
3301 | grep -v '^ *+' conftest.er1 >conftest.err | |
3302 | rm -f conftest.er1 | |
3303 | cat conftest.err >&5 | |
3304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3305 | (exit $ac_status); } && { | |
3306 | test -z "$ac_c_werror_flag" || | |
3307 | test ! -s conftest.err | |
3308 | } && test -s conftest.$ac_objext; then | |
3309 | ac_cv_prog_cc_g=yes | |
3310 | else | |
3311 | echo "$as_me: failed program was:" >&5 | |
3312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3313 | ||
3314 | CFLAGS="" | |
3315 | cat >conftest.$ac_ext <<_ACEOF | |
3316 | /* confdefs.h. */ | |
3317 | _ACEOF | |
3318 | cat confdefs.h >>conftest.$ac_ext | |
3319 | cat >>conftest.$ac_ext <<_ACEOF | |
3320 | /* end confdefs.h. */ | |
3321 | ||
3322 | int | |
3323 | main () | |
3324 | { | |
3325 | ||
3326 | ; | |
3327 | return 0; | |
3328 | } | |
3329 | _ACEOF | |
3330 | rm -f conftest.$ac_objext | |
3331 | if { (ac_try="$ac_compile" | |
3332 | case "(($ac_try" in | |
3333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3334 | *) ac_try_echo=$ac_try;; | |
3335 | esac | |
3336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3337 | (eval "$ac_compile") 2>conftest.er1 | |
3338 | ac_status=$? | |
3339 | grep -v '^ *+' conftest.er1 >conftest.err | |
3340 | rm -f conftest.er1 | |
3341 | cat conftest.err >&5 | |
3342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3343 | (exit $ac_status); } && { | |
3344 | test -z "$ac_c_werror_flag" || | |
3345 | test ! -s conftest.err | |
3346 | } && test -s conftest.$ac_objext; then | |
3347 | : | |
3348 | else | |
3349 | echo "$as_me: failed program was:" >&5 | |
3350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3351 | ||
3352 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3353 | CFLAGS="-g" | |
3354 | cat >conftest.$ac_ext <<_ACEOF | |
3355 | /* confdefs.h. */ | |
3356 | _ACEOF | |
3357 | cat confdefs.h >>conftest.$ac_ext | |
3358 | cat >>conftest.$ac_ext <<_ACEOF | |
3359 | /* end confdefs.h. */ | |
3360 | ||
3361 | int | |
3362 | main () | |
3363 | { | |
3364 | ||
3365 | ; | |
3366 | return 0; | |
3367 | } | |
3368 | _ACEOF | |
3369 | rm -f conftest.$ac_objext | |
3370 | if { (ac_try="$ac_compile" | |
3371 | case "(($ac_try" in | |
3372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3373 | *) ac_try_echo=$ac_try;; | |
3374 | esac | |
3375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3376 | (eval "$ac_compile") 2>conftest.er1 | |
3377 | ac_status=$? | |
3378 | grep -v '^ *+' conftest.er1 >conftest.err | |
3379 | rm -f conftest.er1 | |
3380 | cat conftest.err >&5 | |
3381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3382 | (exit $ac_status); } && { | |
3383 | test -z "$ac_c_werror_flag" || | |
3384 | test ! -s conftest.err | |
3385 | } && test -s conftest.$ac_objext; then | |
3386 | ac_cv_prog_cc_g=yes | |
3387 | else | |
3388 | echo "$as_me: failed program was:" >&5 | |
3389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3390 | ||
3391 | ||
3392 | fi | |
3393 | ||
3394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3395 | fi | |
3396 | ||
3397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3398 | fi | |
3399 | ||
3400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3401 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3402 | fi | |
3403 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3404 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
3405 | if test "$ac_test_CFLAGS" = set; then | |
3406 | CFLAGS=$ac_save_CFLAGS | |
3407 | elif test $ac_cv_prog_cc_g = yes; then | |
3408 | if test "$GCC" = yes; then | |
3409 | CFLAGS="-g -O2" | |
3410 | else | |
3411 | CFLAGS="-g" | |
3412 | fi | |
3413 | else | |
3414 | if test "$GCC" = yes; then | |
3415 | CFLAGS="-O2" | |
3416 | else | |
3417 | CFLAGS= | |
3418 | fi | |
3419 | fi | |
3420 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
3421 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
3422 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
3423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3424 | else | |
3425 | ac_cv_prog_cc_c89=no | |
3426 | ac_save_CC=$CC | |
3427 | cat >conftest.$ac_ext <<_ACEOF | |
3428 | /* confdefs.h. */ | |
3429 | _ACEOF | |
3430 | cat confdefs.h >>conftest.$ac_ext | |
3431 | cat >>conftest.$ac_ext <<_ACEOF | |
3432 | /* end confdefs.h. */ | |
3433 | #include <stdarg.h> | |
3434 | #include <stdio.h> | |
3435 | #include <sys/types.h> | |
3436 | #include <sys/stat.h> | |
3437 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3438 | struct buf { int x; }; | |
3439 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3440 | static char *e (p, i) | |
3441 | char **p; | |
3442 | int i; | |
3443 | { | |
3444 | return p[i]; | |
3445 | } | |
3446 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3447 | { | |
3448 | char *s; | |
3449 | va_list v; | |
3450 | va_start (v,p); | |
3451 | s = g (p, va_arg (v,int)); | |
3452 | va_end (v); | |
3453 | return s; | |
3454 | } | |
3455 | ||
3456 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3457 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3458 | These don't provoke an error unfortunately, instead are silently treated | |
3459 | as 'x'. The following induces an error, until -std is added to get | |
3460 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3461 | array size at least. It's necessary to write '\x00'==0 to get something | |
3462 | that's true only with -std. */ | |
3463 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3464 | ||
3465 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3466 | inside strings and character constants. */ | |
3467 | #define FOO(x) 'x' | |
3468 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3469 | ||
3470 | int test (int i, double x); | |
3471 | struct s1 {int (*f) (int a);}; | |
3472 | struct s2 {int (*f) (double a);}; | |
3473 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3474 | int argc; | |
3475 | char **argv; | |
3476 | int | |
3477 | main () | |
3478 | { | |
3479 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3480 | ; | |
3481 | return 0; | |
3482 | } | |
3483 | _ACEOF | |
3484 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3485 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3486 | do | |
3487 | CC="$ac_save_CC $ac_arg" | |
3488 | rm -f conftest.$ac_objext | |
3489 | if { (ac_try="$ac_compile" | |
3490 | case "(($ac_try" in | |
3491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3492 | *) ac_try_echo=$ac_try;; | |
3493 | esac | |
3494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3495 | (eval "$ac_compile") 2>conftest.er1 | |
3496 | ac_status=$? | |
3497 | grep -v '^ *+' conftest.er1 >conftest.err | |
3498 | rm -f conftest.er1 | |
3499 | cat conftest.err >&5 | |
3500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3501 | (exit $ac_status); } && { | |
3502 | test -z "$ac_c_werror_flag" || | |
3503 | test ! -s conftest.err | |
3504 | } && test -s conftest.$ac_objext; then | |
3505 | ac_cv_prog_cc_c89=$ac_arg | |
3506 | else | |
3507 | echo "$as_me: failed program was:" >&5 | |
3508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3509 | ||
3510 | ||
3511 | fi | |
3512 | ||
3513 | rm -f core conftest.err conftest.$ac_objext | |
3514 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3515 | done | |
3516 | rm -f conftest.$ac_ext | |
3517 | CC=$ac_save_CC | |
3518 | ||
3519 | fi | |
3520 | # AC_CACHE_VAL | |
3521 | case "x$ac_cv_prog_cc_c89" in | |
3522 | x) | |
3523 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
3524 | echo "${ECHO_T}none needed" >&6; } ;; | |
3525 | xno) | |
3526 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3527 | echo "${ECHO_T}unsupported" >&6; } ;; | |
3528 | *) | |
3529 | CC="$CC $ac_cv_prog_cc_c89" | |
3530 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3531 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
3532 | esac | |
3533 | ||
3534 | ||
3535 | ac_ext=c | |
3536 | ac_cpp='$CPP $CPPFLAGS' | |
3537 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3538 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3539 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3540 | DEPDIR="${am__leading_dot}deps" | |
3541 | ||
3542 | ac_config_commands="$ac_config_commands depfiles" | |
3543 | ||
3544 | ||
3545 | am_make=${MAKE-make} | |
3546 | cat > confinc << 'END' | |
3547 | am__doit: | |
3548 | @echo done | |
3549 | .PHONY: am__doit | |
3550 | END | |
3551 | # If we don't find an include directive, just comment out the code. | |
3552 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
3553 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | |
3554 | am__include="#" | |
3555 | am__quote= | |
3556 | _am_result=none | |
3557 | # First try GNU make style include. | |
3558 | echo "include confinc" > confmf | |
3559 | # We grep out `Entering directory' and `Leaving directory' | |
3560 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3561 | # In particular we don't look at `^make:' because GNU make might | |
3562 | # be invoked under some other name (usually "gmake"), in which | |
3563 | # case it prints its new name instead of `make'. | |
3564 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3565 | am__include=include | |
3566 | am__quote= | |
3567 | _am_result=GNU | |
3568 | fi | |
3569 | # Now try BSD make style include. | |
3570 | if test "$am__include" = "#"; then | |
3571 | echo '.include "confinc"' > confmf | |
3572 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3573 | am__include=.include | |
3574 | am__quote="\"" | |
3575 | _am_result=BSD | |
3576 | fi | |
3577 | fi | |
3578 | ||
3579 | ||
3580 | { echo "$as_me:$LINENO: result: $_am_result" >&5 | |
3581 | echo "${ECHO_T}$_am_result" >&6; } | |
3582 | rm -f confinc confmf | |
3583 | ||
3584 | # Check whether --enable-dependency-tracking was given. | |
3585 | if test "${enable_dependency_tracking+set}" = set; then | |
3586 | enableval=$enable_dependency_tracking; | |
3587 | fi | |
3588 | ||
3589 | if test "x$enable_dependency_tracking" != xno; then | |
3590 | am_depcomp="$ac_aux_dir/depcomp" | |
3591 | AMDEPBACKSLASH='\' | |
3592 | fi | |
3593 | ||
3594 | ||
3595 | if test "x$enable_dependency_tracking" != xno; then | |
3596 | AMDEP_TRUE= | |
3597 | AMDEP_FALSE='#' | |
3598 | else | |
3599 | AMDEP_TRUE='#' | |
3600 | AMDEP_FALSE= | |
3601 | fi | |
3602 | ||
3603 | ||
3604 | ||
3605 | ||
3606 | depcc="$CC" am_compiler_list= | |
3607 | ||
3608 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3609 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
3610 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3612 | else | |
3613 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3614 | # We make a subdir and do the tests there. Otherwise we can end up | |
3615 | # making bogus files that we don't know about and never remove. For | |
3616 | # instance it was reported that on HP-UX the gcc test will end up | |
3617 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3618 | # in D'. | |
3619 | mkdir conftest.dir | |
3620 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3621 | # using a relative directory. | |
3622 | cp "$am_depcomp" conftest.dir | |
3623 | cd conftest.dir | |
3624 | # We will build objects and dependencies in a subdirectory because | |
3625 | # it helps to detect inapplicable dependency modes. For instance | |
3626 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3627 | # side effect of compilation, but ICC will put the dependencies in | |
3628 | # the current directory while Tru64 will put them in the object | |
3629 | # directory. | |
3630 | mkdir sub | |
3631 | ||
3632 | am_cv_CC_dependencies_compiler_type=none | |
3633 | if test "$am_compiler_list" = ""; then | |
3634 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3635 | fi | |
3636 | for depmode in $am_compiler_list; do | |
3637 | # Setup a source with many dependencies, because some compilers | |
3638 | # like to wrap large dependency lists on column 80 (with \), and | |
3639 | # we should not choose a depcomp mode which is confused by this. | |
3640 | # | |
3641 | # We need to recreate these files for each test, as the compiler may | |
3642 | # overwrite some of them when testing with obscure command lines. | |
3643 | # This happens at least with the AIX C compiler. | |
3644 | : > sub/conftest.c | |
3645 | for i in 1 2 3 4 5 6; do | |
3646 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3647 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3648 | # Solaris 8's {/usr,}/bin/sh. | |
3649 | touch sub/conftst$i.h | |
3650 | done | |
3651 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3652 | ||
3653 | case $depmode in | |
3654 | nosideeffect) | |
3655 | # after this tag, mechanisms are not by side-effect, so they'll | |
3656 | # only be used when explicitly requested | |
3657 | if test "x$enable_dependency_tracking" = xyes; then | |
3658 | continue | |
3659 | else | |
3660 | break | |
3661 | fi | |
3662 | ;; | |
3663 | none) break ;; | |
3664 | esac | |
3665 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3666 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3667 | # handle `-M -o', and we need to detect this. | |
3668 | if depmode=$depmode \ | |
3669 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3670 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3671 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3672 | >/dev/null 2>conftest.err && | |
3673 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3674 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3675 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3676 | # icc doesn't choke on unknown options, it will just issue warnings | |
3677 | # or remarks (even with -Werror). So we grep stderr for any message | |
3678 | # that says an option was ignored or not supported. | |
3679 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3680 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3681 | # The diagnosis changed in icc 8.0: | |
3682 | # icc: Command line remark: option '-MP' not supported | |
3683 | if (grep 'ignoring option' conftest.err || | |
3684 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3685 | am_cv_CC_dependencies_compiler_type=$depmode | |
3686 | break | |
3687 | fi | |
3688 | fi | |
3689 | done | |
3690 | ||
3691 | cd .. | |
3692 | rm -rf conftest.dir | |
3693 | else | |
3694 | am_cv_CC_dependencies_compiler_type=none | |
3695 | fi | |
3696 | ||
3697 | fi | |
3698 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3699 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | |
3700 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3701 | ||
3702 | ||
3703 | ||
3704 | if | |
3705 | test "x$enable_dependency_tracking" != xno \ | |
3706 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3707 | am__fastdepCC_TRUE= | |
3708 | am__fastdepCC_FALSE='#' | |
3709 | else | |
3710 | am__fastdepCC_TRUE='#' | |
3711 | am__fastdepCC_FALSE= | |
3712 | fi | |
3713 | ||
3714 | ||
3715 | if test "x$CC" != xcc; then | |
3716 | { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 | |
3717 | echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } | |
3718 | else | |
3719 | { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 | |
3720 | echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } | |
3721 | fi | |
3722 | set dummy $CC; ac_cc=`echo $2 | | |
3723 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
3724 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then | |
3725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3726 | else | |
3727 | cat >conftest.$ac_ext <<_ACEOF | |
3728 | /* confdefs.h. */ | |
3729 | _ACEOF | |
3730 | cat confdefs.h >>conftest.$ac_ext | |
3731 | cat >>conftest.$ac_ext <<_ACEOF | |
3732 | /* end confdefs.h. */ | |
3733 | ||
3734 | int | |
3735 | main () | |
3736 | { | |
3737 | ||
3738 | ; | |
3739 | return 0; | |
3740 | } | |
3741 | _ACEOF | |
3742 | # Make sure it works both with $CC and with simple cc. | |
3743 | # We do the test twice because some compilers refuse to overwrite an | |
3744 | # existing .o file with -o, though they will create one. | |
3745 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
3746 | rm -f conftest2.* | |
3747 | if { (case "(($ac_try" in | |
3748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3749 | *) ac_try_echo=$ac_try;; | |
3750 | esac | |
3751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3752 | (eval "$ac_try") 2>&5 | |
3753 | ac_status=$? | |
3754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3755 | (exit $ac_status); } && | |
3756 | test -f conftest2.$ac_objext && { (case "(($ac_try" in | |
3757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3758 | *) ac_try_echo=$ac_try;; | |
3759 | esac | |
3760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3761 | (eval "$ac_try") 2>&5 | |
3762 | ac_status=$? | |
3763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3764 | (exit $ac_status); }; | |
3765 | then | |
3766 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
3767 | if test "x$CC" != xcc; then | |
3768 | # Test first that cc exists at all. | |
3769 | if { ac_try='cc -c conftest.$ac_ext >&5' | |
3770 | { (case "(($ac_try" in | |
3771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3772 | *) ac_try_echo=$ac_try;; | |
3773 | esac | |
3774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3775 | (eval "$ac_try") 2>&5 | |
3776 | ac_status=$? | |
3777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3778 | (exit $ac_status); }; }; then | |
3779 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
3780 | rm -f conftest2.* | |
3781 | if { (case "(($ac_try" in | |
3782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3783 | *) ac_try_echo=$ac_try;; | |
3784 | esac | |
3785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3786 | (eval "$ac_try") 2>&5 | |
3787 | ac_status=$? | |
3788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3789 | (exit $ac_status); } && | |
3790 | test -f conftest2.$ac_objext && { (case "(($ac_try" in | |
3791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3792 | *) ac_try_echo=$ac_try;; | |
3793 | esac | |
3794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3795 | (eval "$ac_try") 2>&5 | |
3796 | ac_status=$? | |
3797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3798 | (exit $ac_status); }; | |
3799 | then | |
3800 | # cc works too. | |
3801 | : | |
3802 | else | |
3803 | # cc exists but doesn't like -o. | |
3804 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
3805 | fi | |
3806 | fi | |
3807 | fi | |
3808 | else | |
3809 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
3810 | fi | |
3811 | rm -f core conftest* | |
3812 | ||
3813 | fi | |
3814 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | |
3815 | { echo "$as_me:$LINENO: result: yes" >&5 | |
3816 | echo "${ECHO_T}yes" >&6; } | |
3817 | else | |
3818 | { echo "$as_me:$LINENO: result: no" >&5 | |
3819 | echo "${ECHO_T}no" >&6; } | |
3820 | ||
3821 | cat >>confdefs.h <<\_ACEOF | |
3822 | #define NO_MINUS_C_MINUS_O 1 | |
3823 | _ACEOF | |
3824 | ||
3825 | fi | |
3826 | ||
3827 | # FIXME: we rely on the cache variable name because | |
3828 | # there is no other way. | |
3829 | set dummy $CC | |
3830 | ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
3831 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then | |
3832 | # Losing compiler, so override with the script. | |
3833 | # FIXME: It is wrong to rewrite CC. | |
3834 | # But if we don't then we get into trouble of one sort or another. | |
3835 | # A longer-term fix would be to have automake use am__CC in this case, | |
3836 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3837 | CC="$am_aux_dir/compile $CC" | |
3838 | fi | |
3839 | ||
3840 | ||
3841 | ||
3842 | ansi= | |
3843 | if test -z "$ansi"; then | |
3844 | msg="for C compiler warning flags" | |
3845 | else | |
3846 | msg="for C compiler warning and ANSI conformance flags" | |
3847 | fi | |
3848 | { echo "$as_me:$LINENO: checking $msg" >&5 | |
3849 | echo $ECHO_N "checking $msg... $ECHO_C" >&6; } | |
3850 | if test "${vl_cv_prog_cc_warnings+set}" = set; then | |
3851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3852 | else | |
3853 | ||
3854 | if test -n "$CC"; then | |
3855 | cat > conftest.c <<EOF | |
3856 | int main(int argc, char **argv) { return 0; } | |
3857 | EOF | |
3858 | ||
3859 | if test "$GCC" = "yes"; then | |
3860 | if test -z "$ansi"; then | |
3861 | vl_cv_prog_cc_warnings="-Wall -W" | |
3862 | else | |
3863 | vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic" | |
3864 | fi | |
3865 | ||
3866 | ||
3867 | elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 && | |
3868 | $CC -c -v -Xc conftest.c > /dev/null 2>&1 && | |
3869 | test -f conftest.o; then | |
3870 | if test -z "$ansi"; then | |
3871 | vl_cv_prog_cc_warnings="-v" | |
3872 | else | |
3873 | vl_cv_prog_cc_warnings="-v -Xc" | |
3874 | fi | |
3875 | ||
3876 | elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 && | |
3877 | $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 && | |
3878 | test -f conftest.o; then | |
3879 | if test -z "$ansi"; then | |
3880 | vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos" | |
3881 | else | |
3882 | vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1" | |
3883 | fi | |
3884 | ||
3885 | elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 && | |
3886 | $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 && | |
3887 | test -f conftest.o; then | |
3888 | if test -z "$ansi"; then | |
3889 | vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" | |
3890 | else | |
3891 | vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi" | |
3892 | fi | |
3893 | ||
3894 | elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 && | |
3895 | $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 && | |
3896 | test -f conftest.o; then | |
3897 | if test -z "$ansi"; then | |
3898 | vl_cv_prog_cc_warnings="-fullwarn" | |
3899 | else | |
3900 | vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE" | |
3901 | fi | |
3902 | ||
3903 | elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 && | |
3904 | $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 && | |
3905 | test -f conftest.o; then | |
3906 | if test -z "$ansi"; then | |
3907 | vl_cv_prog_cc_warnings="+w1" | |
3908 | else | |
3909 | vl_cv_prog_cc_warnings="+w1 -Aa" | |
3910 | fi | |
3911 | ||
3912 | elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 && | |
3913 | $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 && | |
3914 | test -f conftest.o; then | |
3915 | if test -z "$ansi"; then | |
3916 | vl_cv_prog_cc_warnings="-pvctl,fullmsg" | |
3917 | else | |
3918 | vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc" | |
3919 | fi | |
3920 | ||
3921 | elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 && | |
3922 | $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 && | |
3923 | test -f conftest.o; then | |
3924 | if test -z "$ansi"; then | |
3925 | vl_cv_prog_cc_warnings="-h msglevel 2" | |
3926 | else | |
3927 | vl_cv_prog_cc_warnings="-h msglevel 2 -h conform" | |
3928 | fi | |
3929 | ||
3930 | fi | |
3931 | rm -f conftest.* | |
3932 | fi | |
3933 | if test -n "$vl_cv_prog_cc_warnings"; then | |
3934 | CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings" | |
3935 | else | |
3936 | vl_cv_prog_cc_warnings="unknown" | |
3937 | fi | |
3938 | ||
3939 | fi | |
3940 | { echo "$as_me:$LINENO: result: $vl_cv_prog_cc_warnings" >&5 | |
3941 | echo "${ECHO_T}$vl_cv_prog_cc_warnings" >&6; } | |
3942 | ||
3943 | ||
3944 | # Find a good install program. We prefer a C program (faster), | |
3945 | # so one script is as good as another. But avoid the broken or | |
3946 | # incompatible versions: | |
3947 | # SysV /etc/install, /usr/sbin/install | |
3948 | # SunOS /usr/etc/install | |
3949 | # IRIX /sbin/install | |
3950 | # AIX /bin/install | |
3951 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3952 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3953 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3954 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3955 | # OS/2's system install, which has a completely different semantic | |
3956 | # ./install, which can be erroneously created by make from ./install.sh. | |
3957 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3958 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
3959 | if test -z "$INSTALL"; then | |
3960 | if test "${ac_cv_path_install+set}" = set; then | |
3961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3962 | else | |
3963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3964 | for as_dir in $PATH | |
3965 | do | |
3966 | IFS=$as_save_IFS | |
3967 | test -z "$as_dir" && as_dir=. | |
3968 | # Account for people who put trailing slashes in PATH elements. | |
3969 | case $as_dir/ in | |
3970 | ./ | .// | /cC/* | \ | |
3971 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3972 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3973 | /usr/ucb/* ) ;; | |
3974 | *) | |
3975 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3976 | # Don't use installbsd from OSF since it installs stuff as root | |
3977 | # by default. | |
3978 | for ac_prog in ginstall scoinst install; do | |
3979 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3980 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3981 | if test $ac_prog = install && | |
3982 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3983 | # AIX install. It has an incompatible calling convention. | |
3984 | : | |
3985 | elif test $ac_prog = install && | |
3986 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3987 | # program-specific install script used by HP pwplus--don't use. | |
3988 | : | |
3989 | else | |
3990 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3991 | break 3 | |
3992 | fi | |
3993 | fi | |
3994 | done | |
3995 | done | |
3996 | ;; | |
3997 | esac | |
3998 | done | |
3999 | IFS=$as_save_IFS | |
4000 | ||
4001 | ||
4002 | fi | |
4003 | if test "${ac_cv_path_install+set}" = set; then | |
4004 | INSTALL=$ac_cv_path_install | |
4005 | else | |
4006 | # As a last resort, use the slow shell script. Don't cache a | |
4007 | # value for INSTALL within a source directory, because that will | |
4008 | # break other packages using the cache if that directory is | |
4009 | # removed, or if the value is a relative name. | |
4010 | INSTALL=$ac_install_sh | |
4011 | fi | |
4012 | fi | |
4013 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
4014 | echo "${ECHO_T}$INSTALL" >&6; } | |
4015 | ||
4016 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4017 | # It thinks the first close brace ends the variable substitution. | |
4018 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4019 | ||
4020 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4021 | ||
4022 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4023 | ||
4024 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
4025 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
4026 | LN_S=$as_ln_s | |
4027 | if test "$LN_S" = "ln -s"; then | |
4028 | { echo "$as_me:$LINENO: result: yes" >&5 | |
4029 | echo "${ECHO_T}yes" >&6; } | |
4030 | else | |
4031 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
4032 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
4033 | fi | |
4034 | ||
4035 | ||
4036 | ||
4037 | macro_version='2.1a' | |
4038 | macro_revision='1.2248' | |
4039 | ||
4040 | ||
4041 | ||
4042 | ||
4043 | ||
4044 | ||
4045 | ||
4046 | ||
4047 | ||
4048 | ||
4049 | ||
4050 | ||
4051 | ltmain="$ac_aux_dir/ltmain.sh" | |
4052 | ||
4053 | # Set options | |
4054 | ||
4055 | enable_dlopen=no | |
4056 | ||
4057 | ||
4058 | enable_win32_dll=no | |
4059 | ||
4060 | ||
4061 | # Check whether --enable-shared was given. | |
4062 | if test "${enable_shared+set}" = set; then | |
4063 | enableval=$enable_shared; p=${PACKAGE-default} | |
4064 | case $enableval in | |
4065 | yes) enable_shared=yes ;; | |
4066 | no) enable_shared=no ;; | |
4067 | *) | |
4068 | enable_shared=no | |
4069 | # Look at the argument we got. We use all the common list separators. | |
4070 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4071 | for pkg in $enableval; do | |
4072 | IFS="$lt_save_ifs" | |
4073 | if test "X$pkg" = "X$p"; then | |
4074 | enable_shared=yes | |
4075 | fi | |
4076 | done | |
4077 | IFS="$lt_save_ifs" | |
4078 | ;; | |
4079 | esac | |
4080 | else | |
4081 | enable_shared=yes | |
4082 | fi | |
4083 | ||
4084 | ||
4085 | ||
4086 | ||
4087 | ||
4088 | ||
4089 | ||
4090 | ||
4091 | ||
4092 | # Check whether --enable-static was given. | |
4093 | if test "${enable_static+set}" = set; then | |
4094 | enableval=$enable_static; p=${PACKAGE-default} | |
4095 | case $enableval in | |
4096 | yes) enable_static=yes ;; | |
4097 | no) enable_static=no ;; | |
4098 | *) | |
4099 | enable_static=no | |
4100 | # Look at the argument we got. We use all the common list separators. | |
4101 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4102 | for pkg in $enableval; do | |
4103 | IFS="$lt_save_ifs" | |
4104 | if test "X$pkg" = "X$p"; then | |
4105 | enable_static=yes | |
4106 | fi | |
4107 | done | |
4108 | IFS="$lt_save_ifs" | |
4109 | ;; | |
4110 | esac | |
4111 | else | |
4112 | enable_static=yes | |
4113 | fi | |
4114 | ||
4115 | ||
4116 | ||
4117 | ||
4118 | ||
4119 | ||
4120 | ||
4121 | ||
4122 | ||
4123 | ||
4124 | # Check whether --with-pic was given. | |
4125 | if test "${with_pic+set}" = set; then | |
4126 | withval=$with_pic; pic_mode="$withval" | |
4127 | else | |
4128 | pic_mode=default | |
4129 | fi | |
4130 | ||
4131 | ||
4132 | test -z "$pic_mode" && pic_mode=default | |
4133 | ||
4134 | ||
4135 | ||
4136 | ||
4137 | ||
4138 | ||
4139 | ||
4140 | # Check whether --enable-fast-install was given. | |
4141 | if test "${enable_fast_install+set}" = set; then | |
4142 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
4143 | case $enableval in | |
4144 | yes) enable_fast_install=yes ;; | |
4145 | no) enable_fast_install=no ;; | |
4146 | *) | |
4147 | enable_fast_install=no | |
4148 | # Look at the argument we got. We use all the common list separators. | |
4149 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4150 | for pkg in $enableval; do | |
4151 | IFS="$lt_save_ifs" | |
4152 | if test "X$pkg" = "X$p"; then | |
4153 | enable_fast_install=yes | |
4154 | fi | |
4155 | done | |
4156 | IFS="$lt_save_ifs" | |
4157 | ;; | |
4158 | esac | |
4159 | else | |
4160 | enable_fast_install=yes | |
4161 | fi | |
4162 | ||
4163 | ||
4164 | ||
4165 | ||
4166 | ||
4167 | ||
4168 | ||
4169 | ||
4170 | ||
4171 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
4172 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } | |
4173 | if test "${ac_cv_path_SED+set}" = set; then | |
4174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4175 | else | |
4176 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4177 | for ac_i in 1 2 3 4 5 6 7; do | |
4178 | ac_script="$ac_script$as_nl$ac_script" | |
4179 | done | |
4180 | echo "$ac_script" | sed 99q >conftest.sed | |
4181 | $as_unset ac_script || ac_script= | |
4182 | # Extract the first word of "sed gsed" to use in msg output | |
4183 | if test -z "$SED"; then | |
4184 | set dummy sed gsed; ac_prog_name=$2 | |
4185 | if test "${ac_cv_path_SED+set}" = set; then | |
4186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4187 | else | |
4188 | ac_path_SED_found=false | |
4189 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4191 | for as_dir in $PATH | |
4192 | do | |
4193 | IFS=$as_save_IFS | |
4194 | test -z "$as_dir" && as_dir=. | |
4195 | for ac_prog in sed gsed; do | |
4196 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4197 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4198 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
4199 | # Check for GNU ac_path_SED and select it if it is found. | |
4200 | # Check for GNU $ac_path_SED | |
4201 | case `"$ac_path_SED" --version 2>&1` in | |
4202 | *GNU*) | |
4203 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4204 | *) | |
4205 | ac_count=0 | |
4206 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
4207 | while : | |
4208 | do | |
4209 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4210 | mv "conftest.tmp" "conftest.in" | |
4211 | cp "conftest.in" "conftest.nl" | |
4212 | echo '' >> "conftest.nl" | |
4213 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4214 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4215 | ac_count=`expr $ac_count + 1` | |
4216 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4217 | # Best one so far, save it but keep looking for a better one | |
4218 | ac_cv_path_SED="$ac_path_SED" | |
4219 | ac_path_SED_max=$ac_count | |
4220 | fi | |
4221 | # 10*(2^10) chars as input seems more than enough | |
4222 | test $ac_count -gt 10 && break | |
4223 | done | |
4224 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4225 | esac | |
4226 | ||
4227 | ||
4228 | $ac_path_SED_found && break 3 | |
4229 | done | |
4230 | done | |
4231 | ||
4232 | done | |
4233 | IFS=$as_save_IFS | |
4234 | ||
4235 | ||
4236 | fi | |
4237 | ||
4238 | SED="$ac_cv_path_SED" | |
4239 | if test -z "$SED"; then | |
4240 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 | |
4241 | echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} | |
4242 | { (exit 1); exit 1; }; } | |
4243 | fi | |
4244 | ||
4245 | else | |
4246 | ac_cv_path_SED=$SED | |
4247 | fi | |
4248 | ||
4249 | fi | |
4250 | { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 | |
4251 | echo "${ECHO_T}$ac_cv_path_SED" >&6; } | |
4252 | SED="$ac_cv_path_SED" | |
4253 | rm -f conftest.sed | |
4254 | ||
4255 | test -z "$SED" && SED=sed | |
4256 | ||
4257 | ||
4258 | ||
4259 | ||
4260 | ||
4261 | ||
4262 | ||
4263 | ||
4264 | ||
4265 | ||
4266 | ||
4267 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
4268 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
4269 | if test "${ac_cv_path_GREP+set}" = set; then | |
4270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4271 | else | |
4272 | # Extract the first word of "grep ggrep" to use in msg output | |
4273 | if test -z "$GREP"; then | |
4274 | set dummy grep ggrep; ac_prog_name=$2 | |
4275 | if test "${ac_cv_path_GREP+set}" = set; then | |
4276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4277 | else | |
4278 | ac_path_GREP_found=false | |
4279 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4281 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4282 | do | |
4283 | IFS=$as_save_IFS | |
4284 | test -z "$as_dir" && as_dir=. | |
4285 | for ac_prog in grep ggrep; do | |
4286 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4287 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4288 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4289 | # Check for GNU ac_path_GREP and select it if it is found. | |
4290 | # Check for GNU $ac_path_GREP | |
4291 | case `"$ac_path_GREP" --version 2>&1` in | |
4292 | *GNU*) | |
4293 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4294 | *) | |
4295 | ac_count=0 | |
4296 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
4297 | while : | |
4298 | do | |
4299 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4300 | mv "conftest.tmp" "conftest.in" | |
4301 | cp "conftest.in" "conftest.nl" | |
4302 | echo 'GREP' >> "conftest.nl" | |
4303 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4304 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4305 | ac_count=`expr $ac_count + 1` | |
4306 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4307 | # Best one so far, save it but keep looking for a better one | |
4308 | ac_cv_path_GREP="$ac_path_GREP" | |
4309 | ac_path_GREP_max=$ac_count | |
4310 | fi | |
4311 | # 10*(2^10) chars as input seems more than enough | |
4312 | test $ac_count -gt 10 && break | |
4313 | done | |
4314 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4315 | esac | |
4316 | ||
4317 | ||
4318 | $ac_path_GREP_found && break 3 | |
4319 | done | |
4320 | done | |
4321 | ||
4322 | done | |
4323 | IFS=$as_save_IFS | |
4324 | ||
4325 | ||
4326 | fi | |
4327 | ||
4328 | GREP="$ac_cv_path_GREP" | |
4329 | if test -z "$GREP"; then | |
4330 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4331 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4332 | { (exit 1); exit 1; }; } | |
4333 | fi | |
4334 | ||
4335 | else | |
4336 | ac_cv_path_GREP=$GREP | |
4337 | fi | |
4338 | ||
4339 | ||
4340 | fi | |
4341 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
4342 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
4343 | GREP="$ac_cv_path_GREP" | |
4344 | ||
4345 | ||
4346 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
4347 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
4348 | if test "${ac_cv_path_EGREP+set}" = set; then | |
4349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4350 | else | |
4351 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4352 | then ac_cv_path_EGREP="$GREP -E" | |
4353 | else | |
4354 | # Extract the first word of "egrep" to use in msg output | |
4355 | if test -z "$EGREP"; then | |
4356 | set dummy egrep; ac_prog_name=$2 | |
4357 | if test "${ac_cv_path_EGREP+set}" = set; then | |
4358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4359 | else | |
4360 | ac_path_EGREP_found=false | |
4361 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4363 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4364 | do | |
4365 | IFS=$as_save_IFS | |
4366 | test -z "$as_dir" && as_dir=. | |
4367 | for ac_prog in egrep; do | |
4368 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4369 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4370 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4371 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4372 | # Check for GNU $ac_path_EGREP | |
4373 | case `"$ac_path_EGREP" --version 2>&1` in | |
4374 | *GNU*) | |
4375 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4376 | *) | |
4377 | ac_count=0 | |
4378 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
4379 | while : | |
4380 | do | |
4381 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4382 | mv "conftest.tmp" "conftest.in" | |
4383 | cp "conftest.in" "conftest.nl" | |
4384 | echo 'EGREP' >> "conftest.nl" | |
4385 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4386 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4387 | ac_count=`expr $ac_count + 1` | |
4388 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4389 | # Best one so far, save it but keep looking for a better one | |
4390 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4391 | ac_path_EGREP_max=$ac_count | |
4392 | fi | |
4393 | # 10*(2^10) chars as input seems more than enough | |
4394 | test $ac_count -gt 10 && break | |
4395 | done | |
4396 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4397 | esac | |
4398 | ||
4399 | ||
4400 | $ac_path_EGREP_found && break 3 | |
4401 | done | |
4402 | done | |
4403 | ||
4404 | done | |
4405 | IFS=$as_save_IFS | |
4406 | ||
4407 | ||
4408 | fi | |
4409 | ||
4410 | EGREP="$ac_cv_path_EGREP" | |
4411 | if test -z "$EGREP"; then | |
4412 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4413 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4414 | { (exit 1); exit 1; }; } | |
4415 | fi | |
4416 | ||
4417 | else | |
4418 | ac_cv_path_EGREP=$EGREP | |
4419 | fi | |
4420 | ||
4421 | ||
4422 | fi | |
4423 | fi | |
4424 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
4425 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
4426 | EGREP="$ac_cv_path_EGREP" | |
4427 | ||
4428 | ||
4429 | { echo "$as_me:$LINENO: checking for fgrep" >&5 | |
4430 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; } | |
4431 | if test "${ac_cv_path_FGREP+set}" = set; then | |
4432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4433 | else | |
4434 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4435 | then ac_cv_path_FGREP="$GREP -F" | |
4436 | else | |
4437 | # Extract the first word of "fgrep" to use in msg output | |
4438 | if test -z "$FGREP"; then | |
4439 | set dummy fgrep; ac_prog_name=$2 | |
4440 | if test "${ac_cv_path_FGREP+set}" = set; then | |
4441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4442 | else | |
4443 | ac_path_FGREP_found=false | |
4444 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4446 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4447 | do | |
4448 | IFS=$as_save_IFS | |
4449 | test -z "$as_dir" && as_dir=. | |
4450 | for ac_prog in fgrep; do | |
4451 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4452 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4453 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
4454 | # Check for GNU ac_path_FGREP and select it if it is found. | |
4455 | # Check for GNU $ac_path_FGREP | |
4456 | case `"$ac_path_FGREP" --version 2>&1` in | |
4457 | *GNU*) | |
4458 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4459 | *) | |
4460 | ac_count=0 | |
4461 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
4462 | while : | |
4463 | do | |
4464 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4465 | mv "conftest.tmp" "conftest.in" | |
4466 | cp "conftest.in" "conftest.nl" | |
4467 | echo 'FGREP' >> "conftest.nl" | |
4468 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4469 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4470 | ac_count=`expr $ac_count + 1` | |
4471 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4472 | # Best one so far, save it but keep looking for a better one | |
4473 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4474 | ac_path_FGREP_max=$ac_count | |
4475 | fi | |
4476 | # 10*(2^10) chars as input seems more than enough | |
4477 | test $ac_count -gt 10 && break | |
4478 | done | |
4479 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4480 | esac | |
4481 | ||
4482 | ||
4483 | $ac_path_FGREP_found && break 3 | |
4484 | done | |
4485 | done | |
4486 | ||
4487 | done | |
4488 | IFS=$as_save_IFS | |
4489 | ||
4490 | ||
4491 | fi | |
4492 | ||
4493 | FGREP="$ac_cv_path_FGREP" | |
4494 | if test -z "$FGREP"; then | |
4495 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4496 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4497 | { (exit 1); exit 1; }; } | |
4498 | fi | |
4499 | ||
4500 | else | |
4501 | ac_cv_path_FGREP=$FGREP | |
4502 | fi | |
4503 | ||
4504 | ||
4505 | fi | |
4506 | fi | |
4507 | { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 | |
4508 | echo "${ECHO_T}$ac_cv_path_FGREP" >&6; } | |
4509 | FGREP="$ac_cv_path_FGREP" | |
4510 | ||
4511 | ||
4512 | test -z "$GREP" && GREP=grep | |
4513 | ||
4514 | ||
4515 | ||
4516 | ||
4517 | ||
4518 | ||
4519 | ||
4520 | ||
4521 | ||
4522 | ||
4523 | ||
4524 | ||
4525 | ||
4526 | ||
4527 | ||
4528 | ||
4529 | ||
4530 | ||
4531 | ||
4532 | # Check whether --with-gnu-ld was given. | |
4533 | if test "${with_gnu_ld+set}" = set; then | |
4534 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
4535 | else | |
4536 | with_gnu_ld=no | |
4537 | fi | |
4538 | ||
4539 | ac_prog=ld | |
4540 | if test "$GCC" = yes; then | |
4541 | # Check if gcc -print-prog-name=ld gives a path. | |
4542 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
4543 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | |
4544 | case $host in | |
4545 | *-*-mingw*) | |
4546 | # gcc leaves a trailing carriage return which upsets mingw | |
4547 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4548 | *) | |
4549 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4550 | esac | |
4551 | case $ac_prog in | |
4552 | # Accept absolute paths. | |
4553 | [\\/]* | ?:[\\/]*) | |
4554 | re_direlt='/[^/][^/]*/\.\./' | |
4555 | # Canonicalize the pathname of ld | |
4556 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4557 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4558 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4559 | done | |
4560 | test -z "$LD" && LD="$ac_prog" | |
4561 | ;; | |
4562 | "") | |
4563 | # If it fails, then pretend we aren't using GCC. | |
4564 | ac_prog=ld | |
4565 | ;; | |
4566 | *) | |
4567 | # If it is relative, then search for the first ld in PATH. | |
4568 | with_gnu_ld=unknown | |
4569 | ;; | |
4570 | esac | |
4571 | elif test "$with_gnu_ld" = yes; then | |
4572 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
4573 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | |
4574 | else | |
4575 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
4576 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | |
4577 | fi | |
4578 | if test "${lt_cv_path_LD+set}" = set; then | |
4579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4580 | else | |
4581 | if test -z "$LD"; then | |
4582 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4583 | for ac_dir in $PATH; do | |
4584 | IFS="$lt_save_ifs" | |
4585 | test -z "$ac_dir" && ac_dir=. | |
4586 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4587 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4588 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4589 | # but apparently some variants of GNU ld only accept -v. | |
4590 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4591 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4592 | *GNU* | *'with BFD'*) | |
4593 | test "$with_gnu_ld" != no && break | |
4594 | ;; | |
4595 | *) | |
4596 | test "$with_gnu_ld" != yes && break | |
4597 | ;; | |
4598 | esac | |
4599 | fi | |
4600 | done | |
4601 | IFS="$lt_save_ifs" | |
4602 | else | |
4603 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4604 | fi | |
4605 | fi | |
4606 | ||
4607 | LD="$lt_cv_path_LD" | |
4608 | if test -n "$LD"; then | |
4609 | { echo "$as_me:$LINENO: result: $LD" >&5 | |
4610 | echo "${ECHO_T}$LD" >&6; } | |
4611 | else | |
4612 | { echo "$as_me:$LINENO: result: no" >&5 | |
4613 | echo "${ECHO_T}no" >&6; } | |
4614 | fi | |
4615 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
4616 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
4617 | { (exit 1); exit 1; }; } | |
4618 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
4619 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | |
4620 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
4621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4622 | else | |
4623 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4624 | case `$LD -v 2>&1 </dev/null` in | |
4625 | *GNU* | *'with BFD'*) | |
4626 | lt_cv_prog_gnu_ld=yes | |
4627 | ;; | |
4628 | *) | |
4629 | lt_cv_prog_gnu_ld=no | |
4630 | ;; | |
4631 | esac | |
4632 | fi | |
4633 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
4634 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | |
4635 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
4636 | ||
4637 | ||
4638 | ||
4639 | ||
4640 | ||
4641 | ||
4642 | ||
4643 | ||
4644 | ||
4645 | ||
4646 | { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4647 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; } | |
4648 | if test "${lt_cv_path_NM+set}" = set; then | |
4649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4650 | else | |
4651 | if test -n "$NM"; then | |
4652 | # Let the user override the test. | |
4653 | lt_cv_path_NM="$NM" | |
4654 | else | |
4655 | lt_nm_to_check="${ac_tool_prefix}nm" | |
4656 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4657 | lt_nm_to_check="$lt_nm_to_check nm" | |
4658 | fi | |
4659 | for lt_tmp_nm in $lt_nm_to_check; do | |
4660 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4661 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4662 | IFS="$lt_save_ifs" | |
4663 | test -z "$ac_dir" && ac_dir=. | |
4664 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4665 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4666 | # Check to see if the nm accepts a BSD-compat flag. | |
4667 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4668 | # nm: unknown option "B" ignored | |
4669 | # Tru64's nm complains that /dev/null is an invalid object file | |
4670 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4671 | */dev/null* | *'Invalid file or object type'*) | |
4672 | lt_cv_path_NM="$tmp_nm -B" | |
4673 | break | |
4674 | ;; | |
4675 | *) | |
4676 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4677 | */dev/null*) | |
4678 | lt_cv_path_NM="$tmp_nm -p" | |
4679 | break | |
4680 | ;; | |
4681 | *) | |
4682 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4683 | continue # so that we can try to find one that supports BSD flags | |
4684 | ;; | |
4685 | esac | |
4686 | ;; | |
4687 | esac | |
4688 | fi | |
4689 | done | |
4690 | IFS="$lt_save_ifs" | |
4691 | done | |
4692 | : ${lt_cv_path_NM=no} | |
4693 | fi | |
4694 | fi | |
4695 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
4696 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } | |
4697 | if test "$lt_cv_path_NM" != "no"; then | |
4698 | NM="$lt_cv_path_NM" | |
4699 | else | |
4700 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4701 | if test -n "$ac_tool_prefix"; then | |
4702 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4703 | do | |
4704 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4705 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4706 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4707 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4708 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
4709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4710 | else | |
4711 | if test -n "$DUMPBIN"; then | |
4712 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4713 | else | |
4714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4715 | for as_dir in $PATH | |
4716 | do | |
4717 | IFS=$as_save_IFS | |
4718 | test -z "$as_dir" && as_dir=. | |
4719 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4720 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4721 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4722 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4723 | break 2 | |
4724 | fi | |
4725 | done | |
4726 | done | |
4727 | IFS=$as_save_IFS | |
4728 | ||
4729 | fi | |
4730 | fi | |
4731 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4732 | if test -n "$DUMPBIN"; then | |
4733 | { echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
4734 | echo "${ECHO_T}$DUMPBIN" >&6; } | |
4735 | else | |
4736 | { echo "$as_me:$LINENO: result: no" >&5 | |
4737 | echo "${ECHO_T}no" >&6; } | |
4738 | fi | |
4739 | ||
4740 | ||
4741 | test -n "$DUMPBIN" && break | |
4742 | done | |
4743 | fi | |
4744 | if test -z "$DUMPBIN"; then | |
4745 | ac_ct_DUMPBIN=$DUMPBIN | |
4746 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4747 | do | |
4748 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4749 | set dummy $ac_prog; ac_word=$2 | |
4750 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4751 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4752 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
4753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4754 | else | |
4755 | if test -n "$ac_ct_DUMPBIN"; then | |
4756 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4757 | else | |
4758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4759 | for as_dir in $PATH | |
4760 | do | |
4761 | IFS=$as_save_IFS | |
4762 | test -z "$as_dir" && as_dir=. | |
4763 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4764 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4765 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4766 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4767 | break 2 | |
4768 | fi | |
4769 | done | |
4770 | done | |
4771 | IFS=$as_save_IFS | |
4772 | ||
4773 | fi | |
4774 | fi | |
4775 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4776 | if test -n "$ac_ct_DUMPBIN"; then | |
4777 | { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
4778 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; } | |
4779 | else | |
4780 | { echo "$as_me:$LINENO: result: no" >&5 | |
4781 | echo "${ECHO_T}no" >&6; } | |
4782 | fi | |
4783 | ||
4784 | ||
4785 | test -n "$ac_ct_DUMPBIN" && break | |
4786 | done | |
4787 | ||
4788 | if test "x$ac_ct_DUMPBIN" = x; then | |
4789 | DUMPBIN=":" | |
4790 | else | |
4791 | case $cross_compiling:$ac_tool_warned in | |
4792 | yes:) | |
4793 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4794 | whose name does not start with the host triplet. If you think this | |
4795 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4796 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4797 | whose name does not start with the host triplet. If you think this | |
4798 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4799 | ac_tool_warned=yes ;; | |
4800 | esac | |
4801 | DUMPBIN=$ac_ct_DUMPBIN | |
4802 | fi | |
4803 | fi | |
4804 | ||
4805 | ||
4806 | if test "$DUMPBIN" != ":"; then | |
4807 | NM="$DUMPBIN" | |
4808 | fi | |
4809 | fi | |
4810 | test -z "$NM" && NM=nm | |
4811 | ||
4812 | ||
4813 | ||
4814 | ||
4815 | ||
4816 | ||
4817 | { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 | |
4818 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; } | |
4819 | if test "${lt_cv_nm_interface+set}" = set; then | |
4820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4821 | else | |
4822 | lt_cv_nm_interface="BSD nm" | |
4823 | echo "int some_variable = 0;" > conftest.$ac_ext | |
4824 | (eval echo "\"\$as_me:4824: $ac_compile\"" >&5) | |
4825 | (eval "$ac_compile" 2>conftest.err) | |
4826 | cat conftest.err >&5 | |
4827 | (eval echo "\"\$as_me:4827: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
4828 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
4829 | cat conftest.err >&5 | |
4830 | (eval echo "\"\$as_me:4830: output\"" >&5) | |
4831 | cat conftest.out >&5 | |
4832 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4833 | lt_cv_nm_interface="MS dumpbin" | |
4834 | fi | |
4835 | rm -f conftest* | |
4836 | fi | |
4837 | { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 | |
4838 | echo "${ECHO_T}$lt_cv_nm_interface" >&6; } | |
4839 | ||
4840 | # find the maximum length of command line arguments | |
4841 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4842 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } | |
4843 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4845 | else | |
4846 | i=0 | |
4847 | teststring="ABCD" | |
4848 | ||
4849 | case $build_os in | |
4850 | msdosdjgpp*) | |
4851 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4852 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4853 | # during glob expansion). Even if it were fixed, the result of this | |
4854 | # check would be larger than it should be. | |
4855 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4856 | ;; | |
4857 | ||
4858 | gnu*) | |
4859 | # Under GNU Hurd, this test is not required because there is | |
4860 | # no limit to the length of command line arguments. | |
4861 | # Libtool will interpret -1 as no limit whatsoever | |
4862 | lt_cv_sys_max_cmd_len=-1; | |
4863 | ;; | |
4864 | ||
4865 | cygwin* | mingw*) | |
4866 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4867 | # about 5 minutes as the teststring grows exponentially. | |
4868 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4869 | # you end up with a "frozen" computer, even though with patience | |
4870 | # the test eventually succeeds (with a max line length of 256k). | |
4871 | # Instead, let's just punt: use the minimum linelength reported by | |
4872 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4873 | lt_cv_sys_max_cmd_len=8192; | |
4874 | ;; | |
4875 | ||
4876 | amigaos*) | |
4877 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4878 | # So we just punt and use a minimum line length of 8192. | |
4879 | lt_cv_sys_max_cmd_len=8192; | |
4880 | ;; | |
4881 | ||
4882 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4883 | # This has been around since 386BSD, at least. Likely further. | |
4884 | if test -x /sbin/sysctl; then | |
4885 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4886 | elif test -x /usr/sbin/sysctl; then | |
4887 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4888 | else | |
4889 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4890 | fi | |
4891 | # And add a safety zone | |
4892 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4893 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4894 | ;; | |
4895 | ||
4896 | interix*) | |
4897 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4898 | lt_cv_sys_max_cmd_len=196608 | |
4899 | ;; | |
4900 | ||
4901 | osf*) | |
4902 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4903 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4904 | # nice to cause kernel panics so lets avoid the loop below. | |
4905 | # First set a reasonable default. | |
4906 | lt_cv_sys_max_cmd_len=16384 | |
4907 | # | |
4908 | if test -x /sbin/sysconfig; then | |
4909 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4910 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4911 | esac | |
4912 | fi | |
4913 | ;; | |
4914 | sco3.2v5*) | |
4915 | lt_cv_sys_max_cmd_len=102400 | |
4916 | ;; | |
4917 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4918 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4919 | if test -n "$kargmax"; then | |
4920 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4921 | else | |
4922 | lt_cv_sys_max_cmd_len=32768 | |
4923 | fi | |
4924 | ;; | |
4925 | *) | |
4926 | # Make teststring a little bigger before we do anything with it. | |
4927 | # a 1K string should be a reasonable start. | |
4928 | for i in 1 2 3 4 5 6 7 8 ; do | |
4929 | teststring=$teststring$teststring | |
4930 | done | |
4931 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4932 | # If test is not a shell built-in, we'll probably end up computing a | |
4933 | # maximum length that is only half of the actual maximum length, but | |
4934 | # we can't tell. | |
4935 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4936 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4937 | test $i != 17 # 1/2 MB should be enough | |
4938 | do | |
4939 | i=`expr $i + 1` | |
4940 | teststring=$teststring$teststring | |
4941 | done | |
4942 | # Only check the string length outside the loop. | |
4943 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4944 | teststring= | |
4945 | # Add a significant safety factor because C++ compilers can tack on massive | |
4946 | # amounts of additional arguments before passing them to the linker. | |
4947 | # It appears as though 1/2 is a usable value. | |
4948 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4949 | ;; | |
4950 | esac | |
4951 | ||
4952 | fi | |
4953 | ||
4954 | if test -n $lt_cv_sys_max_cmd_len ; then | |
4955 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
4956 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } | |
4957 | else | |
4958 | { echo "$as_me:$LINENO: result: none" >&5 | |
4959 | echo "${ECHO_T}none" >&6; } | |
4960 | fi | |
4961 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
4962 | ||
4963 | ||
4964 | ||
4965 | ||
4966 | ||
4967 | ||
4968 | ||
4969 | : ${CP="cp -f"} | |
4970 | : ${MV="mv -f"} | |
4971 | : ${RM="rm -f"} | |
4972 | ||
4973 | { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 | |
4974 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; } | |
4975 | # Try some XSI features | |
4976 | xsi_shell=no | |
4977 | ( _lt_dummy="a/b/c" | |
4978 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4979 | = c,a/b,, ) >/dev/null 2>&1 \ | |
4980 | && xsi_shell=yes | |
4981 | { echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
4982 | echo "${ECHO_T}$xsi_shell" >&6; } | |
4983 | ||
4984 | ||
4985 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
4986 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } | |
4987 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
4988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4989 | else | |
4990 | lt_cv_ld_reload_flag='-r' | |
4991 | fi | |
4992 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
4993 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } | |
4994 | reload_flag=$lt_cv_ld_reload_flag | |
4995 | case $reload_flag in | |
4996 | "" | " "*) ;; | |
4997 | *) reload_flag=" $reload_flag" ;; | |
4998 | esac | |
4999 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5000 | case $host_os in | |
5001 | darwin*) | |
5002 | if test "$GCC" = yes; then | |
5003 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5004 | else | |
5005 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5006 | fi | |
5007 | ;; | |
5008 | esac | |
5009 | ||
5010 | ||
5011 | ||
5012 | ||
5013 | ||
5014 | ||
5015 | ||
5016 | ||
5017 | ||
5018 | ||
5019 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | |
5020 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } | |
5021 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
5022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5023 | else | |
5024 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5025 | lt_cv_file_magic_test_file= | |
5026 | lt_cv_deplibs_check_method='unknown' | |
5027 | # Need to set the preceding variable on all platforms that support | |
5028 | # interlibrary dependencies. | |
5029 | # 'none' -- dependencies not supported. | |
5030 | # `unknown' -- same as none, but documents that we really don't know. | |
5031 | # 'pass_all' -- all dependencies passed with no checks. | |
5032 | # 'test_compile' -- check by making test program. | |
5033 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5034 | # which responds to the $file_magic_cmd with a given extended regex. | |
5035 | # If you have `file' or equivalent on your system and you're not sure | |
5036 | # whether `pass_all' will *always* work, you probably want this one. | |
5037 | ||
5038 | case $host_os in | |
5039 | aix4* | aix5*) | |
5040 | lt_cv_deplibs_check_method=pass_all | |
5041 | ;; | |
5042 | ||
5043 | beos*) | |
5044 | lt_cv_deplibs_check_method=pass_all | |
5045 | ;; | |
5046 | ||
5047 | bsdi[45]*) | |
5048 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5049 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5050 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5051 | ;; | |
5052 | ||
5053 | cygwin*) | |
5054 | # func_win32_libid is a shell function defined in ltmain.sh | |
5055 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5056 | lt_cv_file_magic_cmd='func_win32_libid' | |
5057 | ;; | |
5058 | ||
5059 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5060 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. | |
5061 | mingw* | pw32*) | |
5062 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5063 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5064 | ;; | |
5065 | ||
5066 | darwin* | rhapsody*) | |
5067 | lt_cv_deplibs_check_method=pass_all | |
5068 | ;; | |
5069 | ||
5070 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
5071 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5072 | case $host_cpu in | |
5073 | i*86 ) | |
5074 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5075 | # Let's accept both of them until this is cleared up. | |
5076 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5077 | lt_cv_file_magic_cmd=/usr/bin/file | |
5078 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5079 | ;; | |
5080 | esac | |
5081 | else | |
5082 | lt_cv_deplibs_check_method=pass_all | |
5083 | fi | |
5084 | ;; | |
5085 | ||
5086 | gnu*) | |
5087 | lt_cv_deplibs_check_method=pass_all | |
5088 | ;; | |
5089 | ||
5090 | hpux10.20* | hpux11*) | |
5091 | lt_cv_file_magic_cmd=/usr/bin/file | |
5092 | case $host_cpu in | |
5093 | ia64*) | |
5094 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5095 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5096 | ;; | |
5097 | hppa*64*) | |
5098 | 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]' | |
5099 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5100 | ;; | |
5101 | *) | |
5102 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
5103 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5104 | ;; | |
5105 | esac | |
5106 | ;; | |
5107 | ||
5108 | interix3*) | |
5109 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5110 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5111 | ;; | |
5112 | ||
5113 | irix5* | irix6* | nonstopux*) | |
5114 | case $LD in | |
5115 | *-32|*"-32 ") libmagic=32-bit;; | |
5116 | *-n32|*"-n32 ") libmagic=N32;; | |
5117 | *-64|*"-64 ") libmagic=64-bit;; | |
5118 | *) libmagic=never-match;; | |
5119 | esac | |
5120 | lt_cv_deplibs_check_method=pass_all | |
5121 | ;; | |
5122 | ||
5123 | # This must be Linux ELF. | |
5124 | linux*) | |
5125 | lt_cv_deplibs_check_method=pass_all | |
5126 | ;; | |
5127 | ||
5128 | netbsd* | knetbsd*-gnu) | |
5129 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5130 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5131 | else | |
5132 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5133 | fi | |
5134 | ;; | |
5135 | ||
5136 | newos6*) | |
5137 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5138 | lt_cv_file_magic_cmd=/usr/bin/file | |
5139 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5140 | ;; | |
5141 | ||
5142 | *nto* | *qnx*) | |
5143 | lt_cv_deplibs_check_method=pass_all | |
5144 | ;; | |
5145 | ||
5146 | openbsd*) | |
5147 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5148 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5149 | else | |
5150 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5151 | fi | |
5152 | ;; | |
5153 | ||
5154 | osf3* | osf4* | osf5*) | |
5155 | lt_cv_deplibs_check_method=pass_all | |
5156 | ;; | |
5157 | ||
5158 | rdos*) | |
5159 | lt_cv_deplibs_check_method=pass_all | |
5160 | ;; | |
5161 | ||
5162 | solaris*) | |
5163 | lt_cv_deplibs_check_method=pass_all | |
5164 | ;; | |
5165 | ||
5166 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5167 | lt_cv_deplibs_check_method=pass_all | |
5168 | ;; | |
5169 | ||
5170 | sysv4 | sysv4.3*) | |
5171 | case $host_vendor in | |
5172 | motorola) | |
5173 | 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]' | |
5174 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5175 | ;; | |
5176 | ncr) | |
5177 | lt_cv_deplibs_check_method=pass_all | |
5178 | ;; | |
5179 | sequent) | |
5180 | lt_cv_file_magic_cmd='/bin/file' | |
5181 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5182 | ;; | |
5183 | sni) | |
5184 | lt_cv_file_magic_cmd='/bin/file' | |
5185 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5186 | lt_cv_file_magic_test_file=/lib/libc.so | |
5187 | ;; | |
5188 | siemens) | |
5189 | lt_cv_deplibs_check_method=pass_all | |
5190 | ;; | |
5191 | pc) | |
5192 | lt_cv_deplibs_check_method=pass_all | |
5193 | ;; | |
5194 | esac | |
5195 | ;; | |
5196 | ||
5197 | tpf*) | |
5198 | lt_cv_deplibs_check_method=pass_all | |
5199 | ;; | |
5200 | esac | |
5201 | ||
5202 | fi | |
5203 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
5204 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } | |
5205 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5206 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5207 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5208 | ||
5209 | ||
5210 | ||
5211 | ||
5212 | ||
5213 | ||
5214 | ||
5215 | ||
5216 | ||
5217 | ||
5218 | ||
5219 | ||
5220 | if test -n "$ac_tool_prefix"; then | |
5221 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5222 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5223 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5224 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5225 | if test "${ac_cv_prog_AR+set}" = set; then | |
5226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5227 | else | |
5228 | if test -n "$AR"; then | |
5229 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5230 | else | |
5231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5232 | for as_dir in $PATH | |
5233 | do | |
5234 | IFS=$as_save_IFS | |
5235 | test -z "$as_dir" && as_dir=. | |
5236 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5237 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5238 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5239 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5240 | break 2 | |
5241 | fi | |
5242 | done | |
5243 | done | |
5244 | IFS=$as_save_IFS | |
5245 | ||
5246 | fi | |
5247 | fi | |
5248 | AR=$ac_cv_prog_AR | |
5249 | if test -n "$AR"; then | |
5250 | { echo "$as_me:$LINENO: result: $AR" >&5 | |
5251 | echo "${ECHO_T}$AR" >&6; } | |
5252 | else | |
5253 | { echo "$as_me:$LINENO: result: no" >&5 | |
5254 | echo "${ECHO_T}no" >&6; } | |
5255 | fi | |
5256 | ||
5257 | ||
5258 | fi | |
5259 | if test -z "$ac_cv_prog_AR"; then | |
5260 | ac_ct_AR=$AR | |
5261 | # Extract the first word of "ar", so it can be a program name with args. | |
5262 | set dummy ar; ac_word=$2 | |
5263 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5264 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5265 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
5266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5267 | else | |
5268 | if test -n "$ac_ct_AR"; then | |
5269 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5270 | else | |
5271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5272 | for as_dir in $PATH | |
5273 | do | |
5274 | IFS=$as_save_IFS | |
5275 | test -z "$as_dir" && as_dir=. | |
5276 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5277 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5278 | ac_cv_prog_ac_ct_AR="ar" | |
5279 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5280 | break 2 | |
5281 | fi | |
5282 | done | |
5283 | done | |
5284 | IFS=$as_save_IFS | |
5285 | ||
5286 | fi | |
5287 | fi | |
5288 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5289 | if test -n "$ac_ct_AR"; then | |
5290 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
5291 | echo "${ECHO_T}$ac_ct_AR" >&6; } | |
5292 | else | |
5293 | { echo "$as_me:$LINENO: result: no" >&5 | |
5294 | echo "${ECHO_T}no" >&6; } | |
5295 | fi | |
5296 | ||
5297 | if test "x$ac_ct_AR" = x; then | |
5298 | AR="false" | |
5299 | else | |
5300 | case $cross_compiling:$ac_tool_warned in | |
5301 | yes:) | |
5302 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
5303 | whose name does not start with the host triplet. If you think this | |
5304 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5305 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5306 | whose name does not start with the host triplet. If you think this | |
5307 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5308 | ac_tool_warned=yes ;; | |
5309 | esac | |
5310 | AR=$ac_ct_AR | |
5311 | fi | |
5312 | else | |
5313 | AR="$ac_cv_prog_AR" | |
5314 | fi | |
5315 | ||
5316 | test -z "$AR" && AR=ar | |
5317 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
5318 | ||
5319 | ||
5320 | ||
5321 | ||
5322 | ||
5323 | ||
5324 | ||
5325 | ||
5326 | ||
5327 | ||
5328 | ||
5329 | if test -n "$ac_tool_prefix"; then | |
5330 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5331 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5332 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5333 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5334 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
5335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5336 | else | |
5337 | if test -n "$STRIP"; then | |
5338 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5339 | else | |
5340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5341 | for as_dir in $PATH | |
5342 | do | |
5343 | IFS=$as_save_IFS | |
5344 | test -z "$as_dir" && as_dir=. | |
5345 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5346 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5347 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5348 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5349 | break 2 | |
5350 | fi | |
5351 | done | |
5352 | done | |
5353 | IFS=$as_save_IFS | |
5354 | ||
5355 | fi | |
5356 | fi | |
5357 | STRIP=$ac_cv_prog_STRIP | |
5358 | if test -n "$STRIP"; then | |
5359 | { echo "$as_me:$LINENO: result: $STRIP" >&5 | |
5360 | echo "${ECHO_T}$STRIP" >&6; } | |
5361 | else | |
5362 | { echo "$as_me:$LINENO: result: no" >&5 | |
5363 | echo "${ECHO_T}no" >&6; } | |
5364 | fi | |
5365 | ||
5366 | ||
5367 | fi | |
5368 | if test -z "$ac_cv_prog_STRIP"; then | |
5369 | ac_ct_STRIP=$STRIP | |
5370 | # Extract the first word of "strip", so it can be a program name with args. | |
5371 | set dummy strip; ac_word=$2 | |
5372 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5374 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
5375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5376 | else | |
5377 | if test -n "$ac_ct_STRIP"; then | |
5378 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5379 | else | |
5380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5381 | for as_dir in $PATH | |
5382 | do | |
5383 | IFS=$as_save_IFS | |
5384 | test -z "$as_dir" && as_dir=. | |
5385 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5386 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5387 | ac_cv_prog_ac_ct_STRIP="strip" | |
5388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5389 | break 2 | |
5390 | fi | |
5391 | done | |
5392 | done | |
5393 | IFS=$as_save_IFS | |
5394 | ||
5395 | fi | |
5396 | fi | |
5397 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5398 | if test -n "$ac_ct_STRIP"; then | |
5399 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5400 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
5401 | else | |
5402 | { echo "$as_me:$LINENO: result: no" >&5 | |
5403 | echo "${ECHO_T}no" >&6; } | |
5404 | fi | |
5405 | ||
5406 | if test "x$ac_ct_STRIP" = x; then | |
5407 | STRIP=":" | |
5408 | else | |
5409 | case $cross_compiling:$ac_tool_warned in | |
5410 | yes:) | |
5411 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
5412 | whose name does not start with the host triplet. If you think this | |
5413 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5414 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5415 | whose name does not start with the host triplet. If you think this | |
5416 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5417 | ac_tool_warned=yes ;; | |
5418 | esac | |
5419 | STRIP=$ac_ct_STRIP | |
5420 | fi | |
5421 | else | |
5422 | STRIP="$ac_cv_prog_STRIP" | |
5423 | fi | |
5424 | ||
5425 | test -z "$STRIP" && STRIP=: | |
5426 | ||
5427 | ||
5428 | ||
5429 | ||
5430 | ||
5431 | ||
5432 | if test -n "$ac_tool_prefix"; then | |
5433 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5434 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5435 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5436 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5437 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5439 | else | |
5440 | if test -n "$RANLIB"; then | |
5441 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5442 | else | |
5443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5444 | for as_dir in $PATH | |
5445 | do | |
5446 | IFS=$as_save_IFS | |
5447 | test -z "$as_dir" && as_dir=. | |
5448 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5449 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5450 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5451 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5452 | break 2 | |
5453 | fi | |
5454 | done | |
5455 | done | |
5456 | IFS=$as_save_IFS | |
5457 | ||
5458 | fi | |
5459 | fi | |
5460 | RANLIB=$ac_cv_prog_RANLIB | |
5461 | if test -n "$RANLIB"; then | |
5462 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5463 | echo "${ECHO_T}$RANLIB" >&6; } | |
5464 | else | |
5465 | { echo "$as_me:$LINENO: result: no" >&5 | |
5466 | echo "${ECHO_T}no" >&6; } | |
5467 | fi | |
5468 | ||
5469 | ||
5470 | fi | |
5471 | if test -z "$ac_cv_prog_RANLIB"; then | |
5472 | ac_ct_RANLIB=$RANLIB | |
5473 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5474 | set dummy ranlib; ac_word=$2 | |
5475 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5477 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5479 | else | |
5480 | if test -n "$ac_ct_RANLIB"; then | |
5481 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5482 | else | |
5483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5484 | for as_dir in $PATH | |
5485 | do | |
5486 | IFS=$as_save_IFS | |
5487 | test -z "$as_dir" && as_dir=. | |
5488 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5489 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5490 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5491 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5492 | break 2 | |
5493 | fi | |
5494 | done | |
5495 | done | |
5496 | IFS=$as_save_IFS | |
5497 | ||
5498 | fi | |
5499 | fi | |
5500 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5501 | if test -n "$ac_ct_RANLIB"; then | |
5502 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5503 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
5504 | else | |
5505 | { echo "$as_me:$LINENO: result: no" >&5 | |
5506 | echo "${ECHO_T}no" >&6; } | |
5507 | fi | |
5508 | ||
5509 | if test "x$ac_ct_RANLIB" = x; then | |
5510 | RANLIB=":" | |
5511 | else | |
5512 | case $cross_compiling:$ac_tool_warned in | |
5513 | yes:) | |
5514 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
5515 | whose name does not start with the host triplet. If you think this | |
5516 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5517 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5518 | whose name does not start with the host triplet. If you think this | |
5519 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5520 | ac_tool_warned=yes ;; | |
5521 | esac | |
5522 | RANLIB=$ac_ct_RANLIB | |
5523 | fi | |
5524 | else | |
5525 | RANLIB="$ac_cv_prog_RANLIB" | |
5526 | fi | |
5527 | ||
5528 | test -z "$RANLIB" && RANLIB=: | |
5529 | ||
5530 | ||
5531 | ||
5532 | ||
5533 | ||
5534 | ||
5535 | # Determine commands to create old-style static archives. | |
5536 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
5537 | old_postinstall_cmds='chmod 644 $oldlib' | |
5538 | old_postuninstall_cmds= | |
5539 | ||
5540 | if test -n "$RANLIB"; then | |
5541 | case $host_os in | |
5542 | openbsd*) | |
5543 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5544 | ;; | |
5545 | *) | |
5546 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5547 | ;; | |
5548 | esac | |
5549 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
5550 | fi | |
5551 | ||
5552 | ||
5553 | ||
5554 | ||
5555 | ||
5556 | ||
5557 | ||
5558 | ||
5559 | ||
5560 | ||
5561 | ||
5562 | ||
5563 | ||
5564 | ||
5565 | ||
5566 | ||
5567 | ||
5568 | ||
5569 | ||
5570 | ||
5571 | ||
5572 | ||
5573 | ||
5574 | ||
5575 | ||
5576 | ||
5577 | ||
5578 | ||
5579 | ||
5580 | ||
5581 | ||
5582 | ||
5583 | ||
5584 | ||
5585 | # If no C compiler was specified, use CC. | |
5586 | LTCC=${LTCC-"$CC"} | |
5587 | ||
5588 | # If no C compiler flags were specified, use CFLAGS. | |
5589 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5590 | ||
5591 | # Allow CC to be a program name with arguments. | |
5592 | compiler=$CC | |
5593 | ||
5594 | ||
5595 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5596 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5597 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } | |
5598 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5600 | else | |
5601 | ||
5602 | # These are sane defaults that work on at least a few old systems. | |
5603 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5604 | ||
5605 | # Character class describing NM global symbol codes. | |
5606 | symcode='[BCDEGRST]' | |
5607 | ||
5608 | # Regexp to match symbols that can be accessed directly from C. | |
5609 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5610 | ||
5611 | # Define system-specific variables. | |
5612 | case $host_os in | |
5613 | aix*) | |
5614 | symcode='[BCDT]' | |
5615 | ;; | |
5616 | cygwin* | mingw* | pw32*) | |
5617 | symcode='[ABCDGISTW]' | |
5618 | ;; | |
5619 | hpux*) | |
5620 | if test "$host_cpu" = ia64; then | |
5621 | symcode='[ABCDEGRST]' | |
5622 | fi | |
5623 | ;; | |
5624 | irix* | nonstopux*) | |
5625 | symcode='[BCDEGRST]' | |
5626 | ;; | |
5627 | osf*) | |
5628 | symcode='[BCDEGQRST]' | |
5629 | ;; | |
5630 | solaris*) | |
5631 | symcode='[BDRT]' | |
5632 | ;; | |
5633 | sco3.2v5*) | |
5634 | symcode='[DT]' | |
5635 | ;; | |
5636 | sysv4.2uw2*) | |
5637 | symcode='[DT]' | |
5638 | ;; | |
5639 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5640 | symcode='[ABDT]' | |
5641 | ;; | |
5642 | sysv4) | |
5643 | symcode='[DFNSTU]' | |
5644 | ;; | |
5645 | esac | |
5646 | ||
5647 | # If we're using GNU nm, then use its standard symbol codes. | |
5648 | case `$NM -V 2>&1` in | |
5649 | *GNU* | *'with BFD'*) | |
5650 | symcode='[ABCDGIRSTW]' ;; | |
5651 | esac | |
5652 | ||
5653 | # Transform an extracted symbol line into a proper C declaration. | |
5654 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5655 | # so use this general approach. | |
5656 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5657 | ||
5658 | # Transform an extracted symbol line into symbol name and symbol address | |
5659 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5660 | ||
5661 | # Handle CRLF in mingw tool chain | |
5662 | opt_cr= | |
5663 | case $build_os in | |
5664 | mingw*) | |
5665 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5666 | ;; | |
5667 | esac | |
5668 | ||
5669 | # Try without a prefix underscore, then with it. | |
5670 | for ac_symprfx in "" "_"; do | |
5671 | ||
5672 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5673 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5674 | ||
5675 | # Write the raw and C identifiers. | |
5676 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5677 | # Fake it for dumpbin and say T for any non-static function | |
5678 | # and D for any global variable. | |
5679 | # Also find C++ and __fastcall symbols from MSVC++, | |
5680 | # which start with @ or ?. | |
5681 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5682 | " {last_section=section; section=\$ 3};"\ | |
5683 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5684 | " \$ 0!~/External *\|/{next};"\ | |
5685 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5686 | " {if(hide[section]) next};"\ | |
5687 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5688 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5689 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5690 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5691 | " ' prfx=^$ac_symprfx" | |
5692 | else | |
5693 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5694 | fi | |
5695 | ||
5696 | # Check to see that the pipe works correctly. | |
5697 | pipe_works=no | |
5698 | ||
5699 | rm -f conftest* | |
5700 | cat > conftest.$ac_ext <<_LT_EOF | |
5701 | #ifdef __cplusplus | |
5702 | extern "C" { | |
5703 | #endif | |
5704 | char nm_test_var; | |
5705 | void nm_test_func(){} | |
5706 | #ifdef __cplusplus | |
5707 | } | |
5708 | #endif | |
5709 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5710 | _LT_EOF | |
5711 | ||
5712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5713 | (eval $ac_compile) 2>&5 | |
5714 | ac_status=$? | |
5715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5716 | (exit $ac_status); }; then | |
5717 | # Now try to grab the symbols. | |
5718 | nlist=conftest.nm | |
5719 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5720 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5721 | ac_status=$? | |
5722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5723 | (exit $ac_status); } && test -s "$nlist"; then | |
5724 | # Try sorting and uniquifying the output. | |
5725 | if sort "$nlist" | uniq > "$nlist"T; then | |
5726 | mv -f "$nlist"T "$nlist" | |
5727 | else | |
5728 | rm -f "$nlist"T | |
5729 | fi | |
5730 | ||
5731 | # Make sure that we snagged all the symbols we need. | |
5732 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5733 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5734 | cat <<_LT_EOF > conftest.$ac_ext | |
5735 | #ifdef __cplusplus | |
5736 | extern "C" { | |
5737 | #endif | |
5738 | ||
5739 | _LT_EOF | |
5740 | # Now generate the symbol file. | |
5741 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5742 | ||
5743 | cat <<_LT_EOF >> conftest.$ac_ext | |
5744 | ||
5745 | /* The mapping between symbol names and symbols. */ | |
5746 | const struct { | |
5747 | const char *name; | |
5748 | void *address; | |
5749 | } | |
5750 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5751 | { | |
5752 | { "@PROGRAM@", (void *) 0 }, | |
5753 | _LT_EOF | |
5754 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5755 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5756 | {0, (void *) 0} | |
5757 | }; | |
5758 | ||
5759 | /* This works around a problem in FreeBSD linker */ | |
5760 | #ifdef FREEBSD_WORKAROUND | |
5761 | static const void *lt_preloaded_setup() { | |
5762 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5763 | } | |
5764 | #endif | |
5765 | ||
5766 | #ifdef __cplusplus | |
5767 | } | |
5768 | #endif | |
5769 | _LT_EOF | |
5770 | # Now try linking the two files. | |
5771 | mv conftest.$ac_objext conftstm.$ac_objext | |
5772 | lt_save_LIBS="$LIBS" | |
5773 | lt_save_CFLAGS="$CFLAGS" | |
5774 | LIBS="conftstm.$ac_objext" | |
5775 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5777 | (eval $ac_link) 2>&5 | |
5778 | ac_status=$? | |
5779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5780 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5781 | pipe_works=yes | |
5782 | fi | |
5783 | LIBS="$lt_save_LIBS" | |
5784 | CFLAGS="$lt_save_CFLAGS" | |
5785 | else | |
5786 | echo "cannot find nm_test_func in $nlist" >&5 | |
5787 | fi | |
5788 | else | |
5789 | echo "cannot find nm_test_var in $nlist" >&5 | |
5790 | fi | |
5791 | else | |
5792 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5793 | fi | |
5794 | else | |
5795 | echo "$progname: failed program was:" >&5 | |
5796 | cat conftest.$ac_ext >&5 | |
5797 | fi | |
5798 | rm -f conftest* conftst* | |
5799 | ||
5800 | # Do not use the global_symbol_pipe unless it works. | |
5801 | if test "$pipe_works" = yes; then | |
5802 | break | |
5803 | else | |
5804 | lt_cv_sys_global_symbol_pipe= | |
5805 | fi | |
5806 | done | |
5807 | ||
5808 | fi | |
5809 | ||
5810 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5811 | lt_cv_sys_global_symbol_to_cdecl= | |
5812 | fi | |
5813 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5814 | { echo "$as_me:$LINENO: result: failed" >&5 | |
5815 | echo "${ECHO_T}failed" >&6; } | |
5816 | else | |
5817 | { echo "$as_me:$LINENO: result: ok" >&5 | |
5818 | echo "${ECHO_T}ok" >&6; } | |
5819 | fi | |
5820 | ||
5821 | ||
5822 | ||
5823 | ||
5824 | ||
5825 | ||
5826 | ||
5827 | ||
5828 | ||
5829 | ||
5830 | ||
5831 | ||
5832 | ||
5833 | ||
5834 | ||
5835 | ||
5836 | ||
5837 | ||
5838 | # Check whether --enable-libtool-lock was given. | |
5839 | if test "${enable_libtool_lock+set}" = set; then | |
5840 | enableval=$enable_libtool_lock; | |
5841 | fi | |
5842 | ||
5843 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5844 | ||
5845 | # Some flags need to be propagated to the compiler or linker for good | |
5846 | # libtool support. | |
5847 | case $host in | |
5848 | ia64-*-hpux*) | |
5849 | # Find out which ABI we are using. | |
5850 | echo 'int i;' > conftest.$ac_ext | |
5851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5852 | (eval $ac_compile) 2>&5 | |
5853 | ac_status=$? | |
5854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5855 | (exit $ac_status); }; then | |
5856 | case `/usr/bin/file conftest.$ac_objext` in | |
5857 | *ELF-32*) | |
5858 | HPUX_IA64_MODE="32" | |
5859 | ;; | |
5860 | *ELF-64*) | |
5861 | HPUX_IA64_MODE="64" | |
5862 | ;; | |
5863 | esac | |
5864 | fi | |
5865 | rm -rf conftest* | |
5866 | ;; | |
5867 | *-*-irix6*) | |
5868 | # Find out which ABI we are using. | |
5869 | echo '#line 5869 "configure"' > conftest.$ac_ext | |
5870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5871 | (eval $ac_compile) 2>&5 | |
5872 | ac_status=$? | |
5873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5874 | (exit $ac_status); }; then | |
5875 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5876 | case `/usr/bin/file conftest.$ac_objext` in | |
5877 | *32-bit*) | |
5878 | LD="${LD-ld} -melf32bsmip" | |
5879 | ;; | |
5880 | *N32*) | |
5881 | LD="${LD-ld} -melf32bmipn32" | |
5882 | ;; | |
5883 | *64-bit*) | |
5884 | LD="${LD-ld} -melf64bmip" | |
5885 | ;; | |
5886 | esac | |
5887 | else | |
5888 | case `/usr/bin/file conftest.$ac_objext` in | |
5889 | *32-bit*) | |
5890 | LD="${LD-ld} -32" | |
5891 | ;; | |
5892 | *N32*) | |
5893 | LD="${LD-ld} -n32" | |
5894 | ;; | |
5895 | *64-bit*) | |
5896 | LD="${LD-ld} -64" | |
5897 | ;; | |
5898 | esac | |
5899 | fi | |
5900 | fi | |
5901 | rm -rf conftest* | |
5902 | ;; | |
5903 | ||
5904 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5905 | # Find out which ABI we are using. | |
5906 | echo 'int i;' > conftest.$ac_ext | |
5907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5908 | (eval $ac_compile) 2>&5 | |
5909 | ac_status=$? | |
5910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5911 | (exit $ac_status); }; then | |
5912 | case `/usr/bin/file conftest.o` in | |
5913 | *32-bit*) | |
5914 | case $host in | |
5915 | x86_64-*linux*) | |
5916 | LD="${LD-ld} -m elf_i386" | |
5917 | ;; | |
5918 | ppc64-*linux*|powerpc64-*linux*) | |
5919 | LD="${LD-ld} -m elf32ppclinux" | |
5920 | ;; | |
5921 | s390x-*linux*) | |
5922 | LD="${LD-ld} -m elf_s390" | |
5923 | ;; | |
5924 | sparc64-*linux*) | |
5925 | LD="${LD-ld} -m elf32_sparc" | |
5926 | ;; | |
5927 | esac | |
5928 | ;; | |
5929 | *64-bit*) | |
5930 | case $host in | |
5931 | x86_64-*linux*) | |
5932 | LD="${LD-ld} -m elf_x86_64" | |
5933 | ;; | |
5934 | ppc*-*linux*|powerpc*-*linux*) | |
5935 | LD="${LD-ld} -m elf64ppc" | |
5936 | ;; | |
5937 | s390*-*linux*|s390*-*tpf*) | |
5938 | LD="${LD-ld} -m elf64_s390" | |
5939 | ;; | |
5940 | sparc*-*linux*) | |
5941 | LD="${LD-ld} -m elf64_sparc" | |
5942 | ;; | |
5943 | esac | |
5944 | ;; | |
5945 | esac | |
5946 | fi | |
5947 | rm -rf conftest* | |
5948 | ;; | |
5949 | ||
5950 | *-*-sco3.2v5*) | |
5951 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5952 | SAVE_CFLAGS="$CFLAGS" | |
5953 | CFLAGS="$CFLAGS -belf" | |
5954 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
5955 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } | |
5956 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
5957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5958 | else | |
5959 | ac_ext=c | |
5960 | ac_cpp='$CPP $CPPFLAGS' | |
5961 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5962 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5963 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5964 | ||
5965 | cat >conftest.$ac_ext <<_ACEOF | |
5966 | /* confdefs.h. */ | |
5967 | _ACEOF | |
5968 | cat confdefs.h >>conftest.$ac_ext | |
5969 | cat >>conftest.$ac_ext <<_ACEOF | |
5970 | /* end confdefs.h. */ | |
5971 | ||
5972 | int | |
5973 | main () | |
5974 | { | |
5975 | ||
5976 | ; | |
5977 | return 0; | |
5978 | } | |
5979 | _ACEOF | |
5980 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5981 | if { (ac_try="$ac_link" | |
5982 | case "(($ac_try" in | |
5983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5984 | *) ac_try_echo=$ac_try;; | |
5985 | esac | |
5986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5987 | (eval "$ac_link") 2>conftest.er1 | |
5988 | ac_status=$? | |
5989 | grep -v '^ *+' conftest.er1 >conftest.err | |
5990 | rm -f conftest.er1 | |
5991 | cat conftest.err >&5 | |
5992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5993 | (exit $ac_status); } && { | |
5994 | test -z "$ac_c_werror_flag" || | |
5995 | test ! -s conftest.err | |
5996 | } && test -s conftest$ac_exeext && | |
5997 | $as_test_x conftest$ac_exeext; then | |
5998 | lt_cv_cc_needs_belf=yes | |
5999 | else | |
6000 | echo "$as_me: failed program was:" >&5 | |
6001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6002 | ||
6003 | lt_cv_cc_needs_belf=no | |
6004 | fi | |
6005 | ||
6006 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6007 | conftest$ac_exeext conftest.$ac_ext | |
6008 | ac_ext=c | |
6009 | ac_cpp='$CPP $CPPFLAGS' | |
6010 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6011 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6012 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6013 | ||
6014 | fi | |
6015 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
6016 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } | |
6017 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6018 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6019 | CFLAGS="$SAVE_CFLAGS" | |
6020 | fi | |
6021 | ;; | |
6022 | sparc*-*solaris*) | |
6023 | # Find out which ABI we are using. | |
6024 | echo 'int i;' > conftest.$ac_ext | |
6025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6026 | (eval $ac_compile) 2>&5 | |
6027 | ac_status=$? | |
6028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6029 | (exit $ac_status); }; then | |
6030 | case `/usr/bin/file conftest.o` in | |
6031 | *64-bit*) | |
6032 | case $lt_cv_prog_gnu_ld in | |
6033 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6034 | *) LD="${LD-ld} -64" ;; | |
6035 | esac | |
6036 | ;; | |
6037 | esac | |
6038 | fi | |
6039 | rm -rf conftest* | |
6040 | ;; | |
6041 | esac | |
6042 | ||
6043 | need_locks="$enable_libtool_lock" | |
6044 | ||
6045 | ac_ext=c | |
6046 | ac_cpp='$CPP $CPPFLAGS' | |
6047 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6048 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6049 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6050 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
6051 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
6052 | # On Suns, sometimes $CPP names a directory. | |
6053 | if test -n "$CPP" && test -d "$CPP"; then | |
6054 | CPP= | |
6055 | fi | |
6056 | if test -z "$CPP"; then | |
6057 | if test "${ac_cv_prog_CPP+set}" = set; then | |
6058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6059 | else | |
6060 | # Double quotes because CPP needs to be expanded | |
6061 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6062 | do | |
6063 | ac_preproc_ok=false | |
6064 | for ac_c_preproc_warn_flag in '' yes | |
6065 | do | |
6066 | # Use a header file that comes with gcc, so configuring glibc | |
6067 | # with a fresh cross-compiler works. | |
6068 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6069 | # <limits.h> exists even on freestanding compilers. | |
6070 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6071 | # not just through cpp. "Syntax error" is here to catch this case. | |
6072 | cat >conftest.$ac_ext <<_ACEOF | |
6073 | /* confdefs.h. */ | |
6074 | _ACEOF | |
6075 | cat confdefs.h >>conftest.$ac_ext | |
6076 | cat >>conftest.$ac_ext <<_ACEOF | |
6077 | /* end confdefs.h. */ | |
6078 | #ifdef __STDC__ | |
6079 | # include <limits.h> | |
6080 | #else | |
6081 | # include <assert.h> | |
6082 | #endif | |
6083 | Syntax error | |
6084 | _ACEOF | |
6085 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6086 | case "(($ac_try" in | |
6087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6088 | *) ac_try_echo=$ac_try;; | |
6089 | esac | |
6090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6091 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6092 | ac_status=$? | |
6093 | grep -v '^ *+' conftest.er1 >conftest.err | |
6094 | rm -f conftest.er1 | |
6095 | cat conftest.err >&5 | |
6096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6097 | (exit $ac_status); } >/dev/null && { | |
6098 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6099 | test ! -s conftest.err | |
6100 | }; then | |
6101 | : | |
6102 | else | |
6103 | echo "$as_me: failed program was:" >&5 | |
6104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6105 | ||
6106 | # Broken: fails on valid input. | |
6107 | continue | |
6108 | fi | |
6109 | ||
6110 | rm -f conftest.err conftest.$ac_ext | |
6111 | ||
6112 | # OK, works on sane cases. Now check whether nonexistent headers | |
6113 | # can be detected and how. | |
6114 | cat >conftest.$ac_ext <<_ACEOF | |
6115 | /* confdefs.h. */ | |
6116 | _ACEOF | |
6117 | cat confdefs.h >>conftest.$ac_ext | |
6118 | cat >>conftest.$ac_ext <<_ACEOF | |
6119 | /* end confdefs.h. */ | |
6120 | #include <ac_nonexistent.h> | |
6121 | _ACEOF | |
6122 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6123 | case "(($ac_try" in | |
6124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6125 | *) ac_try_echo=$ac_try;; | |
6126 | esac | |
6127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6128 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6129 | ac_status=$? | |
6130 | grep -v '^ *+' conftest.er1 >conftest.err | |
6131 | rm -f conftest.er1 | |
6132 | cat conftest.err >&5 | |
6133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6134 | (exit $ac_status); } >/dev/null && { | |
6135 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6136 | test ! -s conftest.err | |
6137 | }; then | |
6138 | # Broken: success on invalid input. | |
6139 | continue | |
6140 | else | |
6141 | echo "$as_me: failed program was:" >&5 | |
6142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6143 | ||
6144 | # Passes both tests. | |
6145 | ac_preproc_ok=: | |
6146 | break | |
6147 | fi | |
6148 | ||
6149 | rm -f conftest.err conftest.$ac_ext | |
6150 | ||
6151 | done | |
6152 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6153 | rm -f conftest.err conftest.$ac_ext | |
6154 | if $ac_preproc_ok; then | |
6155 | break | |
6156 | fi | |
6157 | ||
6158 | done | |
6159 | ac_cv_prog_CPP=$CPP | |
6160 | ||
6161 | fi | |
6162 | CPP=$ac_cv_prog_CPP | |
6163 | else | |
6164 | ac_cv_prog_CPP=$CPP | |
6165 | fi | |
6166 | { echo "$as_me:$LINENO: result: $CPP" >&5 | |
6167 | echo "${ECHO_T}$CPP" >&6; } | |
6168 | ac_preproc_ok=false | |
6169 | for ac_c_preproc_warn_flag in '' yes | |
6170 | do | |
6171 | # Use a header file that comes with gcc, so configuring glibc | |
6172 | # with a fresh cross-compiler works. | |
6173 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6174 | # <limits.h> exists even on freestanding compilers. | |
6175 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6176 | # not just through cpp. "Syntax error" is here to catch this case. | |
6177 | cat >conftest.$ac_ext <<_ACEOF | |
6178 | /* confdefs.h. */ | |
6179 | _ACEOF | |
6180 | cat confdefs.h >>conftest.$ac_ext | |
6181 | cat >>conftest.$ac_ext <<_ACEOF | |
6182 | /* end confdefs.h. */ | |
6183 | #ifdef __STDC__ | |
6184 | # include <limits.h> | |
6185 | #else | |
6186 | # include <assert.h> | |
6187 | #endif | |
6188 | Syntax error | |
6189 | _ACEOF | |
6190 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6191 | case "(($ac_try" in | |
6192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6193 | *) ac_try_echo=$ac_try;; | |
6194 | esac | |
6195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6196 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6197 | ac_status=$? | |
6198 | grep -v '^ *+' conftest.er1 >conftest.err | |
6199 | rm -f conftest.er1 | |
6200 | cat conftest.err >&5 | |
6201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6202 | (exit $ac_status); } >/dev/null && { | |
6203 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6204 | test ! -s conftest.err | |
6205 | }; then | |
6206 | : | |
6207 | else | |
6208 | echo "$as_me: failed program was:" >&5 | |
6209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6210 | ||
6211 | # Broken: fails on valid input. | |
6212 | continue | |
6213 | fi | |
6214 | ||
6215 | rm -f conftest.err conftest.$ac_ext | |
6216 | ||
6217 | # OK, works on sane cases. Now check whether nonexistent headers | |
6218 | # can be detected and how. | |
6219 | cat >conftest.$ac_ext <<_ACEOF | |
6220 | /* confdefs.h. */ | |
6221 | _ACEOF | |
6222 | cat confdefs.h >>conftest.$ac_ext | |
6223 | cat >>conftest.$ac_ext <<_ACEOF | |
6224 | /* end confdefs.h. */ | |
6225 | #include <ac_nonexistent.h> | |
6226 | _ACEOF | |
6227 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6228 | case "(($ac_try" in | |
6229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6230 | *) ac_try_echo=$ac_try;; | |
6231 | esac | |
6232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6233 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6234 | ac_status=$? | |
6235 | grep -v '^ *+' conftest.er1 >conftest.err | |
6236 | rm -f conftest.er1 | |
6237 | cat conftest.err >&5 | |
6238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6239 | (exit $ac_status); } >/dev/null && { | |
6240 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6241 | test ! -s conftest.err | |
6242 | }; then | |
6243 | # Broken: success on invalid input. | |
6244 | continue | |
6245 | else | |
6246 | echo "$as_me: failed program was:" >&5 | |
6247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6248 | ||
6249 | # Passes both tests. | |
6250 | ac_preproc_ok=: | |
6251 | break | |
6252 | fi | |
6253 | ||
6254 | rm -f conftest.err conftest.$ac_ext | |
6255 | ||
6256 | done | |
6257 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6258 | rm -f conftest.err conftest.$ac_ext | |
6259 | if $ac_preproc_ok; then | |
6260 | : | |
6261 | else | |
6262 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
6263 | See \`config.log' for more details." >&5 | |
6264 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
6265 | See \`config.log' for more details." >&2;} | |
6266 | { (exit 1); exit 1; }; } | |
6267 | fi | |
6268 | ||
6269 | ac_ext=c | |
6270 | ac_cpp='$CPP $CPPFLAGS' | |
6271 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6272 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6273 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6274 | ||
6275 | ||
6276 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
6277 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
6278 | if test "${ac_cv_header_stdc+set}" = set; then | |
6279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6280 | else | |
6281 | cat >conftest.$ac_ext <<_ACEOF | |
6282 | /* confdefs.h. */ | |
6283 | _ACEOF | |
6284 | cat confdefs.h >>conftest.$ac_ext | |
6285 | cat >>conftest.$ac_ext <<_ACEOF | |
6286 | /* end confdefs.h. */ | |
6287 | #include <stdlib.h> | |
6288 | #include <stdarg.h> | |
6289 | #include <string.h> | |
6290 | #include <float.h> | |
6291 | ||
6292 | int | |
6293 | main () | |
6294 | { | |
6295 | ||
6296 | ; | |
6297 | return 0; | |
6298 | } | |
6299 | _ACEOF | |
6300 | rm -f conftest.$ac_objext | |
6301 | if { (ac_try="$ac_compile" | |
6302 | case "(($ac_try" in | |
6303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6304 | *) ac_try_echo=$ac_try;; | |
6305 | esac | |
6306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6307 | (eval "$ac_compile") 2>conftest.er1 | |
6308 | ac_status=$? | |
6309 | grep -v '^ *+' conftest.er1 >conftest.err | |
6310 | rm -f conftest.er1 | |
6311 | cat conftest.err >&5 | |
6312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6313 | (exit $ac_status); } && { | |
6314 | test -z "$ac_c_werror_flag" || | |
6315 | test ! -s conftest.err | |
6316 | } && test -s conftest.$ac_objext; then | |
6317 | ac_cv_header_stdc=yes | |
6318 | else | |
6319 | echo "$as_me: failed program was:" >&5 | |
6320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6321 | ||
6322 | ac_cv_header_stdc=no | |
6323 | fi | |
6324 | ||
6325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6326 | ||
6327 | if test $ac_cv_header_stdc = yes; then | |
6328 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6329 | cat >conftest.$ac_ext <<_ACEOF | |
6330 | /* confdefs.h. */ | |
6331 | _ACEOF | |
6332 | cat confdefs.h >>conftest.$ac_ext | |
6333 | cat >>conftest.$ac_ext <<_ACEOF | |
6334 | /* end confdefs.h. */ | |
6335 | #include <string.h> | |
6336 | ||
6337 | _ACEOF | |
6338 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6339 | $EGREP "memchr" >/dev/null 2>&1; then | |
6340 | : | |
6341 | else | |
6342 | ac_cv_header_stdc=no | |
6343 | fi | |
6344 | rm -f conftest* | |
6345 | ||
6346 | fi | |
6347 | ||
6348 | if test $ac_cv_header_stdc = yes; then | |
6349 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6350 | cat >conftest.$ac_ext <<_ACEOF | |
6351 | /* confdefs.h. */ | |
6352 | _ACEOF | |
6353 | cat confdefs.h >>conftest.$ac_ext | |
6354 | cat >>conftest.$ac_ext <<_ACEOF | |
6355 | /* end confdefs.h. */ | |
6356 | #include <stdlib.h> | |
6357 | ||
6358 | _ACEOF | |
6359 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6360 | $EGREP "free" >/dev/null 2>&1; then | |
6361 | : | |
6362 | else | |
6363 | ac_cv_header_stdc=no | |
6364 | fi | |
6365 | rm -f conftest* | |
6366 | ||
6367 | fi | |
6368 | ||
6369 | if test $ac_cv_header_stdc = yes; then | |
6370 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6371 | if test "$cross_compiling" = yes; then | |
6372 | : | |
6373 | else | |
6374 | cat >conftest.$ac_ext <<_ACEOF | |
6375 | /* confdefs.h. */ | |
6376 | _ACEOF | |
6377 | cat confdefs.h >>conftest.$ac_ext | |
6378 | cat >>conftest.$ac_ext <<_ACEOF | |
6379 | /* end confdefs.h. */ | |
6380 | #include <ctype.h> | |
6381 | #include <stdlib.h> | |
6382 | #if ((' ' & 0x0FF) == 0x020) | |
6383 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6384 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6385 | #else | |
6386 | # define ISLOWER(c) \ | |
6387 | (('a' <= (c) && (c) <= 'i') \ | |
6388 | || ('j' <= (c) && (c) <= 'r') \ | |
6389 | || ('s' <= (c) && (c) <= 'z')) | |
6390 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6391 | #endif | |
6392 | ||
6393 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6394 | int | |
6395 | main () | |
6396 | { | |
6397 | int i; | |
6398 | for (i = 0; i < 256; i++) | |
6399 | if (XOR (islower (i), ISLOWER (i)) | |
6400 | || toupper (i) != TOUPPER (i)) | |
6401 | return 2; | |
6402 | return 0; | |
6403 | } | |
6404 | _ACEOF | |
6405 | rm -f conftest$ac_exeext | |
6406 | if { (ac_try="$ac_link" | |
6407 | case "(($ac_try" in | |
6408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6409 | *) ac_try_echo=$ac_try;; | |
6410 | esac | |
6411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6412 | (eval "$ac_link") 2>&5 | |
6413 | ac_status=$? | |
6414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6415 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6416 | { (case "(($ac_try" in | |
6417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6418 | *) ac_try_echo=$ac_try;; | |
6419 | esac | |
6420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6421 | (eval "$ac_try") 2>&5 | |
6422 | ac_status=$? | |
6423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6424 | (exit $ac_status); }; }; then | |
6425 | : | |
6426 | else | |
6427 | echo "$as_me: program exited with status $ac_status" >&5 | |
6428 | echo "$as_me: failed program was:" >&5 | |
6429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6430 | ||
6431 | ( exit $ac_status ) | |
6432 | ac_cv_header_stdc=no | |
6433 | fi | |
6434 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6435 | fi | |
6436 | ||
6437 | ||
6438 | fi | |
6439 | fi | |
6440 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
6441 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
6442 | if test $ac_cv_header_stdc = yes; then | |
6443 | ||
6444 | cat >>confdefs.h <<\_ACEOF | |
6445 | #define STDC_HEADERS 1 | |
6446 | _ACEOF | |
6447 | ||
6448 | fi | |
6449 | ||
6450 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6451 | ||
6452 | ||
6453 | ||
6454 | ||
6455 | ||
6456 | ||
6457 | ||
6458 | ||
6459 | ||
6460 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6461 | inttypes.h stdint.h unistd.h | |
6462 | do | |
6463 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6464 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6465 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6466 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6468 | else | |
6469 | cat >conftest.$ac_ext <<_ACEOF | |
6470 | /* confdefs.h. */ | |
6471 | _ACEOF | |
6472 | cat confdefs.h >>conftest.$ac_ext | |
6473 | cat >>conftest.$ac_ext <<_ACEOF | |
6474 | /* end confdefs.h. */ | |
6475 | $ac_includes_default | |
6476 | ||
6477 | #include <$ac_header> | |
6478 | _ACEOF | |
6479 | rm -f conftest.$ac_objext | |
6480 | if { (ac_try="$ac_compile" | |
6481 | case "(($ac_try" in | |
6482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6483 | *) ac_try_echo=$ac_try;; | |
6484 | esac | |
6485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6486 | (eval "$ac_compile") 2>conftest.er1 | |
6487 | ac_status=$? | |
6488 | grep -v '^ *+' conftest.er1 >conftest.err | |
6489 | rm -f conftest.er1 | |
6490 | cat conftest.err >&5 | |
6491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6492 | (exit $ac_status); } && { | |
6493 | test -z "$ac_c_werror_flag" || | |
6494 | test ! -s conftest.err | |
6495 | } && test -s conftest.$ac_objext; then | |
6496 | eval "$as_ac_Header=yes" | |
6497 | else | |
6498 | echo "$as_me: failed program was:" >&5 | |
6499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6500 | ||
6501 | eval "$as_ac_Header=no" | |
6502 | fi | |
6503 | ||
6504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6505 | fi | |
6506 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
6507 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6508 | echo "${ECHO_T}$ac_res" >&6; } | |
6509 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6510 | cat >>confdefs.h <<_ACEOF | |
6511 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6512 | _ACEOF | |
6513 | ||
6514 | fi | |
6515 | ||
6516 | done | |
6517 | ||
6518 | ||
6519 | ||
6520 | for ac_header in dlfcn.h | |
6521 | do | |
6522 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6523 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6524 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6525 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6527 | else | |
6528 | cat >conftest.$ac_ext <<_ACEOF | |
6529 | /* confdefs.h. */ | |
6530 | _ACEOF | |
6531 | cat confdefs.h >>conftest.$ac_ext | |
6532 | cat >>conftest.$ac_ext <<_ACEOF | |
6533 | /* end confdefs.h. */ | |
6534 | $ac_includes_default | |
6535 | ||
6536 | #include <$ac_header> | |
6537 | _ACEOF | |
6538 | rm -f conftest.$ac_objext | |
6539 | if { (ac_try="$ac_compile" | |
6540 | case "(($ac_try" in | |
6541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6542 | *) ac_try_echo=$ac_try;; | |
6543 | esac | |
6544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6545 | (eval "$ac_compile") 2>conftest.er1 | |
6546 | ac_status=$? | |
6547 | grep -v '^ *+' conftest.er1 >conftest.err | |
6548 | rm -f conftest.er1 | |
6549 | cat conftest.err >&5 | |
6550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6551 | (exit $ac_status); } && { | |
6552 | test -z "$ac_c_werror_flag" || | |
6553 | test ! -s conftest.err | |
6554 | } && test -s conftest.$ac_objext; then | |
6555 | eval "$as_ac_Header=yes" | |
6556 | else | |
6557 | echo "$as_me: failed program was:" >&5 | |
6558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6559 | ||
6560 | eval "$as_ac_Header=no" | |
6561 | fi | |
6562 | ||
6563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6564 | fi | |
6565 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
6566 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6567 | echo "${ECHO_T}$ac_res" >&6; } | |
6568 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6569 | cat >>confdefs.h <<_ACEOF | |
6570 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6571 | _ACEOF | |
6572 | ||
6573 | fi | |
6574 | ||
6575 | done | |
6576 | ||
6577 | ||
6578 | ||
6579 | # This can be used to rebuild libtool when needed | |
6580 | LIBTOOL_DEPS="$ltmain" | |
6581 | ||
6582 | # Always use our own libtool. | |
6583 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6584 | ||
6585 | ||
6586 | ||
6587 | ||
6588 | ||
6589 | ||
6590 | ||
6591 | ||
6592 | ||
6593 | ||
6594 | ||
6595 | ||
6596 | ||
6597 | ||
6598 | ||
6599 | ||
6600 | ||
6601 | ||
6602 | ||
6603 | ||
6604 | ||
6605 | ||
6606 | ||
6607 | ||
6608 | ||
6609 | test -z "$LN_S" && LN_S="ln -s" | |
6610 | ||
6611 | ||
6612 | ||
6613 | ||
6614 | ||
6615 | ||
6616 | ||
6617 | ||
6618 | ||
6619 | ||
6620 | ||
6621 | ||
6622 | ||
6623 | ||
6624 | if test -n "${ZSH_VERSION+set}" ; then | |
6625 | setopt NO_GLOB_SUBST | |
6626 | fi | |
6627 | ||
6628 | { echo "$as_me:$LINENO: checking for objdir" >&5 | |
6629 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } | |
6630 | if test "${lt_cv_objdir+set}" = set; then | |
6631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6632 | else | |
6633 | rm -f .libs 2>/dev/null | |
6634 | mkdir .libs 2>/dev/null | |
6635 | if test -d .libs; then | |
6636 | lt_cv_objdir=.libs | |
6637 | else | |
6638 | # MS-DOS does not allow filenames that begin with a dot. | |
6639 | lt_cv_objdir=_libs | |
6640 | fi | |
6641 | rmdir .libs 2>/dev/null | |
6642 | fi | |
6643 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
6644 | echo "${ECHO_T}$lt_cv_objdir" >&6; } | |
6645 | objdir=$lt_cv_objdir | |
6646 | ||
6647 | ||
6648 | ||
6649 | ||
6650 | ||
6651 | cat >>confdefs.h <<_ACEOF | |
6652 | #define LT_OBJDIR "$lt_cv_objdir/" | |
6653 | _ACEOF | |
6654 | ||
6655 | ||
6656 | ||
6657 | ||
6658 | ||
6659 | ||
6660 | ||
6661 | ||
6662 | ||
6663 | ||
6664 | ||
6665 | ||
6666 | ||
6667 | ||
6668 | ||
6669 | ||
6670 | ||
6671 | case $host_os in | |
6672 | aix3*) | |
6673 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6674 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6675 | # vanish in a puff of smoke. | |
6676 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6677 | COLLECT_NAMES= | |
6678 | export COLLECT_NAMES | |
6679 | fi | |
6680 | ;; | |
6681 | esac | |
6682 | ||
6683 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6684 | # metacharacters that are still active within double-quoted strings. | |
6685 | Xsed='sed -e 1s/^X//' | |
6686 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6687 | ||
6688 | # Same as above, but do not quote variable references. | |
6689 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6690 | ||
6691 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6692 | # double_quote_subst'ed string. | |
6693 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6694 | ||
6695 | # Sed substitution to delay expansion of an escaped single quote. | |
6696 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6697 | ||
6698 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6699 | no_glob_subst='s/\*/\\\*/g' | |
6700 | ||
6701 | # Global variables: | |
6702 | ofile=libtool | |
6703 | can_build_shared=yes | |
6704 | ||
6705 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
6706 | # which needs '.lib'). | |
6707 | libext=a | |
6708 | ||
6709 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6710 | ||
6711 | old_CC="$CC" | |
6712 | old_CFLAGS="$CFLAGS" | |
6713 | ||
6714 | # Set sane defaults for various variables | |
6715 | test -z "$CC" && CC=cc | |
6716 | test -z "$LTCC" && LTCC=$CC | |
6717 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6718 | test -z "$LD" && LD=ld | |
6719 | test -z "$ac_objext" && ac_objext=o | |
6720 | ||
6721 | for cc_temp in $compiler""; do | |
6722 | case $cc_temp in | |
6723 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6724 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6725 | \-*) ;; | |
6726 | *) break;; | |
6727 | esac | |
6728 | done | |
6729 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6730 | ||
6731 | ||
6732 | # Only perform the check for file, if the check method requires it | |
6733 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6734 | case $deplibs_check_method in | |
6735 | file_magic*) | |
6736 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6737 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
6738 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } | |
6739 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6741 | else | |
6742 | case $MAGIC_CMD in | |
6743 | [\\/*] | ?:[\\/]*) | |
6744 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6745 | ;; | |
6746 | *) | |
6747 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6748 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6749 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6750 | for ac_dir in $ac_dummy; do | |
6751 | IFS="$lt_save_ifs" | |
6752 | test -z "$ac_dir" && ac_dir=. | |
6753 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6754 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6755 | if test -n "$file_magic_test_file"; then | |
6756 | case $deplibs_check_method in | |
6757 | "file_magic "*) | |
6758 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6759 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6760 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6761 | $EGREP "$file_magic_regex" > /dev/null; then | |
6762 | : | |
6763 | else | |
6764 | cat <<_LT_EOF 1>&2 | |
6765 | ||
6766 | *** Warning: the command libtool uses to detect shared libraries, | |
6767 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6768 | *** The result is that libtool may fail to recognize shared libraries | |
6769 | *** as such. This will affect the creation of libtool libraries that | |
6770 | *** depend on shared libraries, but programs linked with such libtool | |
6771 | *** libraries will work regardless of this problem. Nevertheless, you | |
6772 | *** may want to report the problem to your system manager and/or to | |
6773 | *** bug-libtool@gnu.org | |
6774 | ||
6775 | _LT_EOF | |
6776 | fi ;; | |
6777 | esac | |
6778 | fi | |
6779 | break | |
6780 | fi | |
6781 | done | |
6782 | IFS="$lt_save_ifs" | |
6783 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6784 | ;; | |
6785 | esac | |
6786 | fi | |
6787 | ||
6788 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6789 | if test -n "$MAGIC_CMD"; then | |
6790 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6791 | echo "${ECHO_T}$MAGIC_CMD" >&6; } | |
6792 | else | |
6793 | { echo "$as_me:$LINENO: result: no" >&5 | |
6794 | echo "${ECHO_T}no" >&6; } | |
6795 | fi | |
6796 | ||
6797 | ||
6798 | ||
6799 | ||
6800 | ||
6801 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6802 | if test -n "$ac_tool_prefix"; then | |
6803 | { echo "$as_me:$LINENO: checking for file" >&5 | |
6804 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } | |
6805 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6807 | else | |
6808 | case $MAGIC_CMD in | |
6809 | [\\/*] | ?:[\\/]*) | |
6810 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6811 | ;; | |
6812 | *) | |
6813 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6814 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6815 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6816 | for ac_dir in $ac_dummy; do | |
6817 | IFS="$lt_save_ifs" | |
6818 | test -z "$ac_dir" && ac_dir=. | |
6819 | if test -f $ac_dir/file; then | |
6820 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6821 | if test -n "$file_magic_test_file"; then | |
6822 | case $deplibs_check_method in | |
6823 | "file_magic "*) | |
6824 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6825 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6826 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6827 | $EGREP "$file_magic_regex" > /dev/null; then | |
6828 | : | |
6829 | else | |
6830 | cat <<_LT_EOF 1>&2 | |
6831 | ||
6832 | *** Warning: the command libtool uses to detect shared libraries, | |
6833 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6834 | *** The result is that libtool may fail to recognize shared libraries | |
6835 | *** as such. This will affect the creation of libtool libraries that | |
6836 | *** depend on shared libraries, but programs linked with such libtool | |
6837 | *** libraries will work regardless of this problem. Nevertheless, you | |
6838 | *** may want to report the problem to your system manager and/or to | |
6839 | *** bug-libtool@gnu.org | |
6840 | ||
6841 | _LT_EOF | |
6842 | fi ;; | |
6843 | esac | |
6844 | fi | |
6845 | break | |
6846 | fi | |
6847 | done | |
6848 | IFS="$lt_save_ifs" | |
6849 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6850 | ;; | |
6851 | esac | |
6852 | fi | |
6853 | ||
6854 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6855 | if test -n "$MAGIC_CMD"; then | |
6856 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6857 | echo "${ECHO_T}$MAGIC_CMD" >&6; } | |
6858 | else | |
6859 | { echo "$as_me:$LINENO: result: no" >&5 | |
6860 | echo "${ECHO_T}no" >&6; } | |
6861 | fi | |
6862 | ||
6863 | ||
6864 | else | |
6865 | MAGIC_CMD=: | |
6866 | fi | |
6867 | fi | |
6868 | ||
6869 | fi | |
6870 | ;; | |
6871 | esac | |
6872 | ||
6873 | # Use C for the default configuration in the libtool script | |
6874 | ||
6875 | lt_save_CC="$CC" | |
6876 | ac_ext=c | |
6877 | ac_cpp='$CPP $CPPFLAGS' | |
6878 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6879 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6880 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6881 | ||
6882 | ||
6883 | # Source file extension for C test sources. | |
6884 | ac_ext=c | |
6885 | ||
6886 | # Object file extension for compiled C test sources. | |
6887 | objext=o | |
6888 | objext=$objext | |
6889 | ||
6890 | # Code to be used in simple compile tests | |
6891 | lt_simple_compile_test_code="int some_variable = 0;\n" | |
6892 | ||
6893 | # Code to be used in simple link tests | |
6894 | lt_simple_link_test_code='int main(){return(0);}\n' | |
6895 | ||
6896 | ||
6897 | ||
6898 | ||
6899 | ||
6900 | ||
6901 | ||
6902 | # If no C compiler was specified, use CC. | |
6903 | LTCC=${LTCC-"$CC"} | |
6904 | ||
6905 | # If no C compiler flags were specified, use CFLAGS. | |
6906 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6907 | ||
6908 | # Allow CC to be a program name with arguments. | |
6909 | compiler=$CC | |
6910 | ||
6911 | # Save the default compiler, since it gets overwritten when the other | |
6912 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
6913 | compiler_DEFAULT=$CC | |
6914 | ||
6915 | # save warnings/boilerplate of simple test code | |
6916 | ac_outfile=conftest.$ac_objext | |
6917 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
6918 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6919 | _lt_compiler_boilerplate=`cat conftest.err` | |
6920 | $RM conftest* | |
6921 | ||
6922 | ac_outfile=conftest.$ac_objext | |
6923 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
6924 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6925 | _lt_linker_boilerplate=`cat conftest.err` | |
6926 | $RM conftest* | |
6927 | ||
6928 | ||
6929 | ## CAVEAT EMPTOR: | |
6930 | ## There is no encapsulation within the following macros, do not change | |
6931 | ## the running order or otherwise move them around unless you know exactly | |
6932 | ## what you are doing... | |
6933 | if test -n "$compiler"; then | |
6934 | ||
6935 | lt_prog_compiler_no_builtin_flag= | |
6936 | ||
6937 | if test "$GCC" = yes; then | |
6938 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6939 | ||
6940 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
6941 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } | |
6942 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
6943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6944 | else | |
6945 | lt_cv_prog_compiler_rtti_exceptions=no | |
6946 | ac_outfile=conftest.$ac_objext | |
6947 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6948 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6949 | # Insert the option either (1) after the last *FLAGS variable, or | |
6950 | # (2) before a word containing "conftest.", or (3) at the end. | |
6951 | # Note that $ac_compile itself does not contain backslashes and begins | |
6952 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6953 | # The option is referenced via a variable to avoid confusing sed. | |
6954 | lt_compile=`echo "$ac_compile" | $SED \ | |
6955 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6956 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6957 | -e 's:$: $lt_compiler_flag:'` | |
6958 | (eval echo "\"\$as_me:6958: $lt_compile\"" >&5) | |
6959 | (eval "$lt_compile" 2>conftest.err) | |
6960 | ac_status=$? | |
6961 | cat conftest.err >&5 | |
6962 | echo "$as_me:6962: \$? = $ac_status" >&5 | |
6963 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
6964 | # The compiler can only warn and ignore the option if not recognized | |
6965 | # So say no if there are warnings other than the usual output. | |
6966 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6967 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6968 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6969 | lt_cv_prog_compiler_rtti_exceptions=yes | |
6970 | fi | |
6971 | fi | |
6972 | $RM conftest* | |
6973 | ||
6974 | fi | |
6975 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6976 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
6977 | ||
6978 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6979 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6980 | else | |
6981 | : | |
6982 | fi | |
6983 | ||
6984 | fi | |
6985 | ||
6986 | ||
6987 | ||
6988 | ||
6989 | ||
6990 | ||
6991 | lt_prog_compiler_wl= | |
6992 | lt_prog_compiler_pic= | |
6993 | lt_prog_compiler_static= | |
6994 | ||
6995 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
6996 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
6997 | ||
6998 | if test "$GCC" = yes; then | |
6999 | lt_prog_compiler_wl='-Wl,' | |
7000 | lt_prog_compiler_static='-static' | |
7001 | ||
7002 | case $host_os in | |
7003 | aix*) | |
7004 | # All AIX code is PIC. | |
7005 | if test "$host_cpu" = ia64; then | |
7006 | # AIX 5 now supports IA64 processor | |
7007 | lt_prog_compiler_static='-Bstatic' | |
7008 | fi | |
7009 | ;; | |
7010 | ||
7011 | amigaos*) | |
7012 | if test "$host_cpu" = m68k; then | |
7013 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7014 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7015 | # like `-m68040'. | |
7016 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7017 | fi | |
7018 | ;; | |
7019 | ||
7020 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
7021 | # PIC is the default for these OSes. | |
7022 | ;; | |
7023 | ||
7024 | mingw* | pw32* | os2*) | |
7025 | # This hack is so that the source file can tell whether it is being | |
7026 | # built for inclusion in a dll (and should export symbols for example). | |
7027 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7028 | ;; | |
7029 | ||
7030 | darwin* | rhapsody*) | |
7031 | # PIC is the default on this platform | |
7032 | # Common symbols not allowed in MH_DYLIB files | |
7033 | lt_prog_compiler_pic='-fno-common' | |
7034 | ;; | |
7035 | ||
7036 | hpux*) | |
7037 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7038 | # not for PA HP-UX. | |
7039 | case $host_cpu in | |
7040 | hppa*64*|ia64*) | |
7041 | # +Z the default | |
7042 | ;; | |
7043 | *) | |
7044 | lt_prog_compiler_pic='-fPIC' | |
7045 | ;; | |
7046 | esac | |
7047 | ;; | |
7048 | ||
7049 | interix3*) | |
7050 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7051 | # Instead, we relocate shared libraries at runtime. | |
7052 | ;; | |
7053 | ||
7054 | msdosdjgpp*) | |
7055 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7056 | # on systems that don't support them. | |
7057 | lt_prog_compiler_can_build_shared=no | |
7058 | enable_shared=no | |
7059 | ;; | |
7060 | ||
7061 | *nto* | *qnx*) | |
7062 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7063 | # it will coredump. | |
7064 | lt_prog_compiler_pic='-fPIC -shared' | |
7065 | ;; | |
7066 | ||
7067 | sysv4*MP*) | |
7068 | if test -d /usr/nec; then | |
7069 | lt_prog_compiler_pic=-Kconform_pic | |
7070 | fi | |
7071 | ;; | |
7072 | ||
7073 | *) | |
7074 | lt_prog_compiler_pic='-fPIC' | |
7075 | ;; | |
7076 | esac | |
7077 | else | |
7078 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7079 | case $host_os in | |
7080 | aix*) | |
7081 | lt_prog_compiler_wl='-Wl,' | |
7082 | if test "$host_cpu" = ia64; then | |
7083 | # AIX 5 now supports IA64 processor | |
7084 | lt_prog_compiler_static='-Bstatic' | |
7085 | else | |
7086 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
7087 | fi | |
7088 | ;; | |
7089 | darwin*) | |
7090 | # PIC is the default on this platform | |
7091 | # Common symbols not allowed in MH_DYLIB files | |
7092 | case $cc_basename in | |
7093 | xlc*) | |
7094 | lt_prog_compiler_pic='-qnocommon' | |
7095 | lt_prog_compiler_wl='-Wl,' | |
7096 | ;; | |
7097 | esac | |
7098 | ;; | |
7099 | ||
7100 | mingw* | pw32* | os2*) | |
7101 | # This hack is so that the source file can tell whether it is being | |
7102 | # built for inclusion in a dll (and should export symbols for example). | |
7103 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7104 | ;; | |
7105 | ||
7106 | hpux9* | hpux10* | hpux11*) | |
7107 | lt_prog_compiler_wl='-Wl,' | |
7108 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7109 | # not for PA HP-UX. | |
7110 | case $host_cpu in | |
7111 | hppa*64*|ia64*) | |
7112 | # +Z the default | |
7113 | ;; | |
7114 | *) | |
7115 | lt_prog_compiler_pic='+Z' | |
7116 | ;; | |
7117 | esac | |
7118 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7119 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7120 | ;; | |
7121 | ||
7122 | irix5* | irix6* | nonstopux*) | |
7123 | lt_prog_compiler_wl='-Wl,' | |
7124 | # PIC (with -KPIC) is the default. | |
7125 | lt_prog_compiler_static='-non_shared' | |
7126 | ;; | |
7127 | ||
7128 | linux*) | |
7129 | case $cc_basename in | |
7130 | icc* | ecc*) | |
7131 | lt_prog_compiler_wl='-Wl,' | |
7132 | lt_prog_compiler_pic='-KPIC' | |
7133 | lt_prog_compiler_static='-static' | |
7134 | ;; | |
7135 | pgcc* | pgf77* | pgf90* | pgf95*) | |
7136 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
7137 | # which looks to be a dead project) | |
7138 | lt_prog_compiler_wl='-Wl,' | |
7139 | lt_prog_compiler_pic='-fpic' | |
7140 | lt_prog_compiler_static='-Bstatic' | |
7141 | ;; | |
7142 | ccc*) | |
7143 | lt_prog_compiler_wl='-Wl,' | |
7144 | # All Alpha code is PIC. | |
7145 | lt_prog_compiler_static='-non_shared' | |
7146 | ;; | |
7147 | esac | |
7148 | ;; | |
7149 | ||
7150 | newsos6) | |
7151 | lt_prog_compiler_pic='-KPIC' | |
7152 | lt_prog_compiler_static='-Bstatic' | |
7153 | ;; | |
7154 | ||
7155 | *nto* | *qnx*) | |
7156 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7157 | # it will coredump. | |
7158 | lt_prog_compiler_pic='-fPIC -shared' | |
7159 | ;; | |
7160 | ||
7161 | osf3* | osf4* | osf5*) | |
7162 | lt_prog_compiler_wl='-Wl,' | |
7163 | # All OSF/1 code is PIC. | |
7164 | lt_prog_compiler_static='-non_shared' | |
7165 | ;; | |
7166 | ||
7167 | rdos*) | |
7168 | lt_prog_compiler_static='-non_shared' | |
7169 | ;; | |
7170 | ||
7171 | solaris*) | |
7172 | lt_prog_compiler_pic='-KPIC' | |
7173 | lt_prog_compiler_static='-Bstatic' | |
7174 | case $cc_basename in | |
7175 | f77* | f90* | f95*) | |
7176 | lt_prog_compiler_wl='-Qoption ld ';; | |
7177 | *) | |
7178 | lt_prog_compiler_wl='-Wl,';; | |
7179 | esac | |
7180 | ;; | |
7181 | ||
7182 | sunos4*) | |
7183 | lt_prog_compiler_wl='-Qoption ld ' | |
7184 | lt_prog_compiler_pic='-PIC' | |
7185 | lt_prog_compiler_static='-Bstatic' | |
7186 | ;; | |
7187 | ||
7188 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
7189 | lt_prog_compiler_wl='-Wl,' | |
7190 | lt_prog_compiler_pic='-KPIC' | |
7191 | lt_prog_compiler_static='-Bstatic' | |
7192 | ;; | |
7193 | ||
7194 | sysv4*MP*) | |
7195 | if test -d /usr/nec ;then | |
7196 | lt_prog_compiler_pic='-Kconform_pic' | |
7197 | lt_prog_compiler_static='-Bstatic' | |
7198 | fi | |
7199 | ;; | |
7200 | ||
7201 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7202 | lt_prog_compiler_wl='-Wl,' | |
7203 | lt_prog_compiler_pic='-KPIC' | |
7204 | lt_prog_compiler_static='-Bstatic' | |
7205 | ;; | |
7206 | ||
7207 | unicos*) | |
7208 | lt_prog_compiler_wl='-Wl,' | |
7209 | lt_prog_compiler_can_build_shared=no | |
7210 | ;; | |
7211 | ||
7212 | uts4*) | |
7213 | lt_prog_compiler_pic='-pic' | |
7214 | lt_prog_compiler_static='-Bstatic' | |
7215 | ;; | |
7216 | ||
7217 | *) | |
7218 | lt_prog_compiler_can_build_shared=no | |
7219 | ;; | |
7220 | esac | |
7221 | fi | |
7222 | ||
7223 | case $host_os in | |
7224 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7225 | *djgpp*) | |
7226 | lt_prog_compiler_pic= | |
7227 | ;; | |
7228 | *) | |
7229 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7230 | ;; | |
7231 | esac | |
7232 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
7233 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } | |
7234 | ||
7235 | ||
7236 | ||
7237 | ||
7238 | ||
7239 | ||
7240 | # | |
7241 | # Check to make sure the PIC flag actually works. | |
7242 | # | |
7243 | if test -n "$lt_prog_compiler_pic"; then | |
7244 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7245 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } | |
7246 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
7247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7248 | else | |
7249 | lt_prog_compiler_pic_works=no | |
7250 | ac_outfile=conftest.$ac_objext | |
7251 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7252 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7253 | # Insert the option either (1) after the last *FLAGS variable, or | |
7254 | # (2) before a word containing "conftest.", or (3) at the end. | |
7255 | # Note that $ac_compile itself does not contain backslashes and begins | |
7256 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7257 | # The option is referenced via a variable to avoid confusing sed. | |
7258 | lt_compile=`echo "$ac_compile" | $SED \ | |
7259 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7260 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7261 | -e 's:$: $lt_compiler_flag:'` | |
7262 | (eval echo "\"\$as_me:7262: $lt_compile\"" >&5) | |
7263 | (eval "$lt_compile" 2>conftest.err) | |
7264 | ac_status=$? | |
7265 | cat conftest.err >&5 | |
7266 | echo "$as_me:7266: \$? = $ac_status" >&5 | |
7267 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
7268 | # The compiler can only warn and ignore the option if not recognized | |
7269 | # So say no if there are warnings other than the usual output. | |
7270 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7271 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7272 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7273 | lt_prog_compiler_pic_works=yes | |
7274 | fi | |
7275 | fi | |
7276 | $RM conftest* | |
7277 | ||
7278 | fi | |
7279 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
7280 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } | |
7281 | ||
7282 | if test x"$lt_prog_compiler_pic_works" = xyes; then | |
7283 | case $lt_prog_compiler_pic in | |
7284 | "" | " "*) ;; | |
7285 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7286 | esac | |
7287 | else | |
7288 | lt_prog_compiler_pic= | |
7289 | lt_prog_compiler_can_build_shared=no | |
7290 | fi | |
7291 | ||
7292 | fi | |
7293 | ||
7294 | ||
7295 | ||
7296 | ||
7297 | ||
7298 | ||
7299 | # | |
7300 | # Check to make sure the static flag actually works. | |
7301 | # | |
7302 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7303 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7304 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
7305 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
7306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7307 | else | |
7308 | lt_prog_compiler_static_works=no | |
7309 | save_LDFLAGS="$LDFLAGS" | |
7310 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7311 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
7312 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7313 | # The linker can only warn and ignore the option if not recognized | |
7314 | # So say no if there are warnings | |
7315 | if test -s conftest.err; then | |
7316 | # Append any errors to the config.log. | |
7317 | cat conftest.err 1>&5 | |
7318 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7319 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7320 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7321 | lt_prog_compiler_static_works=yes | |
7322 | fi | |
7323 | else | |
7324 | lt_prog_compiler_static_works=yes | |
7325 | fi | |
7326 | fi | |
7327 | $RM conftest* | |
7328 | LDFLAGS="$save_LDFLAGS" | |
7329 | ||
7330 | fi | |
7331 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
7332 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } | |
7333 | ||
7334 | if test x"$lt_prog_compiler_static_works" = xyes; then | |
7335 | : | |
7336 | else | |
7337 | lt_prog_compiler_static= | |
7338 | fi | |
7339 | ||
7340 | ||
7341 | ||
7342 | ||
7343 | ||
7344 | ||
7345 | ||
7346 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7347 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
7348 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7350 | else | |
7351 | lt_cv_prog_compiler_c_o=no | |
7352 | $RM -r conftest 2>/dev/null | |
7353 | mkdir conftest | |
7354 | cd conftest | |
7355 | mkdir out | |
7356 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7357 | ||
7358 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7359 | # Insert the option either (1) after the last *FLAGS variable, or | |
7360 | # (2) before a word containing "conftest.", or (3) at the end. | |
7361 | # Note that $ac_compile itself does not contain backslashes and begins | |
7362 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7363 | lt_compile=`echo "$ac_compile" | $SED \ | |
7364 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7365 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7366 | -e 's:$: $lt_compiler_flag:'` | |
7367 | (eval echo "\"\$as_me:7367: $lt_compile\"" >&5) | |
7368 | (eval "$lt_compile" 2>out/conftest.err) | |
7369 | ac_status=$? | |
7370 | cat out/conftest.err >&5 | |
7371 | echo "$as_me:7371: \$? = $ac_status" >&5 | |
7372 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
7373 | then | |
7374 | # The compiler can only warn and ignore the option if not recognized | |
7375 | # So say no if there are warnings | |
7376 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7377 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7378 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7379 | lt_cv_prog_compiler_c_o=yes | |
7380 | fi | |
7381 | fi | |
7382 | chmod u+w . 2>&5 | |
7383 | $RM conftest* | |
7384 | # SGI C++ compiler will create directory out/ii_files/ for | |
7385 | # template instantiation | |
7386 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7387 | $RM out/* && rmdir out | |
7388 | cd .. | |
7389 | $RM -r conftest | |
7390 | $RM conftest* | |
7391 | ||
7392 | fi | |
7393 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7394 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } | |
7395 | ||
7396 | ||
7397 | ||
7398 | ||
7399 | ||
7400 | ||
7401 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7402 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
7403 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7405 | else | |
7406 | lt_cv_prog_compiler_c_o=no | |
7407 | $RM -r conftest 2>/dev/null | |
7408 | mkdir conftest | |
7409 | cd conftest | |
7410 | mkdir out | |
7411 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7412 | ||
7413 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7414 | # Insert the option either (1) after the last *FLAGS variable, or | |
7415 | # (2) before a word containing "conftest.", or (3) at the end. | |
7416 | # Note that $ac_compile itself does not contain backslashes and begins | |
7417 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7418 | lt_compile=`echo "$ac_compile" | $SED \ | |
7419 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7420 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7421 | -e 's:$: $lt_compiler_flag:'` | |
7422 | (eval echo "\"\$as_me:7422: $lt_compile\"" >&5) | |
7423 | (eval "$lt_compile" 2>out/conftest.err) | |
7424 | ac_status=$? | |
7425 | cat out/conftest.err >&5 | |
7426 | echo "$as_me:7426: \$? = $ac_status" >&5 | |
7427 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
7428 | then | |
7429 | # The compiler can only warn and ignore the option if not recognized | |
7430 | # So say no if there are warnings | |
7431 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7432 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7433 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7434 | lt_cv_prog_compiler_c_o=yes | |
7435 | fi | |
7436 | fi | |
7437 | chmod u+w . 2>&5 | |
7438 | $RM conftest* | |
7439 | # SGI C++ compiler will create directory out/ii_files/ for | |
7440 | # template instantiation | |
7441 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7442 | $RM out/* && rmdir out | |
7443 | cd .. | |
7444 | $RM -r conftest | |
7445 | $RM conftest* | |
7446 | ||
7447 | fi | |
7448 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7449 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } | |
7450 | ||
7451 | ||
7452 | ||
7453 | ||
7454 | hard_links="nottested" | |
7455 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7456 | # do not overwrite the value of need_locks provided by the user | |
7457 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
7458 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
7459 | hard_links=yes | |
7460 | $RM conftest* | |
7461 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7462 | touch conftest.a | |
7463 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7464 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7465 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
7466 | echo "${ECHO_T}$hard_links" >&6; } | |
7467 | if test "$hard_links" = no; then | |
7468 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7469 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7470 | need_locks=warn | |
7471 | fi | |
7472 | else | |
7473 | need_locks=no | |
7474 | fi | |
7475 | ||
7476 | ||
7477 | ||
7478 | ||
7479 | ||
7480 | ||
7481 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7482 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
7483 | ||
7484 | runpath_var= | |
7485 | allow_undefined_flag= | |
7486 | always_export_symbols=no | |
7487 | archive_cmds= | |
7488 | archive_expsym_cmds= | |
7489 | enable_shared_with_static_runtimes=no | |
7490 | export_dynamic_flag_spec= | |
7491 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7492 | hardcode_automatic=no | |
7493 | hardcode_direct=no | |
7494 | hardcode_libdir_flag_spec= | |
7495 | hardcode_libdir_flag_spec_ld= | |
7496 | hardcode_libdir_separator= | |
7497 | hardcode_minus_L=no | |
7498 | hardcode_shlibpath_var=unsupported | |
7499 | inherit_rpath=no | |
7500 | link_all_deplibs=unknown | |
7501 | module_cmds= | |
7502 | module_expsym_cmds= | |
7503 | old_archive_from_new_cmds= | |
7504 | old_archive_from_expsyms_cmds= | |
7505 | thread_safe_flag_spec= | |
7506 | whole_archive_flag_spec= | |
7507 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7508 | # included in the symbol list | |
7509 | include_expsyms= | |
7510 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7511 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7512 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7513 | # as well as any symbol that contains `d'. | |
7514 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
7515 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7516 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7517 | # the symbol is explicitly referenced. Since portable code cannot | |
7518 | # rely on this symbol name, it's probably fine to never include it in | |
7519 | # preloaded symbol tables. | |
7520 | extract_expsyms_cmds= | |
7521 | ||
7522 | case $host_os in | |
7523 | cygwin* | mingw* | pw32*) | |
7524 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7525 | # When not using gcc, we currently assume that we are using | |
7526 | # Microsoft Visual C++. | |
7527 | if test "$GCC" != yes; then | |
7528 | with_gnu_ld=no | |
7529 | fi | |
7530 | ;; | |
7531 | interix*) | |
7532 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7533 | with_gnu_ld=yes | |
7534 | ;; | |
7535 | openbsd*) | |
7536 | with_gnu_ld=no | |
7537 | ;; | |
7538 | esac | |
7539 | ||
7540 | ld_shlibs=yes | |
7541 | if test "$with_gnu_ld" = yes; then | |
7542 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7543 | wlarc='${wl}' | |
7544 | ||
7545 | # Set some defaults for GNU ld with shared library support. These | |
7546 | # are reset later if shared libraries are not supported. Putting them | |
7547 | # here allows them to be overridden if necessary. | |
7548 | runpath_var=LD_RUN_PATH | |
7549 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7550 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7551 | # ancient GNU ld didn't support --whole-archive et. al. | |
7552 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7553 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7554 | else | |
7555 | whole_archive_flag_spec= | |
7556 | fi | |
7557 | supports_anon_versioning=no | |
7558 | case `$LD -v 2>&1` in | |
7559 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7560 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7561 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7562 | *\ 2.11.*) ;; # other 2.11 versions | |
7563 | *) supports_anon_versioning=yes ;; | |
7564 | esac | |
7565 | ||
7566 | # See if GNU ld supports shared libraries. | |
7567 | case $host_os in | |
7568 | aix3* | aix4* | aix5*) | |
7569 | # On AIX/PPC, the GNU linker is very broken | |
7570 | if test "$host_cpu" != ia64; then | |
7571 | ld_shlibs=no | |
7572 | cat <<_LT_EOF 1>&2 | |
7573 | ||
7574 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7575 | *** to be unable to reliably create shared libraries on AIX. | |
7576 | *** Therefore, libtool is disabling shared libraries support. If you | |
7577 | *** really care for shared libraries, you may want to modify your PATH | |
7578 | *** so that a non-GNU linker is found, and then restart. | |
7579 | ||
7580 | _LT_EOF | |
7581 | fi | |
7582 | ;; | |
7583 | ||
7584 | amigaos*) | |
7585 | if test "$host_cpu" = m68k; then | |
7586 | 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)' | |
7587 | hardcode_libdir_flag_spec='-L$libdir' | |
7588 | hardcode_minus_L=yes | |
7589 | fi | |
7590 | ||
7591 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
7592 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
7593 | # to version 4, is to share data among multiple programs linked | |
7594 | # with the same dynamic library. Since this doesn't match the | |
7595 | # behavior of shared libraries on other platforms, we can't use | |
7596 | # them. | |
7597 | ld_shlibs=no | |
7598 | ;; | |
7599 | ||
7600 | beos*) | |
7601 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7602 | allow_undefined_flag=unsupported | |
7603 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7604 | # support --undefined. This deserves some investigation. FIXME | |
7605 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7606 | else | |
7607 | ld_shlibs=no | |
7608 | fi | |
7609 | ;; | |
7610 | ||
7611 | cygwin* | mingw* | pw32*) | |
7612 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7613 | # as there is no search path for DLLs. | |
7614 | hardcode_libdir_flag_spec='-L$libdir' | |
7615 | allow_undefined_flag=unsupported | |
7616 | always_export_symbols=no | |
7617 | enable_shared_with_static_runtimes=yes | |
7618 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
7619 | ||
7620 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7621 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7622 | # If the export-symbols file already is a .def file (1st line | |
7623 | # is EXPORTS), use it as is; otherwise, prepend... | |
7624 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7625 | cp $export_symbols $output_objdir/$soname.def; | |
7626 | else | |
7627 | echo EXPORTS > $output_objdir/$soname.def; | |
7628 | cat $export_symbols >> $output_objdir/$soname.def; | |
7629 | fi~ | |
7630 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7631 | else | |
7632 | ld_shlibs=no | |
7633 | fi | |
7634 | ;; | |
7635 | ||
7636 | interix3*) | |
7637 | hardcode_direct=no | |
7638 | hardcode_shlibpath_var=no | |
7639 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7640 | export_dynamic_flag_spec='${wl}-E' | |
7641 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7642 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7643 | # default) and relocated if they conflict, which is a slow very memory | |
7644 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7645 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7646 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7647 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7648 | 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' | |
7649 | ;; | |
7650 | ||
7651 | linux*|tpf*) | |
7652 | tmp_diet=no | |
7653 | if test "$host_os" = linux-dietlibc; then | |
7654 | case $cc_basename in | |
7655 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7656 | esac | |
7657 | fi | |
7658 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7659 | && test "$tmp_diet" = no | |
7660 | then | |
7661 | tmp_addflag= | |
7662 | case $cc_basename,$host_cpu in | |
7663 | pgcc*) # Portland Group C compiler | |
7664 | 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' | |
7665 | tmp_addflag=' $pic_flag' | |
7666 | ;; | |
7667 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7668 | 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' | |
7669 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7670 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7671 | tmp_addflag=' -i_dynamic' ;; | |
7672 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7673 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7674 | ifc* | ifort*) # Intel Fortran compiler | |
7675 | tmp_addflag=' -nofor_main' ;; | |
7676 | esac | |
7677 | ||
7678 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7679 | ||
7680 | if test "x$supports_anon_versioning" = xyes; then | |
7681 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~echo "local: *; };" >> $output_objdir/$libname.ver~$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7682 | fi | |
7683 | else | |
7684 | ld_shlibs=no | |
7685 | fi | |
7686 | ;; | |
7687 | ||
7688 | netbsd*) | |
7689 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
7690 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7691 | wlarc= | |
7692 | else | |
7693 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7694 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7695 | fi | |
7696 | ;; | |
7697 | ||
7698 | solaris*) | |
7699 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
7700 | ld_shlibs=no | |
7701 | cat <<_LT_EOF 1>&2 | |
7702 | ||
7703 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7704 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7705 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7706 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7707 | *** your PATH or compiler configuration so that the native linker is | |
7708 | *** used, and then restart. | |
7709 | ||
7710 | _LT_EOF | |
7711 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7712 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7713 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7714 | else | |
7715 | ld_shlibs=no | |
7716 | fi | |
7717 | ;; | |
7718 | ||
7719 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7720 | case `$LD -v 2>&1` in | |
7721 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7722 | ld_shlibs=no | |
7723 | cat <<_LT_EOF 1>&2 | |
7724 | ||
7725 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7726 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7727 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7728 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7729 | *** your PATH or compiler configuration so that the native linker is | |
7730 | *** used, and then restart. | |
7731 | ||
7732 | _LT_EOF | |
7733 | ;; | |
7734 | *) | |
7735 | # For security reasons, it is highly recommended that you always | |
7736 | # use absolute paths for naming shared libraries, and exclude the | |
7737 | # DT_RUNPATH tag from executables and libraries. But doing so | |
7738 | # requires that you compile everything twice, which is a pain. | |
7739 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7740 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7741 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7742 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7743 | else | |
7744 | ld_shlibs=no | |
7745 | fi | |
7746 | ;; | |
7747 | esac | |
7748 | ;; | |
7749 | ||
7750 | sunos4*) | |
7751 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7752 | wlarc= | |
7753 | hardcode_direct=yes | |
7754 | hardcode_shlibpath_var=no | |
7755 | ;; | |
7756 | ||
7757 | *) | |
7758 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7759 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7760 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7761 | else | |
7762 | ld_shlibs=no | |
7763 | fi | |
7764 | ;; | |
7765 | esac | |
7766 | ||
7767 | if test "$ld_shlibs" = no; then | |
7768 | runpath_var= | |
7769 | hardcode_libdir_flag_spec= | |
7770 | export_dynamic_flag_spec= | |
7771 | whole_archive_flag_spec= | |
7772 | fi | |
7773 | else | |
7774 | # PORTME fill in a description of your system's linker (not GNU ld) | |
7775 | case $host_os in | |
7776 | aix3*) | |
7777 | allow_undefined_flag=unsupported | |
7778 | always_export_symbols=yes | |
7779 | 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' | |
7780 | # Note: this linker hardcodes the directories in LIBPATH if there | |
7781 | # are no directories specified by -L. | |
7782 | hardcode_minus_L=yes | |
7783 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
7784 | # Neither direct hardcoding nor static linking is supported with a | |
7785 | # broken collect2. | |
7786 | hardcode_direct=unsupported | |
7787 | fi | |
7788 | ;; | |
7789 | ||
7790 | aix4* | aix5*) | |
7791 | if test "$host_cpu" = ia64; then | |
7792 | # On IA64, the linker does run time linking by default, so we don't | |
7793 | # have to do anything special. | |
7794 | aix_use_runtimelinking=no | |
7795 | exp_sym_flag='-Bexport' | |
7796 | no_entry_flag="" | |
7797 | else | |
7798 | # If we're using GNU nm, then we don't want the "-C" option. | |
7799 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7800 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
7801 | 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' | |
7802 | else | |
7803 | 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' | |
7804 | fi | |
7805 | aix_use_runtimelinking=no | |
7806 | ||
7807 | # Test if we are trying to use run time linking or normal | |
7808 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7809 | # need to do runtime linking. | |
7810 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
7811 | for ld_flag in $LDFLAGS; do | |
7812 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7813 | aix_use_runtimelinking=yes | |
7814 | break | |
7815 | fi | |
7816 | done | |
7817 | ;; | |
7818 | esac | |
7819 | ||
7820 | exp_sym_flag='-bexport' | |
7821 | no_entry_flag='-bnoentry' | |
7822 | fi | |
7823 | ||
7824 | # When large executables or shared objects are built, AIX ld can | |
7825 | # have problems creating the table of contents. If linking a library | |
7826 | # or program results in "error TOC overflow" add -mminimal-toc to | |
7827 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7828 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7829 | ||
7830 | archive_cmds='' | |
7831 | hardcode_direct=yes | |
7832 | hardcode_libdir_separator=':' | |
7833 | link_all_deplibs=yes | |
7834 | file_list_spec='${wl}-f,' | |
7835 | ||
7836 | if test "$GCC" = yes; then | |
7837 | case $host_os in aix4.[012]|aix4.[012].*) | |
7838 | # We only want to do this on AIX 4.2 and lower, the check | |
7839 | # below for broken collect2 doesn't work under 4.3+ | |
7840 | collect2name=`${CC} -print-prog-name=collect2` | |
7841 | if test -f "$collect2name" && | |
7842 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
7843 | then | |
7844 | # We have reworked collect2 | |
7845 | hardcode_direct=yes | |
7846 | else | |
7847 | # We have old collect2 | |
7848 | hardcode_direct=unsupported | |
7849 | # It fails to find uninstalled libraries when the uninstalled | |
7850 | # path is not listed in the libpath. Setting hardcode_minus_L | |
7851 | # to unsupported forces relinking | |
7852 | hardcode_minus_L=yes | |
7853 | hardcode_libdir_flag_spec='-L$libdir' | |
7854 | hardcode_libdir_separator= | |
7855 | fi | |
7856 | ;; | |
7857 | esac | |
7858 | shared_flag='-shared' | |
7859 | if test "$aix_use_runtimelinking" = yes; then | |
7860 | shared_flag="$shared_flag "'${wl}-G' | |
7861 | fi | |
7862 | else | |
7863 | # not using gcc | |
7864 | if test "$host_cpu" = ia64; then | |
7865 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7866 | # chokes on -Wl,-G. The following line is correct: | |
7867 | shared_flag='-G' | |
7868 | else | |
7869 | if test "$aix_use_runtimelinking" = yes; then | |
7870 | shared_flag='${wl}-G' | |
7871 | else | |
7872 | shared_flag='${wl}-bM:SRE' | |
7873 | fi | |
7874 | fi | |
7875 | fi | |
7876 | ||
7877 | # It seems that -bexpall does not export symbols beginning with | |
7878 | # underscore (_), so it is better to generate a list of symbols to export. | |
7879 | always_export_symbols=yes | |
7880 | if test "$aix_use_runtimelinking" = yes; then | |
7881 | # Warning - without using the other runtime loading flags (-brtl), | |
7882 | # -berok will link without error, but may produce a broken library. | |
7883 | allow_undefined_flag='-berok' | |
7884 | # Determine the default libpath from the value encoded in an | |
7885 | # empty executable. | |
7886 | cat >conftest.$ac_ext <<_ACEOF | |
7887 | /* confdefs.h. */ | |
7888 | _ACEOF | |
7889 | cat confdefs.h >>conftest.$ac_ext | |
7890 | cat >>conftest.$ac_ext <<_ACEOF | |
7891 | /* end confdefs.h. */ | |
7892 | ||
7893 | int | |
7894 | main () | |
7895 | { | |
7896 | ||
7897 | ; | |
7898 | return 0; | |
7899 | } | |
7900 | _ACEOF | |
7901 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7902 | if { (ac_try="$ac_link" | |
7903 | case "(($ac_try" in | |
7904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7905 | *) ac_try_echo=$ac_try;; | |
7906 | esac | |
7907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7908 | (eval "$ac_link") 2>conftest.er1 | |
7909 | ac_status=$? | |
7910 | grep -v '^ *+' conftest.er1 >conftest.err | |
7911 | rm -f conftest.er1 | |
7912 | cat conftest.err >&5 | |
7913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7914 | (exit $ac_status); } && { | |
7915 | test -z "$ac_c_werror_flag" || | |
7916 | test ! -s conftest.err | |
7917 | } && test -s conftest$ac_exeext && | |
7918 | $as_test_x conftest$ac_exeext; then | |
7919 | ||
7920 | lt_aix_libpath_sed=' | |
7921 | /Import File Strings/,/^$/ { | |
7922 | /^0/ { | |
7923 | s/^0 *\(.*\)$/\1/ | |
7924 | p | |
7925 | } | |
7926 | }' | |
7927 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7928 | # Check for a 64-bit object if we didn't find anything. | |
7929 | if test -z "$aix_libpath"; then | |
7930 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7931 | fi | |
7932 | else | |
7933 | echo "$as_me: failed program was:" >&5 | |
7934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7935 | ||
7936 | ||
7937 | fi | |
7938 | ||
7939 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7940 | conftest$ac_exeext conftest.$ac_ext | |
7941 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7942 | ||
7943 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7944 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
7945 | else | |
7946 | if test "$host_cpu" = ia64; then | |
7947 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7948 | allow_undefined_flag="-z nodefs" | |
7949 | 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" | |
7950 | else | |
7951 | # Determine the default libpath from the value encoded in an | |
7952 | # empty executable. | |
7953 | cat >conftest.$ac_ext <<_ACEOF | |
7954 | /* confdefs.h. */ | |
7955 | _ACEOF | |
7956 | cat confdefs.h >>conftest.$ac_ext | |
7957 | cat >>conftest.$ac_ext <<_ACEOF | |
7958 | /* end confdefs.h. */ | |
7959 | ||
7960 | int | |
7961 | main () | |
7962 | { | |
7963 | ||
7964 | ; | |
7965 | return 0; | |
7966 | } | |
7967 | _ACEOF | |
7968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7969 | if { (ac_try="$ac_link" | |
7970 | case "(($ac_try" in | |
7971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7972 | *) ac_try_echo=$ac_try;; | |
7973 | esac | |
7974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7975 | (eval "$ac_link") 2>conftest.er1 | |
7976 | ac_status=$? | |
7977 | grep -v '^ *+' conftest.er1 >conftest.err | |
7978 | rm -f conftest.er1 | |
7979 | cat conftest.err >&5 | |
7980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7981 | (exit $ac_status); } && { | |
7982 | test -z "$ac_c_werror_flag" || | |
7983 | test ! -s conftest.err | |
7984 | } && test -s conftest$ac_exeext && | |
7985 | $as_test_x conftest$ac_exeext; then | |
7986 | ||
7987 | lt_aix_libpath_sed=' | |
7988 | /Import File Strings/,/^$/ { | |
7989 | /^0/ { | |
7990 | s/^0 *\(.*\)$/\1/ | |
7991 | p | |
7992 | } | |
7993 | }' | |
7994 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7995 | # Check for a 64-bit object if we didn't find anything. | |
7996 | if test -z "$aix_libpath"; then | |
7997 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7998 | fi | |
7999 | else | |
8000 | echo "$as_me: failed program was:" >&5 | |
8001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8002 | ||
8003 | ||
8004 | fi | |
8005 | ||
8006 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8007 | conftest$ac_exeext conftest.$ac_ext | |
8008 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8009 | ||
8010 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8011 | # Warning - without using the other run time loading flags, | |
8012 | # -berok will link without error, but may produce a broken library. | |
8013 | no_undefined_flag=' ${wl}-bernotok' | |
8014 | allow_undefined_flag=' ${wl}-berok' | |
8015 | # Exported symbols can be pulled into shared objects from archives | |
8016 | whole_archive_flag_spec='$convenience' | |
8017 | archive_cmds_need_lc=yes | |
8018 | # This is similar to how AIX traditionally builds its shared libraries. | |
8019 | 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' | |
8020 | fi | |
8021 | fi | |
8022 | ;; | |
8023 | ||
8024 | amigaos*) | |
8025 | if test "$host_cpu" = m68k; then | |
8026 | 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)' | |
8027 | hardcode_libdir_flag_spec='-L$libdir' | |
8028 | hardcode_minus_L=yes | |
8029 | fi | |
8030 | # see comment about different semantics on the GNU ld section | |
8031 | ld_shlibs=no | |
8032 | ;; | |
8033 | ||
8034 | bsdi[45]*) | |
8035 | export_dynamic_flag_spec=-rdynamic | |
8036 | ;; | |
8037 | ||
8038 | cygwin* | mingw* | pw32*) | |
8039 | # When not using gcc, we currently assume that we are using | |
8040 | # Microsoft Visual C++. | |
8041 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8042 | # no search path for DLLs. | |
8043 | hardcode_libdir_flag_spec=' ' | |
8044 | allow_undefined_flag=unsupported | |
8045 | # Tell ltmain to make .lib files, not .a files. | |
8046 | libext=lib | |
8047 | # Tell ltmain to make .dll files, not .so files. | |
8048 | shrext_cmds=".dll" | |
8049 | # FIXME: Setting linknames here is a bad hack. | |
8050 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8051 | # The linker will automatically build a .lib file if we build a DLL. | |
8052 | old_archive_from_new_cmds='true' | |
8053 | # FIXME: Should let the user specify the lib program. | |
8054 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
8055 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8056 | enable_shared_with_static_runtimes=yes | |
8057 | ;; | |
8058 | ||
8059 | darwin* | rhapsody*) | |
8060 | case $host_os in | |
8061 | rhapsody* | darwin1.[012]) | |
8062 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
8063 | ;; | |
8064 | *) # Darwin 1.3 on | |
8065 | case ${MACOSX_DEPLOYMENT_TARGET-10.0} in | |
8066 | 10.[012]) | |
8067 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
8068 | ;; | |
8069 | 10.*) | |
8070 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
8071 | ;; | |
8072 | esac | |
8073 | ;; | |
8074 | esac | |
8075 | archive_cmds_need_lc=no | |
8076 | hardcode_direct=no | |
8077 | hardcode_automatic=yes | |
8078 | hardcode_shlibpath_var=unsupported | |
8079 | whole_archive_flag_spec='' | |
8080 | link_all_deplibs=yes | |
8081 | if test "$GCC" = yes ; then | |
8082 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
8083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8084 | else | |
8085 | lt_cv_apple_cc_single_mod=no | |
8086 | if test -z "${LT_MULTI_MODULE}"; then | |
8087 | # By default we will add the -single_module flag. You can override | |
8088 | # by either setting the environment variable LT_MULTI_MODULE | |
8089 | # non-empty at configure time, or by adding -multi-module to the | |
8090 | # link flags. | |
8091 | echo "int foo(void){return 1;}" > conftest.c | |
8092 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8093 | -dynamiclib ${wl}-single_module conftest.c | |
8094 | if test -f libconftest.dylib; then | |
8095 | lt_cv_apple_cc_single_mod=yes | |
8096 | rm libconftest.dylib | |
8097 | fi | |
8098 | rm conftest.$ac_ext | |
8099 | fi | |
8100 | fi | |
8101 | ||
8102 | output_verbose_link_cmd=echo | |
8103 | if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then | |
8104 | archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
8105 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8106 | else | |
8107 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
8108 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8109 | fi | |
8110 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8111 | module_expsym_cmds='sed -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}' | |
8112 | else | |
8113 | case $cc_basename in | |
8114 | xlc*) | |
8115 | output_verbose_link_cmd=echo | |
8116 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring' | |
8117 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8118 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
8119 | archive_expsym_cmds='sed "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}' | |
8120 | module_expsym_cmds='sed "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}' | |
8121 | ;; | |
8122 | *) | |
8123 | ld_shlibs=no | |
8124 | ;; | |
8125 | esac | |
8126 | fi | |
8127 | ;; | |
8128 | ||
8129 | dgux*) | |
8130 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8131 | hardcode_libdir_flag_spec='-L$libdir' | |
8132 | hardcode_shlibpath_var=no | |
8133 | ;; | |
8134 | ||
8135 | freebsd1*) | |
8136 | ld_shlibs=no | |
8137 | ;; | |
8138 | ||
8139 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
8140 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8141 | # does not break anything, and helps significantly (at the cost of a little | |
8142 | # extra space). | |
8143 | freebsd2.2*) | |
8144 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8145 | hardcode_libdir_flag_spec='-R$libdir' | |
8146 | hardcode_direct=yes | |
8147 | hardcode_shlibpath_var=no | |
8148 | ;; | |
8149 | ||
8150 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
8151 | freebsd2*) | |
8152 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8153 | hardcode_direct=yes | |
8154 | hardcode_minus_L=yes | |
8155 | hardcode_shlibpath_var=no | |
8156 | ;; | |
8157 | ||
8158 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8159 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
8160 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8161 | hardcode_libdir_flag_spec='-R$libdir' | |
8162 | hardcode_direct=yes | |
8163 | hardcode_shlibpath_var=no | |
8164 | ;; | |
8165 | ||
8166 | hpux9*) | |
8167 | if test "$GCC" = yes; then | |
8168 | 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' | |
8169 | else | |
8170 | 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' | |
8171 | fi | |
8172 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8173 | hardcode_libdir_separator=: | |
8174 | hardcode_direct=yes | |
8175 | ||
8176 | # hardcode_minus_L: Not really in the search PATH, | |
8177 | # but as the default location of the library. | |
8178 | hardcode_minus_L=yes | |
8179 | export_dynamic_flag_spec='${wl}-E' | |
8180 | ;; | |
8181 | ||
8182 | hpux10*) | |
8183 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8184 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8185 | else | |
8186 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8187 | fi | |
8188 | if test "$with_gnu_ld" = no; then | |
8189 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8190 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8191 | hardcode_libdir_separator=: | |
8192 | hardcode_direct=yes | |
8193 | export_dynamic_flag_spec='${wl}-E' | |
8194 | # hardcode_minus_L: Not really in the search PATH, | |
8195 | # but as the default location of the library. | |
8196 | hardcode_minus_L=yes | |
8197 | fi | |
8198 | ;; | |
8199 | ||
8200 | hpux11*) | |
8201 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8202 | case $host_cpu in | |
8203 | hppa*64*) | |
8204 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8205 | ;; | |
8206 | ia64*) | |
8207 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8208 | ;; | |
8209 | *) | |
8210 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8211 | ;; | |
8212 | esac | |
8213 | else | |
8214 | case $host_cpu in | |
8215 | hppa*64*) | |
8216 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8217 | ;; | |
8218 | ia64*) | |
8219 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8220 | ;; | |
8221 | *) | |
8222 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8223 | ;; | |
8224 | esac | |
8225 | fi | |
8226 | if test "$with_gnu_ld" = no; then | |
8227 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8228 | hardcode_libdir_separator=: | |
8229 | ||
8230 | case $host_cpu in | |
8231 | hppa*64*|ia64*) | |
8232 | hardcode_direct=no | |
8233 | hardcode_shlibpath_var=no | |
8234 | ;; | |
8235 | *) | |
8236 | hardcode_direct=yes | |
8237 | export_dynamic_flag_spec='${wl}-E' | |
8238 | ||
8239 | # hardcode_minus_L: Not really in the search PATH, | |
8240 | # but as the default location of the library. | |
8241 | hardcode_minus_L=yes | |
8242 | ;; | |
8243 | esac | |
8244 | fi | |
8245 | ;; | |
8246 | ||
8247 | irix5* | irix6* | nonstopux*) | |
8248 | if test "$GCC" = yes; then | |
8249 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8250 | # Try to use the -exported_symbol ld option, if it does not | |
8251 | # work, assume that -exports_file does not work either and | |
8252 | # implicitly export all symbols. | |
8253 | save_LDFLAGS="$LDFLAGS" | |
8254 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8255 | cat >conftest.$ac_ext <<_ACEOF | |
8256 | int foo(void) {} | |
8257 | _ACEOF | |
8258 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8259 | if { (ac_try="$ac_link" | |
8260 | case "(($ac_try" in | |
8261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8262 | *) ac_try_echo=$ac_try;; | |
8263 | esac | |
8264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8265 | (eval "$ac_link") 2>conftest.er1 | |
8266 | ac_status=$? | |
8267 | grep -v '^ *+' conftest.er1 >conftest.err | |
8268 | rm -f conftest.er1 | |
8269 | cat conftest.err >&5 | |
8270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8271 | (exit $ac_status); } && { | |
8272 | test -z "$ac_c_werror_flag" || | |
8273 | test ! -s conftest.err | |
8274 | } && test -s conftest$ac_exeext && | |
8275 | $as_test_x conftest$ac_exeext; then | |
8276 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
8277 | ||
8278 | else | |
8279 | echo "$as_me: failed program was:" >&5 | |
8280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8281 | ||
8282 | ||
8283 | fi | |
8284 | ||
8285 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8286 | conftest$ac_exeext conftest.$ac_ext | |
8287 | LDFLAGS="$save_LDFLAGS" | |
8288 | else | |
8289 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8290 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
8291 | fi | |
8292 | archive_cmds_need_lc='no' | |
8293 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8294 | hardcode_libdir_separator=: | |
8295 | inherit_rpath=yes | |
8296 | link_all_deplibs=yes | |
8297 | ;; | |
8298 | ||
8299 | netbsd*) | |
8300 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8301 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8302 | else | |
8303 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8304 | fi | |
8305 | hardcode_libdir_flag_spec='-R$libdir' | |
8306 | hardcode_direct=yes | |
8307 | hardcode_shlibpath_var=no | |
8308 | ;; | |
8309 | ||
8310 | newsos6) | |
8311 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8312 | hardcode_direct=yes | |
8313 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8314 | hardcode_libdir_separator=: | |
8315 | hardcode_shlibpath_var=no | |
8316 | ;; | |
8317 | ||
8318 | *nto* | *qnx*) | |
8319 | ;; | |
8320 | ||
8321 | openbsd*) | |
8322 | hardcode_direct=yes | |
8323 | hardcode_shlibpath_var=no | |
8324 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8325 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8326 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8327 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8328 | export_dynamic_flag_spec='${wl}-E' | |
8329 | else | |
8330 | case $host_os in | |
8331 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8332 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8333 | hardcode_libdir_flag_spec='-R$libdir' | |
8334 | ;; | |
8335 | *) | |
8336 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8337 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8338 | ;; | |
8339 | esac | |
8340 | fi | |
8341 | ;; | |
8342 | ||
8343 | os2*) | |
8344 | hardcode_libdir_flag_spec='-L$libdir' | |
8345 | hardcode_minus_L=yes | |
8346 | allow_undefined_flag=unsupported | |
8347 | 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' | |
8348 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8349 | ;; | |
8350 | ||
8351 | osf3*) | |
8352 | if test "$GCC" = yes; then | |
8353 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8354 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8355 | else | |
8356 | allow_undefined_flag=' -expect_unresolved \*' | |
8357 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8358 | fi | |
8359 | archive_cmds_need_lc='no' | |
8360 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8361 | hardcode_libdir_separator=: | |
8362 | ;; | |
8363 | ||
8364 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8365 | if test "$GCC" = yes; then | |
8366 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8367 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8368 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8369 | else | |
8370 | allow_undefined_flag=' -expect_unresolved \*' | |
8371 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8372 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
8373 | $CC -shared${allow_undefined_flag} -input $lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
8374 | ||
8375 | # Both c and cxx compiler support -rpath directly | |
8376 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8377 | fi | |
8378 | archive_cmds_need_lc='no' | |
8379 | hardcode_libdir_separator=: | |
8380 | ;; | |
8381 | ||
8382 | solaris*) | |
8383 | no_undefined_flag=' -z defs' | |
8384 | if test "$GCC" = yes; then | |
8385 | wlarc='${wl}' | |
8386 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8387 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8388 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8389 | else | |
8390 | case `$CC -V 2>&1` in | |
8391 | *"Compilers 5.0"*) | |
8392 | wlarc='' | |
8393 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8394 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8395 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8396 | ;; | |
8397 | *) | |
8398 | wlarc='${wl}' | |
8399 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8400 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8401 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8402 | ;; | |
8403 | esac | |
8404 | fi | |
8405 | hardcode_libdir_flag_spec='-R$libdir' | |
8406 | hardcode_shlibpath_var=no | |
8407 | case $host_os in | |
8408 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8409 | *) | |
8410 | # The compiler driver will combine linker options so we | |
8411 | # cannot just pass the convenience library names through | |
8412 | # without $wl, iff we do not link with $LD. | |
8413 | # Luckily, gcc supports the same syntax we need for Sun Studio. | |
8414 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8415 | case $wlarc in | |
8416 | '') | |
8417 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
8418 | *) | |
8419 | 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' ;; | |
8420 | esac ;; | |
8421 | esac | |
8422 | link_all_deplibs=yes | |
8423 | ;; | |
8424 | ||
8425 | sunos4*) | |
8426 | if test "x$host_vendor" = xsequent; then | |
8427 | # Use $CC to link under sequent, because it throws in some extra .o | |
8428 | # files that make .init and .fini sections work. | |
8429 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8430 | else | |
8431 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8432 | fi | |
8433 | hardcode_libdir_flag_spec='-L$libdir' | |
8434 | hardcode_direct=yes | |
8435 | hardcode_minus_L=yes | |
8436 | hardcode_shlibpath_var=no | |
8437 | ;; | |
8438 | ||
8439 | sysv4) | |
8440 | case $host_vendor in | |
8441 | sni) | |
8442 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8443 | hardcode_direct=yes # is this really true??? | |
8444 | ;; | |
8445 | siemens) | |
8446 | ## LD is ld it makes a PLAMLIB | |
8447 | ## CC just makes a GrossModule. | |
8448 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8449 | reload_cmds='$CC -r -o $output$reload_objs' | |
8450 | hardcode_direct=no | |
8451 | ;; | |
8452 | motorola) | |
8453 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8454 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8455 | ;; | |
8456 | esac | |
8457 | runpath_var='LD_RUN_PATH' | |
8458 | hardcode_shlibpath_var=no | |
8459 | ;; | |
8460 | ||
8461 | sysv4.3*) | |
8462 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8463 | hardcode_shlibpath_var=no | |
8464 | export_dynamic_flag_spec='-Bexport' | |
8465 | ;; | |
8466 | ||
8467 | sysv4*MP*) | |
8468 | if test -d /usr/nec; then | |
8469 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8470 | hardcode_shlibpath_var=no | |
8471 | runpath_var=LD_RUN_PATH | |
8472 | hardcode_runpath_var=yes | |
8473 | ld_shlibs=yes | |
8474 | fi | |
8475 | ;; | |
8476 | ||
8477 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
8478 | no_undefined_flag='${wl}-z,text' | |
8479 | archive_cmds_need_lc=no | |
8480 | hardcode_shlibpath_var=no | |
8481 | runpath_var='LD_RUN_PATH' | |
8482 | ||
8483 | if test "$GCC" = yes; then | |
8484 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8485 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8486 | else | |
8487 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8488 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8489 | fi | |
8490 | ;; | |
8491 | ||
8492 | sysv5* | sco3.2v5* | sco5v6*) | |
8493 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8494 | # link with -lc, and that would cause any symbols used from libc to | |
8495 | # always be unresolved, which means just about no library would | |
8496 | # ever link correctly. If we're not using GNU ld we use -z text | |
8497 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8498 | # as -z defs. | |
8499 | no_undefined_flag='${wl}-z,text' | |
8500 | allow_undefined_flag='${wl}-z,nodefs' | |
8501 | archive_cmds_need_lc=no | |
8502 | hardcode_shlibpath_var=no | |
8503 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8504 | hardcode_libdir_separator=':' | |
8505 | link_all_deplibs=yes | |
8506 | export_dynamic_flag_spec='${wl}-Bexport' | |
8507 | runpath_var='LD_RUN_PATH' | |
8508 | ||
8509 | if test "$GCC" = yes; then | |
8510 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8511 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8512 | else | |
8513 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8514 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8515 | fi | |
8516 | ;; | |
8517 | ||
8518 | uts4*) | |
8519 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8520 | hardcode_libdir_flag_spec='-L$libdir' | |
8521 | hardcode_shlibpath_var=no | |
8522 | ;; | |
8523 | ||
8524 | *) | |
8525 | ld_shlibs=no | |
8526 | ;; | |
8527 | esac | |
8528 | ||
8529 | if test x$host_vendor = xsni; then | |
8530 | case $host in | |
8531 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8532 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8533 | ;; | |
8534 | esac | |
8535 | fi | |
8536 | fi | |
8537 | ||
8538 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
8539 | echo "${ECHO_T}$ld_shlibs" >&6; } | |
8540 | test "$ld_shlibs" = no && can_build_shared=no | |
8541 | ||
8542 | with_gnu_ld=$with_gnu_ld | |
8543 | ||
8544 | ||
8545 | ||
8546 | ||
8547 | ||
8548 | ||
8549 | ||
8550 | ||
8551 | ||
8552 | ||
8553 | ||
8554 | ||
8555 | ||
8556 | ||
8557 | ||
8558 | # | |
8559 | # Do we need to explicitly link libc? | |
8560 | # | |
8561 | case "x$archive_cmds_need_lc" in | |
8562 | x|xyes) | |
8563 | # Assume -lc should be added | |
8564 | archive_cmds_need_lc=yes | |
8565 | ||
8566 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8567 | case $archive_cmds in | |
8568 | *'~'*) | |
8569 | # FIXME: we may have to deal with multi-command sequences. | |
8570 | ;; | |
8571 | '$CC '*) | |
8572 | # Test whether the compiler implicitly links with -lc since on some | |
8573 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8574 | # to ld, don't add -lc before -lgcc. | |
8575 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
8576 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
8577 | $RM conftest* | |
8578 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8579 | ||
8580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8581 | (eval $ac_compile) 2>&5 | |
8582 | ac_status=$? | |
8583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8584 | (exit $ac_status); } 2>conftest.err; then | |
8585 | soname=conftest | |
8586 | lib=conftest | |
8587 | libobjs=conftest.$ac_objext | |
8588 | deplibs= | |
8589 | wl=$lt_prog_compiler_wl | |
8590 | pic_flag=$lt_prog_compiler_pic | |
8591 | compiler_flags=-v | |
8592 | linker_flags=-v | |
8593 | verstring= | |
8594 | output_objdir=. | |
8595 | libname=conftest | |
8596 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8597 | allow_undefined_flag= | |
8598 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
8599 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8600 | ac_status=$? | |
8601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8602 | (exit $ac_status); } | |
8603 | then | |
8604 | archive_cmds_need_lc=no | |
8605 | else | |
8606 | archive_cmds_need_lc=yes | |
8607 | fi | |
8608 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8609 | else | |
8610 | cat conftest.err 1>&5 | |
8611 | fi | |
8612 | $RM conftest* | |
8613 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
8614 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } | |
8615 | ;; | |
8616 | esac | |
8617 | fi | |
8618 | ;; | |
8619 | esac | |
8620 | ||
8621 | ||
8622 | ||
8623 | ||
8624 | ||
8625 | ||
8626 | ||
8627 | ||
8628 | ||
8629 | ||
8630 | ||
8631 | ||
8632 | ||
8633 | ||
8634 | ||
8635 | ||
8636 | ||
8637 | ||
8638 | ||
8639 | ||
8640 | ||
8641 | ||
8642 | ||
8643 | ||
8644 | ||
8645 | ||
8646 | ||
8647 | ||
8648 | ||
8649 | ||
8650 | ||
8651 | ||
8652 | ||
8653 | ||
8654 | ||
8655 | ||
8656 | ||
8657 | ||
8658 | ||
8659 | ||
8660 | ||
8661 | ||
8662 | ||
8663 | ||
8664 | ||
8665 | ||
8666 | ||
8667 | ||
8668 | ||
8669 | ||
8670 | ||
8671 | ||
8672 | ||
8673 | ||
8674 | ||
8675 | ||
8676 | ||
8677 | ||
8678 | ||
8679 | ||
8680 | ||
8681 | ||
8682 | ||
8683 | ||
8684 | ||
8685 | ||
8686 | ||
8687 | ||
8688 | ||
8689 | ||
8690 | ||
8691 | ||
8692 | ||
8693 | ||
8694 | ||
8695 | ||
8696 | ||
8697 | ||
8698 | ||
8699 | ||
8700 | ||
8701 | ||
8702 | ||
8703 | ||
8704 | ||
8705 | ||
8706 | ||
8707 | ||
8708 | ||
8709 | ||
8710 | ||
8711 | ||
8712 | ||
8713 | ||
8714 | ||
8715 | ||
8716 | ||
8717 | ||
8718 | ||
8719 | ||
8720 | ||
8721 | ||
8722 | ||
8723 | ||
8724 | ||
8725 | ||
8726 | ||
8727 | ||
8728 | ||
8729 | ||
8730 | ||
8731 | ||
8732 | ||
8733 | ||
8734 | ||
8735 | ||
8736 | ||
8737 | ||
8738 | ||
8739 | ||
8740 | ||
8741 | ||
8742 | ||
8743 | ||
8744 | ||
8745 | ||
8746 | ||
8747 | ||
8748 | ||
8749 | ||
8750 | ||
8751 | ||
8752 | ||
8753 | ||
8754 | ||
8755 | ||
8756 | ||
8757 | ||
8758 | ||
8759 | ||
8760 | ||
8761 | ||
8762 | ||
8763 | ||
8764 | ||
8765 | ||
8766 | ||
8767 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
8768 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
8769 | withGCC=$GCC | |
8770 | library_names_spec= | |
8771 | libname_spec='lib$name' | |
8772 | soname_spec= | |
8773 | shrext_cmds=".so" | |
8774 | postinstall_cmds= | |
8775 | postuninstall_cmds= | |
8776 | finish_cmds= | |
8777 | finish_eval= | |
8778 | shlibpath_var= | |
8779 | shlibpath_overrides_runpath=unknown | |
8780 | version_type=none | |
8781 | dynamic_linker="$host_os ld.so" | |
8782 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8783 | if test "$withGCC" = yes; then | |
8784 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8785 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then | |
8786 | # if the path contains ";" then we assume it to be the separator | |
8787 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8788 | # assumed that no part of a normal pathname contains ";" but that should | |
8789 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8790 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8791 | else | |
8792 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8793 | fi | |
8794 | else | |
8795 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8796 | fi | |
8797 | need_lib_prefix=unknown | |
8798 | hardcode_into_libs=no | |
8799 | ||
8800 | # when you set need_version to no, make sure it does not cause -set_version | |
8801 | # flags to be left without arguments | |
8802 | need_version=unknown | |
8803 | ||
8804 | case $host_os in | |
8805 | aix3*) | |
8806 | version_type=linux | |
8807 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8808 | shlibpath_var=LIBPATH | |
8809 | ||
8810 | # AIX 3 has no versioning support, so we append a major version to the name. | |
8811 | soname_spec='${libname}${release}${shared_ext}$major' | |
8812 | ;; | |
8813 | ||
8814 | aix4* | aix5*) | |
8815 | version_type=linux | |
8816 | need_lib_prefix=no | |
8817 | need_version=no | |
8818 | hardcode_into_libs=yes | |
8819 | if test "$host_cpu" = ia64; then | |
8820 | # AIX 5 supports IA64 | |
8821 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8822 | shlibpath_var=LD_LIBRARY_PATH | |
8823 | else | |
8824 | # With GCC up to 2.95.x, collect2 would create an import file | |
8825 | # for dependence libraries. The import file would start with | |
8826 | # the line `#! .'. This would cause the generated library to | |
8827 | # depend on `.', always an invalid library. This was fixed in | |
8828 | # development snapshots of GCC prior to 3.0. | |
8829 | case $host_os in | |
8830 | aix4 | aix4.[01] | aix4.[01].*) | |
8831 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8832 | echo ' yes ' | |
8833 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
8834 | : | |
8835 | else | |
8836 | can_build_shared=no | |
8837 | fi | |
8838 | ;; | |
8839 | esac | |
8840 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8841 | # soname into executable. Probably we can add versioning support to | |
8842 | # collect2, so additional links can be useful in future. | |
8843 | if test "$aix_use_runtimelinking" = yes; then | |
8844 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8845 | # instead of lib<name>.a to let people know that these are not | |
8846 | # typical AIX shared libraries. | |
8847 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8848 | else | |
8849 | # We preserve .a as extension for shared libraries through AIX4.2 | |
8850 | # and later when we are not doing run time linking. | |
8851 | library_names_spec='${libname}${release}.a $libname.a' | |
8852 | soname_spec='${libname}${release}${shared_ext}$major' | |
8853 | fi | |
8854 | shlibpath_var=LIBPATH | |
8855 | fi | |
8856 | ;; | |
8857 | ||
8858 | amigaos*) | |
8859 | if test "$host_cpu" = m68k; then | |
8860 | library_names_spec='$libname.ixlibrary $libname.a' | |
8861 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8862 | 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' | |
8863 | else | |
8864 | dynamic_linker=no | |
8865 | fi | |
8866 | ;; | |
8867 | ||
8868 | beos*) | |
8869 | library_names_spec='${libname}${shared_ext}' | |
8870 | dynamic_linker="$host_os ld.so" | |
8871 | shlibpath_var=LIBRARY_PATH | |
8872 | ;; | |
8873 | ||
8874 | bsdi[45]*) | |
8875 | version_type=linux | |
8876 | need_version=no | |
8877 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8878 | soname_spec='${libname}${release}${shared_ext}$major' | |
8879 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8880 | shlibpath_var=LD_LIBRARY_PATH | |
8881 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8882 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8883 | # the default ld.so.conf also contains /usr/contrib/lib and | |
8884 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8885 | # libtool to hard-code these into programs | |
8886 | ;; | |
8887 | ||
8888 | cygwin* | mingw* | pw32*) | |
8889 | version_type=windows | |
8890 | shrext_cmds=".dll" | |
8891 | need_version=no | |
8892 | need_lib_prefix=no | |
8893 | ||
8894 | case $withGCC,$host_os in | |
8895 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
8896 | library_names_spec='$libname.dll.a' | |
8897 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8898 | postinstall_cmds='base_file=`basename \${file}`~ | |
8899 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
8900 | dldir=$destdir/`dirname \$dlpath`~ | |
8901 | test -d \$dldir || mkdir -p \$dldir~ | |
8902 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8903 | chmod a+x \$dldir/$dlname~ | |
8904 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
8905 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
8906 | fi' | |
8907 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
8908 | dlpath=$dir/\$dldll~ | |
8909 | $RM \$dlpath' | |
8910 | shlibpath_overrides_runpath=yes | |
8911 | ||
8912 | case $host_os in | |
8913 | cygwin*) | |
8914 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8915 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8916 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8917 | ;; | |
8918 | mingw*) | |
8919 | # MinGW DLLs use traditional 'lib' prefix | |
8920 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8921 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8922 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
8923 | # It is most probably a Windows format PATH printed by | |
8924 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8925 | # path with ; separators, and with drive letters. We can handle the | |
8926 | # drive letters (cygwin fileutils understands them), so leave them, | |
8927 | # especially as we might pass files found there to a mingw objdump, | |
8928 | # which wouldn't understand a cygwinified path. Ahh. | |
8929 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8930 | else | |
8931 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8932 | fi | |
8933 | ;; | |
8934 | pw32*) | |
8935 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
8936 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8937 | ;; | |
8938 | esac | |
8939 | ;; | |
8940 | ||
8941 | *) | |
8942 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
8943 | ;; | |
8944 | esac | |
8945 | dynamic_linker='Win32 ld.exe' | |
8946 | # FIXME: first we should search . and the directory the executable is in | |
8947 | shlibpath_var=PATH | |
8948 | ;; | |
8949 | ||
8950 | darwin* | rhapsody*) | |
8951 | dynamic_linker="$host_os dyld" | |
8952 | version_type=darwin | |
8953 | need_lib_prefix=no | |
8954 | need_version=no | |
8955 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
8956 | soname_spec='${libname}${release}${major}$shared_ext' | |
8957 | shlibpath_overrides_runpath=yes | |
8958 | shlibpath_var=DYLD_LIBRARY_PATH | |
8959 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8960 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
8961 | if test "$withGCC" = yes; then | |
8962 | 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"` | |
8963 | else | |
8964 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
8965 | fi | |
8966 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
8967 | ;; | |
8968 | ||
8969 | dgux*) | |
8970 | version_type=linux | |
8971 | need_lib_prefix=no | |
8972 | need_version=no | |
8973 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
8974 | soname_spec='${libname}${release}${shared_ext}$major' | |
8975 | shlibpath_var=LD_LIBRARY_PATH | |
8976 | ;; | |
8977 | ||
8978 | freebsd1*) | |
8979 | dynamic_linker=no | |
8980 | ;; | |
8981 | ||
8982 | kfreebsd*-gnu) | |
8983 | version_type=linux | |
8984 | need_lib_prefix=no | |
8985 | need_version=no | |
8986 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8987 | soname_spec='${libname}${release}${shared_ext}$major' | |
8988 | shlibpath_var=LD_LIBRARY_PATH | |
8989 | shlibpath_overrides_runpath=no | |
8990 | hardcode_into_libs=yes | |
8991 | dynamic_linker='GNU ld.so' | |
8992 | ;; | |
8993 | ||
8994 | freebsd* | dragonfly*) | |
8995 | # DragonFly does not have aout. When/if they implement a new | |
8996 | # versioning mechanism, adjust this. | |
8997 | if test -x /usr/bin/objformat; then | |
8998 | objformat=`/usr/bin/objformat` | |
8999 | else | |
9000 | case $host_os in | |
9001 | freebsd[123]*) objformat=aout ;; | |
9002 | *) objformat=elf ;; | |
9003 | esac | |
9004 | fi | |
9005 | version_type=freebsd-$objformat | |
9006 | case $version_type in | |
9007 | freebsd-elf*) | |
9008 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9009 | need_version=no | |
9010 | need_lib_prefix=no | |
9011 | ;; | |
9012 | freebsd-*) | |
9013 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9014 | need_version=yes | |
9015 | ;; | |
9016 | esac | |
9017 | shlibpath_var=LD_LIBRARY_PATH | |
9018 | case $host_os in | |
9019 | freebsd2*) | |
9020 | shlibpath_overrides_runpath=yes | |
9021 | ;; | |
9022 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9023 | shlibpath_overrides_runpath=yes | |
9024 | hardcode_into_libs=yes | |
9025 | ;; | |
9026 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9027 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9028 | shlibpath_overrides_runpath=no | |
9029 | hardcode_into_libs=yes | |
9030 | ;; | |
9031 | freebsd*) # from 4.6 on | |
9032 | shlibpath_overrides_runpath=yes | |
9033 | hardcode_into_libs=yes | |
9034 | ;; | |
9035 | esac | |
9036 | ;; | |
9037 | ||
9038 | gnu*) | |
9039 | version_type=linux | |
9040 | need_lib_prefix=no | |
9041 | need_version=no | |
9042 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9043 | soname_spec='${libname}${release}${shared_ext}$major' | |
9044 | shlibpath_var=LD_LIBRARY_PATH | |
9045 | hardcode_into_libs=yes | |
9046 | ;; | |
9047 | ||
9048 | hpux9* | hpux10* | hpux11*) | |
9049 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9050 | # link against other versions. | |
9051 | version_type=sunos | |
9052 | need_lib_prefix=no | |
9053 | need_version=no | |
9054 | case $host_cpu in | |
9055 | ia64*) | |
9056 | shrext_cmds='.so' | |
9057 | hardcode_into_libs=yes | |
9058 | dynamic_linker="$host_os dld.so" | |
9059 | shlibpath_var=LD_LIBRARY_PATH | |
9060 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9061 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9062 | soname_spec='${libname}${release}${shared_ext}$major' | |
9063 | if test "X$HPUX_IA64_MODE" = X32; then | |
9064 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9065 | else | |
9066 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9067 | fi | |
9068 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9069 | ;; | |
9070 | hppa*64*) | |
9071 | shrext_cmds='.sl' | |
9072 | hardcode_into_libs=yes | |
9073 | dynamic_linker="$host_os dld.sl" | |
9074 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9075 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9076 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9077 | soname_spec='${libname}${release}${shared_ext}$major' | |
9078 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9079 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9080 | ;; | |
9081 | *) | |
9082 | shrext_cmds='.sl' | |
9083 | dynamic_linker="$host_os dld.sl" | |
9084 | shlibpath_var=SHLIB_PATH | |
9085 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9087 | soname_spec='${libname}${release}${shared_ext}$major' | |
9088 | ;; | |
9089 | esac | |
9090 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
9091 | postinstall_cmds='chmod 555 $lib' | |
9092 | ;; | |
9093 | ||
9094 | interix3*) | |
9095 | version_type=linux | |
9096 | need_lib_prefix=no | |
9097 | need_version=no | |
9098 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9099 | soname_spec='${libname}${release}${shared_ext}$major' | |
9100 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9101 | shlibpath_var=LD_LIBRARY_PATH | |
9102 | shlibpath_overrides_runpath=no | |
9103 | hardcode_into_libs=yes | |
9104 | ;; | |
9105 | ||
9106 | irix5* | irix6* | nonstopux*) | |
9107 | case $host_os in | |
9108 | nonstopux*) version_type=nonstopux ;; | |
9109 | *) | |
9110 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
9111 | version_type=linux | |
9112 | else | |
9113 | version_type=irix | |
9114 | fi ;; | |
9115 | esac | |
9116 | need_lib_prefix=no | |
9117 | need_version=no | |
9118 | soname_spec='${libname}${release}${shared_ext}$major' | |
9119 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9120 | case $host_os in | |
9121 | irix5* | nonstopux*) | |
9122 | libsuff= shlibsuff= | |
9123 | ;; | |
9124 | *) | |
9125 | case $LD in # libtool.m4 will add one of these switches to LD | |
9126 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9127 | libsuff= shlibsuff= libmagic=32-bit;; | |
9128 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9129 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9130 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9131 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9132 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9133 | esac | |
9134 | ;; | |
9135 | esac | |
9136 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9137 | shlibpath_overrides_runpath=no | |
9138 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9139 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9140 | hardcode_into_libs=yes | |
9141 | ;; | |
9142 | ||
9143 | # No shared lib support for Linux oldld, aout, or coff. | |
9144 | linux*oldld* | linux*aout* | linux*coff*) | |
9145 | dynamic_linker=no | |
9146 | ;; | |
9147 | ||
9148 | # This must be Linux ELF. | |
9149 | linux*) | |
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 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9156 | shlibpath_var=LD_LIBRARY_PATH | |
9157 | shlibpath_overrides_runpath=no | |
9158 | # This implies no fast_install, which is unacceptable. | |
9159 | # Some rework will be needed to allow for fast_install | |
9160 | # before this can be enabled. | |
9161 | hardcode_into_libs=yes | |
9162 | ||
9163 | # Append ld.so.conf contents to the search path | |
9164 | if test -f /etc/ld.so.conf; then | |
9165 | 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' ' '` | |
9166 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9167 | fi | |
9168 | ||
9169 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9170 | # powerpc, because MkLinux only supported shared libraries with the | |
9171 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9172 | # most powerpc-linux boxes support dynamic linking these days and | |
9173 | # people can always --disable-shared, the test was removed, and we | |
9174 | # assume the GNU/Linux dynamic linker is in use. | |
9175 | dynamic_linker='GNU/Linux ld.so' | |
9176 | ;; | |
9177 | ||
9178 | knetbsd*-gnu) | |
9179 | version_type=linux | |
9180 | need_lib_prefix=no | |
9181 | need_version=no | |
9182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9183 | soname_spec='${libname}${release}${shared_ext}$major' | |
9184 | shlibpath_var=LD_LIBRARY_PATH | |
9185 | shlibpath_overrides_runpath=no | |
9186 | hardcode_into_libs=yes | |
9187 | dynamic_linker='GNU ld.so' | |
9188 | ;; | |
9189 | ||
9190 | netbsd*) | |
9191 | version_type=sunos | |
9192 | need_lib_prefix=no | |
9193 | need_version=no | |
9194 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9195 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9196 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9197 | dynamic_linker='NetBSD (a.out) ld.so' | |
9198 | else | |
9199 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9200 | soname_spec='${libname}${release}${shared_ext}$major' | |
9201 | dynamic_linker='NetBSD ld.elf_so' | |
9202 | fi | |
9203 | shlibpath_var=LD_LIBRARY_PATH | |
9204 | shlibpath_overrides_runpath=yes | |
9205 | hardcode_into_libs=yes | |
9206 | ;; | |
9207 | ||
9208 | newsos6) | |
9209 | version_type=linux | |
9210 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9211 | shlibpath_var=LD_LIBRARY_PATH | |
9212 | shlibpath_overrides_runpath=yes | |
9213 | ;; | |
9214 | ||
9215 | *nto* | *qnx*) | |
9216 | version_type=qnx | |
9217 | need_lib_prefix=no | |
9218 | need_version=no | |
9219 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9220 | soname_spec='${libname}${release}${shared_ext}$major' | |
9221 | shlibpath_var=LD_LIBRARY_PATH | |
9222 | shlibpath_overrides_runpath=no | |
9223 | hardcode_into_libs=yes | |
9224 | dynamic_linker='ldqnx.so' | |
9225 | ;; | |
9226 | ||
9227 | openbsd*) | |
9228 | version_type=sunos | |
9229 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9230 | need_lib_prefix=no | |
9231 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9232 | case $host_os in | |
9233 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9234 | *) need_version=no ;; | |
9235 | esac | |
9236 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9237 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9238 | shlibpath_var=LD_LIBRARY_PATH | |
9239 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9240 | case $host_os in | |
9241 | openbsd2.[89] | openbsd2.[89].*) | |
9242 | shlibpath_overrides_runpath=no | |
9243 | ;; | |
9244 | *) | |
9245 | shlibpath_overrides_runpath=yes | |
9246 | ;; | |
9247 | esac | |
9248 | else | |
9249 | shlibpath_overrides_runpath=yes | |
9250 | fi | |
9251 | ;; | |
9252 | ||
9253 | os2*) | |
9254 | libname_spec='$name' | |
9255 | shrext_cmds=".dll" | |
9256 | need_lib_prefix=no | |
9257 | library_names_spec='$libname${shared_ext} $libname.a' | |
9258 | dynamic_linker='OS/2 ld.exe' | |
9259 | shlibpath_var=LIBPATH | |
9260 | ;; | |
9261 | ||
9262 | osf3* | osf4* | osf5*) | |
9263 | version_type=osf | |
9264 | need_lib_prefix=no | |
9265 | need_version=no | |
9266 | soname_spec='${libname}${release}${shared_ext}$major' | |
9267 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9268 | shlibpath_var=LD_LIBRARY_PATH | |
9269 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9270 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9271 | ;; | |
9272 | ||
9273 | rdos*) | |
9274 | dynamic_linker=no | |
9275 | ;; | |
9276 | ||
9277 | solaris*) | |
9278 | version_type=linux | |
9279 | need_lib_prefix=no | |
9280 | need_version=no | |
9281 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9282 | soname_spec='${libname}${release}${shared_ext}$major' | |
9283 | shlibpath_var=LD_LIBRARY_PATH | |
9284 | shlibpath_overrides_runpath=yes | |
9285 | hardcode_into_libs=yes | |
9286 | # ldd complains unless libraries are executable | |
9287 | postinstall_cmds='chmod +x $lib' | |
9288 | ;; | |
9289 | ||
9290 | sunos4*) | |
9291 | version_type=sunos | |
9292 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9293 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9294 | shlibpath_var=LD_LIBRARY_PATH | |
9295 | shlibpath_overrides_runpath=yes | |
9296 | if test "$with_gnu_ld" = yes; then | |
9297 | need_lib_prefix=no | |
9298 | fi | |
9299 | need_version=yes | |
9300 | ;; | |
9301 | ||
9302 | sysv4 | sysv4.3*) | |
9303 | version_type=linux | |
9304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9305 | soname_spec='${libname}${release}${shared_ext}$major' | |
9306 | shlibpath_var=LD_LIBRARY_PATH | |
9307 | case $host_vendor in | |
9308 | sni) | |
9309 | shlibpath_overrides_runpath=no | |
9310 | need_lib_prefix=no | |
9311 | runpath_var=LD_RUN_PATH | |
9312 | ;; | |
9313 | siemens) | |
9314 | need_lib_prefix=no | |
9315 | ;; | |
9316 | motorola) | |
9317 | need_lib_prefix=no | |
9318 | need_version=no | |
9319 | shlibpath_overrides_runpath=no | |
9320 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9321 | ;; | |
9322 | esac | |
9323 | ;; | |
9324 | ||
9325 | sysv4*MP*) | |
9326 | if test -d /usr/nec ;then | |
9327 | version_type=linux | |
9328 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9329 | soname_spec='$libname${shared_ext}.$major' | |
9330 | shlibpath_var=LD_LIBRARY_PATH | |
9331 | fi | |
9332 | ;; | |
9333 | ||
9334 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9335 | version_type=freebsd-elf | |
9336 | need_lib_prefix=no | |
9337 | need_version=no | |
9338 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9339 | soname_spec='${libname}${release}${shared_ext}$major' | |
9340 | shlibpath_var=LD_LIBRARY_PATH | |
9341 | shlibpath_overrides_runpath=yes | |
9342 | hardcode_into_libs=yes | |
9343 | if test "$with_gnu_ld" = yes; then | |
9344 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9345 | else | |
9346 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9347 | case $host_os in | |
9348 | sco3.2v5*) | |
9349 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9350 | ;; | |
9351 | esac | |
9352 | fi | |
9353 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9354 | ;; | |
9355 | ||
9356 | tpf*) | |
9357 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9358 | version_type=linux | |
9359 | need_lib_prefix=no | |
9360 | need_version=no | |
9361 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9362 | shlibpath_var=LD_LIBRARY_PATH | |
9363 | shlibpath_overrides_runpath=no | |
9364 | hardcode_into_libs=yes | |
9365 | ;; | |
9366 | ||
9367 | uts4*) | |
9368 | version_type=linux | |
9369 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9370 | soname_spec='${libname}${release}${shared_ext}$major' | |
9371 | shlibpath_var=LD_LIBRARY_PATH | |
9372 | ;; | |
9373 | ||
9374 | *) | |
9375 | dynamic_linker=no | |
9376 | ;; | |
9377 | esac | |
9378 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
9379 | echo "${ECHO_T}$dynamic_linker" >&6; } | |
9380 | test "$dynamic_linker" = no && can_build_shared=no | |
9381 | ||
9382 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9383 | if test "$GCC" = yes; then | |
9384 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9385 | fi | |
9386 | ||
9387 | ||
9388 | ||
9389 | ||
9390 | ||
9391 | ||
9392 | ||
9393 | ||
9394 | ||
9395 | ||
9396 | ||
9397 | ||
9398 | ||
9399 | ||
9400 | ||
9401 | ||
9402 | ||
9403 | ||
9404 | ||
9405 | ||
9406 | ||
9407 | ||
9408 | ||
9409 | ||
9410 | ||
9411 | ||
9412 | ||
9413 | ||
9414 | ||
9415 | ||
9416 | ||
9417 | ||
9418 | ||
9419 | ||
9420 | ||
9421 | ||
9422 | ||
9423 | ||
9424 | ||
9425 | ||
9426 | ||
9427 | ||
9428 | ||
9429 | ||
9430 | ||
9431 | ||
9432 | ||
9433 | ||
9434 | ||
9435 | ||
9436 | ||
9437 | ||
9438 | ||
9439 | ||
9440 | ||
9441 | ||
9442 | ||
9443 | ||
9444 | ||
9445 | ||
9446 | ||
9447 | ||
9448 | ||
9449 | ||
9450 | ||
9451 | ||
9452 | ||
9453 | ||
9454 | ||
9455 | ||
9456 | ||
9457 | ||
9458 | ||
9459 | ||
9460 | ||
9461 | ||
9462 | ||
9463 | ||
9464 | ||
9465 | ||
9466 | ||
9467 | ||
9468 | ||
9469 | ||
9470 | ||
9471 | ||
9472 | ||
9473 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
9474 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
9475 | hardcode_action= | |
9476 | if test -n "$hardcode_libdir_flag_spec" || | |
9477 | test -n "$runpath_var" || | |
9478 | test "X$hardcode_automatic" = "Xyes" ; then | |
9479 | ||
9480 | # We can hardcode non-existent directories. | |
9481 | if test "$hardcode_direct" != no && | |
9482 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9483 | # have to relink, otherwise we might link with an installed library | |
9484 | # when we should be linking with a yet-to-be-installed one | |
9485 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9486 | test "$hardcode_minus_L" != no; then | |
9487 | # Linking always hardcodes the temporary library directory. | |
9488 | hardcode_action=relink | |
9489 | else | |
9490 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9491 | hardcode_action=immediate | |
9492 | fi | |
9493 | else | |
9494 | # We cannot hardcode anything, or else we can only hardcode existing | |
9495 | # directories. | |
9496 | hardcode_action=unsupported | |
9497 | fi | |
9498 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
9499 | echo "${ECHO_T}$hardcode_action" >&6; } | |
9500 | ||
9501 | if test "$hardcode_action" = relink || | |
9502 | test "$inherit_rpath" = yes; then | |
9503 | # Fast installation is not supported | |
9504 | enable_fast_install=no | |
9505 | elif test "$shlibpath_overrides_runpath" = yes || | |
9506 | test "$enable_shared" = no; then | |
9507 | # Fast installation is not necessary | |
9508 | enable_fast_install=needless | |
9509 | fi | |
9510 | ||
9511 | ||
9512 | ||
9513 | ||
9514 | ||
9515 | ||
9516 | if test "x$enable_dlopen" != xyes; then | |
9517 | enable_dlopen=unknown | |
9518 | enable_dlopen_self=unknown | |
9519 | enable_dlopen_self_static=unknown | |
9520 | else | |
9521 | lt_cv_dlopen=no | |
9522 | lt_cv_dlopen_libs= | |
9523 | ||
9524 | case $host_os in | |
9525 | beos*) | |
9526 | lt_cv_dlopen="load_add_on" | |
9527 | lt_cv_dlopen_libs= | |
9528 | lt_cv_dlopen_self=yes | |
9529 | ;; | |
9530 | ||
9531 | mingw* | pw32*) | |
9532 | lt_cv_dlopen="LoadLibrary" | |
9533 | lt_cv_dlopen_libs= | |
9534 | ;; | |
9535 | ||
9536 | cygwin*) | |
9537 | lt_cv_dlopen="dlopen" | |
9538 | lt_cv_dlopen_libs= | |
9539 | ;; | |
9540 | ||
9541 | darwin*) | |
9542 | # if libdl is installed we need to link against it | |
9543 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9544 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
9545 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
9546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9547 | else | |
9548 | ac_check_lib_save_LIBS=$LIBS | |
9549 | LIBS="-ldl $LIBS" | |
9550 | cat >conftest.$ac_ext <<_ACEOF | |
9551 | /* confdefs.h. */ | |
9552 | _ACEOF | |
9553 | cat confdefs.h >>conftest.$ac_ext | |
9554 | cat >>conftest.$ac_ext <<_ACEOF | |
9555 | /* end confdefs.h. */ | |
9556 | ||
9557 | /* Override any GCC internal prototype to avoid an error. | |
9558 | Use char because int might match the return type of a GCC | |
9559 | builtin and then its argument prototype would still apply. */ | |
9560 | #ifdef __cplusplus | |
9561 | extern "C" | |
9562 | #endif | |
9563 | char dlopen (); | |
9564 | int | |
9565 | main () | |
9566 | { | |
9567 | return dlopen (); | |
9568 | ; | |
9569 | return 0; | |
9570 | } | |
9571 | _ACEOF | |
9572 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9573 | if { (ac_try="$ac_link" | |
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_link") 2>conftest.er1 | |
9580 | ac_status=$? | |
9581 | grep -v '^ *+' conftest.er1 >conftest.err | |
9582 | rm -f conftest.er1 | |
9583 | cat conftest.err >&5 | |
9584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9585 | (exit $ac_status); } && { | |
9586 | test -z "$ac_c_werror_flag" || | |
9587 | test ! -s conftest.err | |
9588 | } && test -s conftest$ac_exeext && | |
9589 | $as_test_x conftest$ac_exeext; then | |
9590 | ac_cv_lib_dl_dlopen=yes | |
9591 | else | |
9592 | echo "$as_me: failed program was:" >&5 | |
9593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9594 | ||
9595 | ac_cv_lib_dl_dlopen=no | |
9596 | fi | |
9597 | ||
9598 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9599 | conftest$ac_exeext conftest.$ac_ext | |
9600 | LIBS=$ac_check_lib_save_LIBS | |
9601 | fi | |
9602 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
9603 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
9604 | if test $ac_cv_lib_dl_dlopen = yes; then | |
9605 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9606 | else | |
9607 | ||
9608 | lt_cv_dlopen="dyld" | |
9609 | lt_cv_dlopen_libs= | |
9610 | lt_cv_dlopen_self=yes | |
9611 | ||
9612 | fi | |
9613 | ||
9614 | ;; | |
9615 | ||
9616 | *) | |
9617 | { echo "$as_me:$LINENO: checking for shl_load" >&5 | |
9618 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } | |
9619 | if test "${ac_cv_func_shl_load+set}" = set; then | |
9620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9621 | else | |
9622 | cat >conftest.$ac_ext <<_ACEOF | |
9623 | /* confdefs.h. */ | |
9624 | _ACEOF | |
9625 | cat confdefs.h >>conftest.$ac_ext | |
9626 | cat >>conftest.$ac_ext <<_ACEOF | |
9627 | /* end confdefs.h. */ | |
9628 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
9629 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9630 | #define shl_load innocuous_shl_load | |
9631 | ||
9632 | /* System header to define __stub macros and hopefully few prototypes, | |
9633 | which can conflict with char shl_load (); below. | |
9634 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9635 | <limits.h> exists even on freestanding compilers. */ | |
9636 | ||
9637 | #ifdef __STDC__ | |
9638 | # include <limits.h> | |
9639 | #else | |
9640 | # include <assert.h> | |
9641 | #endif | |
9642 | ||
9643 | #undef shl_load | |
9644 | ||
9645 | /* Override any GCC internal prototype to avoid an error. | |
9646 | Use char because int might match the return type of a GCC | |
9647 | builtin and then its argument prototype would still apply. */ | |
9648 | #ifdef __cplusplus | |
9649 | extern "C" | |
9650 | #endif | |
9651 | char shl_load (); | |
9652 | /* The GNU C library defines this for functions which it implements | |
9653 | to always fail with ENOSYS. Some functions are actually named | |
9654 | something starting with __ and the normal name is an alias. */ | |
9655 | #if defined __stub_shl_load || defined __stub___shl_load | |
9656 | choke me | |
9657 | #endif | |
9658 | ||
9659 | int | |
9660 | main () | |
9661 | { | |
9662 | return shl_load (); | |
9663 | ; | |
9664 | return 0; | |
9665 | } | |
9666 | _ACEOF | |
9667 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9668 | if { (ac_try="$ac_link" | |
9669 | case "(($ac_try" in | |
9670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9671 | *) ac_try_echo=$ac_try;; | |
9672 | esac | |
9673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9674 | (eval "$ac_link") 2>conftest.er1 | |
9675 | ac_status=$? | |
9676 | grep -v '^ *+' conftest.er1 >conftest.err | |
9677 | rm -f conftest.er1 | |
9678 | cat conftest.err >&5 | |
9679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9680 | (exit $ac_status); } && { | |
9681 | test -z "$ac_c_werror_flag" || | |
9682 | test ! -s conftest.err | |
9683 | } && test -s conftest$ac_exeext && | |
9684 | $as_test_x conftest$ac_exeext; then | |
9685 | ac_cv_func_shl_load=yes | |
9686 | else | |
9687 | echo "$as_me: failed program was:" >&5 | |
9688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9689 | ||
9690 | ac_cv_func_shl_load=no | |
9691 | fi | |
9692 | ||
9693 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9694 | conftest$ac_exeext conftest.$ac_ext | |
9695 | fi | |
9696 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
9697 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } | |
9698 | if test $ac_cv_func_shl_load = yes; then | |
9699 | lt_cv_dlopen="shl_load" | |
9700 | else | |
9701 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
9702 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } | |
9703 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
9704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9705 | else | |
9706 | ac_check_lib_save_LIBS=$LIBS | |
9707 | LIBS="-ldld $LIBS" | |
9708 | cat >conftest.$ac_ext <<_ACEOF | |
9709 | /* confdefs.h. */ | |
9710 | _ACEOF | |
9711 | cat confdefs.h >>conftest.$ac_ext | |
9712 | cat >>conftest.$ac_ext <<_ACEOF | |
9713 | /* end confdefs.h. */ | |
9714 | ||
9715 | /* Override any GCC internal prototype to avoid an error. | |
9716 | Use char because int might match the return type of a GCC | |
9717 | builtin and then its argument prototype would still apply. */ | |
9718 | #ifdef __cplusplus | |
9719 | extern "C" | |
9720 | #endif | |
9721 | char shl_load (); | |
9722 | int | |
9723 | main () | |
9724 | { | |
9725 | return shl_load (); | |
9726 | ; | |
9727 | return 0; | |
9728 | } | |
9729 | _ACEOF | |
9730 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9731 | if { (ac_try="$ac_link" | |
9732 | case "(($ac_try" in | |
9733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9734 | *) ac_try_echo=$ac_try;; | |
9735 | esac | |
9736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9737 | (eval "$ac_link") 2>conftest.er1 | |
9738 | ac_status=$? | |
9739 | grep -v '^ *+' conftest.er1 >conftest.err | |
9740 | rm -f conftest.er1 | |
9741 | cat conftest.err >&5 | |
9742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9743 | (exit $ac_status); } && { | |
9744 | test -z "$ac_c_werror_flag" || | |
9745 | test ! -s conftest.err | |
9746 | } && test -s conftest$ac_exeext && | |
9747 | $as_test_x conftest$ac_exeext; then | |
9748 | ac_cv_lib_dld_shl_load=yes | |
9749 | else | |
9750 | echo "$as_me: failed program was:" >&5 | |
9751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9752 | ||
9753 | ac_cv_lib_dld_shl_load=no | |
9754 | fi | |
9755 | ||
9756 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9757 | conftest$ac_exeext conftest.$ac_ext | |
9758 | LIBS=$ac_check_lib_save_LIBS | |
9759 | fi | |
9760 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
9761 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } | |
9762 | if test $ac_cv_lib_dld_shl_load = yes; then | |
9763 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
9764 | else | |
9765 | { echo "$as_me:$LINENO: checking for dlopen" >&5 | |
9766 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } | |
9767 | if test "${ac_cv_func_dlopen+set}" = set; then | |
9768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9769 | else | |
9770 | cat >conftest.$ac_ext <<_ACEOF | |
9771 | /* confdefs.h. */ | |
9772 | _ACEOF | |
9773 | cat confdefs.h >>conftest.$ac_ext | |
9774 | cat >>conftest.$ac_ext <<_ACEOF | |
9775 | /* end confdefs.h. */ | |
9776 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
9777 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9778 | #define dlopen innocuous_dlopen | |
9779 | ||
9780 | /* System header to define __stub macros and hopefully few prototypes, | |
9781 | which can conflict with char dlopen (); below. | |
9782 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9783 | <limits.h> exists even on freestanding compilers. */ | |
9784 | ||
9785 | #ifdef __STDC__ | |
9786 | # include <limits.h> | |
9787 | #else | |
9788 | # include <assert.h> | |
9789 | #endif | |
9790 | ||
9791 | #undef dlopen | |
9792 | ||
9793 | /* Override any GCC internal prototype to avoid an error. | |
9794 | Use char because int might match the return type of a GCC | |
9795 | builtin and then its argument prototype would still apply. */ | |
9796 | #ifdef __cplusplus | |
9797 | extern "C" | |
9798 | #endif | |
9799 | char dlopen (); | |
9800 | /* The GNU C library defines this for functions which it implements | |
9801 | to always fail with ENOSYS. Some functions are actually named | |
9802 | something starting with __ and the normal name is an alias. */ | |
9803 | #if defined __stub_dlopen || defined __stub___dlopen | |
9804 | choke me | |
9805 | #endif | |
9806 | ||
9807 | int | |
9808 | main () | |
9809 | { | |
9810 | return dlopen (); | |
9811 | ; | |
9812 | return 0; | |
9813 | } | |
9814 | _ACEOF | |
9815 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9816 | if { (ac_try="$ac_link" | |
9817 | case "(($ac_try" in | |
9818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9819 | *) ac_try_echo=$ac_try;; | |
9820 | esac | |
9821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9822 | (eval "$ac_link") 2>conftest.er1 | |
9823 | ac_status=$? | |
9824 | grep -v '^ *+' conftest.er1 >conftest.err | |
9825 | rm -f conftest.er1 | |
9826 | cat conftest.err >&5 | |
9827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9828 | (exit $ac_status); } && { | |
9829 | test -z "$ac_c_werror_flag" || | |
9830 | test ! -s conftest.err | |
9831 | } && test -s conftest$ac_exeext && | |
9832 | $as_test_x conftest$ac_exeext; then | |
9833 | ac_cv_func_dlopen=yes | |
9834 | else | |
9835 | echo "$as_me: failed program was:" >&5 | |
9836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9837 | ||
9838 | ac_cv_func_dlopen=no | |
9839 | fi | |
9840 | ||
9841 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9842 | conftest$ac_exeext conftest.$ac_ext | |
9843 | fi | |
9844 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
9845 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } | |
9846 | if test $ac_cv_func_dlopen = yes; then | |
9847 | lt_cv_dlopen="dlopen" | |
9848 | else | |
9849 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9850 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
9851 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
9852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9853 | else | |
9854 | ac_check_lib_save_LIBS=$LIBS | |
9855 | LIBS="-ldl $LIBS" | |
9856 | cat >conftest.$ac_ext <<_ACEOF | |
9857 | /* confdefs.h. */ | |
9858 | _ACEOF | |
9859 | cat confdefs.h >>conftest.$ac_ext | |
9860 | cat >>conftest.$ac_ext <<_ACEOF | |
9861 | /* end confdefs.h. */ | |
9862 | ||
9863 | /* Override any GCC internal prototype to avoid an error. | |
9864 | Use char because int might match the return type of a GCC | |
9865 | builtin and then its argument prototype would still apply. */ | |
9866 | #ifdef __cplusplus | |
9867 | extern "C" | |
9868 | #endif | |
9869 | char dlopen (); | |
9870 | int | |
9871 | main () | |
9872 | { | |
9873 | return dlopen (); | |
9874 | ; | |
9875 | return 0; | |
9876 | } | |
9877 | _ACEOF | |
9878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9879 | if { (ac_try="$ac_link" | |
9880 | case "(($ac_try" in | |
9881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9882 | *) ac_try_echo=$ac_try;; | |
9883 | esac | |
9884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9885 | (eval "$ac_link") 2>conftest.er1 | |
9886 | ac_status=$? | |
9887 | grep -v '^ *+' conftest.er1 >conftest.err | |
9888 | rm -f conftest.er1 | |
9889 | cat conftest.err >&5 | |
9890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9891 | (exit $ac_status); } && { | |
9892 | test -z "$ac_c_werror_flag" || | |
9893 | test ! -s conftest.err | |
9894 | } && test -s conftest$ac_exeext && | |
9895 | $as_test_x conftest$ac_exeext; then | |
9896 | ac_cv_lib_dl_dlopen=yes | |
9897 | else | |
9898 | echo "$as_me: failed program was:" >&5 | |
9899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9900 | ||
9901 | ac_cv_lib_dl_dlopen=no | |
9902 | fi | |
9903 | ||
9904 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9905 | conftest$ac_exeext conftest.$ac_ext | |
9906 | LIBS=$ac_check_lib_save_LIBS | |
9907 | fi | |
9908 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
9909 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
9910 | if test $ac_cv_lib_dl_dlopen = yes; then | |
9911 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9912 | else | |
9913 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
9914 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } | |
9915 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
9916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9917 | else | |
9918 | ac_check_lib_save_LIBS=$LIBS | |
9919 | LIBS="-lsvld $LIBS" | |
9920 | cat >conftest.$ac_ext <<_ACEOF | |
9921 | /* confdefs.h. */ | |
9922 | _ACEOF | |
9923 | cat confdefs.h >>conftest.$ac_ext | |
9924 | cat >>conftest.$ac_ext <<_ACEOF | |
9925 | /* end confdefs.h. */ | |
9926 | ||
9927 | /* Override any GCC internal prototype to avoid an error. | |
9928 | Use char because int might match the return type of a GCC | |
9929 | builtin and then its argument prototype would still apply. */ | |
9930 | #ifdef __cplusplus | |
9931 | extern "C" | |
9932 | #endif | |
9933 | char dlopen (); | |
9934 | int | |
9935 | main () | |
9936 | { | |
9937 | return dlopen (); | |
9938 | ; | |
9939 | return 0; | |
9940 | } | |
9941 | _ACEOF | |
9942 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9943 | if { (ac_try="$ac_link" | |
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_link") 2>conftest.er1 | |
9950 | ac_status=$? | |
9951 | grep -v '^ *+' conftest.er1 >conftest.err | |
9952 | rm -f conftest.er1 | |
9953 | cat conftest.err >&5 | |
9954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9955 | (exit $ac_status); } && { | |
9956 | test -z "$ac_c_werror_flag" || | |
9957 | test ! -s conftest.err | |
9958 | } && test -s conftest$ac_exeext && | |
9959 | $as_test_x conftest$ac_exeext; then | |
9960 | ac_cv_lib_svld_dlopen=yes | |
9961 | else | |
9962 | echo "$as_me: failed program was:" >&5 | |
9963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9964 | ||
9965 | ac_cv_lib_svld_dlopen=no | |
9966 | fi | |
9967 | ||
9968 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9969 | conftest$ac_exeext conftest.$ac_ext | |
9970 | LIBS=$ac_check_lib_save_LIBS | |
9971 | fi | |
9972 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
9973 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } | |
9974 | if test $ac_cv_lib_svld_dlopen = yes; then | |
9975 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
9976 | else | |
9977 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
9978 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } | |
9979 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
9980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9981 | else | |
9982 | ac_check_lib_save_LIBS=$LIBS | |
9983 | LIBS="-ldld $LIBS" | |
9984 | cat >conftest.$ac_ext <<_ACEOF | |
9985 | /* confdefs.h. */ | |
9986 | _ACEOF | |
9987 | cat confdefs.h >>conftest.$ac_ext | |
9988 | cat >>conftest.$ac_ext <<_ACEOF | |
9989 | /* end confdefs.h. */ | |
9990 | ||
9991 | /* Override any GCC internal prototype to avoid an error. | |
9992 | Use char because int might match the return type of a GCC | |
9993 | builtin and then its argument prototype would still apply. */ | |
9994 | #ifdef __cplusplus | |
9995 | extern "C" | |
9996 | #endif | |
9997 | char dld_link (); | |
9998 | int | |
9999 | main () | |
10000 | { | |
10001 | return dld_link (); | |
10002 | ; | |
10003 | return 0; | |
10004 | } | |
10005 | _ACEOF | |
10006 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10007 | if { (ac_try="$ac_link" | |
10008 | case "(($ac_try" in | |
10009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10010 | *) ac_try_echo=$ac_try;; | |
10011 | esac | |
10012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10013 | (eval "$ac_link") 2>conftest.er1 | |
10014 | ac_status=$? | |
10015 | grep -v '^ *+' conftest.er1 >conftest.err | |
10016 | rm -f conftest.er1 | |
10017 | cat conftest.err >&5 | |
10018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10019 | (exit $ac_status); } && { | |
10020 | test -z "$ac_c_werror_flag" || | |
10021 | test ! -s conftest.err | |
10022 | } && test -s conftest$ac_exeext && | |
10023 | $as_test_x conftest$ac_exeext; then | |
10024 | ac_cv_lib_dld_dld_link=yes | |
10025 | else | |
10026 | echo "$as_me: failed program was:" >&5 | |
10027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10028 | ||
10029 | ac_cv_lib_dld_dld_link=no | |
10030 | fi | |
10031 | ||
10032 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10033 | conftest$ac_exeext conftest.$ac_ext | |
10034 | LIBS=$ac_check_lib_save_LIBS | |
10035 | fi | |
10036 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
10037 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } | |
10038 | if test $ac_cv_lib_dld_dld_link = yes; then | |
10039 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
10040 | fi | |
10041 | ||
10042 | ||
10043 | fi | |
10044 | ||
10045 | ||
10046 | fi | |
10047 | ||
10048 | ||
10049 | fi | |
10050 | ||
10051 | ||
10052 | fi | |
10053 | ||
10054 | ||
10055 | fi | |
10056 | ||
10057 | ;; | |
10058 | esac | |
10059 | ||
10060 | if test "x$lt_cv_dlopen" != xno; then | |
10061 | enable_dlopen=yes | |
10062 | else | |
10063 | enable_dlopen=no | |
10064 | fi | |
10065 | ||
10066 | case $lt_cv_dlopen in | |
10067 | dlopen) | |
10068 | save_CPPFLAGS="$CPPFLAGS" | |
10069 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10070 | ||
10071 | save_LDFLAGS="$LDFLAGS" | |
10072 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10073 | ||
10074 | save_LIBS="$LIBS" | |
10075 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
10076 | ||
10077 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
10078 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } | |
10079 | if test "${lt_cv_dlopen_self+set}" = set; then | |
10080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10081 | else | |
10082 | if test "$cross_compiling" = yes; then : | |
10083 | lt_cv_dlopen_self=cross | |
10084 | else | |
10085 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10086 | lt_status=$lt_dlunknown | |
10087 | cat > conftest.$ac_ext <<_LT_EOF | |
10088 | #line 10088 "configure" | |
10089 | #include "confdefs.h" | |
10090 | ||
10091 | #if HAVE_DLFCN_H | |
10092 | #include <dlfcn.h> | |
10093 | #endif | |
10094 | ||
10095 | #include <stdio.h> | |
10096 | ||
10097 | #ifdef RTLD_GLOBAL | |
10098 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10099 | #else | |
10100 | # ifdef DL_GLOBAL | |
10101 | # define LT_DLGLOBAL DL_GLOBAL | |
10102 | # else | |
10103 | # define LT_DLGLOBAL 0 | |
10104 | # endif | |
10105 | #endif | |
10106 | ||
10107 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10108 | find out it does not work in some platform. */ | |
10109 | #ifndef LT_DLLAZY_OR_NOW | |
10110 | # ifdef RTLD_LAZY | |
10111 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10112 | # else | |
10113 | # ifdef DL_LAZY | |
10114 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10115 | # else | |
10116 | # ifdef RTLD_NOW | |
10117 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10118 | # else | |
10119 | # ifdef DL_NOW | |
10120 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10121 | # else | |
10122 | # define LT_DLLAZY_OR_NOW 0 | |
10123 | # endif | |
10124 | # endif | |
10125 | # endif | |
10126 | # endif | |
10127 | #endif | |
10128 | ||
10129 | #ifdef __cplusplus | |
10130 | extern "C" void exit (int); | |
10131 | #endif | |
10132 | ||
10133 | void fnord() { int i=42;} | |
10134 | int main () | |
10135 | { | |
10136 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10137 | int status = $lt_dlunknown; | |
10138 | ||
10139 | if (self) | |
10140 | { | |
10141 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10142 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10143 | /* dlclose (self); */ | |
10144 | } | |
10145 | else | |
10146 | puts (dlerror ()); | |
10147 | ||
10148 | exit (status); | |
10149 | } | |
10150 | _LT_EOF | |
10151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10152 | (eval $ac_link) 2>&5 | |
10153 | ac_status=$? | |
10154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10155 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10156 | (./conftest; exit; ) >&5 2>/dev/null | |
10157 | lt_status=$? | |
10158 | case x$lt_status in | |
10159 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10160 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10161 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10162 | esac | |
10163 | else : | |
10164 | # compilation failed | |
10165 | lt_cv_dlopen_self=no | |
10166 | fi | |
10167 | fi | |
10168 | rm -fr conftest* | |
10169 | ||
10170 | ||
10171 | fi | |
10172 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
10173 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } | |
10174 | ||
10175 | if test "x$lt_cv_dlopen_self" = xyes; then | |
10176 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
10177 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
10178 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } | |
10179 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
10180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10181 | else | |
10182 | if test "$cross_compiling" = yes; then : | |
10183 | lt_cv_dlopen_self_static=cross | |
10184 | else | |
10185 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10186 | lt_status=$lt_dlunknown | |
10187 | cat > conftest.$ac_ext <<_LT_EOF | |
10188 | #line 10188 "configure" | |
10189 | #include "confdefs.h" | |
10190 | ||
10191 | #if HAVE_DLFCN_H | |
10192 | #include <dlfcn.h> | |
10193 | #endif | |
10194 | ||
10195 | #include <stdio.h> | |
10196 | ||
10197 | #ifdef RTLD_GLOBAL | |
10198 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10199 | #else | |
10200 | # ifdef DL_GLOBAL | |
10201 | # define LT_DLGLOBAL DL_GLOBAL | |
10202 | # else | |
10203 | # define LT_DLGLOBAL 0 | |
10204 | # endif | |
10205 | #endif | |
10206 | ||
10207 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10208 | find out it does not work in some platform. */ | |
10209 | #ifndef LT_DLLAZY_OR_NOW | |
10210 | # ifdef RTLD_LAZY | |
10211 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10212 | # else | |
10213 | # ifdef DL_LAZY | |
10214 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10215 | # else | |
10216 | # ifdef RTLD_NOW | |
10217 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10218 | # else | |
10219 | # ifdef DL_NOW | |
10220 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10221 | # else | |
10222 | # define LT_DLLAZY_OR_NOW 0 | |
10223 | # endif | |
10224 | # endif | |
10225 | # endif | |
10226 | # endif | |
10227 | #endif | |
10228 | ||
10229 | #ifdef __cplusplus | |
10230 | extern "C" void exit (int); | |
10231 | #endif | |
10232 | ||
10233 | void fnord() { int i=42;} | |
10234 | int main () | |
10235 | { | |
10236 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10237 | int status = $lt_dlunknown; | |
10238 | ||
10239 | if (self) | |
10240 | { | |
10241 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10242 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10243 | /* dlclose (self); */ | |
10244 | } | |
10245 | else | |
10246 | puts (dlerror ()); | |
10247 | ||
10248 | exit (status); | |
10249 | } | |
10250 | _LT_EOF | |
10251 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10252 | (eval $ac_link) 2>&5 | |
10253 | ac_status=$? | |
10254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10255 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10256 | (./conftest; exit; ) >&5 2>/dev/null | |
10257 | lt_status=$? | |
10258 | case x$lt_status in | |
10259 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10260 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10261 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10262 | esac | |
10263 | else : | |
10264 | # compilation failed | |
10265 | lt_cv_dlopen_self_static=no | |
10266 | fi | |
10267 | fi | |
10268 | rm -fr conftest* | |
10269 | ||
10270 | ||
10271 | fi | |
10272 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
10273 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } | |
10274 | fi | |
10275 | ||
10276 | CPPFLAGS="$save_CPPFLAGS" | |
10277 | LDFLAGS="$save_LDFLAGS" | |
10278 | LIBS="$save_LIBS" | |
10279 | ;; | |
10280 | esac | |
10281 | ||
10282 | case $lt_cv_dlopen_self in | |
10283 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10284 | *) enable_dlopen_self=unknown ;; | |
10285 | esac | |
10286 | ||
10287 | case $lt_cv_dlopen_self_static in | |
10288 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10289 | *) enable_dlopen_self_static=unknown ;; | |
10290 | esac | |
10291 | fi | |
10292 | ||
10293 | ||
10294 | ||
10295 | ||
10296 | ||
10297 | ||
10298 | ||
10299 | ||
10300 | ||
10301 | ||
10302 | ||
10303 | ||
10304 | ||
10305 | ||
10306 | ||
10307 | ||
10308 | ||
10309 | striplib= | |
10310 | old_striplib= | |
10311 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
10312 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } | |
10313 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
10314 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10315 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
10316 | { echo "$as_me:$LINENO: result: yes" >&5 | |
10317 | echo "${ECHO_T}yes" >&6; } | |
10318 | else | |
10319 | # FIXME - insert some real tests, host_os isn't really good enough | |
10320 | case $host_os in | |
10321 | darwin*) | |
10322 | if test -n "$STRIP" ; then | |
10323 | striplib="$STRIP -x" | |
10324 | old_striplib="$STRIP -S" | |
10325 | { echo "$as_me:$LINENO: result: yes" >&5 | |
10326 | echo "${ECHO_T}yes" >&6; } | |
10327 | else | |
10328 | { echo "$as_me:$LINENO: result: no" >&5 | |
10329 | echo "${ECHO_T}no" >&6; } | |
10330 | fi | |
10331 | ;; | |
10332 | *) | |
10333 | { echo "$as_me:$LINENO: result: no" >&5 | |
10334 | echo "${ECHO_T}no" >&6; } | |
10335 | ;; | |
10336 | esac | |
10337 | fi | |
10338 | ||
10339 | ||
10340 | ||
10341 | ||
10342 | ||
10343 | ||
10344 | ||
10345 | ||
10346 | ||
10347 | ||
10348 | ||
10349 | ||
10350 | # Report which library types will actually be built | |
10351 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
10352 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } | |
10353 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
10354 | echo "${ECHO_T}$can_build_shared" >&6; } | |
10355 | ||
10356 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
10357 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | |
10358 | test "$can_build_shared" = "no" && enable_shared=no | |
10359 | ||
10360 | # On AIX, shared libraries and static libraries use the same namespace, and | |
10361 | # are all built from PIC. | |
10362 | case $host_os in | |
10363 | aix3*) | |
10364 | test "$enable_shared" = yes && enable_static=no | |
10365 | if test -n "$RANLIB"; then | |
10366 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10367 | postinstall_cmds='$RANLIB $lib' | |
10368 | fi | |
10369 | ;; | |
10370 | ||
10371 | aix4* | aix5*) | |
10372 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
10373 | test "$enable_shared" = yes && enable_static=no | |
10374 | fi | |
10375 | ;; | |
10376 | esac | |
10377 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
10378 | echo "${ECHO_T}$enable_shared" >&6; } | |
10379 | ||
10380 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
10381 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } | |
10382 | # Make sure either enable_shared or enable_static is yes. | |
10383 | test "$enable_shared" = yes || enable_static=yes | |
10384 | { echo "$as_me:$LINENO: result: $enable_static" >&5 | |
10385 | echo "${ECHO_T}$enable_static" >&6; } | |
10386 | ||
10387 | ||
10388 | ||
10389 | ||
10390 | fi | |
10391 | ac_ext=c | |
10392 | ac_cpp='$CPP $CPPFLAGS' | |
10393 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10394 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10395 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10396 | ||
10397 | CC="$lt_save_CC" | |
10398 | ||
10399 | ||
10400 | ||
10401 | ||
10402 | ||
10403 | ||
10404 | ||
10405 | ||
10406 | ||
10407 | ||
10408 | ||
10409 | ||
10410 | ||
10411 | ac_config_commands="$ac_config_commands libtool" | |
10412 | ||
10413 | ||
10414 | ||
10415 | ||
10416 | # Only expand once: | |
10417 | ||
10418 | ||
10419 | enable_win32_dll=yes | |
10420 | ||
10421 | case $host in | |
10422 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) | |
10423 | if test -n "$ac_tool_prefix"; then | |
10424 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
10425 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
10426 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10427 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
10428 | if test "${ac_cv_prog_AS+set}" = set; then | |
10429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10430 | else | |
10431 | if test -n "$AS"; then | |
10432 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
10433 | else | |
10434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10435 | for as_dir in $PATH | |
10436 | do | |
10437 | IFS=$as_save_IFS | |
10438 | test -z "$as_dir" && as_dir=. | |
10439 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10440 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10441 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
10442 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10443 | break 2 | |
10444 | fi | |
10445 | done | |
10446 | done | |
10447 | IFS=$as_save_IFS | |
10448 | ||
10449 | fi | |
10450 | fi | |
10451 | AS=$ac_cv_prog_AS | |
10452 | if test -n "$AS"; then | |
10453 | { echo "$as_me:$LINENO: result: $AS" >&5 | |
10454 | echo "${ECHO_T}$AS" >&6; } | |
10455 | else | |
10456 | { echo "$as_me:$LINENO: result: no" >&5 | |
10457 | echo "${ECHO_T}no" >&6; } | |
10458 | fi | |
10459 | ||
10460 | ||
10461 | fi | |
10462 | if test -z "$ac_cv_prog_AS"; then | |
10463 | ac_ct_AS=$AS | |
10464 | # Extract the first word of "as", so it can be a program name with args. | |
10465 | set dummy as; ac_word=$2 | |
10466 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
10468 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then | |
10469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10470 | else | |
10471 | if test -n "$ac_ct_AS"; then | |
10472 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
10473 | else | |
10474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10475 | for as_dir in $PATH | |
10476 | do | |
10477 | IFS=$as_save_IFS | |
10478 | test -z "$as_dir" && as_dir=. | |
10479 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10480 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10481 | ac_cv_prog_ac_ct_AS="as" | |
10482 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10483 | break 2 | |
10484 | fi | |
10485 | done | |
10486 | done | |
10487 | IFS=$as_save_IFS | |
10488 | ||
10489 | fi | |
10490 | fi | |
10491 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
10492 | if test -n "$ac_ct_AS"; then | |
10493 | { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 | |
10494 | echo "${ECHO_T}$ac_ct_AS" >&6; } | |
10495 | else | |
10496 | { echo "$as_me:$LINENO: result: no" >&5 | |
10497 | echo "${ECHO_T}no" >&6; } | |
10498 | fi | |
10499 | ||
10500 | if test "x$ac_ct_AS" = x; then | |
10501 | AS="false" | |
10502 | else | |
10503 | case $cross_compiling:$ac_tool_warned in | |
10504 | yes:) | |
10505 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
10506 | whose name does not start with the host triplet. If you think this | |
10507 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
10508 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
10509 | whose name does not start with the host triplet. If you think this | |
10510 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
10511 | ac_tool_warned=yes ;; | |
10512 | esac | |
10513 | AS=$ac_ct_AS | |
10514 | fi | |
10515 | else | |
10516 | AS="$ac_cv_prog_AS" | |
10517 | fi | |
10518 | ||
10519 | if test -n "$ac_tool_prefix"; then | |
10520 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
10521 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
10522 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
10524 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
10525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10526 | else | |
10527 | if test -n "$DLLTOOL"; then | |
10528 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
10529 | else | |
10530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10531 | for as_dir in $PATH | |
10532 | do | |
10533 | IFS=$as_save_IFS | |
10534 | test -z "$as_dir" && as_dir=. | |
10535 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10536 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10537 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
10538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10539 | break 2 | |
10540 | fi | |
10541 | done | |
10542 | done | |
10543 | IFS=$as_save_IFS | |
10544 | ||
10545 | fi | |
10546 | fi | |
10547 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
10548 | if test -n "$DLLTOOL"; then | |
10549 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
10550 | echo "${ECHO_T}$DLLTOOL" >&6; } | |
10551 | else | |
10552 | { echo "$as_me:$LINENO: result: no" >&5 | |
10553 | echo "${ECHO_T}no" >&6; } | |
10554 | fi | |
10555 | ||
10556 | ||
10557 | fi | |
10558 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
10559 | ac_ct_DLLTOOL=$DLLTOOL | |
10560 | # Extract the first word of "dlltool", so it can be a program name with args. | |
10561 | set dummy dlltool; ac_word=$2 | |
10562 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10563 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
10564 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
10565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10566 | else | |
10567 | if test -n "$ac_ct_DLLTOOL"; then | |
10568 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
10569 | else | |
10570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10571 | for as_dir in $PATH | |
10572 | do | |
10573 | IFS=$as_save_IFS | |
10574 | test -z "$as_dir" && as_dir=. | |
10575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10576 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10577 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
10578 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10579 | break 2 | |
10580 | fi | |
10581 | done | |
10582 | done | |
10583 | IFS=$as_save_IFS | |
10584 | ||
10585 | fi | |
10586 | fi | |
10587 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
10588 | if test -n "$ac_ct_DLLTOOL"; then | |
10589 | { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
10590 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } | |
10591 | else | |
10592 | { echo "$as_me:$LINENO: result: no" >&5 | |
10593 | echo "${ECHO_T}no" >&6; } | |
10594 | fi | |
10595 | ||
10596 | if test "x$ac_ct_DLLTOOL" = x; then | |
10597 | DLLTOOL="false" | |
10598 | else | |
10599 | case $cross_compiling:$ac_tool_warned in | |
10600 | yes:) | |
10601 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
10602 | whose name does not start with the host triplet. If you think this | |
10603 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
10604 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
10605 | whose name does not start with the host triplet. If you think this | |
10606 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
10607 | ac_tool_warned=yes ;; | |
10608 | esac | |
10609 | DLLTOOL=$ac_ct_DLLTOOL | |
10610 | fi | |
10611 | else | |
10612 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
10613 | fi | |
10614 | ||
10615 | if test -n "$ac_tool_prefix"; then | |
10616 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
10617 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
10618 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10619 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
10620 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
10621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10622 | else | |
10623 | if test -n "$OBJDUMP"; then | |
10624 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
10625 | else | |
10626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10627 | for as_dir in $PATH | |
10628 | do | |
10629 | IFS=$as_save_IFS | |
10630 | test -z "$as_dir" && as_dir=. | |
10631 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10632 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10633 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
10634 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10635 | break 2 | |
10636 | fi | |
10637 | done | |
10638 | done | |
10639 | IFS=$as_save_IFS | |
10640 | ||
10641 | fi | |
10642 | fi | |
10643 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
10644 | if test -n "$OBJDUMP"; then | |
10645 | { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | |
10646 | echo "${ECHO_T}$OBJDUMP" >&6; } | |
10647 | else | |
10648 | { echo "$as_me:$LINENO: result: no" >&5 | |
10649 | echo "${ECHO_T}no" >&6; } | |
10650 | fi | |
10651 | ||
10652 | ||
10653 | fi | |
10654 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
10655 | ac_ct_OBJDUMP=$OBJDUMP | |
10656 | # Extract the first word of "objdump", so it can be a program name with args. | |
10657 | set dummy objdump; ac_word=$2 | |
10658 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10659 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
10660 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | |
10661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10662 | else | |
10663 | if test -n "$ac_ct_OBJDUMP"; then | |
10664 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
10665 | else | |
10666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10667 | for as_dir in $PATH | |
10668 | do | |
10669 | IFS=$as_save_IFS | |
10670 | test -z "$as_dir" && as_dir=. | |
10671 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10672 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10673 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
10674 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10675 | break 2 | |
10676 | fi | |
10677 | done | |
10678 | done | |
10679 | IFS=$as_save_IFS | |
10680 | ||
10681 | fi | |
10682 | fi | |
10683 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
10684 | if test -n "$ac_ct_OBJDUMP"; then | |
10685 | { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | |
10686 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } | |
10687 | else | |
10688 | { echo "$as_me:$LINENO: result: no" >&5 | |
10689 | echo "${ECHO_T}no" >&6; } | |
10690 | fi | |
10691 | ||
10692 | if test "x$ac_ct_OBJDUMP" = x; then | |
10693 | OBJDUMP="false" | |
10694 | else | |
10695 | case $cross_compiling:$ac_tool_warned in | |
10696 | yes:) | |
10697 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
10698 | whose name does not start with the host triplet. If you think this | |
10699 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
10700 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
10701 | whose name does not start with the host triplet. If you think this | |
10702 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
10703 | ac_tool_warned=yes ;; | |
10704 | esac | |
10705 | OBJDUMP=$ac_ct_OBJDUMP | |
10706 | fi | |
10707 | else | |
10708 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
10709 | fi | |
10710 | ||
10711 | ;; | |
10712 | esac | |
10713 | ||
10714 | test -z "$AS" && AS=as | |
10715 | ||
10716 | ||
10717 | ||
10718 | ||
10719 | ||
10720 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
10721 | ||
10722 | ||
10723 | ||
10724 | ||
10725 | ||
10726 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
10727 | ||
10728 | ||
10729 | ||
10730 | ||
10731 | ||
10732 | ||
10733 | ||
10734 | ||
10735 | ||
10736 | { echo "$as_me:$LINENO: checking for main in -lc" >&5 | |
10737 | echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6; } | |
10738 | if test "${ac_cv_lib_c_main+set}" = set; then | |
10739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10740 | else | |
10741 | ac_check_lib_save_LIBS=$LIBS | |
10742 | LIBS="-lc $LIBS" | |
10743 | cat >conftest.$ac_ext <<_ACEOF | |
10744 | /* confdefs.h. */ | |
10745 | _ACEOF | |
10746 | cat confdefs.h >>conftest.$ac_ext | |
10747 | cat >>conftest.$ac_ext <<_ACEOF | |
10748 | /* end confdefs.h. */ | |
10749 | ||
10750 | ||
10751 | int | |
10752 | main () | |
10753 | { | |
10754 | return main (); | |
10755 | ; | |
10756 | return 0; | |
10757 | } | |
10758 | _ACEOF | |
10759 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10760 | if { (ac_try="$ac_link" | |
10761 | case "(($ac_try" in | |
10762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10763 | *) ac_try_echo=$ac_try;; | |
10764 | esac | |
10765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10766 | (eval "$ac_link") 2>conftest.er1 | |
10767 | ac_status=$? | |
10768 | grep -v '^ *+' conftest.er1 >conftest.err | |
10769 | rm -f conftest.er1 | |
10770 | cat conftest.err >&5 | |
10771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10772 | (exit $ac_status); } && { | |
10773 | test -z "$ac_c_werror_flag" || | |
10774 | test ! -s conftest.err | |
10775 | } && test -s conftest$ac_exeext && | |
10776 | $as_test_x conftest$ac_exeext; then | |
10777 | ac_cv_lib_c_main=yes | |
10778 | else | |
10779 | echo "$as_me: failed program was:" >&5 | |
10780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10781 | ||
10782 | ac_cv_lib_c_main=no | |
10783 | fi | |
10784 | ||
10785 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10786 | conftest$ac_exeext conftest.$ac_ext | |
10787 | LIBS=$ac_check_lib_save_LIBS | |
10788 | fi | |
10789 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5 | |
10790 | echo "${ECHO_T}$ac_cv_lib_c_main" >&6; } | |
10791 | if test $ac_cv_lib_c_main = yes; then | |
10792 | cat >>confdefs.h <<_ACEOF | |
10793 | #define HAVE_LIBC 1 | |
10794 | _ACEOF | |
10795 | ||
10796 | LIBS="-lc $LIBS" | |
10797 | ||
10798 | fi | |
10799 | ||
10800 | ||
10801 | case "$target_os" in | |
10802 | cygwin* | mingw32* | beos* | darwin*) | |
10803 | ;; | |
10804 | *) | |
10805 | ||
10806 | { echo "$as_me:$LINENO: checking for main in -lm" >&5 | |
10807 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; } | |
10808 | if test "${ac_cv_lib_m_main+set}" = set; then | |
10809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10810 | else | |
10811 | ac_check_lib_save_LIBS=$LIBS | |
10812 | LIBS="-lm $LIBS" | |
10813 | cat >conftest.$ac_ext <<_ACEOF | |
10814 | /* confdefs.h. */ | |
10815 | _ACEOF | |
10816 | cat confdefs.h >>conftest.$ac_ext | |
10817 | cat >>conftest.$ac_ext <<_ACEOF | |
10818 | /* end confdefs.h. */ | |
10819 | ||
10820 | ||
10821 | int | |
10822 | main () | |
10823 | { | |
10824 | return main (); | |
10825 | ; | |
10826 | return 0; | |
10827 | } | |
10828 | _ACEOF | |
10829 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10830 | if { (ac_try="$ac_link" | |
10831 | case "(($ac_try" in | |
10832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10833 | *) ac_try_echo=$ac_try;; | |
10834 | esac | |
10835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10836 | (eval "$ac_link") 2>conftest.er1 | |
10837 | ac_status=$? | |
10838 | grep -v '^ *+' conftest.er1 >conftest.err | |
10839 | rm -f conftest.er1 | |
10840 | cat conftest.err >&5 | |
10841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10842 | (exit $ac_status); } && { | |
10843 | test -z "$ac_c_werror_flag" || | |
10844 | test ! -s conftest.err | |
10845 | } && test -s conftest$ac_exeext && | |
10846 | $as_test_x conftest$ac_exeext; then | |
10847 | ac_cv_lib_m_main=yes | |
10848 | else | |
10849 | echo "$as_me: failed program was:" >&5 | |
10850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10851 | ||
10852 | ac_cv_lib_m_main=no | |
10853 | fi | |
10854 | ||
10855 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10856 | conftest$ac_exeext conftest.$ac_ext | |
10857 | LIBS=$ac_check_lib_save_LIBS | |
10858 | fi | |
10859 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 | |
10860 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6; } | |
10861 | if test $ac_cv_lib_m_main = yes; then | |
10862 | cat >>confdefs.h <<_ACEOF | |
10863 | #define HAVE_LIBM 1 | |
10864 | _ACEOF | |
10865 | ||
10866 | LIBS="-lm $LIBS" | |
10867 | ||
10868 | fi | |
10869 | ||
10870 | ;; | |
10871 | esac | |
10872 | ||
10873 | ||
10874 | ||
10875 | ||
10876 | ||
10877 | ||
10878 | ||
10879 | ||
10880 | for ac_header in assert.h fcntl.h limits.h malloc.h search.h sys/time.h unistd.h | |
10881 | do | |
10882 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10883 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10884 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10885 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10886 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10888 | fi | |
10889 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
10890 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10891 | echo "${ECHO_T}$ac_res" >&6; } | |
10892 | else | |
10893 | # Is the header compilable? | |
10894 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10895 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
10896 | cat >conftest.$ac_ext <<_ACEOF | |
10897 | /* confdefs.h. */ | |
10898 | _ACEOF | |
10899 | cat confdefs.h >>conftest.$ac_ext | |
10900 | cat >>conftest.$ac_ext <<_ACEOF | |
10901 | /* end confdefs.h. */ | |
10902 | $ac_includes_default | |
10903 | #include <$ac_header> | |
10904 | _ACEOF | |
10905 | rm -f conftest.$ac_objext | |
10906 | if { (ac_try="$ac_compile" | |
10907 | case "(($ac_try" in | |
10908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10909 | *) ac_try_echo=$ac_try;; | |
10910 | esac | |
10911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10912 | (eval "$ac_compile") 2>conftest.er1 | |
10913 | ac_status=$? | |
10914 | grep -v '^ *+' conftest.er1 >conftest.err | |
10915 | rm -f conftest.er1 | |
10916 | cat conftest.err >&5 | |
10917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10918 | (exit $ac_status); } && { | |
10919 | test -z "$ac_c_werror_flag" || | |
10920 | test ! -s conftest.err | |
10921 | } && test -s conftest.$ac_objext; then | |
10922 | ac_header_compiler=yes | |
10923 | else | |
10924 | echo "$as_me: failed program was:" >&5 | |
10925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10926 | ||
10927 | ac_header_compiler=no | |
10928 | fi | |
10929 | ||
10930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10931 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10932 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
10933 | ||
10934 | # Is the header present? | |
10935 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10936 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
10937 | cat >conftest.$ac_ext <<_ACEOF | |
10938 | /* confdefs.h. */ | |
10939 | _ACEOF | |
10940 | cat confdefs.h >>conftest.$ac_ext | |
10941 | cat >>conftest.$ac_ext <<_ACEOF | |
10942 | /* end confdefs.h. */ | |
10943 | #include <$ac_header> | |
10944 | _ACEOF | |
10945 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10946 | case "(($ac_try" in | |
10947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10948 | *) ac_try_echo=$ac_try;; | |
10949 | esac | |
10950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10951 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10952 | ac_status=$? | |
10953 | grep -v '^ *+' conftest.er1 >conftest.err | |
10954 | rm -f conftest.er1 | |
10955 | cat conftest.err >&5 | |
10956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10957 | (exit $ac_status); } >/dev/null && { | |
10958 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10959 | test ! -s conftest.err | |
10960 | }; then | |
10961 | ac_header_preproc=yes | |
10962 | else | |
10963 | echo "$as_me: failed program was:" >&5 | |
10964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10965 | ||
10966 | ac_header_preproc=no | |
10967 | fi | |
10968 | ||
10969 | rm -f conftest.err conftest.$ac_ext | |
10970 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10971 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
10972 | ||
10973 | # So? What about this header? | |
10974 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10975 | yes:no: ) | |
10976 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10977 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10978 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10979 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10980 | ac_header_preproc=yes | |
10981 | ;; | |
10982 | no:yes:* ) | |
10983 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10984 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10985 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10986 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10987 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10988 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10989 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10990 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10991 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10992 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10993 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10994 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10995 | ( cat <<\_ASBOX | |
10996 | ## -------------------------------------- ## | |
10997 | ## Report this to tiff@lists.maptools.org ## | |
10998 | ## -------------------------------------- ## | |
10999 | _ASBOX | |
11000 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
11001 | ;; | |
11002 | esac | |
11003 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11004 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11005 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11007 | else | |
11008 | eval "$as_ac_Header=\$ac_header_preproc" | |
11009 | fi | |
11010 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
11011 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11012 | echo "${ECHO_T}$ac_res" >&6; } | |
11013 | ||
11014 | fi | |
11015 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11016 | cat >>confdefs.h <<_ACEOF | |
11017 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11018 | _ACEOF | |
11019 | ||
11020 | fi | |
11021 | ||
11022 | done | |
11023 | ||
11024 | ||
11025 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
11026 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
11027 | if test "${ac_cv_c_const+set}" = set; then | |
11028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11029 | else | |
11030 | cat >conftest.$ac_ext <<_ACEOF | |
11031 | /* confdefs.h. */ | |
11032 | _ACEOF | |
11033 | cat confdefs.h >>conftest.$ac_ext | |
11034 | cat >>conftest.$ac_ext <<_ACEOF | |
11035 | /* end confdefs.h. */ | |
11036 | ||
11037 | int | |
11038 | main () | |
11039 | { | |
11040 | /* FIXME: Include the comments suggested by Paul. */ | |
11041 | #ifndef __cplusplus | |
11042 | /* Ultrix mips cc rejects this. */ | |
11043 | typedef int charset[2]; | |
11044 | const charset cs; | |
11045 | /* SunOS 4.1.1 cc rejects this. */ | |
11046 | char const *const *pcpcc; | |
11047 | char **ppc; | |
11048 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
11049 | struct point {int x, y;}; | |
11050 | static struct point const zero = {0,0}; | |
11051 | /* AIX XL C 1.02.0.0 rejects this. | |
11052 | It does not let you subtract one const X* pointer from another in | |
11053 | an arm of an if-expression whose if-part is not a constant | |
11054 | expression */ | |
11055 | const char *g = "string"; | |
11056 | pcpcc = &g + (g ? g-g : 0); | |
11057 | /* HPUX 7.0 cc rejects these. */ | |
11058 | ++pcpcc; | |
11059 | ppc = (char**) pcpcc; | |
11060 | pcpcc = (char const *const *) ppc; | |
11061 | { /* SCO 3.2v4 cc rejects this. */ | |
11062 | char *t; | |
11063 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
11064 | ||
11065 | *t++ = 0; | |
11066 | if (s) return 0; | |
11067 | } | |
11068 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
11069 | int x[] = {25, 17}; | |
11070 | const int *foo = &x[0]; | |
11071 | ++foo; | |
11072 | } | |
11073 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
11074 | typedef const int *iptr; | |
11075 | iptr p = 0; | |
11076 | ++p; | |
11077 | } | |
11078 | { /* AIX XL C 1.02.0.0 rejects this saying | |
11079 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
11080 | struct s { int j; const int *ap[3]; }; | |
11081 | struct s *b; b->j = 5; | |
11082 | } | |
11083 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
11084 | const int foo = 10; | |
11085 | if (!foo) return 0; | |
11086 | } | |
11087 | return !cs[0] && !zero.x; | |
11088 | #endif | |
11089 | ||
11090 | ; | |
11091 | return 0; | |
11092 | } | |
11093 | _ACEOF | |
11094 | rm -f conftest.$ac_objext | |
11095 | if { (ac_try="$ac_compile" | |
11096 | case "(($ac_try" in | |
11097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11098 | *) ac_try_echo=$ac_try;; | |
11099 | esac | |
11100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11101 | (eval "$ac_compile") 2>conftest.er1 | |
11102 | ac_status=$? | |
11103 | grep -v '^ *+' conftest.er1 >conftest.err | |
11104 | rm -f conftest.er1 | |
11105 | cat conftest.err >&5 | |
11106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11107 | (exit $ac_status); } && { | |
11108 | test -z "$ac_c_werror_flag" || | |
11109 | test ! -s conftest.err | |
11110 | } && test -s conftest.$ac_objext; then | |
11111 | ac_cv_c_const=yes | |
11112 | else | |
11113 | echo "$as_me: failed program was:" >&5 | |
11114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11115 | ||
11116 | ac_cv_c_const=no | |
11117 | fi | |
11118 | ||
11119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11120 | fi | |
11121 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
11122 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
11123 | if test $ac_cv_c_const = no; then | |
11124 | ||
11125 | cat >>confdefs.h <<\_ACEOF | |
11126 | #define const | |
11127 | _ACEOF | |
11128 | ||
11129 | fi | |
11130 | ||
11131 | { echo "$as_me:$LINENO: checking for inline" >&5 | |
11132 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
11133 | if test "${ac_cv_c_inline+set}" = set; then | |
11134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11135 | else | |
11136 | ac_cv_c_inline=no | |
11137 | for ac_kw in inline __inline__ __inline; do | |
11138 | cat >conftest.$ac_ext <<_ACEOF | |
11139 | /* confdefs.h. */ | |
11140 | _ACEOF | |
11141 | cat confdefs.h >>conftest.$ac_ext | |
11142 | cat >>conftest.$ac_ext <<_ACEOF | |
11143 | /* end confdefs.h. */ | |
11144 | #ifndef __cplusplus | |
11145 | typedef int foo_t; | |
11146 | static $ac_kw foo_t static_foo () {return 0; } | |
11147 | $ac_kw foo_t foo () {return 0; } | |
11148 | #endif | |
11149 | ||
11150 | _ACEOF | |
11151 | rm -f conftest.$ac_objext | |
11152 | if { (ac_try="$ac_compile" | |
11153 | case "(($ac_try" in | |
11154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11155 | *) ac_try_echo=$ac_try;; | |
11156 | esac | |
11157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11158 | (eval "$ac_compile") 2>conftest.er1 | |
11159 | ac_status=$? | |
11160 | grep -v '^ *+' conftest.er1 >conftest.err | |
11161 | rm -f conftest.er1 | |
11162 | cat conftest.err >&5 | |
11163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11164 | (exit $ac_status); } && { | |
11165 | test -z "$ac_c_werror_flag" || | |
11166 | test ! -s conftest.err | |
11167 | } && test -s conftest.$ac_objext; then | |
11168 | ac_cv_c_inline=$ac_kw | |
11169 | else | |
11170 | echo "$as_me: failed program was:" >&5 | |
11171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11172 | ||
11173 | ||
11174 | fi | |
11175 | ||
11176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11177 | test "$ac_cv_c_inline" != no && break | |
11178 | done | |
11179 | ||
11180 | fi | |
11181 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
11182 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
11183 | ||
11184 | ||
11185 | case $ac_cv_c_inline in | |
11186 | inline | yes) ;; | |
11187 | *) | |
11188 | case $ac_cv_c_inline in | |
11189 | no) ac_val=;; | |
11190 | *) ac_val=$ac_cv_c_inline;; | |
11191 | esac | |
11192 | cat >>confdefs.h <<_ACEOF | |
11193 | #ifndef __cplusplus | |
11194 | #define inline $ac_val | |
11195 | #endif | |
11196 | _ACEOF | |
11197 | ;; | |
11198 | esac | |
11199 | ||
11200 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
11201 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
11202 | if test "${ac_cv_c_bigendian+set}" = set; then | |
11203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11204 | else | |
11205 | # See if sys/param.h defines the BYTE_ORDER macro. | |
11206 | cat >conftest.$ac_ext <<_ACEOF | |
11207 | /* confdefs.h. */ | |
11208 | _ACEOF | |
11209 | cat confdefs.h >>conftest.$ac_ext | |
11210 | cat >>conftest.$ac_ext <<_ACEOF | |
11211 | /* end confdefs.h. */ | |
11212 | #include <sys/types.h> | |
11213 | #include <sys/param.h> | |
11214 | ||
11215 | int | |
11216 | main () | |
11217 | { | |
11218 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ | |
11219 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
11220 | bogus endian macros | |
11221 | #endif | |
11222 | ||
11223 | ; | |
11224 | return 0; | |
11225 | } | |
11226 | _ACEOF | |
11227 | rm -f conftest.$ac_objext | |
11228 | if { (ac_try="$ac_compile" | |
11229 | case "(($ac_try" in | |
11230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11231 | *) ac_try_echo=$ac_try;; | |
11232 | esac | |
11233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11234 | (eval "$ac_compile") 2>conftest.er1 | |
11235 | ac_status=$? | |
11236 | grep -v '^ *+' conftest.er1 >conftest.err | |
11237 | rm -f conftest.er1 | |
11238 | cat conftest.err >&5 | |
11239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11240 | (exit $ac_status); } && { | |
11241 | test -z "$ac_c_werror_flag" || | |
11242 | test ! -s conftest.err | |
11243 | } && test -s conftest.$ac_objext; then | |
11244 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
11245 | cat >conftest.$ac_ext <<_ACEOF | |
11246 | /* confdefs.h. */ | |
11247 | _ACEOF | |
11248 | cat confdefs.h >>conftest.$ac_ext | |
11249 | cat >>conftest.$ac_ext <<_ACEOF | |
11250 | /* end confdefs.h. */ | |
11251 | #include <sys/types.h> | |
11252 | #include <sys/param.h> | |
11253 | ||
11254 | int | |
11255 | main () | |
11256 | { | |
11257 | #if BYTE_ORDER != BIG_ENDIAN | |
11258 | not big endian | |
11259 | #endif | |
11260 | ||
11261 | ; | |
11262 | return 0; | |
11263 | } | |
11264 | _ACEOF | |
11265 | rm -f conftest.$ac_objext | |
11266 | if { (ac_try="$ac_compile" | |
11267 | case "(($ac_try" in | |
11268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11269 | *) ac_try_echo=$ac_try;; | |
11270 | esac | |
11271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11272 | (eval "$ac_compile") 2>conftest.er1 | |
11273 | ac_status=$? | |
11274 | grep -v '^ *+' conftest.er1 >conftest.err | |
11275 | rm -f conftest.er1 | |
11276 | cat conftest.err >&5 | |
11277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11278 | (exit $ac_status); } && { | |
11279 | test -z "$ac_c_werror_flag" || | |
11280 | test ! -s conftest.err | |
11281 | } && test -s conftest.$ac_objext; then | |
11282 | ac_cv_c_bigendian=yes | |
11283 | else | |
11284 | echo "$as_me: failed program was:" >&5 | |
11285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11286 | ||
11287 | ac_cv_c_bigendian=no | |
11288 | fi | |
11289 | ||
11290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11291 | else | |
11292 | echo "$as_me: failed program was:" >&5 | |
11293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11294 | ||
11295 | # It does not; compile a test program. | |
11296 | if test "$cross_compiling" = yes; then | |
11297 | # try to guess the endianness by grepping values into an object file | |
11298 | ac_cv_c_bigendian=unknown | |
11299 | cat >conftest.$ac_ext <<_ACEOF | |
11300 | /* confdefs.h. */ | |
11301 | _ACEOF | |
11302 | cat confdefs.h >>conftest.$ac_ext | |
11303 | cat >>conftest.$ac_ext <<_ACEOF | |
11304 | /* end confdefs.h. */ | |
11305 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
11306 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
11307 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
11308 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
11309 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
11310 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
11311 | int | |
11312 | main () | |
11313 | { | |
11314 | _ascii (); _ebcdic (); | |
11315 | ; | |
11316 | return 0; | |
11317 | } | |
11318 | _ACEOF | |
11319 | rm -f conftest.$ac_objext | |
11320 | if { (ac_try="$ac_compile" | |
11321 | case "(($ac_try" in | |
11322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11323 | *) ac_try_echo=$ac_try;; | |
11324 | esac | |
11325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11326 | (eval "$ac_compile") 2>conftest.er1 | |
11327 | ac_status=$? | |
11328 | grep -v '^ *+' conftest.er1 >conftest.err | |
11329 | rm -f conftest.er1 | |
11330 | cat conftest.err >&5 | |
11331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11332 | (exit $ac_status); } && { | |
11333 | test -z "$ac_c_werror_flag" || | |
11334 | test ! -s conftest.err | |
11335 | } && test -s conftest.$ac_objext; then | |
11336 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
11337 | ac_cv_c_bigendian=yes | |
11338 | fi | |
11339 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
11340 | if test "$ac_cv_c_bigendian" = unknown; then | |
11341 | ac_cv_c_bigendian=no | |
11342 | else | |
11343 | # finding both strings is unlikely to happen, but who knows? | |
11344 | ac_cv_c_bigendian=unknown | |
11345 | fi | |
11346 | fi | |
11347 | else | |
11348 | echo "$as_me: failed program was:" >&5 | |
11349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11350 | ||
11351 | ||
11352 | fi | |
11353 | ||
11354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11355 | else | |
11356 | cat >conftest.$ac_ext <<_ACEOF | |
11357 | /* confdefs.h. */ | |
11358 | _ACEOF | |
11359 | cat confdefs.h >>conftest.$ac_ext | |
11360 | cat >>conftest.$ac_ext <<_ACEOF | |
11361 | /* end confdefs.h. */ | |
11362 | $ac_includes_default | |
11363 | int | |
11364 | main () | |
11365 | { | |
11366 | ||
11367 | /* Are we little or big endian? From Harbison&Steele. */ | |
11368 | union | |
11369 | { | |
11370 | long int l; | |
11371 | char c[sizeof (long int)]; | |
11372 | } u; | |
11373 | u.l = 1; | |
11374 | return u.c[sizeof (long int) - 1] == 1; | |
11375 | ||
11376 | ; | |
11377 | return 0; | |
11378 | } | |
11379 | _ACEOF | |
11380 | rm -f conftest$ac_exeext | |
11381 | if { (ac_try="$ac_link" | |
11382 | case "(($ac_try" in | |
11383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11384 | *) ac_try_echo=$ac_try;; | |
11385 | esac | |
11386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11387 | (eval "$ac_link") 2>&5 | |
11388 | ac_status=$? | |
11389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11390 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
11391 | { (case "(($ac_try" in | |
11392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11393 | *) ac_try_echo=$ac_try;; | |
11394 | esac | |
11395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11396 | (eval "$ac_try") 2>&5 | |
11397 | ac_status=$? | |
11398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11399 | (exit $ac_status); }; }; then | |
11400 | ac_cv_c_bigendian=no | |
11401 | else | |
11402 | echo "$as_me: program exited with status $ac_status" >&5 | |
11403 | echo "$as_me: failed program was:" >&5 | |
11404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11405 | ||
11406 | ( exit $ac_status ) | |
11407 | ac_cv_c_bigendian=yes | |
11408 | fi | |
11409 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11410 | fi | |
11411 | ||
11412 | ||
11413 | fi | |
11414 | ||
11415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11416 | fi | |
11417 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
11418 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
11419 | case $ac_cv_c_bigendian in | |
11420 | yes) | |
11421 | ||
11422 | cat >>confdefs.h <<\_ACEOF | |
11423 | #define WORDS_BIGENDIAN 1 | |
11424 | _ACEOF | |
11425 | ;; | |
11426 | no) | |
11427 | ;; | |
11428 | *) | |
11429 | { { echo "$as_me:$LINENO: error: unknown endianness | |
11430 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
11431 | echo "$as_me: error: unknown endianness | |
11432 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
11433 | { (exit 1); exit 1; }; } ;; | |
11434 | esac | |
11435 | ||
11436 | { echo "$as_me:$LINENO: checking for off_t" >&5 | |
11437 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } | |
11438 | if test "${ac_cv_type_off_t+set}" = set; then | |
11439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11440 | else | |
11441 | cat >conftest.$ac_ext <<_ACEOF | |
11442 | /* confdefs.h. */ | |
11443 | _ACEOF | |
11444 | cat confdefs.h >>conftest.$ac_ext | |
11445 | cat >>conftest.$ac_ext <<_ACEOF | |
11446 | /* end confdefs.h. */ | |
11447 | $ac_includes_default | |
11448 | typedef off_t ac__type_new_; | |
11449 | int | |
11450 | main () | |
11451 | { | |
11452 | if ((ac__type_new_ *) 0) | |
11453 | return 0; | |
11454 | if (sizeof (ac__type_new_)) | |
11455 | return 0; | |
11456 | ; | |
11457 | return 0; | |
11458 | } | |
11459 | _ACEOF | |
11460 | rm -f conftest.$ac_objext | |
11461 | if { (ac_try="$ac_compile" | |
11462 | case "(($ac_try" in | |
11463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11464 | *) ac_try_echo=$ac_try;; | |
11465 | esac | |
11466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11467 | (eval "$ac_compile") 2>conftest.er1 | |
11468 | ac_status=$? | |
11469 | grep -v '^ *+' conftest.er1 >conftest.err | |
11470 | rm -f conftest.er1 | |
11471 | cat conftest.err >&5 | |
11472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11473 | (exit $ac_status); } && { | |
11474 | test -z "$ac_c_werror_flag" || | |
11475 | test ! -s conftest.err | |
11476 | } && test -s conftest.$ac_objext; then | |
11477 | ac_cv_type_off_t=yes | |
11478 | else | |
11479 | echo "$as_me: failed program was:" >&5 | |
11480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11481 | ||
11482 | ac_cv_type_off_t=no | |
11483 | fi | |
11484 | ||
11485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11486 | fi | |
11487 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
11488 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } | |
11489 | if test $ac_cv_type_off_t = yes; then | |
11490 | : | |
11491 | else | |
11492 | ||
11493 | cat >>confdefs.h <<_ACEOF | |
11494 | #define off_t long int | |
11495 | _ACEOF | |
11496 | ||
11497 | fi | |
11498 | ||
11499 | { echo "$as_me:$LINENO: checking for size_t" >&5 | |
11500 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
11501 | if test "${ac_cv_type_size_t+set}" = set; then | |
11502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11503 | else | |
11504 | cat >conftest.$ac_ext <<_ACEOF | |
11505 | /* confdefs.h. */ | |
11506 | _ACEOF | |
11507 | cat confdefs.h >>conftest.$ac_ext | |
11508 | cat >>conftest.$ac_ext <<_ACEOF | |
11509 | /* end confdefs.h. */ | |
11510 | $ac_includes_default | |
11511 | typedef size_t ac__type_new_; | |
11512 | int | |
11513 | main () | |
11514 | { | |
11515 | if ((ac__type_new_ *) 0) | |
11516 | return 0; | |
11517 | if (sizeof (ac__type_new_)) | |
11518 | return 0; | |
11519 | ; | |
11520 | return 0; | |
11521 | } | |
11522 | _ACEOF | |
11523 | rm -f conftest.$ac_objext | |
11524 | if { (ac_try="$ac_compile" | |
11525 | case "(($ac_try" in | |
11526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11527 | *) ac_try_echo=$ac_try;; | |
11528 | esac | |
11529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11530 | (eval "$ac_compile") 2>conftest.er1 | |
11531 | ac_status=$? | |
11532 | grep -v '^ *+' conftest.er1 >conftest.err | |
11533 | rm -f conftest.er1 | |
11534 | cat conftest.err >&5 | |
11535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11536 | (exit $ac_status); } && { | |
11537 | test -z "$ac_c_werror_flag" || | |
11538 | test ! -s conftest.err | |
11539 | } && test -s conftest.$ac_objext; then | |
11540 | ac_cv_type_size_t=yes | |
11541 | else | |
11542 | echo "$as_me: failed program was:" >&5 | |
11543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11544 | ||
11545 | ac_cv_type_size_t=no | |
11546 | fi | |
11547 | ||
11548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11549 | fi | |
11550 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
11551 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
11552 | if test $ac_cv_type_size_t = yes; then | |
11553 | : | |
11554 | else | |
11555 | ||
11556 | cat >>confdefs.h <<_ACEOF | |
11557 | #define size_t unsigned int | |
11558 | _ACEOF | |
11559 | ||
11560 | fi | |
11561 | ||
11562 | { echo "$as_me:$LINENO: checking for int" >&5 | |
11563 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | |
11564 | if test "${ac_cv_type_int+set}" = set; then | |
11565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11566 | else | |
11567 | cat >conftest.$ac_ext <<_ACEOF | |
11568 | /* confdefs.h. */ | |
11569 | _ACEOF | |
11570 | cat confdefs.h >>conftest.$ac_ext | |
11571 | cat >>conftest.$ac_ext <<_ACEOF | |
11572 | /* end confdefs.h. */ | |
11573 | $ac_includes_default | |
11574 | typedef int ac__type_new_; | |
11575 | int | |
11576 | main () | |
11577 | { | |
11578 | if ((ac__type_new_ *) 0) | |
11579 | return 0; | |
11580 | if (sizeof (ac__type_new_)) | |
11581 | return 0; | |
11582 | ; | |
11583 | return 0; | |
11584 | } | |
11585 | _ACEOF | |
11586 | rm -f conftest.$ac_objext | |
11587 | if { (ac_try="$ac_compile" | |
11588 | case "(($ac_try" in | |
11589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11590 | *) ac_try_echo=$ac_try;; | |
11591 | esac | |
11592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11593 | (eval "$ac_compile") 2>conftest.er1 | |
11594 | ac_status=$? | |
11595 | grep -v '^ *+' conftest.er1 >conftest.err | |
11596 | rm -f conftest.er1 | |
11597 | cat conftest.err >&5 | |
11598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11599 | (exit $ac_status); } && { | |
11600 | test -z "$ac_c_werror_flag" || | |
11601 | test ! -s conftest.err | |
11602 | } && test -s conftest.$ac_objext; then | |
11603 | ac_cv_type_int=yes | |
11604 | else | |
11605 | echo "$as_me: failed program was:" >&5 | |
11606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11607 | ||
11608 | ac_cv_type_int=no | |
11609 | fi | |
11610 | ||
11611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11612 | fi | |
11613 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
11614 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | |
11615 | ||
11616 | # The cast to long int works around a bug in the HP C Compiler | |
11617 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11618 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11619 | # This bug is HP SR number 8606223364. | |
11620 | { echo "$as_me:$LINENO: checking size of int" >&5 | |
11621 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | |
11622 | if test "${ac_cv_sizeof_int+set}" = set; then | |
11623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11624 | else | |
11625 | if test "$cross_compiling" = yes; then | |
11626 | # Depending upon the size, compute the lo and hi bounds. | |
11627 | cat >conftest.$ac_ext <<_ACEOF | |
11628 | /* confdefs.h. */ | |
11629 | _ACEOF | |
11630 | cat confdefs.h >>conftest.$ac_ext | |
11631 | cat >>conftest.$ac_ext <<_ACEOF | |
11632 | /* end confdefs.h. */ | |
11633 | $ac_includes_default | |
11634 | typedef int ac__type_sizeof_; | |
11635 | int | |
11636 | main () | |
11637 | { | |
11638 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
11639 | test_array [0] = 0 | |
11640 | ||
11641 | ; | |
11642 | return 0; | |
11643 | } | |
11644 | _ACEOF | |
11645 | rm -f conftest.$ac_objext | |
11646 | if { (ac_try="$ac_compile" | |
11647 | case "(($ac_try" in | |
11648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11649 | *) ac_try_echo=$ac_try;; | |
11650 | esac | |
11651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11652 | (eval "$ac_compile") 2>conftest.er1 | |
11653 | ac_status=$? | |
11654 | grep -v '^ *+' conftest.er1 >conftest.err | |
11655 | rm -f conftest.er1 | |
11656 | cat conftest.err >&5 | |
11657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11658 | (exit $ac_status); } && { | |
11659 | test -z "$ac_c_werror_flag" || | |
11660 | test ! -s conftest.err | |
11661 | } && test -s conftest.$ac_objext; then | |
11662 | ac_lo=0 ac_mid=0 | |
11663 | while :; do | |
11664 | cat >conftest.$ac_ext <<_ACEOF | |
11665 | /* confdefs.h. */ | |
11666 | _ACEOF | |
11667 | cat confdefs.h >>conftest.$ac_ext | |
11668 | cat >>conftest.$ac_ext <<_ACEOF | |
11669 | /* end confdefs.h. */ | |
11670 | $ac_includes_default | |
11671 | typedef int ac__type_sizeof_; | |
11672 | int | |
11673 | main () | |
11674 | { | |
11675 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
11676 | test_array [0] = 0 | |
11677 | ||
11678 | ; | |
11679 | return 0; | |
11680 | } | |
11681 | _ACEOF | |
11682 | rm -f conftest.$ac_objext | |
11683 | if { (ac_try="$ac_compile" | |
11684 | case "(($ac_try" in | |
11685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11686 | *) ac_try_echo=$ac_try;; | |
11687 | esac | |
11688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11689 | (eval "$ac_compile") 2>conftest.er1 | |
11690 | ac_status=$? | |
11691 | grep -v '^ *+' conftest.er1 >conftest.err | |
11692 | rm -f conftest.er1 | |
11693 | cat conftest.err >&5 | |
11694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11695 | (exit $ac_status); } && { | |
11696 | test -z "$ac_c_werror_flag" || | |
11697 | test ! -s conftest.err | |
11698 | } && test -s conftest.$ac_objext; then | |
11699 | ac_hi=$ac_mid; break | |
11700 | else | |
11701 | echo "$as_me: failed program was:" >&5 | |
11702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11703 | ||
11704 | ac_lo=`expr $ac_mid + 1` | |
11705 | if test $ac_lo -le $ac_mid; then | |
11706 | ac_lo= ac_hi= | |
11707 | break | |
11708 | fi | |
11709 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
11710 | fi | |
11711 | ||
11712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11713 | done | |
11714 | else | |
11715 | echo "$as_me: failed program was:" >&5 | |
11716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11717 | ||
11718 | cat >conftest.$ac_ext <<_ACEOF | |
11719 | /* confdefs.h. */ | |
11720 | _ACEOF | |
11721 | cat confdefs.h >>conftest.$ac_ext | |
11722 | cat >>conftest.$ac_ext <<_ACEOF | |
11723 | /* end confdefs.h. */ | |
11724 | $ac_includes_default | |
11725 | typedef int ac__type_sizeof_; | |
11726 | int | |
11727 | main () | |
11728 | { | |
11729 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
11730 | test_array [0] = 0 | |
11731 | ||
11732 | ; | |
11733 | return 0; | |
11734 | } | |
11735 | _ACEOF | |
11736 | rm -f conftest.$ac_objext | |
11737 | if { (ac_try="$ac_compile" | |
11738 | case "(($ac_try" in | |
11739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11740 | *) ac_try_echo=$ac_try;; | |
11741 | esac | |
11742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11743 | (eval "$ac_compile") 2>conftest.er1 | |
11744 | ac_status=$? | |
11745 | grep -v '^ *+' conftest.er1 >conftest.err | |
11746 | rm -f conftest.er1 | |
11747 | cat conftest.err >&5 | |
11748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11749 | (exit $ac_status); } && { | |
11750 | test -z "$ac_c_werror_flag" || | |
11751 | test ! -s conftest.err | |
11752 | } && test -s conftest.$ac_objext; then | |
11753 | ac_hi=-1 ac_mid=-1 | |
11754 | while :; do | |
11755 | cat >conftest.$ac_ext <<_ACEOF | |
11756 | /* confdefs.h. */ | |
11757 | _ACEOF | |
11758 | cat confdefs.h >>conftest.$ac_ext | |
11759 | cat >>conftest.$ac_ext <<_ACEOF | |
11760 | /* end confdefs.h. */ | |
11761 | $ac_includes_default | |
11762 | typedef int ac__type_sizeof_; | |
11763 | int | |
11764 | main () | |
11765 | { | |
11766 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
11767 | test_array [0] = 0 | |
11768 | ||
11769 | ; | |
11770 | return 0; | |
11771 | } | |
11772 | _ACEOF | |
11773 | rm -f conftest.$ac_objext | |
11774 | if { (ac_try="$ac_compile" | |
11775 | case "(($ac_try" in | |
11776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11777 | *) ac_try_echo=$ac_try;; | |
11778 | esac | |
11779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11780 | (eval "$ac_compile") 2>conftest.er1 | |
11781 | ac_status=$? | |
11782 | grep -v '^ *+' conftest.er1 >conftest.err | |
11783 | rm -f conftest.er1 | |
11784 | cat conftest.err >&5 | |
11785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11786 | (exit $ac_status); } && { | |
11787 | test -z "$ac_c_werror_flag" || | |
11788 | test ! -s conftest.err | |
11789 | } && test -s conftest.$ac_objext; then | |
11790 | ac_lo=$ac_mid; break | |
11791 | else | |
11792 | echo "$as_me: failed program was:" >&5 | |
11793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11794 | ||
11795 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
11796 | if test $ac_mid -le $ac_hi; then | |
11797 | ac_lo= ac_hi= | |
11798 | break | |
11799 | fi | |
11800 | ac_mid=`expr 2 '*' $ac_mid` | |
11801 | fi | |
11802 | ||
11803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11804 | done | |
11805 | else | |
11806 | echo "$as_me: failed program was:" >&5 | |
11807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11808 | ||
11809 | ac_lo= ac_hi= | |
11810 | fi | |
11811 | ||
11812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11813 | fi | |
11814 | ||
11815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11816 | # Binary search between lo and hi bounds. | |
11817 | while test "x$ac_lo" != "x$ac_hi"; do | |
11818 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
11819 | cat >conftest.$ac_ext <<_ACEOF | |
11820 | /* confdefs.h. */ | |
11821 | _ACEOF | |
11822 | cat confdefs.h >>conftest.$ac_ext | |
11823 | cat >>conftest.$ac_ext <<_ACEOF | |
11824 | /* end confdefs.h. */ | |
11825 | $ac_includes_default | |
11826 | typedef int ac__type_sizeof_; | |
11827 | int | |
11828 | main () | |
11829 | { | |
11830 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
11831 | test_array [0] = 0 | |
11832 | ||
11833 | ; | |
11834 | return 0; | |
11835 | } | |
11836 | _ACEOF | |
11837 | rm -f conftest.$ac_objext | |
11838 | if { (ac_try="$ac_compile" | |
11839 | case "(($ac_try" in | |
11840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11841 | *) ac_try_echo=$ac_try;; | |
11842 | esac | |
11843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11844 | (eval "$ac_compile") 2>conftest.er1 | |
11845 | ac_status=$? | |
11846 | grep -v '^ *+' conftest.er1 >conftest.err | |
11847 | rm -f conftest.er1 | |
11848 | cat conftest.err >&5 | |
11849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11850 | (exit $ac_status); } && { | |
11851 | test -z "$ac_c_werror_flag" || | |
11852 | test ! -s conftest.err | |
11853 | } && test -s conftest.$ac_objext; then | |
11854 | ac_hi=$ac_mid | |
11855 | else | |
11856 | echo "$as_me: failed program was:" >&5 | |
11857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11858 | ||
11859 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
11860 | fi | |
11861 | ||
11862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11863 | done | |
11864 | case $ac_lo in | |
11865 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
11866 | '') if test "$ac_cv_type_int" = yes; then | |
11867 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
11868 | See \`config.log' for more details." >&5 | |
11869 | echo "$as_me: error: cannot compute sizeof (int) | |
11870 | See \`config.log' for more details." >&2;} | |
11871 | { (exit 77); exit 77; }; } | |
11872 | else | |
11873 | ac_cv_sizeof_int=0 | |
11874 | fi ;; | |
11875 | esac | |
11876 | else | |
11877 | cat >conftest.$ac_ext <<_ACEOF | |
11878 | /* confdefs.h. */ | |
11879 | _ACEOF | |
11880 | cat confdefs.h >>conftest.$ac_ext | |
11881 | cat >>conftest.$ac_ext <<_ACEOF | |
11882 | /* end confdefs.h. */ | |
11883 | $ac_includes_default | |
11884 | typedef int ac__type_sizeof_; | |
11885 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
11886 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
11887 | #include <stdio.h> | |
11888 | #include <stdlib.h> | |
11889 | int | |
11890 | main () | |
11891 | { | |
11892 | ||
11893 | FILE *f = fopen ("conftest.val", "w"); | |
11894 | if (! f) | |
11895 | return 1; | |
11896 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
11897 | { | |
11898 | long int i = longval (); | |
11899 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
11900 | return 1; | |
11901 | fprintf (f, "%ld\n", i); | |
11902 | } | |
11903 | else | |
11904 | { | |
11905 | unsigned long int i = ulongval (); | |
11906 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
11907 | return 1; | |
11908 | fprintf (f, "%lu\n", i); | |
11909 | } | |
11910 | return ferror (f) || fclose (f) != 0; | |
11911 | ||
11912 | ; | |
11913 | return 0; | |
11914 | } | |
11915 | _ACEOF | |
11916 | rm -f conftest$ac_exeext | |
11917 | if { (ac_try="$ac_link" | |
11918 | case "(($ac_try" in | |
11919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11920 | *) ac_try_echo=$ac_try;; | |
11921 | esac | |
11922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11923 | (eval "$ac_link") 2>&5 | |
11924 | ac_status=$? | |
11925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11926 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
11927 | { (case "(($ac_try" in | |
11928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11929 | *) ac_try_echo=$ac_try;; | |
11930 | esac | |
11931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11932 | (eval "$ac_try") 2>&5 | |
11933 | ac_status=$? | |
11934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11935 | (exit $ac_status); }; }; then | |
11936 | ac_cv_sizeof_int=`cat conftest.val` | |
11937 | else | |
11938 | echo "$as_me: program exited with status $ac_status" >&5 | |
11939 | echo "$as_me: failed program was:" >&5 | |
11940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11941 | ||
11942 | ( exit $ac_status ) | |
11943 | if test "$ac_cv_type_int" = yes; then | |
11944 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
11945 | See \`config.log' for more details." >&5 | |
11946 | echo "$as_me: error: cannot compute sizeof (int) | |
11947 | See \`config.log' for more details." >&2;} | |
11948 | { (exit 77); exit 77; }; } | |
11949 | else | |
11950 | ac_cv_sizeof_int=0 | |
11951 | fi | |
11952 | fi | |
11953 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11954 | fi | |
11955 | rm -f conftest.val | |
11956 | fi | |
11957 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
11958 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | |
11959 | ||
11960 | ||
11961 | ||
11962 | cat >>confdefs.h <<_ACEOF | |
11963 | #define SIZEOF_INT $ac_cv_sizeof_int | |
11964 | _ACEOF | |
11965 | ||
11966 | ||
11967 | { echo "$as_me:$LINENO: checking for long" >&5 | |
11968 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } | |
11969 | if test "${ac_cv_type_long+set}" = set; then | |
11970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11971 | else | |
11972 | cat >conftest.$ac_ext <<_ACEOF | |
11973 | /* confdefs.h. */ | |
11974 | _ACEOF | |
11975 | cat confdefs.h >>conftest.$ac_ext | |
11976 | cat >>conftest.$ac_ext <<_ACEOF | |
11977 | /* end confdefs.h. */ | |
11978 | $ac_includes_default | |
11979 | typedef long ac__type_new_; | |
11980 | int | |
11981 | main () | |
11982 | { | |
11983 | if ((ac__type_new_ *) 0) | |
11984 | return 0; | |
11985 | if (sizeof (ac__type_new_)) | |
11986 | return 0; | |
11987 | ; | |
11988 | return 0; | |
11989 | } | |
11990 | _ACEOF | |
11991 | rm -f conftest.$ac_objext | |
11992 | if { (ac_try="$ac_compile" | |
11993 | case "(($ac_try" in | |
11994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11995 | *) ac_try_echo=$ac_try;; | |
11996 | esac | |
11997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11998 | (eval "$ac_compile") 2>conftest.er1 | |
11999 | ac_status=$? | |
12000 | grep -v '^ *+' conftest.er1 >conftest.err | |
12001 | rm -f conftest.er1 | |
12002 | cat conftest.err >&5 | |
12003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12004 | (exit $ac_status); } && { | |
12005 | test -z "$ac_c_werror_flag" || | |
12006 | test ! -s conftest.err | |
12007 | } && test -s conftest.$ac_objext; then | |
12008 | ac_cv_type_long=yes | |
12009 | else | |
12010 | echo "$as_me: failed program was:" >&5 | |
12011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12012 | ||
12013 | ac_cv_type_long=no | |
12014 | fi | |
12015 | ||
12016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12017 | fi | |
12018 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
12019 | echo "${ECHO_T}$ac_cv_type_long" >&6; } | |
12020 | ||
12021 | # The cast to long int works around a bug in the HP C Compiler | |
12022 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12023 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12024 | # This bug is HP SR number 8606223364. | |
12025 | { echo "$as_me:$LINENO: checking size of long" >&5 | |
12026 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } | |
12027 | if test "${ac_cv_sizeof_long+set}" = set; then | |
12028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12029 | else | |
12030 | if test "$cross_compiling" = yes; then | |
12031 | # Depending upon the size, compute the lo and hi bounds. | |
12032 | cat >conftest.$ac_ext <<_ACEOF | |
12033 | /* confdefs.h. */ | |
12034 | _ACEOF | |
12035 | cat confdefs.h >>conftest.$ac_ext | |
12036 | cat >>conftest.$ac_ext <<_ACEOF | |
12037 | /* end confdefs.h. */ | |
12038 | $ac_includes_default | |
12039 | typedef long ac__type_sizeof_; | |
12040 | int | |
12041 | main () | |
12042 | { | |
12043 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
12044 | test_array [0] = 0 | |
12045 | ||
12046 | ; | |
12047 | return 0; | |
12048 | } | |
12049 | _ACEOF | |
12050 | rm -f conftest.$ac_objext | |
12051 | if { (ac_try="$ac_compile" | |
12052 | case "(($ac_try" in | |
12053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12054 | *) ac_try_echo=$ac_try;; | |
12055 | esac | |
12056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12057 | (eval "$ac_compile") 2>conftest.er1 | |
12058 | ac_status=$? | |
12059 | grep -v '^ *+' conftest.er1 >conftest.err | |
12060 | rm -f conftest.er1 | |
12061 | cat conftest.err >&5 | |
12062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12063 | (exit $ac_status); } && { | |
12064 | test -z "$ac_c_werror_flag" || | |
12065 | test ! -s conftest.err | |
12066 | } && test -s conftest.$ac_objext; then | |
12067 | ac_lo=0 ac_mid=0 | |
12068 | while :; do | |
12069 | cat >conftest.$ac_ext <<_ACEOF | |
12070 | /* confdefs.h. */ | |
12071 | _ACEOF | |
12072 | cat confdefs.h >>conftest.$ac_ext | |
12073 | cat >>conftest.$ac_ext <<_ACEOF | |
12074 | /* end confdefs.h. */ | |
12075 | $ac_includes_default | |
12076 | typedef long ac__type_sizeof_; | |
12077 | int | |
12078 | main () | |
12079 | { | |
12080 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
12081 | test_array [0] = 0 | |
12082 | ||
12083 | ; | |
12084 | return 0; | |
12085 | } | |
12086 | _ACEOF | |
12087 | rm -f conftest.$ac_objext | |
12088 | if { (ac_try="$ac_compile" | |
12089 | case "(($ac_try" in | |
12090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12091 | *) ac_try_echo=$ac_try;; | |
12092 | esac | |
12093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12094 | (eval "$ac_compile") 2>conftest.er1 | |
12095 | ac_status=$? | |
12096 | grep -v '^ *+' conftest.er1 >conftest.err | |
12097 | rm -f conftest.er1 | |
12098 | cat conftest.err >&5 | |
12099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12100 | (exit $ac_status); } && { | |
12101 | test -z "$ac_c_werror_flag" || | |
12102 | test ! -s conftest.err | |
12103 | } && test -s conftest.$ac_objext; then | |
12104 | ac_hi=$ac_mid; break | |
12105 | else | |
12106 | echo "$as_me: failed program was:" >&5 | |
12107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12108 | ||
12109 | ac_lo=`expr $ac_mid + 1` | |
12110 | if test $ac_lo -le $ac_mid; then | |
12111 | ac_lo= ac_hi= | |
12112 | break | |
12113 | fi | |
12114 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
12115 | fi | |
12116 | ||
12117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12118 | done | |
12119 | else | |
12120 | echo "$as_me: failed program was:" >&5 | |
12121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12122 | ||
12123 | cat >conftest.$ac_ext <<_ACEOF | |
12124 | /* confdefs.h. */ | |
12125 | _ACEOF | |
12126 | cat confdefs.h >>conftest.$ac_ext | |
12127 | cat >>conftest.$ac_ext <<_ACEOF | |
12128 | /* end confdefs.h. */ | |
12129 | $ac_includes_default | |
12130 | typedef long ac__type_sizeof_; | |
12131 | int | |
12132 | main () | |
12133 | { | |
12134 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
12135 | test_array [0] = 0 | |
12136 | ||
12137 | ; | |
12138 | return 0; | |
12139 | } | |
12140 | _ACEOF | |
12141 | rm -f conftest.$ac_objext | |
12142 | if { (ac_try="$ac_compile" | |
12143 | case "(($ac_try" in | |
12144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12145 | *) ac_try_echo=$ac_try;; | |
12146 | esac | |
12147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12148 | (eval "$ac_compile") 2>conftest.er1 | |
12149 | ac_status=$? | |
12150 | grep -v '^ *+' conftest.er1 >conftest.err | |
12151 | rm -f conftest.er1 | |
12152 | cat conftest.err >&5 | |
12153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12154 | (exit $ac_status); } && { | |
12155 | test -z "$ac_c_werror_flag" || | |
12156 | test ! -s conftest.err | |
12157 | } && test -s conftest.$ac_objext; then | |
12158 | ac_hi=-1 ac_mid=-1 | |
12159 | while :; do | |
12160 | cat >conftest.$ac_ext <<_ACEOF | |
12161 | /* confdefs.h. */ | |
12162 | _ACEOF | |
12163 | cat confdefs.h >>conftest.$ac_ext | |
12164 | cat >>conftest.$ac_ext <<_ACEOF | |
12165 | /* end confdefs.h. */ | |
12166 | $ac_includes_default | |
12167 | typedef long ac__type_sizeof_; | |
12168 | int | |
12169 | main () | |
12170 | { | |
12171 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
12172 | test_array [0] = 0 | |
12173 | ||
12174 | ; | |
12175 | return 0; | |
12176 | } | |
12177 | _ACEOF | |
12178 | rm -f conftest.$ac_objext | |
12179 | if { (ac_try="$ac_compile" | |
12180 | case "(($ac_try" in | |
12181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12182 | *) ac_try_echo=$ac_try;; | |
12183 | esac | |
12184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12185 | (eval "$ac_compile") 2>conftest.er1 | |
12186 | ac_status=$? | |
12187 | grep -v '^ *+' conftest.er1 >conftest.err | |
12188 | rm -f conftest.er1 | |
12189 | cat conftest.err >&5 | |
12190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12191 | (exit $ac_status); } && { | |
12192 | test -z "$ac_c_werror_flag" || | |
12193 | test ! -s conftest.err | |
12194 | } && test -s conftest.$ac_objext; then | |
12195 | ac_lo=$ac_mid; break | |
12196 | else | |
12197 | echo "$as_me: failed program was:" >&5 | |
12198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12199 | ||
12200 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
12201 | if test $ac_mid -le $ac_hi; then | |
12202 | ac_lo= ac_hi= | |
12203 | break | |
12204 | fi | |
12205 | ac_mid=`expr 2 '*' $ac_mid` | |
12206 | fi | |
12207 | ||
12208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12209 | done | |
12210 | else | |
12211 | echo "$as_me: failed program was:" >&5 | |
12212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12213 | ||
12214 | ac_lo= ac_hi= | |
12215 | fi | |
12216 | ||
12217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12218 | fi | |
12219 | ||
12220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12221 | # Binary search between lo and hi bounds. | |
12222 | while test "x$ac_lo" != "x$ac_hi"; do | |
12223 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
12224 | cat >conftest.$ac_ext <<_ACEOF | |
12225 | /* confdefs.h. */ | |
12226 | _ACEOF | |
12227 | cat confdefs.h >>conftest.$ac_ext | |
12228 | cat >>conftest.$ac_ext <<_ACEOF | |
12229 | /* end confdefs.h. */ | |
12230 | $ac_includes_default | |
12231 | typedef long ac__type_sizeof_; | |
12232 | int | |
12233 | main () | |
12234 | { | |
12235 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
12236 | test_array [0] = 0 | |
12237 | ||
12238 | ; | |
12239 | return 0; | |
12240 | } | |
12241 | _ACEOF | |
12242 | rm -f conftest.$ac_objext | |
12243 | if { (ac_try="$ac_compile" | |
12244 | case "(($ac_try" in | |
12245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12246 | *) ac_try_echo=$ac_try;; | |
12247 | esac | |
12248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12249 | (eval "$ac_compile") 2>conftest.er1 | |
12250 | ac_status=$? | |
12251 | grep -v '^ *+' conftest.er1 >conftest.err | |
12252 | rm -f conftest.er1 | |
12253 | cat conftest.err >&5 | |
12254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12255 | (exit $ac_status); } && { | |
12256 | test -z "$ac_c_werror_flag" || | |
12257 | test ! -s conftest.err | |
12258 | } && test -s conftest.$ac_objext; then | |
12259 | ac_hi=$ac_mid | |
12260 | else | |
12261 | echo "$as_me: failed program was:" >&5 | |
12262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12263 | ||
12264 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
12265 | fi | |
12266 | ||
12267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12268 | done | |
12269 | case $ac_lo in | |
12270 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
12271 | '') if test "$ac_cv_type_long" = yes; then | |
12272 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
12273 | See \`config.log' for more details." >&5 | |
12274 | echo "$as_me: error: cannot compute sizeof (long) | |
12275 | See \`config.log' for more details." >&2;} | |
12276 | { (exit 77); exit 77; }; } | |
12277 | else | |
12278 | ac_cv_sizeof_long=0 | |
12279 | fi ;; | |
12280 | esac | |
12281 | else | |
12282 | cat >conftest.$ac_ext <<_ACEOF | |
12283 | /* confdefs.h. */ | |
12284 | _ACEOF | |
12285 | cat confdefs.h >>conftest.$ac_ext | |
12286 | cat >>conftest.$ac_ext <<_ACEOF | |
12287 | /* end confdefs.h. */ | |
12288 | $ac_includes_default | |
12289 | typedef long ac__type_sizeof_; | |
12290 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
12291 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
12292 | #include <stdio.h> | |
12293 | #include <stdlib.h> | |
12294 | int | |
12295 | main () | |
12296 | { | |
12297 | ||
12298 | FILE *f = fopen ("conftest.val", "w"); | |
12299 | if (! f) | |
12300 | return 1; | |
12301 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
12302 | { | |
12303 | long int i = longval (); | |
12304 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
12305 | return 1; | |
12306 | fprintf (f, "%ld\n", i); | |
12307 | } | |
12308 | else | |
12309 | { | |
12310 | unsigned long int i = ulongval (); | |
12311 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
12312 | return 1; | |
12313 | fprintf (f, "%lu\n", i); | |
12314 | } | |
12315 | return ferror (f) || fclose (f) != 0; | |
12316 | ||
12317 | ; | |
12318 | return 0; | |
12319 | } | |
12320 | _ACEOF | |
12321 | rm -f conftest$ac_exeext | |
12322 | if { (ac_try="$ac_link" | |
12323 | case "(($ac_try" in | |
12324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12325 | *) ac_try_echo=$ac_try;; | |
12326 | esac | |
12327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12328 | (eval "$ac_link") 2>&5 | |
12329 | ac_status=$? | |
12330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12331 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12332 | { (case "(($ac_try" in | |
12333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12334 | *) ac_try_echo=$ac_try;; | |
12335 | esac | |
12336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12337 | (eval "$ac_try") 2>&5 | |
12338 | ac_status=$? | |
12339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12340 | (exit $ac_status); }; }; then | |
12341 | ac_cv_sizeof_long=`cat conftest.val` | |
12342 | else | |
12343 | echo "$as_me: program exited with status $ac_status" >&5 | |
12344 | echo "$as_me: failed program was:" >&5 | |
12345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12346 | ||
12347 | ( exit $ac_status ) | |
12348 | if test "$ac_cv_type_long" = yes; then | |
12349 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
12350 | See \`config.log' for more details." >&5 | |
12351 | echo "$as_me: error: cannot compute sizeof (long) | |
12352 | See \`config.log' for more details." >&2;} | |
12353 | { (exit 77); exit 77; }; } | |
12354 | else | |
12355 | ac_cv_sizeof_long=0 | |
12356 | fi | |
12357 | fi | |
12358 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12359 | fi | |
12360 | rm -f conftest.val | |
12361 | fi | |
12362 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
12363 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } | |
12364 | ||
12365 | ||
12366 | ||
12367 | cat >>confdefs.h <<_ACEOF | |
12368 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12369 | _ACEOF | |
12370 | ||
12371 | ||
12372 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
12373 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
12374 | if test "${ac_cv_header_time+set}" = set; then | |
12375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12376 | else | |
12377 | cat >conftest.$ac_ext <<_ACEOF | |
12378 | /* confdefs.h. */ | |
12379 | _ACEOF | |
12380 | cat confdefs.h >>conftest.$ac_ext | |
12381 | cat >>conftest.$ac_ext <<_ACEOF | |
12382 | /* end confdefs.h. */ | |
12383 | #include <sys/types.h> | |
12384 | #include <sys/time.h> | |
12385 | #include <time.h> | |
12386 | ||
12387 | int | |
12388 | main () | |
12389 | { | |
12390 | if ((struct tm *) 0) | |
12391 | return 0; | |
12392 | ; | |
12393 | return 0; | |
12394 | } | |
12395 | _ACEOF | |
12396 | rm -f conftest.$ac_objext | |
12397 | if { (ac_try="$ac_compile" | |
12398 | case "(($ac_try" in | |
12399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12400 | *) ac_try_echo=$ac_try;; | |
12401 | esac | |
12402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12403 | (eval "$ac_compile") 2>conftest.er1 | |
12404 | ac_status=$? | |
12405 | grep -v '^ *+' conftest.er1 >conftest.err | |
12406 | rm -f conftest.er1 | |
12407 | cat conftest.err >&5 | |
12408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12409 | (exit $ac_status); } && { | |
12410 | test -z "$ac_c_werror_flag" || | |
12411 | test ! -s conftest.err | |
12412 | } && test -s conftest.$ac_objext; then | |
12413 | ac_cv_header_time=yes | |
12414 | else | |
12415 | echo "$as_me: failed program was:" >&5 | |
12416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12417 | ||
12418 | ac_cv_header_time=no | |
12419 | fi | |
12420 | ||
12421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12422 | fi | |
12423 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
12424 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
12425 | if test $ac_cv_header_time = yes; then | |
12426 | ||
12427 | cat >>confdefs.h <<\_ACEOF | |
12428 | #define TIME_WITH_SYS_TIME 1 | |
12429 | _ACEOF | |
12430 | ||
12431 | fi | |
12432 | ||
12433 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | |
12434 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
12435 | if test "${ac_cv_struct_tm+set}" = set; then | |
12436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12437 | else | |
12438 | cat >conftest.$ac_ext <<_ACEOF | |
12439 | /* confdefs.h. */ | |
12440 | _ACEOF | |
12441 | cat confdefs.h >>conftest.$ac_ext | |
12442 | cat >>conftest.$ac_ext <<_ACEOF | |
12443 | /* end confdefs.h. */ | |
12444 | #include <sys/types.h> | |
12445 | #include <time.h> | |
12446 | ||
12447 | int | |
12448 | main () | |
12449 | { | |
12450 | struct tm tm; | |
12451 | int *p = &tm.tm_sec; | |
12452 | return !p; | |
12453 | ; | |
12454 | return 0; | |
12455 | } | |
12456 | _ACEOF | |
12457 | rm -f conftest.$ac_objext | |
12458 | if { (ac_try="$ac_compile" | |
12459 | case "(($ac_try" in | |
12460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12461 | *) ac_try_echo=$ac_try;; | |
12462 | esac | |
12463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12464 | (eval "$ac_compile") 2>conftest.er1 | |
12465 | ac_status=$? | |
12466 | grep -v '^ *+' conftest.er1 >conftest.err | |
12467 | rm -f conftest.er1 | |
12468 | cat conftest.err >&5 | |
12469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12470 | (exit $ac_status); } && { | |
12471 | test -z "$ac_c_werror_flag" || | |
12472 | test ! -s conftest.err | |
12473 | } && test -s conftest.$ac_objext; then | |
12474 | ac_cv_struct_tm=time.h | |
12475 | else | |
12476 | echo "$as_me: failed program was:" >&5 | |
12477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12478 | ||
12479 | ac_cv_struct_tm=sys/time.h | |
12480 | fi | |
12481 | ||
12482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12483 | fi | |
12484 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
12485 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
12486 | if test $ac_cv_struct_tm = sys/time.h; then | |
12487 | ||
12488 | cat >>confdefs.h <<\_ACEOF | |
12489 | #define TM_IN_SYS_TIME 1 | |
12490 | _ACEOF | |
12491 | ||
12492 | fi | |
12493 | ||
12494 | { echo "$as_me:$LINENO: checking for int8" >&5 | |
12495 | echo $ECHO_N "checking for int8... $ECHO_C" >&6; } | |
12496 | if test "${ac_cv_type_int8+set}" = set; then | |
12497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12498 | else | |
12499 | cat >conftest.$ac_ext <<_ACEOF | |
12500 | /* confdefs.h. */ | |
12501 | _ACEOF | |
12502 | cat confdefs.h >>conftest.$ac_ext | |
12503 | cat >>conftest.$ac_ext <<_ACEOF | |
12504 | /* end confdefs.h. */ | |
12505 | ||
12506 | #if HAVE_INTTYPES_H | |
12507 | # include <inttypes.h> | |
12508 | #endif | |
12509 | ||
12510 | ||
12511 | typedef int8 ac__type_new_; | |
12512 | int | |
12513 | main () | |
12514 | { | |
12515 | if ((ac__type_new_ *) 0) | |
12516 | return 0; | |
12517 | if (sizeof (ac__type_new_)) | |
12518 | return 0; | |
12519 | ; | |
12520 | return 0; | |
12521 | } | |
12522 | _ACEOF | |
12523 | rm -f conftest.$ac_objext | |
12524 | if { (ac_try="$ac_compile" | |
12525 | case "(($ac_try" in | |
12526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12527 | *) ac_try_echo=$ac_try;; | |
12528 | esac | |
12529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12530 | (eval "$ac_compile") 2>conftest.er1 | |
12531 | ac_status=$? | |
12532 | grep -v '^ *+' conftest.er1 >conftest.err | |
12533 | rm -f conftest.er1 | |
12534 | cat conftest.err >&5 | |
12535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12536 | (exit $ac_status); } && { | |
12537 | test -z "$ac_c_werror_flag" || | |
12538 | test ! -s conftest.err | |
12539 | } && test -s conftest.$ac_objext; then | |
12540 | ac_cv_type_int8=yes | |
12541 | else | |
12542 | echo "$as_me: failed program was:" >&5 | |
12543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12544 | ||
12545 | ac_cv_type_int8=no | |
12546 | fi | |
12547 | ||
12548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12549 | fi | |
12550 | { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5 | |
12551 | echo "${ECHO_T}$ac_cv_type_int8" >&6; } | |
12552 | if test $ac_cv_type_int8 = yes; then | |
12553 | ||
12554 | cat >>confdefs.h <<_ACEOF | |
12555 | #define HAVE_INT8 1 | |
12556 | _ACEOF | |
12557 | ||
12558 | ||
12559 | fi | |
12560 | { echo "$as_me:$LINENO: checking for int16" >&5 | |
12561 | echo $ECHO_N "checking for int16... $ECHO_C" >&6; } | |
12562 | if test "${ac_cv_type_int16+set}" = set; then | |
12563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12564 | else | |
12565 | cat >conftest.$ac_ext <<_ACEOF | |
12566 | /* confdefs.h. */ | |
12567 | _ACEOF | |
12568 | cat confdefs.h >>conftest.$ac_ext | |
12569 | cat >>conftest.$ac_ext <<_ACEOF | |
12570 | /* end confdefs.h. */ | |
12571 | ||
12572 | #if HAVE_INTTYPES_H | |
12573 | # include <inttypes.h> | |
12574 | #endif | |
12575 | ||
12576 | ||
12577 | typedef int16 ac__type_new_; | |
12578 | int | |
12579 | main () | |
12580 | { | |
12581 | if ((ac__type_new_ *) 0) | |
12582 | return 0; | |
12583 | if (sizeof (ac__type_new_)) | |
12584 | return 0; | |
12585 | ; | |
12586 | return 0; | |
12587 | } | |
12588 | _ACEOF | |
12589 | rm -f conftest.$ac_objext | |
12590 | if { (ac_try="$ac_compile" | |
12591 | case "(($ac_try" in | |
12592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12593 | *) ac_try_echo=$ac_try;; | |
12594 | esac | |
12595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12596 | (eval "$ac_compile") 2>conftest.er1 | |
12597 | ac_status=$? | |
12598 | grep -v '^ *+' conftest.er1 >conftest.err | |
12599 | rm -f conftest.er1 | |
12600 | cat conftest.err >&5 | |
12601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12602 | (exit $ac_status); } && { | |
12603 | test -z "$ac_c_werror_flag" || | |
12604 | test ! -s conftest.err | |
12605 | } && test -s conftest.$ac_objext; then | |
12606 | ac_cv_type_int16=yes | |
12607 | else | |
12608 | echo "$as_me: failed program was:" >&5 | |
12609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12610 | ||
12611 | ac_cv_type_int16=no | |
12612 | fi | |
12613 | ||
12614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12615 | fi | |
12616 | { echo "$as_me:$LINENO: result: $ac_cv_type_int16" >&5 | |
12617 | echo "${ECHO_T}$ac_cv_type_int16" >&6; } | |
12618 | if test $ac_cv_type_int16 = yes; then | |
12619 | ||
12620 | cat >>confdefs.h <<_ACEOF | |
12621 | #define HAVE_INT16 1 | |
12622 | _ACEOF | |
12623 | ||
12624 | ||
12625 | fi | |
12626 | { echo "$as_me:$LINENO: checking for int32" >&5 | |
12627 | echo $ECHO_N "checking for int32... $ECHO_C" >&6; } | |
12628 | if test "${ac_cv_type_int32+set}" = set; then | |
12629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12630 | else | |
12631 | cat >conftest.$ac_ext <<_ACEOF | |
12632 | /* confdefs.h. */ | |
12633 | _ACEOF | |
12634 | cat confdefs.h >>conftest.$ac_ext | |
12635 | cat >>conftest.$ac_ext <<_ACEOF | |
12636 | /* end confdefs.h. */ | |
12637 | ||
12638 | #if HAVE_INTTYPES_H | |
12639 | # include <inttypes.h> | |
12640 | #endif | |
12641 | ||
12642 | ||
12643 | typedef int32 ac__type_new_; | |
12644 | int | |
12645 | main () | |
12646 | { | |
12647 | if ((ac__type_new_ *) 0) | |
12648 | return 0; | |
12649 | if (sizeof (ac__type_new_)) | |
12650 | return 0; | |
12651 | ; | |
12652 | return 0; | |
12653 | } | |
12654 | _ACEOF | |
12655 | rm -f conftest.$ac_objext | |
12656 | if { (ac_try="$ac_compile" | |
12657 | case "(($ac_try" in | |
12658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12659 | *) ac_try_echo=$ac_try;; | |
12660 | esac | |
12661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12662 | (eval "$ac_compile") 2>conftest.er1 | |
12663 | ac_status=$? | |
12664 | grep -v '^ *+' conftest.er1 >conftest.err | |
12665 | rm -f conftest.er1 | |
12666 | cat conftest.err >&5 | |
12667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12668 | (exit $ac_status); } && { | |
12669 | test -z "$ac_c_werror_flag" || | |
12670 | test ! -s conftest.err | |
12671 | } && test -s conftest.$ac_objext; then | |
12672 | ac_cv_type_int32=yes | |
12673 | else | |
12674 | echo "$as_me: failed program was:" >&5 | |
12675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12676 | ||
12677 | ac_cv_type_int32=no | |
12678 | fi | |
12679 | ||
12680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12681 | fi | |
12682 | { echo "$as_me:$LINENO: result: $ac_cv_type_int32" >&5 | |
12683 | echo "${ECHO_T}$ac_cv_type_int32" >&6; } | |
12684 | if test $ac_cv_type_int32 = yes; then | |
12685 | ||
12686 | cat >>confdefs.h <<_ACEOF | |
12687 | #define HAVE_INT32 1 | |
12688 | _ACEOF | |
12689 | ||
12690 | ||
12691 | fi | |
12692 | ||
12693 | ||
12694 | ||
12695 | ||
12696 | ||
12697 | ||
12698 | ||
12699 | ||
12700 | ||
12701 | ||
12702 | ||
12703 | ||
12704 | ||
12705 | for ac_func in floor isascii memmove memset mmap pow sqrt strchr strrchr strstr strtol | |
12706 | do | |
12707 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12708 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12709 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
12710 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12712 | else | |
12713 | cat >conftest.$ac_ext <<_ACEOF | |
12714 | /* confdefs.h. */ | |
12715 | _ACEOF | |
12716 | cat confdefs.h >>conftest.$ac_ext | |
12717 | cat >>conftest.$ac_ext <<_ACEOF | |
12718 | /* end confdefs.h. */ | |
12719 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12720 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12721 | #define $ac_func innocuous_$ac_func | |
12722 | ||
12723 | /* System header to define __stub macros and hopefully few prototypes, | |
12724 | which can conflict with char $ac_func (); below. | |
12725 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12726 | <limits.h> exists even on freestanding compilers. */ | |
12727 | ||
12728 | #ifdef __STDC__ | |
12729 | # include <limits.h> | |
12730 | #else | |
12731 | # include <assert.h> | |
12732 | #endif | |
12733 | ||
12734 | #undef $ac_func | |
12735 | ||
12736 | /* Override any GCC internal prototype to avoid an error. | |
12737 | Use char because int might match the return type of a GCC | |
12738 | builtin and then its argument prototype would still apply. */ | |
12739 | #ifdef __cplusplus | |
12740 | extern "C" | |
12741 | #endif | |
12742 | char $ac_func (); | |
12743 | /* The GNU C library defines this for functions which it implements | |
12744 | to always fail with ENOSYS. Some functions are actually named | |
12745 | something starting with __ and the normal name is an alias. */ | |
12746 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
12747 | choke me | |
12748 | #endif | |
12749 | ||
12750 | int | |
12751 | main () | |
12752 | { | |
12753 | return $ac_func (); | |
12754 | ; | |
12755 | return 0; | |
12756 | } | |
12757 | _ACEOF | |
12758 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12759 | if { (ac_try="$ac_link" | |
12760 | case "(($ac_try" in | |
12761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12762 | *) ac_try_echo=$ac_try;; | |
12763 | esac | |
12764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12765 | (eval "$ac_link") 2>conftest.er1 | |
12766 | ac_status=$? | |
12767 | grep -v '^ *+' conftest.er1 >conftest.err | |
12768 | rm -f conftest.er1 | |
12769 | cat conftest.err >&5 | |
12770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12771 | (exit $ac_status); } && { | |
12772 | test -z "$ac_c_werror_flag" || | |
12773 | test ! -s conftest.err | |
12774 | } && test -s conftest$ac_exeext && | |
12775 | $as_test_x conftest$ac_exeext; then | |
12776 | eval "$as_ac_var=yes" | |
12777 | else | |
12778 | echo "$as_me: failed program was:" >&5 | |
12779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12780 | ||
12781 | eval "$as_ac_var=no" | |
12782 | fi | |
12783 | ||
12784 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12785 | conftest$ac_exeext conftest.$ac_ext | |
12786 | fi | |
12787 | ac_res=`eval echo '${'$as_ac_var'}'` | |
12788 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12789 | echo "${ECHO_T}$ac_res" >&6; } | |
12790 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
12791 | cat >>confdefs.h <<_ACEOF | |
12792 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12793 | _ACEOF | |
12794 | ||
12795 | fi | |
12796 | done | |
12797 | ||
12798 | ||
12799 | ||
12800 | for ac_func in getopt | |
12801 | do | |
12802 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12803 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12804 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
12805 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12807 | else | |
12808 | cat >conftest.$ac_ext <<_ACEOF | |
12809 | /* confdefs.h. */ | |
12810 | _ACEOF | |
12811 | cat confdefs.h >>conftest.$ac_ext | |
12812 | cat >>conftest.$ac_ext <<_ACEOF | |
12813 | /* end confdefs.h. */ | |
12814 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12815 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12816 | #define $ac_func innocuous_$ac_func | |
12817 | ||
12818 | /* System header to define __stub macros and hopefully few prototypes, | |
12819 | which can conflict with char $ac_func (); below. | |
12820 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12821 | <limits.h> exists even on freestanding compilers. */ | |
12822 | ||
12823 | #ifdef __STDC__ | |
12824 | # include <limits.h> | |
12825 | #else | |
12826 | # include <assert.h> | |
12827 | #endif | |
12828 | ||
12829 | #undef $ac_func | |
12830 | ||
12831 | /* Override any GCC internal prototype to avoid an error. | |
12832 | Use char because int might match the return type of a GCC | |
12833 | builtin and then its argument prototype would still apply. */ | |
12834 | #ifdef __cplusplus | |
12835 | extern "C" | |
12836 | #endif | |
12837 | char $ac_func (); | |
12838 | /* The GNU C library defines this for functions which it implements | |
12839 | to always fail with ENOSYS. Some functions are actually named | |
12840 | something starting with __ and the normal name is an alias. */ | |
12841 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
12842 | choke me | |
12843 | #endif | |
12844 | ||
12845 | int | |
12846 | main () | |
12847 | { | |
12848 | return $ac_func (); | |
12849 | ; | |
12850 | return 0; | |
12851 | } | |
12852 | _ACEOF | |
12853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12854 | if { (ac_try="$ac_link" | |
12855 | case "(($ac_try" in | |
12856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12857 | *) ac_try_echo=$ac_try;; | |
12858 | esac | |
12859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12860 | (eval "$ac_link") 2>conftest.er1 | |
12861 | ac_status=$? | |
12862 | grep -v '^ *+' conftest.er1 >conftest.err | |
12863 | rm -f conftest.er1 | |
12864 | cat conftest.err >&5 | |
12865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12866 | (exit $ac_status); } && { | |
12867 | test -z "$ac_c_werror_flag" || | |
12868 | test ! -s conftest.err | |
12869 | } && test -s conftest$ac_exeext && | |
12870 | $as_test_x conftest$ac_exeext; then | |
12871 | eval "$as_ac_var=yes" | |
12872 | else | |
12873 | echo "$as_me: failed program was:" >&5 | |
12874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12875 | ||
12876 | eval "$as_ac_var=no" | |
12877 | fi | |
12878 | ||
12879 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12880 | conftest$ac_exeext conftest.$ac_ext | |
12881 | fi | |
12882 | ac_res=`eval echo '${'$as_ac_var'}'` | |
12883 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12884 | echo "${ECHO_T}$ac_res" >&6; } | |
12885 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
12886 | cat >>confdefs.h <<_ACEOF | |
12887 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12888 | _ACEOF | |
12889 | ||
12890 | else | |
12891 | case " $LIBOBJS " in | |
12892 | *" $ac_func.$ac_objext "* ) ;; | |
12893 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
12894 | ;; | |
12895 | esac | |
12896 | ||
12897 | fi | |
12898 | done | |
12899 | ||
12900 | ||
12901 | ||
12902 | for ac_func in strcasecmp | |
12903 | do | |
12904 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12905 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12906 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
12907 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12909 | else | |
12910 | cat >conftest.$ac_ext <<_ACEOF | |
12911 | /* confdefs.h. */ | |
12912 | _ACEOF | |
12913 | cat confdefs.h >>conftest.$ac_ext | |
12914 | cat >>conftest.$ac_ext <<_ACEOF | |
12915 | /* end confdefs.h. */ | |
12916 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12917 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12918 | #define $ac_func innocuous_$ac_func | |
12919 | ||
12920 | /* System header to define __stub macros and hopefully few prototypes, | |
12921 | which can conflict with char $ac_func (); below. | |
12922 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12923 | <limits.h> exists even on freestanding compilers. */ | |
12924 | ||
12925 | #ifdef __STDC__ | |
12926 | # include <limits.h> | |
12927 | #else | |
12928 | # include <assert.h> | |
12929 | #endif | |
12930 | ||
12931 | #undef $ac_func | |
12932 | ||
12933 | /* Override any GCC internal prototype to avoid an error. | |
12934 | Use char because int might match the return type of a GCC | |
12935 | builtin and then its argument prototype would still apply. */ | |
12936 | #ifdef __cplusplus | |
12937 | extern "C" | |
12938 | #endif | |
12939 | char $ac_func (); | |
12940 | /* The GNU C library defines this for functions which it implements | |
12941 | to always fail with ENOSYS. Some functions are actually named | |
12942 | something starting with __ and the normal name is an alias. */ | |
12943 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
12944 | choke me | |
12945 | #endif | |
12946 | ||
12947 | int | |
12948 | main () | |
12949 | { | |
12950 | return $ac_func (); | |
12951 | ; | |
12952 | return 0; | |
12953 | } | |
12954 | _ACEOF | |
12955 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12956 | if { (ac_try="$ac_link" | |
12957 | case "(($ac_try" in | |
12958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12959 | *) ac_try_echo=$ac_try;; | |
12960 | esac | |
12961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12962 | (eval "$ac_link") 2>conftest.er1 | |
12963 | ac_status=$? | |
12964 | grep -v '^ *+' conftest.er1 >conftest.err | |
12965 | rm -f conftest.er1 | |
12966 | cat conftest.err >&5 | |
12967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12968 | (exit $ac_status); } && { | |
12969 | test -z "$ac_c_werror_flag" || | |
12970 | test ! -s conftest.err | |
12971 | } && test -s conftest$ac_exeext && | |
12972 | $as_test_x conftest$ac_exeext; then | |
12973 | eval "$as_ac_var=yes" | |
12974 | else | |
12975 | echo "$as_me: failed program was:" >&5 | |
12976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12977 | ||
12978 | eval "$as_ac_var=no" | |
12979 | fi | |
12980 | ||
12981 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12982 | conftest$ac_exeext conftest.$ac_ext | |
12983 | fi | |
12984 | ac_res=`eval echo '${'$as_ac_var'}'` | |
12985 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12986 | echo "${ECHO_T}$ac_res" >&6; } | |
12987 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
12988 | cat >>confdefs.h <<_ACEOF | |
12989 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12990 | _ACEOF | |
12991 | ||
12992 | else | |
12993 | case " $LIBOBJS " in | |
12994 | *" $ac_func.$ac_objext "* ) ;; | |
12995 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
12996 | ;; | |
12997 | esac | |
12998 | ||
12999 | fi | |
13000 | done | |
13001 | ||
13002 | ||
13003 | ||
13004 | for ac_func in strtoul | |
13005 | do | |
13006 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13007 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13008 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
13009 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
13010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13011 | else | |
13012 | cat >conftest.$ac_ext <<_ACEOF | |
13013 | /* confdefs.h. */ | |
13014 | _ACEOF | |
13015 | cat confdefs.h >>conftest.$ac_ext | |
13016 | cat >>conftest.$ac_ext <<_ACEOF | |
13017 | /* end confdefs.h. */ | |
13018 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13019 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13020 | #define $ac_func innocuous_$ac_func | |
13021 | ||
13022 | /* System header to define __stub macros and hopefully few prototypes, | |
13023 | which can conflict with char $ac_func (); below. | |
13024 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13025 | <limits.h> exists even on freestanding compilers. */ | |
13026 | ||
13027 | #ifdef __STDC__ | |
13028 | # include <limits.h> | |
13029 | #else | |
13030 | # include <assert.h> | |
13031 | #endif | |
13032 | ||
13033 | #undef $ac_func | |
13034 | ||
13035 | /* Override any GCC internal prototype to avoid an error. | |
13036 | Use char because int might match the return type of a GCC | |
13037 | builtin and then its argument prototype would still apply. */ | |
13038 | #ifdef __cplusplus | |
13039 | extern "C" | |
13040 | #endif | |
13041 | char $ac_func (); | |
13042 | /* The GNU C library defines this for functions which it implements | |
13043 | to always fail with ENOSYS. Some functions are actually named | |
13044 | something starting with __ and the normal name is an alias. */ | |
13045 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
13046 | choke me | |
13047 | #endif | |
13048 | ||
13049 | int | |
13050 | main () | |
13051 | { | |
13052 | return $ac_func (); | |
13053 | ; | |
13054 | return 0; | |
13055 | } | |
13056 | _ACEOF | |
13057 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13058 | if { (ac_try="$ac_link" | |
13059 | case "(($ac_try" in | |
13060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13061 | *) ac_try_echo=$ac_try;; | |
13062 | esac | |
13063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13064 | (eval "$ac_link") 2>conftest.er1 | |
13065 | ac_status=$? | |
13066 | grep -v '^ *+' conftest.er1 >conftest.err | |
13067 | rm -f conftest.er1 | |
13068 | cat conftest.err >&5 | |
13069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13070 | (exit $ac_status); } && { | |
13071 | test -z "$ac_c_werror_flag" || | |
13072 | test ! -s conftest.err | |
13073 | } && test -s conftest$ac_exeext && | |
13074 | $as_test_x conftest$ac_exeext; then | |
13075 | eval "$as_ac_var=yes" | |
13076 | else | |
13077 | echo "$as_me: failed program was:" >&5 | |
13078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13079 | ||
13080 | eval "$as_ac_var=no" | |
13081 | fi | |
13082 | ||
13083 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13084 | conftest$ac_exeext conftest.$ac_ext | |
13085 | fi | |
13086 | ac_res=`eval echo '${'$as_ac_var'}'` | |
13087 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13088 | echo "${ECHO_T}$ac_res" >&6; } | |
13089 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13090 | cat >>confdefs.h <<_ACEOF | |
13091 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13092 | _ACEOF | |
13093 | ||
13094 | else | |
13095 | case " $LIBOBJS " in | |
13096 | *" $ac_func.$ac_objext "* ) ;; | |
13097 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
13098 | ;; | |
13099 | esac | |
13100 | ||
13101 | fi | |
13102 | done | |
13103 | ||
13104 | ||
13105 | ||
13106 | for ac_func in lfind | |
13107 | do | |
13108 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13109 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13110 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
13111 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
13112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13113 | else | |
13114 | cat >conftest.$ac_ext <<_ACEOF | |
13115 | /* confdefs.h. */ | |
13116 | _ACEOF | |
13117 | cat confdefs.h >>conftest.$ac_ext | |
13118 | cat >>conftest.$ac_ext <<_ACEOF | |
13119 | /* end confdefs.h. */ | |
13120 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13121 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13122 | #define $ac_func innocuous_$ac_func | |
13123 | ||
13124 | /* System header to define __stub macros and hopefully few prototypes, | |
13125 | which can conflict with char $ac_func (); below. | |
13126 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13127 | <limits.h> exists even on freestanding compilers. */ | |
13128 | ||
13129 | #ifdef __STDC__ | |
13130 | # include <limits.h> | |
13131 | #else | |
13132 | # include <assert.h> | |
13133 | #endif | |
13134 | ||
13135 | #undef $ac_func | |
13136 | ||
13137 | /* Override any GCC internal prototype to avoid an error. | |
13138 | Use char because int might match the return type of a GCC | |
13139 | builtin and then its argument prototype would still apply. */ | |
13140 | #ifdef __cplusplus | |
13141 | extern "C" | |
13142 | #endif | |
13143 | char $ac_func (); | |
13144 | /* The GNU C library defines this for functions which it implements | |
13145 | to always fail with ENOSYS. Some functions are actually named | |
13146 | something starting with __ and the normal name is an alias. */ | |
13147 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
13148 | choke me | |
13149 | #endif | |
13150 | ||
13151 | int | |
13152 | main () | |
13153 | { | |
13154 | return $ac_func (); | |
13155 | ; | |
13156 | return 0; | |
13157 | } | |
13158 | _ACEOF | |
13159 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13160 | if { (ac_try="$ac_link" | |
13161 | case "(($ac_try" in | |
13162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13163 | *) ac_try_echo=$ac_try;; | |
13164 | esac | |
13165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13166 | (eval "$ac_link") 2>conftest.er1 | |
13167 | ac_status=$? | |
13168 | grep -v '^ *+' conftest.er1 >conftest.err | |
13169 | rm -f conftest.er1 | |
13170 | cat conftest.err >&5 | |
13171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13172 | (exit $ac_status); } && { | |
13173 | test -z "$ac_c_werror_flag" || | |
13174 | test ! -s conftest.err | |
13175 | } && test -s conftest$ac_exeext && | |
13176 | $as_test_x conftest$ac_exeext; then | |
13177 | eval "$as_ac_var=yes" | |
13178 | else | |
13179 | echo "$as_me: failed program was:" >&5 | |
13180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13181 | ||
13182 | eval "$as_ac_var=no" | |
13183 | fi | |
13184 | ||
13185 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13186 | conftest$ac_exeext conftest.$ac_ext | |
13187 | fi | |
13188 | ac_res=`eval echo '${'$as_ac_var'}'` | |
13189 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13190 | echo "${ECHO_T}$ac_res" >&6; } | |
13191 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13192 | cat >>confdefs.h <<_ACEOF | |
13193 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13194 | _ACEOF | |
13195 | ||
13196 | else | |
13197 | case " $LIBOBJS " in | |
13198 | *" $ac_func.$ac_objext "* ) ;; | |
13199 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
13200 | ;; | |
13201 | esac | |
13202 | ||
13203 | fi | |
13204 | done | |
13205 | ||
13206 | ||
13207 | ||
13208 | { echo "$as_me:$LINENO: checking native cpu bit order" >&5 | |
13209 | echo $ECHO_N "checking native cpu bit order... $ECHO_C" >&6; } | |
13210 | case "$target_cpu" in | |
13211 | i*86*) | |
13212 | HOST_FILLORDER=FILLORDER_LSB2MSB | |
13213 | { echo "$as_me:$LINENO: result: lsb2msb" >&5 | |
13214 | echo "${ECHO_T}lsb2msb" >&6; } | |
13215 | ;; | |
13216 | *) | |
13217 | HOST_FILLORDER=FILLORDER_MSB2LSB | |
13218 | { echo "$as_me:$LINENO: result: msb2lsb" >&5 | |
13219 | echo "${ECHO_T}msb2lsb" >&6; } | |
13220 | ;; | |
13221 | esac | |
13222 | ||
13223 | cat >>confdefs.h <<_ACEOF | |
13224 | #define HOST_FILLORDER $HOST_FILLORDER | |
13225 | _ACEOF | |
13226 | ||
13227 | ||
13228 | if test "$ac_cv_c_bigendian" = yes ; then | |
13229 | HOST_BIGENDIAN=1 | |
13230 | else | |
13231 | HOST_BIGENDIAN=0 | |
13232 | fi | |
13233 | ||
13234 | cat >>confdefs.h <<_ACEOF | |
13235 | #define HOST_BIGENDIAN $HOST_BIGENDIAN | |
13236 | _ACEOF | |
13237 | ||
13238 | ||
13239 | #_POSIX_C_SOURCE=2 | |
13240 | #AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.]) | |
13241 | ||
13242 | HAVE_IEEEFP=1 | |
13243 | ||
13244 | cat >>confdefs.h <<_ACEOF | |
13245 | #define HAVE_IEEEFP $HAVE_IEEEFP | |
13246 | _ACEOF | |
13247 | ||
13248 | ||
13249 | ||
13250 | # Check whether --enable-rpath was given. | |
13251 | if test "${enable_rpath+set}" = set; then | |
13252 | enableval=$enable_rpath; HAVE_RPATH=$enableval | |
13253 | else | |
13254 | HAVE_RPATH=no | |
13255 | fi | |
13256 | ||
13257 | ||
13258 | ||
13259 | if test "$HAVE_RPATH" = "yes"; then | |
13260 | HAVE_RPATH_TRUE= | |
13261 | HAVE_RPATH_FALSE='#' | |
13262 | else | |
13263 | HAVE_RPATH_TRUE='#' | |
13264 | HAVE_RPATH_FALSE= | |
13265 | fi | |
13266 | ||
13267 | ||
13268 | ||
13269 | # Check whether --enable-largefile was given. | |
13270 | if test "${enable_largefile+set}" = set; then | |
13271 | enableval=$enable_largefile; | |
13272 | fi | |
13273 | ||
13274 | if test "$enable_largefile" != no; then | |
13275 | ||
13276 | { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | |
13277 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } | |
13278 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
13279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13280 | else | |
13281 | ac_cv_sys_largefile_CC=no | |
13282 | if test "$GCC" != yes; then | |
13283 | ac_save_CC=$CC | |
13284 | while :; do | |
13285 | # IRIX 6.2 and later do not support large files by default, | |
13286 | # so use the C compiler's -n32 option if that helps. | |
13287 | cat >conftest.$ac_ext <<_ACEOF | |
13288 | /* confdefs.h. */ | |
13289 | _ACEOF | |
13290 | cat confdefs.h >>conftest.$ac_ext | |
13291 | cat >>conftest.$ac_ext <<_ACEOF | |
13292 | /* end confdefs.h. */ | |
13293 | #include <sys/types.h> | |
13294 | /* Check that off_t can represent 2**63 - 1 correctly. | |
13295 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
13296 | since some C++ compilers masquerading as C compilers | |
13297 | incorrectly reject 9223372036854775807. */ | |
13298 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
13299 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
13300 | && LARGE_OFF_T % 2147483647 == 1) | |
13301 | ? 1 : -1]; | |
13302 | int | |
13303 | main () | |
13304 | { | |
13305 | ||
13306 | ; | |
13307 | return 0; | |
13308 | } | |
13309 | _ACEOF | |
13310 | rm -f conftest.$ac_objext | |
13311 | if { (ac_try="$ac_compile" | |
13312 | case "(($ac_try" in | |
13313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13314 | *) ac_try_echo=$ac_try;; | |
13315 | esac | |
13316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13317 | (eval "$ac_compile") 2>conftest.er1 | |
13318 | ac_status=$? | |
13319 | grep -v '^ *+' conftest.er1 >conftest.err | |
13320 | rm -f conftest.er1 | |
13321 | cat conftest.err >&5 | |
13322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13323 | (exit $ac_status); } && { | |
13324 | test -z "$ac_c_werror_flag" || | |
13325 | test ! -s conftest.err | |
13326 | } && test -s conftest.$ac_objext; then | |
13327 | break | |
13328 | else | |
13329 | echo "$as_me: failed program was:" >&5 | |
13330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13331 | ||
13332 | ||
13333 | fi | |
13334 | ||
13335 | rm -f core conftest.err conftest.$ac_objext | |
13336 | CC="$CC -n32" | |
13337 | rm -f conftest.$ac_objext | |
13338 | if { (ac_try="$ac_compile" | |
13339 | case "(($ac_try" in | |
13340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13341 | *) ac_try_echo=$ac_try;; | |
13342 | esac | |
13343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13344 | (eval "$ac_compile") 2>conftest.er1 | |
13345 | ac_status=$? | |
13346 | grep -v '^ *+' conftest.er1 >conftest.err | |
13347 | rm -f conftest.er1 | |
13348 | cat conftest.err >&5 | |
13349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13350 | (exit $ac_status); } && { | |
13351 | test -z "$ac_c_werror_flag" || | |
13352 | test ! -s conftest.err | |
13353 | } && test -s conftest.$ac_objext; then | |
13354 | ac_cv_sys_largefile_CC=' -n32'; break | |
13355 | else | |
13356 | echo "$as_me: failed program was:" >&5 | |
13357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13358 | ||
13359 | ||
13360 | fi | |
13361 | ||
13362 | rm -f core conftest.err conftest.$ac_objext | |
13363 | break | |
13364 | done | |
13365 | CC=$ac_save_CC | |
13366 | rm -f conftest.$ac_ext | |
13367 | fi | |
13368 | fi | |
13369 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | |
13370 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } | |
13371 | if test "$ac_cv_sys_largefile_CC" != no; then | |
13372 | CC=$CC$ac_cv_sys_largefile_CC | |
13373 | fi | |
13374 | ||
13375 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
13376 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } | |
13377 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
13378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13379 | else | |
13380 | while :; do | |
13381 | cat >conftest.$ac_ext <<_ACEOF | |
13382 | /* confdefs.h. */ | |
13383 | _ACEOF | |
13384 | cat confdefs.h >>conftest.$ac_ext | |
13385 | cat >>conftest.$ac_ext <<_ACEOF | |
13386 | /* end confdefs.h. */ | |
13387 | #include <sys/types.h> | |
13388 | /* Check that off_t can represent 2**63 - 1 correctly. | |
13389 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
13390 | since some C++ compilers masquerading as C compilers | |
13391 | incorrectly reject 9223372036854775807. */ | |
13392 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
13393 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
13394 | && LARGE_OFF_T % 2147483647 == 1) | |
13395 | ? 1 : -1]; | |
13396 | int | |
13397 | main () | |
13398 | { | |
13399 | ||
13400 | ; | |
13401 | return 0; | |
13402 | } | |
13403 | _ACEOF | |
13404 | rm -f conftest.$ac_objext | |
13405 | if { (ac_try="$ac_compile" | |
13406 | case "(($ac_try" in | |
13407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13408 | *) ac_try_echo=$ac_try;; | |
13409 | esac | |
13410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13411 | (eval "$ac_compile") 2>conftest.er1 | |
13412 | ac_status=$? | |
13413 | grep -v '^ *+' conftest.er1 >conftest.err | |
13414 | rm -f conftest.er1 | |
13415 | cat conftest.err >&5 | |
13416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13417 | (exit $ac_status); } && { | |
13418 | test -z "$ac_c_werror_flag" || | |
13419 | test ! -s conftest.err | |
13420 | } && test -s conftest.$ac_objext; then | |
13421 | ac_cv_sys_file_offset_bits=no; break | |
13422 | else | |
13423 | echo "$as_me: failed program was:" >&5 | |
13424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13425 | ||
13426 | ||
13427 | fi | |
13428 | ||
13429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13430 | cat >conftest.$ac_ext <<_ACEOF | |
13431 | /* confdefs.h. */ | |
13432 | _ACEOF | |
13433 | cat confdefs.h >>conftest.$ac_ext | |
13434 | cat >>conftest.$ac_ext <<_ACEOF | |
13435 | /* end confdefs.h. */ | |
13436 | #define _FILE_OFFSET_BITS 64 | |
13437 | #include <sys/types.h> | |
13438 | /* Check that off_t can represent 2**63 - 1 correctly. | |
13439 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
13440 | since some C++ compilers masquerading as C compilers | |
13441 | incorrectly reject 9223372036854775807. */ | |
13442 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
13443 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
13444 | && LARGE_OFF_T % 2147483647 == 1) | |
13445 | ? 1 : -1]; | |
13446 | int | |
13447 | main () | |
13448 | { | |
13449 | ||
13450 | ; | |
13451 | return 0; | |
13452 | } | |
13453 | _ACEOF | |
13454 | rm -f conftest.$ac_objext | |
13455 | if { (ac_try="$ac_compile" | |
13456 | case "(($ac_try" in | |
13457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13458 | *) ac_try_echo=$ac_try;; | |
13459 | esac | |
13460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13461 | (eval "$ac_compile") 2>conftest.er1 | |
13462 | ac_status=$? | |
13463 | grep -v '^ *+' conftest.er1 >conftest.err | |
13464 | rm -f conftest.er1 | |
13465 | cat conftest.err >&5 | |
13466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13467 | (exit $ac_status); } && { | |
13468 | test -z "$ac_c_werror_flag" || | |
13469 | test ! -s conftest.err | |
13470 | } && test -s conftest.$ac_objext; then | |
13471 | ac_cv_sys_file_offset_bits=64; break | |
13472 | else | |
13473 | echo "$as_me: failed program was:" >&5 | |
13474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13475 | ||
13476 | ||
13477 | fi | |
13478 | ||
13479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13480 | ac_cv_sys_file_offset_bits=unknown | |
13481 | break | |
13482 | done | |
13483 | fi | |
13484 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
13485 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } | |
13486 | case $ac_cv_sys_file_offset_bits in #( | |
13487 | no | unknown) ;; | |
13488 | *) | |
13489 | cat >>confdefs.h <<_ACEOF | |
13490 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
13491 | _ACEOF | |
13492 | ;; | |
13493 | esac | |
13494 | rm -f conftest* | |
13495 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
13496 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
13497 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } | |
13498 | if test "${ac_cv_sys_large_files+set}" = set; then | |
13499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13500 | else | |
13501 | while :; do | |
13502 | cat >conftest.$ac_ext <<_ACEOF | |
13503 | /* confdefs.h. */ | |
13504 | _ACEOF | |
13505 | cat confdefs.h >>conftest.$ac_ext | |
13506 | cat >>conftest.$ac_ext <<_ACEOF | |
13507 | /* end confdefs.h. */ | |
13508 | #include <sys/types.h> | |
13509 | /* Check that off_t can represent 2**63 - 1 correctly. | |
13510 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
13511 | since some C++ compilers masquerading as C compilers | |
13512 | incorrectly reject 9223372036854775807. */ | |
13513 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
13514 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
13515 | && LARGE_OFF_T % 2147483647 == 1) | |
13516 | ? 1 : -1]; | |
13517 | int | |
13518 | main () | |
13519 | { | |
13520 | ||
13521 | ; | |
13522 | return 0; | |
13523 | } | |
13524 | _ACEOF | |
13525 | rm -f conftest.$ac_objext | |
13526 | if { (ac_try="$ac_compile" | |
13527 | case "(($ac_try" in | |
13528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13529 | *) ac_try_echo=$ac_try;; | |
13530 | esac | |
13531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13532 | (eval "$ac_compile") 2>conftest.er1 | |
13533 | ac_status=$? | |
13534 | grep -v '^ *+' conftest.er1 >conftest.err | |
13535 | rm -f conftest.er1 | |
13536 | cat conftest.err >&5 | |
13537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13538 | (exit $ac_status); } && { | |
13539 | test -z "$ac_c_werror_flag" || | |
13540 | test ! -s conftest.err | |
13541 | } && test -s conftest.$ac_objext; then | |
13542 | ac_cv_sys_large_files=no; break | |
13543 | else | |
13544 | echo "$as_me: failed program was:" >&5 | |
13545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13546 | ||
13547 | ||
13548 | fi | |
13549 | ||
13550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13551 | cat >conftest.$ac_ext <<_ACEOF | |
13552 | /* confdefs.h. */ | |
13553 | _ACEOF | |
13554 | cat confdefs.h >>conftest.$ac_ext | |
13555 | cat >>conftest.$ac_ext <<_ACEOF | |
13556 | /* end confdefs.h. */ | |
13557 | #define _LARGE_FILES 1 | |
13558 | #include <sys/types.h> | |
13559 | /* Check that off_t can represent 2**63 - 1 correctly. | |
13560 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
13561 | since some C++ compilers masquerading as C compilers | |
13562 | incorrectly reject 9223372036854775807. */ | |
13563 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
13564 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
13565 | && LARGE_OFF_T % 2147483647 == 1) | |
13566 | ? 1 : -1]; | |
13567 | int | |
13568 | main () | |
13569 | { | |
13570 | ||
13571 | ; | |
13572 | return 0; | |
13573 | } | |
13574 | _ACEOF | |
13575 | rm -f conftest.$ac_objext | |
13576 | if { (ac_try="$ac_compile" | |
13577 | case "(($ac_try" in | |
13578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13579 | *) ac_try_echo=$ac_try;; | |
13580 | esac | |
13581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13582 | (eval "$ac_compile") 2>conftest.er1 | |
13583 | ac_status=$? | |
13584 | grep -v '^ *+' conftest.er1 >conftest.err | |
13585 | rm -f conftest.er1 | |
13586 | cat conftest.err >&5 | |
13587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13588 | (exit $ac_status); } && { | |
13589 | test -z "$ac_c_werror_flag" || | |
13590 | test ! -s conftest.err | |
13591 | } && test -s conftest.$ac_objext; then | |
13592 | ac_cv_sys_large_files=1; break | |
13593 | else | |
13594 | echo "$as_me: failed program was:" >&5 | |
13595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13596 | ||
13597 | ||
13598 | fi | |
13599 | ||
13600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13601 | ac_cv_sys_large_files=unknown | |
13602 | break | |
13603 | done | |
13604 | fi | |
13605 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
13606 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } | |
13607 | case $ac_cv_sys_large_files in #( | |
13608 | no | unknown) ;; | |
13609 | *) | |
13610 | cat >>confdefs.h <<_ACEOF | |
13611 | #define _LARGE_FILES $ac_cv_sys_large_files | |
13612 | _ACEOF | |
13613 | ;; | |
13614 | esac | |
13615 | rm -f conftest* | |
13616 | fi | |
13617 | fi | |
13618 | ||
13619 | ||
13620 | ||
13621 | LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION} | |
13622 | ||
13623 | ||
13624 | # Check whether --with-docdir was given. | |
13625 | if test "${with_docdir+set}" = set; then | |
13626 | withval=$with_docdir; | |
13627 | fi | |
13628 | ||
13629 | if test "x$with_docdir" != "x" ; then | |
13630 | LIBTIFF_DOCDIR=$with_docdir | |
13631 | fi | |
13632 | ||
13633 | ||
13634 | ||
13635 | ||
13636 | # Check whether --enable-ccitt was given. | |
13637 | if test "${enable_ccitt+set}" = set; then | |
13638 | enableval=$enable_ccitt; HAVE_CCITT=$enableval | |
13639 | else | |
13640 | HAVE_CCITT=yes | |
13641 | fi | |
13642 | ||
13643 | ||
13644 | if test "$HAVE_CCITT" = "yes" ; then | |
13645 | ||
13646 | cat >>confdefs.h <<\_ACEOF | |
13647 | #define CCITT_SUPPORT 1 | |
13648 | _ACEOF | |
13649 | ||
13650 | fi | |
13651 | ||
13652 | # Check whether --enable-packbits was given. | |
13653 | if test "${enable_packbits+set}" = set; then | |
13654 | enableval=$enable_packbits; HAVE_PACKBITS=$enableval | |
13655 | else | |
13656 | HAVE_PACKBITS=yes | |
13657 | fi | |
13658 | ||
13659 | ||
13660 | if test "$HAVE_PACKBITS" = "yes" ; then | |
13661 | ||
13662 | cat >>confdefs.h <<\_ACEOF | |
13663 | #define PACKBITS_SUPPORT 1 | |
13664 | _ACEOF | |
13665 | ||
13666 | fi | |
13667 | ||
13668 | # Check whether --enable-lzw was given. | |
13669 | if test "${enable_lzw+set}" = set; then | |
13670 | enableval=$enable_lzw; HAVE_LZW=$enableval | |
13671 | else | |
13672 | HAVE_LZW=yes | |
13673 | fi | |
13674 | ||
13675 | ||
13676 | if test "$HAVE_LZW" = "yes" ; then | |
13677 | ||
13678 | cat >>confdefs.h <<\_ACEOF | |
13679 | #define LZW_SUPPORT 1 | |
13680 | _ACEOF | |
13681 | ||
13682 | fi | |
13683 | ||
13684 | # Check whether --enable-thunder was given. | |
13685 | if test "${enable_thunder+set}" = set; then | |
13686 | enableval=$enable_thunder; HAVE_THUNDER=$enableval | |
13687 | else | |
13688 | HAVE_THUNDER=yes | |
13689 | fi | |
13690 | ||
13691 | ||
13692 | if test "$HAVE_THUNDER" = "yes" ; then | |
13693 | ||
13694 | cat >>confdefs.h <<\_ACEOF | |
13695 | #define THUNDER_SUPPORT 1 | |
13696 | _ACEOF | |
13697 | ||
13698 | fi | |
13699 | ||
13700 | HAVE_NEXT=yes | |
13701 | ||
13702 | # Check whether --enable-next was given. | |
13703 | if test "${enable_next+set}" = set; then | |
13704 | enableval=$enable_next; HAVE_NEXT=$enableval | |
13705 | else | |
13706 | HAVE_NEXT=yes | |
13707 | fi | |
13708 | ||
13709 | ||
13710 | if test "$HAVE_NEXT" = "yes" ; then | |
13711 | ||
13712 | cat >>confdefs.h <<\_ACEOF | |
13713 | #define NEXT_SUPPORT 1 | |
13714 | _ACEOF | |
13715 | ||
13716 | fi | |
13717 | ||
13718 | # Check whether --enable-logluv was given. | |
13719 | if test "${enable_logluv+set}" = set; then | |
13720 | enableval=$enable_logluv; HAVE_LOGLUV=$enableval | |
13721 | else | |
13722 | HAVE_LOGLUV=yes | |
13723 | fi | |
13724 | ||
13725 | ||
13726 | if test "$HAVE_LOGLUV" = "yes" ; then | |
13727 | ||
13728 | cat >>confdefs.h <<\_ACEOF | |
13729 | #define LOGLUV_SUPPORT 1 | |
13730 | _ACEOF | |
13731 | ||
13732 | fi | |
13733 | ||
13734 | ||
13735 | # Check whether --enable-mdi was given. | |
13736 | if test "${enable_mdi+set}" = set; then | |
13737 | enableval=$enable_mdi; HAVE_MDI=$enableval | |
13738 | else | |
13739 | HAVE_MDI=yes | |
13740 | fi | |
13741 | ||
13742 | ||
13743 | if test "$HAVE_MDI" = "yes" ; then | |
13744 | ||
13745 | cat >>confdefs.h <<\_ACEOF | |
13746 | #define MDI_SUPPORT 1 | |
13747 | _ACEOF | |
13748 | ||
13749 | fi | |
13750 | ||
13751 | ||
13752 | HAVE_ZLIB=no | |
13753 | ||
13754 | # Check whether --enable-zlib was given. | |
13755 | if test "${enable_zlib+set}" = set; then | |
13756 | enableval=$enable_zlib; | |
13757 | fi | |
13758 | ||
13759 | ||
13760 | # Check whether --with-zlib-include-dir was given. | |
13761 | if test "${with_zlib_include_dir+set}" = set; then | |
13762 | withval=$with_zlib_include_dir; | |
13763 | fi | |
13764 | ||
13765 | ||
13766 | # Check whether --with-zlib-lib-dir was given. | |
13767 | if test "${with_zlib_lib_dir+set}" = set; then | |
13768 | withval=$with_zlib_lib_dir; | |
13769 | fi | |
13770 | ||
13771 | ||
13772 | if test "x$enable_zlib" != "xno" ; then | |
13773 | ||
13774 | if test "x$with_zlib_lib_dir" != "x" ; then | |
13775 | LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS" | |
13776 | fi | |
13777 | ||
13778 | { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 | |
13779 | echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; } | |
13780 | if test "${ac_cv_lib_z_inflateEnd+set}" = set; then | |
13781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13782 | else | |
13783 | ac_check_lib_save_LIBS=$LIBS | |
13784 | LIBS="-lz $LIBS" | |
13785 | cat >conftest.$ac_ext <<_ACEOF | |
13786 | /* confdefs.h. */ | |
13787 | _ACEOF | |
13788 | cat confdefs.h >>conftest.$ac_ext | |
13789 | cat >>conftest.$ac_ext <<_ACEOF | |
13790 | /* end confdefs.h. */ | |
13791 | ||
13792 | /* Override any GCC internal prototype to avoid an error. | |
13793 | Use char because int might match the return type of a GCC | |
13794 | builtin and then its argument prototype would still apply. */ | |
13795 | #ifdef __cplusplus | |
13796 | extern "C" | |
13797 | #endif | |
13798 | char inflateEnd (); | |
13799 | int | |
13800 | main () | |
13801 | { | |
13802 | return inflateEnd (); | |
13803 | ; | |
13804 | return 0; | |
13805 | } | |
13806 | _ACEOF | |
13807 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13808 | if { (ac_try="$ac_link" | |
13809 | case "(($ac_try" in | |
13810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13811 | *) ac_try_echo=$ac_try;; | |
13812 | esac | |
13813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13814 | (eval "$ac_link") 2>conftest.er1 | |
13815 | ac_status=$? | |
13816 | grep -v '^ *+' conftest.er1 >conftest.err | |
13817 | rm -f conftest.er1 | |
13818 | cat conftest.err >&5 | |
13819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13820 | (exit $ac_status); } && { | |
13821 | test -z "$ac_c_werror_flag" || | |
13822 | test ! -s conftest.err | |
13823 | } && test -s conftest$ac_exeext && | |
13824 | $as_test_x conftest$ac_exeext; then | |
13825 | ac_cv_lib_z_inflateEnd=yes | |
13826 | else | |
13827 | echo "$as_me: failed program was:" >&5 | |
13828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13829 | ||
13830 | ac_cv_lib_z_inflateEnd=no | |
13831 | fi | |
13832 | ||
13833 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13834 | conftest$ac_exeext conftest.$ac_ext | |
13835 | LIBS=$ac_check_lib_save_LIBS | |
13836 | fi | |
13837 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 | |
13838 | echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; } | |
13839 | if test $ac_cv_lib_z_inflateEnd = yes; then | |
13840 | zlib_lib=yes | |
13841 | else | |
13842 | zlib_lib=no | |
13843 | fi | |
13844 | ||
13845 | if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then | |
13846 | { { echo "$as_me:$LINENO: error: Zlib library not found at $with_zlib_lib_dir" >&5 | |
13847 | echo "$as_me: error: Zlib library not found at $with_zlib_lib_dir" >&2;} | |
13848 | { (exit 1); exit 1; }; } | |
13849 | fi | |
13850 | ||
13851 | if test "x$with_zlib_include_dir" != "x" ; then | |
13852 | CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS" | |
13853 | fi | |
13854 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
13855 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
13856 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
13857 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
13858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13859 | fi | |
13860 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
13861 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
13862 | else | |
13863 | # Is the header compilable? | |
13864 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
13865 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | |
13866 | cat >conftest.$ac_ext <<_ACEOF | |
13867 | /* confdefs.h. */ | |
13868 | _ACEOF | |
13869 | cat confdefs.h >>conftest.$ac_ext | |
13870 | cat >>conftest.$ac_ext <<_ACEOF | |
13871 | /* end confdefs.h. */ | |
13872 | $ac_includes_default | |
13873 | #include <zlib.h> | |
13874 | _ACEOF | |
13875 | rm -f conftest.$ac_objext | |
13876 | if { (ac_try="$ac_compile" | |
13877 | case "(($ac_try" in | |
13878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13879 | *) ac_try_echo=$ac_try;; | |
13880 | esac | |
13881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13882 | (eval "$ac_compile") 2>conftest.er1 | |
13883 | ac_status=$? | |
13884 | grep -v '^ *+' conftest.er1 >conftest.err | |
13885 | rm -f conftest.er1 | |
13886 | cat conftest.err >&5 | |
13887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13888 | (exit $ac_status); } && { | |
13889 | test -z "$ac_c_werror_flag" || | |
13890 | test ! -s conftest.err | |
13891 | } && test -s conftest.$ac_objext; then | |
13892 | ac_header_compiler=yes | |
13893 | else | |
13894 | echo "$as_me: failed program was:" >&5 | |
13895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13896 | ||
13897 | ac_header_compiler=no | |
13898 | fi | |
13899 | ||
13900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13901 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13902 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
13903 | ||
13904 | # Is the header present? | |
13905 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
13906 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | |
13907 | cat >conftest.$ac_ext <<_ACEOF | |
13908 | /* confdefs.h. */ | |
13909 | _ACEOF | |
13910 | cat confdefs.h >>conftest.$ac_ext | |
13911 | cat >>conftest.$ac_ext <<_ACEOF | |
13912 | /* end confdefs.h. */ | |
13913 | #include <zlib.h> | |
13914 | _ACEOF | |
13915 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13916 | case "(($ac_try" in | |
13917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13918 | *) ac_try_echo=$ac_try;; | |
13919 | esac | |
13920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13921 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13922 | ac_status=$? | |
13923 | grep -v '^ *+' conftest.er1 >conftest.err | |
13924 | rm -f conftest.er1 | |
13925 | cat conftest.err >&5 | |
13926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13927 | (exit $ac_status); } >/dev/null && { | |
13928 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13929 | test ! -s conftest.err | |
13930 | }; then | |
13931 | ac_header_preproc=yes | |
13932 | else | |
13933 | echo "$as_me: failed program was:" >&5 | |
13934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13935 | ||
13936 | ac_header_preproc=no | |
13937 | fi | |
13938 | ||
13939 | rm -f conftest.err conftest.$ac_ext | |
13940 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13941 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
13942 | ||
13943 | # So? What about this header? | |
13944 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13945 | yes:no: ) | |
13946 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13947 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13948 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | |
13949 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
13950 | ac_header_preproc=yes | |
13951 | ;; | |
13952 | no:yes:* ) | |
13953 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
13954 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
13955 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
13956 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
13957 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
13958 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
13959 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13960 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13961 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
13962 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
13963 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | |
13964 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
13965 | ( cat <<\_ASBOX | |
13966 | ## -------------------------------------- ## | |
13967 | ## Report this to tiff@lists.maptools.org ## | |
13968 | ## -------------------------------------- ## | |
13969 | _ASBOX | |
13970 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
13971 | ;; | |
13972 | esac | |
13973 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
13974 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
13975 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
13976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13977 | else | |
13978 | ac_cv_header_zlib_h=$ac_header_preproc | |
13979 | fi | |
13980 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
13981 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
13982 | ||
13983 | fi | |
13984 | if test $ac_cv_header_zlib_h = yes; then | |
13985 | zlib_h=yes | |
13986 | else | |
13987 | zlib_h=no | |
13988 | fi | |
13989 | ||
13990 | ||
13991 | if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then | |
13992 | { { echo "$as_me:$LINENO: error: Zlib headers not found at $with_zlib_include_dir" >&5 | |
13993 | echo "$as_me: error: Zlib headers not found at $with_zlib_include_dir" >&2;} | |
13994 | { (exit 1); exit 1; }; } | |
13995 | fi | |
13996 | ||
13997 | if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then | |
13998 | HAVE_ZLIB=yes | |
13999 | fi | |
14000 | ||
14001 | fi | |
14002 | ||
14003 | if test "$HAVE_ZLIB" = "yes" ; then | |
14004 | ||
14005 | cat >>confdefs.h <<\_ACEOF | |
14006 | #define ZIP_SUPPORT 1 | |
14007 | _ACEOF | |
14008 | ||
14009 | LIBS="-lz $LIBS" | |
14010 | ||
14011 | if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then | |
14012 | LIBDIR="-R $with_zlib_lib_dir $LIBDIR" | |
14013 | fi | |
14014 | ||
14015 | fi | |
14016 | ||
14017 | ||
14018 | # Check whether --enable-pixarlog was given. | |
14019 | if test "${enable_pixarlog+set}" = set; then | |
14020 | enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval | |
14021 | else | |
14022 | HAVE_PIXARLOG=yes | |
14023 | fi | |
14024 | ||
14025 | ||
14026 | if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then | |
14027 | ||
14028 | cat >>confdefs.h <<\_ACEOF | |
14029 | #define PIXARLOG_SUPPORT 1 | |
14030 | _ACEOF | |
14031 | ||
14032 | else | |
14033 | HAVE_PIXARLOG=no | |
14034 | fi | |
14035 | ||
14036 | ||
14037 | HAVE_JPEG=no | |
14038 | ||
14039 | # Check whether --enable-jpeg was given. | |
14040 | if test "${enable_jpeg+set}" = set; then | |
14041 | enableval=$enable_jpeg; | |
14042 | fi | |
14043 | ||
14044 | ||
14045 | # Check whether --with-jpeg-include-dir was given. | |
14046 | if test "${with_jpeg_include_dir+set}" = set; then | |
14047 | withval=$with_jpeg_include_dir; | |
14048 | fi | |
14049 | ||
14050 | ||
14051 | # Check whether --with-jpeg-lib-dir was given. | |
14052 | if test "${with_jpeg_lib_dir+set}" = set; then | |
14053 | withval=$with_jpeg_lib_dir; | |
14054 | fi | |
14055 | ||
14056 | ||
14057 | if test "x$enable_jpeg" != "xno" ; then | |
14058 | ||
14059 | if test "x$with_jpeg_lib_dir" != "x" ; then | |
14060 | LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS" | |
14061 | ||
14062 | fi | |
14063 | ||
14064 | { echo "$as_me:$LINENO: checking for jpeg_read_scanlines in -ljpeg" >&5 | |
14065 | echo $ECHO_N "checking for jpeg_read_scanlines in -ljpeg... $ECHO_C" >&6; } | |
14066 | if test "${ac_cv_lib_jpeg_jpeg_read_scanlines+set}" = set; then | |
14067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14068 | else | |
14069 | ac_check_lib_save_LIBS=$LIBS | |
14070 | LIBS="-ljpeg $LIBS" | |
14071 | cat >conftest.$ac_ext <<_ACEOF | |
14072 | /* confdefs.h. */ | |
14073 | _ACEOF | |
14074 | cat confdefs.h >>conftest.$ac_ext | |
14075 | cat >>conftest.$ac_ext <<_ACEOF | |
14076 | /* end confdefs.h. */ | |
14077 | ||
14078 | /* Override any GCC internal prototype to avoid an error. | |
14079 | Use char because int might match the return type of a GCC | |
14080 | builtin and then its argument prototype would still apply. */ | |
14081 | #ifdef __cplusplus | |
14082 | extern "C" | |
14083 | #endif | |
14084 | char jpeg_read_scanlines (); | |
14085 | int | |
14086 | main () | |
14087 | { | |
14088 | return jpeg_read_scanlines (); | |
14089 | ; | |
14090 | return 0; | |
14091 | } | |
14092 | _ACEOF | |
14093 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14094 | if { (ac_try="$ac_link" | |
14095 | case "(($ac_try" in | |
14096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14097 | *) ac_try_echo=$ac_try;; | |
14098 | esac | |
14099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14100 | (eval "$ac_link") 2>conftest.er1 | |
14101 | ac_status=$? | |
14102 | grep -v '^ *+' conftest.er1 >conftest.err | |
14103 | rm -f conftest.er1 | |
14104 | cat conftest.err >&5 | |
14105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14106 | (exit $ac_status); } && { | |
14107 | test -z "$ac_c_werror_flag" || | |
14108 | test ! -s conftest.err | |
14109 | } && test -s conftest$ac_exeext && | |
14110 | $as_test_x conftest$ac_exeext; then | |
14111 | ac_cv_lib_jpeg_jpeg_read_scanlines=yes | |
14112 | else | |
14113 | echo "$as_me: failed program was:" >&5 | |
14114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14115 | ||
14116 | ac_cv_lib_jpeg_jpeg_read_scanlines=no | |
14117 | fi | |
14118 | ||
14119 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14120 | conftest$ac_exeext conftest.$ac_ext | |
14121 | LIBS=$ac_check_lib_save_LIBS | |
14122 | fi | |
14123 | { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5 | |
14124 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; } | |
14125 | if test $ac_cv_lib_jpeg_jpeg_read_scanlines = yes; then | |
14126 | jpeg_lib=yes | |
14127 | else | |
14128 | jpeg_lib=no | |
14129 | fi | |
14130 | ||
14131 | if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then | |
14132 | { { echo "$as_me:$LINENO: error: IJG JPEG library not found at $with_jpeg_lib_dir" >&5 | |
14133 | echo "$as_me: error: IJG JPEG library not found at $with_jpeg_lib_dir" >&2;} | |
14134 | { (exit 1); exit 1; }; } | |
14135 | fi | |
14136 | ||
14137 | if test "x$with_jpeg_include_dir" != "x" ; then | |
14138 | CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS" | |
14139 | fi | |
14140 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
14141 | { echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
14142 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; } | |
14143 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
14144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14145 | fi | |
14146 | { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
14147 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; } | |
14148 | else | |
14149 | # Is the header compilable? | |
14150 | { echo "$as_me:$LINENO: checking jpeglib.h usability" >&5 | |
14151 | echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6; } | |
14152 | cat >conftest.$ac_ext <<_ACEOF | |
14153 | /* confdefs.h. */ | |
14154 | _ACEOF | |
14155 | cat confdefs.h >>conftest.$ac_ext | |
14156 | cat >>conftest.$ac_ext <<_ACEOF | |
14157 | /* end confdefs.h. */ | |
14158 | $ac_includes_default | |
14159 | #include <jpeglib.h> | |
14160 | _ACEOF | |
14161 | rm -f conftest.$ac_objext | |
14162 | if { (ac_try="$ac_compile" | |
14163 | case "(($ac_try" in | |
14164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14165 | *) ac_try_echo=$ac_try;; | |
14166 | esac | |
14167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14168 | (eval "$ac_compile") 2>conftest.er1 | |
14169 | ac_status=$? | |
14170 | grep -v '^ *+' conftest.er1 >conftest.err | |
14171 | rm -f conftest.er1 | |
14172 | cat conftest.err >&5 | |
14173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14174 | (exit $ac_status); } && { | |
14175 | test -z "$ac_c_werror_flag" || | |
14176 | test ! -s conftest.err | |
14177 | } && test -s conftest.$ac_objext; then | |
14178 | ac_header_compiler=yes | |
14179 | else | |
14180 | echo "$as_me: failed program was:" >&5 | |
14181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14182 | ||
14183 | ac_header_compiler=no | |
14184 | fi | |
14185 | ||
14186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14187 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14188 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
14189 | ||
14190 | # Is the header present? | |
14191 | { echo "$as_me:$LINENO: checking jpeglib.h presence" >&5 | |
14192 | echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6; } | |
14193 | cat >conftest.$ac_ext <<_ACEOF | |
14194 | /* confdefs.h. */ | |
14195 | _ACEOF | |
14196 | cat confdefs.h >>conftest.$ac_ext | |
14197 | cat >>conftest.$ac_ext <<_ACEOF | |
14198 | /* end confdefs.h. */ | |
14199 | #include <jpeglib.h> | |
14200 | _ACEOF | |
14201 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
14202 | case "(($ac_try" in | |
14203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14204 | *) ac_try_echo=$ac_try;; | |
14205 | esac | |
14206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14207 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
14208 | ac_status=$? | |
14209 | grep -v '^ *+' conftest.er1 >conftest.err | |
14210 | rm -f conftest.er1 | |
14211 | cat conftest.err >&5 | |
14212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14213 | (exit $ac_status); } >/dev/null && { | |
14214 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14215 | test ! -s conftest.err | |
14216 | }; then | |
14217 | ac_header_preproc=yes | |
14218 | else | |
14219 | echo "$as_me: failed program was:" >&5 | |
14220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14221 | ||
14222 | ac_header_preproc=no | |
14223 | fi | |
14224 | ||
14225 | rm -f conftest.err conftest.$ac_ext | |
14226 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14227 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
14228 | ||
14229 | # So? What about this header? | |
14230 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14231 | yes:no: ) | |
14232 | { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14233 | echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14234 | { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5 | |
14235 | echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;} | |
14236 | ac_header_preproc=yes | |
14237 | ;; | |
14238 | no:yes:* ) | |
14239 | { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5 | |
14240 | echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;} | |
14241 | { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5 | |
14242 | echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;} | |
14243 | { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5 | |
14244 | echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;} | |
14245 | { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14246 | echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
14247 | { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5 | |
14248 | echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;} | |
14249 | { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5 | |
14250 | echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;} | |
14251 | ( cat <<\_ASBOX | |
14252 | ## -------------------------------------- ## | |
14253 | ## Report this to tiff@lists.maptools.org ## | |
14254 | ## -------------------------------------- ## | |
14255 | _ASBOX | |
14256 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
14257 | ;; | |
14258 | esac | |
14259 | { echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
14260 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; } | |
14261 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
14262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14263 | else | |
14264 | ac_cv_header_jpeglib_h=$ac_header_preproc | |
14265 | fi | |
14266 | { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
14267 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; } | |
14268 | ||
14269 | fi | |
14270 | if test $ac_cv_header_jpeglib_h = yes; then | |
14271 | jpeg_h=yes | |
14272 | else | |
14273 | jpeg_h=no | |
14274 | fi | |
14275 | ||
14276 | ||
14277 | if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then | |
14278 | { { echo "$as_me:$LINENO: error: IJG JPEG library headers not found at $with_jpeg_include_dir" >&5 | |
14279 | echo "$as_me: error: IJG JPEG library headers not found at $with_jpeg_include_dir" >&2;} | |
14280 | { (exit 1); exit 1; }; } | |
14281 | fi | |
14282 | ||
14283 | if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then | |
14284 | HAVE_JPEG=yes | |
14285 | fi | |
14286 | ||
14287 | fi | |
14288 | ||
14289 | if test "$HAVE_JPEG" = "yes" ; then | |
14290 | ||
14291 | cat >>confdefs.h <<\_ACEOF | |
14292 | #define JPEG_SUPPORT 1 | |
14293 | _ACEOF | |
14294 | ||
14295 | LIBS="-ljpeg $LIBS" | |
14296 | ||
14297 | if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then | |
14298 | LIBDIR="-R $with_jpeg_lib_dir $LIBDIR" | |
14299 | fi | |
14300 | ||
14301 | fi | |
14302 | ||
14303 | ||
14304 | # Check whether --enable-old-jpeg was given. | |
14305 | if test "${enable_old_jpeg+set}" = set; then | |
14306 | enableval=$enable_old_jpeg; HAVE_OJPEG=$enableval | |
14307 | else | |
14308 | HAVE_OJPEG=no | |
14309 | fi | |
14310 | ||
14311 | ||
14312 | if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then | |
14313 | ||
14314 | cat >>confdefs.h <<\_ACEOF | |
14315 | #define OJPEG_SUPPORT 1 | |
14316 | _ACEOF | |
14317 | ||
14318 | else | |
14319 | HAVE_OJPEG=no | |
14320 | fi | |
14321 | ||
14322 | ||
14323 | # Check whether --enable-cxx was given. | |
14324 | if test "${enable_cxx+set}" = set; then | |
14325 | enableval=$enable_cxx; HAVE_CXX=$enableval | |
14326 | else | |
14327 | HAVE_CXX=yes | |
14328 | fi | |
14329 | ||
14330 | ||
14331 | if test "$HAVE_CXX" = "yes" ; then | |
14332 | ||
14333 | cat >>confdefs.h <<\_ACEOF | |
14334 | #define CXX_SUPPORT 1 | |
14335 | _ACEOF | |
14336 | ||
14337 | else | |
14338 | HAVE_CXX=no | |
14339 | fi | |
14340 | ||
14341 | ||
14342 | ||
14343 | if test "$HAVE_CXX" = "yes"; then | |
14344 | HAVE_CXX_TRUE= | |
14345 | HAVE_CXX_FALSE='#' | |
14346 | else | |
14347 | HAVE_CXX_TRUE='#' | |
14348 | HAVE_CXX_FALSE= | |
14349 | fi | |
14350 | ||
14351 | ||
14352 | ||
14353 | HAVE_OPENGL=no | |
14354 | ||
14355 | { echo "$as_me:$LINENO: checking for X" >&5 | |
14356 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } | |
14357 | ||
14358 | ||
14359 | # Check whether --with-x was given. | |
14360 | if test "${with_x+set}" = set; then | |
14361 | withval=$with_x; | |
14362 | fi | |
14363 | ||
14364 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
14365 | if test "x$with_x" = xno; then | |
14366 | # The user explicitly disabled X. | |
14367 | have_x=disabled | |
14368 | else | |
14369 | case $x_includes,$x_libraries in #( | |
14370 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 | |
14371 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} | |
14372 | { (exit 1); exit 1; }; };; #( | |
14373 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then | |
14374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14375 | else | |
14376 | # One or both of the vars are not set, and there is no cached value. | |
14377 | ac_x_includes=no ac_x_libraries=no | |
14378 | rm -f -r conftest.dir | |
14379 | if mkdir conftest.dir; then | |
14380 | cd conftest.dir | |
14381 | cat >Imakefile <<'_ACEOF' | |
14382 | incroot: | |
14383 | @echo incroot='${INCROOT}' | |
14384 | usrlibdir: | |
14385 | @echo usrlibdir='${USRLIBDIR}' | |
14386 | libdir: | |
14387 | @echo libdir='${LIBDIR}' | |
14388 | _ACEOF | |
14389 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | |
14390 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
14391 | for ac_var in incroot usrlibdir libdir; do | |
14392 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | |
14393 | done | |
14394 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
14395 | for ac_extension in a so sl; do | |
14396 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | |
14397 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | |
14398 | ac_im_usrlibdir=$ac_im_libdir; break | |
14399 | fi | |
14400 | done | |
14401 | # Screen out bogus values from the imake configuration. They are | |
14402 | # bogus both because they are the default anyway, and because | |
14403 | # using them would break gcc on systems where it needs fixed includes. | |
14404 | case $ac_im_incroot in | |
14405 | /usr/include) ac_x_includes= ;; | |
14406 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
14407 | esac | |
14408 | case $ac_im_usrlibdir in | |
14409 | /usr/lib | /lib) ;; | |
14410 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
14411 | esac | |
14412 | fi | |
14413 | cd .. | |
14414 | rm -f -r conftest.dir | |
14415 | fi | |
14416 | ||
14417 | # Standard set of common directories for X headers. | |
14418 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
14419 | ac_x_header_dirs=' | |
14420 | /usr/X11/include | |
14421 | /usr/X11R6/include | |
14422 | /usr/X11R5/include | |
14423 | /usr/X11R4/include | |
14424 | ||
14425 | /usr/include/X11 | |
14426 | /usr/include/X11R6 | |
14427 | /usr/include/X11R5 | |
14428 | /usr/include/X11R4 | |
14429 | ||
14430 | /usr/local/X11/include | |
14431 | /usr/local/X11R6/include | |
14432 | /usr/local/X11R5/include | |
14433 | /usr/local/X11R4/include | |
14434 | ||
14435 | /usr/local/include/X11 | |
14436 | /usr/local/include/X11R6 | |
14437 | /usr/local/include/X11R5 | |
14438 | /usr/local/include/X11R4 | |
14439 | ||
14440 | /usr/X386/include | |
14441 | /usr/x386/include | |
14442 | /usr/XFree86/include/X11 | |
14443 | ||
14444 | /usr/include | |
14445 | /usr/local/include | |
14446 | /usr/unsupported/include | |
14447 | /usr/athena/include | |
14448 | /usr/local/x11r5/include | |
14449 | /usr/lpp/Xamples/include | |
14450 | ||
14451 | /usr/openwin/include | |
14452 | /usr/openwin/share/include' | |
14453 | ||
14454 | if test "$ac_x_includes" = no; then | |
14455 | # Guess where to find include files, by looking for Xlib.h. | |
14456 | # First, try using that file with no special directory specified. | |
14457 | cat >conftest.$ac_ext <<_ACEOF | |
14458 | /* confdefs.h. */ | |
14459 | _ACEOF | |
14460 | cat confdefs.h >>conftest.$ac_ext | |
14461 | cat >>conftest.$ac_ext <<_ACEOF | |
14462 | /* end confdefs.h. */ | |
14463 | #include <X11/Xlib.h> | |
14464 | _ACEOF | |
14465 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
14466 | case "(($ac_try" in | |
14467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14468 | *) ac_try_echo=$ac_try;; | |
14469 | esac | |
14470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14471 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
14472 | ac_status=$? | |
14473 | grep -v '^ *+' conftest.er1 >conftest.err | |
14474 | rm -f conftest.er1 | |
14475 | cat conftest.err >&5 | |
14476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14477 | (exit $ac_status); } >/dev/null && { | |
14478 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14479 | test ! -s conftest.err | |
14480 | }; then | |
14481 | # We can compile using X headers with no special include directory. | |
14482 | ac_x_includes= | |
14483 | else | |
14484 | echo "$as_me: failed program was:" >&5 | |
14485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14486 | ||
14487 | for ac_dir in $ac_x_header_dirs; do | |
14488 | if test -r "$ac_dir/X11/Xlib.h"; then | |
14489 | ac_x_includes=$ac_dir | |
14490 | break | |
14491 | fi | |
14492 | done | |
14493 | fi | |
14494 | ||
14495 | rm -f conftest.err conftest.$ac_ext | |
14496 | fi # $ac_x_includes = no | |
14497 | ||
14498 | if test "$ac_x_libraries" = no; then | |
14499 | # Check for the libraries. | |
14500 | # See if we find them without any special options. | |
14501 | # Don't add to $LIBS permanently. | |
14502 | ac_save_LIBS=$LIBS | |
14503 | LIBS="-lX11 $LIBS" | |
14504 | cat >conftest.$ac_ext <<_ACEOF | |
14505 | /* confdefs.h. */ | |
14506 | _ACEOF | |
14507 | cat confdefs.h >>conftest.$ac_ext | |
14508 | cat >>conftest.$ac_ext <<_ACEOF | |
14509 | /* end confdefs.h. */ | |
14510 | #include <X11/Xlib.h> | |
14511 | int | |
14512 | main () | |
14513 | { | |
14514 | XrmInitialize () | |
14515 | ; | |
14516 | return 0; | |
14517 | } | |
14518 | _ACEOF | |
14519 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14520 | if { (ac_try="$ac_link" | |
14521 | case "(($ac_try" in | |
14522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14523 | *) ac_try_echo=$ac_try;; | |
14524 | esac | |
14525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14526 | (eval "$ac_link") 2>conftest.er1 | |
14527 | ac_status=$? | |
14528 | grep -v '^ *+' conftest.er1 >conftest.err | |
14529 | rm -f conftest.er1 | |
14530 | cat conftest.err >&5 | |
14531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14532 | (exit $ac_status); } && { | |
14533 | test -z "$ac_c_werror_flag" || | |
14534 | test ! -s conftest.err | |
14535 | } && test -s conftest$ac_exeext && | |
14536 | $as_test_x conftest$ac_exeext; then | |
14537 | LIBS=$ac_save_LIBS | |
14538 | # We can link X programs with no special library path. | |
14539 | ac_x_libraries= | |
14540 | else | |
14541 | echo "$as_me: failed program was:" >&5 | |
14542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14543 | ||
14544 | LIBS=$ac_save_LIBS | |
14545 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
14546 | do | |
14547 | # Don't even attempt the hair of trying to link an X program! | |
14548 | for ac_extension in a so sl; do | |
14549 | if test -r "$ac_dir/libX11.$ac_extension"; then | |
14550 | ac_x_libraries=$ac_dir | |
14551 | break 2 | |
14552 | fi | |
14553 | done | |
14554 | done | |
14555 | fi | |
14556 | ||
14557 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14558 | conftest$ac_exeext conftest.$ac_ext | |
14559 | fi # $ac_x_libraries = no | |
14560 | ||
14561 | case $ac_x_includes,$ac_x_libraries in #( | |
14562 | no,* | *,no | *\'*) | |
14563 | # Didn't find X, or a directory has "'" in its name. | |
14564 | ac_cv_have_x="have_x=no";; #( | |
14565 | *) | |
14566 | # Record where we found X for the cache. | |
14567 | ac_cv_have_x="have_x=yes\ | |
14568 | ac_x_includes='$ac_x_includes'\ | |
14569 | ac_x_libraries='$ac_x_libraries'" | |
14570 | esac | |
14571 | fi | |
14572 | ;; #( | |
14573 | *) have_x=yes;; | |
14574 | esac | |
14575 | eval "$ac_cv_have_x" | |
14576 | fi # $with_x != no | |
14577 | ||
14578 | if test "$have_x" != yes; then | |
14579 | { echo "$as_me:$LINENO: result: $have_x" >&5 | |
14580 | echo "${ECHO_T}$have_x" >&6; } | |
14581 | no_x=yes | |
14582 | else | |
14583 | # If each of the values was on the command line, it overrides each guess. | |
14584 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
14585 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
14586 | # Update the cache value to reflect the command line values. | |
14587 | ac_cv_have_x="have_x=yes\ | |
14588 | ac_x_includes='$x_includes'\ | |
14589 | ac_x_libraries='$x_libraries'" | |
14590 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 | |
14591 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } | |
14592 | fi | |
14593 | ||
14594 | if test "$no_x" = yes; then | |
14595 | # Not all programs may use this symbol, but it does not hurt to define it. | |
14596 | ||
14597 | cat >>confdefs.h <<\_ACEOF | |
14598 | #define X_DISPLAY_MISSING 1 | |
14599 | _ACEOF | |
14600 | ||
14601 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
14602 | else | |
14603 | if test -n "$x_includes"; then | |
14604 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
14605 | fi | |
14606 | ||
14607 | # It would also be nice to do this for all -L options, not just this one. | |
14608 | if test -n "$x_libraries"; then | |
14609 | X_LIBS="$X_LIBS -L$x_libraries" | |
14610 | # For Solaris; some versions of Sun CC require a space after -R and | |
14611 | # others require no space. Words are not sufficient . . . . | |
14612 | { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
14613 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } | |
14614 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
14615 | ac_xsave_c_werror_flag=$ac_c_werror_flag | |
14616 | ac_c_werror_flag=yes | |
14617 | cat >conftest.$ac_ext <<_ACEOF | |
14618 | /* confdefs.h. */ | |
14619 | _ACEOF | |
14620 | cat confdefs.h >>conftest.$ac_ext | |
14621 | cat >>conftest.$ac_ext <<_ACEOF | |
14622 | /* end confdefs.h. */ | |
14623 | ||
14624 | int | |
14625 | main () | |
14626 | { | |
14627 | ||
14628 | ; | |
14629 | return 0; | |
14630 | } | |
14631 | _ACEOF | |
14632 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14633 | if { (ac_try="$ac_link" | |
14634 | case "(($ac_try" in | |
14635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14636 | *) ac_try_echo=$ac_try;; | |
14637 | esac | |
14638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14639 | (eval "$ac_link") 2>conftest.er1 | |
14640 | ac_status=$? | |
14641 | grep -v '^ *+' conftest.er1 >conftest.err | |
14642 | rm -f conftest.er1 | |
14643 | cat conftest.err >&5 | |
14644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14645 | (exit $ac_status); } && { | |
14646 | test -z "$ac_c_werror_flag" || | |
14647 | test ! -s conftest.err | |
14648 | } && test -s conftest$ac_exeext && | |
14649 | $as_test_x conftest$ac_exeext; then | |
14650 | { echo "$as_me:$LINENO: result: no" >&5 | |
14651 | echo "${ECHO_T}no" >&6; } | |
14652 | X_LIBS="$X_LIBS -R$x_libraries" | |
14653 | else | |
14654 | echo "$as_me: failed program was:" >&5 | |
14655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14656 | ||
14657 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
14658 | cat >conftest.$ac_ext <<_ACEOF | |
14659 | /* confdefs.h. */ | |
14660 | _ACEOF | |
14661 | cat confdefs.h >>conftest.$ac_ext | |
14662 | cat >>conftest.$ac_ext <<_ACEOF | |
14663 | /* end confdefs.h. */ | |
14664 | ||
14665 | int | |
14666 | main () | |
14667 | { | |
14668 | ||
14669 | ; | |
14670 | return 0; | |
14671 | } | |
14672 | _ACEOF | |
14673 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14674 | if { (ac_try="$ac_link" | |
14675 | case "(($ac_try" in | |
14676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14677 | *) ac_try_echo=$ac_try;; | |
14678 | esac | |
14679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14680 | (eval "$ac_link") 2>conftest.er1 | |
14681 | ac_status=$? | |
14682 | grep -v '^ *+' conftest.er1 >conftest.err | |
14683 | rm -f conftest.er1 | |
14684 | cat conftest.err >&5 | |
14685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14686 | (exit $ac_status); } && { | |
14687 | test -z "$ac_c_werror_flag" || | |
14688 | test ! -s conftest.err | |
14689 | } && test -s conftest$ac_exeext && | |
14690 | $as_test_x conftest$ac_exeext; then | |
14691 | { echo "$as_me:$LINENO: result: yes" >&5 | |
14692 | echo "${ECHO_T}yes" >&6; } | |
14693 | X_LIBS="$X_LIBS -R $x_libraries" | |
14694 | else | |
14695 | echo "$as_me: failed program was:" >&5 | |
14696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14697 | ||
14698 | { echo "$as_me:$LINENO: result: neither works" >&5 | |
14699 | echo "${ECHO_T}neither works" >&6; } | |
14700 | fi | |
14701 | ||
14702 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14703 | conftest$ac_exeext conftest.$ac_ext | |
14704 | fi | |
14705 | ||
14706 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14707 | conftest$ac_exeext conftest.$ac_ext | |
14708 | ac_c_werror_flag=$ac_xsave_c_werror_flag | |
14709 | LIBS=$ac_xsave_LIBS | |
14710 | fi | |
14711 | ||
14712 | # Check for system-dependent libraries X programs must link with. | |
14713 | # Do this before checking for the system-independent R6 libraries | |
14714 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
14715 | ||
14716 | if test "$ISC" = yes; then | |
14717 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
14718 | else | |
14719 | # Martyn Johnson says this is needed for Ultrix, if the X | |
14720 | # libraries were built with DECnet support. And Karl Berry says | |
14721 | # the Alpha needs dnet_stub (dnet does not exist). | |
14722 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
14723 | cat >conftest.$ac_ext <<_ACEOF | |
14724 | /* confdefs.h. */ | |
14725 | _ACEOF | |
14726 | cat confdefs.h >>conftest.$ac_ext | |
14727 | cat >>conftest.$ac_ext <<_ACEOF | |
14728 | /* end confdefs.h. */ | |
14729 | ||
14730 | /* Override any GCC internal prototype to avoid an error. | |
14731 | Use char because int might match the return type of a GCC | |
14732 | builtin and then its argument prototype would still apply. */ | |
14733 | #ifdef __cplusplus | |
14734 | extern "C" | |
14735 | #endif | |
14736 | char XOpenDisplay (); | |
14737 | int | |
14738 | main () | |
14739 | { | |
14740 | return XOpenDisplay (); | |
14741 | ; | |
14742 | return 0; | |
14743 | } | |
14744 | _ACEOF | |
14745 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14746 | if { (ac_try="$ac_link" | |
14747 | case "(($ac_try" in | |
14748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14749 | *) ac_try_echo=$ac_try;; | |
14750 | esac | |
14751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14752 | (eval "$ac_link") 2>conftest.er1 | |
14753 | ac_status=$? | |
14754 | grep -v '^ *+' conftest.er1 >conftest.err | |
14755 | rm -f conftest.er1 | |
14756 | cat conftest.err >&5 | |
14757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14758 | (exit $ac_status); } && { | |
14759 | test -z "$ac_c_werror_flag" || | |
14760 | test ! -s conftest.err | |
14761 | } && test -s conftest$ac_exeext && | |
14762 | $as_test_x conftest$ac_exeext; then | |
14763 | : | |
14764 | else | |
14765 | echo "$as_me: failed program was:" >&5 | |
14766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14767 | ||
14768 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
14769 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } | |
14770 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
14771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14772 | else | |
14773 | ac_check_lib_save_LIBS=$LIBS | |
14774 | LIBS="-ldnet $LIBS" | |
14775 | cat >conftest.$ac_ext <<_ACEOF | |
14776 | /* confdefs.h. */ | |
14777 | _ACEOF | |
14778 | cat confdefs.h >>conftest.$ac_ext | |
14779 | cat >>conftest.$ac_ext <<_ACEOF | |
14780 | /* end confdefs.h. */ | |
14781 | ||
14782 | /* Override any GCC internal prototype to avoid an error. | |
14783 | Use char because int might match the return type of a GCC | |
14784 | builtin and then its argument prototype would still apply. */ | |
14785 | #ifdef __cplusplus | |
14786 | extern "C" | |
14787 | #endif | |
14788 | char dnet_ntoa (); | |
14789 | int | |
14790 | main () | |
14791 | { | |
14792 | return dnet_ntoa (); | |
14793 | ; | |
14794 | return 0; | |
14795 | } | |
14796 | _ACEOF | |
14797 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14798 | if { (ac_try="$ac_link" | |
14799 | case "(($ac_try" in | |
14800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14801 | *) ac_try_echo=$ac_try;; | |
14802 | esac | |
14803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14804 | (eval "$ac_link") 2>conftest.er1 | |
14805 | ac_status=$? | |
14806 | grep -v '^ *+' conftest.er1 >conftest.err | |
14807 | rm -f conftest.er1 | |
14808 | cat conftest.err >&5 | |
14809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14810 | (exit $ac_status); } && { | |
14811 | test -z "$ac_c_werror_flag" || | |
14812 | test ! -s conftest.err | |
14813 | } && test -s conftest$ac_exeext && | |
14814 | $as_test_x conftest$ac_exeext; then | |
14815 | ac_cv_lib_dnet_dnet_ntoa=yes | |
14816 | else | |
14817 | echo "$as_me: failed program was:" >&5 | |
14818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14819 | ||
14820 | ac_cv_lib_dnet_dnet_ntoa=no | |
14821 | fi | |
14822 | ||
14823 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14824 | conftest$ac_exeext conftest.$ac_ext | |
14825 | LIBS=$ac_check_lib_save_LIBS | |
14826 | fi | |
14827 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
14828 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } | |
14829 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
14830 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
14831 | fi | |
14832 | ||
14833 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
14834 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
14835 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } | |
14836 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
14837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14838 | else | |
14839 | ac_check_lib_save_LIBS=$LIBS | |
14840 | LIBS="-ldnet_stub $LIBS" | |
14841 | cat >conftest.$ac_ext <<_ACEOF | |
14842 | /* confdefs.h. */ | |
14843 | _ACEOF | |
14844 | cat confdefs.h >>conftest.$ac_ext | |
14845 | cat >>conftest.$ac_ext <<_ACEOF | |
14846 | /* end confdefs.h. */ | |
14847 | ||
14848 | /* Override any GCC internal prototype to avoid an error. | |
14849 | Use char because int might match the return type of a GCC | |
14850 | builtin and then its argument prototype would still apply. */ | |
14851 | #ifdef __cplusplus | |
14852 | extern "C" | |
14853 | #endif | |
14854 | char dnet_ntoa (); | |
14855 | int | |
14856 | main () | |
14857 | { | |
14858 | return dnet_ntoa (); | |
14859 | ; | |
14860 | return 0; | |
14861 | } | |
14862 | _ACEOF | |
14863 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14864 | if { (ac_try="$ac_link" | |
14865 | case "(($ac_try" in | |
14866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14867 | *) ac_try_echo=$ac_try;; | |
14868 | esac | |
14869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14870 | (eval "$ac_link") 2>conftest.er1 | |
14871 | ac_status=$? | |
14872 | grep -v '^ *+' conftest.er1 >conftest.err | |
14873 | rm -f conftest.er1 | |
14874 | cat conftest.err >&5 | |
14875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14876 | (exit $ac_status); } && { | |
14877 | test -z "$ac_c_werror_flag" || | |
14878 | test ! -s conftest.err | |
14879 | } && test -s conftest$ac_exeext && | |
14880 | $as_test_x conftest$ac_exeext; then | |
14881 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
14882 | else | |
14883 | echo "$as_me: failed program was:" >&5 | |
14884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14885 | ||
14886 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
14887 | fi | |
14888 | ||
14889 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14890 | conftest$ac_exeext conftest.$ac_ext | |
14891 | LIBS=$ac_check_lib_save_LIBS | |
14892 | fi | |
14893 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
14894 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | |
14895 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
14896 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
14897 | fi | |
14898 | ||
14899 | fi | |
14900 | fi | |
14901 | ||
14902 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14903 | conftest$ac_exeext conftest.$ac_ext | |
14904 | LIBS="$ac_xsave_LIBS" | |
14905 | ||
14906 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
14907 | # to get the SysV transport functions. | |
14908 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
14909 | # needs -lnsl. | |
14910 | # The nsl library prevents programs from opening the X display | |
14911 | # on Irix 5.2, according to T.E. Dickey. | |
14912 | # The functions gethostbyname, getservbyname, and inet_addr are | |
14913 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
14914 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
14915 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } | |
14916 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
14917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14918 | else | |
14919 | cat >conftest.$ac_ext <<_ACEOF | |
14920 | /* confdefs.h. */ | |
14921 | _ACEOF | |
14922 | cat confdefs.h >>conftest.$ac_ext | |
14923 | cat >>conftest.$ac_ext <<_ACEOF | |
14924 | /* end confdefs.h. */ | |
14925 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | |
14926 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14927 | #define gethostbyname innocuous_gethostbyname | |
14928 | ||
14929 | /* System header to define __stub macros and hopefully few prototypes, | |
14930 | which can conflict with char gethostbyname (); below. | |
14931 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14932 | <limits.h> exists even on freestanding compilers. */ | |
14933 | ||
14934 | #ifdef __STDC__ | |
14935 | # include <limits.h> | |
14936 | #else | |
14937 | # include <assert.h> | |
14938 | #endif | |
14939 | ||
14940 | #undef gethostbyname | |
14941 | ||
14942 | /* Override any GCC internal prototype to avoid an error. | |
14943 | Use char because int might match the return type of a GCC | |
14944 | builtin and then its argument prototype would still apply. */ | |
14945 | #ifdef __cplusplus | |
14946 | extern "C" | |
14947 | #endif | |
14948 | char gethostbyname (); | |
14949 | /* The GNU C library defines this for functions which it implements | |
14950 | to always fail with ENOSYS. Some functions are actually named | |
14951 | something starting with __ and the normal name is an alias. */ | |
14952 | #if defined __stub_gethostbyname || defined __stub___gethostbyname | |
14953 | choke me | |
14954 | #endif | |
14955 | ||
14956 | int | |
14957 | main () | |
14958 | { | |
14959 | return gethostbyname (); | |
14960 | ; | |
14961 | return 0; | |
14962 | } | |
14963 | _ACEOF | |
14964 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14965 | if { (ac_try="$ac_link" | |
14966 | case "(($ac_try" in | |
14967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14968 | *) ac_try_echo=$ac_try;; | |
14969 | esac | |
14970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14971 | (eval "$ac_link") 2>conftest.er1 | |
14972 | ac_status=$? | |
14973 | grep -v '^ *+' conftest.er1 >conftest.err | |
14974 | rm -f conftest.er1 | |
14975 | cat conftest.err >&5 | |
14976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14977 | (exit $ac_status); } && { | |
14978 | test -z "$ac_c_werror_flag" || | |
14979 | test ! -s conftest.err | |
14980 | } && test -s conftest$ac_exeext && | |
14981 | $as_test_x conftest$ac_exeext; then | |
14982 | ac_cv_func_gethostbyname=yes | |
14983 | else | |
14984 | echo "$as_me: failed program was:" >&5 | |
14985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14986 | ||
14987 | ac_cv_func_gethostbyname=no | |
14988 | fi | |
14989 | ||
14990 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14991 | conftest$ac_exeext conftest.$ac_ext | |
14992 | fi | |
14993 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
14994 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } | |
14995 | ||
14996 | if test $ac_cv_func_gethostbyname = no; then | |
14997 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
14998 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } | |
14999 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
15000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15001 | else | |
15002 | ac_check_lib_save_LIBS=$LIBS | |
15003 | LIBS="-lnsl $LIBS" | |
15004 | cat >conftest.$ac_ext <<_ACEOF | |
15005 | /* confdefs.h. */ | |
15006 | _ACEOF | |
15007 | cat confdefs.h >>conftest.$ac_ext | |
15008 | cat >>conftest.$ac_ext <<_ACEOF | |
15009 | /* end confdefs.h. */ | |
15010 | ||
15011 | /* Override any GCC internal prototype to avoid an error. | |
15012 | Use char because int might match the return type of a GCC | |
15013 | builtin and then its argument prototype would still apply. */ | |
15014 | #ifdef __cplusplus | |
15015 | extern "C" | |
15016 | #endif | |
15017 | char gethostbyname (); | |
15018 | int | |
15019 | main () | |
15020 | { | |
15021 | return gethostbyname (); | |
15022 | ; | |
15023 | return 0; | |
15024 | } | |
15025 | _ACEOF | |
15026 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15027 | if { (ac_try="$ac_link" | |
15028 | case "(($ac_try" in | |
15029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15030 | *) ac_try_echo=$ac_try;; | |
15031 | esac | |
15032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15033 | (eval "$ac_link") 2>conftest.er1 | |
15034 | ac_status=$? | |
15035 | grep -v '^ *+' conftest.er1 >conftest.err | |
15036 | rm -f conftest.er1 | |
15037 | cat conftest.err >&5 | |
15038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15039 | (exit $ac_status); } && { | |
15040 | test -z "$ac_c_werror_flag" || | |
15041 | test ! -s conftest.err | |
15042 | } && test -s conftest$ac_exeext && | |
15043 | $as_test_x conftest$ac_exeext; then | |
15044 | ac_cv_lib_nsl_gethostbyname=yes | |
15045 | else | |
15046 | echo "$as_me: failed program was:" >&5 | |
15047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15048 | ||
15049 | ac_cv_lib_nsl_gethostbyname=no | |
15050 | fi | |
15051 | ||
15052 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15053 | conftest$ac_exeext conftest.$ac_ext | |
15054 | LIBS=$ac_check_lib_save_LIBS | |
15055 | fi | |
15056 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
15057 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } | |
15058 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
15059 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
15060 | fi | |
15061 | ||
15062 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
15063 | { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
15064 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } | |
15065 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
15066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15067 | else | |
15068 | ac_check_lib_save_LIBS=$LIBS | |
15069 | LIBS="-lbsd $LIBS" | |
15070 | cat >conftest.$ac_ext <<_ACEOF | |
15071 | /* confdefs.h. */ | |
15072 | _ACEOF | |
15073 | cat confdefs.h >>conftest.$ac_ext | |
15074 | cat >>conftest.$ac_ext <<_ACEOF | |
15075 | /* end confdefs.h. */ | |
15076 | ||
15077 | /* Override any GCC internal prototype to avoid an error. | |
15078 | Use char because int might match the return type of a GCC | |
15079 | builtin and then its argument prototype would still apply. */ | |
15080 | #ifdef __cplusplus | |
15081 | extern "C" | |
15082 | #endif | |
15083 | char gethostbyname (); | |
15084 | int | |
15085 | main () | |
15086 | { | |
15087 | return gethostbyname (); | |
15088 | ; | |
15089 | return 0; | |
15090 | } | |
15091 | _ACEOF | |
15092 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15093 | if { (ac_try="$ac_link" | |
15094 | case "(($ac_try" in | |
15095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15096 | *) ac_try_echo=$ac_try;; | |
15097 | esac | |
15098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15099 | (eval "$ac_link") 2>conftest.er1 | |
15100 | ac_status=$? | |
15101 | grep -v '^ *+' conftest.er1 >conftest.err | |
15102 | rm -f conftest.er1 | |
15103 | cat conftest.err >&5 | |
15104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15105 | (exit $ac_status); } && { | |
15106 | test -z "$ac_c_werror_flag" || | |
15107 | test ! -s conftest.err | |
15108 | } && test -s conftest$ac_exeext && | |
15109 | $as_test_x conftest$ac_exeext; then | |
15110 | ac_cv_lib_bsd_gethostbyname=yes | |
15111 | else | |
15112 | echo "$as_me: failed program was:" >&5 | |
15113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15114 | ||
15115 | ac_cv_lib_bsd_gethostbyname=no | |
15116 | fi | |
15117 | ||
15118 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15119 | conftest$ac_exeext conftest.$ac_ext | |
15120 | LIBS=$ac_check_lib_save_LIBS | |
15121 | fi | |
15122 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
15123 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } | |
15124 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
15125 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
15126 | fi | |
15127 | ||
15128 | fi | |
15129 | fi | |
15130 | ||
15131 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
15132 | # socket/setsockopt and other routines are undefined under SCO ODT | |
15133 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
15134 | # on later versions), says Simon Leinen: it contains gethostby* | |
15135 | # variants that don't use the name server (or something). -lsocket | |
15136 | # must be given before -lnsl if both are needed. We assume that | |
15137 | # if connect needs -lnsl, so does gethostbyname. | |
15138 | { echo "$as_me:$LINENO: checking for connect" >&5 | |
15139 | echo $ECHO_N "checking for connect... $ECHO_C" >&6; } | |
15140 | if test "${ac_cv_func_connect+set}" = set; then | |
15141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15142 | else | |
15143 | cat >conftest.$ac_ext <<_ACEOF | |
15144 | /* confdefs.h. */ | |
15145 | _ACEOF | |
15146 | cat confdefs.h >>conftest.$ac_ext | |
15147 | cat >>conftest.$ac_ext <<_ACEOF | |
15148 | /* end confdefs.h. */ | |
15149 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. | |
15150 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15151 | #define connect innocuous_connect | |
15152 | ||
15153 | /* System header to define __stub macros and hopefully few prototypes, | |
15154 | which can conflict with char connect (); below. | |
15155 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15156 | <limits.h> exists even on freestanding compilers. */ | |
15157 | ||
15158 | #ifdef __STDC__ | |
15159 | # include <limits.h> | |
15160 | #else | |
15161 | # include <assert.h> | |
15162 | #endif | |
15163 | ||
15164 | #undef connect | |
15165 | ||
15166 | /* Override any GCC internal prototype to avoid an error. | |
15167 | Use char because int might match the return type of a GCC | |
15168 | builtin and then its argument prototype would still apply. */ | |
15169 | #ifdef __cplusplus | |
15170 | extern "C" | |
15171 | #endif | |
15172 | char connect (); | |
15173 | /* The GNU C library defines this for functions which it implements | |
15174 | to always fail with ENOSYS. Some functions are actually named | |
15175 | something starting with __ and the normal name is an alias. */ | |
15176 | #if defined __stub_connect || defined __stub___connect | |
15177 | choke me | |
15178 | #endif | |
15179 | ||
15180 | int | |
15181 | main () | |
15182 | { | |
15183 | return connect (); | |
15184 | ; | |
15185 | return 0; | |
15186 | } | |
15187 | _ACEOF | |
15188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15189 | if { (ac_try="$ac_link" | |
15190 | case "(($ac_try" in | |
15191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15192 | *) ac_try_echo=$ac_try;; | |
15193 | esac | |
15194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15195 | (eval "$ac_link") 2>conftest.er1 | |
15196 | ac_status=$? | |
15197 | grep -v '^ *+' conftest.er1 >conftest.err | |
15198 | rm -f conftest.er1 | |
15199 | cat conftest.err >&5 | |
15200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15201 | (exit $ac_status); } && { | |
15202 | test -z "$ac_c_werror_flag" || | |
15203 | test ! -s conftest.err | |
15204 | } && test -s conftest$ac_exeext && | |
15205 | $as_test_x conftest$ac_exeext; then | |
15206 | ac_cv_func_connect=yes | |
15207 | else | |
15208 | echo "$as_me: failed program was:" >&5 | |
15209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15210 | ||
15211 | ac_cv_func_connect=no | |
15212 | fi | |
15213 | ||
15214 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15215 | conftest$ac_exeext conftest.$ac_ext | |
15216 | fi | |
15217 | { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
15218 | echo "${ECHO_T}$ac_cv_func_connect" >&6; } | |
15219 | ||
15220 | if test $ac_cv_func_connect = no; then | |
15221 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
15222 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } | |
15223 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
15224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15225 | else | |
15226 | ac_check_lib_save_LIBS=$LIBS | |
15227 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
15228 | cat >conftest.$ac_ext <<_ACEOF | |
15229 | /* confdefs.h. */ | |
15230 | _ACEOF | |
15231 | cat confdefs.h >>conftest.$ac_ext | |
15232 | cat >>conftest.$ac_ext <<_ACEOF | |
15233 | /* end confdefs.h. */ | |
15234 | ||
15235 | /* Override any GCC internal prototype to avoid an error. | |
15236 | Use char because int might match the return type of a GCC | |
15237 | builtin and then its argument prototype would still apply. */ | |
15238 | #ifdef __cplusplus | |
15239 | extern "C" | |
15240 | #endif | |
15241 | char connect (); | |
15242 | int | |
15243 | main () | |
15244 | { | |
15245 | return connect (); | |
15246 | ; | |
15247 | return 0; | |
15248 | } | |
15249 | _ACEOF | |
15250 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15251 | if { (ac_try="$ac_link" | |
15252 | case "(($ac_try" in | |
15253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15254 | *) ac_try_echo=$ac_try;; | |
15255 | esac | |
15256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15257 | (eval "$ac_link") 2>conftest.er1 | |
15258 | ac_status=$? | |
15259 | grep -v '^ *+' conftest.er1 >conftest.err | |
15260 | rm -f conftest.er1 | |
15261 | cat conftest.err >&5 | |
15262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15263 | (exit $ac_status); } && { | |
15264 | test -z "$ac_c_werror_flag" || | |
15265 | test ! -s conftest.err | |
15266 | } && test -s conftest$ac_exeext && | |
15267 | $as_test_x conftest$ac_exeext; then | |
15268 | ac_cv_lib_socket_connect=yes | |
15269 | else | |
15270 | echo "$as_me: failed program was:" >&5 | |
15271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15272 | ||
15273 | ac_cv_lib_socket_connect=no | |
15274 | fi | |
15275 | ||
15276 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15277 | conftest$ac_exeext conftest.$ac_ext | |
15278 | LIBS=$ac_check_lib_save_LIBS | |
15279 | fi | |
15280 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
15281 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } | |
15282 | if test $ac_cv_lib_socket_connect = yes; then | |
15283 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
15284 | fi | |
15285 | ||
15286 | fi | |
15287 | ||
15288 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
15289 | { echo "$as_me:$LINENO: checking for remove" >&5 | |
15290 | echo $ECHO_N "checking for remove... $ECHO_C" >&6; } | |
15291 | if test "${ac_cv_func_remove+set}" = set; then | |
15292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15293 | else | |
15294 | cat >conftest.$ac_ext <<_ACEOF | |
15295 | /* confdefs.h. */ | |
15296 | _ACEOF | |
15297 | cat confdefs.h >>conftest.$ac_ext | |
15298 | cat >>conftest.$ac_ext <<_ACEOF | |
15299 | /* end confdefs.h. */ | |
15300 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. | |
15301 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15302 | #define remove innocuous_remove | |
15303 | ||
15304 | /* System header to define __stub macros and hopefully few prototypes, | |
15305 | which can conflict with char remove (); below. | |
15306 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15307 | <limits.h> exists even on freestanding compilers. */ | |
15308 | ||
15309 | #ifdef __STDC__ | |
15310 | # include <limits.h> | |
15311 | #else | |
15312 | # include <assert.h> | |
15313 | #endif | |
15314 | ||
15315 | #undef remove | |
15316 | ||
15317 | /* Override any GCC internal prototype to avoid an error. | |
15318 | Use char because int might match the return type of a GCC | |
15319 | builtin and then its argument prototype would still apply. */ | |
15320 | #ifdef __cplusplus | |
15321 | extern "C" | |
15322 | #endif | |
15323 | char remove (); | |
15324 | /* The GNU C library defines this for functions which it implements | |
15325 | to always fail with ENOSYS. Some functions are actually named | |
15326 | something starting with __ and the normal name is an alias. */ | |
15327 | #if defined __stub_remove || defined __stub___remove | |
15328 | choke me | |
15329 | #endif | |
15330 | ||
15331 | int | |
15332 | main () | |
15333 | { | |
15334 | return remove (); | |
15335 | ; | |
15336 | return 0; | |
15337 | } | |
15338 | _ACEOF | |
15339 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15340 | if { (ac_try="$ac_link" | |
15341 | case "(($ac_try" in | |
15342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15343 | *) ac_try_echo=$ac_try;; | |
15344 | esac | |
15345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15346 | (eval "$ac_link") 2>conftest.er1 | |
15347 | ac_status=$? | |
15348 | grep -v '^ *+' conftest.er1 >conftest.err | |
15349 | rm -f conftest.er1 | |
15350 | cat conftest.err >&5 | |
15351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15352 | (exit $ac_status); } && { | |
15353 | test -z "$ac_c_werror_flag" || | |
15354 | test ! -s conftest.err | |
15355 | } && test -s conftest$ac_exeext && | |
15356 | $as_test_x conftest$ac_exeext; then | |
15357 | ac_cv_func_remove=yes | |
15358 | else | |
15359 | echo "$as_me: failed program was:" >&5 | |
15360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15361 | ||
15362 | ac_cv_func_remove=no | |
15363 | fi | |
15364 | ||
15365 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15366 | conftest$ac_exeext conftest.$ac_ext | |
15367 | fi | |
15368 | { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
15369 | echo "${ECHO_T}$ac_cv_func_remove" >&6; } | |
15370 | ||
15371 | if test $ac_cv_func_remove = no; then | |
15372 | { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
15373 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } | |
15374 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
15375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15376 | else | |
15377 | ac_check_lib_save_LIBS=$LIBS | |
15378 | LIBS="-lposix $LIBS" | |
15379 | cat >conftest.$ac_ext <<_ACEOF | |
15380 | /* confdefs.h. */ | |
15381 | _ACEOF | |
15382 | cat confdefs.h >>conftest.$ac_ext | |
15383 | cat >>conftest.$ac_ext <<_ACEOF | |
15384 | /* end confdefs.h. */ | |
15385 | ||
15386 | /* Override any GCC internal prototype to avoid an error. | |
15387 | Use char because int might match the return type of a GCC | |
15388 | builtin and then its argument prototype would still apply. */ | |
15389 | #ifdef __cplusplus | |
15390 | extern "C" | |
15391 | #endif | |
15392 | char remove (); | |
15393 | int | |
15394 | main () | |
15395 | { | |
15396 | return remove (); | |
15397 | ; | |
15398 | return 0; | |
15399 | } | |
15400 | _ACEOF | |
15401 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15402 | if { (ac_try="$ac_link" | |
15403 | case "(($ac_try" in | |
15404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15405 | *) ac_try_echo=$ac_try;; | |
15406 | esac | |
15407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15408 | (eval "$ac_link") 2>conftest.er1 | |
15409 | ac_status=$? | |
15410 | grep -v '^ *+' conftest.er1 >conftest.err | |
15411 | rm -f conftest.er1 | |
15412 | cat conftest.err >&5 | |
15413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15414 | (exit $ac_status); } && { | |
15415 | test -z "$ac_c_werror_flag" || | |
15416 | test ! -s conftest.err | |
15417 | } && test -s conftest$ac_exeext && | |
15418 | $as_test_x conftest$ac_exeext; then | |
15419 | ac_cv_lib_posix_remove=yes | |
15420 | else | |
15421 | echo "$as_me: failed program was:" >&5 | |
15422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15423 | ||
15424 | ac_cv_lib_posix_remove=no | |
15425 | fi | |
15426 | ||
15427 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15428 | conftest$ac_exeext conftest.$ac_ext | |
15429 | LIBS=$ac_check_lib_save_LIBS | |
15430 | fi | |
15431 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
15432 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } | |
15433 | if test $ac_cv_lib_posix_remove = yes; then | |
15434 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
15435 | fi | |
15436 | ||
15437 | fi | |
15438 | ||
15439 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
15440 | { echo "$as_me:$LINENO: checking for shmat" >&5 | |
15441 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } | |
15442 | if test "${ac_cv_func_shmat+set}" = set; then | |
15443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15444 | else | |
15445 | cat >conftest.$ac_ext <<_ACEOF | |
15446 | /* confdefs.h. */ | |
15447 | _ACEOF | |
15448 | cat confdefs.h >>conftest.$ac_ext | |
15449 | cat >>conftest.$ac_ext <<_ACEOF | |
15450 | /* end confdefs.h. */ | |
15451 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. | |
15452 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15453 | #define shmat innocuous_shmat | |
15454 | ||
15455 | /* System header to define __stub macros and hopefully few prototypes, | |
15456 | which can conflict with char shmat (); below. | |
15457 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15458 | <limits.h> exists even on freestanding compilers. */ | |
15459 | ||
15460 | #ifdef __STDC__ | |
15461 | # include <limits.h> | |
15462 | #else | |
15463 | # include <assert.h> | |
15464 | #endif | |
15465 | ||
15466 | #undef shmat | |
15467 | ||
15468 | /* Override any GCC internal prototype to avoid an error. | |
15469 | Use char because int might match the return type of a GCC | |
15470 | builtin and then its argument prototype would still apply. */ | |
15471 | #ifdef __cplusplus | |
15472 | extern "C" | |
15473 | #endif | |
15474 | char shmat (); | |
15475 | /* The GNU C library defines this for functions which it implements | |
15476 | to always fail with ENOSYS. Some functions are actually named | |
15477 | something starting with __ and the normal name is an alias. */ | |
15478 | #if defined __stub_shmat || defined __stub___shmat | |
15479 | choke me | |
15480 | #endif | |
15481 | ||
15482 | int | |
15483 | main () | |
15484 | { | |
15485 | return shmat (); | |
15486 | ; | |
15487 | return 0; | |
15488 | } | |
15489 | _ACEOF | |
15490 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15491 | if { (ac_try="$ac_link" | |
15492 | case "(($ac_try" in | |
15493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15494 | *) ac_try_echo=$ac_try;; | |
15495 | esac | |
15496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15497 | (eval "$ac_link") 2>conftest.er1 | |
15498 | ac_status=$? | |
15499 | grep -v '^ *+' conftest.er1 >conftest.err | |
15500 | rm -f conftest.er1 | |
15501 | cat conftest.err >&5 | |
15502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15503 | (exit $ac_status); } && { | |
15504 | test -z "$ac_c_werror_flag" || | |
15505 | test ! -s conftest.err | |
15506 | } && test -s conftest$ac_exeext && | |
15507 | $as_test_x conftest$ac_exeext; then | |
15508 | ac_cv_func_shmat=yes | |
15509 | else | |
15510 | echo "$as_me: failed program was:" >&5 | |
15511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15512 | ||
15513 | ac_cv_func_shmat=no | |
15514 | fi | |
15515 | ||
15516 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15517 | conftest$ac_exeext conftest.$ac_ext | |
15518 | fi | |
15519 | { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
15520 | echo "${ECHO_T}$ac_cv_func_shmat" >&6; } | |
15521 | ||
15522 | if test $ac_cv_func_shmat = no; then | |
15523 | { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
15524 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } | |
15525 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
15526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15527 | else | |
15528 | ac_check_lib_save_LIBS=$LIBS | |
15529 | LIBS="-lipc $LIBS" | |
15530 | cat >conftest.$ac_ext <<_ACEOF | |
15531 | /* confdefs.h. */ | |
15532 | _ACEOF | |
15533 | cat confdefs.h >>conftest.$ac_ext | |
15534 | cat >>conftest.$ac_ext <<_ACEOF | |
15535 | /* end confdefs.h. */ | |
15536 | ||
15537 | /* Override any GCC internal prototype to avoid an error. | |
15538 | Use char because int might match the return type of a GCC | |
15539 | builtin and then its argument prototype would still apply. */ | |
15540 | #ifdef __cplusplus | |
15541 | extern "C" | |
15542 | #endif | |
15543 | char shmat (); | |
15544 | int | |
15545 | main () | |
15546 | { | |
15547 | return shmat (); | |
15548 | ; | |
15549 | return 0; | |
15550 | } | |
15551 | _ACEOF | |
15552 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15553 | if { (ac_try="$ac_link" | |
15554 | case "(($ac_try" in | |
15555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15556 | *) ac_try_echo=$ac_try;; | |
15557 | esac | |
15558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15559 | (eval "$ac_link") 2>conftest.er1 | |
15560 | ac_status=$? | |
15561 | grep -v '^ *+' conftest.er1 >conftest.err | |
15562 | rm -f conftest.er1 | |
15563 | cat conftest.err >&5 | |
15564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15565 | (exit $ac_status); } && { | |
15566 | test -z "$ac_c_werror_flag" || | |
15567 | test ! -s conftest.err | |
15568 | } && test -s conftest$ac_exeext && | |
15569 | $as_test_x conftest$ac_exeext; then | |
15570 | ac_cv_lib_ipc_shmat=yes | |
15571 | else | |
15572 | echo "$as_me: failed program was:" >&5 | |
15573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15574 | ||
15575 | ac_cv_lib_ipc_shmat=no | |
15576 | fi | |
15577 | ||
15578 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15579 | conftest$ac_exeext conftest.$ac_ext | |
15580 | LIBS=$ac_check_lib_save_LIBS | |
15581 | fi | |
15582 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
15583 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } | |
15584 | if test $ac_cv_lib_ipc_shmat = yes; then | |
15585 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
15586 | fi | |
15587 | ||
15588 | fi | |
15589 | fi | |
15590 | ||
15591 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
15592 | ac_save_LDFLAGS=$LDFLAGS | |
15593 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
15594 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
15595 | # check for ICE first), but we must link in the order -lSM -lICE or | |
15596 | # we get undefined symbols. So assume we have SM if we have ICE. | |
15597 | # These have to be linked with before -lX11, unlike the other | |
15598 | # libraries we check for below, so use a different variable. | |
15599 | # John Interrante, Karl Berry | |
15600 | { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
15601 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } | |
15602 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
15603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15604 | else | |
15605 | ac_check_lib_save_LIBS=$LIBS | |
15606 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
15607 | cat >conftest.$ac_ext <<_ACEOF | |
15608 | /* confdefs.h. */ | |
15609 | _ACEOF | |
15610 | cat confdefs.h >>conftest.$ac_ext | |
15611 | cat >>conftest.$ac_ext <<_ACEOF | |
15612 | /* end confdefs.h. */ | |
15613 | ||
15614 | /* Override any GCC internal prototype to avoid an error. | |
15615 | Use char because int might match the return type of a GCC | |
15616 | builtin and then its argument prototype would still apply. */ | |
15617 | #ifdef __cplusplus | |
15618 | extern "C" | |
15619 | #endif | |
15620 | char IceConnectionNumber (); | |
15621 | int | |
15622 | main () | |
15623 | { | |
15624 | return IceConnectionNumber (); | |
15625 | ; | |
15626 | return 0; | |
15627 | } | |
15628 | _ACEOF | |
15629 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15630 | if { (ac_try="$ac_link" | |
15631 | case "(($ac_try" in | |
15632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15633 | *) ac_try_echo=$ac_try;; | |
15634 | esac | |
15635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15636 | (eval "$ac_link") 2>conftest.er1 | |
15637 | ac_status=$? | |
15638 | grep -v '^ *+' conftest.er1 >conftest.err | |
15639 | rm -f conftest.er1 | |
15640 | cat conftest.err >&5 | |
15641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15642 | (exit $ac_status); } && { | |
15643 | test -z "$ac_c_werror_flag" || | |
15644 | test ! -s conftest.err | |
15645 | } && test -s conftest$ac_exeext && | |
15646 | $as_test_x conftest$ac_exeext; then | |
15647 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
15648 | else | |
15649 | echo "$as_me: failed program was:" >&5 | |
15650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15651 | ||
15652 | ac_cv_lib_ICE_IceConnectionNumber=no | |
15653 | fi | |
15654 | ||
15655 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15656 | conftest$ac_exeext conftest.$ac_ext | |
15657 | LIBS=$ac_check_lib_save_LIBS | |
15658 | fi | |
15659 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
15660 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | |
15661 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
15662 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
15663 | fi | |
15664 | ||
15665 | LDFLAGS=$ac_save_LDFLAGS | |
15666 | ||
15667 | fi | |
15668 | ||
15669 | ||
15670 | ||
15671 | ||
15672 | ||
15673 | ac_ext=c | |
15674 | ac_cpp='$CPP $CPPFLAGS' | |
15675 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15676 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15677 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15678 | ||
15679 | acx_pthread_ok=no | |
15680 | ||
15681 | # We used to check for pthread.h first, but this fails if pthread.h | |
15682 | # requires special compiler flags (e.g. on True64 or Sequent). | |
15683 | # It gets checked for in the link test anyway. | |
15684 | ||
15685 | # First of all, check if the user has set any of the PTHREAD_LIBS, | |
15686 | # etcetera environment variables, and if threads linking works using | |
15687 | # them: | |
15688 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then | |
15689 | save_CFLAGS="$CFLAGS" | |
15690 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
15691 | save_LIBS="$LIBS" | |
15692 | LIBS="$PTHREAD_LIBS $LIBS" | |
15693 | { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 | |
15694 | echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; } | |
15695 | cat >conftest.$ac_ext <<_ACEOF | |
15696 | /* confdefs.h. */ | |
15697 | _ACEOF | |
15698 | cat confdefs.h >>conftest.$ac_ext | |
15699 | cat >>conftest.$ac_ext <<_ACEOF | |
15700 | /* end confdefs.h. */ | |
15701 | ||
15702 | /* Override any GCC internal prototype to avoid an error. | |
15703 | Use char because int might match the return type of a GCC | |
15704 | builtin and then its argument prototype would still apply. */ | |
15705 | #ifdef __cplusplus | |
15706 | extern "C" | |
15707 | #endif | |
15708 | char pthread_join (); | |
15709 | int | |
15710 | main () | |
15711 | { | |
15712 | return pthread_join (); | |
15713 | ; | |
15714 | return 0; | |
15715 | } | |
15716 | _ACEOF | |
15717 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15718 | if { (ac_try="$ac_link" | |
15719 | case "(($ac_try" in | |
15720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15721 | *) ac_try_echo=$ac_try;; | |
15722 | esac | |
15723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15724 | (eval "$ac_link") 2>conftest.er1 | |
15725 | ac_status=$? | |
15726 | grep -v '^ *+' conftest.er1 >conftest.err | |
15727 | rm -f conftest.er1 | |
15728 | cat conftest.err >&5 | |
15729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15730 | (exit $ac_status); } && { | |
15731 | test -z "$ac_c_werror_flag" || | |
15732 | test ! -s conftest.err | |
15733 | } && test -s conftest$ac_exeext && | |
15734 | $as_test_x conftest$ac_exeext; then | |
15735 | acx_pthread_ok=yes | |
15736 | else | |
15737 | echo "$as_me: failed program was:" >&5 | |
15738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15739 | ||
15740 | ||
15741 | fi | |
15742 | ||
15743 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15744 | conftest$ac_exeext conftest.$ac_ext | |
15745 | { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 | |
15746 | echo "${ECHO_T}$acx_pthread_ok" >&6; } | |
15747 | if test x"$acx_pthread_ok" = xno; then | |
15748 | PTHREAD_LIBS="" | |
15749 | PTHREAD_CFLAGS="" | |
15750 | fi | |
15751 | LIBS="$save_LIBS" | |
15752 | CFLAGS="$save_CFLAGS" | |
15753 | fi | |
15754 | ||
15755 | # We must check for the threads library under a number of different | |
15756 | # names; the ordering is very important because some systems | |
15757 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the | |
15758 | # libraries is broken (non-POSIX). | |
15759 | ||
15760 | # Create a list of thread flags to try. Items starting with a "-" are | |
15761 | # C compiler flags, and other items are library names, except for "none" | |
15762 | # which indicates that we try without any flags at all, and "pthread-config" | |
15763 | # which is a program returning the flags for the Pth emulation library. | |
15764 | ||
15765 | acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" | |
15766 | ||
15767 | # The ordering *is* (sometimes) important. Some notes on the | |
15768 | # individual items follow: | |
15769 | ||
15770 | # pthreads: AIX (must check this before -lpthread) | |
15771 | # none: in case threads are in libc; should be tried before -Kthread and | |
15772 | # other compiler flags to prevent continual compiler warnings | |
15773 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) | |
15774 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) | |
15775 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) | |
15776 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) | |
15777 | # -pthreads: Solaris/gcc | |
15778 | # -mthreads: Mingw32/gcc, Lynx/gcc | |
15779 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it | |
15780 | # doesn't hurt to check since this sometimes defines pthreads too; | |
15781 | # also defines -D_REENTRANT) | |
15782 | # pthread: Linux, etcetera | |
15783 | # --thread-safe: KAI C++ | |
15784 | # pthread-config: use pthread-config program (for GNU Pth library) | |
15785 | ||
15786 | case "${host_cpu}-${host_os}" in | |
15787 | *solaris*) | |
15788 | ||
15789 | # On Solaris (at least, for some versions), libc contains stubbed | |
15790 | # (non-functional) versions of the pthreads routines, so link-based | |
15791 | # tests will erroneously succeed. (We need to link with -pthread or | |
15792 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather | |
15793 | # a function called by this macro, so we could check for that, but | |
15794 | # who knows whether they'll stub that too in a future libc.) So, | |
15795 | # we'll just look for -pthreads and -lpthread first: | |
15796 | ||
15797 | acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags" | |
15798 | ;; | |
15799 | esac | |
15800 | ||
15801 | if test x"$acx_pthread_ok" = xno; then | |
15802 | for flag in $acx_pthread_flags; do | |
15803 | ||
15804 | case $flag in | |
15805 | none) | |
15806 | { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
15807 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; } | |
15808 | ;; | |
15809 | ||
15810 | -*) | |
15811 | { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
15812 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; } | |
15813 | PTHREAD_CFLAGS="$flag" | |
15814 | ;; | |
15815 | ||
15816 | pthread-config) | |
15817 | # Extract the first word of "pthread-config", so it can be a program name with args. | |
15818 | set dummy pthread-config; ac_word=$2 | |
15819 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15820 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
15821 | if test "${ac_cv_prog_acx_pthread_config+set}" = set; then | |
15822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15823 | else | |
15824 | if test -n "$acx_pthread_config"; then | |
15825 | ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. | |
15826 | else | |
15827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15828 | for as_dir in $PATH | |
15829 | do | |
15830 | IFS=$as_save_IFS | |
15831 | test -z "$as_dir" && as_dir=. | |
15832 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15833 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
15834 | ac_cv_prog_acx_pthread_config="yes" | |
15835 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15836 | break 2 | |
15837 | fi | |
15838 | done | |
15839 | done | |
15840 | IFS=$as_save_IFS | |
15841 | ||
15842 | test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" | |
15843 | fi | |
15844 | fi | |
15845 | acx_pthread_config=$ac_cv_prog_acx_pthread_config | |
15846 | if test -n "$acx_pthread_config"; then | |
15847 | { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5 | |
15848 | echo "${ECHO_T}$acx_pthread_config" >&6; } | |
15849 | else | |
15850 | { echo "$as_me:$LINENO: result: no" >&5 | |
15851 | echo "${ECHO_T}no" >&6; } | |
15852 | fi | |
15853 | ||
15854 | ||
15855 | if test x"$acx_pthread_config" = xno; then continue; fi | |
15856 | PTHREAD_CFLAGS="`pthread-config --cflags`" | |
15857 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" | |
15858 | ;; | |
15859 | ||
15860 | *) | |
15861 | { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
15862 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; } | |
15863 | PTHREAD_LIBS="-l$flag" | |
15864 | ;; | |
15865 | esac | |
15866 | ||
15867 | save_LIBS="$LIBS" | |
15868 | save_CFLAGS="$CFLAGS" | |
15869 | LIBS="$PTHREAD_LIBS $LIBS" | |
15870 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
15871 | ||
15872 | # Check for various functions. We must include pthread.h, | |
15873 | # since some functions may be macros. (On the Sequent, we | |
15874 | # need a special flag -Kthread to make this header compile.) | |
15875 | # We check for pthread_join because it is in -lpthread on IRIX | |
15876 | # while pthread_create is in libc. We check for pthread_attr_init | |
15877 | # due to DEC craziness with -lpthreads. We check for | |
15878 | # pthread_cleanup_push because it is one of the few pthread | |
15879 | # functions on Solaris that doesn't have a non-functional libc stub. | |
15880 | # We try pthread_create on general principles. | |
15881 | cat >conftest.$ac_ext <<_ACEOF | |
15882 | /* confdefs.h. */ | |
15883 | _ACEOF | |
15884 | cat confdefs.h >>conftest.$ac_ext | |
15885 | cat >>conftest.$ac_ext <<_ACEOF | |
15886 | /* end confdefs.h. */ | |
15887 | #include <pthread.h> | |
15888 | int | |
15889 | main () | |
15890 | { | |
15891 | pthread_t th; pthread_join(th, 0); | |
15892 | pthread_attr_init(0); pthread_cleanup_push(0, 0); | |
15893 | pthread_create(0,0,0,0); pthread_cleanup_pop(0); | |
15894 | ; | |
15895 | return 0; | |
15896 | } | |
15897 | _ACEOF | |
15898 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15899 | if { (ac_try="$ac_link" | |
15900 | case "(($ac_try" in | |
15901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15902 | *) ac_try_echo=$ac_try;; | |
15903 | esac | |
15904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15905 | (eval "$ac_link") 2>conftest.er1 | |
15906 | ac_status=$? | |
15907 | grep -v '^ *+' conftest.er1 >conftest.err | |
15908 | rm -f conftest.er1 | |
15909 | cat conftest.err >&5 | |
15910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15911 | (exit $ac_status); } && { | |
15912 | test -z "$ac_c_werror_flag" || | |
15913 | test ! -s conftest.err | |
15914 | } && test -s conftest$ac_exeext && | |
15915 | $as_test_x conftest$ac_exeext; then | |
15916 | acx_pthread_ok=yes | |
15917 | else | |
15918 | echo "$as_me: failed program was:" >&5 | |
15919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15920 | ||
15921 | ||
15922 | fi | |
15923 | ||
15924 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15925 | conftest$ac_exeext conftest.$ac_ext | |
15926 | ||
15927 | LIBS="$save_LIBS" | |
15928 | CFLAGS="$save_CFLAGS" | |
15929 | ||
15930 | { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 | |
15931 | echo "${ECHO_T}$acx_pthread_ok" >&6; } | |
15932 | if test "x$acx_pthread_ok" = xyes; then | |
15933 | break; | |
15934 | fi | |
15935 | ||
15936 | PTHREAD_LIBS="" | |
15937 | PTHREAD_CFLAGS="" | |
15938 | done | |
15939 | fi | |
15940 | ||
15941 | # Various other checks: | |
15942 | if test "x$acx_pthread_ok" = xyes; then | |
15943 | save_LIBS="$LIBS" | |
15944 | LIBS="$PTHREAD_LIBS $LIBS" | |
15945 | save_CFLAGS="$CFLAGS" | |
15946 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
15947 | ||
15948 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. | |
15949 | { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 | |
15950 | echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; } | |
15951 | attr_name=unknown | |
15952 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do | |
15953 | cat >conftest.$ac_ext <<_ACEOF | |
15954 | /* confdefs.h. */ | |
15955 | _ACEOF | |
15956 | cat confdefs.h >>conftest.$ac_ext | |
15957 | cat >>conftest.$ac_ext <<_ACEOF | |
15958 | /* end confdefs.h. */ | |
15959 | #include <pthread.h> | |
15960 | int | |
15961 | main () | |
15962 | { | |
15963 | int attr=$attr; | |
15964 | ; | |
15965 | return 0; | |
15966 | } | |
15967 | _ACEOF | |
15968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15969 | if { (ac_try="$ac_link" | |
15970 | case "(($ac_try" in | |
15971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15972 | *) ac_try_echo=$ac_try;; | |
15973 | esac | |
15974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15975 | (eval "$ac_link") 2>conftest.er1 | |
15976 | ac_status=$? | |
15977 | grep -v '^ *+' conftest.er1 >conftest.err | |
15978 | rm -f conftest.er1 | |
15979 | cat conftest.err >&5 | |
15980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15981 | (exit $ac_status); } && { | |
15982 | test -z "$ac_c_werror_flag" || | |
15983 | test ! -s conftest.err | |
15984 | } && test -s conftest$ac_exeext && | |
15985 | $as_test_x conftest$ac_exeext; then | |
15986 | attr_name=$attr; break | |
15987 | else | |
15988 | echo "$as_me: failed program was:" >&5 | |
15989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15990 | ||
15991 | ||
15992 | fi | |
15993 | ||
15994 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15995 | conftest$ac_exeext conftest.$ac_ext | |
15996 | done | |
15997 | { echo "$as_me:$LINENO: result: $attr_name" >&5 | |
15998 | echo "${ECHO_T}$attr_name" >&6; } | |
15999 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then | |
16000 | ||
16001 | cat >>confdefs.h <<_ACEOF | |
16002 | #define PTHREAD_CREATE_JOINABLE $attr_name | |
16003 | _ACEOF | |
16004 | ||
16005 | fi | |
16006 | ||
16007 | { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
16008 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; } | |
16009 | flag=no | |
16010 | case "${host_cpu}-${host_os}" in | |
16011 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; | |
16012 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; | |
16013 | esac | |
16014 | { echo "$as_me:$LINENO: result: ${flag}" >&5 | |
16015 | echo "${ECHO_T}${flag}" >&6; } | |
16016 | if test "x$flag" != xno; then | |
16017 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" | |
16018 | fi | |
16019 | ||
16020 | LIBS="$save_LIBS" | |
16021 | CFLAGS="$save_CFLAGS" | |
16022 | ||
16023 | # More AIX lossage: must compile with cc_r | |
16024 | # Extract the first word of "cc_r", so it can be a program name with args. | |
16025 | set dummy cc_r; ac_word=$2 | |
16026 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
16027 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
16028 | if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then | |
16029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16030 | else | |
16031 | if test -n "$PTHREAD_CC"; then | |
16032 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. | |
16033 | else | |
16034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16035 | for as_dir in $PATH | |
16036 | do | |
16037 | IFS=$as_save_IFS | |
16038 | test -z "$as_dir" && as_dir=. | |
16039 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16040 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
16041 | ac_cv_prog_PTHREAD_CC="cc_r" | |
16042 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16043 | break 2 | |
16044 | fi | |
16045 | done | |
16046 | done | |
16047 | IFS=$as_save_IFS | |
16048 | ||
16049 | test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}" | |
16050 | fi | |
16051 | fi | |
16052 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC | |
16053 | if test -n "$PTHREAD_CC"; then | |
16054 | { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 | |
16055 | echo "${ECHO_T}$PTHREAD_CC" >&6; } | |
16056 | else | |
16057 | { echo "$as_me:$LINENO: result: no" >&5 | |
16058 | echo "${ECHO_T}no" >&6; } | |
16059 | fi | |
16060 | ||
16061 | ||
16062 | else | |
16063 | PTHREAD_CC="$CC" | |
16064 | fi | |
16065 | ||
16066 | ||
16067 | ||
16068 | ||
16069 | ||
16070 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | |
16071 | if test x"$acx_pthread_ok" = xyes; then | |
16072 | ||
16073 | cat >>confdefs.h <<\_ACEOF | |
16074 | #define HAVE_PTHREAD 1 | |
16075 | _ACEOF | |
16076 | ||
16077 | : | |
16078 | else | |
16079 | acx_pthread_ok=no | |
16080 | ||
16081 | fi | |
16082 | ac_ext=c | |
16083 | ac_cpp='$CPP $CPPFLAGS' | |
16084 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16085 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16086 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16087 | ||
16088 | ||
16089 | ||
16090 | # | |
16091 | # There isn't a reliable way to know we should use the Apple OpenGL framework | |
16092 | # without a configure option. A Mac OS X user may have installed an | |
16093 | # alternative GL implementation (e.g., Mesa), which may or may not depend on X. | |
16094 | # | |
16095 | ||
16096 | # Check whether --with-apple-opengl-framework was given. | |
16097 | if test "${with_apple_opengl_framework+set}" = set; then | |
16098 | withval=$with_apple_opengl_framework; | |
16099 | fi | |
16100 | ||
16101 | if test "X$with_apple_opengl_framework" = "Xyes"; then | |
16102 | ||
16103 | cat >>confdefs.h <<\_ACEOF | |
16104 | #define HAVE_APPLE_OPENGL_FRAMEWORK 1 | |
16105 | _ACEOF | |
16106 | ||
16107 | GL_LIBS="-framework OpenGL" | |
16108 | else | |
16109 | ac_ext=c | |
16110 | ac_cpp='$CPP $CPPFLAGS' | |
16111 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16112 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16113 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16114 | ||
16115 | ||
16116 | { echo "$as_me:$LINENO: checking whether we are using the Microsoft C compiler" >&5 | |
16117 | echo $ECHO_N "checking whether we are using the Microsoft C compiler... $ECHO_C" >&6; } | |
16118 | if test "${ax_cv_c_compiler_ms+set}" = set; then | |
16119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16120 | else | |
16121 | cat >conftest.$ac_ext <<_ACEOF | |
16122 | /* confdefs.h. */ | |
16123 | _ACEOF | |
16124 | cat confdefs.h >>conftest.$ac_ext | |
16125 | cat >>conftest.$ac_ext <<_ACEOF | |
16126 | /* end confdefs.h. */ | |
16127 | ||
16128 | int | |
16129 | main () | |
16130 | { | |
16131 | #ifndef _MSC_VER | |
16132 | choke me | |
16133 | #endif | |
16134 | ||
16135 | ; | |
16136 | return 0; | |
16137 | } | |
16138 | _ACEOF | |
16139 | rm -f conftest.$ac_objext | |
16140 | if { (ac_try="$ac_compile" | |
16141 | case "(($ac_try" in | |
16142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16143 | *) ac_try_echo=$ac_try;; | |
16144 | esac | |
16145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16146 | (eval "$ac_compile") 2>conftest.er1 | |
16147 | ac_status=$? | |
16148 | grep -v '^ *+' conftest.er1 >conftest.err | |
16149 | rm -f conftest.er1 | |
16150 | cat conftest.err >&5 | |
16151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16152 | (exit $ac_status); } && { | |
16153 | test -z "$ac_c_werror_flag" || | |
16154 | test ! -s conftest.err | |
16155 | } && test -s conftest.$ac_objext; then | |
16156 | ax_compiler_ms=yes | |
16157 | else | |
16158 | echo "$as_me: failed program was:" >&5 | |
16159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16160 | ||
16161 | ax_compiler_ms=no | |
16162 | fi | |
16163 | ||
16164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16165 | ax_cv_c_compiler_ms=$ax_compiler_ms | |
16166 | ||
16167 | fi | |
16168 | { echo "$as_me:$LINENO: result: $ax_cv_c_compiler_ms" >&5 | |
16169 | echo "${ECHO_T}$ax_cv_c_compiler_ms" >&6; } | |
16170 | if test X$ax_compiler_ms = Xno; then | |
16171 | GL_CFLAGS="${PTHREAD_CFLAGS}" | |
16172 | GL_LIBS="${PTHREAD_LIBS} -lm" | |
16173 | fi | |
16174 | ||
16175 | # | |
16176 | # Use x_includes and x_libraries if they have been set (presumably by | |
16177 | # AC_PATH_X). | |
16178 | # | |
16179 | if test "X$no_x" != "Xyes"; then | |
16180 | if test -n "$x_includes"; then | |
16181 | GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" | |
16182 | fi | |
16183 | if test -n "$x_libraries"; then | |
16184 | GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" | |
16185 | fi | |
16186 | fi | |
16187 | ||
16188 | ||
16189 | for ac_header in windows.h | |
16190 | do | |
16191 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16192 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16193 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16194 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
16195 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16197 | fi | |
16198 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
16199 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16200 | echo "${ECHO_T}$ac_res" >&6; } | |
16201 | else | |
16202 | # Is the header compilable? | |
16203 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16204 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
16205 | cat >conftest.$ac_ext <<_ACEOF | |
16206 | /* confdefs.h. */ | |
16207 | _ACEOF | |
16208 | cat confdefs.h >>conftest.$ac_ext | |
16209 | cat >>conftest.$ac_ext <<_ACEOF | |
16210 | /* end confdefs.h. */ | |
16211 | $ac_includes_default | |
16212 | #include <$ac_header> | |
16213 | _ACEOF | |
16214 | rm -f conftest.$ac_objext | |
16215 | if { (ac_try="$ac_compile" | |
16216 | case "(($ac_try" in | |
16217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16218 | *) ac_try_echo=$ac_try;; | |
16219 | esac | |
16220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16221 | (eval "$ac_compile") 2>conftest.er1 | |
16222 | ac_status=$? | |
16223 | grep -v '^ *+' conftest.er1 >conftest.err | |
16224 | rm -f conftest.er1 | |
16225 | cat conftest.err >&5 | |
16226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16227 | (exit $ac_status); } && { | |
16228 | test -z "$ac_c_werror_flag" || | |
16229 | test ! -s conftest.err | |
16230 | } && test -s conftest.$ac_objext; then | |
16231 | ac_header_compiler=yes | |
16232 | else | |
16233 | echo "$as_me: failed program was:" >&5 | |
16234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16235 | ||
16236 | ac_header_compiler=no | |
16237 | fi | |
16238 | ||
16239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16240 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16241 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
16242 | ||
16243 | # Is the header present? | |
16244 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16245 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
16246 | cat >conftest.$ac_ext <<_ACEOF | |
16247 | /* confdefs.h. */ | |
16248 | _ACEOF | |
16249 | cat confdefs.h >>conftest.$ac_ext | |
16250 | cat >>conftest.$ac_ext <<_ACEOF | |
16251 | /* end confdefs.h. */ | |
16252 | #include <$ac_header> | |
16253 | _ACEOF | |
16254 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
16255 | case "(($ac_try" in | |
16256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16257 | *) ac_try_echo=$ac_try;; | |
16258 | esac | |
16259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16260 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
16261 | ac_status=$? | |
16262 | grep -v '^ *+' conftest.er1 >conftest.err | |
16263 | rm -f conftest.er1 | |
16264 | cat conftest.err >&5 | |
16265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16266 | (exit $ac_status); } >/dev/null && { | |
16267 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16268 | test ! -s conftest.err | |
16269 | }; then | |
16270 | ac_header_preproc=yes | |
16271 | else | |
16272 | echo "$as_me: failed program was:" >&5 | |
16273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16274 | ||
16275 | ac_header_preproc=no | |
16276 | fi | |
16277 | ||
16278 | rm -f conftest.err conftest.$ac_ext | |
16279 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16280 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
16281 | ||
16282 | # So? What about this header? | |
16283 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16284 | yes:no: ) | |
16285 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16286 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16287 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16288 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16289 | ac_header_preproc=yes | |
16290 | ;; | |
16291 | no:yes:* ) | |
16292 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
16293 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16294 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16295 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16296 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16297 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16298 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16299 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16300 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16301 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16302 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16303 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
16304 | ( cat <<\_ASBOX | |
16305 | ## -------------------------------------- ## | |
16306 | ## Report this to tiff@lists.maptools.org ## | |
16307 | ## -------------------------------------- ## | |
16308 | _ASBOX | |
16309 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
16310 | ;; | |
16311 | esac | |
16312 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16313 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
16314 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16316 | else | |
16317 | eval "$as_ac_Header=\$ac_header_preproc" | |
16318 | fi | |
16319 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
16320 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16321 | echo "${ECHO_T}$ac_res" >&6; } | |
16322 | ||
16323 | fi | |
16324 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16325 | cat >>confdefs.h <<_ACEOF | |
16326 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16327 | _ACEOF | |
16328 | ||
16329 | fi | |
16330 | ||
16331 | done | |
16332 | ||
16333 | ||
16334 | { echo "$as_me:$LINENO: checking for OpenGL library" >&5 | |
16335 | echo $ECHO_N "checking for OpenGL library... $ECHO_C" >&6; } | |
16336 | if test "${ax_cv_check_gl_libgl+set}" = set; then | |
16337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16338 | else | |
16339 | ax_cv_check_gl_libgl="no" | |
16340 | ax_save_CPPFLAGS="${CPPFLAGS}" | |
16341 | CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" | |
16342 | ax_save_LIBS="${LIBS}" | |
16343 | LIBS="" | |
16344 | ax_check_libs="-lopengl32 -lGL" | |
16345 | for ax_lib in ${ax_check_libs}; do | |
16346 | if test X$ax_compiler_ms = Xyes; then | |
16347 | ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` | |
16348 | else | |
16349 | ax_try_lib="${ax_lib}" | |
16350 | fi | |
16351 | LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" | |
16352 | cat >conftest.$ac_ext <<_ACEOF | |
16353 | /* confdefs.h. */ | |
16354 | _ACEOF | |
16355 | cat confdefs.h >>conftest.$ac_ext | |
16356 | cat >>conftest.$ac_ext <<_ACEOF | |
16357 | /* end confdefs.h. */ | |
16358 | ||
16359 | # if HAVE_WINDOWS_H && defined(_WIN32) | |
16360 | # include <windows.h> | |
16361 | # endif | |
16362 | # include <GL/gl.h> | |
16363 | int | |
16364 | main () | |
16365 | { | |
16366 | glBegin(0) | |
16367 | ; | |
16368 | return 0; | |
16369 | } | |
16370 | _ACEOF | |
16371 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16372 | if { (ac_try="$ac_link" | |
16373 | case "(($ac_try" in | |
16374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16375 | *) ac_try_echo=$ac_try;; | |
16376 | esac | |
16377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16378 | (eval "$ac_link") 2>conftest.er1 | |
16379 | ac_status=$? | |
16380 | grep -v '^ *+' conftest.er1 >conftest.err | |
16381 | rm -f conftest.er1 | |
16382 | cat conftest.err >&5 | |
16383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16384 | (exit $ac_status); } && { | |
16385 | test -z "$ac_c_werror_flag" || | |
16386 | test ! -s conftest.err | |
16387 | } && test -s conftest$ac_exeext && | |
16388 | $as_test_x conftest$ac_exeext; then | |
16389 | ax_cv_check_gl_libgl="${ax_try_lib}"; break | |
16390 | else | |
16391 | echo "$as_me: failed program was:" >&5 | |
16392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16393 | ||
16394 | ||
16395 | fi | |
16396 | ||
16397 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16398 | conftest$ac_exeext conftest.$ac_ext | |
16399 | done | |
16400 | LIBS=${ax_save_LIBS} | |
16401 | CPPFLAGS=${ax_save_CPPFLAGS} | |
16402 | fi | |
16403 | { echo "$as_me:$LINENO: result: $ax_cv_check_gl_libgl" >&5 | |
16404 | echo "${ECHO_T}$ax_cv_check_gl_libgl" >&6; } | |
16405 | ||
16406 | if test "X${ax_cv_check_gl_libgl}" = "Xno"; then | |
16407 | no_gl="yes" | |
16408 | GL_CFLAGS="" | |
16409 | GL_LIBS="" | |
16410 | else | |
16411 | GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" | |
16412 | fi | |
16413 | ac_ext=c | |
16414 | ac_cpp='$CPP $CPPFLAGS' | |
16415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16418 | ||
16419 | fi | |
16420 | ||
16421 | ||
16422 | ||
16423 | ||
16424 | ||
16425 | ||
16426 | ac_ext=cpp | |
16427 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16428 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16429 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16430 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16431 | if test -z "$CXX"; then | |
16432 | if test -n "$CCC"; then | |
16433 | CXX=$CCC | |
16434 | else | |
16435 | if test -n "$ac_tool_prefix"; then | |
16436 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
16437 | do | |
16438 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
16439 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
16440 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
16441 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
16442 | if test "${ac_cv_prog_CXX+set}" = set; then | |
16443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16444 | else | |
16445 | if test -n "$CXX"; then | |
16446 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
16447 | else | |
16448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16449 | for as_dir in $PATH | |
16450 | do | |
16451 | IFS=$as_save_IFS | |
16452 | test -z "$as_dir" && as_dir=. | |
16453 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16454 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
16455 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
16456 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16457 | break 2 | |
16458 | fi | |
16459 | done | |
16460 | done | |
16461 | IFS=$as_save_IFS | |
16462 | ||
16463 | fi | |
16464 | fi | |
16465 | CXX=$ac_cv_prog_CXX | |
16466 | if test -n "$CXX"; then | |
16467 | { echo "$as_me:$LINENO: result: $CXX" >&5 | |
16468 | echo "${ECHO_T}$CXX" >&6; } | |
16469 | else | |
16470 | { echo "$as_me:$LINENO: result: no" >&5 | |
16471 | echo "${ECHO_T}no" >&6; } | |
16472 | fi | |
16473 | ||
16474 | ||
16475 | test -n "$CXX" && break | |
16476 | done | |
16477 | fi | |
16478 | if test -z "$CXX"; then | |
16479 | ac_ct_CXX=$CXX | |
16480 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
16481 | do | |
16482 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
16483 | set dummy $ac_prog; ac_word=$2 | |
16484 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
16485 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
16486 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
16487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16488 | else | |
16489 | if test -n "$ac_ct_CXX"; then | |
16490 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
16491 | else | |
16492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16493 | for as_dir in $PATH | |
16494 | do | |
16495 | IFS=$as_save_IFS | |
16496 | test -z "$as_dir" && as_dir=. | |
16497 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16498 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
16499 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
16500 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16501 | break 2 | |
16502 | fi | |
16503 | done | |
16504 | done | |
16505 | IFS=$as_save_IFS | |
16506 | ||
16507 | fi | |
16508 | fi | |
16509 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
16510 | if test -n "$ac_ct_CXX"; then | |
16511 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
16512 | echo "${ECHO_T}$ac_ct_CXX" >&6; } | |
16513 | else | |
16514 | { echo "$as_me:$LINENO: result: no" >&5 | |
16515 | echo "${ECHO_T}no" >&6; } | |
16516 | fi | |
16517 | ||
16518 | ||
16519 | test -n "$ac_ct_CXX" && break | |
16520 | done | |
16521 | ||
16522 | if test "x$ac_ct_CXX" = x; then | |
16523 | CXX="g++" | |
16524 | else | |
16525 | case $cross_compiling:$ac_tool_warned in | |
16526 | yes:) | |
16527 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
16528 | whose name does not start with the host triplet. If you think this | |
16529 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
16530 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
16531 | whose name does not start with the host triplet. If you think this | |
16532 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
16533 | ac_tool_warned=yes ;; | |
16534 | esac | |
16535 | CXX=$ac_ct_CXX | |
16536 | fi | |
16537 | fi | |
16538 | ||
16539 | fi | |
16540 | fi | |
16541 | # Provide some information about the compiler. | |
16542 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 | |
16543 | ac_compiler=`set X $ac_compile; echo $2` | |
16544 | { (ac_try="$ac_compiler --version >&5" | |
16545 | case "(($ac_try" in | |
16546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16547 | *) ac_try_echo=$ac_try;; | |
16548 | esac | |
16549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16550 | (eval "$ac_compiler --version >&5") 2>&5 | |
16551 | ac_status=$? | |
16552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16553 | (exit $ac_status); } | |
16554 | { (ac_try="$ac_compiler -v >&5" | |
16555 | case "(($ac_try" in | |
16556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16557 | *) ac_try_echo=$ac_try;; | |
16558 | esac | |
16559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16560 | (eval "$ac_compiler -v >&5") 2>&5 | |
16561 | ac_status=$? | |
16562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16563 | (exit $ac_status); } | |
16564 | { (ac_try="$ac_compiler -V >&5" | |
16565 | case "(($ac_try" in | |
16566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16567 | *) ac_try_echo=$ac_try;; | |
16568 | esac | |
16569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16570 | (eval "$ac_compiler -V >&5") 2>&5 | |
16571 | ac_status=$? | |
16572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16573 | (exit $ac_status); } | |
16574 | ||
16575 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
16576 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | |
16577 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
16578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16579 | else | |
16580 | cat >conftest.$ac_ext <<_ACEOF | |
16581 | /* confdefs.h. */ | |
16582 | _ACEOF | |
16583 | cat confdefs.h >>conftest.$ac_ext | |
16584 | cat >>conftest.$ac_ext <<_ACEOF | |
16585 | /* end confdefs.h. */ | |
16586 | ||
16587 | int | |
16588 | main () | |
16589 | { | |
16590 | #ifndef __GNUC__ | |
16591 | choke me | |
16592 | #endif | |
16593 | ||
16594 | ; | |
16595 | return 0; | |
16596 | } | |
16597 | _ACEOF | |
16598 | rm -f conftest.$ac_objext | |
16599 | if { (ac_try="$ac_compile" | |
16600 | case "(($ac_try" in | |
16601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16602 | *) ac_try_echo=$ac_try;; | |
16603 | esac | |
16604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16605 | (eval "$ac_compile") 2>conftest.er1 | |
16606 | ac_status=$? | |
16607 | grep -v '^ *+' conftest.er1 >conftest.err | |
16608 | rm -f conftest.er1 | |
16609 | cat conftest.err >&5 | |
16610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16611 | (exit $ac_status); } && { | |
16612 | test -z "$ac_cxx_werror_flag" || | |
16613 | test ! -s conftest.err | |
16614 | } && test -s conftest.$ac_objext; then | |
16615 | ac_compiler_gnu=yes | |
16616 | else | |
16617 | echo "$as_me: failed program was:" >&5 | |
16618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16619 | ||
16620 | ac_compiler_gnu=no | |
16621 | fi | |
16622 | ||
16623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16624 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
16625 | ||
16626 | fi | |
16627 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
16628 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | |
16629 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
16630 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
16631 | ac_save_CXXFLAGS=$CXXFLAGS | |
16632 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
16633 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | |
16634 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
16635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16636 | else | |
16637 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
16638 | ac_cxx_werror_flag=yes | |
16639 | ac_cv_prog_cxx_g=no | |
16640 | CXXFLAGS="-g" | |
16641 | cat >conftest.$ac_ext <<_ACEOF | |
16642 | /* confdefs.h. */ | |
16643 | _ACEOF | |
16644 | cat confdefs.h >>conftest.$ac_ext | |
16645 | cat >>conftest.$ac_ext <<_ACEOF | |
16646 | /* end confdefs.h. */ | |
16647 | ||
16648 | int | |
16649 | main () | |
16650 | { | |
16651 | ||
16652 | ; | |
16653 | return 0; | |
16654 | } | |
16655 | _ACEOF | |
16656 | rm -f conftest.$ac_objext | |
16657 | if { (ac_try="$ac_compile" | |
16658 | case "(($ac_try" in | |
16659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16660 | *) ac_try_echo=$ac_try;; | |
16661 | esac | |
16662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16663 | (eval "$ac_compile") 2>conftest.er1 | |
16664 | ac_status=$? | |
16665 | grep -v '^ *+' conftest.er1 >conftest.err | |
16666 | rm -f conftest.er1 | |
16667 | cat conftest.err >&5 | |
16668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16669 | (exit $ac_status); } && { | |
16670 | test -z "$ac_cxx_werror_flag" || | |
16671 | test ! -s conftest.err | |
16672 | } && test -s conftest.$ac_objext; then | |
16673 | ac_cv_prog_cxx_g=yes | |
16674 | else | |
16675 | echo "$as_me: failed program was:" >&5 | |
16676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16677 | ||
16678 | CXXFLAGS="" | |
16679 | cat >conftest.$ac_ext <<_ACEOF | |
16680 | /* confdefs.h. */ | |
16681 | _ACEOF | |
16682 | cat confdefs.h >>conftest.$ac_ext | |
16683 | cat >>conftest.$ac_ext <<_ACEOF | |
16684 | /* end confdefs.h. */ | |
16685 | ||
16686 | int | |
16687 | main () | |
16688 | { | |
16689 | ||
16690 | ; | |
16691 | return 0; | |
16692 | } | |
16693 | _ACEOF | |
16694 | rm -f conftest.$ac_objext | |
16695 | if { (ac_try="$ac_compile" | |
16696 | case "(($ac_try" in | |
16697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16698 | *) ac_try_echo=$ac_try;; | |
16699 | esac | |
16700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16701 | (eval "$ac_compile") 2>conftest.er1 | |
16702 | ac_status=$? | |
16703 | grep -v '^ *+' conftest.er1 >conftest.err | |
16704 | rm -f conftest.er1 | |
16705 | cat conftest.err >&5 | |
16706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16707 | (exit $ac_status); } && { | |
16708 | test -z "$ac_cxx_werror_flag" || | |
16709 | test ! -s conftest.err | |
16710 | } && test -s conftest.$ac_objext; then | |
16711 | : | |
16712 | else | |
16713 | echo "$as_me: failed program was:" >&5 | |
16714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16715 | ||
16716 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
16717 | CXXFLAGS="-g" | |
16718 | cat >conftest.$ac_ext <<_ACEOF | |
16719 | /* confdefs.h. */ | |
16720 | _ACEOF | |
16721 | cat confdefs.h >>conftest.$ac_ext | |
16722 | cat >>conftest.$ac_ext <<_ACEOF | |
16723 | /* end confdefs.h. */ | |
16724 | ||
16725 | int | |
16726 | main () | |
16727 | { | |
16728 | ||
16729 | ; | |
16730 | return 0; | |
16731 | } | |
16732 | _ACEOF | |
16733 | rm -f conftest.$ac_objext | |
16734 | if { (ac_try="$ac_compile" | |
16735 | case "(($ac_try" in | |
16736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16737 | *) ac_try_echo=$ac_try;; | |
16738 | esac | |
16739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16740 | (eval "$ac_compile") 2>conftest.er1 | |
16741 | ac_status=$? | |
16742 | grep -v '^ *+' conftest.er1 >conftest.err | |
16743 | rm -f conftest.er1 | |
16744 | cat conftest.err >&5 | |
16745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16746 | (exit $ac_status); } && { | |
16747 | test -z "$ac_cxx_werror_flag" || | |
16748 | test ! -s conftest.err | |
16749 | } && test -s conftest.$ac_objext; then | |
16750 | ac_cv_prog_cxx_g=yes | |
16751 | else | |
16752 | echo "$as_me: failed program was:" >&5 | |
16753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16754 | ||
16755 | ||
16756 | fi | |
16757 | ||
16758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16759 | fi | |
16760 | ||
16761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16762 | fi | |
16763 | ||
16764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16765 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
16766 | fi | |
16767 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
16768 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | |
16769 | if test "$ac_test_CXXFLAGS" = set; then | |
16770 | CXXFLAGS=$ac_save_CXXFLAGS | |
16771 | elif test $ac_cv_prog_cxx_g = yes; then | |
16772 | if test "$GXX" = yes; then | |
16773 | CXXFLAGS="-g -O2" | |
16774 | else | |
16775 | CXXFLAGS="-g" | |
16776 | fi | |
16777 | else | |
16778 | if test "$GXX" = yes; then | |
16779 | CXXFLAGS="-O2" | |
16780 | else | |
16781 | CXXFLAGS= | |
16782 | fi | |
16783 | fi | |
16784 | ac_ext=c | |
16785 | ac_cpp='$CPP $CPPFLAGS' | |
16786 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16787 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16788 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16789 | ||
16790 | depcc="$CXX" am_compiler_list= | |
16791 | ||
16792 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
16793 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
16794 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
16795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16796 | else | |
16797 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
16798 | # We make a subdir and do the tests there. Otherwise we can end up | |
16799 | # making bogus files that we don't know about and never remove. For | |
16800 | # instance it was reported that on HP-UX the gcc test will end up | |
16801 | # making a dummy file named `D' -- because `-MD' means `put the output | |
16802 | # in D'. | |
16803 | mkdir conftest.dir | |
16804 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
16805 | # using a relative directory. | |
16806 | cp "$am_depcomp" conftest.dir | |
16807 | cd conftest.dir | |
16808 | # We will build objects and dependencies in a subdirectory because | |
16809 | # it helps to detect inapplicable dependency modes. For instance | |
16810 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
16811 | # side effect of compilation, but ICC will put the dependencies in | |
16812 | # the current directory while Tru64 will put them in the object | |
16813 | # directory. | |
16814 | mkdir sub | |
16815 | ||
16816 | am_cv_CXX_dependencies_compiler_type=none | |
16817 | if test "$am_compiler_list" = ""; then | |
16818 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
16819 | fi | |
16820 | for depmode in $am_compiler_list; do | |
16821 | # Setup a source with many dependencies, because some compilers | |
16822 | # like to wrap large dependency lists on column 80 (with \), and | |
16823 | # we should not choose a depcomp mode which is confused by this. | |
16824 | # | |
16825 | # We need to recreate these files for each test, as the compiler may | |
16826 | # overwrite some of them when testing with obscure command lines. | |
16827 | # This happens at least with the AIX C compiler. | |
16828 | : > sub/conftest.c | |
16829 | for i in 1 2 3 4 5 6; do | |
16830 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
16831 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
16832 | # Solaris 8's {/usr,}/bin/sh. | |
16833 | touch sub/conftst$i.h | |
16834 | done | |
16835 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
16836 | ||
16837 | case $depmode in | |
16838 | nosideeffect) | |
16839 | # after this tag, mechanisms are not by side-effect, so they'll | |
16840 | # only be used when explicitly requested | |
16841 | if test "x$enable_dependency_tracking" = xyes; then | |
16842 | continue | |
16843 | else | |
16844 | break | |
16845 | fi | |
16846 | ;; | |
16847 | none) break ;; | |
16848 | esac | |
16849 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
16850 | # mode. It turns out that the SunPro C++ compiler does not properly | |
16851 | # handle `-M -o', and we need to detect this. | |
16852 | if depmode=$depmode \ | |
16853 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
16854 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
16855 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
16856 | >/dev/null 2>conftest.err && | |
16857 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
16858 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
16859 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
16860 | # icc doesn't choke on unknown options, it will just issue warnings | |
16861 | # or remarks (even with -Werror). So we grep stderr for any message | |
16862 | # that says an option was ignored or not supported. | |
16863 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
16864 | # icc: Command line warning: ignoring option '-M'; no argument required | |
16865 | # The diagnosis changed in icc 8.0: | |
16866 | # icc: Command line remark: option '-MP' not supported | |
16867 | if (grep 'ignoring option' conftest.err || | |
16868 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
16869 | am_cv_CXX_dependencies_compiler_type=$depmode | |
16870 | break | |
16871 | fi | |
16872 | fi | |
16873 | done | |
16874 | ||
16875 | cd .. | |
16876 | rm -rf conftest.dir | |
16877 | else | |
16878 | am_cv_CXX_dependencies_compiler_type=none | |
16879 | fi | |
16880 | ||
16881 | fi | |
16882 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
16883 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } | |
16884 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
16885 | ||
16886 | ||
16887 | ||
16888 | if | |
16889 | test "x$enable_dependency_tracking" != xno \ | |
16890 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
16891 | am__fastdepCXX_TRUE= | |
16892 | am__fastdepCXX_FALSE='#' | |
16893 | else | |
16894 | am__fastdepCXX_TRUE='#' | |
16895 | am__fastdepCXX_FALSE= | |
16896 | fi | |
16897 | ||
16898 | ||
16899 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
16900 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
16901 | (test "X$CXX" != "Xg++"))) ; then | |
16902 | ac_ext=cpp | |
16903 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16904 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16905 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16906 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16907 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
16908 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } | |
16909 | if test -z "$CXXCPP"; then | |
16910 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
16911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16912 | else | |
16913 | # Double quotes because CXXCPP needs to be expanded | |
16914 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
16915 | do | |
16916 | ac_preproc_ok=false | |
16917 | for ac_cxx_preproc_warn_flag in '' yes | |
16918 | do | |
16919 | # Use a header file that comes with gcc, so configuring glibc | |
16920 | # with a fresh cross-compiler works. | |
16921 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16922 | # <limits.h> exists even on freestanding compilers. | |
16923 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
16924 | # not just through cpp. "Syntax error" is here to catch this case. | |
16925 | cat >conftest.$ac_ext <<_ACEOF | |
16926 | /* confdefs.h. */ | |
16927 | _ACEOF | |
16928 | cat confdefs.h >>conftest.$ac_ext | |
16929 | cat >>conftest.$ac_ext <<_ACEOF | |
16930 | /* end confdefs.h. */ | |
16931 | #ifdef __STDC__ | |
16932 | # include <limits.h> | |
16933 | #else | |
16934 | # include <assert.h> | |
16935 | #endif | |
16936 | Syntax error | |
16937 | _ACEOF | |
16938 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
16939 | case "(($ac_try" in | |
16940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16941 | *) ac_try_echo=$ac_try;; | |
16942 | esac | |
16943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16944 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
16945 | ac_status=$? | |
16946 | grep -v '^ *+' conftest.er1 >conftest.err | |
16947 | rm -f conftest.er1 | |
16948 | cat conftest.err >&5 | |
16949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16950 | (exit $ac_status); } >/dev/null && { | |
16951 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
16952 | test ! -s conftest.err | |
16953 | }; then | |
16954 | : | |
16955 | else | |
16956 | echo "$as_me: failed program was:" >&5 | |
16957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16958 | ||
16959 | # Broken: fails on valid input. | |
16960 | continue | |
16961 | fi | |
16962 | ||
16963 | rm -f conftest.err conftest.$ac_ext | |
16964 | ||
16965 | # OK, works on sane cases. Now check whether nonexistent headers | |
16966 | # can be detected and how. | |
16967 | cat >conftest.$ac_ext <<_ACEOF | |
16968 | /* confdefs.h. */ | |
16969 | _ACEOF | |
16970 | cat confdefs.h >>conftest.$ac_ext | |
16971 | cat >>conftest.$ac_ext <<_ACEOF | |
16972 | /* end confdefs.h. */ | |
16973 | #include <ac_nonexistent.h> | |
16974 | _ACEOF | |
16975 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
16976 | case "(($ac_try" in | |
16977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16978 | *) ac_try_echo=$ac_try;; | |
16979 | esac | |
16980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16981 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
16982 | ac_status=$? | |
16983 | grep -v '^ *+' conftest.er1 >conftest.err | |
16984 | rm -f conftest.er1 | |
16985 | cat conftest.err >&5 | |
16986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16987 | (exit $ac_status); } >/dev/null && { | |
16988 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
16989 | test ! -s conftest.err | |
16990 | }; then | |
16991 | # Broken: success on invalid input. | |
16992 | continue | |
16993 | else | |
16994 | echo "$as_me: failed program was:" >&5 | |
16995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16996 | ||
16997 | # Passes both tests. | |
16998 | ac_preproc_ok=: | |
16999 | break | |
17000 | fi | |
17001 | ||
17002 | rm -f conftest.err conftest.$ac_ext | |
17003 | ||
17004 | done | |
17005 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17006 | rm -f conftest.err conftest.$ac_ext | |
17007 | if $ac_preproc_ok; then | |
17008 | break | |
17009 | fi | |
17010 | ||
17011 | done | |
17012 | ac_cv_prog_CXXCPP=$CXXCPP | |
17013 | ||
17014 | fi | |
17015 | CXXCPP=$ac_cv_prog_CXXCPP | |
17016 | else | |
17017 | ac_cv_prog_CXXCPP=$CXXCPP | |
17018 | fi | |
17019 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
17020 | echo "${ECHO_T}$CXXCPP" >&6; } | |
17021 | ac_preproc_ok=false | |
17022 | for ac_cxx_preproc_warn_flag in '' yes | |
17023 | do | |
17024 | # Use a header file that comes with gcc, so configuring glibc | |
17025 | # with a fresh cross-compiler works. | |
17026 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17027 | # <limits.h> exists even on freestanding compilers. | |
17028 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17029 | # not just through cpp. "Syntax error" is here to catch this case. | |
17030 | cat >conftest.$ac_ext <<_ACEOF | |
17031 | /* confdefs.h. */ | |
17032 | _ACEOF | |
17033 | cat confdefs.h >>conftest.$ac_ext | |
17034 | cat >>conftest.$ac_ext <<_ACEOF | |
17035 | /* end confdefs.h. */ | |
17036 | #ifdef __STDC__ | |
17037 | # include <limits.h> | |
17038 | #else | |
17039 | # include <assert.h> | |
17040 | #endif | |
17041 | Syntax error | |
17042 | _ACEOF | |
17043 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17044 | case "(($ac_try" in | |
17045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17046 | *) ac_try_echo=$ac_try;; | |
17047 | esac | |
17048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17049 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17050 | ac_status=$? | |
17051 | grep -v '^ *+' conftest.er1 >conftest.err | |
17052 | rm -f conftest.er1 | |
17053 | cat conftest.err >&5 | |
17054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17055 | (exit $ac_status); } >/dev/null && { | |
17056 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
17057 | test ! -s conftest.err | |
17058 | }; then | |
17059 | : | |
17060 | else | |
17061 | echo "$as_me: failed program was:" >&5 | |
17062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17063 | ||
17064 | # Broken: fails on valid input. | |
17065 | continue | |
17066 | fi | |
17067 | ||
17068 | rm -f conftest.err conftest.$ac_ext | |
17069 | ||
17070 | # OK, works on sane cases. Now check whether nonexistent headers | |
17071 | # can be detected and how. | |
17072 | cat >conftest.$ac_ext <<_ACEOF | |
17073 | /* confdefs.h. */ | |
17074 | _ACEOF | |
17075 | cat confdefs.h >>conftest.$ac_ext | |
17076 | cat >>conftest.$ac_ext <<_ACEOF | |
17077 | /* end confdefs.h. */ | |
17078 | #include <ac_nonexistent.h> | |
17079 | _ACEOF | |
17080 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17081 | case "(($ac_try" in | |
17082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17083 | *) ac_try_echo=$ac_try;; | |
17084 | esac | |
17085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17086 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17087 | ac_status=$? | |
17088 | grep -v '^ *+' conftest.er1 >conftest.err | |
17089 | rm -f conftest.er1 | |
17090 | cat conftest.err >&5 | |
17091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17092 | (exit $ac_status); } >/dev/null && { | |
17093 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
17094 | test ! -s conftest.err | |
17095 | }; then | |
17096 | # Broken: success on invalid input. | |
17097 | continue | |
17098 | else | |
17099 | echo "$as_me: failed program was:" >&5 | |
17100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17101 | ||
17102 | # Passes both tests. | |
17103 | ac_preproc_ok=: | |
17104 | break | |
17105 | fi | |
17106 | ||
17107 | rm -f conftest.err conftest.$ac_ext | |
17108 | ||
17109 | done | |
17110 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17111 | rm -f conftest.err conftest.$ac_ext | |
17112 | if $ac_preproc_ok; then | |
17113 | : | |
17114 | else | |
17115 | _lt_caught_CXX_error=yes | |
17116 | fi | |
17117 | ||
17118 | ac_ext=c | |
17119 | ac_cpp='$CPP $CPPFLAGS' | |
17120 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17121 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17122 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17123 | ||
17124 | else | |
17125 | _lt_caught_CXX_error=yes | |
17126 | fi | |
17127 | ||
17128 | ||
17129 | ||
17130 | ac_ext=cpp | |
17131 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17132 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17133 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17134 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17135 | if test -z "$CXX"; then | |
17136 | if test -n "$CCC"; then | |
17137 | CXX=$CCC | |
17138 | else | |
17139 | if test -n "$ac_tool_prefix"; then | |
17140 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
17141 | do | |
17142 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
17143 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
17144 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
17145 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
17146 | if test "${ac_cv_prog_CXX+set}" = set; then | |
17147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17148 | else | |
17149 | if test -n "$CXX"; then | |
17150 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
17151 | else | |
17152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17153 | for as_dir in $PATH | |
17154 | do | |
17155 | IFS=$as_save_IFS | |
17156 | test -z "$as_dir" && as_dir=. | |
17157 | for ac_exec_ext in '' $ac_executable_extensions; do | |
17158 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
17159 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
17160 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
17161 | break 2 | |
17162 | fi | |
17163 | done | |
17164 | done | |
17165 | IFS=$as_save_IFS | |
17166 | ||
17167 | fi | |
17168 | fi | |
17169 | CXX=$ac_cv_prog_CXX | |
17170 | if test -n "$CXX"; then | |
17171 | { echo "$as_me:$LINENO: result: $CXX" >&5 | |
17172 | echo "${ECHO_T}$CXX" >&6; } | |
17173 | else | |
17174 | { echo "$as_me:$LINENO: result: no" >&5 | |
17175 | echo "${ECHO_T}no" >&6; } | |
17176 | fi | |
17177 | ||
17178 | ||
17179 | test -n "$CXX" && break | |
17180 | done | |
17181 | fi | |
17182 | if test -z "$CXX"; then | |
17183 | ac_ct_CXX=$CXX | |
17184 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
17185 | do | |
17186 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
17187 | set dummy $ac_prog; ac_word=$2 | |
17188 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
17189 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
17190 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
17191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17192 | else | |
17193 | if test -n "$ac_ct_CXX"; then | |
17194 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
17195 | else | |
17196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17197 | for as_dir in $PATH | |
17198 | do | |
17199 | IFS=$as_save_IFS | |
17200 | test -z "$as_dir" && as_dir=. | |
17201 | for ac_exec_ext in '' $ac_executable_extensions; do | |
17202 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
17203 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
17204 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
17205 | break 2 | |
17206 | fi | |
17207 | done | |
17208 | done | |
17209 | IFS=$as_save_IFS | |
17210 | ||
17211 | fi | |
17212 | fi | |
17213 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
17214 | if test -n "$ac_ct_CXX"; then | |
17215 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
17216 | echo "${ECHO_T}$ac_ct_CXX" >&6; } | |
17217 | else | |
17218 | { echo "$as_me:$LINENO: result: no" >&5 | |
17219 | echo "${ECHO_T}no" >&6; } | |
17220 | fi | |
17221 | ||
17222 | ||
17223 | test -n "$ac_ct_CXX" && break | |
17224 | done | |
17225 | ||
17226 | if test "x$ac_ct_CXX" = x; then | |
17227 | CXX="g++" | |
17228 | else | |
17229 | case $cross_compiling:$ac_tool_warned in | |
17230 | yes:) | |
17231 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
17232 | whose name does not start with the host triplet. If you think this | |
17233 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
17234 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
17235 | whose name does not start with the host triplet. If you think this | |
17236 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
17237 | ac_tool_warned=yes ;; | |
17238 | esac | |
17239 | CXX=$ac_ct_CXX | |
17240 | fi | |
17241 | fi | |
17242 | ||
17243 | fi | |
17244 | fi | |
17245 | # Provide some information about the compiler. | |
17246 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 | |
17247 | ac_compiler=`set X $ac_compile; echo $2` | |
17248 | { (ac_try="$ac_compiler --version >&5" | |
17249 | case "(($ac_try" in | |
17250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17251 | *) ac_try_echo=$ac_try;; | |
17252 | esac | |
17253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17254 | (eval "$ac_compiler --version >&5") 2>&5 | |
17255 | ac_status=$? | |
17256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17257 | (exit $ac_status); } | |
17258 | { (ac_try="$ac_compiler -v >&5" | |
17259 | case "(($ac_try" in | |
17260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17261 | *) ac_try_echo=$ac_try;; | |
17262 | esac | |
17263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17264 | (eval "$ac_compiler -v >&5") 2>&5 | |
17265 | ac_status=$? | |
17266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17267 | (exit $ac_status); } | |
17268 | { (ac_try="$ac_compiler -V >&5" | |
17269 | case "(($ac_try" in | |
17270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17271 | *) ac_try_echo=$ac_try;; | |
17272 | esac | |
17273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17274 | (eval "$ac_compiler -V >&5") 2>&5 | |
17275 | ac_status=$? | |
17276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17277 | (exit $ac_status); } | |
17278 | ||
17279 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
17280 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | |
17281 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
17282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17283 | else | |
17284 | cat >conftest.$ac_ext <<_ACEOF | |
17285 | /* confdefs.h. */ | |
17286 | _ACEOF | |
17287 | cat confdefs.h >>conftest.$ac_ext | |
17288 | cat >>conftest.$ac_ext <<_ACEOF | |
17289 | /* end confdefs.h. */ | |
17290 | ||
17291 | int | |
17292 | main () | |
17293 | { | |
17294 | #ifndef __GNUC__ | |
17295 | choke me | |
17296 | #endif | |
17297 | ||
17298 | ; | |
17299 | return 0; | |
17300 | } | |
17301 | _ACEOF | |
17302 | rm -f conftest.$ac_objext | |
17303 | if { (ac_try="$ac_compile" | |
17304 | case "(($ac_try" in | |
17305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17306 | *) ac_try_echo=$ac_try;; | |
17307 | esac | |
17308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17309 | (eval "$ac_compile") 2>conftest.er1 | |
17310 | ac_status=$? | |
17311 | grep -v '^ *+' conftest.er1 >conftest.err | |
17312 | rm -f conftest.er1 | |
17313 | cat conftest.err >&5 | |
17314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17315 | (exit $ac_status); } && { | |
17316 | test -z "$ac_cxx_werror_flag" || | |
17317 | test ! -s conftest.err | |
17318 | } && test -s conftest.$ac_objext; then | |
17319 | ac_compiler_gnu=yes | |
17320 | else | |
17321 | echo "$as_me: failed program was:" >&5 | |
17322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17323 | ||
17324 | ac_compiler_gnu=no | |
17325 | fi | |
17326 | ||
17327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17328 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
17329 | ||
17330 | fi | |
17331 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
17332 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | |
17333 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
17334 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
17335 | ac_save_CXXFLAGS=$CXXFLAGS | |
17336 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
17337 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | |
17338 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
17339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17340 | else | |
17341 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
17342 | ac_cxx_werror_flag=yes | |
17343 | ac_cv_prog_cxx_g=no | |
17344 | CXXFLAGS="-g" | |
17345 | cat >conftest.$ac_ext <<_ACEOF | |
17346 | /* confdefs.h. */ | |
17347 | _ACEOF | |
17348 | cat confdefs.h >>conftest.$ac_ext | |
17349 | cat >>conftest.$ac_ext <<_ACEOF | |
17350 | /* end confdefs.h. */ | |
17351 | ||
17352 | int | |
17353 | main () | |
17354 | { | |
17355 | ||
17356 | ; | |
17357 | return 0; | |
17358 | } | |
17359 | _ACEOF | |
17360 | rm -f conftest.$ac_objext | |
17361 | if { (ac_try="$ac_compile" | |
17362 | case "(($ac_try" in | |
17363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17364 | *) ac_try_echo=$ac_try;; | |
17365 | esac | |
17366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17367 | (eval "$ac_compile") 2>conftest.er1 | |
17368 | ac_status=$? | |
17369 | grep -v '^ *+' conftest.er1 >conftest.err | |
17370 | rm -f conftest.er1 | |
17371 | cat conftest.err >&5 | |
17372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17373 | (exit $ac_status); } && { | |
17374 | test -z "$ac_cxx_werror_flag" || | |
17375 | test ! -s conftest.err | |
17376 | } && test -s conftest.$ac_objext; then | |
17377 | ac_cv_prog_cxx_g=yes | |
17378 | else | |
17379 | echo "$as_me: failed program was:" >&5 | |
17380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17381 | ||
17382 | CXXFLAGS="" | |
17383 | cat >conftest.$ac_ext <<_ACEOF | |
17384 | /* confdefs.h. */ | |
17385 | _ACEOF | |
17386 | cat confdefs.h >>conftest.$ac_ext | |
17387 | cat >>conftest.$ac_ext <<_ACEOF | |
17388 | /* end confdefs.h. */ | |
17389 | ||
17390 | int | |
17391 | main () | |
17392 | { | |
17393 | ||
17394 | ; | |
17395 | return 0; | |
17396 | } | |
17397 | _ACEOF | |
17398 | rm -f conftest.$ac_objext | |
17399 | if { (ac_try="$ac_compile" | |
17400 | case "(($ac_try" in | |
17401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17402 | *) ac_try_echo=$ac_try;; | |
17403 | esac | |
17404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17405 | (eval "$ac_compile") 2>conftest.er1 | |
17406 | ac_status=$? | |
17407 | grep -v '^ *+' conftest.er1 >conftest.err | |
17408 | rm -f conftest.er1 | |
17409 | cat conftest.err >&5 | |
17410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17411 | (exit $ac_status); } && { | |
17412 | test -z "$ac_cxx_werror_flag" || | |
17413 | test ! -s conftest.err | |
17414 | } && test -s conftest.$ac_objext; then | |
17415 | : | |
17416 | else | |
17417 | echo "$as_me: failed program was:" >&5 | |
17418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17419 | ||
17420 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
17421 | CXXFLAGS="-g" | |
17422 | cat >conftest.$ac_ext <<_ACEOF | |
17423 | /* confdefs.h. */ | |
17424 | _ACEOF | |
17425 | cat confdefs.h >>conftest.$ac_ext | |
17426 | cat >>conftest.$ac_ext <<_ACEOF | |
17427 | /* end confdefs.h. */ | |
17428 | ||
17429 | int | |
17430 | main () | |
17431 | { | |
17432 | ||
17433 | ; | |
17434 | return 0; | |
17435 | } | |
17436 | _ACEOF | |
17437 | rm -f conftest.$ac_objext | |
17438 | if { (ac_try="$ac_compile" | |
17439 | case "(($ac_try" in | |
17440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17441 | *) ac_try_echo=$ac_try;; | |
17442 | esac | |
17443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17444 | (eval "$ac_compile") 2>conftest.er1 | |
17445 | ac_status=$? | |
17446 | grep -v '^ *+' conftest.er1 >conftest.err | |
17447 | rm -f conftest.er1 | |
17448 | cat conftest.err >&5 | |
17449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17450 | (exit $ac_status); } && { | |
17451 | test -z "$ac_cxx_werror_flag" || | |
17452 | test ! -s conftest.err | |
17453 | } && test -s conftest.$ac_objext; then | |
17454 | ac_cv_prog_cxx_g=yes | |
17455 | else | |
17456 | echo "$as_me: failed program was:" >&5 | |
17457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17458 | ||
17459 | ||
17460 | fi | |
17461 | ||
17462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17463 | fi | |
17464 | ||
17465 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17466 | fi | |
17467 | ||
17468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17469 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
17470 | fi | |
17471 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
17472 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | |
17473 | if test "$ac_test_CXXFLAGS" = set; then | |
17474 | CXXFLAGS=$ac_save_CXXFLAGS | |
17475 | elif test $ac_cv_prog_cxx_g = yes; then | |
17476 | if test "$GXX" = yes; then | |
17477 | CXXFLAGS="-g -O2" | |
17478 | else | |
17479 | CXXFLAGS="-g" | |
17480 | fi | |
17481 | else | |
17482 | if test "$GXX" = yes; then | |
17483 | CXXFLAGS="-O2" | |
17484 | else | |
17485 | CXXFLAGS= | |
17486 | fi | |
17487 | fi | |
17488 | ac_ext=c | |
17489 | ac_cpp='$CPP $CPPFLAGS' | |
17490 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17491 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17492 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17493 | ||
17494 | depcc="$CXX" am_compiler_list= | |
17495 | ||
17496 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
17497 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
17498 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
17499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17500 | else | |
17501 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
17502 | # We make a subdir and do the tests there. Otherwise we can end up | |
17503 | # making bogus files that we don't know about and never remove. For | |
17504 | # instance it was reported that on HP-UX the gcc test will end up | |
17505 | # making a dummy file named `D' -- because `-MD' means `put the output | |
17506 | # in D'. | |
17507 | mkdir conftest.dir | |
17508 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
17509 | # using a relative directory. | |
17510 | cp "$am_depcomp" conftest.dir | |
17511 | cd conftest.dir | |
17512 | # We will build objects and dependencies in a subdirectory because | |
17513 | # it helps to detect inapplicable dependency modes. For instance | |
17514 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
17515 | # side effect of compilation, but ICC will put the dependencies in | |
17516 | # the current directory while Tru64 will put them in the object | |
17517 | # directory. | |
17518 | mkdir sub | |
17519 | ||
17520 | am_cv_CXX_dependencies_compiler_type=none | |
17521 | if test "$am_compiler_list" = ""; then | |
17522 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
17523 | fi | |
17524 | for depmode in $am_compiler_list; do | |
17525 | # Setup a source with many dependencies, because some compilers | |
17526 | # like to wrap large dependency lists on column 80 (with \), and | |
17527 | # we should not choose a depcomp mode which is confused by this. | |
17528 | # | |
17529 | # We need to recreate these files for each test, as the compiler may | |
17530 | # overwrite some of them when testing with obscure command lines. | |
17531 | # This happens at least with the AIX C compiler. | |
17532 | : > sub/conftest.c | |
17533 | for i in 1 2 3 4 5 6; do | |
17534 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
17535 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
17536 | # Solaris 8's {/usr,}/bin/sh. | |
17537 | touch sub/conftst$i.h | |
17538 | done | |
17539 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
17540 | ||
17541 | case $depmode in | |
17542 | nosideeffect) | |
17543 | # after this tag, mechanisms are not by side-effect, so they'll | |
17544 | # only be used when explicitly requested | |
17545 | if test "x$enable_dependency_tracking" = xyes; then | |
17546 | continue | |
17547 | else | |
17548 | break | |
17549 | fi | |
17550 | ;; | |
17551 | none) break ;; | |
17552 | esac | |
17553 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
17554 | # mode. It turns out that the SunPro C++ compiler does not properly | |
17555 | # handle `-M -o', and we need to detect this. | |
17556 | if depmode=$depmode \ | |
17557 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
17558 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
17559 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
17560 | >/dev/null 2>conftest.err && | |
17561 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
17562 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
17563 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
17564 | # icc doesn't choke on unknown options, it will just issue warnings | |
17565 | # or remarks (even with -Werror). So we grep stderr for any message | |
17566 | # that says an option was ignored or not supported. | |
17567 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
17568 | # icc: Command line warning: ignoring option '-M'; no argument required | |
17569 | # The diagnosis changed in icc 8.0: | |
17570 | # icc: Command line remark: option '-MP' not supported | |
17571 | if (grep 'ignoring option' conftest.err || | |
17572 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
17573 | am_cv_CXX_dependencies_compiler_type=$depmode | |
17574 | break | |
17575 | fi | |
17576 | fi | |
17577 | done | |
17578 | ||
17579 | cd .. | |
17580 | rm -rf conftest.dir | |
17581 | else | |
17582 | am_cv_CXX_dependencies_compiler_type=none | |
17583 | fi | |
17584 | ||
17585 | fi | |
17586 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
17587 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } | |
17588 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
17589 | ||
17590 | ||
17591 | ||
17592 | if | |
17593 | test "x$enable_dependency_tracking" != xno \ | |
17594 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
17595 | am__fastdepCXX_TRUE= | |
17596 | am__fastdepCXX_FALSE='#' | |
17597 | else | |
17598 | am__fastdepCXX_TRUE='#' | |
17599 | am__fastdepCXX_FALSE= | |
17600 | fi | |
17601 | ||
17602 | ||
17603 | ac_ext=cpp | |
17604 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17605 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17606 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17607 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17608 | ||
17609 | archive_cmds_need_lc_CXX=no | |
17610 | allow_undefined_flag_CXX= | |
17611 | always_export_symbols_CXX=no | |
17612 | archive_expsym_cmds_CXX= | |
17613 | export_dynamic_flag_spec_CXX= | |
17614 | hardcode_direct_CXX=no | |
17615 | hardcode_libdir_flag_spec_CXX= | |
17616 | hardcode_libdir_flag_spec_ld_CXX= | |
17617 | hardcode_libdir_separator_CXX= | |
17618 | hardcode_minus_L_CXX=no | |
17619 | hardcode_shlibpath_var_CXX=unsupported | |
17620 | hardcode_automatic_CXX=no | |
17621 | inherit_rpath_CXX=no | |
17622 | module_cmds_CXX= | |
17623 | module_expsym_cmds_CXX= | |
17624 | link_all_deplibs_CXX=unknown | |
17625 | old_archive_cmds_CXX=$old_archive_cmds | |
17626 | no_undefined_flag_CXX= | |
17627 | whole_archive_flag_spec_CXX= | |
17628 | enable_shared_with_static_runtimes_CXX=no | |
17629 | ||
17630 | # Source file extension for C++ test sources. | |
17631 | ac_ext=cpp | |
17632 | ||
17633 | # Object file extension for compiled C++ test sources. | |
17634 | objext=o | |
17635 | objext_CXX=$objext | |
17636 | ||
17637 | # No sense in running all these tests if we already determined that | |
17638 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
17639 | # are currently assumed to apply to all compilers on this platform, | |
17640 | # and will be corrupted by setting them based on a non-working compiler. | |
17641 | if test "$_lt_caught_CXX_error" != yes; then | |
17642 | # Code to be used in simple compile tests | |
17643 | lt_simple_compile_test_code="int some_variable = 0;\n" | |
17644 | ||
17645 | # Code to be used in simple link tests | |
17646 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' | |
17647 | ||
17648 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
17649 | ||
17650 | ||
17651 | ||
17652 | ||
17653 | ||
17654 | ||
17655 | # If no C compiler was specified, use CC. | |
17656 | LTCC=${LTCC-"$CC"} | |
17657 | ||
17658 | # If no C compiler flags were specified, use CFLAGS. | |
17659 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
17660 | ||
17661 | # Allow CC to be a program name with arguments. | |
17662 | compiler=$CC | |
17663 | ||
17664 | ||
17665 | # save warnings/boilerplate of simple test code | |
17666 | ac_outfile=conftest.$ac_objext | |
17667 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
17668 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
17669 | _lt_compiler_boilerplate=`cat conftest.err` | |
17670 | $RM conftest* | |
17671 | ||
17672 | ac_outfile=conftest.$ac_objext | |
17673 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
17674 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
17675 | _lt_linker_boilerplate=`cat conftest.err` | |
17676 | $RM conftest* | |
17677 | ||
17678 | ||
17679 | # Allow CC to be a program name with arguments. | |
17680 | lt_save_CC=$CC | |
17681 | lt_save_LD=$LD | |
17682 | lt_save_GCC=$GCC | |
17683 | GCC=$GXX | |
17684 | lt_save_with_gnu_ld=$with_gnu_ld | |
17685 | lt_save_path_LD=$lt_cv_path_LD | |
17686 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
17687 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
17688 | else | |
17689 | $as_unset lt_cv_prog_gnu_ld | |
17690 | fi | |
17691 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
17692 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
17693 | else | |
17694 | $as_unset lt_cv_path_LD | |
17695 | fi | |
17696 | test -z "${LDCXX+set}" || LD=$LDCXX | |
17697 | CC=${CXX-"c++"} | |
17698 | compiler=$CC | |
17699 | compiler_CXX=$CC | |
17700 | for cc_temp in $compiler""; do | |
17701 | case $cc_temp in | |
17702 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
17703 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
17704 | \-*) ;; | |
17705 | *) break;; | |
17706 | esac | |
17707 | done | |
17708 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
17709 | ||
17710 | ||
17711 | if test -n "$compiler"; then | |
17712 | # We don't want -fno-exception when compiling C++ code, so set the | |
17713 | # no_builtin_flag separately | |
17714 | if test "$GXX" = yes; then | |
17715 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
17716 | else | |
17717 | lt_prog_compiler_no_builtin_flag_CXX= | |
17718 | fi | |
17719 | ||
17720 | if test "$GXX" = yes; then | |
17721 | # Set up default GNU C++ configuration | |
17722 | ||
17723 | ||
17724 | ||
17725 | # Check whether --with-gnu-ld was given. | |
17726 | if test "${with_gnu_ld+set}" = set; then | |
17727 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
17728 | else | |
17729 | with_gnu_ld=no | |
17730 | fi | |
17731 | ||
17732 | ac_prog=ld | |
17733 | if test "$GCC" = yes; then | |
17734 | # Check if gcc -print-prog-name=ld gives a path. | |
17735 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
17736 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | |
17737 | case $host in | |
17738 | *-*-mingw*) | |
17739 | # gcc leaves a trailing carriage return which upsets mingw | |
17740 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
17741 | *) | |
17742 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
17743 | esac | |
17744 | case $ac_prog in | |
17745 | # Accept absolute paths. | |
17746 | [\\/]* | ?:[\\/]*) | |
17747 | re_direlt='/[^/][^/]*/\.\./' | |
17748 | # Canonicalize the pathname of ld | |
17749 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
17750 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
17751 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
17752 | done | |
17753 | test -z "$LD" && LD="$ac_prog" | |
17754 | ;; | |
17755 | "") | |
17756 | # If it fails, then pretend we aren't using GCC. | |
17757 | ac_prog=ld | |
17758 | ;; | |
17759 | *) | |
17760 | # If it is relative, then search for the first ld in PATH. | |
17761 | with_gnu_ld=unknown | |
17762 | ;; | |
17763 | esac | |
17764 | elif test "$with_gnu_ld" = yes; then | |
17765 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
17766 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | |
17767 | else | |
17768 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
17769 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | |
17770 | fi | |
17771 | if test "${lt_cv_path_LD+set}" = set; then | |
17772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17773 | else | |
17774 | if test -z "$LD"; then | |
17775 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
17776 | for ac_dir in $PATH; do | |
17777 | IFS="$lt_save_ifs" | |
17778 | test -z "$ac_dir" && ac_dir=. | |
17779 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
17780 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
17781 | # Check to see if the program is GNU ld. I'd rather use --version, | |
17782 | # but apparently some variants of GNU ld only accept -v. | |
17783 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
17784 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
17785 | *GNU* | *'with BFD'*) | |
17786 | test "$with_gnu_ld" != no && break | |
17787 | ;; | |
17788 | *) | |
17789 | test "$with_gnu_ld" != yes && break | |
17790 | ;; | |
17791 | esac | |
17792 | fi | |
17793 | done | |
17794 | IFS="$lt_save_ifs" | |
17795 | else | |
17796 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
17797 | fi | |
17798 | fi | |
17799 | ||
17800 | LD="$lt_cv_path_LD" | |
17801 | if test -n "$LD"; then | |
17802 | { echo "$as_me:$LINENO: result: $LD" >&5 | |
17803 | echo "${ECHO_T}$LD" >&6; } | |
17804 | else | |
17805 | { echo "$as_me:$LINENO: result: no" >&5 | |
17806 | echo "${ECHO_T}no" >&6; } | |
17807 | fi | |
17808 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
17809 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
17810 | { (exit 1); exit 1; }; } | |
17811 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
17812 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | |
17813 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
17814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17815 | else | |
17816 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
17817 | case `$LD -v 2>&1 </dev/null` in | |
17818 | *GNU* | *'with BFD'*) | |
17819 | lt_cv_prog_gnu_ld=yes | |
17820 | ;; | |
17821 | *) | |
17822 | lt_cv_prog_gnu_ld=no | |
17823 | ;; | |
17824 | esac | |
17825 | fi | |
17826 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
17827 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | |
17828 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
17829 | ||
17830 | ||
17831 | ||
17832 | ||
17833 | ||
17834 | ||
17835 | ||
17836 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
17837 | # archiving commands below assume that GNU ld is being used. | |
17838 | if test "$with_gnu_ld" = yes; then | |
17839 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17840 | 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' | |
17841 | ||
17842 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
17843 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
17844 | ||
17845 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
17846 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
17847 | # investigate it a little bit more. (MM) | |
17848 | wlarc='${wl}' | |
17849 | ||
17850 | # ancient GNU ld didn't support --whole-archive et. al. | |
17851 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
17852 | $GREP 'no-whole-archive' > /dev/null; then | |
17853 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
17854 | else | |
17855 | whole_archive_flag_spec_CXX= | |
17856 | fi | |
17857 | else | |
17858 | with_gnu_ld=no | |
17859 | wlarc= | |
17860 | ||
17861 | # A generic and very simple default shared library creation | |
17862 | # command for GNU C++ for the case where it uses the native | |
17863 | # linker, instead of GNU ld. If possible, this setting should | |
17864 | # overridden to take advantage of the native linker features on | |
17865 | # the platform it is being used on. | |
17866 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
17867 | fi | |
17868 | ||
17869 | # Commands to make compiler produce verbose output that lists | |
17870 | # what "hidden" libraries, object files and flags are used when | |
17871 | # linking a shared library. | |
17872 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
17873 | ||
17874 | else | |
17875 | GXX=no | |
17876 | with_gnu_ld=no | |
17877 | wlarc= | |
17878 | fi | |
17879 | ||
17880 | # PORTME: fill in a description of your system's C++ link characteristics | |
17881 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
17882 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
17883 | ld_shlibs_CXX=yes | |
17884 | case $host_os in | |
17885 | aix3*) | |
17886 | # FIXME: insert proper C++ library support | |
17887 | ld_shlibs_CXX=no | |
17888 | ;; | |
17889 | aix4* | aix5*) | |
17890 | if test "$host_cpu" = ia64; then | |
17891 | # On IA64, the linker does run time linking by default, so we don't | |
17892 | # have to do anything special. | |
17893 | aix_use_runtimelinking=no | |
17894 | exp_sym_flag='-Bexport' | |
17895 | no_entry_flag="" | |
17896 | else | |
17897 | aix_use_runtimelinking=no | |
17898 | ||
17899 | # Test if we are trying to use run time linking or normal | |
17900 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
17901 | # need to do runtime linking. | |
17902 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
17903 | for ld_flag in $LDFLAGS; do | |
17904 | case $ld_flag in | |
17905 | *-brtl*) | |
17906 | aix_use_runtimelinking=yes | |
17907 | break | |
17908 | ;; | |
17909 | esac | |
17910 | done | |
17911 | ;; | |
17912 | esac | |
17913 | ||
17914 | exp_sym_flag='-bexport' | |
17915 | no_entry_flag='-bnoentry' | |
17916 | fi | |
17917 | ||
17918 | # When large executables or shared objects are built, AIX ld can | |
17919 | # have problems creating the table of contents. If linking a library | |
17920 | # or program results in "error TOC overflow" add -mminimal-toc to | |
17921 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
17922 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
17923 | ||
17924 | archive_cmds_CXX='' | |
17925 | hardcode_direct_CXX=yes | |
17926 | hardcode_libdir_separator_CXX=':' | |
17927 | link_all_deplibs_CXX=yes | |
17928 | file_list_spec_CXX='${wl}-f,' | |
17929 | ||
17930 | if test "$GXX" = yes; then | |
17931 | case $host_os in aix4.[012]|aix4.[012].*) | |
17932 | # We only want to do this on AIX 4.2 and lower, the check | |
17933 | # below for broken collect2 doesn't work under 4.3+ | |
17934 | collect2name=`${CC} -print-prog-name=collect2` | |
17935 | if test -f "$collect2name" && | |
17936 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
17937 | then | |
17938 | # We have reworked collect2 | |
17939 | hardcode_direct_CXX=yes | |
17940 | else | |
17941 | # We have old collect2 | |
17942 | hardcode_direct_CXX=unsupported | |
17943 | # It fails to find uninstalled libraries when the uninstalled | |
17944 | # path is not listed in the libpath. Setting hardcode_minus_L | |
17945 | # to unsupported forces relinking | |
17946 | hardcode_minus_L_CXX=yes | |
17947 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
17948 | hardcode_libdir_separator_CXX= | |
17949 | fi | |
17950 | esac | |
17951 | shared_flag='-shared' | |
17952 | if test "$aix_use_runtimelinking" = yes; then | |
17953 | shared_flag="$shared_flag "'${wl}-G' | |
17954 | fi | |
17955 | else | |
17956 | # not using gcc | |
17957 | if test "$host_cpu" = ia64; then | |
17958 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
17959 | # chokes on -Wl,-G. The following line is correct: | |
17960 | shared_flag='-G' | |
17961 | else | |
17962 | if test "$aix_use_runtimelinking" = yes; then | |
17963 | shared_flag='${wl}-G' | |
17964 | else | |
17965 | shared_flag='${wl}-bM:SRE' | |
17966 | fi | |
17967 | fi | |
17968 | fi | |
17969 | ||
17970 | # It seems that -bexpall does not export symbols beginning with | |
17971 | # underscore (_), so it is better to generate a list of symbols to | |
17972 | # export. | |
17973 | always_export_symbols_CXX=yes | |
17974 | if test "$aix_use_runtimelinking" = yes; then | |
17975 | # Warning - without using the other runtime loading flags (-brtl), | |
17976 | # -berok will link without error, but may produce a broken library. | |
17977 | allow_undefined_flag_CXX='-berok' | |
17978 | # Determine the default libpath from the value encoded in an empty | |
17979 | # executable. | |
17980 | cat >conftest.$ac_ext <<_ACEOF | |
17981 | /* confdefs.h. */ | |
17982 | _ACEOF | |
17983 | cat confdefs.h >>conftest.$ac_ext | |
17984 | cat >>conftest.$ac_ext <<_ACEOF | |
17985 | /* end confdefs.h. */ | |
17986 | ||
17987 | int | |
17988 | main () | |
17989 | { | |
17990 | ||
17991 | ; | |
17992 | return 0; | |
17993 | } | |
17994 | _ACEOF | |
17995 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17996 | if { (ac_try="$ac_link" | |
17997 | case "(($ac_try" in | |
17998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17999 | *) ac_try_echo=$ac_try;; | |
18000 | esac | |
18001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18002 | (eval "$ac_link") 2>conftest.er1 | |
18003 | ac_status=$? | |
18004 | grep -v '^ *+' conftest.er1 >conftest.err | |
18005 | rm -f conftest.er1 | |
18006 | cat conftest.err >&5 | |
18007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18008 | (exit $ac_status); } && { | |
18009 | test -z "$ac_cxx_werror_flag" || | |
18010 | test ! -s conftest.err | |
18011 | } && test -s conftest$ac_exeext && | |
18012 | $as_test_x conftest$ac_exeext; then | |
18013 | ||
18014 | lt_aix_libpath_sed=' | |
18015 | /Import File Strings/,/^$/ { | |
18016 | /^0/ { | |
18017 | s/^0 *\(.*\)$/\1/ | |
18018 | p | |
18019 | } | |
18020 | }' | |
18021 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
18022 | # Check for a 64-bit object if we didn't find anything. | |
18023 | if test -z "$aix_libpath"; then | |
18024 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
18025 | fi | |
18026 | else | |
18027 | echo "$as_me: failed program was:" >&5 | |
18028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18029 | ||
18030 | ||
18031 | fi | |
18032 | ||
18033 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18034 | conftest$ac_exeext conftest.$ac_ext | |
18035 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
18036 | ||
18037 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
18038 | ||
18039 | 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
18040 | else | |
18041 | if test "$host_cpu" = ia64; then | |
18042 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
18043 | allow_undefined_flag_CXX="-z nodefs" | |
18044 | 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" | |
18045 | else | |
18046 | # Determine the default libpath from the value encoded in an | |
18047 | # empty executable. | |
18048 | cat >conftest.$ac_ext <<_ACEOF | |
18049 | /* confdefs.h. */ | |
18050 | _ACEOF | |
18051 | cat confdefs.h >>conftest.$ac_ext | |
18052 | cat >>conftest.$ac_ext <<_ACEOF | |
18053 | /* end confdefs.h. */ | |
18054 | ||
18055 | int | |
18056 | main () | |
18057 | { | |
18058 | ||
18059 | ; | |
18060 | return 0; | |
18061 | } | |
18062 | _ACEOF | |
18063 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18064 | if { (ac_try="$ac_link" | |
18065 | case "(($ac_try" in | |
18066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18067 | *) ac_try_echo=$ac_try;; | |
18068 | esac | |
18069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18070 | (eval "$ac_link") 2>conftest.er1 | |
18071 | ac_status=$? | |
18072 | grep -v '^ *+' conftest.er1 >conftest.err | |
18073 | rm -f conftest.er1 | |
18074 | cat conftest.err >&5 | |
18075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18076 | (exit $ac_status); } && { | |
18077 | test -z "$ac_cxx_werror_flag" || | |
18078 | test ! -s conftest.err | |
18079 | } && test -s conftest$ac_exeext && | |
18080 | $as_test_x conftest$ac_exeext; then | |
18081 | ||
18082 | lt_aix_libpath_sed=' | |
18083 | /Import File Strings/,/^$/ { | |
18084 | /^0/ { | |
18085 | s/^0 *\(.*\)$/\1/ | |
18086 | p | |
18087 | } | |
18088 | }' | |
18089 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
18090 | # Check for a 64-bit object if we didn't find anything. | |
18091 | if test -z "$aix_libpath"; then | |
18092 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
18093 | fi | |
18094 | else | |
18095 | echo "$as_me: failed program was:" >&5 | |
18096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18097 | ||
18098 | ||
18099 | fi | |
18100 | ||
18101 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18102 | conftest$ac_exeext conftest.$ac_ext | |
18103 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
18104 | ||
18105 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
18106 | # Warning - without using the other run time loading flags, | |
18107 | # -berok will link without error, but may produce a broken library. | |
18108 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
18109 | allow_undefined_flag_CXX=' ${wl}-berok' | |
18110 | # Exported symbols can be pulled into shared objects from archives | |
18111 | whole_archive_flag_spec_CXX='$convenience' | |
18112 | archive_cmds_need_lc_CXX=yes | |
18113 | # This is similar to how AIX traditionally builds its shared | |
18114 | # libraries. | |
18115 | 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' | |
18116 | fi | |
18117 | fi | |
18118 | ;; | |
18119 | ||
18120 | beos*) | |
18121 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
18122 | allow_undefined_flag_CXX=unsupported | |
18123 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
18124 | # support --undefined. This deserves some investigation. FIXME | |
18125 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18126 | else | |
18127 | ld_shlibs_CXX=no | |
18128 | fi | |
18129 | ;; | |
18130 | ||
18131 | chorus*) | |
18132 | case $cc_basename in | |
18133 | *) | |
18134 | # FIXME: insert proper C++ library support | |
18135 | ld_shlibs_CXX=no | |
18136 | ;; | |
18137 | esac | |
18138 | ;; | |
18139 | ||
18140 | cygwin* | mingw* | pw32*) | |
18141 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
18142 | # as there is no search path for DLLs. | |
18143 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
18144 | allow_undefined_flag_CXX=unsupported | |
18145 | always_export_symbols_CXX=no | |
18146 | enable_shared_with_static_runtimes_CXX=yes | |
18147 | ||
18148 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
18149 | 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' | |
18150 | # If the export-symbols file already is a .def file (1st line | |
18151 | # is EXPORTS), use it as is; otherwise, prepend... | |
18152 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
18153 | cp $export_symbols $output_objdir/$soname.def; | |
18154 | else | |
18155 | echo EXPORTS > $output_objdir/$soname.def; | |
18156 | cat $export_symbols >> $output_objdir/$soname.def; | |
18157 | fi~ | |
18158 | $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' | |
18159 | else | |
18160 | ld_shlibs_CXX=no | |
18161 | fi | |
18162 | ;; | |
18163 | darwin* | rhapsody*) | |
18164 | case $host_os in | |
18165 | rhapsody* | darwin1.[012]) | |
18166 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | |
18167 | ;; | |
18168 | *) # Darwin 1.3 on | |
18169 | case ${MACOSX_DEPLOYMENT_TARGET-10.0} in | |
18170 | 10.[012]) | |
18171 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
18172 | ;; | |
18173 | 10.*) | |
18174 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | |
18175 | ;; | |
18176 | esac | |
18177 | ;; | |
18178 | esac | |
18179 | archive_cmds_need_lc_CXX=no | |
18180 | hardcode_direct_CXX=no | |
18181 | hardcode_automatic_CXX=yes | |
18182 | hardcode_shlibpath_var_CXX=unsupported | |
18183 | whole_archive_flag_spec_CXX='' | |
18184 | link_all_deplibs_CXX=yes | |
18185 | ||
18186 | if test "$GXX" = yes ; then | |
18187 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
18188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18189 | else | |
18190 | lt_cv_apple_cc_single_mod=no | |
18191 | if test -z "${LT_MULTI_MODULE}"; then | |
18192 | # By default we will add the -single_module flag. You can override | |
18193 | # by either setting the environment variable LT_MULTI_MODULE | |
18194 | # non-empty at configure time, or by adding -multi-module to the | |
18195 | # link flags. | |
18196 | echo "int foo(void){return 1;}" > conftest.c | |
18197 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
18198 | -dynamiclib ${wl}-single_module conftest.c | |
18199 | if test -f libconftest.dylib; then | |
18200 | lt_cv_apple_cc_single_mod=yes | |
18201 | rm libconftest.dylib | |
18202 | fi | |
18203 | rm conftest.$ac_ext | |
18204 | fi | |
18205 | fi | |
18206 | ||
18207 | output_verbose_link_cmd=echo | |
18208 | if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then | |
18209 | archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
18210 | archive_expsym_cmds_CXX='sed "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}' | |
18211 | else | |
18212 | 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' | |
18213 | archive_expsym_cmds_CXX='sed "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}' | |
18214 | fi | |
18215 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
18216 | module_expsym_cmds_CXX='sed "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}' | |
18217 | else | |
18218 | case $cc_basename in | |
18219 | xlc*) | |
18220 | output_verbose_link_cmd=echo | |
18221 | 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' | |
18222 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
18223 | # Don't fix this by using the ld -exported_symbols_list flag, | |
18224 | # it doesn't exist in older darwin lds | |
18225 | archive_expsym_cmds_CXX='sed "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}' | |
18226 | module_expsym_cmds_CXX='sed "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}' | |
18227 | ;; | |
18228 | *) | |
18229 | ld_shlibs_CXX=no | |
18230 | ;; | |
18231 | esac | |
18232 | fi | |
18233 | ;; | |
18234 | ||
18235 | dgux*) | |
18236 | case $cc_basename in | |
18237 | ec++*) | |
18238 | # FIXME: insert proper C++ library support | |
18239 | ld_shlibs_CXX=no | |
18240 | ;; | |
18241 | ghcx*) | |
18242 | # Green Hills C++ Compiler | |
18243 | # FIXME: insert proper C++ library support | |
18244 | ld_shlibs_CXX=no | |
18245 | ;; | |
18246 | *) | |
18247 | # FIXME: insert proper C++ library support | |
18248 | ld_shlibs_CXX=no | |
18249 | ;; | |
18250 | esac | |
18251 | ;; | |
18252 | ||
18253 | freebsd[12]*) | |
18254 | # C++ shared libraries reported to be fairly broken before | |
18255 | # switch to ELF | |
18256 | ld_shlibs_CXX=no | |
18257 | ;; | |
18258 | ||
18259 | freebsd-elf*) | |
18260 | archive_cmds_need_lc_CXX=no | |
18261 | ;; | |
18262 | ||
18263 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
18264 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
18265 | # conventions | |
18266 | ld_shlibs_CXX=yes | |
18267 | ;; | |
18268 | ||
18269 | gnu*) | |
18270 | ;; | |
18271 | ||
18272 | hpux9*) | |
18273 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
18274 | hardcode_libdir_separator_CXX=: | |
18275 | export_dynamic_flag_spec_CXX='${wl}-E' | |
18276 | hardcode_direct_CXX=yes | |
18277 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
18278 | # but as the default | |
18279 | # location of the library. | |
18280 | ||
18281 | case $cc_basename in | |
18282 | CC*) | |
18283 | # FIXME: insert proper C++ library support | |
18284 | ld_shlibs_CXX=no | |
18285 | ;; | |
18286 | aCC*) | |
18287 | 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' | |
18288 | # Commands to make compiler produce verbose output that lists | |
18289 | # what "hidden" libraries, object files and flags are used when | |
18290 | # linking a shared library. | |
18291 | # | |
18292 | # There doesn't appear to be a way to prevent this compiler from | |
18293 | # explicitly linking system object files so we need to strip them | |
18294 | # from the output so that they don't get included in the library | |
18295 | # dependencies. | |
18296 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
18297 | ;; | |
18298 | *) | |
18299 | if test "$GXX" = yes; then | |
18300 | 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' | |
18301 | else | |
18302 | # FIXME: insert proper C++ library support | |
18303 | ld_shlibs_CXX=no | |
18304 | fi | |
18305 | ;; | |
18306 | esac | |
18307 | ;; | |
18308 | ||
18309 | hpux10*|hpux11*) | |
18310 | if test $with_gnu_ld = no; then | |
18311 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
18312 | hardcode_libdir_separator_CXX=: | |
18313 | ||
18314 | case $host_cpu in | |
18315 | hppa*64*|ia64*) | |
18316 | ;; | |
18317 | *) | |
18318 | export_dynamic_flag_spec_CXX='${wl}-E' | |
18319 | ;; | |
18320 | esac | |
18321 | fi | |
18322 | case $host_cpu in | |
18323 | hppa*64*|ia64*) | |
18324 | hardcode_direct_CXX=no | |
18325 | hardcode_shlibpath_var_CXX=no | |
18326 | ;; | |
18327 | *) | |
18328 | hardcode_direct_CXX=yes | |
18329 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
18330 | # but as the default | |
18331 | # location of the library. | |
18332 | ;; | |
18333 | esac | |
18334 | ||
18335 | case $cc_basename in | |
18336 | CC*) | |
18337 | # FIXME: insert proper C++ library support | |
18338 | ld_shlibs_CXX=no | |
18339 | ;; | |
18340 | aCC*) | |
18341 | case $host_cpu in | |
18342 | hppa*64*) | |
18343 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
18344 | ;; | |
18345 | ia64*) | |
18346 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
18347 | ;; | |
18348 | *) | |
18349 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
18350 | ;; | |
18351 | esac | |
18352 | # Commands to make compiler produce verbose output that lists | |
18353 | # what "hidden" libraries, object files and flags are used when | |
18354 | # linking a shared library. | |
18355 | # | |
18356 | # There doesn't appear to be a way to prevent this compiler from | |
18357 | # explicitly linking system object files so we need to strip them | |
18358 | # from the output so that they don't get included in the library | |
18359 | # dependencies. | |
18360 | 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 "X$list" | $Xsed' | |
18361 | ;; | |
18362 | *) | |
18363 | if test "$GXX" = yes; then | |
18364 | if test $with_gnu_ld = no; then | |
18365 | case $host_cpu in | |
18366 | hppa*64*) | |
18367 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
18368 | ;; | |
18369 | ia64*) | |
18370 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
18371 | ;; | |
18372 | *) | |
18373 | 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' | |
18374 | ;; | |
18375 | esac | |
18376 | fi | |
18377 | else | |
18378 | # FIXME: insert proper C++ library support | |
18379 | ld_shlibs_CXX=no | |
18380 | fi | |
18381 | ;; | |
18382 | esac | |
18383 | ;; | |
18384 | ||
18385 | interix3*) | |
18386 | hardcode_direct_CXX=no | |
18387 | hardcode_shlibpath_var_CXX=no | |
18388 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
18389 | export_dynamic_flag_spec_CXX='${wl}-E' | |
18390 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
18391 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
18392 | # default) and relocated if they conflict, which is a slow very memory | |
18393 | # consuming and fragmenting process. To avoid this, we pick a random, | |
18394 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
18395 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
18396 | 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' | |
18397 | 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' | |
18398 | ;; | |
18399 | irix5* | irix6*) | |
18400 | case $cc_basename in | |
18401 | CC*) | |
18402 | # SGI C++ | |
18403 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
18404 | ||
18405 | # Archives containing C++ object files must be created using | |
18406 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
18407 | # necessary to make sure instantiated templates are included | |
18408 | # in the archive. | |
18409 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
18410 | ;; | |
18411 | *) | |
18412 | if test "$GXX" = yes; then | |
18413 | if test "$with_gnu_ld" = no; then | |
18414 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
18415 | else | |
18416 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' | |
18417 | fi | |
18418 | fi | |
18419 | link_all_deplibs_CXX=yes | |
18420 | ;; | |
18421 | esac | |
18422 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
18423 | hardcode_libdir_separator_CXX=: | |
18424 | inherit_rpath_CXX=yes | |
18425 | ;; | |
18426 | ||
18427 | linux*) | |
18428 | case $cc_basename in | |
18429 | KCC*) | |
18430 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
18431 | ||
18432 | # KCC will only create a shared library if the output file | |
18433 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
18434 | # to its proper name (with version) after linking. | |
18435 | 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' | |
18436 | 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' | |
18437 | # Commands to make compiler produce verbose output that lists | |
18438 | # what "hidden" libraries, object files and flags are used when | |
18439 | # linking a shared library. | |
18440 | # | |
18441 | # There doesn't appear to be a way to prevent this compiler from | |
18442 | # explicitly linking system object files so we need to strip them | |
18443 | # from the output so that they don't get included in the library | |
18444 | # dependencies. | |
18445 | 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 "X$list" | $Xsed' | |
18446 | ||
18447 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
18448 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
18449 | ||
18450 | # Archives containing C++ object files must be created using | |
18451 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
18452 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
18453 | ;; | |
18454 | icpc* | ecpc* ) | |
18455 | # Intel C++ | |
18456 | with_gnu_ld=yes | |
18457 | # version 8.0 and above of icpc choke on multiply defined symbols | |
18458 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
18459 | # earlier do not add the objects themselves. | |
18460 | case `$CC -V 2>&1` in | |
18461 | *"Version 7."*) | |
18462 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18463 | 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' | |
18464 | ;; | |
18465 | *) # Version 8.0 or newer | |
18466 | tmp_idyn= | |
18467 | case $host_cpu in | |
18468 | ia64*) tmp_idyn=' -i_dynamic';; | |
18469 | esac | |
18470 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18471 | 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' | |
18472 | ;; | |
18473 | esac | |
18474 | archive_cmds_need_lc_CXX=no | |
18475 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
18476 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
18477 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
18478 | ;; | |
18479 | pgCC*) | |
18480 | # Portland Group C++ compiler | |
18481 | case `$CC -V` in | |
18482 | *pgCC\ [1-5]*) | |
18483 | prelink_cmds_CXX='tpldir=Template.dir~ | |
18484 | rm -rf $tpldir~ | |
18485 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
18486 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
18487 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
18488 | rm -rf $tpldir~ | |
18489 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
18490 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
18491 | $RANLIB $oldlib' | |
18492 | archive_cmds_CXX='tpldir=Template.dir~ | |
18493 | rm -rf $tpldir~ | |
18494 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
18495 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
18496 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
18497 | rm -rf $tpldir~ | |
18498 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
18499 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
18500 | ;; | |
18501 | *) # Version 6 will use weak symbols | |
18502 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
18503 | 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' | |
18504 | ;; | |
18505 | esac | |
18506 | ||
18507 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
18508 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
18509 | 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' | |
18510 | ;; | |
18511 | cxx*) | |
18512 | # Compaq C++ | |
18513 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18514 | 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' | |
18515 | ||
18516 | runpath_var=LD_RUN_PATH | |
18517 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
18518 | hardcode_libdir_separator_CXX=: | |
18519 | ||
18520 | # Commands to make compiler produce verbose output that lists | |
18521 | # what "hidden" libraries, object files and flags are used when | |
18522 | # linking a shared library. | |
18523 | # | |
18524 | # There doesn't appear to be a way to prevent this compiler from | |
18525 | # explicitly linking system object files so we need to strip them | |
18526 | # from the output so that they don't get included in the library | |
18527 | # dependencies. | |
18528 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed' | |
18529 | ;; | |
18530 | esac | |
18531 | ;; | |
18532 | ||
18533 | lynxos*) | |
18534 | # FIXME: insert proper C++ library support | |
18535 | ld_shlibs_CXX=no | |
18536 | ;; | |
18537 | ||
18538 | m88k*) | |
18539 | # FIXME: insert proper C++ library support | |
18540 | ld_shlibs_CXX=no | |
18541 | ;; | |
18542 | ||
18543 | mvs*) | |
18544 | case $cc_basename in | |
18545 | cxx*) | |
18546 | # FIXME: insert proper C++ library support | |
18547 | ld_shlibs_CXX=no | |
18548 | ;; | |
18549 | *) | |
18550 | # FIXME: insert proper C++ library support | |
18551 | ld_shlibs_CXX=no | |
18552 | ;; | |
18553 | esac | |
18554 | ;; | |
18555 | ||
18556 | netbsd*) | |
18557 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
18558 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
18559 | wlarc= | |
18560 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
18561 | hardcode_direct_CXX=yes | |
18562 | hardcode_shlibpath_var_CXX=no | |
18563 | fi | |
18564 | # Workaround some broken pre-1.5 toolchains | |
18565 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
18566 | ;; | |
18567 | ||
18568 | *nto* | *qnx*) | |
18569 | ld_shlibs_CXX=yes | |
18570 | ;; | |
18571 | ||
18572 | openbsd2*) | |
18573 | # C++ shared libraries are fairly broken | |
18574 | ld_shlibs_CXX=no | |
18575 | ;; | |
18576 | ||
18577 | openbsd*) | |
18578 | hardcode_direct_CXX=yes | |
18579 | hardcode_shlibpath_var_CXX=no | |
18580 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
18581 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
18582 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
18583 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
18584 | export_dynamic_flag_spec_CXX='${wl}-E' | |
18585 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
18586 | fi | |
18587 | output_verbose_link_cmd=echo | |
18588 | ;; | |
18589 | ||
18590 | osf3* | osf4* | osf5*) | |
18591 | case $cc_basename in | |
18592 | KCC*) | |
18593 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
18594 | ||
18595 | # KCC will only create a shared library if the output file | |
18596 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
18597 | # to its proper name (with version) after linking. | |
18598 | 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' | |
18599 | ||
18600 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
18601 | hardcode_libdir_separator_CXX=: | |
18602 | ||
18603 | # Archives containing C++ object files must be created using | |
18604 | # the KAI C++ compiler. | |
18605 | case $host in | |
18606 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
18607 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
18608 | esac | |
18609 | ;; | |
18610 | RCC*) | |
18611 | # Rational C++ 2.4.1 | |
18612 | # FIXME: insert proper C++ library support | |
18613 | ld_shlibs_CXX=no | |
18614 | ;; | |
18615 | cxx*) | |
18616 | case $host in | |
18617 | osf3*) | |
18618 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
18619 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
18620 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
18621 | ;; | |
18622 | *) | |
18623 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
18624 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
18625 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
18626 | echo "-hidden">> $lib.exp~ | |
18627 | $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ | |
18628 | $RM $lib.exp' | |
18629 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
18630 | ;; | |
18631 | esac | |
18632 | ||
18633 | hardcode_libdir_separator_CXX=: | |
18634 | ||
18635 | # Commands to make compiler produce verbose output that lists | |
18636 | # what "hidden" libraries, object files and flags are used when | |
18637 | # linking a shared library. | |
18638 | # | |
18639 | # There doesn't appear to be a way to prevent this compiler from | |
18640 | # explicitly linking system object files so we need to strip them | |
18641 | # from the output so that they don't get included in the library | |
18642 | # dependencies. | |
18643 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed' | |
18644 | ;; | |
18645 | *) | |
18646 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
18647 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
18648 | case $host in | |
18649 | osf3*) | |
18650 | 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
18651 | ;; | |
18652 | *) | |
18653 | 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
18654 | ;; | |
18655 | esac | |
18656 | ||
18657 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
18658 | hardcode_libdir_separator_CXX=: | |
18659 | ||
18660 | # Commands to make compiler produce verbose output that lists | |
18661 | # what "hidden" libraries, object files and flags are used when | |
18662 | # linking a shared library. | |
18663 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
18664 | ||
18665 | else | |
18666 | # FIXME: insert proper C++ library support | |
18667 | ld_shlibs_CXX=no | |
18668 | fi | |
18669 | ;; | |
18670 | esac | |
18671 | ;; | |
18672 | ||
18673 | psos*) | |
18674 | # FIXME: insert proper C++ library support | |
18675 | ld_shlibs_CXX=no | |
18676 | ;; | |
18677 | ||
18678 | sunos4*) | |
18679 | case $cc_basename in | |
18680 | CC*) | |
18681 | # Sun C++ 4.x | |
18682 | # FIXME: insert proper C++ library support | |
18683 | ld_shlibs_CXX=no | |
18684 | ;; | |
18685 | lcc*) | |
18686 | # Lucid | |
18687 | # FIXME: insert proper C++ library support | |
18688 | ld_shlibs_CXX=no | |
18689 | ;; | |
18690 | *) | |
18691 | # FIXME: insert proper C++ library support | |
18692 | ld_shlibs_CXX=no | |
18693 | ;; | |
18694 | esac | |
18695 | ;; | |
18696 | ||
18697 | solaris*) | |
18698 | case $cc_basename in | |
18699 | CC*) | |
18700 | # Sun C++ 4.2, 5.x and Centerline C++ | |
18701 | archive_cmds_need_lc_CXX=yes | |
18702 | no_undefined_flag_CXX=' -zdefs' | |
18703 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
18704 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
18705 | $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' | |
18706 | ||
18707 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
18708 | hardcode_shlibpath_var_CXX=no | |
18709 | case $host_os in | |
18710 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
18711 | *) | |
18712 | # The C++ compiler is used as linker so we must use $wl | |
18713 | # flag to pass the commands to the underlying system | |
18714 | # linker. We must also pass each convenience library through | |
18715 | # to the system linker between allextract/defaultextract. | |
18716 | # The C++ compiler will combine linker options so we | |
18717 | # cannot just pass the convenience library names through | |
18718 | # without $wl. | |
18719 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
18720 | 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' | |
18721 | ;; | |
18722 | esac | |
18723 | link_all_deplibs_CXX=yes | |
18724 | ||
18725 | output_verbose_link_cmd='echo' | |
18726 | ||
18727 | # Archives containing C++ object files must be created using | |
18728 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
18729 | # necessary to make sure instantiated templates are included | |
18730 | # in the archive. | |
18731 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
18732 | ;; | |
18733 | gcx*) | |
18734 | # Green Hills C++ Compiler | |
18735 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
18736 | ||
18737 | # The C++ compiler must be used to create the archive. | |
18738 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
18739 | ;; | |
18740 | *) | |
18741 | # GNU C++ compiler with Solaris linker | |
18742 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
18743 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
18744 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
18745 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
18746 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
18747 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
18748 | ||
18749 | # Commands to make compiler produce verbose output that lists | |
18750 | # what "hidden" libraries, object files and flags are used when | |
18751 | # linking a shared library. | |
18752 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
18753 | else | |
18754 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
18755 | # platform. | |
18756 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
18757 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
18758 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
18759 | ||
18760 | # Commands to make compiler produce verbose output that lists | |
18761 | # what "hidden" libraries, object files and flags are used when | |
18762 | # linking a shared library. | |
18763 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
18764 | fi | |
18765 | ||
18766 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
18767 | fi | |
18768 | ;; | |
18769 | esac | |
18770 | ;; | |
18771 | ||
18772 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
18773 | no_undefined_flag_CXX='${wl}-z,text' | |
18774 | archive_cmds_need_lc_CXX=no | |
18775 | hardcode_shlibpath_var_CXX=no | |
18776 | runpath_var='LD_RUN_PATH' | |
18777 | ||
18778 | case $cc_basename in | |
18779 | CC*) | |
18780 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18781 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18782 | ;; | |
18783 | *) | |
18784 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18785 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18786 | ;; | |
18787 | esac | |
18788 | ;; | |
18789 | ||
18790 | sysv5* | sco3.2v5* | sco5v6*) | |
18791 | # Note: We can NOT use -z defs as we might desire, because we do not | |
18792 | # link with -lc, and that would cause any symbols used from libc to | |
18793 | # always be unresolved, which means just about no library would | |
18794 | # ever link correctly. If we're not using GNU ld we use -z text | |
18795 | # though, which does catch some bad symbols but isn't as heavy-handed | |
18796 | # as -z defs. | |
18797 | no_undefined_flag_CXX='${wl}-z,text' | |
18798 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
18799 | archive_cmds_need_lc_CXX=no | |
18800 | hardcode_shlibpath_var_CXX=no | |
18801 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
18802 | hardcode_libdir_separator_CXX=':' | |
18803 | link_all_deplibs_CXX=yes | |
18804 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
18805 | runpath_var='LD_RUN_PATH' | |
18806 | ||
18807 | case $cc_basename in | |
18808 | CC*) | |
18809 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18810 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18811 | ;; | |
18812 | *) | |
18813 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18814 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18815 | ;; | |
18816 | esac | |
18817 | ;; | |
18818 | ||
18819 | tandem*) | |
18820 | case $cc_basename in | |
18821 | NCC*) | |
18822 | # NonStop-UX NCC 3.20 | |
18823 | # FIXME: insert proper C++ library support | |
18824 | ld_shlibs_CXX=no | |
18825 | ;; | |
18826 | *) | |
18827 | # FIXME: insert proper C++ library support | |
18828 | ld_shlibs_CXX=no | |
18829 | ;; | |
18830 | esac | |
18831 | ;; | |
18832 | ||
18833 | vxworks*) | |
18834 | # FIXME: insert proper C++ library support | |
18835 | ld_shlibs_CXX=no | |
18836 | ;; | |
18837 | ||
18838 | *) | |
18839 | # FIXME: insert proper C++ library support | |
18840 | ld_shlibs_CXX=no | |
18841 | ;; | |
18842 | esac | |
18843 | ||
18844 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
18845 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | |
18846 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
18847 | ||
18848 | GCC_CXX="$GXX" | |
18849 | LD_CXX="$LD" | |
18850 | ||
18851 | ## CAVEAT EMPTOR: | |
18852 | ## There is no encapsulation within the following macros, do not change | |
18853 | ## the running order or otherwise move them around unless you know exactly | |
18854 | ## what you are doing... | |
18855 | # Dependencies to place before and after the object being linked: | |
18856 | predep_objects_CXX= | |
18857 | postdep_objects_CXX= | |
18858 | predeps_CXX= | |
18859 | postdeps_CXX= | |
18860 | compiler_lib_search_path_CXX= | |
18861 | ||
18862 | cat > conftest.$ac_ext <<_LT_EOF | |
18863 | class Foo | |
18864 | { | |
18865 | public: | |
18866 | Foo (void) { a = 0; } | |
18867 | private: | |
18868 | int a; | |
18869 | }; | |
18870 | _LT_EOF | |
18871 | ||
18872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18873 | (eval $ac_compile) 2>&5 | |
18874 | ac_status=$? | |
18875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18876 | (exit $ac_status); }; then | |
18877 | # Parse the compiler output and extract the necessary | |
18878 | # objects, libraries and library flags. | |
18879 | ||
18880 | # Sentinel used to keep track of whether or not we are before | |
18881 | # the conftest object file. | |
18882 | pre_test_object_deps_done=no | |
18883 | ||
18884 | # The `*' in the case matches for architectures that use `case' in | |
18885 | # $output_verbose_cmd can trigger glob expansion during the loop | |
18886 | # eval without this substitution. | |
18887 | output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | |
18888 | ||
18889 | for p in `eval $output_verbose_link_cmd`; do | |
18890 | case $p in | |
18891 | ||
18892 | -L* | -R* | -l*) | |
18893 | # Some compilers place space between "-{L,R}" and the path. | |
18894 | # Remove the space. | |
18895 | if test $p = "-L" || | |
18896 | test $p = "-R"; then | |
18897 | prev=$p | |
18898 | continue | |
18899 | else | |
18900 | prev= | |
18901 | fi | |
18902 | ||
18903 | if test "$pre_test_object_deps_done" = no; then | |
18904 | case $p in | |
18905 | -L* | -R*) | |
18906 | # Internal compiler library paths should come after those | |
18907 | # provided the user. The postdeps already come after the | |
18908 | # user supplied libs so there is no need to process them. | |
18909 | if test -z "$compiler_lib_search_path_CXX"; then | |
18910 | compiler_lib_search_path_CXX="${prev}${p}" | |
18911 | else | |
18912 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
18913 | fi | |
18914 | ;; | |
18915 | # The "-l" case would never come before the object being | |
18916 | # linked, so don't bother handling this case. | |
18917 | esac | |
18918 | else | |
18919 | if test -z "$postdeps_CXX"; then | |
18920 | postdeps_CXX="${prev}${p}" | |
18921 | else | |
18922 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
18923 | fi | |
18924 | fi | |
18925 | ;; | |
18926 | ||
18927 | *.$objext) | |
18928 | # This assumes that the test object file only shows up | |
18929 | # once in the compiler output. | |
18930 | if test "$p" = "conftest.$objext"; then | |
18931 | pre_test_object_deps_done=yes | |
18932 | continue | |
18933 | fi | |
18934 | ||
18935 | if test "$pre_test_object_deps_done" = no; then | |
18936 | if test -z "$predep_objects_CXX"; then | |
18937 | predep_objects_CXX="$p" | |
18938 | else | |
18939 | predep_objects_CXX="$predep_objects_CXX $p" | |
18940 | fi | |
18941 | else | |
18942 | if test -z "$postdep_objects_CXX"; then | |
18943 | postdep_objects_CXX="$p" | |
18944 | else | |
18945 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
18946 | fi | |
18947 | fi | |
18948 | ;; | |
18949 | ||
18950 | *) ;; # Ignore the rest. | |
18951 | ||
18952 | esac | |
18953 | done | |
18954 | ||
18955 | # Clean up. | |
18956 | rm -f a.out a.exe | |
18957 | else | |
18958 | echo "libtool.m4: error: problem compiling CXX test program" | |
18959 | fi | |
18960 | ||
18961 | $RM -f confest.$objext | |
18962 | ||
18963 | # PORTME: override above test on systems where it is broken | |
18964 | case $host_os in | |
18965 | interix3*) | |
18966 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
18967 | # hack all around it, let's just trust "g++" to DTRT. | |
18968 | predep_objects_CXX= | |
18969 | postdep_objects_CXX= | |
18970 | postdeps_CXX= | |
18971 | ;; | |
18972 | ||
18973 | solaris*) | |
18974 | case $cc_basename in | |
18975 | CC*) | |
18976 | # Adding this requires a known-good setup of shared libraries for | |
18977 | # Sun compiler versions before 5.6, else PIC objects from an old | |
18978 | # archive will be linked into the output, leading to subtle bugs. | |
18979 | postdeps_CXX='-lCstd -lCrun' | |
18980 | ;; | |
18981 | esac | |
18982 | ;; | |
18983 | esac | |
18984 | ||
18985 | ||
18986 | case " $postdeps_CXX " in | |
18987 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
18988 | esac | |
18989 | ||
18990 | ||
18991 | ||
18992 | ||
18993 | ||
18994 | ||
18995 | ||
18996 | ||
18997 | ||
18998 | ||
18999 | ||
19000 | ||
19001 | ||
19002 | ||
19003 | ||
19004 | ||
19005 | ||
19006 | ||
19007 | ||
19008 | ||
19009 | ||
19010 | ||
19011 | ||
19012 | ||
19013 | ||
19014 | ||
19015 | lt_prog_compiler_wl_CXX= | |
19016 | lt_prog_compiler_pic_CXX= | |
19017 | lt_prog_compiler_static_CXX= | |
19018 | ||
19019 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
19020 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
19021 | ||
19022 | # C++ specific cases for pic, static, wl, etc. | |
19023 | if test "$GXX" = yes; then | |
19024 | lt_prog_compiler_wl_CXX='-Wl,' | |
19025 | lt_prog_compiler_static_CXX='-static' | |
19026 | ||
19027 | case $host_os in | |
19028 | aix*) | |
19029 | # All AIX code is PIC. | |
19030 | if test "$host_cpu" = ia64; then | |
19031 | # AIX 5 now supports IA64 processor | |
19032 | lt_prog_compiler_static_CXX='-Bstatic' | |
19033 | fi | |
19034 | ;; | |
19035 | amigaos*) | |
19036 | if test "$host_cpu" = m68k; then | |
19037 | # FIXME: we need at least 68020 code to build shared libraries, but | |
19038 | # adding the `-m68020' flag to GCC prevents building anything better, | |
19039 | # like `-m68040'. | |
19040 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
19041 | fi | |
19042 | ;; | |
19043 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
19044 | # PIC is the default for these OSes. | |
19045 | ;; | |
19046 | mingw* | os2* | pw32*) | |
19047 | # This hack is so that the source file can tell whether it is being | |
19048 | # built for inclusion in a dll (and should export symbols for example). | |
19049 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
19050 | ;; | |
19051 | darwin* | rhapsody*) | |
19052 | # PIC is the default on this platform | |
19053 | # Common symbols not allowed in MH_DYLIB files | |
19054 | lt_prog_compiler_pic_CXX='-fno-common' | |
19055 | ;; | |
19056 | *djgpp*) | |
19057 | # DJGPP does not support shared libraries at all | |
19058 | lt_prog_compiler_pic_CXX= | |
19059 | ;; | |
19060 | interix3*) | |
19061 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
19062 | # Instead, we relocate shared libraries at runtime. | |
19063 | ;; | |
19064 | sysv4*MP*) | |
19065 | if test -d /usr/nec; then | |
19066 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
19067 | fi | |
19068 | ;; | |
19069 | hpux*) | |
19070 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
19071 | # not for PA HP-UX. | |
19072 | case $host_cpu in | |
19073 | hppa*64*|ia64*) | |
19074 | ;; | |
19075 | *) | |
19076 | lt_prog_compiler_pic_CXX='-fPIC' | |
19077 | ;; | |
19078 | esac | |
19079 | ;; | |
19080 | *qnx* | *nto*) | |
19081 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
19082 | # it will coredump. | |
19083 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
19084 | ;; | |
19085 | *) | |
19086 | lt_prog_compiler_pic_CXX='-fPIC' | |
19087 | ;; | |
19088 | esac | |
19089 | else | |
19090 | case $host_os in | |
19091 | aix4* | aix5*) | |
19092 | # All AIX code is PIC. | |
19093 | if test "$host_cpu" = ia64; then | |
19094 | # AIX 5 now supports IA64 processor | |
19095 | lt_prog_compiler_static_CXX='-Bstatic' | |
19096 | else | |
19097 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
19098 | fi | |
19099 | ;; | |
19100 | chorus*) | |
19101 | case $cc_basename in | |
19102 | cxch68*) | |
19103 | # Green Hills C++ Compiler | |
19104 | # _LT_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" | |
19105 | ;; | |
19106 | esac | |
19107 | ;; | |
19108 | darwin*) | |
19109 | # PIC is the default on this platform | |
19110 | # Common symbols not allowed in MH_DYLIB files | |
19111 | case $cc_basename in | |
19112 | xlc*) | |
19113 | lt_prog_compiler_pic_CXX='-qnocommon' | |
19114 | lt_prog_compiler_wl_CXX='-Wl,' | |
19115 | ;; | |
19116 | esac | |
19117 | ;; | |
19118 | dgux*) | |
19119 | case $cc_basename in | |
19120 | ec++*) | |
19121 | lt_prog_compiler_pic_CXX='-KPIC' | |
19122 | ;; | |
19123 | ghcx*) | |
19124 | # Green Hills C++ Compiler | |
19125 | lt_prog_compiler_pic_CXX='-pic' | |
19126 | ;; | |
19127 | *) | |
19128 | ;; | |
19129 | esac | |
19130 | ;; | |
19131 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
19132 | # FreeBSD uses GNU C++ | |
19133 | ;; | |
19134 | hpux9* | hpux10* | hpux11*) | |
19135 | case $cc_basename in | |
19136 | CC*) | |
19137 | lt_prog_compiler_wl_CXX='-Wl,' | |
19138 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
19139 | if test "$host_cpu" != ia64; then | |
19140 | lt_prog_compiler_pic_CXX='+Z' | |
19141 | fi | |
19142 | ;; | |
19143 | aCC*) | |
19144 | lt_prog_compiler_wl_CXX='-Wl,' | |
19145 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
19146 | case $host_cpu in | |
19147 | hppa*64*|ia64*) | |
19148 | # +Z the default | |
19149 | ;; | |
19150 | *) | |
19151 | lt_prog_compiler_pic_CXX='+Z' | |
19152 | ;; | |
19153 | esac | |
19154 | ;; | |
19155 | *) | |
19156 | ;; | |
19157 | esac | |
19158 | ;; | |
19159 | interix*) | |
19160 | # This is c89, which is MS Visual C++ (no shared libs) | |
19161 | # Anyone wants to do a port? | |
19162 | ;; | |
19163 | irix5* | irix6* | nonstopux*) | |
19164 | case $cc_basename in | |
19165 | CC*) | |
19166 | lt_prog_compiler_wl_CXX='-Wl,' | |
19167 | lt_prog_compiler_static_CXX='-non_shared' | |
19168 | # CC pic flag -KPIC is the default. | |
19169 | ;; | |
19170 | *) | |
19171 | ;; | |
19172 | esac | |
19173 | ;; | |
19174 | linux*) | |
19175 | case $cc_basename in | |
19176 | KCC*) | |
19177 | # KAI C++ Compiler | |
19178 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
19179 | lt_prog_compiler_pic_CXX='-fPIC' | |
19180 | ;; | |
19181 | icpc* | ecpc* ) | |
19182 | # Intel C++ | |
19183 | lt_prog_compiler_wl_CXX='-Wl,' | |
19184 | lt_prog_compiler_pic_CXX='-KPIC' | |
19185 | lt_prog_compiler_static_CXX='-static' | |
19186 | ;; | |
19187 | pgCC*) | |
19188 | # Portland Group C++ compiler | |
19189 | lt_prog_compiler_wl_CXX='-Wl,' | |
19190 | lt_prog_compiler_pic_CXX='-fpic' | |
19191 | lt_prog_compiler_static_CXX='-Bstatic' | |
19192 | ;; | |
19193 | cxx*) | |
19194 | # Compaq C++ | |
19195 | # Make sure the PIC flag is empty. It appears that all Alpha | |
19196 | # Linux and Compaq Tru64 Unix objects are PIC. | |
19197 | lt_prog_compiler_pic_CXX= | |
19198 | lt_prog_compiler_static_CXX='-non_shared' | |
19199 | ;; | |
19200 | *) | |
19201 | ;; | |
19202 | esac | |
19203 | ;; | |
19204 | lynxos*) | |
19205 | ;; | |
19206 | m88k*) | |
19207 | ;; | |
19208 | mvs*) | |
19209 | case $cc_basename in | |
19210 | cxx*) | |
19211 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
19212 | ;; | |
19213 | *) | |
19214 | ;; | |
19215 | esac | |
19216 | ;; | |
19217 | netbsd*) | |
19218 | ;; | |
19219 | *qnx* | *nto*) | |
19220 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
19221 | # it will coredump. | |
19222 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
19223 | ;; | |
19224 | osf3* | osf4* | osf5*) | |
19225 | case $cc_basename in | |
19226 | KCC*) | |
19227 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
19228 | ;; | |
19229 | RCC*) | |
19230 | # Rational C++ 2.4.1 | |
19231 | lt_prog_compiler_pic_CXX='-pic' | |
19232 | ;; | |
19233 | cxx*) | |
19234 | # Digital/Compaq C++ | |
19235 | lt_prog_compiler_wl_CXX='-Wl,' | |
19236 | # Make sure the PIC flag is empty. It appears that all Alpha | |
19237 | # Linux and Compaq Tru64 Unix objects are PIC. | |
19238 | lt_prog_compiler_pic_CXX= | |
19239 | lt_prog_compiler_static_CXX='-non_shared' | |
19240 | ;; | |
19241 | *) | |
19242 | ;; | |
19243 | esac | |
19244 | ;; | |
19245 | psos*) | |
19246 | ;; | |
19247 | solaris*) | |
19248 | case $cc_basename in | |
19249 | CC*) | |
19250 | # Sun C++ 4.2, 5.x and Centerline C++ | |
19251 | lt_prog_compiler_pic_CXX='-KPIC' | |
19252 | lt_prog_compiler_static_CXX='-Bstatic' | |
19253 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
19254 | ;; | |
19255 | gcx*) | |
19256 | # Green Hills C++ Compiler | |
19257 | lt_prog_compiler_pic_CXX='-PIC' | |
19258 | ;; | |
19259 | *) | |
19260 | ;; | |
19261 | esac | |
19262 | ;; | |
19263 | sunos4*) | |
19264 | case $cc_basename in | |
19265 | CC*) | |
19266 | # Sun C++ 4.x | |
19267 | lt_prog_compiler_pic_CXX='-pic' | |
19268 | lt_prog_compiler_static_CXX='-Bstatic' | |
19269 | ;; | |
19270 | lcc*) | |
19271 | # Lucid | |
19272 | lt_prog_compiler_pic_CXX='-pic' | |
19273 | ;; | |
19274 | *) | |
19275 | ;; | |
19276 | esac | |
19277 | ;; | |
19278 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
19279 | case $cc_basename in | |
19280 | CC*) | |
19281 | lt_prog_compiler_wl_CXX='-Wl,' | |
19282 | lt_prog_compiler_pic_CXX='-KPIC' | |
19283 | lt_prog_compiler_static_CXX='-Bstatic' | |
19284 | ;; | |
19285 | esac | |
19286 | ;; | |
19287 | tandem*) | |
19288 | case $cc_basename in | |
19289 | NCC*) | |
19290 | # NonStop-UX NCC 3.20 | |
19291 | lt_prog_compiler_pic_CXX='-KPIC' | |
19292 | ;; | |
19293 | *) | |
19294 | ;; | |
19295 | esac | |
19296 | ;; | |
19297 | vxworks*) | |
19298 | ;; | |
19299 | *) | |
19300 | lt_prog_compiler_can_build_shared_CXX=no | |
19301 | ;; | |
19302 | esac | |
19303 | fi | |
19304 | ||
19305 | case $host_os in | |
19306 | # For platforms which do not support PIC, -DPIC is meaningless: | |
19307 | *djgpp*) | |
19308 | lt_prog_compiler_pic_CXX= | |
19309 | ;; | |
19310 | *) | |
19311 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
19312 | ;; | |
19313 | esac | |
19314 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
19315 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } | |
19316 | ||
19317 | ||
19318 | ||
19319 | # | |
19320 | # Check to make sure the PIC flag actually works. | |
19321 | # | |
19322 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
19323 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
19324 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } | |
19325 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
19326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19327 | else | |
19328 | lt_prog_compiler_pic_works_CXX=no | |
19329 | ac_outfile=conftest.$ac_objext | |
19330 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
19331 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
19332 | # Insert the option either (1) after the last *FLAGS variable, or | |
19333 | # (2) before a word containing "conftest.", or (3) at the end. | |
19334 | # Note that $ac_compile itself does not contain backslashes and begins | |
19335 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
19336 | # The option is referenced via a variable to avoid confusing sed. | |
19337 | lt_compile=`echo "$ac_compile" | $SED \ | |
19338 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
19339 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
19340 | -e 's:$: $lt_compiler_flag:'` | |
19341 | (eval echo "\"\$as_me:19341: $lt_compile\"" >&5) | |
19342 | (eval "$lt_compile" 2>conftest.err) | |
19343 | ac_status=$? | |
19344 | cat conftest.err >&5 | |
19345 | echo "$as_me:19345: \$? = $ac_status" >&5 | |
19346 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
19347 | # The compiler can only warn and ignore the option if not recognized | |
19348 | # So say no if there are warnings other than the usual output. | |
19349 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
19350 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
19351 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
19352 | lt_prog_compiler_pic_works_CXX=yes | |
19353 | fi | |
19354 | fi | |
19355 | $RM conftest* | |
19356 | ||
19357 | fi | |
19358 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | |
19359 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } | |
19360 | ||
19361 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
19362 | case $lt_prog_compiler_pic_CXX in | |
19363 | "" | " "*) ;; | |
19364 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
19365 | esac | |
19366 | else | |
19367 | lt_prog_compiler_pic_CXX= | |
19368 | lt_prog_compiler_can_build_shared_CXX=no | |
19369 | fi | |
19370 | ||
19371 | fi | |
19372 | ||
19373 | ||
19374 | ||
19375 | # | |
19376 | # Check to make sure the static flag actually works. | |
19377 | # | |
19378 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
19379 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
19380 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
19381 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then | |
19382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19383 | else | |
19384 | lt_prog_compiler_static_works_CXX=no | |
19385 | save_LDFLAGS="$LDFLAGS" | |
19386 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
19387 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
19388 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
19389 | # The linker can only warn and ignore the option if not recognized | |
19390 | # So say no if there are warnings | |
19391 | if test -s conftest.err; then | |
19392 | # Append any errors to the config.log. | |
19393 | cat conftest.err 1>&5 | |
19394 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
19395 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
19396 | if diff conftest.exp conftest.er2 >/dev/null; then | |
19397 | lt_prog_compiler_static_works_CXX=yes | |
19398 | fi | |
19399 | else | |
19400 | lt_prog_compiler_static_works_CXX=yes | |
19401 | fi | |
19402 | fi | |
19403 | $RM conftest* | |
19404 | LDFLAGS="$save_LDFLAGS" | |
19405 | ||
19406 | fi | |
19407 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 | |
19408 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } | |
19409 | ||
19410 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then | |
19411 | : | |
19412 | else | |
19413 | lt_prog_compiler_static_CXX= | |
19414 | fi | |
19415 | ||
19416 | ||
19417 | ||
19418 | ||
19419 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
19420 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
19421 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
19422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19423 | else | |
19424 | lt_cv_prog_compiler_c_o_CXX=no | |
19425 | $RM -r conftest 2>/dev/null | |
19426 | mkdir conftest | |
19427 | cd conftest | |
19428 | mkdir out | |
19429 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
19430 | ||
19431 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
19432 | # Insert the option either (1) after the last *FLAGS variable, or | |
19433 | # (2) before a word containing "conftest.", or (3) at the end. | |
19434 | # Note that $ac_compile itself does not contain backslashes and begins | |
19435 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
19436 | lt_compile=`echo "$ac_compile" | $SED \ | |
19437 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
19438 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
19439 | -e 's:$: $lt_compiler_flag:'` | |
19440 | (eval echo "\"\$as_me:19440: $lt_compile\"" >&5) | |
19441 | (eval "$lt_compile" 2>out/conftest.err) | |
19442 | ac_status=$? | |
19443 | cat out/conftest.err >&5 | |
19444 | echo "$as_me:19444: \$? = $ac_status" >&5 | |
19445 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
19446 | then | |
19447 | # The compiler can only warn and ignore the option if not recognized | |
19448 | # So say no if there are warnings | |
19449 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
19450 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
19451 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
19452 | lt_cv_prog_compiler_c_o_CXX=yes | |
19453 | fi | |
19454 | fi | |
19455 | chmod u+w . 2>&5 | |
19456 | $RM conftest* | |
19457 | # SGI C++ compiler will create directory out/ii_files/ for | |
19458 | # template instantiation | |
19459 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
19460 | $RM out/* && rmdir out | |
19461 | cd .. | |
19462 | $RM -r conftest | |
19463 | $RM conftest* | |
19464 | ||
19465 | fi | |
19466 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
19467 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
19468 | ||
19469 | ||
19470 | ||
19471 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
19472 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
19473 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
19474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19475 | else | |
19476 | lt_cv_prog_compiler_c_o_CXX=no | |
19477 | $RM -r conftest 2>/dev/null | |
19478 | mkdir conftest | |
19479 | cd conftest | |
19480 | mkdir out | |
19481 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
19482 | ||
19483 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
19484 | # Insert the option either (1) after the last *FLAGS variable, or | |
19485 | # (2) before a word containing "conftest.", or (3) at the end. | |
19486 | # Note that $ac_compile itself does not contain backslashes and begins | |
19487 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
19488 | lt_compile=`echo "$ac_compile" | $SED \ | |
19489 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
19490 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
19491 | -e 's:$: $lt_compiler_flag:'` | |
19492 | (eval echo "\"\$as_me:19492: $lt_compile\"" >&5) | |
19493 | (eval "$lt_compile" 2>out/conftest.err) | |
19494 | ac_status=$? | |
19495 | cat out/conftest.err >&5 | |
19496 | echo "$as_me:19496: \$? = $ac_status" >&5 | |
19497 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
19498 | then | |
19499 | # The compiler can only warn and ignore the option if not recognized | |
19500 | # So say no if there are warnings | |
19501 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
19502 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
19503 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
19504 | lt_cv_prog_compiler_c_o_CXX=yes | |
19505 | fi | |
19506 | fi | |
19507 | chmod u+w . 2>&5 | |
19508 | $RM conftest* | |
19509 | # SGI C++ compiler will create directory out/ii_files/ for | |
19510 | # template instantiation | |
19511 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
19512 | $RM out/* && rmdir out | |
19513 | cd .. | |
19514 | $RM -r conftest | |
19515 | $RM conftest* | |
19516 | ||
19517 | fi | |
19518 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
19519 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
19520 | ||
19521 | ||
19522 | ||
19523 | ||
19524 | hard_links="nottested" | |
19525 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
19526 | # do not overwrite the value of need_locks provided by the user | |
19527 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
19528 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
19529 | hard_links=yes | |
19530 | $RM conftest* | |
19531 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
19532 | touch conftest.a | |
19533 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
19534 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
19535 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
19536 | echo "${ECHO_T}$hard_links" >&6; } | |
19537 | if test "$hard_links" = no; then | |
19538 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
19539 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
19540 | need_locks=warn | |
19541 | fi | |
19542 | else | |
19543 | need_locks=no | |
19544 | fi | |
19545 | ||
19546 | ||
19547 | ||
19548 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
19549 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
19550 | ||
19551 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
19552 | case $host_os in | |
19553 | aix4* | aix5*) | |
19554 | # If we're using GNU nm, then we don't want the "-C" option. | |
19555 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
19556 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
19557 | 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' | |
19558 | else | |
19559 | 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' | |
19560 | fi | |
19561 | ;; | |
19562 | pw32*) | |
19563 | export_symbols_cmds_CXX="$ltdll_cmds" | |
19564 | ;; | |
19565 | cygwin* | mingw*) | |
19566 | 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' | |
19567 | ;; | |
19568 | *) | |
19569 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
19570 | ;; | |
19571 | esac | |
19572 | ||
19573 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
19574 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | |
19575 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
19576 | ||
19577 | with_gnu_ld_CXX=$with_gnu_ld | |
19578 | ||
19579 | ||
19580 | ||
19581 | ||
19582 | ||
19583 | ||
19584 | # | |
19585 | # Do we need to explicitly link libc? | |
19586 | # | |
19587 | case "x$archive_cmds_need_lc_CXX" in | |
19588 | x|xyes) | |
19589 | # Assume -lc should be added | |
19590 | archive_cmds_need_lc_CXX=yes | |
19591 | ||
19592 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
19593 | case $archive_cmds_CXX in | |
19594 | *'~'*) | |
19595 | # FIXME: we may have to deal with multi-command sequences. | |
19596 | ;; | |
19597 | '$CC '*) | |
19598 | # Test whether the compiler implicitly links with -lc since on some | |
19599 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
19600 | # to ld, don't add -lc before -lgcc. | |
19601 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
19602 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
19603 | $RM conftest* | |
19604 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
19605 | ||
19606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19607 | (eval $ac_compile) 2>&5 | |
19608 | ac_status=$? | |
19609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19610 | (exit $ac_status); } 2>conftest.err; then | |
19611 | soname=conftest | |
19612 | lib=conftest | |
19613 | libobjs=conftest.$ac_objext | |
19614 | deplibs= | |
19615 | wl=$lt_prog_compiler_wl_CXX | |
19616 | pic_flag=$lt_prog_compiler_pic_CXX | |
19617 | compiler_flags=-v | |
19618 | linker_flags=-v | |
19619 | verstring= | |
19620 | output_objdir=. | |
19621 | libname=conftest | |
19622 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
19623 | allow_undefined_flag_CXX= | |
19624 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
19625 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
19626 | ac_status=$? | |
19627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19628 | (exit $ac_status); } | |
19629 | then | |
19630 | archive_cmds_need_lc_CXX=no | |
19631 | else | |
19632 | archive_cmds_need_lc_CXX=yes | |
19633 | fi | |
19634 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
19635 | else | |
19636 | cat conftest.err 1>&5 | |
19637 | fi | |
19638 | $RM conftest* | |
19639 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
19640 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } | |
19641 | ;; | |
19642 | esac | |
19643 | fi | |
19644 | ;; | |
19645 | esac | |
19646 | ||
19647 | ||
19648 | ||
19649 | ||
19650 | ||
19651 | ||
19652 | ||
19653 | ||
19654 | ||
19655 | ||
19656 | ||
19657 | ||
19658 | ||
19659 | ||
19660 | ||
19661 | ||
19662 | ||
19663 | ||
19664 | ||
19665 | ||
19666 | ||
19667 | ||
19668 | ||
19669 | ||
19670 | ||
19671 | ||
19672 | ||
19673 | ||
19674 | ||
19675 | ||
19676 | ||
19677 | ||
19678 | ||
19679 | ||
19680 | ||
19681 | ||
19682 | ||
19683 | ||
19684 | ||
19685 | ||
19686 | ||
19687 | ||
19688 | ||
19689 | ||
19690 | ||
19691 | ||
19692 | ||
19693 | ||
19694 | ||
19695 | ||
19696 | ||
19697 | ||
19698 | ||
19699 | ||
19700 | ||
19701 | ||
19702 | ||
19703 | ||
19704 | ||
19705 | ||
19706 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
19707 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
19708 | withGCC=$GXX | |
19709 | library_names_spec= | |
19710 | libname_spec='lib$name' | |
19711 | soname_spec= | |
19712 | shrext_cmds=".so" | |
19713 | postinstall_cmds= | |
19714 | postuninstall_cmds= | |
19715 | finish_cmds= | |
19716 | finish_eval= | |
19717 | shlibpath_var= | |
19718 | shlibpath_overrides_runpath=unknown | |
19719 | version_type=none | |
19720 | dynamic_linker="$host_os ld.so" | |
19721 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
19722 | if test "$withGCC" = yes; then | |
19723 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
19724 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then | |
19725 | # if the path contains ";" then we assume it to be the separator | |
19726 | # otherwise default to the standard path separator (i.e. ":") - it is | |
19727 | # assumed that no part of a normal pathname contains ";" but that should | |
19728 | # okay in the real world where ";" in dirpaths is itself problematic. | |
19729 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
19730 | else | |
19731 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
19732 | fi | |
19733 | else | |
19734 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
19735 | fi | |
19736 | need_lib_prefix=unknown | |
19737 | hardcode_into_libs=no | |
19738 | ||
19739 | # when you set need_version to no, make sure it does not cause -set_version | |
19740 | # flags to be left without arguments | |
19741 | need_version=unknown | |
19742 | ||
19743 | case $host_os in | |
19744 | aix3*) | |
19745 | version_type=linux | |
19746 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
19747 | shlibpath_var=LIBPATH | |
19748 | ||
19749 | # AIX 3 has no versioning support, so we append a major version to the name. | |
19750 | soname_spec='${libname}${release}${shared_ext}$major' | |
19751 | ;; | |
19752 | ||
19753 | aix4* | aix5*) | |
19754 | version_type=linux | |
19755 | need_lib_prefix=no | |
19756 | need_version=no | |
19757 | hardcode_into_libs=yes | |
19758 | if test "$host_cpu" = ia64; then | |
19759 | # AIX 5 supports IA64 | |
19760 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
19761 | shlibpath_var=LD_LIBRARY_PATH | |
19762 | else | |
19763 | # With GCC up to 2.95.x, collect2 would create an import file | |
19764 | # for dependence libraries. The import file would start with | |
19765 | # the line `#! .'. This would cause the generated library to | |
19766 | # depend on `.', always an invalid library. This was fixed in | |
19767 | # development snapshots of GCC prior to 3.0. | |
19768 | case $host_os in | |
19769 | aix4 | aix4.[01] | aix4.[01].*) | |
19770 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
19771 | echo ' yes ' | |
19772 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
19773 | : | |
19774 | else | |
19775 | can_build_shared=no | |
19776 | fi | |
19777 | ;; | |
19778 | esac | |
19779 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
19780 | # soname into executable. Probably we can add versioning support to | |
19781 | # collect2, so additional links can be useful in future. | |
19782 | if test "$aix_use_runtimelinking" = yes; then | |
19783 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
19784 | # instead of lib<name>.a to let people know that these are not | |
19785 | # typical AIX shared libraries. | |
19786 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19787 | else | |
19788 | # We preserve .a as extension for shared libraries through AIX4.2 | |
19789 | # and later when we are not doing run time linking. | |
19790 | library_names_spec='${libname}${release}.a $libname.a' | |
19791 | soname_spec='${libname}${release}${shared_ext}$major' | |
19792 | fi | |
19793 | shlibpath_var=LIBPATH | |
19794 | fi | |
19795 | ;; | |
19796 | ||
19797 | amigaos*) | |
19798 | if test "$host_cpu" = m68k; then | |
19799 | library_names_spec='$libname.ixlibrary $libname.a' | |
19800 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
19801 | 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' | |
19802 | else | |
19803 | dynamic_linker=no | |
19804 | fi | |
19805 | ;; | |
19806 | ||
19807 | beos*) | |
19808 | library_names_spec='${libname}${shared_ext}' | |
19809 | dynamic_linker="$host_os ld.so" | |
19810 | shlibpath_var=LIBRARY_PATH | |
19811 | ;; | |
19812 | ||
19813 | bsdi[45]*) | |
19814 | version_type=linux | |
19815 | need_version=no | |
19816 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19817 | soname_spec='${libname}${release}${shared_ext}$major' | |
19818 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
19819 | shlibpath_var=LD_LIBRARY_PATH | |
19820 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
19821 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
19822 | # the default ld.so.conf also contains /usr/contrib/lib and | |
19823 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
19824 | # libtool to hard-code these into programs | |
19825 | ;; | |
19826 | ||
19827 | cygwin* | mingw* | pw32*) | |
19828 | version_type=windows | |
19829 | shrext_cmds=".dll" | |
19830 | need_version=no | |
19831 | need_lib_prefix=no | |
19832 | ||
19833 | case $withGCC,$host_os in | |
19834 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
19835 | library_names_spec='$libname.dll.a' | |
19836 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
19837 | postinstall_cmds='base_file=`basename \${file}`~ | |
19838 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
19839 | dldir=$destdir/`dirname \$dlpath`~ | |
19840 | test -d \$dldir || mkdir -p \$dldir~ | |
19841 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
19842 | chmod a+x \$dldir/$dlname~ | |
19843 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
19844 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
19845 | fi' | |
19846 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
19847 | dlpath=$dir/\$dldll~ | |
19848 | $RM \$dlpath' | |
19849 | shlibpath_overrides_runpath=yes | |
19850 | ||
19851 | case $host_os in | |
19852 | cygwin*) | |
19853 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
19854 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19855 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
19856 | ;; | |
19857 | mingw*) | |
19858 | # MinGW DLLs use traditional 'lib' prefix | |
19859 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19860 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
19861 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
19862 | # It is most probably a Windows format PATH printed by | |
19863 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
19864 | # path with ; separators, and with drive letters. We can handle the | |
19865 | # drive letters (cygwin fileutils understands them), so leave them, | |
19866 | # especially as we might pass files found there to a mingw objdump, | |
19867 | # which wouldn't understand a cygwinified path. Ahh. | |
19868 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
19869 | else | |
19870 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
19871 | fi | |
19872 | ;; | |
19873 | pw32*) | |
19874 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
19875 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19876 | ;; | |
19877 | esac | |
19878 | ;; | |
19879 | ||
19880 | *) | |
19881 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
19882 | ;; | |
19883 | esac | |
19884 | dynamic_linker='Win32 ld.exe' | |
19885 | # FIXME: first we should search . and the directory the executable is in | |
19886 | shlibpath_var=PATH | |
19887 | ;; | |
19888 | ||
19889 | darwin* | rhapsody*) | |
19890 | dynamic_linker="$host_os dyld" | |
19891 | version_type=darwin | |
19892 | need_lib_prefix=no | |
19893 | need_version=no | |
19894 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
19895 | soname_spec='${libname}${release}${major}$shared_ext' | |
19896 | shlibpath_overrides_runpath=yes | |
19897 | shlibpath_var=DYLD_LIBRARY_PATH | |
19898 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
19899 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
19900 | if test "$withGCC" = yes; then | |
19901 | 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"` | |
19902 | else | |
19903 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
19904 | fi | |
19905 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
19906 | ;; | |
19907 | ||
19908 | dgux*) | |
19909 | version_type=linux | |
19910 | need_lib_prefix=no | |
19911 | need_version=no | |
19912 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
19913 | soname_spec='${libname}${release}${shared_ext}$major' | |
19914 | shlibpath_var=LD_LIBRARY_PATH | |
19915 | ;; | |
19916 | ||
19917 | freebsd1*) | |
19918 | dynamic_linker=no | |
19919 | ;; | |
19920 | ||
19921 | kfreebsd*-gnu) | |
19922 | version_type=linux | |
19923 | need_lib_prefix=no | |
19924 | need_version=no | |
19925 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
19926 | soname_spec='${libname}${release}${shared_ext}$major' | |
19927 | shlibpath_var=LD_LIBRARY_PATH | |
19928 | shlibpath_overrides_runpath=no | |
19929 | hardcode_into_libs=yes | |
19930 | dynamic_linker='GNU ld.so' | |
19931 | ;; | |
19932 | ||
19933 | freebsd* | dragonfly*) | |
19934 | # DragonFly does not have aout. When/if they implement a new | |
19935 | # versioning mechanism, adjust this. | |
19936 | if test -x /usr/bin/objformat; then | |
19937 | objformat=`/usr/bin/objformat` | |
19938 | else | |
19939 | case $host_os in | |
19940 | freebsd[123]*) objformat=aout ;; | |
19941 | *) objformat=elf ;; | |
19942 | esac | |
19943 | fi | |
19944 | version_type=freebsd-$objformat | |
19945 | case $version_type in | |
19946 | freebsd-elf*) | |
19947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
19948 | need_version=no | |
19949 | need_lib_prefix=no | |
19950 | ;; | |
19951 | freebsd-*) | |
19952 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
19953 | need_version=yes | |
19954 | ;; | |
19955 | esac | |
19956 | shlibpath_var=LD_LIBRARY_PATH | |
19957 | case $host_os in | |
19958 | freebsd2*) | |
19959 | shlibpath_overrides_runpath=yes | |
19960 | ;; | |
19961 | freebsd3.[01]* | freebsdelf3.[01]*) | |
19962 | shlibpath_overrides_runpath=yes | |
19963 | hardcode_into_libs=yes | |
19964 | ;; | |
19965 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
19966 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
19967 | shlibpath_overrides_runpath=no | |
19968 | hardcode_into_libs=yes | |
19969 | ;; | |
19970 | freebsd*) # from 4.6 on | |
19971 | shlibpath_overrides_runpath=yes | |
19972 | hardcode_into_libs=yes | |
19973 | ;; | |
19974 | esac | |
19975 | ;; | |
19976 | ||
19977 | gnu*) | |
19978 | version_type=linux | |
19979 | need_lib_prefix=no | |
19980 | need_version=no | |
19981 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
19982 | soname_spec='${libname}${release}${shared_ext}$major' | |
19983 | shlibpath_var=LD_LIBRARY_PATH | |
19984 | hardcode_into_libs=yes | |
19985 | ;; | |
19986 | ||
19987 | hpux9* | hpux10* | hpux11*) | |
19988 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
19989 | # link against other versions. | |
19990 | version_type=sunos | |
19991 | need_lib_prefix=no | |
19992 | need_version=no | |
19993 | case $host_cpu in | |
19994 | ia64*) | |
19995 | shrext_cmds='.so' | |
19996 | hardcode_into_libs=yes | |
19997 | dynamic_linker="$host_os dld.so" | |
19998 | shlibpath_var=LD_LIBRARY_PATH | |
19999 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
20000 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20001 | soname_spec='${libname}${release}${shared_ext}$major' | |
20002 | if test "X$HPUX_IA64_MODE" = X32; then | |
20003 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
20004 | else | |
20005 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
20006 | fi | |
20007 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
20008 | ;; | |
20009 | hppa*64*) | |
20010 | shrext_cmds='.sl' | |
20011 | hardcode_into_libs=yes | |
20012 | dynamic_linker="$host_os dld.sl" | |
20013 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
20014 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
20015 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20016 | soname_spec='${libname}${release}${shared_ext}$major' | |
20017 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
20018 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
20019 | ;; | |
20020 | *) | |
20021 | shrext_cmds='.sl' | |
20022 | dynamic_linker="$host_os dld.sl" | |
20023 | shlibpath_var=SHLIB_PATH | |
20024 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
20025 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20026 | soname_spec='${libname}${release}${shared_ext}$major' | |
20027 | ;; | |
20028 | esac | |
20029 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
20030 | postinstall_cmds='chmod 555 $lib' | |
20031 | ;; | |
20032 | ||
20033 | interix3*) | |
20034 | version_type=linux | |
20035 | need_lib_prefix=no | |
20036 | need_version=no | |
20037 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
20038 | soname_spec='${libname}${release}${shared_ext}$major' | |
20039 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
20040 | shlibpath_var=LD_LIBRARY_PATH | |
20041 | shlibpath_overrides_runpath=no | |
20042 | hardcode_into_libs=yes | |
20043 | ;; | |
20044 | ||
20045 | irix5* | irix6* | nonstopux*) | |
20046 | case $host_os in | |
20047 | nonstopux*) version_type=nonstopux ;; | |
20048 | *) | |
20049 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
20050 | version_type=linux | |
20051 | else | |
20052 | version_type=irix | |
20053 | fi ;; | |
20054 | esac | |
20055 | need_lib_prefix=no | |
20056 | need_version=no | |
20057 | soname_spec='${libname}${release}${shared_ext}$major' | |
20058 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
20059 | case $host_os in | |
20060 | irix5* | nonstopux*) | |
20061 | libsuff= shlibsuff= | |
20062 | ;; | |
20063 | *) | |
20064 | case $LD in # libtool.m4 will add one of these switches to LD | |
20065 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
20066 | libsuff= shlibsuff= libmagic=32-bit;; | |
20067 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
20068 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
20069 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
20070 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
20071 | *) libsuff= shlibsuff= libmagic=never-match;; | |
20072 | esac | |
20073 | ;; | |
20074 | esac | |
20075 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
20076 | shlibpath_overrides_runpath=no | |
20077 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
20078 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
20079 | hardcode_into_libs=yes | |
20080 | ;; | |
20081 | ||
20082 | # No shared lib support for Linux oldld, aout, or coff. | |
20083 | linux*oldld* | linux*aout* | linux*coff*) | |
20084 | dynamic_linker=no | |
20085 | ;; | |
20086 | ||
20087 | # This must be Linux ELF. | |
20088 | linux*) | |
20089 | version_type=linux | |
20090 | need_lib_prefix=no | |
20091 | need_version=no | |
20092 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20093 | soname_spec='${libname}${release}${shared_ext}$major' | |
20094 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
20095 | shlibpath_var=LD_LIBRARY_PATH | |
20096 | shlibpath_overrides_runpath=no | |
20097 | # This implies no fast_install, which is unacceptable. | |
20098 | # Some rework will be needed to allow for fast_install | |
20099 | # before this can be enabled. | |
20100 | hardcode_into_libs=yes | |
20101 | ||
20102 | # Append ld.so.conf contents to the search path | |
20103 | if test -f /etc/ld.so.conf; then | |
20104 | 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' ' '` | |
20105 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
20106 | fi | |
20107 | ||
20108 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
20109 | # powerpc, because MkLinux only supported shared libraries with the | |
20110 | # GNU dynamic linker. Since this was broken with cross compilers, | |
20111 | # most powerpc-linux boxes support dynamic linking these days and | |
20112 | # people can always --disable-shared, the test was removed, and we | |
20113 | # assume the GNU/Linux dynamic linker is in use. | |
20114 | dynamic_linker='GNU/Linux ld.so' | |
20115 | ;; | |
20116 | ||
20117 | knetbsd*-gnu) | |
20118 | version_type=linux | |
20119 | need_lib_prefix=no | |
20120 | need_version=no | |
20121 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
20122 | soname_spec='${libname}${release}${shared_ext}$major' | |
20123 | shlibpath_var=LD_LIBRARY_PATH | |
20124 | shlibpath_overrides_runpath=no | |
20125 | hardcode_into_libs=yes | |
20126 | dynamic_linker='GNU ld.so' | |
20127 | ;; | |
20128 | ||
20129 | netbsd*) | |
20130 | version_type=sunos | |
20131 | need_lib_prefix=no | |
20132 | need_version=no | |
20133 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
20134 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
20135 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
20136 | dynamic_linker='NetBSD (a.out) ld.so' | |
20137 | else | |
20138 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
20139 | soname_spec='${libname}${release}${shared_ext}$major' | |
20140 | dynamic_linker='NetBSD ld.elf_so' | |
20141 | fi | |
20142 | shlibpath_var=LD_LIBRARY_PATH | |
20143 | shlibpath_overrides_runpath=yes | |
20144 | hardcode_into_libs=yes | |
20145 | ;; | |
20146 | ||
20147 | newsos6) | |
20148 | version_type=linux | |
20149 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20150 | shlibpath_var=LD_LIBRARY_PATH | |
20151 | shlibpath_overrides_runpath=yes | |
20152 | ;; | |
20153 | ||
20154 | *nto* | *qnx*) | |
20155 | version_type=qnx | |
20156 | need_lib_prefix=no | |
20157 | need_version=no | |
20158 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20159 | soname_spec='${libname}${release}${shared_ext}$major' | |
20160 | shlibpath_var=LD_LIBRARY_PATH | |
20161 | shlibpath_overrides_runpath=no | |
20162 | hardcode_into_libs=yes | |
20163 | dynamic_linker='ldqnx.so' | |
20164 | ;; | |
20165 | ||
20166 | openbsd*) | |
20167 | version_type=sunos | |
20168 | sys_lib_dlsearch_path_spec="/usr/lib" | |
20169 | need_lib_prefix=no | |
20170 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
20171 | case $host_os in | |
20172 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
20173 | *) need_version=no ;; | |
20174 | esac | |
20175 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
20176 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
20177 | shlibpath_var=LD_LIBRARY_PATH | |
20178 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
20179 | case $host_os in | |
20180 | openbsd2.[89] | openbsd2.[89].*) | |
20181 | shlibpath_overrides_runpath=no | |
20182 | ;; | |
20183 | *) | |
20184 | shlibpath_overrides_runpath=yes | |
20185 | ;; | |
20186 | esac | |
20187 | else | |
20188 | shlibpath_overrides_runpath=yes | |
20189 | fi | |
20190 | ;; | |
20191 | ||
20192 | os2*) | |
20193 | libname_spec='$name' | |
20194 | shrext_cmds=".dll" | |
20195 | need_lib_prefix=no | |
20196 | library_names_spec='$libname${shared_ext} $libname.a' | |
20197 | dynamic_linker='OS/2 ld.exe' | |
20198 | shlibpath_var=LIBPATH | |
20199 | ;; | |
20200 | ||
20201 | osf3* | osf4* | osf5*) | |
20202 | version_type=osf | |
20203 | need_lib_prefix=no | |
20204 | need_version=no | |
20205 | soname_spec='${libname}${release}${shared_ext}$major' | |
20206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20207 | shlibpath_var=LD_LIBRARY_PATH | |
20208 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
20209 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
20210 | ;; | |
20211 | ||
20212 | rdos*) | |
20213 | dynamic_linker=no | |
20214 | ;; | |
20215 | ||
20216 | solaris*) | |
20217 | version_type=linux | |
20218 | need_lib_prefix=no | |
20219 | need_version=no | |
20220 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20221 | soname_spec='${libname}${release}${shared_ext}$major' | |
20222 | shlibpath_var=LD_LIBRARY_PATH | |
20223 | shlibpath_overrides_runpath=yes | |
20224 | hardcode_into_libs=yes | |
20225 | # ldd complains unless libraries are executable | |
20226 | postinstall_cmds='chmod +x $lib' | |
20227 | ;; | |
20228 | ||
20229 | sunos4*) | |
20230 | version_type=sunos | |
20231 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
20232 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
20233 | shlibpath_var=LD_LIBRARY_PATH | |
20234 | shlibpath_overrides_runpath=yes | |
20235 | if test "$with_gnu_ld" = yes; then | |
20236 | need_lib_prefix=no | |
20237 | fi | |
20238 | need_version=yes | |
20239 | ;; | |
20240 | ||
20241 | sysv4 | sysv4.3*) | |
20242 | version_type=linux | |
20243 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20244 | soname_spec='${libname}${release}${shared_ext}$major' | |
20245 | shlibpath_var=LD_LIBRARY_PATH | |
20246 | case $host_vendor in | |
20247 | sni) | |
20248 | shlibpath_overrides_runpath=no | |
20249 | need_lib_prefix=no | |
20250 | runpath_var=LD_RUN_PATH | |
20251 | ;; | |
20252 | siemens) | |
20253 | need_lib_prefix=no | |
20254 | ;; | |
20255 | motorola) | |
20256 | need_lib_prefix=no | |
20257 | need_version=no | |
20258 | shlibpath_overrides_runpath=no | |
20259 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
20260 | ;; | |
20261 | esac | |
20262 | ;; | |
20263 | ||
20264 | sysv4*MP*) | |
20265 | if test -d /usr/nec ;then | |
20266 | version_type=linux | |
20267 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
20268 | soname_spec='$libname${shared_ext}.$major' | |
20269 | shlibpath_var=LD_LIBRARY_PATH | |
20270 | fi | |
20271 | ;; | |
20272 | ||
20273 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
20274 | version_type=freebsd-elf | |
20275 | need_lib_prefix=no | |
20276 | need_version=no | |
20277 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
20278 | soname_spec='${libname}${release}${shared_ext}$major' | |
20279 | shlibpath_var=LD_LIBRARY_PATH | |
20280 | shlibpath_overrides_runpath=yes | |
20281 | hardcode_into_libs=yes | |
20282 | if test "$with_gnu_ld" = yes; then | |
20283 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
20284 | else | |
20285 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
20286 | case $host_os in | |
20287 | sco3.2v5*) | |
20288 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
20289 | ;; | |
20290 | esac | |
20291 | fi | |
20292 | sys_lib_dlsearch_path_spec='/usr/lib' | |
20293 | ;; | |
20294 | ||
20295 | tpf*) | |
20296 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
20297 | version_type=linux | |
20298 | need_lib_prefix=no | |
20299 | need_version=no | |
20300 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20301 | shlibpath_var=LD_LIBRARY_PATH | |
20302 | shlibpath_overrides_runpath=no | |
20303 | hardcode_into_libs=yes | |
20304 | ;; | |
20305 | ||
20306 | uts4*) | |
20307 | version_type=linux | |
20308 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20309 | soname_spec='${libname}${release}${shared_ext}$major' | |
20310 | shlibpath_var=LD_LIBRARY_PATH | |
20311 | ;; | |
20312 | ||
20313 | *) | |
20314 | dynamic_linker=no | |
20315 | ;; | |
20316 | esac | |
20317 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
20318 | echo "${ECHO_T}$dynamic_linker" >&6; } | |
20319 | test "$dynamic_linker" = no && can_build_shared=no | |
20320 | ||
20321 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
20322 | if test "$GCC" = yes; then | |
20323 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
20324 | fi | |
20325 | ||
20326 | ||
20327 | ||
20328 | ||
20329 | ||
20330 | ||
20331 | ||
20332 | ||
20333 | ||
20334 | ||
20335 | ||
20336 | ||
20337 | ||
20338 | ||
20339 | ||
20340 | ||
20341 | ||
20342 | ||
20343 | ||
20344 | ||
20345 | ||
20346 | ||
20347 | ||
20348 | ||
20349 | ||
20350 | ||
20351 | ||
20352 | ||
20353 | ||
20354 | ||
20355 | ||
20356 | ||
20357 | ||
20358 | ||
20359 | ||
20360 | ||
20361 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
20362 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
20363 | hardcode_action_CXX= | |
20364 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
20365 | test -n "$runpath_var_CXX" || | |
20366 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
20367 | ||
20368 | # We can hardcode non-existent directories. | |
20369 | if test "$hardcode_direct_CXX" != no && | |
20370 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
20371 | # have to relink, otherwise we might link with an installed library | |
20372 | # when we should be linking with a yet-to-be-installed one | |
20373 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
20374 | test "$hardcode_minus_L_CXX" != no; then | |
20375 | # Linking always hardcodes the temporary library directory. | |
20376 | hardcode_action_CXX=relink | |
20377 | else | |
20378 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
20379 | hardcode_action_CXX=immediate | |
20380 | fi | |
20381 | else | |
20382 | # We cannot hardcode anything, or else we can only hardcode existing | |
20383 | # directories. | |
20384 | hardcode_action_CXX=unsupported | |
20385 | fi | |
20386 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | |
20387 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } | |
20388 | ||
20389 | if test "$hardcode_action_CXX" = relink || | |
20390 | test "$inherit_rpath_CXX" = yes; then | |
20391 | # Fast installation is not supported | |
20392 | enable_fast_install=no | |
20393 | elif test "$shlibpath_overrides_runpath" = yes || | |
20394 | test "$enable_shared" = no; then | |
20395 | # Fast installation is not necessary | |
20396 | enable_fast_install=needless | |
20397 | fi | |
20398 | ||
20399 | ||
20400 | ||
20401 | ||
20402 | ||
20403 | ||
20404 | ||
20405 | fi # test -n "$compiler" | |
20406 | ||
20407 | CC=$lt_save_CC | |
20408 | LDCXX=$LD | |
20409 | LD=$lt_save_LD | |
20410 | GCC=$lt_save_GCC | |
20411 | with_gnu_ld=$lt_save_with_gnu_ld | |
20412 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
20413 | lt_cv_path_LD=$lt_save_path_LD | |
20414 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
20415 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
20416 | fi # test "$_lt_caught_CXX_error" != yes | |
20417 | ||
20418 | ac_ext=c | |
20419 | ac_cpp='$CPP $CPPFLAGS' | |
20420 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20421 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20422 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20423 | ||
20424 | ||
20425 | GLU_CFLAGS="${GL_CFLAGS}" | |
20426 | if test "X${with_apple_opengl_framework}" != "Xyes"; then | |
20427 | { echo "$as_me:$LINENO: checking for OpenGL Utility library" >&5 | |
20428 | echo $ECHO_N "checking for OpenGL Utility library... $ECHO_C" >&6; } | |
20429 | if test "${ax_cv_check_glu_libglu+set}" = set; then | |
20430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20431 | else | |
20432 | ax_cv_check_glu_libglu="no" | |
20433 | ax_save_CPPFLAGS="${CPPFLAGS}" | |
20434 | CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" | |
20435 | ax_save_LIBS="${LIBS}" | |
20436 | LIBS="" | |
20437 | ax_check_libs="-lglu32 -lGLU" | |
20438 | for ax_lib in ${ax_check_libs}; do | |
20439 | if test X$ax_compiler_ms = Xyes; then | |
20440 | ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` | |
20441 | else | |
20442 | ax_try_lib="${ax_lib}" | |
20443 | fi | |
20444 | LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" | |
20445 | # | |
20446 | # libGLU typically links with libstdc++ on POSIX platforms. However, | |
20447 | # setting the language to C++ means that test program source is named | |
20448 | # "conftest.cc"; and Microsoft cl doesn't know what to do with such a | |
20449 | # file. | |
20450 | # | |
20451 | ac_ext=cpp | |
20452 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20453 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20454 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20455 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20456 | ||
20457 | if test X$ax_compiler_ms = Xyes; then | |
20458 | ac_ext=c | |
20459 | ac_cpp='$CPP $CPPFLAGS' | |
20460 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20461 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20462 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20463 | ||
20464 | fi | |
20465 | cat >conftest.$ac_ext <<_ACEOF | |
20466 | /* confdefs.h. */ | |
20467 | _ACEOF | |
20468 | cat confdefs.h >>conftest.$ac_ext | |
20469 | cat >>conftest.$ac_ext <<_ACEOF | |
20470 | /* end confdefs.h. */ | |
20471 | ||
20472 | # if HAVE_WINDOWS_H && defined(_WIN32) | |
20473 | # include <windows.h> | |
20474 | # endif | |
20475 | # include <GL/glu.h> | |
20476 | int | |
20477 | main () | |
20478 | { | |
20479 | gluBeginCurve(0) | |
20480 | ; | |
20481 | return 0; | |
20482 | } | |
20483 | _ACEOF | |
20484 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20485 | if { (ac_try="$ac_link" | |
20486 | case "(($ac_try" in | |
20487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20488 | *) ac_try_echo=$ac_try;; | |
20489 | esac | |
20490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20491 | (eval "$ac_link") 2>conftest.er1 | |
20492 | ac_status=$? | |
20493 | grep -v '^ *+' conftest.er1 >conftest.err | |
20494 | rm -f conftest.er1 | |
20495 | cat conftest.err >&5 | |
20496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20497 | (exit $ac_status); } && { | |
20498 | test -z "$ac_c_werror_flag" || | |
20499 | test ! -s conftest.err | |
20500 | } && test -s conftest$ac_exeext && | |
20501 | $as_test_x conftest$ac_exeext; then | |
20502 | ax_cv_check_glu_libglu="${ax_try_lib}"; break | |
20503 | else | |
20504 | echo "$as_me: failed program was:" >&5 | |
20505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20506 | ||
20507 | ||
20508 | fi | |
20509 | ||
20510 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20511 | conftest$ac_exeext conftest.$ac_ext | |
20512 | if test X$ax_compiler_ms = Xyes; then | |
20513 | ac_ext=cpp | |
20514 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20515 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20516 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20517 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20518 | ||
20519 | fi | |
20520 | ac_ext=c | |
20521 | ac_cpp='$CPP $CPPFLAGS' | |
20522 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20523 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20524 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20525 | ||
20526 | done | |
20527 | LIBS=${ax_save_LIBS} | |
20528 | CPPFLAGS=${ax_save_CPPFLAGS} | |
20529 | fi | |
20530 | { echo "$as_me:$LINENO: result: $ax_cv_check_glu_libglu" >&5 | |
20531 | echo "${ECHO_T}$ax_cv_check_glu_libglu" >&6; } | |
20532 | if test "X${ax_cv_check_glu_libglu}" = "Xno"; then | |
20533 | no_glu="yes" | |
20534 | GLU_CFLAGS="" | |
20535 | GLU_LIBS="" | |
20536 | else | |
20537 | GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" | |
20538 | fi | |
20539 | fi | |
20540 | ||
20541 | ||
20542 | ||
20543 | ||
20544 | if test "X$with_apple_opengl_framework" = "Xyes"; then | |
20545 | GLUT_CFLAGS="${GLU_CFLAGS}" | |
20546 | GLUT_LIBS="-framework GLUT -lobjc ${GL_LIBS}" | |
20547 | else | |
20548 | GLUT_CFLAGS=${GLU_CFLAGS} | |
20549 | GLUT_LIBS=${GLU_LIBS} | |
20550 | ||
20551 | # | |
20552 | # If X is present, assume GLUT depends on it. | |
20553 | # | |
20554 | if test "X${no_x}" != "Xyes"; then | |
20555 | GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" | |
20556 | fi | |
20557 | ||
20558 | ac_ext=c | |
20559 | ac_cpp='$CPP $CPPFLAGS' | |
20560 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20561 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20562 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20563 | ||
20564 | ||
20565 | ax_save_CPPFLAGS="${CPPFLAGS}" | |
20566 | CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" | |
20567 | ||
20568 | { echo "$as_me:$LINENO: checking for GLUT library" >&5 | |
20569 | echo $ECHO_N "checking for GLUT library... $ECHO_C" >&6; } | |
20570 | if test "${ax_cv_check_glut_libglut+set}" = set; then | |
20571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20572 | else | |
20573 | ax_cv_check_glut_libglut="no" | |
20574 | ax_save_LIBS="${LIBS}" | |
20575 | LIBS="" | |
20576 | ax_check_libs="-lglut32 -lglut" | |
20577 | for ax_lib in ${ax_check_libs}; do | |
20578 | if test X$ax_compiler_ms = Xyes; then | |
20579 | ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` | |
20580 | else | |
20581 | ax_try_lib="${ax_lib}" | |
20582 | fi | |
20583 | LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" | |
20584 | cat >conftest.$ac_ext <<_ACEOF | |
20585 | /* confdefs.h. */ | |
20586 | _ACEOF | |
20587 | cat confdefs.h >>conftest.$ac_ext | |
20588 | cat >>conftest.$ac_ext <<_ACEOF | |
20589 | /* end confdefs.h. */ | |
20590 | ||
20591 | # if HAVE_WINDOWS_H && defined(_WIN32) | |
20592 | # include <windows.h> | |
20593 | # endif | |
20594 | # include <GL/glut.h> | |
20595 | int | |
20596 | main () | |
20597 | { | |
20598 | glutMainLoop() | |
20599 | ; | |
20600 | return 0; | |
20601 | } | |
20602 | _ACEOF | |
20603 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20604 | if { (ac_try="$ac_link" | |
20605 | case "(($ac_try" in | |
20606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20607 | *) ac_try_echo=$ac_try;; | |
20608 | esac | |
20609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20610 | (eval "$ac_link") 2>conftest.er1 | |
20611 | ac_status=$? | |
20612 | grep -v '^ *+' conftest.er1 >conftest.err | |
20613 | rm -f conftest.er1 | |
20614 | cat conftest.err >&5 | |
20615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20616 | (exit $ac_status); } && { | |
20617 | test -z "$ac_c_werror_flag" || | |
20618 | test ! -s conftest.err | |
20619 | } && test -s conftest$ac_exeext && | |
20620 | $as_test_x conftest$ac_exeext; then | |
20621 | ax_cv_check_glut_libglut="${ax_try_lib}"; break | |
20622 | else | |
20623 | echo "$as_me: failed program was:" >&5 | |
20624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20625 | ||
20626 | ||
20627 | fi | |
20628 | ||
20629 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20630 | conftest$ac_exeext conftest.$ac_ext | |
20631 | ||
20632 | done | |
20633 | LIBS=${ax_save_LIBS} | |
20634 | ||
20635 | fi | |
20636 | { echo "$as_me:$LINENO: result: $ax_cv_check_glut_libglut" >&5 | |
20637 | echo "${ECHO_T}$ax_cv_check_glut_libglut" >&6; } | |
20638 | CPPFLAGS="${ax_save_CPPFLAGS}" | |
20639 | ac_ext=c | |
20640 | ac_cpp='$CPP $CPPFLAGS' | |
20641 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20642 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20643 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20644 | ||
20645 | ||
20646 | if test "X${ax_cv_check_glut_libglut}" = "Xno"; then | |
20647 | no_glut="yes" | |
20648 | GLUT_CFLAGS="" | |
20649 | GLUT_LIBS="" | |
20650 | else | |
20651 | GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" | |
20652 | fi | |
20653 | fi | |
20654 | ||
20655 | ||
20656 | ||
20657 | ||
20658 | ||
20659 | if test "$no_x" != "yes" -a "$no_gl" != "yes" \ | |
20660 | -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then | |
20661 | HAVE_OPENGL=yes | |
20662 | fi | |
20663 | ||
20664 | ||
20665 | ||
20666 | if test "$HAVE_OPENGL" = "yes"; then | |
20667 | HAVE_OPENGL_TRUE= | |
20668 | HAVE_OPENGL_FALSE='#' | |
20669 | else | |
20670 | HAVE_OPENGL_TRUE='#' | |
20671 | HAVE_OPENGL_FALSE= | |
20672 | fi | |
20673 | ||
20674 | ||
20675 | ||
20676 | ||
20677 | # Check whether --enable-strip-chopping was given. | |
20678 | if test "${enable_strip_chopping+set}" = set; then | |
20679 | enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval | |
20680 | else | |
20681 | HAVE_STRIPCHOP=yes | |
20682 | fi | |
20683 | ||
20684 | ||
20685 | # Check whether --with-default-strip-size was given. | |
20686 | if test "${with_default_strip_size+set}" = set; then | |
20687 | withval=$with_default_strip_size; | |
20688 | fi | |
20689 | ||
20690 | ||
20691 | if test "$HAVE_STRIPCHOP" = "yes" \ | |
20692 | -a "x$with_default_strip_size" != "xno"; then | |
20693 | ||
20694 | cat >>confdefs.h <<\_ACEOF | |
20695 | #define STRIPCHOP_DEFAULT TIFF_STRIPCHOP | |
20696 | _ACEOF | |
20697 | ||
20698 | ||
20699 | if test "x$with_default_strip_size" = "x" \ | |
20700 | -o "x$with_default_strip_size" = "xyes"; then | |
20701 | with_default_strip_size="8192" | |
20702 | fi | |
20703 | ||
20704 | ||
20705 | cat >>confdefs.h <<_ACEOF | |
20706 | #define STRIP_SIZE_DEFAULT $with_default_strip_size | |
20707 | _ACEOF | |
20708 | ||
20709 | ||
20710 | fi | |
20711 | ||
20712 | ||
20713 | cat >>confdefs.h <<\_ACEOF | |
20714 | #define SUBIFD_SUPPORT 1 | |
20715 | _ACEOF | |
20716 | ||
20717 | ||
20718 | ||
20719 | # Check whether --enable-extrasample-as-alpha was given. | |
20720 | if test "${enable_extrasample_as_alpha+set}" = set; then | |
20721 | enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval | |
20722 | else | |
20723 | HAVE_EXTRASAMPLE_AS_ALPHA=yes | |
20724 | fi | |
20725 | ||
20726 | ||
20727 | if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then | |
20728 | ||
20729 | cat >>confdefs.h <<\_ACEOF | |
20730 | #define DEFAULT_EXTRASAMPLE_AS_ALPHA 1 | |
20731 | _ACEOF | |
20732 | ||
20733 | fi | |
20734 | ||
20735 | ||
20736 | # Check whether --enable-check-ycbcr-subsampling was given. | |
20737 | if test "${enable_check_ycbcr_subsampling+set}" = set; then | |
20738 | enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval | |
20739 | else | |
20740 | CHECK_JPEG_YCBCR_SUBSAMPLING=yes | |
20741 | fi | |
20742 | ||
20743 | ||
20744 | if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then | |
20745 | ||
20746 | cat >>confdefs.h <<\_ACEOF | |
20747 | #define CHECK_JPEG_YCBCR_SUBSAMPLING 1 | |
20748 | _ACEOF | |
20749 | ||
20750 | fi | |
20751 | ||
20752 | ||
20753 | ||
20754 | ||
20755 | ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h" | |
20756 | ||
20757 | ||
20758 | ac_config_files="$ac_config_files Makefile contrib/Makefile contrib/acorn/Makefile contrib/addtiffo/Makefile contrib/dbs/Makefile contrib/dbs/xtiff/Makefile contrib/iptcutil/Makefile contrib/mac-cw/Makefile contrib/mac-mpw/Makefile contrib/mfs/Makefile contrib/ojpeg/Makefile contrib/pds/Makefile contrib/ras/Makefile contrib/stream/Makefile contrib/tags/Makefile contrib/win_dib/Makefile html/Makefile html/images/Makefile html/man/Makefile libtiff/Makefile man/Makefile port/Makefile test/Makefile tools/Makefile" | |
20759 | ||
20760 | cat >confcache <<\_ACEOF | |
20761 | # This file is a shell script that caches the results of configure | |
20762 | # tests run on this system so they can be shared between configure | |
20763 | # scripts and configure runs, see configure's option --config-cache. | |
20764 | # It is not useful on other systems. If it contains results you don't | |
20765 | # want to keep, you may remove or edit it. | |
20766 | # | |
20767 | # config.status only pays attention to the cache file if you give it | |
20768 | # the --recheck option to rerun configure. | |
20769 | # | |
20770 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20771 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20772 | # following values. | |
20773 | ||
20774 | _ACEOF | |
20775 | ||
20776 | # The following way of writing the cache mishandles newlines in values, | |
20777 | # but we know of no workaround that is simple, portable, and efficient. | |
20778 | # So, we kill variables containing newlines. | |
20779 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20780 | # and sets the high bit in the cache file unless we assign to the vars. | |
20781 | ( | |
20782 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
20783 | eval ac_val=\$$ac_var | |
20784 | case $ac_val in #( | |
20785 | *${as_nl}*) | |
20786 | case $ac_var in #( | |
20787 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
20788 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
20789 | esac | |
20790 | case $ac_var in #( | |
20791 | _ | IFS | as_nl) ;; #( | |
20792 | *) $as_unset $ac_var ;; | |
20793 | esac ;; | |
20794 | esac | |
20795 | done | |
20796 | ||
20797 | (set) 2>&1 | | |
20798 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
20799 | *${as_nl}ac_space=\ *) | |
20800 | # `set' does not quote correctly, so add quotes (double-quote | |
20801 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20802 | sed -n \ | |
20803 | "s/'/'\\\\''/g; | |
20804 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
20805 | ;; #( | |
20806 | *) | |
20807 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20808 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
20809 | ;; | |
20810 | esac | | |
20811 | sort | |
20812 | ) | | |
20813 | sed ' | |
20814 | /^ac_cv_env_/b end | |
20815 | t clear | |
20816 | :clear | |
20817 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20818 | t end | |
20819 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20820 | :end' >>confcache | |
20821 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
20822 | if test -w "$cache_file"; then | |
20823 | test "x$cache_file" != "x/dev/null" && | |
20824 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
20825 | echo "$as_me: updating cache $cache_file" >&6;} | |
20826 | cat confcache >$cache_file | |
20827 | else | |
20828 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
20829 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
20830 | fi | |
20831 | fi | |
20832 | rm -f confcache | |
20833 | ||
20834 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
20835 | # Let make expand exec_prefix. | |
20836 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20837 | ||
20838 | DEFS=-DHAVE_CONFIG_H | |
20839 | ||
20840 | ac_libobjs= | |
20841 | ac_ltlibobjs= | |
20842 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
20843 | # 1. Remove the extension, and $U if already installed. | |
20844 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
20845 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
20846 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
20847 | # will be set to the directory where LIBOBJS objects are built. | |
20848 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
20849 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
20850 | done | |
20851 | LIBOBJS=$ac_libobjs | |
20852 | ||
20853 | LTLIBOBJS=$ac_ltlibobjs | |
20854 | ||
20855 | ||
20856 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
20857 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
20858 | Usually this means the macro was only invoked conditionally." >&5 | |
20859 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
20860 | Usually this means the macro was only invoked conditionally." >&2;} | |
20861 | { (exit 1); exit 1; }; } | |
20862 | fi | |
20863 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
20864 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
20865 | Usually this means the macro was only invoked conditionally." >&5 | |
20866 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
20867 | Usually this means the macro was only invoked conditionally." >&2;} | |
20868 | { (exit 1); exit 1; }; } | |
20869 | fi | |
20870 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
20871 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
20872 | Usually this means the macro was only invoked conditionally." >&5 | |
20873 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
20874 | Usually this means the macro was only invoked conditionally." >&2;} | |
20875 | { (exit 1); exit 1; }; } | |
20876 | fi | |
20877 | if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then | |
20878 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_RPATH\" was never defined. | |
20879 | Usually this means the macro was only invoked conditionally." >&5 | |
20880 | echo "$as_me: error: conditional \"HAVE_RPATH\" was never defined. | |
20881 | Usually this means the macro was only invoked conditionally." >&2;} | |
20882 | { (exit 1); exit 1; }; } | |
20883 | fi | |
20884 | if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then | |
20885 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CXX\" was never defined. | |
20886 | Usually this means the macro was only invoked conditionally." >&5 | |
20887 | echo "$as_me: error: conditional \"HAVE_CXX\" was never defined. | |
20888 | Usually this means the macro was only invoked conditionally." >&2;} | |
20889 | { (exit 1); exit 1; }; } | |
20890 | fi | |
20891 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
20892 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | |
20893 | Usually this means the macro was only invoked conditionally." >&5 | |
20894 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
20895 | Usually this means the macro was only invoked conditionally." >&2;} | |
20896 | { (exit 1); exit 1; }; } | |
20897 | fi | |
20898 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
20899 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | |
20900 | Usually this means the macro was only invoked conditionally." >&5 | |
20901 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
20902 | Usually this means the macro was only invoked conditionally." >&2;} | |
20903 | { (exit 1); exit 1; }; } | |
20904 | fi | |
20905 | if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then | |
20906 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENGL\" was never defined. | |
20907 | Usually this means the macro was only invoked conditionally." >&5 | |
20908 | echo "$as_me: error: conditional \"HAVE_OPENGL\" was never defined. | |
20909 | Usually this means the macro was only invoked conditionally." >&2;} | |
20910 | { (exit 1); exit 1; }; } | |
20911 | fi | |
20912 | ||
20913 | : ${CONFIG_STATUS=./config.status} | |
20914 | ac_clean_files_save=$ac_clean_files | |
20915 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
20916 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
20917 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
20918 | cat >$CONFIG_STATUS <<_ACEOF | |
20919 | #! $SHELL | |
20920 | # Generated by $as_me. | |
20921 | # Run this file to recreate the current configuration. | |
20922 | # Compiler output produced by configure, useful for debugging | |
20923 | # configure, is in config.log if it exists. | |
20924 | ||
20925 | debug=false | |
20926 | ac_cs_recheck=false | |
20927 | ac_cs_silent=false | |
20928 | SHELL=\${CONFIG_SHELL-$SHELL} | |
20929 | _ACEOF | |
20930 | ||
20931 | cat >>$CONFIG_STATUS <<\_ACEOF | |
20932 | ## --------------------- ## | |
20933 | ## M4sh Initialization. ## | |
20934 | ## --------------------- ## | |
20935 | ||
20936 | # Be more Bourne compatible | |
20937 | DUALCASE=1; export DUALCASE # for MKS sh | |
20938 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
20939 | emulate sh | |
20940 | NULLCMD=: | |
20941 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
20942 | # is contrary to our usage. Disable this feature. | |
20943 | alias -g '${1+"$@"}'='"$@"' | |
20944 | setopt NO_GLOB_SUBST | |
20945 | else | |
20946 | case `(set -o) 2>/dev/null` in | |
20947 | *posix*) set -o posix ;; | |
20948 | esac | |
20949 | ||
20950 | fi | |
20951 | ||
20952 | ||
20953 | ||
20954 | ||
20955 | # PATH needs CR | |
20956 | # Avoid depending upon Character Ranges. | |
20957 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
20958 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
20959 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
20960 | as_cr_digits='0123456789' | |
20961 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
20962 | ||
20963 | # The user is always right. | |
20964 | if test "${PATH_SEPARATOR+set}" != set; then | |
20965 | echo "#! /bin/sh" >conf$$.sh | |
20966 | echo "exit 0" >>conf$$.sh | |
20967 | chmod +x conf$$.sh | |
20968 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
20969 | PATH_SEPARATOR=';' | |
20970 | else | |
20971 | PATH_SEPARATOR=: | |
20972 | fi | |
20973 | rm -f conf$$.sh | |
20974 | fi | |
20975 | ||
20976 | # Support unset when possible. | |
20977 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
20978 | as_unset=unset | |
20979 | else | |
20980 | as_unset=false | |
20981 | fi | |
20982 | ||
20983 | ||
20984 | # IFS | |
20985 | # We need space, tab and new line, in precisely that order. Quoting is | |
20986 | # there to prevent editors from complaining about space-tab. | |
20987 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
20988 | # splitting by setting IFS to empty value.) | |
20989 | as_nl=' | |
20990 | ' | |
20991 | IFS=" "" $as_nl" | |
20992 | ||
20993 | # Find who we are. Look in the path if we contain no directory separator. | |
20994 | case $0 in | |
20995 | *[\\/]* ) as_myself=$0 ;; | |
20996 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20997 | for as_dir in $PATH | |
20998 | do | |
20999 | IFS=$as_save_IFS | |
21000 | test -z "$as_dir" && as_dir=. | |
21001 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
21002 | done | |
21003 | IFS=$as_save_IFS | |
21004 | ||
21005 | ;; | |
21006 | esac | |
21007 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
21008 | # in which case we are not to be found in the path. | |
21009 | if test "x$as_myself" = x; then | |
21010 | as_myself=$0 | |
21011 | fi | |
21012 | if test ! -f "$as_myself"; then | |
21013 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
21014 | { (exit 1); exit 1; } | |
21015 | fi | |
21016 | ||
21017 | # Work around bugs in pre-3.0 UWIN ksh. | |
21018 | for as_var in ENV MAIL MAILPATH | |
21019 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
21020 | done | |
21021 | PS1='$ ' | |
21022 | PS2='> ' | |
21023 | PS4='+ ' | |
21024 | ||
21025 | # NLS nuisances. | |
21026 | for as_var in \ | |
21027 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
21028 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
21029 | LC_TELEPHONE LC_TIME | |
21030 | do | |
21031 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
21032 | eval $as_var=C; export $as_var | |
21033 | else | |
21034 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
21035 | fi | |
21036 | done | |
21037 | ||
21038 | # Required to use basename. | |
21039 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
21040 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
21041 | as_expr=expr | |
21042 | else | |
21043 | as_expr=false | |
21044 | fi | |
21045 | ||
21046 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
21047 | as_basename=basename | |
21048 | else | |
21049 | as_basename=false | |
21050 | fi | |
21051 | ||
21052 | ||
21053 | # Name of the executable. | |
21054 | as_me=`$as_basename -- "$0" || | |
21055 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
21056 | X"$0" : 'X\(//\)$' \| \ | |
21057 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
21058 | echo X/"$0" | | |
21059 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
21060 | s//\1/ | |
21061 | q | |
21062 | } | |
21063 | /^X\/\(\/\/\)$/{ | |
21064 | s//\1/ | |
21065 | q | |
21066 | } | |
21067 | /^X\/\(\/\).*/{ | |
21068 | s//\1/ | |
21069 | q | |
21070 | } | |
21071 | s/.*/./; q'` | |
21072 | ||
21073 | # CDPATH. | |
21074 | $as_unset CDPATH | |
21075 | ||
21076 | ||
21077 | ||
21078 | as_lineno_1=$LINENO | |
21079 | as_lineno_2=$LINENO | |
21080 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
21081 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
21082 | ||
21083 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
21084 | # uniformly replaced by the line number. The first 'sed' inserts a | |
21085 | # line-number line after each line using $LINENO; the second 'sed' | |
21086 | # does the real work. The second script uses 'N' to pair each | |
21087 | # line-number line with the line containing $LINENO, and appends | |
21088 | # trailing '-' during substitution so that $LINENO is not a special | |
21089 | # case at line end. | |
21090 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
21091 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
21092 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
21093 | sed -n ' | |
21094 | p | |
21095 | /[$]LINENO/= | |
21096 | ' <$as_myself | | |
21097 | sed ' | |
21098 | s/[$]LINENO.*/&-/ | |
21099 | t lineno | |
21100 | b | |
21101 | :lineno | |
21102 | N | |
21103 | :loop | |
21104 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
21105 | t loop | |
21106 | s/-\n.*// | |
21107 | ' >$as_me.lineno && | |
21108 | chmod +x "$as_me.lineno" || | |
21109 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
21110 | { (exit 1); exit 1; }; } | |
21111 | ||
21112 | # Don't try to exec as it changes $[0], causing all sort of problems | |
21113 | # (the dirname of $[0] is not the place where we might find the | |
21114 | # original and so on. Autoconf is especially sensitive to this). | |
21115 | . "./$as_me.lineno" | |
21116 | # Exit status is that of the last command. | |
21117 | exit | |
21118 | } | |
21119 | ||
21120 | ||
21121 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
21122 | as_dirname=dirname | |
21123 | else | |
21124 | as_dirname=false | |
21125 | fi | |
21126 | ||
21127 | ECHO_C= ECHO_N= ECHO_T= | |
21128 | case `echo -n x` in | |
21129 | -n*) | |
21130 | case `echo 'x\c'` in | |
21131 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
21132 | *) ECHO_C='\c';; | |
21133 | esac;; | |
21134 | *) | |
21135 | ECHO_N='-n';; | |
21136 | esac | |
21137 | ||
21138 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
21139 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
21140 | as_expr=expr | |
21141 | else | |
21142 | as_expr=false | |
21143 | fi | |
21144 | ||
21145 | rm -f conf$$ conf$$.exe conf$$.file | |
21146 | if test -d conf$$.dir; then | |
21147 | rm -f conf$$.dir/conf$$.file | |
21148 | else | |
21149 | rm -f conf$$.dir | |
21150 | mkdir conf$$.dir | |
21151 | fi | |
21152 | echo >conf$$.file | |
21153 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
21154 | as_ln_s='ln -s' | |
21155 | # ... but there are two gotchas: | |
21156 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
21157 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
21158 | # In both cases, we have to default to `cp -p'. | |
21159 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
21160 | as_ln_s='cp -p' | |
21161 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
21162 | as_ln_s=ln | |
21163 | else | |
21164 | as_ln_s='cp -p' | |
21165 | fi | |
21166 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
21167 | rmdir conf$$.dir 2>/dev/null | |
21168 | ||
21169 | if mkdir -p . 2>/dev/null; then | |
21170 | as_mkdir_p=: | |
21171 | else | |
21172 | test -d ./-p && rmdir ./-p | |
21173 | as_mkdir_p=false | |
21174 | fi | |
21175 | ||
21176 | if test -x / >/dev/null 2>&1; then | |
21177 | as_test_x='test -x' | |
21178 | else | |
21179 | if ls -dL / >/dev/null 2>&1; then | |
21180 | as_ls_L_option=L | |
21181 | else | |
21182 | as_ls_L_option= | |
21183 | fi | |
21184 | as_test_x=' | |
21185 | eval sh -c '\'' | |
21186 | if test -d "$1"; then | |
21187 | test -d "$1/."; | |
21188 | else | |
21189 | case $1 in | |
21190 | -*)set "./$1";; | |
21191 | esac; | |
21192 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
21193 | ???[sx]*):;;*)false;;esac;fi | |
21194 | '\'' sh | |
21195 | ' | |
21196 | fi | |
21197 | as_executable_p=$as_test_x | |
21198 | ||
21199 | # Sed expression to map a string onto a valid CPP name. | |
21200 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
21201 | ||
21202 | # Sed expression to map a string onto a valid variable name. | |
21203 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
21204 | ||
21205 | ||
21206 | exec 6>&1 | |
21207 | ||
21208 | # Save the log message, to keep $[0] and so on meaningful, and to | |
21209 | # report actual input values of CONFIG_FILES etc. instead of their | |
21210 | # values after options handling. | |
21211 | ac_log=" | |
21212 | This file was extended by LibTIFF Software $as_me 3.8.2, which was | |
21213 | generated by GNU Autoconf 2.61. Invocation command line was | |
21214 | ||
21215 | CONFIG_FILES = $CONFIG_FILES | |
21216 | CONFIG_HEADERS = $CONFIG_HEADERS | |
21217 | CONFIG_LINKS = $CONFIG_LINKS | |
21218 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
21219 | $ $0 $@ | |
21220 | ||
21221 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
21222 | " | |
21223 | ||
21224 | _ACEOF | |
21225 | ||
21226 | cat >>$CONFIG_STATUS <<_ACEOF | |
21227 | # Files that config.status was made for. | |
21228 | config_files="$ac_config_files" | |
21229 | config_headers="$ac_config_headers" | |
21230 | config_commands="$ac_config_commands" | |
21231 | ||
21232 | _ACEOF | |
21233 | ||
21234 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21235 | ac_cs_usage="\ | |
21236 | \`$as_me' instantiates files from templates according to the | |
21237 | current configuration. | |
21238 | ||
21239 | Usage: $0 [OPTIONS] [FILE]... | |
21240 | ||
21241 | -h, --help print this help, then exit | |
21242 | -V, --version print version number and configuration settings, then exit | |
21243 | -q, --quiet do not print progress messages | |
21244 | -d, --debug don't remove temporary files | |
21245 | --recheck update $as_me by reconfiguring in the same conditions | |
21246 | --file=FILE[:TEMPLATE] | |
21247 | instantiate the configuration file FILE | |
21248 | --header=FILE[:TEMPLATE] | |
21249 | instantiate the configuration header FILE | |
21250 | ||
21251 | Configuration files: | |
21252 | $config_files | |
21253 | ||
21254 | Configuration headers: | |
21255 | $config_headers | |
21256 | ||
21257 | Configuration commands: | |
21258 | $config_commands | |
21259 | ||
21260 | Report bugs to <bug-autoconf@gnu.org>." | |
21261 | ||
21262 | _ACEOF | |
21263 | cat >>$CONFIG_STATUS <<_ACEOF | |
21264 | ac_cs_version="\\ | |
21265 | LibTIFF Software config.status 3.8.2 | |
21266 | configured by $0, generated by GNU Autoconf 2.61, | |
21267 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
21268 | ||
21269 | Copyright (C) 2006 Free Software Foundation, Inc. | |
21270 | This config.status script is free software; the Free Software Foundation | |
21271 | gives unlimited permission to copy, distribute and modify it." | |
21272 | ||
21273 | ac_pwd='$ac_pwd' | |
21274 | srcdir='$srcdir' | |
21275 | INSTALL='$INSTALL' | |
21276 | _ACEOF | |
21277 | ||
21278 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21279 | # If no file are specified by the user, then we need to provide default | |
21280 | # value. By we need to know if files were specified by the user. | |
21281 | ac_need_defaults=: | |
21282 | while test $# != 0 | |
21283 | do | |
21284 | case $1 in | |
21285 | --*=*) | |
21286 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
21287 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
21288 | ac_shift=: | |
21289 | ;; | |
21290 | *) | |
21291 | ac_option=$1 | |
21292 | ac_optarg=$2 | |
21293 | ac_shift=shift | |
21294 | ;; | |
21295 | esac | |
21296 | ||
21297 | case $ac_option in | |
21298 | # Handling of the options. | |
21299 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
21300 | ac_cs_recheck=: ;; | |
21301 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
21302 | echo "$ac_cs_version"; exit ;; | |
21303 | --debug | --debu | --deb | --de | --d | -d ) | |
21304 | debug=: ;; | |
21305 | --file | --fil | --fi | --f ) | |
21306 | $ac_shift | |
21307 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
21308 | ac_need_defaults=false;; | |
21309 | --header | --heade | --head | --hea ) | |
21310 | $ac_shift | |
21311 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
21312 | ac_need_defaults=false;; | |
21313 | --he | --h) | |
21314 | # Conflict between --help and --header | |
21315 | { echo "$as_me: error: ambiguous option: $1 | |
21316 | Try \`$0 --help' for more information." >&2 | |
21317 | { (exit 1); exit 1; }; };; | |
21318 | --help | --hel | -h ) | |
21319 | echo "$ac_cs_usage"; exit ;; | |
21320 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
21321 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
21322 | ac_cs_silent=: ;; | |
21323 | ||
21324 | # This is an error. | |
21325 | -*) { echo "$as_me: error: unrecognized option: $1 | |
21326 | Try \`$0 --help' for more information." >&2 | |
21327 | { (exit 1); exit 1; }; } ;; | |
21328 | ||
21329 | *) ac_config_targets="$ac_config_targets $1" | |
21330 | ac_need_defaults=false ;; | |
21331 | ||
21332 | esac | |
21333 | shift | |
21334 | done | |
21335 | ||
21336 | ac_configure_extra_args= | |
21337 | ||
21338 | if $ac_cs_silent; then | |
21339 | exec 6>/dev/null | |
21340 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
21341 | fi | |
21342 | ||
21343 | _ACEOF | |
21344 | cat >>$CONFIG_STATUS <<_ACEOF | |
21345 | if \$ac_cs_recheck; then | |
21346 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
21347 | CONFIG_SHELL=$SHELL | |
21348 | export CONFIG_SHELL | |
21349 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
21350 | fi | |
21351 | ||
21352 | _ACEOF | |
21353 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21354 | exec 5>>config.log | |
21355 | { | |
21356 | echo | |
21357 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
21358 | ## Running $as_me. ## | |
21359 | _ASBOX | |
21360 | echo "$ac_log" | |
21361 | } >&5 | |
21362 | ||
21363 | _ACEOF | |
21364 | cat >>$CONFIG_STATUS <<_ACEOF | |
21365 | # | |
21366 | # INIT-COMMANDS | |
21367 | # | |
21368 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
21369 | ||
21370 | ||
21371 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
21372 | # if CDPATH is set. | |
21373 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
21374 | ||
21375 | sed_quote_subst='$sed_quote_subst' | |
21376 | double_quote_subst='$double_quote_subst' | |
21377 | delay_variable_subst='$delay_variable_subst' | |
21378 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
21379 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
21380 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
21381 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
21382 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
21383 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
21384 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
21385 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
21386 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
21387 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
21388 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
21389 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
21390 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
21391 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
21392 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
21393 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
21394 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
21395 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
21396 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
21397 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
21398 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
21399 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
21400 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
21401 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
21402 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21403 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
21404 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
21405 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
21406 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
21407 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
21408 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
21409 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21410 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21411 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21412 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
21413 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
21414 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
21415 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
21416 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
21417 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
21418 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
21419 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
21420 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
21421 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
21422 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
21423 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
21424 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
21425 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
21426 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
21427 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
21428 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
21429 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
21430 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21431 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21432 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
21433 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
21434 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21435 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21436 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21437 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21438 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21439 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21440 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21441 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21442 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
21443 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
21444 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
21445 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21446 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
21447 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
21448 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
21449 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
21450 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
21451 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
21452 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
21453 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
21454 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
21455 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
21456 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21457 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
21458 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
21459 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21460 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21461 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
21462 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
21463 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
21464 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
21465 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
21466 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
21467 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
21468 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21469 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21470 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21471 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21472 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21473 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21474 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
21475 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
21476 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21477 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21478 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
21479 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
21480 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
21481 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
21482 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
21483 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
21484 | AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' | |
21485 | DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
21486 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
21487 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
21488 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
21489 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | |
21490 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | |
21491 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | |
21492 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21493 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21494 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21495 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21496 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21497 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21498 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21499 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21500 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21501 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21502 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21503 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21504 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21505 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21506 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21507 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21508 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21509 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21510 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21511 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21512 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21513 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21514 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21515 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21516 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21517 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21518 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21519 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21520 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21521 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21522 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21523 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21524 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21525 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21526 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21527 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21528 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21529 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21530 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21531 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21532 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21533 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21534 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21535 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
21536 | ||
21537 | LTCC='$LTCC' | |
21538 | LTCFLAGS='$LTCFLAGS' | |
21539 | compiler='$compiler_DEFAULT' | |
21540 | ||
21541 | # Quote evaled strings. | |
21542 | for var in SED \ | |
21543 | GREP \ | |
21544 | EGREP \ | |
21545 | FGREP \ | |
21546 | LD \ | |
21547 | NM \ | |
21548 | LN_S \ | |
21549 | reload_flag \ | |
21550 | deplibs_check_method \ | |
21551 | file_magic_cmd \ | |
21552 | AR \ | |
21553 | AR_FLAGS \ | |
21554 | STRIP \ | |
21555 | RANLIB \ | |
21556 | CC \ | |
21557 | CFLAGS \ | |
21558 | compiler \ | |
21559 | lt_cv_sys_global_symbol_pipe \ | |
21560 | lt_cv_sys_global_symbol_to_cdecl \ | |
21561 | lt_cv_sys_global_symbol_to_c_name_address \ | |
21562 | SHELL \ | |
21563 | ECHO \ | |
21564 | lt_prog_compiler_no_builtin_flag \ | |
21565 | lt_prog_compiler_wl \ | |
21566 | lt_prog_compiler_pic \ | |
21567 | lt_prog_compiler_static \ | |
21568 | lt_cv_prog_compiler_c_o \ | |
21569 | need_locks \ | |
21570 | shrext_cmds \ | |
21571 | export_dynamic_flag_spec \ | |
21572 | whole_archive_flag_spec \ | |
21573 | with_gnu_ld \ | |
21574 | allow_undefined_flag \ | |
21575 | no_undefined_flag \ | |
21576 | hardcode_libdir_flag_spec \ | |
21577 | hardcode_libdir_flag_spec_ld \ | |
21578 | hardcode_libdir_separator \ | |
21579 | fix_srcfile_path \ | |
21580 | exclude_expsyms \ | |
21581 | include_expsyms \ | |
21582 | file_list_spec \ | |
21583 | variables_saved_for_relink \ | |
21584 | libname_spec \ | |
21585 | library_names_spec \ | |
21586 | soname_spec \ | |
21587 | finish_eval \ | |
21588 | old_striplib \ | |
21589 | striplib \ | |
21590 | predep_objects \ | |
21591 | postdep_objects \ | |
21592 | predeps \ | |
21593 | postdeps \ | |
21594 | compiler_lib_search_path \ | |
21595 | LD_CXX \ | |
21596 | compiler_CXX \ | |
21597 | lt_prog_compiler_no_builtin_flag_CXX \ | |
21598 | lt_prog_compiler_wl_CXX \ | |
21599 | lt_prog_compiler_pic_CXX \ | |
21600 | lt_prog_compiler_static_CXX \ | |
21601 | lt_cv_prog_compiler_c_o_CXX \ | |
21602 | export_dynamic_flag_spec_CXX \ | |
21603 | whole_archive_flag_spec_CXX \ | |
21604 | with_gnu_ld_CXX \ | |
21605 | allow_undefined_flag_CXX \ | |
21606 | no_undefined_flag_CXX \ | |
21607 | hardcode_libdir_flag_spec_CXX \ | |
21608 | hardcode_libdir_flag_spec_ld_CXX \ | |
21609 | hardcode_libdir_separator_CXX \ | |
21610 | fix_srcfile_path_CXX \ | |
21611 | exclude_expsyms_CXX \ | |
21612 | include_expsyms_CXX \ | |
21613 | file_list_spec_CXX \ | |
21614 | predep_objects_CXX \ | |
21615 | postdep_objects_CXX \ | |
21616 | predeps_CXX \ | |
21617 | postdeps_CXX \ | |
21618 | compiler_lib_search_path_CXX; do | |
21619 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
21620 | *[\\\\\\\`\\"\\\$]*) | |
21621 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
21622 | ;; | |
21623 | *) | |
21624 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
21625 | ;; | |
21626 | esac | |
21627 | done | |
21628 | ||
21629 | # Double-quote double-evaled strings. | |
21630 | for var in reload_cmds \ | |
21631 | old_postinstall_cmds \ | |
21632 | old_postuninstall_cmds \ | |
21633 | old_archive_cmds \ | |
21634 | extract_expsyms_cmds \ | |
21635 | old_archive_from_new_cmds \ | |
21636 | old_archive_from_expsyms_cmds \ | |
21637 | archive_cmds \ | |
21638 | archive_expsym_cmds \ | |
21639 | module_cmds \ | |
21640 | module_expsym_cmds \ | |
21641 | export_symbols_cmds \ | |
21642 | prelink_cmds \ | |
21643 | postinstall_cmds \ | |
21644 | postuninstall_cmds \ | |
21645 | finish_cmds \ | |
21646 | sys_lib_search_path_spec \ | |
21647 | sys_lib_dlsearch_path_spec \ | |
21648 | old_archive_cmds_CXX \ | |
21649 | old_archive_from_new_cmds_CXX \ | |
21650 | old_archive_from_expsyms_cmds_CXX \ | |
21651 | archive_cmds_CXX \ | |
21652 | archive_expsym_cmds_CXX \ | |
21653 | module_cmds_CXX \ | |
21654 | module_expsym_cmds_CXX \ | |
21655 | export_symbols_cmds_CXX \ | |
21656 | prelink_cmds_CXX; do | |
21657 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
21658 | *[\\\\\\\`\\"\\\$]*) | |
21659 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
21660 | ;; | |
21661 | *) | |
21662 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
21663 | ;; | |
21664 | esac | |
21665 | done | |
21666 | ||
21667 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
21668 | case \$lt_ECHO in | |
21669 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
21670 | ;; | |
21671 | esac | |
21672 | ||
21673 | ac_aux_dir='$ac_aux_dir' | |
21674 | xsi_shell='$xsi_shell' | |
21675 | ||
21676 | # See if we are running on zsh, and set the options which allow our | |
21677 | # commands through without removal of \ escapes INIT. | |
21678 | if test -n "\${ZSH_VERSION+set}" ; then | |
21679 | setopt NO_GLOB_SUBST | |
21680 | fi | |
21681 | ||
21682 | ||
21683 | PACKAGE='$PACKAGE' | |
21684 | VERSION='$VERSION' | |
21685 | TIMESTAMP='$TIMESTAMP' | |
21686 | RM='$RM' | |
21687 | ofile='$ofile' | |
21688 | ||
21689 | ||
21690 | ||
21691 | ||
21692 | ||
21693 | ||
21694 | _ACEOF | |
21695 | ||
21696 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21697 | ||
21698 | # Handling of arguments. | |
21699 | for ac_config_target in $ac_config_targets | |
21700 | do | |
21701 | case $ac_config_target in | |
21702 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
21703 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
21704 | "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;; | |
21705 | "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;; | |
21706 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
21707 | "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; | |
21708 | "contrib/acorn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/acorn/Makefile" ;; | |
21709 | "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;; | |
21710 | "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;; | |
21711 | "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;; | |
21712 | "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;; | |
21713 | "contrib/mac-cw/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mac-cw/Makefile" ;; | |
21714 | "contrib/mac-mpw/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mac-mpw/Makefile" ;; | |
21715 | "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;; | |
21716 | "contrib/ojpeg/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ojpeg/Makefile" ;; | |
21717 | "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;; | |
21718 | "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;; | |
21719 | "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;; | |
21720 | "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;; | |
21721 | "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;; | |
21722 | "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;; | |
21723 | "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;; | |
21724 | "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;; | |
21725 | "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;; | |
21726 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
21727 | "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;; | |
21728 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; | |
21729 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
21730 | ||
21731 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
21732 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
21733 | { (exit 1); exit 1; }; };; | |
21734 | esac | |
21735 | done | |
21736 | ||
21737 | ||
21738 | # If the user did not use the arguments to specify the items to instantiate, | |
21739 | # then the envvar interface is used. Set only those that are not. | |
21740 | # We use the long form for the default assignment because of an extremely | |
21741 | # bizarre bug on SunOS 4.1.3. | |
21742 | if $ac_need_defaults; then | |
21743 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
21744 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
21745 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
21746 | fi | |
21747 | ||
21748 | # Have a temporary directory for convenience. Make it in the build tree | |
21749 | # simply because there is no reason against having it here, and in addition, | |
21750 | # creating and moving files from /tmp can sometimes cause problems. | |
21751 | # Hook for its removal unless debugging. | |
21752 | # Note that there is a small window in which the directory will not be cleaned: | |
21753 | # after its creation but before its name has been assigned to `$tmp'. | |
21754 | $debug || | |
21755 | { | |
21756 | tmp= | |
21757 | trap 'exit_status=$? | |
21758 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
21759 | ' 0 | |
21760 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
21761 | } | |
21762 | # Create a (secure) tmp directory for tmp files. | |
21763 | ||
21764 | { | |
21765 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
21766 | test -n "$tmp" && test -d "$tmp" | |
21767 | } || | |
21768 | { | |
21769 | tmp=./conf$$-$RANDOM | |
21770 | (umask 077 && mkdir "$tmp") | |
21771 | } || | |
21772 | { | |
21773 | echo "$me: cannot create a temporary directory in ." >&2 | |
21774 | { (exit 1); exit 1; } | |
21775 | } | |
21776 | ||
21777 | # | |
21778 | # Set up the sed scripts for CONFIG_FILES section. | |
21779 | # | |
21780 | ||
21781 | # No need to generate the scripts if there are no CONFIG_FILES. | |
21782 | # This happens for instance when ./config.status config.h | |
21783 | if test -n "$CONFIG_FILES"; then | |
21784 | ||
21785 | _ACEOF | |
21786 | ||
21787 | ||
21788 | ||
21789 | ac_delim='%!_!# ' | |
21790 | for ac_last_try in false false false false false :; do | |
21791 | cat >conf$$subs.sed <<_ACEOF | |
21792 | SHELL!$SHELL$ac_delim | |
21793 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
21794 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
21795 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
21796 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
21797 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
21798 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
21799 | exec_prefix!$exec_prefix$ac_delim | |
21800 | prefix!$prefix$ac_delim | |
21801 | program_transform_name!$program_transform_name$ac_delim | |
21802 | bindir!$bindir$ac_delim | |
21803 | sbindir!$sbindir$ac_delim | |
21804 | libexecdir!$libexecdir$ac_delim | |
21805 | datarootdir!$datarootdir$ac_delim | |
21806 | datadir!$datadir$ac_delim | |
21807 | sysconfdir!$sysconfdir$ac_delim | |
21808 | sharedstatedir!$sharedstatedir$ac_delim | |
21809 | localstatedir!$localstatedir$ac_delim | |
21810 | includedir!$includedir$ac_delim | |
21811 | oldincludedir!$oldincludedir$ac_delim | |
21812 | docdir!$docdir$ac_delim | |
21813 | infodir!$infodir$ac_delim | |
21814 | htmldir!$htmldir$ac_delim | |
21815 | dvidir!$dvidir$ac_delim | |
21816 | pdfdir!$pdfdir$ac_delim | |
21817 | psdir!$psdir$ac_delim | |
21818 | libdir!$libdir$ac_delim | |
21819 | localedir!$localedir$ac_delim | |
21820 | mandir!$mandir$ac_delim | |
21821 | DEFS!$DEFS$ac_delim | |
21822 | ECHO_C!$ECHO_C$ac_delim | |
21823 | ECHO_N!$ECHO_N$ac_delim | |
21824 | ECHO_T!$ECHO_T$ac_delim | |
21825 | LIBS!$LIBS$ac_delim | |
21826 | build_alias!$build_alias$ac_delim | |
21827 | host_alias!$host_alias$ac_delim | |
21828 | target_alias!$target_alias$ac_delim | |
21829 | build!$build$ac_delim | |
21830 | build_cpu!$build_cpu$ac_delim | |
21831 | build_vendor!$build_vendor$ac_delim | |
21832 | build_os!$build_os$ac_delim | |
21833 | host!$host$ac_delim | |
21834 | host_cpu!$host_cpu$ac_delim | |
21835 | host_vendor!$host_vendor$ac_delim | |
21836 | host_os!$host_os$ac_delim | |
21837 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
21838 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
21839 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
21840 | CYGPATH_W!$CYGPATH_W$ac_delim | |
21841 | PACKAGE!$PACKAGE$ac_delim | |
21842 | VERSION!$VERSION$ac_delim | |
21843 | ACLOCAL!$ACLOCAL$ac_delim | |
21844 | AUTOCONF!$AUTOCONF$ac_delim | |
21845 | AUTOMAKE!$AUTOMAKE$ac_delim | |
21846 | AUTOHEADER!$AUTOHEADER$ac_delim | |
21847 | MAKEINFO!$MAKEINFO$ac_delim | |
21848 | install_sh!$install_sh$ac_delim | |
21849 | STRIP!$STRIP$ac_delim | |
21850 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | |
21851 | mkdir_p!$mkdir_p$ac_delim | |
21852 | AWK!$AWK$ac_delim | |
21853 | SET_MAKE!$SET_MAKE$ac_delim | |
21854 | am__leading_dot!$am__leading_dot$ac_delim | |
21855 | AMTAR!$AMTAR$ac_delim | |
21856 | am__tar!$am__tar$ac_delim | |
21857 | am__untar!$am__untar$ac_delim | |
21858 | MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim | |
21859 | MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim | |
21860 | MAINT!$MAINT$ac_delim | |
21861 | LIBTIFF_MAJOR_VERSION!$LIBTIFF_MAJOR_VERSION$ac_delim | |
21862 | LIBTIFF_MINOR_VERSION!$LIBTIFF_MINOR_VERSION$ac_delim | |
21863 | LIBTIFF_MICRO_VERSION!$LIBTIFF_MICRO_VERSION$ac_delim | |
21864 | LIBTIFF_ALPHA_VERSION!$LIBTIFF_ALPHA_VERSION$ac_delim | |
21865 | LIBTIFF_VERSION!$LIBTIFF_VERSION$ac_delim | |
21866 | LIBTIFF_VERSION_INFO!$LIBTIFF_VERSION_INFO$ac_delim | |
21867 | LIBTIFF_RELEASE_DATE!$LIBTIFF_RELEASE_DATE$ac_delim | |
21868 | CC!$CC$ac_delim | |
21869 | CFLAGS!$CFLAGS$ac_delim | |
21870 | LDFLAGS!$LDFLAGS$ac_delim | |
21871 | CPPFLAGS!$CPPFLAGS$ac_delim | |
21872 | ac_ct_CC!$ac_ct_CC$ac_delim | |
21873 | EXEEXT!$EXEEXT$ac_delim | |
21874 | OBJEXT!$OBJEXT$ac_delim | |
21875 | DEPDIR!$DEPDIR$ac_delim | |
21876 | am__include!$am__include$ac_delim | |
21877 | am__quote!$am__quote$ac_delim | |
21878 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim | |
21879 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim | |
21880 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | |
21881 | CCDEPMODE!$CCDEPMODE$ac_delim | |
21882 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | |
21883 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | |
21884 | LN_S!$LN_S$ac_delim | |
21885 | LIBTOOL!$LIBTOOL$ac_delim | |
21886 | SED!$SED$ac_delim | |
21887 | GREP!$GREP$ac_delim | |
21888 | EGREP!$EGREP$ac_delim | |
21889 | _ACEOF | |
21890 | ||
21891 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
21892 | break | |
21893 | elif $ac_last_try; then | |
21894 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
21895 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
21896 | { (exit 1); exit 1; }; } | |
21897 | else | |
21898 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
21899 | fi | |
21900 | done | |
21901 | ||
21902 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
21903 | if test -n "$ac_eof"; then | |
21904 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
21905 | ac_eof=`expr $ac_eof + 1` | |
21906 | fi | |
21907 | ||
21908 | cat >>$CONFIG_STATUS <<_ACEOF | |
21909 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
21910 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
21911 | _ACEOF | |
21912 | sed ' | |
21913 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
21914 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
21915 | :n | |
21916 | t n | |
21917 | s/'"$ac_delim"'$/,g/; t | |
21918 | s/$/\\/; p | |
21919 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
21920 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
21921 | rm -f conf$$subs.sed | |
21922 | cat >>$CONFIG_STATUS <<_ACEOF | |
21923 | CEOF$ac_eof | |
21924 | _ACEOF | |
21925 | ||
21926 | ||
21927 | ac_delim='%!_!# ' | |
21928 | for ac_last_try in false false false false false :; do | |
21929 | cat >conf$$subs.sed <<_ACEOF | |
21930 | FGREP!$FGREP$ac_delim | |
21931 | LD!$LD$ac_delim | |
21932 | DUMPBIN!$DUMPBIN$ac_delim | |
21933 | ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim | |
21934 | NM!$NM$ac_delim | |
21935 | AR!$AR$ac_delim | |
21936 | RANLIB!$RANLIB$ac_delim | |
21937 | lt_ECHO!$lt_ECHO$ac_delim | |
21938 | CPP!$CPP$ac_delim | |
21939 | AS!$AS$ac_delim | |
21940 | DLLTOOL!$DLLTOOL$ac_delim | |
21941 | OBJDUMP!$OBJDUMP$ac_delim | |
21942 | LIBOBJS!$LIBOBJS$ac_delim | |
21943 | HAVE_RPATH_TRUE!$HAVE_RPATH_TRUE$ac_delim | |
21944 | HAVE_RPATH_FALSE!$HAVE_RPATH_FALSE$ac_delim | |
21945 | LIBTIFF_DOCDIR!$LIBTIFF_DOCDIR$ac_delim | |
21946 | HAVE_CXX_TRUE!$HAVE_CXX_TRUE$ac_delim | |
21947 | HAVE_CXX_FALSE!$HAVE_CXX_FALSE$ac_delim | |
21948 | XMKMF!$XMKMF$ac_delim | |
21949 | X_CFLAGS!$X_CFLAGS$ac_delim | |
21950 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim | |
21951 | X_LIBS!$X_LIBS$ac_delim | |
21952 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim | |
21953 | acx_pthread_config!$acx_pthread_config$ac_delim | |
21954 | PTHREAD_CC!$PTHREAD_CC$ac_delim | |
21955 | PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim | |
21956 | PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim | |
21957 | GL_CFLAGS!$GL_CFLAGS$ac_delim | |
21958 | GL_LIBS!$GL_LIBS$ac_delim | |
21959 | CXX!$CXX$ac_delim | |
21960 | CXXFLAGS!$CXXFLAGS$ac_delim | |
21961 | ac_ct_CXX!$ac_ct_CXX$ac_delim | |
21962 | CXXDEPMODE!$CXXDEPMODE$ac_delim | |
21963 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim | |
21964 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim | |
21965 | CXXCPP!$CXXCPP$ac_delim | |
21966 | GLU_CFLAGS!$GLU_CFLAGS$ac_delim | |
21967 | GLU_LIBS!$GLU_LIBS$ac_delim | |
21968 | GLUT_CFLAGS!$GLUT_CFLAGS$ac_delim | |
21969 | GLUT_LIBS!$GLUT_LIBS$ac_delim | |
21970 | HAVE_OPENGL_TRUE!$HAVE_OPENGL_TRUE$ac_delim | |
21971 | HAVE_OPENGL_FALSE!$HAVE_OPENGL_FALSE$ac_delim | |
21972 | LIBDIR!$LIBDIR$ac_delim | |
21973 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
21974 | _ACEOF | |
21975 | ||
21976 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 44; then | |
21977 | break | |
21978 | elif $ac_last_try; then | |
21979 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
21980 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
21981 | { (exit 1); exit 1; }; } | |
21982 | else | |
21983 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
21984 | fi | |
21985 | done | |
21986 | ||
21987 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
21988 | if test -n "$ac_eof"; then | |
21989 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
21990 | ac_eof=`expr $ac_eof + 1` | |
21991 | fi | |
21992 | ||
21993 | cat >>$CONFIG_STATUS <<_ACEOF | |
21994 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
21995 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
21996 | _ACEOF | |
21997 | sed ' | |
21998 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
21999 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
22000 | :n | |
22001 | t n | |
22002 | s/'"$ac_delim"'$/,g/; t | |
22003 | s/$/\\/; p | |
22004 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
22005 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
22006 | rm -f conf$$subs.sed | |
22007 | cat >>$CONFIG_STATUS <<_ACEOF | |
22008 | :end | |
22009 | s/|#_!!_#|//g | |
22010 | CEOF$ac_eof | |
22011 | _ACEOF | |
22012 | ||
22013 | ||
22014 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
22015 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
22016 | # trailing colons and then remove the whole line if VPATH becomes empty | |
22017 | # (actually we leave an empty line to preserve line numbers). | |
22018 | if test "x$srcdir" = x.; then | |
22019 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
22020 | s/:*\$(srcdir):*/:/ | |
22021 | s/:*\${srcdir}:*/:/ | |
22022 | s/:*@srcdir@:*/:/ | |
22023 | s/^\([^=]*=[ ]*\):*/\1/ | |
22024 | s/:*$// | |
22025 | s/^[^=]*=[ ]*$// | |
22026 | }' | |
22027 | fi | |
22028 | ||
22029 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22030 | fi # test -n "$CONFIG_FILES" | |
22031 | ||
22032 | ||
22033 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | |
22034 | do | |
22035 | case $ac_tag in | |
22036 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
22037 | esac | |
22038 | case $ac_mode$ac_tag in | |
22039 | :[FHL]*:*);; | |
22040 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
22041 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
22042 | { (exit 1); exit 1; }; };; | |
22043 | :[FH]-) ac_tag=-:-;; | |
22044 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
22045 | esac | |
22046 | ac_save_IFS=$IFS | |
22047 | IFS=: | |
22048 | set x $ac_tag | |
22049 | IFS=$ac_save_IFS | |
22050 | shift | |
22051 | ac_file=$1 | |
22052 | shift | |
22053 | ||
22054 | case $ac_mode in | |
22055 | :L) ac_source=$1;; | |
22056 | :[FH]) | |
22057 | ac_file_inputs= | |
22058 | for ac_f | |
22059 | do | |
22060 | case $ac_f in | |
22061 | -) ac_f="$tmp/stdin";; | |
22062 | *) # Look for the file first in the build tree, then in the source tree | |
22063 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
22064 | # because $ac_f cannot contain `:'. | |
22065 | test -f "$ac_f" || | |
22066 | case $ac_f in | |
22067 | [\\/$]*) false;; | |
22068 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
22069 | esac || | |
22070 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
22071 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
22072 | { (exit 1); exit 1; }; };; | |
22073 | esac | |
22074 | ac_file_inputs="$ac_file_inputs $ac_f" | |
22075 | done | |
22076 | ||
22077 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22078 | # use $as_me), people would be surprised to read: | |
22079 | # /* config.h. Generated by config.status. */ | |
22080 | configure_input="Generated from "`IFS=: | |
22081 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
22082 | if test x"$ac_file" != x-; then | |
22083 | configure_input="$ac_file. $configure_input" | |
22084 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
22085 | echo "$as_me: creating $ac_file" >&6;} | |
22086 | fi | |
22087 | ||
22088 | case $ac_tag in | |
22089 | *:-:* | *:-) cat >"$tmp/stdin";; | |
22090 | esac | |
22091 | ;; | |
22092 | esac | |
22093 | ||
22094 | ac_dir=`$as_dirname -- "$ac_file" || | |
22095 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22096 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22097 | X"$ac_file" : 'X\(//\)$' \| \ | |
22098 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
22099 | echo X"$ac_file" | | |
22100 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22101 | s//\1/ | |
22102 | q | |
22103 | } | |
22104 | /^X\(\/\/\)[^/].*/{ | |
22105 | s//\1/ | |
22106 | q | |
22107 | } | |
22108 | /^X\(\/\/\)$/{ | |
22109 | s//\1/ | |
22110 | q | |
22111 | } | |
22112 | /^X\(\/\).*/{ | |
22113 | s//\1/ | |
22114 | q | |
22115 | } | |
22116 | s/.*/./; q'` | |
22117 | { as_dir="$ac_dir" | |
22118 | case $as_dir in #( | |
22119 | -*) as_dir=./$as_dir;; | |
22120 | esac | |
22121 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
22122 | as_dirs= | |
22123 | while :; do | |
22124 | case $as_dir in #( | |
22125 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
22126 | *) as_qdir=$as_dir;; | |
22127 | esac | |
22128 | as_dirs="'$as_qdir' $as_dirs" | |
22129 | as_dir=`$as_dirname -- "$as_dir" || | |
22130 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22131 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22132 | X"$as_dir" : 'X\(//\)$' \| \ | |
22133 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
22134 | echo X"$as_dir" | | |
22135 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22136 | s//\1/ | |
22137 | q | |
22138 | } | |
22139 | /^X\(\/\/\)[^/].*/{ | |
22140 | s//\1/ | |
22141 | q | |
22142 | } | |
22143 | /^X\(\/\/\)$/{ | |
22144 | s//\1/ | |
22145 | q | |
22146 | } | |
22147 | /^X\(\/\).*/{ | |
22148 | s//\1/ | |
22149 | q | |
22150 | } | |
22151 | s/.*/./; q'` | |
22152 | test -d "$as_dir" && break | |
22153 | done | |
22154 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22155 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
22156 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
22157 | { (exit 1); exit 1; }; }; } | |
22158 | ac_builddir=. | |
22159 | ||
22160 | case "$ac_dir" in | |
22161 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
22162 | *) | |
22163 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22164 | # A ".." for each directory in $ac_dir_suffix. | |
22165 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
22166 | case $ac_top_builddir_sub in | |
22167 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
22168 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
22169 | esac ;; | |
22170 | esac | |
22171 | ac_abs_top_builddir=$ac_pwd | |
22172 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
22173 | # for backward compatibility: | |
22174 | ac_top_builddir=$ac_top_build_prefix | |
22175 | ||
22176 | case $srcdir in | |
22177 | .) # We are building in place. | |
22178 | ac_srcdir=. | |
22179 | ac_top_srcdir=$ac_top_builddir_sub | |
22180 | ac_abs_top_srcdir=$ac_pwd ;; | |
22181 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
22182 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22183 | ac_top_srcdir=$srcdir | |
22184 | ac_abs_top_srcdir=$srcdir ;; | |
22185 | *) # Relative name. | |
22186 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
22187 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
22188 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
22189 | esac | |
22190 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
22191 | ||
22192 | ||
22193 | case $ac_mode in | |
22194 | :F) | |
22195 | # | |
22196 | # CONFIG_FILE | |
22197 | # | |
22198 | ||
22199 | case $INSTALL in | |
22200 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
22201 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
22202 | esac | |
22203 | _ACEOF | |
22204 | ||
22205 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22206 | # If the template does not know about datarootdir, expand it. | |
22207 | # FIXME: This hack should be removed a few years after 2.60. | |
22208 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
22209 | ||
22210 | case `sed -n '/datarootdir/ { | |
22211 | p | |
22212 | q | |
22213 | } | |
22214 | /@datadir@/p | |
22215 | /@docdir@/p | |
22216 | /@infodir@/p | |
22217 | /@localedir@/p | |
22218 | /@mandir@/p | |
22219 | ' $ac_file_inputs` in | |
22220 | *datarootdir*) ac_datarootdir_seen=yes;; | |
22221 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
22222 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
22223 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
22224 | _ACEOF | |
22225 | cat >>$CONFIG_STATUS <<_ACEOF | |
22226 | ac_datarootdir_hack=' | |
22227 | s&@datadir@&$datadir&g | |
22228 | s&@docdir@&$docdir&g | |
22229 | s&@infodir@&$infodir&g | |
22230 | s&@localedir@&$localedir&g | |
22231 | s&@mandir@&$mandir&g | |
22232 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
22233 | esac | |
22234 | _ACEOF | |
22235 | ||
22236 | # Neutralize VPATH when `$srcdir' = `.'. | |
22237 | # Shell code in configure.ac might set extrasub. | |
22238 | # FIXME: do we really want to maintain this feature? | |
22239 | cat >>$CONFIG_STATUS <<_ACEOF | |
22240 | sed "$ac_vpsub | |
22241 | $extrasub | |
22242 | _ACEOF | |
22243 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22244 | :t | |
22245 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
22246 | s&@configure_input@&$configure_input&;t t | |
22247 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
22248 | s&@srcdir@&$ac_srcdir&;t t | |
22249 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
22250 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
22251 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
22252 | s&@builddir@&$ac_builddir&;t t | |
22253 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
22254 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
22255 | s&@INSTALL@&$ac_INSTALL&;t t | |
22256 | $ac_datarootdir_hack | |
22257 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | |
22258 | ||
22259 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22260 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
22261 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
22262 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
22263 | which seems to be undefined. Please make sure it is defined." >&5 | |
22264 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
22265 | which seems to be undefined. Please make sure it is defined." >&2;} | |
22266 | ||
22267 | rm -f "$tmp/stdin" | |
22268 | case $ac_file in | |
22269 | -) cat "$tmp/out"; rm -f "$tmp/out";; | |
22270 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
22271 | esac | |
22272 | ;; | |
22273 | :H) | |
22274 | # | |
22275 | # CONFIG_HEADER | |
22276 | # | |
22277 | _ACEOF | |
22278 | ||
22279 | # Transform confdefs.h into a sed script `conftest.defines', that | |
22280 | # substitutes the proper values into config.h.in to produce config.h. | |
22281 | rm -f conftest.defines conftest.tail | |
22282 | # First, append a space to every undef/define line, to ease matching. | |
22283 | echo 's/$/ /' >conftest.defines | |
22284 | # Then, protect against being on the right side of a sed subst, or in | |
22285 | # an unquoted here document, in config.status. If some macros were | |
22286 | # called several times there might be several #defines for the same | |
22287 | # symbol, which is useless. But do not sort them, since the last | |
22288 | # AC_DEFINE must be honored. | |
22289 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
22290 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
22291 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
22292 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
22293 | # just an empty string. | |
22294 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
22295 | ac_dB='\\)[ (].*,\\1define\\2' | |
22296 | ac_dC=' ' | |
22297 | ac_dD=' ,' | |
22298 | ||
22299 | uniq confdefs.h | | |
22300 | sed -n ' | |
22301 | t rset | |
22302 | :rset | |
22303 | s/^[ ]*#[ ]*define[ ][ ]*// | |
22304 | t ok | |
22305 | d | |
22306 | :ok | |
22307 | s/[\\&,]/\\&/g | |
22308 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
22309 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
22310 | ' >>conftest.defines | |
22311 | ||
22312 | # Remove the space that was appended to ease matching. | |
22313 | # Then replace #undef with comments. This is necessary, for | |
22314 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
22315 | # on some systems where configure will not decide to define it. | |
22316 | # (The regexp can be short, since the line contains either #define or #undef.) | |
22317 | echo 's/ $// | |
22318 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
22319 | ||
22320 | # Break up conftest.defines: | |
22321 | ac_max_sed_lines=50 | |
22322 | ||
22323 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
22324 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
22325 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
22326 | # et cetera. | |
22327 | ac_in='$ac_file_inputs' | |
22328 | ac_out='"$tmp/out1"' | |
22329 | ac_nxt='"$tmp/out2"' | |
22330 | ||
22331 | while : | |
22332 | do | |
22333 | # Write a here document: | |
22334 | cat >>$CONFIG_STATUS <<_ACEOF | |
22335 | # First, check the format of the line: | |
22336 | cat >"\$tmp/defines.sed" <<\\CEOF | |
22337 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
22338 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
22339 | b | |
22340 | :def | |
22341 | _ACEOF | |
22342 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
22343 | echo 'CEOF | |
22344 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | |
22345 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
22346 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
22347 | grep . conftest.tail >/dev/null || break | |
22348 | rm -f conftest.defines | |
22349 | mv conftest.tail conftest.defines | |
22350 | done | |
22351 | rm -f conftest.defines conftest.tail | |
22352 | ||
22353 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | |
22354 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22355 | if test x"$ac_file" != x-; then | |
22356 | echo "/* $configure_input */" >"$tmp/config.h" | |
22357 | cat "$ac_result" >>"$tmp/config.h" | |
22358 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
22359 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
22360 | echo "$as_me: $ac_file is unchanged" >&6;} | |
22361 | else | |
22362 | rm -f $ac_file | |
22363 | mv "$tmp/config.h" $ac_file | |
22364 | fi | |
22365 | else | |
22366 | echo "/* $configure_input */" | |
22367 | cat "$ac_result" | |
22368 | fi | |
22369 | rm -f "$tmp/out12" | |
22370 | # Compute $ac_file's index in $config_headers. | |
22371 | _am_stamp_count=1 | |
22372 | for _am_header in $config_headers :; do | |
22373 | case $_am_header in | |
22374 | $ac_file | $ac_file:* ) | |
22375 | break ;; | |
22376 | * ) | |
22377 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
22378 | esac | |
22379 | done | |
22380 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || | |
22381 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22382 | X$ac_file : 'X\(//\)[^/]' \| \ | |
22383 | X$ac_file : 'X\(//\)$' \| \ | |
22384 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || | |
22385 | echo X$ac_file | | |
22386 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22387 | s//\1/ | |
22388 | q | |
22389 | } | |
22390 | /^X\(\/\/\)[^/].*/{ | |
22391 | s//\1/ | |
22392 | q | |
22393 | } | |
22394 | /^X\(\/\/\)$/{ | |
22395 | s//\1/ | |
22396 | q | |
22397 | } | |
22398 | /^X\(\/\).*/{ | |
22399 | s//\1/ | |
22400 | q | |
22401 | } | |
22402 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
22403 | ;; | |
22404 | ||
22405 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 | |
22406 | echo "$as_me: executing $ac_file commands" >&6;} | |
22407 | ;; | |
22408 | esac | |
22409 | ||
22410 | ||
22411 | case $ac_file$ac_mode in | |
22412 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
22413 | # Strip MF so we end up with the name of the file. | |
22414 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
22415 | # Check whether this is an Automake generated Makefile or not. | |
22416 | # We used to match only the files named `Makefile.in', but | |
22417 | # some people rename them; so instead we look at the file content. | |
22418 | # Grep'ing the first line is not enough: some people post-process | |
22419 | # each Makefile.in and add a new line on top of each file to say so. | |
22420 | # So let's grep whole file. | |
22421 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
22422 | dirpart=`$as_dirname -- "$mf" || | |
22423 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22424 | X"$mf" : 'X\(//\)[^/]' \| \ | |
22425 | X"$mf" : 'X\(//\)$' \| \ | |
22426 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
22427 | echo X"$mf" | | |
22428 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22429 | s//\1/ | |
22430 | q | |
22431 | } | |
22432 | /^X\(\/\/\)[^/].*/{ | |
22433 | s//\1/ | |
22434 | q | |
22435 | } | |
22436 | /^X\(\/\/\)$/{ | |
22437 | s//\1/ | |
22438 | q | |
22439 | } | |
22440 | /^X\(\/\).*/{ | |
22441 | s//\1/ | |
22442 | q | |
22443 | } | |
22444 | s/.*/./; q'` | |
22445 | else | |
22446 | continue | |
22447 | fi | |
22448 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22449 | # from the Makefile without running `make'. | |
22450 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
22451 | test -z "$DEPDIR" && continue | |
22452 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
22453 | test -z "am__include" && continue | |
22454 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
22455 | # When using ansi2knr, U may be empty or an underscore; expand it | |
22456 | U=`sed -n 's/^U = //p' < "$mf"` | |
22457 | # Find all dependency output files, they are included files with | |
22458 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
22459 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
22460 | # expansion. | |
22461 | for file in `sed -n " | |
22462 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22463 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
22464 | # Make sure the directory exists. | |
22465 | test -f "$dirpart/$file" && continue | |
22466 | fdir=`$as_dirname -- "$file" || | |
22467 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22468 | X"$file" : 'X\(//\)[^/]' \| \ | |
22469 | X"$file" : 'X\(//\)$' \| \ | |
22470 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
22471 | echo X"$file" | | |
22472 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22473 | s//\1/ | |
22474 | q | |
22475 | } | |
22476 | /^X\(\/\/\)[^/].*/{ | |
22477 | s//\1/ | |
22478 | q | |
22479 | } | |
22480 | /^X\(\/\/\)$/{ | |
22481 | s//\1/ | |
22482 | q | |
22483 | } | |
22484 | /^X\(\/\).*/{ | |
22485 | s//\1/ | |
22486 | q | |
22487 | } | |
22488 | s/.*/./; q'` | |
22489 | { as_dir=$dirpart/$fdir | |
22490 | case $as_dir in #( | |
22491 | -*) as_dir=./$as_dir;; | |
22492 | esac | |
22493 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
22494 | as_dirs= | |
22495 | while :; do | |
22496 | case $as_dir in #( | |
22497 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
22498 | *) as_qdir=$as_dir;; | |
22499 | esac | |
22500 | as_dirs="'$as_qdir' $as_dirs" | |
22501 | as_dir=`$as_dirname -- "$as_dir" || | |
22502 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22503 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22504 | X"$as_dir" : 'X\(//\)$' \| \ | |
22505 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
22506 | echo X"$as_dir" | | |
22507 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22508 | s//\1/ | |
22509 | q | |
22510 | } | |
22511 | /^X\(\/\/\)[^/].*/{ | |
22512 | s//\1/ | |
22513 | q | |
22514 | } | |
22515 | /^X\(\/\/\)$/{ | |
22516 | s//\1/ | |
22517 | q | |
22518 | } | |
22519 | /^X\(\/\).*/{ | |
22520 | s//\1/ | |
22521 | q | |
22522 | } | |
22523 | s/.*/./; q'` | |
22524 | test -d "$as_dir" && break | |
22525 | done | |
22526 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22527 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
22528 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
22529 | { (exit 1); exit 1; }; }; } | |
22530 | # echo "creating $dirpart/$file" | |
22531 | echo '# dummy' > "$dirpart/$file" | |
22532 | done | |
22533 | done | |
22534 | ;; | |
22535 | "libtool":C) | |
22536 | ||
22537 | # See if we are running on zsh, and set the options which allow our | |
22538 | # commands through without removal of \ escapes. | |
22539 | if test -n "${ZSH_VERSION+set}" ; then | |
22540 | setopt NO_GLOB_SUBST | |
22541 | fi | |
22542 | ||
22543 | cfgfile="${ofile}T" | |
22544 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
22545 | $RM "$cfgfile" | |
22546 | ||
22547 | cat <<_LT_EOF >> "$cfgfile" | |
22548 | #! $SHELL | |
22549 | ||
22550 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
22551 | # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION | |
22552 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
22553 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
22554 | # | |
22555 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
22556 | # 2006 Free Software Foundation, Inc. | |
22557 | # | |
22558 | # This file is part of GNU Libtool: | |
22559 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
22560 | # | |
22561 | # This program is free software; you can redistribute it and/or modify | |
22562 | # it under the terms of the GNU General Public License as published by | |
22563 | # the Free Software Foundation; either version 2 of the License, or | |
22564 | # (at your option) any later version. | |
22565 | # | |
22566 | # This program is distributed in the hope that it will be useful, but | |
22567 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
22568 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
22569 | # General Public License for more details. | |
22570 | # | |
22571 | # You should have received a copy of the GNU General Public License | |
22572 | # along with this program; if not, write to the Free Software | |
22573 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
22574 | # | |
22575 | # As a special exception to the GNU General Public License, if you | |
22576 | # distribute this file as part of a program that contains a | |
22577 | # configuration script generated by Autoconf, you may include it under | |
22578 | # the same distribution terms that you use for the rest of that program. | |
22579 | ||
22580 | # TEST SUITE MARKER ## BEGIN SOURCABLE | |
22581 | ||
22582 | # The names of the tagged configurations supported by this script. | |
22583 | available_tags="CXX " | |
22584 | ||
22585 | # ### BEGIN LIBTOOL CONFIG | |
22586 | ||
22587 | # Which release of libtool.m4 was used? | |
22588 | macro_version=$macro_version | |
22589 | macro_revision=$macro_revision | |
22590 | ||
22591 | # Whether or not to build shared libraries. | |
22592 | build_libtool_libs=$enable_shared | |
22593 | ||
22594 | # Whether or not to build static libraries. | |
22595 | build_old_libs=$enable_static | |
22596 | ||
22597 | # What type of objects to build. | |
22598 | pic_mode=$pic_mode | |
22599 | ||
22600 | # Whether or not to optimize for fast installation. | |
22601 | fast_install=$enable_fast_install | |
22602 | ||
22603 | # The host system. | |
22604 | host_alias=$host_alias | |
22605 | host=$host | |
22606 | host_os=$host_os | |
22607 | ||
22608 | # The build system. | |
22609 | build_alias=$build_alias | |
22610 | build=$build | |
22611 | build_os=$build_os | |
22612 | ||
22613 | # A sed program that does not truncate output. | |
22614 | SED=$lt_SED | |
22615 | ||
22616 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
22617 | Xsed="\$SED -e 1s/^X//" | |
22618 | ||
22619 | # A grep program that handles long lines. | |
22620 | GREP=$lt_GREP | |
22621 | ||
22622 | # An ERE matcher. | |
22623 | EGREP=$lt_EGREP | |
22624 | ||
22625 | # A literal string matcher. | |
22626 | FGREP=$lt_FGREP | |
22627 | ||
22628 | # A BSD- or MS-compatible name lister. | |
22629 | NM=$lt_NM | |
22630 | ||
22631 | # Whether we need soft or hard links. | |
22632 | LN_S=$lt_LN_S | |
22633 | ||
22634 | # What is the maximum length of a command? | |
22635 | max_cmd_len=$max_cmd_len | |
22636 | ||
22637 | # Object file suffix (normally "o"). | |
22638 | objext=$ac_objext | |
22639 | ||
22640 | # Executable file suffix (normally ""). | |
22641 | exeext=$exeext | |
22642 | ||
22643 | # How to create reloadable object files. | |
22644 | reload_flag=$lt_reload_flag | |
22645 | reload_cmds=$lt_reload_cmds | |
22646 | ||
22647 | # Method to check whether dependent libraries are shared objects. | |
22648 | deplibs_check_method=$lt_deplibs_check_method | |
22649 | ||
22650 | # Command to use when deplibs_check_method == "file_magic". | |
22651 | file_magic_cmd=$lt_file_magic_cmd | |
22652 | ||
22653 | # The archiver. | |
22654 | AR=$lt_AR | |
22655 | AR_FLAGS=$lt_AR_FLAGS | |
22656 | ||
22657 | # A symbol stripping program. | |
22658 | STRIP=$lt_STRIP | |
22659 | ||
22660 | # Commands used to install an old-style archive. | |
22661 | RANLIB=$lt_RANLIB | |
22662 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
22663 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
22664 | ||
22665 | # A C compiler. | |
22666 | LTCC=$lt_CC | |
22667 | ||
22668 | # LTCC compiler flags. | |
22669 | LTCFLAGS=$lt_CFLAGS | |
22670 | ||
22671 | # Take the output of nm and produce a listing of raw symbols and C names. | |
22672 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
22673 | ||
22674 | # Transform the output of nm in a proper C declaration. | |
22675 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
22676 | ||
22677 | # Transform the output of nm in a C name address pair. | |
22678 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
22679 | ||
22680 | # The name of the directory that contains temporary libtool files. | |
22681 | objdir=$objdir | |
22682 | ||
22683 | # Shell to use when invoking shell scripts. | |
22684 | SHELL=$lt_SHELL | |
22685 | ||
22686 | # An echo program that does not interpret backslashes. | |
22687 | ECHO=$lt_ECHO | |
22688 | ||
22689 | # Used to examine libraries when file_magic_cmd begins with "file". | |
22690 | MAGIC_CMD=$MAGIC_CMD | |
22691 | ||
22692 | # Must we lock files when doing compilation? | |
22693 | need_locks=$lt_need_locks | |
22694 | ||
22695 | # Old archive suffix (normally "a"). | |
22696 | libext=$libext | |
22697 | ||
22698 | # Shared library suffix (normally ".so"). | |
22699 | shrext_cmds=$lt_shrext_cmds | |
22700 | ||
22701 | # The commands to extract the exported symbol list from a shared archive. | |
22702 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
22703 | ||
22704 | # Variables whose values should be saved in libtool wrapper scripts and | |
22705 | # restored at link time. | |
22706 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
22707 | ||
22708 | # Do we need the "lib" prefix for modules? | |
22709 | need_lib_prefix=$need_lib_prefix | |
22710 | ||
22711 | # Do we need a version for libraries? | |
22712 | need_version=$need_version | |
22713 | ||
22714 | # Library versioning type. | |
22715 | version_type=$version_type | |
22716 | ||
22717 | # Shared library runtime path variable. | |
22718 | runpath_var=$runpath_var | |
22719 | ||
22720 | # Shared library path variable. | |
22721 | shlibpath_var=$shlibpath_var | |
22722 | ||
22723 | # Is shlibpath searched before the hard-coded library search path? | |
22724 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
22725 | ||
22726 | # Format of library name prefix. | |
22727 | libname_spec=$lt_libname_spec | |
22728 | ||
22729 | # List of archive names. First name is the real one, the rest are links. | |
22730 | # The last name is the one that the linker finds with -lNAME | |
22731 | library_names_spec=$lt_library_names_spec | |
22732 | ||
22733 | # The coded name of the library, if different from the real name. | |
22734 | soname_spec=$lt_soname_spec | |
22735 | ||
22736 | # Command to use after installation of a shared archive. | |
22737 | postinstall_cmds=$lt_postinstall_cmds | |
22738 | ||
22739 | # Command to use after uninstallation of a shared archive. | |
22740 | postuninstall_cmds=$lt_postuninstall_cmds | |
22741 | ||
22742 | # Commands used to finish a libtool library installation in a directory. | |
22743 | finish_cmds=$lt_finish_cmds | |
22744 | ||
22745 | # As "finish_cmds", except a single script fragment to be evaled but | |
22746 | # not shown. | |
22747 | finish_eval=$lt_finish_eval | |
22748 | ||
22749 | # Whether we should hardcode library paths into libraries. | |
22750 | hardcode_into_libs=$hardcode_into_libs | |
22751 | ||
22752 | # Compile-time system search path for libraries. | |
22753 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
22754 | ||
22755 | # Run-time system search path for libraries. | |
22756 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
22757 | ||
22758 | # Whether dlopen is supported. | |
22759 | dlopen_support=$enable_dlopen | |
22760 | ||
22761 | # Whether dlopen of programs is supported. | |
22762 | dlopen_self=$enable_dlopen_self | |
22763 | ||
22764 | # Whether dlopen of statically linked programs is supported. | |
22765 | dlopen_self_static=$enable_dlopen_self_static | |
22766 | ||
22767 | # Commands to strip libraries. | |
22768 | old_striplib=$lt_old_striplib | |
22769 | striplib=$lt_striplib | |
22770 | ||
22771 | # Assembler program. | |
22772 | AS=$AS | |
22773 | ||
22774 | # DLL creation program. | |
22775 | DLLTOOL=$DLLTOOL | |
22776 | ||
22777 | # Object dumper program. | |
22778 | OBJDUMP=$OBJDUMP | |
22779 | ||
22780 | ||
22781 | # The linker used to build libraries. | |
22782 | LD=$lt_LD | |
22783 | ||
22784 | # Commands used to build an old-style archive. | |
22785 | old_archive_cmds=$lt_old_archive_cmds | |
22786 | ||
22787 | # A language specific compiler. | |
22788 | CC=$lt_compiler | |
22789 | ||
22790 | # Is the compiler the GNU compiler? | |
22791 | with_gcc=$GCC | |
22792 | ||
22793 | # Compiler flag to turn off builtin functions. | |
22794 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
22795 | ||
22796 | # How to pass a linker flag through the compiler. | |
22797 | wl=$lt_lt_prog_compiler_wl | |
22798 | ||
22799 | # Additional compiler flags for building library objects. | |
22800 | pic_flag=$lt_lt_prog_compiler_pic | |
22801 | ||
22802 | # Compiler flag to prevent dynamic linking. | |
22803 | link_static_flag=$lt_lt_prog_compiler_static | |
22804 | ||
22805 | # Does compiler simultaneously support -c and -o options? | |
22806 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
22807 | ||
22808 | # Whether or not to add -lc for building shared libraries. | |
22809 | build_libtool_need_lc=$archive_cmds_need_lc | |
22810 | ||
22811 | # Whether or not to disallow shared libs when runtime libs are static. | |
22812 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
22813 | ||
22814 | # Compiler flag to allow reflexive dlopens. | |
22815 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
22816 | ||
22817 | # Compiler flag to generate shared objects directly from archives. | |
22818 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
22819 | ||
22820 | # Create an old-style archive from a shared archive. | |
22821 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
22822 | ||
22823 | # Create a temporary old-style archive to link instead of a shared archive. | |
22824 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
22825 | ||
22826 | # Commands used to build a shared archive. | |
22827 | archive_cmds=$lt_archive_cmds | |
22828 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
22829 | ||
22830 | # Commands used to build a loadable module if different from building | |
22831 | # a shared archive. | |
22832 | module_cmds=$lt_module_cmds | |
22833 | module_expsym_cmds=$lt_module_expsym_cmds | |
22834 | ||
22835 | # Whether we are building with GNU ld or not. | |
22836 | with_gnu_ld=$lt_with_gnu_ld | |
22837 | ||
22838 | # Flag that allows shared libraries with undefined symbols to be built. | |
22839 | allow_undefined_flag=$lt_allow_undefined_flag | |
22840 | ||
22841 | # Flag that enforces no undefined symbols. | |
22842 | no_undefined_flag=$lt_no_undefined_flag | |
22843 | ||
22844 | # Flag to hardcode \$libdir into a binary during linking. | |
22845 | # This must work even if \$libdir does not exist | |
22846 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
22847 | ||
22848 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
22849 | # during linking. This must work even if \$libdir does not exist. | |
22850 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
22851 | ||
22852 | # Whether we need a single "-rpath" flag with a separated argument. | |
22853 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
22854 | ||
22855 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
22856 | # DIR into the resulting binary. | |
22857 | hardcode_direct=$hardcode_direct | |
22858 | ||
22859 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
22860 | # into the resulting binary. | |
22861 | hardcode_minus_L=$hardcode_minus_L | |
22862 | ||
22863 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
22864 | # into the resulting binary. | |
22865 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
22866 | ||
22867 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
22868 | # into the library and all subsequent libraries and executables linked | |
22869 | # against it. | |
22870 | hardcode_automatic=$hardcode_automatic | |
22871 | ||
22872 | # Set to yes if linker adds runtime paths of dependent libraries | |
22873 | # to runtime path list. | |
22874 | inherit_rpath=$inherit_rpath | |
22875 | ||
22876 | # Whether libtool must link a program against all its dependency libraries. | |
22877 | link_all_deplibs=$link_all_deplibs | |
22878 | ||
22879 | # Fix the shell variable \$srcfile for the compiler. | |
22880 | fix_srcfile_path=$lt_fix_srcfile_path | |
22881 | ||
22882 | # Set to "yes" if exported symbols are required. | |
22883 | always_export_symbols=$always_export_symbols | |
22884 | ||
22885 | # The commands to list exported symbols. | |
22886 | export_symbols_cmds=$lt_export_symbols_cmds | |
22887 | ||
22888 | # Symbols that should not be listed in the preloaded symbols. | |
22889 | exclude_expsyms=$lt_exclude_expsyms | |
22890 | ||
22891 | # Symbols that must always be exported. | |
22892 | include_expsyms=$lt_include_expsyms | |
22893 | ||
22894 | # Commands necessary for linking programs (against libraries) with templates. | |
22895 | prelink_cmds=$lt_prelink_cmds | |
22896 | ||
22897 | # Specify filename containing input files. | |
22898 | file_list_spec=$lt_file_list_spec | |
22899 | ||
22900 | # How to hardcode a shared library path into an executable. | |
22901 | hardcode_action=$hardcode_action | |
22902 | ||
22903 | # Dependencies to place before and after the objects being linked to | |
22904 | # create a shared library. | |
22905 | predep_objects=$lt_predep_objects | |
22906 | postdep_objects=$lt_postdep_objects | |
22907 | predeps=$lt_predeps | |
22908 | postdeps=$lt_postdeps | |
22909 | ||
22910 | # The library search path used internally by the compiler when linking | |
22911 | # a shared library. | |
22912 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
22913 | ||
22914 | # ### END LIBTOOL CONFIG | |
22915 | ||
22916 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
22917 | # if CDPATH is set. | |
22918 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
22919 | ||
22920 | _LT_EOF | |
22921 | ||
22922 | case $host_os in | |
22923 | aix3*) | |
22924 | cat <<\_LT_EOF >> "$cfgfile" | |
22925 | # AIX sometimes has problems with the GCC collect2 program. For some | |
22926 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
22927 | # vanish in a puff of smoke. | |
22928 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
22929 | COLLECT_NAMES= | |
22930 | export COLLECT_NAMES | |
22931 | fi | |
22932 | _LT_EOF | |
22933 | ;; | |
22934 | esac | |
22935 | ||
22936 | ||
22937 | ltmain="$ac_aux_dir/ltmain.sh" | |
22938 | ||
22939 | ||
22940 | # We use sed instead of cat because bash on DJGPP gets confused if | |
22941 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
22942 | # text mode, it properly converts lines to CR/LF. This bash problem | |
22943 | # is reportedly fixed, but why not run on old versions too? | |
22944 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
22945 | || (rm -f "$cfgfile"; exit 1) | |
22946 | ||
22947 | case $xsi_shell in | |
22948 | yes) | |
22949 | cat << \_LT_EOF >> "$cfgfile" | |
22950 | # func_dirname file append nondir_replacement | |
22951 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
22952 | # otherwise set result to NONDIR_REPLACEMENT. | |
22953 | func_dirname () | |
22954 | { | |
22955 | case ${1} in | |
22956 | */*) func_dirname_result="${1%/*}${2}" ;; | |
22957 | * ) func_dirname_result="${3}" ;; | |
22958 | esac | |
22959 | } | |
22960 | ||
22961 | # func_basename file | |
22962 | func_basename () | |
22963 | { | |
22964 | func_basename_result="${1##*/}" | |
22965 | } | |
22966 | ||
22967 | # func_stripname prefix suffix name | |
22968 | # strip PREFIX and SUFFIX off of NAME. | |
22969 | # PREFIX and SUFFIX must not contain globbing or regex special | |
22970 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
22971 | # dot (in which case that matches only a dot). | |
22972 | func_stripname () | |
22973 | { | |
22974 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
22975 | # positional parameters, so assign one to ordinary parameter first. | |
22976 | func_stripname_result=${3} | |
22977 | func_stripname_result=${func_stripname_result#"${1}"} | |
22978 | func_stripname_result=${func_stripname_result%"${2}"} | |
22979 | } | |
22980 | _LT_EOF | |
22981 | ;; | |
22982 | *) # Bourne compatible functions. | |
22983 | cat << \_LT_EOF >> "$cfgfile" | |
22984 | # func_dirname file append nondir_replacement | |
22985 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
22986 | # otherwise set result to NONDIR_REPLACEMENT. | |
22987 | func_dirname () | |
22988 | { | |
22989 | # Extract subdirectory from the argument. | |
22990 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
22991 | if test "X$func_dirname_result" = "X${1}"; then | |
22992 | func_dirname_result="${3}" | |
22993 | else | |
22994 | func_dirname_result="$func_dirname_result${2}" | |
22995 | fi | |
22996 | } | |
22997 | ||
22998 | # func_basename file | |
22999 | func_basename () | |
23000 | { | |
23001 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
23002 | } | |
23003 | ||
23004 | # func_stripname prefix suffix name | |
23005 | # strip PREFIX and SUFFIX off of NAME. | |
23006 | # PREFIX and SUFFIX must not contain globbing or regex special | |
23007 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
23008 | # dot (in which case that matches only a dot). | |
23009 | # func_strip_suffix prefix name | |
23010 | func_stripname () | |
23011 | { | |
23012 | case ${2} in | |
23013 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
23014 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
23015 | *) func_stripname_result=`$ECHO "X${3}" \ | |
23016 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
23017 | esac | |
23018 | } | |
23019 | _LT_EOF | |
23020 | esac | |
23021 | ||
23022 | ||
23023 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
23024 | || (rm -f "$cfgfile"; exit 1) | |
23025 | ||
23026 | mv -f "$cfgfile" "$ofile" || | |
23027 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
23028 | chmod +x "$ofile" | |
23029 | ||
23030 | ||
23031 | cat <<_LT_EOF >> "$ofile" | |
23032 | ||
23033 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
23034 | ||
23035 | # The linker used to build libraries. | |
23036 | LD=$lt_LD_CXX | |
23037 | ||
23038 | # Commands used to build an old-style archive. | |
23039 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
23040 | ||
23041 | # A language specific compiler. | |
23042 | CC=$lt_compiler_CXX | |
23043 | ||
23044 | # Is the compiler the GNU compiler? | |
23045 | with_gcc=$GCC_CXX | |
23046 | ||
23047 | # Compiler flag to turn off builtin functions. | |
23048 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
23049 | ||
23050 | # How to pass a linker flag through the compiler. | |
23051 | wl=$lt_lt_prog_compiler_wl_CXX | |
23052 | ||
23053 | # Additional compiler flags for building library objects. | |
23054 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
23055 | ||
23056 | # Compiler flag to prevent dynamic linking. | |
23057 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
23058 | ||
23059 | # Does compiler simultaneously support -c and -o options? | |
23060 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
23061 | ||
23062 | # Whether or not to add -lc for building shared libraries. | |
23063 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
23064 | ||
23065 | # Whether or not to disallow shared libs when runtime libs are static. | |
23066 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
23067 | ||
23068 | # Compiler flag to allow reflexive dlopens. | |
23069 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
23070 | ||
23071 | # Compiler flag to generate shared objects directly from archives. | |
23072 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
23073 | ||
23074 | # Create an old-style archive from a shared archive. | |
23075 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
23076 | ||
23077 | # Create a temporary old-style archive to link instead of a shared archive. | |
23078 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
23079 | ||
23080 | # Commands used to build a shared archive. | |
23081 | archive_cmds=$lt_archive_cmds_CXX | |
23082 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
23083 | ||
23084 | # Commands used to build a loadable module if different from building | |
23085 | # a shared archive. | |
23086 | module_cmds=$lt_module_cmds_CXX | |
23087 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
23088 | ||
23089 | # Whether we are building with GNU ld or not. | |
23090 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
23091 | ||
23092 | # Flag that allows shared libraries with undefined symbols to be built. | |
23093 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
23094 | ||
23095 | # Flag that enforces no undefined symbols. | |
23096 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
23097 | ||
23098 | # Flag to hardcode \$libdir into a binary during linking. | |
23099 | # This must work even if \$libdir does not exist | |
23100 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
23101 | ||
23102 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
23103 | # during linking. This must work even if \$libdir does not exist. | |
23104 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
23105 | ||
23106 | # Whether we need a single "-rpath" flag with a separated argument. | |
23107 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
23108 | ||
23109 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
23110 | # DIR into the resulting binary. | |
23111 | hardcode_direct=$hardcode_direct_CXX | |
23112 | ||
23113 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
23114 | # into the resulting binary. | |
23115 | hardcode_minus_L=$hardcode_minus_L_CXX | |
23116 | ||
23117 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
23118 | # into the resulting binary. | |
23119 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
23120 | ||
23121 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
23122 | # into the library and all subsequent libraries and executables linked | |
23123 | # against it. | |
23124 | hardcode_automatic=$hardcode_automatic_CXX | |
23125 | ||
23126 | # Set to yes if linker adds runtime paths of dependent libraries | |
23127 | # to runtime path list. | |
23128 | inherit_rpath=$inherit_rpath_CXX | |
23129 | ||
23130 | # Whether libtool must link a program against all its dependency libraries. | |
23131 | link_all_deplibs=$link_all_deplibs_CXX | |
23132 | ||
23133 | # Fix the shell variable \$srcfile for the compiler. | |
23134 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
23135 | ||
23136 | # Set to "yes" if exported symbols are required. | |
23137 | always_export_symbols=$always_export_symbols_CXX | |
23138 | ||
23139 | # The commands to list exported symbols. | |
23140 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
23141 | ||
23142 | # Symbols that should not be listed in the preloaded symbols. | |
23143 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
23144 | ||
23145 | # Symbols that must always be exported. | |
23146 | include_expsyms=$lt_include_expsyms_CXX | |
23147 | ||
23148 | # Commands necessary for linking programs (against libraries) with templates. | |
23149 | prelink_cmds=$lt_prelink_cmds_CXX | |
23150 | ||
23151 | # Specify filename containing input files. | |
23152 | file_list_spec=$lt_file_list_spec_CXX | |
23153 | ||
23154 | # How to hardcode a shared library path into an executable. | |
23155 | hardcode_action=$hardcode_action_CXX | |
23156 | ||
23157 | # Dependencies to place before and after the objects being linked to | |
23158 | # create a shared library. | |
23159 | predep_objects=$lt_predep_objects_CXX | |
23160 | postdep_objects=$lt_postdep_objects_CXX | |
23161 | predeps=$lt_predeps_CXX | |
23162 | postdeps=$lt_postdeps_CXX | |
23163 | ||
23164 | # The library search path used internally by the compiler when linking | |
23165 | # a shared library. | |
23166 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
23167 | ||
23168 | # ### END LIBTOOL TAG CONFIG: CXX | |
23169 | _LT_EOF | |
23170 | ||
23171 | ;; | |
23172 | ||
23173 | esac | |
23174 | done # for ac_tag | |
23175 | ||
23176 | ||
23177 | { (exit 0); exit 0; } | |
23178 | _ACEOF | |
23179 | chmod +x $CONFIG_STATUS | |
23180 | ac_clean_files=$ac_clean_files_save | |
23181 | ||
23182 | ||
23183 | # configure is writing to config.log, and then calls config.status. | |
23184 | # config.status does its own redirection, appending to config.log. | |
23185 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
23186 | # by configure, so config.status won't be able to write to it; its | |
23187 | # output is simply discarded. So we exec the FD to /dev/null, | |
23188 | # effectively closing config.log, so it can be properly (re)opened and | |
23189 | # appended to by config.status. When coming back to configure, we | |
23190 | # need to make the FD available again. | |
23191 | if test "$no_create" != yes; then | |
23192 | ac_cs_success=: | |
23193 | ac_config_status_args= | |
23194 | test "$silent" = yes && | |
23195 | ac_config_status_args="$ac_config_status_args --quiet" | |
23196 | exec 5>/dev/null | |
23197 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
23198 | exec 5>>config.log | |
23199 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
23200 | # would make configure fail if this is the last instruction. | |
23201 | $ac_cs_success || { (exit 1); exit 1; } | |
23202 | fi | |
23203 | ||
23204 | ||
23205 | ||
23206 | echo "" | |
23207 | echo "Libtiff is now configured for ${host}" | |
23208 | echo "" | |
23209 | echo " Installation directory: ${prefix}" | |
23210 | echo " Documentation directory: ${LIBTIFF_DOCDIR}" | |
23211 | echo " C compiler: ${CC} ${CFLAGS}" | |
23212 | echo " C++ compiler: ${CXX} ${CXXFLAGS}" | |
23213 | echo " Enable runtime linker paths: ${HAVE_RPATH}" | |
23214 | echo " Support Microsoft Document Imaging: ${HAVE_MDI}" | |
23215 | echo "" | |
23216 | echo " Support for internal codecs:" | |
23217 | echo " CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}" | |
23218 | echo " Macintosh PackBits algorithm: ${HAVE_PACKBITS}" | |
23219 | echo " LZW algorithm: ${HAVE_LZW}" | |
23220 | echo " ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}" | |
23221 | echo " NeXT 2-bit RLE algorithm: ${HAVE_NEXT}" | |
23222 | echo " LogLuv high dynamic range encoding: ${HAVE_LOGLUV}" | |
23223 | echo "" | |
23224 | echo " Support for external codecs:" | |
23225 | echo " ZLIB support: ${HAVE_ZLIB}" | |
23226 | echo " Pixar log-format algorithm: ${HAVE_PIXARLOG}" | |
23227 | echo " JPEG support: ${HAVE_JPEG}" | |
23228 | echo " Old JPEG support: ${HAVE_OJPEG}" | |
23229 | echo "" | |
23230 | echo " C++ support: ${HAVE_CXX}" | |
23231 | echo "" | |
23232 | echo " OpenGL support: ${HAVE_OPENGL}" | |
23233 | echo "" | |
23234 |