Commit | Line | Data |
---|---|---|
d9898ee8 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
8d138742 | 3 | # Generated by GNU Autoconf 2.63 for courierlogger 0.10. |
d9898ee8 | 4 | # |
5 | # Report bugs to <courier-users@lists.sourceforge.net>. | |
6 | # | |
dd184caf | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8d138742 | 8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
d9898ee8 | 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 | ||
dd184caf | 15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
d9898ee8 | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18 | emulate sh | |
19 | NULLCMD=: | |
8d138742 | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
d9898ee8 | 21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
dd184caf | 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 | ||
8d138742 CE |
42 | as_nl=' |
43 | ' | |
44 | export as_nl | |
45 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
46 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
47 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
48 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
49 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
dd184caf | 74 | # The user is always right. |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
8d138742 CE |
76 | PATH_SEPARATOR=: |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
d9898ee8 | 81 | fi |
d9898ee8 | 82 | |
83 | # Support unset when possible. | |
84 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
85 | as_unset=unset | |
86 | else | |
87 | as_unset=false | |
88 | fi | |
89 | ||
90 | ||
dd184caf | 91 | # IFS |
92 | # We need space, tab and new line, in precisely that order. Quoting is | |
93 | # there to prevent editors from complaining about space-tab. | |
94 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
95 | # splitting by setting IFS to empty value.) | |
dd184caf | 96 | IFS=" "" $as_nl" |
97 | ||
98 | # Find who we are. Look in the path if we contain no directory separator. | |
99 | case $0 in | |
100 | *[\\/]* ) as_myself=$0 ;; | |
101 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
102 | for as_dir in $PATH | |
103 | do | |
104 | IFS=$as_save_IFS | |
105 | test -z "$as_dir" && as_dir=. | |
106 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
107 | done | |
108 | IFS=$as_save_IFS | |
109 | ||
110 | ;; | |
111 | esac | |
112 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
113 | # in which case we are not to be found in the path. | |
114 | if test "x$as_myself" = x; then | |
115 | as_myself=$0 | |
116 | fi | |
117 | if test ! -f "$as_myself"; then | |
8d138742 | 118 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
dd184caf | 119 | { (exit 1); exit 1; } |
120 | fi | |
121 | ||
d9898ee8 | 122 | # Work around bugs in pre-3.0 UWIN ksh. |
dd184caf | 123 | for as_var in ENV MAIL MAILPATH |
124 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
125 | done | |
d9898ee8 | 126 | PS1='$ ' |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
8d138742 CE |
131 | LC_ALL=C |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
d9898ee8 | 135 | |
136 | # Required to use basename. | |
dd184caf | 137 | if expr a : '\(a\)' >/dev/null 2>&1 && |
138 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
d9898ee8 | 139 | as_expr=expr |
140 | else | |
141 | as_expr=false | |
142 | fi | |
143 | ||
dd184caf | 144 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 | 145 | as_basename=basename |
146 | else | |
147 | as_basename=false | |
148 | fi | |
149 | ||
150 | ||
151 | # Name of the executable. | |
dd184caf | 152 | as_me=`$as_basename -- "$0" || |
d9898ee8 | 153 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
154 | X"$0" : 'X\(//\)$' \| \ | |
dd184caf | 155 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
8d138742 | 156 | $as_echo X/"$0" | |
dd184caf | 157 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
158 | s//\1/ | |
159 | q | |
160 | } | |
161 | /^X\/\(\/\/\)$/{ | |
162 | s//\1/ | |
163 | q | |
164 | } | |
165 | /^X\/\(\/\).*/{ | |
166 | s//\1/ | |
167 | q | |
168 | } | |
169 | s/.*/./; q'` | |
d9898ee8 | 170 | |
dd184caf | 171 | # CDPATH. |
172 | $as_unset CDPATH | |
d9898ee8 | 173 | |
d9898ee8 | 174 | |
dd184caf | 175 | if test "x$CONFIG_SHELL" = x; then |
176 | if (eval ":") 2>/dev/null; then | |
177 | as_have_required=yes | |
178 | else | |
179 | as_have_required=no | |
d9898ee8 | 180 | fi |
181 | ||
8d138742 | 182 | if test $as_have_required = yes && (eval ": |
dd184caf | 183 | (as_func_return () { |
184 | (exit \$1) | |
185 | } | |
186 | as_func_success () { | |
187 | as_func_return 0 | |
188 | } | |
189 | as_func_failure () { | |
190 | as_func_return 1 | |
191 | } | |
192 | as_func_ret_success () { | |
193 | return 0 | |
194 | } | |
195 | as_func_ret_failure () { | |
196 | return 1 | |
197 | } | |
d9898ee8 | 198 | |
dd184caf | 199 | exitcode=0 |
200 | if as_func_success; then | |
201 | : | |
202 | else | |
203 | exitcode=1 | |
204 | echo as_func_success failed. | |
205 | fi | |
d9898ee8 | 206 | |
dd184caf | 207 | if as_func_failure; then |
208 | exitcode=1 | |
209 | echo as_func_failure succeeded. | |
210 | fi | |
211 | ||
212 | if as_func_ret_success; then | |
213 | : | |
214 | else | |
215 | exitcode=1 | |
216 | echo as_func_ret_success failed. | |
217 | fi | |
218 | ||
219 | if as_func_ret_failure; then | |
220 | exitcode=1 | |
221 | echo as_func_ret_failure succeeded. | |
222 | fi | |
223 | ||
224 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
225 | : | |
226 | else | |
227 | exitcode=1 | |
228 | echo positional parameters were not saved. | |
229 | fi | |
230 | ||
231 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
232 | ||
233 | ( | |
234 | as_lineno_1=\$LINENO | |
235 | as_lineno_2=\$LINENO | |
236 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
237 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
238 | ") 2> /dev/null; then | |
239 | : | |
240 | else | |
241 | as_candidate_shells= | |
d9898ee8 | 242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
243 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
244 | do | |
245 | IFS=$as_save_IFS | |
246 | test -z "$as_dir" && as_dir=. | |
dd184caf | 247 | case $as_dir in |
d9898ee8 | 248 | /*) |
dd184caf | 249 | for as_base in sh bash ksh sh5; do |
250 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
251 | done;; | |
252 | esac | |
253 | done | |
254 | IFS=$as_save_IFS | |
255 | ||
256 | ||
257 | for as_shell in $as_candidate_shells $SHELL; do | |
258 | # Try only shells that exist, to save several forks. | |
259 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
260 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
262 | emulate sh | |
263 | NULLCMD=: | |
8d138742 | 264 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
dd184caf | 265 | # is contrary to our usage. Disable this feature. |
266 | alias -g '${1+"$@"}'='"$@"' | |
267 | setopt NO_GLOB_SUBST | |
268 | else | |
269 | case `(set -o) 2>/dev/null` in | |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
273 | fi | |
274 | ||
275 | ||
276 | : | |
277 | _ASEOF | |
278 | }; then | |
279 | CONFIG_SHELL=$as_shell | |
280 | as_have_required=yes | |
281 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
282 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
283 | emulate sh | |
284 | NULLCMD=: | |
8d138742 | 285 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
dd184caf | 286 | # is contrary to our usage. Disable this feature. |
287 | alias -g '${1+"$@"}'='"$@"' | |
288 | setopt NO_GLOB_SUBST | |
289 | else | |
290 | case `(set -o) 2>/dev/null` in | |
291 | *posix*) set -o posix ;; | |
292 | esac | |
293 | ||
294 | fi | |
295 | ||
296 | ||
297 | : | |
298 | (as_func_return () { | |
299 | (exit $1) | |
300 | } | |
301 | as_func_success () { | |
302 | as_func_return 0 | |
303 | } | |
304 | as_func_failure () { | |
305 | as_func_return 1 | |
306 | } | |
307 | as_func_ret_success () { | |
308 | return 0 | |
309 | } | |
310 | as_func_ret_failure () { | |
311 | return 1 | |
312 | } | |
313 | ||
314 | exitcode=0 | |
315 | if as_func_success; then | |
316 | : | |
317 | else | |
318 | exitcode=1 | |
319 | echo as_func_success failed. | |
320 | fi | |
321 | ||
322 | if as_func_failure; then | |
323 | exitcode=1 | |
324 | echo as_func_failure succeeded. | |
325 | fi | |
326 | ||
327 | if as_func_ret_success; then | |
328 | : | |
329 | else | |
330 | exitcode=1 | |
331 | echo as_func_ret_success failed. | |
332 | fi | |
333 | ||
334 | if as_func_ret_failure; then | |
335 | exitcode=1 | |
336 | echo as_func_ret_failure succeeded. | |
337 | fi | |
338 | ||
339 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
340 | : | |
341 | else | |
342 | exitcode=1 | |
343 | echo positional parameters were not saved. | |
344 | fi | |
345 | ||
346 | test $exitcode = 0) || { (exit 1); exit 1; } | |
347 | ||
348 | ( | |
d9898ee8 | 349 | as_lineno_1=$LINENO |
350 | as_lineno_2=$LINENO | |
d9898ee8 | 351 | test "x$as_lineno_1" != "x$as_lineno_2" && |
dd184caf | 352 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
353 | ||
354 | _ASEOF | |
355 | }; then | |
356 | break | |
357 | fi | |
358 | ||
359 | fi | |
360 | ||
361 | done | |
362 | ||
363 | if test "x$CONFIG_SHELL" != x; then | |
364 | for as_var in BASH_ENV ENV | |
8d138742 CE |
365 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
366 | done | |
367 | export CONFIG_SHELL | |
368 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
dd184caf | 369 | fi |
370 | ||
371 | ||
372 | if test $as_have_required = no; then | |
373 | echo This script requires a shell more modern than all the | |
374 | echo shells that I found on your system. Please install a | |
375 | echo modern shell, or manually run the script under such a | |
376 | echo shell if you do have one. | |
377 | { (exit 1); exit 1; } | |
378 | fi | |
379 | ||
380 | ||
381 | fi | |
382 | ||
383 | fi | |
384 | ||
385 | ||
386 | ||
387 | (eval "as_func_return () { | |
388 | (exit \$1) | |
389 | } | |
390 | as_func_success () { | |
391 | as_func_return 0 | |
392 | } | |
393 | as_func_failure () { | |
394 | as_func_return 1 | |
395 | } | |
396 | as_func_ret_success () { | |
397 | return 0 | |
398 | } | |
399 | as_func_ret_failure () { | |
400 | return 1 | |
401 | } | |
402 | ||
403 | exitcode=0 | |
404 | if as_func_success; then | |
405 | : | |
406 | else | |
407 | exitcode=1 | |
408 | echo as_func_success failed. | |
409 | fi | |
410 | ||
411 | if as_func_failure; then | |
412 | exitcode=1 | |
413 | echo as_func_failure succeeded. | |
414 | fi | |
415 | ||
416 | if as_func_ret_success; then | |
417 | : | |
418 | else | |
419 | exitcode=1 | |
420 | echo as_func_ret_success failed. | |
421 | fi | |
422 | ||
423 | if as_func_ret_failure; then | |
424 | exitcode=1 | |
425 | echo as_func_ret_failure succeeded. | |
426 | fi | |
427 | ||
428 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
429 | : | |
430 | else | |
431 | exitcode=1 | |
432 | echo positional parameters were not saved. | |
433 | fi | |
434 | ||
435 | test \$exitcode = 0") || { | |
436 | echo No shell found that supports shell functions. | |
8d138742 CE |
437 | echo Please tell bug-autoconf@gnu.org about your system, |
438 | echo including any error possibly output before this message. | |
439 | echo This can help us improve future autoconf versions. | |
440 | echo Configuration will now proceed without shell functions. | |
dd184caf | 441 | } |
442 | ||
443 | ||
444 | ||
445 | as_lineno_1=$LINENO | |
446 | as_lineno_2=$LINENO | |
447 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
448 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
d9898ee8 | 449 | |
450 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
451 | # uniformly replaced by the line number. The first 'sed' inserts a | |
dd184caf | 452 | # line-number line after each line using $LINENO; the second 'sed' |
453 | # does the real work. The second script uses 'N' to pair each | |
454 | # line-number line with the line containing $LINENO, and appends | |
455 | # trailing '-' during substitution so that $LINENO is not a special | |
456 | # case at line end. | |
d9898ee8 | 457 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
dd184caf | 458 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
459 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
460 | sed -n ' | |
461 | p | |
462 | /[$]LINENO/= | |
463 | ' <$as_myself | | |
d9898ee8 | 464 | sed ' |
dd184caf | 465 | s/[$]LINENO.*/&-/ |
466 | t lineno | |
467 | b | |
468 | :lineno | |
d9898ee8 | 469 | N |
dd184caf | 470 | :loop |
471 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
d9898ee8 | 472 | t loop |
dd184caf | 473 | s/-\n.*// |
d9898ee8 | 474 | ' >$as_me.lineno && |
dd184caf | 475 | chmod +x "$as_me.lineno" || |
8d138742 | 476 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
d9898ee8 | 477 | { (exit 1); exit 1; }; } |
478 | ||
479 | # Don't try to exec as it changes $[0], causing all sort of problems | |
480 | # (the dirname of $[0] is not the place where we might find the | |
dd184caf | 481 | # original and so on. Autoconf is especially sensitive to this). |
482 | . "./$as_me.lineno" | |
d9898ee8 | 483 | # Exit status is that of the last command. |
484 | exit | |
485 | } | |
486 | ||
487 | ||
dd184caf | 488 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
489 | as_dirname=dirname | |
490 | else | |
491 | as_dirname=false | |
492 | fi | |
493 | ||
494 | ECHO_C= ECHO_N= ECHO_T= | |
495 | case `echo -n x` in | |
496 | -n*) | |
497 | case `echo 'x\c'` in | |
498 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
499 | *) ECHO_C='\c';; | |
500 | esac;; | |
501 | *) | |
502 | ECHO_N='-n';; | |
d9898ee8 | 503 | esac |
dd184caf | 504 | if expr a : '\(a\)' >/dev/null 2>&1 && |
505 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
d9898ee8 | 506 | as_expr=expr |
507 | else | |
508 | as_expr=false | |
509 | fi | |
510 | ||
511 | rm -f conf$$ conf$$.exe conf$$.file | |
dd184caf | 512 | if test -d conf$$.dir; then |
513 | rm -f conf$$.dir/conf$$.file | |
514 | else | |
515 | rm -f conf$$.dir | |
8d138742 CE |
516 | mkdir conf$$.dir 2>/dev/null |
517 | fi | |
518 | if (echo >conf$$.file) 2>/dev/null; then | |
519 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
520 | as_ln_s='ln -s' | |
521 | # ... but there are two gotchas: | |
522 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
523 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
524 | # In both cases, we have to default to `cp -p'. | |
525 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
526 | as_ln_s='cp -p' | |
527 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
528 | as_ln_s=ln | |
529 | else | |
d9898ee8 | 530 | as_ln_s='cp -p' |
8d138742 | 531 | fi |
d9898ee8 | 532 | else |
533 | as_ln_s='cp -p' | |
534 | fi | |
dd184caf | 535 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
536 | rmdir conf$$.dir 2>/dev/null | |
d9898ee8 | 537 | |
538 | if mkdir -p . 2>/dev/null; then | |
539 | as_mkdir_p=: | |
540 | else | |
541 | test -d ./-p && rmdir ./-p | |
542 | as_mkdir_p=false | |
543 | fi | |
544 | ||
dd184caf | 545 | if test -x / >/dev/null 2>&1; then |
546 | as_test_x='test -x' | |
547 | else | |
548 | if ls -dL / >/dev/null 2>&1; then | |
549 | as_ls_L_option=L | |
550 | else | |
551 | as_ls_L_option= | |
552 | fi | |
553 | as_test_x=' | |
554 | eval sh -c '\'' | |
555 | if test -d "$1"; then | |
8d138742 | 556 | test -d "$1/."; |
dd184caf | 557 | else |
558 | case $1 in | |
8d138742 | 559 | -*)set "./$1";; |
dd184caf | 560 | esac; |
561 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
562 | ???[sx]*):;;*)false;;esac;fi | |
563 | '\'' sh | |
564 | ' | |
565 | fi | |
566 | as_executable_p=$as_test_x | |
d9898ee8 | 567 | |
568 | # Sed expression to map a string onto a valid CPP name. | |
569 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
570 | ||
571 | # Sed expression to map a string onto a valid variable name. | |
572 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
573 | ||
574 | ||
d9898ee8 | 575 | |
576 | ||
577 | # Check that we are running under the correct shell. | |
578 | SHELL=${CONFIG_SHELL-/bin/sh} | |
579 | ||
8d138742 | 580 | case X$lt_ECHO in |
d9898ee8 | 581 | X*--fallback-echo) |
582 | # Remove one level of quotation (which was required for Make). | |
8d138742 | 583 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
d9898ee8 | 584 | ;; |
585 | esac | |
586 | ||
8d138742 | 587 | ECHO=${lt_ECHO-echo} |
d9898ee8 | 588 | if test "X$1" = X--no-reexec; then |
589 | # Discard the --no-reexec flag, and continue. | |
590 | shift | |
591 | elif test "X$1" = X--fallback-echo; then | |
592 | # Avoid inline document here, it may be left over | |
593 | : | |
8d138742 CE |
594 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
595 | # Yippee, $ECHO works! | |
d9898ee8 | 596 | : |
597 | else | |
598 | # Restart under the correct shell. | |
599 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
600 | fi | |
601 | ||
602 | if test "X$1" = X--fallback-echo; then | |
603 | # used as fallback echo | |
604 | shift | |
8d138742 | 605 | cat <<_LT_EOF |
d9898ee8 | 606 | $* |
8d138742 | 607 | _LT_EOF |
d9898ee8 | 608 | exit 0 |
609 | fi | |
610 | ||
611 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
612 | # if CDPATH is set. | |
613 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
614 | ||
8d138742 CE |
615 | if test -z "$lt_ECHO"; then |
616 | if test "X${echo_test_string+set}" != Xset; then | |
617 | # find a string as large as possible, as long as the shell can cope with it | |
618 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
619 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
620 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
621 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
622 | then | |
623 | break | |
624 | fi | |
625 | done | |
626 | fi | |
d9898ee8 | 627 | |
8d138742 CE |
628 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
629 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
630 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
631 | : | |
632 | else | |
633 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
634 | # backslashes. This makes it impossible to quote backslashes using | |
635 | # echo "$something" | sed 's/\\/\\\\/g' | |
636 | # | |
637 | # So, first we look for a working echo in the user's PATH. | |
d9898ee8 | 638 | |
8d138742 CE |
639 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
640 | for dir in $PATH /usr/ucb; do | |
641 | IFS="$lt_save_ifs" | |
642 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
643 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
644 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
645 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
646 | ECHO="$dir/echo" | |
647 | break | |
648 | fi | |
649 | done | |
d9898ee8 | 650 | IFS="$lt_save_ifs" |
d9898ee8 | 651 | |
8d138742 CE |
652 | if test "X$ECHO" = Xecho; then |
653 | # We didn't find a better echo, so look for alternatives. | |
654 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
655 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
656 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
657 | # This shell has a builtin print -r that does the trick. | |
658 | ECHO='print -r' | |
659 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
660 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
661 | # If we have ksh, try running configure again with it. | |
662 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
663 | export ORIGINAL_CONFIG_SHELL | |
664 | CONFIG_SHELL=/bin/ksh | |
665 | export CONFIG_SHELL | |
666 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
d9898ee8 | 667 | else |
8d138742 CE |
668 | # Try using printf. |
669 | ECHO='printf %s\n' | |
670 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
671 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
672 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
673 | # Cool, printf works | |
674 | : | |
675 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
676 | test "X$echo_testing_string" = 'X\t' && | |
677 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
678 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
679 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
680 | export CONFIG_SHELL | |
681 | SHELL="$CONFIG_SHELL" | |
682 | export SHELL | |
683 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
684 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
685 | test "X$echo_testing_string" = 'X\t' && | |
686 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
687 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
688 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
689 | else | |
690 | # maybe with a smaller string... | |
691 | prev=: | |
d9898ee8 | 692 | |
8d138742 CE |
693 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
694 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
695 | then | |
696 | break | |
697 | fi | |
698 | prev="$cmd" | |
699 | done | |
d9898ee8 | 700 | |
8d138742 CE |
701 | if test "$prev" != 'sed 50q "$0"'; then |
702 | echo_test_string=`eval $prev` | |
703 | export echo_test_string | |
704 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
705 | else | |
706 | # Oops. We lost completely, so just stick with echo. | |
707 | ECHO=echo | |
708 | fi | |
709 | fi | |
d9898ee8 | 710 | fi |
711 | fi | |
712 | fi | |
713 | fi | |
d9898ee8 | 714 | |
715 | # Copy echo and quote the copy suitably for passing to libtool from | |
716 | # the Makefile, instead of quoting the original, which is used later. | |
8d138742 CE |
717 | lt_ECHO=$ECHO |
718 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
719 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
d9898ee8 | 720 | fi |
721 | ||
722 | ||
723 | ||
724 | ||
dd184caf | 725 | exec 7<&0 </dev/null 6>&1 |
726 | ||
d9898ee8 | 727 | # Name of the host. |
728 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
729 | # so uname gets run too. | |
730 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
731 | ||
d9898ee8 | 732 | # |
733 | # Initializations. | |
734 | # | |
735 | ac_default_prefix=/usr/local | |
dd184caf | 736 | ac_clean_files= |
d9898ee8 | 737 | ac_config_libobj_dir=. |
dd184caf | 738 | LIBOBJS= |
d9898ee8 | 739 | cross_compiling=no |
740 | subdirs= | |
741 | MFLAGS= | |
742 | MAKEFLAGS= | |
743 | SHELL=${CONFIG_SHELL-/bin/sh} | |
744 | ||
d9898ee8 | 745 | # Identity of this package. |
746 | PACKAGE_NAME='courierlogger' | |
747 | PACKAGE_TARNAME='courierlogger' | |
748 | PACKAGE_VERSION='0.10' | |
749 | PACKAGE_STRING='courierlogger 0.10' | |
750 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' | |
751 | ||
752 | ac_unique_file="logger.c" | |
753 | # Factoring default headers for most tests. | |
754 | ac_includes_default="\ | |
755 | #include <stdio.h> | |
dd184caf | 756 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 | 757 | # include <sys/types.h> |
758 | #endif | |
dd184caf | 759 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 | 760 | # include <sys/stat.h> |
761 | #endif | |
dd184caf | 762 | #ifdef STDC_HEADERS |
d9898ee8 | 763 | # include <stdlib.h> |
764 | # include <stddef.h> | |
765 | #else | |
dd184caf | 766 | # ifdef HAVE_STDLIB_H |
d9898ee8 | 767 | # include <stdlib.h> |
768 | # endif | |
769 | #endif | |
dd184caf | 770 | #ifdef HAVE_STRING_H |
771 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
d9898ee8 | 772 | # include <memory.h> |
773 | # endif | |
774 | # include <string.h> | |
775 | #endif | |
dd184caf | 776 | #ifdef HAVE_STRINGS_H |
d9898ee8 | 777 | # include <strings.h> |
778 | #endif | |
dd184caf | 779 | #ifdef HAVE_INTTYPES_H |
d9898ee8 | 780 | # include <inttypes.h> |
d9898ee8 | 781 | #endif |
dd184caf | 782 | #ifdef HAVE_STDINT_H |
783 | # include <stdint.h> | |
784 | #endif | |
785 | #ifdef HAVE_UNISTD_H | |
d9898ee8 | 786 | # include <unistd.h> |
787 | #endif" | |
788 | ||
8d138742 CE |
789 | ac_subst_vars='am__EXEEXT_FALSE |
790 | am__EXEEXT_TRUE | |
791 | LTLIBOBJS | |
792 | LIBOBJS | |
793 | HAVE_SGML_FALSE | |
794 | HAVE_SGML_TRUE | |
dd184caf | 795 | CPP |
8d138742 CE |
796 | OTOOL64 |
797 | OTOOL | |
798 | LIPO | |
799 | NMEDIT | |
800 | DSYMUTIL | |
801 | lt_ECHO | |
802 | RANLIB | |
803 | AR | |
804 | OBJDUMP | |
805 | NM | |
806 | ac_ct_DUMPBIN | |
807 | DUMPBIN | |
808 | LD | |
809 | FGREP | |
810 | EGREP | |
811 | GREP | |
812 | SED | |
813 | host_os | |
814 | host_vendor | |
815 | host_cpu | |
816 | host | |
817 | build_os | |
818 | build_vendor | |
819 | build_cpu | |
820 | build | |
dd184caf | 821 | LIBTOOL |
8d138742 CE |
822 | LN_S |
823 | am__fastdepCC_FALSE | |
824 | am__fastdepCC_TRUE | |
825 | CCDEPMODE | |
826 | AMDEPBACKSLASH | |
827 | AMDEP_FALSE | |
828 | AMDEP_TRUE | |
829 | am__quote | |
830 | am__include | |
831 | DEPDIR | |
832 | OBJEXT | |
833 | EXEEXT | |
834 | ac_ct_CC | |
835 | CPPFLAGS | |
836 | LDFLAGS | |
837 | CFLAGS | |
838 | CC | |
839 | am__untar | |
840 | am__tar | |
841 | AMTAR | |
842 | am__leading_dot | |
843 | SET_MAKE | |
844 | AWK | |
845 | mkdir_p | |
846 | MKDIR_P | |
847 | INSTALL_STRIP_PROGRAM | |
848 | STRIP | |
849 | install_sh | |
850 | MAKEINFO | |
851 | AUTOHEADER | |
852 | AUTOMAKE | |
853 | AUTOCONF | |
854 | ACLOCAL | |
855 | VERSION | |
856 | PACKAGE | |
857 | CYGPATH_W | |
858 | am__isrc | |
859 | INSTALL_DATA | |
860 | INSTALL_SCRIPT | |
861 | INSTALL_PROGRAM | |
862 | target_alias | |
863 | host_alias | |
864 | build_alias | |
865 | LIBS | |
866 | ECHO_T | |
867 | ECHO_N | |
868 | ECHO_C | |
869 | DEFS | |
870 | mandir | |
871 | localedir | |
872 | libdir | |
873 | psdir | |
874 | pdfdir | |
875 | dvidir | |
876 | htmldir | |
877 | infodir | |
878 | docdir | |
879 | oldincludedir | |
880 | includedir | |
881 | localstatedir | |
882 | sharedstatedir | |
883 | sysconfdir | |
884 | datadir | |
885 | datarootdir | |
886 | libexecdir | |
887 | sbindir | |
888 | bindir | |
889 | program_transform_name | |
890 | prefix | |
891 | exec_prefix | |
892 | PACKAGE_BUGREPORT | |
893 | PACKAGE_STRING | |
894 | PACKAGE_VERSION | |
895 | PACKAGE_TARNAME | |
896 | PACKAGE_NAME | |
897 | PATH_SEPARATOR | |
898 | SHELL' | |
d9898ee8 | 899 | ac_subst_files='' |
8d138742 CE |
900 | ac_user_opts=' |
901 | enable_option_checking | |
902 | enable_dependency_tracking | |
903 | enable_shared | |
904 | enable_static | |
905 | with_pic | |
906 | enable_fast_install | |
907 | with_gnu_ld | |
908 | enable_libtool_lock | |
909 | with_syslog | |
910 | ' | |
dd184caf | 911 | ac_precious_vars='build_alias |
912 | host_alias | |
913 | target_alias | |
914 | CC | |
915 | CFLAGS | |
916 | LDFLAGS | |
917 | LIBS | |
918 | CPPFLAGS | |
8d138742 | 919 | CPP' |
dd184caf | 920 | |
d9898ee8 | 921 | |
922 | # Initialize some variables set by options. | |
923 | ac_init_help= | |
924 | ac_init_version=false | |
8d138742 CE |
925 | ac_unrecognized_opts= |
926 | ac_unrecognized_sep= | |
d9898ee8 | 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. | |
dd184caf | 949 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 | 950 | bindir='${exec_prefix}/bin' |
951 | sbindir='${exec_prefix}/sbin' | |
952 | libexecdir='${exec_prefix}/libexec' | |
dd184caf | 953 | datarootdir='${prefix}/share' |
954 | datadir='${datarootdir}' | |
d9898ee8 | 955 | sysconfdir='${prefix}/etc' |
956 | sharedstatedir='${prefix}/com' | |
957 | localstatedir='${prefix}/var' | |
d9898ee8 | 958 | includedir='${prefix}/include' |
959 | oldincludedir='/usr/include' | |
dd184caf | 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' | |
d9898ee8 | 969 | |
970 | ac_prev= | |
dd184caf | 971 | ac_dashdash= |
d9898ee8 | 972 | for ac_option |
973 | do | |
974 | # If the previous option needs an argument, assign it. | |
975 | if test -n "$ac_prev"; then | |
dd184caf | 976 | eval $ac_prev=\$ac_option |
d9898ee8 | 977 | ac_prev= |
978 | continue | |
979 | fi | |
980 | ||
dd184caf | 981 | case $ac_option in |
982 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
983 | *) ac_optarg=yes ;; | |
984 | esac | |
d9898ee8 | 985 | |
986 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
987 | ||
dd184caf | 988 | case $ac_dashdash$ac_option in |
989 | --) | |
990 | ac_dashdash=yes ;; | |
d9898ee8 | 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 | ||
dd184caf | 1012 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 | 1013 | ac_prev=datadir ;; |
dd184caf | 1014 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 | 1015 | datadir=$ac_optarg ;; |
1016 | ||
dd184caf | 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 | ||
d9898ee8 | 1024 | -disable-* | --disable-*) |
8d138742 | 1025 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d9898ee8 | 1026 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1027 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1028 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
d9898ee8 | 1029 | { (exit 1); exit 1; }; } |
8d138742 CE |
1030 | ac_useropt_orig=$ac_useropt |
1031 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1032 | case $ac_user_opts in | |
1033 | *" | |
1034 | "enable_$ac_useropt" | |
1035 | "*) ;; | |
1036 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1037 | ac_unrecognized_sep=', ';; | |
1038 | esac | |
1039 | eval enable_$ac_useropt=no ;; | |
dd184caf | 1040 | |
1041 | -docdir | --docdir | --docdi | --doc | --do) | |
1042 | ac_prev=docdir ;; | |
1043 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1044 | docdir=$ac_optarg ;; | |
1045 | ||
1046 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1047 | ac_prev=dvidir ;; | |
1048 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1049 | dvidir=$ac_optarg ;; | |
d9898ee8 | 1050 | |
1051 | -enable-* | --enable-*) | |
8d138742 | 1052 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d9898ee8 | 1053 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1054 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1055 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
d9898ee8 | 1056 | { (exit 1); exit 1; }; } |
8d138742 CE |
1057 | ac_useropt_orig=$ac_useropt |
1058 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1059 | case $ac_user_opts in | |
1060 | *" | |
1061 | "enable_$ac_useropt" | |
1062 | "*) ;; | |
1063 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1064 | ac_unrecognized_sep=', ';; | |
1065 | esac | |
1066 | eval enable_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1067 | |
1068 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1069 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1070 | | --exec | --exe | --ex) | |
1071 | ac_prev=exec_prefix ;; | |
1072 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1073 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1074 | | --exec=* | --exe=* | --ex=*) | |
1075 | exec_prefix=$ac_optarg ;; | |
1076 | ||
1077 | -gas | --gas | --ga | --g) | |
1078 | # Obsolete; use --with-gas. | |
1079 | with_gas=yes ;; | |
1080 | ||
1081 | -help | --help | --hel | --he | -h) | |
1082 | ac_init_help=long ;; | |
1083 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1084 | ac_init_help=recursive ;; | |
1085 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1086 | ac_init_help=short ;; | |
1087 | ||
1088 | -host | --host | --hos | --ho) | |
1089 | ac_prev=host_alias ;; | |
1090 | -host=* | --host=* | --hos=* | --ho=*) | |
1091 | host_alias=$ac_optarg ;; | |
1092 | ||
dd184caf | 1093 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1094 | ac_prev=htmldir ;; | |
1095 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1096 | | --ht=*) | |
1097 | htmldir=$ac_optarg ;; | |
1098 | ||
d9898ee8 | 1099 | -includedir | --includedir | --includedi | --included | --include \ |
1100 | | --includ | --inclu | --incl | --inc) | |
1101 | ac_prev=includedir ;; | |
1102 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1103 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1104 | includedir=$ac_optarg ;; | |
1105 | ||
1106 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1107 | ac_prev=infodir ;; | |
1108 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1109 | infodir=$ac_optarg ;; | |
1110 | ||
1111 | -libdir | --libdir | --libdi | --libd) | |
1112 | ac_prev=libdir ;; | |
1113 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1114 | libdir=$ac_optarg ;; | |
1115 | ||
1116 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1117 | | --libexe | --libex | --libe) | |
1118 | ac_prev=libexecdir ;; | |
1119 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1120 | | --libexe=* | --libex=* | --libe=*) | |
1121 | libexecdir=$ac_optarg ;; | |
1122 | ||
dd184caf | 1123 | -localedir | --localedir | --localedi | --localed | --locale) |
1124 | ac_prev=localedir ;; | |
1125 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1126 | localedir=$ac_optarg ;; | |
1127 | ||
d9898ee8 | 1128 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf | 1129 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 | 1130 | ac_prev=localstatedir ;; |
1131 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
dd184caf | 1132 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 | 1133 | localstatedir=$ac_optarg ;; |
1134 | ||
1135 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1136 | ac_prev=mandir ;; | |
1137 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1138 | mandir=$ac_optarg ;; | |
1139 | ||
1140 | -nfp | --nfp | --nf) | |
1141 | # Obsolete; use --without-fp. | |
1142 | with_fp=no ;; | |
1143 | ||
1144 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1145 | | --no-cr | --no-c | -n) | |
1146 | no_create=yes ;; | |
1147 | ||
1148 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1149 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1150 | no_recursion=yes ;; | |
1151 | ||
1152 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1153 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1154 | | --oldin | --oldi | --old | --ol | --o) | |
1155 | ac_prev=oldincludedir ;; | |
1156 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1157 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1158 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1159 | oldincludedir=$ac_optarg ;; | |
1160 | ||
1161 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1162 | ac_prev=prefix ;; | |
1163 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1164 | prefix=$ac_optarg ;; | |
1165 | ||
1166 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1167 | | --program-pre | --program-pr | --program-p) | |
1168 | ac_prev=program_prefix ;; | |
1169 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1170 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1171 | program_prefix=$ac_optarg ;; | |
1172 | ||
1173 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1174 | | --program-suf | --program-su | --program-s) | |
1175 | ac_prev=program_suffix ;; | |
1176 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1177 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1178 | program_suffix=$ac_optarg ;; | |
1179 | ||
1180 | -program-transform-name | --program-transform-name \ | |
1181 | | --program-transform-nam | --program-transform-na \ | |
1182 | | --program-transform-n | --program-transform- \ | |
1183 | | --program-transform | --program-transfor \ | |
1184 | | --program-transfo | --program-transf \ | |
1185 | | --program-trans | --program-tran \ | |
1186 | | --progr-tra | --program-tr | --program-t) | |
1187 | ac_prev=program_transform_name ;; | |
1188 | -program-transform-name=* | --program-transform-name=* \ | |
1189 | | --program-transform-nam=* | --program-transform-na=* \ | |
1190 | | --program-transform-n=* | --program-transform-=* \ | |
1191 | | --program-transform=* | --program-transfor=* \ | |
1192 | | --program-transfo=* | --program-transf=* \ | |
1193 | | --program-trans=* | --program-tran=* \ | |
1194 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1195 | program_transform_name=$ac_optarg ;; | |
1196 | ||
dd184caf | 1197 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1198 | ac_prev=pdfdir ;; | |
1199 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1200 | pdfdir=$ac_optarg ;; | |
1201 | ||
1202 | -psdir | --psdir | --psdi | --psd | --ps) | |
1203 | ac_prev=psdir ;; | |
1204 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1205 | psdir=$ac_optarg ;; | |
1206 | ||
d9898ee8 | 1207 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1208 | | -silent | --silent | --silen | --sile | --sil) | |
1209 | silent=yes ;; | |
1210 | ||
1211 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1212 | ac_prev=sbindir ;; | |
1213 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1214 | | --sbi=* | --sb=*) | |
1215 | sbindir=$ac_optarg ;; | |
1216 | ||
1217 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1218 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1219 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1220 | | --sha | --sh) | |
1221 | ac_prev=sharedstatedir ;; | |
1222 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1223 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1224 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1225 | | --sha=* | --sh=*) | |
1226 | sharedstatedir=$ac_optarg ;; | |
1227 | ||
1228 | -site | --site | --sit) | |
1229 | ac_prev=site ;; | |
1230 | -site=* | --site=* | --sit=*) | |
1231 | site=$ac_optarg ;; | |
1232 | ||
1233 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1234 | ac_prev=srcdir ;; | |
1235 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1236 | srcdir=$ac_optarg ;; | |
1237 | ||
1238 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1239 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1240 | ac_prev=sysconfdir ;; | |
1241 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1242 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1243 | sysconfdir=$ac_optarg ;; | |
1244 | ||
1245 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1246 | ac_prev=target_alias ;; | |
1247 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1248 | target_alias=$ac_optarg ;; | |
1249 | ||
1250 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1251 | verbose=yes ;; | |
1252 | ||
1253 | -version | --version | --versio | --versi | --vers | -V) | |
1254 | ac_init_version=: ;; | |
1255 | ||
1256 | -with-* | --with-*) | |
8d138742 | 1257 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d9898ee8 | 1258 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1259 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1260 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
d9898ee8 | 1261 | { (exit 1); exit 1; }; } |
8d138742 CE |
1262 | ac_useropt_orig=$ac_useropt |
1263 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1264 | case $ac_user_opts in | |
1265 | *" | |
1266 | "with_$ac_useropt" | |
1267 | "*) ;; | |
1268 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1269 | ac_unrecognized_sep=', ';; | |
1270 | esac | |
1271 | eval with_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1272 | |
1273 | -without-* | --without-*) | |
8d138742 | 1274 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d9898ee8 | 1275 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1276 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1277 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
d9898ee8 | 1278 | { (exit 1); exit 1; }; } |
8d138742 CE |
1279 | ac_useropt_orig=$ac_useropt |
1280 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1281 | case $ac_user_opts in | |
1282 | *" | |
1283 | "with_$ac_useropt" | |
1284 | "*) ;; | |
1285 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1286 | ac_unrecognized_sep=', ';; | |
1287 | esac | |
1288 | eval with_$ac_useropt=no ;; | |
d9898ee8 | 1289 | |
1290 | --x) | |
1291 | # Obsolete; use --with-x. | |
1292 | with_x=yes ;; | |
1293 | ||
1294 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1295 | | --x-incl | --x-inc | --x-in | --x-i) | |
1296 | ac_prev=x_includes ;; | |
1297 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1298 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1299 | x_includes=$ac_optarg ;; | |
1300 | ||
1301 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1302 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1303 | ac_prev=x_libraries ;; | |
1304 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1305 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1306 | x_libraries=$ac_optarg ;; | |
1307 | ||
8d138742 | 1308 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
d9898ee8 | 1309 | Try \`$0 --help' for more information." >&2 |
1310 | { (exit 1); exit 1; }; } | |
1311 | ;; | |
1312 | ||
1313 | *=*) | |
1314 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1315 | # Reject names that are not valid shell variable names. | |
1316 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
8d138742 | 1317 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
d9898ee8 | 1318 | { (exit 1); exit 1; }; } |
dd184caf | 1319 | eval $ac_envvar=\$ac_optarg |
d9898ee8 | 1320 | export $ac_envvar ;; |
1321 | ||
1322 | *) | |
1323 | # FIXME: should be removed in autoconf 3.0. | |
8d138742 | 1324 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
d9898ee8 | 1325 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8d138742 | 1326 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d9898ee8 | 1327 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1328 | ;; | |
1329 | ||
1330 | esac | |
1331 | done | |
1332 | ||
1333 | if test -n "$ac_prev"; then | |
1334 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
8d138742 | 1335 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
d9898ee8 | 1336 | { (exit 1); exit 1; }; } |
1337 | fi | |
1338 | ||
8d138742 CE |
1339 | if test -n "$ac_unrecognized_opts"; then |
1340 | case $enable_option_checking in | |
1341 | no) ;; | |
1342 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1343 | { (exit 1); exit 1; }; } ;; | |
1344 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1345 | esac | |
1346 | fi | |
1347 | ||
1348 | # Check all directory arguments for consistency. | |
dd184caf | 1349 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1350 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1351 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1352 | libdir localedir mandir | |
d9898ee8 | 1353 | do |
dd184caf | 1354 | eval ac_val=\$$ac_var |
8d138742 CE |
1355 | # Remove trailing slashes. |
1356 | case $ac_val in | |
1357 | */ ) | |
1358 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1359 | eval $ac_var=\$ac_val;; | |
1360 | esac | |
1361 | # Be sure to have absolute directory names. | |
d9898ee8 | 1362 | case $ac_val in |
dd184caf | 1363 | [\\/$]* | ?:[\\/]* ) continue;; |
1364 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d9898ee8 | 1365 | esac |
8d138742 | 1366 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
dd184caf | 1367 | { (exit 1); exit 1; }; } |
d9898ee8 | 1368 | done |
1369 | ||
1370 | # There might be people who depend on the old broken behavior: `$host' | |
1371 | # used to hold the argument of --host etc. | |
1372 | # FIXME: To remove some day. | |
1373 | build=$build_alias | |
1374 | host=$host_alias | |
1375 | target=$target_alias | |
1376 | ||
1377 | # FIXME: To remove some day. | |
1378 | if test "x$host_alias" != x; then | |
1379 | if test "x$build_alias" = x; then | |
1380 | cross_compiling=maybe | |
8d138742 | 1381 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
d9898ee8 | 1382 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1383 | elif test "x$build_alias" != "x$host_alias"; then | |
1384 | cross_compiling=yes | |
1385 | fi | |
1386 | fi | |
1387 | ||
1388 | ac_tool_prefix= | |
1389 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1390 | ||
1391 | test "$silent" = yes && exec 6>/dev/null | |
1392 | ||
1393 | ||
dd184caf | 1394 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1395 | ac_ls_di=`ls -di .` && | |
1396 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
8d138742 | 1397 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
dd184caf | 1398 | { (exit 1); exit 1; }; } |
1399 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
8d138742 | 1400 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
dd184caf | 1401 | { (exit 1); exit 1; }; } |
1402 | ||
1403 | ||
d9898ee8 | 1404 | # Find the source files, if location was not specified. |
1405 | if test -z "$srcdir"; then | |
1406 | ac_srcdir_defaulted=yes | |
dd184caf | 1407 | # Try the directory containing this script, then the parent directory. |
8d138742 CE |
1408 | ac_confdir=`$as_dirname -- "$as_myself" || |
1409 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1410 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1411 | X"$as_myself" : 'X\(//\)$' \| \ | |
1412 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1413 | $as_echo X"$as_myself" | | |
dd184caf | 1414 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1415 | s//\1/ | |
1416 | q | |
1417 | } | |
1418 | /^X\(\/\/\)[^/].*/{ | |
1419 | s//\1/ | |
1420 | q | |
1421 | } | |
1422 | /^X\(\/\/\)$/{ | |
1423 | s//\1/ | |
1424 | q | |
1425 | } | |
1426 | /^X\(\/\).*/{ | |
1427 | s//\1/ | |
1428 | q | |
1429 | } | |
1430 | s/.*/./; q'` | |
d9898ee8 | 1431 | srcdir=$ac_confdir |
dd184caf | 1432 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 | 1433 | srcdir=.. |
1434 | fi | |
1435 | else | |
1436 | ac_srcdir_defaulted=no | |
1437 | fi | |
dd184caf | 1438 | if test ! -r "$srcdir/$ac_unique_file"; then |
1439 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
8d138742 | 1440 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
d9898ee8 | 1441 | { (exit 1); exit 1; }; } |
d9898ee8 | 1442 | fi |
dd184caf | 1443 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1444 | ac_abs_confdir=`( | |
8d138742 | 1445 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
d9898ee8 | 1446 | { (exit 1); exit 1; }; } |
dd184caf | 1447 | pwd)` |
1448 | # When building in place, set srcdir=. | |
1449 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1450 | srcdir=. | |
1451 | fi | |
1452 | # Remove unnecessary trailing slashes from srcdir. | |
1453 | # Double slashes in file names in object file debugging info | |
1454 | # mess up M-x gdb in Emacs. | |
1455 | case $srcdir in | |
1456 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1457 | esac | |
1458 | for ac_var in $ac_precious_vars; do | |
1459 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1460 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1461 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1462 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1463 | done | |
d9898ee8 | 1464 | |
1465 | # | |
1466 | # Report the --help message. | |
1467 | # | |
1468 | if test "$ac_init_help" = "long"; then | |
1469 | # Omit some internal or obsolete options to make the list less imposing. | |
1470 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1471 | cat <<_ACEOF | |
1472 | \`configure' configures courierlogger 0.10 to adapt to many kinds of systems. | |
1473 | ||
1474 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1475 | ||
1476 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1477 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1478 | ||
1479 | Defaults for the options are specified in brackets. | |
1480 | ||
1481 | Configuration: | |
1482 | -h, --help display this help and exit | |
1483 | --help=short display options specific to this package | |
1484 | --help=recursive display the short help of all the included packages | |
1485 | -V, --version display version information and exit | |
1486 | -q, --quiet, --silent do not print \`checking...' messages | |
1487 | --cache-file=FILE cache test results in FILE [disabled] | |
1488 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1489 | -n, --no-create do not create output files | |
1490 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1491 | ||
d9898ee8 | 1492 | Installation directories: |
1493 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8d138742 | 1494 | [$ac_default_prefix] |
d9898ee8 | 1495 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8d138742 | 1496 | [PREFIX] |
d9898ee8 | 1497 | |
1498 | By default, \`make install' will install all the files in | |
1499 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1500 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1501 | for instance \`--prefix=\$HOME'. | |
1502 | ||
1503 | For better control, use the options below. | |
1504 | ||
1505 | Fine tuning of the installation directories: | |
8d138742 CE |
1506 | --bindir=DIR user executables [EPREFIX/bin] |
1507 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1508 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1509 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1510 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1511 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1512 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1513 | --includedir=DIR C header files [PREFIX/include] | |
1514 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1515 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1516 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1517 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1518 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1519 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1520 | --docdir=DIR documentation root [DATAROOTDIR/doc/courierlogger] | |
1521 | --htmldir=DIR html documentation [DOCDIR] | |
1522 | --dvidir=DIR dvi documentation [DOCDIR] | |
1523 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1524 | --psdir=DIR ps documentation [DOCDIR] | |
d9898ee8 | 1525 | _ACEOF |
1526 | ||
1527 | cat <<\_ACEOF | |
1528 | ||
1529 | Program names: | |
1530 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1531 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1532 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1533 | ||
1534 | System types: | |
1535 | --build=BUILD configure for building on BUILD [guessed] | |
1536 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1537 | _ACEOF | |
1538 | fi | |
1539 | ||
1540 | if test -n "$ac_init_help"; then | |
1541 | case $ac_init_help in | |
1542 | short | recursive ) echo "Configuration of courierlogger 0.10:";; | |
1543 | esac | |
1544 | cat <<\_ACEOF | |
1545 | ||
1546 | Optional Features: | |
8d138742 | 1547 | --disable-option-checking ignore unrecognized --enable/--with options |
d9898ee8 | 1548 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1549 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1550 | --disable-dependency-tracking speeds up one-time build | |
1551 | --enable-dependency-tracking do not reject slow dependency extractors | |
dd184caf | 1552 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1553 | --enable-static[=PKGS] build static libraries [default=yes] | |
d9898ee8 | 1554 | --enable-fast-install[=PKGS] |
1555 | optimize for fast installation [default=yes] | |
1556 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1557 | ||
1558 | Optional Packages: | |
1559 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1560 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d9898ee8 | 1561 | --with-pic try to use only PIC/non-PIC objects [default=use |
1562 | both] | |
8d138742 | 1563 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
d9898ee8 | 1564 | --with-syslog=XXX syslog facility [MAIL] |
1565 | ||
1566 | Some influential environment variables: | |
1567 | CC C compiler command | |
1568 | CFLAGS C compiler flags | |
1569 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1570 | nonstandard directory <lib dir> | |
dd184caf | 1571 | LIBS libraries to pass to the linker, e.g. -l<library> |
1572 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1573 | you have headers in a nonstandard directory <include dir> | |
d9898ee8 | 1574 | CPP C preprocessor |
d9898ee8 | 1575 | |
1576 | Use these variables to override the choices made by `configure' or to help | |
1577 | it to find libraries and programs with nonstandard names/locations. | |
1578 | ||
1579 | Report bugs to <courier-users@lists.sourceforge.net>. | |
1580 | _ACEOF | |
dd184caf | 1581 | ac_status=$? |
d9898ee8 | 1582 | fi |
1583 | ||
1584 | if test "$ac_init_help" = "recursive"; then | |
1585 | # If there are subdirs, report their specific --help. | |
d9898ee8 | 1586 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
8d138742 CE |
1587 | test -d "$ac_dir" || |
1588 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1589 | continue | |
d9898ee8 | 1590 | ac_builddir=. |
1591 | ||
dd184caf | 1592 | case "$ac_dir" in |
1593 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1594 | *) | |
8d138742 | 1595 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
dd184caf | 1596 | # A ".." for each directory in $ac_dir_suffix. |
8d138742 | 1597 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
dd184caf | 1598 | case $ac_top_builddir_sub in |
1599 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1600 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1601 | esac ;; | |
1602 | esac | |
1603 | ac_abs_top_builddir=$ac_pwd | |
1604 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1605 | # for backward compatibility: | |
1606 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 1607 | |
1608 | case $srcdir in | |
dd184caf | 1609 | .) # We are building in place. |
d9898ee8 | 1610 | ac_srcdir=. |
dd184caf | 1611 | ac_top_srcdir=$ac_top_builddir_sub |
1612 | ac_abs_top_srcdir=$ac_pwd ;; | |
1613 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
d9898ee8 | 1614 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf | 1615 | ac_top_srcdir=$srcdir |
1616 | ac_abs_top_srcdir=$srcdir ;; | |
1617 | *) # Relative name. | |
1618 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1619 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1620 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
d9898ee8 | 1621 | esac |
dd184caf | 1622 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1623 | ||
1624 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1625 | # Check for guested configure. | |
1626 | if test -f "$ac_srcdir/configure.gnu"; then | |
1627 | echo && | |
1628 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1629 | elif test -f "$ac_srcdir/configure"; then | |
1630 | echo && | |
1631 | $SHELL "$ac_srcdir/configure" --help=recursive | |
d9898ee8 | 1632 | else |
8d138742 | 1633 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dd184caf | 1634 | fi || ac_status=$? |
1635 | cd "$ac_pwd" || { ac_status=$?; break; } | |
d9898ee8 | 1636 | done |
1637 | fi | |
1638 | ||
dd184caf | 1639 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 | 1640 | if $ac_init_version; then |
1641 | cat <<\_ACEOF | |
1642 | courierlogger configure 0.10 | |
8d138742 | 1643 | generated by GNU Autoconf 2.63 |
d9898ee8 | 1644 | |
dd184caf | 1645 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8d138742 | 1646 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
d9898ee8 | 1647 | This configure script is free software; the Free Software Foundation |
1648 | gives unlimited permission to copy, distribute and modify it. | |
1649 | _ACEOF | |
dd184caf | 1650 | exit |
d9898ee8 | 1651 | fi |
dd184caf | 1652 | cat >config.log <<_ACEOF |
d9898ee8 | 1653 | This file contains any messages produced by compilers while |
1654 | running configure, to aid debugging if configure makes a mistake. | |
1655 | ||
1656 | It was created by courierlogger $as_me 0.10, which was | |
8d138742 | 1657 | generated by GNU Autoconf 2.63. Invocation command line was |
d9898ee8 | 1658 | |
1659 | $ $0 $@ | |
1660 | ||
1661 | _ACEOF | |
dd184caf | 1662 | exec 5>>config.log |
d9898ee8 | 1663 | { |
1664 | cat <<_ASUNAME | |
1665 | ## --------- ## | |
1666 | ## Platform. ## | |
1667 | ## --------- ## | |
1668 | ||
1669 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1670 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1671 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1672 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1673 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1674 | ||
1675 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1676 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1677 | ||
1678 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1679 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1680 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
dd184caf | 1681 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 | 1682 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1683 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1684 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1685 | ||
1686 | _ASUNAME | |
1687 | ||
1688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1689 | for as_dir in $PATH | |
1690 | do | |
1691 | IFS=$as_save_IFS | |
1692 | test -z "$as_dir" && as_dir=. | |
8d138742 | 1693 | $as_echo "PATH: $as_dir" |
d9898ee8 | 1694 | done |
dd184caf | 1695 | IFS=$as_save_IFS |
d9898ee8 | 1696 | |
1697 | } >&5 | |
1698 | ||
1699 | cat >&5 <<_ACEOF | |
1700 | ||
1701 | ||
1702 | ## ----------- ## | |
1703 | ## Core tests. ## | |
1704 | ## ----------- ## | |
1705 | ||
1706 | _ACEOF | |
1707 | ||
1708 | ||
1709 | # Keep a trace of the command line. | |
1710 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1711 | # Strip out --silent because we don't want to record it for future runs. | |
1712 | # Also quote any args containing shell meta-characters. | |
1713 | # Make two passes to allow for proper duplicate-argument suppression. | |
1714 | ac_configure_args= | |
1715 | ac_configure_args0= | |
1716 | ac_configure_args1= | |
d9898ee8 | 1717 | ac_must_keep_next=false |
1718 | for ac_pass in 1 2 | |
1719 | do | |
1720 | for ac_arg | |
1721 | do | |
1722 | case $ac_arg in | |
1723 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1724 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1725 | | -silent | --silent | --silen | --sile | --sil) | |
1726 | continue ;; | |
dd184caf | 1727 | *\'*) |
8d138742 | 1728 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 1729 | esac |
1730 | case $ac_pass in | |
1731 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1732 | 2) | |
1733 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1734 | if test $ac_must_keep_next = true; then | |
1735 | ac_must_keep_next=false # Got value, back to normal. | |
1736 | else | |
1737 | case $ac_arg in | |
1738 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1739 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1740 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1741 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1742 | case "$ac_configure_args0 " in | |
1743 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1744 | esac | |
1745 | ;; | |
1746 | -* ) ac_must_keep_next=true ;; | |
1747 | esac | |
1748 | fi | |
dd184caf | 1749 | ac_configure_args="$ac_configure_args '$ac_arg'" |
d9898ee8 | 1750 | ;; |
1751 | esac | |
1752 | done | |
1753 | done | |
1754 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1755 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1756 | ||
1757 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1758 | # config.log. We remove comments because anyway the quotes in there | |
1759 | # would cause problems or look ugly. | |
dd184caf | 1760 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1761 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
d9898ee8 | 1762 | trap 'exit_status=$? |
1763 | # Save into config.log some information that might help in debugging. | |
1764 | { | |
1765 | echo | |
1766 | ||
1767 | cat <<\_ASBOX | |
1768 | ## ---------------- ## | |
1769 | ## Cache variables. ## | |
1770 | ## ---------------- ## | |
1771 | _ASBOX | |
1772 | echo | |
1773 | # The following way of writing the cache mishandles newlines in values, | |
dd184caf | 1774 | ( |
1775 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1776 | eval ac_val=\$$ac_var | |
1777 | case $ac_val in #( | |
1778 | *${as_nl}*) | |
1779 | case $ac_var in #( | |
8d138742 CE |
1780 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1781 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
dd184caf | 1782 | esac |
1783 | case $ac_var in #( | |
1784 | _ | IFS | as_nl) ;; #( | |
8d138742 | 1785 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
dd184caf | 1786 | *) $as_unset $ac_var ;; |
1787 | esac ;; | |
1788 | esac | |
1789 | done | |
d9898ee8 | 1790 | (set) 2>&1 | |
dd184caf | 1791 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1792 | *${as_nl}ac_space=\ *) | |
d9898ee8 | 1793 | sed -n \ |
dd184caf | 1794 | "s/'\''/'\''\\\\'\'''\''/g; |
1795 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1796 | ;; #( | |
d9898ee8 | 1797 | *) |
dd184caf | 1798 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 | 1799 | ;; |
dd184caf | 1800 | esac | |
1801 | sort | |
1802 | ) | |
d9898ee8 | 1803 | echo |
1804 | ||
1805 | cat <<\_ASBOX | |
1806 | ## ----------------- ## | |
1807 | ## Output variables. ## | |
1808 | ## ----------------- ## | |
1809 | _ASBOX | |
1810 | echo | |
1811 | for ac_var in $ac_subst_vars | |
1812 | do | |
dd184caf | 1813 | eval ac_val=\$$ac_var |
1814 | case $ac_val in | |
8d138742 | 1815 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 1816 | esac |
8d138742 | 1817 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 1818 | done | sort |
1819 | echo | |
1820 | ||
1821 | if test -n "$ac_subst_files"; then | |
1822 | cat <<\_ASBOX | |
dd184caf | 1823 | ## ------------------- ## |
1824 | ## File substitutions. ## | |
1825 | ## ------------------- ## | |
d9898ee8 | 1826 | _ASBOX |
1827 | echo | |
1828 | for ac_var in $ac_subst_files | |
1829 | do | |
dd184caf | 1830 | eval ac_val=\$$ac_var |
1831 | case $ac_val in | |
8d138742 | 1832 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 1833 | esac |
8d138742 | 1834 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 1835 | done | sort |
1836 | echo | |
1837 | fi | |
1838 | ||
1839 | if test -s confdefs.h; then | |
1840 | cat <<\_ASBOX | |
1841 | ## ----------- ## | |
1842 | ## confdefs.h. ## | |
1843 | ## ----------- ## | |
1844 | _ASBOX | |
1845 | echo | |
dd184caf | 1846 | cat confdefs.h |
d9898ee8 | 1847 | echo |
1848 | fi | |
1849 | test "$ac_signal" != 0 && | |
8d138742 CE |
1850 | $as_echo "$as_me: caught signal $ac_signal" |
1851 | $as_echo "$as_me: exit $exit_status" | |
d9898ee8 | 1852 | } >&5 |
dd184caf | 1853 | rm -f core *.core core.conftest.* && |
1854 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
d9898ee8 | 1855 | exit $exit_status |
dd184caf | 1856 | ' 0 |
d9898ee8 | 1857 | for ac_signal in 1 2 13 15; do |
1858 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1859 | done | |
1860 | ac_signal=0 | |
1861 | ||
1862 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
dd184caf | 1863 | rm -f -r conftest* confdefs.h |
d9898ee8 | 1864 | |
1865 | # Predefined preprocessor variables. | |
1866 | ||
1867 | cat >>confdefs.h <<_ACEOF | |
1868 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1869 | _ACEOF | |
1870 | ||
1871 | ||
1872 | cat >>confdefs.h <<_ACEOF | |
1873 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1874 | _ACEOF | |
1875 | ||
1876 | ||
1877 | cat >>confdefs.h <<_ACEOF | |
1878 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1879 | _ACEOF | |
1880 | ||
1881 | ||
1882 | cat >>confdefs.h <<_ACEOF | |
1883 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1884 | _ACEOF | |
1885 | ||
1886 | ||
1887 | cat >>confdefs.h <<_ACEOF | |
1888 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1889 | _ACEOF | |
1890 | ||
1891 | ||
1892 | # Let the site file select an alternate cache file if it wants to. | |
8d138742 CE |
1893 | # Prefer an explicitly selected file to automatically selected ones. |
1894 | ac_site_file1=NONE | |
1895 | ac_site_file2=NONE | |
dd184caf | 1896 | if test -n "$CONFIG_SITE"; then |
8d138742 | 1897 | ac_site_file1=$CONFIG_SITE |
dd184caf | 1898 | elif test "x$prefix" != xNONE; then |
8d138742 CE |
1899 | ac_site_file1=$prefix/share/config.site |
1900 | ac_site_file2=$prefix/etc/config.site | |
dd184caf | 1901 | else |
8d138742 CE |
1902 | ac_site_file1=$ac_default_prefix/share/config.site |
1903 | ac_site_file2=$ac_default_prefix/etc/config.site | |
d9898ee8 | 1904 | fi |
8d138742 | 1905 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
dd184caf | 1906 | do |
8d138742 | 1907 | test "x$ac_site_file" = xNONE && continue |
d9898ee8 | 1908 | if test -r "$ac_site_file"; then |
8d138742 CE |
1909 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1910 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
d9898ee8 | 1911 | sed 's/^/| /' "$ac_site_file" >&5 |
1912 | . "$ac_site_file" | |
1913 | fi | |
1914 | done | |
1915 | ||
1916 | if test -r "$cache_file"; then | |
1917 | # Some versions of bash will fail to source /dev/null (special | |
1918 | # files actually), so we avoid doing that. | |
1919 | if test -f "$cache_file"; then | |
8d138742 CE |
1920 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1921 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
d9898ee8 | 1922 | case $cache_file in |
dd184caf | 1923 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1924 | *) . "./$cache_file";; | |
d9898ee8 | 1925 | esac |
1926 | fi | |
1927 | else | |
8d138742 CE |
1928 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1929 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
d9898ee8 | 1930 | >$cache_file |
1931 | fi | |
1932 | ||
1933 | # Check that the precious variables saved in the cache have kept the same | |
1934 | # value. | |
1935 | ac_cache_corrupted=false | |
dd184caf | 1936 | for ac_var in $ac_precious_vars; do |
d9898ee8 | 1937 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1938 | eval ac_new_set=\$ac_env_${ac_var}_set | |
dd184caf | 1939 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1940 | eval ac_new_val=\$ac_env_${ac_var}_value | |
d9898ee8 | 1941 | case $ac_old_set,$ac_new_set in |
1942 | set,) | |
8d138742 CE |
1943 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1944 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
d9898ee8 | 1945 | ac_cache_corrupted=: ;; |
1946 | ,set) | |
8d138742 CE |
1947 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1948 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
d9898ee8 | 1949 | ac_cache_corrupted=: ;; |
1950 | ,);; | |
1951 | *) | |
1952 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8d138742 CE |
1953 | # differences in whitespace do not lead to failure. |
1954 | ac_old_val_w=`echo x $ac_old_val` | |
1955 | ac_new_val_w=`echo x $ac_new_val` | |
1956 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1957 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1958 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1959 | ac_cache_corrupted=: | |
1960 | else | |
1961 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1962 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1963 | eval $ac_var=\$ac_old_val | |
1964 | fi | |
1965 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1966 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1967 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1968 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
d9898ee8 | 1969 | fi;; |
1970 | esac | |
1971 | # Pass precious variables to config.status. | |
1972 | if test "$ac_new_set" = set; then | |
1973 | case $ac_new_val in | |
8d138742 | 1974 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 1975 | *) ac_arg=$ac_var=$ac_new_val ;; |
1976 | esac | |
1977 | case " $ac_configure_args " in | |
1978 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1979 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1980 | esac | |
1981 | fi | |
1982 | done | |
1983 | if $ac_cache_corrupted; then | |
8d138742 CE |
1984 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1985 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1986 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1987 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1988 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1989 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
d9898ee8 | 1990 | { (exit 1); exit 1; }; } |
1991 | fi | |
1992 | ||
d9898ee8 | 1993 | |
1994 | ||
1995 | ||
1996 | ||
1997 | ||
1998 | ||
1999 | ||
2000 | ||
2001 | ||
2002 | ||
2003 | ||
2004 | ||
2005 | ||
2006 | ||
2007 | ||
2008 | ||
2009 | ||
2010 | ||
2011 | ||
2012 | ||
2013 | ||
2014 | ||
2015 | ||
2016 | ||
dd184caf | 2017 | ac_ext=c |
2018 | ac_cpp='$CPP $CPPFLAGS' | |
2019 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2020 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2021 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 2022 | |
2023 | ||
2024 | ||
2025 | >confdefs.h # Kill PACKAGE_ macros. | |
2026 | LPATH="$PATH:/usr/local/bin" | |
2027 | ||
8d138742 | 2028 | am__api_version='1.11' |
dd184caf | 2029 | |
d9898ee8 | 2030 | ac_aux_dir= |
dd184caf | 2031 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2032 | if test -f "$ac_dir/install-sh"; then | |
d9898ee8 | 2033 | ac_aux_dir=$ac_dir |
2034 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2035 | break | |
dd184caf | 2036 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 | 2037 | ac_aux_dir=$ac_dir |
2038 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2039 | break | |
dd184caf | 2040 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 | 2041 | ac_aux_dir=$ac_dir |
2042 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2043 | break | |
2044 | fi | |
2045 | done | |
2046 | if test -z "$ac_aux_dir"; then | |
8d138742 CE |
2047 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
2048 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
d9898ee8 | 2049 | { (exit 1); exit 1; }; } |
2050 | fi | |
dd184caf | 2051 | |
2052 | # These three variables are undocumented and unsupported, | |
2053 | # and are intended to be withdrawn in a future Autoconf release. | |
2054 | # They can cause serious problems if a builder's source tree is in a directory | |
2055 | # whose full name contains unusual characters. | |
2056 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2057 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2058 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2059 | ||
d9898ee8 | 2060 | |
2061 | # Find a good install program. We prefer a C program (faster), | |
2062 | # so one script is as good as another. But avoid the broken or | |
2063 | # incompatible versions: | |
2064 | # SysV /etc/install, /usr/sbin/install | |
2065 | # SunOS /usr/etc/install | |
2066 | # IRIX /sbin/install | |
2067 | # AIX /bin/install | |
2068 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2069 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2070 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2071 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2072 | # OS/2's system install, which has a completely different semantic | |
2073 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 CE |
2074 | # Reject install programs that cannot install multiple files. |
2075 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2076 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d9898ee8 | 2077 | if test -z "$INSTALL"; then |
2078 | if test "${ac_cv_path_install+set}" = set; then | |
8d138742 | 2079 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2080 | else |
2081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2082 | for as_dir in $PATH | |
2083 | do | |
2084 | IFS=$as_save_IFS | |
2085 | test -z "$as_dir" && as_dir=. | |
2086 | # Account for people who put trailing slashes in PATH elements. | |
2087 | case $as_dir/ in | |
2088 | ./ | .// | /cC/* | \ | |
2089 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2090 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2091 | /usr/ucb/* ) ;; | |
2092 | *) | |
2093 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2094 | # Don't use installbsd from OSF since it installs stuff as root | |
2095 | # by default. | |
2096 | for ac_prog in ginstall scoinst install; do | |
2097 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2098 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 | 2099 | if test $ac_prog = install && |
2100 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2101 | # AIX install. It has an incompatible calling convention. | |
2102 | : | |
2103 | elif test $ac_prog = install && | |
2104 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2105 | # program-specific install script used by HP pwplus--don't use. | |
2106 | : | |
2107 | else | |
8d138742 CE |
2108 | rm -rf conftest.one conftest.two conftest.dir |
2109 | echo one > conftest.one | |
2110 | echo two > conftest.two | |
2111 | mkdir conftest.dir | |
2112 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2113 | test -s conftest.one && test -s conftest.two && | |
2114 | test -s conftest.dir/conftest.one && | |
2115 | test -s conftest.dir/conftest.two | |
2116 | then | |
2117 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2118 | break 3 | |
2119 | fi | |
d9898ee8 | 2120 | fi |
2121 | fi | |
2122 | done | |
2123 | done | |
2124 | ;; | |
2125 | esac | |
8d138742 | 2126 | |
d9898ee8 | 2127 | done |
dd184caf | 2128 | IFS=$as_save_IFS |
d9898ee8 | 2129 | |
8d138742 | 2130 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 2131 | |
2132 | fi | |
2133 | if test "${ac_cv_path_install+set}" = set; then | |
2134 | INSTALL=$ac_cv_path_install | |
2135 | else | |
dd184caf | 2136 | # As a last resort, use the slow shell script. Don't cache a |
2137 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 2138 | # break other packages using the cache if that directory is |
dd184caf | 2139 | # removed, or if the value is a relative name. |
d9898ee8 | 2140 | INSTALL=$ac_install_sh |
2141 | fi | |
2142 | fi | |
8d138742 CE |
2143 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2144 | $as_echo "$INSTALL" >&6; } | |
d9898ee8 | 2145 | |
2146 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2147 | # It thinks the first close brace ends the variable substitution. | |
2148 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2149 | ||
2150 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2151 | ||
2152 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2153 | ||
8d138742 CE |
2154 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2155 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
d9898ee8 | 2156 | # Just in case |
2157 | sleep 1 | |
2158 | echo timestamp > conftest.file | |
8d138742 CE |
2159 | # Reject unsafe characters in $srcdir or the absolute working directory |
2160 | # name. Accept space and tab only in the latter. | |
2161 | am_lf=' | |
2162 | ' | |
2163 | case `pwd` in | |
2164 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2165 | { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 | |
2166 | $as_echo "$as_me: error: unsafe absolute working directory name" >&2;} | |
2167 | { (exit 1); exit 1; }; };; | |
2168 | esac | |
2169 | case $srcdir in | |
2170 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2171 | { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 | |
2172 | $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} | |
2173 | { (exit 1); exit 1; }; };; | |
2174 | esac | |
2175 | ||
d9898ee8 | 2176 | # Do `set' in a subshell so we don't clobber the current shell's |
2177 | # arguments. Must try -L first in case configure is actually a | |
2178 | # symlink; some systems play weird games with the mod time of symlinks | |
2179 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2180 | # directory). | |
2181 | if ( | |
8d138742 | 2182 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
d9898ee8 | 2183 | if test "$*" = "X"; then |
2184 | # -L didn't work. | |
8d138742 | 2185 | set X `ls -t "$srcdir/configure" conftest.file` |
d9898ee8 | 2186 | fi |
2187 | rm -f conftest.file | |
2188 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2189 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2190 | ||
2191 | # If neither matched, then we have a broken ls. This can happen | |
2192 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2193 | # broken ls alias from the environment. This has actually | |
2194 | # happened. Such a system could not be considered "sane". | |
8d138742 | 2195 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
d9898ee8 | 2196 | alias in your environment" >&5 |
8d138742 | 2197 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
d9898ee8 | 2198 | alias in your environment" >&2;} |
2199 | { (exit 1); exit 1; }; } | |
2200 | fi | |
2201 | ||
2202 | test "$2" = conftest.file | |
2203 | ) | |
2204 | then | |
2205 | # Ok. | |
2206 | : | |
2207 | else | |
8d138742 | 2208 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
d9898ee8 | 2209 | Check your system clock" >&5 |
8d138742 | 2210 | $as_echo "$as_me: error: newly created file is older than distributed files! |
d9898ee8 | 2211 | Check your system clock" >&2;} |
2212 | { (exit 1); exit 1; }; } | |
2213 | fi | |
8d138742 CE |
2214 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2215 | $as_echo "yes" >&6; } | |
d9898ee8 | 2216 | test "$program_prefix" != NONE && |
dd184caf | 2217 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 | 2218 | # Use a double $ so make ignores it. |
2219 | test "$program_suffix" != NONE && | |
dd184caf | 2220 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
8d138742 | 2221 | # Double any \ or $. |
d9898ee8 | 2222 | # By default was `s,x,x', remove it if useless. |
8d138742 CE |
2223 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2224 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
d9898ee8 | 2225 | |
2226 | # expand $ac_aux_dir to an absolute path | |
2227 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2228 | ||
8d138742 CE |
2229 | if test x"${MISSING+set}" != xset; then |
2230 | case $am_aux_dir in | |
2231 | *\ * | *\ *) | |
2232 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2233 | *) | |
2234 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2235 | esac | |
2236 | fi | |
d9898ee8 | 2237 | # Use eval to expand $SHELL |
2238 | if eval "$MISSING --run true"; then | |
2239 | am_missing_run="$MISSING --run " | |
2240 | else | |
2241 | am_missing_run= | |
8d138742 CE |
2242 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2243 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2244 | fi | |
2245 | ||
2246 | if test x"${install_sh}" != xset; then | |
2247 | case $am_aux_dir in | |
2248 | *\ * | *\ *) | |
2249 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2250 | *) | |
2251 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2252 | esac | |
2253 | fi | |
2254 | ||
2255 | # Installed binaries are usually stripped using `strip' when the user | |
2256 | # run `make install-strip'. However `strip' might not be the right | |
2257 | # tool to use in cross-compilation environments, therefore Automake | |
2258 | # will honor the `STRIP' environment variable to overrule this program. | |
2259 | if test "$cross_compiling" != no; then | |
2260 | if test -n "$ac_tool_prefix"; then | |
2261 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2262 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2263 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2264 | $as_echo_n "checking for $ac_word... " >&6; } | |
2265 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2266 | $as_echo_n "(cached) " >&6 | |
2267 | else | |
2268 | if test -n "$STRIP"; then | |
2269 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2270 | else | |
2271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2272 | for as_dir in $PATH | |
2273 | do | |
2274 | IFS=$as_save_IFS | |
2275 | test -z "$as_dir" && as_dir=. | |
2276 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2277 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2278 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2279 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2280 | break 2 | |
2281 | fi | |
2282 | done | |
2283 | done | |
2284 | IFS=$as_save_IFS | |
2285 | ||
2286 | fi | |
2287 | fi | |
2288 | STRIP=$ac_cv_prog_STRIP | |
2289 | if test -n "$STRIP"; then | |
2290 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2291 | $as_echo "$STRIP" >&6; } | |
2292 | else | |
2293 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2294 | $as_echo "no" >&6; } | |
d9898ee8 | 2295 | fi |
2296 | ||
8d138742 CE |
2297 | |
2298 | fi | |
2299 | if test -z "$ac_cv_prog_STRIP"; then | |
2300 | ac_ct_STRIP=$STRIP | |
2301 | # Extract the first word of "strip", so it can be a program name with args. | |
2302 | set dummy strip; ac_word=$2 | |
2303 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2304 | $as_echo_n "checking for $ac_word... " >&6; } | |
2305 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2306 | $as_echo_n "(cached) " >&6 | |
2307 | else | |
2308 | if test -n "$ac_ct_STRIP"; then | |
2309 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2310 | else | |
2311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2312 | for as_dir in $PATH | |
2313 | do | |
2314 | IFS=$as_save_IFS | |
2315 | test -z "$as_dir" && as_dir=. | |
2316 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2317 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2318 | ac_cv_prog_ac_ct_STRIP="strip" | |
2319 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2320 | break 2 | |
2321 | fi | |
2322 | done | |
2323 | done | |
2324 | IFS=$as_save_IFS | |
2325 | ||
2326 | fi | |
2327 | fi | |
2328 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2329 | if test -n "$ac_ct_STRIP"; then | |
2330 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2331 | $as_echo "$ac_ct_STRIP" >&6; } | |
2332 | else | |
2333 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2334 | $as_echo "no" >&6; } | |
2335 | fi | |
2336 | ||
2337 | if test "x$ac_ct_STRIP" = x; then | |
2338 | STRIP=":" | |
2339 | else | |
2340 | case $cross_compiling:$ac_tool_warned in | |
2341 | yes:) | |
2342 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2343 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2344 | ac_tool_warned=yes ;; | |
2345 | esac | |
2346 | STRIP=$ac_ct_STRIP | |
2347 | fi | |
2348 | else | |
2349 | STRIP="$ac_cv_prog_STRIP" | |
2350 | fi | |
2351 | ||
2352 | fi | |
2353 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2354 | ||
2355 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 | |
2356 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
dd184caf | 2357 | if test -z "$MKDIR_P"; then |
2358 | if test "${ac_cv_path_mkdir+set}" = set; then | |
8d138742 | 2359 | $as_echo_n "(cached) " >&6 |
dd184caf | 2360 | else |
2361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2362 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2363 | do | |
2364 | IFS=$as_save_IFS | |
2365 | test -z "$as_dir" && as_dir=. | |
2366 | for ac_prog in mkdir gmkdir; do | |
2367 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2368 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2369 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2370 | 'mkdir (GNU coreutils) '* | \ | |
2371 | 'mkdir (coreutils) '* | \ | |
2372 | 'mkdir (fileutils) '4.1*) | |
2373 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2374 | break 3;; | |
2375 | esac | |
2376 | done | |
2377 | done | |
2378 | done | |
2379 | IFS=$as_save_IFS | |
2380 | ||
2381 | fi | |
2382 | ||
2383 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2384 | MKDIR_P="$ac_cv_path_mkdir -p" | |
d9898ee8 | 2385 | else |
dd184caf | 2386 | # As a last resort, use the slow shell script. Don't cache a |
2387 | # value for MKDIR_P within a source directory, because that will | |
2388 | # break other packages using the cache if that directory is | |
2389 | # removed, or if the value is a relative name. | |
2390 | test -d ./--version && rmdir ./--version | |
2391 | MKDIR_P="$ac_install_sh -d" | |
d9898ee8 | 2392 | fi |
2393 | fi | |
8d138742 CE |
2394 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2395 | $as_echo "$MKDIR_P" >&6; } | |
dd184caf | 2396 | |
2397 | mkdir_p="$MKDIR_P" | |
2398 | case $mkdir_p in | |
2399 | [\\/$]* | ?:[\\/]*) ;; | |
2400 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2401 | esac | |
d9898ee8 | 2402 | |
2403 | for ac_prog in gawk mawk nawk awk | |
2404 | do | |
2405 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2406 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
2407 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2408 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2409 | if test "${ac_cv_prog_AWK+set}" = set; then |
8d138742 | 2410 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2411 | else |
2412 | if test -n "$AWK"; then | |
2413 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2414 | else | |
2415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2416 | for as_dir in $PATH | |
2417 | do | |
2418 | IFS=$as_save_IFS | |
2419 | test -z "$as_dir" && as_dir=. | |
2420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2421 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2422 | ac_cv_prog_AWK="$ac_prog" |
8d138742 | 2423 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2424 | break 2 |
2425 | fi | |
2426 | done | |
2427 | done | |
dd184caf | 2428 | IFS=$as_save_IFS |
d9898ee8 | 2429 | |
2430 | fi | |
2431 | fi | |
2432 | AWK=$ac_cv_prog_AWK | |
2433 | if test -n "$AWK"; then | |
8d138742 CE |
2434 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2435 | $as_echo "$AWK" >&6; } | |
d9898ee8 | 2436 | else |
8d138742 CE |
2437 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2438 | $as_echo "no" >&6; } | |
d9898ee8 | 2439 | fi |
2440 | ||
dd184caf | 2441 | |
d9898ee8 | 2442 | test -n "$AWK" && break |
2443 | done | |
2444 | ||
8d138742 CE |
2445 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2446 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2447 | set x ${MAKE-make} | |
2448 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
dd184caf | 2449 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 2450 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2451 | else |
2452 | cat >conftest.make <<\_ACEOF | |
dd184caf | 2453 | SHELL = /bin/sh |
d9898ee8 | 2454 | all: |
dd184caf | 2455 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 | 2456 | _ACEOF |
2457 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
dd184caf | 2458 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2459 | *@@@%%%=?*=@@@%%%*) | |
2460 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2461 | *) | |
2462 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2463 | esac | |
d9898ee8 | 2464 | rm -f conftest.make |
2465 | fi | |
dd184caf | 2466 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
8d138742 CE |
2467 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2468 | $as_echo "yes" >&6; } | |
d9898ee8 | 2469 | SET_MAKE= |
2470 | else | |
8d138742 CE |
2471 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2472 | $as_echo "no" >&6; } | |
d9898ee8 | 2473 | SET_MAKE="MAKE=${MAKE-make}" |
2474 | fi | |
2475 | ||
2476 | rm -rf .tst 2>/dev/null | |
2477 | mkdir .tst 2>/dev/null | |
2478 | if test -d .tst; then | |
2479 | am__leading_dot=. | |
2480 | else | |
2481 | am__leading_dot=_ | |
2482 | fi | |
2483 | rmdir .tst 2>/dev/null | |
2484 | ||
dd184caf | 2485 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2486 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2487 | # is not polluted with repeated "-I." | |
2488 | am__isrc=' -I$(srcdir)' | |
2489 | # test to see if srcdir already configured | |
2490 | if test -f $srcdir/config.status; then | |
8d138742 CE |
2491 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2492 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
d9898ee8 | 2493 | { (exit 1); exit 1; }; } |
dd184caf | 2494 | fi |
d9898ee8 | 2495 | fi |
2496 | ||
2497 | # test whether we have cygpath | |
2498 | if test -z "$CYGPATH_W"; then | |
2499 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2500 | CYGPATH_W='cygpath -w' | |
2501 | else | |
2502 | CYGPATH_W=echo | |
2503 | fi | |
2504 | fi | |
2505 | ||
2506 | ||
2507 | # Define the identity of the package. | |
2508 | PACKAGE='courierlogger' | |
2509 | VERSION='0.10' | |
2510 | ||
2511 | ||
2512 | # Some tools Automake needs. | |
2513 | ||
2514 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2515 | ||
2516 | ||
2517 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2518 | ||
2519 | ||
2520 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2521 | ||
2522 | ||
2523 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2524 | ||
2525 | ||
2526 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2527 | ||
d9898ee8 | 2528 | # We need awk for the "check" target. The system "awk" is bad on |
2529 | # some platforms. | |
2530 | # Always define AMTAR for backward compatibility. | |
2531 | ||
2532 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2533 | ||
2534 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2535 | ||
2536 | ||
2537 | ||
2538 | ||
2539 | ||
dd184caf | 2540 | ac_config_headers="$ac_config_headers config.h" |
d9898ee8 | 2541 | |
2542 | ||
2543 | ac_ext=c | |
2544 | ac_cpp='$CPP $CPPFLAGS' | |
2545 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2546 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2547 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2548 | if test -n "$ac_tool_prefix"; then | |
2549 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2550 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
8d138742 CE |
2551 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2552 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2553 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2554 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2555 | else |
2556 | if test -n "$CC"; then | |
2557 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2558 | else | |
2559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2560 | for as_dir in $PATH | |
2561 | do | |
2562 | IFS=$as_save_IFS | |
2563 | test -z "$as_dir" && as_dir=. | |
2564 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2565 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2566 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
8d138742 | 2567 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2568 | break 2 |
2569 | fi | |
2570 | done | |
2571 | done | |
dd184caf | 2572 | IFS=$as_save_IFS |
d9898ee8 | 2573 | |
2574 | fi | |
2575 | fi | |
2576 | CC=$ac_cv_prog_CC | |
2577 | if test -n "$CC"; then | |
8d138742 CE |
2578 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2579 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2580 | else |
8d138742 CE |
2581 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2582 | $as_echo "no" >&6; } | |
d9898ee8 | 2583 | fi |
2584 | ||
dd184caf | 2585 | |
d9898ee8 | 2586 | fi |
2587 | if test -z "$ac_cv_prog_CC"; then | |
2588 | ac_ct_CC=$CC | |
2589 | # Extract the first word of "gcc", so it can be a program name with args. | |
2590 | set dummy gcc; ac_word=$2 | |
8d138742 CE |
2591 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2592 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2593 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
8d138742 | 2594 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2595 | else |
2596 | if test -n "$ac_ct_CC"; then | |
2597 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2598 | else | |
2599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2600 | for as_dir in $PATH | |
2601 | do | |
2602 | IFS=$as_save_IFS | |
2603 | test -z "$as_dir" && as_dir=. | |
2604 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2605 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2606 | ac_cv_prog_ac_ct_CC="gcc" |
8d138742 | 2607 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2608 | break 2 |
2609 | fi | |
2610 | done | |
2611 | done | |
dd184caf | 2612 | IFS=$as_save_IFS |
d9898ee8 | 2613 | |
2614 | fi | |
2615 | fi | |
2616 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2617 | if test -n "$ac_ct_CC"; then | |
8d138742 CE |
2618 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2619 | $as_echo "$ac_ct_CC" >&6; } | |
d9898ee8 | 2620 | else |
8d138742 CE |
2621 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2622 | $as_echo "no" >&6; } | |
d9898ee8 | 2623 | fi |
2624 | ||
dd184caf | 2625 | if test "x$ac_ct_CC" = x; then |
2626 | CC="" | |
2627 | else | |
2628 | case $cross_compiling:$ac_tool_warned in | |
2629 | yes:) | |
8d138742 CE |
2630 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2631 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 2632 | ac_tool_warned=yes ;; |
2633 | esac | |
2634 | CC=$ac_ct_CC | |
2635 | fi | |
d9898ee8 | 2636 | else |
2637 | CC="$ac_cv_prog_CC" | |
2638 | fi | |
2639 | ||
2640 | if test -z "$CC"; then | |
dd184caf | 2641 | if test -n "$ac_tool_prefix"; then |
2642 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d9898ee8 | 2643 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
8d138742 CE |
2644 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2645 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2646 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2647 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2648 | else |
2649 | if test -n "$CC"; then | |
2650 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2651 | else | |
2652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2653 | for as_dir in $PATH | |
2654 | do | |
2655 | IFS=$as_save_IFS | |
2656 | test -z "$as_dir" && as_dir=. | |
2657 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2658 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2659 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
8d138742 | 2660 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2661 | break 2 |
2662 | fi | |
2663 | done | |
2664 | done | |
dd184caf | 2665 | IFS=$as_save_IFS |
d9898ee8 | 2666 | |
2667 | fi | |
2668 | fi | |
2669 | CC=$ac_cv_prog_CC | |
2670 | if test -n "$CC"; then | |
8d138742 CE |
2671 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2672 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2673 | else |
8d138742 CE |
2674 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2675 | $as_echo "no" >&6; } | |
d9898ee8 | 2676 | fi |
2677 | ||
d9898ee8 | 2678 | |
dd184caf | 2679 | fi |
d9898ee8 | 2680 | fi |
2681 | if test -z "$CC"; then | |
2682 | # Extract the first word of "cc", so it can be a program name with args. | |
2683 | set dummy cc; ac_word=$2 | |
8d138742 CE |
2684 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2685 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2686 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2687 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2688 | else |
2689 | if test -n "$CC"; then | |
2690 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2691 | else | |
2692 | ac_prog_rejected=no | |
2693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2694 | for as_dir in $PATH | |
2695 | do | |
2696 | IFS=$as_save_IFS | |
2697 | test -z "$as_dir" && as_dir=. | |
2698 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2699 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2700 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2701 | ac_prog_rejected=yes | |
2702 | continue | |
2703 | fi | |
2704 | ac_cv_prog_CC="cc" | |
8d138742 | 2705 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2706 | break 2 |
2707 | fi | |
2708 | done | |
2709 | done | |
dd184caf | 2710 | IFS=$as_save_IFS |
d9898ee8 | 2711 | |
2712 | if test $ac_prog_rejected = yes; then | |
2713 | # We found a bogon in the path, so make sure we never use it. | |
2714 | set dummy $ac_cv_prog_CC | |
2715 | shift | |
2716 | if test $# != 0; then | |
2717 | # We chose a different compiler from the bogus one. | |
2718 | # However, it has the same basename, so the bogon will be chosen | |
2719 | # first if we set CC to just the basename; use the full file name. | |
2720 | shift | |
2721 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2722 | fi | |
2723 | fi | |
2724 | fi | |
2725 | fi | |
2726 | CC=$ac_cv_prog_CC | |
2727 | if test -n "$CC"; then | |
8d138742 CE |
2728 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2729 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2730 | else |
8d138742 CE |
2731 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2732 | $as_echo "no" >&6; } | |
d9898ee8 | 2733 | fi |
2734 | ||
dd184caf | 2735 | |
d9898ee8 | 2736 | fi |
2737 | if test -z "$CC"; then | |
2738 | if test -n "$ac_tool_prefix"; then | |
dd184caf | 2739 | for ac_prog in cl.exe |
d9898ee8 | 2740 | do |
2741 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2742 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
8d138742 CE |
2743 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2744 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2745 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2746 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2747 | else |
2748 | if test -n "$CC"; then | |
2749 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2750 | else | |
2751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2752 | for as_dir in $PATH | |
2753 | do | |
2754 | IFS=$as_save_IFS | |
2755 | test -z "$as_dir" && as_dir=. | |
2756 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2757 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2758 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
8d138742 | 2759 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2760 | break 2 |
2761 | fi | |
2762 | done | |
2763 | done | |
dd184caf | 2764 | IFS=$as_save_IFS |
d9898ee8 | 2765 | |
2766 | fi | |
2767 | fi | |
2768 | CC=$ac_cv_prog_CC | |
2769 | if test -n "$CC"; then | |
8d138742 CE |
2770 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2771 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2772 | else |
8d138742 CE |
2773 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2774 | $as_echo "no" >&6; } | |
d9898ee8 | 2775 | fi |
2776 | ||
dd184caf | 2777 | |
d9898ee8 | 2778 | test -n "$CC" && break |
2779 | done | |
2780 | fi | |
2781 | if test -z "$CC"; then | |
2782 | ac_ct_CC=$CC | |
dd184caf | 2783 | for ac_prog in cl.exe |
d9898ee8 | 2784 | do |
2785 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2786 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
2787 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2788 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2789 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
8d138742 | 2790 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2791 | else |
2792 | if test -n "$ac_ct_CC"; then | |
2793 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2794 | else | |
2795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2796 | for as_dir in $PATH | |
2797 | do | |
2798 | IFS=$as_save_IFS | |
2799 | test -z "$as_dir" && as_dir=. | |
2800 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2801 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2802 | ac_cv_prog_ac_ct_CC="$ac_prog" |
8d138742 | 2803 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2804 | break 2 |
2805 | fi | |
2806 | done | |
2807 | done | |
dd184caf | 2808 | IFS=$as_save_IFS |
d9898ee8 | 2809 | |
2810 | fi | |
2811 | fi | |
2812 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2813 | if test -n "$ac_ct_CC"; then | |
8d138742 CE |
2814 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2815 | $as_echo "$ac_ct_CC" >&6; } | |
d9898ee8 | 2816 | else |
8d138742 CE |
2817 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2818 | $as_echo "no" >&6; } | |
d9898ee8 | 2819 | fi |
2820 | ||
dd184caf | 2821 | |
d9898ee8 | 2822 | test -n "$ac_ct_CC" && break |
2823 | done | |
2824 | ||
dd184caf | 2825 | if test "x$ac_ct_CC" = x; then |
2826 | CC="" | |
2827 | else | |
2828 | case $cross_compiling:$ac_tool_warned in | |
2829 | yes:) | |
8d138742 CE |
2830 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2831 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 2832 | ac_tool_warned=yes ;; |
2833 | esac | |
2834 | CC=$ac_ct_CC | |
2835 | fi | |
d9898ee8 | 2836 | fi |
2837 | ||
2838 | fi | |
2839 | ||
2840 | ||
8d138742 CE |
2841 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2842 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2843 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
d9898ee8 | 2844 | See \`config.log' for more details." >&5 |
8d138742 | 2845 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
d9898ee8 | 2846 | See \`config.log' for more details." >&2;} |
8d138742 | 2847 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 2848 | |
2849 | # Provide some information about the compiler. | |
8d138742 CE |
2850 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2851 | set X $ac_compile | |
2852 | ac_compiler=$2 | |
dd184caf | 2853 | { (ac_try="$ac_compiler --version >&5" |
2854 | case "(($ac_try" in | |
2855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2856 | *) ac_try_echo=$ac_try;; | |
2857 | esac | |
8d138742 CE |
2858 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2859 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 2860 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 | 2861 | ac_status=$? |
8d138742 | 2862 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 2863 | (exit $ac_status); } |
dd184caf | 2864 | { (ac_try="$ac_compiler -v >&5" |
2865 | case "(($ac_try" in | |
2866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2867 | *) ac_try_echo=$ac_try;; | |
2868 | esac | |
8d138742 CE |
2869 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2870 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 2871 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 | 2872 | ac_status=$? |
8d138742 | 2873 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 2874 | (exit $ac_status); } |
dd184caf | 2875 | { (ac_try="$ac_compiler -V >&5" |
2876 | case "(($ac_try" in | |
2877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2878 | *) ac_try_echo=$ac_try;; | |
2879 | esac | |
8d138742 CE |
2880 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2881 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 2882 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 | 2883 | ac_status=$? |
8d138742 | 2884 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 2885 | (exit $ac_status); } |
2886 | ||
2887 | cat >conftest.$ac_ext <<_ACEOF | |
2888 | /* confdefs.h. */ | |
2889 | _ACEOF | |
2890 | cat confdefs.h >>conftest.$ac_ext | |
2891 | cat >>conftest.$ac_ext <<_ACEOF | |
2892 | /* end confdefs.h. */ | |
2893 | ||
2894 | int | |
2895 | main () | |
2896 | { | |
2897 | ||
2898 | ; | |
2899 | return 0; | |
2900 | } | |
2901 | _ACEOF | |
2902 | ac_clean_files_save=$ac_clean_files | |
8d138742 | 2903 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
d9898ee8 | 2904 | # Try to create an executable without -o first, disregard a.out. |
2905 | # It will help us diagnose broken compilers, and finding out an intuition | |
2906 | # of exeext. | |
8d138742 CE |
2907 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2908 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2909 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2910 | ||
2911 | # The possible output files: | |
2912 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2913 | ||
dd184caf | 2914 | ac_rmfiles= |
2915 | for ac_file in $ac_files | |
2916 | do | |
2917 | case $ac_file in | |
8d138742 | 2918 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
dd184caf | 2919 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2920 | esac | |
2921 | done | |
2922 | rm -f $ac_rmfiles | |
2923 | ||
2924 | if { (ac_try="$ac_link_default" | |
2925 | case "(($ac_try" in | |
2926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2927 | *) ac_try_echo=$ac_try;; | |
2928 | esac | |
8d138742 CE |
2929 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2930 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 2931 | (eval "$ac_link_default") 2>&5 |
d9898ee8 | 2932 | ac_status=$? |
8d138742 | 2933 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 2934 | (exit $ac_status); }; then |
dd184caf | 2935 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2936 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2937 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2938 | # so that the user can short-circuit this test for compilers unknown to | |
2939 | # Autoconf. | |
2940 | for ac_file in $ac_files '' | |
d9898ee8 | 2941 | do |
2942 | test -f "$ac_file" || continue | |
2943 | case $ac_file in | |
8d138742 | 2944 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
d9898ee8 | 2945 | ;; |
2946 | [ab].out ) | |
2947 | # We found the default executable, but exeext='' is most | |
2948 | # certainly right. | |
2949 | break;; | |
2950 | *.* ) | |
dd184caf | 2951 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2952 | then :; else | |
2953 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2954 | fi | |
2955 | # We set ac_cv_exeext here because the later test for it is not | |
2956 | # safe: cross compilers may not add the suffix if given an `-o' | |
2957 | # argument, so we may need to know it at that point already. | |
2958 | # Even if this section looks crufty: it has the advantage of | |
2959 | # actually working. | |
d9898ee8 | 2960 | break;; |
2961 | * ) | |
2962 | break;; | |
2963 | esac | |
2964 | done | |
dd184caf | 2965 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2966 | ||
d9898ee8 | 2967 | else |
dd184caf | 2968 | ac_file='' |
2969 | fi | |
2970 | ||
8d138742 CE |
2971 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2972 | $as_echo "$ac_file" >&6; } | |
dd184caf | 2973 | if test -z "$ac_file"; then |
8d138742 | 2974 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 2975 | sed 's/^/| /' conftest.$ac_ext >&5 |
2976 | ||
8d138742 CE |
2977 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2978 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2979 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
d9898ee8 | 2980 | See \`config.log' for more details." >&5 |
8d138742 | 2981 | $as_echo "$as_me: error: C compiler cannot create executables |
d9898ee8 | 2982 | See \`config.log' for more details." >&2;} |
8d138742 | 2983 | { (exit 77); exit 77; }; }; } |
d9898ee8 | 2984 | fi |
2985 | ||
2986 | ac_exeext=$ac_cv_exeext | |
d9898ee8 | 2987 | |
dd184caf | 2988 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 | 2989 | # the compiler is broken, or we cross compile. |
8d138742 CE |
2990 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2991 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
d9898ee8 | 2992 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2993 | # If not cross compiling, check that we can run a simple program. | |
2994 | if test "$cross_compiling" != yes; then | |
2995 | if { ac_try='./$ac_file' | |
dd184caf | 2996 | { (case "(($ac_try" in |
2997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2998 | *) ac_try_echo=$ac_try;; | |
2999 | esac | |
8d138742 CE |
3000 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3001 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3002 | (eval "$ac_try") 2>&5 |
d9898ee8 | 3003 | ac_status=$? |
8d138742 | 3004 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3005 | (exit $ac_status); }; }; then |
3006 | cross_compiling=no | |
3007 | else | |
3008 | if test "$cross_compiling" = maybe; then | |
3009 | cross_compiling=yes | |
3010 | else | |
8d138742 CE |
3011 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3012 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3013 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
d9898ee8 | 3014 | If you meant to cross compile, use \`--host'. |
3015 | See \`config.log' for more details." >&5 | |
8d138742 | 3016 | $as_echo "$as_me: error: cannot run C compiled programs. |
d9898ee8 | 3017 | If you meant to cross compile, use \`--host'. |
3018 | See \`config.log' for more details." >&2;} | |
8d138742 | 3019 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3020 | fi |
3021 | fi | |
3022 | fi | |
8d138742 CE |
3023 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3024 | $as_echo "yes" >&6; } | |
d9898ee8 | 3025 | |
8d138742 | 3026 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
d9898ee8 | 3027 | ac_clean_files=$ac_clean_files_save |
dd184caf | 3028 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 | 3029 | # the compiler is broken, or we cross compile. |
8d138742 CE |
3030 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3031 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3032 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3033 | $as_echo "$cross_compiling" >&6; } | |
dd184caf | 3034 | |
8d138742 CE |
3035 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3036 | $as_echo_n "checking for suffix of executables... " >&6; } | |
dd184caf | 3037 | if { (ac_try="$ac_link" |
3038 | case "(($ac_try" in | |
3039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3040 | *) ac_try_echo=$ac_try;; | |
3041 | esac | |
8d138742 CE |
3042 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3043 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3044 | (eval "$ac_link") 2>&5 |
d9898ee8 | 3045 | ac_status=$? |
8d138742 | 3046 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3047 | (exit $ac_status); }; then |
3048 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3049 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3050 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3051 | # `rm'. | |
3052 | for ac_file in conftest.exe conftest conftest.*; do | |
3053 | test -f "$ac_file" || continue | |
3054 | case $ac_file in | |
8d138742 | 3055 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
d9898ee8 | 3056 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 | 3057 | break;; |
3058 | * ) break;; | |
3059 | esac | |
3060 | done | |
3061 | else | |
8d138742 CE |
3062 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3063 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3064 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
d9898ee8 | 3065 | See \`config.log' for more details." >&5 |
8d138742 | 3066 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
d9898ee8 | 3067 | See \`config.log' for more details." >&2;} |
8d138742 | 3068 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3069 | fi |
3070 | ||
3071 | rm -f conftest$ac_cv_exeext | |
8d138742 CE |
3072 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3073 | $as_echo "$ac_cv_exeext" >&6; } | |
d9898ee8 | 3074 | |
3075 | rm -f conftest.$ac_ext | |
3076 | EXEEXT=$ac_cv_exeext | |
3077 | ac_exeext=$EXEEXT | |
8d138742 CE |
3078 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3079 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d9898ee8 | 3080 | if test "${ac_cv_objext+set}" = set; then |
8d138742 | 3081 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3082 | else |
3083 | cat >conftest.$ac_ext <<_ACEOF | |
3084 | /* confdefs.h. */ | |
3085 | _ACEOF | |
3086 | cat confdefs.h >>conftest.$ac_ext | |
3087 | cat >>conftest.$ac_ext <<_ACEOF | |
3088 | /* end confdefs.h. */ | |
3089 | ||
3090 | int | |
3091 | main () | |
3092 | { | |
3093 | ||
3094 | ; | |
3095 | return 0; | |
3096 | } | |
3097 | _ACEOF | |
3098 | rm -f conftest.o conftest.obj | |
dd184caf | 3099 | if { (ac_try="$ac_compile" |
3100 | case "(($ac_try" in | |
3101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3102 | *) ac_try_echo=$ac_try;; | |
3103 | esac | |
8d138742 CE |
3104 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3105 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3106 | (eval "$ac_compile") 2>&5 |
d9898ee8 | 3107 | ac_status=$? |
8d138742 | 3108 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3109 | (exit $ac_status); }; then |
dd184caf | 3110 | for ac_file in conftest.o conftest.obj conftest.*; do |
3111 | test -f "$ac_file" || continue; | |
d9898ee8 | 3112 | case $ac_file in |
8d138742 | 3113 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
d9898ee8 | 3114 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3115 | break;; | |
3116 | esac | |
3117 | done | |
3118 | else | |
8d138742 | 3119 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3120 | sed 's/^/| /' conftest.$ac_ext >&5 |
3121 | ||
8d138742 CE |
3122 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3123 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3124 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
d9898ee8 | 3125 | See \`config.log' for more details." >&5 |
8d138742 | 3126 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
d9898ee8 | 3127 | See \`config.log' for more details." >&2;} |
8d138742 | 3128 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3129 | fi |
3130 | ||
3131 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3132 | fi | |
8d138742 CE |
3133 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3134 | $as_echo "$ac_cv_objext" >&6; } | |
d9898ee8 | 3135 | OBJEXT=$ac_cv_objext |
3136 | ac_objext=$OBJEXT | |
8d138742 CE |
3137 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3138 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d9898ee8 | 3139 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
8d138742 | 3140 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3141 | else |
3142 | cat >conftest.$ac_ext <<_ACEOF | |
3143 | /* confdefs.h. */ | |
3144 | _ACEOF | |
3145 | cat confdefs.h >>conftest.$ac_ext | |
3146 | cat >>conftest.$ac_ext <<_ACEOF | |
3147 | /* end confdefs.h. */ | |
3148 | ||
3149 | int | |
3150 | main () | |
3151 | { | |
3152 | #ifndef __GNUC__ | |
3153 | choke me | |
3154 | #endif | |
3155 | ||
3156 | ; | |
3157 | return 0; | |
3158 | } | |
3159 | _ACEOF | |
3160 | rm -f conftest.$ac_objext | |
dd184caf | 3161 | if { (ac_try="$ac_compile" |
3162 | case "(($ac_try" in | |
3163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3164 | *) ac_try_echo=$ac_try;; | |
3165 | esac | |
8d138742 CE |
3166 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3167 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3168 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3169 | ac_status=$? |
3170 | grep -v '^ *+' conftest.er1 >conftest.err | |
3171 | rm -f conftest.er1 | |
3172 | cat conftest.err >&5 | |
8d138742 | 3173 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3174 | (exit $ac_status); } && { |
3175 | test -z "$ac_c_werror_flag" || | |
3176 | test ! -s conftest.err | |
3177 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 3178 | ac_compiler_gnu=yes |
3179 | else | |
8d138742 | 3180 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3181 | sed 's/^/| /' conftest.$ac_ext >&5 |
3182 | ||
dd184caf | 3183 | ac_compiler_gnu=no |
d9898ee8 | 3184 | fi |
dd184caf | 3185 | |
3186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 3187 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3188 | ||
3189 | fi | |
8d138742 CE |
3190 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3191 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3192 | if test $ac_compiler_gnu = yes; then | |
3193 | GCC=yes | |
3194 | else | |
3195 | GCC= | |
3196 | fi | |
d9898ee8 | 3197 | ac_test_CFLAGS=${CFLAGS+set} |
3198 | ac_save_CFLAGS=$CFLAGS | |
8d138742 CE |
3199 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3200 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d9898ee8 | 3201 | if test "${ac_cv_prog_cc_g+set}" = set; then |
8d138742 | 3202 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3203 | else |
dd184caf | 3204 | ac_save_c_werror_flag=$ac_c_werror_flag |
3205 | ac_c_werror_flag=yes | |
3206 | ac_cv_prog_cc_g=no | |
3207 | CFLAGS="-g" | |
3208 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 3209 | /* confdefs.h. */ |
3210 | _ACEOF | |
3211 | cat confdefs.h >>conftest.$ac_ext | |
3212 | cat >>conftest.$ac_ext <<_ACEOF | |
3213 | /* end confdefs.h. */ | |
3214 | ||
3215 | int | |
3216 | main () | |
3217 | { | |
3218 | ||
3219 | ; | |
3220 | return 0; | |
3221 | } | |
3222 | _ACEOF | |
3223 | rm -f conftest.$ac_objext | |
dd184caf | 3224 | if { (ac_try="$ac_compile" |
3225 | case "(($ac_try" in | |
3226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3227 | *) ac_try_echo=$ac_try;; | |
3228 | esac | |
8d138742 CE |
3229 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3230 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3231 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3232 | ac_status=$? |
3233 | grep -v '^ *+' conftest.er1 >conftest.err | |
3234 | rm -f conftest.er1 | |
3235 | cat conftest.err >&5 | |
8d138742 | 3236 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3237 | (exit $ac_status); } && { |
3238 | test -z "$ac_c_werror_flag" || | |
3239 | test ! -s conftest.err | |
3240 | } && test -s conftest.$ac_objext; then | |
3241 | ac_cv_prog_cc_g=yes | |
3242 | else | |
8d138742 | 3243 | $as_echo "$as_me: failed program was:" >&5 |
dd184caf | 3244 | sed 's/^/| /' conftest.$ac_ext >&5 |
3245 | ||
3246 | CFLAGS="" | |
3247 | cat >conftest.$ac_ext <<_ACEOF | |
3248 | /* confdefs.h. */ | |
3249 | _ACEOF | |
3250 | cat confdefs.h >>conftest.$ac_ext | |
3251 | cat >>conftest.$ac_ext <<_ACEOF | |
3252 | /* end confdefs.h. */ | |
3253 | ||
3254 | int | |
3255 | main () | |
3256 | { | |
3257 | ||
3258 | ; | |
3259 | return 0; | |
3260 | } | |
3261 | _ACEOF | |
3262 | rm -f conftest.$ac_objext | |
3263 | if { (ac_try="$ac_compile" | |
3264 | case "(($ac_try" in | |
3265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3266 | *) ac_try_echo=$ac_try;; | |
3267 | esac | |
8d138742 CE |
3268 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3269 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3270 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3271 | ac_status=$? |
dd184caf | 3272 | grep -v '^ *+' conftest.er1 >conftest.err |
3273 | rm -f conftest.er1 | |
3274 | cat conftest.err >&5 | |
8d138742 | 3275 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3276 | (exit $ac_status); } && { |
3277 | test -z "$ac_c_werror_flag" || | |
3278 | test ! -s conftest.err | |
3279 | } && test -s conftest.$ac_objext; then | |
3280 | : | |
3281 | else | |
8d138742 | 3282 | $as_echo "$as_me: failed program was:" >&5 |
dd184caf | 3283 | sed 's/^/| /' conftest.$ac_ext >&5 |
3284 | ||
3285 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3286 | CFLAGS="-g" | |
3287 | cat >conftest.$ac_ext <<_ACEOF | |
3288 | /* confdefs.h. */ | |
3289 | _ACEOF | |
3290 | cat confdefs.h >>conftest.$ac_ext | |
3291 | cat >>conftest.$ac_ext <<_ACEOF | |
3292 | /* end confdefs.h. */ | |
3293 | ||
3294 | int | |
3295 | main () | |
3296 | { | |
3297 | ||
3298 | ; | |
3299 | return 0; | |
3300 | } | |
3301 | _ACEOF | |
3302 | rm -f conftest.$ac_objext | |
3303 | if { (ac_try="$ac_compile" | |
3304 | case "(($ac_try" in | |
3305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3306 | *) ac_try_echo=$ac_try;; | |
3307 | esac | |
8d138742 CE |
3308 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3309 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3310 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3311 | ac_status=$? |
dd184caf | 3312 | grep -v '^ *+' conftest.er1 >conftest.err |
3313 | rm -f conftest.er1 | |
3314 | cat conftest.err >&5 | |
8d138742 | 3315 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3316 | (exit $ac_status); } && { |
3317 | test -z "$ac_c_werror_flag" || | |
3318 | test ! -s conftest.err | |
3319 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 3320 | ac_cv_prog_cc_g=yes |
3321 | else | |
8d138742 | 3322 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3323 | sed 's/^/| /' conftest.$ac_ext >&5 |
3324 | ||
dd184caf | 3325 | |
3326 | fi | |
3327 | ||
3328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3329 | fi | |
3330 | ||
3331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 3332 | fi |
dd184caf | 3333 | |
3334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3335 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d9898ee8 | 3336 | fi |
8d138742 CE |
3337 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3338 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
d9898ee8 | 3339 | if test "$ac_test_CFLAGS" = set; then |
3340 | CFLAGS=$ac_save_CFLAGS | |
3341 | elif test $ac_cv_prog_cc_g = yes; then | |
3342 | if test "$GCC" = yes; then | |
3343 | CFLAGS="-g -O2" | |
3344 | else | |
3345 | CFLAGS="-g" | |
3346 | fi | |
3347 | else | |
3348 | if test "$GCC" = yes; then | |
3349 | CFLAGS="-O2" | |
3350 | else | |
3351 | CFLAGS= | |
3352 | fi | |
3353 | fi | |
8d138742 CE |
3354 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3355 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
dd184caf | 3356 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
8d138742 | 3357 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3358 | else |
dd184caf | 3359 | ac_cv_prog_cc_c89=no |
d9898ee8 | 3360 | ac_save_CC=$CC |
3361 | cat >conftest.$ac_ext <<_ACEOF | |
3362 | /* confdefs.h. */ | |
3363 | _ACEOF | |
3364 | cat confdefs.h >>conftest.$ac_ext | |
3365 | cat >>conftest.$ac_ext <<_ACEOF | |
3366 | /* end confdefs.h. */ | |
3367 | #include <stdarg.h> | |
3368 | #include <stdio.h> | |
3369 | #include <sys/types.h> | |
3370 | #include <sys/stat.h> | |
3371 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3372 | struct buf { int x; }; | |
3373 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3374 | static char *e (p, i) | |
3375 | char **p; | |
3376 | int i; | |
3377 | { | |
3378 | return p[i]; | |
3379 | } | |
3380 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3381 | { | |
3382 | char *s; | |
3383 | va_list v; | |
3384 | va_start (v,p); | |
3385 | s = g (p, va_arg (v,int)); | |
3386 | va_end (v); | |
3387 | return s; | |
3388 | } | |
3389 | ||
3390 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3391 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3392 | These don't provoke an error unfortunately, instead are silently treated | |
dd184caf | 3393 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 | 3394 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3395 | array size at least. It's necessary to write '\x00'==0 to get something | |
dd184caf | 3396 | that's true only with -std. */ |
d9898ee8 | 3397 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3398 | ||
dd184caf | 3399 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3400 | inside strings and character constants. */ | |
3401 | #define FOO(x) 'x' | |
3402 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3403 | ||
d9898ee8 | 3404 | int test (int i, double x); |
3405 | struct s1 {int (*f) (int a);}; | |
3406 | struct s2 {int (*f) (double a);}; | |
3407 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3408 | int argc; | |
3409 | char **argv; | |
3410 | int | |
3411 | main () | |
3412 | { | |
3413 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3414 | ; | |
3415 | return 0; | |
3416 | } | |
3417 | _ACEOF | |
dd184caf | 3418 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3419 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d9898ee8 | 3420 | do |
3421 | CC="$ac_save_CC $ac_arg" | |
3422 | rm -f conftest.$ac_objext | |
dd184caf | 3423 | if { (ac_try="$ac_compile" |
3424 | case "(($ac_try" in | |
3425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3426 | *) ac_try_echo=$ac_try;; | |
3427 | esac | |
8d138742 CE |
3428 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3429 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3430 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3431 | ac_status=$? |
3432 | grep -v '^ *+' conftest.er1 >conftest.err | |
3433 | rm -f conftest.er1 | |
3434 | cat conftest.err >&5 | |
8d138742 | 3435 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3436 | (exit $ac_status); } && { |
3437 | test -z "$ac_c_werror_flag" || | |
3438 | test ! -s conftest.err | |
3439 | } && test -s conftest.$ac_objext; then | |
3440 | ac_cv_prog_cc_c89=$ac_arg | |
d9898ee8 | 3441 | else |
8d138742 | 3442 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3443 | sed 's/^/| /' conftest.$ac_ext >&5 |
3444 | ||
dd184caf | 3445 | |
d9898ee8 | 3446 | fi |
dd184caf | 3447 | |
3448 | rm -f core conftest.err conftest.$ac_objext | |
3449 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d9898ee8 | 3450 | done |
dd184caf | 3451 | rm -f conftest.$ac_ext |
d9898ee8 | 3452 | CC=$ac_save_CC |
3453 | ||
3454 | fi | |
dd184caf | 3455 | # AC_CACHE_VAL |
3456 | case "x$ac_cv_prog_cc_c89" in | |
3457 | x) | |
8d138742 CE |
3458 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3459 | $as_echo "none needed" >&6; } ;; | |
dd184caf | 3460 | xno) |
8d138742 CE |
3461 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3462 | $as_echo "unsupported" >&6; } ;; | |
d9898ee8 | 3463 | *) |
dd184caf | 3464 | CC="$CC $ac_cv_prog_cc_c89" |
8d138742 CE |
3465 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3466 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d9898ee8 | 3467 | esac |
3468 | ||
d9898ee8 | 3469 | |
d9898ee8 | 3470 | ac_ext=c |
3471 | ac_cpp='$CPP $CPPFLAGS' | |
3472 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3473 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3474 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3475 | DEPDIR="${am__leading_dot}deps" | |
3476 | ||
dd184caf | 3477 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 | 3478 | |
3479 | ||
3480 | am_make=${MAKE-make} | |
3481 | cat > confinc << 'END' | |
3482 | am__doit: | |
8d138742 | 3483 | @echo this is the am__doit target |
d9898ee8 | 3484 | .PHONY: am__doit |
3485 | END | |
3486 | # If we don't find an include directive, just comment out the code. | |
8d138742 CE |
3487 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3488 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
d9898ee8 | 3489 | am__include="#" |
3490 | am__quote= | |
3491 | _am_result=none | |
3492 | # First try GNU make style include. | |
3493 | echo "include confinc" > confmf | |
8d138742 CE |
3494 | # Ignore all kinds of additional output from `make'. |
3495 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3496 | *the\ am__doit\ target*) | |
3497 | am__include=include | |
3498 | am__quote= | |
3499 | _am_result=GNU | |
3500 | ;; | |
3501 | esac | |
d9898ee8 | 3502 | # Now try BSD make style include. |
3503 | if test "$am__include" = "#"; then | |
3504 | echo '.include "confinc"' > confmf | |
8d138742 CE |
3505 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3506 | *the\ am__doit\ target*) | |
3507 | am__include=.include | |
3508 | am__quote="\"" | |
3509 | _am_result=BSD | |
3510 | ;; | |
3511 | esac | |
d9898ee8 | 3512 | fi |
3513 | ||
3514 | ||
8d138742 CE |
3515 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 |
3516 | $as_echo "$_am_result" >&6; } | |
d9898ee8 | 3517 | rm -f confinc confmf |
3518 | ||
dd184caf | 3519 | # Check whether --enable-dependency-tracking was given. |
d9898ee8 | 3520 | if test "${enable_dependency_tracking+set}" = set; then |
dd184caf | 3521 | enableval=$enable_dependency_tracking; |
3522 | fi | |
d9898ee8 | 3523 | |
d9898ee8 | 3524 | if test "x$enable_dependency_tracking" != xno; then |
3525 | am_depcomp="$ac_aux_dir/depcomp" | |
3526 | AMDEPBACKSLASH='\' | |
3527 | fi | |
dd184caf | 3528 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 | 3529 | AMDEP_TRUE= |
3530 | AMDEP_FALSE='#' | |
3531 | else | |
3532 | AMDEP_TRUE='#' | |
3533 | AMDEP_FALSE= | |
3534 | fi | |
3535 | ||
3536 | ||
3537 | ||
d9898ee8 | 3538 | depcc="$CC" am_compiler_list= |
3539 | ||
8d138742 CE |
3540 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3541 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
d9898ee8 | 3542 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
8d138742 | 3543 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3544 | else |
3545 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3546 | # We make a subdir and do the tests there. Otherwise we can end up | |
3547 | # making bogus files that we don't know about and never remove. For | |
3548 | # instance it was reported that on HP-UX the gcc test will end up | |
3549 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3550 | # in D'. | |
3551 | mkdir conftest.dir | |
3552 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3553 | # using a relative directory. | |
3554 | cp "$am_depcomp" conftest.dir | |
3555 | cd conftest.dir | |
3556 | # We will build objects and dependencies in a subdirectory because | |
3557 | # it helps to detect inapplicable dependency modes. For instance | |
3558 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3559 | # side effect of compilation, but ICC will put the dependencies in | |
3560 | # the current directory while Tru64 will put them in the object | |
3561 | # directory. | |
3562 | mkdir sub | |
3563 | ||
3564 | am_cv_CC_dependencies_compiler_type=none | |
3565 | if test "$am_compiler_list" = ""; then | |
3566 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3567 | fi | |
8d138742 CE |
3568 | am__universal=false |
3569 | case " $depcc " in #( | |
3570 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3571 | esac | |
3572 | ||
d9898ee8 | 3573 | for depmode in $am_compiler_list; do |
3574 | # Setup a source with many dependencies, because some compilers | |
3575 | # like to wrap large dependency lists on column 80 (with \), and | |
3576 | # we should not choose a depcomp mode which is confused by this. | |
3577 | # | |
3578 | # We need to recreate these files for each test, as the compiler may | |
3579 | # overwrite some of them when testing with obscure command lines. | |
3580 | # This happens at least with the AIX C compiler. | |
3581 | : > sub/conftest.c | |
3582 | for i in 1 2 3 4 5 6; do | |
3583 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3584 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3585 | # Solaris 8's {/usr,}/bin/sh. | |
3586 | touch sub/conftst$i.h | |
3587 | done | |
3588 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3589 | ||
8d138742 CE |
3590 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3591 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3592 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3593 | # versions had trouble with output in subdirs | |
3594 | am__obj=sub/conftest.${OBJEXT-o} | |
3595 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 3596 | case $depmode in |
8d138742 CE |
3597 | gcc) |
3598 | # This depmode causes a compiler race in universal mode. | |
3599 | test "$am__universal" = false || continue | |
3600 | ;; | |
d9898ee8 | 3601 | nosideeffect) |
3602 | # after this tag, mechanisms are not by side-effect, so they'll | |
3603 | # only be used when explicitly requested | |
3604 | if test "x$enable_dependency_tracking" = xyes; then | |
3605 | continue | |
3606 | else | |
3607 | break | |
3608 | fi | |
3609 | ;; | |
8d138742 CE |
3610 | msvisualcpp | msvcmsys) |
3611 | # This compiler won't grok `-c -o', but also, the minuso test has | |
3612 | # not run yet. These depmodes are late enough in the game, and | |
3613 | # so weak that their functioning should not be impacted. | |
3614 | am__obj=conftest.${OBJEXT-o} | |
3615 | am__minus_obj= | |
3616 | ;; | |
d9898ee8 | 3617 | none) break ;; |
3618 | esac | |
d9898ee8 | 3619 | if depmode=$depmode \ |
8d138742 | 3620 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 3621 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 3622 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 3623 | >/dev/null 2>conftest.err && |
dd184caf | 3624 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3625 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 3626 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3627 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3628 | # icc doesn't choke on unknown options, it will just issue warnings | |
3629 | # or remarks (even with -Werror). So we grep stderr for any message | |
3630 | # that says an option was ignored or not supported. | |
3631 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3632 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3633 | # The diagnosis changed in icc 8.0: | |
3634 | # icc: Command line remark: option '-MP' not supported | |
3635 | if (grep 'ignoring option' conftest.err || | |
3636 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3637 | am_cv_CC_dependencies_compiler_type=$depmode | |
3638 | break | |
3639 | fi | |
3640 | fi | |
3641 | done | |
3642 | ||
3643 | cd .. | |
3644 | rm -rf conftest.dir | |
3645 | else | |
3646 | am_cv_CC_dependencies_compiler_type=none | |
3647 | fi | |
3648 | ||
3649 | fi | |
8d138742 CE |
3650 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3651 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
d9898ee8 | 3652 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3653 | ||
dd184caf | 3654 | if |
d9898ee8 | 3655 | test "x$enable_dependency_tracking" != xno \ |
3656 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3657 | am__fastdepCC_TRUE= | |
3658 | am__fastdepCC_FALSE='#' | |
3659 | else | |
3660 | am__fastdepCC_TRUE='#' | |
3661 | am__fastdepCC_FALSE= | |
3662 | fi | |
3663 | ||
3664 | ||
3665 | # Find a good install program. We prefer a C program (faster), | |
3666 | # so one script is as good as another. But avoid the broken or | |
3667 | # incompatible versions: | |
3668 | # SysV /etc/install, /usr/sbin/install | |
3669 | # SunOS /usr/etc/install | |
3670 | # IRIX /sbin/install | |
3671 | # AIX /bin/install | |
3672 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3673 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3674 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3675 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3676 | # OS/2's system install, which has a completely different semantic | |
3677 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 CE |
3678 | # Reject install programs that cannot install multiple files. |
3679 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3680 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d9898ee8 | 3681 | if test -z "$INSTALL"; then |
3682 | if test "${ac_cv_path_install+set}" = set; then | |
8d138742 | 3683 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3684 | else |
3685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3686 | for as_dir in $PATH | |
3687 | do | |
3688 | IFS=$as_save_IFS | |
3689 | test -z "$as_dir" && as_dir=. | |
3690 | # Account for people who put trailing slashes in PATH elements. | |
3691 | case $as_dir/ in | |
3692 | ./ | .// | /cC/* | \ | |
3693 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3694 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3695 | /usr/ucb/* ) ;; | |
3696 | *) | |
3697 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3698 | # Don't use installbsd from OSF since it installs stuff as root | |
3699 | # by default. | |
3700 | for ac_prog in ginstall scoinst install; do | |
3701 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 3702 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 | 3703 | if test $ac_prog = install && |
3704 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3705 | # AIX install. It has an incompatible calling convention. | |
3706 | : | |
3707 | elif test $ac_prog = install && | |
3708 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3709 | # program-specific install script used by HP pwplus--don't use. | |
3710 | : | |
3711 | else | |
8d138742 CE |
3712 | rm -rf conftest.one conftest.two conftest.dir |
3713 | echo one > conftest.one | |
3714 | echo two > conftest.two | |
3715 | mkdir conftest.dir | |
3716 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3717 | test -s conftest.one && test -s conftest.two && | |
3718 | test -s conftest.dir/conftest.one && | |
3719 | test -s conftest.dir/conftest.two | |
3720 | then | |
3721 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3722 | break 3 | |
3723 | fi | |
d9898ee8 | 3724 | fi |
3725 | fi | |
3726 | done | |
3727 | done | |
3728 | ;; | |
3729 | esac | |
8d138742 | 3730 | |
d9898ee8 | 3731 | done |
dd184caf | 3732 | IFS=$as_save_IFS |
d9898ee8 | 3733 | |
8d138742 | 3734 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 3735 | |
3736 | fi | |
3737 | if test "${ac_cv_path_install+set}" = set; then | |
3738 | INSTALL=$ac_cv_path_install | |
3739 | else | |
dd184caf | 3740 | # As a last resort, use the slow shell script. Don't cache a |
3741 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 3742 | # break other packages using the cache if that directory is |
dd184caf | 3743 | # removed, or if the value is a relative name. |
d9898ee8 | 3744 | INSTALL=$ac_install_sh |
3745 | fi | |
3746 | fi | |
8d138742 CE |
3747 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3748 | $as_echo "$INSTALL" >&6; } | |
d9898ee8 | 3749 | |
3750 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3751 | # It thinks the first close brace ends the variable substitution. | |
3752 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3753 | ||
3754 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3755 | ||
3756 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3757 | ||
8d138742 CE |
3758 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3759 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d9898ee8 | 3760 | LN_S=$as_ln_s |
3761 | if test "$LN_S" = "ln -s"; then | |
8d138742 CE |
3762 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3763 | $as_echo "yes" >&6; } | |
d9898ee8 | 3764 | else |
8d138742 CE |
3765 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3766 | $as_echo "no, using $LN_S" >&6; } | |
d9898ee8 | 3767 | fi |
3768 | ||
8d138742 CE |
3769 | case `pwd` in |
3770 | *\ * | *\ *) | |
3771 | { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
3772 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
3773 | esac | |
3774 | ||
3775 | ||
3776 | ||
3777 | macro_version='2.2.6' | |
3778 | macro_revision='1.3012' | |
3779 | ||
3780 | ||
3781 | ||
3782 | ||
dd184caf | 3783 | |
d9898ee8 | 3784 | |
dd184caf | 3785 | |
d9898ee8 | 3786 | |
dd184caf | 3787 | |
d9898ee8 | 3788 | |
8d138742 CE |
3789 | |
3790 | ||
3791 | ||
3792 | ltmain="$ac_aux_dir/ltmain.sh" | |
3793 | ||
d9898ee8 | 3794 | # Make sure we can run config.sub. |
dd184caf | 3795 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
8d138742 CE |
3796 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
3797 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
d9898ee8 | 3798 | { (exit 1); exit 1; }; } |
3799 | ||
8d138742 CE |
3800 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
3801 | $as_echo_n "checking build system type... " >&6; } | |
d9898ee8 | 3802 | if test "${ac_cv_build+set}" = set; then |
8d138742 | 3803 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3804 | else |
dd184caf | 3805 | ac_build_alias=$build_alias |
3806 | test "x$ac_build_alias" = x && | |
3807 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3808 | test "x$ac_build_alias" = x && | |
8d138742 CE |
3809 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3810 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
d9898ee8 | 3811 | { (exit 1); exit 1; }; } |
dd184caf | 3812 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
8d138742 CE |
3813 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
3814 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
d9898ee8 | 3815 | { (exit 1); exit 1; }; } |
3816 | ||
3817 | fi | |
8d138742 CE |
3818 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3819 | $as_echo "$ac_cv_build" >&6; } | |
dd184caf | 3820 | case $ac_cv_build in |
3821 | *-*-*) ;; | |
8d138742 CE |
3822 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
3823 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
dd184caf | 3824 | { (exit 1); exit 1; }; };; |
3825 | esac | |
d9898ee8 | 3826 | build=$ac_cv_build |
dd184caf | 3827 | ac_save_IFS=$IFS; IFS='-' |
3828 | set x $ac_cv_build | |
3829 | shift | |
3830 | build_cpu=$1 | |
3831 | build_vendor=$2 | |
3832 | shift; shift | |
3833 | # Remember, the first character of IFS is used to create $*, | |
3834 | # except with old shells: | |
3835 | build_os=$* | |
3836 | IFS=$ac_save_IFS | |
3837 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3838 | ||
3839 | ||
8d138742 CE |
3840 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
3841 | $as_echo_n "checking host system type... " >&6; } | |
d9898ee8 | 3842 | if test "${ac_cv_host+set}" = set; then |
8d138742 | 3843 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3844 | else |
dd184caf | 3845 | if test "x$host_alias" = x; then |
3846 | ac_cv_host=$ac_cv_build | |
3847 | else | |
3848 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
8d138742 CE |
3849 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
3850 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
d9898ee8 | 3851 | { (exit 1); exit 1; }; } |
dd184caf | 3852 | fi |
d9898ee8 | 3853 | |
3854 | fi | |
8d138742 CE |
3855 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3856 | $as_echo "$ac_cv_host" >&6; } | |
dd184caf | 3857 | case $ac_cv_host in |
3858 | *-*-*) ;; | |
8d138742 CE |
3859 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
3860 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
dd184caf | 3861 | { (exit 1); exit 1; }; };; |
3862 | esac | |
d9898ee8 | 3863 | host=$ac_cv_host |
dd184caf | 3864 | ac_save_IFS=$IFS; IFS='-' |
3865 | set x $ac_cv_host | |
3866 | shift | |
3867 | host_cpu=$1 | |
3868 | host_vendor=$2 | |
3869 | shift; shift | |
3870 | # Remember, the first character of IFS is used to create $*, | |
3871 | # except with old shells: | |
3872 | host_os=$* | |
3873 | IFS=$ac_save_IFS | |
3874 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3875 | ||
3876 | ||
8d138742 CE |
3877 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3878 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
3879 | if test "${ac_cv_path_SED+set}" = set; then | |
3880 | $as_echo_n "(cached) " >&6 | |
3881 | else | |
3882 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
3883 | for ac_i in 1 2 3 4 5 6 7; do | |
3884 | ac_script="$ac_script$as_nl$ac_script" | |
3885 | done | |
3886 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
3887 | $as_unset ac_script || ac_script= | |
3888 | if test -z "$SED"; then | |
3889 | ac_path_SED_found=false | |
3890 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d9898ee8 | 3892 | for as_dir in $PATH |
3893 | do | |
3894 | IFS=$as_save_IFS | |
3895 | test -z "$as_dir" && as_dir=. | |
8d138742 | 3896 | for ac_prog in sed gsed; do |
d9898ee8 | 3897 | for ac_exec_ext in '' $ac_executable_extensions; do |
8d138742 CE |
3898 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
3899 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
3900 | # Check for GNU ac_path_SED and select it if it is found. | |
3901 | # Check for GNU $ac_path_SED | |
3902 | case `"$ac_path_SED" --version 2>&1` in | |
3903 | *GNU*) | |
3904 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
3905 | *) | |
3906 | ac_count=0 | |
3907 | $as_echo_n 0123456789 >"conftest.in" | |
3908 | while : | |
3909 | do | |
3910 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3911 | mv "conftest.tmp" "conftest.in" | |
3912 | cp "conftest.in" "conftest.nl" | |
3913 | $as_echo '' >> "conftest.nl" | |
3914 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3915 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3916 | ac_count=`expr $ac_count + 1` | |
3917 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
3918 | # Best one so far, save it but keep looking for a better one | |
3919 | ac_cv_path_SED="$ac_path_SED" | |
3920 | ac_path_SED_max=$ac_count | |
3921 | fi | |
3922 | # 10*(2^10) chars as input seems more than enough | |
3923 | test $ac_count -gt 10 && break | |
3924 | done | |
3925 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3926 | esac | |
3927 | ||
3928 | $ac_path_SED_found && break 3 | |
d9898ee8 | 3929 | done |
3930 | done | |
3931 | done | |
3932 | IFS=$as_save_IFS | |
8d138742 CE |
3933 | if test -z "$ac_cv_path_SED"; then |
3934 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
3935 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
3936 | { (exit 1); exit 1; }; } | |
d9898ee8 | 3937 | fi |
8d138742 CE |
3938 | else |
3939 | ac_cv_path_SED=$SED | |
3940 | fi | |
d9898ee8 | 3941 | |
3942 | fi | |
8d138742 CE |
3943 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
3944 | $as_echo "$ac_cv_path_SED" >&6; } | |
3945 | SED="$ac_cv_path_SED" | |
3946 | rm -f conftest.sed | |
3947 | ||
3948 | test -z "$SED" && SED=sed | |
3949 | Xsed="$SED -e 1s/^X//" | |
d9898ee8 | 3950 | |
d9898ee8 | 3951 | |
dd184caf | 3952 | |
8d138742 CE |
3953 | |
3954 | ||
3955 | ||
3956 | ||
3957 | ||
3958 | ||
3959 | ||
3960 | ||
3961 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
3962 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
dd184caf | 3963 | if test "${ac_cv_path_GREP+set}" = set; then |
8d138742 | 3964 | $as_echo_n "(cached) " >&6 |
dd184caf | 3965 | else |
8d138742 | 3966 | if test -z "$GREP"; then |
dd184caf | 3967 | ac_path_GREP_found=false |
8d138742 CE |
3968 | # Loop through the user's path and test for each of PROGNAME-LIST |
3969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 3970 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3971 | do | |
3972 | IFS=$as_save_IFS | |
3973 | test -z "$as_dir" && as_dir=. | |
3974 | for ac_prog in grep ggrep; do | |
8d138742 CE |
3975 | for ac_exec_ext in '' $ac_executable_extensions; do |
3976 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3977 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3978 | # Check for GNU ac_path_GREP and select it if it is found. | |
dd184caf | 3979 | # Check for GNU $ac_path_GREP |
3980 | case `"$ac_path_GREP" --version 2>&1` in | |
3981 | *GNU*) | |
3982 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3983 | *) | |
3984 | ac_count=0 | |
8d138742 | 3985 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 3986 | while : |
3987 | do | |
3988 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3989 | mv "conftest.tmp" "conftest.in" | |
3990 | cp "conftest.in" "conftest.nl" | |
8d138742 | 3991 | $as_echo 'GREP' >> "conftest.nl" |
dd184caf | 3992 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3993 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3994 | ac_count=`expr $ac_count + 1` | |
3995 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3996 | # Best one so far, save it but keep looking for a better one | |
3997 | ac_cv_path_GREP="$ac_path_GREP" | |
3998 | ac_path_GREP_max=$ac_count | |
3999 | fi | |
4000 | # 10*(2^10) chars as input seems more than enough | |
4001 | test $ac_count -gt 10 && break | |
4002 | done | |
4003 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4004 | esac | |
4005 | ||
8d138742 CE |
4006 | $ac_path_GREP_found && break 3 |
4007 | done | |
dd184caf | 4008 | done |
4009 | done | |
dd184caf | 4010 | IFS=$as_save_IFS |
8d138742 CE |
4011 | if test -z "$ac_cv_path_GREP"; then |
4012 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4013 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
dd184caf | 4014 | { (exit 1); exit 1; }; } |
8d138742 | 4015 | fi |
dd184caf | 4016 | else |
4017 | ac_cv_path_GREP=$GREP | |
4018 | fi | |
4019 | ||
dd184caf | 4020 | fi |
8d138742 CE |
4021 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
4022 | $as_echo "$ac_cv_path_GREP" >&6; } | |
dd184caf | 4023 | GREP="$ac_cv_path_GREP" |
4024 | ||
d9898ee8 | 4025 | |
8d138742 CE |
4026 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
4027 | $as_echo_n "checking for egrep... " >&6; } | |
dd184caf | 4028 | if test "${ac_cv_path_EGREP+set}" = set; then |
8d138742 | 4029 | $as_echo_n "(cached) " >&6 |
dd184caf | 4030 | else |
4031 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4032 | then ac_cv_path_EGREP="$GREP -E" | |
4033 | else | |
8d138742 | 4034 | if test -z "$EGREP"; then |
dd184caf | 4035 | ac_path_EGREP_found=false |
8d138742 CE |
4036 | # Loop through the user's path and test for each of PROGNAME-LIST |
4037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4038 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4039 | do | |
4040 | IFS=$as_save_IFS | |
4041 | test -z "$as_dir" && as_dir=. | |
4042 | for ac_prog in egrep; do | |
8d138742 CE |
4043 | for ac_exec_ext in '' $ac_executable_extensions; do |
4044 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4045 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4046 | # Check for GNU ac_path_EGREP and select it if it is found. | |
dd184caf | 4047 | # Check for GNU $ac_path_EGREP |
4048 | case `"$ac_path_EGREP" --version 2>&1` in | |
4049 | *GNU*) | |
4050 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4051 | *) | |
4052 | ac_count=0 | |
8d138742 | 4053 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4054 | while : |
4055 | do | |
4056 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4057 | mv "conftest.tmp" "conftest.in" | |
4058 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4059 | $as_echo 'EGREP' >> "conftest.nl" |
dd184caf | 4060 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4061 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4062 | ac_count=`expr $ac_count + 1` | |
4063 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4064 | # Best one so far, save it but keep looking for a better one | |
4065 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4066 | ac_path_EGREP_max=$ac_count | |
d9898ee8 | 4067 | fi |
dd184caf | 4068 | # 10*(2^10) chars as input seems more than enough |
4069 | test $ac_count -gt 10 && break | |
4070 | done | |
4071 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4072 | esac | |
4073 | ||
8d138742 CE |
4074 | $ac_path_EGREP_found && break 3 |
4075 | done | |
dd184caf | 4076 | done |
4077 | done | |
dd184caf | 4078 | IFS=$as_save_IFS |
8d138742 CE |
4079 | if test -z "$ac_cv_path_EGREP"; then |
4080 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4081 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4082 | { (exit 1); exit 1; }; } | |
4083 | fi | |
4084 | else | |
4085 | ac_cv_path_EGREP=$EGREP | |
dd184caf | 4086 | fi |
4087 | ||
8d138742 | 4088 | fi |
dd184caf | 4089 | fi |
8d138742 CE |
4090 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4091 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4092 | EGREP="$ac_cv_path_EGREP" | |
dd184caf | 4093 | |
8d138742 CE |
4094 | |
4095 | { $as_echo "$as_me:$LINENO: checking for fgrep" >&5 | |
4096 | $as_echo_n "checking for fgrep... " >&6; } | |
4097 | if test "${ac_cv_path_FGREP+set}" = set; then | |
4098 | $as_echo_n "(cached) " >&6 | |
dd184caf | 4099 | else |
8d138742 CE |
4100 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4101 | then ac_cv_path_FGREP="$GREP -F" | |
4102 | else | |
4103 | if test -z "$FGREP"; then | |
4104 | ac_path_FGREP_found=false | |
4105 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4107 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4108 | do | |
4109 | IFS=$as_save_IFS | |
4110 | test -z "$as_dir" && as_dir=. | |
4111 | for ac_prog in fgrep; do | |
4112 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4113 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4114 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
4115 | # Check for GNU ac_path_FGREP and select it if it is found. | |
4116 | # Check for GNU $ac_path_FGREP | |
4117 | case `"$ac_path_FGREP" --version 2>&1` in | |
4118 | *GNU*) | |
4119 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4120 | *) | |
4121 | ac_count=0 | |
4122 | $as_echo_n 0123456789 >"conftest.in" | |
4123 | while : | |
4124 | do | |
4125 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4126 | mv "conftest.tmp" "conftest.in" | |
4127 | cp "conftest.in" "conftest.nl" | |
4128 | $as_echo 'FGREP' >> "conftest.nl" | |
4129 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4130 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4131 | ac_count=`expr $ac_count + 1` | |
4132 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4133 | # Best one so far, save it but keep looking for a better one | |
4134 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4135 | ac_path_FGREP_max=$ac_count | |
4136 | fi | |
4137 | # 10*(2^10) chars as input seems more than enough | |
4138 | test $ac_count -gt 10 && break | |
4139 | done | |
4140 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4141 | esac | |
dd184caf | 4142 | |
8d138742 CE |
4143 | $ac_path_FGREP_found && break 3 |
4144 | done | |
4145 | done | |
4146 | done | |
4147 | IFS=$as_save_IFS | |
4148 | if test -z "$ac_cv_path_FGREP"; then | |
4149 | { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4150 | $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4151 | { (exit 1); exit 1; }; } | |
4152 | fi | |
4153 | else | |
4154 | ac_cv_path_FGREP=$FGREP | |
4155 | fi | |
dd184caf | 4156 | |
4157 | fi | |
4158 | fi | |
8d138742 CE |
4159 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 |
4160 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4161 | FGREP="$ac_cv_path_FGREP" | |
4162 | ||
4163 | ||
4164 | test -z "$GREP" && GREP=grep | |
4165 | ||
4166 | ||
4167 | ||
4168 | ||
4169 | ||
4170 | ||
4171 | ||
4172 | ||
4173 | ||
4174 | ||
4175 | ||
4176 | ||
4177 | ||
4178 | ||
4179 | ||
4180 | ||
d9898ee8 | 4181 | |
4182 | ||
4183 | ||
dd184caf | 4184 | # Check whether --with-gnu-ld was given. |
d9898ee8 | 4185 | if test "${with_gnu_ld+set}" = set; then |
dd184caf | 4186 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 | 4187 | else |
4188 | with_gnu_ld=no | |
dd184caf | 4189 | fi |
4190 | ||
d9898ee8 | 4191 | ac_prog=ld |
4192 | if test "$GCC" = yes; then | |
4193 | # Check if gcc -print-prog-name=ld gives a path. | |
8d138742 CE |
4194 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4195 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
d9898ee8 | 4196 | case $host in |
4197 | *-*-mingw*) | |
4198 | # gcc leaves a trailing carriage return which upsets mingw | |
4199 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4200 | *) | |
4201 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4202 | esac | |
4203 | case $ac_prog in | |
4204 | # Accept absolute paths. | |
4205 | [\\/]* | ?:[\\/]*) | |
4206 | re_direlt='/[^/][^/]*/\.\./' | |
4207 | # Canonicalize the pathname of ld | |
8d138742 CE |
4208 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4209 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4210 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
d9898ee8 | 4211 | done |
4212 | test -z "$LD" && LD="$ac_prog" | |
4213 | ;; | |
4214 | "") | |
4215 | # If it fails, then pretend we aren't using GCC. | |
4216 | ac_prog=ld | |
4217 | ;; | |
4218 | *) | |
4219 | # If it is relative, then search for the first ld in PATH. | |
4220 | with_gnu_ld=unknown | |
4221 | ;; | |
4222 | esac | |
4223 | elif test "$with_gnu_ld" = yes; then | |
8d138742 CE |
4224 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4225 | $as_echo_n "checking for GNU ld... " >&6; } | |
d9898ee8 | 4226 | else |
8d138742 CE |
4227 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4228 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
d9898ee8 | 4229 | fi |
4230 | if test "${lt_cv_path_LD+set}" = set; then | |
8d138742 | 4231 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4232 | else |
4233 | if test -z "$LD"; then | |
4234 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4235 | for ac_dir in $PATH; do | |
4236 | IFS="$lt_save_ifs" | |
4237 | test -z "$ac_dir" && ac_dir=. | |
4238 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4239 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4240 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4241 | # but apparently some variants of GNU ld only accept -v. | |
4242 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4243 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4244 | *GNU* | *'with BFD'*) | |
4245 | test "$with_gnu_ld" != no && break | |
4246 | ;; | |
4247 | *) | |
4248 | test "$with_gnu_ld" != yes && break | |
4249 | ;; | |
4250 | esac | |
4251 | fi | |
4252 | done | |
4253 | IFS="$lt_save_ifs" | |
4254 | else | |
4255 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4256 | fi | |
4257 | fi | |
4258 | ||
4259 | LD="$lt_cv_path_LD" | |
4260 | if test -n "$LD"; then | |
8d138742 CE |
4261 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
4262 | $as_echo "$LD" >&6; } | |
d9898ee8 | 4263 | else |
8d138742 CE |
4264 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4265 | $as_echo "no" >&6; } | |
d9898ee8 | 4266 | fi |
8d138742 CE |
4267 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4268 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
d9898ee8 | 4269 | { (exit 1); exit 1; }; } |
8d138742 CE |
4270 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4271 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
d9898ee8 | 4272 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
8d138742 | 4273 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4274 | else |
4275 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4276 | case `$LD -v 2>&1 </dev/null` in | |
4277 | *GNU* | *'with BFD'*) | |
4278 | lt_cv_prog_gnu_ld=yes | |
4279 | ;; | |
4280 | *) | |
4281 | lt_cv_prog_gnu_ld=no | |
4282 | ;; | |
4283 | esac | |
4284 | fi | |
8d138742 CE |
4285 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4286 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
d9898ee8 | 4287 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4288 | ||
4289 | ||
d9898ee8 | 4290 | |
8d138742 CE |
4291 | |
4292 | ||
4293 | ||
4294 | ||
4295 | ||
4296 | ||
4297 | { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4298 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
d9898ee8 | 4299 | if test "${lt_cv_path_NM+set}" = set; then |
8d138742 | 4300 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4301 | else |
4302 | if test -n "$NM"; then | |
4303 | # Let the user override the test. | |
4304 | lt_cv_path_NM="$NM" | |
4305 | else | |
4306 | lt_nm_to_check="${ac_tool_prefix}nm" | |
4307 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4308 | lt_nm_to_check="$lt_nm_to_check nm" | |
4309 | fi | |
4310 | for lt_tmp_nm in $lt_nm_to_check; do | |
4311 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4312 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4313 | IFS="$lt_save_ifs" | |
4314 | test -z "$ac_dir" && ac_dir=. | |
4315 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4316 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4317 | # Check to see if the nm accepts a BSD-compat flag. | |
4318 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4319 | # nm: unknown option "B" ignored | |
4320 | # Tru64's nm complains that /dev/null is an invalid object file | |
4321 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4322 | */dev/null* | *'Invalid file or object type'*) | |
4323 | lt_cv_path_NM="$tmp_nm -B" | |
4324 | break | |
4325 | ;; | |
4326 | *) | |
4327 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4328 | */dev/null*) | |
4329 | lt_cv_path_NM="$tmp_nm -p" | |
4330 | break | |
4331 | ;; | |
4332 | *) | |
4333 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4334 | continue # so that we can try to find one that supports BSD flags | |
4335 | ;; | |
4336 | esac | |
4337 | ;; | |
4338 | esac | |
4339 | fi | |
4340 | done | |
4341 | IFS="$lt_save_ifs" | |
4342 | done | |
8d138742 | 4343 | : ${lt_cv_path_NM=no} |
d9898ee8 | 4344 | fi |
4345 | fi | |
8d138742 CE |
4346 | { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4347 | $as_echo "$lt_cv_path_NM" >&6; } | |
4348 | if test "$lt_cv_path_NM" != "no"; then | |
4349 | NM="$lt_cv_path_NM" | |
d9898ee8 | 4350 | else |
8d138742 CE |
4351 | # Didn't find any BSD compatible name lister, look for dumpbin. |
4352 | if test -n "$ac_tool_prefix"; then | |
4353 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4354 | do | |
4355 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4356 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4357 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4358 | $as_echo_n "checking for $ac_word... " >&6; } | |
4359 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
4360 | $as_echo_n "(cached) " >&6 | |
4361 | else | |
4362 | if test -n "$DUMPBIN"; then | |
4363 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4364 | else | |
4365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4366 | for as_dir in $PATH | |
4367 | do | |
4368 | IFS=$as_save_IFS | |
4369 | test -z "$as_dir" && as_dir=. | |
4370 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4371 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4372 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4373 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4374 | break 2 | |
4375 | fi | |
4376 | done | |
4377 | done | |
4378 | IFS=$as_save_IFS | |
d9898ee8 | 4379 | |
8d138742 CE |
4380 | fi |
4381 | fi | |
4382 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4383 | if test -n "$DUMPBIN"; then | |
4384 | { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
4385 | $as_echo "$DUMPBIN" >&6; } | |
4386 | else | |
4387 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4388 | $as_echo "no" >&6; } | |
4389 | fi | |
d9898ee8 | 4390 | |
d9898ee8 | 4391 | |
8d138742 CE |
4392 | test -n "$DUMPBIN" && break |
4393 | done | |
4394 | fi | |
4395 | if test -z "$DUMPBIN"; then | |
4396 | ac_ct_DUMPBIN=$DUMPBIN | |
4397 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4398 | do | |
4399 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4400 | set dummy $ac_prog; ac_word=$2 | |
4401 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4402 | $as_echo_n "checking for $ac_word... " >&6; } | |
4403 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
4404 | $as_echo_n "(cached) " >&6 | |
4405 | else | |
4406 | if test -n "$ac_ct_DUMPBIN"; then | |
4407 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4408 | else | |
4409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4410 | for as_dir in $PATH | |
4411 | do | |
4412 | IFS=$as_save_IFS | |
4413 | test -z "$as_dir" && as_dir=. | |
4414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4415 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4416 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4417 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4418 | break 2 | |
ac40fd9e | 4419 | fi |
8d138742 CE |
4420 | done |
4421 | done | |
4422 | IFS=$as_save_IFS | |
d9898ee8 | 4423 | |
8d138742 CE |
4424 | fi |
4425 | fi | |
4426 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4427 | if test -n "$ac_ct_DUMPBIN"; then | |
4428 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
4429 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4430 | else | |
4431 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4432 | $as_echo "no" >&6; } | |
4433 | fi | |
d9898ee8 | 4434 | |
8d138742 CE |
4435 | |
4436 | test -n "$ac_ct_DUMPBIN" && break | |
4437 | done | |
4438 | ||
4439 | if test "x$ac_ct_DUMPBIN" = x; then | |
4440 | DUMPBIN=":" | |
d9898ee8 | 4441 | else |
8d138742 CE |
4442 | case $cross_compiling:$ac_tool_warned in |
4443 | yes:) | |
4444 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4445 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4446 | ac_tool_warned=yes ;; | |
4447 | esac | |
4448 | DUMPBIN=$ac_ct_DUMPBIN | |
d9898ee8 | 4449 | fi |
8d138742 | 4450 | fi |
d9898ee8 | 4451 | |
d9898ee8 | 4452 | |
8d138742 CE |
4453 | if test "$DUMPBIN" != ":"; then |
4454 | NM="$DUMPBIN" | |
4455 | fi | |
4456 | fi | |
4457 | test -z "$NM" && NM=nm | |
d9898ee8 | 4458 | |
d9898ee8 | 4459 | |
d9898ee8 | 4460 | |
d9898ee8 | 4461 | |
d9898ee8 | 4462 | |
d9898ee8 | 4463 | |
8d138742 CE |
4464 | { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
4465 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4466 | if test "${lt_cv_nm_interface+set}" = set; then | |
4467 | $as_echo_n "(cached) " >&6 | |
4468 | else | |
4469 | lt_cv_nm_interface="BSD nm" | |
4470 | echo "int some_variable = 0;" > conftest.$ac_ext | |
4471 | (eval echo "\"\$as_me:4471: $ac_compile\"" >&5) | |
4472 | (eval "$ac_compile" 2>conftest.err) | |
4473 | cat conftest.err >&5 | |
4474 | (eval echo "\"\$as_me:4474: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
4475 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
4476 | cat conftest.err >&5 | |
4477 | (eval echo "\"\$as_me:4477: output\"" >&5) | |
4478 | cat conftest.out >&5 | |
4479 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4480 | lt_cv_nm_interface="MS dumpbin" | |
d9898ee8 | 4481 | fi |
8d138742 CE |
4482 | rm -f conftest* |
4483 | fi | |
4484 | { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 | |
4485 | $as_echo "$lt_cv_nm_interface" >&6; } | |
d9898ee8 | 4486 | |
8d138742 CE |
4487 | # find the maximum length of command line arguments |
4488 | { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4489 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4490 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4491 | $as_echo_n "(cached) " >&6 | |
4492 | else | |
4493 | i=0 | |
4494 | teststring="ABCD" | |
d9898ee8 | 4495 | |
8d138742 CE |
4496 | case $build_os in |
4497 | msdosdjgpp*) | |
4498 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4499 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4500 | # during glob expansion). Even if it were fixed, the result of this | |
4501 | # check would be larger than it should be. | |
4502 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4503 | ;; | |
ac40fd9e | 4504 | |
8d138742 CE |
4505 | gnu*) |
4506 | # Under GNU Hurd, this test is not required because there is | |
4507 | # no limit to the length of command line arguments. | |
4508 | # Libtool will interpret -1 as no limit whatsoever | |
4509 | lt_cv_sys_max_cmd_len=-1; | |
4510 | ;; | |
d9898ee8 | 4511 | |
8d138742 CE |
4512 | cygwin* | mingw* | cegcc*) |
4513 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4514 | # about 5 minutes as the teststring grows exponentially. | |
4515 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4516 | # you end up with a "frozen" computer, even though with patience | |
4517 | # the test eventually succeeds (with a max line length of 256k). | |
4518 | # Instead, let's just punt: use the minimum linelength reported by | |
4519 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4520 | lt_cv_sys_max_cmd_len=8192; | |
d9898ee8 | 4521 | ;; |
8d138742 CE |
4522 | |
4523 | amigaos*) | |
4524 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4525 | # So we just punt and use a minimum line length of 8192. | |
4526 | lt_cv_sys_max_cmd_len=8192; | |
d9898ee8 | 4527 | ;; |
8d138742 CE |
4528 | |
4529 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4530 | # This has been around since 386BSD, at least. Likely further. | |
4531 | if test -x /sbin/sysctl; then | |
4532 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4533 | elif test -x /usr/sbin/sysctl; then | |
4534 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4535 | else | |
4536 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4537 | fi | |
4538 | # And add a safety zone | |
4539 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4540 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
d9898ee8 | 4541 | ;; |
8d138742 CE |
4542 | |
4543 | interix*) | |
4544 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4545 | lt_cv_sys_max_cmd_len=196608 | |
d9898ee8 | 4546 | ;; |
8d138742 CE |
4547 | |
4548 | osf*) | |
4549 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4550 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4551 | # nice to cause kernel panics so lets avoid the loop below. | |
4552 | # First set a reasonable default. | |
4553 | lt_cv_sys_max_cmd_len=16384 | |
4554 | # | |
4555 | if test -x /sbin/sysconfig; then | |
4556 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4557 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4558 | esac | |
4559 | fi | |
d9898ee8 | 4560 | ;; |
8d138742 CE |
4561 | sco3.2v5*) |
4562 | lt_cv_sys_max_cmd_len=102400 | |
4563 | ;; | |
4564 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4565 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4566 | if test -n "$kargmax"; then | |
4567 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4568 | else | |
4569 | lt_cv_sys_max_cmd_len=32768 | |
4570 | fi | |
4571 | ;; | |
4572 | *) | |
4573 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4574 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4575 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4576 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4577 | else | |
4578 | # Make teststring a little bigger before we do anything with it. | |
4579 | # a 1K string should be a reasonable start. | |
4580 | for i in 1 2 3 4 5 6 7 8 ; do | |
4581 | teststring=$teststring$teststring | |
4582 | done | |
4583 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4584 | # If test is not a shell built-in, we'll probably end up computing a | |
4585 | # maximum length that is only half of the actual maximum length, but | |
4586 | # we can't tell. | |
4587 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4588 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4589 | test $i != 17 # 1/2 MB should be enough | |
4590 | do | |
4591 | i=`expr $i + 1` | |
4592 | teststring=$teststring$teststring | |
4593 | done | |
4594 | # Only check the string length outside the loop. | |
4595 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4596 | teststring= | |
4597 | # Add a significant safety factor because C++ compilers can tack on | |
4598 | # massive amounts of additional arguments before passing them to the | |
4599 | # linker. It appears as though 1/2 is a usable value. | |
4600 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4601 | fi | |
d9898ee8 | 4602 | ;; |
4603 | esac | |
d9898ee8 | 4604 | |
8d138742 | 4605 | fi |
d9898ee8 | 4606 | |
8d138742 CE |
4607 | if test -n $lt_cv_sys_max_cmd_len ; then |
4608 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
4609 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
4610 | else | |
4611 | { $as_echo "$as_me:$LINENO: result: none" >&5 | |
4612 | $as_echo "none" >&6; } | |
d9898ee8 | 4613 | fi |
8d138742 | 4614 | max_cmd_len=$lt_cv_sys_max_cmd_len |
d9898ee8 | 4615 | |
4616 | ||
4617 | ||
4618 | ||
d9898ee8 | 4619 | |
d9898ee8 | 4620 | |
8d138742 CE |
4621 | : ${CP="cp -f"} |
4622 | : ${MV="mv -f"} | |
4623 | : ${RM="rm -f"} | |
d9898ee8 | 4624 | |
8d138742 CE |
4625 | { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
4626 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4627 | # Try some XSI features | |
4628 | xsi_shell=no | |
4629 | ( _lt_dummy="a/b/c" | |
4630 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4631 | = c,a/b,, \ | |
4632 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4633 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4634 | && xsi_shell=yes | |
4635 | { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
4636 | $as_echo "$xsi_shell" >&6; } | |
d9898ee8 | 4637 | |
d9898ee8 | 4638 | |
8d138742 CE |
4639 | { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
4640 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
4641 | lt_shell_append=no | |
4642 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4643 | >/dev/null 2>&1 \ | |
4644 | && lt_shell_append=yes | |
4645 | { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
4646 | $as_echo "$lt_shell_append" >&6; } | |
d9898ee8 | 4647 | |
d9898ee8 | 4648 | |
8d138742 CE |
4649 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
4650 | lt_unset=unset | |
d9898ee8 | 4651 | else |
8d138742 CE |
4652 | lt_unset=false |
4653 | fi | |
d9898ee8 | 4654 | |
d9898ee8 | 4655 | |
d9898ee8 | 4656 | |
dd184caf | 4657 | |
d9898ee8 | 4658 | |
8d138742 CE |
4659 | # test EBCDIC or ASCII |
4660 | case `echo X|tr X '\101'` in | |
4661 | A) # ASCII based system | |
4662 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4663 | lt_SP2NL='tr \040 \012' | |
4664 | lt_NL2SP='tr \015\012 \040\040' | |
d9898ee8 | 4665 | ;; |
8d138742 CE |
4666 | *) # EBCDIC based system |
4667 | lt_SP2NL='tr \100 \n' | |
4668 | lt_NL2SP='tr \r\n \100\100' | |
d9898ee8 | 4669 | ;; |
8d138742 | 4670 | esac |
d9898ee8 | 4671 | |
4672 | ||
d9898ee8 | 4673 | |
d9898ee8 | 4674 | |
4675 | ||
8d138742 CE |
4676 | |
4677 | ||
4678 | ||
4679 | ||
4680 | { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
4681 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
4682 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
4683 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4684 | else |
8d138742 CE |
4685 | lt_cv_ld_reload_flag='-r' |
4686 | fi | |
4687 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
4688 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
4689 | reload_flag=$lt_cv_ld_reload_flag | |
4690 | case $reload_flag in | |
4691 | "" | " "*) ;; | |
4692 | *) reload_flag=" $reload_flag" ;; | |
4693 | esac | |
4694 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4695 | case $host_os in | |
4696 | darwin*) | |
4697 | if test "$GCC" = yes; then | |
4698 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4699 | else | |
4700 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4701 | fi | |
4702 | ;; | |
dd184caf | 4703 | esac |
d9898ee8 | 4704 | |
dd184caf | 4705 | |
d9898ee8 | 4706 | |
d9898ee8 | 4707 | |
dd184caf | 4708 | |
d9898ee8 | 4709 | |
d9898ee8 | 4710 | |
d9898ee8 | 4711 | |
8d138742 CE |
4712 | |
4713 | if test -n "$ac_tool_prefix"; then | |
4714 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4715 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4716 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4717 | $as_echo_n "checking for $ac_word... " >&6; } | |
4718 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
4719 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4720 | else |
8d138742 CE |
4721 | if test -n "$OBJDUMP"; then |
4722 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
d9898ee8 | 4723 | else |
8d138742 CE |
4724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4725 | for as_dir in $PATH | |
4726 | do | |
4727 | IFS=$as_save_IFS | |
4728 | test -z "$as_dir" && as_dir=. | |
4729 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4731 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4732 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4733 | break 2 | |
4734 | fi | |
4735 | done | |
4736 | done | |
4737 | IFS=$as_save_IFS | |
d9898ee8 | 4738 | |
8d138742 CE |
4739 | fi |
4740 | fi | |
4741 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
4742 | if test -n "$OBJDUMP"; then | |
4743 | { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | |
4744 | $as_echo "$OBJDUMP" >&6; } | |
4745 | else | |
4746 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4747 | $as_echo "no" >&6; } | |
d9898ee8 | 4748 | fi |
dd184caf | 4749 | |
d9898ee8 | 4750 | |
8d138742 CE |
4751 | fi |
4752 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
4753 | ac_ct_OBJDUMP=$OBJDUMP | |
4754 | # Extract the first word of "objdump", so it can be a program name with args. | |
4755 | set dummy objdump; ac_word=$2 | |
4756 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4757 | $as_echo_n "checking for $ac_word... " >&6; } | |
4758 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | |
4759 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4760 | else |
8d138742 CE |
4761 | if test -n "$ac_ct_OBJDUMP"; then |
4762 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
4763 | else | |
4764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4765 | for as_dir in $PATH | |
4766 | do | |
4767 | IFS=$as_save_IFS | |
4768 | test -z "$as_dir" && as_dir=. | |
4769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4770 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4771 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4772 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4773 | break 2 | |
4774 | fi | |
4775 | done | |
4776 | done | |
4777 | IFS=$as_save_IFS | |
d9898ee8 | 4778 | |
8d138742 CE |
4779 | fi |
4780 | fi | |
4781 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
4782 | if test -n "$ac_ct_OBJDUMP"; then | |
4783 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | |
4784 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
4785 | else | |
4786 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4787 | $as_echo "no" >&6; } | |
d9898ee8 | 4788 | fi |
dd184caf | 4789 | |
8d138742 CE |
4790 | if test "x$ac_ct_OBJDUMP" = x; then |
4791 | OBJDUMP="false" | |
4792 | else | |
4793 | case $cross_compiling:$ac_tool_warned in | |
4794 | yes:) | |
4795 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4796 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4797 | ac_tool_warned=yes ;; | |
4798 | esac | |
4799 | OBJDUMP=$ac_ct_OBJDUMP | |
4800 | fi | |
d9898ee8 | 4801 | else |
8d138742 | 4802 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
d9898ee8 | 4803 | fi |
4804 | ||
8d138742 | 4805 | test -z "$OBJDUMP" && OBJDUMP=objdump |
d9898ee8 | 4806 | |
4807 | ||
d9898ee8 | 4808 | |
d9898ee8 | 4809 | |
d9898ee8 | 4810 | |
dd184caf | 4811 | |
d9898ee8 | 4812 | |
d9898ee8 | 4813 | |
8d138742 CE |
4814 | |
4815 | { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 | |
4816 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
4817 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
4818 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4819 | else |
8d138742 CE |
4820 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4821 | lt_cv_file_magic_test_file= | |
4822 | lt_cv_deplibs_check_method='unknown' | |
4823 | # Need to set the preceding variable on all platforms that support | |
4824 | # interlibrary dependencies. | |
4825 | # 'none' -- dependencies not supported. | |
4826 | # `unknown' -- same as none, but documents that we really don't know. | |
4827 | # 'pass_all' -- all dependencies passed with no checks. | |
4828 | # 'test_compile' -- check by making test program. | |
4829 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4830 | # which responds to the $file_magic_cmd with a given extended regex. | |
4831 | # If you have `file' or equivalent on your system and you're not sure | |
4832 | # whether `pass_all' will *always* work, you probably want this one. | |
d9898ee8 | 4833 | |
8d138742 CE |
4834 | case $host_os in |
4835 | aix[4-9]*) | |
4836 | lt_cv_deplibs_check_method=pass_all | |
4837 | ;; | |
d9898ee8 | 4838 | |
8d138742 CE |
4839 | beos*) |
4840 | lt_cv_deplibs_check_method=pass_all | |
4841 | ;; | |
d9898ee8 | 4842 | |
8d138742 CE |
4843 | bsdi[45]*) |
4844 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4845 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4846 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4847 | ;; | |
d9898ee8 | 4848 | |
8d138742 CE |
4849 | cygwin*) |
4850 | # func_win32_libid is a shell function defined in ltmain.sh | |
4851 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4852 | lt_cv_file_magic_cmd='func_win32_libid' | |
4853 | ;; | |
d9898ee8 | 4854 | |
8d138742 CE |
4855 | mingw* | pw32*) |
4856 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4857 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4858 | # unless we find 'file', for example because we are cross-compiling. | |
4859 | if ( file / ) >/dev/null 2>&1; then | |
4860 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4861 | lt_cv_file_magic_cmd='func_win32_libid' | |
4862 | else | |
4863 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4864 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4865 | fi | |
4866 | ;; | |
d9898ee8 | 4867 | |
8d138742 CE |
4868 | cegcc) |
4869 | # use the weaker test based on 'objdump'. See mingw*. | |
4870 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
4871 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4872 | ;; | |
d9898ee8 | 4873 | |
8d138742 CE |
4874 | darwin* | rhapsody*) |
4875 | lt_cv_deplibs_check_method=pass_all | |
4876 | ;; | |
4877 | ||
4878 | freebsd* | dragonfly*) | |
4879 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4880 | case $host_cpu in | |
4881 | i*86 ) | |
4882 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4883 | # Let's accept both of them until this is cleared up. | |
4884 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4885 | lt_cv_file_magic_cmd=/usr/bin/file | |
4886 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4887 | ;; | |
4888 | esac | |
4889 | else | |
4890 | lt_cv_deplibs_check_method=pass_all | |
4891 | fi | |
4892 | ;; | |
dd184caf | 4893 | |
8d138742 CE |
4894 | gnu*) |
4895 | lt_cv_deplibs_check_method=pass_all | |
4896 | ;; | |
dd184caf | 4897 | |
8d138742 CE |
4898 | hpux10.20* | hpux11*) |
4899 | lt_cv_file_magic_cmd=/usr/bin/file | |
4900 | case $host_cpu in | |
4901 | ia64*) | |
4902 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4903 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4904 | ;; | |
4905 | hppa*64*) | |
4906 | 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]' | |
4907 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4908 | ;; | |
4909 | *) | |
4910 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
4911 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4912 | ;; | |
4913 | esac | |
4914 | ;; | |
d9898ee8 | 4915 | |
8d138742 CE |
4916 | interix[3-9]*) |
4917 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4918 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4919 | ;; | |
d9898ee8 | 4920 | |
8d138742 CE |
4921 | irix5* | irix6* | nonstopux*) |
4922 | case $LD in | |
4923 | *-32|*"-32 ") libmagic=32-bit;; | |
4924 | *-n32|*"-n32 ") libmagic=N32;; | |
4925 | *-64|*"-64 ") libmagic=64-bit;; | |
4926 | *) libmagic=never-match;; | |
4927 | esac | |
4928 | lt_cv_deplibs_check_method=pass_all | |
4929 | ;; | |
d9898ee8 | 4930 | |
8d138742 CE |
4931 | # This must be Linux ELF. |
4932 | linux* | k*bsd*-gnu) | |
4933 | lt_cv_deplibs_check_method=pass_all | |
4934 | ;; | |
d9898ee8 | 4935 | |
8d138742 CE |
4936 | netbsd*) |
4937 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4938 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4939 | else | |
4940 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
4941 | fi | |
4942 | ;; | |
d9898ee8 | 4943 | |
8d138742 CE |
4944 | newos6*) |
4945 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4946 | lt_cv_file_magic_cmd=/usr/bin/file | |
4947 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4948 | ;; | |
d9898ee8 | 4949 | |
8d138742 CE |
4950 | *nto* | *qnx*) |
4951 | lt_cv_deplibs_check_method=pass_all | |
4952 | ;; | |
d9898ee8 | 4953 | |
8d138742 CE |
4954 | openbsd*) |
4955 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4956 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
4957 | else | |
4958 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4959 | fi | |
4960 | ;; | |
d9898ee8 | 4961 | |
8d138742 CE |
4962 | osf3* | osf4* | osf5*) |
4963 | lt_cv_deplibs_check_method=pass_all | |
4964 | ;; | |
d9898ee8 | 4965 | |
8d138742 CE |
4966 | rdos*) |
4967 | lt_cv_deplibs_check_method=pass_all | |
4968 | ;; | |
d9898ee8 | 4969 | |
8d138742 CE |
4970 | solaris*) |
4971 | lt_cv_deplibs_check_method=pass_all | |
4972 | ;; | |
d9898ee8 | 4973 | |
8d138742 CE |
4974 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4975 | lt_cv_deplibs_check_method=pass_all | |
4976 | ;; | |
d9898ee8 | 4977 | |
8d138742 CE |
4978 | sysv4 | sysv4.3*) |
4979 | case $host_vendor in | |
4980 | motorola) | |
4981 | 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]' | |
4982 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4983 | ;; | |
4984 | ncr) | |
4985 | lt_cv_deplibs_check_method=pass_all | |
4986 | ;; | |
4987 | sequent) | |
4988 | lt_cv_file_magic_cmd='/bin/file' | |
4989 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4990 | ;; | |
4991 | sni) | |
4992 | lt_cv_file_magic_cmd='/bin/file' | |
4993 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4994 | lt_cv_file_magic_test_file=/lib/libc.so | |
4995 | ;; | |
4996 | siemens) | |
4997 | lt_cv_deplibs_check_method=pass_all | |
4998 | ;; | |
4999 | pc) | |
5000 | lt_cv_deplibs_check_method=pass_all | |
5001 | ;; | |
5002 | esac | |
5003 | ;; | |
d9898ee8 | 5004 | |
8d138742 CE |
5005 | tpf*) |
5006 | lt_cv_deplibs_check_method=pass_all | |
5007 | ;; | |
dd184caf | 5008 | esac |
d9898ee8 | 5009 | |
d9898ee8 | 5010 | fi |
8d138742 CE |
5011 | { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
5012 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5013 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5014 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5015 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
dd184caf | 5016 | |
d9898ee8 | 5017 | |
d9898ee8 | 5018 | |
d9898ee8 | 5019 | |
5020 | ||
5021 | ||
d9898ee8 | 5022 | |
dd184caf | 5023 | |
d9898ee8 | 5024 | |
8d138742 CE |
5025 | |
5026 | ||
5027 | ||
5028 | if test -n "$ac_tool_prefix"; then | |
5029 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5030 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5031 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5032 | $as_echo_n "checking for $ac_word... " >&6; } | |
5033 | if test "${ac_cv_prog_AR+set}" = set; then | |
5034 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5035 | else |
8d138742 CE |
5036 | if test -n "$AR"; then |
5037 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5038 | else | |
5039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5040 | for as_dir in $PATH | |
5041 | do | |
5042 | IFS=$as_save_IFS | |
5043 | test -z "$as_dir" && as_dir=. | |
5044 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5045 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5046 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5047 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5048 | break 2 | |
5049 | fi | |
5050 | done | |
5051 | done | |
5052 | IFS=$as_save_IFS | |
d9898ee8 | 5053 | |
8d138742 CE |
5054 | fi |
5055 | fi | |
5056 | AR=$ac_cv_prog_AR | |
5057 | if test -n "$AR"; then | |
5058 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 | |
5059 | $as_echo "$AR" >&6; } | |
5060 | else | |
5061 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5062 | $as_echo "no" >&6; } | |
d9898ee8 | 5063 | fi |
dd184caf | 5064 | |
d9898ee8 | 5065 | |
d9898ee8 | 5066 | fi |
8d138742 CE |
5067 | if test -z "$ac_cv_prog_AR"; then |
5068 | ac_ct_AR=$AR | |
5069 | # Extract the first word of "ar", so it can be a program name with args. | |
5070 | set dummy ar; ac_word=$2 | |
5071 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5072 | $as_echo_n "checking for $ac_word... " >&6; } | |
5073 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
5074 | $as_echo_n "(cached) " >&6 | |
5075 | else | |
5076 | if test -n "$ac_ct_AR"; then | |
5077 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5078 | else | |
5079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5080 | for as_dir in $PATH | |
5081 | do | |
5082 | IFS=$as_save_IFS | |
5083 | test -z "$as_dir" && as_dir=. | |
5084 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5085 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5086 | ac_cv_prog_ac_ct_AR="ar" | |
5087 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5088 | break 2 | |
5089 | fi | |
5090 | done | |
5091 | done | |
5092 | IFS=$as_save_IFS | |
d9898ee8 | 5093 | |
5094 | fi | |
8d138742 CE |
5095 | fi |
5096 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5097 | if test -n "$ac_ct_AR"; then | |
5098 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
5099 | $as_echo "$ac_ct_AR" >&6; } | |
5100 | else | |
5101 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5102 | $as_echo "no" >&6; } | |
5103 | fi | |
d9898ee8 | 5104 | |
8d138742 CE |
5105 | if test "x$ac_ct_AR" = x; then |
5106 | AR="false" | |
5107 | else | |
5108 | case $cross_compiling:$ac_tool_warned in | |
5109 | yes:) | |
5110 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5111 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5112 | ac_tool_warned=yes ;; | |
5113 | esac | |
5114 | AR=$ac_ct_AR | |
5115 | fi | |
5116 | else | |
5117 | AR="$ac_cv_prog_AR" | |
d9898ee8 | 5118 | fi |
5119 | ||
8d138742 CE |
5120 | test -z "$AR" && AR=ar |
5121 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
d9898ee8 | 5122 | |
8d138742 CE |
5123 | |
5124 | ||
5125 | ||
5126 | ||
5127 | ||
5128 | ||
5129 | ||
5130 | ||
5131 | ||
5132 | ||
5133 | if test -n "$ac_tool_prefix"; then | |
5134 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5135 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5136 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5137 | $as_echo_n "checking for $ac_word... " >&6; } | |
5138 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
5139 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5140 | else |
8d138742 CE |
5141 | if test -n "$STRIP"; then |
5142 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
d9898ee8 | 5143 | else |
5144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5145 | for as_dir in $PATH | |
5146 | do | |
5147 | IFS=$as_save_IFS | |
5148 | test -z "$as_dir" && as_dir=. | |
5149 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 5150 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
5151 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5152 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 5153 | break 2 |
5154 | fi | |
5155 | done | |
5156 | done | |
dd184caf | 5157 | IFS=$as_save_IFS |
d9898ee8 | 5158 | |
5159 | fi | |
5160 | fi | |
8d138742 CE |
5161 | STRIP=$ac_cv_prog_STRIP |
5162 | if test -n "$STRIP"; then | |
5163 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
5164 | $as_echo "$STRIP" >&6; } | |
d9898ee8 | 5165 | else |
8d138742 CE |
5166 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5167 | $as_echo "no" >&6; } | |
d9898ee8 | 5168 | fi |
5169 | ||
dd184caf | 5170 | |
d9898ee8 | 5171 | fi |
8d138742 CE |
5172 | if test -z "$ac_cv_prog_STRIP"; then |
5173 | ac_ct_STRIP=$STRIP | |
5174 | # Extract the first word of "strip", so it can be a program name with args. | |
5175 | set dummy strip; ac_word=$2 | |
5176 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5177 | $as_echo_n "checking for $ac_word... " >&6; } | |
5178 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
5179 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5180 | else |
8d138742 CE |
5181 | if test -n "$ac_ct_STRIP"; then |
5182 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
d9898ee8 | 5183 | else |
5184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5185 | for as_dir in $PATH | |
5186 | do | |
5187 | IFS=$as_save_IFS | |
5188 | test -z "$as_dir" && as_dir=. | |
5189 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 5190 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
5191 | ac_cv_prog_ac_ct_STRIP="strip" |
5192 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 5193 | break 2 |
5194 | fi | |
5195 | done | |
5196 | done | |
dd184caf | 5197 | IFS=$as_save_IFS |
d9898ee8 | 5198 | |
5199 | fi | |
5200 | fi | |
8d138742 CE |
5201 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5202 | if test -n "$ac_ct_STRIP"; then | |
5203 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5204 | $as_echo "$ac_ct_STRIP" >&6; } | |
d9898ee8 | 5205 | else |
8d138742 CE |
5206 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5207 | $as_echo "no" >&6; } | |
d9898ee8 | 5208 | fi |
5209 | ||
8d138742 CE |
5210 | if test "x$ac_ct_STRIP" = x; then |
5211 | STRIP=":" | |
dd184caf | 5212 | else |
5213 | case $cross_compiling:$ac_tool_warned in | |
5214 | yes:) | |
8d138742 CE |
5215 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
5216 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 5217 | ac_tool_warned=yes ;; |
5218 | esac | |
8d138742 | 5219 | STRIP=$ac_ct_STRIP |
dd184caf | 5220 | fi |
8d138742 CE |
5221 | else |
5222 | STRIP="$ac_cv_prog_STRIP" | |
d9898ee8 | 5223 | fi |
5224 | ||
8d138742 | 5225 | test -z "$STRIP" && STRIP=: |
d9898ee8 | 5226 | |
d9898ee8 | 5227 | |
d9898ee8 | 5228 | |
8d138742 CE |
5229 | |
5230 | ||
5231 | ||
5232 | if test -n "$ac_tool_prefix"; then | |
5233 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5234 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5235 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5236 | $as_echo_n "checking for $ac_word... " >&6; } | |
5237 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5238 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5239 | else |
8d138742 CE |
5240 | if test -n "$RANLIB"; then |
5241 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5242 | else | |
5243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5244 | for as_dir in $PATH | |
5245 | do | |
5246 | IFS=$as_save_IFS | |
5247 | test -z "$as_dir" && as_dir=. | |
5248 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5249 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5250 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5251 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5252 | break 2 | |
5253 | fi | |
5254 | done | |
5255 | done | |
5256 | IFS=$as_save_IFS | |
d9898ee8 | 5257 | |
8d138742 CE |
5258 | fi |
5259 | fi | |
5260 | RANLIB=$ac_cv_prog_RANLIB | |
5261 | if test -n "$RANLIB"; then | |
5262 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5263 | $as_echo "$RANLIB" >&6; } | |
5264 | else | |
5265 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5266 | $as_echo "no" >&6; } | |
d9898ee8 | 5267 | fi |
dd184caf | 5268 | |
d9898ee8 | 5269 | |
8d138742 CE |
5270 | fi |
5271 | if test -z "$ac_cv_prog_RANLIB"; then | |
5272 | ac_ct_RANLIB=$RANLIB | |
5273 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5274 | set dummy ranlib; ac_word=$2 | |
5275 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5276 | $as_echo_n "checking for $ac_word... " >&6; } | |
5277 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5278 | $as_echo_n "(cached) " >&6 | |
5279 | else | |
5280 | if test -n "$ac_ct_RANLIB"; then | |
5281 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5282 | else | |
5283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5284 | for as_dir in $PATH | |
5285 | do | |
5286 | IFS=$as_save_IFS | |
5287 | test -z "$as_dir" && as_dir=. | |
5288 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5289 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5290 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5291 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5292 | break 2 | |
5293 | fi | |
5294 | done | |
5295 | done | |
5296 | IFS=$as_save_IFS | |
d9898ee8 | 5297 | |
8d138742 CE |
5298 | fi |
5299 | fi | |
5300 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5301 | if test -n "$ac_ct_RANLIB"; then | |
5302 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5303 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5304 | else | |
5305 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5306 | $as_echo "no" >&6; } | |
5307 | fi | |
5308 | ||
5309 | if test "x$ac_ct_RANLIB" = x; then | |
5310 | RANLIB=":" | |
5311 | else | |
5312 | case $cross_compiling:$ac_tool_warned in | |
5313 | yes:) | |
5314 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5315 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5316 | ac_tool_warned=yes ;; | |
dd184caf | 5317 | esac |
8d138742 CE |
5318 | RANLIB=$ac_ct_RANLIB |
5319 | fi | |
d9898ee8 | 5320 | else |
8d138742 CE |
5321 | RANLIB="$ac_cv_prog_RANLIB" |
5322 | fi | |
d9898ee8 | 5323 | |
8d138742 | 5324 | test -z "$RANLIB" && RANLIB=: |
dd184caf | 5325 | |
dd184caf | 5326 | |
d9898ee8 | 5327 | |
dd184caf | 5328 | |
dd184caf | 5329 | |
d9898ee8 | 5330 | |
8d138742 CE |
5331 | # Determine commands to create old-style static archives. |
5332 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5333 | old_postinstall_cmds='chmod 644 $oldlib' | |
5334 | old_postuninstall_cmds= | |
dd184caf | 5335 | |
8d138742 CE |
5336 | if test -n "$RANLIB"; then |
5337 | case $host_os in | |
5338 | openbsd*) | |
5339 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5340 | ;; | |
5341 | *) | |
5342 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5343 | ;; | |
5344 | esac | |
5345 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
d9898ee8 | 5346 | fi |
dd184caf | 5347 | |
dd184caf | 5348 | |
d9898ee8 | 5349 | |
d9898ee8 | 5350 | |
d9898ee8 | 5351 | |
d9898ee8 | 5352 | |
d9898ee8 | 5353 | |
d9898ee8 | 5354 | |
d9898ee8 | 5355 | |
d9898ee8 | 5356 | |
d9898ee8 | 5357 | |
5358 | ||
5359 | ||
5360 | ||
d9898ee8 | 5361 | |
dd184caf | 5362 | |
d9898ee8 | 5363 | |
d9898ee8 | 5364 | |
dd184caf | 5365 | |
d9898ee8 | 5366 | |
d9898ee8 | 5367 | |
d9898ee8 | 5368 | |
d9898ee8 | 5369 | |
dd184caf | 5370 | |
d9898ee8 | 5371 | |
d9898ee8 | 5372 | |
dd184caf | 5373 | |
d9898ee8 | 5374 | |
d9898ee8 | 5375 | |
d9898ee8 | 5376 | |
d9898ee8 | 5377 | |
5378 | ||
d9898ee8 | 5379 | |
d9898ee8 | 5380 | |
8d138742 CE |
5381 | # If no C compiler was specified, use CC. |
5382 | LTCC=${LTCC-"$CC"} | |
dd184caf | 5383 | |
8d138742 CE |
5384 | # If no C compiler flags were specified, use CFLAGS. |
5385 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 5386 | |
8d138742 CE |
5387 | # Allow CC to be a program name with arguments. |
5388 | compiler=$CC | |
5389 | ||
5390 | ||
5391 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5392 | { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5393 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
5394 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5395 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5396 | else |
d9898ee8 | 5397 | |
8d138742 CE |
5398 | # These are sane defaults that work on at least a few old systems. |
5399 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
dd184caf | 5400 | |
8d138742 CE |
5401 | # Character class describing NM global symbol codes. |
5402 | symcode='[BCDEGRST]' | |
d9898ee8 | 5403 | |
8d138742 CE |
5404 | # Regexp to match symbols that can be accessed directly from C. |
5405 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5406 | ||
5407 | # Define system-specific variables. | |
5408 | case $host_os in | |
5409 | aix*) | |
5410 | symcode='[BCDT]' | |
5411 | ;; | |
5412 | cygwin* | mingw* | pw32* | cegcc*) | |
5413 | symcode='[ABCDGISTW]' | |
5414 | ;; | |
5415 | hpux*) | |
5416 | if test "$host_cpu" = ia64; then | |
5417 | symcode='[ABCDEGRST]' | |
dd184caf | 5418 | fi |
8d138742 CE |
5419 | ;; |
5420 | irix* | nonstopux*) | |
5421 | symcode='[BCDEGRST]' | |
5422 | ;; | |
5423 | osf*) | |
5424 | symcode='[BCDEGQRST]' | |
5425 | ;; | |
5426 | solaris*) | |
5427 | symcode='[BDRT]' | |
5428 | ;; | |
5429 | sco3.2v5*) | |
5430 | symcode='[DT]' | |
5431 | ;; | |
5432 | sysv4.2uw2*) | |
5433 | symcode='[DT]' | |
5434 | ;; | |
5435 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5436 | symcode='[ABDT]' | |
5437 | ;; | |
5438 | sysv4) | |
5439 | symcode='[DFNSTU]' | |
5440 | ;; | |
5441 | esac | |
5442 | ||
5443 | # If we're using GNU nm, then use its standard symbol codes. | |
5444 | case `$NM -V 2>&1` in | |
5445 | *GNU* | *'with BFD'*) | |
5446 | symcode='[ABCDGIRSTW]' ;; | |
5447 | esac | |
d9898ee8 | 5448 | |
8d138742 CE |
5449 | # Transform an extracted symbol line into a proper C declaration. |
5450 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5451 | # so use this general approach. | |
5452 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
d9898ee8 | 5453 | |
8d138742 CE |
5454 | # Transform an extracted symbol line into symbol name and symbol address |
5455 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5456 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
5457 | ||
5458 | # Handle CRLF in mingw tool chain | |
5459 | opt_cr= | |
5460 | case $build_os in | |
5461 | mingw*) | |
5462 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5463 | ;; | |
dd184caf | 5464 | esac |
8d138742 CE |
5465 | |
5466 | # Try without a prefix underscore, then with it. | |
5467 | for ac_symprfx in "" "_"; do | |
5468 | ||
5469 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5470 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5471 | ||
5472 | # Write the raw and C identifiers. | |
5473 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5474 | # Fake it for dumpbin and say T for any non-static function | |
5475 | # and D for any global variable. | |
5476 | # Also find C++ and __fastcall symbols from MSVC++, | |
5477 | # which start with @ or ?. | |
5478 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5479 | " {last_section=section; section=\$ 3};"\ | |
5480 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5481 | " \$ 0!~/External *\|/{next};"\ | |
5482 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5483 | " {if(hide[section]) next};"\ | |
5484 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5485 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5486 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5487 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5488 | " ' prfx=^$ac_symprfx" | |
5489 | else | |
5490 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5491 | fi | |
5492 | ||
5493 | # Check to see that the pipe works correctly. | |
5494 | pipe_works=no | |
5495 | ||
5496 | rm -f conftest* | |
5497 | cat > conftest.$ac_ext <<_LT_EOF | |
5498 | #ifdef __cplusplus | |
5499 | extern "C" { | |
5500 | #endif | |
5501 | char nm_test_var; | |
5502 | void nm_test_func(void); | |
5503 | void nm_test_func(void){} | |
5504 | #ifdef __cplusplus | |
5505 | } | |
5506 | #endif | |
5507 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5508 | _LT_EOF | |
5509 | ||
5510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5511 | (eval $ac_compile) 2>&5 | |
d9898ee8 | 5512 | ac_status=$? |
8d138742 CE |
5513 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5514 | (exit $ac_status); }; then | |
5515 | # Now try to grab the symbols. | |
5516 | nlist=conftest.nm | |
5517 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5518 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
d9898ee8 | 5519 | ac_status=$? |
8d138742 CE |
5520 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5521 | (exit $ac_status); } && test -s "$nlist"; then | |
5522 | # Try sorting and uniquifying the output. | |
5523 | if sort "$nlist" | uniq > "$nlist"T; then | |
5524 | mv -f "$nlist"T "$nlist" | |
5525 | else | |
5526 | rm -f "$nlist"T | |
5527 | fi | |
d9898ee8 | 5528 | |
8d138742 CE |
5529 | # Make sure that we snagged all the symbols we need. |
5530 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5531 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5532 | cat <<_LT_EOF > conftest.$ac_ext | |
5533 | #ifdef __cplusplus | |
5534 | extern "C" { | |
d9898ee8 | 5535 | #endif |
5536 | ||
8d138742 CE |
5537 | _LT_EOF |
5538 | # Now generate the symbol file. | |
5539 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
d9898ee8 | 5540 | |
8d138742 | 5541 | cat <<_LT_EOF >> conftest.$ac_ext |
dd184caf | 5542 | |
8d138742 CE |
5543 | /* The mapping between symbol names and symbols. */ |
5544 | const struct { | |
5545 | const char *name; | |
5546 | void *address; | |
5547 | } | |
5548 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5549 | { | |
5550 | { "@PROGRAM@", (void *) 0 }, | |
5551 | _LT_EOF | |
5552 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5553 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5554 | {0, (void *) 0} | |
5555 | }; | |
d9898ee8 | 5556 | |
8d138742 CE |
5557 | /* This works around a problem in FreeBSD linker */ |
5558 | #ifdef FREEBSD_WORKAROUND | |
5559 | static const void *lt_preloaded_setup() { | |
5560 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5561 | } | |
5562 | #endif | |
d9898ee8 | 5563 | |
8d138742 CE |
5564 | #ifdef __cplusplus |
5565 | } | |
5566 | #endif | |
5567 | _LT_EOF | |
5568 | # Now try linking the two files. | |
5569 | mv conftest.$ac_objext conftstm.$ac_objext | |
5570 | lt_save_LIBS="$LIBS" | |
5571 | lt_save_CFLAGS="$CFLAGS" | |
5572 | LIBS="conftstm.$ac_objext" | |
5573 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5575 | (eval $ac_link) 2>&5 | |
d9898ee8 | 5576 | ac_status=$? |
8d138742 CE |
5577 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5578 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5579 | pipe_works=yes | |
5580 | fi | |
5581 | LIBS="$lt_save_LIBS" | |
5582 | CFLAGS="$lt_save_CFLAGS" | |
5583 | else | |
5584 | echo "cannot find nm_test_func in $nlist" >&5 | |
5585 | fi | |
5586 | else | |
5587 | echo "cannot find nm_test_var in $nlist" >&5 | |
5588 | fi | |
5589 | else | |
5590 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5591 | fi | |
5592 | else | |
5593 | echo "$progname: failed program was:" >&5 | |
5594 | cat conftest.$ac_ext >&5 | |
5595 | fi | |
5596 | rm -rf conftest* conftst* | |
d9898ee8 | 5597 | |
8d138742 CE |
5598 | # Do not use the global_symbol_pipe unless it works. |
5599 | if test "$pipe_works" = yes; then | |
5600 | break | |
5601 | else | |
5602 | lt_cv_sys_global_symbol_pipe= | |
5603 | fi | |
5604 | done | |
dd184caf | 5605 | |
8d138742 | 5606 | fi |
d9898ee8 | 5607 | |
8d138742 CE |
5608 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
5609 | lt_cv_sys_global_symbol_to_cdecl= | |
d9898ee8 | 5610 | fi |
8d138742 CE |
5611 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
5612 | { $as_echo "$as_me:$LINENO: result: failed" >&5 | |
5613 | $as_echo "failed" >&6; } | |
d9898ee8 | 5614 | else |
8d138742 CE |
5615 | { $as_echo "$as_me:$LINENO: result: ok" >&5 |
5616 | $as_echo "ok" >&6; } | |
d9898ee8 | 5617 | fi |
5618 | ||
d9898ee8 | 5619 | |
5620 | ||
5621 | ||
d9898ee8 | 5622 | |
d9898ee8 | 5623 | |
d9898ee8 | 5624 | |
d9898ee8 | 5625 | |
d9898ee8 | 5626 | |
d9898ee8 | 5627 | |
d9898ee8 | 5628 | |
d9898ee8 | 5629 | |
d9898ee8 | 5630 | |
d9898ee8 | 5631 | |
d9898ee8 | 5632 | |
5633 | ||
5634 | ||
5635 | ||
ac40fd9e | 5636 | |
d9898ee8 | 5637 | |
d9898ee8 | 5638 | |
d9898ee8 | 5639 | |
d9898ee8 | 5640 | |
8d138742 CE |
5641 | # Check whether --enable-libtool-lock was given. |
5642 | if test "${enable_libtool_lock+set}" = set; then | |
5643 | enableval=$enable_libtool_lock; | |
5644 | fi | |
d9898ee8 | 5645 | |
8d138742 | 5646 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
d9898ee8 | 5647 | |
8d138742 CE |
5648 | # Some flags need to be propagated to the compiler or linker for good |
5649 | # libtool support. | |
5650 | case $host in | |
5651 | ia64-*-hpux*) | |
5652 | # Find out which ABI we are using. | |
5653 | echo 'int i;' > conftest.$ac_ext | |
5654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5655 | (eval $ac_compile) 2>&5 | |
5656 | ac_status=$? | |
5657 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5658 | (exit $ac_status); }; then | |
5659 | case `/usr/bin/file conftest.$ac_objext` in | |
5660 | *ELF-32*) | |
5661 | HPUX_IA64_MODE="32" | |
5662 | ;; | |
5663 | *ELF-64*) | |
5664 | HPUX_IA64_MODE="64" | |
5665 | ;; | |
5666 | esac | |
d9898ee8 | 5667 | fi |
8d138742 | 5668 | rm -rf conftest* |
d9898ee8 | 5669 | ;; |
8d138742 CE |
5670 | *-*-irix6*) |
5671 | # Find out which ABI we are using. | |
5672 | echo '#line 5672 "configure"' > conftest.$ac_ext | |
5673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5674 | (eval $ac_compile) 2>&5 | |
5675 | ac_status=$? | |
5676 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5677 | (exit $ac_status); }; then | |
5678 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5679 | case `/usr/bin/file conftest.$ac_objext` in | |
5680 | *32-bit*) | |
5681 | LD="${LD-ld} -melf32bsmip" | |
5682 | ;; | |
5683 | *N32*) | |
5684 | LD="${LD-ld} -melf32bmipn32" | |
5685 | ;; | |
5686 | *64-bit*) | |
5687 | LD="${LD-ld} -melf64bmip" | |
5688 | ;; | |
5689 | esac | |
5690 | else | |
5691 | case `/usr/bin/file conftest.$ac_objext` in | |
5692 | *32-bit*) | |
5693 | LD="${LD-ld} -32" | |
5694 | ;; | |
5695 | *N32*) | |
5696 | LD="${LD-ld} -n32" | |
5697 | ;; | |
5698 | *64-bit*) | |
5699 | LD="${LD-ld} -64" | |
5700 | ;; | |
5701 | esac | |
5702 | fi | |
d9898ee8 | 5703 | fi |
8d138742 | 5704 | rm -rf conftest* |
d9898ee8 | 5705 | ;; |
d9898ee8 | 5706 | |
8d138742 CE |
5707 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
5708 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5709 | # Find out which ABI we are using. | |
5710 | echo 'int i;' > conftest.$ac_ext | |
5711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5712 | (eval $ac_compile) 2>&5 | |
5713 | ac_status=$? | |
5714 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5715 | (exit $ac_status); }; then | |
5716 | case `/usr/bin/file conftest.o` in | |
5717 | *32-bit*) | |
5718 | case $host in | |
5719 | x86_64-*kfreebsd*-gnu) | |
5720 | LD="${LD-ld} -m elf_i386_fbsd" | |
5721 | ;; | |
5722 | x86_64-*linux*) | |
5723 | LD="${LD-ld} -m elf_i386" | |
5724 | ;; | |
5725 | ppc64-*linux*|powerpc64-*linux*) | |
5726 | LD="${LD-ld} -m elf32ppclinux" | |
5727 | ;; | |
5728 | s390x-*linux*) | |
5729 | LD="${LD-ld} -m elf_s390" | |
5730 | ;; | |
5731 | sparc64-*linux*) | |
5732 | LD="${LD-ld} -m elf32_sparc" | |
5733 | ;; | |
5734 | esac | |
5735 | ;; | |
5736 | *64-bit*) | |
5737 | case $host in | |
5738 | x86_64-*kfreebsd*-gnu) | |
5739 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5740 | ;; | |
5741 | x86_64-*linux*) | |
5742 | LD="${LD-ld} -m elf_x86_64" | |
5743 | ;; | |
5744 | ppc*-*linux*|powerpc*-*linux*) | |
5745 | LD="${LD-ld} -m elf64ppc" | |
5746 | ;; | |
5747 | s390*-*linux*|s390*-*tpf*) | |
5748 | LD="${LD-ld} -m elf64_s390" | |
5749 | ;; | |
5750 | sparc*-*linux*) | |
5751 | LD="${LD-ld} -m elf64_sparc" | |
5752 | ;; | |
5753 | esac | |
5754 | ;; | |
5755 | esac | |
5756 | fi | |
5757 | rm -rf conftest* | |
d9898ee8 | 5758 | ;; |
d9898ee8 | 5759 | |
8d138742 CE |
5760 | *-*-sco3.2v5*) |
5761 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5762 | SAVE_CFLAGS="$CFLAGS" | |
5763 | CFLAGS="$CFLAGS -belf" | |
5764 | { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
5765 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
5766 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
5767 | $as_echo_n "(cached) " >&6 | |
5768 | else | |
5769 | ac_ext=c | |
5770 | ac_cpp='$CPP $CPPFLAGS' | |
5771 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5772 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5773 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 5774 | |
8d138742 CE |
5775 | cat >conftest.$ac_ext <<_ACEOF |
5776 | /* confdefs.h. */ | |
5777 | _ACEOF | |
5778 | cat confdefs.h >>conftest.$ac_ext | |
5779 | cat >>conftest.$ac_ext <<_ACEOF | |
5780 | /* end confdefs.h. */ | |
d9898ee8 | 5781 | |
8d138742 CE |
5782 | int |
5783 | main () | |
5784 | { | |
d9898ee8 | 5785 | |
8d138742 CE |
5786 | ; |
5787 | return 0; | |
5788 | } | |
5789 | _ACEOF | |
5790 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5791 | if { (ac_try="$ac_link" | |
5792 | case "(($ac_try" in | |
5793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5794 | *) ac_try_echo=$ac_try;; | |
5795 | esac | |
5796 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5797 | $as_echo "$ac_try_echo") >&5 | |
5798 | (eval "$ac_link") 2>conftest.er1 | |
5799 | ac_status=$? | |
5800 | grep -v '^ *+' conftest.er1 >conftest.err | |
5801 | rm -f conftest.er1 | |
5802 | cat conftest.err >&5 | |
5803 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5804 | (exit $ac_status); } && { | |
5805 | test -z "$ac_c_werror_flag" || | |
5806 | test ! -s conftest.err | |
5807 | } && test -s conftest$ac_exeext && { | |
5808 | test "$cross_compiling" = yes || | |
5809 | $as_test_x conftest$ac_exeext | |
5810 | }; then | |
5811 | lt_cv_cc_needs_belf=yes | |
5812 | else | |
5813 | $as_echo "$as_me: failed program was:" >&5 | |
5814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 5815 | |
8d138742 CE |
5816 | lt_cv_cc_needs_belf=no |
5817 | fi | |
d9898ee8 | 5818 | |
8d138742 CE |
5819 | rm -rf conftest.dSYM |
5820 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5821 | conftest$ac_exeext conftest.$ac_ext | |
5822 | ac_ext=c | |
5823 | ac_cpp='$CPP $CPPFLAGS' | |
5824 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5825 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5826 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 5827 | |
8d138742 CE |
5828 | fi |
5829 | { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
5830 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
5831 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5832 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5833 | CFLAGS="$SAVE_CFLAGS" | |
5834 | fi | |
5835 | ;; | |
5836 | sparc*-*solaris*) | |
5837 | # Find out which ABI we are using. | |
5838 | echo 'int i;' > conftest.$ac_ext | |
d9898ee8 | 5839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5840 | (eval $ac_compile) 2>&5 | |
5841 | ac_status=$? | |
8d138742 | 5842 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 5843 | (exit $ac_status); }; then |
8d138742 CE |
5844 | case `/usr/bin/file conftest.o` in |
5845 | *64-bit*) | |
5846 | case $lt_cv_prog_gnu_ld in | |
5847 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5848 | *) | |
5849 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5850 | LD="${LD-ld} -64" | |
5851 | fi | |
5852 | ;; | |
5853 | esac | |
5854 | ;; | |
5855 | esac | |
5856 | fi | |
5857 | rm -rf conftest* | |
5858 | ;; | |
5859 | esac | |
d9898ee8 | 5860 | |
8d138742 | 5861 | need_locks="$enable_libtool_lock" |
d9898ee8 | 5862 | |
d9898ee8 | 5863 | |
8d138742 CE |
5864 | case $host_os in |
5865 | rhapsody* | darwin*) | |
5866 | if test -n "$ac_tool_prefix"; then | |
5867 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
5868 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5869 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5870 | $as_echo_n "checking for $ac_word... " >&6; } | |
5871 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then | |
5872 | $as_echo_n "(cached) " >&6 | |
5873 | else | |
5874 | if test -n "$DSYMUTIL"; then | |
5875 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
5876 | else | |
5877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5878 | for as_dir in $PATH | |
5879 | do | |
5880 | IFS=$as_save_IFS | |
5881 | test -z "$as_dir" && as_dir=. | |
5882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5883 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5884 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
5885 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5886 | break 2 | |
5887 | fi | |
5888 | done | |
5889 | done | |
5890 | IFS=$as_save_IFS | |
d9898ee8 | 5891 | |
8d138742 CE |
5892 | fi |
5893 | fi | |
5894 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
5895 | if test -n "$DSYMUTIL"; then | |
5896 | { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 | |
5897 | $as_echo "$DSYMUTIL" >&6; } | |
5898 | else | |
5899 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5900 | $as_echo "no" >&6; } | |
5901 | fi | |
d9898ee8 | 5902 | |
d9898ee8 | 5903 | |
8d138742 CE |
5904 | fi |
5905 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
5906 | ac_ct_DSYMUTIL=$DSYMUTIL | |
5907 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
5908 | set dummy dsymutil; ac_word=$2 | |
5909 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5910 | $as_echo_n "checking for $ac_word... " >&6; } | |
5911 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then | |
5912 | $as_echo_n "(cached) " >&6 | |
5913 | else | |
5914 | if test -n "$ac_ct_DSYMUTIL"; then | |
5915 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
5916 | else | |
5917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5918 | for as_dir in $PATH | |
5919 | do | |
5920 | IFS=$as_save_IFS | |
5921 | test -z "$as_dir" && as_dir=. | |
5922 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5923 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5924 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
5925 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5926 | break 2 | |
d9898ee8 | 5927 | fi |
5928 | done | |
8d138742 CE |
5929 | done |
5930 | IFS=$as_save_IFS | |
d9898ee8 | 5931 | |
5932 | fi | |
d9898ee8 | 5933 | fi |
8d138742 CE |
5934 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
5935 | if test -n "$ac_ct_DSYMUTIL"; then | |
5936 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 | |
5937 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
d9898ee8 | 5938 | else |
8d138742 CE |
5939 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5940 | $as_echo "no" >&6; } | |
d9898ee8 | 5941 | fi |
5942 | ||
8d138742 CE |
5943 | if test "x$ac_ct_DSYMUTIL" = x; then |
5944 | DSYMUTIL=":" | |
5945 | else | |
5946 | case $cross_compiling:$ac_tool_warned in | |
5947 | yes:) | |
5948 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5949 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5950 | ac_tool_warned=yes ;; | |
5951 | esac | |
5952 | DSYMUTIL=$ac_ct_DSYMUTIL | |
5953 | fi | |
d9898ee8 | 5954 | else |
8d138742 | 5955 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
d9898ee8 | 5956 | fi |
d9898ee8 | 5957 | |
8d138742 CE |
5958 | if test -n "$ac_tool_prefix"; then |
5959 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
5960 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5961 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5962 | $as_echo_n "checking for $ac_word... " >&6; } | |
5963 | if test "${ac_cv_prog_NMEDIT+set}" = set; then | |
5964 | $as_echo_n "(cached) " >&6 | |
5965 | else | |
5966 | if test -n "$NMEDIT"; then | |
5967 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
5968 | else | |
5969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5970 | for as_dir in $PATH | |
5971 | do | |
5972 | IFS=$as_save_IFS | |
5973 | test -z "$as_dir" && as_dir=. | |
5974 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5976 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
5977 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5978 | break 2 | |
d9898ee8 | 5979 | fi |
8d138742 CE |
5980 | done |
5981 | done | |
5982 | IFS=$as_save_IFS | |
d9898ee8 | 5983 | |
8d138742 CE |
5984 | fi |
5985 | fi | |
5986 | NMEDIT=$ac_cv_prog_NMEDIT | |
5987 | if test -n "$NMEDIT"; then | |
5988 | { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 | |
5989 | $as_echo "$NMEDIT" >&6; } | |
5990 | else | |
5991 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5992 | $as_echo "no" >&6; } | |
5993 | fi | |
d9898ee8 | 5994 | |
d9898ee8 | 5995 | |
8d138742 CE |
5996 | fi |
5997 | if test -z "$ac_cv_prog_NMEDIT"; then | |
5998 | ac_ct_NMEDIT=$NMEDIT | |
5999 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6000 | set dummy nmedit; ac_word=$2 | |
6001 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6002 | $as_echo_n "checking for $ac_word... " >&6; } | |
6003 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then | |
6004 | $as_echo_n "(cached) " >&6 | |
6005 | else | |
6006 | if test -n "$ac_ct_NMEDIT"; then | |
6007 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6008 | else | |
6009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6010 | for as_dir in $PATH | |
6011 | do | |
6012 | IFS=$as_save_IFS | |
6013 | test -z "$as_dir" && as_dir=. | |
6014 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6015 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6016 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
6017 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6018 | break 2 | |
6019 | fi | |
6020 | done | |
6021 | done | |
6022 | IFS=$as_save_IFS | |
d9898ee8 | 6023 | |
8d138742 CE |
6024 | fi |
6025 | fi | |
6026 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6027 | if test -n "$ac_ct_NMEDIT"; then | |
6028 | { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 | |
6029 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
6030 | else | |
6031 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6032 | $as_echo "no" >&6; } | |
6033 | fi | |
d9898ee8 | 6034 | |
8d138742 CE |
6035 | if test "x$ac_ct_NMEDIT" = x; then |
6036 | NMEDIT=":" | |
6037 | else | |
6038 | case $cross_compiling:$ac_tool_warned in | |
6039 | yes:) | |
6040 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6041 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6042 | ac_tool_warned=yes ;; | |
6043 | esac | |
6044 | NMEDIT=$ac_ct_NMEDIT | |
6045 | fi | |
6046 | else | |
6047 | NMEDIT="$ac_cv_prog_NMEDIT" | |
6048 | fi | |
d9898ee8 | 6049 | |
8d138742 CE |
6050 | if test -n "$ac_tool_prefix"; then |
6051 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6052 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
6053 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6054 | $as_echo_n "checking for $ac_word... " >&6; } | |
6055 | if test "${ac_cv_prog_LIPO+set}" = set; then | |
6056 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6057 | else |
8d138742 CE |
6058 | if test -n "$LIPO"; then |
6059 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
d9898ee8 | 6060 | else |
6061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6062 | for as_dir in $PATH | |
6063 | do | |
6064 | IFS=$as_save_IFS | |
6065 | test -z "$as_dir" && as_dir=. | |
6066 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6067 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6068 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
6069 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6070 | break 2 |
6071 | fi | |
6072 | done | |
6073 | done | |
dd184caf | 6074 | IFS=$as_save_IFS |
d9898ee8 | 6075 | |
6076 | fi | |
6077 | fi | |
8d138742 CE |
6078 | LIPO=$ac_cv_prog_LIPO |
6079 | if test -n "$LIPO"; then | |
6080 | { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 | |
6081 | $as_echo "$LIPO" >&6; } | |
d9898ee8 | 6082 | else |
8d138742 CE |
6083 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6084 | $as_echo "no" >&6; } | |
d9898ee8 | 6085 | fi |
6086 | ||
dd184caf | 6087 | |
d9898ee8 | 6088 | fi |
8d138742 CE |
6089 | if test -z "$ac_cv_prog_LIPO"; then |
6090 | ac_ct_LIPO=$LIPO | |
6091 | # Extract the first word of "lipo", so it can be a program name with args. | |
6092 | set dummy lipo; ac_word=$2 | |
6093 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6094 | $as_echo_n "checking for $ac_word... " >&6; } | |
6095 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then | |
6096 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6097 | else |
8d138742 CE |
6098 | if test -n "$ac_ct_LIPO"; then |
6099 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
d9898ee8 | 6100 | else |
6101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6102 | for as_dir in $PATH | |
6103 | do | |
6104 | IFS=$as_save_IFS | |
6105 | test -z "$as_dir" && as_dir=. | |
6106 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6107 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6108 | ac_cv_prog_ac_ct_LIPO="lipo" |
6109 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6110 | break 2 |
6111 | fi | |
6112 | done | |
6113 | done | |
dd184caf | 6114 | IFS=$as_save_IFS |
d9898ee8 | 6115 | |
d9898ee8 | 6116 | fi |
6117 | fi | |
8d138742 CE |
6118 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
6119 | if test -n "$ac_ct_LIPO"; then | |
6120 | { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 | |
6121 | $as_echo "$ac_ct_LIPO" >&6; } | |
d9898ee8 | 6122 | else |
8d138742 CE |
6123 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6124 | $as_echo "no" >&6; } | |
d9898ee8 | 6125 | fi |
6126 | ||
8d138742 CE |
6127 | if test "x$ac_ct_LIPO" = x; then |
6128 | LIPO=":" | |
dd184caf | 6129 | else |
6130 | case $cross_compiling:$ac_tool_warned in | |
6131 | yes:) | |
8d138742 CE |
6132 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
6133 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 6134 | ac_tool_warned=yes ;; |
6135 | esac | |
8d138742 | 6136 | LIPO=$ac_ct_LIPO |
dd184caf | 6137 | fi |
d9898ee8 | 6138 | else |
8d138742 | 6139 | LIPO="$ac_cv_prog_LIPO" |
d9898ee8 | 6140 | fi |
6141 | ||
8d138742 CE |
6142 | if test -n "$ac_tool_prefix"; then |
6143 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6144 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
6145 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6146 | $as_echo_n "checking for $ac_word... " >&6; } | |
6147 | if test "${ac_cv_prog_OTOOL+set}" = set; then | |
6148 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6149 | else |
8d138742 CE |
6150 | if test -n "$OTOOL"; then |
6151 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
d9898ee8 | 6152 | else |
6153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6154 | for as_dir in $PATH | |
6155 | do | |
6156 | IFS=$as_save_IFS | |
6157 | test -z "$as_dir" && as_dir=. | |
6158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6159 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6160 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
6161 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6162 | break 2 |
6163 | fi | |
6164 | done | |
6165 | done | |
dd184caf | 6166 | IFS=$as_save_IFS |
d9898ee8 | 6167 | |
6168 | fi | |
6169 | fi | |
8d138742 CE |
6170 | OTOOL=$ac_cv_prog_OTOOL |
6171 | if test -n "$OTOOL"; then | |
6172 | { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 | |
6173 | $as_echo "$OTOOL" >&6; } | |
d9898ee8 | 6174 | else |
8d138742 CE |
6175 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6176 | $as_echo "no" >&6; } | |
d9898ee8 | 6177 | fi |
6178 | ||
dd184caf | 6179 | |
d9898ee8 | 6180 | fi |
8d138742 CE |
6181 | if test -z "$ac_cv_prog_OTOOL"; then |
6182 | ac_ct_OTOOL=$OTOOL | |
6183 | # Extract the first word of "otool", so it can be a program name with args. | |
6184 | set dummy otool; ac_word=$2 | |
6185 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6186 | $as_echo_n "checking for $ac_word... " >&6; } | |
6187 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then | |
6188 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6189 | else |
8d138742 CE |
6190 | if test -n "$ac_ct_OTOOL"; then |
6191 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
d9898ee8 | 6192 | else |
6193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6194 | for as_dir in $PATH | |
6195 | do | |
6196 | IFS=$as_save_IFS | |
6197 | test -z "$as_dir" && as_dir=. | |
6198 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6199 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6200 | ac_cv_prog_ac_ct_OTOOL="otool" |
6201 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6202 | break 2 |
6203 | fi | |
6204 | done | |
6205 | done | |
dd184caf | 6206 | IFS=$as_save_IFS |
d9898ee8 | 6207 | |
d9898ee8 | 6208 | fi |
6209 | fi | |
8d138742 CE |
6210 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
6211 | if test -n "$ac_ct_OTOOL"; then | |
6212 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 | |
6213 | $as_echo "$ac_ct_OTOOL" >&6; } | |
d9898ee8 | 6214 | else |
8d138742 CE |
6215 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6216 | $as_echo "no" >&6; } | |
d9898ee8 | 6217 | fi |
6218 | ||
8d138742 CE |
6219 | if test "x$ac_ct_OTOOL" = x; then |
6220 | OTOOL=":" | |
dd184caf | 6221 | else |
6222 | case $cross_compiling:$ac_tool_warned in | |
6223 | yes:) | |
8d138742 CE |
6224 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
6225 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 6226 | ac_tool_warned=yes ;; |
6227 | esac | |
8d138742 | 6228 | OTOOL=$ac_ct_OTOOL |
dd184caf | 6229 | fi |
d9898ee8 | 6230 | else |
8d138742 | 6231 | OTOOL="$ac_cv_prog_OTOOL" |
d9898ee8 | 6232 | fi |
6233 | ||
8d138742 CE |
6234 | if test -n "$ac_tool_prefix"; then |
6235 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6236 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
6237 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6238 | $as_echo_n "checking for $ac_word... " >&6; } | |
6239 | if test "${ac_cv_prog_OTOOL64+set}" = set; then | |
6240 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6241 | else |
8d138742 CE |
6242 | if test -n "$OTOOL64"; then |
6243 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
d9898ee8 | 6244 | else |
6245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6246 | for as_dir in $PATH | |
6247 | do | |
6248 | IFS=$as_save_IFS | |
6249 | test -z "$as_dir" && as_dir=. | |
6250 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6251 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6252 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
6253 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6254 | break 2 |
6255 | fi | |
6256 | done | |
6257 | done | |
dd184caf | 6258 | IFS=$as_save_IFS |
d9898ee8 | 6259 | |
6260 | fi | |
6261 | fi | |
8d138742 CE |
6262 | OTOOL64=$ac_cv_prog_OTOOL64 |
6263 | if test -n "$OTOOL64"; then | |
6264 | { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 | |
6265 | $as_echo "$OTOOL64" >&6; } | |
d9898ee8 | 6266 | else |
8d138742 CE |
6267 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6268 | $as_echo "no" >&6; } | |
d9898ee8 | 6269 | fi |
6270 | ||
dd184caf | 6271 | |
d9898ee8 | 6272 | fi |
8d138742 CE |
6273 | if test -z "$ac_cv_prog_OTOOL64"; then |
6274 | ac_ct_OTOOL64=$OTOOL64 | |
6275 | # Extract the first word of "otool64", so it can be a program name with args. | |
6276 | set dummy otool64; ac_word=$2 | |
6277 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6278 | $as_echo_n "checking for $ac_word... " >&6; } | |
6279 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then | |
6280 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6281 | else |
8d138742 CE |
6282 | if test -n "$ac_ct_OTOOL64"; then |
6283 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
d9898ee8 | 6284 | else |
6285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6286 | for as_dir in $PATH | |
6287 | do | |
6288 | IFS=$as_save_IFS | |
6289 | test -z "$as_dir" && as_dir=. | |
6290 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6291 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6292 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
6293 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6294 | break 2 |
6295 | fi | |
6296 | done | |
6297 | done | |
dd184caf | 6298 | IFS=$as_save_IFS |
d9898ee8 | 6299 | |
d9898ee8 | 6300 | fi |
6301 | fi | |
8d138742 CE |
6302 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
6303 | if test -n "$ac_ct_OTOOL64"; then | |
6304 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 | |
6305 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
d9898ee8 | 6306 | else |
8d138742 CE |
6307 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6308 | $as_echo "no" >&6; } | |
d9898ee8 | 6309 | fi |
6310 | ||
8d138742 CE |
6311 | if test "x$ac_ct_OTOOL64" = x; then |
6312 | OTOOL64=":" | |
dd184caf | 6313 | else |
6314 | case $cross_compiling:$ac_tool_warned in | |
6315 | yes:) | |
8d138742 CE |
6316 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
6317 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 6318 | ac_tool_warned=yes ;; |
6319 | esac | |
8d138742 | 6320 | OTOOL64=$ac_ct_OTOOL64 |
dd184caf | 6321 | fi |
d9898ee8 | 6322 | else |
8d138742 | 6323 | OTOOL64="$ac_cv_prog_OTOOL64" |
d9898ee8 | 6324 | fi |
6325 | ||
6326 | ||
d9898ee8 | 6327 | |
d9898ee8 | 6328 | |
d9898ee8 | 6329 | |
d9898ee8 | 6330 | |
d9898ee8 | 6331 | |
6332 | ||
dd184caf | 6333 | |
d9898ee8 | 6334 | |
6335 | ||
d9898ee8 | 6336 | |
d9898ee8 | 6337 | |
d9898ee8 | 6338 | |
d9898ee8 | 6339 | |
6340 | ||
d9898ee8 | 6341 | |
d9898ee8 | 6342 | |
d9898ee8 | 6343 | |
6344 | ||
d9898ee8 | 6345 | |
d9898ee8 | 6346 | |
6347 | ||
6348 | ||
d9898ee8 | 6349 | |
d9898ee8 | 6350 | |
6351 | ||
8d138742 CE |
6352 | { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 |
6353 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
6354 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
6355 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6356 | else |
8d138742 CE |
6357 | lt_cv_apple_cc_single_mod=no |
6358 | if test -z "${LT_MULTI_MODULE}"; then | |
6359 | # By default we will add the -single_module flag. You can override | |
6360 | # by either setting the environment variable LT_MULTI_MODULE | |
6361 | # non-empty at configure time, or by adding -multi_module to the | |
6362 | # link flags. | |
6363 | rm -rf libconftest.dylib* | |
6364 | echo "int foo(void){return 1;}" > conftest.c | |
6365 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6366 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
6367 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6368 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
6369 | _lt_result=$? | |
6370 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
6371 | lt_cv_apple_cc_single_mod=yes | |
6372 | else | |
6373 | cat conftest.err >&5 | |
6374 | fi | |
6375 | rm -rf libconftest.dylib* | |
6376 | rm -f conftest.* | |
6377 | fi | |
d9898ee8 | 6378 | fi |
8d138742 CE |
6379 | { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 |
6380 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
6381 | { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
6382 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
6383 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then | |
6384 | $as_echo_n "(cached) " >&6 | |
6385 | else | |
6386 | lt_cv_ld_exported_symbols_list=no | |
6387 | save_LDFLAGS=$LDFLAGS | |
6388 | echo "_main" > conftest.sym | |
6389 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
6390 | cat >conftest.$ac_ext <<_ACEOF | |
6391 | /* confdefs.h. */ | |
6392 | _ACEOF | |
6393 | cat confdefs.h >>conftest.$ac_ext | |
6394 | cat >>conftest.$ac_ext <<_ACEOF | |
6395 | /* end confdefs.h. */ | |
d9898ee8 | 6396 | |
8d138742 CE |
6397 | int |
6398 | main () | |
6399 | { | |
6400 | ||
6401 | ; | |
6402 | return 0; | |
6403 | } | |
6404 | _ACEOF | |
6405 | rm -f conftest.$ac_objext 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6412 | $as_echo "$ac_try_echo") >&5 | |
6413 | (eval "$ac_link") 2>conftest.er1 | |
6414 | ac_status=$? | |
6415 | grep -v '^ *+' conftest.er1 >conftest.err | |
6416 | rm -f conftest.er1 | |
6417 | cat conftest.err >&5 | |
6418 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6419 | (exit $ac_status); } && { | |
6420 | test -z "$ac_c_werror_flag" || | |
6421 | test ! -s conftest.err | |
6422 | } && test -s conftest$ac_exeext && { | |
6423 | test "$cross_compiling" = yes || | |
6424 | $as_test_x conftest$ac_exeext | |
6425 | }; then | |
6426 | lt_cv_ld_exported_symbols_list=yes | |
d9898ee8 | 6427 | else |
8d138742 CE |
6428 | $as_echo "$as_me: failed program was:" >&5 |
6429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6430 | |
8d138742 | 6431 | lt_cv_ld_exported_symbols_list=no |
d9898ee8 | 6432 | fi |
6433 | ||
8d138742 CE |
6434 | rm -rf conftest.dSYM |
6435 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6436 | conftest$ac_exeext conftest.$ac_ext | |
6437 | LDFLAGS="$save_LDFLAGS" | |
d9898ee8 | 6438 | |
8d138742 CE |
6439 | fi |
6440 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 | |
6441 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
d9898ee8 | 6442 | case $host_os in |
8d138742 CE |
6443 | rhapsody* | darwin1.[012]) |
6444 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
6445 | darwin1.*) | |
6446 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6447 | darwin*) # darwin 5.x on | |
6448 | # if running on 10.5 or later, the deployment target defaults | |
6449 | # to the OS version, if on x86, and 10.4, the deployment | |
6450 | # target defaults to 10.4. Don't you love it? | |
6451 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
6452 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
6453 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6454 | 10.[012]*) | |
6455 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6456 | 10.*) | |
6457 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6458 | esac | |
6459 | ;; | |
6460 | esac | |
6461 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6462 | _lt_dar_single_mod='$single_module' | |
6463 | fi | |
6464 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6465 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6466 | else | |
6467 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6468 | fi | |
6469 | if test "$DSYMUTIL" != ":"; then | |
6470 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6471 | else | |
6472 | _lt_dsymutil= | |
6473 | fi | |
6474 | ;; | |
6475 | esac | |
d9898ee8 | 6476 | |
8d138742 CE |
6477 | ac_ext=c |
6478 | ac_cpp='$CPP $CPPFLAGS' | |
6479 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6480 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6481 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6482 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
6483 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6484 | # On Suns, sometimes $CPP names a directory. | |
6485 | if test -n "$CPP" && test -d "$CPP"; then | |
6486 | CPP= | |
6487 | fi | |
6488 | if test -z "$CPP"; then | |
6489 | if test "${ac_cv_prog_CPP+set}" = set; then | |
6490 | $as_echo_n "(cached) " >&6 | |
6491 | else | |
6492 | # Double quotes because CPP needs to be expanded | |
6493 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6494 | do | |
6495 | ac_preproc_ok=false | |
6496 | for ac_c_preproc_warn_flag in '' yes | |
6497 | do | |
6498 | # Use a header file that comes with gcc, so configuring glibc | |
6499 | # with a fresh cross-compiler works. | |
6500 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6501 | # <limits.h> exists even on freestanding compilers. | |
6502 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6503 | # not just through cpp. "Syntax error" is here to catch this case. | |
6504 | cat >conftest.$ac_ext <<_ACEOF | |
6505 | /* confdefs.h. */ | |
d9898ee8 | 6506 | _ACEOF |
8d138742 CE |
6507 | cat confdefs.h >>conftest.$ac_ext |
6508 | cat >>conftest.$ac_ext <<_ACEOF | |
6509 | /* end confdefs.h. */ | |
6510 | #ifdef __STDC__ | |
6511 | # include <limits.h> | |
6512 | #else | |
6513 | # include <assert.h> | |
6514 | #endif | |
6515 | Syntax error | |
6516 | _ACEOF | |
6517 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
dd184caf | 6518 | case "(($ac_try" in |
6519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6520 | *) ac_try_echo=$ac_try;; | |
6521 | esac | |
8d138742 CE |
6522 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6523 | $as_echo "$ac_try_echo") >&5 | |
6524 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
d9898ee8 | 6525 | ac_status=$? |
6526 | grep -v '^ *+' conftest.er1 >conftest.err | |
6527 | rm -f conftest.er1 | |
6528 | cat conftest.err >&5 | |
8d138742 CE |
6529 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6530 | (exit $ac_status); } >/dev/null && { | |
6531 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
dd184caf | 6532 | test ! -s conftest.err |
8d138742 CE |
6533 | }; then |
6534 | : | |
d9898ee8 | 6535 | else |
8d138742 | 6536 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 6537 | sed 's/^/| /' conftest.$ac_ext >&5 |
6538 | ||
8d138742 CE |
6539 | # Broken: fails on valid input. |
6540 | continue | |
d9898ee8 | 6541 | fi |
dd184caf | 6542 | |
8d138742 | 6543 | rm -f conftest.err conftest.$ac_ext |
d9898ee8 | 6544 | |
8d138742 CE |
6545 | # OK, works on sane cases. Now check whether nonexistent headers |
6546 | # can be detected and how. | |
6547 | cat >conftest.$ac_ext <<_ACEOF | |
6548 | /* confdefs.h. */ | |
d9898ee8 | 6549 | _ACEOF |
8d138742 CE |
6550 | cat confdefs.h >>conftest.$ac_ext |
6551 | cat >>conftest.$ac_ext <<_ACEOF | |
6552 | /* end confdefs.h. */ | |
6553 | #include <ac_nonexistent.h> | |
6554 | _ACEOF | |
6555 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
dd184caf | 6556 | case "(($ac_try" in |
6557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6558 | *) ac_try_echo=$ac_try;; | |
6559 | esac | |
8d138742 CE |
6560 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6561 | $as_echo "$ac_try_echo") >&5 | |
6562 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
d9898ee8 | 6563 | ac_status=$? |
6564 | grep -v '^ *+' conftest.er1 >conftest.err | |
6565 | rm -f conftest.er1 | |
6566 | cat conftest.err >&5 | |
8d138742 CE |
6567 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6568 | (exit $ac_status); } >/dev/null && { | |
6569 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
dd184caf | 6570 | test ! -s conftest.err |
8d138742 CE |
6571 | }; then |
6572 | # Broken: success on invalid input. | |
6573 | continue | |
d9898ee8 | 6574 | else |
8d138742 | 6575 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 6576 | sed 's/^/| /' conftest.$ac_ext >&5 |
6577 | ||
8d138742 CE |
6578 | # Passes both tests. |
6579 | ac_preproc_ok=: | |
6580 | break | |
d9898ee8 | 6581 | fi |
dd184caf | 6582 | |
8d138742 | 6583 | rm -f conftest.err conftest.$ac_ext |
d9898ee8 | 6584 | |
8d138742 CE |
6585 | done |
6586 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6587 | rm -f conftest.err conftest.$ac_ext | |
6588 | if $ac_preproc_ok; then | |
6589 | break | |
6590 | fi | |
d9898ee8 | 6591 | |
8d138742 CE |
6592 | done |
6593 | ac_cv_prog_CPP=$CPP | |
d9898ee8 | 6594 | |
8d138742 CE |
6595 | fi |
6596 | CPP=$ac_cv_prog_CPP | |
6597 | else | |
6598 | ac_cv_prog_CPP=$CPP | |
6599 | fi | |
6600 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 | |
6601 | $as_echo "$CPP" >&6; } | |
6602 | ac_preproc_ok=false | |
6603 | for ac_c_preproc_warn_flag in '' yes | |
6604 | do | |
6605 | # Use a header file that comes with gcc, so configuring glibc | |
6606 | # with a fresh cross-compiler works. | |
6607 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6608 | # <limits.h> exists even on freestanding compilers. | |
6609 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6610 | # not just through cpp. "Syntax error" is here to catch this case. | |
6611 | cat >conftest.$ac_ext <<_ACEOF | |
6612 | /* confdefs.h. */ | |
6613 | _ACEOF | |
6614 | cat confdefs.h >>conftest.$ac_ext | |
6615 | cat >>conftest.$ac_ext <<_ACEOF | |
6616 | /* end confdefs.h. */ | |
6617 | #ifdef __STDC__ | |
6618 | # include <limits.h> | |
6619 | #else | |
6620 | # include <assert.h> | |
6621 | #endif | |
6622 | Syntax error | |
6623 | _ACEOF | |
6624 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6625 | case "(($ac_try" in | |
6626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6627 | *) ac_try_echo=$ac_try;; | |
6628 | esac | |
6629 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6630 | $as_echo "$ac_try_echo") >&5 | |
6631 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6632 | ac_status=$? | |
6633 | grep -v '^ *+' conftest.er1 >conftest.err | |
6634 | rm -f conftest.er1 | |
6635 | cat conftest.err >&5 | |
6636 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6637 | (exit $ac_status); } >/dev/null && { | |
6638 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6639 | test ! -s conftest.err | |
6640 | }; then | |
6641 | : | |
6642 | else | |
6643 | $as_echo "$as_me: failed program was:" >&5 | |
6644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6645 | |
8d138742 CE |
6646 | # Broken: fails on valid input. |
6647 | continue | |
6648 | fi | |
d9898ee8 | 6649 | |
8d138742 | 6650 | rm -f conftest.err conftest.$ac_ext |
d9898ee8 | 6651 | |
8d138742 CE |
6652 | # OK, works on sane cases. Now check whether nonexistent headers |
6653 | # can be detected and how. | |
6654 | cat >conftest.$ac_ext <<_ACEOF | |
6655 | /* confdefs.h. */ | |
6656 | _ACEOF | |
6657 | cat confdefs.h >>conftest.$ac_ext | |
6658 | cat >>conftest.$ac_ext <<_ACEOF | |
6659 | /* end confdefs.h. */ | |
6660 | #include <ac_nonexistent.h> | |
6661 | _ACEOF | |
6662 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6663 | case "(($ac_try" in | |
6664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6665 | *) ac_try_echo=$ac_try;; | |
6666 | esac | |
6667 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6668 | $as_echo "$ac_try_echo") >&5 | |
6669 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6670 | ac_status=$? | |
6671 | grep -v '^ *+' conftest.er1 >conftest.err | |
6672 | rm -f conftest.er1 | |
6673 | cat conftest.err >&5 | |
6674 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6675 | (exit $ac_status); } >/dev/null && { | |
6676 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6677 | test ! -s conftest.err | |
6678 | }; then | |
6679 | # Broken: success on invalid input. | |
6680 | continue | |
6681 | else | |
6682 | $as_echo "$as_me: failed program was:" >&5 | |
6683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6684 | |
8d138742 CE |
6685 | # Passes both tests. |
6686 | ac_preproc_ok=: | |
6687 | break | |
6688 | fi | |
d9898ee8 | 6689 | |
8d138742 | 6690 | rm -f conftest.err conftest.$ac_ext |
d9898ee8 | 6691 | |
8d138742 CE |
6692 | done |
6693 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6694 | rm -f conftest.err conftest.$ac_ext | |
6695 | if $ac_preproc_ok; then | |
6696 | : | |
6697 | else | |
6698 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
6699 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6700 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
6701 | See \`config.log' for more details." >&5 | |
6702 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
6703 | See \`config.log' for more details." >&2;} | |
6704 | { (exit 1); exit 1; }; }; } | |
6705 | fi | |
d9898ee8 | 6706 | |
8d138742 CE |
6707 | ac_ext=c |
6708 | ac_cpp='$CPP $CPPFLAGS' | |
6709 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6710 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6711 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 6712 | |
d9898ee8 | 6713 | |
8d138742 CE |
6714 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6715 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
6716 | if test "${ac_cv_header_stdc+set}" = set; then | |
6717 | $as_echo_n "(cached) " >&6 | |
6718 | else | |
6719 | cat >conftest.$ac_ext <<_ACEOF | |
6720 | /* confdefs.h. */ | |
6721 | _ACEOF | |
6722 | cat confdefs.h >>conftest.$ac_ext | |
6723 | cat >>conftest.$ac_ext <<_ACEOF | |
6724 | /* end confdefs.h. */ | |
6725 | #include <stdlib.h> | |
6726 | #include <stdarg.h> | |
6727 | #include <string.h> | |
6728 | #include <float.h> | |
d9898ee8 | 6729 | |
8d138742 CE |
6730 | int |
6731 | main () | |
6732 | { | |
d9898ee8 | 6733 | |
8d138742 CE |
6734 | ; |
6735 | return 0; | |
6736 | } | |
6737 | _ACEOF | |
6738 | rm -f conftest.$ac_objext | |
6739 | if { (ac_try="$ac_compile" | |
6740 | case "(($ac_try" in | |
6741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6742 | *) ac_try_echo=$ac_try;; | |
6743 | esac | |
6744 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6745 | $as_echo "$ac_try_echo") >&5 | |
6746 | (eval "$ac_compile") 2>conftest.er1 | |
6747 | ac_status=$? | |
6748 | grep -v '^ *+' conftest.er1 >conftest.err | |
6749 | rm -f conftest.er1 | |
6750 | cat conftest.err >&5 | |
6751 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6752 | (exit $ac_status); } && { | |
6753 | test -z "$ac_c_werror_flag" || | |
6754 | test ! -s conftest.err | |
6755 | } && test -s conftest.$ac_objext; then | |
6756 | ac_cv_header_stdc=yes | |
6757 | else | |
6758 | $as_echo "$as_me: failed program was:" >&5 | |
6759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6760 | |
8d138742 CE |
6761 | ac_cv_header_stdc=no |
6762 | fi | |
d9898ee8 | 6763 | |
8d138742 | 6764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 6765 | |
8d138742 CE |
6766 | if test $ac_cv_header_stdc = yes; then |
6767 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6768 | cat >conftest.$ac_ext <<_ACEOF | |
6769 | /* confdefs.h. */ | |
6770 | _ACEOF | |
6771 | cat confdefs.h >>conftest.$ac_ext | |
6772 | cat >>conftest.$ac_ext <<_ACEOF | |
6773 | /* end confdefs.h. */ | |
6774 | #include <string.h> | |
d9898ee8 | 6775 | |
8d138742 CE |
6776 | _ACEOF |
6777 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6778 | $EGREP "memchr" >/dev/null 2>&1; then | |
6779 | : | |
6780 | else | |
6781 | ac_cv_header_stdc=no | |
6782 | fi | |
6783 | rm -f conftest* | |
d9898ee8 | 6784 | |
8d138742 | 6785 | fi |
d9898ee8 | 6786 | |
8d138742 CE |
6787 | if test $ac_cv_header_stdc = yes; then |
6788 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6789 | cat >conftest.$ac_ext <<_ACEOF | |
6790 | /* confdefs.h. */ | |
6791 | _ACEOF | |
6792 | cat confdefs.h >>conftest.$ac_ext | |
6793 | cat >>conftest.$ac_ext <<_ACEOF | |
6794 | /* end confdefs.h. */ | |
6795 | #include <stdlib.h> | |
d9898ee8 | 6796 | |
8d138742 CE |
6797 | _ACEOF |
6798 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6799 | $EGREP "free" >/dev/null 2>&1; then | |
6800 | : | |
6801 | else | |
6802 | ac_cv_header_stdc=no | |
6803 | fi | |
6804 | rm -f conftest* | |
d9898ee8 | 6805 | |
8d138742 | 6806 | fi |
d9898ee8 | 6807 | |
8d138742 CE |
6808 | if test $ac_cv_header_stdc = yes; then |
6809 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6810 | if test "$cross_compiling" = yes; then | |
6811 | : | |
6812 | else | |
6813 | cat >conftest.$ac_ext <<_ACEOF | |
6814 | /* confdefs.h. */ | |
6815 | _ACEOF | |
6816 | cat confdefs.h >>conftest.$ac_ext | |
6817 | cat >>conftest.$ac_ext <<_ACEOF | |
6818 | /* end confdefs.h. */ | |
6819 | #include <ctype.h> | |
6820 | #include <stdlib.h> | |
6821 | #if ((' ' & 0x0FF) == 0x020) | |
6822 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6823 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6824 | #else | |
6825 | # define ISLOWER(c) \ | |
6826 | (('a' <= (c) && (c) <= 'i') \ | |
6827 | || ('j' <= (c) && (c) <= 'r') \ | |
6828 | || ('s' <= (c) && (c) <= 'z')) | |
6829 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6830 | #endif | |
d9898ee8 | 6831 | |
8d138742 CE |
6832 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
6833 | int | |
6834 | main () | |
6835 | { | |
6836 | int i; | |
6837 | for (i = 0; i < 256; i++) | |
6838 | if (XOR (islower (i), ISLOWER (i)) | |
6839 | || toupper (i) != TOUPPER (i)) | |
6840 | return 2; | |
6841 | return 0; | |
6842 | } | |
6843 | _ACEOF | |
6844 | rm -f conftest$ac_exeext | |
6845 | if { (ac_try="$ac_link" | |
6846 | case "(($ac_try" in | |
6847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6848 | *) ac_try_echo=$ac_try;; | |
6849 | esac | |
6850 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6851 | $as_echo "$ac_try_echo") >&5 | |
6852 | (eval "$ac_link") 2>&5 | |
6853 | ac_status=$? | |
6854 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6855 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6856 | { (case "(($ac_try" in | |
6857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6858 | *) ac_try_echo=$ac_try;; | |
6859 | esac | |
6860 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6861 | $as_echo "$ac_try_echo") >&5 | |
6862 | (eval "$ac_try") 2>&5 | |
6863 | ac_status=$? | |
6864 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6865 | (exit $ac_status); }; }; then | |
6866 | : | |
6867 | else | |
6868 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
6869 | $as_echo "$as_me: failed program was:" >&5 | |
6870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6871 | |
8d138742 CE |
6872 | ( exit $ac_status ) |
6873 | ac_cv_header_stdc=no | |
6874 | fi | |
6875 | rm -rf conftest.dSYM | |
6876 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6877 | fi | |
d9898ee8 | 6878 | |
d9898ee8 | 6879 | |
8d138742 CE |
6880 | fi |
6881 | fi | |
6882 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
6883 | $as_echo "$ac_cv_header_stdc" >&6; } | |
6884 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 6885 | |
8d138742 CE |
6886 | cat >>confdefs.h <<\_ACEOF |
6887 | #define STDC_HEADERS 1 | |
6888 | _ACEOF | |
d9898ee8 | 6889 | |
8d138742 | 6890 | fi |
d9898ee8 | 6891 | |
8d138742 | 6892 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
d9898ee8 | 6893 | |
d9898ee8 | 6894 | |
d9898ee8 | 6895 | |
d9898ee8 | 6896 | |
d9898ee8 | 6897 | |
d9898ee8 | 6898 | |
d9898ee8 | 6899 | |
d9898ee8 | 6900 | |
8d138742 CE |
6901 | |
6902 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6903 | inttypes.h stdint.h unistd.h | |
6904 | do | |
6905 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6906 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6907 | $as_echo_n "checking for $ac_header... " >&6; } | |
6908 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6909 | $as_echo_n "(cached) " >&6 | |
6910 | else | |
6911 | cat >conftest.$ac_ext <<_ACEOF | |
6912 | /* confdefs.h. */ | |
6913 | _ACEOF | |
6914 | cat confdefs.h >>conftest.$ac_ext | |
6915 | cat >>conftest.$ac_ext <<_ACEOF | |
6916 | /* end confdefs.h. */ | |
6917 | $ac_includes_default | |
6918 | ||
6919 | #include <$ac_header> | |
6920 | _ACEOF | |
6921 | rm -f conftest.$ac_objext | |
6922 | if { (ac_try="$ac_compile" | |
6923 | case "(($ac_try" in | |
6924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6925 | *) ac_try_echo=$ac_try;; | |
d9898ee8 | 6926 | esac |
8d138742 CE |
6927 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6928 | $as_echo "$ac_try_echo") >&5 | |
6929 | (eval "$ac_compile") 2>conftest.er1 | |
6930 | ac_status=$? | |
6931 | grep -v '^ *+' conftest.er1 >conftest.err | |
6932 | rm -f conftest.er1 | |
6933 | cat conftest.err >&5 | |
6934 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6935 | (exit $ac_status); } && { | |
6936 | test -z "$ac_c_werror_flag" || | |
6937 | test ! -s conftest.err | |
6938 | } && test -s conftest.$ac_objext; then | |
6939 | eval "$as_ac_Header=yes" | |
6940 | else | |
6941 | $as_echo "$as_me: failed program was:" >&5 | |
6942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6943 | |
8d138742 CE |
6944 | eval "$as_ac_Header=no" |
6945 | fi | |
ac40fd9e | 6946 | |
8d138742 CE |
6947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6948 | fi | |
6949 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6950 | $as_echo "$as_val"'` | |
6951 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6952 | $as_echo "$ac_res" >&6; } | |
6953 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
6954 | $as_echo "$as_val"'` | |
6955 | if test "x$as_val" = x""yes; then | |
6956 | cat >>confdefs.h <<_ACEOF | |
6957 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6958 | _ACEOF | |
d9898ee8 | 6959 | |
8d138742 | 6960 | fi |
d9898ee8 | 6961 | |
8d138742 | 6962 | done |
d9898ee8 | 6963 | |
d9898ee8 | 6964 | |
d9898ee8 | 6965 | |
8d138742 CE |
6966 | for ac_header in dlfcn.h |
6967 | do | |
6968 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6969 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6970 | $as_echo_n "checking for $ac_header... " >&6; } | |
6971 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6972 | $as_echo_n "(cached) " >&6 | |
6973 | else | |
6974 | cat >conftest.$ac_ext <<_ACEOF | |
6975 | /* confdefs.h. */ | |
6976 | _ACEOF | |
6977 | cat confdefs.h >>conftest.$ac_ext | |
6978 | cat >>conftest.$ac_ext <<_ACEOF | |
6979 | /* end confdefs.h. */ | |
6980 | $ac_includes_default | |
d9898ee8 | 6981 | |
8d138742 CE |
6982 | #include <$ac_header> |
6983 | _ACEOF | |
6984 | rm -f conftest.$ac_objext | |
6985 | if { (ac_try="$ac_compile" | |
6986 | case "(($ac_try" in | |
6987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6988 | *) ac_try_echo=$ac_try;; | |
6989 | esac | |
6990 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6991 | $as_echo "$ac_try_echo") >&5 | |
6992 | (eval "$ac_compile") 2>conftest.er1 | |
6993 | ac_status=$? | |
6994 | grep -v '^ *+' conftest.er1 >conftest.err | |
6995 | rm -f conftest.er1 | |
6996 | cat conftest.err >&5 | |
6997 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6998 | (exit $ac_status); } && { | |
6999 | test -z "$ac_c_werror_flag" || | |
7000 | test ! -s conftest.err | |
7001 | } && test -s conftest.$ac_objext; then | |
7002 | eval "$as_ac_Header=yes" | |
7003 | else | |
7004 | $as_echo "$as_me: failed program was:" >&5 | |
7005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 7006 | |
8d138742 CE |
7007 | eval "$as_ac_Header=no" |
7008 | fi | |
d9898ee8 | 7009 | |
8d138742 CE |
7010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7011 | fi | |
7012 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7013 | $as_echo "$as_val"'` | |
7014 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7015 | $as_echo "$ac_res" >&6; } | |
7016 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
7017 | $as_echo "$as_val"'` | |
7018 | if test "x$as_val" = x""yes; then | |
7019 | cat >>confdefs.h <<_ACEOF | |
7020 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7021 | _ACEOF | |
d9898ee8 | 7022 | |
8d138742 | 7023 | fi |
d9898ee8 | 7024 | |
8d138742 | 7025 | done |
d9898ee8 | 7026 | |
d9898ee8 | 7027 | |
ac40fd9e | 7028 | |
8d138742 | 7029 | # Set options |
d9898ee8 | 7030 | |
d9898ee8 | 7031 | |
d9898ee8 | 7032 | |
8d138742 | 7033 | enable_dlopen=no |
d9898ee8 | 7034 | |
d9898ee8 | 7035 | |
8d138742 | 7036 | enable_win32_dll=no |
d9898ee8 | 7037 | |
d9898ee8 | 7038 | |
8d138742 CE |
7039 | # Check whether --enable-shared was given. |
7040 | if test "${enable_shared+set}" = set; then | |
7041 | enableval=$enable_shared; p=${PACKAGE-default} | |
7042 | case $enableval in | |
7043 | yes) enable_shared=yes ;; | |
7044 | no) enable_shared=no ;; | |
d9898ee8 | 7045 | *) |
8d138742 CE |
7046 | enable_shared=no |
7047 | # Look at the argument we got. We use all the common list separators. | |
7048 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7049 | for pkg in $enableval; do | |
7050 | IFS="$lt_save_ifs" | |
7051 | if test "X$pkg" = "X$p"; then | |
7052 | enable_shared=yes | |
7053 | fi | |
7054 | done | |
7055 | IFS="$lt_save_ifs" | |
7056 | ;; | |
7057 | esac | |
7058 | else | |
7059 | enable_shared=yes | |
7060 | fi | |
d9898ee8 | 7061 | |
d9898ee8 | 7062 | |
d9898ee8 | 7063 | |
d9898ee8 | 7064 | |
d9898ee8 | 7065 | |
d9898ee8 | 7066 | |
d9898ee8 | 7067 | |
d9898ee8 | 7068 | |
d9898ee8 | 7069 | |
8d138742 CE |
7070 | # Check whether --enable-static was given. |
7071 | if test "${enable_static+set}" = set; then | |
7072 | enableval=$enable_static; p=${PACKAGE-default} | |
7073 | case $enableval in | |
7074 | yes) enable_static=yes ;; | |
7075 | no) enable_static=no ;; | |
7076 | *) | |
7077 | enable_static=no | |
7078 | # Look at the argument we got. We use all the common list separators. | |
7079 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7080 | for pkg in $enableval; do | |
7081 | IFS="$lt_save_ifs" | |
7082 | if test "X$pkg" = "X$p"; then | |
7083 | enable_static=yes | |
7084 | fi | |
7085 | done | |
7086 | IFS="$lt_save_ifs" | |
7087 | ;; | |
7088 | esac | |
7089 | else | |
7090 | enable_static=yes | |
7091 | fi | |
ac40fd9e | 7092 | |
d9898ee8 | 7093 | |
d9898ee8 | 7094 | |
d9898ee8 | 7095 | |
d9898ee8 | 7096 | |
d9898ee8 | 7097 | |
d9898ee8 | 7098 | |
d9898ee8 | 7099 | |
d9898ee8 | 7100 | |
d9898ee8 | 7101 | |
8d138742 CE |
7102 | # Check whether --with-pic was given. |
7103 | if test "${with_pic+set}" = set; then | |
7104 | withval=$with_pic; pic_mode="$withval" | |
d9898ee8 | 7105 | else |
8d138742 | 7106 | pic_mode=default |
d9898ee8 | 7107 | fi |
d9898ee8 | 7108 | |
8d138742 CE |
7109 | |
7110 | test -z "$pic_mode" && pic_mode=default | |
d9898ee8 | 7111 | |
7112 | ||
8d138742 CE |
7113 | |
7114 | ||
7115 | ||
7116 | ||
7117 | ||
7118 | # Check whether --enable-fast-install was given. | |
7119 | if test "${enable_fast_install+set}" = set; then | |
7120 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
7121 | case $enableval in | |
7122 | yes) enable_fast_install=yes ;; | |
7123 | no) enable_fast_install=no ;; | |
d9898ee8 | 7124 | *) |
8d138742 CE |
7125 | enable_fast_install=no |
7126 | # Look at the argument we got. We use all the common list separators. | |
7127 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7128 | for pkg in $enableval; do | |
7129 | IFS="$lt_save_ifs" | |
7130 | if test "X$pkg" = "X$p"; then | |
7131 | enable_fast_install=yes | |
7132 | fi | |
7133 | done | |
7134 | IFS="$lt_save_ifs" | |
d9898ee8 | 7135 | ;; |
7136 | esac | |
8d138742 CE |
7137 | else |
7138 | enable_fast_install=yes | |
7139 | fi | |
7140 | ||
7141 | ||
d9898ee8 | 7142 | |
d9898ee8 | 7143 | |
d9898ee8 | 7144 | |
d9898ee8 | 7145 | |
d9898ee8 | 7146 | |
d9898ee8 | 7147 | |
d9898ee8 | 7148 | |
d9898ee8 | 7149 | |
d9898ee8 | 7150 | |
8d138742 CE |
7151 | # This can be used to rebuild libtool when needed |
7152 | LIBTOOL_DEPS="$ltmain" | |
d9898ee8 | 7153 | |
8d138742 CE |
7154 | # Always use our own libtool. |
7155 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d9898ee8 | 7156 | |
d9898ee8 | 7157 | |
d9898ee8 | 7158 | |
d9898ee8 | 7159 | |
d9898ee8 | 7160 | |
d9898ee8 | 7161 | |
d9898ee8 | 7162 | |
d9898ee8 | 7163 | |
d9898ee8 | 7164 | |
d9898ee8 | 7165 | |
d9898ee8 | 7166 | |
d9898ee8 | 7167 | |
d9898ee8 | 7168 | |
d9898ee8 | 7169 | |
d9898ee8 | 7170 | |
d9898ee8 | 7171 | |
d9898ee8 | 7172 | |
d9898ee8 | 7173 | |
d9898ee8 | 7174 | |
d9898ee8 | 7175 | |
d9898ee8 | 7176 | |
d9898ee8 | 7177 | |
d9898ee8 | 7178 | |
d9898ee8 | 7179 | |
d9898ee8 | 7180 | |
8d138742 | 7181 | test -z "$LN_S" && LN_S="ln -s" |
d9898ee8 | 7182 | |
d9898ee8 | 7183 | |
d9898ee8 | 7184 | |
d9898ee8 | 7185 | |
d9898ee8 | 7186 | |
d9898ee8 | 7187 | |
d9898ee8 | 7188 | |
d9898ee8 | 7189 | |
d9898ee8 | 7190 | |
d9898ee8 | 7191 | |
d9898ee8 | 7192 | |
d9898ee8 | 7193 | |
d9898ee8 | 7194 | |
d9898ee8 | 7195 | |
8d138742 CE |
7196 | if test -n "${ZSH_VERSION+set}" ; then |
7197 | setopt NO_GLOB_SUBST | |
7198 | fi | |
d9898ee8 | 7199 | |
8d138742 CE |
7200 | { $as_echo "$as_me:$LINENO: checking for objdir" >&5 |
7201 | $as_echo_n "checking for objdir... " >&6; } | |
7202 | if test "${lt_cv_objdir+set}" = set; then | |
7203 | $as_echo_n "(cached) " >&6 | |
7204 | else | |
7205 | rm -f .libs 2>/dev/null | |
7206 | mkdir .libs 2>/dev/null | |
7207 | if test -d .libs; then | |
7208 | lt_cv_objdir=.libs | |
7209 | else | |
7210 | # MS-DOS does not allow filenames that begin with a dot. | |
7211 | lt_cv_objdir=_libs | |
7212 | fi | |
7213 | rmdir .libs 2>/dev/null | |
7214 | fi | |
7215 | { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
7216 | $as_echo "$lt_cv_objdir" >&6; } | |
7217 | objdir=$lt_cv_objdir | |
d9898ee8 | 7218 | |
d9898ee8 | 7219 | |
d9898ee8 | 7220 | |
d9898ee8 | 7221 | |
d9898ee8 | 7222 | |
8d138742 CE |
7223 | cat >>confdefs.h <<_ACEOF |
7224 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7225 | _ACEOF | |
d9898ee8 | 7226 | |
d9898ee8 | 7227 | |
d9898ee8 | 7228 | |
d9898ee8 | 7229 | |
d9898ee8 | 7230 | |
d9898ee8 | 7231 | |
d9898ee8 | 7232 | |
d9898ee8 | 7233 | |
d9898ee8 | 7234 | |
d9898ee8 | 7235 | |
d9898ee8 | 7236 | |
d9898ee8 | 7237 | |
d9898ee8 | 7238 | |
d9898ee8 | 7239 | |
d9898ee8 | 7240 | |
d9898ee8 | 7241 | |
d9898ee8 | 7242 | |
8d138742 CE |
7243 | case $host_os in |
7244 | aix3*) | |
7245 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7246 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7247 | # vanish in a puff of smoke. | |
7248 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7249 | COLLECT_NAMES= | |
7250 | export COLLECT_NAMES | |
7251 | fi | |
7252 | ;; | |
7253 | esac | |
d9898ee8 | 7254 | |
8d138742 CE |
7255 | # Sed substitution that helps us do robust quoting. It backslashifies |
7256 | # metacharacters that are still active within double-quoted strings. | |
7257 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
d9898ee8 | 7258 | |
8d138742 CE |
7259 | # Same as above, but do not quote variable references. |
7260 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
d9898ee8 | 7261 | |
8d138742 CE |
7262 | # Sed substitution to delay expansion of an escaped shell variable in a |
7263 | # double_quote_subst'ed string. | |
7264 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
d9898ee8 | 7265 | |
8d138742 CE |
7266 | # Sed substitution to delay expansion of an escaped single quote. |
7267 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
d9898ee8 | 7268 | |
8d138742 CE |
7269 | # Sed substitution to avoid accidental globbing in evaled expressions |
7270 | no_glob_subst='s/\*/\\\*/g' | |
d9898ee8 | 7271 | |
8d138742 CE |
7272 | # Global variables: |
7273 | ofile=libtool | |
7274 | can_build_shared=yes | |
d9898ee8 | 7275 | |
8d138742 CE |
7276 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7277 | # which needs '.lib'). | |
7278 | libext=a | |
d9898ee8 | 7279 | |
8d138742 | 7280 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d9898ee8 | 7281 | |
8d138742 CE |
7282 | old_CC="$CC" |
7283 | old_CFLAGS="$CFLAGS" | |
d9898ee8 | 7284 | |
8d138742 CE |
7285 | # Set sane defaults for various variables |
7286 | test -z "$CC" && CC=cc | |
7287 | test -z "$LTCC" && LTCC=$CC | |
7288 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7289 | test -z "$LD" && LD=ld | |
7290 | test -z "$ac_objext" && ac_objext=o | |
d9898ee8 | 7291 | |
8d138742 CE |
7292 | for cc_temp in $compiler""; do |
7293 | case $cc_temp in | |
7294 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7295 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7296 | \-*) ;; | |
7297 | *) break;; | |
7298 | esac | |
7299 | done | |
7300 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
d9898ee8 | 7301 | |
d9898ee8 | 7302 | |
8d138742 CE |
7303 | # Only perform the check for file, if the check method requires it |
7304 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7305 | case $deplibs_check_method in | |
7306 | file_magic*) | |
7307 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7308 | { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
7309 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7310 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7311 | $as_echo_n "(cached) " >&6 | |
7312 | else | |
7313 | case $MAGIC_CMD in | |
7314 | [\\/*] | ?:[\\/]*) | |
7315 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7316 | ;; | |
7317 | *) | |
7318 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7319 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7320 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7321 | for ac_dir in $ac_dummy; do | |
7322 | IFS="$lt_save_ifs" | |
7323 | test -z "$ac_dir" && ac_dir=. | |
7324 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7325 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7326 | if test -n "$file_magic_test_file"; then | |
7327 | case $deplibs_check_method in | |
7328 | "file_magic "*) | |
7329 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7330 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7331 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7332 | $EGREP "$file_magic_regex" > /dev/null; then | |
7333 | : | |
7334 | else | |
7335 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 7336 | |
8d138742 CE |
7337 | *** Warning: the command libtool uses to detect shared libraries, |
7338 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7339 | *** The result is that libtool may fail to recognize shared libraries | |
7340 | *** as such. This will affect the creation of libtool libraries that | |
7341 | *** depend on shared libraries, but programs linked with such libtool | |
7342 | *** libraries will work regardless of this problem. Nevertheless, you | |
7343 | *** may want to report the problem to your system manager and/or to | |
7344 | *** bug-libtool@gnu.org | |
d9898ee8 | 7345 | |
8d138742 CE |
7346 | _LT_EOF |
7347 | fi ;; | |
7348 | esac | |
7349 | fi | |
7350 | break | |
7351 | fi | |
7352 | done | |
7353 | IFS="$lt_save_ifs" | |
7354 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7355 | ;; | |
7356 | esac | |
7357 | fi | |
d9898ee8 | 7358 | |
8d138742 CE |
7359 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7360 | if test -n "$MAGIC_CMD"; then | |
7361 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7362 | $as_echo "$MAGIC_CMD" >&6; } | |
7363 | else | |
7364 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7365 | $as_echo "no" >&6; } | |
7366 | fi | |
d9898ee8 | 7367 | |
d9898ee8 | 7368 | |
d9898ee8 | 7369 | |
d9898ee8 | 7370 | |
d9898ee8 | 7371 | |
8d138742 CE |
7372 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7373 | if test -n "$ac_tool_prefix"; then | |
7374 | { $as_echo "$as_me:$LINENO: checking for file" >&5 | |
7375 | $as_echo_n "checking for file... " >&6; } | |
7376 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7377 | $as_echo_n "(cached) " >&6 | |
7378 | else | |
7379 | case $MAGIC_CMD in | |
7380 | [\\/*] | ?:[\\/]*) | |
7381 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7382 | ;; | |
7383 | *) | |
7384 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7385 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7386 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7387 | for ac_dir in $ac_dummy; do | |
7388 | IFS="$lt_save_ifs" | |
7389 | test -z "$ac_dir" && ac_dir=. | |
7390 | if test -f $ac_dir/file; then | |
7391 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7392 | if test -n "$file_magic_test_file"; then | |
7393 | case $deplibs_check_method in | |
7394 | "file_magic "*) | |
7395 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7396 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7397 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7398 | $EGREP "$file_magic_regex" > /dev/null; then | |
7399 | : | |
7400 | else | |
7401 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 7402 | |
8d138742 CE |
7403 | *** Warning: the command libtool uses to detect shared libraries, |
7404 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7405 | *** The result is that libtool may fail to recognize shared libraries | |
7406 | *** as such. This will affect the creation of libtool libraries that | |
7407 | *** depend on shared libraries, but programs linked with such libtool | |
7408 | *** libraries will work regardless of this problem. Nevertheless, you | |
7409 | *** may want to report the problem to your system manager and/or to | |
7410 | *** bug-libtool@gnu.org | |
d9898ee8 | 7411 | |
8d138742 CE |
7412 | _LT_EOF |
7413 | fi ;; | |
7414 | esac | |
7415 | fi | |
7416 | break | |
7417 | fi | |
7418 | done | |
7419 | IFS="$lt_save_ifs" | |
7420 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7421 | ;; | |
7422 | esac | |
7423 | fi | |
d9898ee8 | 7424 | |
8d138742 CE |
7425 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7426 | if test -n "$MAGIC_CMD"; then | |
7427 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7428 | $as_echo "$MAGIC_CMD" >&6; } | |
7429 | else | |
7430 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7431 | $as_echo "no" >&6; } | |
7432 | fi | |
d9898ee8 | 7433 | |
7434 | ||
8d138742 CE |
7435 | else |
7436 | MAGIC_CMD=: | |
d9898ee8 | 7437 | fi |
7438 | fi | |
7439 | ||
8d138742 CE |
7440 | fi |
7441 | ;; | |
7442 | esac | |
7443 | ||
7444 | # Use C for the default configuration in the libtool script | |
d9898ee8 | 7445 | |
8d138742 | 7446 | lt_save_CC="$CC" |
d9898ee8 | 7447 | ac_ext=c |
7448 | ac_cpp='$CPP $CPPFLAGS' | |
7449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7452 | ||
d9898ee8 | 7453 | |
8d138742 CE |
7454 | # Source file extension for C test sources. |
7455 | ac_ext=c | |
d9898ee8 | 7456 | |
8d138742 | 7457 | # Object file extension for compiled C test sources. |
d9898ee8 | 7458 | objext=o |
8d138742 | 7459 | objext=$objext |
d9898ee8 | 7460 | |
7461 | # Code to be used in simple compile tests | |
8d138742 | 7462 | lt_simple_compile_test_code="int some_variable = 0;" |
d9898ee8 | 7463 | |
7464 | # Code to be used in simple link tests | |
8d138742 CE |
7465 | lt_simple_link_test_code='int main(){return(0);}' |
7466 | ||
7467 | ||
7468 | ||
7469 | ||
7470 | ||
d9898ee8 | 7471 | |
d9898ee8 | 7472 | |
7473 | # If no C compiler was specified, use CC. | |
7474 | LTCC=${LTCC-"$CC"} | |
7475 | ||
7476 | # If no C compiler flags were specified, use CFLAGS. | |
7477 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7478 | ||
7479 | # Allow CC to be a program name with arguments. | |
7480 | compiler=$CC | |
7481 | ||
8d138742 CE |
7482 | # Save the default compiler, since it gets overwritten when the other |
7483 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7484 | compiler_DEFAULT=$CC | |
d9898ee8 | 7485 | |
7486 | # save warnings/boilerplate of simple test code | |
7487 | ac_outfile=conftest.$ac_objext | |
ac40fd9e | 7488 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
d9898ee8 | 7489 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7490 | _lt_compiler_boilerplate=`cat conftest.err` | |
8d138742 | 7491 | $RM conftest* |
d9898ee8 | 7492 | |
7493 | ac_outfile=conftest.$ac_objext | |
ac40fd9e | 7494 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
d9898ee8 | 7495 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7496 | _lt_linker_boilerplate=`cat conftest.err` | |
8d138742 | 7497 | $RM -r conftest* |
d9898ee8 | 7498 | |
7499 | ||
8d138742 | 7500 | if test -n "$compiler"; then |
d9898ee8 | 7501 | |
8d138742 | 7502 | lt_prog_compiler_no_builtin_flag= |
d9898ee8 | 7503 | |
7504 | if test "$GCC" = yes; then | |
8d138742 | 7505 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
d9898ee8 | 7506 | |
8d138742 CE |
7507 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7508 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
d9898ee8 | 7509 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
8d138742 | 7510 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7511 | else |
7512 | lt_cv_prog_compiler_rtti_exceptions=no | |
8d138742 | 7513 | ac_outfile=conftest.$ac_objext |
ac40fd9e | 7514 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 | 7515 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
7516 | # Insert the option either (1) after the last *FLAGS variable, or | |
7517 | # (2) before a word containing "conftest.", or (3) at the end. | |
7518 | # Note that $ac_compile itself does not contain backslashes and begins | |
7519 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7520 | # The option is referenced via a variable to avoid confusing sed. | |
7521 | lt_compile=`echo "$ac_compile" | $SED \ | |
7522 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7523 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7524 | -e 's:$: $lt_compiler_flag:'` | |
8d138742 | 7525 | (eval echo "\"\$as_me:7525: $lt_compile\"" >&5) |
d9898ee8 | 7526 | (eval "$lt_compile" 2>conftest.err) |
7527 | ac_status=$? | |
7528 | cat conftest.err >&5 | |
8d138742 | 7529 | echo "$as_me:7529: \$? = $ac_status" >&5 |
d9898ee8 | 7530 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7531 | # The compiler can only warn and ignore the option if not recognized | |
7532 | # So say no if there are warnings other than the usual output. | |
8d138742 | 7533 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
d9898ee8 | 7534 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7535 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7536 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7537 | fi | |
7538 | fi | |
8d138742 | 7539 | $RM conftest* |
d9898ee8 | 7540 | |
7541 | fi | |
8d138742 CE |
7542 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7543 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
d9898ee8 | 7544 | |
7545 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8d138742 | 7546 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
d9898ee8 | 7547 | else |
7548 | : | |
7549 | fi | |
7550 | ||
7551 | fi | |
7552 | ||
d9898ee8 | 7553 | |
8d138742 CE |
7554 | |
7555 | ||
7556 | ||
7557 | ||
7558 | lt_prog_compiler_wl= | |
7559 | lt_prog_compiler_pic= | |
7560 | lt_prog_compiler_static= | |
7561 | ||
7562 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
7563 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
d9898ee8 | 7564 | |
7565 | if test "$GCC" = yes; then | |
8d138742 CE |
7566 | lt_prog_compiler_wl='-Wl,' |
7567 | lt_prog_compiler_static='-static' | |
d9898ee8 | 7568 | |
7569 | case $host_os in | |
7570 | aix*) | |
7571 | # All AIX code is PIC. | |
7572 | if test "$host_cpu" = ia64; then | |
7573 | # AIX 5 now supports IA64 processor | |
8d138742 | 7574 | lt_prog_compiler_static='-Bstatic' |
d9898ee8 | 7575 | fi |
7576 | ;; | |
7577 | ||
7578 | amigaos*) | |
8d138742 CE |
7579 | case $host_cpu in |
7580 | powerpc) | |
7581 | # see comment about AmigaOS4 .so support | |
7582 | lt_prog_compiler_pic='-fPIC' | |
7583 | ;; | |
7584 | m68k) | |
7585 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7586 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7587 | # like `-m68040'. | |
7588 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7589 | ;; | |
7590 | esac | |
d9898ee8 | 7591 | ;; |
7592 | ||
ac40fd9e | 7593 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
d9898ee8 | 7594 | # PIC is the default for these OSes. |
7595 | ;; | |
7596 | ||
8d138742 | 7597 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
d9898ee8 | 7598 | # This hack is so that the source file can tell whether it is being |
7599 | # built for inclusion in a dll (and should export symbols for example). | |
ac40fd9e | 7600 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
7601 | # (--disable-auto-import) libraries | |
8d138742 | 7602 | lt_prog_compiler_pic='-DDLL_EXPORT' |
d9898ee8 | 7603 | ;; |
7604 | ||
7605 | darwin* | rhapsody*) | |
7606 | # PIC is the default on this platform | |
7607 | # Common symbols not allowed in MH_DYLIB files | |
8d138742 CE |
7608 | lt_prog_compiler_pic='-fno-common' |
7609 | ;; | |
7610 | ||
7611 | hpux*) | |
7612 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
7613 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7614 | # sets the default TLS model and affects inlining. | |
7615 | case $host_cpu in | |
7616 | hppa*64*) | |
7617 | # +Z the default | |
7618 | ;; | |
7619 | *) | |
7620 | lt_prog_compiler_pic='-fPIC' | |
7621 | ;; | |
7622 | esac | |
d9898ee8 | 7623 | ;; |
7624 | ||
ac40fd9e | 7625 | interix[3-9]*) |
d9898ee8 | 7626 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
7627 | # Instead, we relocate shared libraries at runtime. | |
7628 | ;; | |
7629 | ||
7630 | msdosdjgpp*) | |
7631 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7632 | # on systems that don't support them. | |
8d138742 | 7633 | lt_prog_compiler_can_build_shared=no |
d9898ee8 | 7634 | enable_shared=no |
7635 | ;; | |
7636 | ||
8d138742 CE |
7637 | *nto* | *qnx*) |
7638 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7639 | # it will coredump. | |
7640 | lt_prog_compiler_pic='-fPIC -shared' | |
7641 | ;; | |
7642 | ||
d9898ee8 | 7643 | sysv4*MP*) |
7644 | if test -d /usr/nec; then | |
8d138742 | 7645 | lt_prog_compiler_pic=-Kconform_pic |
d9898ee8 | 7646 | fi |
7647 | ;; | |
7648 | ||
d9898ee8 | 7649 | *) |
8d138742 | 7650 | lt_prog_compiler_pic='-fPIC' |
d9898ee8 | 7651 | ;; |
7652 | esac | |
7653 | else | |
7654 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7655 | case $host_os in | |
7656 | aix*) | |
8d138742 | 7657 | lt_prog_compiler_wl='-Wl,' |
d9898ee8 | 7658 | if test "$host_cpu" = ia64; then |
7659 | # AIX 5 now supports IA64 processor | |
8d138742 | 7660 | lt_prog_compiler_static='-Bstatic' |
d9898ee8 | 7661 | else |
8d138742 | 7662 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
d9898ee8 | 7663 | fi |
7664 | ;; | |
d9898ee8 | 7665 | |
8d138742 | 7666 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
d9898ee8 | 7667 | # This hack is so that the source file can tell whether it is being |
7668 | # built for inclusion in a dll (and should export symbols for example). | |
8d138742 | 7669 | lt_prog_compiler_pic='-DDLL_EXPORT' |
d9898ee8 | 7670 | ;; |
7671 | ||
7672 | hpux9* | hpux10* | hpux11*) | |
8d138742 | 7673 | lt_prog_compiler_wl='-Wl,' |
d9898ee8 | 7674 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7675 | # not for PA HP-UX. | |
7676 | case $host_cpu in | |
7677 | hppa*64*|ia64*) | |
7678 | # +Z the default | |
7679 | ;; | |
7680 | *) | |
8d138742 | 7681 | lt_prog_compiler_pic='+Z' |
d9898ee8 | 7682 | ;; |
7683 | esac | |
7684 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8d138742 | 7685 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
d9898ee8 | 7686 | ;; |
7687 | ||
7688 | irix5* | irix6* | nonstopux*) | |
8d138742 | 7689 | lt_prog_compiler_wl='-Wl,' |
d9898ee8 | 7690 | # PIC (with -KPIC) is the default. |
8d138742 | 7691 | lt_prog_compiler_static='-non_shared' |
d9898ee8 | 7692 | ;; |
7693 | ||
ac40fd9e | 7694 | linux* | k*bsd*-gnu) |
d9898ee8 | 7695 | case $cc_basename in |
8d138742 CE |
7696 | # old Intel for x86_64 which still supported -KPIC. |
7697 | ecc*) | |
7698 | lt_prog_compiler_wl='-Wl,' | |
7699 | lt_prog_compiler_pic='-KPIC' | |
7700 | lt_prog_compiler_static='-static' | |
7701 | ;; | |
7702 | # icc used to be incompatible with GCC. | |
7703 | # ICC 10 doesn't accept -KPIC any more. | |
7704 | icc* | ifort*) | |
7705 | lt_prog_compiler_wl='-Wl,' | |
7706 | lt_prog_compiler_pic='-fPIC' | |
7707 | lt_prog_compiler_static='-static' | |
d9898ee8 | 7708 | ;; |
8d138742 CE |
7709 | # Lahey Fortran 8.1. |
7710 | lf95*) | |
7711 | lt_prog_compiler_wl='-Wl,' | |
7712 | lt_prog_compiler_pic='--shared' | |
7713 | lt_prog_compiler_static='--static' | |
7714 | ;; | |
d9898ee8 | 7715 | pgcc* | pgf77* | pgf90* | pgf95*) |
7716 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
7717 | # which looks to be a dead project) | |
8d138742 CE |
7718 | lt_prog_compiler_wl='-Wl,' |
7719 | lt_prog_compiler_pic='-fpic' | |
7720 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 7721 | ;; |
7722 | ccc*) | |
8d138742 | 7723 | lt_prog_compiler_wl='-Wl,' |
d9898ee8 | 7724 | # All Alpha code is PIC. |
8d138742 | 7725 | lt_prog_compiler_static='-non_shared' |
d9898ee8 | 7726 | ;; |
8d138742 CE |
7727 | xl*) |
7728 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
7729 | lt_prog_compiler_wl='-Wl,' | |
7730 | lt_prog_compiler_pic='-qpic' | |
7731 | lt_prog_compiler_static='-qstaticlink' | |
7732 | ;; | |
ac40fd9e | 7733 | *) |
8d138742 | 7734 | case `$CC -V 2>&1 | sed 5q` in |
ac40fd9e | 7735 | *Sun\ C*) |
7736 | # Sun C 5.9 | |
8d138742 CE |
7737 | lt_prog_compiler_pic='-KPIC' |
7738 | lt_prog_compiler_static='-Bstatic' | |
7739 | lt_prog_compiler_wl='-Wl,' | |
ac40fd9e | 7740 | ;; |
7741 | *Sun\ F*) | |
7742 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8d138742 CE |
7743 | lt_prog_compiler_pic='-KPIC' |
7744 | lt_prog_compiler_static='-Bstatic' | |
7745 | lt_prog_compiler_wl='' | |
ac40fd9e | 7746 | ;; |
7747 | esac | |
7748 | ;; | |
d9898ee8 | 7749 | esac |
7750 | ;; | |
7751 | ||
8d138742 CE |
7752 | newsos6) |
7753 | lt_prog_compiler_pic='-KPIC' | |
7754 | lt_prog_compiler_static='-Bstatic' | |
7755 | ;; | |
7756 | ||
7757 | *nto* | *qnx*) | |
7758 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7759 | # it will coredump. | |
7760 | lt_prog_compiler_pic='-fPIC -shared' | |
7761 | ;; | |
7762 | ||
d9898ee8 | 7763 | osf3* | osf4* | osf5*) |
8d138742 | 7764 | lt_prog_compiler_wl='-Wl,' |
d9898ee8 | 7765 | # All OSF/1 code is PIC. |
8d138742 | 7766 | lt_prog_compiler_static='-non_shared' |
d9898ee8 | 7767 | ;; |
7768 | ||
ac40fd9e | 7769 | rdos*) |
8d138742 | 7770 | lt_prog_compiler_static='-non_shared' |
ac40fd9e | 7771 | ;; |
7772 | ||
d9898ee8 | 7773 | solaris*) |
8d138742 CE |
7774 | lt_prog_compiler_pic='-KPIC' |
7775 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 7776 | case $cc_basename in |
7777 | f77* | f90* | f95*) | |
8d138742 | 7778 | lt_prog_compiler_wl='-Qoption ld ';; |
d9898ee8 | 7779 | *) |
8d138742 | 7780 | lt_prog_compiler_wl='-Wl,';; |
d9898ee8 | 7781 | esac |
7782 | ;; | |
7783 | ||
7784 | sunos4*) | |
8d138742 CE |
7785 | lt_prog_compiler_wl='-Qoption ld ' |
7786 | lt_prog_compiler_pic='-PIC' | |
7787 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 7788 | ;; |
7789 | ||
7790 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8d138742 CE |
7791 | lt_prog_compiler_wl='-Wl,' |
7792 | lt_prog_compiler_pic='-KPIC' | |
7793 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 7794 | ;; |
7795 | ||
7796 | sysv4*MP*) | |
7797 | if test -d /usr/nec ;then | |
8d138742 CE |
7798 | lt_prog_compiler_pic='-Kconform_pic' |
7799 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 7800 | fi |
7801 | ;; | |
7802 | ||
7803 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8d138742 CE |
7804 | lt_prog_compiler_wl='-Wl,' |
7805 | lt_prog_compiler_pic='-KPIC' | |
7806 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 7807 | ;; |
7808 | ||
7809 | unicos*) | |
8d138742 CE |
7810 | lt_prog_compiler_wl='-Wl,' |
7811 | lt_prog_compiler_can_build_shared=no | |
d9898ee8 | 7812 | ;; |
7813 | ||
7814 | uts4*) | |
8d138742 CE |
7815 | lt_prog_compiler_pic='-pic' |
7816 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 7817 | ;; |
7818 | ||
7819 | *) | |
8d138742 | 7820 | lt_prog_compiler_can_build_shared=no |
d9898ee8 | 7821 | ;; |
7822 | esac | |
7823 | fi | |
7824 | ||
8d138742 CE |
7825 | case $host_os in |
7826 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7827 | *djgpp*) | |
7828 | lt_prog_compiler_pic= | |
7829 | ;; | |
7830 | *) | |
7831 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7832 | ;; | |
7833 | esac | |
7834 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
7835 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
7836 | ||
7837 | ||
7838 | ||
7839 | ||
7840 | ||
d9898ee8 | 7841 | |
7842 | # | |
7843 | # Check to make sure the PIC flag actually works. | |
7844 | # | |
8d138742 CE |
7845 | if test -n "$lt_prog_compiler_pic"; then |
7846 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7847 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
7848 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then | |
7849 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 7850 | else |
8d138742 CE |
7851 | lt_cv_prog_compiler_pic_works=no |
7852 | ac_outfile=conftest.$ac_objext | |
ac40fd9e | 7853 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8d138742 | 7854 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
d9898ee8 | 7855 | # Insert the option either (1) after the last *FLAGS variable, or |
7856 | # (2) before a word containing "conftest.", or (3) at the end. | |
7857 | # Note that $ac_compile itself does not contain backslashes and begins | |
7858 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7859 | # The option is referenced via a variable to avoid confusing sed. | |
7860 | lt_compile=`echo "$ac_compile" | $SED \ | |
7861 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7862 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7863 | -e 's:$: $lt_compiler_flag:'` | |
8d138742 | 7864 | (eval echo "\"\$as_me:7864: $lt_compile\"" >&5) |
d9898ee8 | 7865 | (eval "$lt_compile" 2>conftest.err) |
7866 | ac_status=$? | |
7867 | cat conftest.err >&5 | |
8d138742 | 7868 | echo "$as_me:7868: \$? = $ac_status" >&5 |
d9898ee8 | 7869 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7870 | # The compiler can only warn and ignore the option if not recognized | |
7871 | # So say no if there are warnings other than the usual output. | |
8d138742 | 7872 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
d9898ee8 | 7873 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7874 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8d138742 | 7875 | lt_cv_prog_compiler_pic_works=yes |
d9898ee8 | 7876 | fi |
7877 | fi | |
8d138742 | 7878 | $RM conftest* |
d9898ee8 | 7879 | |
7880 | fi | |
8d138742 CE |
7881 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
7882 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
d9898ee8 | 7883 | |
8d138742 CE |
7884 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
7885 | case $lt_prog_compiler_pic in | |
d9898ee8 | 7886 | "" | " "*) ;; |
8d138742 | 7887 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
d9898ee8 | 7888 | esac |
7889 | else | |
8d138742 CE |
7890 | lt_prog_compiler_pic= |
7891 | lt_prog_compiler_can_build_shared=no | |
d9898ee8 | 7892 | fi |
7893 | ||
7894 | fi | |
8d138742 CE |
7895 | |
7896 | ||
7897 | ||
7898 | ||
7899 | ||
d9898ee8 | 7900 | |
7901 | # | |
7902 | # Check to make sure the static flag actually works. | |
7903 | # | |
8d138742 CE |
7904 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
7905 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7906 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
7907 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then | |
7908 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 7909 | else |
8d138742 | 7910 | lt_cv_prog_compiler_static_works=no |
d9898ee8 | 7911 | save_LDFLAGS="$LDFLAGS" |
7912 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
ac40fd9e | 7913 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
d9898ee8 | 7914 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
7915 | # The linker can only warn and ignore the option if not recognized | |
7916 | # So say no if there are warnings | |
7917 | if test -s conftest.err; then | |
7918 | # Append any errors to the config.log. | |
7919 | cat conftest.err 1>&5 | |
8d138742 | 7920 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
d9898ee8 | 7921 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7922 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8d138742 | 7923 | lt_cv_prog_compiler_static_works=yes |
d9898ee8 | 7924 | fi |
7925 | else | |
8d138742 | 7926 | lt_cv_prog_compiler_static_works=yes |
d9898ee8 | 7927 | fi |
7928 | fi | |
8d138742 | 7929 | $RM -r conftest* |
d9898ee8 | 7930 | LDFLAGS="$save_LDFLAGS" |
7931 | ||
8d138742 CE |
7932 | fi |
7933 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 | |
7934 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
7935 | ||
7936 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
7937 | : | |
7938 | else | |
7939 | lt_prog_compiler_static= | |
7940 | fi | |
7941 | ||
7942 | ||
7943 | ||
7944 | ||
7945 | ||
7946 | ||
7947 | ||
7948 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7949 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7950 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7951 | $as_echo_n "(cached) " >&6 | |
7952 | else | |
7953 | lt_cv_prog_compiler_c_o=no | |
7954 | $RM -r conftest 2>/dev/null | |
7955 | mkdir conftest | |
7956 | cd conftest | |
7957 | mkdir out | |
7958 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7959 | ||
7960 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7961 | # Insert the option either (1) after the last *FLAGS variable, or | |
7962 | # (2) before a word containing "conftest.", or (3) at the end. | |
7963 | # Note that $ac_compile itself does not contain backslashes and begins | |
7964 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7965 | lt_compile=`echo "$ac_compile" | $SED \ | |
7966 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7967 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7968 | -e 's:$: $lt_compiler_flag:'` | |
7969 | (eval echo "\"\$as_me:7969: $lt_compile\"" >&5) | |
7970 | (eval "$lt_compile" 2>out/conftest.err) | |
7971 | ac_status=$? | |
7972 | cat out/conftest.err >&5 | |
7973 | echo "$as_me:7973: \$? = $ac_status" >&5 | |
7974 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
7975 | then | |
7976 | # The compiler can only warn and ignore the option if not recognized | |
7977 | # So say no if there are warnings | |
7978 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7979 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7980 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7981 | lt_cv_prog_compiler_c_o=yes | |
7982 | fi | |
7983 | fi | |
7984 | chmod u+w . 2>&5 | |
7985 | $RM conftest* | |
7986 | # SGI C++ compiler will create directory out/ii_files/ for | |
7987 | # template instantiation | |
7988 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7989 | $RM out/* && rmdir out | |
7990 | cd .. | |
7991 | $RM -r conftest | |
7992 | $RM conftest* | |
7993 | ||
7994 | fi | |
7995 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7996 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7997 | ||
7998 | ||
7999 | ||
d9898ee8 | 8000 | |
d9898ee8 | 8001 | |
8002 | ||
8d138742 CE |
8003 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8004 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8005 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8006 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 8007 | else |
8d138742 CE |
8008 | lt_cv_prog_compiler_c_o=no |
8009 | $RM -r conftest 2>/dev/null | |
d9898ee8 | 8010 | mkdir conftest |
8011 | cd conftest | |
8012 | mkdir out | |
ac40fd9e | 8013 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 | 8014 | |
8015 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8016 | # Insert the option either (1) after the last *FLAGS variable, or | |
8017 | # (2) before a word containing "conftest.", or (3) at the end. | |
8018 | # Note that $ac_compile itself does not contain backslashes and begins | |
8019 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8020 | lt_compile=`echo "$ac_compile" | $SED \ | |
8021 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8022 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8023 | -e 's:$: $lt_compiler_flag:'` | |
8d138742 | 8024 | (eval echo "\"\$as_me:8024: $lt_compile\"" >&5) |
d9898ee8 | 8025 | (eval "$lt_compile" 2>out/conftest.err) |
8026 | ac_status=$? | |
8027 | cat out/conftest.err >&5 | |
8d138742 | 8028 | echo "$as_me:8028: \$? = $ac_status" >&5 |
d9898ee8 | 8029 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8030 | then | |
8031 | # The compiler can only warn and ignore the option if not recognized | |
8032 | # So say no if there are warnings | |
8d138742 | 8033 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
d9898ee8 | 8034 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8035 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8d138742 | 8036 | lt_cv_prog_compiler_c_o=yes |
d9898ee8 | 8037 | fi |
8038 | fi | |
8039 | chmod u+w . 2>&5 | |
8d138742 | 8040 | $RM conftest* |
d9898ee8 | 8041 | # SGI C++ compiler will create directory out/ii_files/ for |
8042 | # template instantiation | |
8d138742 CE |
8043 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
8044 | $RM out/* && rmdir out | |
d9898ee8 | 8045 | cd .. |
8d138742 CE |
8046 | $RM -r conftest |
8047 | $RM conftest* | |
d9898ee8 | 8048 | |
8049 | fi | |
8d138742 CE |
8050 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
8051 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8052 | ||
8053 | ||
d9898ee8 | 8054 | |
8055 | ||
8056 | hard_links="nottested" | |
8d138742 | 8057 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
d9898ee8 | 8058 | # do not overwrite the value of need_locks provided by the user |
8d138742 CE |
8059 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
8060 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
d9898ee8 | 8061 | hard_links=yes |
8d138742 | 8062 | $RM conftest* |
d9898ee8 | 8063 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
8064 | touch conftest.a | |
8065 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8066 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8d138742 CE |
8067 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 |
8068 | $as_echo "$hard_links" >&6; } | |
d9898ee8 | 8069 | if test "$hard_links" = no; then |
8d138742 CE |
8070 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8071 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
d9898ee8 | 8072 | need_locks=warn |
8073 | fi | |
8074 | else | |
8075 | need_locks=no | |
8076 | fi | |
8077 | ||
8d138742 CE |
8078 | |
8079 | ||
8080 | ||
8081 | ||
8082 | ||
8083 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8084 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d9898ee8 | 8085 | |
8086 | runpath_var= | |
8d138742 CE |
8087 | allow_undefined_flag= |
8088 | always_export_symbols=no | |
8089 | archive_cmds= | |
8090 | archive_expsym_cmds= | |
8091 | compiler_needs_object=no | |
8092 | enable_shared_with_static_runtimes=no | |
8093 | export_dynamic_flag_spec= | |
8094 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8095 | hardcode_automatic=no | |
8096 | hardcode_direct=no | |
8097 | hardcode_direct_absolute=no | |
8098 | hardcode_libdir_flag_spec= | |
8099 | hardcode_libdir_flag_spec_ld= | |
8100 | hardcode_libdir_separator= | |
8101 | hardcode_minus_L=no | |
8102 | hardcode_shlibpath_var=unsupported | |
8103 | inherit_rpath=no | |
8104 | link_all_deplibs=unknown | |
8105 | module_cmds= | |
8106 | module_expsym_cmds= | |
8107 | old_archive_from_new_cmds= | |
8108 | old_archive_from_expsyms_cmds= | |
8109 | thread_safe_flag_spec= | |
8110 | whole_archive_flag_spec= | |
d9898ee8 | 8111 | # include_expsyms should be a list of space-separated symbols to be *always* |
8112 | # included in the symbol list | |
8d138742 | 8113 | include_expsyms= |
d9898ee8 | 8114 | # exclude_expsyms can be an extended regexp of symbols to exclude |
8115 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8116 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8117 | # as well as any symbol that contains `d'. | |
8d138742 | 8118 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
d9898ee8 | 8119 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8120 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8121 | # the symbol is explicitly referenced. Since portable code cannot | |
8122 | # rely on this symbol name, it's probably fine to never include it in | |
8123 | # preloaded symbol tables. | |
8d138742 | 8124 | # Exclude shared library initialization/finalization symbols. |
d9898ee8 | 8125 | extract_expsyms_cmds= |
d9898ee8 | 8126 | |
8127 | case $host_os in | |
8d138742 | 8128 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 8129 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8130 | # When not using gcc, we currently assume that we are using | |
8131 | # Microsoft Visual C++. | |
8132 | if test "$GCC" != yes; then | |
8133 | with_gnu_ld=no | |
8134 | fi | |
8135 | ;; | |
8136 | interix*) | |
8137 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8138 | with_gnu_ld=yes | |
8139 | ;; | |
8140 | openbsd*) | |
8141 | with_gnu_ld=no | |
8142 | ;; | |
8143 | esac | |
8144 | ||
8d138742 | 8145 | ld_shlibs=yes |
d9898ee8 | 8146 | if test "$with_gnu_ld" = yes; then |
8147 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8148 | wlarc='${wl}' | |
8149 | ||
8150 | # Set some defaults for GNU ld with shared library support. These | |
8151 | # are reset later if shared libraries are not supported. Putting them | |
8152 | # here allows them to be overridden if necessary. | |
8153 | runpath_var=LD_RUN_PATH | |
8d138742 CE |
8154 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8155 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
d9898ee8 | 8156 | # ancient GNU ld didn't support --whole-archive et. al. |
8d138742 CE |
8157 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
8158 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8159 | else | |
8160 | whole_archive_flag_spec= | |
d9898ee8 | 8161 | fi |
8162 | supports_anon_versioning=no | |
8d138742 | 8163 | case `$LD -v 2>&1` in |
d9898ee8 | 8164 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8165 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8166 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8167 | *\ 2.11.*) ;; # other 2.11 versions | |
8168 | *) supports_anon_versioning=yes ;; | |
8169 | esac | |
8170 | ||
8171 | # See if GNU ld supports shared libraries. | |
8172 | case $host_os in | |
8d138742 | 8173 | aix[3-9]*) |
d9898ee8 | 8174 | # On AIX/PPC, the GNU linker is very broken |
8175 | if test "$host_cpu" != ia64; then | |
8d138742 CE |
8176 | ld_shlibs=no |
8177 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8178 | |
8179 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
8180 | *** to be unable to reliably create shared libraries on AIX. | |
8181 | *** Therefore, libtool is disabling shared libraries support. If you | |
8182 | *** really care for shared libraries, you may want to modify your PATH | |
8183 | *** so that a non-GNU linker is found, and then restart. | |
8184 | ||
8d138742 | 8185 | _LT_EOF |
d9898ee8 | 8186 | fi |
8187 | ;; | |
8188 | ||
8189 | amigaos*) | |
8d138742 CE |
8190 | case $host_cpu in |
8191 | powerpc) | |
8192 | # see comment about AmigaOS4 .so support | |
8193 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8194 | archive_expsym_cmds='' | |
8195 | ;; | |
8196 | m68k) | |
8197 | 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)' | |
8198 | hardcode_libdir_flag_spec='-L$libdir' | |
8199 | hardcode_minus_L=yes | |
8200 | ;; | |
8201 | esac | |
d9898ee8 | 8202 | ;; |
8203 | ||
8204 | beos*) | |
8d138742 CE |
8205 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
8206 | allow_undefined_flag=unsupported | |
d9898ee8 | 8207 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
8208 | # support --undefined. This deserves some investigation. FIXME | |
8d138742 | 8209 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
d9898ee8 | 8210 | else |
8d138742 | 8211 | ld_shlibs=no |
d9898ee8 | 8212 | fi |
8213 | ;; | |
8214 | ||
8d138742 CE |
8215 | cygwin* | mingw* | pw32* | cegcc*) |
8216 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
d9898ee8 | 8217 | # as there is no search path for DLLs. |
8d138742 CE |
8218 | hardcode_libdir_flag_spec='-L$libdir' |
8219 | allow_undefined_flag=unsupported | |
8220 | always_export_symbols=no | |
8221 | enable_shared_with_static_runtimes=yes | |
8222 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8223 | ||
8224 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8225 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
d9898ee8 | 8226 | # If the export-symbols file already is a .def file (1st line |
8227 | # is EXPORTS), use it as is; otherwise, prepend... | |
8d138742 | 8228 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
d9898ee8 | 8229 | cp $export_symbols $output_objdir/$soname.def; |
8230 | else | |
8231 | echo EXPORTS > $output_objdir/$soname.def; | |
8232 | cat $export_symbols >> $output_objdir/$soname.def; | |
8233 | fi~ | |
8234 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8235 | else | |
8d138742 | 8236 | ld_shlibs=no |
d9898ee8 | 8237 | fi |
8238 | ;; | |
8239 | ||
ac40fd9e | 8240 | interix[3-9]*) |
8d138742 CE |
8241 | hardcode_direct=no |
8242 | hardcode_shlibpath_var=no | |
8243 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8244 | export_dynamic_flag_spec='${wl}-E' | |
d9898ee8 | 8245 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
8246 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8247 | # default) and relocated if they conflict, which is a slow very memory | |
8248 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8249 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8250 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8d138742 CE |
8251 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
8252 | 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' | |
d9898ee8 | 8253 | ;; |
8254 | ||
8d138742 CE |
8255 | gnu* | linux* | tpf* | k*bsd*-gnu) |
8256 | tmp_diet=no | |
8257 | if test "$host_os" = linux-dietlibc; then | |
8258 | case $cc_basename in | |
8259 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8260 | esac | |
8261 | fi | |
8262 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8263 | && test "$tmp_diet" = no | |
8264 | then | |
d9898ee8 | 8265 | tmp_addflag= |
8d138742 | 8266 | tmp_sharedflag='-shared' |
d9898ee8 | 8267 | case $cc_basename,$host_cpu in |
8d138742 CE |
8268 | pgcc*) # Portland Group C compiler |
8269 | 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' | |
d9898ee8 | 8270 | tmp_addflag=' $pic_flag' |
8271 | ;; | |
8272 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
8d138742 | 8273 | 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' |
d9898ee8 | 8274 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8d138742 | 8275 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
d9898ee8 | 8276 | tmp_addflag=' -i_dynamic' ;; |
8277 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8278 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8279 | ifc* | ifort*) # Intel Fortran compiler | |
8280 | tmp_addflag=' -nofor_main' ;; | |
8d138742 CE |
8281 | lf95*) # Lahey Fortran 8.1 |
8282 | whole_archive_flag_spec= | |
8283 | tmp_sharedflag='--shared' ;; | |
8284 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8285 | tmp_sharedflag='-qmkshrobj' | |
8286 | tmp_addflag= ;; | |
d9898ee8 | 8287 | esac |
ac40fd9e | 8288 | case `$CC -V 2>&1 | sed 5q` in |
8289 | *Sun\ C*) # Sun C 5.9 | |
8d138742 CE |
8290 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
8291 | compiler_needs_object=yes | |
ac40fd9e | 8292 | tmp_sharedflag='-G' ;; |
8293 | *Sun\ F*) # Sun Fortran 8.3 | |
8294 | tmp_sharedflag='-G' ;; | |
ac40fd9e | 8295 | esac |
8d138742 | 8296 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
d9898ee8 | 8297 | |
8d138742 CE |
8298 | if test "x$supports_anon_versioning" = xyes; then |
8299 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8300 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8301 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8302 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8303 | fi | |
8304 | ||
8305 | case $cc_basename in | |
8306 | xlf*) | |
8307 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8308 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8309 | hardcode_libdir_flag_spec= | |
8310 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8311 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8312 | if test "x$supports_anon_versioning" = xyes; then | |
8313 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8314 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8315 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8316 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8317 | fi | |
8318 | ;; | |
8319 | esac | |
d9898ee8 | 8320 | else |
8d138742 | 8321 | ld_shlibs=no |
d9898ee8 | 8322 | fi |
8323 | ;; | |
8324 | ||
8325 | netbsd*) | |
8d138742 CE |
8326 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
8327 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
d9898ee8 | 8328 | wlarc= |
8329 | else | |
8d138742 CE |
8330 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8331 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
d9898ee8 | 8332 | fi |
8333 | ;; | |
8334 | ||
8335 | solaris*) | |
8d138742 CE |
8336 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
8337 | ld_shlibs=no | |
8338 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8339 | |
8340 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8341 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8342 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8343 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8344 | *** your PATH or compiler configuration so that the native linker is | |
8345 | *** used, and then restart. | |
8346 | ||
8d138742 CE |
8347 | _LT_EOF |
8348 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8349 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8350 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
d9898ee8 | 8351 | else |
8d138742 | 8352 | ld_shlibs=no |
d9898ee8 | 8353 | fi |
8354 | ;; | |
8355 | ||
8356 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8357 | case `$LD -v 2>&1` in | |
8358 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8d138742 | 8359 | ld_shlibs=no |
d9898ee8 | 8360 | cat <<_LT_EOF 1>&2 |
8361 | ||
8362 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8363 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8364 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8365 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8366 | *** your PATH or compiler configuration so that the native linker is | |
8367 | *** used, and then restart. | |
8368 | ||
8369 | _LT_EOF | |
8370 | ;; | |
8371 | *) | |
8d138742 CE |
8372 | # For security reasons, it is highly recommended that you always |
8373 | # use absolute paths for naming shared libraries, and exclude the | |
8374 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8375 | # requires that you compile everything twice, which is a pain. | |
8376 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8377 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8378 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8379 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
d9898ee8 | 8380 | else |
8d138742 | 8381 | ld_shlibs=no |
d9898ee8 | 8382 | fi |
8383 | ;; | |
8384 | esac | |
8385 | ;; | |
8386 | ||
8387 | sunos4*) | |
8d138742 | 8388 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
d9898ee8 | 8389 | wlarc= |
8d138742 CE |
8390 | hardcode_direct=yes |
8391 | hardcode_shlibpath_var=no | |
d9898ee8 | 8392 | ;; |
8393 | ||
8394 | *) | |
8d138742 CE |
8395 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
8396 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8397 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
d9898ee8 | 8398 | else |
8d138742 | 8399 | ld_shlibs=no |
d9898ee8 | 8400 | fi |
8401 | ;; | |
8402 | esac | |
8403 | ||
8d138742 | 8404 | if test "$ld_shlibs" = no; then |
d9898ee8 | 8405 | runpath_var= |
8d138742 CE |
8406 | hardcode_libdir_flag_spec= |
8407 | export_dynamic_flag_spec= | |
8408 | whole_archive_flag_spec= | |
d9898ee8 | 8409 | fi |
8410 | else | |
8411 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8412 | case $host_os in | |
8413 | aix3*) | |
8d138742 CE |
8414 | allow_undefined_flag=unsupported |
8415 | always_export_symbols=yes | |
8416 | 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' | |
d9898ee8 | 8417 | # Note: this linker hardcodes the directories in LIBPATH if there |
8418 | # are no directories specified by -L. | |
8d138742 | 8419 | hardcode_minus_L=yes |
d9898ee8 | 8420 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
8421 | # Neither direct hardcoding nor static linking is supported with a | |
8422 | # broken collect2. | |
8d138742 | 8423 | hardcode_direct=unsupported |
d9898ee8 | 8424 | fi |
8425 | ;; | |
8426 | ||
8d138742 | 8427 | aix[4-9]*) |
d9898ee8 | 8428 | if test "$host_cpu" = ia64; then |
8429 | # On IA64, the linker does run time linking by default, so we don't | |
8430 | # have to do anything special. | |
8431 | aix_use_runtimelinking=no | |
8432 | exp_sym_flag='-Bexport' | |
8433 | no_entry_flag="" | |
8434 | else | |
8435 | # If we're using GNU nm, then we don't want the "-C" option. | |
8436 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8d138742 CE |
8437 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
8438 | 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' | |
d9898ee8 | 8439 | else |
8d138742 | 8440 | 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' |
d9898ee8 | 8441 | fi |
8442 | aix_use_runtimelinking=no | |
8443 | ||
8444 | # Test if we are trying to use run time linking or normal | |
8445 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8446 | # need to do runtime linking. | |
8d138742 | 8447 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
d9898ee8 | 8448 | for ld_flag in $LDFLAGS; do |
8d138742 CE |
8449 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
8450 | aix_use_runtimelinking=yes | |
8451 | break | |
8452 | fi | |
d9898ee8 | 8453 | done |
8454 | ;; | |
8455 | esac | |
8456 | ||
8457 | exp_sym_flag='-bexport' | |
8458 | no_entry_flag='-bnoentry' | |
8459 | fi | |
8460 | ||
8461 | # When large executables or shared objects are built, AIX ld can | |
8462 | # have problems creating the table of contents. If linking a library | |
8463 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8464 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8465 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8466 | ||
8d138742 CE |
8467 | archive_cmds='' |
8468 | hardcode_direct=yes | |
8469 | hardcode_direct_absolute=yes | |
8470 | hardcode_libdir_separator=':' | |
8471 | link_all_deplibs=yes | |
8472 | file_list_spec='${wl}-f,' | |
d9898ee8 | 8473 | |
8474 | if test "$GCC" = yes; then | |
8475 | case $host_os in aix4.[012]|aix4.[012].*) | |
8476 | # We only want to do this on AIX 4.2 and lower, the check | |
8477 | # below for broken collect2 doesn't work under 4.3+ | |
8478 | collect2name=`${CC} -print-prog-name=collect2` | |
8d138742 CE |
8479 | if test -f "$collect2name" && |
8480 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
d9898ee8 | 8481 | then |
8d138742 CE |
8482 | # We have reworked collect2 |
8483 | : | |
d9898ee8 | 8484 | else |
8d138742 CE |
8485 | # We have old collect2 |
8486 | hardcode_direct=unsupported | |
8487 | # It fails to find uninstalled libraries when the uninstalled | |
8488 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8489 | # to unsupported forces relinking | |
8490 | hardcode_minus_L=yes | |
8491 | hardcode_libdir_flag_spec='-L$libdir' | |
8492 | hardcode_libdir_separator= | |
d9898ee8 | 8493 | fi |
8494 | ;; | |
8495 | esac | |
8496 | shared_flag='-shared' | |
8497 | if test "$aix_use_runtimelinking" = yes; then | |
8498 | shared_flag="$shared_flag "'${wl}-G' | |
8499 | fi | |
8500 | else | |
8501 | # not using gcc | |
8502 | if test "$host_cpu" = ia64; then | |
8d138742 CE |
8503 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
8504 | # chokes on -Wl,-G. The following line is correct: | |
d9898ee8 | 8505 | shared_flag='-G' |
8506 | else | |
8507 | if test "$aix_use_runtimelinking" = yes; then | |
8508 | shared_flag='${wl}-G' | |
8509 | else | |
8510 | shared_flag='${wl}-bM:SRE' | |
8511 | fi | |
8512 | fi | |
8513 | fi | |
8514 | ||
8d138742 | 8515 | export_dynamic_flag_spec='${wl}-bexpall' |
d9898ee8 | 8516 | # It seems that -bexpall does not export symbols beginning with |
8517 | # underscore (_), so it is better to generate a list of symbols to export. | |
8d138742 | 8518 | always_export_symbols=yes |
d9898ee8 | 8519 | if test "$aix_use_runtimelinking" = yes; then |
8520 | # Warning - without using the other runtime loading flags (-brtl), | |
8521 | # -berok will link without error, but may produce a broken library. | |
8d138742 CE |
8522 | allow_undefined_flag='-berok' |
8523 | # Determine the default libpath from the value encoded in an | |
8524 | # empty executable. | |
8525 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 8526 | /* confdefs.h. */ |
8527 | _ACEOF | |
8528 | cat confdefs.h >>conftest.$ac_ext | |
8529 | cat >>conftest.$ac_ext <<_ACEOF | |
8530 | /* end confdefs.h. */ | |
8531 | ||
8532 | int | |
8533 | main () | |
8534 | { | |
8535 | ||
8536 | ; | |
8537 | return 0; | |
8538 | } | |
8539 | _ACEOF | |
8540 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 8541 | if { (ac_try="$ac_link" |
8542 | case "(($ac_try" in | |
8543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8544 | *) ac_try_echo=$ac_try;; | |
8545 | esac | |
8d138742 CE |
8546 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8547 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 8548 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 8549 | ac_status=$? |
8550 | grep -v '^ *+' conftest.er1 >conftest.err | |
8551 | rm -f conftest.er1 | |
8552 | cat conftest.err >&5 | |
8d138742 | 8553 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 8554 | (exit $ac_status); } && { |
8555 | test -z "$ac_c_werror_flag" || | |
8556 | test ! -s conftest.err | |
8d138742 CE |
8557 | } && test -s conftest$ac_exeext && { |
8558 | test "$cross_compiling" = yes || | |
8559 | $as_test_x conftest$ac_exeext | |
8560 | }; then | |
d9898ee8 | 8561 | |
ac40fd9e | 8562 | lt_aix_libpath_sed=' |
8563 | /Import File Strings/,/^$/ { | |
8564 | /^0/ { | |
8565 | s/^0 *\(.*\)$/\1/ | |
8566 | p | |
8567 | } | |
8568 | }' | |
8569 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
d9898ee8 | 8570 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e | 8571 | if test -z "$aix_libpath"; then |
8572 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8573 | fi | |
d9898ee8 | 8574 | else |
8d138742 | 8575 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 8576 | sed 's/^/| /' conftest.$ac_ext >&5 |
8577 | ||
dd184caf | 8578 | |
d9898ee8 | 8579 | fi |
dd184caf | 8580 | |
8d138742 | 8581 | rm -rf conftest.dSYM |
dd184caf | 8582 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 8583 | conftest$ac_exeext conftest.$ac_ext |
8584 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8585 | ||
8d138742 CE |
8586 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8587 | 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" | |
8588 | else | |
d9898ee8 | 8589 | if test "$host_cpu" = ia64; then |
8d138742 CE |
8590 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8591 | allow_undefined_flag="-z nodefs" | |
8592 | 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" | |
d9898ee8 | 8593 | else |
8d138742 CE |
8594 | # Determine the default libpath from the value encoded in an |
8595 | # empty executable. | |
d9898ee8 | 8596 | cat >conftest.$ac_ext <<_ACEOF |
8597 | /* confdefs.h. */ | |
8598 | _ACEOF | |
8599 | cat confdefs.h >>conftest.$ac_ext | |
8600 | cat >>conftest.$ac_ext <<_ACEOF | |
8601 | /* end confdefs.h. */ | |
8602 | ||
8603 | int | |
8604 | main () | |
8605 | { | |
8606 | ||
8607 | ; | |
8608 | return 0; | |
8609 | } | |
8610 | _ACEOF | |
8611 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 8612 | if { (ac_try="$ac_link" |
8613 | case "(($ac_try" in | |
8614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8615 | *) ac_try_echo=$ac_try;; | |
8616 | esac | |
8d138742 CE |
8617 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8618 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 8619 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 8620 | ac_status=$? |
8621 | grep -v '^ *+' conftest.er1 >conftest.err | |
8622 | rm -f conftest.er1 | |
8623 | cat conftest.err >&5 | |
8d138742 | 8624 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 8625 | (exit $ac_status); } && { |
8626 | test -z "$ac_c_werror_flag" || | |
8627 | test ! -s conftest.err | |
8d138742 CE |
8628 | } && test -s conftest$ac_exeext && { |
8629 | test "$cross_compiling" = yes || | |
8630 | $as_test_x conftest$ac_exeext | |
8631 | }; then | |
d9898ee8 | 8632 | |
ac40fd9e | 8633 | lt_aix_libpath_sed=' |
8634 | /Import File Strings/,/^$/ { | |
8635 | /^0/ { | |
8636 | s/^0 *\(.*\)$/\1/ | |
8637 | p | |
8638 | } | |
8639 | }' | |
8640 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
d9898ee8 | 8641 | # Check for a 64-bit object if we didn't find anything. |
ac40fd9e | 8642 | if test -z "$aix_libpath"; then |
8643 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8644 | fi | |
d9898ee8 | 8645 | else |
8d138742 | 8646 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 8647 | sed 's/^/| /' conftest.$ac_ext >&5 |
8648 | ||
dd184caf | 8649 | |
d9898ee8 | 8650 | fi |
dd184caf | 8651 | |
8d138742 | 8652 | rm -rf conftest.dSYM |
dd184caf | 8653 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 8654 | conftest$ac_exeext conftest.$ac_ext |
8655 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8656 | ||
8d138742 | 8657 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
d9898ee8 | 8658 | # Warning - without using the other run time loading flags, |
8659 | # -berok will link without error, but may produce a broken library. | |
8d138742 CE |
8660 | no_undefined_flag=' ${wl}-bernotok' |
8661 | allow_undefined_flag=' ${wl}-berok' | |
d9898ee8 | 8662 | # Exported symbols can be pulled into shared objects from archives |
8d138742 CE |
8663 | whole_archive_flag_spec='$convenience' |
8664 | archive_cmds_need_lc=yes | |
d9898ee8 | 8665 | # This is similar to how AIX traditionally builds its shared libraries. |
8d138742 | 8666 | 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' |
d9898ee8 | 8667 | fi |
8668 | fi | |
8669 | ;; | |
8670 | ||
8671 | amigaos*) | |
8d138742 CE |
8672 | case $host_cpu in |
8673 | powerpc) | |
8674 | # see comment about AmigaOS4 .so support | |
8675 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8676 | archive_expsym_cmds='' | |
8677 | ;; | |
8678 | m68k) | |
8679 | 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)' | |
8680 | hardcode_libdir_flag_spec='-L$libdir' | |
8681 | hardcode_minus_L=yes | |
8682 | ;; | |
8683 | esac | |
d9898ee8 | 8684 | ;; |
8685 | ||
8686 | bsdi[45]*) | |
8d138742 | 8687 | export_dynamic_flag_spec=-rdynamic |
d9898ee8 | 8688 | ;; |
8689 | ||
8d138742 | 8690 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 8691 | # When not using gcc, we currently assume that we are using |
8692 | # Microsoft Visual C++. | |
8693 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8694 | # no search path for DLLs. | |
8d138742 CE |
8695 | hardcode_libdir_flag_spec=' ' |
8696 | allow_undefined_flag=unsupported | |
d9898ee8 | 8697 | # Tell ltmain to make .lib files, not .a files. |
8698 | libext=lib | |
8699 | # Tell ltmain to make .dll files, not .so files. | |
8700 | shrext_cmds=".dll" | |
8701 | # FIXME: Setting linknames here is a bad hack. | |
8d138742 | 8702 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
d9898ee8 | 8703 | # The linker will automatically build a .lib file if we build a DLL. |
8d138742 | 8704 | old_archive_from_new_cmds='true' |
d9898ee8 | 8705 | # FIXME: Should let the user specify the lib program. |
8d138742 CE |
8706 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
8707 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8708 | enable_shared_with_static_runtimes=yes | |
d9898ee8 | 8709 | ;; |
8710 | ||
8711 | darwin* | rhapsody*) | |
8d138742 CE |
8712 | |
8713 | ||
8714 | archive_cmds_need_lc=no | |
8715 | hardcode_direct=no | |
8716 | hardcode_automatic=yes | |
8717 | hardcode_shlibpath_var=unsupported | |
8718 | whole_archive_flag_spec='' | |
8719 | link_all_deplibs=yes | |
8720 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
8721 | case $cc_basename in | |
8722 | ifort*) _lt_dar_can_shared=yes ;; | |
8723 | *) _lt_dar_can_shared=$GCC ;; | |
8724 | esac | |
8725 | if test "$_lt_dar_can_shared" = "yes"; then | |
8726 | output_verbose_link_cmd=echo | |
8727 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
8728 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
8729 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
8730 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
8731 | ||
8732 | else | |
8733 | ld_shlibs=no | |
8734 | fi | |
8735 | ||
d9898ee8 | 8736 | ;; |
8737 | ||
8738 | dgux*) | |
8d138742 CE |
8739 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8740 | hardcode_libdir_flag_spec='-L$libdir' | |
8741 | hardcode_shlibpath_var=no | |
d9898ee8 | 8742 | ;; |
8743 | ||
8744 | freebsd1*) | |
8d138742 | 8745 | ld_shlibs=no |
d9898ee8 | 8746 | ;; |
8747 | ||
8748 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
8749 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8750 | # does not break anything, and helps significantly (at the cost of a little | |
8751 | # extra space). | |
8752 | freebsd2.2*) | |
8d138742 CE |
8753 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
8754 | hardcode_libdir_flag_spec='-R$libdir' | |
8755 | hardcode_direct=yes | |
8756 | hardcode_shlibpath_var=no | |
d9898ee8 | 8757 | ;; |
8758 | ||
8759 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
8760 | freebsd2*) | |
8d138742 CE |
8761 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8762 | hardcode_direct=yes | |
8763 | hardcode_minus_L=yes | |
8764 | hardcode_shlibpath_var=no | |
d9898ee8 | 8765 | ;; |
8766 | ||
8767 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
ac40fd9e | 8768 | freebsd* | dragonfly*) |
8d138742 CE |
8769 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
8770 | hardcode_libdir_flag_spec='-R$libdir' | |
8771 | hardcode_direct=yes | |
8772 | hardcode_shlibpath_var=no | |
d9898ee8 | 8773 | ;; |
8774 | ||
8775 | hpux9*) | |
8776 | if test "$GCC" = yes; then | |
8d138742 | 8777 | 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' |
d9898ee8 | 8778 | else |
8d138742 | 8779 | 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' |
d9898ee8 | 8780 | fi |
8d138742 CE |
8781 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8782 | hardcode_libdir_separator=: | |
8783 | hardcode_direct=yes | |
d9898ee8 | 8784 | |
8785 | # hardcode_minus_L: Not really in the search PATH, | |
8786 | # but as the default location of the library. | |
8d138742 CE |
8787 | hardcode_minus_L=yes |
8788 | export_dynamic_flag_spec='${wl}-E' | |
d9898ee8 | 8789 | ;; |
8790 | ||
8791 | hpux10*) | |
8792 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8d138742 | 8793 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
d9898ee8 | 8794 | else |
8d138742 | 8795 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
d9898ee8 | 8796 | fi |
8797 | if test "$with_gnu_ld" = no; then | |
8d138742 CE |
8798 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8799 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8800 | hardcode_libdir_separator=: | |
8801 | hardcode_direct=yes | |
8802 | hardcode_direct_absolute=yes | |
8803 | export_dynamic_flag_spec='${wl}-E' | |
d9898ee8 | 8804 | # hardcode_minus_L: Not really in the search PATH, |
8805 | # but as the default location of the library. | |
8d138742 | 8806 | hardcode_minus_L=yes |
d9898ee8 | 8807 | fi |
8808 | ;; | |
8809 | ||
8810 | hpux11*) | |
8811 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8812 | case $host_cpu in | |
8813 | hppa*64*) | |
8d138742 | 8814 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
d9898ee8 | 8815 | ;; |
8816 | ia64*) | |
8d138742 | 8817 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
d9898ee8 | 8818 | ;; |
8819 | *) | |
8d138742 | 8820 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
d9898ee8 | 8821 | ;; |
8822 | esac | |
8823 | else | |
8824 | case $host_cpu in | |
8825 | hppa*64*) | |
8d138742 | 8826 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
d9898ee8 | 8827 | ;; |
8828 | ia64*) | |
8d138742 | 8829 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
d9898ee8 | 8830 | ;; |
8831 | *) | |
8d138742 | 8832 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
d9898ee8 | 8833 | ;; |
8834 | esac | |
8835 | fi | |
8836 | if test "$with_gnu_ld" = no; then | |
8d138742 CE |
8837 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8838 | hardcode_libdir_separator=: | |
d9898ee8 | 8839 | |
8840 | case $host_cpu in | |
8841 | hppa*64*|ia64*) | |
8d138742 CE |
8842 | hardcode_direct=no |
8843 | hardcode_shlibpath_var=no | |
d9898ee8 | 8844 | ;; |
8845 | *) | |
8d138742 CE |
8846 | hardcode_direct=yes |
8847 | hardcode_direct_absolute=yes | |
8848 | export_dynamic_flag_spec='${wl}-E' | |
d9898ee8 | 8849 | |
8850 | # hardcode_minus_L: Not really in the search PATH, | |
8851 | # but as the default location of the library. | |
8d138742 | 8852 | hardcode_minus_L=yes |
d9898ee8 | 8853 | ;; |
8854 | esac | |
8855 | fi | |
8856 | ;; | |
8857 | ||
8858 | irix5* | irix6* | nonstopux*) | |
8859 | if test "$GCC" = yes; then | |
8d138742 CE |
8860 | 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' |
8861 | # Try to use the -exported_symbol ld option, if it does not | |
8862 | # work, assume that -exports_file does not work either and | |
8863 | # implicitly export all symbols. | |
8864 | save_LDFLAGS="$LDFLAGS" | |
8865 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8866 | cat >conftest.$ac_ext <<_ACEOF | |
8867 | int foo(void) {} | |
8868 | _ACEOF | |
8869 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8870 | if { (ac_try="$ac_link" | |
8871 | case "(($ac_try" in | |
8872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8873 | *) ac_try_echo=$ac_try;; | |
8874 | esac | |
8875 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8876 | $as_echo "$ac_try_echo") >&5 | |
8877 | (eval "$ac_link") 2>conftest.er1 | |
8878 | ac_status=$? | |
8879 | grep -v '^ *+' conftest.er1 >conftest.err | |
8880 | rm -f conftest.er1 | |
8881 | cat conftest.err >&5 | |
8882 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8883 | (exit $ac_status); } && { | |
8884 | test -z "$ac_c_werror_flag" || | |
8885 | test ! -s conftest.err | |
8886 | } && test -s conftest$ac_exeext && { | |
8887 | test "$cross_compiling" = yes || | |
8888 | $as_test_x conftest$ac_exeext | |
8889 | }; then | |
8890 | 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' | |
8891 | ||
8892 | else | |
8893 | $as_echo "$as_me: failed program was:" >&5 | |
8894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8895 | ||
8896 | ||
8897 | fi | |
8898 | ||
8899 | rm -rf conftest.dSYM | |
8900 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8901 | conftest$ac_exeext conftest.$ac_ext | |
8902 | LDFLAGS="$save_LDFLAGS" | |
d9898ee8 | 8903 | else |
8d138742 CE |
8904 | 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' |
8905 | 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' | |
d9898ee8 | 8906 | fi |
8d138742 CE |
8907 | archive_cmds_need_lc='no' |
8908 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8909 | hardcode_libdir_separator=: | |
8910 | inherit_rpath=yes | |
8911 | link_all_deplibs=yes | |
d9898ee8 | 8912 | ;; |
8913 | ||
8914 | netbsd*) | |
8d138742 CE |
8915 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
8916 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
d9898ee8 | 8917 | else |
8d138742 | 8918 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
d9898ee8 | 8919 | fi |
8d138742 CE |
8920 | hardcode_libdir_flag_spec='-R$libdir' |
8921 | hardcode_direct=yes | |
8922 | hardcode_shlibpath_var=no | |
d9898ee8 | 8923 | ;; |
8924 | ||
8925 | newsos6) | |
8d138742 CE |
8926 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8927 | hardcode_direct=yes | |
8928 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8929 | hardcode_libdir_separator=: | |
8930 | hardcode_shlibpath_var=no | |
8931 | ;; | |
8932 | ||
8933 | *nto* | *qnx*) | |
d9898ee8 | 8934 | ;; |
8935 | ||
8936 | openbsd*) | |
ac40fd9e | 8937 | if test -f /usr/libexec/ld.so; then |
8d138742 CE |
8938 | hardcode_direct=yes |
8939 | hardcode_shlibpath_var=no | |
8940 | hardcode_direct_absolute=yes | |
8941 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8942 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8943 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8944 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8945 | export_dynamic_flag_spec='${wl}-E' | |
ac40fd9e | 8946 | else |
8947 | case $host_os in | |
8948 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8d138742 CE |
8949 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8950 | hardcode_libdir_flag_spec='-R$libdir' | |
ac40fd9e | 8951 | ;; |
8952 | *) | |
8d138742 CE |
8953 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8954 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
ac40fd9e | 8955 | ;; |
8956 | esac | |
8d138742 | 8957 | fi |
d9898ee8 | 8958 | else |
8d138742 | 8959 | ld_shlibs=no |
d9898ee8 | 8960 | fi |
8961 | ;; | |
8962 | ||
8963 | os2*) | |
8d138742 CE |
8964 | hardcode_libdir_flag_spec='-L$libdir' |
8965 | hardcode_minus_L=yes | |
8966 | allow_undefined_flag=unsupported | |
8967 | 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' | |
8968 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
d9898ee8 | 8969 | ;; |
8970 | ||
8971 | osf3*) | |
8972 | if test "$GCC" = yes; then | |
8d138742 CE |
8973 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8974 | 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' | |
d9898ee8 | 8975 | else |
8d138742 CE |
8976 | allow_undefined_flag=' -expect_unresolved \*' |
8977 | 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' | |
d9898ee8 | 8978 | fi |
8d138742 CE |
8979 | archive_cmds_need_lc='no' |
8980 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8981 | hardcode_libdir_separator=: | |
d9898ee8 | 8982 | ;; |
8983 | ||
8984 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8985 | if test "$GCC" = yes; then | |
8d138742 CE |
8986 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8987 | 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' | |
8988 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
d9898ee8 | 8989 | else |
8d138742 CE |
8990 | allow_undefined_flag=' -expect_unresolved \*' |
8991 | 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' | |
8992 | 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~ | |
8993 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
d9898ee8 | 8994 | |
8995 | # Both c and cxx compiler support -rpath directly | |
8d138742 | 8996 | hardcode_libdir_flag_spec='-rpath $libdir' |
d9898ee8 | 8997 | fi |
8d138742 CE |
8998 | archive_cmds_need_lc='no' |
8999 | hardcode_libdir_separator=: | |
d9898ee8 | 9000 | ;; |
9001 | ||
9002 | solaris*) | |
8d138742 | 9003 | no_undefined_flag=' -z defs' |
d9898ee8 | 9004 | if test "$GCC" = yes; then |
9005 | wlarc='${wl}' | |
8d138742 CE |
9006 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
9007 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9008 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
d9898ee8 | 9009 | else |
8d138742 CE |
9010 | case `$CC -V 2>&1` in |
9011 | *"Compilers 5.0"*) | |
9012 | wlarc='' | |
9013 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9014 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9015 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9016 | ;; | |
9017 | *) | |
9018 | wlarc='${wl}' | |
9019 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9020 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9021 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9022 | ;; | |
9023 | esac | |
d9898ee8 | 9024 | fi |
8d138742 CE |
9025 | hardcode_libdir_flag_spec='-R$libdir' |
9026 | hardcode_shlibpath_var=no | |
d9898ee8 | 9027 | case $host_os in |
9028 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9029 | *) | |
ac40fd9e | 9030 | # The compiler driver will combine and reorder linker options, |
9031 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9032 | # but is careful enough not to reorder. | |
8d138742 | 9033 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
ac40fd9e | 9034 | if test "$GCC" = yes; then |
8d138742 | 9035 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
ac40fd9e | 9036 | else |
8d138742 | 9037 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
ac40fd9e | 9038 | fi |
9039 | ;; | |
d9898ee8 | 9040 | esac |
8d138742 | 9041 | link_all_deplibs=yes |
d9898ee8 | 9042 | ;; |
9043 | ||
9044 | sunos4*) | |
9045 | if test "x$host_vendor" = xsequent; then | |
9046 | # Use $CC to link under sequent, because it throws in some extra .o | |
9047 | # files that make .init and .fini sections work. | |
8d138742 | 9048 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
d9898ee8 | 9049 | else |
8d138742 | 9050 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
d9898ee8 | 9051 | fi |
8d138742 CE |
9052 | hardcode_libdir_flag_spec='-L$libdir' |
9053 | hardcode_direct=yes | |
9054 | hardcode_minus_L=yes | |
9055 | hardcode_shlibpath_var=no | |
d9898ee8 | 9056 | ;; |
9057 | ||
9058 | sysv4) | |
9059 | case $host_vendor in | |
9060 | sni) | |
8d138742 CE |
9061 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9062 | hardcode_direct=yes # is this really true??? | |
d9898ee8 | 9063 | ;; |
9064 | siemens) | |
9065 | ## LD is ld it makes a PLAMLIB | |
9066 | ## CC just makes a GrossModule. | |
8d138742 CE |
9067 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
9068 | reload_cmds='$CC -r -o $output$reload_objs' | |
9069 | hardcode_direct=no | |
d9898ee8 | 9070 | ;; |
9071 | motorola) | |
8d138742 CE |
9072 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9073 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
d9898ee8 | 9074 | ;; |
9075 | esac | |
9076 | runpath_var='LD_RUN_PATH' | |
8d138742 | 9077 | hardcode_shlibpath_var=no |
d9898ee8 | 9078 | ;; |
9079 | ||
9080 | sysv4.3*) | |
8d138742 CE |
9081 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9082 | hardcode_shlibpath_var=no | |
9083 | export_dynamic_flag_spec='-Bexport' | |
d9898ee8 | 9084 | ;; |
9085 | ||
9086 | sysv4*MP*) | |
9087 | if test -d /usr/nec; then | |
8d138742 CE |
9088 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9089 | hardcode_shlibpath_var=no | |
d9898ee8 | 9090 | runpath_var=LD_RUN_PATH |
9091 | hardcode_runpath_var=yes | |
8d138742 | 9092 | ld_shlibs=yes |
d9898ee8 | 9093 | fi |
9094 | ;; | |
9095 | ||
ac40fd9e | 9096 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
8d138742 CE |
9097 | no_undefined_flag='${wl}-z,text' |
9098 | archive_cmds_need_lc=no | |
9099 | hardcode_shlibpath_var=no | |
d9898ee8 | 9100 | runpath_var='LD_RUN_PATH' |
9101 | ||
9102 | if test "$GCC" = yes; then | |
8d138742 CE |
9103 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9104 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
d9898ee8 | 9105 | else |
8d138742 CE |
9106 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9107 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
d9898ee8 | 9108 | fi |
9109 | ;; | |
9110 | ||
9111 | sysv5* | sco3.2v5* | sco5v6*) | |
9112 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9113 | # link with -lc, and that would cause any symbols used from libc to | |
9114 | # always be unresolved, which means just about no library would | |
9115 | # ever link correctly. If we're not using GNU ld we use -z text | |
9116 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9117 | # as -z defs. | |
8d138742 CE |
9118 | no_undefined_flag='${wl}-z,text' |
9119 | allow_undefined_flag='${wl}-z,nodefs' | |
9120 | archive_cmds_need_lc=no | |
9121 | hardcode_shlibpath_var=no | |
9122 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9123 | hardcode_libdir_separator=':' | |
9124 | link_all_deplibs=yes | |
9125 | export_dynamic_flag_spec='${wl}-Bexport' | |
d9898ee8 | 9126 | runpath_var='LD_RUN_PATH' |
9127 | ||
9128 | if test "$GCC" = yes; then | |
8d138742 CE |
9129 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9130 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
d9898ee8 | 9131 | else |
8d138742 CE |
9132 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9133 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
d9898ee8 | 9134 | fi |
9135 | ;; | |
9136 | ||
9137 | uts4*) | |
8d138742 CE |
9138 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9139 | hardcode_libdir_flag_spec='-L$libdir' | |
9140 | hardcode_shlibpath_var=no | |
d9898ee8 | 9141 | ;; |
9142 | ||
9143 | *) | |
8d138742 | 9144 | ld_shlibs=no |
d9898ee8 | 9145 | ;; |
9146 | esac | |
8d138742 CE |
9147 | |
9148 | if test x$host_vendor = xsni; then | |
9149 | case $host in | |
9150 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9151 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9152 | ;; | |
9153 | esac | |
9154 | fi | |
d9898ee8 | 9155 | fi |
9156 | ||
8d138742 CE |
9157 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
9158 | $as_echo "$ld_shlibs" >&6; } | |
9159 | test "$ld_shlibs" = no && can_build_shared=no | |
9160 | ||
9161 | with_gnu_ld=$with_gnu_ld | |
9162 | ||
9163 | ||
9164 | ||
9165 | ||
9166 | ||
9167 | ||
9168 | ||
9169 | ||
9170 | ||
9171 | ||
9172 | ||
9173 | ||
9174 | ||
9175 | ||
d9898ee8 | 9176 | |
9177 | # | |
9178 | # Do we need to explicitly link libc? | |
9179 | # | |
8d138742 | 9180 | case "x$archive_cmds_need_lc" in |
d9898ee8 | 9181 | x|xyes) |
9182 | # Assume -lc should be added | |
8d138742 | 9183 | archive_cmds_need_lc=yes |
d9898ee8 | 9184 | |
9185 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8d138742 | 9186 | case $archive_cmds in |
d9898ee8 | 9187 | *'~'*) |
9188 | # FIXME: we may have to deal with multi-command sequences. | |
9189 | ;; | |
9190 | '$CC '*) | |
9191 | # Test whether the compiler implicitly links with -lc since on some | |
9192 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9193 | # to ld, don't add -lc before -lgcc. | |
8d138742 CE |
9194 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
9195 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9196 | $RM conftest* | |
ac40fd9e | 9197 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
d9898ee8 | 9198 | |
9199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9200 | (eval $ac_compile) 2>&5 | |
9201 | ac_status=$? | |
8d138742 | 9202 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 9203 | (exit $ac_status); } 2>conftest.err; then |
9204 | soname=conftest | |
9205 | lib=conftest | |
9206 | libobjs=conftest.$ac_objext | |
9207 | deplibs= | |
8d138742 CE |
9208 | wl=$lt_prog_compiler_wl |
9209 | pic_flag=$lt_prog_compiler_pic | |
d9898ee8 | 9210 | compiler_flags=-v |
9211 | linker_flags=-v | |
9212 | verstring= | |
9213 | output_objdir=. | |
9214 | libname=conftest | |
8d138742 CE |
9215 | lt_save_allow_undefined_flag=$allow_undefined_flag |
9216 | allow_undefined_flag= | |
9217 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
9218 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
d9898ee8 | 9219 | ac_status=$? |
8d138742 | 9220 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 9221 | (exit $ac_status); } |
9222 | then | |
8d138742 | 9223 | archive_cmds_need_lc=no |
d9898ee8 | 9224 | else |
8d138742 | 9225 | archive_cmds_need_lc=yes |
d9898ee8 | 9226 | fi |
8d138742 | 9227 | allow_undefined_flag=$lt_save_allow_undefined_flag |
d9898ee8 | 9228 | else |
9229 | cat conftest.err 1>&5 | |
9230 | fi | |
8d138742 CE |
9231 | $RM conftest* |
9232 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
9233 | $as_echo "$archive_cmds_need_lc" >&6; } | |
d9898ee8 | 9234 | ;; |
9235 | esac | |
9236 | fi | |
9237 | ;; | |
9238 | esac | |
9239 | ||
8d138742 CE |
9240 | |
9241 | ||
9242 | ||
9243 | ||
9244 | ||
9245 | ||
9246 | ||
9247 | ||
9248 | ||
9249 | ||
9250 | ||
9251 | ||
9252 | ||
9253 | ||
9254 | ||
9255 | ||
9256 | ||
9257 | ||
9258 | ||
9259 | ||
9260 | ||
9261 | ||
9262 | ||
9263 | ||
9264 | ||
9265 | ||
9266 | ||
9267 | ||
9268 | ||
9269 | ||
9270 | ||
9271 | ||
9272 | ||
9273 | ||
9274 | ||
9275 | ||
9276 | ||
9277 | ||
9278 | ||
9279 | ||
9280 | ||
9281 | ||
9282 | ||
9283 | ||
9284 | ||
9285 | ||
9286 | ||
9287 | ||
9288 | ||
9289 | ||
9290 | ||
9291 | ||
9292 | ||
9293 | ||
9294 | ||
9295 | ||
9296 | ||
9297 | ||
9298 | ||
9299 | ||
9300 | ||
9301 | ||
9302 | ||
9303 | ||
9304 | ||
9305 | ||
9306 | ||
9307 | ||
9308 | ||
9309 | ||
9310 | ||
9311 | ||
9312 | ||
9313 | ||
9314 | ||
9315 | ||
9316 | ||
9317 | ||
9318 | ||
9319 | ||
9320 | ||
9321 | ||
9322 | ||
9323 | ||
9324 | ||
9325 | ||
9326 | ||
9327 | ||
9328 | ||
9329 | ||
9330 | ||
9331 | ||
9332 | ||
9333 | ||
9334 | ||
9335 | ||
9336 | ||
9337 | ||
9338 | ||
9339 | ||
9340 | ||
9341 | ||
9342 | ||
9343 | ||
9344 | ||
9345 | ||
9346 | ||
9347 | ||
9348 | ||
9349 | ||
9350 | ||
9351 | ||
9352 | ||
9353 | ||
9354 | ||
9355 | ||
9356 | ||
9357 | ||
9358 | ||
9359 | ||
9360 | ||
9361 | ||
9362 | ||
9363 | ||
9364 | ||
9365 | ||
9366 | ||
9367 | ||
9368 | ||
9369 | ||
9370 | ||
9371 | ||
9372 | ||
9373 | ||
9374 | ||
9375 | ||
9376 | ||
9377 | ||
9378 | ||
9379 | ||
9380 | ||
9381 | ||
9382 | ||
9383 | ||
9384 | ||
9385 | ||
9386 | ||
9387 | ||
9388 | ||
9389 | ||
9390 | ||
9391 | ||
9392 | ||
9393 | ||
9394 | ||
9395 | ||
9396 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
9397 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
9398 | ||
9399 | if test "$GCC" = yes; then | |
9400 | case $host_os in | |
9401 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9402 | *) lt_awk_arg="/^libraries:/" ;; | |
9403 | esac | |
9404 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9405 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9406 | # if the path contains ";" then we assume it to be the separator | |
9407 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9408 | # assumed that no part of a normal pathname contains ";" but that should | |
9409 | # okay in the real world where ";" in dirpaths is itself problematic. | |
9410 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9411 | else | |
9412 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9413 | fi | |
9414 | # Ok, now we have the path, separated by spaces, we can step through it | |
9415 | # and add multilib dir if necessary. | |
9416 | lt_tmp_lt_search_path_spec= | |
9417 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9418 | for lt_sys_path in $lt_search_path_spec; do | |
9419 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9420 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9421 | else | |
9422 | test -d "$lt_sys_path" && \ | |
9423 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9424 | fi | |
9425 | done | |
9426 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9427 | BEGIN {RS=" "; FS="/|\n";} { | |
9428 | lt_foo=""; | |
9429 | lt_count=0; | |
9430 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9431 | if ($lt_i != "" && $lt_i != ".") { | |
9432 | if ($lt_i == "..") { | |
9433 | lt_count++; | |
9434 | } else { | |
9435 | if (lt_count == 0) { | |
9436 | lt_foo="/" $lt_i lt_foo; | |
9437 | } else { | |
9438 | lt_count--; | |
9439 | } | |
9440 | } | |
9441 | } | |
9442 | } | |
9443 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9444 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9445 | }'` | |
9446 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
9447 | else | |
9448 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9449 | fi | |
d9898ee8 | 9450 | library_names_spec= |
9451 | libname_spec='lib$name' | |
9452 | soname_spec= | |
9453 | shrext_cmds=".so" | |
9454 | postinstall_cmds= | |
9455 | postuninstall_cmds= | |
9456 | finish_cmds= | |
9457 | finish_eval= | |
9458 | shlibpath_var= | |
9459 | shlibpath_overrides_runpath=unknown | |
9460 | version_type=none | |
9461 | dynamic_linker="$host_os ld.so" | |
9462 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
d9898ee8 | 9463 | need_lib_prefix=unknown |
9464 | hardcode_into_libs=no | |
9465 | ||
9466 | # when you set need_version to no, make sure it does not cause -set_version | |
9467 | # flags to be left without arguments | |
9468 | need_version=unknown | |
9469 | ||
9470 | case $host_os in | |
9471 | aix3*) | |
9472 | version_type=linux | |
9473 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9474 | shlibpath_var=LIBPATH | |
9475 | ||
9476 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9477 | soname_spec='${libname}${release}${shared_ext}$major' | |
9478 | ;; | |
9479 | ||
8d138742 | 9480 | aix[4-9]*) |
d9898ee8 | 9481 | version_type=linux |
9482 | need_lib_prefix=no | |
9483 | need_version=no | |
9484 | hardcode_into_libs=yes | |
9485 | if test "$host_cpu" = ia64; then | |
9486 | # AIX 5 supports IA64 | |
9487 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9488 | shlibpath_var=LD_LIBRARY_PATH | |
9489 | else | |
9490 | # With GCC up to 2.95.x, collect2 would create an import file | |
9491 | # for dependence libraries. The import file would start with | |
9492 | # the line `#! .'. This would cause the generated library to | |
9493 | # depend on `.', always an invalid library. This was fixed in | |
9494 | # development snapshots of GCC prior to 3.0. | |
9495 | case $host_os in | |
9496 | aix4 | aix4.[01] | aix4.[01].*) | |
9497 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9498 | echo ' yes ' | |
8d138742 | 9499 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
d9898ee8 | 9500 | : |
9501 | else | |
9502 | can_build_shared=no | |
9503 | fi | |
9504 | ;; | |
9505 | esac | |
9506 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9507 | # soname into executable. Probably we can add versioning support to | |
9508 | # collect2, so additional links can be useful in future. | |
9509 | if test "$aix_use_runtimelinking" = yes; then | |
9510 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9511 | # instead of lib<name>.a to let people know that these are not | |
9512 | # typical AIX shared libraries. | |
9513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9514 | else | |
9515 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9516 | # and later when we are not doing run time linking. | |
9517 | library_names_spec='${libname}${release}.a $libname.a' | |
9518 | soname_spec='${libname}${release}${shared_ext}$major' | |
9519 | fi | |
9520 | shlibpath_var=LIBPATH | |
9521 | fi | |
9522 | ;; | |
9523 | ||
9524 | amigaos*) | |
8d138742 CE |
9525 | case $host_cpu in |
9526 | powerpc) | |
9527 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9528 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9529 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9530 | ;; | |
9531 | m68k) | |
9532 | library_names_spec='$libname.ixlibrary $libname.a' | |
9533 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9534 | 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' | |
9535 | ;; | |
9536 | esac | |
d9898ee8 | 9537 | ;; |
9538 | ||
9539 | beos*) | |
9540 | library_names_spec='${libname}${shared_ext}' | |
9541 | dynamic_linker="$host_os ld.so" | |
9542 | shlibpath_var=LIBRARY_PATH | |
9543 | ;; | |
9544 | ||
9545 | bsdi[45]*) | |
9546 | version_type=linux | |
9547 | need_version=no | |
9548 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9549 | soname_spec='${libname}${release}${shared_ext}$major' | |
9550 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9551 | shlibpath_var=LD_LIBRARY_PATH | |
9552 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9553 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9554 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9555 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9556 | # libtool to hard-code these into programs | |
9557 | ;; | |
9558 | ||
8d138742 | 9559 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 9560 | version_type=windows |
9561 | shrext_cmds=".dll" | |
9562 | need_version=no | |
9563 | need_lib_prefix=no | |
9564 | ||
9565 | case $GCC,$host_os in | |
8d138742 | 9566 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
d9898ee8 | 9567 | library_names_spec='$libname.dll.a' |
9568 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9569 | postinstall_cmds='base_file=`basename \${file}`~ | |
8d138742 | 9570 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
d9898ee8 | 9571 | dldir=$destdir/`dirname \$dlpath`~ |
9572 | test -d \$dldir || mkdir -p \$dldir~ | |
9573 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8d138742 CE |
9574 | chmod a+x \$dldir/$dlname~ |
9575 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9576 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9577 | fi' | |
d9898ee8 | 9578 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
9579 | dlpath=$dir/\$dldll~ | |
8d138742 | 9580 | $RM \$dlpath' |
d9898ee8 | 9581 | shlibpath_overrides_runpath=yes |
9582 | ||
9583 | case $host_os in | |
9584 | cygwin*) | |
9585 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9586 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9587 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
9588 | ;; | |
8d138742 | 9589 | mingw* | cegcc*) |
d9898ee8 | 9590 | # MinGW DLLs use traditional 'lib' prefix |
9591 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8d138742 CE |
9592 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
9593 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
d9898ee8 | 9594 | # It is most probably a Windows format PATH printed by |
9595 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
9596 | # path with ; separators, and with drive letters. We can handle the | |
9597 | # drive letters (cygwin fileutils understands them), so leave them, | |
9598 | # especially as we might pass files found there to a mingw objdump, | |
9599 | # which wouldn't understand a cygwinified path. Ahh. | |
8d138742 | 9600 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
d9898ee8 | 9601 | else |
8d138742 | 9602 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
d9898ee8 | 9603 | fi |
9604 | ;; | |
9605 | pw32*) | |
9606 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9607 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9608 | ;; | |
9609 | esac | |
9610 | ;; | |
9611 | ||
9612 | *) | |
9613 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9614 | ;; | |
9615 | esac | |
9616 | dynamic_linker='Win32 ld.exe' | |
9617 | # FIXME: first we should search . and the directory the executable is in | |
9618 | shlibpath_var=PATH | |
9619 | ;; | |
9620 | ||
9621 | darwin* | rhapsody*) | |
9622 | dynamic_linker="$host_os dyld" | |
9623 | version_type=darwin | |
9624 | need_lib_prefix=no | |
9625 | need_version=no | |
8d138742 | 9626 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
d9898ee8 | 9627 | soname_spec='${libname}${release}${major}$shared_ext' |
9628 | shlibpath_overrides_runpath=yes | |
9629 | shlibpath_var=DYLD_LIBRARY_PATH | |
9630 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
ac40fd9e | 9631 | |
8d138742 | 9632 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
d9898ee8 | 9633 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
9634 | ;; | |
9635 | ||
9636 | dgux*) | |
9637 | version_type=linux | |
9638 | need_lib_prefix=no | |
9639 | need_version=no | |
9640 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9641 | soname_spec='${libname}${release}${shared_ext}$major' | |
9642 | shlibpath_var=LD_LIBRARY_PATH | |
9643 | ;; | |
9644 | ||
9645 | freebsd1*) | |
9646 | dynamic_linker=no | |
9647 | ;; | |
9648 | ||
d9898ee8 | 9649 | freebsd* | dragonfly*) |
9650 | # DragonFly does not have aout. When/if they implement a new | |
9651 | # versioning mechanism, adjust this. | |
9652 | if test -x /usr/bin/objformat; then | |
9653 | objformat=`/usr/bin/objformat` | |
9654 | else | |
9655 | case $host_os in | |
9656 | freebsd[123]*) objformat=aout ;; | |
9657 | *) objformat=elf ;; | |
9658 | esac | |
9659 | fi | |
9660 | version_type=freebsd-$objformat | |
9661 | case $version_type in | |
9662 | freebsd-elf*) | |
9663 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9664 | need_version=no | |
9665 | need_lib_prefix=no | |
9666 | ;; | |
9667 | freebsd-*) | |
9668 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9669 | need_version=yes | |
9670 | ;; | |
9671 | esac | |
9672 | shlibpath_var=LD_LIBRARY_PATH | |
9673 | case $host_os in | |
9674 | freebsd2*) | |
9675 | shlibpath_overrides_runpath=yes | |
9676 | ;; | |
9677 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9678 | shlibpath_overrides_runpath=yes | |
9679 | hardcode_into_libs=yes | |
9680 | ;; | |
9681 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9682 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9683 | shlibpath_overrides_runpath=no | |
9684 | hardcode_into_libs=yes | |
9685 | ;; | |
ac40fd9e | 9686 | *) # from 4.6 on, and DragonFly |
d9898ee8 | 9687 | shlibpath_overrides_runpath=yes |
9688 | hardcode_into_libs=yes | |
9689 | ;; | |
9690 | esac | |
9691 | ;; | |
9692 | ||
9693 | gnu*) | |
9694 | version_type=linux | |
9695 | need_lib_prefix=no | |
9696 | need_version=no | |
9697 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9698 | soname_spec='${libname}${release}${shared_ext}$major' | |
9699 | shlibpath_var=LD_LIBRARY_PATH | |
9700 | hardcode_into_libs=yes | |
9701 | ;; | |
9702 | ||
9703 | hpux9* | hpux10* | hpux11*) | |
9704 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9705 | # link against other versions. | |
9706 | version_type=sunos | |
9707 | need_lib_prefix=no | |
9708 | need_version=no | |
9709 | case $host_cpu in | |
9710 | ia64*) | |
9711 | shrext_cmds='.so' | |
9712 | hardcode_into_libs=yes | |
9713 | dynamic_linker="$host_os dld.so" | |
9714 | shlibpath_var=LD_LIBRARY_PATH | |
9715 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9716 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9717 | soname_spec='${libname}${release}${shared_ext}$major' | |
9718 | if test "X$HPUX_IA64_MODE" = X32; then | |
9719 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9720 | else | |
9721 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9722 | fi | |
9723 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9724 | ;; | |
8d138742 CE |
9725 | hppa*64*) |
9726 | shrext_cmds='.sl' | |
9727 | hardcode_into_libs=yes | |
9728 | dynamic_linker="$host_os dld.sl" | |
9729 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9730 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9731 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9732 | soname_spec='${libname}${release}${shared_ext}$major' | |
9733 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9734 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9735 | ;; | |
9736 | *) | |
d9898ee8 | 9737 | shrext_cmds='.sl' |
9738 | dynamic_linker="$host_os dld.sl" | |
9739 | shlibpath_var=SHLIB_PATH | |
9740 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9741 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9742 | soname_spec='${libname}${release}${shared_ext}$major' | |
9743 | ;; | |
9744 | esac | |
9745 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
9746 | postinstall_cmds='chmod 555 $lib' | |
9747 | ;; | |
9748 | ||
ac40fd9e | 9749 | interix[3-9]*) |
d9898ee8 | 9750 | version_type=linux |
9751 | need_lib_prefix=no | |
9752 | need_version=no | |
9753 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9754 | soname_spec='${libname}${release}${shared_ext}$major' | |
9755 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9756 | shlibpath_var=LD_LIBRARY_PATH | |
9757 | shlibpath_overrides_runpath=no | |
9758 | hardcode_into_libs=yes | |
9759 | ;; | |
9760 | ||
9761 | irix5* | irix6* | nonstopux*) | |
9762 | case $host_os in | |
9763 | nonstopux*) version_type=nonstopux ;; | |
9764 | *) | |
9765 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
9766 | version_type=linux | |
9767 | else | |
9768 | version_type=irix | |
9769 | fi ;; | |
9770 | esac | |
9771 | need_lib_prefix=no | |
9772 | need_version=no | |
9773 | soname_spec='${libname}${release}${shared_ext}$major' | |
9774 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9775 | case $host_os in | |
9776 | irix5* | nonstopux*) | |
9777 | libsuff= shlibsuff= | |
9778 | ;; | |
9779 | *) | |
9780 | case $LD in # libtool.m4 will add one of these switches to LD | |
9781 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9782 | libsuff= shlibsuff= libmagic=32-bit;; | |
9783 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9784 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9785 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9786 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9787 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9788 | esac | |
9789 | ;; | |
9790 | esac | |
9791 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9792 | shlibpath_overrides_runpath=no | |
9793 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9794 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9795 | hardcode_into_libs=yes | |
9796 | ;; | |
9797 | ||
9798 | # No shared lib support for Linux oldld, aout, or coff. | |
9799 | linux*oldld* | linux*aout* | linux*coff*) | |
9800 | dynamic_linker=no | |
9801 | ;; | |
9802 | ||
9803 | # This must be Linux ELF. | |
ac40fd9e | 9804 | linux* | k*bsd*-gnu) |
d9898ee8 | 9805 | version_type=linux |
9806 | need_lib_prefix=no | |
9807 | need_version=no | |
9808 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9809 | soname_spec='${libname}${release}${shared_ext}$major' | |
9810 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9811 | shlibpath_var=LD_LIBRARY_PATH | |
9812 | shlibpath_overrides_runpath=no | |
8d138742 CE |
9813 | # Some binutils ld are patched to set DT_RUNPATH |
9814 | save_LDFLAGS=$LDFLAGS | |
9815 | save_libdir=$libdir | |
9816 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9817 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9818 | cat >conftest.$ac_ext <<_ACEOF | |
9819 | /* confdefs.h. */ | |
9820 | _ACEOF | |
9821 | cat confdefs.h >>conftest.$ac_ext | |
9822 | cat >>conftest.$ac_ext <<_ACEOF | |
9823 | /* end confdefs.h. */ | |
9824 | ||
9825 | int | |
9826 | main () | |
9827 | { | |
9828 | ||
9829 | ; | |
9830 | return 0; | |
9831 | } | |
9832 | _ACEOF | |
9833 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9834 | if { (ac_try="$ac_link" | |
9835 | case "(($ac_try" in | |
9836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9837 | *) ac_try_echo=$ac_try;; | |
9838 | esac | |
9839 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9840 | $as_echo "$ac_try_echo") >&5 | |
9841 | (eval "$ac_link") 2>conftest.er1 | |
9842 | ac_status=$? | |
9843 | grep -v '^ *+' conftest.er1 >conftest.err | |
9844 | rm -f conftest.er1 | |
9845 | cat conftest.err >&5 | |
9846 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9847 | (exit $ac_status); } && { | |
9848 | test -z "$ac_c_werror_flag" || | |
9849 | test ! -s conftest.err | |
9850 | } && test -s conftest$ac_exeext && { | |
9851 | test "$cross_compiling" = yes || | |
9852 | $as_test_x conftest$ac_exeext | |
9853 | }; then | |
9854 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then | |
9855 | shlibpath_overrides_runpath=yes | |
9856 | fi | |
9857 | ||
9858 | else | |
9859 | $as_echo "$as_me: failed program was:" >&5 | |
9860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9861 | ||
9862 | ||
9863 | fi | |
9864 | ||
9865 | rm -rf conftest.dSYM | |
9866 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9867 | conftest$ac_exeext conftest.$ac_ext | |
9868 | LDFLAGS=$save_LDFLAGS | |
9869 | libdir=$save_libdir | |
9870 | ||
d9898ee8 | 9871 | # This implies no fast_install, which is unacceptable. |
9872 | # Some rework will be needed to allow for fast_install | |
9873 | # before this can be enabled. | |
9874 | hardcode_into_libs=yes | |
8d138742 CE |
9875 | |
9876 | # Add ABI-specific directories to the system library path. | |
9877 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
d9898ee8 | 9878 | |
9879 | # Append ld.so.conf contents to the search path | |
9880 | if test -f /etc/ld.so.conf; then | |
8d138742 | 9881 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
ac40fd9e | 9882 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 | 9883 | fi |
9884 | ||
9885 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9886 | # powerpc, because MkLinux only supported shared libraries with the | |
9887 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9888 | # most powerpc-linux boxes support dynamic linking these days and | |
9889 | # people can always --disable-shared, the test was removed, and we | |
9890 | # assume the GNU/Linux dynamic linker is in use. | |
9891 | dynamic_linker='GNU/Linux ld.so' | |
9892 | ;; | |
9893 | ||
d9898ee8 | 9894 | netbsd*) |
9895 | version_type=sunos | |
9896 | need_lib_prefix=no | |
9897 | need_version=no | |
8d138742 | 9898 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
d9898ee8 | 9899 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9900 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9901 | dynamic_linker='NetBSD (a.out) ld.so' | |
9902 | else | |
9903 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9904 | soname_spec='${libname}${release}${shared_ext}$major' | |
9905 | dynamic_linker='NetBSD ld.elf_so' | |
9906 | fi | |
9907 | shlibpath_var=LD_LIBRARY_PATH | |
9908 | shlibpath_overrides_runpath=yes | |
9909 | hardcode_into_libs=yes | |
9910 | ;; | |
9911 | ||
9912 | newsos6) | |
9913 | version_type=linux | |
9914 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9915 | shlibpath_var=LD_LIBRARY_PATH | |
9916 | shlibpath_overrides_runpath=yes | |
9917 | ;; | |
9918 | ||
8d138742 CE |
9919 | *nto* | *qnx*) |
9920 | version_type=qnx | |
d9898ee8 | 9921 | need_lib_prefix=no |
9922 | need_version=no | |
9923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9924 | soname_spec='${libname}${release}${shared_ext}$major' | |
9925 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 CE |
9926 | shlibpath_overrides_runpath=no |
9927 | hardcode_into_libs=yes | |
9928 | dynamic_linker='ldqnx.so' | |
d9898ee8 | 9929 | ;; |
9930 | ||
9931 | openbsd*) | |
9932 | version_type=sunos | |
9933 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9934 | need_lib_prefix=no | |
9935 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9936 | case $host_os in | |
8d138742 CE |
9937 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
9938 | *) need_version=no ;; | |
d9898ee8 | 9939 | esac |
9940 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9941 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9942 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 | 9943 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
d9898ee8 | 9944 | case $host_os in |
9945 | openbsd2.[89] | openbsd2.[89].*) | |
9946 | shlibpath_overrides_runpath=no | |
9947 | ;; | |
9948 | *) | |
9949 | shlibpath_overrides_runpath=yes | |
9950 | ;; | |
9951 | esac | |
9952 | else | |
9953 | shlibpath_overrides_runpath=yes | |
9954 | fi | |
9955 | ;; | |
9956 | ||
9957 | os2*) | |
9958 | libname_spec='$name' | |
9959 | shrext_cmds=".dll" | |
9960 | need_lib_prefix=no | |
9961 | library_names_spec='$libname${shared_ext} $libname.a' | |
9962 | dynamic_linker='OS/2 ld.exe' | |
9963 | shlibpath_var=LIBPATH | |
9964 | ;; | |
9965 | ||
9966 | osf3* | osf4* | osf5*) | |
9967 | version_type=osf | |
9968 | need_lib_prefix=no | |
9969 | need_version=no | |
9970 | soname_spec='${libname}${release}${shared_ext}$major' | |
9971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9972 | shlibpath_var=LD_LIBRARY_PATH | |
9973 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9974 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9975 | ;; | |
9976 | ||
ac40fd9e | 9977 | rdos*) |
9978 | dynamic_linker=no | |
9979 | ;; | |
9980 | ||
d9898ee8 | 9981 | solaris*) |
9982 | version_type=linux | |
9983 | need_lib_prefix=no | |
9984 | need_version=no | |
9985 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9986 | soname_spec='${libname}${release}${shared_ext}$major' | |
9987 | shlibpath_var=LD_LIBRARY_PATH | |
9988 | shlibpath_overrides_runpath=yes | |
9989 | hardcode_into_libs=yes | |
9990 | # ldd complains unless libraries are executable | |
9991 | postinstall_cmds='chmod +x $lib' | |
9992 | ;; | |
9993 | ||
9994 | sunos4*) | |
9995 | version_type=sunos | |
9996 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9997 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9998 | shlibpath_var=LD_LIBRARY_PATH | |
9999 | shlibpath_overrides_runpath=yes | |
10000 | if test "$with_gnu_ld" = yes; then | |
10001 | need_lib_prefix=no | |
10002 | fi | |
10003 | need_version=yes | |
10004 | ;; | |
10005 | ||
10006 | sysv4 | sysv4.3*) | |
10007 | version_type=linux | |
10008 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10009 | soname_spec='${libname}${release}${shared_ext}$major' | |
10010 | shlibpath_var=LD_LIBRARY_PATH | |
10011 | case $host_vendor in | |
10012 | sni) | |
10013 | shlibpath_overrides_runpath=no | |
10014 | need_lib_prefix=no | |
d9898ee8 | 10015 | runpath_var=LD_RUN_PATH |
10016 | ;; | |
10017 | siemens) | |
10018 | need_lib_prefix=no | |
10019 | ;; | |
10020 | motorola) | |
10021 | need_lib_prefix=no | |
10022 | need_version=no | |
10023 | shlibpath_overrides_runpath=no | |
10024 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10025 | ;; | |
10026 | esac | |
10027 | ;; | |
10028 | ||
8d138742 CE |
10029 | sysv4*MP*) |
10030 | if test -d /usr/nec ;then | |
10031 | version_type=linux | |
10032 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10033 | soname_spec='$libname${shared_ext}.$major' | |
10034 | shlibpath_var=LD_LIBRARY_PATH | |
10035 | fi | |
10036 | ;; | |
10037 | ||
10038 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10039 | version_type=freebsd-elf | |
10040 | need_lib_prefix=no | |
10041 | need_version=no | |
10042 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10043 | soname_spec='${libname}${release}${shared_ext}$major' | |
10044 | shlibpath_var=LD_LIBRARY_PATH | |
10045 | shlibpath_overrides_runpath=yes | |
10046 | hardcode_into_libs=yes | |
10047 | if test "$with_gnu_ld" = yes; then | |
10048 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10049 | else | |
10050 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10051 | case $host_os in | |
10052 | sco3.2v5*) | |
10053 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10054 | ;; | |
10055 | esac | |
10056 | fi | |
10057 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10058 | ;; | |
10059 | ||
10060 | tpf*) | |
10061 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10062 | version_type=linux | |
10063 | need_lib_prefix=no | |
10064 | need_version=no | |
10065 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10066 | shlibpath_var=LD_LIBRARY_PATH | |
10067 | shlibpath_overrides_runpath=no | |
10068 | hardcode_into_libs=yes | |
10069 | ;; | |
10070 | ||
10071 | uts4*) | |
10072 | version_type=linux | |
10073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10074 | soname_spec='${libname}${release}${shared_ext}$major' | |
10075 | shlibpath_var=LD_LIBRARY_PATH | |
10076 | ;; | |
10077 | ||
10078 | *) | |
10079 | dynamic_linker=no | |
10080 | ;; | |
10081 | esac | |
10082 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
10083 | $as_echo "$dynamic_linker" >&6; } | |
10084 | test "$dynamic_linker" = no && can_build_shared=no | |
10085 | ||
10086 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10087 | if test "$GCC" = yes; then | |
10088 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10089 | fi | |
10090 | ||
10091 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
10092 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10093 | fi | |
10094 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10095 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10096 | fi | |
10097 | ||
10098 | ||
10099 | ||
10100 | ||
10101 | ||
10102 | ||
10103 | ||
10104 | ||
10105 | ||
10106 | ||
10107 | ||
10108 | ||
10109 | ||
10110 | ||
10111 | ||
10112 | ||
10113 | ||
10114 | ||
10115 | ||
10116 | ||
10117 | ||
10118 | ||
10119 | ||
10120 | ||
10121 | ||
10122 | ||
10123 | ||
10124 | ||
10125 | ||
10126 | ||
10127 | ||
10128 | ||
10129 | ||
10130 | ||
10131 | ||
10132 | ||
10133 | ||
10134 | ||
10135 | ||
10136 | ||
10137 | ||
10138 | ||
10139 | ||
10140 | ||
10141 | ||
10142 | ||
10143 | ||
10144 | ||
10145 | ||
10146 | ||
10147 | ||
10148 | ||
10149 | ||
10150 | ||
10151 | ||
10152 | ||
10153 | ||
10154 | ||
10155 | ||
10156 | ||
10157 | ||
10158 | ||
10159 | ||
10160 | ||
10161 | ||
10162 | ||
10163 | ||
10164 | ||
10165 | ||
10166 | ||
10167 | ||
10168 | ||
10169 | ||
10170 | ||
10171 | ||
10172 | ||
10173 | ||
10174 | ||
10175 | ||
10176 | ||
10177 | ||
10178 | ||
d9898ee8 | 10179 | |
d9898ee8 | 10180 | |
d9898ee8 | 10181 | |
d9898ee8 | 10182 | |
d9898ee8 | 10183 | |
8d138742 CE |
10184 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
10185 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
10186 | hardcode_action= | |
10187 | if test -n "$hardcode_libdir_flag_spec" || | |
10188 | test -n "$runpath_var" || | |
10189 | test "X$hardcode_automatic" = "Xyes" ; then | |
d9898ee8 | 10190 | |
8d138742 CE |
10191 | # We can hardcode non-existent directories. |
10192 | if test "$hardcode_direct" != no && | |
d9898ee8 | 10193 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
10194 | # have to relink, otherwise we might link with an installed library | |
10195 | # when we should be linking with a yet-to-be-installed one | |
8d138742 CE |
10196 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
10197 | test "$hardcode_minus_L" != no; then | |
d9898ee8 | 10198 | # Linking always hardcodes the temporary library directory. |
8d138742 | 10199 | hardcode_action=relink |
d9898ee8 | 10200 | else |
10201 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
8d138742 | 10202 | hardcode_action=immediate |
d9898ee8 | 10203 | fi |
10204 | else | |
10205 | # We cannot hardcode anything, or else we can only hardcode existing | |
10206 | # directories. | |
8d138742 | 10207 | hardcode_action=unsupported |
d9898ee8 | 10208 | fi |
8d138742 CE |
10209 | { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
10210 | $as_echo "$hardcode_action" >&6; } | |
d9898ee8 | 10211 | |
8d138742 CE |
10212 | if test "$hardcode_action" = relink || |
10213 | test "$inherit_rpath" = yes; then | |
d9898ee8 | 10214 | # Fast installation is not supported |
10215 | enable_fast_install=no | |
10216 | elif test "$shlibpath_overrides_runpath" = yes || | |
10217 | test "$enable_shared" = no; then | |
10218 | # Fast installation is not necessary | |
10219 | enable_fast_install=needless | |
10220 | fi | |
10221 | ||
10222 | ||
d9898ee8 | 10223 | |
d9898ee8 | 10224 | |
d9898ee8 | 10225 | |
d9898ee8 | 10226 | |
8d138742 CE |
10227 | if test "x$enable_dlopen" != xyes; then |
10228 | enable_dlopen=unknown | |
10229 | enable_dlopen_self=unknown | |
10230 | enable_dlopen_self_static=unknown | |
10231 | else | |
10232 | lt_cv_dlopen=no | |
10233 | lt_cv_dlopen_libs= | |
d9898ee8 | 10234 | |
8d138742 CE |
10235 | case $host_os in |
10236 | beos*) | |
10237 | lt_cv_dlopen="load_add_on" | |
10238 | lt_cv_dlopen_libs= | |
10239 | lt_cv_dlopen_self=yes | |
10240 | ;; | |
d9898ee8 | 10241 | |
8d138742 CE |
10242 | mingw* | pw32* | cegcc*) |
10243 | lt_cv_dlopen="LoadLibrary" | |
10244 | lt_cv_dlopen_libs= | |
10245 | ;; | |
d9898ee8 | 10246 | |
8d138742 CE |
10247 | cygwin*) |
10248 | lt_cv_dlopen="dlopen" | |
10249 | lt_cv_dlopen_libs= | |
10250 | ;; | |
d9898ee8 | 10251 | |
8d138742 CE |
10252 | darwin*) |
10253 | # if libdl is installed we need to link against it | |
10254 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10255 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10256 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10257 | $as_echo_n "(cached) " >&6 | |
10258 | else | |
10259 | ac_check_lib_save_LIBS=$LIBS | |
10260 | LIBS="-ldl $LIBS" | |
10261 | cat >conftest.$ac_ext <<_ACEOF | |
10262 | /* confdefs.h. */ | |
10263 | _ACEOF | |
10264 | cat confdefs.h >>conftest.$ac_ext | |
10265 | cat >>conftest.$ac_ext <<_ACEOF | |
10266 | /* end confdefs.h. */ | |
d9898ee8 | 10267 | |
8d138742 CE |
10268 | /* Override any GCC internal prototype to avoid an error. |
10269 | Use char because int might match the return type of a GCC | |
10270 | builtin and then its argument prototype would still apply. */ | |
10271 | #ifdef __cplusplus | |
10272 | extern "C" | |
10273 | #endif | |
10274 | char dlopen (); | |
10275 | int | |
10276 | main () | |
10277 | { | |
10278 | return dlopen (); | |
10279 | ; | |
10280 | return 0; | |
10281 | } | |
10282 | _ACEOF | |
10283 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10284 | if { (ac_try="$ac_link" | |
10285 | case "(($ac_try" in | |
10286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10287 | *) ac_try_echo=$ac_try;; | |
10288 | esac | |
10289 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10290 | $as_echo "$ac_try_echo") >&5 | |
10291 | (eval "$ac_link") 2>conftest.er1 | |
10292 | ac_status=$? | |
10293 | grep -v '^ *+' conftest.er1 >conftest.err | |
10294 | rm -f conftest.er1 | |
10295 | cat conftest.err >&5 | |
10296 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10297 | (exit $ac_status); } && { | |
10298 | test -z "$ac_c_werror_flag" || | |
10299 | test ! -s conftest.err | |
10300 | } && test -s conftest$ac_exeext && { | |
10301 | test "$cross_compiling" = yes || | |
10302 | $as_test_x conftest$ac_exeext | |
10303 | }; then | |
10304 | ac_cv_lib_dl_dlopen=yes | |
10305 | else | |
10306 | $as_echo "$as_me: failed program was:" >&5 | |
10307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10308 | |
8d138742 CE |
10309 | ac_cv_lib_dl_dlopen=no |
10310 | fi | |
d9898ee8 | 10311 | |
8d138742 CE |
10312 | rm -rf conftest.dSYM |
10313 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10314 | conftest$ac_exeext conftest.$ac_ext | |
10315 | LIBS=$ac_check_lib_save_LIBS | |
10316 | fi | |
10317 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10318 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10319 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
10320 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10321 | else | |
d9898ee8 | 10322 | |
8d138742 CE |
10323 | lt_cv_dlopen="dyld" |
10324 | lt_cv_dlopen_libs= | |
10325 | lt_cv_dlopen_self=yes | |
d9898ee8 | 10326 | |
8d138742 | 10327 | fi |
d9898ee8 | 10328 | |
8d138742 | 10329 | ;; |
d9898ee8 | 10330 | |
8d138742 CE |
10331 | *) |
10332 | { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 | |
10333 | $as_echo_n "checking for shl_load... " >&6; } | |
10334 | if test "${ac_cv_func_shl_load+set}" = set; then | |
10335 | $as_echo_n "(cached) " >&6 | |
10336 | else | |
10337 | cat >conftest.$ac_ext <<_ACEOF | |
10338 | /* confdefs.h. */ | |
10339 | _ACEOF | |
10340 | cat confdefs.h >>conftest.$ac_ext | |
10341 | cat >>conftest.$ac_ext <<_ACEOF | |
10342 | /* end confdefs.h. */ | |
10343 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
10344 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10345 | #define shl_load innocuous_shl_load | |
d9898ee8 | 10346 | |
8d138742 CE |
10347 | /* System header to define __stub macros and hopefully few prototypes, |
10348 | which can conflict with char shl_load (); below. | |
10349 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10350 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 10351 | |
8d138742 CE |
10352 | #ifdef __STDC__ |
10353 | # include <limits.h> | |
10354 | #else | |
10355 | # include <assert.h> | |
10356 | #endif | |
d9898ee8 | 10357 | |
8d138742 | 10358 | #undef shl_load |
d9898ee8 | 10359 | |
8d138742 CE |
10360 | /* Override any GCC internal prototype to avoid an error. |
10361 | Use char because int might match the return type of a GCC | |
10362 | builtin and then its argument prototype would still apply. */ | |
10363 | #ifdef __cplusplus | |
10364 | extern "C" | |
10365 | #endif | |
10366 | char shl_load (); | |
10367 | /* The GNU C library defines this for functions which it implements | |
10368 | to always fail with ENOSYS. Some functions are actually named | |
10369 | something starting with __ and the normal name is an alias. */ | |
10370 | #if defined __stub_shl_load || defined __stub___shl_load | |
10371 | choke me | |
10372 | #endif | |
d9898ee8 | 10373 | |
8d138742 CE |
10374 | int |
10375 | main () | |
10376 | { | |
10377 | return shl_load (); | |
10378 | ; | |
10379 | return 0; | |
10380 | } | |
10381 | _ACEOF | |
10382 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10383 | if { (ac_try="$ac_link" | |
10384 | case "(($ac_try" in | |
10385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10386 | *) ac_try_echo=$ac_try;; | |
10387 | esac | |
10388 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10389 | $as_echo "$ac_try_echo") >&5 | |
10390 | (eval "$ac_link") 2>conftest.er1 | |
10391 | ac_status=$? | |
10392 | grep -v '^ *+' conftest.er1 >conftest.err | |
10393 | rm -f conftest.er1 | |
10394 | cat conftest.err >&5 | |
10395 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10396 | (exit $ac_status); } && { | |
10397 | test -z "$ac_c_werror_flag" || | |
10398 | test ! -s conftest.err | |
10399 | } && test -s conftest$ac_exeext && { | |
10400 | test "$cross_compiling" = yes || | |
10401 | $as_test_x conftest$ac_exeext | |
10402 | }; then | |
10403 | ac_cv_func_shl_load=yes | |
10404 | else | |
10405 | $as_echo "$as_me: failed program was:" >&5 | |
10406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10407 | |
8d138742 CE |
10408 | ac_cv_func_shl_load=no |
10409 | fi | |
d9898ee8 | 10410 | |
8d138742 CE |
10411 | rm -rf conftest.dSYM |
10412 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10413 | conftest$ac_exeext conftest.$ac_ext | |
10414 | fi | |
10415 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
10416 | $as_echo "$ac_cv_func_shl_load" >&6; } | |
10417 | if test "x$ac_cv_func_shl_load" = x""yes; then | |
10418 | lt_cv_dlopen="shl_load" | |
10419 | else | |
10420 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
10421 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10422 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10423 | $as_echo_n "(cached) " >&6 | |
10424 | else | |
10425 | ac_check_lib_save_LIBS=$LIBS | |
10426 | LIBS="-ldld $LIBS" | |
10427 | cat >conftest.$ac_ext <<_ACEOF | |
10428 | /* confdefs.h. */ | |
10429 | _ACEOF | |
10430 | cat confdefs.h >>conftest.$ac_ext | |
10431 | cat >>conftest.$ac_ext <<_ACEOF | |
10432 | /* end confdefs.h. */ | |
d9898ee8 | 10433 | |
8d138742 CE |
10434 | /* Override any GCC internal prototype to avoid an error. |
10435 | Use char because int might match the return type of a GCC | |
10436 | builtin and then its argument prototype would still apply. */ | |
10437 | #ifdef __cplusplus | |
10438 | extern "C" | |
10439 | #endif | |
10440 | char shl_load (); | |
10441 | int | |
10442 | main () | |
10443 | { | |
10444 | return shl_load (); | |
10445 | ; | |
10446 | return 0; | |
10447 | } | |
10448 | _ACEOF | |
10449 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10450 | if { (ac_try="$ac_link" | |
10451 | case "(($ac_try" in | |
10452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10453 | *) ac_try_echo=$ac_try;; | |
10454 | esac | |
10455 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10456 | $as_echo "$ac_try_echo") >&5 | |
10457 | (eval "$ac_link") 2>conftest.er1 | |
10458 | ac_status=$? | |
10459 | grep -v '^ *+' conftest.er1 >conftest.err | |
10460 | rm -f conftest.er1 | |
10461 | cat conftest.err >&5 | |
10462 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10463 | (exit $ac_status); } && { | |
10464 | test -z "$ac_c_werror_flag" || | |
10465 | test ! -s conftest.err | |
10466 | } && test -s conftest$ac_exeext && { | |
10467 | test "$cross_compiling" = yes || | |
10468 | $as_test_x conftest$ac_exeext | |
10469 | }; then | |
10470 | ac_cv_lib_dld_shl_load=yes | |
10471 | else | |
10472 | $as_echo "$as_me: failed program was:" >&5 | |
10473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10474 | |
8d138742 CE |
10475 | ac_cv_lib_dld_shl_load=no |
10476 | fi | |
d9898ee8 | 10477 | |
8d138742 CE |
10478 | rm -rf conftest.dSYM |
10479 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10480 | conftest$ac_exeext conftest.$ac_ext | |
10481 | LIBS=$ac_check_lib_save_LIBS | |
10482 | fi | |
10483 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
10484 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10485 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then | |
10486 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
10487 | else | |
10488 | { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 | |
10489 | $as_echo_n "checking for dlopen... " >&6; } | |
10490 | if test "${ac_cv_func_dlopen+set}" = set; then | |
10491 | $as_echo_n "(cached) " >&6 | |
10492 | else | |
10493 | cat >conftest.$ac_ext <<_ACEOF | |
10494 | /* confdefs.h. */ | |
10495 | _ACEOF | |
10496 | cat confdefs.h >>conftest.$ac_ext | |
10497 | cat >>conftest.$ac_ext <<_ACEOF | |
10498 | /* end confdefs.h. */ | |
10499 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
10500 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10501 | #define dlopen innocuous_dlopen | |
d9898ee8 | 10502 | |
8d138742 CE |
10503 | /* System header to define __stub macros and hopefully few prototypes, |
10504 | which can conflict with char dlopen (); below. | |
10505 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10506 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 10507 | |
8d138742 CE |
10508 | #ifdef __STDC__ |
10509 | # include <limits.h> | |
10510 | #else | |
10511 | # include <assert.h> | |
10512 | #endif | |
d9898ee8 | 10513 | |
8d138742 | 10514 | #undef dlopen |
d9898ee8 | 10515 | |
8d138742 CE |
10516 | /* Override any GCC internal prototype to avoid an error. |
10517 | Use char because int might match the return type of a GCC | |
10518 | builtin and then its argument prototype would still apply. */ | |
10519 | #ifdef __cplusplus | |
10520 | extern "C" | |
10521 | #endif | |
10522 | char dlopen (); | |
10523 | /* The GNU C library defines this for functions which it implements | |
10524 | to always fail with ENOSYS. Some functions are actually named | |
10525 | something starting with __ and the normal name is an alias. */ | |
10526 | #if defined __stub_dlopen || defined __stub___dlopen | |
10527 | choke me | |
10528 | #endif | |
d9898ee8 | 10529 | |
8d138742 CE |
10530 | int |
10531 | main () | |
10532 | { | |
10533 | return dlopen (); | |
10534 | ; | |
10535 | return 0; | |
10536 | } | |
10537 | _ACEOF | |
10538 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10539 | if { (ac_try="$ac_link" | |
10540 | case "(($ac_try" in | |
10541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10542 | *) ac_try_echo=$ac_try;; | |
10543 | esac | |
10544 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10545 | $as_echo "$ac_try_echo") >&5 | |
10546 | (eval "$ac_link") 2>conftest.er1 | |
10547 | ac_status=$? | |
10548 | grep -v '^ *+' conftest.er1 >conftest.err | |
10549 | rm -f conftest.er1 | |
10550 | cat conftest.err >&5 | |
10551 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10552 | (exit $ac_status); } && { | |
10553 | test -z "$ac_c_werror_flag" || | |
10554 | test ! -s conftest.err | |
10555 | } && test -s conftest$ac_exeext && { | |
10556 | test "$cross_compiling" = yes || | |
10557 | $as_test_x conftest$ac_exeext | |
10558 | }; then | |
10559 | ac_cv_func_dlopen=yes | |
10560 | else | |
10561 | $as_echo "$as_me: failed program was:" >&5 | |
10562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10563 | |
8d138742 CE |
10564 | ac_cv_func_dlopen=no |
10565 | fi | |
d9898ee8 | 10566 | |
8d138742 CE |
10567 | rm -rf conftest.dSYM |
10568 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10569 | conftest$ac_exeext conftest.$ac_ext | |
10570 | fi | |
10571 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
10572 | $as_echo "$ac_cv_func_dlopen" >&6; } | |
10573 | if test "x$ac_cv_func_dlopen" = x""yes; then | |
10574 | lt_cv_dlopen="dlopen" | |
10575 | else | |
10576 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10577 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10578 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10579 | $as_echo_n "(cached) " >&6 | |
10580 | else | |
10581 | ac_check_lib_save_LIBS=$LIBS | |
10582 | LIBS="-ldl $LIBS" | |
10583 | cat >conftest.$ac_ext <<_ACEOF | |
10584 | /* confdefs.h. */ | |
10585 | _ACEOF | |
10586 | cat confdefs.h >>conftest.$ac_ext | |
10587 | cat >>conftest.$ac_ext <<_ACEOF | |
10588 | /* end confdefs.h. */ | |
d9898ee8 | 10589 | |
8d138742 CE |
10590 | /* Override any GCC internal prototype to avoid an error. |
10591 | Use char because int might match the return type of a GCC | |
10592 | builtin and then its argument prototype would still apply. */ | |
10593 | #ifdef __cplusplus | |
10594 | extern "C" | |
10595 | #endif | |
10596 | char dlopen (); | |
10597 | int | |
10598 | main () | |
10599 | { | |
10600 | return dlopen (); | |
10601 | ; | |
10602 | return 0; | |
10603 | } | |
10604 | _ACEOF | |
10605 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10606 | if { (ac_try="$ac_link" | |
10607 | case "(($ac_try" in | |
10608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10609 | *) ac_try_echo=$ac_try;; | |
10610 | esac | |
10611 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10612 | $as_echo "$ac_try_echo") >&5 | |
10613 | (eval "$ac_link") 2>conftest.er1 | |
10614 | ac_status=$? | |
10615 | grep -v '^ *+' conftest.er1 >conftest.err | |
10616 | rm -f conftest.er1 | |
10617 | cat conftest.err >&5 | |
10618 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10619 | (exit $ac_status); } && { | |
10620 | test -z "$ac_c_werror_flag" || | |
10621 | test ! -s conftest.err | |
10622 | } && test -s conftest$ac_exeext && { | |
10623 | test "$cross_compiling" = yes || | |
10624 | $as_test_x conftest$ac_exeext | |
10625 | }; then | |
10626 | ac_cv_lib_dl_dlopen=yes | |
10627 | else | |
10628 | $as_echo "$as_me: failed program was:" >&5 | |
10629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10630 | |
8d138742 CE |
10631 | ac_cv_lib_dl_dlopen=no |
10632 | fi | |
d9898ee8 | 10633 | |
8d138742 CE |
10634 | rm -rf conftest.dSYM |
10635 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10636 | conftest$ac_exeext conftest.$ac_ext | |
10637 | LIBS=$ac_check_lib_save_LIBS | |
10638 | fi | |
10639 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10640 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10641 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
10642 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10643 | else | |
10644 | { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
10645 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
10646 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
10647 | $as_echo_n "(cached) " >&6 | |
10648 | else | |
10649 | ac_check_lib_save_LIBS=$LIBS | |
10650 | LIBS="-lsvld $LIBS" | |
10651 | cat >conftest.$ac_ext <<_ACEOF | |
10652 | /* confdefs.h. */ | |
10653 | _ACEOF | |
10654 | cat confdefs.h >>conftest.$ac_ext | |
10655 | cat >>conftest.$ac_ext <<_ACEOF | |
10656 | /* end confdefs.h. */ | |
d9898ee8 | 10657 | |
8d138742 CE |
10658 | /* Override any GCC internal prototype to avoid an error. |
10659 | Use char because int might match the return type of a GCC | |
10660 | builtin and then its argument prototype would still apply. */ | |
10661 | #ifdef __cplusplus | |
10662 | extern "C" | |
10663 | #endif | |
10664 | char dlopen (); | |
10665 | int | |
10666 | main () | |
10667 | { | |
10668 | return dlopen (); | |
10669 | ; | |
10670 | return 0; | |
10671 | } | |
10672 | _ACEOF | |
10673 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10674 | if { (ac_try="$ac_link" | |
10675 | case "(($ac_try" in | |
10676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10677 | *) ac_try_echo=$ac_try;; | |
10678 | esac | |
10679 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10680 | $as_echo "$ac_try_echo") >&5 | |
10681 | (eval "$ac_link") 2>conftest.er1 | |
10682 | ac_status=$? | |
10683 | grep -v '^ *+' conftest.er1 >conftest.err | |
10684 | rm -f conftest.er1 | |
10685 | cat conftest.err >&5 | |
10686 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10687 | (exit $ac_status); } && { | |
10688 | test -z "$ac_c_werror_flag" || | |
10689 | test ! -s conftest.err | |
10690 | } && test -s conftest$ac_exeext && { | |
10691 | test "$cross_compiling" = yes || | |
10692 | $as_test_x conftest$ac_exeext | |
10693 | }; then | |
10694 | ac_cv_lib_svld_dlopen=yes | |
10695 | else | |
10696 | $as_echo "$as_me: failed program was:" >&5 | |
10697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10698 | |
8d138742 CE |
10699 | ac_cv_lib_svld_dlopen=no |
10700 | fi | |
d9898ee8 | 10701 | |
8d138742 CE |
10702 | rm -rf conftest.dSYM |
10703 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10704 | conftest$ac_exeext conftest.$ac_ext | |
10705 | LIBS=$ac_check_lib_save_LIBS | |
10706 | fi | |
10707 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
10708 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
10709 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then | |
10710 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10711 | else | |
10712 | { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
10713 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
10714 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
10715 | $as_echo_n "(cached) " >&6 | |
10716 | else | |
10717 | ac_check_lib_save_LIBS=$LIBS | |
10718 | LIBS="-ldld $LIBS" | |
10719 | cat >conftest.$ac_ext <<_ACEOF | |
10720 | /* confdefs.h. */ | |
10721 | _ACEOF | |
10722 | cat confdefs.h >>conftest.$ac_ext | |
10723 | cat >>conftest.$ac_ext <<_ACEOF | |
10724 | /* end confdefs.h. */ | |
d9898ee8 | 10725 | |
8d138742 CE |
10726 | /* Override any GCC internal prototype to avoid an error. |
10727 | Use char because int might match the return type of a GCC | |
10728 | builtin and then its argument prototype would still apply. */ | |
10729 | #ifdef __cplusplus | |
10730 | extern "C" | |
10731 | #endif | |
10732 | char dld_link (); | |
10733 | int | |
10734 | main () | |
10735 | { | |
10736 | return dld_link (); | |
10737 | ; | |
10738 | return 0; | |
10739 | } | |
10740 | _ACEOF | |
10741 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10742 | if { (ac_try="$ac_link" | |
10743 | case "(($ac_try" in | |
10744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10745 | *) ac_try_echo=$ac_try;; | |
10746 | esac | |
10747 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10748 | $as_echo "$ac_try_echo") >&5 | |
10749 | (eval "$ac_link") 2>conftest.er1 | |
10750 | ac_status=$? | |
10751 | grep -v '^ *+' conftest.er1 >conftest.err | |
10752 | rm -f conftest.er1 | |
10753 | cat conftest.err >&5 | |
10754 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10755 | (exit $ac_status); } && { | |
10756 | test -z "$ac_c_werror_flag" || | |
10757 | test ! -s conftest.err | |
10758 | } && test -s conftest$ac_exeext && { | |
10759 | test "$cross_compiling" = yes || | |
10760 | $as_test_x conftest$ac_exeext | |
10761 | }; then | |
10762 | ac_cv_lib_dld_dld_link=yes | |
10763 | else | |
10764 | $as_echo "$as_me: failed program was:" >&5 | |
10765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10766 | |
8d138742 CE |
10767 | ac_cv_lib_dld_dld_link=no |
10768 | fi | |
d9898ee8 | 10769 | |
8d138742 CE |
10770 | rm -rf conftest.dSYM |
10771 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10772 | conftest$ac_exeext conftest.$ac_ext | |
10773 | LIBS=$ac_check_lib_save_LIBS | |
10774 | fi | |
10775 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
10776 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
10777 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then | |
10778 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
10779 | fi | |
d9898ee8 | 10780 | |
d9898ee8 | 10781 | |
8d138742 | 10782 | fi |
d9898ee8 | 10783 | |
d9898ee8 | 10784 | |
8d138742 | 10785 | fi |
d9898ee8 | 10786 | |
d9898ee8 | 10787 | |
8d138742 | 10788 | fi |
d9898ee8 | 10789 | |
d9898ee8 | 10790 | |
8d138742 | 10791 | fi |
d9898ee8 | 10792 | |
d9898ee8 | 10793 | |
8d138742 | 10794 | fi |
d9898ee8 | 10795 | |
8d138742 CE |
10796 | ;; |
10797 | esac | |
d9898ee8 | 10798 | |
8d138742 CE |
10799 | if test "x$lt_cv_dlopen" != xno; then |
10800 | enable_dlopen=yes | |
10801 | else | |
10802 | enable_dlopen=no | |
10803 | fi | |
d9898ee8 | 10804 | |
8d138742 CE |
10805 | case $lt_cv_dlopen in |
10806 | dlopen) | |
10807 | save_CPPFLAGS="$CPPFLAGS" | |
10808 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
d9898ee8 | 10809 | |
8d138742 CE |
10810 | save_LDFLAGS="$LDFLAGS" |
10811 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
d9898ee8 | 10812 | |
8d138742 CE |
10813 | save_LIBS="$LIBS" |
10814 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
d9898ee8 | 10815 | |
8d138742 CE |
10816 | { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
10817 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
10818 | if test "${lt_cv_dlopen_self+set}" = set; then | |
10819 | $as_echo_n "(cached) " >&6 | |
10820 | else | |
10821 | if test "$cross_compiling" = yes; then : | |
10822 | lt_cv_dlopen_self=cross | |
10823 | else | |
10824 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10825 | lt_status=$lt_dlunknown | |
10826 | cat > conftest.$ac_ext <<_LT_EOF | |
10827 | #line 10827 "configure" | |
10828 | #include "confdefs.h" | |
d9898ee8 | 10829 | |
8d138742 CE |
10830 | #if HAVE_DLFCN_H |
10831 | #include <dlfcn.h> | |
10832 | #endif | |
d9898ee8 | 10833 | |
8d138742 | 10834 | #include <stdio.h> |
d9898ee8 | 10835 | |
8d138742 CE |
10836 | #ifdef RTLD_GLOBAL |
10837 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10838 | #else | |
10839 | # ifdef DL_GLOBAL | |
10840 | # define LT_DLGLOBAL DL_GLOBAL | |
10841 | # else | |
10842 | # define LT_DLGLOBAL 0 | |
10843 | # endif | |
10844 | #endif | |
d9898ee8 | 10845 | |
8d138742 CE |
10846 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10847 | find out it does not work in some platform. */ | |
10848 | #ifndef LT_DLLAZY_OR_NOW | |
10849 | # ifdef RTLD_LAZY | |
10850 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10851 | # else | |
10852 | # ifdef DL_LAZY | |
10853 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10854 | # else | |
10855 | # ifdef RTLD_NOW | |
10856 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10857 | # else | |
10858 | # ifdef DL_NOW | |
10859 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10860 | # else | |
10861 | # define LT_DLLAZY_OR_NOW 0 | |
10862 | # endif | |
10863 | # endif | |
10864 | # endif | |
10865 | # endif | |
10866 | #endif | |
d9898ee8 | 10867 | |
8d138742 CE |
10868 | void fnord() { int i=42;} |
10869 | int main () | |
10870 | { | |
10871 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10872 | int status = $lt_dlunknown; | |
d9898ee8 | 10873 | |
8d138742 CE |
10874 | if (self) |
10875 | { | |
10876 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10877 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10878 | /* dlclose (self); */ | |
10879 | } | |
10880 | else | |
10881 | puts (dlerror ()); | |
d9898ee8 | 10882 | |
8d138742 CE |
10883 | return status; |
10884 | } | |
10885 | _LT_EOF | |
10886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10887 | (eval $ac_link) 2>&5 | |
10888 | ac_status=$? | |
10889 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10890 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10891 | (./conftest; exit; ) >&5 2>/dev/null | |
10892 | lt_status=$? | |
10893 | case x$lt_status in | |
10894 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10895 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10896 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10897 | esac | |
10898 | else : | |
10899 | # compilation failed | |
10900 | lt_cv_dlopen_self=no | |
10901 | fi | |
10902 | fi | |
10903 | rm -fr conftest* | |
d9898ee8 | 10904 | |
d9898ee8 | 10905 | |
8d138742 CE |
10906 | fi |
10907 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
10908 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
d9898ee8 | 10909 | |
8d138742 CE |
10910 | if test "x$lt_cv_dlopen_self" = xyes; then |
10911 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
10912 | { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
10913 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
10914 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
10915 | $as_echo_n "(cached) " >&6 | |
10916 | else | |
10917 | if test "$cross_compiling" = yes; then : | |
10918 | lt_cv_dlopen_self_static=cross | |
10919 | else | |
10920 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10921 | lt_status=$lt_dlunknown | |
10922 | cat > conftest.$ac_ext <<_LT_EOF | |
10923 | #line 10923 "configure" | |
10924 | #include "confdefs.h" | |
d9898ee8 | 10925 | |
8d138742 CE |
10926 | #if HAVE_DLFCN_H |
10927 | #include <dlfcn.h> | |
10928 | #endif | |
d9898ee8 | 10929 | |
8d138742 | 10930 | #include <stdio.h> |
d9898ee8 | 10931 | |
8d138742 CE |
10932 | #ifdef RTLD_GLOBAL |
10933 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10934 | #else | |
10935 | # ifdef DL_GLOBAL | |
10936 | # define LT_DLGLOBAL DL_GLOBAL | |
10937 | # else | |
10938 | # define LT_DLGLOBAL 0 | |
10939 | # endif | |
10940 | #endif | |
d9898ee8 | 10941 | |
8d138742 CE |
10942 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10943 | find out it does not work in some platform. */ | |
10944 | #ifndef LT_DLLAZY_OR_NOW | |
10945 | # ifdef RTLD_LAZY | |
10946 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10947 | # else | |
10948 | # ifdef DL_LAZY | |
10949 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10950 | # else | |
10951 | # ifdef RTLD_NOW | |
10952 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10953 | # else | |
10954 | # ifdef DL_NOW | |
10955 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10956 | # else | |
10957 | # define LT_DLLAZY_OR_NOW 0 | |
10958 | # endif | |
10959 | # endif | |
10960 | # endif | |
10961 | # endif | |
10962 | #endif | |
d9898ee8 | 10963 | |
8d138742 CE |
10964 | void fnord() { int i=42;} |
10965 | int main () | |
10966 | { | |
10967 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10968 | int status = $lt_dlunknown; | |
d9898ee8 | 10969 | |
8d138742 CE |
10970 | if (self) |
10971 | { | |
10972 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10973 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10974 | /* dlclose (self); */ | |
10975 | } | |
10976 | else | |
10977 | puts (dlerror ()); | |
d9898ee8 | 10978 | |
8d138742 CE |
10979 | return status; |
10980 | } | |
10981 | _LT_EOF | |
10982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10983 | (eval $ac_link) 2>&5 | |
10984 | ac_status=$? | |
10985 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10986 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10987 | (./conftest; exit; ) >&5 2>/dev/null | |
10988 | lt_status=$? | |
10989 | case x$lt_status in | |
10990 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10991 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10992 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10993 | esac | |
10994 | else : | |
10995 | # compilation failed | |
10996 | lt_cv_dlopen_self_static=no | |
10997 | fi | |
10998 | fi | |
10999 | rm -fr conftest* | |
d9898ee8 | 11000 | |
d9898ee8 | 11001 | |
8d138742 CE |
11002 | fi |
11003 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
11004 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11005 | fi | |
d9898ee8 | 11006 | |
8d138742 CE |
11007 | CPPFLAGS="$save_CPPFLAGS" |
11008 | LDFLAGS="$save_LDFLAGS" | |
11009 | LIBS="$save_LIBS" | |
11010 | ;; | |
11011 | esac | |
d9898ee8 | 11012 | |
8d138742 CE |
11013 | case $lt_cv_dlopen_self in |
11014 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11015 | *) enable_dlopen_self=unknown ;; | |
11016 | esac | |
d9898ee8 | 11017 | |
8d138742 CE |
11018 | case $lt_cv_dlopen_self_static in |
11019 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11020 | *) enable_dlopen_self_static=unknown ;; | |
11021 | esac | |
11022 | fi | |
d9898ee8 | 11023 | |
d9898ee8 | 11024 | |
d9898ee8 | 11025 | |
d9898ee8 | 11026 | |
d9898ee8 | 11027 | |
d9898ee8 | 11028 | |
d9898ee8 | 11029 | |
d9898ee8 | 11030 | |
d9898ee8 | 11031 | |
d9898ee8 | 11032 | |
d9898ee8 | 11033 | |
11034 | ||
d9898ee8 | 11035 | |
11036 | ||
d9898ee8 | 11037 | |
d9898ee8 | 11038 | |
d9898ee8 | 11039 | |
8d138742 CE |
11040 | striplib= |
11041 | old_striplib= | |
11042 | { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
11043 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11044 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11045 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11046 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11047 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11048 | $as_echo "yes" >&6; } | |
11049 | else | |
11050 | # FIXME - insert some real tests, host_os isn't really good enough | |
11051 | case $host_os in | |
11052 | darwin*) | |
11053 | if test -n "$STRIP" ; then | |
11054 | striplib="$STRIP -x" | |
11055 | old_striplib="$STRIP -S" | |
11056 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11057 | $as_echo "yes" >&6; } | |
11058 | else | |
11059 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11060 | $as_echo "no" >&6; } | |
11061 | fi | |
11062 | ;; | |
11063 | *) | |
11064 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11065 | $as_echo "no" >&6; } | |
11066 | ;; | |
11067 | esac | |
11068 | fi | |
d9898ee8 | 11069 | |
11070 | ||
d9898ee8 | 11071 | |
d9898ee8 | 11072 | |
d9898ee8 | 11073 | |
d9898ee8 | 11074 | |
d9898ee8 | 11075 | |
d9898ee8 | 11076 | |
d9898ee8 | 11077 | |
d9898ee8 | 11078 | |
11079 | ||
d9898ee8 | 11080 | |
8d138742 CE |
11081 | # Report which library types will actually be built |
11082 | { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
11083 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11084 | { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
11085 | $as_echo "$can_build_shared" >&6; } | |
d9898ee8 | 11086 | |
8d138742 CE |
11087 | { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
11088 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11089 | test "$can_build_shared" = "no" && enable_shared=no | |
d9898ee8 | 11090 | |
8d138742 CE |
11091 | # On AIX, shared libraries and static libraries use the same namespace, and |
11092 | # are all built from PIC. | |
11093 | case $host_os in | |
11094 | aix3*) | |
11095 | test "$enable_shared" = yes && enable_static=no | |
11096 | if test -n "$RANLIB"; then | |
11097 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11098 | postinstall_cmds='$RANLIB $lib' | |
11099 | fi | |
11100 | ;; | |
d9898ee8 | 11101 | |
8d138742 CE |
11102 | aix[4-9]*) |
11103 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11104 | test "$enable_shared" = yes && enable_static=no | |
11105 | fi | |
d9898ee8 | 11106 | ;; |
11107 | esac | |
8d138742 CE |
11108 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 |
11109 | $as_echo "$enable_shared" >&6; } | |
d9898ee8 | 11110 | |
8d138742 CE |
11111 | { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
11112 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
11113 | # Make sure either enable_shared or enable_static is yes. | |
11114 | test "$enable_shared" = yes || enable_static=yes | |
11115 | { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 | |
11116 | $as_echo "$enable_static" >&6; } | |
d9898ee8 | 11117 | |
d9898ee8 | 11118 | |
d9898ee8 | 11119 | |
d9898ee8 | 11120 | |
8d138742 CE |
11121 | fi |
11122 | ac_ext=c | |
11123 | ac_cpp='$CPP $CPPFLAGS' | |
11124 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11125 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11126 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 11127 | |
8d138742 | 11128 | CC="$lt_save_CC" |
d9898ee8 | 11129 | |
d9898ee8 | 11130 | |
d9898ee8 | 11131 | |
d9898ee8 | 11132 | |
d9898ee8 | 11133 | |
d9898ee8 | 11134 | |
d9898ee8 | 11135 | |
d9898ee8 | 11136 | |
d9898ee8 | 11137 | |
d9898ee8 | 11138 | |
d9898ee8 | 11139 | |
d9898ee8 | 11140 | |
d9898ee8 | 11141 | |
8d138742 | 11142 | ac_config_commands="$ac_config_commands libtool" |
d9898ee8 | 11143 | |
d9898ee8 | 11144 | |
d9898ee8 | 11145 | |
d9898ee8 | 11146 | |
8d138742 | 11147 | # Only expand once: |
d9898ee8 | 11148 | |
d9898ee8 | 11149 | |
d9898ee8 | 11150 | |
8d138742 CE |
11151 | if test x$GCC = xyes |
11152 | then | |
11153 | CFLAGS="-Wall $CFLAGS" | |
11154 | fi | |
11155 | if test x$GXX = xyes | |
11156 | then | |
11157 | CXXFLAGS="-Wall $CXXFLAGS" | |
11158 | fi | |
d9898ee8 | 11159 | |
8d138742 CE |
11160 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
11161 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
11162 | if test "${ac_cv_c_const+set}" = set; then | |
11163 | $as_echo_n "(cached) " >&6 | |
11164 | else | |
11165 | cat >conftest.$ac_ext <<_ACEOF | |
11166 | /* confdefs.h. */ | |
11167 | _ACEOF | |
11168 | cat confdefs.h >>conftest.$ac_ext | |
11169 | cat >>conftest.$ac_ext <<_ACEOF | |
11170 | /* end confdefs.h. */ | |
d9898ee8 | 11171 | |
8d138742 CE |
11172 | int |
11173 | main () | |
11174 | { | |
11175 | /* FIXME: Include the comments suggested by Paul. */ | |
11176 | #ifndef __cplusplus | |
11177 | /* Ultrix mips cc rejects this. */ | |
11178 | typedef int charset[2]; | |
11179 | const charset cs; | |
11180 | /* SunOS 4.1.1 cc rejects this. */ | |
11181 | char const *const *pcpcc; | |
11182 | char **ppc; | |
11183 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
11184 | struct point {int x, y;}; | |
11185 | static struct point const zero = {0,0}; | |
11186 | /* AIX XL C 1.02.0.0 rejects this. | |
11187 | It does not let you subtract one const X* pointer from another in | |
11188 | an arm of an if-expression whose if-part is not a constant | |
11189 | expression */ | |
11190 | const char *g = "string"; | |
11191 | pcpcc = &g + (g ? g-g : 0); | |
11192 | /* HPUX 7.0 cc rejects these. */ | |
11193 | ++pcpcc; | |
11194 | ppc = (char**) pcpcc; | |
11195 | pcpcc = (char const *const *) ppc; | |
11196 | { /* SCO 3.2v4 cc rejects this. */ | |
11197 | char *t; | |
11198 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
d9898ee8 | 11199 | |
8d138742 CE |
11200 | *t++ = 0; |
11201 | if (s) return 0; | |
11202 | } | |
11203 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
11204 | int x[] = {25, 17}; | |
11205 | const int *foo = &x[0]; | |
11206 | ++foo; | |
11207 | } | |
11208 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
11209 | typedef const int *iptr; | |
11210 | iptr p = 0; | |
11211 | ++p; | |
11212 | } | |
11213 | { /* AIX XL C 1.02.0.0 rejects this saying | |
11214 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
11215 | struct s { int j; const int *ap[3]; }; | |
11216 | struct s *b; b->j = 5; | |
11217 | } | |
11218 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
11219 | const int foo = 10; | |
11220 | if (!foo) return 0; | |
11221 | } | |
11222 | return !cs[0] && !zero.x; | |
11223 | #endif | |
d9898ee8 | 11224 | |
8d138742 CE |
11225 | ; |
11226 | return 0; | |
11227 | } | |
11228 | _ACEOF | |
11229 | rm -f conftest.$ac_objext | |
11230 | if { (ac_try="$ac_compile" | |
11231 | case "(($ac_try" in | |
11232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11233 | *) ac_try_echo=$ac_try;; | |
11234 | esac | |
11235 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11236 | $as_echo "$ac_try_echo") >&5 | |
11237 | (eval "$ac_compile") 2>conftest.er1 | |
11238 | ac_status=$? | |
11239 | grep -v '^ *+' conftest.er1 >conftest.err | |
11240 | rm -f conftest.er1 | |
11241 | cat conftest.err >&5 | |
11242 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11243 | (exit $ac_status); } && { | |
11244 | test -z "$ac_c_werror_flag" || | |
11245 | test ! -s conftest.err | |
11246 | } && test -s conftest.$ac_objext; then | |
11247 | ac_cv_c_const=yes | |
11248 | else | |
11249 | $as_echo "$as_me: failed program was:" >&5 | |
11250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11251 | |
8d138742 CE |
11252 | ac_cv_c_const=no |
11253 | fi | |
d9898ee8 | 11254 | |
8d138742 CE |
11255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11256 | fi | |
11257 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
11258 | $as_echo "$ac_cv_c_const" >&6; } | |
11259 | if test $ac_cv_c_const = no; then | |
d9898ee8 | 11260 | |
8d138742 CE |
11261 | cat >>confdefs.h <<\_ACEOF |
11262 | #define const /**/ | |
11263 | _ACEOF | |
d9898ee8 | 11264 | |
8d138742 CE |
11265 | fi |
11266 | ||
11267 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
11268 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
11269 | if test "${ac_cv_header_stdc+set}" = set; then | |
11270 | $as_echo_n "(cached) " >&6 | |
11271 | else | |
11272 | cat >conftest.$ac_ext <<_ACEOF | |
11273 | /* confdefs.h. */ | |
11274 | _ACEOF | |
11275 | cat confdefs.h >>conftest.$ac_ext | |
11276 | cat >>conftest.$ac_ext <<_ACEOF | |
11277 | /* end confdefs.h. */ | |
11278 | #include <stdlib.h> | |
11279 | #include <stdarg.h> | |
11280 | #include <string.h> | |
11281 | #include <float.h> | |
11282 | ||
11283 | int | |
11284 | main () | |
11285 | { | |
11286 | ||
11287 | ; | |
11288 | return 0; | |
11289 | } | |
11290 | _ACEOF | |
11291 | rm -f conftest.$ac_objext | |
11292 | if { (ac_try="$ac_compile" | |
11293 | case "(($ac_try" in | |
11294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11295 | *) ac_try_echo=$ac_try;; | |
11296 | esac | |
11297 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11298 | $as_echo "$ac_try_echo") >&5 | |
11299 | (eval "$ac_compile") 2>conftest.er1 | |
11300 | ac_status=$? | |
11301 | grep -v '^ *+' conftest.er1 >conftest.err | |
11302 | rm -f conftest.er1 | |
11303 | cat conftest.err >&5 | |
11304 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11305 | (exit $ac_status); } && { | |
11306 | test -z "$ac_c_werror_flag" || | |
11307 | test ! -s conftest.err | |
11308 | } && test -s conftest.$ac_objext; then | |
11309 | ac_cv_header_stdc=yes | |
11310 | else | |
11311 | $as_echo "$as_me: failed program was:" >&5 | |
11312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11313 | |
8d138742 CE |
11314 | ac_cv_header_stdc=no |
11315 | fi | |
d9898ee8 | 11316 | |
8d138742 | 11317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 11318 | |
8d138742 CE |
11319 | if test $ac_cv_header_stdc = yes; then |
11320 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11321 | cat >conftest.$ac_ext <<_ACEOF | |
11322 | /* confdefs.h. */ | |
11323 | _ACEOF | |
11324 | cat confdefs.h >>conftest.$ac_ext | |
11325 | cat >>conftest.$ac_ext <<_ACEOF | |
11326 | /* end confdefs.h. */ | |
11327 | #include <string.h> | |
d9898ee8 | 11328 | |
8d138742 CE |
11329 | _ACEOF |
11330 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11331 | $EGREP "memchr" >/dev/null 2>&1; then | |
11332 | : | |
11333 | else | |
11334 | ac_cv_header_stdc=no | |
11335 | fi | |
11336 | rm -f conftest* | |
d9898ee8 | 11337 | |
8d138742 | 11338 | fi |
d9898ee8 | 11339 | |
8d138742 CE |
11340 | if test $ac_cv_header_stdc = yes; then |
11341 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11342 | cat >conftest.$ac_ext <<_ACEOF | |
11343 | /* confdefs.h. */ | |
11344 | _ACEOF | |
11345 | cat confdefs.h >>conftest.$ac_ext | |
11346 | cat >>conftest.$ac_ext <<_ACEOF | |
11347 | /* end confdefs.h. */ | |
11348 | #include <stdlib.h> | |
d9898ee8 | 11349 | |
8d138742 CE |
11350 | _ACEOF |
11351 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11352 | $EGREP "free" >/dev/null 2>&1; then | |
11353 | : | |
11354 | else | |
11355 | ac_cv_header_stdc=no | |
11356 | fi | |
11357 | rm -f conftest* | |
d9898ee8 | 11358 | |
8d138742 | 11359 | fi |
d9898ee8 | 11360 | |
8d138742 CE |
11361 | if test $ac_cv_header_stdc = yes; then |
11362 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11363 | if test "$cross_compiling" = yes; then | |
11364 | : | |
11365 | else | |
11366 | cat >conftest.$ac_ext <<_ACEOF | |
11367 | /* confdefs.h. */ | |
11368 | _ACEOF | |
11369 | cat confdefs.h >>conftest.$ac_ext | |
11370 | cat >>conftest.$ac_ext <<_ACEOF | |
11371 | /* end confdefs.h. */ | |
11372 | #include <ctype.h> | |
11373 | #include <stdlib.h> | |
11374 | #if ((' ' & 0x0FF) == 0x020) | |
11375 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11376 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11377 | #else | |
11378 | # define ISLOWER(c) \ | |
11379 | (('a' <= (c) && (c) <= 'i') \ | |
11380 | || ('j' <= (c) && (c) <= 'r') \ | |
11381 | || ('s' <= (c) && (c) <= 'z')) | |
11382 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
11383 | #endif | |
d9898ee8 | 11384 | |
8d138742 CE |
11385 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
11386 | int | |
11387 | main () | |
11388 | { | |
11389 | int i; | |
11390 | for (i = 0; i < 256; i++) | |
11391 | if (XOR (islower (i), ISLOWER (i)) | |
11392 | || toupper (i) != TOUPPER (i)) | |
11393 | return 2; | |
11394 | return 0; | |
11395 | } | |
11396 | _ACEOF | |
11397 | rm -f conftest$ac_exeext | |
11398 | if { (ac_try="$ac_link" | |
11399 | case "(($ac_try" in | |
11400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11401 | *) ac_try_echo=$ac_try;; | |
11402 | esac | |
11403 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11404 | $as_echo "$ac_try_echo") >&5 | |
11405 | (eval "$ac_link") 2>&5 | |
11406 | ac_status=$? | |
11407 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11408 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
11409 | { (case "(($ac_try" in | |
11410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11411 | *) ac_try_echo=$ac_try;; | |
11412 | esac | |
11413 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11414 | $as_echo "$ac_try_echo") >&5 | |
11415 | (eval "$ac_try") 2>&5 | |
11416 | ac_status=$? | |
11417 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11418 | (exit $ac_status); }; }; then | |
11419 | : | |
11420 | else | |
11421 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
11422 | $as_echo "$as_me: failed program was:" >&5 | |
11423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11424 | |
8d138742 CE |
11425 | ( exit $ac_status ) |
11426 | ac_cv_header_stdc=no | |
11427 | fi | |
11428 | rm -rf conftest.dSYM | |
11429 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11430 | fi | |
d9898ee8 | 11431 | |
d9898ee8 | 11432 | |
8d138742 CE |
11433 | fi |
11434 | fi | |
11435 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
11436 | $as_echo "$ac_cv_header_stdc" >&6; } | |
11437 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 11438 | |
8d138742 CE |
11439 | cat >>confdefs.h <<\_ACEOF |
11440 | #define STDC_HEADERS 1 | |
11441 | _ACEOF | |
d9898ee8 | 11442 | |
8d138742 | 11443 | fi |
d9898ee8 | 11444 | |
d9898ee8 | 11445 | |
d9898ee8 | 11446 | |
d9898ee8 | 11447 | |
8d138742 CE |
11448 | for ac_header in fcntl.h string.h syslog.h |
11449 | do | |
11450 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11451 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11452 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11453 | $as_echo_n "checking for $ac_header... " >&6; } | |
11454 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11455 | $as_echo_n "(cached) " >&6 | |
11456 | fi | |
11457 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11458 | $as_echo "$as_val"'` | |
11459 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11460 | $as_echo "$ac_res" >&6; } | |
11461 | else | |
11462 | # Is the header compilable? | |
11463 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11464 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11465 | cat >conftest.$ac_ext <<_ACEOF | |
11466 | /* confdefs.h. */ | |
11467 | _ACEOF | |
11468 | cat confdefs.h >>conftest.$ac_ext | |
11469 | cat >>conftest.$ac_ext <<_ACEOF | |
11470 | /* end confdefs.h. */ | |
11471 | $ac_includes_default | |
11472 | #include <$ac_header> | |
11473 | _ACEOF | |
11474 | rm -f conftest.$ac_objext | |
11475 | if { (ac_try="$ac_compile" | |
11476 | case "(($ac_try" in | |
11477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11478 | *) ac_try_echo=$ac_try;; | |
11479 | esac | |
11480 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11481 | $as_echo "$ac_try_echo") >&5 | |
11482 | (eval "$ac_compile") 2>conftest.er1 | |
11483 | ac_status=$? | |
11484 | grep -v '^ *+' conftest.er1 >conftest.err | |
11485 | rm -f conftest.er1 | |
11486 | cat conftest.err >&5 | |
11487 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11488 | (exit $ac_status); } && { | |
11489 | test -z "$ac_c_werror_flag" || | |
11490 | test ! -s conftest.err | |
11491 | } && test -s conftest.$ac_objext; then | |
11492 | ac_header_compiler=yes | |
11493 | else | |
11494 | $as_echo "$as_me: failed program was:" >&5 | |
11495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11496 | |
8d138742 CE |
11497 | ac_header_compiler=no |
11498 | fi | |
d9898ee8 | 11499 | |
8d138742 CE |
11500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11501 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11502 | $as_echo "$ac_header_compiler" >&6; } | |
d9898ee8 | 11503 | |
8d138742 CE |
11504 | # Is the header present? |
11505 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11506 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11507 | cat >conftest.$ac_ext <<_ACEOF | |
11508 | /* confdefs.h. */ | |
11509 | _ACEOF | |
11510 | cat confdefs.h >>conftest.$ac_ext | |
11511 | cat >>conftest.$ac_ext <<_ACEOF | |
11512 | /* end confdefs.h. */ | |
11513 | #include <$ac_header> | |
11514 | _ACEOF | |
11515 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11516 | case "(($ac_try" in | |
11517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11518 | *) ac_try_echo=$ac_try;; | |
11519 | esac | |
11520 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11521 | $as_echo "$ac_try_echo") >&5 | |
11522 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11523 | ac_status=$? | |
11524 | grep -v '^ *+' conftest.er1 >conftest.err | |
11525 | rm -f conftest.er1 | |
11526 | cat conftest.err >&5 | |
11527 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11528 | (exit $ac_status); } >/dev/null && { | |
11529 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11530 | test ! -s conftest.err | |
11531 | }; then | |
11532 | ac_header_preproc=yes | |
11533 | else | |
11534 | $as_echo "$as_me: failed program was:" >&5 | |
11535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11536 | |
8d138742 CE |
11537 | ac_header_preproc=no |
11538 | fi | |
d9898ee8 | 11539 | |
8d138742 CE |
11540 | rm -f conftest.err conftest.$ac_ext |
11541 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11542 | $as_echo "$ac_header_preproc" >&6; } | |
d9898ee8 | 11543 | |
8d138742 CE |
11544 | # So? What about this header? |
11545 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11546 | yes:no: ) | |
11547 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11548 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11549 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11550 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11551 | ac_header_preproc=yes | |
11552 | ;; | |
11553 | no:yes:* ) | |
11554 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11555 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11556 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11557 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11558 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11559 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11560 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11561 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11562 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11563 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11564 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11565 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11566 | ( cat <<\_ASBOX | |
11567 | ## -------------------------------------------------- ## | |
11568 | ## Report this to courier-users@lists.sourceforge.net ## | |
11569 | ## -------------------------------------------------- ## | |
11570 | _ASBOX | |
11571 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
11572 | ;; | |
11573 | esac | |
11574 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11575 | $as_echo_n "checking for $ac_header... " >&6; } | |
11576 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11577 | $as_echo_n "(cached) " >&6 | |
11578 | else | |
11579 | eval "$as_ac_Header=\$ac_header_preproc" | |
11580 | fi | |
11581 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11582 | $as_echo "$as_val"'` | |
11583 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11584 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 11585 | |
8d138742 CE |
11586 | fi |
11587 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11588 | $as_echo "$as_val"'` | |
11589 | if test "x$as_val" = x""yes; then | |
11590 | cat >>confdefs.h <<_ACEOF | |
11591 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11592 | _ACEOF | |
d9898ee8 | 11593 | |
8d138742 | 11594 | fi |
d9898ee8 | 11595 | |
8d138742 | 11596 | done |
d9898ee8 | 11597 | |
8d138742 CE |
11598 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
11599 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
11600 | if test "${ac_cv_type_uid_t+set}" = set; then | |
11601 | $as_echo_n "(cached) " >&6 | |
11602 | else | |
11603 | cat >conftest.$ac_ext <<_ACEOF | |
11604 | /* confdefs.h. */ | |
11605 | _ACEOF | |
11606 | cat confdefs.h >>conftest.$ac_ext | |
11607 | cat >>conftest.$ac_ext <<_ACEOF | |
11608 | /* end confdefs.h. */ | |
11609 | #include <sys/types.h> | |
d9898ee8 | 11610 | |
8d138742 CE |
11611 | _ACEOF |
11612 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11613 | $EGREP "uid_t" >/dev/null 2>&1; then | |
11614 | ac_cv_type_uid_t=yes | |
11615 | else | |
11616 | ac_cv_type_uid_t=no | |
11617 | fi | |
11618 | rm -f conftest* | |
d9898ee8 | 11619 | |
8d138742 CE |
11620 | fi |
11621 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
11622 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
11623 | if test $ac_cv_type_uid_t = no; then | |
d9898ee8 | 11624 | |
8d138742 CE |
11625 | cat >>confdefs.h <<\_ACEOF |
11626 | #define uid_t int | |
11627 | _ACEOF | |
d9898ee8 | 11628 | |
d9898ee8 | 11629 | |
8d138742 CE |
11630 | cat >>confdefs.h <<\_ACEOF |
11631 | #define gid_t int | |
11632 | _ACEOF | |
d9898ee8 | 11633 | |
8d138742 | 11634 | fi |
d9898ee8 | 11635 | |
d9898ee8 | 11636 | |
8d138742 CE |
11637 | for ac_func in strchr |
11638 | do | |
11639 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
11640 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11641 | $as_echo_n "checking for $ac_func... " >&6; } | |
11642 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
11643 | $as_echo_n "(cached) " >&6 | |
11644 | else | |
11645 | cat >conftest.$ac_ext <<_ACEOF | |
11646 | /* confdefs.h. */ | |
11647 | _ACEOF | |
11648 | cat confdefs.h >>conftest.$ac_ext | |
11649 | cat >>conftest.$ac_ext <<_ACEOF | |
11650 | /* end confdefs.h. */ | |
11651 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11652 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11653 | #define $ac_func innocuous_$ac_func | |
d9898ee8 | 11654 | |
8d138742 CE |
11655 | /* System header to define __stub macros and hopefully few prototypes, |
11656 | which can conflict with char $ac_func (); below. | |
11657 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11658 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 11659 | |
8d138742 CE |
11660 | #ifdef __STDC__ |
11661 | # include <limits.h> | |
11662 | #else | |
11663 | # include <assert.h> | |
11664 | #endif | |
d9898ee8 | 11665 | |
8d138742 | 11666 | #undef $ac_func |
d9898ee8 | 11667 | |
8d138742 CE |
11668 | /* Override any GCC internal prototype to avoid an error. |
11669 | Use char because int might match the return type of a GCC | |
11670 | builtin and then its argument prototype would still apply. */ | |
11671 | #ifdef __cplusplus | |
11672 | extern "C" | |
11673 | #endif | |
11674 | char $ac_func (); | |
11675 | /* The GNU C library defines this for functions which it implements | |
11676 | to always fail with ENOSYS. Some functions are actually named | |
11677 | something starting with __ and the normal name is an alias. */ | |
11678 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
11679 | choke me | |
11680 | #endif | |
d9898ee8 | 11681 | |
8d138742 CE |
11682 | int |
11683 | main () | |
11684 | { | |
11685 | return $ac_func (); | |
11686 | ; | |
11687 | return 0; | |
11688 | } | |
11689 | _ACEOF | |
11690 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11691 | if { (ac_try="$ac_link" | |
11692 | case "(($ac_try" in | |
11693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11694 | *) ac_try_echo=$ac_try;; | |
11695 | esac | |
11696 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11697 | $as_echo "$ac_try_echo") >&5 | |
11698 | (eval "$ac_link") 2>conftest.er1 | |
11699 | ac_status=$? | |
11700 | grep -v '^ *+' conftest.er1 >conftest.err | |
11701 | rm -f conftest.er1 | |
11702 | cat conftest.err >&5 | |
11703 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11704 | (exit $ac_status); } && { | |
11705 | test -z "$ac_c_werror_flag" || | |
11706 | test ! -s conftest.err | |
11707 | } && test -s conftest$ac_exeext && { | |
11708 | test "$cross_compiling" = yes || | |
11709 | $as_test_x conftest$ac_exeext | |
11710 | }; then | |
11711 | eval "$as_ac_var=yes" | |
11712 | else | |
11713 | $as_echo "$as_me: failed program was:" >&5 | |
11714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11715 | |
8d138742 CE |
11716 | eval "$as_ac_var=no" |
11717 | fi | |
d9898ee8 | 11718 | |
8d138742 CE |
11719 | rm -rf conftest.dSYM |
11720 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11721 | conftest$ac_exeext conftest.$ac_ext | |
11722 | fi | |
11723 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
11724 | $as_echo "$as_val"'` | |
11725 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11726 | $as_echo "$ac_res" >&6; } | |
11727 | as_val=`eval 'as_val=${'$as_ac_var'} | |
11728 | $as_echo "$as_val"'` | |
11729 | if test "x$as_val" = x""yes; then | |
11730 | cat >>confdefs.h <<_ACEOF | |
11731 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11732 | _ACEOF | |
d9898ee8 | 11733 | |
8d138742 CE |
11734 | fi |
11735 | done | |
d9898ee8 | 11736 | |
d9898ee8 | 11737 | |
d9898ee8 | 11738 | |
8d138742 CE |
11739 | # Check whether --with-syslog was given. |
11740 | if test "${with_syslog+set}" = set; then | |
11741 | withval=$with_syslog; logdest="LOG_$withval" | |
11742 | else | |
11743 | logdest="LOG_MAIL" | |
11744 | fi | |
d9898ee8 | 11745 | |
d9898ee8 | 11746 | |
d9898ee8 | 11747 | |
8d138742 CE |
11748 | cat >>confdefs.h <<_ACEOF |
11749 | #define LOG_DEST $logdest | |
11750 | _ACEOF | |
d9898ee8 | 11751 | |
8d138742 CE |
11752 | if test -d ${srcdir}/../docbook; then |
11753 | HAVE_SGML_TRUE= | |
11754 | HAVE_SGML_FALSE='#' | |
11755 | else | |
11756 | HAVE_SGML_TRUE='#' | |
11757 | HAVE_SGML_FALSE= | |
11758 | fi | |
d9898ee8 | 11759 | |
8d138742 | 11760 | ac_config_files="$ac_config_files Makefile" |
d9898ee8 | 11761 | |
8d138742 CE |
11762 | cat >confcache <<\_ACEOF |
11763 | # This file is a shell script that caches the results of configure | |
11764 | # tests run on this system so they can be shared between configure | |
11765 | # scripts and configure runs, see configure's option --config-cache. | |
11766 | # It is not useful on other systems. If it contains results you don't | |
11767 | # want to keep, you may remove or edit it. | |
11768 | # | |
11769 | # config.status only pays attention to the cache file if you give it | |
11770 | # the --recheck option to rerun configure. | |
11771 | # | |
11772 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11773 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11774 | # following values. | |
d9898ee8 | 11775 | |
8d138742 | 11776 | _ACEOF |
d9898ee8 | 11777 | |
8d138742 CE |
11778 | # The following way of writing the cache mishandles newlines in values, |
11779 | # but we know of no workaround that is simple, portable, and efficient. | |
11780 | # So, we kill variables containing newlines. | |
11781 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11782 | # and sets the high bit in the cache file unless we assign to the vars. | |
11783 | ( | |
11784 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11785 | eval ac_val=\$$ac_var | |
11786 | case $ac_val in #( | |
11787 | *${as_nl}*) | |
11788 | case $ac_var in #( | |
11789 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
11790 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
11791 | esac | |
11792 | case $ac_var in #( | |
11793 | _ | IFS | as_nl) ;; #( | |
11794 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
11795 | *) $as_unset $ac_var ;; | |
11796 | esac ;; | |
11797 | esac | |
11798 | done | |
d9898ee8 | 11799 | |
8d138742 CE |
11800 | (set) 2>&1 | |
11801 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
11802 | *${as_nl}ac_space=\ *) | |
11803 | # `set' does not quote correctly, so add quotes (double-quote | |
11804 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11805 | sed -n \ | |
11806 | "s/'/'\\\\''/g; | |
11807 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
11808 | ;; #( | |
11809 | *) | |
11810 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11811 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
11812 | ;; | |
11813 | esac | | |
11814 | sort | |
11815 | ) | | |
11816 | sed ' | |
11817 | /^ac_cv_env_/b end | |
11818 | t clear | |
11819 | :clear | |
11820 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11821 | t end | |
11822 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11823 | :end' >>confcache | |
11824 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11825 | if test -w "$cache_file"; then | |
11826 | test "x$cache_file" != "x/dev/null" && | |
11827 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
11828 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
11829 | cat confcache >$cache_file | |
11830 | else | |
11831 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
11832 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
11833 | fi | |
11834 | fi | |
11835 | rm -f confcache | |
d9898ee8 | 11836 | |
8d138742 CE |
11837 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
11838 | # Let make expand exec_prefix. | |
11839 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
d9898ee8 | 11840 | |
8d138742 | 11841 | DEFS=-DHAVE_CONFIG_H |
d9898ee8 | 11842 | |
8d138742 CE |
11843 | ac_libobjs= |
11844 | ac_ltlibobjs= | |
11845 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11846 | # 1. Remove the extension, and $U if already installed. | |
11847 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
11848 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
11849 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
11850 | # will be set to the directory where LIBOBJS objects are built. | |
11851 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
11852 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
11853 | done | |
11854 | LIBOBJS=$ac_libobjs | |
d9898ee8 | 11855 | |
8d138742 | 11856 | LTLIBOBJS=$ac_ltlibobjs |
d9898ee8 | 11857 | |
11858 | ||
8d138742 CE |
11859 | if test -n "$EXEEXT"; then |
11860 | am__EXEEXT_TRUE= | |
11861 | am__EXEEXT_FALSE='#' | |
d9898ee8 | 11862 | else |
8d138742 CE |
11863 | am__EXEEXT_TRUE='#' |
11864 | am__EXEEXT_FALSE= | |
d9898ee8 | 11865 | fi |
11866 | ||
8d138742 CE |
11867 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
11868 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
11869 | Usually this means the macro was only invoked conditionally." >&5 | |
11870 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
11871 | Usually this means the macro was only invoked conditionally." >&2;} | |
11872 | { (exit 1); exit 1; }; } | |
11873 | fi | |
11874 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
11875 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
11876 | Usually this means the macro was only invoked conditionally." >&5 | |
11877 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
11878 | Usually this means the macro was only invoked conditionally." >&2;} | |
11879 | { (exit 1); exit 1; }; } | |
11880 | fi | |
11881 | if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then | |
11882 | { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined. | |
11883 | Usually this means the macro was only invoked conditionally." >&5 | |
11884 | $as_echo "$as_me: error: conditional \"HAVE_SGML\" was never defined. | |
11885 | Usually this means the macro was only invoked conditionally." >&2;} | |
11886 | { (exit 1); exit 1; }; } | |
11887 | fi | |
d9898ee8 | 11888 | |
8d138742 CE |
11889 | : ${CONFIG_STATUS=./config.status} |
11890 | ac_write_fail=0 | |
11891 | ac_clean_files_save=$ac_clean_files | |
11892 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
11893 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
11894 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11895 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11896 | #! $SHELL | |
11897 | # Generated by $as_me. | |
11898 | # Run this file to recreate the current configuration. | |
11899 | # Compiler output produced by configure, useful for debugging | |
11900 | # configure, is in config.log if it exists. | |
d9898ee8 | 11901 | |
8d138742 CE |
11902 | debug=false |
11903 | ac_cs_recheck=false | |
11904 | ac_cs_silent=false | |
11905 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11906 | _ACEOF | |
d9898ee8 | 11907 | |
8d138742 CE |
11908 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11909 | ## --------------------- ## | |
11910 | ## M4sh Initialization. ## | |
11911 | ## --------------------- ## | |
d9898ee8 | 11912 | |
8d138742 CE |
11913 | # Be more Bourne compatible |
11914 | DUALCASE=1; export DUALCASE # for MKS sh | |
11915 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
11916 | emulate sh | |
11917 | NULLCMD=: | |
11918 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
11919 | # is contrary to our usage. Disable this feature. | |
11920 | alias -g '${1+"$@"}'='"$@"' | |
11921 | setopt NO_GLOB_SUBST | |
11922 | else | |
11923 | case `(set -o) 2>/dev/null` in | |
11924 | *posix*) set -o posix ;; | |
11925 | esac | |
d9898ee8 | 11926 | |
d9898ee8 | 11927 | fi |
11928 | ||
11929 | ||
11930 | ||
d9898ee8 | 11931 | |
8d138742 CE |
11932 | # PATH needs CR |
11933 | # Avoid depending upon Character Ranges. | |
11934 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11935 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11936 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11937 | as_cr_digits='0123456789' | |
11938 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d9898ee8 | 11939 | |
8d138742 CE |
11940 | as_nl=' |
11941 | ' | |
11942 | export as_nl | |
11943 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
11944 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
11945 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
11946 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
11947 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11948 | as_echo='printf %s\n' | |
11949 | as_echo_n='printf %s' | |
11950 | else | |
11951 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
11952 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
11953 | as_echo_n='/usr/ucb/echo -n' | |
11954 | else | |
11955 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
11956 | as_echo_n_body='eval | |
11957 | arg=$1; | |
11958 | case $arg in | |
11959 | *"$as_nl"*) | |
11960 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
11961 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
11962 | esac; | |
11963 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
11964 | ' | |
11965 | export as_echo_n_body | |
11966 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
11967 | fi | |
11968 | export as_echo_body | |
11969 | as_echo='sh -c $as_echo_body as_echo' | |
11970 | fi | |
d9898ee8 | 11971 | |
8d138742 CE |
11972 | # The user is always right. |
11973 | if test "${PATH_SEPARATOR+set}" != set; then | |
11974 | PATH_SEPARATOR=: | |
11975 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
11976 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
11977 | PATH_SEPARATOR=';' | |
11978 | } | |
11979 | fi | |
d9898ee8 | 11980 | |
8d138742 CE |
11981 | # Support unset when possible. |
11982 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
11983 | as_unset=unset | |
11984 | else | |
11985 | as_unset=false | |
11986 | fi | |
d9898ee8 | 11987 | |
11988 | ||
8d138742 CE |
11989 | # IFS |
11990 | # We need space, tab and new line, in precisely that order. Quoting is | |
11991 | # there to prevent editors from complaining about space-tab. | |
11992 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
11993 | # splitting by setting IFS to empty value.) | |
11994 | IFS=" "" $as_nl" | |
d9898ee8 | 11995 | |
8d138742 CE |
11996 | # Find who we are. Look in the path if we contain no directory separator. |
11997 | case $0 in | |
11998 | *[\\/]* ) as_myself=$0 ;; | |
11999 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12000 | for as_dir in $PATH | |
12001 | do | |
12002 | IFS=$as_save_IFS | |
12003 | test -z "$as_dir" && as_dir=. | |
12004 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12005 | done | |
12006 | IFS=$as_save_IFS | |
d9898ee8 | 12007 | |
8d138742 CE |
12008 | ;; |
12009 | esac | |
12010 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12011 | # in which case we are not to be found in the path. | |
12012 | if test "x$as_myself" = x; then | |
12013 | as_myself=$0 | |
12014 | fi | |
12015 | if test ! -f "$as_myself"; then | |
12016 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
12017 | { (exit 1); exit 1; } | |
12018 | fi | |
d9898ee8 | 12019 | |
8d138742 CE |
12020 | # Work around bugs in pre-3.0 UWIN ksh. |
12021 | for as_var in ENV MAIL MAILPATH | |
12022 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
12023 | done | |
12024 | PS1='$ ' | |
12025 | PS2='> ' | |
12026 | PS4='+ ' | |
d9898ee8 | 12027 | |
8d138742 CE |
12028 | # NLS nuisances. |
12029 | LC_ALL=C | |
12030 | export LC_ALL | |
12031 | LANGUAGE=C | |
12032 | export LANGUAGE | |
d9898ee8 | 12033 | |
8d138742 CE |
12034 | # Required to use basename. |
12035 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
12036 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
12037 | as_expr=expr | |
12038 | else | |
12039 | as_expr=false | |
12040 | fi | |
d9898ee8 | 12041 | |
8d138742 CE |
12042 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
12043 | as_basename=basename | |
12044 | else | |
12045 | as_basename=false | |
12046 | fi | |
d9898ee8 | 12047 | |
12048 | ||
8d138742 CE |
12049 | # Name of the executable. |
12050 | as_me=`$as_basename -- "$0" || | |
12051 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
12052 | X"$0" : 'X\(//\)$' \| \ | |
12053 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
12054 | $as_echo X/"$0" | | |
12055 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12056 | s//\1/ | |
12057 | q | |
12058 | } | |
12059 | /^X\/\(\/\/\)$/{ | |
12060 | s//\1/ | |
12061 | q | |
12062 | } | |
12063 | /^X\/\(\/\).*/{ | |
12064 | s//\1/ | |
12065 | q | |
12066 | } | |
12067 | s/.*/./; q'` | |
d9898ee8 | 12068 | |
8d138742 CE |
12069 | # CDPATH. |
12070 | $as_unset CDPATH | |
d9898ee8 | 12071 | |
12072 | ||
12073 | ||
8d138742 CE |
12074 | as_lineno_1=$LINENO |
12075 | as_lineno_2=$LINENO | |
12076 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
12077 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
d9898ee8 | 12078 | |
8d138742 CE |
12079 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
12080 | # uniformly replaced by the line number. The first 'sed' inserts a | |
12081 | # line-number line after each line using $LINENO; the second 'sed' | |
12082 | # does the real work. The second script uses 'N' to pair each | |
12083 | # line-number line with the line containing $LINENO, and appends | |
12084 | # trailing '-' during substitution so that $LINENO is not a special | |
12085 | # case at line end. | |
12086 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
12087 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
12088 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
12089 | sed -n ' | |
12090 | p | |
12091 | /[$]LINENO/= | |
12092 | ' <$as_myself | | |
12093 | sed ' | |
12094 | s/[$]LINENO.*/&-/ | |
12095 | t lineno | |
12096 | b | |
12097 | :lineno | |
12098 | N | |
12099 | :loop | |
12100 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
12101 | t loop | |
12102 | s/-\n.*// | |
12103 | ' >$as_me.lineno && | |
12104 | chmod +x "$as_me.lineno" || | |
12105 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
12106 | { (exit 1); exit 1; }; } | |
d9898ee8 | 12107 | |
8d138742 CE |
12108 | # Don't try to exec as it changes $[0], causing all sort of problems |
12109 | # (the dirname of $[0] is not the place where we might find the | |
12110 | # original and so on. Autoconf is especially sensitive to this). | |
12111 | . "./$as_me.lineno" | |
12112 | # Exit status is that of the last command. | |
12113 | exit | |
12114 | } | |
d9898ee8 | 12115 | |
12116 | ||
8d138742 CE |
12117 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12118 | as_dirname=dirname | |
12119 | else | |
12120 | as_dirname=false | |
d9898ee8 | 12121 | fi |
12122 | ||
8d138742 CE |
12123 | ECHO_C= ECHO_N= ECHO_T= |
12124 | case `echo -n x` in | |
12125 | -n*) | |
12126 | case `echo 'x\c'` in | |
12127 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12128 | *) ECHO_C='\c';; | |
12129 | esac;; | |
12130 | *) | |
12131 | ECHO_N='-n';; | |
12132 | esac | |
12133 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
12134 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
12135 | as_expr=expr | |
d9898ee8 | 12136 | else |
8d138742 CE |
12137 | as_expr=false |
12138 | fi | |
d9898ee8 | 12139 | |
8d138742 CE |
12140 | rm -f conf$$ conf$$.exe conf$$.file |
12141 | if test -d conf$$.dir; then | |
12142 | rm -f conf$$.dir/conf$$.file | |
12143 | else | |
12144 | rm -f conf$$.dir | |
12145 | mkdir conf$$.dir 2>/dev/null | |
12146 | fi | |
12147 | if (echo >conf$$.file) 2>/dev/null; then | |
12148 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12149 | as_ln_s='ln -s' | |
12150 | # ... but there are two gotchas: | |
12151 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12152 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12153 | # In both cases, we have to default to `cp -p'. | |
12154 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
12155 | as_ln_s='cp -p' | |
12156 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
12157 | as_ln_s=ln | |
12158 | else | |
12159 | as_ln_s='cp -p' | |
12160 | fi | |
d9898ee8 | 12161 | else |
8d138742 CE |
12162 | as_ln_s='cp -p' |
12163 | fi | |
12164 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
12165 | rmdir conf$$.dir 2>/dev/null | |
d9898ee8 | 12166 | |
8d138742 CE |
12167 | if mkdir -p . 2>/dev/null; then |
12168 | as_mkdir_p=: | |
12169 | else | |
12170 | test -d ./-p && rmdir ./-p | |
12171 | as_mkdir_p=false | |
d9898ee8 | 12172 | fi |
dd184caf | 12173 | |
8d138742 CE |
12174 | if test -x / >/dev/null 2>&1; then |
12175 | as_test_x='test -x' | |
12176 | else | |
12177 | if ls -dL / >/dev/null 2>&1; then | |
12178 | as_ls_L_option=L | |
12179 | else | |
12180 | as_ls_L_option= | |
12181 | fi | |
12182 | as_test_x=' | |
12183 | eval sh -c '\'' | |
12184 | if test -d "$1"; then | |
12185 | test -d "$1/."; | |
12186 | else | |
12187 | case $1 in | |
12188 | -*)set "./$1";; | |
12189 | esac; | |
12190 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
12191 | ???[sx]*):;;*)false;;esac;fi | |
12192 | '\'' sh | |
12193 | ' | |
d9898ee8 | 12194 | fi |
8d138742 | 12195 | as_executable_p=$as_test_x |
d9898ee8 | 12196 | |
8d138742 CE |
12197 | # Sed expression to map a string onto a valid CPP name. |
12198 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 12199 | |
8d138742 CE |
12200 | # Sed expression to map a string onto a valid variable name. |
12201 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 12202 | |
d9898ee8 | 12203 | |
8d138742 CE |
12204 | exec 6>&1 |
12205 | ||
12206 | # Save the log message, to keep $[0] and so on meaningful, and to | |
12207 | # report actual input values of CONFIG_FILES etc. instead of their | |
12208 | # values after options handling. | |
12209 | ac_log=" | |
12210 | This file was extended by courierlogger $as_me 0.10, which was | |
12211 | generated by GNU Autoconf 2.63. Invocation command line was | |
12212 | ||
12213 | CONFIG_FILES = $CONFIG_FILES | |
12214 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12215 | CONFIG_LINKS = $CONFIG_LINKS | |
12216 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12217 | $ $0 $@ | |
12218 | ||
12219 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
12220 | " | |
d9898ee8 | 12221 | |
d9898ee8 | 12222 | _ACEOF |
8d138742 CE |
12223 | |
12224 | case $ac_config_files in *" | |
12225 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
dd184caf | 12226 | esac |
d9898ee8 | 12227 | |
8d138742 CE |
12228 | case $ac_config_headers in *" |
12229 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
12230 | esac | |
dd184caf | 12231 | |
d9898ee8 | 12232 | |
8d138742 CE |
12233 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12234 | # Files that config.status was made for. | |
12235 | config_files="$ac_config_files" | |
12236 | config_headers="$ac_config_headers" | |
12237 | config_commands="$ac_config_commands" | |
d9898ee8 | 12238 | |
12239 | _ACEOF | |
d9898ee8 | 12240 | |
8d138742 CE |
12241 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12242 | ac_cs_usage="\ | |
12243 | \`$as_me' instantiates files from templates according to the | |
12244 | current configuration. | |
d9898ee8 | 12245 | |
8d138742 | 12246 | Usage: $0 [OPTION]... [FILE]... |
d9898ee8 | 12247 | |
8d138742 CE |
12248 | -h, --help print this help, then exit |
12249 | -V, --version print version number and configuration settings, then exit | |
12250 | -q, --quiet, --silent | |
12251 | do not print progress messages | |
12252 | -d, --debug don't remove temporary files | |
12253 | --recheck update $as_me by reconfiguring in the same conditions | |
12254 | --file=FILE[:TEMPLATE] | |
12255 | instantiate the configuration file FILE | |
12256 | --header=FILE[:TEMPLATE] | |
12257 | instantiate the configuration header FILE | |
d9898ee8 | 12258 | |
8d138742 CE |
12259 | Configuration files: |
12260 | $config_files | |
12261 | ||
12262 | Configuration headers: | |
12263 | $config_headers | |
12264 | ||
12265 | Configuration commands: | |
12266 | $config_commands | |
12267 | ||
12268 | Report bugs to <bug-autoconf@gnu.org>." | |
d9898ee8 | 12269 | |
d9898ee8 | 12270 | _ACEOF |
8d138742 CE |
12271 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12272 | ac_cs_version="\\ | |
12273 | courierlogger config.status 0.10 | |
12274 | configured by $0, generated by GNU Autoconf 2.63, | |
12275 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
d9898ee8 | 12276 | |
8d138742 CE |
12277 | Copyright (C) 2008 Free Software Foundation, Inc. |
12278 | This config.status script is free software; the Free Software Foundation | |
12279 | gives unlimited permission to copy, distribute and modify it." | |
12280 | ||
12281 | ac_pwd='$ac_pwd' | |
12282 | srcdir='$srcdir' | |
12283 | INSTALL='$INSTALL' | |
12284 | MKDIR_P='$MKDIR_P' | |
12285 | AWK='$AWK' | |
12286 | test -n "\$AWK" || AWK=awk | |
d9898ee8 | 12287 | _ACEOF |
d9898ee8 | 12288 | |
8d138742 CE |
12289 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12290 | # The default lists apply if the user does not specify any file. | |
12291 | ac_need_defaults=: | |
12292 | while test $# != 0 | |
12293 | do | |
12294 | case $1 in | |
12295 | --*=*) | |
12296 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12297 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
12298 | ac_shift=: | |
12299 | ;; | |
12300 | *) | |
12301 | ac_option=$1 | |
12302 | ac_optarg=$2 | |
12303 | ac_shift=shift | |
12304 | ;; | |
12305 | esac | |
12306 | ||
12307 | case $ac_option in | |
12308 | # Handling of the options. | |
12309 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
12310 | ac_cs_recheck=: ;; | |
12311 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
12312 | $as_echo "$ac_cs_version"; exit ;; | |
12313 | --debug | --debu | --deb | --de | --d | -d ) | |
12314 | debug=: ;; | |
12315 | --file | --fil | --fi | --f ) | |
12316 | $ac_shift | |
12317 | case $ac_optarg in | |
12318 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12319 | esac | |
12320 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
12321 | ac_need_defaults=false;; | |
12322 | --header | --heade | --head | --hea ) | |
12323 | $ac_shift | |
12324 | case $ac_optarg in | |
12325 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12326 | esac | |
12327 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
12328 | ac_need_defaults=false;; | |
12329 | --he | --h) | |
12330 | # Conflict between --help and --header | |
12331 | { $as_echo "$as_me: error: ambiguous option: $1 | |
12332 | Try \`$0 --help' for more information." >&2 | |
12333 | { (exit 1); exit 1; }; };; | |
12334 | --help | --hel | -h ) | |
12335 | $as_echo "$ac_cs_usage"; exit ;; | |
12336 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
12337 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12338 | ac_cs_silent=: ;; | |
12339 | ||
12340 | # This is an error. | |
12341 | -*) { $as_echo "$as_me: error: unrecognized option: $1 | |
12342 | Try \`$0 --help' for more information." >&2 | |
12343 | { (exit 1); exit 1; }; } ;; | |
12344 | ||
12345 | *) ac_config_targets="$ac_config_targets $1" | |
12346 | ac_need_defaults=false ;; | |
dd184caf | 12347 | |
8d138742 CE |
12348 | esac |
12349 | shift | |
12350 | done | |
12351 | ||
12352 | ac_configure_extra_args= | |
dd184caf | 12353 | |
8d138742 CE |
12354 | if $ac_cs_silent; then |
12355 | exec 6>/dev/null | |
12356 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
d9898ee8 | 12357 | fi |
8d138742 CE |
12358 | |
12359 | _ACEOF | |
12360 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12361 | if \$ac_cs_recheck; then | |
12362 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
12363 | shift | |
12364 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
12365 | CONFIG_SHELL='$SHELL' | |
12366 | export CONFIG_SHELL | |
12367 | exec "\$@" | |
d9898ee8 | 12368 | fi |
d9898ee8 | 12369 | |
d9898ee8 | 12370 | _ACEOF |
8d138742 CE |
12371 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12372 | exec 5>>config.log | |
12373 | { | |
12374 | echo | |
12375 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12376 | ## Running $as_me. ## | |
12377 | _ASBOX | |
12378 | $as_echo "$ac_log" | |
12379 | } >&5 | |
d9898ee8 | 12380 | |
8d138742 CE |
12381 | _ACEOF |
12382 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12383 | # | |
12384 | # INIT-COMMANDS | |
12385 | # | |
12386 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
d9898ee8 | 12387 | |
12388 | ||
8d138742 CE |
12389 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
12390 | # if CDPATH is set. | |
12391 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
d9898ee8 | 12392 | |
8d138742 CE |
12393 | sed_quote_subst='$sed_quote_subst' |
12394 | double_quote_subst='$double_quote_subst' | |
12395 | delay_variable_subst='$delay_variable_subst' | |
12396 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
12397 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
12398 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
12399 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
12400 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
12401 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
12402 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
12403 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
12404 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
12405 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
12406 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
12407 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
12408 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
12409 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
12410 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12411 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12412 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12413 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
12414 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
12415 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
12416 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
12417 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
12418 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
12419 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
12420 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
12421 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
12422 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12423 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12424 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
12425 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
12426 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
12427 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
12428 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
12429 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
12430 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
12431 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12432 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12433 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12434 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
12435 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
12436 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
12437 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
12438 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
12439 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
12440 | 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"`' | |
12441 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
12442 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
12443 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
12444 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
12445 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
12446 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12447 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
12448 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
12449 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
12450 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
12451 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
12452 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
12453 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
12454 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
12455 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
12456 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
12457 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
12458 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12459 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12460 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
12461 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
12462 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12463 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12464 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
12465 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12466 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12467 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12468 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12469 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12470 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12471 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
12472 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12473 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12474 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12475 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
12476 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
12477 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
12478 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
12479 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
12480 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
12481 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
12482 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
12483 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
12484 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
12485 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
12486 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12487 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
12488 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
12489 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12490 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12491 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
12492 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
12493 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
12494 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
12495 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
12496 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
12497 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
12498 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12499 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12500 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12501 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12502 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12503 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12504 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
12505 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
12506 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12507 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12508 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
12509 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
12510 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
12511 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
12512 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
12513 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
12514 | ||
12515 | LTCC='$LTCC' | |
12516 | LTCFLAGS='$LTCFLAGS' | |
12517 | compiler='$compiler_DEFAULT' | |
12518 | ||
12519 | # Quote evaled strings. | |
12520 | for var in SED \ | |
12521 | GREP \ | |
12522 | EGREP \ | |
12523 | FGREP \ | |
12524 | LD \ | |
12525 | NM \ | |
12526 | LN_S \ | |
12527 | lt_SP2NL \ | |
12528 | lt_NL2SP \ | |
12529 | reload_flag \ | |
12530 | OBJDUMP \ | |
12531 | deplibs_check_method \ | |
12532 | file_magic_cmd \ | |
12533 | AR \ | |
12534 | AR_FLAGS \ | |
12535 | STRIP \ | |
12536 | RANLIB \ | |
12537 | CC \ | |
12538 | CFLAGS \ | |
12539 | compiler \ | |
12540 | lt_cv_sys_global_symbol_pipe \ | |
12541 | lt_cv_sys_global_symbol_to_cdecl \ | |
12542 | lt_cv_sys_global_symbol_to_c_name_address \ | |
12543 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
12544 | SHELL \ | |
12545 | ECHO \ | |
12546 | lt_prog_compiler_no_builtin_flag \ | |
12547 | lt_prog_compiler_wl \ | |
12548 | lt_prog_compiler_pic \ | |
12549 | lt_prog_compiler_static \ | |
12550 | lt_cv_prog_compiler_c_o \ | |
12551 | need_locks \ | |
12552 | DSYMUTIL \ | |
12553 | NMEDIT \ | |
12554 | LIPO \ | |
12555 | OTOOL \ | |
12556 | OTOOL64 \ | |
12557 | shrext_cmds \ | |
12558 | export_dynamic_flag_spec \ | |
12559 | whole_archive_flag_spec \ | |
12560 | compiler_needs_object \ | |
12561 | with_gnu_ld \ | |
12562 | allow_undefined_flag \ | |
12563 | no_undefined_flag \ | |
12564 | hardcode_libdir_flag_spec \ | |
12565 | hardcode_libdir_flag_spec_ld \ | |
12566 | hardcode_libdir_separator \ | |
12567 | fix_srcfile_path \ | |
12568 | exclude_expsyms \ | |
12569 | include_expsyms \ | |
12570 | file_list_spec \ | |
12571 | variables_saved_for_relink \ | |
12572 | libname_spec \ | |
12573 | library_names_spec \ | |
12574 | soname_spec \ | |
12575 | finish_eval \ | |
12576 | old_striplib \ | |
12577 | striplib; do | |
12578 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
12579 | *[\\\\\\\`\\"\\\$]*) | |
12580 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
12581 | ;; | |
12582 | *) | |
12583 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12584 | ;; | |
12585 | esac | |
12586 | done | |
d9898ee8 | 12587 | |
8d138742 CE |
12588 | # Double-quote double-evaled strings. |
12589 | for var in reload_cmds \ | |
12590 | old_postinstall_cmds \ | |
12591 | old_postuninstall_cmds \ | |
12592 | old_archive_cmds \ | |
12593 | extract_expsyms_cmds \ | |
12594 | old_archive_from_new_cmds \ | |
12595 | old_archive_from_expsyms_cmds \ | |
12596 | archive_cmds \ | |
12597 | archive_expsym_cmds \ | |
12598 | module_cmds \ | |
12599 | module_expsym_cmds \ | |
12600 | export_symbols_cmds \ | |
12601 | prelink_cmds \ | |
12602 | postinstall_cmds \ | |
12603 | postuninstall_cmds \ | |
12604 | finish_cmds \ | |
12605 | sys_lib_search_path_spec \ | |
12606 | sys_lib_dlsearch_path_spec; do | |
12607 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
12608 | *[\\\\\\\`\\"\\\$]*) | |
12609 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
12610 | ;; | |
12611 | *) | |
12612 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12613 | ;; | |
12614 | esac | |
12615 | done | |
12616 | ||
12617 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
12618 | case \$lt_ECHO in | |
12619 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
12620 | ;; | |
dd184caf | 12621 | esac |
d9898ee8 | 12622 | |
8d138742 CE |
12623 | ac_aux_dir='$ac_aux_dir' |
12624 | xsi_shell='$xsi_shell' | |
12625 | lt_shell_append='$lt_shell_append' | |
12626 | ||
12627 | # See if we are running on zsh, and set the options which allow our | |
12628 | # commands through without removal of \ escapes INIT. | |
12629 | if test -n "\${ZSH_VERSION+set}" ; then | |
12630 | setopt NO_GLOB_SUBST | |
d9898ee8 | 12631 | fi |
dd184caf | 12632 | |
d9898ee8 | 12633 | |
8d138742 CE |
12634 | PACKAGE='$PACKAGE' |
12635 | VERSION='$VERSION' | |
12636 | TIMESTAMP='$TIMESTAMP' | |
12637 | RM='$RM' | |
12638 | ofile='$ofile' | |
12639 | ||
12640 | ||
12641 | ||
12642 | ||
d9898ee8 | 12643 | _ACEOF |
d9898ee8 | 12644 | |
8d138742 CE |
12645 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12646 | ||
12647 | # Handling of arguments. | |
12648 | for ac_config_target in $ac_config_targets | |
12649 | do | |
12650 | case $ac_config_target in | |
12651 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
12652 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
12653 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
12654 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12655 | ||
12656 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
12657 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
12658 | { (exit 1); exit 1; }; };; | |
12659 | esac | |
12660 | done | |
12661 | ||
12662 | ||
12663 | # If the user did not use the arguments to specify the items to instantiate, | |
12664 | # then the envvar interface is used. Set only those that are not. | |
12665 | # We use the long form for the default assignment because of an extremely | |
12666 | # bizarre bug on SunOS 4.1.3. | |
12667 | if $ac_need_defaults; then | |
12668 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
12669 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
12670 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
d9898ee8 | 12671 | fi |
dd184caf | 12672 | |
8d138742 CE |
12673 | # Have a temporary directory for convenience. Make it in the build tree |
12674 | # simply because there is no reason against having it here, and in addition, | |
12675 | # creating and moving files from /tmp can sometimes cause problems. | |
12676 | # Hook for its removal unless debugging. | |
12677 | # Note that there is a small window in which the directory will not be cleaned: | |
12678 | # after its creation but before its name has been assigned to `$tmp'. | |
12679 | $debug || | |
12680 | { | |
12681 | tmp= | |
12682 | trap 'exit_status=$? | |
12683 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
12684 | ' 0 | |
12685 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
12686 | } | |
12687 | # Create a (secure) tmp directory for tmp files. | |
d9898ee8 | 12688 | |
8d138742 CE |
12689 | { |
12690 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
12691 | test -n "$tmp" && test -d "$tmp" | |
12692 | } || | |
12693 | { | |
12694 | tmp=./conf$$-$RANDOM | |
12695 | (umask 077 && mkdir "$tmp") | |
12696 | } || | |
12697 | { | |
12698 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
12699 | { (exit 1); exit 1; } | |
12700 | } | |
12701 | ||
12702 | # Set up the scripts for CONFIG_FILES section. | |
12703 | # No need to generate them if there are no CONFIG_FILES. | |
12704 | # This happens for instance with `./config.status config.h'. | |
12705 | if test -n "$CONFIG_FILES"; then | |
12706 | ||
12707 | ||
12708 | ac_cr='\r' | |
12709 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
12710 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12711 | ac_cs_awk_cr='\\r' | |
d9898ee8 | 12712 | else |
8d138742 | 12713 | ac_cs_awk_cr=$ac_cr |
d9898ee8 | 12714 | fi |
d9898ee8 | 12715 | |
8d138742 | 12716 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
d9898ee8 | 12717 | _ACEOF |
12718 | ||
d9898ee8 | 12719 | |
8d138742 CE |
12720 | { |
12721 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
12722 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
12723 | echo "_ACEOF" | |
12724 | } >conf$$subs.sh || | |
12725 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12726 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12727 | { (exit 1); exit 1; }; } | |
12728 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
12729 | ac_delim='%!_!# ' | |
12730 | for ac_last_try in false false false false false :; do | |
12731 | . ./conf$$subs.sh || | |
12732 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12733 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12734 | { (exit 1); exit 1; }; } | |
12735 | ||
12736 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
12737 | if test $ac_delim_n = $ac_delim_num; then | |
12738 | break | |
12739 | elif $ac_last_try; then | |
12740 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12741 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12742 | { (exit 1); exit 1; }; } | |
12743 | else | |
12744 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12745 | fi | |
d9898ee8 | 12746 | done |
8d138742 CE |
12747 | rm -f conf$$subs.sh |
12748 | ||
12749 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12750 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
12751 | _ACEOF | |
12752 | sed -n ' | |
12753 | h | |
12754 | s/^/S["/; s/!.*/"]=/ | |
12755 | p | |
12756 | g | |
12757 | s/^[^!]*!// | |
12758 | :repl | |
12759 | t repl | |
12760 | s/'"$ac_delim"'$// | |
12761 | t delim | |
12762 | :nl | |
12763 | h | |
12764 | s/\(.\{148\}\).*/\1/ | |
12765 | t more1 | |
12766 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
12767 | p | |
12768 | n | |
12769 | b repl | |
12770 | :more1 | |
12771 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12772 | p | |
12773 | g | |
12774 | s/.\{148\}// | |
12775 | t nl | |
12776 | :delim | |
12777 | h | |
12778 | s/\(.\{148\}\).*/\1/ | |
12779 | t more2 | |
12780 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
12781 | p | |
12782 | b | |
12783 | :more2 | |
12784 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12785 | p | |
12786 | g | |
12787 | s/.\{148\}// | |
12788 | t delim | |
12789 | ' <conf$$subs.awk | sed ' | |
12790 | /^[^""]/{ | |
12791 | N | |
12792 | s/\n// | |
12793 | } | |
12794 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
12795 | rm -f conf$$subs.awk | |
12796 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12797 | _ACAWK | |
12798 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
12799 | for (key in S) S_is_set[key] = 1 | |
12800 | FS = "\a" | |
d9898ee8 | 12801 | |
8d138742 CE |
12802 | } |
12803 | { | |
12804 | line = $ 0 | |
12805 | nfields = split(line, field, "@") | |
12806 | substed = 0 | |
12807 | len = length(field[1]) | |
12808 | for (i = 2; i < nfields; i++) { | |
12809 | key = field[i] | |
12810 | keylen = length(key) | |
12811 | if (S_is_set[key]) { | |
12812 | value = S[key] | |
12813 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
12814 | len += length(value) + length(field[++i]) | |
12815 | substed = 1 | |
12816 | } else | |
12817 | len += 1 + keylen | |
12818 | } | |
12819 | ||
12820 | print line | |
12821 | } | |
12822 | ||
12823 | _ACAWK | |
12824 | _ACEOF | |
12825 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12826 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
12827 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
d9898ee8 | 12828 | else |
8d138742 CE |
12829 | cat |
12830 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
12831 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
12832 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
12833 | { (exit 1); exit 1; }; } | |
d9898ee8 | 12834 | _ACEOF |
d9898ee8 | 12835 | |
8d138742 CE |
12836 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
12837 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12838 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12839 | # (actually we leave an empty line to preserve line numbers). | |
12840 | if test "x$srcdir" = x.; then | |
12841 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12842 | s/:*\$(srcdir):*/:/ | |
12843 | s/:*\${srcdir}:*/:/ | |
12844 | s/:*@srcdir@:*/:/ | |
12845 | s/^\([^=]*=[ ]*\):*/\1/ | |
12846 | s/:*$// | |
12847 | s/^[^=]*=[ ]*$// | |
12848 | }' | |
12849 | fi | |
12850 | ||
12851 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12852 | fi # test -n "$CONFIG_FILES" | |
12853 | ||
12854 | # Set up the scripts for CONFIG_HEADERS section. | |
12855 | # No need to generate them if there are no CONFIG_HEADERS. | |
12856 | # This happens for instance with `./config.status Makefile'. | |
12857 | if test -n "$CONFIG_HEADERS"; then | |
12858 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
12859 | BEGIN { | |
12860 | _ACEOF | |
12861 | ||
12862 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
12863 | # here-document in config.status, that substitutes the proper values into | |
12864 | # config.h.in to produce config.h. | |
12865 | ||
12866 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
12867 | # handling of long lines. | |
12868 | ac_delim='%!_!# ' | |
12869 | for ac_last_try in false false :; do | |
12870 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
12871 | if test -z "$ac_t"; then | |
12872 | break | |
12873 | elif $ac_last_try; then | |
12874 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
12875 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
12876 | { (exit 1); exit 1; }; } | |
12877 | else | |
12878 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12879 | fi | |
12880 | done | |
12881 | ||
12882 | # For the awk script, D is an array of macro values keyed by name, | |
12883 | # likewise P contains macro parameters if any. Preserve backslash | |
12884 | # newline sequences. | |
12885 | ||
12886 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
12887 | sed -n ' | |
12888 | s/.\{148\}/&'"$ac_delim"'/g | |
12889 | t rset | |
12890 | :rset | |
12891 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
12892 | t def | |
12893 | d | |
12894 | :def | |
12895 | s/\\$// | |
12896 | t bsnl | |
12897 | s/["\\]/\\&/g | |
12898 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
12899 | D["\1"]=" \3"/p | |
12900 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
12901 | d | |
12902 | :bsnl | |
12903 | s/["\\]/\\&/g | |
12904 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
12905 | D["\1"]=" \3\\\\\\n"\\/p | |
12906 | t cont | |
12907 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
12908 | t cont | |
12909 | d | |
12910 | :cont | |
12911 | n | |
12912 | s/.\{148\}/&'"$ac_delim"'/g | |
12913 | t clear | |
12914 | :clear | |
12915 | s/\\$// | |
12916 | t bsnlc | |
12917 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
12918 | d | |
12919 | :bsnlc | |
12920 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
12921 | b cont | |
12922 | ' <confdefs.h | sed ' | |
12923 | s/'"$ac_delim"'/"\\\ | |
12924 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
12925 | ||
12926 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12927 | for (key in D) D_is_set[key] = 1 | |
12928 | FS = "\a" | |
12929 | } | |
12930 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
12931 | line = \$ 0 | |
12932 | split(line, arg, " ") | |
12933 | if (arg[1] == "#") { | |
12934 | defundef = arg[2] | |
12935 | mac1 = arg[3] | |
12936 | } else { | |
12937 | defundef = substr(arg[1], 2) | |
12938 | mac1 = arg[2] | |
12939 | } | |
12940 | split(mac1, mac2, "(") #) | |
12941 | macro = mac2[1] | |
12942 | prefix = substr(line, 1, index(line, defundef) - 1) | |
12943 | if (D_is_set[macro]) { | |
12944 | # Preserve the white space surrounding the "#". | |
12945 | print prefix "define", macro P[macro] D[macro] | |
12946 | next | |
12947 | } else { | |
12948 | # Replace #undef with comments. This is necessary, for example, | |
12949 | # in the case of _POSIX_SOURCE, which is predefined and required | |
12950 | # on some systems where configure will not decide to define it. | |
12951 | if (defundef == "undef") { | |
12952 | print "/*", prefix defundef, macro, "*/" | |
12953 | next | |
12954 | } | |
12955 | } | |
12956 | } | |
12957 | { print } | |
12958 | _ACAWK | |
d9898ee8 | 12959 | _ACEOF |
8d138742 CE |
12960 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12961 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
12962 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
12963 | { (exit 1); exit 1; }; } | |
12964 | fi # test -n "$CONFIG_HEADERS" | |
d9898ee8 | 12965 | |
d9898ee8 | 12966 | |
8d138742 CE |
12967 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
12968 | shift | |
12969 | for ac_tag | |
12970 | do | |
12971 | case $ac_tag in | |
12972 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
12973 | esac | |
12974 | case $ac_mode$ac_tag in | |
12975 | :[FHL]*:*);; | |
12976 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 | |
12977 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
12978 | { (exit 1); exit 1; }; };; | |
12979 | :[FH]-) ac_tag=-:-;; | |
12980 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12981 | esac | |
12982 | ac_save_IFS=$IFS | |
12983 | IFS=: | |
12984 | set x $ac_tag | |
12985 | IFS=$ac_save_IFS | |
12986 | shift | |
12987 | ac_file=$1 | |
12988 | shift | |
d9898ee8 | 12989 | |
8d138742 CE |
12990 | case $ac_mode in |
12991 | :L) ac_source=$1;; | |
12992 | :[FH]) | |
12993 | ac_file_inputs= | |
12994 | for ac_f | |
12995 | do | |
12996 | case $ac_f in | |
12997 | -) ac_f="$tmp/stdin";; | |
12998 | *) # Look for the file first in the build tree, then in the source tree | |
12999 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13000 | # because $ac_f cannot contain `:'. | |
13001 | test -f "$ac_f" || | |
13002 | case $ac_f in | |
13003 | [\\/$]*) false;; | |
13004 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13005 | esac || | |
13006 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
13007 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
13008 | { (exit 1); exit 1; }; };; | |
13009 | esac | |
13010 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
13011 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
13012 | done | |
d9898ee8 | 13013 | |
8d138742 CE |
13014 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
13015 | # use $as_me), people would be surprised to read: | |
13016 | # /* config.h. Generated by config.status. */ | |
13017 | configure_input='Generated from '` | |
13018 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13019 | `' by configure.' | |
13020 | if test x"$ac_file" != x-; then | |
13021 | configure_input="$ac_file. $configure_input" | |
13022 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | |
13023 | $as_echo "$as_me: creating $ac_file" >&6;} | |
13024 | fi | |
13025 | # Neutralize special characters interpreted by sed in replacement strings. | |
13026 | case $configure_input in #( | |
13027 | *\&* | *\|* | *\\* ) | |
13028 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13029 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13030 | *) ac_sed_conf_input=$configure_input;; | |
13031 | esac | |
d9898ee8 | 13032 | |
8d138742 CE |
13033 | case $ac_tag in |
13034 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
13035 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13036 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13037 | { (exit 1); exit 1; }; } ;; | |
13038 | esac | |
13039 | ;; | |
13040 | esac | |
d9898ee8 | 13041 | |
8d138742 CE |
13042 | ac_dir=`$as_dirname -- "$ac_file" || |
13043 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13044 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13045 | X"$ac_file" : 'X\(//\)$' \| \ | |
13046 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
13047 | $as_echo X"$ac_file" | | |
13048 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13049 | s//\1/ | |
13050 | q | |
13051 | } | |
13052 | /^X\(\/\/\)[^/].*/{ | |
13053 | s//\1/ | |
13054 | q | |
13055 | } | |
13056 | /^X\(\/\/\)$/{ | |
13057 | s//\1/ | |
13058 | q | |
13059 | } | |
13060 | /^X\(\/\).*/{ | |
13061 | s//\1/ | |
13062 | q | |
13063 | } | |
13064 | s/.*/./; q'` | |
13065 | { as_dir="$ac_dir" | |
13066 | case $as_dir in #( | |
13067 | -*) as_dir=./$as_dir;; | |
13068 | esac | |
13069 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
13070 | as_dirs= | |
13071 | while :; do | |
13072 | case $as_dir in #( | |
13073 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
13074 | *) as_qdir=$as_dir;; | |
13075 | esac | |
13076 | as_dirs="'$as_qdir' $as_dirs" | |
13077 | as_dir=`$as_dirname -- "$as_dir" || | |
13078 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13079 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13080 | X"$as_dir" : 'X\(//\)$' \| \ | |
13081 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
13082 | $as_echo X"$as_dir" | | |
13083 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13084 | s//\1/ | |
13085 | q | |
13086 | } | |
13087 | /^X\(\/\/\)[^/].*/{ | |
13088 | s//\1/ | |
13089 | q | |
13090 | } | |
13091 | /^X\(\/\/\)$/{ | |
13092 | s//\1/ | |
13093 | q | |
13094 | } | |
13095 | /^X\(\/\).*/{ | |
13096 | s//\1/ | |
13097 | q | |
13098 | } | |
13099 | s/.*/./; q'` | |
13100 | test -d "$as_dir" && break | |
13101 | done | |
13102 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
13103 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
13104 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
13105 | { (exit 1); exit 1; }; }; } | |
13106 | ac_builddir=. | |
d9898ee8 | 13107 | |
8d138742 CE |
13108 | case "$ac_dir" in |
13109 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13110 | *) | |
13111 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
13112 | # A ".." for each directory in $ac_dir_suffix. | |
13113 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
13114 | case $ac_top_builddir_sub in | |
13115 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13116 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13117 | esac ;; | |
13118 | esac | |
13119 | ac_abs_top_builddir=$ac_pwd | |
13120 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13121 | # for backward compatibility: | |
13122 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 13123 | |
8d138742 CE |
13124 | case $srcdir in |
13125 | .) # We are building in place. | |
13126 | ac_srcdir=. | |
13127 | ac_top_srcdir=$ac_top_builddir_sub | |
13128 | ac_abs_top_srcdir=$ac_pwd ;; | |
13129 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13130 | ac_srcdir=$srcdir$ac_dir_suffix; | |
13131 | ac_top_srcdir=$srcdir | |
13132 | ac_abs_top_srcdir=$srcdir ;; | |
13133 | *) # Relative name. | |
13134 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13135 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13136 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
13137 | esac | |
13138 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
d9898ee8 | 13139 | |
d9898ee8 | 13140 | |
8d138742 CE |
13141 | case $ac_mode in |
13142 | :F) | |
13143 | # | |
13144 | # CONFIG_FILE | |
13145 | # | |
d9898ee8 | 13146 | |
8d138742 CE |
13147 | case $INSTALL in |
13148 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
13149 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
13150 | esac | |
13151 | ac_MKDIR_P=$MKDIR_P | |
13152 | case $MKDIR_P in | |
13153 | [\\/$]* | ?:[\\/]* ) ;; | |
13154 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
13155 | esac | |
13156 | _ACEOF | |
d9898ee8 | 13157 | |
8d138742 CE |
13158 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13159 | # If the template does not know about datarootdir, expand it. | |
13160 | # FIXME: This hack should be removed a few years after 2.60. | |
13161 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
13162 | ||
13163 | ac_sed_dataroot=' | |
13164 | /datarootdir/ { | |
13165 | p | |
13166 | q | |
d9898ee8 | 13167 | } |
8d138742 CE |
13168 | /@datadir@/p |
13169 | /@docdir@/p | |
13170 | /@infodir@/p | |
13171 | /@localedir@/p | |
13172 | /@mandir@/p | |
13173 | ' | |
13174 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
13175 | *datarootdir*) ac_datarootdir_seen=yes;; | |
13176 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
13177 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
13178 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
d9898ee8 | 13179 | _ACEOF |
8d138742 CE |
13180 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13181 | ac_datarootdir_hack=' | |
13182 | s&@datadir@&$datadir&g | |
13183 | s&@docdir@&$docdir&g | |
13184 | s&@infodir@&$infodir&g | |
13185 | s&@localedir@&$localedir&g | |
13186 | s&@mandir@&$mandir&g | |
13187 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
dd184caf | 13188 | esac |
d9898ee8 | 13189 | _ACEOF |
13190 | ||
8d138742 CE |
13191 | # Neutralize VPATH when `$srcdir' = `.'. |
13192 | # Shell code in configure.ac might set extrasub. | |
13193 | # FIXME: do we really want to maintain this feature? | |
13194 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13195 | ac_sed_extra="$ac_vpsub | |
13196 | $extrasub | |
13197 | _ACEOF | |
13198 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13199 | :t | |
13200 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13201 | s|@configure_input@|$ac_sed_conf_input|;t t | |
13202 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
13203 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
13204 | s&@srcdir@&$ac_srcdir&;t t | |
13205 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13206 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13207 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13208 | s&@builddir@&$ac_builddir&;t t | |
13209 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13210 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13211 | s&@INSTALL@&$ac_INSTALL&;t t | |
13212 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
13213 | $ac_datarootdir_hack | |
13214 | " | |
13215 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
13216 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13217 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13218 | { (exit 1); exit 1; }; } | |
d9898ee8 | 13219 | |
8d138742 CE |
13220 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
13221 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
13222 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
13223 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13224 | which seems to be undefined. Please make sure it is defined." >&5 | |
13225 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13226 | which seems to be undefined. Please make sure it is defined." >&2;} | |
d9898ee8 | 13227 | |
8d138742 CE |
13228 | rm -f "$tmp/stdin" |
13229 | case $ac_file in | |
13230 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
13231 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
13232 | esac \ | |
13233 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13234 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13235 | { (exit 1); exit 1; }; } | |
13236 | ;; | |
13237 | :H) | |
13238 | # | |
13239 | # CONFIG_HEADER | |
13240 | # | |
13241 | if test x"$ac_file" != x-; then | |
13242 | { | |
13243 | $as_echo "/* $configure_input */" \ | |
13244 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
13245 | } >"$tmp/config.h" \ | |
13246 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13247 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13248 | { (exit 1); exit 1; }; } | |
13249 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
13250 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
13251 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
13252 | else | |
13253 | rm -f "$ac_file" | |
13254 | mv "$tmp/config.h" "$ac_file" \ | |
13255 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13256 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13257 | { (exit 1); exit 1; }; } | |
13258 | fi | |
13259 | else | |
13260 | $as_echo "/* $configure_input */" \ | |
13261 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
13262 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
13263 | $as_echo "$as_me: error: could not create -" >&2;} | |
13264 | { (exit 1); exit 1; }; } | |
13265 | fi | |
13266 | # Compute "$ac_file"'s index in $config_headers. | |
13267 | _am_arg="$ac_file" | |
13268 | _am_stamp_count=1 | |
13269 | for _am_header in $config_headers :; do | |
13270 | case $_am_header in | |
13271 | $_am_arg | $_am_arg:* ) | |
13272 | break ;; | |
13273 | * ) | |
13274 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
13275 | esac | |
13276 | done | |
13277 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
13278 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13279 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
13280 | X"$_am_arg" : 'X\(//\)$' \| \ | |
13281 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
13282 | $as_echo X"$_am_arg" | | |
13283 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13284 | s//\1/ | |
13285 | q | |
13286 | } | |
13287 | /^X\(\/\/\)[^/].*/{ | |
13288 | s//\1/ | |
13289 | q | |
13290 | } | |
13291 | /^X\(\/\/\)$/{ | |
13292 | s//\1/ | |
13293 | q | |
13294 | } | |
13295 | /^X\(\/\).*/{ | |
13296 | s//\1/ | |
13297 | q | |
13298 | } | |
13299 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
13300 | ;; | |
d9898ee8 | 13301 | |
8d138742 CE |
13302 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
13303 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
13304 | ;; | |
13305 | esac | |
dd184caf | 13306 | |
d9898ee8 | 13307 | |
8d138742 CE |
13308 | case $ac_file$ac_mode in |
13309 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
13310 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
13311 | # are listed without --file. Let's play safe and only enable the eval | |
13312 | # if we detect the quoting. | |
13313 | case $CONFIG_FILES in | |
13314 | *\'*) eval set x "$CONFIG_FILES" ;; | |
13315 | *) set x $CONFIG_FILES ;; | |
13316 | esac | |
13317 | shift | |
13318 | for mf | |
13319 | do | |
13320 | # Strip MF so we end up with the name of the file. | |
13321 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13322 | # Check whether this is an Automake generated Makefile or not. | |
13323 | # We used to match only the files named `Makefile.in', but | |
13324 | # some people rename them; so instead we look at the file content. | |
13325 | # Grep'ing the first line is not enough: some people post-process | |
13326 | # each Makefile.in and add a new line on top of each file to say so. | |
13327 | # Grep'ing the whole file is not good either: AIX grep has a line | |
13328 | # limit of 2048, but all sed's we know have understand at least 4000. | |
13329 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
13330 | dirpart=`$as_dirname -- "$mf" || | |
13331 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13332 | X"$mf" : 'X\(//\)[^/]' \| \ | |
13333 | X"$mf" : 'X\(//\)$' \| \ | |
13334 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
13335 | $as_echo X"$mf" | | |
13336 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13337 | s//\1/ | |
13338 | q | |
13339 | } | |
13340 | /^X\(\/\/\)[^/].*/{ | |
13341 | s//\1/ | |
13342 | q | |
13343 | } | |
13344 | /^X\(\/\/\)$/{ | |
13345 | s//\1/ | |
13346 | q | |
13347 | } | |
13348 | /^X\(\/\).*/{ | |
13349 | s//\1/ | |
13350 | q | |
13351 | } | |
13352 | s/.*/./; q'` | |
13353 | else | |
13354 | continue | |
13355 | fi | |
13356 | # Extract the definition of DEPDIR, am__include, and am__quote | |
13357 | # from the Makefile without running `make'. | |
13358 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
13359 | test -z "$DEPDIR" && continue | |
13360 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
13361 | test -z "am__include" && continue | |
13362 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
13363 | # When using ansi2knr, U may be empty or an underscore; expand it | |
13364 | U=`sed -n 's/^U = //p' < "$mf"` | |
13365 | # Find all dependency output files, they are included files with | |
13366 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
13367 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
13368 | # expansion. | |
13369 | for file in `sed -n " | |
13370 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
13371 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
13372 | # Make sure the directory exists. | |
13373 | test -f "$dirpart/$file" && continue | |
13374 | fdir=`$as_dirname -- "$file" || | |
13375 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13376 | X"$file" : 'X\(//\)[^/]' \| \ | |
13377 | X"$file" : 'X\(//\)$' \| \ | |
13378 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
13379 | $as_echo X"$file" | | |
13380 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13381 | s//\1/ | |
13382 | q | |
13383 | } | |
13384 | /^X\(\/\/\)[^/].*/{ | |
13385 | s//\1/ | |
13386 | q | |
13387 | } | |
13388 | /^X\(\/\/\)$/{ | |
13389 | s//\1/ | |
13390 | q | |
13391 | } | |
13392 | /^X\(\/\).*/{ | |
13393 | s//\1/ | |
13394 | q | |
13395 | } | |
13396 | s/.*/./; q'` | |
13397 | { as_dir=$dirpart/$fdir | |
13398 | case $as_dir in #( | |
13399 | -*) as_dir=./$as_dir;; | |
13400 | esac | |
13401 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
13402 | as_dirs= | |
13403 | while :; do | |
13404 | case $as_dir in #( | |
13405 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
13406 | *) as_qdir=$as_dir;; | |
13407 | esac | |
13408 | as_dirs="'$as_qdir' $as_dirs" | |
13409 | as_dir=`$as_dirname -- "$as_dir" || | |
13410 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13411 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13412 | X"$as_dir" : 'X\(//\)$' \| \ | |
13413 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
13414 | $as_echo X"$as_dir" | | |
13415 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13416 | s//\1/ | |
13417 | q | |
13418 | } | |
13419 | /^X\(\/\/\)[^/].*/{ | |
13420 | s//\1/ | |
13421 | q | |
13422 | } | |
13423 | /^X\(\/\/\)$/{ | |
13424 | s//\1/ | |
13425 | q | |
13426 | } | |
13427 | /^X\(\/\).*/{ | |
13428 | s//\1/ | |
13429 | q | |
13430 | } | |
13431 | s/.*/./; q'` | |
13432 | test -d "$as_dir" && break | |
13433 | done | |
13434 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
13435 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
13436 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
13437 | { (exit 1); exit 1; }; }; } | |
13438 | # echo "creating $dirpart/$file" | |
13439 | echo '# dummy' > "$dirpart/$file" | |
13440 | done | |
13441 | done | |
13442 | } | |
13443 | ;; | |
13444 | "libtool":C) | |
d9898ee8 | 13445 | |
8d138742 CE |
13446 | # See if we are running on zsh, and set the options which allow our |
13447 | # commands through without removal of \ escapes. | |
13448 | if test -n "${ZSH_VERSION+set}" ; then | |
13449 | setopt NO_GLOB_SUBST | |
13450 | fi | |
d9898ee8 | 13451 | |
8d138742 CE |
13452 | cfgfile="${ofile}T" |
13453 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
13454 | $RM "$cfgfile" | |
d9898ee8 | 13455 | |
8d138742 CE |
13456 | cat <<_LT_EOF >> "$cfgfile" |
13457 | #! $SHELL | |
dd184caf | 13458 | |
8d138742 CE |
13459 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
13460 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
13461 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
13462 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
d9898ee8 | 13463 | # |
8d138742 CE |
13464 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
13465 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
13466 | # Written by Gordon Matzigkeit, 1996 | |
d9898ee8 | 13467 | # |
8d138742 CE |
13468 | # This file is part of GNU Libtool. |
13469 | # | |
13470 | # GNU Libtool is free software; you can redistribute it and/or | |
13471 | # modify it under the terms of the GNU General Public License as | |
13472 | # published by the Free Software Foundation; either version 2 of | |
13473 | # the License, or (at your option) any later version. | |
13474 | # | |
13475 | # As a special exception to the GNU General Public License, | |
13476 | # if you distribute this file as part of a program or library that | |
13477 | # is built using GNU Libtool, you may include this file under the | |
13478 | # same distribution terms that you use for the rest of that program. | |
13479 | # | |
13480 | # GNU Libtool is distributed in the hope that it will be useful, | |
13481 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13482 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13483 | # GNU General Public License for more details. | |
13484 | # | |
13485 | # You should have received a copy of the GNU General Public License | |
13486 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
13487 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
13488 | # obtained by writing to the Free Software Foundation, Inc., | |
13489 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d9898ee8 | 13490 | |
d9898ee8 | 13491 | |
8d138742 CE |
13492 | # The names of the tagged configurations supported by this script. |
13493 | available_tags="" | |
dd184caf | 13494 | |
8d138742 | 13495 | # ### BEGIN LIBTOOL CONFIG |
d9898ee8 | 13496 | |
8d138742 CE |
13497 | # Which release of libtool.m4 was used? |
13498 | macro_version=$macro_version | |
13499 | macro_revision=$macro_revision | |
d9898ee8 | 13500 | |
8d138742 CE |
13501 | # Whether or not to build shared libraries. |
13502 | build_libtool_libs=$enable_shared | |
d9898ee8 | 13503 | |
8d138742 CE |
13504 | # Whether or not to build static libraries. |
13505 | build_old_libs=$enable_static | |
d9898ee8 | 13506 | |
8d138742 CE |
13507 | # What type of objects to build. |
13508 | pic_mode=$pic_mode | |
d9898ee8 | 13509 | |
8d138742 CE |
13510 | # Whether or not to optimize for fast installation. |
13511 | fast_install=$enable_fast_install | |
d9898ee8 | 13512 | |
8d138742 CE |
13513 | # The host system. |
13514 | host_alias=$host_alias | |
13515 | host=$host | |
13516 | host_os=$host_os | |
d9898ee8 | 13517 | |
8d138742 CE |
13518 | # The build system. |
13519 | build_alias=$build_alias | |
13520 | build=$build | |
13521 | build_os=$build_os | |
d9898ee8 | 13522 | |
8d138742 CE |
13523 | # A sed program that does not truncate output. |
13524 | SED=$lt_SED | |
d9898ee8 | 13525 | |
8d138742 CE |
13526 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
13527 | Xsed="\$SED -e 1s/^X//" | |
d9898ee8 | 13528 | |
8d138742 CE |
13529 | # A grep program that handles long lines. |
13530 | GREP=$lt_GREP | |
dd184caf | 13531 | |
8d138742 CE |
13532 | # An ERE matcher. |
13533 | EGREP=$lt_EGREP | |
dd184caf | 13534 | |
8d138742 CE |
13535 | # A literal string matcher. |
13536 | FGREP=$lt_FGREP | |
dd184caf | 13537 | |
8d138742 CE |
13538 | # A BSD- or MS-compatible name lister. |
13539 | NM=$lt_NM | |
dd184caf | 13540 | |
8d138742 CE |
13541 | # Whether we need soft or hard links. |
13542 | LN_S=$lt_LN_S | |
dd184caf | 13543 | |
8d138742 CE |
13544 | # What is the maximum length of a command? |
13545 | max_cmd_len=$max_cmd_len | |
dd184caf | 13546 | |
8d138742 CE |
13547 | # Object file suffix (normally "o"). |
13548 | objext=$ac_objext | |
d9898ee8 | 13549 | |
8d138742 CE |
13550 | # Executable file suffix (normally ""). |
13551 | exeext=$exeext | |
d9898ee8 | 13552 | |
8d138742 CE |
13553 | # whether the shell understands "unset". |
13554 | lt_unset=$lt_unset | |
d9898ee8 | 13555 | |
8d138742 CE |
13556 | # turn spaces into newlines. |
13557 | SP2NL=$lt_lt_SP2NL | |
dd184caf | 13558 | |
8d138742 CE |
13559 | # turn newlines into spaces. |
13560 | NL2SP=$lt_lt_NL2SP | |
dd184caf | 13561 | |
8d138742 CE |
13562 | # How to create reloadable object files. |
13563 | reload_flag=$lt_reload_flag | |
13564 | reload_cmds=$lt_reload_cmds | |
dd184caf | 13565 | |
8d138742 CE |
13566 | # An object symbol dumper. |
13567 | OBJDUMP=$lt_OBJDUMP | |
d9898ee8 | 13568 | |
8d138742 CE |
13569 | # Method to check whether dependent libraries are shared objects. |
13570 | deplibs_check_method=$lt_deplibs_check_method | |
d9898ee8 | 13571 | |
8d138742 CE |
13572 | # Command to use when deplibs_check_method == "file_magic". |
13573 | file_magic_cmd=$lt_file_magic_cmd | |
d9898ee8 | 13574 | |
8d138742 CE |
13575 | # The archiver. |
13576 | AR=$lt_AR | |
13577 | AR_FLAGS=$lt_AR_FLAGS | |
d9898ee8 | 13578 | |
8d138742 CE |
13579 | # A symbol stripping program. |
13580 | STRIP=$lt_STRIP | |
d9898ee8 | 13581 | |
8d138742 CE |
13582 | # Commands used to install an old-style archive. |
13583 | RANLIB=$lt_RANLIB | |
13584 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
13585 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
d9898ee8 | 13586 | |
8d138742 CE |
13587 | # A C compiler. |
13588 | LTCC=$lt_CC | |
d9898ee8 | 13589 | |
8d138742 CE |
13590 | # LTCC compiler flags. |
13591 | LTCFLAGS=$lt_CFLAGS | |
d9898ee8 | 13592 | |
8d138742 CE |
13593 | # Take the output of nm and produce a listing of raw symbols and C names. |
13594 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
d9898ee8 | 13595 | |
8d138742 CE |
13596 | # Transform the output of nm in a proper C declaration. |
13597 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
d9898ee8 | 13598 | |
8d138742 CE |
13599 | # Transform the output of nm in a C name address pair. |
13600 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
d9898ee8 | 13601 | |
8d138742 CE |
13602 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
13603 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
d9898ee8 | 13604 | |
8d138742 CE |
13605 | # The name of the directory that contains temporary libtool files. |
13606 | objdir=$objdir | |
d9898ee8 | 13607 | |
8d138742 CE |
13608 | # Shell to use when invoking shell scripts. |
13609 | SHELL=$lt_SHELL | |
dd184caf | 13610 | |
8d138742 CE |
13611 | # An echo program that does not interpret backslashes. |
13612 | ECHO=$lt_ECHO | |
d9898ee8 | 13613 | |
8d138742 CE |
13614 | # Used to examine libraries when file_magic_cmd begins with "file". |
13615 | MAGIC_CMD=$MAGIC_CMD | |
d9898ee8 | 13616 | |
8d138742 CE |
13617 | # Must we lock files when doing compilation? |
13618 | need_locks=$lt_need_locks | |
d9898ee8 | 13619 | |
8d138742 CE |
13620 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
13621 | DSYMUTIL=$lt_DSYMUTIL | |
d9898ee8 | 13622 | |
8d138742 CE |
13623 | # Tool to change global to local symbols on Mac OS X. |
13624 | NMEDIT=$lt_NMEDIT | |
d9898ee8 | 13625 | |
8d138742 CE |
13626 | # Tool to manipulate fat objects and archives on Mac OS X. |
13627 | LIPO=$lt_LIPO | |
d9898ee8 | 13628 | |
8d138742 CE |
13629 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
13630 | OTOOL=$lt_OTOOL | |
d9898ee8 | 13631 | |
8d138742 CE |
13632 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
13633 | OTOOL64=$lt_OTOOL64 | |
d9898ee8 | 13634 | |
8d138742 CE |
13635 | # Old archive suffix (normally "a"). |
13636 | libext=$libext | |
d9898ee8 | 13637 | |
8d138742 CE |
13638 | # Shared library suffix (normally ".so"). |
13639 | shrext_cmds=$lt_shrext_cmds | |
d9898ee8 | 13640 | |
8d138742 CE |
13641 | # The commands to extract the exported symbol list from a shared archive. |
13642 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
d9898ee8 | 13643 | |
8d138742 CE |
13644 | # Variables whose values should be saved in libtool wrapper scripts and |
13645 | # restored at link time. | |
13646 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
dd184caf | 13647 | |
8d138742 CE |
13648 | # Do we need the "lib" prefix for modules? |
13649 | need_lib_prefix=$need_lib_prefix | |
d9898ee8 | 13650 | |
8d138742 CE |
13651 | # Do we need a version for libraries? |
13652 | need_version=$need_version | |
d9898ee8 | 13653 | |
8d138742 CE |
13654 | # Library versioning type. |
13655 | version_type=$version_type | |
d9898ee8 | 13656 | |
8d138742 CE |
13657 | # Shared library runtime path variable. |
13658 | runpath_var=$runpath_var | |
d9898ee8 | 13659 | |
8d138742 CE |
13660 | # Shared library path variable. |
13661 | shlibpath_var=$shlibpath_var | |
d9898ee8 | 13662 | |
8d138742 CE |
13663 | # Is shlibpath searched before the hard-coded library search path? |
13664 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
d9898ee8 | 13665 | |
8d138742 CE |
13666 | # Format of library name prefix. |
13667 | libname_spec=$lt_libname_spec | |
d9898ee8 | 13668 | |
8d138742 CE |
13669 | # List of archive names. First name is the real one, the rest are links. |
13670 | # The last name is the one that the linker finds with -lNAME | |
13671 | library_names_spec=$lt_library_names_spec | |
d9898ee8 | 13672 | |
8d138742 CE |
13673 | # The coded name of the library, if different from the real name. |
13674 | soname_spec=$lt_soname_spec | |
d9898ee8 | 13675 | |
8d138742 CE |
13676 | # Command to use after installation of a shared archive. |
13677 | postinstall_cmds=$lt_postinstall_cmds | |
d9898ee8 | 13678 | |
8d138742 CE |
13679 | # Command to use after uninstallation of a shared archive. |
13680 | postuninstall_cmds=$lt_postuninstall_cmds | |
d9898ee8 | 13681 | |
8d138742 CE |
13682 | # Commands used to finish a libtool library installation in a directory. |
13683 | finish_cmds=$lt_finish_cmds | |
dd184caf | 13684 | |
8d138742 CE |
13685 | # As "finish_cmds", except a single script fragment to be evaled but |
13686 | # not shown. | |
13687 | finish_eval=$lt_finish_eval | |
d9898ee8 | 13688 | |
8d138742 CE |
13689 | # Whether we should hardcode library paths into libraries. |
13690 | hardcode_into_libs=$hardcode_into_libs | |
d9898ee8 | 13691 | |
8d138742 CE |
13692 | # Compile-time system search path for libraries. |
13693 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
d9898ee8 | 13694 | |
8d138742 CE |
13695 | # Run-time system search path for libraries. |
13696 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
d9898ee8 | 13697 | |
8d138742 CE |
13698 | # Whether dlopen is supported. |
13699 | dlopen_support=$enable_dlopen | |
d9898ee8 | 13700 | |
8d138742 CE |
13701 | # Whether dlopen of programs is supported. |
13702 | dlopen_self=$enable_dlopen_self | |
d9898ee8 | 13703 | |
8d138742 CE |
13704 | # Whether dlopen of statically linked programs is supported. |
13705 | dlopen_self_static=$enable_dlopen_self_static | |
d9898ee8 | 13706 | |
8d138742 CE |
13707 | # Commands to strip libraries. |
13708 | old_striplib=$lt_old_striplib | |
13709 | striplib=$lt_striplib | |
d9898ee8 | 13710 | |
d9898ee8 | 13711 | |
8d138742 CE |
13712 | # The linker used to build libraries. |
13713 | LD=$lt_LD | |
d9898ee8 | 13714 | |
8d138742 CE |
13715 | # Commands used to build an old-style archive. |
13716 | old_archive_cmds=$lt_old_archive_cmds | |
d9898ee8 | 13717 | |
8d138742 CE |
13718 | # A language specific compiler. |
13719 | CC=$lt_compiler | |
d9898ee8 | 13720 | |
8d138742 CE |
13721 | # Is the compiler the GNU compiler? |
13722 | with_gcc=$GCC | |
dd184caf | 13723 | |
8d138742 CE |
13724 | # Compiler flag to turn off builtin functions. |
13725 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dd184caf | 13726 | |
8d138742 CE |
13727 | # How to pass a linker flag through the compiler. |
13728 | wl=$lt_lt_prog_compiler_wl | |
d9898ee8 | 13729 | |
8d138742 CE |
13730 | # Additional compiler flags for building library objects. |
13731 | pic_flag=$lt_lt_prog_compiler_pic | |
dd184caf | 13732 | |
8d138742 CE |
13733 | # Compiler flag to prevent dynamic linking. |
13734 | link_static_flag=$lt_lt_prog_compiler_static | |
d9898ee8 | 13735 | |
8d138742 CE |
13736 | # Does compiler simultaneously support -c and -o options? |
13737 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
13738 | ||
13739 | # Whether or not to add -lc for building shared libraries. | |
13740 | build_libtool_need_lc=$archive_cmds_need_lc | |
13741 | ||
13742 | # Whether or not to disallow shared libs when runtime libs are static. | |
13743 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
13744 | ||
13745 | # Compiler flag to allow reflexive dlopens. | |
13746 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
d9898ee8 | 13747 | |
8d138742 CE |
13748 | # Compiler flag to generate shared objects directly from archives. |
13749 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
d9898ee8 | 13750 | |
8d138742 CE |
13751 | # Whether the compiler copes with passing no objects directly. |
13752 | compiler_needs_object=$lt_compiler_needs_object | |
d9898ee8 | 13753 | |
8d138742 CE |
13754 | # Create an old-style archive from a shared archive. |
13755 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
d9898ee8 | 13756 | |
8d138742 CE |
13757 | # Create a temporary old-style archive to link instead of a shared archive. |
13758 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
d9898ee8 | 13759 | |
8d138742 CE |
13760 | # Commands used to build a shared archive. |
13761 | archive_cmds=$lt_archive_cmds | |
13762 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
dd184caf | 13763 | |
8d138742 CE |
13764 | # Commands used to build a loadable module if different from building |
13765 | # a shared archive. | |
13766 | module_cmds=$lt_module_cmds | |
13767 | module_expsym_cmds=$lt_module_expsym_cmds | |
dd184caf | 13768 | |
8d138742 CE |
13769 | # Whether we are building with GNU ld or not. |
13770 | with_gnu_ld=$lt_with_gnu_ld | |
dd184caf | 13771 | |
8d138742 CE |
13772 | # Flag that allows shared libraries with undefined symbols to be built. |
13773 | allow_undefined_flag=$lt_allow_undefined_flag | |
dd184caf | 13774 | |
8d138742 CE |
13775 | # Flag that enforces no undefined symbols. |
13776 | no_undefined_flag=$lt_no_undefined_flag | |
d9898ee8 | 13777 | |
8d138742 CE |
13778 | # Flag to hardcode \$libdir into a binary during linking. |
13779 | # This must work even if \$libdir does not exist | |
13780 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
dd184caf | 13781 | |
8d138742 CE |
13782 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
13783 | # during linking. This must work even if \$libdir does not exist. | |
13784 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
dd184caf | 13785 | |
8d138742 CE |
13786 | # Whether we need a single "-rpath" flag with a separated argument. |
13787 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
dd184caf | 13788 | |
8d138742 CE |
13789 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
13790 | # DIR into the resulting binary. | |
13791 | hardcode_direct=$hardcode_direct | |
dd184caf | 13792 | |
8d138742 CE |
13793 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
13794 | # DIR into the resulting binary and the resulting library dependency is | |
13795 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
13796 | # library is relocated. | |
13797 | hardcode_direct_absolute=$hardcode_direct_absolute | |
dd184caf | 13798 | |
8d138742 CE |
13799 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
13800 | # into the resulting binary. | |
13801 | hardcode_minus_L=$hardcode_minus_L | |
dd184caf | 13802 | |
8d138742 CE |
13803 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
13804 | # into the resulting binary. | |
13805 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
dd184caf | 13806 | |
8d138742 CE |
13807 | # Set to "yes" if building a shared library automatically hardcodes DIR |
13808 | # into the library and all subsequent libraries and executables linked | |
13809 | # against it. | |
13810 | hardcode_automatic=$hardcode_automatic | |
dd184caf | 13811 | |
8d138742 CE |
13812 | # Set to yes if linker adds runtime paths of dependent libraries |
13813 | # to runtime path list. | |
13814 | inherit_rpath=$inherit_rpath | |
dd184caf | 13815 | |
8d138742 CE |
13816 | # Whether libtool must link a program against all its dependency libraries. |
13817 | link_all_deplibs=$link_all_deplibs | |
dd184caf | 13818 | |
8d138742 CE |
13819 | # Fix the shell variable \$srcfile for the compiler. |
13820 | fix_srcfile_path=$lt_fix_srcfile_path | |
dd184caf | 13821 | |
8d138742 CE |
13822 | # Set to "yes" if exported symbols are required. |
13823 | always_export_symbols=$always_export_symbols | |
dd184caf | 13824 | |
8d138742 CE |
13825 | # The commands to list exported symbols. |
13826 | export_symbols_cmds=$lt_export_symbols_cmds | |
dd184caf | 13827 | |
8d138742 CE |
13828 | # Symbols that should not be listed in the preloaded symbols. |
13829 | exclude_expsyms=$lt_exclude_expsyms | |
d9898ee8 | 13830 | |
8d138742 CE |
13831 | # Symbols that must always be exported. |
13832 | include_expsyms=$lt_include_expsyms | |
d9898ee8 | 13833 | |
8d138742 CE |
13834 | # Commands necessary for linking programs (against libraries) with templates. |
13835 | prelink_cmds=$lt_prelink_cmds | |
d9898ee8 | 13836 | |
8d138742 CE |
13837 | # Specify filename containing input files. |
13838 | file_list_spec=$lt_file_list_spec | |
13839 | ||
13840 | # How to hardcode a shared library path into an executable. | |
13841 | hardcode_action=$hardcode_action | |
d9898ee8 | 13842 | |
8d138742 | 13843 | # ### END LIBTOOL CONFIG |
d9898ee8 | 13844 | |
8d138742 | 13845 | _LT_EOF |
d9898ee8 | 13846 | |
8d138742 CE |
13847 | case $host_os in |
13848 | aix3*) | |
13849 | cat <<\_LT_EOF >> "$cfgfile" | |
13850 | # AIX sometimes has problems with the GCC collect2 program. For some | |
13851 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
13852 | # vanish in a puff of smoke. | |
13853 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
13854 | COLLECT_NAMES= | |
13855 | export COLLECT_NAMES | |
13856 | fi | |
13857 | _LT_EOF | |
13858 | ;; | |
d9898ee8 | 13859 | esac |
8d138742 CE |
13860 | |
13861 | ||
13862 | ltmain="$ac_aux_dir/ltmain.sh" | |
13863 | ||
13864 | ||
13865 | # We use sed instead of cat because bash on DJGPP gets confused if | |
13866 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
13867 | # text mode, it properly converts lines to CR/LF. This bash problem | |
13868 | # is reportedly fixed, but why not run on old versions too? | |
13869 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
13870 | || (rm -f "$cfgfile"; exit 1) | |
13871 | ||
13872 | case $xsi_shell in | |
13873 | yes) | |
13874 | cat << \_LT_EOF >> "$cfgfile" | |
13875 | ||
13876 | # func_dirname file append nondir_replacement | |
13877 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
13878 | # otherwise set result to NONDIR_REPLACEMENT. | |
13879 | func_dirname () | |
13880 | { | |
13881 | case ${1} in | |
13882 | */*) func_dirname_result="${1%/*}${2}" ;; | |
13883 | * ) func_dirname_result="${3}" ;; | |
dd184caf | 13884 | esac |
8d138742 | 13885 | } |
d9898ee8 | 13886 | |
8d138742 CE |
13887 | # func_basename file |
13888 | func_basename () | |
13889 | { | |
13890 | func_basename_result="${1##*/}" | |
13891 | } | |
dd184caf | 13892 | |
8d138742 CE |
13893 | # func_dirname_and_basename file append nondir_replacement |
13894 | # perform func_basename and func_dirname in a single function | |
13895 | # call: | |
13896 | # dirname: Compute the dirname of FILE. If nonempty, | |
13897 | # add APPEND to the result, otherwise set result | |
13898 | # to NONDIR_REPLACEMENT. | |
13899 | # value returned in "$func_dirname_result" | |
13900 | # basename: Compute filename of FILE. | |
13901 | # value retuned in "$func_basename_result" | |
13902 | # Implementation must be kept synchronized with func_dirname | |
13903 | # and func_basename. For efficiency, we do not delegate to | |
13904 | # those functions but instead duplicate the functionality here. | |
13905 | func_dirname_and_basename () | |
13906 | { | |
13907 | case ${1} in | |
13908 | */*) func_dirname_result="${1%/*}${2}" ;; | |
13909 | * ) func_dirname_result="${3}" ;; | |
13910 | esac | |
13911 | func_basename_result="${1##*/}" | |
dd184caf | 13912 | } |
dd184caf | 13913 | |
8d138742 CE |
13914 | # func_stripname prefix suffix name |
13915 | # strip PREFIX and SUFFIX off of NAME. | |
13916 | # PREFIX and SUFFIX must not contain globbing or regex special | |
13917 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
13918 | # dot (in which case that matches only a dot). | |
13919 | func_stripname () | |
13920 | { | |
13921 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
13922 | # positional parameters, so assign one to ordinary parameter first. | |
13923 | func_stripname_result=${3} | |
13924 | func_stripname_result=${func_stripname_result#"${1}"} | |
13925 | func_stripname_result=${func_stripname_result%"${2}"} | |
13926 | } | |
dd184caf | 13927 | |
8d138742 CE |
13928 | # func_opt_split |
13929 | func_opt_split () | |
13930 | { | |
13931 | func_opt_split_opt=${1%%=*} | |
13932 | func_opt_split_arg=${1#*=} | |
13933 | } | |
dd184caf | 13934 | |
8d138742 CE |
13935 | # func_lo2o object |
13936 | func_lo2o () | |
13937 | { | |
13938 | case ${1} in | |
13939 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
13940 | *) func_lo2o_result=${1} ;; | |
d9898ee8 | 13941 | esac |
8d138742 | 13942 | } |
d9898ee8 | 13943 | |
8d138742 CE |
13944 | # func_xform libobj-or-source |
13945 | func_xform () | |
13946 | { | |
13947 | func_xform_result=${1%.*}.lo | |
13948 | } | |
d9898ee8 | 13949 | |
8d138742 CE |
13950 | # func_arith arithmetic-term... |
13951 | func_arith () | |
13952 | { | |
13953 | func_arith_result=$(( $* )) | |
13954 | } | |
13955 | ||
13956 | # func_len string | |
13957 | # STRING may not start with a hyphen. | |
13958 | func_len () | |
13959 | { | |
13960 | func_len_result=${#1} | |
13961 | } | |
13962 | ||
13963 | _LT_EOF | |
13964 | ;; | |
13965 | *) # Bourne compatible functions. | |
13966 | cat << \_LT_EOF >> "$cfgfile" | |
13967 | ||
13968 | # func_dirname file append nondir_replacement | |
13969 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
13970 | # otherwise set result to NONDIR_REPLACEMENT. | |
13971 | func_dirname () | |
13972 | { | |
13973 | # Extract subdirectory from the argument. | |
13974 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
13975 | if test "X$func_dirname_result" = "X${1}"; then | |
13976 | func_dirname_result="${3}" | |
d9898ee8 | 13977 | else |
8d138742 | 13978 | func_dirname_result="$func_dirname_result${2}" |
d9898ee8 | 13979 | fi |
8d138742 | 13980 | } |
d9898ee8 | 13981 | |
8d138742 CE |
13982 | # func_basename file |
13983 | func_basename () | |
13984 | { | |
13985 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
13986 | } | |
13987 | ||
13988 | ||
13989 | # func_stripname prefix suffix name | |
13990 | # strip PREFIX and SUFFIX off of NAME. | |
13991 | # PREFIX and SUFFIX must not contain globbing or regex special | |
13992 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
13993 | # dot (in which case that matches only a dot). | |
13994 | # func_strip_suffix prefix name | |
13995 | func_stripname () | |
13996 | { | |
13997 | case ${2} in | |
13998 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
13999 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
14000 | *) func_stripname_result=`$ECHO "X${3}" \ | |
14001 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
dd184caf | 14002 | esac |
8d138742 | 14003 | } |
d9898ee8 | 14004 | |
8d138742 CE |
14005 | # sed scripts: |
14006 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
14007 | my_sed_long_arg='1s/^-[^=]*=//' | |
d9898ee8 | 14008 | |
8d138742 CE |
14009 | # func_opt_split |
14010 | func_opt_split () | |
14011 | { | |
14012 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
14013 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
14014 | } | |
14015 | ||
14016 | # func_lo2o object | |
14017 | func_lo2o () | |
14018 | { | |
14019 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
14020 | } | |
14021 | ||
14022 | # func_xform libobj-or-source | |
14023 | func_xform () | |
14024 | { | |
14025 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
14026 | } | |
14027 | ||
14028 | # func_arith arithmetic-term... | |
14029 | func_arith () | |
14030 | { | |
14031 | func_arith_result=`expr "$@"` | |
14032 | } | |
14033 | ||
14034 | # func_len string | |
14035 | # STRING may not start with a hyphen. | |
14036 | func_len () | |
14037 | { | |
14038 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
14039 | } | |
14040 | ||
14041 | _LT_EOF | |
14042 | esac | |
14043 | ||
14044 | case $lt_shell_append in | |
14045 | yes) | |
14046 | cat << \_LT_EOF >> "$cfgfile" | |
14047 | ||
14048 | # func_append var value | |
14049 | # Append VALUE to the end of shell variable VAR. | |
14050 | func_append () | |
14051 | { | |
14052 | eval "$1+=\$2" | |
14053 | } | |
14054 | _LT_EOF | |
14055 | ;; | |
14056 | *) | |
14057 | cat << \_LT_EOF >> "$cfgfile" | |
14058 | ||
14059 | # func_append var value | |
14060 | # Append VALUE to the end of shell variable VAR. | |
14061 | func_append () | |
14062 | { | |
14063 | eval "$1=\$$1\$2" | |
14064 | } | |
14065 | ||
14066 | _LT_EOF | |
14067 | ;; | |
dd184caf | 14068 | esac |
8d138742 CE |
14069 | |
14070 | ||
14071 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
14072 | || (rm -f "$cfgfile"; exit 1) | |
14073 | ||
14074 | mv -f "$cfgfile" "$ofile" || | |
14075 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
14076 | chmod +x "$ofile" | |
14077 | ||
d9898ee8 | 14078 | ;; |
dd184caf | 14079 | |
d9898ee8 | 14080 | esac |
dd184caf | 14081 | done # for ac_tag |
d9898ee8 | 14082 | |
d9898ee8 | 14083 | |
14084 | { (exit 0); exit 0; } | |
14085 | _ACEOF | |
14086 | chmod +x $CONFIG_STATUS | |
14087 | ac_clean_files=$ac_clean_files_save | |
14088 | ||
8d138742 CE |
14089 | test $ac_write_fail = 0 || |
14090 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
14091 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
14092 | { (exit 1); exit 1; }; } | |
14093 | ||
d9898ee8 | 14094 | |
14095 | # configure is writing to config.log, and then calls config.status. | |
14096 | # config.status does its own redirection, appending to config.log. | |
14097 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14098 | # by configure, so config.status won't be able to write to it; its | |
14099 | # output is simply discarded. So we exec the FD to /dev/null, | |
14100 | # effectively closing config.log, so it can be properly (re)opened and | |
14101 | # appended to by config.status. When coming back to configure, we | |
14102 | # need to make the FD available again. | |
14103 | if test "$no_create" != yes; then | |
14104 | ac_cs_success=: | |
14105 | ac_config_status_args= | |
14106 | test "$silent" = yes && | |
14107 | ac_config_status_args="$ac_config_status_args --quiet" | |
14108 | exec 5>/dev/null | |
14109 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14110 | exec 5>>config.log | |
14111 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14112 | # would make configure fail if this is the last instruction. | |
14113 | $ac_cs_success || { (exit 1); exit 1; } | |
14114 | fi | |
8d138742 CE |
14115 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
14116 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
14117 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
14118 | fi | |
d9898ee8 | 14119 |