d9898ee8 |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
dd184caf |
3 | # Generated by GNU Autoconf 2.61 for courier-authlib 0.60.1. |
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, |
8 | # 2002, 2003, 2004, 2005, 2006 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=: |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' |
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 | |
42 | # The user is always right. |
43 | if test "${PATH_SEPARATOR+set}" != set; then |
44 | echo "#! /bin/sh" >conf$$.sh |
45 | echo "exit 0" >>conf$$.sh |
46 | chmod +x conf$$.sh |
47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
48 | PATH_SEPARATOR=';' |
49 | else |
50 | PATH_SEPARATOR=: |
51 | fi |
52 | rm -f conf$$.sh |
d9898ee8 |
53 | fi |
d9898ee8 |
54 | |
55 | # Support unset when possible. |
56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
57 | as_unset=unset |
58 | else |
59 | as_unset=false |
60 | fi |
61 | |
62 | |
dd184caf |
63 | # IFS |
64 | # We need space, tab and new line, in precisely that order. Quoting is |
65 | # there to prevent editors from complaining about space-tab. |
66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
67 | # splitting by setting IFS to empty value.) |
68 | as_nl=' |
69 | ' |
70 | IFS=" "" $as_nl" |
71 | |
72 | # Find who we are. Look in the path if we contain no directory separator. |
73 | case $0 in |
74 | *[\\/]* ) as_myself=$0 ;; |
75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
76 | for as_dir in $PATH |
77 | do |
78 | IFS=$as_save_IFS |
79 | test -z "$as_dir" && as_dir=. |
80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
81 | done |
82 | IFS=$as_save_IFS |
83 | |
84 | ;; |
85 | esac |
86 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
87 | # in which case we are not to be found in the path. |
88 | if test "x$as_myself" = x; then |
89 | as_myself=$0 |
90 | fi |
91 | if test ! -f "$as_myself"; then |
92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
93 | { (exit 1); exit 1; } |
94 | fi |
95 | |
d9898ee8 |
96 | # Work around bugs in pre-3.0 UWIN ksh. |
dd184caf |
97 | for as_var in ENV MAIL MAILPATH |
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
99 | done |
d9898ee8 |
100 | PS1='$ ' |
101 | PS2='> ' |
102 | PS4='+ ' |
103 | |
104 | # NLS nuisances. |
105 | for as_var in \ |
106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
108 | LC_TELEPHONE LC_TIME |
109 | do |
110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
111 | eval $as_var=C; export $as_var |
112 | else |
dd184caf |
113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
d9898ee8 |
114 | fi |
115 | done |
116 | |
117 | # Required to use basename. |
dd184caf |
118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
120 | as_expr=expr |
121 | else |
122 | as_expr=false |
123 | fi |
124 | |
dd184caf |
125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 |
126 | as_basename=basename |
127 | else |
128 | as_basename=false |
129 | fi |
130 | |
131 | |
132 | # Name of the executable. |
dd184caf |
133 | as_me=`$as_basename -- "$0" || |
d9898ee8 |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
137 | echo X/"$0" | |
dd184caf |
138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
139 | s//\1/ |
140 | q |
141 | } |
142 | /^X\/\(\/\/\)$/{ |
143 | s//\1/ |
144 | q |
145 | } |
146 | /^X\/\(\/\).*/{ |
147 | s//\1/ |
148 | q |
149 | } |
150 | s/.*/./; q'` |
d9898ee8 |
151 | |
dd184caf |
152 | # CDPATH. |
153 | $as_unset CDPATH |
d9898ee8 |
154 | |
d9898ee8 |
155 | |
dd184caf |
156 | if test "x$CONFIG_SHELL" = x; then |
157 | if (eval ":") 2>/dev/null; then |
158 | as_have_required=yes |
159 | else |
160 | as_have_required=no |
d9898ee8 |
161 | fi |
162 | |
dd184caf |
163 | if test $as_have_required = yes && (eval ": |
164 | (as_func_return () { |
165 | (exit \$1) |
166 | } |
167 | as_func_success () { |
168 | as_func_return 0 |
169 | } |
170 | as_func_failure () { |
171 | as_func_return 1 |
172 | } |
173 | as_func_ret_success () { |
174 | return 0 |
175 | } |
176 | as_func_ret_failure () { |
177 | return 1 |
178 | } |
d9898ee8 |
179 | |
dd184caf |
180 | exitcode=0 |
181 | if as_func_success; then |
182 | : |
183 | else |
184 | exitcode=1 |
185 | echo as_func_success failed. |
186 | fi |
d9898ee8 |
187 | |
dd184caf |
188 | if as_func_failure; then |
189 | exitcode=1 |
190 | echo as_func_failure succeeded. |
191 | fi |
192 | |
193 | if as_func_ret_success; then |
194 | : |
195 | else |
196 | exitcode=1 |
197 | echo as_func_ret_success failed. |
198 | fi |
199 | |
200 | if as_func_ret_failure; then |
201 | exitcode=1 |
202 | echo as_func_ret_failure succeeded. |
203 | fi |
204 | |
205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
206 | : |
207 | else |
208 | exitcode=1 |
209 | echo positional parameters were not saved. |
210 | fi |
211 | |
212 | test \$exitcode = 0) || { (exit 1); exit 1; } |
213 | |
214 | ( |
215 | as_lineno_1=\$LINENO |
216 | as_lineno_2=\$LINENO |
217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
219 | ") 2> /dev/null; then |
220 | : |
221 | else |
222 | as_candidate_shells= |
d9898ee8 |
223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
225 | do |
226 | IFS=$as_save_IFS |
227 | test -z "$as_dir" && as_dir=. |
dd184caf |
228 | case $as_dir in |
d9898ee8 |
229 | /*) |
dd184caf |
230 | for as_base in sh bash ksh sh5; do |
231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
232 | done;; |
233 | esac |
234 | done |
235 | IFS=$as_save_IFS |
236 | |
237 | |
238 | for as_shell in $as_candidate_shells $SHELL; do |
239 | # Try only shells that exist, to save several forks. |
240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
241 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
243 | emulate sh |
244 | NULLCMD=: |
245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
246 | # is contrary to our usage. Disable this feature. |
247 | alias -g '${1+"$@"}'='"$@"' |
248 | setopt NO_GLOB_SUBST |
249 | else |
250 | case `(set -o) 2>/dev/null` in |
251 | *posix*) set -o posix ;; |
252 | esac |
253 | |
254 | fi |
255 | |
256 | |
257 | : |
258 | _ASEOF |
259 | }; then |
260 | CONFIG_SHELL=$as_shell |
261 | as_have_required=yes |
262 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
264 | emulate sh |
265 | NULLCMD=: |
266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
267 | # is contrary to our usage. Disable this feature. |
268 | alias -g '${1+"$@"}'='"$@"' |
269 | setopt NO_GLOB_SUBST |
270 | else |
271 | case `(set -o) 2>/dev/null` in |
272 | *posix*) set -o posix ;; |
273 | esac |
274 | |
275 | fi |
276 | |
277 | |
278 | : |
279 | (as_func_return () { |
280 | (exit $1) |
281 | } |
282 | as_func_success () { |
283 | as_func_return 0 |
284 | } |
285 | as_func_failure () { |
286 | as_func_return 1 |
287 | } |
288 | as_func_ret_success () { |
289 | return 0 |
290 | } |
291 | as_func_ret_failure () { |
292 | return 1 |
293 | } |
294 | |
295 | exitcode=0 |
296 | if as_func_success; then |
297 | : |
298 | else |
299 | exitcode=1 |
300 | echo as_func_success failed. |
301 | fi |
302 | |
303 | if as_func_failure; then |
304 | exitcode=1 |
305 | echo as_func_failure succeeded. |
306 | fi |
307 | |
308 | if as_func_ret_success; then |
309 | : |
310 | else |
311 | exitcode=1 |
312 | echo as_func_ret_success failed. |
313 | fi |
314 | |
315 | if as_func_ret_failure; then |
316 | exitcode=1 |
317 | echo as_func_ret_failure succeeded. |
318 | fi |
319 | |
320 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
321 | : |
322 | else |
323 | exitcode=1 |
324 | echo positional parameters were not saved. |
325 | fi |
326 | |
327 | test $exitcode = 0) || { (exit 1); exit 1; } |
328 | |
329 | ( |
d9898ee8 |
330 | as_lineno_1=$LINENO |
331 | as_lineno_2=$LINENO |
d9898ee8 |
332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
dd184caf |
333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
334 | |
335 | _ASEOF |
336 | }; then |
337 | break |
338 | fi |
339 | |
340 | fi |
341 | |
342 | done |
343 | |
344 | if test "x$CONFIG_SHELL" != x; then |
345 | for as_var in BASH_ENV ENV |
346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
347 | done |
348 | export CONFIG_SHELL |
349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
350 | fi |
351 | |
352 | |
353 | if test $as_have_required = no; then |
354 | echo This script requires a shell more modern than all the |
355 | echo shells that I found on your system. Please install a |
356 | echo modern shell, or manually run the script under such a |
357 | echo shell if you do have one. |
358 | { (exit 1); exit 1; } |
359 | fi |
360 | |
361 | |
362 | fi |
363 | |
364 | fi |
365 | |
366 | |
367 | |
368 | (eval "as_func_return () { |
369 | (exit \$1) |
370 | } |
371 | as_func_success () { |
372 | as_func_return 0 |
373 | } |
374 | as_func_failure () { |
375 | as_func_return 1 |
376 | } |
377 | as_func_ret_success () { |
378 | return 0 |
379 | } |
380 | as_func_ret_failure () { |
381 | return 1 |
382 | } |
383 | |
384 | exitcode=0 |
385 | if as_func_success; then |
386 | : |
387 | else |
388 | exitcode=1 |
389 | echo as_func_success failed. |
390 | fi |
391 | |
392 | if as_func_failure; then |
393 | exitcode=1 |
394 | echo as_func_failure succeeded. |
395 | fi |
396 | |
397 | if as_func_ret_success; then |
398 | : |
399 | else |
400 | exitcode=1 |
401 | echo as_func_ret_success failed. |
402 | fi |
403 | |
404 | if as_func_ret_failure; then |
405 | exitcode=1 |
406 | echo as_func_ret_failure succeeded. |
407 | fi |
408 | |
409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
410 | : |
411 | else |
412 | exitcode=1 |
413 | echo positional parameters were not saved. |
414 | fi |
415 | |
416 | test \$exitcode = 0") || { |
417 | echo No shell found that supports shell functions. |
418 | echo Please tell autoconf@gnu.org about your system, |
419 | echo including any error possibly output before this |
420 | echo message |
421 | } |
422 | |
423 | |
424 | |
425 | as_lineno_1=$LINENO |
426 | as_lineno_2=$LINENO |
427 | test "x$as_lineno_1" != "x$as_lineno_2" && |
428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
d9898ee8 |
429 | |
430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
431 | # uniformly replaced by the line number. The first 'sed' inserts a |
dd184caf |
432 | # line-number line after each line using $LINENO; the second 'sed' |
433 | # does the real work. The second script uses 'N' to pair each |
434 | # line-number line with the line containing $LINENO, and appends |
435 | # trailing '-' during substitution so that $LINENO is not a special |
436 | # case at line end. |
d9898ee8 |
437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
dd184caf |
438 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
439 | # E. McMahon (1931-1989) for sed's syntax. :-) |
440 | sed -n ' |
441 | p |
442 | /[$]LINENO/= |
443 | ' <$as_myself | |
d9898ee8 |
444 | sed ' |
dd184caf |
445 | s/[$]LINENO.*/&-/ |
446 | t lineno |
447 | b |
448 | :lineno |
d9898ee8 |
449 | N |
dd184caf |
450 | :loop |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
452 | t loop |
dd184caf |
453 | s/-\n.*// |
d9898ee8 |
454 | ' >$as_me.lineno && |
dd184caf |
455 | chmod +x "$as_me.lineno" || |
d9898ee8 |
456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
457 | { (exit 1); exit 1; }; } |
458 | |
459 | # Don't try to exec as it changes $[0], causing all sort of problems |
460 | # (the dirname of $[0] is not the place where we might find the |
dd184caf |
461 | # original and so on. Autoconf is especially sensitive to this). |
462 | . "./$as_me.lineno" |
d9898ee8 |
463 | # Exit status is that of the last command. |
464 | exit |
465 | } |
466 | |
467 | |
dd184caf |
468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
469 | as_dirname=dirname |
470 | else |
471 | as_dirname=false |
472 | fi |
473 | |
474 | ECHO_C= ECHO_N= ECHO_T= |
475 | case `echo -n x` in |
476 | -n*) |
477 | case `echo 'x\c'` in |
478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
479 | *) ECHO_C='\c';; |
480 | esac;; |
481 | *) |
482 | ECHO_N='-n';; |
d9898ee8 |
483 | esac |
484 | |
dd184caf |
485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
487 | as_expr=expr |
488 | else |
489 | as_expr=false |
490 | fi |
491 | |
492 | rm -f conf$$ conf$$.exe conf$$.file |
dd184caf |
493 | if test -d conf$$.dir; then |
494 | rm -f conf$$.dir/conf$$.file |
495 | else |
496 | rm -f conf$$.dir |
497 | mkdir conf$$.dir |
498 | fi |
d9898ee8 |
499 | echo >conf$$.file |
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
dd184caf |
501 | as_ln_s='ln -s' |
502 | # ... but there are two gotchas: |
503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
505 | # In both cases, we have to default to `cp -p'. |
506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d9898ee8 |
507 | as_ln_s='cp -p' |
d9898ee8 |
508 | elif ln conf$$.file conf$$ 2>/dev/null; then |
509 | as_ln_s=ln |
510 | else |
511 | as_ln_s='cp -p' |
512 | fi |
dd184caf |
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 | rmdir conf$$.dir 2>/dev/null |
d9898ee8 |
515 | |
516 | if mkdir -p . 2>/dev/null; then |
517 | as_mkdir_p=: |
518 | else |
519 | test -d ./-p && rmdir ./-p |
520 | as_mkdir_p=false |
521 | fi |
522 | |
dd184caf |
523 | if test -x / >/dev/null 2>&1; then |
524 | as_test_x='test -x' |
525 | else |
526 | if ls -dL / >/dev/null 2>&1; then |
527 | as_ls_L_option=L |
528 | else |
529 | as_ls_L_option= |
530 | fi |
531 | as_test_x=' |
532 | eval sh -c '\'' |
533 | if test -d "$1"; then |
534 | test -d "$1/."; |
535 | else |
536 | case $1 in |
537 | -*)set "./$1";; |
538 | esac; |
539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
540 | ???[sx]*):;;*)false;;esac;fi |
541 | '\'' sh |
542 | ' |
543 | fi |
544 | as_executable_p=$as_test_x |
d9898ee8 |
545 | |
546 | # Sed expression to map a string onto a valid CPP name. |
547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
548 | |
549 | # Sed expression to map a string onto a valid variable name. |
550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
551 | |
552 | |
d9898ee8 |
553 | |
554 | |
555 | # Check that we are running under the correct shell. |
556 | SHELL=${CONFIG_SHELL-/bin/sh} |
557 | |
558 | case X$ECHO in |
559 | X*--fallback-echo) |
560 | # Remove one level of quotation (which was required for Make). |
561 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
562 | ;; |
563 | esac |
564 | |
565 | echo=${ECHO-echo} |
566 | if test "X$1" = X--no-reexec; then |
567 | # Discard the --no-reexec flag, and continue. |
568 | shift |
569 | elif test "X$1" = X--fallback-echo; then |
570 | # Avoid inline document here, it may be left over |
571 | : |
572 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
573 | # Yippee, $echo works! |
574 | : |
575 | else |
576 | # Restart under the correct shell. |
577 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
578 | fi |
579 | |
580 | if test "X$1" = X--fallback-echo; then |
581 | # used as fallback echo |
582 | shift |
583 | cat <<EOF |
584 | $* |
585 | EOF |
586 | exit 0 |
587 | fi |
588 | |
589 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
590 | # if CDPATH is set. |
591 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
592 | |
593 | if test -z "$ECHO"; then |
594 | if test "X${echo_test_string+set}" != Xset; then |
595 | # find a string as large as possible, as long as the shell can cope with it |
596 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
597 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
598 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
599 | echo_test_string=`eval $cmd` && |
600 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
601 | then |
602 | break |
603 | fi |
604 | done |
605 | fi |
606 | |
607 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
608 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
609 | test "X$echo_testing_string" = "X$echo_test_string"; then |
610 | : |
611 | else |
612 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
613 | # backslashes. This makes it impossible to quote backslashes using |
614 | # echo "$something" | sed 's/\\/\\\\/g' |
615 | # |
616 | # So, first we look for a working echo in the user's PATH. |
617 | |
618 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
619 | for dir in $PATH /usr/ucb; do |
620 | IFS="$lt_save_ifs" |
621 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
622 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
623 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
624 | test "X$echo_testing_string" = "X$echo_test_string"; then |
625 | echo="$dir/echo" |
626 | break |
627 | fi |
628 | done |
629 | IFS="$lt_save_ifs" |
630 | |
631 | if test "X$echo" = Xecho; then |
632 | # We didn't find a better echo, so look for alternatives. |
633 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
634 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
635 | test "X$echo_testing_string" = "X$echo_test_string"; then |
636 | # This shell has a builtin print -r that does the trick. |
637 | echo='print -r' |
638 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
639 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
640 | # If we have ksh, try running configure again with it. |
641 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
642 | export ORIGINAL_CONFIG_SHELL |
643 | CONFIG_SHELL=/bin/ksh |
644 | export CONFIG_SHELL |
645 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
646 | else |
647 | # Try using printf. |
648 | echo='printf %s\n' |
649 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
650 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
651 | test "X$echo_testing_string" = "X$echo_test_string"; then |
652 | # Cool, printf works |
653 | : |
654 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
655 | test "X$echo_testing_string" = 'X\t' && |
656 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
657 | test "X$echo_testing_string" = "X$echo_test_string"; then |
658 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
659 | export CONFIG_SHELL |
660 | SHELL="$CONFIG_SHELL" |
661 | export SHELL |
662 | echo="$CONFIG_SHELL $0 --fallback-echo" |
663 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
664 | test "X$echo_testing_string" = 'X\t' && |
665 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
666 | test "X$echo_testing_string" = "X$echo_test_string"; then |
667 | echo="$CONFIG_SHELL $0 --fallback-echo" |
668 | else |
669 | # maybe with a smaller string... |
670 | prev=: |
671 | |
672 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
673 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
674 | then |
675 | break |
676 | fi |
677 | prev="$cmd" |
678 | done |
679 | |
680 | if test "$prev" != 'sed 50q "$0"'; then |
681 | echo_test_string=`eval $prev` |
682 | export echo_test_string |
683 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
684 | else |
685 | # Oops. We lost completely, so just stick with echo. |
686 | echo=echo |
687 | fi |
688 | fi |
689 | fi |
690 | fi |
691 | fi |
692 | fi |
693 | |
694 | # Copy echo and quote the copy suitably for passing to libtool from |
695 | # the Makefile, instead of quoting the original, which is used later. |
696 | ECHO=$echo |
697 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
698 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
699 | fi |
700 | |
701 | |
702 | |
703 | |
704 | tagnames=${tagnames+${tagnames},}CXX |
705 | |
706 | tagnames=${tagnames+${tagnames},}F77 |
707 | |
dd184caf |
708 | exec 7<&0 </dev/null 6>&1 |
709 | |
d9898ee8 |
710 | # Name of the host. |
711 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
712 | # so uname gets run too. |
713 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
714 | |
d9898ee8 |
715 | # |
716 | # Initializations. |
717 | # |
718 | ac_default_prefix=/usr/local |
dd184caf |
719 | ac_clean_files= |
d9898ee8 |
720 | ac_config_libobj_dir=. |
dd184caf |
721 | LIBOBJS= |
d9898ee8 |
722 | cross_compiling=no |
723 | subdirs= |
724 | MFLAGS= |
725 | MAKEFLAGS= |
726 | SHELL=${CONFIG_SHELL-/bin/sh} |
727 | |
d9898ee8 |
728 | # Identity of this package. |
729 | PACKAGE_NAME='courier-authlib' |
730 | PACKAGE_TARNAME='courier-authlib' |
dd184caf |
731 | PACKAGE_VERSION='0.60.1' |
732 | PACKAGE_STRING='courier-authlib 0.60.1' |
d9898ee8 |
733 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
734 | |
735 | ac_unique_file="courierauth.h" |
736 | # Factoring default headers for most tests. |
737 | ac_includes_default="\ |
738 | #include <stdio.h> |
dd184caf |
739 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 |
740 | # include <sys/types.h> |
741 | #endif |
dd184caf |
742 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 |
743 | # include <sys/stat.h> |
744 | #endif |
dd184caf |
745 | #ifdef STDC_HEADERS |
d9898ee8 |
746 | # include <stdlib.h> |
747 | # include <stddef.h> |
748 | #else |
dd184caf |
749 | # ifdef HAVE_STDLIB_H |
d9898ee8 |
750 | # include <stdlib.h> |
751 | # endif |
752 | #endif |
dd184caf |
753 | #ifdef HAVE_STRING_H |
754 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
d9898ee8 |
755 | # include <memory.h> |
756 | # endif |
757 | # include <string.h> |
758 | #endif |
dd184caf |
759 | #ifdef HAVE_STRINGS_H |
d9898ee8 |
760 | # include <strings.h> |
761 | #endif |
dd184caf |
762 | #ifdef HAVE_INTTYPES_H |
d9898ee8 |
763 | # include <inttypes.h> |
d9898ee8 |
764 | #endif |
dd184caf |
765 | #ifdef HAVE_STDINT_H |
766 | # include <stdint.h> |
767 | #endif |
768 | #ifdef HAVE_UNISTD_H |
d9898ee8 |
769 | # include <unistd.h> |
770 | #endif" |
771 | |
dd184caf |
772 | ac_subst_vars='SHELL |
773 | PATH_SEPARATOR |
774 | PACKAGE_NAME |
775 | PACKAGE_TARNAME |
776 | PACKAGE_VERSION |
777 | PACKAGE_STRING |
778 | PACKAGE_BUGREPORT |
779 | exec_prefix |
780 | prefix |
781 | program_transform_name |
782 | bindir |
783 | sbindir |
784 | libexecdir |
785 | datarootdir |
786 | datadir |
787 | sysconfdir |
788 | sharedstatedir |
789 | localstatedir |
790 | includedir |
791 | oldincludedir |
792 | docdir |
793 | infodir |
794 | htmldir |
795 | dvidir |
796 | pdfdir |
797 | psdir |
798 | libdir |
799 | localedir |
800 | mandir |
801 | DEFS |
802 | ECHO_C |
803 | ECHO_N |
804 | ECHO_T |
805 | LIBS |
806 | build_alias |
807 | host_alias |
808 | target_alias |
809 | INSTALL_PROGRAM |
810 | INSTALL_SCRIPT |
811 | INSTALL_DATA |
812 | am__isrc |
813 | CYGPATH_W |
814 | PACKAGE |
815 | VERSION |
816 | ACLOCAL |
817 | AUTOCONF |
818 | AUTOMAKE |
819 | AUTOHEADER |
820 | MAKEINFO |
821 | install_sh |
822 | STRIP |
823 | INSTALL_STRIP_PROGRAM |
824 | mkdir_p |
825 | AWK |
826 | SET_MAKE |
827 | am__leading_dot |
828 | AMTAR |
829 | am__tar |
830 | am__untar |
831 | CC |
832 | CFLAGS |
833 | LDFLAGS |
834 | CPPFLAGS |
835 | ac_ct_CC |
836 | EXEEXT |
837 | OBJEXT |
838 | DEPDIR |
839 | am__include |
840 | am__quote |
841 | AMDEP_TRUE |
842 | AMDEP_FALSE |
843 | AMDEPBACKSLASH |
844 | CCDEPMODE |
845 | am__fastdepCC_TRUE |
846 | am__fastdepCC_FALSE |
847 | CPP |
848 | LN_S |
849 | SYSCONFTOOL_PERL |
850 | SYSCONFTOOL |
851 | build |
852 | build_cpu |
853 | build_vendor |
854 | build_os |
855 | host |
856 | host_cpu |
857 | host_vendor |
858 | host_os |
859 | SED |
860 | GREP |
861 | EGREP |
862 | ECHO |
863 | AR |
864 | RANLIB |
865 | CXX |
866 | CXXFLAGS |
867 | ac_ct_CXX |
868 | CXXDEPMODE |
869 | am__fastdepCXX_TRUE |
870 | am__fastdepCXX_FALSE |
871 | CXXCPP |
872 | F77 |
873 | FFLAGS |
874 | ac_ct_F77 |
875 | LIBTOOL |
876 | LTDLINCL |
877 | LIBLTDL |
878 | PERL |
879 | COURIERCONFIG |
880 | EXPECT |
881 | PASSWD |
882 | MD5LIB |
883 | HAVE_MD5_TRUE |
884 | HAVE_MD5_FALSE |
885 | SHA1LIB |
886 | HAVE_SHA1_TRUE |
887 | HAVE_SHA1_FALSE |
888 | HMACLIB |
889 | HAVE_HMACLIB_TRUE |
890 | HAVE_HMACLIB_FALSE |
891 | NETLIBS |
892 | DBSUBDIR |
893 | USE_GDBM |
894 | USE_DB |
895 | LIBDB |
896 | LIBGDBM |
897 | dblibrary |
898 | LIBAUTHUSERDB |
899 | userdb |
900 | LIBDL |
901 | AUTHPAMCRYPT |
902 | LIBAUTHPAM |
903 | authldaprc |
904 | LDAPLIBS |
905 | LIBAUTHLDAP |
906 | HAVE_LDAP_TRUE |
907 | HAVE_LDAP_FALSE |
908 | SHADOWLIBS |
909 | LIBAUTHSHADOW |
910 | LIBAUTHPWD |
911 | vpopmail_home |
912 | VPOPMAILLIBS |
913 | LIBAUTHVCHKPW |
914 | authpgsqlrc |
915 | PG_CONFIG |
916 | PGSQL_LIBS |
917 | LIBAUTHPGSQL |
918 | HAVE_AUTHPGSQL_TRUE |
919 | HAVE_AUTHPGSQL_FALSE |
920 | authmysqlrc |
921 | MYSQL_CONFIG |
922 | LIBAUTHMYSQL |
923 | MYSQL_LIBS |
924 | HAVE_AUTHMYSQL_TRUE |
925 | HAVE_AUTHMYSQL_FALSE |
926 | HAVE_CUSTOM_TRUE |
927 | HAVE_CUSTOM_FALSE |
928 | LIBAUTHCUSTOM |
929 | authProg |
930 | HAVE_PIPE_TRUE |
931 | HAVE_PIPE_FALSE |
932 | LIBAUTHPIPE |
933 | CRYPTLIBS |
934 | authdaemonrc |
935 | authdaemonvar |
936 | LIBM |
937 | mailuser |
938 | mailgroup |
939 | LIBLTDL_SUBDIR |
940 | REPOSITORY |
941 | HAVE_SGML_TRUE |
942 | HAVE_SGML_FALSE |
943 | subdirs |
944 | LIBOBJS |
945 | LTLIBOBJS' |
d9898ee8 |
946 | ac_subst_files='' |
dd184caf |
947 | ac_precious_vars='build_alias |
948 | host_alias |
949 | target_alias |
950 | CC |
951 | CFLAGS |
952 | LDFLAGS |
953 | LIBS |
954 | CPPFLAGS |
955 | CPP |
956 | CXX |
957 | CXXFLAGS |
958 | CCC |
959 | CXXCPP |
960 | F77 |
961 | FFLAGS' |
962 | ac_subdirs_all='libltdl bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog' |
d9898ee8 |
963 | |
964 | # Initialize some variables set by options. |
965 | ac_init_help= |
966 | ac_init_version=false |
967 | # The variables have the same names as the options, with |
968 | # dashes changed to underlines. |
969 | cache_file=/dev/null |
970 | exec_prefix=NONE |
971 | no_create= |
972 | no_recursion= |
973 | prefix=NONE |
974 | program_prefix=NONE |
975 | program_suffix=NONE |
976 | program_transform_name=s,x,x, |
977 | silent= |
978 | site= |
979 | srcdir= |
980 | verbose= |
981 | x_includes=NONE |
982 | x_libraries=NONE |
983 | |
984 | # Installation directory options. |
985 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
986 | # and all the variables that are supposed to be based on exec_prefix |
987 | # by default will actually change. |
988 | # Use braces instead of parens because sh, perl, etc. also accept them. |
dd184caf |
989 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 |
990 | bindir='${exec_prefix}/bin' |
991 | sbindir='${exec_prefix}/sbin' |
992 | libexecdir='${exec_prefix}/libexec' |
dd184caf |
993 | datarootdir='${prefix}/share' |
994 | datadir='${datarootdir}' |
d9898ee8 |
995 | sysconfdir='${prefix}/etc' |
996 | sharedstatedir='${prefix}/com' |
997 | localstatedir='${prefix}/var' |
d9898ee8 |
998 | includedir='${prefix}/include' |
999 | oldincludedir='/usr/include' |
dd184caf |
1000 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
1001 | infodir='${datarootdir}/info' |
1002 | htmldir='${docdir}' |
1003 | dvidir='${docdir}' |
1004 | pdfdir='${docdir}' |
1005 | psdir='${docdir}' |
1006 | libdir='${exec_prefix}/lib' |
1007 | localedir='${datarootdir}/locale' |
1008 | mandir='${datarootdir}/man' |
d9898ee8 |
1009 | |
1010 | ac_prev= |
dd184caf |
1011 | ac_dashdash= |
d9898ee8 |
1012 | for ac_option |
1013 | do |
1014 | # If the previous option needs an argument, assign it. |
1015 | if test -n "$ac_prev"; then |
dd184caf |
1016 | eval $ac_prev=\$ac_option |
d9898ee8 |
1017 | ac_prev= |
1018 | continue |
1019 | fi |
1020 | |
dd184caf |
1021 | case $ac_option in |
1022 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
1023 | *) ac_optarg=yes ;; |
1024 | esac |
d9898ee8 |
1025 | |
1026 | # Accept the important Cygnus configure options, so we can diagnose typos. |
1027 | |
dd184caf |
1028 | case $ac_dashdash$ac_option in |
1029 | --) |
1030 | ac_dashdash=yes ;; |
d9898ee8 |
1031 | |
1032 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
1033 | ac_prev=bindir ;; |
1034 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
1035 | bindir=$ac_optarg ;; |
1036 | |
1037 | -build | --build | --buil | --bui | --bu) |
1038 | ac_prev=build_alias ;; |
1039 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1040 | build_alias=$ac_optarg ;; |
1041 | |
1042 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
1043 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
1044 | ac_prev=cache_file ;; |
1045 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
1046 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
1047 | cache_file=$ac_optarg ;; |
1048 | |
1049 | --config-cache | -C) |
1050 | cache_file=config.cache ;; |
1051 | |
dd184caf |
1052 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 |
1053 | ac_prev=datadir ;; |
dd184caf |
1054 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 |
1055 | datadir=$ac_optarg ;; |
1056 | |
dd184caf |
1057 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1058 | | --dataroo | --dataro | --datar) |
1059 | ac_prev=datarootdir ;; |
1060 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
1061 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
1062 | datarootdir=$ac_optarg ;; |
1063 | |
d9898ee8 |
1064 | -disable-* | --disable-*) |
1065 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
1066 | # Reject names that are not valid shell variable names. |
dd184caf |
1067 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1068 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1069 | { (exit 1); exit 1; }; } |
dd184caf |
1070 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1071 | eval enable_$ac_feature=no ;; |
1072 | |
1073 | -docdir | --docdir | --docdi | --doc | --do) |
1074 | ac_prev=docdir ;; |
1075 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
1076 | docdir=$ac_optarg ;; |
1077 | |
1078 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
1079 | ac_prev=dvidir ;; |
1080 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
1081 | dvidir=$ac_optarg ;; |
d9898ee8 |
1082 | |
1083 | -enable-* | --enable-*) |
1084 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1085 | # Reject names that are not valid shell variable names. |
dd184caf |
1086 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1087 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1088 | { (exit 1); exit 1; }; } |
dd184caf |
1089 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1090 | eval enable_$ac_feature=\$ac_optarg ;; |
d9898ee8 |
1091 | |
1092 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1093 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
1094 | | --exec | --exe | --ex) |
1095 | ac_prev=exec_prefix ;; |
1096 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
1097 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
1098 | | --exec=* | --exe=* | --ex=*) |
1099 | exec_prefix=$ac_optarg ;; |
1100 | |
1101 | -gas | --gas | --ga | --g) |
1102 | # Obsolete; use --with-gas. |
1103 | with_gas=yes ;; |
1104 | |
1105 | -help | --help | --hel | --he | -h) |
1106 | ac_init_help=long ;; |
1107 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
1108 | ac_init_help=recursive ;; |
1109 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
1110 | ac_init_help=short ;; |
1111 | |
1112 | -host | --host | --hos | --ho) |
1113 | ac_prev=host_alias ;; |
1114 | -host=* | --host=* | --hos=* | --ho=*) |
1115 | host_alias=$ac_optarg ;; |
1116 | |
dd184caf |
1117 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1118 | ac_prev=htmldir ;; |
1119 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
1120 | | --ht=*) |
1121 | htmldir=$ac_optarg ;; |
1122 | |
d9898ee8 |
1123 | -includedir | --includedir | --includedi | --included | --include \ |
1124 | | --includ | --inclu | --incl | --inc) |
1125 | ac_prev=includedir ;; |
1126 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
1127 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
1128 | includedir=$ac_optarg ;; |
1129 | |
1130 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
1131 | ac_prev=infodir ;; |
1132 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
1133 | infodir=$ac_optarg ;; |
1134 | |
1135 | -libdir | --libdir | --libdi | --libd) |
1136 | ac_prev=libdir ;; |
1137 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
1138 | libdir=$ac_optarg ;; |
1139 | |
1140 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1141 | | --libexe | --libex | --libe) |
1142 | ac_prev=libexecdir ;; |
1143 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
1144 | | --libexe=* | --libex=* | --libe=*) |
1145 | libexecdir=$ac_optarg ;; |
1146 | |
dd184caf |
1147 | -localedir | --localedir | --localedi | --localed | --locale) |
1148 | ac_prev=localedir ;; |
1149 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1150 | localedir=$ac_optarg ;; |
1151 | |
d9898ee8 |
1152 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf |
1153 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 |
1154 | ac_prev=localstatedir ;; |
1155 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
dd184caf |
1156 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 |
1157 | localstatedir=$ac_optarg ;; |
1158 | |
1159 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1160 | ac_prev=mandir ;; |
1161 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1162 | mandir=$ac_optarg ;; |
1163 | |
1164 | -nfp | --nfp | --nf) |
1165 | # Obsolete; use --without-fp. |
1166 | with_fp=no ;; |
1167 | |
1168 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1169 | | --no-cr | --no-c | -n) |
1170 | no_create=yes ;; |
1171 | |
1172 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1173 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1174 | no_recursion=yes ;; |
1175 | |
1176 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1177 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1178 | | --oldin | --oldi | --old | --ol | --o) |
1179 | ac_prev=oldincludedir ;; |
1180 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1181 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1182 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1183 | oldincludedir=$ac_optarg ;; |
1184 | |
1185 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1186 | ac_prev=prefix ;; |
1187 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1188 | prefix=$ac_optarg ;; |
1189 | |
1190 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1191 | | --program-pre | --program-pr | --program-p) |
1192 | ac_prev=program_prefix ;; |
1193 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1194 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1195 | program_prefix=$ac_optarg ;; |
1196 | |
1197 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1198 | | --program-suf | --program-su | --program-s) |
1199 | ac_prev=program_suffix ;; |
1200 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1201 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1202 | program_suffix=$ac_optarg ;; |
1203 | |
1204 | -program-transform-name | --program-transform-name \ |
1205 | | --program-transform-nam | --program-transform-na \ |
1206 | | --program-transform-n | --program-transform- \ |
1207 | | --program-transform | --program-transfor \ |
1208 | | --program-transfo | --program-transf \ |
1209 | | --program-trans | --program-tran \ |
1210 | | --progr-tra | --program-tr | --program-t) |
1211 | ac_prev=program_transform_name ;; |
1212 | -program-transform-name=* | --program-transform-name=* \ |
1213 | | --program-transform-nam=* | --program-transform-na=* \ |
1214 | | --program-transform-n=* | --program-transform-=* \ |
1215 | | --program-transform=* | --program-transfor=* \ |
1216 | | --program-transfo=* | --program-transf=* \ |
1217 | | --program-trans=* | --program-tran=* \ |
1218 | | --progr-tra=* | --program-tr=* | --program-t=*) |
1219 | program_transform_name=$ac_optarg ;; |
1220 | |
dd184caf |
1221 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1222 | ac_prev=pdfdir ;; |
1223 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1224 | pdfdir=$ac_optarg ;; |
1225 | |
1226 | -psdir | --psdir | --psdi | --psd | --ps) |
1227 | ac_prev=psdir ;; |
1228 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1229 | psdir=$ac_optarg ;; |
1230 | |
d9898ee8 |
1231 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1232 | | -silent | --silent | --silen | --sile | --sil) |
1233 | silent=yes ;; |
1234 | |
1235 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1236 | ac_prev=sbindir ;; |
1237 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1238 | | --sbi=* | --sb=*) |
1239 | sbindir=$ac_optarg ;; |
1240 | |
1241 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1242 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1243 | | --sharedst | --shareds | --shared | --share | --shar \ |
1244 | | --sha | --sh) |
1245 | ac_prev=sharedstatedir ;; |
1246 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1247 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1248 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1249 | | --sha=* | --sh=*) |
1250 | sharedstatedir=$ac_optarg ;; |
1251 | |
1252 | -site | --site | --sit) |
1253 | ac_prev=site ;; |
1254 | -site=* | --site=* | --sit=*) |
1255 | site=$ac_optarg ;; |
1256 | |
1257 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1258 | ac_prev=srcdir ;; |
1259 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1260 | srcdir=$ac_optarg ;; |
1261 | |
1262 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1263 | | --syscon | --sysco | --sysc | --sys | --sy) |
1264 | ac_prev=sysconfdir ;; |
1265 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1266 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1267 | sysconfdir=$ac_optarg ;; |
1268 | |
1269 | -target | --target | --targe | --targ | --tar | --ta | --t) |
1270 | ac_prev=target_alias ;; |
1271 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1272 | target_alias=$ac_optarg ;; |
1273 | |
1274 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1275 | verbose=yes ;; |
1276 | |
1277 | -version | --version | --versio | --versi | --vers | -V) |
1278 | ac_init_version=: ;; |
1279 | |
1280 | -with-* | --with-*) |
1281 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1282 | # Reject names that are not valid shell variable names. |
dd184caf |
1283 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1284 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1285 | { (exit 1); exit 1; }; } |
dd184caf |
1286 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1287 | eval with_$ac_package=\$ac_optarg ;; |
d9898ee8 |
1288 | |
1289 | -without-* | --without-*) |
1290 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1291 | # Reject names that are not valid shell variable names. |
dd184caf |
1292 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1293 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1294 | { (exit 1); exit 1; }; } |
dd184caf |
1295 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1296 | eval with_$ac_package=no ;; |
d9898ee8 |
1297 | |
1298 | --x) |
1299 | # Obsolete; use --with-x. |
1300 | with_x=yes ;; |
1301 | |
1302 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1303 | | --x-incl | --x-inc | --x-in | --x-i) |
1304 | ac_prev=x_includes ;; |
1305 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1306 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1307 | x_includes=$ac_optarg ;; |
1308 | |
1309 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1310 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1311 | ac_prev=x_libraries ;; |
1312 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1313 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1314 | x_libraries=$ac_optarg ;; |
1315 | |
1316 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1317 | Try \`$0 --help' for more information." >&2 |
1318 | { (exit 1); exit 1; }; } |
1319 | ;; |
1320 | |
1321 | *=*) |
1322 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1323 | # Reject names that are not valid shell variable names. |
1324 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1325 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1326 | { (exit 1); exit 1; }; } |
dd184caf |
1327 | eval $ac_envvar=\$ac_optarg |
d9898ee8 |
1328 | export $ac_envvar ;; |
1329 | |
1330 | *) |
1331 | # FIXME: should be removed in autoconf 3.0. |
1332 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1333 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1334 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1335 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1336 | ;; |
1337 | |
1338 | esac |
1339 | done |
1340 | |
1341 | if test -n "$ac_prev"; then |
1342 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1343 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
1344 | { (exit 1); exit 1; }; } |
1345 | fi |
1346 | |
dd184caf |
1347 | # Be sure to have absolute directory names. |
1348 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1349 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1350 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1351 | libdir localedir mandir |
d9898ee8 |
1352 | do |
dd184caf |
1353 | eval ac_val=\$$ac_var |
d9898ee8 |
1354 | case $ac_val in |
dd184caf |
1355 | [\\/$]* | ?:[\\/]* ) continue;; |
1356 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
d9898ee8 |
1357 | esac |
dd184caf |
1358 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1359 | { (exit 1); exit 1; }; } |
d9898ee8 |
1360 | done |
1361 | |
1362 | # There might be people who depend on the old broken behavior: `$host' |
1363 | # used to hold the argument of --host etc. |
1364 | # FIXME: To remove some day. |
1365 | build=$build_alias |
1366 | host=$host_alias |
1367 | target=$target_alias |
1368 | |
1369 | # FIXME: To remove some day. |
1370 | if test "x$host_alias" != x; then |
1371 | if test "x$build_alias" = x; then |
1372 | cross_compiling=maybe |
1373 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1374 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1375 | elif test "x$build_alias" != "x$host_alias"; then |
1376 | cross_compiling=yes |
1377 | fi |
1378 | fi |
1379 | |
1380 | ac_tool_prefix= |
1381 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1382 | |
1383 | test "$silent" = yes && exec 6>/dev/null |
1384 | |
1385 | |
dd184caf |
1386 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1387 | ac_ls_di=`ls -di .` && |
1388 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1389 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
1390 | { (exit 1); exit 1; }; } |
1391 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1392 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
1393 | { (exit 1); exit 1; }; } |
1394 | |
1395 | |
d9898ee8 |
1396 | # Find the source files, if location was not specified. |
1397 | if test -z "$srcdir"; then |
1398 | ac_srcdir_defaulted=yes |
dd184caf |
1399 | # Try the directory containing this script, then the parent directory. |
1400 | ac_confdir=`$as_dirname -- "$0" || |
d9898ee8 |
1401 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1402 | X"$0" : 'X\(//\)[^/]' \| \ |
1403 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
1404 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
1405 | echo X"$0" | |
dd184caf |
1406 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1407 | s//\1/ |
1408 | q |
1409 | } |
1410 | /^X\(\/\/\)[^/].*/{ |
1411 | s//\1/ |
1412 | q |
1413 | } |
1414 | /^X\(\/\/\)$/{ |
1415 | s//\1/ |
1416 | q |
1417 | } |
1418 | /^X\(\/\).*/{ |
1419 | s//\1/ |
1420 | q |
1421 | } |
1422 | s/.*/./; q'` |
d9898ee8 |
1423 | srcdir=$ac_confdir |
dd184caf |
1424 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 |
1425 | srcdir=.. |
1426 | fi |
1427 | else |
1428 | ac_srcdir_defaulted=no |
1429 | fi |
dd184caf |
1430 | if test ! -r "$srcdir/$ac_unique_file"; then |
1431 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1432 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
d9898ee8 |
1433 | { (exit 1); exit 1; }; } |
d9898ee8 |
1434 | fi |
dd184caf |
1435 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1436 | ac_abs_confdir=`( |
1437 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
d9898ee8 |
1438 | { (exit 1); exit 1; }; } |
dd184caf |
1439 | pwd)` |
1440 | # When building in place, set srcdir=. |
1441 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1442 | srcdir=. |
1443 | fi |
1444 | # Remove unnecessary trailing slashes from srcdir. |
1445 | # Double slashes in file names in object file debugging info |
1446 | # mess up M-x gdb in Emacs. |
1447 | case $srcdir in |
1448 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1449 | esac |
1450 | for ac_var in $ac_precious_vars; do |
1451 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1452 | eval ac_env_${ac_var}_value=\$${ac_var} |
1453 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1454 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1455 | done |
d9898ee8 |
1456 | |
1457 | # |
1458 | # Report the --help message. |
1459 | # |
1460 | if test "$ac_init_help" = "long"; then |
1461 | # Omit some internal or obsolete options to make the list less imposing. |
1462 | # This message is too long to be a string in the A/UX 3.1 sh. |
1463 | cat <<_ACEOF |
dd184caf |
1464 | \`configure' configures courier-authlib 0.60.1 to adapt to many kinds of systems. |
d9898ee8 |
1465 | |
1466 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1467 | |
1468 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1469 | VAR=VALUE. See below for descriptions of some of the useful variables. |
1470 | |
1471 | Defaults for the options are specified in brackets. |
1472 | |
1473 | Configuration: |
1474 | -h, --help display this help and exit |
1475 | --help=short display options specific to this package |
1476 | --help=recursive display the short help of all the included packages |
1477 | -V, --version display version information and exit |
1478 | -q, --quiet, --silent do not print \`checking...' messages |
1479 | --cache-file=FILE cache test results in FILE [disabled] |
1480 | -C, --config-cache alias for \`--cache-file=config.cache' |
1481 | -n, --no-create do not create output files |
1482 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1483 | |
d9898ee8 |
1484 | Installation directories: |
1485 | --prefix=PREFIX install architecture-independent files in PREFIX |
1486 | [$ac_default_prefix] |
1487 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1488 | [PREFIX] |
1489 | |
1490 | By default, \`make install' will install all the files in |
1491 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1492 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1493 | for instance \`--prefix=\$HOME'. |
1494 | |
1495 | For better control, use the options below. |
1496 | |
1497 | Fine tuning of the installation directories: |
1498 | --bindir=DIR user executables [EPREFIX/bin] |
1499 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1500 | --libexecdir=DIR program executables [EPREFIX/libexec] |
d9898ee8 |
1501 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1502 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1503 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1504 | --libdir=DIR object code libraries [EPREFIX/lib] |
1505 | --includedir=DIR C header files [PREFIX/include] |
1506 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
dd184caf |
1507 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1508 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1509 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1510 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1511 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1512 | --docdir=DIR documentation root [DATAROOTDIR/doc/courier-authlib] |
1513 | --htmldir=DIR html documentation [DOCDIR] |
1514 | --dvidir=DIR dvi documentation [DOCDIR] |
1515 | --pdfdir=DIR pdf documentation [DOCDIR] |
1516 | --psdir=DIR ps documentation [DOCDIR] |
d9898ee8 |
1517 | _ACEOF |
1518 | |
1519 | cat <<\_ACEOF |
1520 | |
1521 | Program names: |
1522 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1523 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1524 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1525 | |
1526 | System types: |
1527 | --build=BUILD configure for building on BUILD [guessed] |
1528 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1529 | _ACEOF |
1530 | fi |
1531 | |
1532 | if test -n "$ac_init_help"; then |
1533 | case $ac_init_help in |
dd184caf |
1534 | short | recursive ) echo "Configuration of courier-authlib 0.60.1:";; |
d9898ee8 |
1535 | esac |
1536 | cat <<\_ACEOF |
1537 | |
1538 | Optional Features: |
1539 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1540 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1541 | --disable-dependency-tracking speeds up one-time build |
1542 | --enable-dependency-tracking do not reject slow dependency extractors |
dd184caf |
1543 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1544 | --enable-static[=PKGS] build static libraries [default=yes] |
d9898ee8 |
1545 | --enable-fast-install[=PKGS] |
1546 | optimize for fast installation [default=yes] |
1547 | --disable-libtool-lock avoid locking (might break parallel builds) |
1548 | |
1549 | Optional Packages: |
1550 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1551 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1552 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1553 | --with-pic try to use only PIC/non-PIC objects [default=use |
1554 | both] |
dd184caf |
1555 | --with-tags[=TAGS] include additional configurations [automatic] |
d9898ee8 |
1556 | |
1557 | --with-pkgconfdir=d Install config files in directory |
1558 | --with-db=gdbm Use the GDBM library. |
1559 | --with-db=db Use the libdb.a library. |
1560 | --without-authuserdb Do not include the authuserdb module |
1561 | |
1562 | --without-authpam Do not include the authpam module |
1563 | --with-authpam-libraries="libs" Link 'libs' with authpam, this may be |
1564 | required for FreeBSD 3.3 |
1565 | --without-authldap Do not include the authldap module |
1566 | --with-authldaprc=filename Expect to find authldaprc here |
1567 | --without-authpwd Do not include the authpwd module |
1568 | --without-authshadow Do not include the authshadow module |
1569 | --without-authvchkpw Do not include the authvchkpw module |
1570 | --with-authpgsqlrc=filename Expect to find authpgsql here |
1571 | --without-authpgsql Do not include the authpgsql module |
1572 | --with-pgsql-libs=DIR Look for pgsql libs in this dir |
1573 | --with-pgsql-includes=DIR Look for pgsql includes in this dir |
1574 | --with-authmysqlrc=filename Expect to find authmysql here |
1575 | --without-authmysql Do not include the authmysql module |
1576 | --with-mysql-libs=DIR Look for mysql libs in this dir |
1577 | --with-mysql-includes=DIR Look for mysql includes in this dir |
1578 | --without-authcustom Do not include the authcustom module |
1579 | --with-pipeprog=filename Expect to find the pipe-prog here |
1580 | --without-authpipe Do not include the authpipe module |
1581 | --with-authdaemonrc=filename Expect to find authdaemonrc here |
1582 | --with-authdaemonvar=directory Directory where authdaemon.pid and |
1583 | the listening socket is created |
1584 | --with-mailuser=user Specify mail user name (defaults to |
1585 | courier, daemon, admin, bin, or root) |
1586 | --with-mailgroup=group Specify mail group name (defaults to courier, |
1587 | daemon, sys, adm, or root) |
1588 | --without-stdheaderdir Header files will be installed into a directory |
1589 | not in the compiler's default search path. |
1590 | |
1591 | Some influential environment variables: |
1592 | CC C compiler command |
1593 | CFLAGS C compiler flags |
1594 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1595 | nonstandard directory <lib dir> |
dd184caf |
1596 | LIBS libraries to pass to the linker, e.g. -l<library> |
1597 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1598 | you have headers in a nonstandard directory <include dir> |
d9898ee8 |
1599 | CPP C preprocessor |
1600 | CXX C++ compiler command |
1601 | CXXFLAGS C++ compiler flags |
1602 | CXXCPP C++ preprocessor |
1603 | F77 Fortran 77 compiler command |
1604 | FFLAGS Fortran 77 compiler flags |
1605 | |
1606 | Use these variables to override the choices made by `configure' or to help |
1607 | it to find libraries and programs with nonstandard names/locations. |
1608 | |
1609 | Report bugs to <courier-users@lists.sourceforge.net>. |
1610 | _ACEOF |
dd184caf |
1611 | ac_status=$? |
d9898ee8 |
1612 | fi |
1613 | |
1614 | if test "$ac_init_help" = "recursive"; then |
1615 | # If there are subdirs, report their specific --help. |
d9898ee8 |
1616 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
dd184caf |
1617 | test -d "$ac_dir" || continue |
d9898ee8 |
1618 | ac_builddir=. |
1619 | |
dd184caf |
1620 | case "$ac_dir" in |
1621 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1622 | *) |
d9898ee8 |
1623 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
dd184caf |
1624 | # A ".." for each directory in $ac_dir_suffix. |
1625 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1626 | case $ac_top_builddir_sub in |
1627 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1628 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1629 | esac ;; |
1630 | esac |
1631 | ac_abs_top_builddir=$ac_pwd |
1632 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1633 | # for backward compatibility: |
1634 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
1635 | |
1636 | case $srcdir in |
dd184caf |
1637 | .) # We are building in place. |
d9898ee8 |
1638 | ac_srcdir=. |
dd184caf |
1639 | ac_top_srcdir=$ac_top_builddir_sub |
1640 | ac_abs_top_srcdir=$ac_pwd ;; |
1641 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
1642 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf |
1643 | ac_top_srcdir=$srcdir |
1644 | ac_abs_top_srcdir=$srcdir ;; |
1645 | *) # Relative name. |
1646 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1647 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
1648 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
1649 | esac |
dd184caf |
1650 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1651 | |
1652 | cd "$ac_dir" || { ac_status=$?; continue; } |
1653 | # Check for guested configure. |
1654 | if test -f "$ac_srcdir/configure.gnu"; then |
1655 | echo && |
1656 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1657 | elif test -f "$ac_srcdir/configure"; then |
1658 | echo && |
1659 | $SHELL "$ac_srcdir/configure" --help=recursive |
d9898ee8 |
1660 | else |
1661 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dd184caf |
1662 | fi || ac_status=$? |
1663 | cd "$ac_pwd" || { ac_status=$?; break; } |
d9898ee8 |
1664 | done |
1665 | fi |
1666 | |
dd184caf |
1667 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 |
1668 | if $ac_init_version; then |
1669 | cat <<\_ACEOF |
dd184caf |
1670 | courier-authlib configure 0.60.1 |
1671 | generated by GNU Autoconf 2.61 |
d9898ee8 |
1672 | |
dd184caf |
1673 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1674 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
d9898ee8 |
1675 | This configure script is free software; the Free Software Foundation |
1676 | gives unlimited permission to copy, distribute and modify it. |
1677 | _ACEOF |
dd184caf |
1678 | exit |
d9898ee8 |
1679 | fi |
dd184caf |
1680 | cat >config.log <<_ACEOF |
d9898ee8 |
1681 | This file contains any messages produced by compilers while |
1682 | running configure, to aid debugging if configure makes a mistake. |
1683 | |
dd184caf |
1684 | It was created by courier-authlib $as_me 0.60.1, which was |
1685 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
1686 | |
1687 | $ $0 $@ |
1688 | |
1689 | _ACEOF |
dd184caf |
1690 | exec 5>>config.log |
d9898ee8 |
1691 | { |
1692 | cat <<_ASUNAME |
1693 | ## --------- ## |
1694 | ## Platform. ## |
1695 | ## --------- ## |
1696 | |
1697 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1698 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1699 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1700 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1701 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1702 | |
1703 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1704 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1705 | |
1706 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1707 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1708 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
dd184caf |
1709 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 |
1710 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1711 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1712 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1713 | |
1714 | _ASUNAME |
1715 | |
1716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1717 | for as_dir in $PATH |
1718 | do |
1719 | IFS=$as_save_IFS |
1720 | test -z "$as_dir" && as_dir=. |
1721 | echo "PATH: $as_dir" |
1722 | done |
dd184caf |
1723 | IFS=$as_save_IFS |
d9898ee8 |
1724 | |
1725 | } >&5 |
1726 | |
1727 | cat >&5 <<_ACEOF |
1728 | |
1729 | |
1730 | ## ----------- ## |
1731 | ## Core tests. ## |
1732 | ## ----------- ## |
1733 | |
1734 | _ACEOF |
1735 | |
1736 | |
1737 | # Keep a trace of the command line. |
1738 | # Strip out --no-create and --no-recursion so they do not pile up. |
1739 | # Strip out --silent because we don't want to record it for future runs. |
1740 | # Also quote any args containing shell meta-characters. |
1741 | # Make two passes to allow for proper duplicate-argument suppression. |
1742 | ac_configure_args= |
1743 | ac_configure_args0= |
1744 | ac_configure_args1= |
d9898ee8 |
1745 | ac_must_keep_next=false |
1746 | for ac_pass in 1 2 |
1747 | do |
1748 | for ac_arg |
1749 | do |
1750 | case $ac_arg in |
1751 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1752 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1753 | | -silent | --silent | --silen | --sile | --sil) |
1754 | continue ;; |
dd184caf |
1755 | *\'*) |
d9898ee8 |
1756 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1757 | esac |
1758 | case $ac_pass in |
1759 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1760 | 2) |
1761 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1762 | if test $ac_must_keep_next = true; then |
1763 | ac_must_keep_next=false # Got value, back to normal. |
1764 | else |
1765 | case $ac_arg in |
1766 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1767 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1768 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1769 | | -with-* | --with-* | -without-* | --without-* | --x) |
1770 | case "$ac_configure_args0 " in |
1771 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1772 | esac |
1773 | ;; |
1774 | -* ) ac_must_keep_next=true ;; |
1775 | esac |
1776 | fi |
dd184caf |
1777 | ac_configure_args="$ac_configure_args '$ac_arg'" |
d9898ee8 |
1778 | ;; |
1779 | esac |
1780 | done |
1781 | done |
1782 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1783 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1784 | |
1785 | # When interrupted or exit'd, cleanup temporary files, and complete |
1786 | # config.log. We remove comments because anyway the quotes in there |
1787 | # would cause problems or look ugly. |
dd184caf |
1788 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1789 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
d9898ee8 |
1790 | trap 'exit_status=$? |
1791 | # Save into config.log some information that might help in debugging. |
1792 | { |
1793 | echo |
1794 | |
1795 | cat <<\_ASBOX |
1796 | ## ---------------- ## |
1797 | ## Cache variables. ## |
1798 | ## ---------------- ## |
1799 | _ASBOX |
1800 | echo |
1801 | # The following way of writing the cache mishandles newlines in values, |
dd184caf |
1802 | ( |
1803 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1804 | eval ac_val=\$$ac_var |
1805 | case $ac_val in #( |
1806 | *${as_nl}*) |
1807 | case $ac_var in #( |
1808 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1809 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
1810 | esac |
1811 | case $ac_var in #( |
1812 | _ | IFS | as_nl) ;; #( |
1813 | *) $as_unset $ac_var ;; |
1814 | esac ;; |
1815 | esac |
1816 | done |
d9898ee8 |
1817 | (set) 2>&1 | |
dd184caf |
1818 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1819 | *${as_nl}ac_space=\ *) |
d9898ee8 |
1820 | sed -n \ |
dd184caf |
1821 | "s/'\''/'\''\\\\'\'''\''/g; |
1822 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1823 | ;; #( |
d9898ee8 |
1824 | *) |
dd184caf |
1825 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
1826 | ;; |
dd184caf |
1827 | esac | |
1828 | sort |
1829 | ) |
d9898ee8 |
1830 | echo |
1831 | |
1832 | cat <<\_ASBOX |
1833 | ## ----------------- ## |
1834 | ## Output variables. ## |
1835 | ## ----------------- ## |
1836 | _ASBOX |
1837 | echo |
1838 | for ac_var in $ac_subst_vars |
1839 | do |
dd184caf |
1840 | eval ac_val=\$$ac_var |
1841 | case $ac_val in |
1842 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1843 | esac |
1844 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1845 | done | sort |
1846 | echo |
1847 | |
1848 | if test -n "$ac_subst_files"; then |
1849 | cat <<\_ASBOX |
dd184caf |
1850 | ## ------------------- ## |
1851 | ## File substitutions. ## |
1852 | ## ------------------- ## |
d9898ee8 |
1853 | _ASBOX |
1854 | echo |
1855 | for ac_var in $ac_subst_files |
1856 | do |
dd184caf |
1857 | eval ac_val=\$$ac_var |
1858 | case $ac_val in |
1859 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1860 | esac |
1861 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1862 | done | sort |
1863 | echo |
1864 | fi |
1865 | |
1866 | if test -s confdefs.h; then |
1867 | cat <<\_ASBOX |
1868 | ## ----------- ## |
1869 | ## confdefs.h. ## |
1870 | ## ----------- ## |
1871 | _ASBOX |
1872 | echo |
dd184caf |
1873 | cat confdefs.h |
d9898ee8 |
1874 | echo |
1875 | fi |
1876 | test "$ac_signal" != 0 && |
1877 | echo "$as_me: caught signal $ac_signal" |
1878 | echo "$as_me: exit $exit_status" |
1879 | } >&5 |
dd184caf |
1880 | rm -f core *.core core.conftest.* && |
1881 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
d9898ee8 |
1882 | exit $exit_status |
dd184caf |
1883 | ' 0 |
d9898ee8 |
1884 | for ac_signal in 1 2 13 15; do |
1885 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1886 | done |
1887 | ac_signal=0 |
1888 | |
1889 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
dd184caf |
1890 | rm -f -r conftest* confdefs.h |
d9898ee8 |
1891 | |
1892 | # Predefined preprocessor variables. |
1893 | |
1894 | cat >>confdefs.h <<_ACEOF |
1895 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1896 | _ACEOF |
1897 | |
1898 | |
1899 | cat >>confdefs.h <<_ACEOF |
1900 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1901 | _ACEOF |
1902 | |
1903 | |
1904 | cat >>confdefs.h <<_ACEOF |
1905 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1906 | _ACEOF |
1907 | |
1908 | |
1909 | cat >>confdefs.h <<_ACEOF |
1910 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1911 | _ACEOF |
1912 | |
1913 | |
1914 | cat >>confdefs.h <<_ACEOF |
1915 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1916 | _ACEOF |
1917 | |
1918 | |
1919 | # Let the site file select an alternate cache file if it wants to. |
1920 | # Prefer explicitly selected file to automatically selected ones. |
dd184caf |
1921 | if test -n "$CONFIG_SITE"; then |
1922 | set x "$CONFIG_SITE" |
1923 | elif test "x$prefix" != xNONE; then |
1924 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1925 | else |
1926 | set x "$ac_default_prefix/share/config.site" \ |
1927 | "$ac_default_prefix/etc/config.site" |
d9898ee8 |
1928 | fi |
dd184caf |
1929 | shift |
1930 | for ac_site_file |
1931 | do |
d9898ee8 |
1932 | if test -r "$ac_site_file"; then |
1933 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1934 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1935 | sed 's/^/| /' "$ac_site_file" >&5 |
1936 | . "$ac_site_file" |
1937 | fi |
1938 | done |
1939 | |
1940 | if test -r "$cache_file"; then |
1941 | # Some versions of bash will fail to source /dev/null (special |
1942 | # files actually), so we avoid doing that. |
1943 | if test -f "$cache_file"; then |
1944 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1945 | echo "$as_me: loading cache $cache_file" >&6;} |
1946 | case $cache_file in |
dd184caf |
1947 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1948 | *) . "./$cache_file";; |
d9898ee8 |
1949 | esac |
1950 | fi |
1951 | else |
1952 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1953 | echo "$as_me: creating cache $cache_file" >&6;} |
1954 | >$cache_file |
1955 | fi |
1956 | |
1957 | # Check that the precious variables saved in the cache have kept the same |
1958 | # value. |
1959 | ac_cache_corrupted=false |
dd184caf |
1960 | for ac_var in $ac_precious_vars; do |
d9898ee8 |
1961 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1962 | eval ac_new_set=\$ac_env_${ac_var}_set |
dd184caf |
1963 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1964 | eval ac_new_val=\$ac_env_${ac_var}_value |
d9898ee8 |
1965 | case $ac_old_set,$ac_new_set in |
1966 | set,) |
1967 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1968 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1969 | ac_cache_corrupted=: ;; |
1970 | ,set) |
1971 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1972 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1973 | ac_cache_corrupted=: ;; |
1974 | ,);; |
1975 | *) |
1976 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1977 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1978 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1979 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1980 | echo "$as_me: former value: $ac_old_val" >&2;} |
1981 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1982 | echo "$as_me: current value: $ac_new_val" >&2;} |
1983 | ac_cache_corrupted=: |
1984 | fi;; |
1985 | esac |
1986 | # Pass precious variables to config.status. |
1987 | if test "$ac_new_set" = set; then |
1988 | case $ac_new_val in |
dd184caf |
1989 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 |
1990 | *) ac_arg=$ac_var=$ac_new_val ;; |
1991 | esac |
1992 | case " $ac_configure_args " in |
1993 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1994 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1995 | esac |
1996 | fi |
1997 | done |
1998 | if $ac_cache_corrupted; then |
1999 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
2000 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2001 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
2002 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
2003 | { (exit 1); exit 1; }; } |
2004 | fi |
2005 | |
d9898ee8 |
2006 | |
2007 | |
2008 | |
2009 | |
2010 | |
2011 | |
2012 | |
2013 | |
2014 | |
2015 | |
2016 | |
2017 | |
2018 | |
2019 | |
2020 | |
2021 | |
2022 | |
2023 | |
2024 | |
2025 | |
2026 | |
2027 | |
2028 | |
2029 | |
dd184caf |
2030 | ac_ext=c |
2031 | ac_cpp='$CPP $CPPFLAGS' |
2032 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2033 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2034 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
d9898ee8 |
2035 | |
2036 | |
2037 | |
2038 | |
dd184caf |
2039 | ac_config_headers="$ac_config_headers courier_auth_config.h" |
d9898ee8 |
2040 | |
d9898ee8 |
2041 | |
dd184caf |
2042 | am__api_version='1.10' |
d9898ee8 |
2043 | |
d9898ee8 |
2044 | ac_aux_dir= |
dd184caf |
2045 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2046 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 |
2047 | ac_aux_dir=$ac_dir |
2048 | ac_install_sh="$ac_aux_dir/install-sh -c" |
2049 | break |
dd184caf |
2050 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 |
2051 | ac_aux_dir=$ac_dir |
2052 | ac_install_sh="$ac_aux_dir/install.sh -c" |
2053 | break |
dd184caf |
2054 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 |
2055 | ac_aux_dir=$ac_dir |
2056 | ac_install_sh="$ac_aux_dir/shtool install -c" |
2057 | break |
2058 | fi |
2059 | done |
2060 | if test -z "$ac_aux_dir"; then |
dd184caf |
2061 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
2062 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
d9898ee8 |
2063 | { (exit 1); exit 1; }; } |
2064 | fi |
dd184caf |
2065 | |
2066 | # These three variables are undocumented and unsupported, |
2067 | # and are intended to be withdrawn in a future Autoconf release. |
2068 | # They can cause serious problems if a builder's source tree is in a directory |
2069 | # whose full name contains unusual characters. |
2070 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
2071 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
2072 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
2073 | |
d9898ee8 |
2074 | |
2075 | # Find a good install program. We prefer a C program (faster), |
2076 | # so one script is as good as another. But avoid the broken or |
2077 | # incompatible versions: |
2078 | # SysV /etc/install, /usr/sbin/install |
2079 | # SunOS /usr/etc/install |
2080 | # IRIX /sbin/install |
2081 | # AIX /bin/install |
2082 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
2083 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2084 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2085 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2086 | # OS/2's system install, which has a completely different semantic |
2087 | # ./install, which can be erroneously created by make from ./install.sh. |
dd184caf |
2088 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2089 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
d9898ee8 |
2090 | if test -z "$INSTALL"; then |
2091 | if test "${ac_cv_path_install+set}" = set; then |
2092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2093 | else |
2094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2095 | for as_dir in $PATH |
2096 | do |
2097 | IFS=$as_save_IFS |
2098 | test -z "$as_dir" && as_dir=. |
2099 | # Account for people who put trailing slashes in PATH elements. |
2100 | case $as_dir/ in |
2101 | ./ | .// | /cC/* | \ |
2102 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2103 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2104 | /usr/ucb/* ) ;; |
2105 | *) |
2106 | # OSF1 and SCO ODT 3.0 have their own names for install. |
2107 | # Don't use installbsd from OSF since it installs stuff as root |
2108 | # by default. |
2109 | for ac_prog in ginstall scoinst install; do |
2110 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2111 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
2112 | if test $ac_prog = install && |
2113 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2114 | # AIX install. It has an incompatible calling convention. |
2115 | : |
2116 | elif test $ac_prog = install && |
2117 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2118 | # program-specific install script used by HP pwplus--don't use. |
2119 | : |
2120 | else |
2121 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2122 | break 3 |
2123 | fi |
2124 | fi |
2125 | done |
2126 | done |
2127 | ;; |
2128 | esac |
2129 | done |
dd184caf |
2130 | IFS=$as_save_IFS |
d9898ee8 |
2131 | |
2132 | |
2133 | fi |
2134 | if test "${ac_cv_path_install+set}" = set; then |
2135 | INSTALL=$ac_cv_path_install |
2136 | else |
dd184caf |
2137 | # As a last resort, use the slow shell script. Don't cache a |
2138 | # value for INSTALL within a source directory, because that will |
d9898ee8 |
2139 | # break other packages using the cache if that directory is |
dd184caf |
2140 | # removed, or if the value is a relative name. |
d9898ee8 |
2141 | INSTALL=$ac_install_sh |
2142 | fi |
2143 | fi |
dd184caf |
2144 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2145 | echo "${ECHO_T}$INSTALL" >&6; } |
d9898ee8 |
2146 | |
2147 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2148 | # It thinks the first close brace ends the variable substitution. |
2149 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2150 | |
2151 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2152 | |
2153 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2154 | |
dd184caf |
2155 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2156 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
d9898ee8 |
2157 | # Just in case |
2158 | sleep 1 |
2159 | echo timestamp > conftest.file |
2160 | # Do `set' in a subshell so we don't clobber the current shell's |
2161 | # arguments. Must try -L first in case configure is actually a |
2162 | # symlink; some systems play weird games with the mod time of symlinks |
2163 | # (eg FreeBSD returns the mod time of the symlink's containing |
2164 | # directory). |
2165 | if ( |
2166 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
2167 | if test "$*" = "X"; then |
2168 | # -L didn't work. |
2169 | set X `ls -t $srcdir/configure conftest.file` |
2170 | fi |
2171 | rm -f conftest.file |
2172 | if test "$*" != "X $srcdir/configure conftest.file" \ |
2173 | && test "$*" != "X conftest.file $srcdir/configure"; then |
2174 | |
2175 | # If neither matched, then we have a broken ls. This can happen |
2176 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
2177 | # broken ls alias from the environment. This has actually |
2178 | # happened. Such a system could not be considered "sane". |
2179 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2180 | alias in your environment" >&5 |
2181 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
2182 | alias in your environment" >&2;} |
2183 | { (exit 1); exit 1; }; } |
2184 | fi |
2185 | |
2186 | test "$2" = conftest.file |
2187 | ) |
2188 | then |
2189 | # Ok. |
2190 | : |
2191 | else |
2192 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2193 | Check your system clock" >&5 |
2194 | echo "$as_me: error: newly created file is older than distributed files! |
2195 | Check your system clock" >&2;} |
2196 | { (exit 1); exit 1; }; } |
2197 | fi |
dd184caf |
2198 | { echo "$as_me:$LINENO: result: yes" >&5 |
2199 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2200 | test "$program_prefix" != NONE && |
dd184caf |
2201 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 |
2202 | # Use a double $ so make ignores it. |
2203 | test "$program_suffix" != NONE && |
dd184caf |
2204 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
d9898ee8 |
2205 | # Double any \ or $. echo might interpret backslashes. |
2206 | # By default was `s,x,x', remove it if useless. |
2207 | cat <<\_ACEOF >conftest.sed |
2208 | s/[\\$]/&&/g;s/;s,x,x,$// |
2209 | _ACEOF |
2210 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
dd184caf |
2211 | rm -f conftest.sed |
d9898ee8 |
2212 | |
2213 | # expand $ac_aux_dir to an absolute path |
2214 | am_aux_dir=`cd $ac_aux_dir && pwd` |
2215 | |
2216 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
2217 | # Use eval to expand $SHELL |
2218 | if eval "$MISSING --run true"; then |
2219 | am_missing_run="$MISSING --run " |
2220 | else |
2221 | am_missing_run= |
2222 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2223 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2224 | fi |
2225 | |
dd184caf |
2226 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2227 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } |
2228 | if test -z "$MKDIR_P"; then |
2229 | if test "${ac_cv_path_mkdir+set}" = set; then |
2230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2231 | else |
2232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2233 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2234 | do |
2235 | IFS=$as_save_IFS |
2236 | test -z "$as_dir" && as_dir=. |
2237 | for ac_prog in mkdir gmkdir; do |
2238 | for ac_exec_ext in '' $ac_executable_extensions; do |
2239 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
2240 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2241 | 'mkdir (GNU coreutils) '* | \ |
2242 | 'mkdir (coreutils) '* | \ |
2243 | 'mkdir (fileutils) '4.1*) |
2244 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
2245 | break 3;; |
2246 | esac |
2247 | done |
2248 | done |
2249 | done |
2250 | IFS=$as_save_IFS |
2251 | |
2252 | fi |
2253 | |
2254 | if test "${ac_cv_path_mkdir+set}" = set; then |
2255 | MKDIR_P="$ac_cv_path_mkdir -p" |
d9898ee8 |
2256 | else |
dd184caf |
2257 | # As a last resort, use the slow shell script. Don't cache a |
2258 | # value for MKDIR_P within a source directory, because that will |
2259 | # break other packages using the cache if that directory is |
2260 | # removed, or if the value is a relative name. |
2261 | test -d ./--version && rmdir ./--version |
2262 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 |
2263 | fi |
2264 | fi |
dd184caf |
2265 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2266 | echo "${ECHO_T}$MKDIR_P" >&6; } |
2267 | |
2268 | mkdir_p="$MKDIR_P" |
2269 | case $mkdir_p in |
2270 | [\\/$]* | ?:[\\/]*) ;; |
2271 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
2272 | esac |
d9898ee8 |
2273 | |
2274 | for ac_prog in gawk mawk nawk awk |
2275 | do |
2276 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2277 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2278 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2279 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2280 | if test "${ac_cv_prog_AWK+set}" = set; then |
2281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2282 | else |
2283 | if test -n "$AWK"; then |
2284 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2285 | else |
2286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2287 | for as_dir in $PATH |
2288 | do |
2289 | IFS=$as_save_IFS |
2290 | test -z "$as_dir" && as_dir=. |
2291 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2292 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2293 | ac_cv_prog_AWK="$ac_prog" |
2294 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2295 | break 2 |
2296 | fi |
2297 | done |
2298 | done |
dd184caf |
2299 | IFS=$as_save_IFS |
d9898ee8 |
2300 | |
2301 | fi |
2302 | fi |
2303 | AWK=$ac_cv_prog_AWK |
2304 | if test -n "$AWK"; then |
dd184caf |
2305 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2306 | echo "${ECHO_T}$AWK" >&6; } |
d9898ee8 |
2307 | else |
dd184caf |
2308 | { echo "$as_me:$LINENO: result: no" >&5 |
2309 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2310 | fi |
2311 | |
dd184caf |
2312 | |
d9898ee8 |
2313 | test -n "$AWK" && break |
2314 | done |
2315 | |
dd184caf |
2316 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2317 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
2318 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2319 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
2320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2321 | else |
2322 | cat >conftest.make <<\_ACEOF |
dd184caf |
2323 | SHELL = /bin/sh |
d9898ee8 |
2324 | all: |
dd184caf |
2325 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 |
2326 | _ACEOF |
2327 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
dd184caf |
2328 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2329 | *@@@%%%=?*=@@@%%%*) |
2330 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
2331 | *) |
2332 | eval ac_cv_prog_make_${ac_make}_set=no;; |
2333 | esac |
d9898ee8 |
2334 | rm -f conftest.make |
2335 | fi |
dd184caf |
2336 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2337 | { echo "$as_me:$LINENO: result: yes" >&5 |
2338 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2339 | SET_MAKE= |
2340 | else |
dd184caf |
2341 | { echo "$as_me:$LINENO: result: no" >&5 |
2342 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2343 | SET_MAKE="MAKE=${MAKE-make}" |
2344 | fi |
2345 | |
2346 | rm -rf .tst 2>/dev/null |
2347 | mkdir .tst 2>/dev/null |
2348 | if test -d .tst; then |
2349 | am__leading_dot=. |
2350 | else |
2351 | am__leading_dot=_ |
2352 | fi |
2353 | rmdir .tst 2>/dev/null |
2354 | |
dd184caf |
2355 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2356 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2357 | # is not polluted with repeated "-I." |
2358 | am__isrc=' -I$(srcdir)' |
2359 | # test to see if srcdir already configured |
2360 | if test -f $srcdir/config.status; then |
2361 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
d9898ee8 |
2362 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
2363 | { (exit 1); exit 1; }; } |
dd184caf |
2364 | fi |
d9898ee8 |
2365 | fi |
2366 | |
2367 | # test whether we have cygpath |
2368 | if test -z "$CYGPATH_W"; then |
2369 | if (cygpath --version) >/dev/null 2>/dev/null; then |
2370 | CYGPATH_W='cygpath -w' |
2371 | else |
2372 | CYGPATH_W=echo |
2373 | fi |
2374 | fi |
2375 | |
2376 | |
2377 | # Define the identity of the package. |
2378 | PACKAGE='courier-authlib' |
dd184caf |
2379 | VERSION='0.60.1' |
d9898ee8 |
2380 | |
2381 | |
2382 | cat >>confdefs.h <<_ACEOF |
2383 | #define PACKAGE "$PACKAGE" |
2384 | _ACEOF |
2385 | |
2386 | |
2387 | cat >>confdefs.h <<_ACEOF |
2388 | #define VERSION "$VERSION" |
2389 | _ACEOF |
2390 | |
2391 | # Some tools Automake needs. |
2392 | |
2393 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2394 | |
2395 | |
2396 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2397 | |
2398 | |
2399 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2400 | |
2401 | |
2402 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2403 | |
2404 | |
2405 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2406 | |
dd184caf |
2407 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
d9898ee8 |
2408 | |
2409 | # Installed binaries are usually stripped using `strip' when the user |
2410 | # run `make install-strip'. However `strip' might not be the right |
2411 | # tool to use in cross-compilation environments, therefore Automake |
2412 | # will honor the `STRIP' environment variable to overrule this program. |
2413 | if test "$cross_compiling" != no; then |
2414 | if test -n "$ac_tool_prefix"; then |
2415 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2416 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
dd184caf |
2417 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2418 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2419 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2421 | else |
2422 | if test -n "$STRIP"; then |
2423 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2424 | else |
2425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2426 | for as_dir in $PATH |
2427 | do |
2428 | IFS=$as_save_IFS |
2429 | test -z "$as_dir" && as_dir=. |
2430 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2431 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2432 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2433 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2434 | break 2 |
2435 | fi |
2436 | done |
2437 | done |
dd184caf |
2438 | IFS=$as_save_IFS |
d9898ee8 |
2439 | |
2440 | fi |
2441 | fi |
2442 | STRIP=$ac_cv_prog_STRIP |
2443 | if test -n "$STRIP"; then |
dd184caf |
2444 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2445 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
2446 | else |
dd184caf |
2447 | { echo "$as_me:$LINENO: result: no" >&5 |
2448 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2449 | fi |
2450 | |
dd184caf |
2451 | |
d9898ee8 |
2452 | fi |
2453 | if test -z "$ac_cv_prog_STRIP"; then |
2454 | ac_ct_STRIP=$STRIP |
2455 | # Extract the first word of "strip", so it can be a program name with args. |
2456 | set dummy strip; ac_word=$2 |
dd184caf |
2457 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2458 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2459 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2461 | else |
2462 | if test -n "$ac_ct_STRIP"; then |
2463 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2464 | else |
2465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2466 | for as_dir in $PATH |
2467 | do |
2468 | IFS=$as_save_IFS |
2469 | test -z "$as_dir" && as_dir=. |
2470 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2471 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2472 | ac_cv_prog_ac_ct_STRIP="strip" |
2473 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2474 | break 2 |
2475 | fi |
2476 | done |
2477 | done |
dd184caf |
2478 | IFS=$as_save_IFS |
d9898ee8 |
2479 | |
d9898ee8 |
2480 | fi |
2481 | fi |
2482 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2483 | if test -n "$ac_ct_STRIP"; then |
dd184caf |
2484 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2485 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
2486 | else |
dd184caf |
2487 | { echo "$as_me:$LINENO: result: no" >&5 |
2488 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2489 | fi |
2490 | |
dd184caf |
2491 | if test "x$ac_ct_STRIP" = x; then |
2492 | STRIP=":" |
2493 | else |
2494 | case $cross_compiling:$ac_tool_warned in |
2495 | yes:) |
2496 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2497 | whose name does not start with the host triplet. If you think this |
2498 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2499 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2500 | whose name does not start with the host triplet. If you think this |
2501 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2502 | ac_tool_warned=yes ;; |
2503 | esac |
2504 | STRIP=$ac_ct_STRIP |
2505 | fi |
d9898ee8 |
2506 | else |
2507 | STRIP="$ac_cv_prog_STRIP" |
2508 | fi |
2509 | |
2510 | fi |
dd184caf |
2511 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 |
2512 | |
2513 | # We need awk for the "check" target. The system "awk" is bad on |
2514 | # some platforms. |
2515 | # Always define AMTAR for backward compatibility. |
2516 | |
2517 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
2518 | |
2519 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
2520 | |
2521 | |
2522 | |
2523 | |
2524 | |
2525 | >confdefs.h # Kill PACKAGE_ macros |
2526 | |
2527 | LPATH="$PATH:/usr/local/bin" |
2528 | |
2529 | for ac_prog in gawk mawk nawk awk |
2530 | do |
2531 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2532 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2533 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2535 | if test "${ac_cv_prog_AWK+set}" = set; then |
2536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2537 | else |
2538 | if test -n "$AWK"; then |
2539 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2540 | else |
2541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2542 | for as_dir in $PATH |
2543 | do |
2544 | IFS=$as_save_IFS |
2545 | test -z "$as_dir" && as_dir=. |
2546 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2547 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2548 | ac_cv_prog_AWK="$ac_prog" |
2549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2550 | break 2 |
2551 | fi |
2552 | done |
2553 | done |
dd184caf |
2554 | IFS=$as_save_IFS |
d9898ee8 |
2555 | |
2556 | fi |
2557 | fi |
2558 | AWK=$ac_cv_prog_AWK |
2559 | if test -n "$AWK"; then |
dd184caf |
2560 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2561 | echo "${ECHO_T}$AWK" >&6; } |
d9898ee8 |
2562 | else |
dd184caf |
2563 | { echo "$as_me:$LINENO: result: no" >&5 |
2564 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2565 | fi |
2566 | |
dd184caf |
2567 | |
d9898ee8 |
2568 | test -n "$AWK" && break |
2569 | done |
2570 | |
2571 | ac_ext=c |
2572 | ac_cpp='$CPP $CPPFLAGS' |
2573 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2574 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2575 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2576 | if test -n "$ac_tool_prefix"; then |
2577 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2578 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
dd184caf |
2579 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2580 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2581 | if test "${ac_cv_prog_CC+set}" = set; then |
2582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2583 | else |
2584 | if test -n "$CC"; then |
2585 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2586 | else |
2587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2588 | for as_dir in $PATH |
2589 | do |
2590 | IFS=$as_save_IFS |
2591 | test -z "$as_dir" && as_dir=. |
2592 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2593 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2594 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2595 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2596 | break 2 |
2597 | fi |
2598 | done |
2599 | done |
dd184caf |
2600 | IFS=$as_save_IFS |
d9898ee8 |
2601 | |
2602 | fi |
2603 | fi |
2604 | CC=$ac_cv_prog_CC |
2605 | if test -n "$CC"; then |
dd184caf |
2606 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2607 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2608 | else |
dd184caf |
2609 | { echo "$as_me:$LINENO: result: no" >&5 |
2610 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2611 | fi |
2612 | |
dd184caf |
2613 | |
d9898ee8 |
2614 | fi |
2615 | if test -z "$ac_cv_prog_CC"; then |
2616 | ac_ct_CC=$CC |
2617 | # Extract the first word of "gcc", so it can be a program name with args. |
2618 | set dummy gcc; ac_word=$2 |
dd184caf |
2619 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2620 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2621 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2623 | else |
2624 | if test -n "$ac_ct_CC"; then |
2625 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2626 | else |
2627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2628 | for as_dir in $PATH |
2629 | do |
2630 | IFS=$as_save_IFS |
2631 | test -z "$as_dir" && as_dir=. |
2632 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2633 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2634 | ac_cv_prog_ac_ct_CC="gcc" |
2635 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2636 | break 2 |
2637 | fi |
2638 | done |
2639 | done |
dd184caf |
2640 | IFS=$as_save_IFS |
d9898ee8 |
2641 | |
2642 | fi |
2643 | fi |
2644 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2645 | if test -n "$ac_ct_CC"; then |
dd184caf |
2646 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2647 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2648 | else |
dd184caf |
2649 | { echo "$as_me:$LINENO: result: no" >&5 |
2650 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2651 | fi |
2652 | |
dd184caf |
2653 | if test "x$ac_ct_CC" = x; then |
2654 | CC="" |
2655 | else |
2656 | case $cross_compiling:$ac_tool_warned in |
2657 | yes:) |
2658 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2659 | whose name does not start with the host triplet. If you think this |
2660 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2661 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2662 | whose name does not start with the host triplet. If you think this |
2663 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2664 | ac_tool_warned=yes ;; |
2665 | esac |
2666 | CC=$ac_ct_CC |
2667 | fi |
d9898ee8 |
2668 | else |
2669 | CC="$ac_cv_prog_CC" |
2670 | fi |
2671 | |
2672 | if test -z "$CC"; then |
dd184caf |
2673 | if test -n "$ac_tool_prefix"; then |
2674 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
d9898ee8 |
2675 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
dd184caf |
2676 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2678 | if test "${ac_cv_prog_CC+set}" = set; then |
2679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2680 | else |
2681 | if test -n "$CC"; then |
2682 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2683 | else |
2684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2685 | for as_dir in $PATH |
2686 | do |
2687 | IFS=$as_save_IFS |
2688 | test -z "$as_dir" && as_dir=. |
2689 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2690 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2691 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2693 | break 2 |
2694 | fi |
2695 | done |
2696 | done |
dd184caf |
2697 | IFS=$as_save_IFS |
d9898ee8 |
2698 | |
2699 | fi |
2700 | fi |
2701 | CC=$ac_cv_prog_CC |
2702 | if test -n "$CC"; then |
dd184caf |
2703 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2704 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2705 | else |
dd184caf |
2706 | { echo "$as_me:$LINENO: result: no" >&5 |
2707 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2708 | fi |
2709 | |
d9898ee8 |
2710 | |
dd184caf |
2711 | fi |
d9898ee8 |
2712 | fi |
2713 | if test -z "$CC"; then |
2714 | # Extract the first word of "cc", so it can be a program name with args. |
2715 | set dummy cc; ac_word=$2 |
dd184caf |
2716 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2717 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2718 | if test "${ac_cv_prog_CC+set}" = set; then |
2719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2720 | else |
2721 | if test -n "$CC"; then |
2722 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2723 | else |
2724 | ac_prog_rejected=no |
2725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2726 | for as_dir in $PATH |
2727 | do |
2728 | IFS=$as_save_IFS |
2729 | test -z "$as_dir" && as_dir=. |
2730 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2731 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2732 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2733 | ac_prog_rejected=yes |
2734 | continue |
2735 | fi |
2736 | ac_cv_prog_CC="cc" |
2737 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2738 | break 2 |
2739 | fi |
2740 | done |
2741 | done |
dd184caf |
2742 | IFS=$as_save_IFS |
d9898ee8 |
2743 | |
2744 | if test $ac_prog_rejected = yes; then |
2745 | # We found a bogon in the path, so make sure we never use it. |
2746 | set dummy $ac_cv_prog_CC |
2747 | shift |
2748 | if test $# != 0; then |
2749 | # We chose a different compiler from the bogus one. |
2750 | # However, it has the same basename, so the bogon will be chosen |
2751 | # first if we set CC to just the basename; use the full file name. |
2752 | shift |
2753 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2754 | fi |
2755 | fi |
2756 | fi |
2757 | fi |
2758 | CC=$ac_cv_prog_CC |
2759 | if test -n "$CC"; then |
dd184caf |
2760 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2761 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2762 | else |
dd184caf |
2763 | { echo "$as_me:$LINENO: result: no" >&5 |
2764 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2765 | fi |
2766 | |
dd184caf |
2767 | |
d9898ee8 |
2768 | fi |
2769 | if test -z "$CC"; then |
2770 | if test -n "$ac_tool_prefix"; then |
dd184caf |
2771 | for ac_prog in cl.exe |
d9898ee8 |
2772 | do |
2773 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2774 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
2775 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2776 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2777 | if test "${ac_cv_prog_CC+set}" = set; then |
2778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2779 | else |
2780 | if test -n "$CC"; then |
2781 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2782 | else |
2783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2784 | for as_dir in $PATH |
2785 | do |
2786 | IFS=$as_save_IFS |
2787 | test -z "$as_dir" && as_dir=. |
2788 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2789 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2790 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2791 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2792 | break 2 |
2793 | fi |
2794 | done |
2795 | done |
dd184caf |
2796 | IFS=$as_save_IFS |
d9898ee8 |
2797 | |
2798 | fi |
2799 | fi |
2800 | CC=$ac_cv_prog_CC |
2801 | if test -n "$CC"; then |
dd184caf |
2802 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2803 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2804 | else |
dd184caf |
2805 | { echo "$as_me:$LINENO: result: no" >&5 |
2806 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2807 | fi |
2808 | |
dd184caf |
2809 | |
d9898ee8 |
2810 | test -n "$CC" && break |
2811 | done |
2812 | fi |
2813 | if test -z "$CC"; then |
2814 | ac_ct_CC=$CC |
dd184caf |
2815 | for ac_prog in cl.exe |
d9898ee8 |
2816 | do |
2817 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2818 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2819 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2820 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2821 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2823 | else |
2824 | if test -n "$ac_ct_CC"; then |
2825 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2826 | else |
2827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2828 | for as_dir in $PATH |
2829 | do |
2830 | IFS=$as_save_IFS |
2831 | test -z "$as_dir" && as_dir=. |
2832 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2833 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2834 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2835 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2836 | break 2 |
2837 | fi |
2838 | done |
2839 | done |
dd184caf |
2840 | IFS=$as_save_IFS |
d9898ee8 |
2841 | |
2842 | fi |
2843 | fi |
2844 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2845 | if test -n "$ac_ct_CC"; then |
dd184caf |
2846 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2847 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2848 | else |
dd184caf |
2849 | { echo "$as_me:$LINENO: result: no" >&5 |
2850 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2851 | fi |
2852 | |
dd184caf |
2853 | |
d9898ee8 |
2854 | test -n "$ac_ct_CC" && break |
2855 | done |
2856 | |
dd184caf |
2857 | if test "x$ac_ct_CC" = x; then |
2858 | CC="" |
2859 | else |
2860 | case $cross_compiling:$ac_tool_warned in |
2861 | yes:) |
2862 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2863 | whose name does not start with the host triplet. If you think this |
2864 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2865 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2866 | whose name does not start with the host triplet. If you think this |
2867 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2868 | ac_tool_warned=yes ;; |
2869 | esac |
2870 | CC=$ac_ct_CC |
2871 | fi |
d9898ee8 |
2872 | fi |
2873 | |
2874 | fi |
2875 | |
2876 | |
2877 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2878 | See \`config.log' for more details." >&5 |
2879 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2880 | See \`config.log' for more details." >&2;} |
2881 | { (exit 1); exit 1; }; } |
2882 | |
2883 | # Provide some information about the compiler. |
dd184caf |
2884 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
d9898ee8 |
2885 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
2886 | { (ac_try="$ac_compiler --version >&5" |
2887 | case "(($ac_try" in |
2888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2889 | *) ac_try_echo=$ac_try;; |
2890 | esac |
2891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2892 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
2893 | ac_status=$? |
2894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2895 | (exit $ac_status); } |
dd184caf |
2896 | { (ac_try="$ac_compiler -v >&5" |
2897 | case "(($ac_try" in |
2898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2899 | *) ac_try_echo=$ac_try;; |
2900 | esac |
2901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2902 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
2903 | ac_status=$? |
2904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2905 | (exit $ac_status); } |
dd184caf |
2906 | { (ac_try="$ac_compiler -V >&5" |
2907 | case "(($ac_try" in |
2908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2909 | *) ac_try_echo=$ac_try;; |
2910 | esac |
2911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2912 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
2913 | ac_status=$? |
2914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2915 | (exit $ac_status); } |
2916 | |
2917 | cat >conftest.$ac_ext <<_ACEOF |
2918 | /* confdefs.h. */ |
2919 | _ACEOF |
2920 | cat confdefs.h >>conftest.$ac_ext |
2921 | cat >>conftest.$ac_ext <<_ACEOF |
2922 | /* end confdefs.h. */ |
2923 | |
2924 | int |
2925 | main () |
2926 | { |
2927 | |
2928 | ; |
2929 | return 0; |
2930 | } |
2931 | _ACEOF |
2932 | ac_clean_files_save=$ac_clean_files |
2933 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2934 | # Try to create an executable without -o first, disregard a.out. |
2935 | # It will help us diagnose broken compilers, and finding out an intuition |
2936 | # of exeext. |
dd184caf |
2937 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2938 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
d9898ee8 |
2939 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
dd184caf |
2940 | # |
2941 | # List of possible output files, starting from the most likely. |
2942 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2943 | # only as a last resort. b.out is created by i960 compilers. |
2944 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2945 | # |
2946 | # The IRIX 6 linker writes into existing files which may not be |
2947 | # executable, retaining their permissions. Remove them first so a |
2948 | # subsequent execution test works. |
2949 | ac_rmfiles= |
2950 | for ac_file in $ac_files |
2951 | do |
2952 | case $ac_file in |
2953 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2954 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2955 | esac |
2956 | done |
2957 | rm -f $ac_rmfiles |
2958 | |
2959 | if { (ac_try="$ac_link_default" |
2960 | case "(($ac_try" in |
2961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2962 | *) ac_try_echo=$ac_try;; |
2963 | esac |
2964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2965 | (eval "$ac_link_default") 2>&5 |
d9898ee8 |
2966 | ac_status=$? |
2967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2968 | (exit $ac_status); }; then |
dd184caf |
2969 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2970 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2971 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2972 | # so that the user can short-circuit this test for compilers unknown to |
2973 | # Autoconf. |
2974 | for ac_file in $ac_files '' |
d9898ee8 |
2975 | do |
2976 | test -f "$ac_file" || continue |
2977 | case $ac_file in |
dd184caf |
2978 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
d9898ee8 |
2979 | ;; |
2980 | [ab].out ) |
2981 | # We found the default executable, but exeext='' is most |
2982 | # certainly right. |
2983 | break;; |
2984 | *.* ) |
dd184caf |
2985 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2986 | then :; else |
2987 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2988 | fi |
2989 | # We set ac_cv_exeext here because the later test for it is not |
2990 | # safe: cross compilers may not add the suffix if given an `-o' |
2991 | # argument, so we may need to know it at that point already. |
2992 | # Even if this section looks crufty: it has the advantage of |
2993 | # actually working. |
d9898ee8 |
2994 | break;; |
2995 | * ) |
2996 | break;; |
2997 | esac |
2998 | done |
dd184caf |
2999 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3000 | |
d9898ee8 |
3001 | else |
dd184caf |
3002 | ac_file='' |
3003 | fi |
3004 | |
3005 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
3006 | echo "${ECHO_T}$ac_file" >&6; } |
3007 | if test -z "$ac_file"; then |
d9898ee8 |
3008 | echo "$as_me: failed program was:" >&5 |
3009 | sed 's/^/| /' conftest.$ac_ext >&5 |
3010 | |
3011 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
3012 | See \`config.log' for more details." >&5 |
3013 | echo "$as_me: error: C compiler cannot create executables |
3014 | See \`config.log' for more details." >&2;} |
3015 | { (exit 77); exit 77; }; } |
3016 | fi |
3017 | |
3018 | ac_exeext=$ac_cv_exeext |
d9898ee8 |
3019 | |
dd184caf |
3020 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
3021 | # the compiler is broken, or we cross compile. |
dd184caf |
3022 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3023 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
d9898ee8 |
3024 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3025 | # If not cross compiling, check that we can run a simple program. |
3026 | if test "$cross_compiling" != yes; then |
3027 | if { ac_try='./$ac_file' |
dd184caf |
3028 | { (case "(($ac_try" in |
3029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3030 | *) ac_try_echo=$ac_try;; |
3031 | esac |
3032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3033 | (eval "$ac_try") 2>&5 |
d9898ee8 |
3034 | ac_status=$? |
3035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3036 | (exit $ac_status); }; }; then |
3037 | cross_compiling=no |
3038 | else |
3039 | if test "$cross_compiling" = maybe; then |
3040 | cross_compiling=yes |
3041 | else |
3042 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
3043 | If you meant to cross compile, use \`--host'. |
3044 | See \`config.log' for more details." >&5 |
3045 | echo "$as_me: error: cannot run C compiled programs. |
3046 | If you meant to cross compile, use \`--host'. |
3047 | See \`config.log' for more details." >&2;} |
3048 | { (exit 1); exit 1; }; } |
3049 | fi |
3050 | fi |
3051 | fi |
dd184caf |
3052 | { echo "$as_me:$LINENO: result: yes" >&5 |
3053 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
3054 | |
3055 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
3056 | ac_clean_files=$ac_clean_files_save |
dd184caf |
3057 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
3058 | # the compiler is broken, or we cross compile. |
dd184caf |
3059 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3060 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
3061 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
3062 | echo "${ECHO_T}$cross_compiling" >&6; } |
3063 | |
3064 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3065 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
3066 | if { (ac_try="$ac_link" |
3067 | case "(($ac_try" in |
3068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3069 | *) ac_try_echo=$ac_try;; |
3070 | esac |
3071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3072 | (eval "$ac_link") 2>&5 |
d9898ee8 |
3073 | ac_status=$? |
3074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3075 | (exit $ac_status); }; then |
3076 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3077 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3078 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
3079 | # `rm'. |
3080 | for ac_file in conftest.exe conftest conftest.*; do |
3081 | test -f "$ac_file" || continue |
3082 | case $ac_file in |
dd184caf |
3083 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
d9898ee8 |
3084 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 |
3085 | break;; |
3086 | * ) break;; |
3087 | esac |
3088 | done |
3089 | else |
3090 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3091 | See \`config.log' for more details." >&5 |
3092 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
3093 | See \`config.log' for more details." >&2;} |
3094 | { (exit 1); exit 1; }; } |
3095 | fi |
3096 | |
3097 | rm -f conftest$ac_cv_exeext |
dd184caf |
3098 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3099 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
d9898ee8 |
3100 | |
3101 | rm -f conftest.$ac_ext |
3102 | EXEEXT=$ac_cv_exeext |
3103 | ac_exeext=$EXEEXT |
dd184caf |
3104 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3105 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
d9898ee8 |
3106 | if test "${ac_cv_objext+set}" = set; then |
3107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3108 | else |
3109 | cat >conftest.$ac_ext <<_ACEOF |
3110 | /* confdefs.h. */ |
3111 | _ACEOF |
3112 | cat confdefs.h >>conftest.$ac_ext |
3113 | cat >>conftest.$ac_ext <<_ACEOF |
3114 | /* end confdefs.h. */ |
3115 | |
3116 | int |
3117 | main () |
3118 | { |
3119 | |
3120 | ; |
3121 | return 0; |
3122 | } |
3123 | _ACEOF |
3124 | rm -f conftest.o conftest.obj |
dd184caf |
3125 | if { (ac_try="$ac_compile" |
3126 | case "(($ac_try" in |
3127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3128 | *) ac_try_echo=$ac_try;; |
3129 | esac |
3130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3131 | (eval "$ac_compile") 2>&5 |
d9898ee8 |
3132 | ac_status=$? |
3133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3134 | (exit $ac_status); }; then |
dd184caf |
3135 | for ac_file in conftest.o conftest.obj conftest.*; do |
3136 | test -f "$ac_file" || continue; |
d9898ee8 |
3137 | case $ac_file in |
dd184caf |
3138 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
d9898ee8 |
3139 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3140 | break;; |
3141 | esac |
3142 | done |
3143 | else |
3144 | echo "$as_me: failed program was:" >&5 |
3145 | sed 's/^/| /' conftest.$ac_ext >&5 |
3146 | |
3147 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
3148 | See \`config.log' for more details." >&5 |
3149 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
3150 | See \`config.log' for more details." >&2;} |
3151 | { (exit 1); exit 1; }; } |
3152 | fi |
3153 | |
3154 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3155 | fi |
dd184caf |
3156 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3157 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
d9898ee8 |
3158 | OBJEXT=$ac_cv_objext |
3159 | ac_objext=$OBJEXT |
dd184caf |
3160 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3161 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
d9898ee8 |
3162 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3164 | else |
3165 | cat >conftest.$ac_ext <<_ACEOF |
3166 | /* confdefs.h. */ |
3167 | _ACEOF |
3168 | cat confdefs.h >>conftest.$ac_ext |
3169 | cat >>conftest.$ac_ext <<_ACEOF |
3170 | /* end confdefs.h. */ |
3171 | |
3172 | int |
3173 | main () |
3174 | { |
3175 | #ifndef __GNUC__ |
3176 | choke me |
3177 | #endif |
3178 | |
3179 | ; |
3180 | return 0; |
3181 | } |
3182 | _ACEOF |
3183 | rm -f conftest.$ac_objext |
dd184caf |
3184 | if { (ac_try="$ac_compile" |
3185 | case "(($ac_try" in |
3186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3187 | *) ac_try_echo=$ac_try;; |
3188 | esac |
3189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3190 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3191 | ac_status=$? |
3192 | grep -v '^ *+' conftest.er1 >conftest.err |
3193 | rm -f conftest.er1 |
3194 | cat conftest.err >&5 |
3195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3196 | (exit $ac_status); } && { |
3197 | test -z "$ac_c_werror_flag" || |
3198 | test ! -s conftest.err |
3199 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3200 | ac_compiler_gnu=yes |
3201 | else |
3202 | echo "$as_me: failed program was:" >&5 |
3203 | sed 's/^/| /' conftest.$ac_ext >&5 |
3204 | |
dd184caf |
3205 | ac_compiler_gnu=no |
d9898ee8 |
3206 | fi |
dd184caf |
3207 | |
3208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3209 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3210 | |
3211 | fi |
dd184caf |
3212 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3213 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
d9898ee8 |
3214 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3215 | ac_test_CFLAGS=${CFLAGS+set} |
3216 | ac_save_CFLAGS=$CFLAGS |
dd184caf |
3217 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3218 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
3219 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3221 | else |
dd184caf |
3222 | ac_save_c_werror_flag=$ac_c_werror_flag |
3223 | ac_c_werror_flag=yes |
3224 | ac_cv_prog_cc_g=no |
3225 | CFLAGS="-g" |
3226 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
3227 | /* confdefs.h. */ |
3228 | _ACEOF |
3229 | cat confdefs.h >>conftest.$ac_ext |
3230 | cat >>conftest.$ac_ext <<_ACEOF |
3231 | /* end confdefs.h. */ |
3232 | |
3233 | int |
3234 | main () |
3235 | { |
3236 | |
3237 | ; |
3238 | return 0; |
3239 | } |
3240 | _ACEOF |
3241 | rm -f conftest.$ac_objext |
dd184caf |
3242 | if { (ac_try="$ac_compile" |
3243 | case "(($ac_try" in |
3244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3245 | *) ac_try_echo=$ac_try;; |
3246 | esac |
3247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3248 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3249 | ac_status=$? |
3250 | grep -v '^ *+' conftest.er1 >conftest.err |
3251 | rm -f conftest.er1 |
3252 | cat conftest.err >&5 |
3253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3254 | (exit $ac_status); } && { |
3255 | test -z "$ac_c_werror_flag" || |
3256 | test ! -s conftest.err |
3257 | } && test -s conftest.$ac_objext; then |
3258 | ac_cv_prog_cc_g=yes |
3259 | else |
3260 | echo "$as_me: failed program was:" >&5 |
3261 | sed 's/^/| /' conftest.$ac_ext >&5 |
3262 | |
3263 | CFLAGS="" |
3264 | cat >conftest.$ac_ext <<_ACEOF |
3265 | /* confdefs.h. */ |
3266 | _ACEOF |
3267 | cat confdefs.h >>conftest.$ac_ext |
3268 | cat >>conftest.$ac_ext <<_ACEOF |
3269 | /* end confdefs.h. */ |
3270 | |
3271 | int |
3272 | main () |
3273 | { |
3274 | |
3275 | ; |
3276 | return 0; |
3277 | } |
3278 | _ACEOF |
3279 | rm -f conftest.$ac_objext |
3280 | if { (ac_try="$ac_compile" |
3281 | case "(($ac_try" in |
3282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3283 | *) ac_try_echo=$ac_try;; |
3284 | esac |
3285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3286 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3287 | ac_status=$? |
dd184caf |
3288 | grep -v '^ *+' conftest.er1 >conftest.err |
3289 | rm -f conftest.er1 |
3290 | cat conftest.err >&5 |
d9898ee8 |
3291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3292 | (exit $ac_status); } && { |
3293 | test -z "$ac_c_werror_flag" || |
3294 | test ! -s conftest.err |
3295 | } && test -s conftest.$ac_objext; then |
3296 | : |
3297 | else |
3298 | echo "$as_me: failed program was:" >&5 |
3299 | sed 's/^/| /' conftest.$ac_ext >&5 |
3300 | |
3301 | ac_c_werror_flag=$ac_save_c_werror_flag |
3302 | CFLAGS="-g" |
3303 | cat >conftest.$ac_ext <<_ACEOF |
3304 | /* confdefs.h. */ |
3305 | _ACEOF |
3306 | cat confdefs.h >>conftest.$ac_ext |
3307 | cat >>conftest.$ac_ext <<_ACEOF |
3308 | /* end confdefs.h. */ |
3309 | |
3310 | int |
3311 | main () |
3312 | { |
3313 | |
3314 | ; |
3315 | return 0; |
3316 | } |
3317 | _ACEOF |
3318 | rm -f conftest.$ac_objext |
3319 | if { (ac_try="$ac_compile" |
3320 | case "(($ac_try" in |
3321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3322 | *) ac_try_echo=$ac_try;; |
3323 | esac |
3324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3325 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3326 | ac_status=$? |
dd184caf |
3327 | grep -v '^ *+' conftest.er1 >conftest.err |
3328 | rm -f conftest.er1 |
3329 | cat conftest.err >&5 |
d9898ee8 |
3330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3331 | (exit $ac_status); } && { |
3332 | test -z "$ac_c_werror_flag" || |
3333 | test ! -s conftest.err |
3334 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3335 | ac_cv_prog_cc_g=yes |
3336 | else |
3337 | echo "$as_me: failed program was:" >&5 |
3338 | sed 's/^/| /' conftest.$ac_ext >&5 |
3339 | |
dd184caf |
3340 | |
d9898ee8 |
3341 | fi |
dd184caf |
3342 | |
3343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3344 | fi |
3345 | |
3346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3347 | fi |
3348 | |
3349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3350 | ac_c_werror_flag=$ac_save_c_werror_flag |
d9898ee8 |
3351 | fi |
dd184caf |
3352 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3353 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
d9898ee8 |
3354 | if test "$ac_test_CFLAGS" = set; then |
3355 | CFLAGS=$ac_save_CFLAGS |
3356 | elif test $ac_cv_prog_cc_g = yes; then |
3357 | if test "$GCC" = yes; then |
3358 | CFLAGS="-g -O2" |
3359 | else |
3360 | CFLAGS="-g" |
3361 | fi |
3362 | else |
3363 | if test "$GCC" = yes; then |
3364 | CFLAGS="-O2" |
3365 | else |
3366 | CFLAGS= |
3367 | fi |
3368 | fi |
dd184caf |
3369 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3370 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
3371 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
d9898ee8 |
3372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3373 | else |
dd184caf |
3374 | ac_cv_prog_cc_c89=no |
d9898ee8 |
3375 | ac_save_CC=$CC |
3376 | cat >conftest.$ac_ext <<_ACEOF |
3377 | /* confdefs.h. */ |
3378 | _ACEOF |
3379 | cat confdefs.h >>conftest.$ac_ext |
3380 | cat >>conftest.$ac_ext <<_ACEOF |
3381 | /* end confdefs.h. */ |
3382 | #include <stdarg.h> |
3383 | #include <stdio.h> |
3384 | #include <sys/types.h> |
3385 | #include <sys/stat.h> |
3386 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3387 | struct buf { int x; }; |
3388 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3389 | static char *e (p, i) |
3390 | char **p; |
3391 | int i; |
3392 | { |
3393 | return p[i]; |
3394 | } |
3395 | static char *f (char * (*g) (char **, int), char **p, ...) |
3396 | { |
3397 | char *s; |
3398 | va_list v; |
3399 | va_start (v,p); |
3400 | s = g (p, va_arg (v,int)); |
3401 | va_end (v); |
3402 | return s; |
3403 | } |
3404 | |
3405 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3406 | function prototypes and stuff, but not '\xHH' hex character constants. |
3407 | These don't provoke an error unfortunately, instead are silently treated |
dd184caf |
3408 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 |
3409 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3410 | array size at least. It's necessary to write '\x00'==0 to get something |
dd184caf |
3411 | that's true only with -std. */ |
d9898ee8 |
3412 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3413 | |
dd184caf |
3414 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3415 | inside strings and character constants. */ |
3416 | #define FOO(x) 'x' |
3417 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3418 | |
d9898ee8 |
3419 | int test (int i, double x); |
3420 | struct s1 {int (*f) (int a);}; |
3421 | struct s2 {int (*f) (double a);}; |
3422 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3423 | int argc; |
3424 | char **argv; |
3425 | int |
3426 | main () |
3427 | { |
3428 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3429 | ; |
3430 | return 0; |
3431 | } |
3432 | _ACEOF |
dd184caf |
3433 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3434 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
d9898ee8 |
3435 | do |
3436 | CC="$ac_save_CC $ac_arg" |
3437 | rm -f conftest.$ac_objext |
dd184caf |
3438 | if { (ac_try="$ac_compile" |
3439 | case "(($ac_try" in |
3440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3441 | *) ac_try_echo=$ac_try;; |
3442 | esac |
3443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3444 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3445 | ac_status=$? |
3446 | grep -v '^ *+' conftest.er1 >conftest.err |
3447 | rm -f conftest.er1 |
3448 | cat conftest.err >&5 |
3449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3450 | (exit $ac_status); } && { |
3451 | test -z "$ac_c_werror_flag" || |
3452 | test ! -s conftest.err |
3453 | } && test -s conftest.$ac_objext; then |
3454 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 |
3455 | else |
3456 | echo "$as_me: failed program was:" >&5 |
3457 | sed 's/^/| /' conftest.$ac_ext >&5 |
3458 | |
dd184caf |
3459 | |
d9898ee8 |
3460 | fi |
dd184caf |
3461 | |
3462 | rm -f core conftest.err conftest.$ac_objext |
3463 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
d9898ee8 |
3464 | done |
dd184caf |
3465 | rm -f conftest.$ac_ext |
d9898ee8 |
3466 | CC=$ac_save_CC |
3467 | |
3468 | fi |
dd184caf |
3469 | # AC_CACHE_VAL |
3470 | case "x$ac_cv_prog_cc_c89" in |
3471 | x) |
3472 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3473 | echo "${ECHO_T}none needed" >&6; } ;; |
3474 | xno) |
3475 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3476 | echo "${ECHO_T}unsupported" >&6; } ;; |
d9898ee8 |
3477 | *) |
dd184caf |
3478 | CC="$CC $ac_cv_prog_cc_c89" |
3479 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3480 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 |
3481 | esac |
3482 | |
d9898ee8 |
3483 | |
d9898ee8 |
3484 | ac_ext=c |
3485 | ac_cpp='$CPP $CPPFLAGS' |
3486 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3487 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3488 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3489 | DEPDIR="${am__leading_dot}deps" |
3490 | |
dd184caf |
3491 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 |
3492 | |
3493 | |
3494 | am_make=${MAKE-make} |
3495 | cat > confinc << 'END' |
3496 | am__doit: |
3497 | @echo done |
3498 | .PHONY: am__doit |
3499 | END |
3500 | # If we don't find an include directive, just comment out the code. |
dd184caf |
3501 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3502 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
d9898ee8 |
3503 | am__include="#" |
3504 | am__quote= |
3505 | _am_result=none |
3506 | # First try GNU make style include. |
3507 | echo "include confinc" > confmf |
3508 | # We grep out `Entering directory' and `Leaving directory' |
3509 | # messages which can occur if `w' ends up in MAKEFLAGS. |
3510 | # In particular we don't look at `^make:' because GNU make might |
3511 | # be invoked under some other name (usually "gmake"), in which |
3512 | # case it prints its new name instead of `make'. |
3513 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
3514 | am__include=include |
3515 | am__quote= |
3516 | _am_result=GNU |
3517 | fi |
3518 | # Now try BSD make style include. |
3519 | if test "$am__include" = "#"; then |
3520 | echo '.include "confinc"' > confmf |
3521 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
3522 | am__include=.include |
3523 | am__quote="\"" |
3524 | _am_result=BSD |
3525 | fi |
3526 | fi |
3527 | |
3528 | |
dd184caf |
3529 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
3530 | echo "${ECHO_T}$_am_result" >&6; } |
d9898ee8 |
3531 | rm -f confinc confmf |
3532 | |
dd184caf |
3533 | # Check whether --enable-dependency-tracking was given. |
d9898ee8 |
3534 | if test "${enable_dependency_tracking+set}" = set; then |
dd184caf |
3535 | enableval=$enable_dependency_tracking; |
3536 | fi |
d9898ee8 |
3537 | |
d9898ee8 |
3538 | if test "x$enable_dependency_tracking" != xno; then |
3539 | am_depcomp="$ac_aux_dir/depcomp" |
3540 | AMDEPBACKSLASH='\' |
3541 | fi |
dd184caf |
3542 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 |
3543 | AMDEP_TRUE= |
3544 | AMDEP_FALSE='#' |
3545 | else |
3546 | AMDEP_TRUE='#' |
3547 | AMDEP_FALSE= |
3548 | fi |
3549 | |
3550 | |
3551 | |
d9898ee8 |
3552 | depcc="$CC" am_compiler_list= |
3553 | |
dd184caf |
3554 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3555 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
3556 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3558 | else |
3559 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3560 | # We make a subdir and do the tests there. Otherwise we can end up |
3561 | # making bogus files that we don't know about and never remove. For |
3562 | # instance it was reported that on HP-UX the gcc test will end up |
3563 | # making a dummy file named `D' -- because `-MD' means `put the output |
3564 | # in D'. |
3565 | mkdir conftest.dir |
3566 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3567 | # using a relative directory. |
3568 | cp "$am_depcomp" conftest.dir |
3569 | cd conftest.dir |
3570 | # We will build objects and dependencies in a subdirectory because |
3571 | # it helps to detect inapplicable dependency modes. For instance |
3572 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3573 | # side effect of compilation, but ICC will put the dependencies in |
3574 | # the current directory while Tru64 will put them in the object |
3575 | # directory. |
3576 | mkdir sub |
3577 | |
3578 | am_cv_CC_dependencies_compiler_type=none |
3579 | if test "$am_compiler_list" = ""; then |
3580 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3581 | fi |
3582 | for depmode in $am_compiler_list; do |
3583 | # Setup a source with many dependencies, because some compilers |
3584 | # like to wrap large dependency lists on column 80 (with \), and |
3585 | # we should not choose a depcomp mode which is confused by this. |
3586 | # |
3587 | # We need to recreate these files for each test, as the compiler may |
3588 | # overwrite some of them when testing with obscure command lines. |
3589 | # This happens at least with the AIX C compiler. |
3590 | : > sub/conftest.c |
3591 | for i in 1 2 3 4 5 6; do |
3592 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3593 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3594 | # Solaris 8's {/usr,}/bin/sh. |
3595 | touch sub/conftst$i.h |
3596 | done |
3597 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3598 | |
3599 | case $depmode in |
3600 | nosideeffect) |
3601 | # after this tag, mechanisms are not by side-effect, so they'll |
3602 | # only be used when explicitly requested |
3603 | if test "x$enable_dependency_tracking" = xyes; then |
3604 | continue |
3605 | else |
3606 | break |
3607 | fi |
3608 | ;; |
3609 | none) break ;; |
3610 | esac |
3611 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3612 | # mode. It turns out that the SunPro C++ compiler does not properly |
3613 | # handle `-M -o', and we need to detect this. |
3614 | if depmode=$depmode \ |
3615 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3616 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3617 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3618 | >/dev/null 2>conftest.err && |
dd184caf |
3619 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
3620 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3621 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3622 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3623 | # icc doesn't choke on unknown options, it will just issue warnings |
3624 | # or remarks (even with -Werror). So we grep stderr for any message |
3625 | # that says an option was ignored or not supported. |
3626 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3627 | # icc: Command line warning: ignoring option '-M'; no argument required |
3628 | # The diagnosis changed in icc 8.0: |
3629 | # icc: Command line remark: option '-MP' not supported |
3630 | if (grep 'ignoring option' conftest.err || |
3631 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3632 | am_cv_CC_dependencies_compiler_type=$depmode |
3633 | break |
3634 | fi |
3635 | fi |
3636 | done |
3637 | |
3638 | cd .. |
3639 | rm -rf conftest.dir |
3640 | else |
3641 | am_cv_CC_dependencies_compiler_type=none |
3642 | fi |
3643 | |
3644 | fi |
dd184caf |
3645 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3646 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 |
3647 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3648 | |
dd184caf |
3649 | if |
d9898ee8 |
3650 | test "x$enable_dependency_tracking" != xno \ |
3651 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3652 | am__fastdepCC_TRUE= |
3653 | am__fastdepCC_FALSE='#' |
3654 | else |
3655 | am__fastdepCC_TRUE='#' |
3656 | am__fastdepCC_FALSE= |
3657 | fi |
3658 | |
3659 | |
3660 | ac_ext=c |
3661 | ac_cpp='$CPP $CPPFLAGS' |
3662 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3663 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3664 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
dd184caf |
3665 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3666 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
3667 | # On Suns, sometimes $CPP names a directory. |
3668 | if test -n "$CPP" && test -d "$CPP"; then |
3669 | CPP= |
3670 | fi |
3671 | if test -z "$CPP"; then |
3672 | if test "${ac_cv_prog_CPP+set}" = set; then |
3673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3674 | else |
3675 | # Double quotes because CPP needs to be expanded |
3676 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3677 | do |
3678 | ac_preproc_ok=false |
3679 | for ac_c_preproc_warn_flag in '' yes |
3680 | do |
3681 | # Use a header file that comes with gcc, so configuring glibc |
3682 | # with a fresh cross-compiler works. |
3683 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3684 | # <limits.h> exists even on freestanding compilers. |
3685 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3686 | # not just through cpp. "Syntax error" is here to catch this case. |
3687 | cat >conftest.$ac_ext <<_ACEOF |
3688 | /* confdefs.h. */ |
3689 | _ACEOF |
3690 | cat confdefs.h >>conftest.$ac_ext |
3691 | cat >>conftest.$ac_ext <<_ACEOF |
3692 | /* end confdefs.h. */ |
3693 | #ifdef __STDC__ |
3694 | # include <limits.h> |
3695 | #else |
3696 | # include <assert.h> |
3697 | #endif |
3698 | Syntax error |
3699 | _ACEOF |
dd184caf |
3700 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3701 | case "(($ac_try" in |
3702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3703 | *) ac_try_echo=$ac_try;; |
3704 | esac |
3705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3706 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
3707 | ac_status=$? |
3708 | grep -v '^ *+' conftest.er1 >conftest.err |
3709 | rm -f conftest.er1 |
3710 | cat conftest.err >&5 |
3711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3712 | (exit $ac_status); } >/dev/null && { |
3713 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3714 | test ! -s conftest.err |
3715 | }; then |
d9898ee8 |
3716 | : |
3717 | else |
3718 | echo "$as_me: failed program was:" >&5 |
3719 | sed 's/^/| /' conftest.$ac_ext >&5 |
3720 | |
3721 | # Broken: fails on valid input. |
3722 | continue |
3723 | fi |
dd184caf |
3724 | |
d9898ee8 |
3725 | rm -f conftest.err conftest.$ac_ext |
3726 | |
dd184caf |
3727 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
3728 | # can be detected and how. |
3729 | cat >conftest.$ac_ext <<_ACEOF |
3730 | /* confdefs.h. */ |
3731 | _ACEOF |
3732 | cat confdefs.h >>conftest.$ac_ext |
3733 | cat >>conftest.$ac_ext <<_ACEOF |
3734 | /* end confdefs.h. */ |
3735 | #include <ac_nonexistent.h> |
3736 | _ACEOF |
dd184caf |
3737 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3738 | case "(($ac_try" in |
3739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3740 | *) ac_try_echo=$ac_try;; |
3741 | esac |
3742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3743 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
3744 | ac_status=$? |
3745 | grep -v '^ *+' conftest.er1 >conftest.err |
3746 | rm -f conftest.er1 |
3747 | cat conftest.err >&5 |
3748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3749 | (exit $ac_status); } >/dev/null && { |
3750 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3751 | test ! -s conftest.err |
3752 | }; then |
d9898ee8 |
3753 | # Broken: success on invalid input. |
3754 | continue |
3755 | else |
3756 | echo "$as_me: failed program was:" >&5 |
3757 | sed 's/^/| /' conftest.$ac_ext >&5 |
3758 | |
3759 | # Passes both tests. |
3760 | ac_preproc_ok=: |
3761 | break |
3762 | fi |
dd184caf |
3763 | |
d9898ee8 |
3764 | rm -f conftest.err conftest.$ac_ext |
3765 | |
3766 | done |
3767 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3768 | rm -f conftest.err conftest.$ac_ext |
3769 | if $ac_preproc_ok; then |
3770 | break |
3771 | fi |
3772 | |
3773 | done |
3774 | ac_cv_prog_CPP=$CPP |
3775 | |
3776 | fi |
3777 | CPP=$ac_cv_prog_CPP |
3778 | else |
3779 | ac_cv_prog_CPP=$CPP |
3780 | fi |
dd184caf |
3781 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3782 | echo "${ECHO_T}$CPP" >&6; } |
d9898ee8 |
3783 | ac_preproc_ok=false |
3784 | for ac_c_preproc_warn_flag in '' yes |
3785 | do |
3786 | # Use a header file that comes with gcc, so configuring glibc |
3787 | # with a fresh cross-compiler works. |
3788 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3789 | # <limits.h> exists even on freestanding compilers. |
3790 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3791 | # not just through cpp. "Syntax error" is here to catch this case. |
3792 | cat >conftest.$ac_ext <<_ACEOF |
3793 | /* confdefs.h. */ |
3794 | _ACEOF |
3795 | cat confdefs.h >>conftest.$ac_ext |
3796 | cat >>conftest.$ac_ext <<_ACEOF |
3797 | /* end confdefs.h. */ |
3798 | #ifdef __STDC__ |
3799 | # include <limits.h> |
3800 | #else |
3801 | # include <assert.h> |
3802 | #endif |
3803 | Syntax error |
3804 | _ACEOF |
dd184caf |
3805 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3806 | case "(($ac_try" in |
3807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3808 | *) ac_try_echo=$ac_try;; |
3809 | esac |
3810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3811 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
3812 | ac_status=$? |
3813 | grep -v '^ *+' conftest.er1 >conftest.err |
3814 | rm -f conftest.er1 |
3815 | cat conftest.err >&5 |
3816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3817 | (exit $ac_status); } >/dev/null && { |
3818 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3819 | test ! -s conftest.err |
3820 | }; then |
d9898ee8 |
3821 | : |
3822 | else |
3823 | echo "$as_me: failed program was:" >&5 |
3824 | sed 's/^/| /' conftest.$ac_ext >&5 |
3825 | |
3826 | # Broken: fails on valid input. |
3827 | continue |
3828 | fi |
dd184caf |
3829 | |
d9898ee8 |
3830 | rm -f conftest.err conftest.$ac_ext |
3831 | |
dd184caf |
3832 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
3833 | # can be detected and how. |
3834 | cat >conftest.$ac_ext <<_ACEOF |
3835 | /* confdefs.h. */ |
3836 | _ACEOF |
3837 | cat confdefs.h >>conftest.$ac_ext |
3838 | cat >>conftest.$ac_ext <<_ACEOF |
3839 | /* end confdefs.h. */ |
3840 | #include <ac_nonexistent.h> |
3841 | _ACEOF |
dd184caf |
3842 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3843 | case "(($ac_try" in |
3844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3845 | *) ac_try_echo=$ac_try;; |
3846 | esac |
3847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3848 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
3849 | ac_status=$? |
3850 | grep -v '^ *+' conftest.er1 >conftest.err |
3851 | rm -f conftest.er1 |
3852 | cat conftest.err >&5 |
3853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3854 | (exit $ac_status); } >/dev/null && { |
3855 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3856 | test ! -s conftest.err |
3857 | }; then |
d9898ee8 |
3858 | # Broken: success on invalid input. |
3859 | continue |
3860 | else |
3861 | echo "$as_me: failed program was:" >&5 |
3862 | sed 's/^/| /' conftest.$ac_ext >&5 |
3863 | |
3864 | # Passes both tests. |
3865 | ac_preproc_ok=: |
3866 | break |
3867 | fi |
dd184caf |
3868 | |
d9898ee8 |
3869 | rm -f conftest.err conftest.$ac_ext |
3870 | |
3871 | done |
3872 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3873 | rm -f conftest.err conftest.$ac_ext |
3874 | if $ac_preproc_ok; then |
3875 | : |
3876 | else |
3877 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3878 | See \`config.log' for more details." >&5 |
3879 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
3880 | See \`config.log' for more details." >&2;} |
3881 | { (exit 1); exit 1; }; } |
3882 | fi |
3883 | |
3884 | ac_ext=c |
3885 | ac_cpp='$CPP $CPPFLAGS' |
3886 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3887 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3888 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3889 | |
3890 | # Find a good install program. We prefer a C program (faster), |
3891 | # so one script is as good as another. But avoid the broken or |
3892 | # incompatible versions: |
3893 | # SysV /etc/install, /usr/sbin/install |
3894 | # SunOS /usr/etc/install |
3895 | # IRIX /sbin/install |
3896 | # AIX /bin/install |
3897 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
3898 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3899 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3900 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3901 | # OS/2's system install, which has a completely different semantic |
3902 | # ./install, which can be erroneously created by make from ./install.sh. |
dd184caf |
3903 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3904 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
d9898ee8 |
3905 | if test -z "$INSTALL"; then |
3906 | if test "${ac_cv_path_install+set}" = set; then |
3907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3908 | else |
3909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3910 | for as_dir in $PATH |
3911 | do |
3912 | IFS=$as_save_IFS |
3913 | test -z "$as_dir" && as_dir=. |
3914 | # Account for people who put trailing slashes in PATH elements. |
3915 | case $as_dir/ in |
3916 | ./ | .// | /cC/* | \ |
3917 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3918 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
3919 | /usr/ucb/* ) ;; |
3920 | *) |
3921 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3922 | # Don't use installbsd from OSF since it installs stuff as root |
3923 | # by default. |
3924 | for ac_prog in ginstall scoinst install; do |
3925 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
3926 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
3927 | if test $ac_prog = install && |
3928 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3929 | # AIX install. It has an incompatible calling convention. |
3930 | : |
3931 | elif test $ac_prog = install && |
3932 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3933 | # program-specific install script used by HP pwplus--don't use. |
3934 | : |
3935 | else |
3936 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3937 | break 3 |
3938 | fi |
3939 | fi |
3940 | done |
3941 | done |
3942 | ;; |
3943 | esac |
3944 | done |
dd184caf |
3945 | IFS=$as_save_IFS |
d9898ee8 |
3946 | |
3947 | |
3948 | fi |
3949 | if test "${ac_cv_path_install+set}" = set; then |
3950 | INSTALL=$ac_cv_path_install |
3951 | else |
dd184caf |
3952 | # As a last resort, use the slow shell script. Don't cache a |
3953 | # value for INSTALL within a source directory, because that will |
d9898ee8 |
3954 | # break other packages using the cache if that directory is |
dd184caf |
3955 | # removed, or if the value is a relative name. |
d9898ee8 |
3956 | INSTALL=$ac_install_sh |
3957 | fi |
3958 | fi |
dd184caf |
3959 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3960 | echo "${ECHO_T}$INSTALL" >&6; } |
d9898ee8 |
3961 | |
3962 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3963 | # It thinks the first close brace ends the variable substitution. |
3964 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3965 | |
3966 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3967 | |
3968 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3969 | |
dd184caf |
3970 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3971 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
d9898ee8 |
3972 | LN_S=$as_ln_s |
3973 | if test "$LN_S" = "ln -s"; then |
dd184caf |
3974 | { echo "$as_me:$LINENO: result: yes" >&5 |
3975 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
3976 | else |
dd184caf |
3977 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3978 | echo "${ECHO_T}no, using $LN_S" >&6; } |
d9898ee8 |
3979 | fi |
3980 | |
3981 | |
3982 | |
3983 | for ac_prog in perl5 perl |
3984 | do |
3985 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3986 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
3987 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
3989 | if test "${ac_cv_path_SYSCONFTOOL_PERL+set}" = set; then |
3990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3991 | else |
3992 | case $SYSCONFTOOL_PERL in |
3993 | [\\/]* | ?:[\\/]*) |
3994 | ac_cv_path_SYSCONFTOOL_PERL="$SYSCONFTOOL_PERL" # Let the user override the test with a path. |
3995 | ;; |
3996 | *) |
3997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3998 | for as_dir in $PATH |
3999 | do |
4000 | IFS=$as_save_IFS |
4001 | test -z "$as_dir" && as_dir=. |
4002 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
4003 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
4004 | ac_cv_path_SYSCONFTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" |
4005 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4006 | break 2 |
4007 | fi |
4008 | done |
4009 | done |
dd184caf |
4010 | IFS=$as_save_IFS |
d9898ee8 |
4011 | |
4012 | ;; |
4013 | esac |
4014 | fi |
4015 | SYSCONFTOOL_PERL=$ac_cv_path_SYSCONFTOOL_PERL |
d9898ee8 |
4016 | if test -n "$SYSCONFTOOL_PERL"; then |
dd184caf |
4017 | { echo "$as_me:$LINENO: result: $SYSCONFTOOL_PERL" >&5 |
4018 | echo "${ECHO_T}$SYSCONFTOOL_PERL" >&6; } |
d9898ee8 |
4019 | else |
dd184caf |
4020 | { echo "$as_me:$LINENO: result: no" >&5 |
4021 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4022 | fi |
4023 | |
dd184caf |
4024 | |
d9898ee8 |
4025 | test -n "$SYSCONFTOOL_PERL" && break |
4026 | done |
4027 | test -n "$SYSCONFTOOL_PERL" || SYSCONFTOOL_PERL="perl" |
4028 | |
4029 | |
4030 | if test "$SYSCONFTOOL_PERL" = "perl" |
4031 | then |
4032 | { { echo "$as_me:$LINENO: error: perl not found - please install perl" >&5 |
4033 | echo "$as_me: error: perl not found - please install perl" >&2;} |
4034 | { (exit 1); exit 1; }; } |
4035 | fi |
4036 | |
dd184caf |
4037 | { echo "$as_me:$LINENO: checking for sysconftool..." >&5 |
4038 | echo $ECHO_N "checking for sysconftool...... $ECHO_C" >&6; } |
d9898ee8 |
4039 | SYSCONFTOOL="" |
4040 | for sysconf_dir in $ac_aux_dir . .. ../.. |
4041 | do |
4042 | if test -f $srcdir/$sysconf_dir/sysconftool |
4043 | then |
4044 | SYSCONFTOOL=$srcdir/$sysconf_dir/sysconftool |
4045 | break |
4046 | fi |
4047 | done |
4048 | |
4049 | if test "$SYSCONFTOOL" = "" |
4050 | then |
4051 | { { echo "$as_me:$LINENO: error: sysconftool missing - not in the package" >&5 |
4052 | echo "$as_me: error: sysconftool missing - not in the package" >&2;} |
4053 | { (exit 1); exit 1; }; } |
4054 | fi |
4055 | |
dd184caf |
4056 | { echo "$as_me:$LINENO: result: $SYSCONFTOOL" >&5 |
4057 | echo "${ECHO_T}$SYSCONFTOOL" >&6; } |
d9898ee8 |
4058 | SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL" |
4059 | |
4060 | |
4061 | |
4062 | |
dd184caf |
4063 | { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5 |
4064 | echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; } |
d9898ee8 |
4065 | if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then |
4066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4067 | else |
4068 | ac_check_lib_save_LIBS=$LIBS |
4069 | LIBS="-lltdl $LIBS" |
4070 | cat >conftest.$ac_ext <<_ACEOF |
4071 | /* confdefs.h. */ |
4072 | _ACEOF |
4073 | cat confdefs.h >>conftest.$ac_ext |
4074 | cat >>conftest.$ac_ext <<_ACEOF |
4075 | /* end confdefs.h. */ |
4076 | |
dd184caf |
4077 | /* Override any GCC internal prototype to avoid an error. |
4078 | Use char because int might match the return type of a GCC |
4079 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
4080 | #ifdef __cplusplus |
4081 | extern "C" |
4082 | #endif |
d9898ee8 |
4083 | char lt_dlinit (); |
4084 | int |
4085 | main () |
4086 | { |
dd184caf |
4087 | return lt_dlinit (); |
d9898ee8 |
4088 | ; |
4089 | return 0; |
4090 | } |
4091 | _ACEOF |
4092 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
4093 | if { (ac_try="$ac_link" |
4094 | case "(($ac_try" in |
4095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4096 | *) ac_try_echo=$ac_try;; |
4097 | esac |
4098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4099 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
4100 | ac_status=$? |
4101 | grep -v '^ *+' conftest.er1 >conftest.err |
4102 | rm -f conftest.er1 |
4103 | cat conftest.err >&5 |
4104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4105 | (exit $ac_status); } && { |
4106 | test -z "$ac_c_werror_flag" || |
4107 | test ! -s conftest.err |
4108 | } && test -s conftest$ac_exeext && |
4109 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
4110 | ac_cv_lib_ltdl_lt_dlinit=yes |
4111 | else |
4112 | echo "$as_me: failed program was:" >&5 |
4113 | sed 's/^/| /' conftest.$ac_ext >&5 |
4114 | |
dd184caf |
4115 | ac_cv_lib_ltdl_lt_dlinit=no |
d9898ee8 |
4116 | fi |
dd184caf |
4117 | |
4118 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
4119 | conftest$ac_exeext conftest.$ac_ext |
4120 | LIBS=$ac_check_lib_save_LIBS |
4121 | fi |
dd184caf |
4122 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5 |
4123 | echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; } |
d9898ee8 |
4124 | if test $ac_cv_lib_ltdl_lt_dlinit = yes; then |
4125 | test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no |
4126 | else |
4127 | if test x"$enable_ltdl_install" = xno; then |
4128 | { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5 |
4129 | echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;} |
4130 | else |
4131 | enable_ltdl_install=yes |
4132 | fi |
4133 | |
4134 | fi |
4135 | |
4136 | if test x"$enable_ltdl_install" = x"yes"; then |
4137 | ac_configure_args="$ac_configure_args --enable-ltdl-install" |
4138 | LIBLTDL='${top_builddir}/''libltdl'/libltdl.la |
4139 | LTDLINCL='-I${top_srcdir}/''libltdl' |
4140 | else |
4141 | ac_configure_args="$ac_configure_args --enable-ltdl-install=no" |
4142 | LIBLTDL="-lltdl" |
4143 | LTDLINCL= |
4144 | fi |
4145 | # For backwards non-gettext consistent compatibility... |
4146 | INCLTDL="$LTDLINCL" |
4147 | |
4148 | |
4149 | |
dd184caf |
4150 | # Check whether --enable-shared was given. |
d9898ee8 |
4151 | if test "${enable_shared+set}" = set; then |
dd184caf |
4152 | enableval=$enable_shared; p=${PACKAGE-default} |
d9898ee8 |
4153 | case $enableval in |
4154 | yes) enable_shared=yes ;; |
4155 | no) enable_shared=no ;; |
4156 | *) |
4157 | enable_shared=no |
4158 | # Look at the argument we got. We use all the common list separators. |
4159 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4160 | for pkg in $enableval; do |
4161 | IFS="$lt_save_ifs" |
4162 | if test "X$pkg" = "X$p"; then |
4163 | enable_shared=yes |
4164 | fi |
4165 | done |
4166 | IFS="$lt_save_ifs" |
4167 | ;; |
4168 | esac |
4169 | else |
4170 | enable_shared=yes |
dd184caf |
4171 | fi |
d9898ee8 |
4172 | |
dd184caf |
4173 | |
4174 | # Check whether --enable-static was given. |
d9898ee8 |
4175 | if test "${enable_static+set}" = set; then |
dd184caf |
4176 | enableval=$enable_static; p=${PACKAGE-default} |
d9898ee8 |
4177 | case $enableval in |
4178 | yes) enable_static=yes ;; |
4179 | no) enable_static=no ;; |
4180 | *) |
4181 | enable_static=no |
4182 | # Look at the argument we got. We use all the common list separators. |
4183 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4184 | for pkg in $enableval; do |
4185 | IFS="$lt_save_ifs" |
4186 | if test "X$pkg" = "X$p"; then |
4187 | enable_static=yes |
4188 | fi |
4189 | done |
4190 | IFS="$lt_save_ifs" |
4191 | ;; |
4192 | esac |
4193 | else |
4194 | enable_static=yes |
dd184caf |
4195 | fi |
d9898ee8 |
4196 | |
dd184caf |
4197 | |
4198 | # Check whether --enable-fast-install was given. |
d9898ee8 |
4199 | if test "${enable_fast_install+set}" = set; then |
dd184caf |
4200 | enableval=$enable_fast_install; p=${PACKAGE-default} |
d9898ee8 |
4201 | case $enableval in |
4202 | yes) enable_fast_install=yes ;; |
4203 | no) enable_fast_install=no ;; |
4204 | *) |
4205 | enable_fast_install=no |
4206 | # Look at the argument we got. We use all the common list separators. |
4207 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4208 | for pkg in $enableval; do |
4209 | IFS="$lt_save_ifs" |
4210 | if test "X$pkg" = "X$p"; then |
4211 | enable_fast_install=yes |
4212 | fi |
4213 | done |
4214 | IFS="$lt_save_ifs" |
4215 | ;; |
4216 | esac |
4217 | else |
4218 | enable_fast_install=yes |
dd184caf |
4219 | fi |
4220 | |
d9898ee8 |
4221 | |
4222 | # Make sure we can run config.sub. |
dd184caf |
4223 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
4224 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
4225 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
d9898ee8 |
4226 | { (exit 1); exit 1; }; } |
4227 | |
dd184caf |
4228 | { echo "$as_me:$LINENO: checking build system type" >&5 |
4229 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
d9898ee8 |
4230 | if test "${ac_cv_build+set}" = set; then |
4231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4232 | else |
dd184caf |
4233 | ac_build_alias=$build_alias |
4234 | test "x$ac_build_alias" = x && |
4235 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
4236 | test "x$ac_build_alias" = x && |
d9898ee8 |
4237 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
4238 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
4239 | { (exit 1); exit 1; }; } |
dd184caf |
4240 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
4241 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
4242 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
d9898ee8 |
4243 | { (exit 1); exit 1; }; } |
4244 | |
4245 | fi |
dd184caf |
4246 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
4247 | echo "${ECHO_T}$ac_cv_build" >&6; } |
4248 | case $ac_cv_build in |
4249 | *-*-*) ;; |
4250 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
4251 | echo "$as_me: error: invalid value of canonical build" >&2;} |
4252 | { (exit 1); exit 1; }; };; |
4253 | esac |
d9898ee8 |
4254 | build=$ac_cv_build |
dd184caf |
4255 | ac_save_IFS=$IFS; IFS='-' |
4256 | set x $ac_cv_build |
4257 | shift |
4258 | build_cpu=$1 |
4259 | build_vendor=$2 |
4260 | shift; shift |
4261 | # Remember, the first character of IFS is used to create $*, |
4262 | # except with old shells: |
4263 | build_os=$* |
4264 | IFS=$ac_save_IFS |
4265 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
4266 | |
4267 | |
4268 | { echo "$as_me:$LINENO: checking host system type" >&5 |
4269 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
d9898ee8 |
4270 | if test "${ac_cv_host+set}" = set; then |
4271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4272 | else |
dd184caf |
4273 | if test "x$host_alias" = x; then |
4274 | ac_cv_host=$ac_cv_build |
4275 | else |
4276 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
4277 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
4278 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
d9898ee8 |
4279 | { (exit 1); exit 1; }; } |
dd184caf |
4280 | fi |
d9898ee8 |
4281 | |
4282 | fi |
dd184caf |
4283 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
4284 | echo "${ECHO_T}$ac_cv_host" >&6; } |
4285 | case $ac_cv_host in |
4286 | *-*-*) ;; |
4287 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
4288 | echo "$as_me: error: invalid value of canonical host" >&2;} |
4289 | { (exit 1); exit 1; }; };; |
4290 | esac |
d9898ee8 |
4291 | host=$ac_cv_host |
dd184caf |
4292 | ac_save_IFS=$IFS; IFS='-' |
4293 | set x $ac_cv_host |
4294 | shift |
4295 | host_cpu=$1 |
4296 | host_vendor=$2 |
4297 | shift; shift |
4298 | # Remember, the first character of IFS is used to create $*, |
4299 | # except with old shells: |
4300 | host_os=$* |
4301 | IFS=$ac_save_IFS |
4302 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
4303 | |
4304 | |
4305 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
4306 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
d9898ee8 |
4307 | if test "${lt_cv_path_SED+set}" = set; then |
4308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4309 | else |
4310 | # Loop through the user's path and test for sed and gsed. |
4311 | # Then use that list of sed's as ones to test for truncation. |
4312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4313 | for as_dir in $PATH |
4314 | do |
4315 | IFS=$as_save_IFS |
4316 | test -z "$as_dir" && as_dir=. |
4317 | for lt_ac_prog in sed gsed; do |
4318 | for ac_exec_ext in '' $ac_executable_extensions; do |
4319 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
4320 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
4321 | fi |
4322 | done |
4323 | done |
4324 | done |
4325 | IFS=$as_save_IFS |
4326 | lt_ac_max=0 |
4327 | lt_ac_count=0 |
4328 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
4329 | # along with /bin/sed that truncates output. |
4330 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
4331 | test ! -f $lt_ac_sed && continue |
4332 | cat /dev/null > conftest.in |
4333 | lt_ac_count=0 |
4334 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
4335 | # Check for GNU sed and select it if it is found. |
4336 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
4337 | lt_cv_path_SED=$lt_ac_sed |
4338 | break |
4339 | fi |
4340 | while true; do |
4341 | cat conftest.in conftest.in >conftest.tmp |
4342 | mv conftest.tmp conftest.in |
4343 | cp conftest.in conftest.nl |
4344 | echo >>conftest.nl |
4345 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
4346 | cmp -s conftest.out conftest.nl || break |
4347 | # 10000 chars as input seems more than enough |
4348 | test $lt_ac_count -gt 10 && break |
4349 | lt_ac_count=`expr $lt_ac_count + 1` |
4350 | if test $lt_ac_count -gt $lt_ac_max; then |
4351 | lt_ac_max=$lt_ac_count |
4352 | lt_cv_path_SED=$lt_ac_sed |
4353 | fi |
4354 | done |
4355 | done |
4356 | |
4357 | fi |
4358 | |
4359 | SED=$lt_cv_path_SED |
4360 | |
dd184caf |
4361 | { echo "$as_me:$LINENO: result: $SED" >&5 |
4362 | echo "${ECHO_T}$SED" >&6; } |
4363 | |
4364 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
4365 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
4366 | if test "${ac_cv_path_GREP+set}" = set; then |
4367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4368 | else |
4369 | # Extract the first word of "grep ggrep" to use in msg output |
4370 | if test -z "$GREP"; then |
4371 | set dummy grep ggrep; ac_prog_name=$2 |
4372 | if test "${ac_cv_path_GREP+set}" = set; then |
4373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4374 | else |
4375 | ac_path_GREP_found=false |
4376 | # Loop through the user's path and test for each of PROGNAME-LIST |
4377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4378 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4379 | do |
4380 | IFS=$as_save_IFS |
4381 | test -z "$as_dir" && as_dir=. |
4382 | for ac_prog in grep ggrep; do |
4383 | for ac_exec_ext in '' $ac_executable_extensions; do |
4384 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4385 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
4386 | # Check for GNU ac_path_GREP and select it if it is found. |
4387 | # Check for GNU $ac_path_GREP |
4388 | case `"$ac_path_GREP" --version 2>&1` in |
4389 | *GNU*) |
4390 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
4391 | *) |
4392 | ac_count=0 |
4393 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
4394 | while : |
4395 | do |
4396 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
4397 | mv "conftest.tmp" "conftest.in" |
4398 | cp "conftest.in" "conftest.nl" |
4399 | echo 'GREP' >> "conftest.nl" |
4400 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4401 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4402 | ac_count=`expr $ac_count + 1` |
4403 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4404 | # Best one so far, save it but keep looking for a better one |
4405 | ac_cv_path_GREP="$ac_path_GREP" |
4406 | ac_path_GREP_max=$ac_count |
4407 | fi |
4408 | # 10*(2^10) chars as input seems more than enough |
4409 | test $ac_count -gt 10 && break |
4410 | done |
4411 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4412 | esac |
4413 | |
4414 | |
4415 | $ac_path_GREP_found && break 3 |
4416 | done |
4417 | done |
4418 | |
4419 | done |
4420 | IFS=$as_save_IFS |
4421 | |
4422 | |
4423 | fi |
4424 | |
4425 | GREP="$ac_cv_path_GREP" |
4426 | if test -z "$GREP"; then |
4427 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
4428 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
4429 | { (exit 1); exit 1; }; } |
4430 | fi |
4431 | |
4432 | else |
4433 | ac_cv_path_GREP=$GREP |
4434 | fi |
4435 | |
4436 | |
4437 | fi |
4438 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
4439 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
4440 | GREP="$ac_cv_path_GREP" |
4441 | |
d9898ee8 |
4442 | |
dd184caf |
4443 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
4444 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
4445 | if test "${ac_cv_path_EGREP+set}" = set; then |
4446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4447 | else |
4448 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4449 | then ac_cv_path_EGREP="$GREP -E" |
4450 | else |
4451 | # Extract the first word of "egrep" to use in msg output |
4452 | if test -z "$EGREP"; then |
4453 | set dummy egrep; ac_prog_name=$2 |
4454 | if test "${ac_cv_path_EGREP+set}" = set; then |
d9898ee8 |
4455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4456 | else |
dd184caf |
4457 | ac_path_EGREP_found=false |
4458 | # Loop through the user's path and test for each of PROGNAME-LIST |
4459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4460 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4461 | do |
4462 | IFS=$as_save_IFS |
4463 | test -z "$as_dir" && as_dir=. |
4464 | for ac_prog in egrep; do |
4465 | for ac_exec_ext in '' $ac_executable_extensions; do |
4466 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4467 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
4468 | # Check for GNU ac_path_EGREP and select it if it is found. |
4469 | # Check for GNU $ac_path_EGREP |
4470 | case `"$ac_path_EGREP" --version 2>&1` in |
4471 | *GNU*) |
4472 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
4473 | *) |
4474 | ac_count=0 |
4475 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
4476 | while : |
4477 | do |
4478 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
4479 | mv "conftest.tmp" "conftest.in" |
4480 | cp "conftest.in" "conftest.nl" |
4481 | echo 'EGREP' >> "conftest.nl" |
4482 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4483 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4484 | ac_count=`expr $ac_count + 1` |
4485 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4486 | # Best one so far, save it but keep looking for a better one |
4487 | ac_cv_path_EGREP="$ac_path_EGREP" |
4488 | ac_path_EGREP_max=$ac_count |
d9898ee8 |
4489 | fi |
dd184caf |
4490 | # 10*(2^10) chars as input seems more than enough |
4491 | test $ac_count -gt 10 && break |
4492 | done |
4493 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4494 | esac |
4495 | |
4496 | |
4497 | $ac_path_EGREP_found && break 3 |
4498 | done |
4499 | done |
4500 | |
4501 | done |
4502 | IFS=$as_save_IFS |
4503 | |
4504 | |
4505 | fi |
4506 | |
4507 | EGREP="$ac_cv_path_EGREP" |
4508 | if test -z "$EGREP"; then |
4509 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
4510 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
4511 | { (exit 1); exit 1; }; } |
4512 | fi |
4513 | |
4514 | else |
4515 | ac_cv_path_EGREP=$EGREP |
4516 | fi |
4517 | |
4518 | |
4519 | fi |
d9898ee8 |
4520 | fi |
dd184caf |
4521 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4522 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
4523 | EGREP="$ac_cv_path_EGREP" |
d9898ee8 |
4524 | |
4525 | |
4526 | |
dd184caf |
4527 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
4528 | if test "${with_gnu_ld+set}" = set; then |
dd184caf |
4529 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
4530 | else |
4531 | with_gnu_ld=no |
dd184caf |
4532 | fi |
4533 | |
d9898ee8 |
4534 | ac_prog=ld |
4535 | if test "$GCC" = yes; then |
4536 | # Check if gcc -print-prog-name=ld gives a path. |
dd184caf |
4537 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4538 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
4539 | case $host in |
4540 | *-*-mingw*) |
4541 | # gcc leaves a trailing carriage return which upsets mingw |
4542 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4543 | *) |
4544 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4545 | esac |
4546 | case $ac_prog in |
4547 | # Accept absolute paths. |
4548 | [\\/]* | ?:[\\/]*) |
4549 | re_direlt='/[^/][^/]*/\.\./' |
4550 | # Canonicalize the pathname of ld |
4551 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
4552 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
4553 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
4554 | done |
4555 | test -z "$LD" && LD="$ac_prog" |
4556 | ;; |
4557 | "") |
4558 | # If it fails, then pretend we aren't using GCC. |
4559 | ac_prog=ld |
4560 | ;; |
4561 | *) |
4562 | # If it is relative, then search for the first ld in PATH. |
4563 | with_gnu_ld=unknown |
4564 | ;; |
4565 | esac |
4566 | elif test "$with_gnu_ld" = yes; then |
dd184caf |
4567 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4568 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4569 | else |
dd184caf |
4570 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4571 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4572 | fi |
4573 | if test "${lt_cv_path_LD+set}" = set; then |
4574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4575 | else |
4576 | if test -z "$LD"; then |
4577 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4578 | for ac_dir in $PATH; do |
4579 | IFS="$lt_save_ifs" |
4580 | test -z "$ac_dir" && ac_dir=. |
4581 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4582 | lt_cv_path_LD="$ac_dir/$ac_prog" |
4583 | # Check to see if the program is GNU ld. I'd rather use --version, |
4584 | # but apparently some variants of GNU ld only accept -v. |
4585 | # Break only if it was the GNU/non-GNU ld that we prefer. |
4586 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4587 | *GNU* | *'with BFD'*) |
4588 | test "$with_gnu_ld" != no && break |
4589 | ;; |
4590 | *) |
4591 | test "$with_gnu_ld" != yes && break |
4592 | ;; |
4593 | esac |
4594 | fi |
4595 | done |
4596 | IFS="$lt_save_ifs" |
4597 | else |
4598 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4599 | fi |
4600 | fi |
4601 | |
4602 | LD="$lt_cv_path_LD" |
4603 | if test -n "$LD"; then |
dd184caf |
4604 | { echo "$as_me:$LINENO: result: $LD" >&5 |
4605 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
4606 | else |
dd184caf |
4607 | { echo "$as_me:$LINENO: result: no" >&5 |
4608 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4609 | fi |
4610 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4611 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
4612 | { (exit 1); exit 1; }; } |
dd184caf |
4613 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4614 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4615 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
4616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4617 | else |
4618 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4619 | case `$LD -v 2>&1 </dev/null` in |
4620 | *GNU* | *'with BFD'*) |
4621 | lt_cv_prog_gnu_ld=yes |
4622 | ;; |
4623 | *) |
4624 | lt_cv_prog_gnu_ld=no |
4625 | ;; |
4626 | esac |
4627 | fi |
dd184caf |
4628 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4629 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
4630 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4631 | |
4632 | |
dd184caf |
4633 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
4634 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
d9898ee8 |
4635 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
4636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4637 | else |
4638 | lt_cv_ld_reload_flag='-r' |
4639 | fi |
dd184caf |
4640 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4641 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
d9898ee8 |
4642 | reload_flag=$lt_cv_ld_reload_flag |
4643 | case $reload_flag in |
4644 | "" | " "*) ;; |
4645 | *) reload_flag=" $reload_flag" ;; |
4646 | esac |
4647 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4648 | case $host_os in |
4649 | darwin*) |
4650 | if test "$GCC" = yes; then |
4651 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
4652 | else |
4653 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4654 | fi |
4655 | ;; |
4656 | esac |
4657 | |
dd184caf |
4658 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4659 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
d9898ee8 |
4660 | if test "${lt_cv_path_NM+set}" = set; then |
4661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4662 | else |
4663 | if test -n "$NM"; then |
4664 | # Let the user override the test. |
4665 | lt_cv_path_NM="$NM" |
4666 | else |
4667 | lt_nm_to_check="${ac_tool_prefix}nm" |
4668 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4669 | lt_nm_to_check="$lt_nm_to_check nm" |
4670 | fi |
4671 | for lt_tmp_nm in $lt_nm_to_check; do |
4672 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4673 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4674 | IFS="$lt_save_ifs" |
4675 | test -z "$ac_dir" && ac_dir=. |
4676 | tmp_nm="$ac_dir/$lt_tmp_nm" |
4677 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4678 | # Check to see if the nm accepts a BSD-compat flag. |
4679 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4680 | # nm: unknown option "B" ignored |
4681 | # Tru64's nm complains that /dev/null is an invalid object file |
4682 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
4683 | */dev/null* | *'Invalid file or object type'*) |
4684 | lt_cv_path_NM="$tmp_nm -B" |
4685 | break |
4686 | ;; |
4687 | *) |
4688 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4689 | */dev/null*) |
4690 | lt_cv_path_NM="$tmp_nm -p" |
4691 | break |
4692 | ;; |
4693 | *) |
4694 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4695 | continue # so that we can try to find one that supports BSD flags |
4696 | ;; |
4697 | esac |
4698 | ;; |
4699 | esac |
4700 | fi |
4701 | done |
4702 | IFS="$lt_save_ifs" |
4703 | done |
4704 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4705 | fi |
4706 | fi |
dd184caf |
4707 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4708 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
d9898ee8 |
4709 | NM="$lt_cv_path_NM" |
4710 | |
dd184caf |
4711 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
4712 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
d9898ee8 |
4713 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
4714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4715 | else |
4716 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4717 | lt_cv_file_magic_test_file= |
4718 | lt_cv_deplibs_check_method='unknown' |
4719 | # Need to set the preceding variable on all platforms that support |
4720 | # interlibrary dependencies. |
4721 | # 'none' -- dependencies not supported. |
4722 | # `unknown' -- same as none, but documents that we really don't know. |
4723 | # 'pass_all' -- all dependencies passed with no checks. |
4724 | # 'test_compile' -- check by making test program. |
4725 | # 'file_magic [[regex]]' -- check by looking for files in library path |
4726 | # which responds to the $file_magic_cmd with a given extended regex. |
4727 | # If you have `file' or equivalent on your system and you're not sure |
4728 | # whether `pass_all' will *always* work, you probably want this one. |
4729 | |
4730 | case $host_os in |
4731 | aix4* | aix5*) |
4732 | lt_cv_deplibs_check_method=pass_all |
4733 | ;; |
4734 | |
4735 | beos*) |
4736 | lt_cv_deplibs_check_method=pass_all |
4737 | ;; |
4738 | |
4739 | bsdi[45]*) |
4740 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4741 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
4742 | lt_cv_file_magic_test_file=/shlib/libc.so |
4743 | ;; |
4744 | |
4745 | cygwin*) |
4746 | # func_win32_libid is a shell function defined in ltmain.sh |
4747 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4748 | lt_cv_file_magic_cmd='func_win32_libid' |
4749 | ;; |
4750 | |
4751 | mingw* | pw32*) |
4752 | # Base MSYS/MinGW do not provide the 'file' command needed by |
4753 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
4754 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4755 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4756 | ;; |
4757 | |
4758 | darwin* | rhapsody*) |
4759 | lt_cv_deplibs_check_method=pass_all |
4760 | ;; |
4761 | |
4762 | freebsd* | kfreebsd*-gnu | dragonfly*) |
4763 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4764 | case $host_cpu in |
4765 | i*86 ) |
4766 | # Not sure whether the presence of OpenBSD here was a mistake. |
4767 | # Let's accept both of them until this is cleared up. |
4768 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
4769 | lt_cv_file_magic_cmd=/usr/bin/file |
4770 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4771 | ;; |
4772 | esac |
4773 | else |
4774 | lt_cv_deplibs_check_method=pass_all |
4775 | fi |
4776 | ;; |
4777 | |
4778 | gnu*) |
4779 | lt_cv_deplibs_check_method=pass_all |
4780 | ;; |
4781 | |
4782 | hpux10.20* | hpux11*) |
4783 | lt_cv_file_magic_cmd=/usr/bin/file |
4784 | case $host_cpu in |
4785 | ia64*) |
4786 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
4787 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4788 | ;; |
4789 | hppa*64*) |
4790 | 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]' |
4791 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4792 | ;; |
4793 | *) |
4794 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4795 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4796 | ;; |
4797 | esac |
4798 | ;; |
4799 | |
4800 | interix3*) |
4801 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
4802 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
4803 | ;; |
4804 | |
4805 | irix5* | irix6* | nonstopux*) |
4806 | case $LD in |
4807 | *-32|*"-32 ") libmagic=32-bit;; |
4808 | *-n32|*"-n32 ") libmagic=N32;; |
4809 | *-64|*"-64 ") libmagic=64-bit;; |
4810 | *) libmagic=never-match;; |
4811 | esac |
4812 | lt_cv_deplibs_check_method=pass_all |
4813 | ;; |
4814 | |
4815 | # This must be Linux ELF. |
4816 | linux*) |
4817 | lt_cv_deplibs_check_method=pass_all |
4818 | ;; |
4819 | |
4820 | netbsd*) |
4821 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4822 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4823 | else |
4824 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
4825 | fi |
4826 | ;; |
4827 | |
4828 | newos6*) |
4829 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
4830 | lt_cv_file_magic_cmd=/usr/bin/file |
4831 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
4832 | ;; |
4833 | |
4834 | nto-qnx*) |
4835 | lt_cv_deplibs_check_method=unknown |
4836 | ;; |
4837 | |
4838 | openbsd*) |
4839 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4840 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
4841 | else |
4842 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4843 | fi |
4844 | ;; |
4845 | |
4846 | osf3* | osf4* | osf5*) |
4847 | lt_cv_deplibs_check_method=pass_all |
4848 | ;; |
4849 | |
4850 | solaris*) |
4851 | lt_cv_deplibs_check_method=pass_all |
4852 | ;; |
4853 | |
4854 | sysv4 | sysv4.3*) |
4855 | case $host_vendor in |
4856 | motorola) |
4857 | 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]' |
4858 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
4859 | ;; |
4860 | ncr) |
4861 | lt_cv_deplibs_check_method=pass_all |
4862 | ;; |
4863 | sequent) |
4864 | lt_cv_file_magic_cmd='/bin/file' |
4865 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
4866 | ;; |
4867 | sni) |
4868 | lt_cv_file_magic_cmd='/bin/file' |
4869 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
4870 | lt_cv_file_magic_test_file=/lib/libc.so |
4871 | ;; |
4872 | siemens) |
4873 | lt_cv_deplibs_check_method=pass_all |
4874 | ;; |
4875 | pc) |
4876 | lt_cv_deplibs_check_method=pass_all |
4877 | ;; |
4878 | esac |
4879 | ;; |
4880 | |
4881 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4882 | lt_cv_deplibs_check_method=pass_all |
4883 | ;; |
4884 | esac |
4885 | |
4886 | fi |
dd184caf |
4887 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4888 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
d9898ee8 |
4889 | file_magic_cmd=$lt_cv_file_magic_cmd |
4890 | deplibs_check_method=$lt_cv_deplibs_check_method |
4891 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4892 | |
4893 | |
4894 | |
4895 | |
4896 | # If no C compiler was specified, use CC. |
4897 | LTCC=${LTCC-"$CC"} |
4898 | |
4899 | # If no C compiler flags were specified, use CFLAGS. |
4900 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
4901 | |
4902 | # Allow CC to be a program name with arguments. |
4903 | compiler=$CC |
4904 | |
dd184caf |
4905 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
4906 | if test "${enable_libtool_lock+set}" = set; then |
dd184caf |
4907 | enableval=$enable_libtool_lock; |
4908 | fi |
d9898ee8 |
4909 | |
d9898ee8 |
4910 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
4911 | |
4912 | # Some flags need to be propagated to the compiler or linker for good |
4913 | # libtool support. |
4914 | case $host in |
4915 | ia64-*-hpux*) |
4916 | # Find out which ABI we are using. |
4917 | echo 'int i;' > conftest.$ac_ext |
4918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4919 | (eval $ac_compile) 2>&5 |
4920 | ac_status=$? |
4921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4922 | (exit $ac_status); }; then |
4923 | case `/usr/bin/file conftest.$ac_objext` in |
4924 | *ELF-32*) |
4925 | HPUX_IA64_MODE="32" |
4926 | ;; |
4927 | *ELF-64*) |
4928 | HPUX_IA64_MODE="64" |
4929 | ;; |
4930 | esac |
4931 | fi |
4932 | rm -rf conftest* |
4933 | ;; |
4934 | *-*-irix6*) |
4935 | # Find out which ABI we are using. |
dd184caf |
4936 | echo '#line 4936 "configure"' > conftest.$ac_ext |
d9898ee8 |
4937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4938 | (eval $ac_compile) 2>&5 |
4939 | ac_status=$? |
4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4941 | (exit $ac_status); }; then |
4942 | if test "$lt_cv_prog_gnu_ld" = yes; then |
4943 | case `/usr/bin/file conftest.$ac_objext` in |
4944 | *32-bit*) |
4945 | LD="${LD-ld} -melf32bsmip" |
4946 | ;; |
4947 | *N32*) |
4948 | LD="${LD-ld} -melf32bmipn32" |
4949 | ;; |
4950 | *64-bit*) |
4951 | LD="${LD-ld} -melf64bmip" |
4952 | ;; |
4953 | esac |
4954 | else |
4955 | case `/usr/bin/file conftest.$ac_objext` in |
4956 | *32-bit*) |
4957 | LD="${LD-ld} -32" |
4958 | ;; |
4959 | *N32*) |
4960 | LD="${LD-ld} -n32" |
4961 | ;; |
4962 | *64-bit*) |
4963 | LD="${LD-ld} -64" |
4964 | ;; |
4965 | esac |
4966 | fi |
4967 | fi |
4968 | rm -rf conftest* |
4969 | ;; |
4970 | |
4971 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4972 | # Find out which ABI we are using. |
4973 | echo 'int i;' > conftest.$ac_ext |
4974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4975 | (eval $ac_compile) 2>&5 |
4976 | ac_status=$? |
4977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4978 | (exit $ac_status); }; then |
4979 | case `/usr/bin/file conftest.o` in |
4980 | *32-bit*) |
4981 | case $host in |
4982 | x86_64-*linux*) |
4983 | LD="${LD-ld} -m elf_i386" |
4984 | ;; |
4985 | ppc64-*linux*|powerpc64-*linux*) |
4986 | LD="${LD-ld} -m elf32ppclinux" |
4987 | ;; |
4988 | s390x-*linux*) |
4989 | LD="${LD-ld} -m elf_s390" |
4990 | ;; |
4991 | sparc64-*linux*) |
4992 | LD="${LD-ld} -m elf32_sparc" |
4993 | ;; |
4994 | esac |
4995 | ;; |
4996 | *64-bit*) |
4997 | case $host in |
4998 | x86_64-*linux*) |
4999 | LD="${LD-ld} -m elf_x86_64" |
5000 | ;; |
5001 | ppc*-*linux*|powerpc*-*linux*) |
5002 | LD="${LD-ld} -m elf64ppc" |
5003 | ;; |
5004 | s390*-*linux*) |
5005 | LD="${LD-ld} -m elf64_s390" |
5006 | ;; |
5007 | sparc*-*linux*) |
5008 | LD="${LD-ld} -m elf64_sparc" |
5009 | ;; |
5010 | esac |
5011 | ;; |
5012 | esac |
5013 | fi |
5014 | rm -rf conftest* |
5015 | ;; |
5016 | |
5017 | *-*-sco3.2v5*) |
5018 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
5019 | SAVE_CFLAGS="$CFLAGS" |
5020 | CFLAGS="$CFLAGS -belf" |
dd184caf |
5021 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
5022 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
d9898ee8 |
5023 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
5024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5025 | else |
5026 | ac_ext=c |
5027 | ac_cpp='$CPP $CPPFLAGS' |
5028 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5029 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5030 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5031 | |
5032 | cat >conftest.$ac_ext <<_ACEOF |
5033 | /* confdefs.h. */ |
5034 | _ACEOF |
5035 | cat confdefs.h >>conftest.$ac_ext |
5036 | cat >>conftest.$ac_ext <<_ACEOF |
5037 | /* end confdefs.h. */ |
5038 | |
5039 | int |
5040 | main () |
5041 | { |
5042 | |
5043 | ; |
5044 | return 0; |
5045 | } |
5046 | _ACEOF |
5047 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
5048 | if { (ac_try="$ac_link" |
5049 | case "(($ac_try" in |
5050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5051 | *) ac_try_echo=$ac_try;; |
5052 | esac |
5053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5054 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
5055 | ac_status=$? |
5056 | grep -v '^ *+' conftest.er1 >conftest.err |
5057 | rm -f conftest.er1 |
5058 | cat conftest.err >&5 |
5059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5060 | (exit $ac_status); } && { |
5061 | test -z "$ac_c_werror_flag" || |
5062 | test ! -s conftest.err |
5063 | } && test -s conftest$ac_exeext && |
5064 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
5065 | lt_cv_cc_needs_belf=yes |
5066 | else |
5067 | echo "$as_me: failed program was:" >&5 |
5068 | sed 's/^/| /' conftest.$ac_ext >&5 |
5069 | |
dd184caf |
5070 | lt_cv_cc_needs_belf=no |
d9898ee8 |
5071 | fi |
dd184caf |
5072 | |
5073 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
5074 | conftest$ac_exeext conftest.$ac_ext |
5075 | ac_ext=c |
5076 | ac_cpp='$CPP $CPPFLAGS' |
5077 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5078 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5079 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5080 | |
5081 | fi |
dd184caf |
5082 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
5083 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
d9898ee8 |
5084 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
5085 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
5086 | CFLAGS="$SAVE_CFLAGS" |
5087 | fi |
5088 | ;; |
5089 | sparc*-*solaris*) |
5090 | # Find out which ABI we are using. |
5091 | echo 'int i;' > conftest.$ac_ext |
5092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5093 | (eval $ac_compile) 2>&5 |
5094 | ac_status=$? |
5095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5096 | (exit $ac_status); }; then |
5097 | case `/usr/bin/file conftest.o` in |
5098 | *64-bit*) |
5099 | case $lt_cv_prog_gnu_ld in |
5100 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
5101 | *) LD="${LD-ld} -64" ;; |
5102 | esac |
5103 | ;; |
5104 | esac |
5105 | fi |
5106 | rm -rf conftest* |
5107 | ;; |
5108 | |
5109 | |
5110 | esac |
5111 | |
5112 | need_locks="$enable_libtool_lock" |
5113 | |
5114 | |
5115 | |
dd184caf |
5116 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5117 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
d9898ee8 |
5118 | if test "${ac_cv_header_stdc+set}" = set; then |
5119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5120 | else |
5121 | cat >conftest.$ac_ext <<_ACEOF |
5122 | /* confdefs.h. */ |
5123 | _ACEOF |
5124 | cat confdefs.h >>conftest.$ac_ext |
5125 | cat >>conftest.$ac_ext <<_ACEOF |
5126 | /* end confdefs.h. */ |
5127 | #include <stdlib.h> |
5128 | #include <stdarg.h> |
5129 | #include <string.h> |
5130 | #include <float.h> |
5131 | |
5132 | int |
5133 | main () |
5134 | { |
5135 | |
5136 | ; |
5137 | return 0; |
5138 | } |
5139 | _ACEOF |
5140 | rm -f conftest.$ac_objext |
dd184caf |
5141 | if { (ac_try="$ac_compile" |
5142 | case "(($ac_try" in |
5143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5144 | *) ac_try_echo=$ac_try;; |
5145 | esac |
5146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5147 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5148 | ac_status=$? |
5149 | grep -v '^ *+' conftest.er1 >conftest.err |
5150 | rm -f conftest.er1 |
5151 | cat conftest.err >&5 |
5152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5153 | (exit $ac_status); } && { |
5154 | test -z "$ac_c_werror_flag" || |
5155 | test ! -s conftest.err |
5156 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5157 | ac_cv_header_stdc=yes |
5158 | else |
5159 | echo "$as_me: failed program was:" >&5 |
5160 | sed 's/^/| /' conftest.$ac_ext >&5 |
5161 | |
dd184caf |
5162 | ac_cv_header_stdc=no |
d9898ee8 |
5163 | fi |
dd184caf |
5164 | |
5165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5166 | |
5167 | if test $ac_cv_header_stdc = yes; then |
5168 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
5169 | cat >conftest.$ac_ext <<_ACEOF |
5170 | /* confdefs.h. */ |
5171 | _ACEOF |
5172 | cat confdefs.h >>conftest.$ac_ext |
5173 | cat >>conftest.$ac_ext <<_ACEOF |
5174 | /* end confdefs.h. */ |
5175 | #include <string.h> |
5176 | |
5177 | _ACEOF |
5178 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5179 | $EGREP "memchr" >/dev/null 2>&1; then |
5180 | : |
5181 | else |
5182 | ac_cv_header_stdc=no |
5183 | fi |
5184 | rm -f conftest* |
5185 | |
5186 | fi |
5187 | |
5188 | if test $ac_cv_header_stdc = yes; then |
5189 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
5190 | cat >conftest.$ac_ext <<_ACEOF |
5191 | /* confdefs.h. */ |
5192 | _ACEOF |
5193 | cat confdefs.h >>conftest.$ac_ext |
5194 | cat >>conftest.$ac_ext <<_ACEOF |
5195 | /* end confdefs.h. */ |
5196 | #include <stdlib.h> |
5197 | |
5198 | _ACEOF |
5199 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5200 | $EGREP "free" >/dev/null 2>&1; then |
5201 | : |
5202 | else |
5203 | ac_cv_header_stdc=no |
5204 | fi |
5205 | rm -f conftest* |
5206 | |
5207 | fi |
5208 | |
5209 | if test $ac_cv_header_stdc = yes; then |
5210 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
5211 | if test "$cross_compiling" = yes; then |
5212 | : |
5213 | else |
5214 | cat >conftest.$ac_ext <<_ACEOF |
5215 | /* confdefs.h. */ |
5216 | _ACEOF |
5217 | cat confdefs.h >>conftest.$ac_ext |
5218 | cat >>conftest.$ac_ext <<_ACEOF |
5219 | /* end confdefs.h. */ |
5220 | #include <ctype.h> |
dd184caf |
5221 | #include <stdlib.h> |
d9898ee8 |
5222 | #if ((' ' & 0x0FF) == 0x020) |
5223 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
5224 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
5225 | #else |
5226 | # define ISLOWER(c) \ |
5227 | (('a' <= (c) && (c) <= 'i') \ |
5228 | || ('j' <= (c) && (c) <= 'r') \ |
5229 | || ('s' <= (c) && (c) <= 'z')) |
5230 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
5231 | #endif |
5232 | |
5233 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
5234 | int |
5235 | main () |
5236 | { |
5237 | int i; |
5238 | for (i = 0; i < 256; i++) |
5239 | if (XOR (islower (i), ISLOWER (i)) |
5240 | || toupper (i) != TOUPPER (i)) |
dd184caf |
5241 | return 2; |
5242 | return 0; |
d9898ee8 |
5243 | } |
5244 | _ACEOF |
5245 | rm -f conftest$ac_exeext |
dd184caf |
5246 | if { (ac_try="$ac_link" |
5247 | case "(($ac_try" in |
5248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5249 | *) ac_try_echo=$ac_try;; |
5250 | esac |
5251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5252 | (eval "$ac_link") 2>&5 |
d9898ee8 |
5253 | ac_status=$? |
5254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5255 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
5256 | { (case "(($ac_try" in |
5257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5258 | *) ac_try_echo=$ac_try;; |
5259 | esac |
5260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5261 | (eval "$ac_try") 2>&5 |
d9898ee8 |
5262 | ac_status=$? |
5263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5264 | (exit $ac_status); }; }; then |
5265 | : |
5266 | else |
5267 | echo "$as_me: program exited with status $ac_status" >&5 |
5268 | echo "$as_me: failed program was:" >&5 |
5269 | sed 's/^/| /' conftest.$ac_ext >&5 |
5270 | |
5271 | ( exit $ac_status ) |
5272 | ac_cv_header_stdc=no |
5273 | fi |
dd184caf |
5274 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5275 | fi |
dd184caf |
5276 | |
5277 | |
d9898ee8 |
5278 | fi |
5279 | fi |
dd184caf |
5280 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5281 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
d9898ee8 |
5282 | if test $ac_cv_header_stdc = yes; then |
5283 | |
5284 | cat >>confdefs.h <<\_ACEOF |
5285 | #define STDC_HEADERS 1 |
5286 | _ACEOF |
5287 | |
5288 | fi |
5289 | |
5290 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5291 | |
5292 | |
5293 | |
5294 | |
5295 | |
5296 | |
5297 | |
5298 | |
5299 | |
5300 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5301 | inttypes.h stdint.h unistd.h |
5302 | do |
5303 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
5304 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5305 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5306 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5308 | else |
5309 | cat >conftest.$ac_ext <<_ACEOF |
5310 | /* confdefs.h. */ |
5311 | _ACEOF |
5312 | cat confdefs.h >>conftest.$ac_ext |
5313 | cat >>conftest.$ac_ext <<_ACEOF |
5314 | /* end confdefs.h. */ |
5315 | $ac_includes_default |
5316 | |
5317 | #include <$ac_header> |
5318 | _ACEOF |
5319 | rm -f conftest.$ac_objext |
dd184caf |
5320 | if { (ac_try="$ac_compile" |
5321 | case "(($ac_try" in |
5322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5323 | *) ac_try_echo=$ac_try;; |
5324 | esac |
5325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5326 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5327 | ac_status=$? |
5328 | grep -v '^ *+' conftest.er1 >conftest.err |
5329 | rm -f conftest.er1 |
5330 | cat conftest.err >&5 |
5331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5332 | (exit $ac_status); } && { |
5333 | test -z "$ac_c_werror_flag" || |
5334 | test ! -s conftest.err |
5335 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5336 | eval "$as_ac_Header=yes" |
5337 | else |
5338 | echo "$as_me: failed program was:" >&5 |
5339 | sed 's/^/| /' conftest.$ac_ext >&5 |
5340 | |
dd184caf |
5341 | eval "$as_ac_Header=no" |
d9898ee8 |
5342 | fi |
dd184caf |
5343 | |
5344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5345 | fi |
dd184caf |
5346 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5347 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5348 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5349 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5350 | cat >>confdefs.h <<_ACEOF |
5351 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5352 | _ACEOF |
5353 | |
5354 | fi |
5355 | |
5356 | done |
5357 | |
5358 | |
5359 | |
5360 | for ac_header in dlfcn.h |
5361 | do |
5362 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
5363 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5364 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5365 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5366 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5368 | fi |
dd184caf |
5369 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5370 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5371 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5372 | else |
5373 | # Is the header compilable? |
dd184caf |
5374 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5375 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
5376 | cat >conftest.$ac_ext <<_ACEOF |
5377 | /* confdefs.h. */ |
5378 | _ACEOF |
5379 | cat confdefs.h >>conftest.$ac_ext |
5380 | cat >>conftest.$ac_ext <<_ACEOF |
5381 | /* end confdefs.h. */ |
5382 | $ac_includes_default |
5383 | #include <$ac_header> |
5384 | _ACEOF |
5385 | rm -f conftest.$ac_objext |
dd184caf |
5386 | if { (ac_try="$ac_compile" |
5387 | case "(($ac_try" in |
5388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5389 | *) ac_try_echo=$ac_try;; |
5390 | esac |
5391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5392 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5393 | ac_status=$? |
5394 | grep -v '^ *+' conftest.er1 >conftest.err |
5395 | rm -f conftest.er1 |
5396 | cat conftest.err >&5 |
5397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5398 | (exit $ac_status); } && { |
5399 | test -z "$ac_c_werror_flag" || |
5400 | test ! -s conftest.err |
5401 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5402 | ac_header_compiler=yes |
5403 | else |
5404 | echo "$as_me: failed program was:" >&5 |
5405 | sed 's/^/| /' conftest.$ac_ext >&5 |
5406 | |
dd184caf |
5407 | ac_header_compiler=no |
d9898ee8 |
5408 | fi |
dd184caf |
5409 | |
5410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5411 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5412 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
5413 | |
5414 | # Is the header present? |
dd184caf |
5415 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5416 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
5417 | cat >conftest.$ac_ext <<_ACEOF |
5418 | /* confdefs.h. */ |
5419 | _ACEOF |
5420 | cat confdefs.h >>conftest.$ac_ext |
5421 | cat >>conftest.$ac_ext <<_ACEOF |
5422 | /* end confdefs.h. */ |
5423 | #include <$ac_header> |
5424 | _ACEOF |
dd184caf |
5425 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5426 | case "(($ac_try" in |
5427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5428 | *) ac_try_echo=$ac_try;; |
5429 | esac |
5430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5431 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5432 | ac_status=$? |
5433 | grep -v '^ *+' conftest.er1 >conftest.err |
5434 | rm -f conftest.er1 |
5435 | cat conftest.err >&5 |
5436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5437 | (exit $ac_status); } >/dev/null && { |
5438 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5439 | test ! -s conftest.err |
5440 | }; then |
d9898ee8 |
5441 | ac_header_preproc=yes |
5442 | else |
5443 | echo "$as_me: failed program was:" >&5 |
5444 | sed 's/^/| /' conftest.$ac_ext >&5 |
5445 | |
5446 | ac_header_preproc=no |
5447 | fi |
dd184caf |
5448 | |
d9898ee8 |
5449 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
5450 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5451 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
5452 | |
5453 | # So? What about this header? |
5454 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5455 | yes:no: ) |
5456 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5457 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5458 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5459 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
5460 | ac_header_preproc=yes |
5461 | ;; |
5462 | no:yes:* ) |
5463 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5464 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
5465 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5466 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
5467 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
5468 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
5469 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
5470 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
5471 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5472 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5473 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5474 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
5475 | ( cat <<\_ASBOX |
d9898ee8 |
5476 | ## -------------------------------------------------- ## |
5477 | ## Report this to courier-users@lists.sourceforge.net ## |
5478 | ## -------------------------------------------------- ## |
5479 | _ASBOX |
dd184caf |
5480 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
5481 | ;; |
5482 | esac |
dd184caf |
5483 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5484 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5485 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5487 | else |
5488 | eval "$as_ac_Header=\$ac_header_preproc" |
5489 | fi |
dd184caf |
5490 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5491 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5492 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5493 | |
5494 | fi |
5495 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5496 | cat >>confdefs.h <<_ACEOF |
5497 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5498 | _ACEOF |
5499 | |
5500 | fi |
5501 | |
5502 | done |
5503 | |
dd184caf |
5504 | ac_ext=cpp |
d9898ee8 |
5505 | ac_cpp='$CXXCPP $CPPFLAGS' |
5506 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5507 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5508 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
dd184caf |
5509 | if test -z "$CXX"; then |
5510 | if test -n "$CCC"; then |
5511 | CXX=$CCC |
5512 | else |
5513 | if test -n "$ac_tool_prefix"; then |
5514 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
5515 | do |
5516 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5517 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
5518 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5519 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5520 | if test "${ac_cv_prog_CXX+set}" = set; then |
5521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5522 | else |
5523 | if test -n "$CXX"; then |
5524 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
5525 | else |
5526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5527 | for as_dir in $PATH |
5528 | do |
5529 | IFS=$as_save_IFS |
5530 | test -z "$as_dir" && as_dir=. |
5531 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5533 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5534 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5535 | break 2 |
5536 | fi |
5537 | done |
5538 | done |
dd184caf |
5539 | IFS=$as_save_IFS |
d9898ee8 |
5540 | |
5541 | fi |
5542 | fi |
5543 | CXX=$ac_cv_prog_CXX |
5544 | if test -n "$CXX"; then |
dd184caf |
5545 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
5546 | echo "${ECHO_T}$CXX" >&6; } |
d9898ee8 |
5547 | else |
dd184caf |
5548 | { echo "$as_me:$LINENO: result: no" >&5 |
5549 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5550 | fi |
5551 | |
dd184caf |
5552 | |
d9898ee8 |
5553 | test -n "$CXX" && break |
5554 | done |
5555 | fi |
5556 | if test -z "$CXX"; then |
5557 | ac_ct_CXX=$CXX |
dd184caf |
5558 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
5559 | do |
5560 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5561 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
5562 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5563 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5564 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
5565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5566 | else |
5567 | if test -n "$ac_ct_CXX"; then |
5568 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
5569 | else |
5570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5571 | for as_dir in $PATH |
5572 | do |
5573 | IFS=$as_save_IFS |
5574 | test -z "$as_dir" && as_dir=. |
5575 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5576 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5577 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5578 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5579 | break 2 |
5580 | fi |
5581 | done |
5582 | done |
dd184caf |
5583 | IFS=$as_save_IFS |
d9898ee8 |
5584 | |
5585 | fi |
5586 | fi |
5587 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5588 | if test -n "$ac_ct_CXX"; then |
dd184caf |
5589 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
5590 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
d9898ee8 |
5591 | else |
dd184caf |
5592 | { echo "$as_me:$LINENO: result: no" >&5 |
5593 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5594 | fi |
5595 | |
dd184caf |
5596 | |
d9898ee8 |
5597 | test -n "$ac_ct_CXX" && break |
5598 | done |
d9898ee8 |
5599 | |
dd184caf |
5600 | if test "x$ac_ct_CXX" = x; then |
5601 | CXX="g++" |
5602 | else |
5603 | case $cross_compiling:$ac_tool_warned in |
5604 | yes:) |
5605 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
5606 | whose name does not start with the host triplet. If you think this |
5607 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
5608 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
5609 | whose name does not start with the host triplet. If you think this |
5610 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
5611 | ac_tool_warned=yes ;; |
5612 | esac |
5613 | CXX=$ac_ct_CXX |
5614 | fi |
d9898ee8 |
5615 | fi |
5616 | |
dd184caf |
5617 | fi |
5618 | fi |
d9898ee8 |
5619 | # Provide some information about the compiler. |
dd184caf |
5620 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
d9898ee8 |
5621 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
5622 | { (ac_try="$ac_compiler --version >&5" |
5623 | case "(($ac_try" in |
5624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5625 | *) ac_try_echo=$ac_try;; |
5626 | esac |
5627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5628 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
5629 | ac_status=$? |
5630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5631 | (exit $ac_status); } |
dd184caf |
5632 | { (ac_try="$ac_compiler -v >&5" |
5633 | case "(($ac_try" in |
5634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5635 | *) ac_try_echo=$ac_try;; |
5636 | esac |
5637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5638 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
5639 | ac_status=$? |
5640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5641 | (exit $ac_status); } |
dd184caf |
5642 | { (ac_try="$ac_compiler -V >&5" |
5643 | case "(($ac_try" in |
5644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5645 | *) ac_try_echo=$ac_try;; |
5646 | esac |
5647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5648 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
5649 | ac_status=$? |
5650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5651 | (exit $ac_status); } |
5652 | |
dd184caf |
5653 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
5654 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
d9898ee8 |
5655 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
5656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5657 | else |
5658 | cat >conftest.$ac_ext <<_ACEOF |
5659 | /* confdefs.h. */ |
5660 | _ACEOF |
5661 | cat confdefs.h >>conftest.$ac_ext |
5662 | cat >>conftest.$ac_ext <<_ACEOF |
5663 | /* end confdefs.h. */ |
5664 | |
5665 | int |
5666 | main () |
5667 | { |
5668 | #ifndef __GNUC__ |
5669 | choke me |
5670 | #endif |
5671 | |
5672 | ; |
5673 | return 0; |
5674 | } |
5675 | _ACEOF |
5676 | rm -f conftest.$ac_objext |
dd184caf |
5677 | if { (ac_try="$ac_compile" |
5678 | case "(($ac_try" in |
5679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5680 | *) ac_try_echo=$ac_try;; |
5681 | esac |
5682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5683 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5684 | ac_status=$? |
5685 | grep -v '^ *+' conftest.er1 >conftest.err |
5686 | rm -f conftest.er1 |
5687 | cat conftest.err >&5 |
5688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5689 | (exit $ac_status); } && { |
5690 | test -z "$ac_cxx_werror_flag" || |
5691 | test ! -s conftest.err |
5692 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5693 | ac_compiler_gnu=yes |
5694 | else |
5695 | echo "$as_me: failed program was:" >&5 |
5696 | sed 's/^/| /' conftest.$ac_ext >&5 |
5697 | |
dd184caf |
5698 | ac_compiler_gnu=no |
d9898ee8 |
5699 | fi |
dd184caf |
5700 | |
5701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5702 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5703 | |
5704 | fi |
dd184caf |
5705 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
5706 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
d9898ee8 |
5707 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
5708 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5709 | ac_save_CXXFLAGS=$CXXFLAGS |
dd184caf |
5710 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
5711 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
5712 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
5713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5714 | else |
dd184caf |
5715 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
5716 | ac_cxx_werror_flag=yes |
5717 | ac_cv_prog_cxx_g=no |
5718 | CXXFLAGS="-g" |
5719 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5720 | /* confdefs.h. */ |
5721 | _ACEOF |
5722 | cat confdefs.h >>conftest.$ac_ext |
5723 | cat >>conftest.$ac_ext <<_ACEOF |
5724 | /* end confdefs.h. */ |
5725 | |
5726 | int |
5727 | main () |
5728 | { |
5729 | |
5730 | ; |
5731 | return 0; |
5732 | } |
5733 | _ACEOF |
5734 | rm -f conftest.$ac_objext |
dd184caf |
5735 | if { (ac_try="$ac_compile" |
5736 | case "(($ac_try" in |
5737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5738 | *) ac_try_echo=$ac_try;; |
5739 | esac |
5740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5741 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5742 | ac_status=$? |
5743 | grep -v '^ *+' conftest.er1 >conftest.err |
5744 | rm -f conftest.er1 |
5745 | cat conftest.err >&5 |
5746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5747 | (exit $ac_status); } && { |
5748 | test -z "$ac_cxx_werror_flag" || |
5749 | test ! -s conftest.err |
5750 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5751 | ac_cv_prog_cxx_g=yes |
5752 | else |
5753 | echo "$as_me: failed program was:" >&5 |
5754 | sed 's/^/| /' conftest.$ac_ext >&5 |
5755 | |
dd184caf |
5756 | CXXFLAGS="" |
5757 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5758 | /* confdefs.h. */ |
5759 | _ACEOF |
5760 | cat confdefs.h >>conftest.$ac_ext |
5761 | cat >>conftest.$ac_ext <<_ACEOF |
5762 | /* end confdefs.h. */ |
dd184caf |
5763 | |
d9898ee8 |
5764 | int |
5765 | main () |
5766 | { |
dd184caf |
5767 | |
d9898ee8 |
5768 | ; |
5769 | return 0; |
5770 | } |
5771 | _ACEOF |
5772 | rm -f conftest.$ac_objext |
dd184caf |
5773 | if { (ac_try="$ac_compile" |
5774 | case "(($ac_try" in |
5775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5776 | *) ac_try_echo=$ac_try;; |
5777 | esac |
5778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5779 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5780 | ac_status=$? |
5781 | grep -v '^ *+' conftest.er1 >conftest.err |
5782 | rm -f conftest.er1 |
5783 | cat conftest.err >&5 |
5784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5785 | (exit $ac_status); } && { |
5786 | test -z "$ac_cxx_werror_flag" || |
5787 | test ! -s conftest.err |
5788 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5789 | : |
5790 | else |
5791 | echo "$as_me: failed program was:" >&5 |
5792 | sed 's/^/| /' conftest.$ac_ext >&5 |
5793 | |
dd184caf |
5794 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5795 | CXXFLAGS="-g" |
5796 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5797 | /* confdefs.h. */ |
5798 | _ACEOF |
5799 | cat confdefs.h >>conftest.$ac_ext |
5800 | cat >>conftest.$ac_ext <<_ACEOF |
5801 | /* end confdefs.h. */ |
dd184caf |
5802 | |
d9898ee8 |
5803 | int |
5804 | main () |
5805 | { |
dd184caf |
5806 | |
d9898ee8 |
5807 | ; |
5808 | return 0; |
5809 | } |
5810 | _ACEOF |
5811 | rm -f conftest.$ac_objext |
dd184caf |
5812 | if { (ac_try="$ac_compile" |
5813 | case "(($ac_try" in |
5814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5815 | *) ac_try_echo=$ac_try;; |
5816 | esac |
5817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5818 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5819 | ac_status=$? |
5820 | grep -v '^ *+' conftest.er1 >conftest.err |
5821 | rm -f conftest.er1 |
5822 | cat conftest.err >&5 |
5823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5824 | (exit $ac_status); } && { |
5825 | test -z "$ac_cxx_werror_flag" || |
5826 | test ! -s conftest.err |
5827 | } && test -s conftest.$ac_objext; then |
5828 | ac_cv_prog_cxx_g=yes |
d9898ee8 |
5829 | else |
5830 | echo "$as_me: failed program was:" >&5 |
5831 | sed 's/^/| /' conftest.$ac_ext >&5 |
5832 | |
dd184caf |
5833 | |
d9898ee8 |
5834 | fi |
dd184caf |
5835 | |
5836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5837 | fi |
5838 | |
dd184caf |
5839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5840 | fi |
5841 | |
5842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5843 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5844 | fi |
5845 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
5846 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
5847 | if test "$ac_test_CXXFLAGS" = set; then |
5848 | CXXFLAGS=$ac_save_CXXFLAGS |
5849 | elif test $ac_cv_prog_cxx_g = yes; then |
5850 | if test "$GXX" = yes; then |
5851 | CXXFLAGS="-g -O2" |
5852 | else |
5853 | CXXFLAGS="-g" |
5854 | fi |
5855 | else |
5856 | if test "$GXX" = yes; then |
5857 | CXXFLAGS="-O2" |
5858 | else |
5859 | CXXFLAGS= |
5860 | fi |
5861 | fi |
5862 | ac_ext=cpp |
d9898ee8 |
5863 | ac_cpp='$CXXCPP $CPPFLAGS' |
5864 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5865 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5866 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5867 | |
5868 | depcc="$CXX" am_compiler_list= |
5869 | |
dd184caf |
5870 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5871 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
5872 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
5873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5874 | else |
5875 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5876 | # We make a subdir and do the tests there. Otherwise we can end up |
5877 | # making bogus files that we don't know about and never remove. For |
5878 | # instance it was reported that on HP-UX the gcc test will end up |
5879 | # making a dummy file named `D' -- because `-MD' means `put the output |
5880 | # in D'. |
5881 | mkdir conftest.dir |
5882 | # Copy depcomp to subdir because otherwise we won't find it if we're |
5883 | # using a relative directory. |
5884 | cp "$am_depcomp" conftest.dir |
5885 | cd conftest.dir |
5886 | # We will build objects and dependencies in a subdirectory because |
5887 | # it helps to detect inapplicable dependency modes. For instance |
5888 | # both Tru64's cc and ICC support -MD to output dependencies as a |
5889 | # side effect of compilation, but ICC will put the dependencies in |
5890 | # the current directory while Tru64 will put them in the object |
5891 | # directory. |
5892 | mkdir sub |
5893 | |
5894 | am_cv_CXX_dependencies_compiler_type=none |
5895 | if test "$am_compiler_list" = ""; then |
5896 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
5897 | fi |
5898 | for depmode in $am_compiler_list; do |
5899 | # Setup a source with many dependencies, because some compilers |
5900 | # like to wrap large dependency lists on column 80 (with \), and |
5901 | # we should not choose a depcomp mode which is confused by this. |
5902 | # |
5903 | # We need to recreate these files for each test, as the compiler may |
5904 | # overwrite some of them when testing with obscure command lines. |
5905 | # This happens at least with the AIX C compiler. |
5906 | : > sub/conftest.c |
5907 | for i in 1 2 3 4 5 6; do |
5908 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
5909 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
5910 | # Solaris 8's {/usr,}/bin/sh. |
5911 | touch sub/conftst$i.h |
5912 | done |
5913 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
5914 | |
5915 | case $depmode in |
5916 | nosideeffect) |
5917 | # after this tag, mechanisms are not by side-effect, so they'll |
5918 | # only be used when explicitly requested |
5919 | if test "x$enable_dependency_tracking" = xyes; then |
5920 | continue |
5921 | else |
5922 | break |
5923 | fi |
5924 | ;; |
5925 | none) break ;; |
5926 | esac |
5927 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5928 | # mode. It turns out that the SunPro C++ compiler does not properly |
5929 | # handle `-M -o', and we need to detect this. |
5930 | if depmode=$depmode \ |
5931 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
5932 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5933 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
5934 | >/dev/null 2>conftest.err && |
dd184caf |
5935 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
5936 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5937 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
5938 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5939 | # icc doesn't choke on unknown options, it will just issue warnings |
5940 | # or remarks (even with -Werror). So we grep stderr for any message |
5941 | # that says an option was ignored or not supported. |
5942 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
5943 | # icc: Command line warning: ignoring option '-M'; no argument required |
5944 | # The diagnosis changed in icc 8.0: |
5945 | # icc: Command line remark: option '-MP' not supported |
5946 | if (grep 'ignoring option' conftest.err || |
5947 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
5948 | am_cv_CXX_dependencies_compiler_type=$depmode |
5949 | break |
5950 | fi |
5951 | fi |
5952 | done |
5953 | |
5954 | cd .. |
5955 | rm -rf conftest.dir |
5956 | else |
5957 | am_cv_CXX_dependencies_compiler_type=none |
5958 | fi |
5959 | |
5960 | fi |
dd184caf |
5961 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5962 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
d9898ee8 |
5963 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5964 | |
dd184caf |
5965 | if |
d9898ee8 |
5966 | test "x$enable_dependency_tracking" != xno \ |
5967 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
5968 | am__fastdepCXX_TRUE= |
5969 | am__fastdepCXX_FALSE='#' |
5970 | else |
5971 | am__fastdepCXX_TRUE='#' |
5972 | am__fastdepCXX_FALSE= |
5973 | fi |
5974 | |
5975 | |
5976 | |
5977 | |
5978 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5979 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5980 | (test "X$CXX" != "Xg++"))) ; then |
dd184caf |
5981 | ac_ext=cpp |
d9898ee8 |
5982 | ac_cpp='$CXXCPP $CPPFLAGS' |
5983 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5984 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5985 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
dd184caf |
5986 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5987 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
5988 | if test -z "$CXXCPP"; then |
5989 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5991 | else |
5992 | # Double quotes because CXXCPP needs to be expanded |
5993 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5994 | do |
5995 | ac_preproc_ok=false |
5996 | for ac_cxx_preproc_warn_flag in '' yes |
5997 | do |
5998 | # Use a header file that comes with gcc, so configuring glibc |
5999 | # with a fresh cross-compiler works. |
6000 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6001 | # <limits.h> exists even on freestanding compilers. |
6002 | # On the NeXT, cc -E runs the code through the compiler's parser, |
6003 | # not just through cpp. "Syntax error" is here to catch this case. |
6004 | cat >conftest.$ac_ext <<_ACEOF |
6005 | /* confdefs.h. */ |
6006 | _ACEOF |
6007 | cat confdefs.h >>conftest.$ac_ext |
6008 | cat >>conftest.$ac_ext <<_ACEOF |
6009 | /* end confdefs.h. */ |
6010 | #ifdef __STDC__ |
6011 | # include <limits.h> |
6012 | #else |
6013 | # include <assert.h> |
6014 | #endif |
6015 | Syntax error |
6016 | _ACEOF |
dd184caf |
6017 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6018 | case "(($ac_try" in |
6019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6020 | *) ac_try_echo=$ac_try;; |
6021 | esac |
6022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6023 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
6024 | ac_status=$? |
6025 | grep -v '^ *+' conftest.er1 >conftest.err |
6026 | rm -f conftest.er1 |
6027 | cat conftest.err >&5 |
6028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6029 | (exit $ac_status); } >/dev/null && { |
6030 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
6031 | test ! -s conftest.err |
6032 | }; then |
d9898ee8 |
6033 | : |
6034 | else |
6035 | echo "$as_me: failed program was:" >&5 |
6036 | sed 's/^/| /' conftest.$ac_ext >&5 |
6037 | |
6038 | # Broken: fails on valid input. |
6039 | continue |
6040 | fi |
dd184caf |
6041 | |
d9898ee8 |
6042 | rm -f conftest.err conftest.$ac_ext |
6043 | |
dd184caf |
6044 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
6045 | # can be detected and how. |
6046 | cat >conftest.$ac_ext <<_ACEOF |
6047 | /* confdefs.h. */ |
6048 | _ACEOF |
6049 | cat confdefs.h >>conftest.$ac_ext |
6050 | cat >>conftest.$ac_ext <<_ACEOF |
6051 | /* end confdefs.h. */ |
6052 | #include <ac_nonexistent.h> |
6053 | _ACEOF |
dd184caf |
6054 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6055 | case "(($ac_try" in |
6056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6057 | *) ac_try_echo=$ac_try;; |
6058 | esac |
6059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6060 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
6061 | ac_status=$? |
6062 | grep -v '^ *+' conftest.er1 >conftest.err |
6063 | rm -f conftest.er1 |
6064 | cat conftest.err >&5 |
6065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6066 | (exit $ac_status); } >/dev/null && { |
6067 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
6068 | test ! -s conftest.err |
6069 | }; then |
d9898ee8 |
6070 | # Broken: success on invalid input. |
6071 | continue |
6072 | else |
6073 | echo "$as_me: failed program was:" >&5 |
6074 | sed 's/^/| /' conftest.$ac_ext >&5 |
6075 | |
6076 | # Passes both tests. |
6077 | ac_preproc_ok=: |
6078 | break |
6079 | fi |
dd184caf |
6080 | |
d9898ee8 |
6081 | rm -f conftest.err conftest.$ac_ext |
6082 | |
6083 | done |
6084 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6085 | rm -f conftest.err conftest.$ac_ext |
6086 | if $ac_preproc_ok; then |
6087 | break |
6088 | fi |
6089 | |
6090 | done |
6091 | ac_cv_prog_CXXCPP=$CXXCPP |
6092 | |
6093 | fi |
6094 | CXXCPP=$ac_cv_prog_CXXCPP |
6095 | else |
6096 | ac_cv_prog_CXXCPP=$CXXCPP |
6097 | fi |
dd184caf |
6098 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
6099 | echo "${ECHO_T}$CXXCPP" >&6; } |
d9898ee8 |
6100 | ac_preproc_ok=false |
6101 | for ac_cxx_preproc_warn_flag in '' yes |
6102 | do |
6103 | # Use a header file that comes with gcc, so configuring glibc |
6104 | # with a fresh cross-compiler works. |
6105 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6106 | # <limits.h> exists even on freestanding compilers. |
6107 | # On the NeXT, cc -E runs the code through the compiler's parser, |
6108 | # not just through cpp. "Syntax error" is here to catch this case. |
6109 | cat >conftest.$ac_ext <<_ACEOF |
6110 | /* confdefs.h. */ |
6111 | _ACEOF |
6112 | cat confdefs.h >>conftest.$ac_ext |
6113 | cat >>conftest.$ac_ext <<_ACEOF |
6114 | /* end confdefs.h. */ |
6115 | #ifdef __STDC__ |
6116 | # include <limits.h> |
6117 | #else |
6118 | # include <assert.h> |
6119 | #endif |
6120 | Syntax error |
6121 | _ACEOF |
dd184caf |
6122 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6123 | case "(($ac_try" in |
6124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6125 | *) ac_try_echo=$ac_try;; |
6126 | esac |
6127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6128 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
6129 | ac_status=$? |
6130 | grep -v '^ *+' conftest.er1 >conftest.err |
6131 | rm -f conftest.er1 |
6132 | cat conftest.err >&5 |
6133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6134 | (exit $ac_status); } >/dev/null && { |
6135 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
6136 | test ! -s conftest.err |
6137 | }; then |
d9898ee8 |
6138 | : |
6139 | else |
6140 | echo "$as_me: failed program was:" >&5 |
6141 | sed 's/^/| /' conftest.$ac_ext >&5 |
6142 | |
6143 | # Broken: fails on valid input. |
6144 | continue |
6145 | fi |
dd184caf |
6146 | |
d9898ee8 |
6147 | rm -f conftest.err conftest.$ac_ext |
6148 | |
dd184caf |
6149 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
6150 | # can be detected and how. |
6151 | cat >conftest.$ac_ext <<_ACEOF |
6152 | /* confdefs.h. */ |
6153 | _ACEOF |
6154 | cat confdefs.h >>conftest.$ac_ext |
6155 | cat >>conftest.$ac_ext <<_ACEOF |
6156 | /* end confdefs.h. */ |
6157 | #include <ac_nonexistent.h> |
6158 | _ACEOF |
dd184caf |
6159 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6160 | case "(($ac_try" in |
6161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6162 | *) ac_try_echo=$ac_try;; |
6163 | esac |
6164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6165 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
6166 | ac_status=$? |
6167 | grep -v '^ *+' conftest.er1 >conftest.err |
6168 | rm -f conftest.er1 |
6169 | cat conftest.err >&5 |
6170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6171 | (exit $ac_status); } >/dev/null && { |
6172 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
6173 | test ! -s conftest.err |
6174 | }; then |
d9898ee8 |
6175 | # Broken: success on invalid input. |
6176 | continue |
6177 | else |
6178 | echo "$as_me: failed program was:" >&5 |
6179 | sed 's/^/| /' conftest.$ac_ext >&5 |
6180 | |
6181 | # Passes both tests. |
6182 | ac_preproc_ok=: |
6183 | break |
6184 | fi |
dd184caf |
6185 | |
d9898ee8 |
6186 | rm -f conftest.err conftest.$ac_ext |
6187 | |
6188 | done |
6189 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6190 | rm -f conftest.err conftest.$ac_ext |
6191 | if $ac_preproc_ok; then |
6192 | : |
6193 | else |
6194 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
6195 | See \`config.log' for more details." >&5 |
6196 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
6197 | See \`config.log' for more details." >&2;} |
6198 | { (exit 1); exit 1; }; } |
6199 | fi |
6200 | |
dd184caf |
6201 | ac_ext=cpp |
d9898ee8 |
6202 | ac_cpp='$CXXCPP $CPPFLAGS' |
6203 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6204 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6205 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
6206 | |
6207 | fi |
6208 | |
6209 | |
6210 | ac_ext=f |
6211 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
6212 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6213 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
6214 | if test -n "$ac_tool_prefix"; then |
dd184caf |
6215 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn |
d9898ee8 |
6216 | do |
6217 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
6218 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
6219 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6220 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6221 | if test "${ac_cv_prog_F77+set}" = set; then |
6222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6223 | else |
6224 | if test -n "$F77"; then |
6225 | ac_cv_prog_F77="$F77" # Let the user override the test. |
6226 | else |
6227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6228 | for as_dir in $PATH |
6229 | do |
6230 | IFS=$as_save_IFS |
6231 | test -z "$as_dir" && as_dir=. |
6232 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6233 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6234 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
6235 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6236 | break 2 |
6237 | fi |
6238 | done |
6239 | done |
dd184caf |
6240 | IFS=$as_save_IFS |
d9898ee8 |
6241 | |
6242 | fi |
6243 | fi |
6244 | F77=$ac_cv_prog_F77 |
6245 | if test -n "$F77"; then |
dd184caf |
6246 | { echo "$as_me:$LINENO: result: $F77" >&5 |
6247 | echo "${ECHO_T}$F77" >&6; } |
d9898ee8 |
6248 | else |
dd184caf |
6249 | { echo "$as_me:$LINENO: result: no" >&5 |
6250 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6251 | fi |
6252 | |
dd184caf |
6253 | |
d9898ee8 |
6254 | test -n "$F77" && break |
6255 | done |
6256 | fi |
6257 | if test -z "$F77"; then |
6258 | ac_ct_F77=$F77 |
dd184caf |
6259 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn |
d9898ee8 |
6260 | do |
6261 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
6262 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
6263 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6264 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6265 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
6266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6267 | else |
6268 | if test -n "$ac_ct_F77"; then |
6269 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
6270 | else |
6271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6272 | for as_dir in $PATH |
6273 | do |
6274 | IFS=$as_save_IFS |
6275 | test -z "$as_dir" && as_dir=. |
6276 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6277 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6278 | ac_cv_prog_ac_ct_F77="$ac_prog" |
6279 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6280 | break 2 |
6281 | fi |
6282 | done |
6283 | done |
dd184caf |
6284 | IFS=$as_save_IFS |
d9898ee8 |
6285 | |
6286 | fi |
6287 | fi |
6288 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
6289 | if test -n "$ac_ct_F77"; then |
dd184caf |
6290 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
6291 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
d9898ee8 |
6292 | else |
dd184caf |
6293 | { echo "$as_me:$LINENO: result: no" >&5 |
6294 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6295 | fi |
6296 | |
dd184caf |
6297 | |
d9898ee8 |
6298 | test -n "$ac_ct_F77" && break |
6299 | done |
6300 | |
dd184caf |
6301 | if test "x$ac_ct_F77" = x; then |
6302 | F77="" |
6303 | else |
6304 | case $cross_compiling:$ac_tool_warned in |
6305 | yes:) |
6306 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6307 | whose name does not start with the host triplet. If you think this |
6308 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6309 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6310 | whose name does not start with the host triplet. If you think this |
6311 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6312 | ac_tool_warned=yes ;; |
6313 | esac |
6314 | F77=$ac_ct_F77 |
6315 | fi |
d9898ee8 |
6316 | fi |
6317 | |
6318 | |
6319 | # Provide some information about the compiler. |
dd184caf |
6320 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
d9898ee8 |
6321 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
6322 | { (ac_try="$ac_compiler --version >&5" |
6323 | case "(($ac_try" in |
6324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6325 | *) ac_try_echo=$ac_try;; |
6326 | esac |
6327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6328 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
6329 | ac_status=$? |
6330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6331 | (exit $ac_status); } |
dd184caf |
6332 | { (ac_try="$ac_compiler -v >&5" |
6333 | case "(($ac_try" in |
6334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6335 | *) ac_try_echo=$ac_try;; |
6336 | esac |
6337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6338 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
6339 | ac_status=$? |
6340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6341 | (exit $ac_status); } |
dd184caf |
6342 | { (ac_try="$ac_compiler -V >&5" |
6343 | case "(($ac_try" in |
6344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6345 | *) ac_try_echo=$ac_try;; |
6346 | esac |
6347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6348 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
6349 | ac_status=$? |
6350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6351 | (exit $ac_status); } |
6352 | rm -f a.out |
6353 | |
6354 | # If we don't use `.F' as extension, the preprocessor is not run on the |
6355 | # input file. (Note that this only needs to work for GNU compilers.) |
6356 | ac_save_ext=$ac_ext |
6357 | ac_ext=F |
dd184caf |
6358 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
6359 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
d9898ee8 |
6360 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
6361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6362 | else |
6363 | cat >conftest.$ac_ext <<_ACEOF |
6364 | program main |
6365 | #ifndef __GNUC__ |
6366 | choke me |
6367 | #endif |
6368 | |
6369 | end |
6370 | _ACEOF |
6371 | rm -f conftest.$ac_objext |
dd184caf |
6372 | if { (ac_try="$ac_compile" |
6373 | case "(($ac_try" in |
6374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6375 | *) ac_try_echo=$ac_try;; |
6376 | esac |
6377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6378 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6379 | ac_status=$? |
6380 | grep -v '^ *+' conftest.er1 >conftest.err |
6381 | rm -f conftest.er1 |
6382 | cat conftest.err >&5 |
6383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6384 | (exit $ac_status); } && { |
6385 | test -z "$ac_f77_werror_flag" || |
6386 | test ! -s conftest.err |
6387 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6388 | ac_compiler_gnu=yes |
6389 | else |
6390 | echo "$as_me: failed program was:" >&5 |
6391 | sed 's/^/| /' conftest.$ac_ext >&5 |
6392 | |
dd184caf |
6393 | ac_compiler_gnu=no |
d9898ee8 |
6394 | fi |
dd184caf |
6395 | |
6396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6397 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
6398 | |
6399 | fi |
dd184caf |
6400 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
6401 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
d9898ee8 |
6402 | ac_ext=$ac_save_ext |
6403 | ac_test_FFLAGS=${FFLAGS+set} |
6404 | ac_save_FFLAGS=$FFLAGS |
6405 | FFLAGS= |
dd184caf |
6406 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
6407 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
6408 | if test "${ac_cv_prog_f77_g+set}" = set; then |
6409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6410 | else |
6411 | FFLAGS=-g |
6412 | cat >conftest.$ac_ext <<_ACEOF |
6413 | program main |
6414 | |
6415 | end |
6416 | _ACEOF |
6417 | rm -f conftest.$ac_objext |
dd184caf |
6418 | if { (ac_try="$ac_compile" |
6419 | case "(($ac_try" in |
6420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6421 | *) ac_try_echo=$ac_try;; |
6422 | esac |
6423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6424 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6425 | ac_status=$? |
6426 | grep -v '^ *+' conftest.er1 >conftest.err |
6427 | rm -f conftest.er1 |
6428 | cat conftest.err >&5 |
6429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6430 | (exit $ac_status); } && { |
6431 | test -z "$ac_f77_werror_flag" || |
6432 | test ! -s conftest.err |
6433 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6434 | ac_cv_prog_f77_g=yes |
6435 | else |
6436 | echo "$as_me: failed program was:" >&5 |
6437 | sed 's/^/| /' conftest.$ac_ext >&5 |
6438 | |
dd184caf |
6439 | ac_cv_prog_f77_g=no |
d9898ee8 |
6440 | fi |
dd184caf |
6441 | |
6442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6443 | |
6444 | fi |
dd184caf |
6445 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
6446 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
d9898ee8 |
6447 | if test "$ac_test_FFLAGS" = set; then |
6448 | FFLAGS=$ac_save_FFLAGS |
6449 | elif test $ac_cv_prog_f77_g = yes; then |
6450 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6451 | FFLAGS="-g -O2" |
6452 | else |
6453 | FFLAGS="-g" |
6454 | fi |
6455 | else |
6456 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6457 | FFLAGS="-O2" |
6458 | else |
6459 | FFLAGS= |
6460 | fi |
6461 | fi |
6462 | |
6463 | G77=`test $ac_compiler_gnu = yes && echo yes` |
6464 | ac_ext=c |
6465 | ac_cpp='$CPP $CPPFLAGS' |
6466 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6467 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6468 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6469 | |
6470 | |
6471 | |
6472 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
6473 | |
6474 | # find the maximum length of command line arguments |
dd184caf |
6475 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
6476 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
d9898ee8 |
6477 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
6478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6479 | else |
6480 | i=0 |
6481 | teststring="ABCD" |
6482 | |
6483 | case $build_os in |
6484 | msdosdjgpp*) |
6485 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
6486 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
6487 | # during glob expansion). Even if it were fixed, the result of this |
6488 | # check would be larger than it should be. |
6489 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
6490 | ;; |
6491 | |
6492 | gnu*) |
6493 | # Under GNU Hurd, this test is not required because there is |
6494 | # no limit to the length of command line arguments. |
6495 | # Libtool will interpret -1 as no limit whatsoever |
6496 | lt_cv_sys_max_cmd_len=-1; |
6497 | ;; |
6498 | |
6499 | cygwin* | mingw*) |
6500 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6501 | # about 5 minutes as the teststring grows exponentially. |
6502 | # Worse, since 9x/ME are not pre-emptively multitasking, |
6503 | # you end up with a "frozen" computer, even though with patience |
6504 | # the test eventually succeeds (with a max line length of 256k). |
6505 | # Instead, let's just punt: use the minimum linelength reported by |
6506 | # all of the supported platforms: 8192 (on NT/2K/XP). |
6507 | lt_cv_sys_max_cmd_len=8192; |
6508 | ;; |
6509 | |
6510 | amigaos*) |
6511 | # On AmigaOS with pdksh, this test takes hours, literally. |
6512 | # So we just punt and use a minimum line length of 8192. |
6513 | lt_cv_sys_max_cmd_len=8192; |
6514 | ;; |
6515 | |
6516 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6517 | # This has been around since 386BSD, at least. Likely further. |
6518 | if test -x /sbin/sysctl; then |
6519 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
6520 | elif test -x /usr/sbin/sysctl; then |
6521 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
6522 | else |
6523 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
6524 | fi |
6525 | # And add a safety zone |
6526 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6527 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6528 | ;; |
6529 | |
6530 | interix*) |
6531 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
6532 | lt_cv_sys_max_cmd_len=196608 |
6533 | ;; |
6534 | |
6535 | osf*) |
6536 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
6537 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
6538 | # nice to cause kernel panics so lets avoid the loop below. |
6539 | # First set a reasonable default. |
6540 | lt_cv_sys_max_cmd_len=16384 |
6541 | # |
6542 | if test -x /sbin/sysconfig; then |
6543 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
6544 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
6545 | esac |
6546 | fi |
6547 | ;; |
6548 | sco3.2v5*) |
6549 | lt_cv_sys_max_cmd_len=102400 |
6550 | ;; |
6551 | sysv5* | sco5v6* | sysv4.2uw2*) |
6552 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
6553 | if test -n "$kargmax"; then |
6554 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
6555 | else |
6556 | lt_cv_sys_max_cmd_len=32768 |
6557 | fi |
6558 | ;; |
6559 | *) |
6560 | # If test is not a shell built-in, we'll probably end up computing a |
6561 | # maximum length that is only half of the actual maximum length, but |
6562 | # we can't tell. |
6563 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
6564 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
6565 | = "XX$teststring") >/dev/null 2>&1 && |
6566 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
6567 | lt_cv_sys_max_cmd_len=$new_result && |
6568 | test $i != 17 # 1/2 MB should be enough |
6569 | do |
6570 | i=`expr $i + 1` |
6571 | teststring=$teststring$teststring |
6572 | done |
6573 | teststring= |
6574 | # Add a significant safety factor because C++ compilers can tack on massive |
6575 | # amounts of additional arguments before passing them to the linker. |
6576 | # It appears as though 1/2 is a usable value. |
6577 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
6578 | ;; |
6579 | esac |
6580 | |
6581 | fi |
6582 | |
6583 | if test -n $lt_cv_sys_max_cmd_len ; then |
dd184caf |
6584 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
6585 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
d9898ee8 |
6586 | else |
dd184caf |
6587 | { echo "$as_me:$LINENO: result: none" >&5 |
6588 | echo "${ECHO_T}none" >&6; } |
d9898ee8 |
6589 | fi |
6590 | |
6591 | |
6592 | |
6593 | |
6594 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
dd184caf |
6595 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
6596 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
d9898ee8 |
6597 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
6598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6599 | else |
6600 | |
6601 | # These are sane defaults that work on at least a few old systems. |
6602 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6603 | |
6604 | # Character class describing NM global symbol codes. |
6605 | symcode='[BCDEGRST]' |
6606 | |
6607 | # Regexp to match symbols that can be accessed directly from C. |
6608 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6609 | |
6610 | # Transform an extracted symbol line into a proper C declaration |
6611 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
6612 | |
6613 | # Transform an extracted symbol line into symbol name and symbol address |
6614 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
6615 | |
6616 | # Define system-specific variables. |
6617 | case $host_os in |
6618 | aix*) |
6619 | symcode='[BCDT]' |
6620 | ;; |
6621 | cygwin* | mingw* | pw32*) |
6622 | symcode='[ABCDGISTW]' |
6623 | ;; |
6624 | hpux*) # Its linker distinguishes data from code symbols |
6625 | if test "$host_cpu" = ia64; then |
6626 | symcode='[ABCDEGRST]' |
6627 | fi |
6628 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6629 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
6630 | ;; |
6631 | linux*) |
6632 | if test "$host_cpu" = ia64; then |
6633 | symcode='[ABCDGIRSTW]' |
6634 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6635 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
6636 | fi |
6637 | ;; |
6638 | irix* | nonstopux*) |
6639 | symcode='[BCDEGRST]' |
6640 | ;; |
6641 | osf*) |
6642 | symcode='[BCDEGQRST]' |
6643 | ;; |
6644 | solaris*) |
6645 | symcode='[BDRT]' |
6646 | ;; |
6647 | sco3.2v5*) |
6648 | symcode='[DT]' |
6649 | ;; |
6650 | sysv4.2uw2*) |
6651 | symcode='[DT]' |
6652 | ;; |
6653 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6654 | symcode='[ABDT]' |
6655 | ;; |
6656 | sysv4) |
6657 | symcode='[DFNSTU]' |
6658 | ;; |
6659 | esac |
6660 | |
6661 | # Handle CRLF in mingw tool chain |
6662 | opt_cr= |
6663 | case $build_os in |
6664 | mingw*) |
6665 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6666 | ;; |
6667 | esac |
6668 | |
6669 | # If we're using GNU nm, then use its standard symbol codes. |
6670 | case `$NM -V 2>&1` in |
6671 | *GNU* | *'with BFD'*) |
6672 | symcode='[ABCDGIRSTW]' ;; |
6673 | esac |
6674 | |
6675 | # Try without a prefix undercore, then with it. |
6676 | for ac_symprfx in "" "_"; do |
6677 | |
6678 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6679 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
6680 | |
6681 | # Write the raw and C identifiers. |
6682 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6683 | |
6684 | # Check to see that the pipe works correctly. |
6685 | pipe_works=no |
6686 | |
6687 | rm -f conftest* |
6688 | cat > conftest.$ac_ext <<EOF |
6689 | #ifdef __cplusplus |
6690 | extern "C" { |
6691 | #endif |
6692 | char nm_test_var; |
6693 | void nm_test_func(){} |
6694 | #ifdef __cplusplus |
6695 | } |
6696 | #endif |
6697 | int main(){nm_test_var='a';nm_test_func();return(0);} |
6698 | EOF |
6699 | |
6700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6701 | (eval $ac_compile) 2>&5 |
6702 | ac_status=$? |
6703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6704 | (exit $ac_status); }; then |
6705 | # Now try to grab the symbols. |
6706 | nlist=conftest.nm |
6707 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
6708 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
6709 | ac_status=$? |
6710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6711 | (exit $ac_status); } && test -s "$nlist"; then |
6712 | # Try sorting and uniquifying the output. |
6713 | if sort "$nlist" | uniq > "$nlist"T; then |
6714 | mv -f "$nlist"T "$nlist" |
6715 | else |
6716 | rm -f "$nlist"T |
6717 | fi |
6718 | |
6719 | # Make sure that we snagged all the symbols we need. |
6720 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
6721 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
6722 | cat <<EOF > conftest.$ac_ext |
6723 | #ifdef __cplusplus |
6724 | extern "C" { |
6725 | #endif |
6726 | |
6727 | EOF |
6728 | # Now generate the symbol file. |
6729 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
6730 | |
6731 | cat <<EOF >> conftest.$ac_ext |
6732 | #if defined (__STDC__) && __STDC__ |
6733 | # define lt_ptr_t void * |
6734 | #else |
6735 | # define lt_ptr_t char * |
6736 | # define const |
6737 | #endif |
6738 | |
6739 | /* The mapping between symbol names and symbols. */ |
6740 | const struct { |
6741 | const char *name; |
6742 | lt_ptr_t address; |
6743 | } |
6744 | lt_preloaded_symbols[] = |
6745 | { |
6746 | EOF |
6747 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
6748 | cat <<\EOF >> conftest.$ac_ext |
6749 | {0, (lt_ptr_t) 0} |
6750 | }; |
6751 | |
6752 | #ifdef __cplusplus |
6753 | } |
6754 | #endif |
6755 | EOF |
6756 | # Now try linking the two files. |
6757 | mv conftest.$ac_objext conftstm.$ac_objext |
6758 | lt_save_LIBS="$LIBS" |
6759 | lt_save_CFLAGS="$CFLAGS" |
6760 | LIBS="conftstm.$ac_objext" |
6761 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6762 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6763 | (eval $ac_link) 2>&5 |
6764 | ac_status=$? |
6765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6766 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6767 | pipe_works=yes |
6768 | fi |
6769 | LIBS="$lt_save_LIBS" |
6770 | CFLAGS="$lt_save_CFLAGS" |
6771 | else |
6772 | echo "cannot find nm_test_func in $nlist" >&5 |
6773 | fi |
6774 | else |
6775 | echo "cannot find nm_test_var in $nlist" >&5 |
6776 | fi |
6777 | else |
6778 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6779 | fi |
6780 | else |
6781 | echo "$progname: failed program was:" >&5 |
6782 | cat conftest.$ac_ext >&5 |
6783 | fi |
6784 | rm -f conftest* conftst* |
6785 | |
6786 | # Do not use the global_symbol_pipe unless it works. |
6787 | if test "$pipe_works" = yes; then |
6788 | break |
6789 | else |
6790 | lt_cv_sys_global_symbol_pipe= |
6791 | fi |
6792 | done |
6793 | |
6794 | fi |
6795 | |
6796 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6797 | lt_cv_sys_global_symbol_to_cdecl= |
6798 | fi |
6799 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
dd184caf |
6800 | { echo "$as_me:$LINENO: result: failed" >&5 |
6801 | echo "${ECHO_T}failed" >&6; } |
d9898ee8 |
6802 | else |
dd184caf |
6803 | { echo "$as_me:$LINENO: result: ok" >&5 |
6804 | echo "${ECHO_T}ok" >&6; } |
d9898ee8 |
6805 | fi |
6806 | |
dd184caf |
6807 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
6808 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
d9898ee8 |
6809 | if test "${lt_cv_objdir+set}" = set; then |
6810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6811 | else |
6812 | rm -f .libs 2>/dev/null |
6813 | mkdir .libs 2>/dev/null |
6814 | if test -d .libs; then |
6815 | lt_cv_objdir=.libs |
6816 | else |
6817 | # MS-DOS does not allow filenames that begin with a dot. |
6818 | lt_cv_objdir=_libs |
6819 | fi |
6820 | rmdir .libs 2>/dev/null |
6821 | fi |
dd184caf |
6822 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6823 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
d9898ee8 |
6824 | objdir=$lt_cv_objdir |
6825 | |
6826 | |
6827 | |
6828 | |
6829 | |
6830 | case $host_os in |
6831 | aix3*) |
6832 | # AIX sometimes has problems with the GCC collect2 program. For some |
6833 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
6834 | # vanish in a puff of smoke. |
6835 | if test "X${COLLECT_NAMES+set}" != Xset; then |
6836 | COLLECT_NAMES= |
6837 | export COLLECT_NAMES |
6838 | fi |
6839 | ;; |
6840 | esac |
6841 | |
6842 | # Sed substitution that helps us do robust quoting. It backslashifies |
6843 | # metacharacters that are still active within double-quoted strings. |
6844 | Xsed='sed -e 1s/^X//' |
6845 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
6846 | |
6847 | # Same as above, but do not quote variable references. |
6848 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
6849 | |
6850 | # Sed substitution to delay expansion of an escaped shell variable in a |
6851 | # double_quote_subst'ed string. |
6852 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
6853 | |
6854 | # Sed substitution to avoid accidental globbing in evaled expressions |
6855 | no_glob_subst='s/\*/\\\*/g' |
6856 | |
6857 | # Constants: |
6858 | rm="rm -f" |
6859 | |
6860 | # Global variables: |
6861 | default_ofile=libtool |
6862 | can_build_shared=yes |
6863 | |
6864 | # All known linkers require a `.a' archive for static linking (except MSVC, |
6865 | # which needs '.lib'). |
6866 | libext=a |
6867 | ltmain="$ac_aux_dir/ltmain.sh" |
6868 | ofile="$default_ofile" |
6869 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
6870 | |
6871 | if test -n "$ac_tool_prefix"; then |
6872 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6873 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
dd184caf |
6874 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6875 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6876 | if test "${ac_cv_prog_AR+set}" = set; then |
6877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6878 | else |
6879 | if test -n "$AR"; then |
6880 | ac_cv_prog_AR="$AR" # Let the user override the test. |
6881 | else |
6882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6883 | for as_dir in $PATH |
6884 | do |
6885 | IFS=$as_save_IFS |
6886 | test -z "$as_dir" && as_dir=. |
6887 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6888 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6889 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6890 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6891 | break 2 |
6892 | fi |
6893 | done |
6894 | done |
dd184caf |
6895 | IFS=$as_save_IFS |
d9898ee8 |
6896 | |
6897 | fi |
6898 | fi |
6899 | AR=$ac_cv_prog_AR |
6900 | if test -n "$AR"; then |
dd184caf |
6901 | { echo "$as_me:$LINENO: result: $AR" >&5 |
6902 | echo "${ECHO_T}$AR" >&6; } |
d9898ee8 |
6903 | else |
dd184caf |
6904 | { echo "$as_me:$LINENO: result: no" >&5 |
6905 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6906 | fi |
6907 | |
dd184caf |
6908 | |
d9898ee8 |
6909 | fi |
6910 | if test -z "$ac_cv_prog_AR"; then |
6911 | ac_ct_AR=$AR |
6912 | # Extract the first word of "ar", so it can be a program name with args. |
6913 | set dummy ar; ac_word=$2 |
dd184caf |
6914 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6915 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6916 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6918 | else |
6919 | if test -n "$ac_ct_AR"; then |
6920 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
6921 | else |
6922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6923 | for as_dir in $PATH |
6924 | do |
6925 | IFS=$as_save_IFS |
6926 | test -z "$as_dir" && as_dir=. |
6927 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6928 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6929 | ac_cv_prog_ac_ct_AR="ar" |
6930 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6931 | break 2 |
6932 | fi |
6933 | done |
6934 | done |
dd184caf |
6935 | IFS=$as_save_IFS |
d9898ee8 |
6936 | |
d9898ee8 |
6937 | fi |
6938 | fi |
6939 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6940 | if test -n "$ac_ct_AR"; then |
dd184caf |
6941 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6942 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
d9898ee8 |
6943 | else |
dd184caf |
6944 | { echo "$as_me:$LINENO: result: no" >&5 |
6945 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6946 | fi |
6947 | |
dd184caf |
6948 | if test "x$ac_ct_AR" = x; then |
6949 | AR="false" |
6950 | else |
6951 | case $cross_compiling:$ac_tool_warned in |
6952 | yes:) |
6953 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6954 | whose name does not start with the host triplet. If you think this |
6955 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6956 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6957 | whose name does not start with the host triplet. If you think this |
6958 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6959 | ac_tool_warned=yes ;; |
6960 | esac |
6961 | AR=$ac_ct_AR |
6962 | fi |
d9898ee8 |
6963 | else |
6964 | AR="$ac_cv_prog_AR" |
6965 | fi |
6966 | |
6967 | if test -n "$ac_tool_prefix"; then |
6968 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6969 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
dd184caf |
6970 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6971 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6972 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6974 | else |
6975 | if test -n "$RANLIB"; then |
6976 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6977 | else |
6978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6979 | for as_dir in $PATH |
6980 | do |
6981 | IFS=$as_save_IFS |
6982 | test -z "$as_dir" && as_dir=. |
6983 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6985 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6986 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6987 | break 2 |
6988 | fi |
6989 | done |
6990 | done |
dd184caf |
6991 | IFS=$as_save_IFS |
d9898ee8 |
6992 | |
6993 | fi |
6994 | fi |
6995 | RANLIB=$ac_cv_prog_RANLIB |
6996 | if test -n "$RANLIB"; then |
dd184caf |
6997 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6998 | echo "${ECHO_T}$RANLIB" >&6; } |
d9898ee8 |
6999 | else |
dd184caf |
7000 | { echo "$as_me:$LINENO: result: no" >&5 |
7001 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7002 | fi |
7003 | |
dd184caf |
7004 | |
d9898ee8 |
7005 | fi |
7006 | if test -z "$ac_cv_prog_RANLIB"; then |
7007 | ac_ct_RANLIB=$RANLIB |
7008 | # Extract the first word of "ranlib", so it can be a program name with args. |
7009 | set dummy ranlib; ac_word=$2 |
dd184caf |
7010 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7011 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
7012 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
7013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7014 | else |
7015 | if test -n "$ac_ct_RANLIB"; then |
7016 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
7017 | else |
7018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7019 | for as_dir in $PATH |
7020 | do |
7021 | IFS=$as_save_IFS |
7022 | test -z "$as_dir" && as_dir=. |
7023 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
7024 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
7025 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
7026 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7027 | break 2 |
7028 | fi |
7029 | done |
7030 | done |
dd184caf |
7031 | IFS=$as_save_IFS |
d9898ee8 |
7032 | |
d9898ee8 |
7033 | fi |
7034 | fi |
7035 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
7036 | if test -n "$ac_ct_RANLIB"; then |
dd184caf |
7037 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
7038 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
d9898ee8 |
7039 | else |
dd184caf |
7040 | { echo "$as_me:$LINENO: result: no" >&5 |
7041 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7042 | fi |
7043 | |
dd184caf |
7044 | if test "x$ac_ct_RANLIB" = x; then |
7045 | RANLIB=":" |
7046 | else |
7047 | case $cross_compiling:$ac_tool_warned in |
7048 | yes:) |
7049 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7050 | whose name does not start with the host triplet. If you think this |
7051 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
7052 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7053 | whose name does not start with the host triplet. If you think this |
7054 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
7055 | ac_tool_warned=yes ;; |
7056 | esac |
7057 | RANLIB=$ac_ct_RANLIB |
7058 | fi |
d9898ee8 |
7059 | else |
7060 | RANLIB="$ac_cv_prog_RANLIB" |
7061 | fi |
7062 | |
7063 | if test -n "$ac_tool_prefix"; then |
7064 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
7065 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
dd184caf |
7066 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7067 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
7068 | if test "${ac_cv_prog_STRIP+set}" = set; then |
7069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7070 | else |
7071 | if test -n "$STRIP"; then |
7072 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
7073 | else |
7074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7075 | for as_dir in $PATH |
7076 | do |
7077 | IFS=$as_save_IFS |
7078 | test -z "$as_dir" && as_dir=. |
7079 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
7080 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
7081 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
7082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7083 | break 2 |
7084 | fi |
7085 | done |
7086 | done |
dd184caf |
7087 | IFS=$as_save_IFS |
d9898ee8 |
7088 | |
7089 | fi |
7090 | fi |
7091 | STRIP=$ac_cv_prog_STRIP |
7092 | if test -n "$STRIP"; then |
dd184caf |
7093 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
7094 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
7095 | else |
dd184caf |
7096 | { echo "$as_me:$LINENO: result: no" >&5 |
7097 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7098 | fi |
7099 | |
dd184caf |
7100 | |
d9898ee8 |
7101 | fi |
7102 | if test -z "$ac_cv_prog_STRIP"; then |
7103 | ac_ct_STRIP=$STRIP |
7104 | # Extract the first word of "strip", so it can be a program name with args. |
7105 | set dummy strip; ac_word=$2 |
dd184caf |
7106 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7107 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
7108 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
7109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7110 | else |
7111 | if test -n "$ac_ct_STRIP"; then |
7112 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
7113 | else |
7114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7115 | for as_dir in $PATH |
7116 | do |
7117 | IFS=$as_save_IFS |
7118 | test -z "$as_dir" && as_dir=. |
7119 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
7120 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
7121 | ac_cv_prog_ac_ct_STRIP="strip" |
7122 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7123 | break 2 |
7124 | fi |
7125 | done |
7126 | done |
dd184caf |
7127 | IFS=$as_save_IFS |
d9898ee8 |
7128 | |
d9898ee8 |
7129 | fi |
7130 | fi |
7131 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
7132 | if test -n "$ac_ct_STRIP"; then |
dd184caf |
7133 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
7134 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
7135 | else |
dd184caf |
7136 | { echo "$as_me:$LINENO: result: no" >&5 |
7137 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7138 | fi |
7139 | |
dd184caf |
7140 | if test "x$ac_ct_STRIP" = x; then |
7141 | STRIP=":" |
7142 | else |
7143 | case $cross_compiling:$ac_tool_warned in |
7144 | yes:) |
7145 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7146 | whose name does not start with the host triplet. If you think this |
7147 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
7148 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7149 | whose name does not start with the host triplet. If you think this |
7150 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
7151 | ac_tool_warned=yes ;; |
7152 | esac |
7153 | STRIP=$ac_ct_STRIP |
7154 | fi |
d9898ee8 |
7155 | else |
7156 | STRIP="$ac_cv_prog_STRIP" |
7157 | fi |
7158 | |
7159 | |
7160 | old_CC="$CC" |
7161 | old_CFLAGS="$CFLAGS" |
7162 | |
7163 | # Set sane defaults for various variables |
7164 | test -z "$AR" && AR=ar |
7165 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
7166 | test -z "$AS" && AS=as |
7167 | test -z "$CC" && CC=cc |
7168 | test -z "$LTCC" && LTCC=$CC |
7169 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
7170 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
7171 | test -z "$LD" && LD=ld |
7172 | test -z "$LN_S" && LN_S="ln -s" |
7173 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
7174 | test -z "$NM" && NM=nm |
7175 | test -z "$SED" && SED=sed |
7176 | test -z "$OBJDUMP" && OBJDUMP=objdump |
7177 | test -z "$RANLIB" && RANLIB=: |
7178 | test -z "$STRIP" && STRIP=: |
7179 | test -z "$ac_objext" && ac_objext=o |
7180 | |
7181 | # Determine commands to create old-style static archives. |
7182 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
7183 | old_postinstall_cmds='chmod 644 $oldlib' |
7184 | old_postuninstall_cmds= |
7185 | |
7186 | if test -n "$RANLIB"; then |
7187 | case $host_os in |
7188 | openbsd*) |
7189 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
7190 | ;; |
7191 | *) |
7192 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
7193 | ;; |
7194 | esac |
7195 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
7196 | fi |
7197 | |
7198 | for cc_temp in $compiler""; do |
7199 | case $cc_temp in |
7200 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7201 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7202 | \-*) ;; |
7203 | *) break;; |
7204 | esac |
7205 | done |
7206 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7207 | |
7208 | |
7209 | # Only perform the check for file, if the check method requires it |
7210 | case $deplibs_check_method in |
7211 | file_magic*) |
7212 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
dd184caf |
7213 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
7214 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
d9898ee8 |
7215 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7217 | else |
7218 | case $MAGIC_CMD in |
7219 | [\\/*] | ?:[\\/]*) |
7220 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7221 | ;; |
7222 | *) |
7223 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7224 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7225 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7226 | for ac_dir in $ac_dummy; do |
7227 | IFS="$lt_save_ifs" |
7228 | test -z "$ac_dir" && ac_dir=. |
7229 | if test -f $ac_dir/${ac_tool_prefix}file; then |
7230 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
7231 | if test -n "$file_magic_test_file"; then |
7232 | case $deplibs_check_method in |
7233 | "file_magic "*) |
7234 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7235 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7236 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7237 | $EGREP "$file_magic_regex" > /dev/null; then |
7238 | : |
7239 | else |
7240 | cat <<EOF 1>&2 |
7241 | |
7242 | *** Warning: the command libtool uses to detect shared libraries, |
7243 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7244 | *** The result is that libtool may fail to recognize shared libraries |
7245 | *** as such. This will affect the creation of libtool libraries that |
7246 | *** depend on shared libraries, but programs linked with such libtool |
7247 | *** libraries will work regardless of this problem. Nevertheless, you |
7248 | *** may want to report the problem to your system manager and/or to |
7249 | *** bug-libtool@gnu.org |
7250 | |
7251 | EOF |
7252 | fi ;; |
7253 | esac |
7254 | fi |
7255 | break |
7256 | fi |
7257 | done |
7258 | IFS="$lt_save_ifs" |
7259 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7260 | ;; |
7261 | esac |
7262 | fi |
7263 | |
7264 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7265 | if test -n "$MAGIC_CMD"; then |
dd184caf |
7266 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7267 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
7268 | else |
dd184caf |
7269 | { echo "$as_me:$LINENO: result: no" >&5 |
7270 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7271 | fi |
7272 | |
7273 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7274 | if test -n "$ac_tool_prefix"; then |
dd184caf |
7275 | { echo "$as_me:$LINENO: checking for file" >&5 |
7276 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
d9898ee8 |
7277 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7279 | else |
7280 | case $MAGIC_CMD in |
7281 | [\\/*] | ?:[\\/]*) |
7282 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7283 | ;; |
7284 | *) |
7285 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7286 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7287 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7288 | for ac_dir in $ac_dummy; do |
7289 | IFS="$lt_save_ifs" |
7290 | test -z "$ac_dir" && ac_dir=. |
7291 | if test -f $ac_dir/file; then |
7292 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
7293 | if test -n "$file_magic_test_file"; then |
7294 | case $deplibs_check_method in |
7295 | "file_magic "*) |
7296 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7297 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7298 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7299 | $EGREP "$file_magic_regex" > /dev/null; then |
7300 | : |
7301 | else |
7302 | cat <<EOF 1>&2 |
7303 | |
7304 | *** Warning: the command libtool uses to detect shared libraries, |
7305 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7306 | *** The result is that libtool may fail to recognize shared libraries |
7307 | *** as such. This will affect the creation of libtool libraries that |
7308 | *** depend on shared libraries, but programs linked with such libtool |
7309 | *** libraries will work regardless of this problem. Nevertheless, you |
7310 | *** may want to report the problem to your system manager and/or to |
7311 | *** bug-libtool@gnu.org |
7312 | |
7313 | EOF |
7314 | fi ;; |
7315 | esac |
7316 | fi |
7317 | break |
7318 | fi |
7319 | done |
7320 | IFS="$lt_save_ifs" |
7321 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7322 | ;; |
7323 | esac |
7324 | fi |
7325 | |
7326 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7327 | if test -n "$MAGIC_CMD"; then |
dd184caf |
7328 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7329 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
7330 | else |
dd184caf |
7331 | { echo "$as_me:$LINENO: result: no" >&5 |
7332 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7333 | fi |
7334 | |
7335 | else |
7336 | MAGIC_CMD=: |
7337 | fi |
7338 | fi |
7339 | |
7340 | fi |
7341 | ;; |
7342 | esac |
7343 | |
7344 | enable_dlopen=yes |
7345 | enable_win32_dll=no |
7346 | |
dd184caf |
7347 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
7348 | if test "${enable_libtool_lock+set}" = set; then |
dd184caf |
7349 | enableval=$enable_libtool_lock; |
7350 | fi |
d9898ee8 |
7351 | |
d9898ee8 |
7352 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7353 | |
7354 | |
dd184caf |
7355 | # Check whether --with-pic was given. |
d9898ee8 |
7356 | if test "${with_pic+set}" = set; then |
dd184caf |
7357 | withval=$with_pic; pic_mode="$withval" |
d9898ee8 |
7358 | else |
7359 | pic_mode=default |
dd184caf |
7360 | fi |
7361 | |
d9898ee8 |
7362 | test -z "$pic_mode" && pic_mode=default |
7363 | |
7364 | # Use C for the default configuration in the libtool script |
7365 | tagname= |
7366 | lt_save_CC="$CC" |
7367 | ac_ext=c |
7368 | ac_cpp='$CPP $CPPFLAGS' |
7369 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7370 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7371 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7372 | |
7373 | |
7374 | # Source file extension for C test sources. |
7375 | ac_ext=c |
7376 | |
7377 | # Object file extension for compiled C test sources. |
7378 | objext=o |
7379 | objext=$objext |
7380 | |
7381 | # Code to be used in simple compile tests |
7382 | lt_simple_compile_test_code="int some_variable = 0;\n" |
7383 | |
7384 | # Code to be used in simple link tests |
7385 | lt_simple_link_test_code='int main(){return(0);}\n' |
7386 | |
7387 | |
7388 | # If no C compiler was specified, use CC. |
7389 | LTCC=${LTCC-"$CC"} |
7390 | |
7391 | # If no C compiler flags were specified, use CFLAGS. |
7392 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
7393 | |
7394 | # Allow CC to be a program name with arguments. |
7395 | compiler=$CC |
7396 | |
7397 | |
7398 | # save warnings/boilerplate of simple test code |
7399 | ac_outfile=conftest.$ac_objext |
7400 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
7401 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7402 | _lt_compiler_boilerplate=`cat conftest.err` |
7403 | $rm conftest* |
7404 | |
7405 | ac_outfile=conftest.$ac_objext |
7406 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
7407 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7408 | _lt_linker_boilerplate=`cat conftest.err` |
7409 | $rm conftest* |
7410 | |
7411 | |
7412 | |
7413 | lt_prog_compiler_no_builtin_flag= |
7414 | |
7415 | if test "$GCC" = yes; then |
7416 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
7417 | |
7418 | |
dd184caf |
7419 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7420 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
7421 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
7422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7423 | else |
7424 | lt_cv_prog_compiler_rtti_exceptions=no |
7425 | ac_outfile=conftest.$ac_objext |
7426 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7427 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
7428 | # Insert the option either (1) after the last *FLAGS variable, or |
7429 | # (2) before a word containing "conftest.", or (3) at the end. |
7430 | # Note that $ac_compile itself does not contain backslashes and begins |
7431 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7432 | # The option is referenced via a variable to avoid confusing sed. |
7433 | lt_compile=`echo "$ac_compile" | $SED \ |
7434 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7435 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7436 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
7437 | (eval echo "\"\$as_me:7437: $lt_compile\"" >&5) |
d9898ee8 |
7438 | (eval "$lt_compile" 2>conftest.err) |
7439 | ac_status=$? |
7440 | cat conftest.err >&5 |
dd184caf |
7441 | echo "$as_me:7441: \$? = $ac_status" >&5 |
d9898ee8 |
7442 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7443 | # The compiler can only warn and ignore the option if not recognized |
7444 | # So say no if there are warnings other than the usual output. |
7445 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7446 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7447 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7448 | lt_cv_prog_compiler_rtti_exceptions=yes |
7449 | fi |
7450 | fi |
7451 | $rm conftest* |
7452 | |
7453 | fi |
dd184caf |
7454 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7455 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
7456 | |
7457 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
7458 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
7459 | else |
7460 | : |
7461 | fi |
7462 | |
7463 | fi |
7464 | |
7465 | lt_prog_compiler_wl= |
7466 | lt_prog_compiler_pic= |
7467 | lt_prog_compiler_static= |
7468 | |
dd184caf |
7469 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7470 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
7471 | |
7472 | if test "$GCC" = yes; then |
7473 | lt_prog_compiler_wl='-Wl,' |
7474 | lt_prog_compiler_static='-static' |
7475 | |
7476 | case $host_os in |
7477 | aix*) |
7478 | # All AIX code is PIC. |
7479 | if test "$host_cpu" = ia64; then |
7480 | # AIX 5 now supports IA64 processor |
7481 | lt_prog_compiler_static='-Bstatic' |
7482 | fi |
7483 | ;; |
7484 | |
7485 | amigaos*) |
7486 | # FIXME: we need at least 68020 code to build shared libraries, but |
7487 | # adding the `-m68020' flag to GCC prevents building anything better, |
7488 | # like `-m68040'. |
7489 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
7490 | ;; |
7491 | |
7492 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7493 | # PIC is the default for these OSes. |
7494 | ;; |
7495 | |
7496 | mingw* | pw32* | os2*) |
7497 | # This hack is so that the source file can tell whether it is being |
7498 | # built for inclusion in a dll (and should export symbols for example). |
7499 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7500 | ;; |
7501 | |
7502 | darwin* | rhapsody*) |
7503 | # PIC is the default on this platform |
7504 | # Common symbols not allowed in MH_DYLIB files |
7505 | lt_prog_compiler_pic='-fno-common' |
7506 | ;; |
7507 | |
7508 | interix3*) |
7509 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
7510 | # Instead, we relocate shared libraries at runtime. |
7511 | ;; |
7512 | |
7513 | msdosdjgpp*) |
7514 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
7515 | # on systems that don't support them. |
7516 | lt_prog_compiler_can_build_shared=no |
7517 | enable_shared=no |
7518 | ;; |
7519 | |
7520 | sysv4*MP*) |
7521 | if test -d /usr/nec; then |
7522 | lt_prog_compiler_pic=-Kconform_pic |
7523 | fi |
7524 | ;; |
7525 | |
7526 | hpux*) |
7527 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7528 | # not for PA HP-UX. |
7529 | case $host_cpu in |
7530 | hppa*64*|ia64*) |
7531 | # +Z the default |
7532 | ;; |
7533 | *) |
7534 | lt_prog_compiler_pic='-fPIC' |
7535 | ;; |
7536 | esac |
7537 | ;; |
7538 | |
7539 | *) |
7540 | lt_prog_compiler_pic='-fPIC' |
7541 | ;; |
7542 | esac |
7543 | else |
7544 | # PORTME Check for flag to pass linker flags through the system compiler. |
7545 | case $host_os in |
7546 | aix*) |
7547 | lt_prog_compiler_wl='-Wl,' |
7548 | if test "$host_cpu" = ia64; then |
7549 | # AIX 5 now supports IA64 processor |
7550 | lt_prog_compiler_static='-Bstatic' |
7551 | else |
7552 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
7553 | fi |
7554 | ;; |
7555 | darwin*) |
7556 | # PIC is the default on this platform |
7557 | # Common symbols not allowed in MH_DYLIB files |
7558 | case $cc_basename in |
7559 | xlc*) |
7560 | lt_prog_compiler_pic='-qnocommon' |
7561 | lt_prog_compiler_wl='-Wl,' |
7562 | ;; |
7563 | esac |
7564 | ;; |
7565 | |
7566 | mingw* | pw32* | os2*) |
7567 | # This hack is so that the source file can tell whether it is being |
7568 | # built for inclusion in a dll (and should export symbols for example). |
7569 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7570 | ;; |
7571 | |
7572 | hpux9* | hpux10* | hpux11*) |
7573 | lt_prog_compiler_wl='-Wl,' |
7574 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7575 | # not for PA HP-UX. |
7576 | case $host_cpu in |
7577 | hppa*64*|ia64*) |
7578 | # +Z the default |
7579 | ;; |
7580 | *) |
7581 | lt_prog_compiler_pic='+Z' |
7582 | ;; |
7583 | esac |
7584 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
7585 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
7586 | ;; |
7587 | |
7588 | irix5* | irix6* | nonstopux*) |
7589 | lt_prog_compiler_wl='-Wl,' |
7590 | # PIC (with -KPIC) is the default. |
7591 | lt_prog_compiler_static='-non_shared' |
7592 | ;; |
7593 | |
7594 | newsos6) |
7595 | lt_prog_compiler_pic='-KPIC' |
7596 | lt_prog_compiler_static='-Bstatic' |
7597 | ;; |
7598 | |
7599 | linux*) |
7600 | case $cc_basename in |
7601 | icc* | ecc*) |
7602 | lt_prog_compiler_wl='-Wl,' |
7603 | lt_prog_compiler_pic='-KPIC' |
7604 | lt_prog_compiler_static='-static' |
7605 | ;; |
7606 | pgcc* | pgf77* | pgf90* | pgf95*) |
7607 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7608 | # which looks to be a dead project) |
7609 | lt_prog_compiler_wl='-Wl,' |
7610 | lt_prog_compiler_pic='-fpic' |
7611 | lt_prog_compiler_static='-Bstatic' |
7612 | ;; |
7613 | ccc*) |
7614 | lt_prog_compiler_wl='-Wl,' |
7615 | # All Alpha code is PIC. |
7616 | lt_prog_compiler_static='-non_shared' |
7617 | ;; |
7618 | esac |
7619 | ;; |
7620 | |
7621 | osf3* | osf4* | osf5*) |
7622 | lt_prog_compiler_wl='-Wl,' |
7623 | # All OSF/1 code is PIC. |
7624 | lt_prog_compiler_static='-non_shared' |
7625 | ;; |
7626 | |
7627 | solaris*) |
7628 | lt_prog_compiler_pic='-KPIC' |
7629 | lt_prog_compiler_static='-Bstatic' |
7630 | case $cc_basename in |
7631 | f77* | f90* | f95*) |
7632 | lt_prog_compiler_wl='-Qoption ld ';; |
7633 | *) |
7634 | lt_prog_compiler_wl='-Wl,';; |
7635 | esac |
7636 | ;; |
7637 | |
7638 | sunos4*) |
7639 | lt_prog_compiler_wl='-Qoption ld ' |
7640 | lt_prog_compiler_pic='-PIC' |
7641 | lt_prog_compiler_static='-Bstatic' |
7642 | ;; |
7643 | |
7644 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7645 | lt_prog_compiler_wl='-Wl,' |
7646 | lt_prog_compiler_pic='-KPIC' |
7647 | lt_prog_compiler_static='-Bstatic' |
7648 | ;; |
7649 | |
7650 | sysv4*MP*) |
7651 | if test -d /usr/nec ;then |
7652 | lt_prog_compiler_pic='-Kconform_pic' |
7653 | lt_prog_compiler_static='-Bstatic' |
7654 | fi |
7655 | ;; |
7656 | |
7657 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7658 | lt_prog_compiler_wl='-Wl,' |
7659 | lt_prog_compiler_pic='-KPIC' |
7660 | lt_prog_compiler_static='-Bstatic' |
7661 | ;; |
7662 | |
7663 | unicos*) |
7664 | lt_prog_compiler_wl='-Wl,' |
7665 | lt_prog_compiler_can_build_shared=no |
7666 | ;; |
7667 | |
7668 | uts4*) |
7669 | lt_prog_compiler_pic='-pic' |
7670 | lt_prog_compiler_static='-Bstatic' |
7671 | ;; |
7672 | |
7673 | *) |
7674 | lt_prog_compiler_can_build_shared=no |
7675 | ;; |
7676 | esac |
7677 | fi |
7678 | |
dd184caf |
7679 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
7680 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
d9898ee8 |
7681 | |
7682 | # |
7683 | # Check to make sure the PIC flag actually works. |
7684 | # |
7685 | if test -n "$lt_prog_compiler_pic"; then |
7686 | |
dd184caf |
7687 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7688 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
d9898ee8 |
7689 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
7690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7691 | else |
7692 | lt_prog_compiler_pic_works=no |
7693 | ac_outfile=conftest.$ac_objext |
7694 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7695 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
7696 | # Insert the option either (1) after the last *FLAGS variable, or |
7697 | # (2) before a word containing "conftest.", or (3) at the end. |
7698 | # Note that $ac_compile itself does not contain backslashes and begins |
7699 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7700 | # The option is referenced via a variable to avoid confusing sed. |
7701 | lt_compile=`echo "$ac_compile" | $SED \ |
7702 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7703 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7704 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
7705 | (eval echo "\"\$as_me:7705: $lt_compile\"" >&5) |
d9898ee8 |
7706 | (eval "$lt_compile" 2>conftest.err) |
7707 | ac_status=$? |
7708 | cat conftest.err >&5 |
dd184caf |
7709 | echo "$as_me:7709: \$? = $ac_status" >&5 |
d9898ee8 |
7710 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7711 | # The compiler can only warn and ignore the option if not recognized |
7712 | # So say no if there are warnings other than the usual output. |
7713 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7714 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7715 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7716 | lt_prog_compiler_pic_works=yes |
7717 | fi |
7718 | fi |
7719 | $rm conftest* |
7720 | |
7721 | fi |
dd184caf |
7722 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
7723 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
d9898ee8 |
7724 | |
7725 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
7726 | case $lt_prog_compiler_pic in |
7727 | "" | " "*) ;; |
7728 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
7729 | esac |
7730 | else |
7731 | lt_prog_compiler_pic= |
7732 | lt_prog_compiler_can_build_shared=no |
7733 | fi |
7734 | |
7735 | fi |
7736 | case $host_os in |
7737 | # For platforms which do not support PIC, -DPIC is meaningless: |
7738 | *djgpp*) |
7739 | lt_prog_compiler_pic= |
7740 | ;; |
7741 | *) |
7742 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
7743 | ;; |
7744 | esac |
7745 | |
7746 | # |
7747 | # Check to make sure the static flag actually works. |
7748 | # |
7749 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
dd184caf |
7750 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
7751 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
7752 | if test "${lt_prog_compiler_static_works+set}" = set; then |
7753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7754 | else |
7755 | lt_prog_compiler_static_works=no |
7756 | save_LDFLAGS="$LDFLAGS" |
7757 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
7758 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
7759 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
7760 | # The linker can only warn and ignore the option if not recognized |
7761 | # So say no if there are warnings |
7762 | if test -s conftest.err; then |
7763 | # Append any errors to the config.log. |
7764 | cat conftest.err 1>&5 |
7765 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
7766 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7767 | if diff conftest.exp conftest.er2 >/dev/null; then |
7768 | lt_prog_compiler_static_works=yes |
7769 | fi |
7770 | else |
7771 | lt_prog_compiler_static_works=yes |
7772 | fi |
7773 | fi |
7774 | $rm conftest* |
7775 | LDFLAGS="$save_LDFLAGS" |
7776 | |
7777 | fi |
dd184caf |
7778 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
7779 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
d9898ee8 |
7780 | |
7781 | if test x"$lt_prog_compiler_static_works" = xyes; then |
7782 | : |
7783 | else |
7784 | lt_prog_compiler_static= |
7785 | fi |
7786 | |
7787 | |
dd184caf |
7788 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7789 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
7790 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7792 | else |
7793 | lt_cv_prog_compiler_c_o=no |
7794 | $rm -r conftest 2>/dev/null |
7795 | mkdir conftest |
7796 | cd conftest |
7797 | mkdir out |
7798 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7799 | |
7800 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7801 | # Insert the option either (1) after the last *FLAGS variable, or |
7802 | # (2) before a word containing "conftest.", or (3) at the end. |
7803 | # Note that $ac_compile itself does not contain backslashes and begins |
7804 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7805 | lt_compile=`echo "$ac_compile" | $SED \ |
7806 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7807 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7808 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
7809 | (eval echo "\"\$as_me:7809: $lt_compile\"" >&5) |
d9898ee8 |
7810 | (eval "$lt_compile" 2>out/conftest.err) |
7811 | ac_status=$? |
7812 | cat out/conftest.err >&5 |
dd184caf |
7813 | echo "$as_me:7813: \$? = $ac_status" >&5 |
d9898ee8 |
7814 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7815 | then |
7816 | # The compiler can only warn and ignore the option if not recognized |
7817 | # So say no if there are warnings |
7818 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
7819 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
7820 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
7821 | lt_cv_prog_compiler_c_o=yes |
7822 | fi |
7823 | fi |
7824 | chmod u+w . 2>&5 |
7825 | $rm conftest* |
7826 | # SGI C++ compiler will create directory out/ii_files/ for |
7827 | # template instantiation |
7828 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
7829 | $rm out/* && rmdir out |
7830 | cd .. |
7831 | rmdir conftest |
7832 | $rm conftest* |
7833 | |
7834 | fi |
dd184caf |
7835 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7836 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 |
7837 | |
7838 | |
7839 | hard_links="nottested" |
7840 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
7841 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
7842 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
7843 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
7844 | hard_links=yes |
7845 | $rm conftest* |
7846 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
7847 | touch conftest.a |
7848 | ln conftest.a conftest.b 2>&5 || hard_links=no |
7849 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
7850 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
7851 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
7852 | if test "$hard_links" = no; then |
7853 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
7854 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
7855 | need_locks=warn |
7856 | fi |
7857 | else |
7858 | need_locks=no |
7859 | fi |
7860 | |
dd184caf |
7861 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
7862 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
7863 | |
7864 | runpath_var= |
7865 | allow_undefined_flag= |
7866 | enable_shared_with_static_runtimes=no |
7867 | archive_cmds= |
7868 | archive_expsym_cmds= |
7869 | old_archive_From_new_cmds= |
7870 | old_archive_from_expsyms_cmds= |
7871 | export_dynamic_flag_spec= |
7872 | whole_archive_flag_spec= |
7873 | thread_safe_flag_spec= |
7874 | hardcode_libdir_flag_spec= |
7875 | hardcode_libdir_flag_spec_ld= |
7876 | hardcode_libdir_separator= |
7877 | hardcode_direct=no |
7878 | hardcode_minus_L=no |
7879 | hardcode_shlibpath_var=unsupported |
7880 | link_all_deplibs=unknown |
7881 | hardcode_automatic=no |
7882 | module_cmds= |
7883 | module_expsym_cmds= |
7884 | always_export_symbols=no |
7885 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
7886 | # include_expsyms should be a list of space-separated symbols to be *always* |
7887 | # included in the symbol list |
7888 | include_expsyms= |
7889 | # exclude_expsyms can be an extended regexp of symbols to exclude |
7890 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
7891 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
7892 | # as well as any symbol that contains `d'. |
7893 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
7894 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
7895 | # platforms (ab)use it in PIC code, but their linkers get confused if |
7896 | # the symbol is explicitly referenced. Since portable code cannot |
7897 | # rely on this symbol name, it's probably fine to never include it in |
7898 | # preloaded symbol tables. |
7899 | extract_expsyms_cmds= |
7900 | # Just being paranoid about ensuring that cc_basename is set. |
7901 | for cc_temp in $compiler""; do |
7902 | case $cc_temp in |
7903 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7904 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7905 | \-*) ;; |
7906 | *) break;; |
7907 | esac |
7908 | done |
7909 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7910 | |
7911 | case $host_os in |
7912 | cygwin* | mingw* | pw32*) |
7913 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
7914 | # When not using gcc, we currently assume that we are using |
7915 | # Microsoft Visual C++. |
7916 | if test "$GCC" != yes; then |
7917 | with_gnu_ld=no |
7918 | fi |
7919 | ;; |
7920 | interix*) |
7921 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
7922 | with_gnu_ld=yes |
7923 | ;; |
7924 | openbsd*) |
7925 | with_gnu_ld=no |
7926 | ;; |
7927 | esac |
7928 | |
7929 | ld_shlibs=yes |
7930 | if test "$with_gnu_ld" = yes; then |
7931 | # If archive_cmds runs LD, not CC, wlarc should be empty |
7932 | wlarc='${wl}' |
7933 | |
7934 | # Set some defaults for GNU ld with shared library support. These |
7935 | # are reset later if shared libraries are not supported. Putting them |
7936 | # here allows them to be overridden if necessary. |
7937 | runpath_var=LD_RUN_PATH |
7938 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
7939 | export_dynamic_flag_spec='${wl}--export-dynamic' |
7940 | # ancient GNU ld didn't support --whole-archive et. al. |
7941 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
7942 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7943 | else |
7944 | whole_archive_flag_spec= |
7945 | fi |
7946 | supports_anon_versioning=no |
7947 | case `$LD -v 2>/dev/null` in |
7948 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7949 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
7950 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
7951 | *\ 2.11.*) ;; # other 2.11 versions |
7952 | *) supports_anon_versioning=yes ;; |
7953 | esac |
7954 | |
7955 | # See if GNU ld supports shared libraries. |
7956 | case $host_os in |
7957 | aix3* | aix4* | aix5*) |
7958 | # On AIX/PPC, the GNU linker is very broken |
7959 | if test "$host_cpu" != ia64; then |
7960 | ld_shlibs=no |
7961 | cat <<EOF 1>&2 |
7962 | |
7963 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7964 | *** to be unable to reliably create shared libraries on AIX. |
7965 | *** Therefore, libtool is disabling shared libraries support. If you |
7966 | *** really care for shared libraries, you may want to modify your PATH |
7967 | *** so that a non-GNU linker is found, and then restart. |
7968 | |
7969 | EOF |
7970 | fi |
7971 | ;; |
7972 | |
7973 | amigaos*) |
7974 | 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)' |
7975 | hardcode_libdir_flag_spec='-L$libdir' |
7976 | hardcode_minus_L=yes |
7977 | |
7978 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
7979 | # that the semantics of dynamic libraries on AmigaOS, at least up |
7980 | # to version 4, is to share data among multiple programs linked |
7981 | # with the same dynamic library. Since this doesn't match the |
7982 | # behavior of shared libraries on other platforms, we can't use |
7983 | # them. |
7984 | ld_shlibs=no |
7985 | ;; |
7986 | |
7987 | beos*) |
7988 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7989 | allow_undefined_flag=unsupported |
7990 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7991 | # support --undefined. This deserves some investigation. FIXME |
7992 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7993 | else |
7994 | ld_shlibs=no |
7995 | fi |
7996 | ;; |
7997 | |
7998 | cygwin* | mingw* | pw32*) |
7999 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8000 | # as there is no search path for DLLs. |
8001 | hardcode_libdir_flag_spec='-L$libdir' |
8002 | allow_undefined_flag=unsupported |
8003 | always_export_symbols=no |
8004 | enable_shared_with_static_runtimes=yes |
8005 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
8006 | |
8007 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
8008 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
8009 | # If the export-symbols file already is a .def file (1st line |
8010 | # is EXPORTS), use it as is; otherwise, prepend... |
8011 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
8012 | cp $export_symbols $output_objdir/$soname.def; |
8013 | else |
8014 | echo EXPORTS > $output_objdir/$soname.def; |
8015 | cat $export_symbols >> $output_objdir/$soname.def; |
8016 | fi~ |
8017 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
8018 | else |
8019 | ld_shlibs=no |
8020 | fi |
8021 | ;; |
8022 | |
8023 | interix3*) |
8024 | hardcode_direct=no |
8025 | hardcode_shlibpath_var=no |
8026 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8027 | export_dynamic_flag_spec='${wl}-E' |
8028 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
8029 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
8030 | # default) and relocated if they conflict, which is a slow very memory |
8031 | # consuming and fragmenting process. To avoid this, we pick a random, |
8032 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
8033 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
8034 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
8035 | 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' |
8036 | ;; |
8037 | |
8038 | linux*) |
8039 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8040 | tmp_addflag= |
8041 | case $cc_basename,$host_cpu in |
8042 | pgcc*) # Portland Group C compiler |
8043 | 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' |
8044 | tmp_addflag=' $pic_flag' |
8045 | ;; |
8046 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
8047 | 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' |
8048 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8049 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
8050 | tmp_addflag=' -i_dynamic' ;; |
8051 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
8052 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
8053 | ifc* | ifort*) # Intel Fortran compiler |
8054 | tmp_addflag=' -nofor_main' ;; |
8055 | esac |
8056 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8057 | |
8058 | if test $supports_anon_versioning = yes; then |
8059 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
8060 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
8061 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
8062 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
8063 | fi |
8064 | else |
8065 | ld_shlibs=no |
8066 | fi |
8067 | ;; |
8068 | |
8069 | netbsd*) |
8070 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8071 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
8072 | wlarc= |
8073 | else |
8074 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8075 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
8076 | fi |
8077 | ;; |
8078 | |
8079 | solaris*) |
8080 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
8081 | ld_shlibs=no |
8082 | cat <<EOF 1>&2 |
8083 | |
8084 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8085 | *** create shared libraries on Solaris systems. Therefore, libtool |
8086 | *** is disabling shared libraries support. We urge you to upgrade GNU |
8087 | *** binutils to release 2.9.1 or newer. Another option is to modify |
8088 | *** your PATH or compiler configuration so that the native linker is |
8089 | *** used, and then restart. |
8090 | |
8091 | EOF |
8092 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8093 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8094 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
8095 | else |
8096 | ld_shlibs=no |
8097 | fi |
8098 | ;; |
8099 | |
8100 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
8101 | case `$LD -v 2>&1` in |
8102 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
8103 | ld_shlibs=no |
8104 | cat <<_LT_EOF 1>&2 |
8105 | |
8106 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
8107 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
8108 | *** is disabling shared libraries support. We urge you to upgrade GNU |
8109 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
8110 | *** your PATH or compiler configuration so that the native linker is |
8111 | *** used, and then restart. |
8112 | |
8113 | _LT_EOF |
8114 | ;; |
8115 | *) |
8116 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8117 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
8118 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
8119 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
8120 | else |
8121 | ld_shlibs=no |
8122 | fi |
8123 | ;; |
8124 | esac |
8125 | ;; |
8126 | |
8127 | sunos4*) |
8128 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8129 | wlarc= |
8130 | hardcode_direct=yes |
8131 | hardcode_shlibpath_var=no |
8132 | ;; |
8133 | |
8134 | *) |
8135 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8136 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8137 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
8138 | else |
8139 | ld_shlibs=no |
8140 | fi |
8141 | ;; |
8142 | esac |
8143 | |
8144 | if test "$ld_shlibs" = no; then |
8145 | runpath_var= |
8146 | hardcode_libdir_flag_spec= |
8147 | export_dynamic_flag_spec= |
8148 | whole_archive_flag_spec= |
8149 | fi |
8150 | else |
8151 | # PORTME fill in a description of your system's linker (not GNU ld) |
8152 | case $host_os in |
8153 | aix3*) |
8154 | allow_undefined_flag=unsupported |
8155 | always_export_symbols=yes |
8156 | 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' |
8157 | # Note: this linker hardcodes the directories in LIBPATH if there |
8158 | # are no directories specified by -L. |
8159 | hardcode_minus_L=yes |
8160 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
8161 | # Neither direct hardcoding nor static linking is supported with a |
8162 | # broken collect2. |
8163 | hardcode_direct=unsupported |
8164 | fi |
8165 | ;; |
8166 | |
8167 | aix4* | aix5*) |
8168 | if test "$host_cpu" = ia64; then |
8169 | # On IA64, the linker does run time linking by default, so we don't |
8170 | # have to do anything special. |
8171 | aix_use_runtimelinking=no |
8172 | exp_sym_flag='-Bexport' |
8173 | no_entry_flag="" |
8174 | else |
8175 | # If we're using GNU nm, then we don't want the "-C" option. |
8176 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
8177 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
8178 | 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' |
8179 | else |
8180 | 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' |
8181 | fi |
8182 | aix_use_runtimelinking=no |
8183 | |
8184 | # Test if we are trying to use run time linking or normal |
8185 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
8186 | # need to do runtime linking. |
8187 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
8188 | for ld_flag in $LDFLAGS; do |
8189 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
8190 | aix_use_runtimelinking=yes |
8191 | break |
8192 | fi |
8193 | done |
8194 | ;; |
8195 | esac |
8196 | |
8197 | exp_sym_flag='-bexport' |
8198 | no_entry_flag='-bnoentry' |
8199 | fi |
8200 | |
8201 | # When large executables or shared objects are built, AIX ld can |
8202 | # have problems creating the table of contents. If linking a library |
8203 | # or program results in "error TOC overflow" add -mminimal-toc to |
8204 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
8205 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
8206 | |
8207 | archive_cmds='' |
8208 | hardcode_direct=yes |
8209 | hardcode_libdir_separator=':' |
8210 | link_all_deplibs=yes |
8211 | |
8212 | if test "$GCC" = yes; then |
8213 | case $host_os in aix4.[012]|aix4.[012].*) |
8214 | # We only want to do this on AIX 4.2 and lower, the check |
8215 | # below for broken collect2 doesn't work under 4.3+ |
8216 | collect2name=`${CC} -print-prog-name=collect2` |
8217 | if test -f "$collect2name" && \ |
8218 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
8219 | then |
8220 | # We have reworked collect2 |
8221 | hardcode_direct=yes |
8222 | else |
8223 | # We have old collect2 |
8224 | hardcode_direct=unsupported |
8225 | # It fails to find uninstalled libraries when the uninstalled |
8226 | # path is not listed in the libpath. Setting hardcode_minus_L |
8227 | # to unsupported forces relinking |
8228 | hardcode_minus_L=yes |
8229 | hardcode_libdir_flag_spec='-L$libdir' |
8230 | hardcode_libdir_separator= |
8231 | fi |
8232 | ;; |
8233 | esac |
8234 | shared_flag='-shared' |
8235 | if test "$aix_use_runtimelinking" = yes; then |
8236 | shared_flag="$shared_flag "'${wl}-G' |
8237 | fi |
8238 | else |
8239 | # not using gcc |
8240 | if test "$host_cpu" = ia64; then |
8241 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
8242 | # chokes on -Wl,-G. The following line is correct: |
8243 | shared_flag='-G' |
8244 | else |
8245 | if test "$aix_use_runtimelinking" = yes; then |
8246 | shared_flag='${wl}-G' |
8247 | else |
8248 | shared_flag='${wl}-bM:SRE' |
8249 | fi |
8250 | fi |
8251 | fi |
8252 | |
8253 | # It seems that -bexpall does not export symbols beginning with |
8254 | # underscore (_), so it is better to generate a list of symbols to export. |
8255 | always_export_symbols=yes |
8256 | if test "$aix_use_runtimelinking" = yes; then |
8257 | # Warning - without using the other runtime loading flags (-brtl), |
8258 | # -berok will link without error, but may produce a broken library. |
8259 | allow_undefined_flag='-berok' |
8260 | # Determine the default libpath from the value encoded in an empty executable. |
8261 | cat >conftest.$ac_ext <<_ACEOF |
8262 | /* confdefs.h. */ |
8263 | _ACEOF |
8264 | cat confdefs.h >>conftest.$ac_ext |
8265 | cat >>conftest.$ac_ext <<_ACEOF |
8266 | /* end confdefs.h. */ |
8267 | |
8268 | int |
8269 | main () |
8270 | { |
8271 | |
8272 | ; |
8273 | return 0; |
8274 | } |
8275 | _ACEOF |
8276 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
8277 | if { (ac_try="$ac_link" |
8278 | case "(($ac_try" in |
8279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8280 | *) ac_try_echo=$ac_try;; |
8281 | esac |
8282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8283 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8284 | ac_status=$? |
8285 | grep -v '^ *+' conftest.er1 >conftest.err |
8286 | rm -f conftest.er1 |
8287 | cat conftest.err >&5 |
8288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
8289 | (exit $ac_status); } && { |
8290 | test -z "$ac_c_werror_flag" || |
8291 | test ! -s conftest.err |
8292 | } && test -s conftest$ac_exeext && |
8293 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8294 | |
8295 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8296 | }'` |
8297 | # Check for a 64-bit object if we didn't find anything. |
8298 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8299 | }'`; fi |
8300 | else |
8301 | echo "$as_me: failed program was:" >&5 |
8302 | sed 's/^/| /' conftest.$ac_ext >&5 |
8303 | |
dd184caf |
8304 | |
d9898ee8 |
8305 | fi |
dd184caf |
8306 | |
8307 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8308 | conftest$ac_exeext conftest.$ac_ext |
8309 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8310 | |
8311 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8312 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
8313 | else |
8314 | if test "$host_cpu" = ia64; then |
8315 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8316 | allow_undefined_flag="-z nodefs" |
8317 | 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" |
8318 | else |
8319 | # Determine the default libpath from the value encoded in an empty executable. |
8320 | cat >conftest.$ac_ext <<_ACEOF |
8321 | /* confdefs.h. */ |
8322 | _ACEOF |
8323 | cat confdefs.h >>conftest.$ac_ext |
8324 | cat >>conftest.$ac_ext <<_ACEOF |
8325 | /* end confdefs.h. */ |
8326 | |
8327 | int |
8328 | main () |
8329 | { |
8330 | |
8331 | ; |
8332 | return 0; |
8333 | } |
8334 | _ACEOF |
8335 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
8336 | if { (ac_try="$ac_link" |
8337 | case "(($ac_try" in |
8338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8339 | *) ac_try_echo=$ac_try;; |
8340 | esac |
8341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8342 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8343 | ac_status=$? |
8344 | grep -v '^ *+' conftest.er1 >conftest.err |
8345 | rm -f conftest.er1 |
8346 | cat conftest.err >&5 |
8347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
8348 | (exit $ac_status); } && { |
8349 | test -z "$ac_c_werror_flag" || |
8350 | test ! -s conftest.err |
8351 | } && test -s conftest$ac_exeext && |
8352 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8353 | |
8354 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8355 | }'` |
8356 | # Check for a 64-bit object if we didn't find anything. |
8357 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8358 | }'`; fi |
8359 | else |
8360 | echo "$as_me: failed program was:" >&5 |
8361 | sed 's/^/| /' conftest.$ac_ext >&5 |
8362 | |
dd184caf |
8363 | |
d9898ee8 |
8364 | fi |
dd184caf |
8365 | |
8366 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8367 | conftest$ac_exeext conftest.$ac_ext |
8368 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8369 | |
8370 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8371 | # Warning - without using the other run time loading flags, |
8372 | # -berok will link without error, but may produce a broken library. |
8373 | no_undefined_flag=' ${wl}-bernotok' |
8374 | allow_undefined_flag=' ${wl}-berok' |
8375 | # Exported symbols can be pulled into shared objects from archives |
8376 | whole_archive_flag_spec='$convenience' |
8377 | archive_cmds_need_lc=yes |
8378 | # This is similar to how AIX traditionally builds its shared libraries. |
8379 | 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' |
8380 | fi |
8381 | fi |
8382 | ;; |
8383 | |
8384 | amigaos*) |
8385 | 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)' |
8386 | hardcode_libdir_flag_spec='-L$libdir' |
8387 | hardcode_minus_L=yes |
8388 | # see comment about different semantics on the GNU ld section |
8389 | ld_shlibs=no |
8390 | ;; |
8391 | |
8392 | bsdi[45]*) |
8393 | export_dynamic_flag_spec=-rdynamic |
8394 | ;; |
8395 | |
8396 | cygwin* | mingw* | pw32*) |
8397 | # When not using gcc, we currently assume that we are using |
8398 | # Microsoft Visual C++. |
8399 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
8400 | # no search path for DLLs. |
8401 | hardcode_libdir_flag_spec=' ' |
8402 | allow_undefined_flag=unsupported |
8403 | # Tell ltmain to make .lib files, not .a files. |
8404 | libext=lib |
8405 | # Tell ltmain to make .dll files, not .so files. |
8406 | shrext_cmds=".dll" |
8407 | # FIXME: Setting linknames here is a bad hack. |
8408 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
8409 | # The linker will automatically build a .lib file if we build a DLL. |
8410 | old_archive_From_new_cmds='true' |
8411 | # FIXME: Should let the user specify the lib program. |
8412 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
8413 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
8414 | enable_shared_with_static_runtimes=yes |
8415 | ;; |
8416 | |
8417 | darwin* | rhapsody*) |
8418 | case $host_os in |
8419 | rhapsody* | darwin1.[012]) |
8420 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
8421 | ;; |
8422 | *) # Darwin 1.3 on |
8423 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
8424 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8425 | else |
8426 | case ${MACOSX_DEPLOYMENT_TARGET} in |
8427 | 10.[012]) |
8428 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8429 | ;; |
8430 | 10.*) |
8431 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
8432 | ;; |
8433 | esac |
8434 | fi |
8435 | ;; |
8436 | esac |
8437 | archive_cmds_need_lc=no |
8438 | hardcode_direct=no |
8439 | hardcode_automatic=yes |
8440 | hardcode_shlibpath_var=unsupported |
8441 | whole_archive_flag_spec='' |
8442 | link_all_deplibs=yes |
8443 | if test "$GCC" = yes ; then |
8444 | output_verbose_link_cmd='echo' |
8445 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
8446 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8447 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8448 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
8449 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
8450 | else |
8451 | case $cc_basename in |
8452 | xlc*) |
8453 | output_verbose_link_cmd='echo' |
8454 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
8455 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8456 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8457 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
8458 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
8459 | ;; |
8460 | *) |
8461 | ld_shlibs=no |
8462 | ;; |
8463 | esac |
8464 | fi |
8465 | ;; |
8466 | |
8467 | dgux*) |
8468 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8469 | hardcode_libdir_flag_spec='-L$libdir' |
8470 | hardcode_shlibpath_var=no |
8471 | ;; |
8472 | |
8473 | freebsd1*) |
8474 | ld_shlibs=no |
8475 | ;; |
8476 | |
8477 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8478 | # support. Future versions do this automatically, but an explicit c++rt0.o |
8479 | # does not break anything, and helps significantly (at the cost of a little |
8480 | # extra space). |
8481 | freebsd2.2*) |
8482 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
8483 | hardcode_libdir_flag_spec='-R$libdir' |
8484 | hardcode_direct=yes |
8485 | hardcode_shlibpath_var=no |
8486 | ;; |
8487 | |
8488 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8489 | freebsd2*) |
8490 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8491 | hardcode_direct=yes |
8492 | hardcode_minus_L=yes |
8493 | hardcode_shlibpath_var=no |
8494 | ;; |
8495 | |
8496 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
8497 | freebsd* | kfreebsd*-gnu | dragonfly*) |
8498 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
8499 | hardcode_libdir_flag_spec='-R$libdir' |
8500 | hardcode_direct=yes |
8501 | hardcode_shlibpath_var=no |
8502 | ;; |
8503 | |
8504 | hpux9*) |
8505 | if test "$GCC" = yes; then |
8506 | 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' |
8507 | else |
8508 | 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' |
8509 | fi |
8510 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8511 | hardcode_libdir_separator=: |
8512 | hardcode_direct=yes |
8513 | |
8514 | # hardcode_minus_L: Not really in the search PATH, |
8515 | # but as the default location of the library. |
8516 | hardcode_minus_L=yes |
8517 | export_dynamic_flag_spec='${wl}-E' |
8518 | ;; |
8519 | |
8520 | hpux10*) |
8521 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8522 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8523 | else |
8524 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
8525 | fi |
8526 | if test "$with_gnu_ld" = no; then |
8527 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8528 | hardcode_libdir_separator=: |
8529 | |
8530 | hardcode_direct=yes |
8531 | export_dynamic_flag_spec='${wl}-E' |
8532 | |
8533 | # hardcode_minus_L: Not really in the search PATH, |
8534 | # but as the default location of the library. |
8535 | hardcode_minus_L=yes |
8536 | fi |
8537 | ;; |
8538 | |
8539 | hpux11*) |
8540 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8541 | case $host_cpu in |
8542 | hppa*64*) |
8543 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8544 | ;; |
8545 | ia64*) |
8546 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8547 | ;; |
8548 | *) |
8549 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8550 | ;; |
8551 | esac |
8552 | else |
8553 | case $host_cpu in |
8554 | hppa*64*) |
8555 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8556 | ;; |
8557 | ia64*) |
8558 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8559 | ;; |
8560 | *) |
8561 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8562 | ;; |
8563 | esac |
8564 | fi |
8565 | if test "$with_gnu_ld" = no; then |
8566 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8567 | hardcode_libdir_separator=: |
8568 | |
8569 | case $host_cpu in |
8570 | hppa*64*|ia64*) |
8571 | hardcode_libdir_flag_spec_ld='+b $libdir' |
8572 | hardcode_direct=no |
8573 | hardcode_shlibpath_var=no |
8574 | ;; |
8575 | *) |
8576 | hardcode_direct=yes |
8577 | export_dynamic_flag_spec='${wl}-E' |
8578 | |
8579 | # hardcode_minus_L: Not really in the search PATH, |
8580 | # but as the default location of the library. |
8581 | hardcode_minus_L=yes |
8582 | ;; |
8583 | esac |
8584 | fi |
8585 | ;; |
8586 | |
8587 | irix5* | irix6* | nonstopux*) |
8588 | if test "$GCC" = yes; then |
8589 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
8590 | else |
8591 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
8592 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
8593 | fi |
8594 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8595 | hardcode_libdir_separator=: |
8596 | link_all_deplibs=yes |
8597 | ;; |
8598 | |
8599 | netbsd*) |
8600 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8601 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
8602 | else |
8603 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
8604 | fi |
8605 | hardcode_libdir_flag_spec='-R$libdir' |
8606 | hardcode_direct=yes |
8607 | hardcode_shlibpath_var=no |
8608 | ;; |
8609 | |
8610 | newsos6) |
8611 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8612 | hardcode_direct=yes |
8613 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8614 | hardcode_libdir_separator=: |
8615 | hardcode_shlibpath_var=no |
8616 | ;; |
8617 | |
8618 | openbsd*) |
8619 | hardcode_direct=yes |
8620 | hardcode_shlibpath_var=no |
8621 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8622 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8623 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
8624 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8625 | export_dynamic_flag_spec='${wl}-E' |
8626 | else |
8627 | case $host_os in |
8628 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
8629 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8630 | hardcode_libdir_flag_spec='-R$libdir' |
8631 | ;; |
8632 | *) |
8633 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8634 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8635 | ;; |
8636 | esac |
8637 | fi |
8638 | ;; |
8639 | |
8640 | os2*) |
8641 | hardcode_libdir_flag_spec='-L$libdir' |
8642 | hardcode_minus_L=yes |
8643 | allow_undefined_flag=unsupported |
8644 | 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' |
8645 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
8646 | ;; |
8647 | |
8648 | osf3*) |
8649 | if test "$GCC" = yes; then |
8650 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8651 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
8652 | else |
8653 | allow_undefined_flag=' -expect_unresolved \*' |
8654 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
8655 | fi |
8656 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8657 | hardcode_libdir_separator=: |
8658 | ;; |
8659 | |
8660 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
8661 | if test "$GCC" = yes; then |
8662 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8663 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
8664 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8665 | else |
8666 | allow_undefined_flag=' -expect_unresolved \*' |
8667 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
8668 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
8669 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
8670 | |
8671 | # Both c and cxx compiler support -rpath directly |
8672 | hardcode_libdir_flag_spec='-rpath $libdir' |
8673 | fi |
8674 | hardcode_libdir_separator=: |
8675 | ;; |
8676 | |
8677 | solaris*) |
8678 | no_undefined_flag=' -z text' |
8679 | if test "$GCC" = yes; then |
8680 | wlarc='${wl}' |
8681 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8682 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8683 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
8684 | else |
8685 | wlarc='' |
8686 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8687 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8688 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
8689 | fi |
8690 | hardcode_libdir_flag_spec='-R$libdir' |
8691 | hardcode_shlibpath_var=no |
8692 | case $host_os in |
8693 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
8694 | *) |
8695 | # The compiler driver will combine linker options so we |
8696 | # cannot just pass the convience library names through |
8697 | # without $wl, iff we do not link with $LD. |
8698 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
8699 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
8700 | case $wlarc in |
8701 | '') |
8702 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
8703 | *) |
8704 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
8705 | esac ;; |
8706 | esac |
8707 | link_all_deplibs=yes |
8708 | ;; |
8709 | |
8710 | sunos4*) |
8711 | if test "x$host_vendor" = xsequent; then |
8712 | # Use $CC to link under sequent, because it throws in some extra .o |
8713 | # files that make .init and .fini sections work. |
8714 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8715 | else |
8716 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
8717 | fi |
8718 | hardcode_libdir_flag_spec='-L$libdir' |
8719 | hardcode_direct=yes |
8720 | hardcode_minus_L=yes |
8721 | hardcode_shlibpath_var=no |
8722 | ;; |
8723 | |
8724 | sysv4) |
8725 | case $host_vendor in |
8726 | sni) |
8727 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8728 | hardcode_direct=yes # is this really true??? |
8729 | ;; |
8730 | siemens) |
8731 | ## LD is ld it makes a PLAMLIB |
8732 | ## CC just makes a GrossModule. |
8733 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
8734 | reload_cmds='$CC -r -o $output$reload_objs' |
8735 | hardcode_direct=no |
8736 | ;; |
8737 | motorola) |
8738 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8739 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
8740 | ;; |
8741 | esac |
8742 | runpath_var='LD_RUN_PATH' |
8743 | hardcode_shlibpath_var=no |
8744 | ;; |
8745 | |
8746 | sysv4.3*) |
8747 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8748 | hardcode_shlibpath_var=no |
8749 | export_dynamic_flag_spec='-Bexport' |
8750 | ;; |
8751 | |
8752 | sysv4*MP*) |
8753 | if test -d /usr/nec; then |
8754 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8755 | hardcode_shlibpath_var=no |
8756 | runpath_var=LD_RUN_PATH |
8757 | hardcode_runpath_var=yes |
8758 | ld_shlibs=yes |
8759 | fi |
8760 | ;; |
8761 | |
8762 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
8763 | no_undefined_flag='${wl}-z,text' |
8764 | archive_cmds_need_lc=no |
8765 | hardcode_shlibpath_var=no |
8766 | runpath_var='LD_RUN_PATH' |
8767 | |
8768 | if test "$GCC" = yes; then |
8769 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8770 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8771 | else |
8772 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8773 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8774 | fi |
8775 | ;; |
8776 | |
8777 | sysv5* | sco3.2v5* | sco5v6*) |
8778 | # Note: We can NOT use -z defs as we might desire, because we do not |
8779 | # link with -lc, and that would cause any symbols used from libc to |
8780 | # always be unresolved, which means just about no library would |
8781 | # ever link correctly. If we're not using GNU ld we use -z text |
8782 | # though, which does catch some bad symbols but isn't as heavy-handed |
8783 | # as -z defs. |
8784 | no_undefined_flag='${wl}-z,text' |
8785 | allow_undefined_flag='${wl}-z,nodefs' |
8786 | archive_cmds_need_lc=no |
8787 | hardcode_shlibpath_var=no |
8788 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
8789 | hardcode_libdir_separator=':' |
8790 | link_all_deplibs=yes |
8791 | export_dynamic_flag_spec='${wl}-Bexport' |
8792 | runpath_var='LD_RUN_PATH' |
8793 | |
8794 | if test "$GCC" = yes; then |
8795 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8796 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8797 | else |
8798 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8799 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8800 | fi |
8801 | ;; |
8802 | |
8803 | uts4*) |
8804 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8805 | hardcode_libdir_flag_spec='-L$libdir' |
8806 | hardcode_shlibpath_var=no |
8807 | ;; |
8808 | |
8809 | *) |
8810 | ld_shlibs=no |
8811 | ;; |
8812 | esac |
8813 | fi |
8814 | |
dd184caf |
8815 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8816 | echo "${ECHO_T}$ld_shlibs" >&6; } |
d9898ee8 |
8817 | test "$ld_shlibs" = no && can_build_shared=no |
8818 | |
8819 | # |
8820 | # Do we need to explicitly link libc? |
8821 | # |
8822 | case "x$archive_cmds_need_lc" in |
8823 | x|xyes) |
8824 | # Assume -lc should be added |
8825 | archive_cmds_need_lc=yes |
8826 | |
8827 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
8828 | case $archive_cmds in |
8829 | *'~'*) |
8830 | # FIXME: we may have to deal with multi-command sequences. |
8831 | ;; |
8832 | '$CC '*) |
8833 | # Test whether the compiler implicitly links with -lc since on some |
8834 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
8835 | # to ld, don't add -lc before -lgcc. |
dd184caf |
8836 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
8837 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
8838 | $rm conftest* |
8839 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
8840 | |
8841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8842 | (eval $ac_compile) 2>&5 |
8843 | ac_status=$? |
8844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8845 | (exit $ac_status); } 2>conftest.err; then |
8846 | soname=conftest |
8847 | lib=conftest |
8848 | libobjs=conftest.$ac_objext |
8849 | deplibs= |
8850 | wl=$lt_prog_compiler_wl |
8851 | pic_flag=$lt_prog_compiler_pic |
8852 | compiler_flags=-v |
8853 | linker_flags=-v |
8854 | verstring= |
8855 | output_objdir=. |
8856 | libname=conftest |
8857 | lt_save_allow_undefined_flag=$allow_undefined_flag |
8858 | allow_undefined_flag= |
8859 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
8860 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
8861 | ac_status=$? |
8862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8863 | (exit $ac_status); } |
8864 | then |
8865 | archive_cmds_need_lc=no |
8866 | else |
8867 | archive_cmds_need_lc=yes |
8868 | fi |
8869 | allow_undefined_flag=$lt_save_allow_undefined_flag |
8870 | else |
8871 | cat conftest.err 1>&5 |
8872 | fi |
8873 | $rm conftest* |
dd184caf |
8874 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
8875 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
d9898ee8 |
8876 | ;; |
8877 | esac |
8878 | fi |
8879 | ;; |
8880 | esac |
8881 | |
dd184caf |
8882 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
8883 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
8884 | library_names_spec= |
8885 | libname_spec='lib$name' |
8886 | soname_spec= |
8887 | shrext_cmds=".so" |
8888 | postinstall_cmds= |
8889 | postuninstall_cmds= |
8890 | finish_cmds= |
8891 | finish_eval= |
8892 | shlibpath_var= |
8893 | shlibpath_overrides_runpath=unknown |
8894 | version_type=none |
8895 | dynamic_linker="$host_os ld.so" |
8896 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
8897 | if test "$GCC" = yes; then |
8898 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8899 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
8900 | # if the path contains ";" then we assume it to be the separator |
8901 | # otherwise default to the standard path separator (i.e. ":") - it is |
8902 | # assumed that no part of a normal pathname contains ";" but that should |
8903 | # okay in the real world where ";" in dirpaths is itself problematic. |
8904 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8905 | else |
8906 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8907 | fi |
8908 | else |
8909 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
8910 | fi |
8911 | need_lib_prefix=unknown |
8912 | hardcode_into_libs=no |
8913 | |
8914 | # when you set need_version to no, make sure it does not cause -set_version |
8915 | # flags to be left without arguments |
8916 | need_version=unknown |
8917 | |
8918 | case $host_os in |
8919 | aix3*) |
8920 | version_type=linux |
8921 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
8922 | shlibpath_var=LIBPATH |
8923 | |
8924 | # AIX 3 has no versioning support, so we append a major version to the name. |
8925 | soname_spec='${libname}${release}${shared_ext}$major' |
8926 | ;; |
8927 | |
8928 | aix4* | aix5*) |
8929 | version_type=linux |
8930 | need_lib_prefix=no |
8931 | need_version=no |
8932 | hardcode_into_libs=yes |
8933 | if test "$host_cpu" = ia64; then |
8934 | # AIX 5 supports IA64 |
8935 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
8936 | shlibpath_var=LD_LIBRARY_PATH |
8937 | else |
8938 | # With GCC up to 2.95.x, collect2 would create an import file |
8939 | # for dependence libraries. The import file would start with |
8940 | # the line `#! .'. This would cause the generated library to |
8941 | # depend on `.', always an invalid library. This was fixed in |
8942 | # development snapshots of GCC prior to 3.0. |
8943 | case $host_os in |
8944 | aix4 | aix4.[01] | aix4.[01].*) |
8945 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
8946 | echo ' yes ' |
8947 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
8948 | : |
8949 | else |
8950 | can_build_shared=no |
8951 | fi |
8952 | ;; |
8953 | esac |
8954 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
8955 | # soname into executable. Probably we can add versioning support to |
8956 | # collect2, so additional links can be useful in future. |
8957 | if test "$aix_use_runtimelinking" = yes; then |
8958 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
8959 | # instead of lib<name>.a to let people know that these are not |
8960 | # typical AIX shared libraries. |
8961 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8962 | else |
8963 | # We preserve .a as extension for shared libraries through AIX4.2 |
8964 | # and later when we are not doing run time linking. |
8965 | library_names_spec='${libname}${release}.a $libname.a' |
8966 | soname_spec='${libname}${release}${shared_ext}$major' |
8967 | fi |
8968 | shlibpath_var=LIBPATH |
8969 | fi |
8970 | ;; |
8971 | |
8972 | amigaos*) |
8973 | library_names_spec='$libname.ixlibrary $libname.a' |
8974 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
8975 | 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' |
8976 | ;; |
8977 | |
8978 | beos*) |
8979 | library_names_spec='${libname}${shared_ext}' |
8980 | dynamic_linker="$host_os ld.so" |
8981 | shlibpath_var=LIBRARY_PATH |
8982 | ;; |
8983 | |
8984 | bsdi[45]*) |
8985 | version_type=linux |
8986 | need_version=no |
8987 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8988 | soname_spec='${libname}${release}${shared_ext}$major' |
8989 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
8990 | shlibpath_var=LD_LIBRARY_PATH |
8991 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
8992 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
8993 | # the default ld.so.conf also contains /usr/contrib/lib and |
8994 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
8995 | # libtool to hard-code these into programs |
8996 | ;; |
8997 | |
8998 | cygwin* | mingw* | pw32*) |
8999 | version_type=windows |
9000 | shrext_cmds=".dll" |
9001 | need_version=no |
9002 | need_lib_prefix=no |
9003 | |
9004 | case $GCC,$host_os in |
9005 | yes,cygwin* | yes,mingw* | yes,pw32*) |
9006 | library_names_spec='$libname.dll.a' |
9007 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
9008 | postinstall_cmds='base_file=`basename \${file}`~ |
9009 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
9010 | dldir=$destdir/`dirname \$dlpath`~ |
9011 | test -d \$dldir || mkdir -p \$dldir~ |
9012 | $install_prog $dir/$dlname \$dldir/$dlname~ |
9013 | chmod a+x \$dldir/$dlname' |
9014 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
9015 | dlpath=$dir/\$dldll~ |
9016 | $rm \$dlpath' |
9017 | shlibpath_overrides_runpath=yes |
9018 | |
9019 | case $host_os in |
9020 | cygwin*) |
9021 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
9022 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
9023 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
9024 | ;; |
9025 | mingw*) |
9026 | # MinGW DLLs use traditional 'lib' prefix |
9027 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
9028 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
9029 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
9030 | # It is most probably a Windows format PATH printed by |
9031 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
9032 | # path with ; separators, and with drive letters. We can handle the |
9033 | # drive letters (cygwin fileutils understands them), so leave them, |
9034 | # especially as we might pass files found there to a mingw objdump, |
9035 | # which wouldn't understand a cygwinified path. Ahh. |
9036 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
9037 | else |
9038 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
9039 | fi |
9040 | ;; |
9041 | pw32*) |
9042 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
9043 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
9044 | ;; |
9045 | esac |
9046 | ;; |
9047 | |
9048 | *) |
9049 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
9050 | ;; |
9051 | esac |
9052 | dynamic_linker='Win32 ld.exe' |
9053 | # FIXME: first we should search . and the directory the executable is in |
9054 | shlibpath_var=PATH |
9055 | ;; |
9056 | |
9057 | darwin* | rhapsody*) |
9058 | dynamic_linker="$host_os dyld" |
9059 | version_type=darwin |
9060 | need_lib_prefix=no |
9061 | need_version=no |
9062 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
9063 | soname_spec='${libname}${release}${major}$shared_ext' |
9064 | shlibpath_overrides_runpath=yes |
9065 | shlibpath_var=DYLD_LIBRARY_PATH |
9066 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
9067 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
9068 | if test "$GCC" = yes; then |
9069 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
9070 | else |
9071 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
9072 | fi |
9073 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
9074 | ;; |
9075 | |
9076 | dgux*) |
9077 | version_type=linux |
9078 | need_lib_prefix=no |
9079 | need_version=no |
9080 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
9081 | soname_spec='${libname}${release}${shared_ext}$major' |
9082 | shlibpath_var=LD_LIBRARY_PATH |
9083 | ;; |
9084 | |
9085 | freebsd1*) |
9086 | dynamic_linker=no |
9087 | ;; |
9088 | |
9089 | kfreebsd*-gnu) |
9090 | version_type=linux |
9091 | need_lib_prefix=no |
9092 | need_version=no |
9093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9094 | soname_spec='${libname}${release}${shared_ext}$major' |
9095 | shlibpath_var=LD_LIBRARY_PATH |
9096 | shlibpath_overrides_runpath=no |
9097 | hardcode_into_libs=yes |
9098 | dynamic_linker='GNU ld.so' |
9099 | ;; |
9100 | |
9101 | freebsd* | dragonfly*) |
9102 | # DragonFly does not have aout. When/if they implement a new |
9103 | # versioning mechanism, adjust this. |
9104 | if test -x /usr/bin/objformat; then |
9105 | objformat=`/usr/bin/objformat` |
9106 | else |
9107 | case $host_os in |
9108 | freebsd[123]*) objformat=aout ;; |
9109 | *) objformat=elf ;; |
9110 | esac |
9111 | fi |
9112 | version_type=freebsd-$objformat |
9113 | case $version_type in |
9114 | freebsd-elf*) |
9115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
9116 | need_version=no |
9117 | need_lib_prefix=no |
9118 | ;; |
9119 | freebsd-*) |
9120 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
9121 | need_version=yes |
9122 | ;; |
9123 | esac |
9124 | shlibpath_var=LD_LIBRARY_PATH |
9125 | case $host_os in |
9126 | freebsd2*) |
9127 | shlibpath_overrides_runpath=yes |
9128 | ;; |
9129 | freebsd3.[01]* | freebsdelf3.[01]*) |
9130 | shlibpath_overrides_runpath=yes |
9131 | hardcode_into_libs=yes |
9132 | ;; |
9133 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
9134 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
9135 | shlibpath_overrides_runpath=no |
9136 | hardcode_into_libs=yes |
9137 | ;; |
9138 | freebsd*) # from 4.6 on |
9139 | shlibpath_overrides_runpath=yes |
9140 | hardcode_into_libs=yes |
9141 | ;; |
9142 | esac |
9143 | ;; |
9144 | |
9145 | gnu*) |
9146 | version_type=linux |
9147 | need_lib_prefix=no |
9148 | need_version=no |
9149 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
9150 | soname_spec='${libname}${release}${shared_ext}$major' |
9151 | shlibpath_var=LD_LIBRARY_PATH |
9152 | hardcode_into_libs=yes |
9153 | ;; |
9154 | |
9155 | hpux9* | hpux10* | hpux11*) |
9156 | # Give a soname corresponding to the major version so that dld.sl refuses to |
9157 | # link against other versions. |
9158 | version_type=sunos |
9159 | need_lib_prefix=no |
9160 | need_version=no |
9161 | case $host_cpu in |
9162 | ia64*) |
9163 | shrext_cmds='.so' |
9164 | hardcode_into_libs=yes |
9165 | dynamic_linker="$host_os dld.so" |
9166 | shlibpath_var=LD_LIBRARY_PATH |
9167 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
9168 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9169 | soname_spec='${libname}${release}${shared_ext}$major' |
9170 | if test "X$HPUX_IA64_MODE" = X32; then |
9171 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
9172 | else |
9173 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
9174 | fi |
9175 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
9176 | ;; |
9177 | hppa*64*) |
9178 | shrext_cmds='.sl' |
9179 | hardcode_into_libs=yes |
9180 | dynamic_linker="$host_os dld.sl" |
9181 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
9182 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
9183 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9184 | soname_spec='${libname}${release}${shared_ext}$major' |
9185 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
9186 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
9187 | ;; |
9188 | *) |
9189 | shrext_cmds='.sl' |
9190 | dynamic_linker="$host_os dld.sl" |
9191 | shlibpath_var=SHLIB_PATH |
9192 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
9193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9194 | soname_spec='${libname}${release}${shared_ext}$major' |
9195 | ;; |
9196 | esac |
9197 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
9198 | postinstall_cmds='chmod 555 $lib' |
9199 | ;; |
9200 | |
9201 | interix3*) |
9202 | version_type=linux |
9203 | need_lib_prefix=no |
9204 | need_version=no |
9205 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9206 | soname_spec='${libname}${release}${shared_ext}$major' |
9207 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
9208 | shlibpath_var=LD_LIBRARY_PATH |
9209 | shlibpath_overrides_runpath=no |
9210 | hardcode_into_libs=yes |
9211 | ;; |
9212 | |
9213 | irix5* | irix6* | nonstopux*) |
9214 | case $host_os in |
9215 | nonstopux*) version_type=nonstopux ;; |
9216 | *) |
9217 | if test "$lt_cv_prog_gnu_ld" = yes; then |
9218 | version_type=linux |
9219 | else |
9220 | version_type=irix |
9221 | fi ;; |
9222 | esac |
9223 | need_lib_prefix=no |
9224 | need_version=no |
9225 | soname_spec='${libname}${release}${shared_ext}$major' |
9226 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
9227 | case $host_os in |
9228 | irix5* | nonstopux*) |
9229 | libsuff= shlibsuff= |
9230 | ;; |
9231 | *) |
9232 | case $LD in # libtool.m4 will add one of these switches to LD |
9233 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
9234 | libsuff= shlibsuff= libmagic=32-bit;; |
9235 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
9236 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
9237 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
9238 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
9239 | *) libsuff= shlibsuff= libmagic=never-match;; |
9240 | esac |
9241 | ;; |
9242 | esac |
9243 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
9244 | shlibpath_overrides_runpath=no |
9245 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
9246 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
9247 | hardcode_into_libs=yes |
9248 | ;; |
9249 | |
9250 | # No shared lib support for Linux oldld, aout, or coff. |
9251 | linux*oldld* | linux*aout* | linux*coff*) |
9252 | dynamic_linker=no |
9253 | ;; |
9254 | |
9255 | # This must be Linux ELF. |
9256 | linux*) |
9257 | version_type=linux |
9258 | need_lib_prefix=no |
9259 | need_version=no |
9260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9261 | soname_spec='${libname}${release}${shared_ext}$major' |
9262 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
9263 | shlibpath_var=LD_LIBRARY_PATH |
9264 | shlibpath_overrides_runpath=no |
9265 | # This implies no fast_install, which is unacceptable. |
9266 | # Some rework will be needed to allow for fast_install |
9267 | # before this can be enabled. |
9268 | hardcode_into_libs=yes |
9269 | |
9270 | # find out which ABI we are using |
9271 | libsuff= |
9272 | case "$host_cpu" in |
9273 | x86_64*|s390x*|powerpc64*) |
dd184caf |
9274 | echo '#line 9274 "configure"' > conftest.$ac_ext |
d9898ee8 |
9275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9276 | (eval $ac_compile) 2>&5 |
9277 | ac_status=$? |
9278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9279 | (exit $ac_status); }; then |
9280 | case `/usr/bin/file conftest.$ac_objext` in |
9281 | *64-bit*) |
9282 | libsuff=64 |
9283 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
9284 | ;; |
9285 | esac |
9286 | fi |
9287 | rm -rf conftest* |
9288 | ;; |
9289 | esac |
9290 | |
9291 | # Append ld.so.conf contents to the search path |
9292 | if test -f /etc/ld.so.conf; then |
dd184caf |
9293 | 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
9294 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
9295 | fi |
9296 | |
9297 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
9298 | # powerpc, because MkLinux only supported shared libraries with the |
9299 | # GNU dynamic linker. Since this was broken with cross compilers, |
9300 | # most powerpc-linux boxes support dynamic linking these days and |
9301 | # people can always --disable-shared, the test was removed, and we |
9302 | # assume the GNU/Linux dynamic linker is in use. |
9303 | dynamic_linker='GNU/Linux ld.so' |
9304 | ;; |
9305 | |
9306 | knetbsd*-gnu) |
9307 | version_type=linux |
9308 | need_lib_prefix=no |
9309 | need_version=no |
9310 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9311 | soname_spec='${libname}${release}${shared_ext}$major' |
9312 | shlibpath_var=LD_LIBRARY_PATH |
9313 | shlibpath_overrides_runpath=no |
9314 | hardcode_into_libs=yes |
9315 | dynamic_linker='GNU ld.so' |
9316 | ;; |
9317 | |
9318 | netbsd*) |
9319 | version_type=sunos |
9320 | need_lib_prefix=no |
9321 | need_version=no |
9322 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
9323 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9324 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9325 | dynamic_linker='NetBSD (a.out) ld.so' |
9326 | else |
9327 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9328 | soname_spec='${libname}${release}${shared_ext}$major' |
9329 | dynamic_linker='NetBSD ld.elf_so' |
9330 | fi |
9331 | shlibpath_var=LD_LIBRARY_PATH |
9332 | shlibpath_overrides_runpath=yes |
9333 | hardcode_into_libs=yes |
9334 | ;; |
9335 | |
9336 | newsos6) |
9337 | version_type=linux |
9338 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9339 | shlibpath_var=LD_LIBRARY_PATH |
9340 | shlibpath_overrides_runpath=yes |
9341 | ;; |
9342 | |
9343 | nto-qnx*) |
9344 | version_type=linux |
9345 | need_lib_prefix=no |
9346 | need_version=no |
9347 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9348 | soname_spec='${libname}${release}${shared_ext}$major' |
9349 | shlibpath_var=LD_LIBRARY_PATH |
9350 | shlibpath_overrides_runpath=yes |
9351 | ;; |
9352 | |
9353 | openbsd*) |
9354 | version_type=sunos |
9355 | sys_lib_dlsearch_path_spec="/usr/lib" |
9356 | need_lib_prefix=no |
9357 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
9358 | case $host_os in |
9359 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
9360 | *) need_version=no ;; |
9361 | esac |
9362 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9363 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9364 | shlibpath_var=LD_LIBRARY_PATH |
9365 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
9366 | case $host_os in |
9367 | openbsd2.[89] | openbsd2.[89].*) |
9368 | shlibpath_overrides_runpath=no |
9369 | ;; |
9370 | *) |
9371 | shlibpath_overrides_runpath=yes |
9372 | ;; |
9373 | esac |
9374 | else |
9375 | shlibpath_overrides_runpath=yes |
9376 | fi |
9377 | ;; |
9378 | |
9379 | os2*) |
9380 | libname_spec='$name' |
9381 | shrext_cmds=".dll" |
9382 | need_lib_prefix=no |
9383 | library_names_spec='$libname${shared_ext} $libname.a' |
9384 | dynamic_linker='OS/2 ld.exe' |
9385 | shlibpath_var=LIBPATH |
9386 | ;; |
9387 | |
9388 | osf3* | osf4* | osf5*) |
9389 | version_type=osf |
9390 | need_lib_prefix=no |
9391 | need_version=no |
9392 | soname_spec='${libname}${release}${shared_ext}$major' |
9393 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9394 | shlibpath_var=LD_LIBRARY_PATH |
9395 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
9396 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
9397 | ;; |
9398 | |
9399 | solaris*) |
9400 | version_type=linux |
9401 | need_lib_prefix=no |
9402 | need_version=no |
9403 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9404 | soname_spec='${libname}${release}${shared_ext}$major' |
9405 | shlibpath_var=LD_LIBRARY_PATH |
9406 | shlibpath_overrides_runpath=yes |
9407 | hardcode_into_libs=yes |
9408 | # ldd complains unless libraries are executable |
9409 | postinstall_cmds='chmod +x $lib' |
9410 | ;; |
9411 | |
9412 | sunos4*) |
9413 | version_type=sunos |
9414 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9415 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
9416 | shlibpath_var=LD_LIBRARY_PATH |
9417 | shlibpath_overrides_runpath=yes |
9418 | if test "$with_gnu_ld" = yes; then |
9419 | need_lib_prefix=no |
9420 | fi |
9421 | need_version=yes |
9422 | ;; |
9423 | |
9424 | sysv4 | sysv4.3*) |
9425 | version_type=linux |
9426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9427 | soname_spec='${libname}${release}${shared_ext}$major' |
9428 | shlibpath_var=LD_LIBRARY_PATH |
9429 | case $host_vendor in |
9430 | sni) |
9431 | shlibpath_overrides_runpath=no |
9432 | need_lib_prefix=no |
9433 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
9434 | runpath_var=LD_RUN_PATH |
9435 | ;; |
9436 | siemens) |
9437 | need_lib_prefix=no |
9438 | ;; |
9439 | motorola) |
9440 | need_lib_prefix=no |
9441 | need_version=no |
9442 | shlibpath_overrides_runpath=no |
9443 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
9444 | ;; |
9445 | esac |
9446 | ;; |
9447 | |
9448 | sysv4*MP*) |
9449 | if test -d /usr/nec ;then |
9450 | version_type=linux |
9451 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
9452 | soname_spec='$libname${shared_ext}.$major' |
9453 | shlibpath_var=LD_LIBRARY_PATH |
9454 | fi |
9455 | ;; |
9456 | |
9457 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9458 | version_type=freebsd-elf |
9459 | need_lib_prefix=no |
9460 | need_version=no |
9461 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
9462 | soname_spec='${libname}${release}${shared_ext}$major' |
9463 | shlibpath_var=LD_LIBRARY_PATH |
9464 | hardcode_into_libs=yes |
9465 | if test "$with_gnu_ld" = yes; then |
9466 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
9467 | shlibpath_overrides_runpath=no |
9468 | else |
9469 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
9470 | shlibpath_overrides_runpath=yes |
9471 | case $host_os in |
9472 | sco3.2v5*) |
9473 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
9474 | ;; |
9475 | esac |
9476 | fi |
9477 | sys_lib_dlsearch_path_spec='/usr/lib' |
9478 | ;; |
9479 | |
9480 | uts4*) |
9481 | version_type=linux |
9482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9483 | soname_spec='${libname}${release}${shared_ext}$major' |
9484 | shlibpath_var=LD_LIBRARY_PATH |
9485 | ;; |
9486 | |
9487 | *) |
9488 | dynamic_linker=no |
9489 | ;; |
9490 | esac |
dd184caf |
9491 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
9492 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
9493 | test "$dynamic_linker" = no && can_build_shared=no |
9494 | |
9495 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9496 | if test "$GCC" = yes; then |
9497 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
9498 | fi |
9499 | |
dd184caf |
9500 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
9501 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
9502 | hardcode_action= |
9503 | if test -n "$hardcode_libdir_flag_spec" || \ |
9504 | test -n "$runpath_var" || \ |
9505 | test "X$hardcode_automatic" = "Xyes" ; then |
9506 | |
9507 | # We can hardcode non-existant directories. |
9508 | if test "$hardcode_direct" != no && |
9509 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
9510 | # have to relink, otherwise we might link with an installed library |
9511 | # when we should be linking with a yet-to-be-installed one |
9512 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
9513 | test "$hardcode_minus_L" != no; then |
9514 | # Linking always hardcodes the temporary library directory. |
9515 | hardcode_action=relink |
9516 | else |
9517 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
9518 | hardcode_action=immediate |
9519 | fi |
9520 | else |
9521 | # We cannot hardcode anything, or else we can only hardcode existing |
9522 | # directories. |
9523 | hardcode_action=unsupported |
9524 | fi |
dd184caf |
9525 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
9526 | echo "${ECHO_T}$hardcode_action" >&6; } |
d9898ee8 |
9527 | |
9528 | if test "$hardcode_action" = relink; then |
9529 | # Fast installation is not supported |
9530 | enable_fast_install=no |
9531 | elif test "$shlibpath_overrides_runpath" = yes || |
9532 | test "$enable_shared" = no; then |
9533 | # Fast installation is not necessary |
9534 | enable_fast_install=needless |
9535 | fi |
9536 | |
9537 | striplib= |
9538 | old_striplib= |
dd184caf |
9539 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
9540 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
d9898ee8 |
9541 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
9542 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
9543 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
dd184caf |
9544 | { echo "$as_me:$LINENO: result: yes" >&5 |
9545 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9546 | else |
9547 | # FIXME - insert some real tests, host_os isn't really good enough |
9548 | case $host_os in |
9549 | darwin*) |
9550 | if test -n "$STRIP" ; then |
9551 | striplib="$STRIP -x" |
dd184caf |
9552 | { echo "$as_me:$LINENO: result: yes" >&5 |
9553 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9554 | else |
dd184caf |
9555 | { echo "$as_me:$LINENO: result: no" >&5 |
9556 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9557 | fi |
9558 | ;; |
9559 | *) |
dd184caf |
9560 | { echo "$as_me:$LINENO: result: no" >&5 |
9561 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9562 | ;; |
9563 | esac |
9564 | fi |
9565 | |
9566 | if test "x$enable_dlopen" != xyes; then |
9567 | enable_dlopen=unknown |
9568 | enable_dlopen_self=unknown |
9569 | enable_dlopen_self_static=unknown |
9570 | else |
9571 | lt_cv_dlopen=no |
9572 | lt_cv_dlopen_libs= |
9573 | |
9574 | case $host_os in |
9575 | beos*) |
9576 | lt_cv_dlopen="load_add_on" |
9577 | lt_cv_dlopen_libs= |
9578 | lt_cv_dlopen_self=yes |
9579 | ;; |
9580 | |
9581 | mingw* | pw32*) |
9582 | lt_cv_dlopen="LoadLibrary" |
9583 | lt_cv_dlopen_libs= |
9584 | ;; |
9585 | |
9586 | cygwin*) |
9587 | lt_cv_dlopen="dlopen" |
9588 | lt_cv_dlopen_libs= |
9589 | ;; |
9590 | |
9591 | darwin*) |
9592 | # if libdl is installed we need to link against it |
dd184caf |
9593 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9594 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9595 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9597 | else |
9598 | ac_check_lib_save_LIBS=$LIBS |
9599 | LIBS="-ldl $LIBS" |
9600 | cat >conftest.$ac_ext <<_ACEOF |
9601 | /* confdefs.h. */ |
9602 | _ACEOF |
9603 | cat confdefs.h >>conftest.$ac_ext |
9604 | cat >>conftest.$ac_ext <<_ACEOF |
9605 | /* end confdefs.h. */ |
9606 | |
dd184caf |
9607 | /* Override any GCC internal prototype to avoid an error. |
9608 | Use char because int might match the return type of a GCC |
9609 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9610 | #ifdef __cplusplus |
9611 | extern "C" |
9612 | #endif |
d9898ee8 |
9613 | char dlopen (); |
9614 | int |
9615 | main () |
9616 | { |
dd184caf |
9617 | return dlopen (); |
d9898ee8 |
9618 | ; |
9619 | return 0; |
9620 | } |
9621 | _ACEOF |
9622 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9623 | if { (ac_try="$ac_link" |
9624 | case "(($ac_try" in |
9625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9626 | *) ac_try_echo=$ac_try;; |
9627 | esac |
9628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9629 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9630 | ac_status=$? |
9631 | grep -v '^ *+' conftest.er1 >conftest.err |
9632 | rm -f conftest.er1 |
9633 | cat conftest.err >&5 |
9634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9635 | (exit $ac_status); } && { |
9636 | test -z "$ac_c_werror_flag" || |
9637 | test ! -s conftest.err |
9638 | } && test -s conftest$ac_exeext && |
9639 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9640 | ac_cv_lib_dl_dlopen=yes |
9641 | else |
9642 | echo "$as_me: failed program was:" >&5 |
9643 | sed 's/^/| /' conftest.$ac_ext >&5 |
9644 | |
dd184caf |
9645 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9646 | fi |
dd184caf |
9647 | |
9648 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9649 | conftest$ac_exeext conftest.$ac_ext |
9650 | LIBS=$ac_check_lib_save_LIBS |
9651 | fi |
dd184caf |
9652 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9653 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9654 | if test $ac_cv_lib_dl_dlopen = yes; then |
9655 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9656 | else |
9657 | |
9658 | lt_cv_dlopen="dyld" |
9659 | lt_cv_dlopen_libs= |
9660 | lt_cv_dlopen_self=yes |
9661 | |
9662 | fi |
9663 | |
9664 | ;; |
9665 | |
9666 | *) |
dd184caf |
9667 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
9668 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
d9898ee8 |
9669 | if test "${ac_cv_func_shl_load+set}" = set; then |
9670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9671 | else |
9672 | cat >conftest.$ac_ext <<_ACEOF |
9673 | /* confdefs.h. */ |
9674 | _ACEOF |
9675 | cat confdefs.h >>conftest.$ac_ext |
9676 | cat >>conftest.$ac_ext <<_ACEOF |
9677 | /* end confdefs.h. */ |
9678 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
9679 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9680 | #define shl_load innocuous_shl_load |
9681 | |
9682 | /* System header to define __stub macros and hopefully few prototypes, |
9683 | which can conflict with char shl_load (); below. |
9684 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9685 | <limits.h> exists even on freestanding compilers. */ |
9686 | |
9687 | #ifdef __STDC__ |
9688 | # include <limits.h> |
9689 | #else |
9690 | # include <assert.h> |
9691 | #endif |
9692 | |
9693 | #undef shl_load |
9694 | |
dd184caf |
9695 | /* Override any GCC internal prototype to avoid an error. |
9696 | Use char because int might match the return type of a GCC |
9697 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9698 | #ifdef __cplusplus |
9699 | extern "C" |
d9898ee8 |
9700 | #endif |
d9898ee8 |
9701 | char shl_load (); |
9702 | /* The GNU C library defines this for functions which it implements |
9703 | to always fail with ENOSYS. Some functions are actually named |
9704 | something starting with __ and the normal name is an alias. */ |
dd184caf |
9705 | #if defined __stub_shl_load || defined __stub___shl_load |
d9898ee8 |
9706 | choke me |
d9898ee8 |
9707 | #endif |
9708 | |
9709 | int |
9710 | main () |
9711 | { |
dd184caf |
9712 | return shl_load (); |
d9898ee8 |
9713 | ; |
9714 | return 0; |
9715 | } |
9716 | _ACEOF |
9717 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9718 | if { (ac_try="$ac_link" |
9719 | case "(($ac_try" in |
9720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9721 | *) ac_try_echo=$ac_try;; |
9722 | esac |
9723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9724 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9725 | ac_status=$? |
9726 | grep -v '^ *+' conftest.er1 >conftest.err |
9727 | rm -f conftest.er1 |
9728 | cat conftest.err >&5 |
9729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9730 | (exit $ac_status); } && { |
9731 | test -z "$ac_c_werror_flag" || |
9732 | test ! -s conftest.err |
9733 | } && test -s conftest$ac_exeext && |
9734 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9735 | ac_cv_func_shl_load=yes |
9736 | else |
9737 | echo "$as_me: failed program was:" >&5 |
9738 | sed 's/^/| /' conftest.$ac_ext >&5 |
9739 | |
dd184caf |
9740 | ac_cv_func_shl_load=no |
d9898ee8 |
9741 | fi |
dd184caf |
9742 | |
9743 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9744 | conftest$ac_exeext conftest.$ac_ext |
9745 | fi |
dd184caf |
9746 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
9747 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
d9898ee8 |
9748 | if test $ac_cv_func_shl_load = yes; then |
9749 | lt_cv_dlopen="shl_load" |
9750 | else |
dd184caf |
9751 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
9752 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9753 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
9754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9755 | else |
9756 | ac_check_lib_save_LIBS=$LIBS |
9757 | LIBS="-ldld $LIBS" |
9758 | cat >conftest.$ac_ext <<_ACEOF |
9759 | /* confdefs.h. */ |
9760 | _ACEOF |
9761 | cat confdefs.h >>conftest.$ac_ext |
9762 | cat >>conftest.$ac_ext <<_ACEOF |
9763 | /* end confdefs.h. */ |
9764 | |
dd184caf |
9765 | /* Override any GCC internal prototype to avoid an error. |
9766 | Use char because int might match the return type of a GCC |
9767 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9768 | #ifdef __cplusplus |
9769 | extern "C" |
9770 | #endif |
d9898ee8 |
9771 | char shl_load (); |
9772 | int |
9773 | main () |
9774 | { |
dd184caf |
9775 | return shl_load (); |
d9898ee8 |
9776 | ; |
9777 | return 0; |
9778 | } |
9779 | _ACEOF |
9780 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9781 | if { (ac_try="$ac_link" |
9782 | case "(($ac_try" in |
9783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9784 | *) ac_try_echo=$ac_try;; |
9785 | esac |
9786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9787 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9788 | ac_status=$? |
9789 | grep -v '^ *+' conftest.er1 >conftest.err |
9790 | rm -f conftest.er1 |
9791 | cat conftest.err >&5 |
9792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9793 | (exit $ac_status); } && { |
9794 | test -z "$ac_c_werror_flag" || |
9795 | test ! -s conftest.err |
9796 | } && test -s conftest$ac_exeext && |
9797 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9798 | ac_cv_lib_dld_shl_load=yes |
9799 | else |
9800 | echo "$as_me: failed program was:" >&5 |
9801 | sed 's/^/| /' conftest.$ac_ext >&5 |
9802 | |
dd184caf |
9803 | ac_cv_lib_dld_shl_load=no |
d9898ee8 |
9804 | fi |
dd184caf |
9805 | |
9806 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9807 | conftest$ac_exeext conftest.$ac_ext |
9808 | LIBS=$ac_check_lib_save_LIBS |
9809 | fi |
dd184caf |
9810 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
9811 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
d9898ee8 |
9812 | if test $ac_cv_lib_dld_shl_load = yes; then |
9813 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
9814 | else |
dd184caf |
9815 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
9816 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
d9898ee8 |
9817 | if test "${ac_cv_func_dlopen+set}" = set; then |
9818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9819 | else |
9820 | cat >conftest.$ac_ext <<_ACEOF |
9821 | /* confdefs.h. */ |
9822 | _ACEOF |
9823 | cat confdefs.h >>conftest.$ac_ext |
9824 | cat >>conftest.$ac_ext <<_ACEOF |
9825 | /* end confdefs.h. */ |
9826 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
9827 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9828 | #define dlopen innocuous_dlopen |
9829 | |
9830 | /* System header to define __stub macros and hopefully few prototypes, |
9831 | which can conflict with char dlopen (); below. |
9832 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9833 | <limits.h> exists even on freestanding compilers. */ |
9834 | |
9835 | #ifdef __STDC__ |
9836 | # include <limits.h> |
9837 | #else |
9838 | # include <assert.h> |
9839 | #endif |
9840 | |
9841 | #undef dlopen |
9842 | |
dd184caf |
9843 | /* Override any GCC internal prototype to avoid an error. |
9844 | Use char because int might match the return type of a GCC |
9845 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9846 | #ifdef __cplusplus |
9847 | extern "C" |
d9898ee8 |
9848 | #endif |
d9898ee8 |
9849 | char dlopen (); |
9850 | /* The GNU C library defines this for functions which it implements |
9851 | to always fail with ENOSYS. Some functions are actually named |
9852 | something starting with __ and the normal name is an alias. */ |
dd184caf |
9853 | #if defined __stub_dlopen || defined __stub___dlopen |
d9898ee8 |
9854 | choke me |
d9898ee8 |
9855 | #endif |
9856 | |
9857 | int |
9858 | main () |
9859 | { |
dd184caf |
9860 | return dlopen (); |
d9898ee8 |
9861 | ; |
9862 | return 0; |
9863 | } |
9864 | _ACEOF |
9865 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9866 | if { (ac_try="$ac_link" |
9867 | case "(($ac_try" in |
9868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9869 | *) ac_try_echo=$ac_try;; |
9870 | esac |
9871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9872 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9873 | ac_status=$? |
9874 | grep -v '^ *+' conftest.er1 >conftest.err |
9875 | rm -f conftest.er1 |
9876 | cat conftest.err >&5 |
9877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9878 | (exit $ac_status); } && { |
9879 | test -z "$ac_c_werror_flag" || |
9880 | test ! -s conftest.err |
9881 | } && test -s conftest$ac_exeext && |
9882 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9883 | ac_cv_func_dlopen=yes |
9884 | else |
9885 | echo "$as_me: failed program was:" >&5 |
9886 | sed 's/^/| /' conftest.$ac_ext >&5 |
9887 | |
dd184caf |
9888 | ac_cv_func_dlopen=no |
d9898ee8 |
9889 | fi |
dd184caf |
9890 | |
9891 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9892 | conftest$ac_exeext conftest.$ac_ext |
9893 | fi |
dd184caf |
9894 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
9895 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
d9898ee8 |
9896 | if test $ac_cv_func_dlopen = yes; then |
9897 | lt_cv_dlopen="dlopen" |
9898 | else |
dd184caf |
9899 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9900 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9901 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9903 | else |
9904 | ac_check_lib_save_LIBS=$LIBS |
9905 | LIBS="-ldl $LIBS" |
9906 | cat >conftest.$ac_ext <<_ACEOF |
9907 | /* confdefs.h. */ |
9908 | _ACEOF |
9909 | cat confdefs.h >>conftest.$ac_ext |
9910 | cat >>conftest.$ac_ext <<_ACEOF |
9911 | /* end confdefs.h. */ |
9912 | |
dd184caf |
9913 | /* Override any GCC internal prototype to avoid an error. |
9914 | Use char because int might match the return type of a GCC |
9915 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9916 | #ifdef __cplusplus |
9917 | extern "C" |
9918 | #endif |
d9898ee8 |
9919 | char dlopen (); |
9920 | int |
9921 | main () |
9922 | { |
dd184caf |
9923 | return dlopen (); |
d9898ee8 |
9924 | ; |
9925 | return 0; |
9926 | } |
9927 | _ACEOF |
9928 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9929 | if { (ac_try="$ac_link" |
9930 | case "(($ac_try" in |
9931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9932 | *) ac_try_echo=$ac_try;; |
9933 | esac |
9934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9935 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9936 | ac_status=$? |
9937 | grep -v '^ *+' conftest.er1 >conftest.err |
9938 | rm -f conftest.er1 |
9939 | cat conftest.err >&5 |
9940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9941 | (exit $ac_status); } && { |
9942 | test -z "$ac_c_werror_flag" || |
9943 | test ! -s conftest.err |
9944 | } && test -s conftest$ac_exeext && |
9945 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9946 | ac_cv_lib_dl_dlopen=yes |
9947 | else |
9948 | echo "$as_me: failed program was:" >&5 |
9949 | sed 's/^/| /' conftest.$ac_ext >&5 |
9950 | |
dd184caf |
9951 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9952 | fi |
dd184caf |
9953 | |
9954 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9955 | conftest$ac_exeext conftest.$ac_ext |
9956 | LIBS=$ac_check_lib_save_LIBS |
9957 | fi |
dd184caf |
9958 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9959 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9960 | if test $ac_cv_lib_dl_dlopen = yes; then |
9961 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9962 | else |
dd184caf |
9963 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9964 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
d9898ee8 |
9965 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
9966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9967 | else |
9968 | ac_check_lib_save_LIBS=$LIBS |
9969 | LIBS="-lsvld $LIBS" |
9970 | cat >conftest.$ac_ext <<_ACEOF |
9971 | /* confdefs.h. */ |
9972 | _ACEOF |
9973 | cat confdefs.h >>conftest.$ac_ext |
9974 | cat >>conftest.$ac_ext <<_ACEOF |
9975 | /* end confdefs.h. */ |
9976 | |
dd184caf |
9977 | /* Override any GCC internal prototype to avoid an error. |
9978 | Use char because int might match the return type of a GCC |
9979 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9980 | #ifdef __cplusplus |
9981 | extern "C" |
9982 | #endif |
d9898ee8 |
9983 | char dlopen (); |
9984 | int |
9985 | main () |
9986 | { |
dd184caf |
9987 | return dlopen (); |
d9898ee8 |
9988 | ; |
9989 | return 0; |
9990 | } |
9991 | _ACEOF |
9992 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9993 | if { (ac_try="$ac_link" |
9994 | case "(($ac_try" in |
9995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9996 | *) ac_try_echo=$ac_try;; |
9997 | esac |
9998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9999 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
10000 | ac_status=$? |
10001 | grep -v '^ *+' conftest.er1 >conftest.err |
10002 | rm -f conftest.er1 |
10003 | cat conftest.err >&5 |
10004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
10005 | (exit $ac_status); } && { |
10006 | test -z "$ac_c_werror_flag" || |
10007 | test ! -s conftest.err |
10008 | } && test -s conftest$ac_exeext && |
10009 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
10010 | ac_cv_lib_svld_dlopen=yes |
10011 | else |
10012 | echo "$as_me: failed program was:" >&5 |
10013 | sed 's/^/| /' conftest.$ac_ext >&5 |
10014 | |
dd184caf |
10015 | ac_cv_lib_svld_dlopen=no |
d9898ee8 |
10016 | fi |
dd184caf |
10017 | |
10018 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
10019 | conftest$ac_exeext conftest.$ac_ext |
10020 | LIBS=$ac_check_lib_save_LIBS |
10021 | fi |
dd184caf |
10022 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
10023 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
d9898ee8 |
10024 | if test $ac_cv_lib_svld_dlopen = yes; then |
10025 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
10026 | else |
dd184caf |
10027 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
10028 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
10029 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
10030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10031 | else |
10032 | ac_check_lib_save_LIBS=$LIBS |
10033 | LIBS="-ldld $LIBS" |
10034 | cat >conftest.$ac_ext <<_ACEOF |
10035 | /* confdefs.h. */ |
10036 | _ACEOF |
10037 | cat confdefs.h >>conftest.$ac_ext |
10038 | cat >>conftest.$ac_ext <<_ACEOF |
10039 | /* end confdefs.h. */ |
10040 | |
dd184caf |
10041 | /* Override any GCC internal prototype to avoid an error. |
10042 | Use char because int might match the return type of a GCC |
10043 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
10044 | #ifdef __cplusplus |
10045 | extern "C" |
10046 | #endif |
d9898ee8 |
10047 | char dld_link (); |
10048 | int |
10049 | main () |
10050 | { |
dd184caf |
10051 | return dld_link (); |
d9898ee8 |
10052 | ; |
10053 | return 0; |
10054 | } |
10055 | _ACEOF |
10056 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
10057 | if { (ac_try="$ac_link" |
10058 | case "(($ac_try" in |
10059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10060 | *) ac_try_echo=$ac_try;; |
10061 | esac |
10062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10063 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
10064 | ac_status=$? |
10065 | grep -v '^ *+' conftest.er1 >conftest.err |
10066 | rm -f conftest.er1 |
10067 | cat conftest.err >&5 |
10068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
10069 | (exit $ac_status); } && { |
10070 | test -z "$ac_c_werror_flag" || |
10071 | test ! -s conftest.err |
10072 | } && test -s conftest$ac_exeext && |
10073 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
10074 | ac_cv_lib_dld_dld_link=yes |
10075 | else |
10076 | echo "$as_me: failed program was:" >&5 |
10077 | sed 's/^/| /' conftest.$ac_ext >&5 |
10078 | |
dd184caf |
10079 | ac_cv_lib_dld_dld_link=no |
d9898ee8 |
10080 | fi |
dd184caf |
10081 | |
10082 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
10083 | conftest$ac_exeext conftest.$ac_ext |
10084 | LIBS=$ac_check_lib_save_LIBS |
10085 | fi |
dd184caf |
10086 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
10087 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
d9898ee8 |
10088 | if test $ac_cv_lib_dld_dld_link = yes; then |
10089 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
10090 | fi |
10091 | |
10092 | |
10093 | fi |
10094 | |
10095 | |
10096 | fi |
10097 | |
10098 | |
10099 | fi |
10100 | |
10101 | |
10102 | fi |
10103 | |
10104 | |
10105 | fi |
10106 | |
10107 | ;; |
10108 | esac |
10109 | |
10110 | if test "x$lt_cv_dlopen" != xno; then |
10111 | enable_dlopen=yes |
10112 | else |
10113 | enable_dlopen=no |
10114 | fi |
10115 | |
10116 | case $lt_cv_dlopen in |
10117 | dlopen) |
10118 | save_CPPFLAGS="$CPPFLAGS" |
10119 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
10120 | |
10121 | save_LDFLAGS="$LDFLAGS" |
10122 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
10123 | |
10124 | save_LIBS="$LIBS" |
10125 | LIBS="$lt_cv_dlopen_libs $LIBS" |
10126 | |
dd184caf |
10127 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
10128 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
10129 | if test "${lt_cv_dlopen_self+set}" = set; then |
10130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10131 | else |
10132 | if test "$cross_compiling" = yes; then : |
10133 | lt_cv_dlopen_self=cross |
10134 | else |
10135 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10136 | lt_status=$lt_dlunknown |
10137 | cat > conftest.$ac_ext <<EOF |
dd184caf |
10138 | #line 10138 "configure" |
d9898ee8 |
10139 | #include "confdefs.h" |
10140 | |
10141 | #if HAVE_DLFCN_H |
10142 | #include <dlfcn.h> |
10143 | #endif |
10144 | |
10145 | #include <stdio.h> |
10146 | |
10147 | #ifdef RTLD_GLOBAL |
10148 | # define LT_DLGLOBAL RTLD_GLOBAL |
10149 | #else |
10150 | # ifdef DL_GLOBAL |
10151 | # define LT_DLGLOBAL DL_GLOBAL |
10152 | # else |
10153 | # define LT_DLGLOBAL 0 |
10154 | # endif |
10155 | #endif |
10156 | |
10157 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10158 | find out it does not work in some platform. */ |
10159 | #ifndef LT_DLLAZY_OR_NOW |
10160 | # ifdef RTLD_LAZY |
10161 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
10162 | # else |
10163 | # ifdef DL_LAZY |
10164 | # define LT_DLLAZY_OR_NOW DL_LAZY |
10165 | # else |
10166 | # ifdef RTLD_NOW |
10167 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
10168 | # else |
10169 | # ifdef DL_NOW |
10170 | # define LT_DLLAZY_OR_NOW DL_NOW |
10171 | # else |
10172 | # define LT_DLLAZY_OR_NOW 0 |
10173 | # endif |
10174 | # endif |
10175 | # endif |
10176 | # endif |
10177 | #endif |
10178 | |
10179 | #ifdef __cplusplus |
10180 | extern "C" void exit (int); |
10181 | #endif |
10182 | |
10183 | void fnord() { int i=42;} |
10184 | int main () |
10185 | { |
10186 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10187 | int status = $lt_dlunknown; |
10188 | |
10189 | if (self) |
10190 | { |
10191 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10192 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10193 | /* dlclose (self); */ |
10194 | } |
10195 | else |
10196 | puts (dlerror ()); |
10197 | |
10198 | exit (status); |
10199 | } |
10200 | EOF |
10201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10202 | (eval $ac_link) 2>&5 |
10203 | ac_status=$? |
10204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10205 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10206 | (./conftest; exit; ) >&5 2>/dev/null |
10207 | lt_status=$? |
10208 | case x$lt_status in |
10209 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
10210 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
10211 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
10212 | esac |
10213 | else : |
10214 | # compilation failed |
10215 | lt_cv_dlopen_self=no |
10216 | fi |
10217 | fi |
10218 | rm -fr conftest* |
10219 | |
10220 | |
10221 | fi |
dd184caf |
10222 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
10223 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
d9898ee8 |
10224 | |
10225 | if test "x$lt_cv_dlopen_self" = xyes; then |
10226 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
dd184caf |
10227 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
10228 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
10229 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
10230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10231 | else |
10232 | if test "$cross_compiling" = yes; then : |
10233 | lt_cv_dlopen_self_static=cross |
10234 | else |
10235 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10236 | lt_status=$lt_dlunknown |
10237 | cat > conftest.$ac_ext <<EOF |
dd184caf |
10238 | #line 10238 "configure" |
d9898ee8 |
10239 | #include "confdefs.h" |
10240 | |
10241 | #if HAVE_DLFCN_H |
10242 | #include <dlfcn.h> |
10243 | #endif |
10244 | |
10245 | #include <stdio.h> |
10246 | |
10247 | #ifdef RTLD_GLOBAL |
10248 | # define LT_DLGLOBAL RTLD_GLOBAL |
10249 | #else |
10250 | # ifdef DL_GLOBAL |
10251 | # define LT_DLGLOBAL DL_GLOBAL |
10252 | # else |
10253 | # define LT_DLGLOBAL 0 |
10254 | # endif |
10255 | #endif |
10256 | |
10257 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10258 | find out it does not work in some platform. */ |
10259 | #ifndef LT_DLLAZY_OR_NOW |
10260 | # ifdef RTLD_LAZY |
10261 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
10262 | # else |
10263 | # ifdef DL_LAZY |
10264 | # define LT_DLLAZY_OR_NOW DL_LAZY |
10265 | # else |
10266 | # ifdef RTLD_NOW |
10267 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
10268 | # else |
10269 | # ifdef DL_NOW |
10270 | # define LT_DLLAZY_OR_NOW DL_NOW |
10271 | # else |
10272 | # define LT_DLLAZY_OR_NOW 0 |
10273 | # endif |
10274 | # endif |
10275 | # endif |
10276 | # endif |
10277 | #endif |
10278 | |
10279 | #ifdef __cplusplus |
10280 | extern "C" void exit (int); |
10281 | #endif |
10282 | |
10283 | void fnord() { int i=42;} |
10284 | int main () |
10285 | { |
10286 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10287 | int status = $lt_dlunknown; |
10288 | |
10289 | if (self) |
10290 | { |
10291 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10292 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10293 | /* dlclose (self); */ |
10294 | } |
10295 | else |
10296 | puts (dlerror ()); |
10297 | |
10298 | exit (status); |
10299 | } |
10300 | EOF |
10301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10302 | (eval $ac_link) 2>&5 |
10303 | ac_status=$? |
10304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10305 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10306 | (./conftest; exit; ) >&5 2>/dev/null |
10307 | lt_status=$? |
10308 | case x$lt_status in |
10309 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
10310 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
10311 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
10312 | esac |
10313 | else : |
10314 | # compilation failed |
10315 | lt_cv_dlopen_self_static=no |
10316 | fi |
10317 | fi |
10318 | rm -fr conftest* |
10319 | |
10320 | |
10321 | fi |
dd184caf |
10322 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
10323 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
d9898ee8 |
10324 | fi |
10325 | |
10326 | CPPFLAGS="$save_CPPFLAGS" |
10327 | LDFLAGS="$save_LDFLAGS" |
10328 | LIBS="$save_LIBS" |
10329 | ;; |
10330 | esac |
10331 | |
10332 | case $lt_cv_dlopen_self in |
10333 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
10334 | *) enable_dlopen_self=unknown ;; |
10335 | esac |
10336 | |
10337 | case $lt_cv_dlopen_self_static in |
10338 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
10339 | *) enable_dlopen_self_static=unknown ;; |
10340 | esac |
10341 | fi |
10342 | |
10343 | |
10344 | # Report which library types will actually be built |
dd184caf |
10345 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
10346 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
10347 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
10348 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
10349 | |
dd184caf |
10350 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
10351 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
10352 | test "$can_build_shared" = "no" && enable_shared=no |
10353 | |
10354 | # On AIX, shared libraries and static libraries use the same namespace, and |
10355 | # are all built from PIC. |
10356 | case $host_os in |
10357 | aix3*) |
10358 | test "$enable_shared" = yes && enable_static=no |
10359 | if test -n "$RANLIB"; then |
10360 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
10361 | postinstall_cmds='$RANLIB $lib' |
10362 | fi |
10363 | ;; |
10364 | |
10365 | aix4* | aix5*) |
10366 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10367 | test "$enable_shared" = yes && enable_static=no |
10368 | fi |
10369 | ;; |
10370 | esac |
dd184caf |
10371 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
10372 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
10373 | |
dd184caf |
10374 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
10375 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
10376 | # Make sure either enable_shared or enable_static is yes. |
10377 | test "$enable_shared" = yes || enable_static=yes |
dd184caf |
10378 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
10379 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
10380 | |
10381 | # The else clause should only fire when bootstrapping the |
10382 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
10383 | # with your package, and you will get complaints that there are |
10384 | # no rules to generate ltmain.sh. |
10385 | if test -f "$ltmain"; then |
10386 | # See if we are running on zsh, and set the options which allow our commands through |
10387 | # without removal of \ escapes. |
10388 | if test -n "${ZSH_VERSION+set}" ; then |
10389 | setopt NO_GLOB_SUBST |
10390 | fi |
10391 | # Now quote all the things that may contain metacharacters while being |
10392 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
10393 | # variables and quote the copies for generation of the libtool script. |
10394 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
10395 | SED SHELL STRIP \ |
10396 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
10397 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
10398 | deplibs_check_method reload_flag reload_cmds need_locks \ |
10399 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
10400 | lt_cv_sys_global_symbol_to_c_name_address \ |
10401 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
10402 | old_postinstall_cmds old_postuninstall_cmds \ |
10403 | compiler \ |
10404 | CC \ |
10405 | LD \ |
10406 | lt_prog_compiler_wl \ |
10407 | lt_prog_compiler_pic \ |
10408 | lt_prog_compiler_static \ |
10409 | lt_prog_compiler_no_builtin_flag \ |
10410 | export_dynamic_flag_spec \ |
10411 | thread_safe_flag_spec \ |
10412 | whole_archive_flag_spec \ |
10413 | enable_shared_with_static_runtimes \ |
10414 | old_archive_cmds \ |
10415 | old_archive_from_new_cmds \ |
10416 | predep_objects \ |
10417 | postdep_objects \ |
10418 | predeps \ |
10419 | postdeps \ |
10420 | compiler_lib_search_path \ |
10421 | archive_cmds \ |
10422 | archive_expsym_cmds \ |
10423 | postinstall_cmds \ |
10424 | postuninstall_cmds \ |
10425 | old_archive_from_expsyms_cmds \ |
10426 | allow_undefined_flag \ |
10427 | no_undefined_flag \ |
10428 | export_symbols_cmds \ |
10429 | hardcode_libdir_flag_spec \ |
10430 | hardcode_libdir_flag_spec_ld \ |
10431 | hardcode_libdir_separator \ |
10432 | hardcode_automatic \ |
10433 | module_cmds \ |
10434 | module_expsym_cmds \ |
10435 | lt_cv_prog_compiler_c_o \ |
10436 | exclude_expsyms \ |
10437 | include_expsyms; do |
10438 | |
10439 | case $var in |
10440 | old_archive_cmds | \ |
10441 | old_archive_from_new_cmds | \ |
10442 | archive_cmds | \ |
10443 | archive_expsym_cmds | \ |
10444 | module_cmds | \ |
10445 | module_expsym_cmds | \ |
10446 | old_archive_from_expsyms_cmds | \ |
10447 | export_symbols_cmds | \ |
10448 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
10449 | postinstall_cmds | postuninstall_cmds | \ |
10450 | old_postinstall_cmds | old_postuninstall_cmds | \ |
10451 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
10452 | # Double-quote double-evaled strings. |
10453 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
10454 | ;; |
10455 | *) |
10456 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
10457 | ;; |
10458 | esac |
10459 | done |
10460 | |
10461 | case $lt_echo in |
10462 | *'\$0 --fallback-echo"') |
10463 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
10464 | ;; |
10465 | esac |
10466 | |
10467 | cfgfile="${ofile}T" |
10468 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
10469 | $rm -f "$cfgfile" |
10470 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
10471 | echo "$as_me: creating $ofile" >&6;} |
10472 | |
10473 | cat <<__EOF__ >> "$cfgfile" |
10474 | #! $SHELL |
10475 | |
10476 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
10477 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
10478 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
10479 | # |
10480 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
10481 | # Free Software Foundation, Inc. |
10482 | # |
10483 | # This file is part of GNU Libtool: |
10484 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
10485 | # |
10486 | # This program is free software; you can redistribute it and/or modify |
10487 | # it under the terms of the GNU General Public License as published by |
10488 | # the Free Software Foundation; either version 2 of the License, or |
10489 | # (at your option) any later version. |
10490 | # |
10491 | # This program is distributed in the hope that it will be useful, but |
10492 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
10493 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
10494 | # General Public License for more details. |
10495 | # |
10496 | # You should have received a copy of the GNU General Public License |
10497 | # along with this program; if not, write to the Free Software |
10498 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
10499 | # |
10500 | # As a special exception to the GNU General Public License, if you |
10501 | # distribute this file as part of a program that contains a |
10502 | # configuration script generated by Autoconf, you may include it under |
10503 | # the same distribution terms that you use for the rest of that program. |
10504 | |
10505 | # A sed program that does not truncate output. |
10506 | SED=$lt_SED |
10507 | |
10508 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
10509 | Xsed="$SED -e 1s/^X//" |
10510 | |
10511 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
10512 | # if CDPATH is set. |
10513 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
10514 | |
10515 | # The names of the tagged configurations supported by this script. |
10516 | available_tags= |
10517 | |
10518 | # ### BEGIN LIBTOOL CONFIG |
10519 | |
10520 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
10521 | |
10522 | # Shell to use when invoking shell scripts. |
10523 | SHELL=$lt_SHELL |
10524 | |
10525 | # Whether or not to build shared libraries. |
10526 | build_libtool_libs=$enable_shared |
10527 | |
10528 | # Whether or not to build static libraries. |
10529 | build_old_libs=$enable_static |
10530 | |
10531 | # Whether or not to add -lc for building shared libraries. |
10532 | build_libtool_need_lc=$archive_cmds_need_lc |
10533 | |
10534 | # Whether or not to disallow shared libs when runtime libs are static |
10535 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
10536 | |
10537 | # Whether or not to optimize for fast installation. |
10538 | fast_install=$enable_fast_install |
10539 | |
10540 | # The host system. |
10541 | host_alias=$host_alias |
10542 | host=$host |
10543 | host_os=$host_os |
10544 | |
10545 | # The build system. |
10546 | build_alias=$build_alias |
10547 | build=$build |
10548 | build_os=$build_os |
10549 | |
10550 | # An echo program that does not interpret backslashes. |
10551 | echo=$lt_echo |
10552 | |
10553 | # The archiver. |
10554 | AR=$lt_AR |
10555 | AR_FLAGS=$lt_AR_FLAGS |
10556 | |
10557 | # A C compiler. |
10558 | LTCC=$lt_LTCC |
10559 | |
10560 | # LTCC compiler flags. |
10561 | LTCFLAGS=$lt_LTCFLAGS |
10562 | |
10563 | # A language-specific compiler. |
10564 | CC=$lt_compiler |
10565 | |
10566 | # Is the compiler the GNU C compiler? |
10567 | with_gcc=$GCC |
10568 | |
d9898ee8 |
10569 | # An ERE matcher. |
10570 | EGREP=$lt_EGREP |
10571 | |
10572 | # The linker used to build libraries. |
10573 | LD=$lt_LD |
10574 | |
10575 | # Whether we need hard or soft links. |
10576 | LN_S=$lt_LN_S |
10577 | |
10578 | # A BSD-compatible nm program. |
10579 | NM=$lt_NM |
10580 | |
10581 | # A symbol stripping program |
10582 | STRIP=$lt_STRIP |
10583 | |
10584 | # Used to examine libraries when file_magic_cmd begins "file" |
10585 | MAGIC_CMD=$MAGIC_CMD |
10586 | |
10587 | # Used on cygwin: DLL creation program. |
10588 | DLLTOOL="$DLLTOOL" |
10589 | |
10590 | # Used on cygwin: object dumper. |
10591 | OBJDUMP="$OBJDUMP" |
10592 | |
10593 | # Used on cygwin: assembler. |
10594 | AS="$AS" |
10595 | |
10596 | # The name of the directory that contains temporary libtool files. |
10597 | objdir=$objdir |
10598 | |
10599 | # How to create reloadable object files. |
10600 | reload_flag=$lt_reload_flag |
10601 | reload_cmds=$lt_reload_cmds |
10602 | |
10603 | # How to pass a linker flag through the compiler. |
10604 | wl=$lt_lt_prog_compiler_wl |
10605 | |
10606 | # Object file suffix (normally "o"). |
10607 | objext="$ac_objext" |
10608 | |
10609 | # Old archive suffix (normally "a"). |
10610 | libext="$libext" |
10611 | |
10612 | # Shared library suffix (normally ".so"). |
10613 | shrext_cmds='$shrext_cmds' |
10614 | |
10615 | # Executable file suffix (normally ""). |
10616 | exeext="$exeext" |
10617 | |
10618 | # Additional compiler flags for building library objects. |
10619 | pic_flag=$lt_lt_prog_compiler_pic |
10620 | pic_mode=$pic_mode |
10621 | |
10622 | # What is the maximum length of a command? |
10623 | max_cmd_len=$lt_cv_sys_max_cmd_len |
10624 | |
10625 | # Does compiler simultaneously support -c and -o options? |
10626 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
10627 | |
10628 | # Must we lock files when doing compilation? |
10629 | need_locks=$lt_need_locks |
10630 | |
10631 | # Do we need the lib prefix for modules? |
10632 | need_lib_prefix=$need_lib_prefix |
10633 | |
10634 | # Do we need a version for libraries? |
10635 | need_version=$need_version |
10636 | |
10637 | # Whether dlopen is supported. |
10638 | dlopen_support=$enable_dlopen |
10639 | |
10640 | # Whether dlopen of programs is supported. |
10641 | dlopen_self=$enable_dlopen_self |
10642 | |
10643 | # Whether dlopen of statically linked programs is supported. |
10644 | dlopen_self_static=$enable_dlopen_self_static |
10645 | |
10646 | # Compiler flag to prevent dynamic linking. |
10647 | link_static_flag=$lt_lt_prog_compiler_static |
10648 | |
10649 | # Compiler flag to turn off builtin functions. |
10650 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
10651 | |
10652 | # Compiler flag to allow reflexive dlopens. |
10653 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
10654 | |
10655 | # Compiler flag to generate shared objects directly from archives. |
10656 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
10657 | |
10658 | # Compiler flag to generate thread-safe objects. |
10659 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
10660 | |
10661 | # Library versioning type. |
10662 | version_type=$version_type |
10663 | |
10664 | # Format of library name prefix. |
10665 | libname_spec=$lt_libname_spec |
10666 | |
10667 | # List of archive names. First name is the real one, the rest are links. |
10668 | # The last name is the one that the linker finds with -lNAME. |
10669 | library_names_spec=$lt_library_names_spec |
10670 | |
10671 | # The coded name of the library, if different from the real name. |
10672 | soname_spec=$lt_soname_spec |
10673 | |
10674 | # Commands used to build and install an old-style archive. |
10675 | RANLIB=$lt_RANLIB |
10676 | old_archive_cmds=$lt_old_archive_cmds |
10677 | old_postinstall_cmds=$lt_old_postinstall_cmds |
10678 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
10679 | |
10680 | # Create an old-style archive from a shared archive. |
10681 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
10682 | |
10683 | # Create a temporary old-style archive to link instead of a shared archive. |
10684 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
10685 | |
10686 | # Commands used to build and install a shared archive. |
10687 | archive_cmds=$lt_archive_cmds |
10688 | archive_expsym_cmds=$lt_archive_expsym_cmds |
10689 | postinstall_cmds=$lt_postinstall_cmds |
10690 | postuninstall_cmds=$lt_postuninstall_cmds |
10691 | |
10692 | # Commands used to build a loadable module (assumed same as above if empty) |
10693 | module_cmds=$lt_module_cmds |
10694 | module_expsym_cmds=$lt_module_expsym_cmds |
10695 | |
10696 | # Commands to strip libraries. |
10697 | old_striplib=$lt_old_striplib |
10698 | striplib=$lt_striplib |
10699 | |
10700 | # Dependencies to place before the objects being linked to create a |
10701 | # shared library. |
dd184caf |
10702 | predep_objects=$lt_predep_objects |
d9898ee8 |
10703 | |
10704 | # Dependencies to place after the objects being linked to create a |
10705 | # shared library. |
dd184caf |
10706 | postdep_objects=$lt_postdep_objects |
d9898ee8 |
10707 | |
10708 | # Dependencies to place before the objects being linked to create a |
10709 | # shared library. |
10710 | predeps=$lt_predeps |
10711 | |
10712 | # Dependencies to place after the objects being linked to create a |
10713 | # shared library. |
10714 | postdeps=$lt_postdeps |
10715 | |
10716 | # The library search path used internally by the compiler when linking |
10717 | # a shared library. |
dd184caf |
10718 | compiler_lib_search_path=$lt_compiler_lib_search_path |
d9898ee8 |
10719 | |
10720 | # Method to check whether dependent libraries are shared objects. |
10721 | deplibs_check_method=$lt_deplibs_check_method |
10722 | |
10723 | # Command to use when deplibs_check_method == file_magic. |
10724 | file_magic_cmd=$lt_file_magic_cmd |
10725 | |
10726 | # Flag that allows shared libraries with undefined symbols to be built. |
10727 | allow_undefined_flag=$lt_allow_undefined_flag |
10728 | |
10729 | # Flag that forces no undefined symbols. |
10730 | no_undefined_flag=$lt_no_undefined_flag |
10731 | |
10732 | # Commands used to finish a libtool library installation in a directory. |
10733 | finish_cmds=$lt_finish_cmds |
10734 | |
10735 | # Same as above, but a single script fragment to be evaled but not shown. |
10736 | finish_eval=$lt_finish_eval |
10737 | |
10738 | # Take the output of nm and produce a listing of raw symbols and C names. |
10739 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
10740 | |
10741 | # Transform the output of nm in a proper C declaration |
10742 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
10743 | |
10744 | # Transform the output of nm in a C name address pair |
10745 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
10746 | |
10747 | # This is the shared library runtime path variable. |
10748 | runpath_var=$runpath_var |
10749 | |
10750 | # This is the shared library path variable. |
10751 | shlibpath_var=$shlibpath_var |
10752 | |
10753 | # Is shlibpath searched before the hard-coded library search path? |
10754 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
10755 | |
10756 | # How to hardcode a shared library path into an executable. |
10757 | hardcode_action=$hardcode_action |
10758 | |
10759 | # Whether we should hardcode library paths into libraries. |
10760 | hardcode_into_libs=$hardcode_into_libs |
10761 | |
10762 | # Flag to hardcode \$libdir into a binary during linking. |
10763 | # This must work even if \$libdir does not exist. |
10764 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
10765 | |
10766 | # If ld is used when linking, flag to hardcode \$libdir into |
10767 | # a binary during linking. This must work even if \$libdir does |
10768 | # not exist. |
10769 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
10770 | |
10771 | # Whether we need a single -rpath flag with a separated argument. |
10772 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
10773 | |
10774 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
10775 | # resulting binary. |
10776 | hardcode_direct=$hardcode_direct |
10777 | |
10778 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
10779 | # resulting binary. |
10780 | hardcode_minus_L=$hardcode_minus_L |
10781 | |
10782 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
10783 | # the resulting binary. |
10784 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
10785 | |
10786 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
10787 | # and all subsequent libraries and executables linked against it. |
10788 | hardcode_automatic=$hardcode_automatic |
10789 | |
10790 | # Variables whose values should be saved in libtool wrapper scripts and |
10791 | # restored at relink time. |
10792 | variables_saved_for_relink="$variables_saved_for_relink" |
10793 | |
10794 | # Whether libtool must link a program against all its dependency libraries. |
10795 | link_all_deplibs=$link_all_deplibs |
10796 | |
10797 | # Compile-time system search path for libraries |
dd184caf |
10798 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
10799 | |
10800 | # Run-time system search path for libraries |
10801 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
10802 | |
10803 | # Fix the shell variable \$srcfile for the compiler. |
10804 | fix_srcfile_path="$fix_srcfile_path" |
10805 | |
10806 | # Set to yes if exported symbols are required. |
10807 | always_export_symbols=$always_export_symbols |
10808 | |
10809 | # The commands to list exported symbols. |
10810 | export_symbols_cmds=$lt_export_symbols_cmds |
10811 | |
10812 | # The commands to extract the exported symbol list from a shared archive. |
10813 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
10814 | |
10815 | # Symbols that should not be listed in the preloaded symbols. |
10816 | exclude_expsyms=$lt_exclude_expsyms |
10817 | |
10818 | # Symbols that must always be exported. |
10819 | include_expsyms=$lt_include_expsyms |
10820 | |
10821 | # ### END LIBTOOL CONFIG |
10822 | |
10823 | __EOF__ |
10824 | |
10825 | |
10826 | case $host_os in |
10827 | aix3*) |
10828 | cat <<\EOF >> "$cfgfile" |
10829 | |
10830 | # AIX sometimes has problems with the GCC collect2 program. For some |
10831 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
10832 | # vanish in a puff of smoke. |
10833 | if test "X${COLLECT_NAMES+set}" != Xset; then |
10834 | COLLECT_NAMES= |
10835 | export COLLECT_NAMES |
10836 | fi |
10837 | EOF |
10838 | ;; |
10839 | esac |
10840 | |
10841 | # We use sed instead of cat because bash on DJGPP gets confused if |
10842 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
10843 | # text mode, it properly converts lines to CR/LF. This bash problem |
10844 | # is reportedly fixed, but why not run on old versions too? |
10845 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
10846 | |
10847 | mv -f "$cfgfile" "$ofile" || \ |
10848 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
10849 | chmod +x "$ofile" |
10850 | |
10851 | else |
10852 | # If there is no Makefile yet, we rely on a make rule to execute |
10853 | # `config.status --recheck' to rerun these tests and create the |
10854 | # libtool script then. |
10855 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
10856 | if test -f "$ltmain_in"; then |
10857 | test -f Makefile && make "$ltmain" |
10858 | fi |
10859 | fi |
10860 | |
10861 | |
10862 | ac_ext=c |
10863 | ac_cpp='$CPP $CPPFLAGS' |
10864 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10865 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10866 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
10867 | |
10868 | CC="$lt_save_CC" |
10869 | |
10870 | |
dd184caf |
10871 | # Check whether --with-tags was given. |
d9898ee8 |
10872 | if test "${with_tags+set}" = set; then |
dd184caf |
10873 | withval=$with_tags; tagnames="$withval" |
10874 | fi |
10875 | |
d9898ee8 |
10876 | |
10877 | if test -f "$ltmain" && test -n "$tagnames"; then |
10878 | if test ! -f "${ofile}"; then |
10879 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
10880 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
10881 | fi |
10882 | |
10883 | if test -z "$LTCC"; then |
10884 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
10885 | if test -z "$LTCC"; then |
10886 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
10887 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
10888 | else |
10889 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
10890 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
10891 | fi |
10892 | fi |
10893 | if test -z "$LTCFLAGS"; then |
10894 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
10895 | fi |
10896 | |
10897 | # Extract list of available tagged configurations in $ofile. |
10898 | # Note that this assumes the entire list is on one line. |
10899 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
10900 | |
10901 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
10902 | for tagname in $tagnames; do |
10903 | IFS="$lt_save_ifs" |
10904 | # Check whether tagname contains only valid characters |
10905 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
10906 | "") ;; |
10907 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
10908 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
10909 | { (exit 1); exit 1; }; } |
10910 | ;; |
10911 | esac |
10912 | |
10913 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
10914 | then |
10915 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
10916 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
10917 | { (exit 1); exit 1; }; } |
10918 | fi |
10919 | |
10920 | # Update the list of available tags. |
10921 | if test -n "$tagname"; then |
10922 | echo appending configuration tag \"$tagname\" to $ofile |
10923 | |
10924 | case $tagname in |
10925 | CXX) |
10926 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
10927 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
10928 | (test "X$CXX" != "Xg++"))) ; then |
dd184caf |
10929 | ac_ext=cpp |
d9898ee8 |
10930 | ac_cpp='$CXXCPP $CPPFLAGS' |
10931 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10932 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10933 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10934 | |
10935 | |
10936 | |
10937 | |
10938 | archive_cmds_need_lc_CXX=no |
10939 | allow_undefined_flag_CXX= |
10940 | always_export_symbols_CXX=no |
10941 | archive_expsym_cmds_CXX= |
10942 | export_dynamic_flag_spec_CXX= |
10943 | hardcode_direct_CXX=no |
10944 | hardcode_libdir_flag_spec_CXX= |
10945 | hardcode_libdir_flag_spec_ld_CXX= |
10946 | hardcode_libdir_separator_CXX= |
10947 | hardcode_minus_L_CXX=no |
10948 | hardcode_shlibpath_var_CXX=unsupported |
10949 | hardcode_automatic_CXX=no |
10950 | module_cmds_CXX= |
10951 | module_expsym_cmds_CXX= |
10952 | link_all_deplibs_CXX=unknown |
10953 | old_archive_cmds_CXX=$old_archive_cmds |
10954 | no_undefined_flag_CXX= |
10955 | whole_archive_flag_spec_CXX= |
10956 | enable_shared_with_static_runtimes_CXX=no |
10957 | |
10958 | # Dependencies to place before and after the object being linked: |
10959 | predep_objects_CXX= |
10960 | postdep_objects_CXX= |
10961 | predeps_CXX= |
10962 | postdeps_CXX= |
10963 | compiler_lib_search_path_CXX= |
10964 | |
10965 | # Source file extension for C++ test sources. |
10966 | ac_ext=cpp |
10967 | |
10968 | # Object file extension for compiled C++ test sources. |
10969 | objext=o |
10970 | objext_CXX=$objext |
10971 | |
10972 | # Code to be used in simple compile tests |
10973 | lt_simple_compile_test_code="int some_variable = 0;\n" |
10974 | |
10975 | # Code to be used in simple link tests |
10976 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
10977 | |
10978 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10979 | |
10980 | # If no C compiler was specified, use CC. |
10981 | LTCC=${LTCC-"$CC"} |
10982 | |
10983 | # If no C compiler flags were specified, use CFLAGS. |
10984 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
10985 | |
10986 | # Allow CC to be a program name with arguments. |
10987 | compiler=$CC |
10988 | |
10989 | |
10990 | # save warnings/boilerplate of simple test code |
10991 | ac_outfile=conftest.$ac_objext |
10992 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
10993 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10994 | _lt_compiler_boilerplate=`cat conftest.err` |
10995 | $rm conftest* |
10996 | |
10997 | ac_outfile=conftest.$ac_objext |
10998 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
10999 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
11000 | _lt_linker_boilerplate=`cat conftest.err` |
11001 | $rm conftest* |
11002 | |
11003 | |
11004 | # Allow CC to be a program name with arguments. |
11005 | lt_save_CC=$CC |
11006 | lt_save_LD=$LD |
11007 | lt_save_GCC=$GCC |
11008 | GCC=$GXX |
11009 | lt_save_with_gnu_ld=$with_gnu_ld |
11010 | lt_save_path_LD=$lt_cv_path_LD |
11011 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
11012 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
11013 | else |
11014 | $as_unset lt_cv_prog_gnu_ld |
11015 | fi |
11016 | if test -n "${lt_cv_path_LDCXX+set}"; then |
11017 | lt_cv_path_LD=$lt_cv_path_LDCXX |
11018 | else |
11019 | $as_unset lt_cv_path_LD |
11020 | fi |
11021 | test -z "${LDCXX+set}" || LD=$LDCXX |
11022 | CC=${CXX-"c++"} |
11023 | compiler=$CC |
11024 | compiler_CXX=$CC |
11025 | for cc_temp in $compiler""; do |
11026 | case $cc_temp in |
11027 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
11028 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
11029 | \-*) ;; |
11030 | *) break;; |
11031 | esac |
11032 | done |
11033 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
11034 | |
11035 | |
11036 | # We don't want -fno-exception wen compiling C++ code, so set the |
11037 | # no_builtin_flag separately |
11038 | if test "$GXX" = yes; then |
11039 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
11040 | else |
11041 | lt_prog_compiler_no_builtin_flag_CXX= |
11042 | fi |
11043 | |
11044 | if test "$GXX" = yes; then |
11045 | # Set up default GNU C++ configuration |
11046 | |
11047 | |
dd184caf |
11048 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
11049 | if test "${with_gnu_ld+set}" = set; then |
dd184caf |
11050 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
11051 | else |
11052 | with_gnu_ld=no |
dd184caf |
11053 | fi |
11054 | |
d9898ee8 |
11055 | ac_prog=ld |
11056 | if test "$GCC" = yes; then |
11057 | # Check if gcc -print-prog-name=ld gives a path. |
dd184caf |
11058 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
11059 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
11060 | case $host in |
11061 | *-*-mingw*) |
11062 | # gcc leaves a trailing carriage return which upsets mingw |
11063 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
11064 | *) |
11065 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
11066 | esac |
11067 | case $ac_prog in |
11068 | # Accept absolute paths. |
11069 | [\\/]* | ?:[\\/]*) |
11070 | re_direlt='/[^/][^/]*/\.\./' |
11071 | # Canonicalize the pathname of ld |
11072 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
11073 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
11074 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
11075 | done |
11076 | test -z "$LD" && LD="$ac_prog" |
11077 | ;; |
11078 | "") |
11079 | # If it fails, then pretend we aren't using GCC. |
11080 | ac_prog=ld |
11081 | ;; |
11082 | *) |
11083 | # If it is relative, then search for the first ld in PATH. |
11084 | with_gnu_ld=unknown |
11085 | ;; |
11086 | esac |
11087 | elif test "$with_gnu_ld" = yes; then |
dd184caf |
11088 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
11089 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
11090 | else |
dd184caf |
11091 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
11092 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
11093 | fi |
11094 | if test "${lt_cv_path_LD+set}" = set; then |
11095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11096 | else |
11097 | if test -z "$LD"; then |
11098 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
11099 | for ac_dir in $PATH; do |
11100 | IFS="$lt_save_ifs" |
11101 | test -z "$ac_dir" && ac_dir=. |
11102 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
11103 | lt_cv_path_LD="$ac_dir/$ac_prog" |
11104 | # Check to see if the program is GNU ld. I'd rather use --version, |
11105 | # but apparently some variants of GNU ld only accept -v. |
11106 | # Break only if it was the GNU/non-GNU ld that we prefer. |
11107 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
11108 | *GNU* | *'with BFD'*) |
11109 | test "$with_gnu_ld" != no && break |
11110 | ;; |
11111 | *) |
11112 | test "$with_gnu_ld" != yes && break |
11113 | ;; |
11114 | esac |
11115 | fi |
11116 | done |
11117 | IFS="$lt_save_ifs" |
11118 | else |
11119 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
11120 | fi |
11121 | fi |
11122 | |
11123 | LD="$lt_cv_path_LD" |
11124 | if test -n "$LD"; then |
dd184caf |
11125 | { echo "$as_me:$LINENO: result: $LD" >&5 |
11126 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
11127 | else |
dd184caf |
11128 | { echo "$as_me:$LINENO: result: no" >&5 |
11129 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
11130 | fi |
11131 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
11132 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
11133 | { (exit 1); exit 1; }; } |
dd184caf |
11134 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
11135 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
11136 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
11137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11138 | else |
11139 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
11140 | case `$LD -v 2>&1 </dev/null` in |
11141 | *GNU* | *'with BFD'*) |
11142 | lt_cv_prog_gnu_ld=yes |
11143 | ;; |
11144 | *) |
11145 | lt_cv_prog_gnu_ld=no |
11146 | ;; |
11147 | esac |
11148 | fi |
dd184caf |
11149 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
11150 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
11151 | with_gnu_ld=$lt_cv_prog_gnu_ld |
11152 | |
11153 | |
11154 | |
11155 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
11156 | # archiving commands below assume that GNU ld is being used. |
11157 | if test "$with_gnu_ld" = yes; then |
11158 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11159 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
11160 | |
11161 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11162 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11163 | |
11164 | # If archive_cmds runs LD, not CC, wlarc should be empty |
11165 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
11166 | # investigate it a little bit more. (MM) |
11167 | wlarc='${wl}' |
11168 | |
11169 | # ancient GNU ld didn't support --whole-archive et. al. |
11170 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
11171 | grep 'no-whole-archive' > /dev/null; then |
11172 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11173 | else |
11174 | whole_archive_flag_spec_CXX= |
11175 | fi |
11176 | else |
11177 | with_gnu_ld=no |
11178 | wlarc= |
11179 | |
11180 | # A generic and very simple default shared library creation |
11181 | # command for GNU C++ for the case where it uses the native |
11182 | # linker, instead of GNU ld. If possible, this setting should |
11183 | # overridden to take advantage of the native linker features on |
11184 | # the platform it is being used on. |
11185 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11186 | fi |
11187 | |
11188 | # Commands to make compiler produce verbose output that lists |
11189 | # what "hidden" libraries, object files and flags are used when |
11190 | # linking a shared library. |
11191 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11192 | |
11193 | else |
11194 | GXX=no |
11195 | with_gnu_ld=no |
11196 | wlarc= |
11197 | fi |
11198 | |
11199 | # PORTME: fill in a description of your system's C++ link characteristics |
dd184caf |
11200 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
11201 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
11202 | ld_shlibs_CXX=yes |
11203 | case $host_os in |
11204 | aix3*) |
11205 | # FIXME: insert proper C++ library support |
11206 | ld_shlibs_CXX=no |
11207 | ;; |
11208 | aix4* | aix5*) |
11209 | if test "$host_cpu" = ia64; then |
11210 | # On IA64, the linker does run time linking by default, so we don't |
11211 | # have to do anything special. |
11212 | aix_use_runtimelinking=no |
11213 | exp_sym_flag='-Bexport' |
11214 | no_entry_flag="" |
11215 | else |
11216 | aix_use_runtimelinking=no |
11217 | |
11218 | # Test if we are trying to use run time linking or normal |
11219 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
11220 | # need to do runtime linking. |
11221 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
11222 | for ld_flag in $LDFLAGS; do |
11223 | case $ld_flag in |
11224 | *-brtl*) |
11225 | aix_use_runtimelinking=yes |
11226 | break |
11227 | ;; |
11228 | esac |
11229 | done |
11230 | ;; |
11231 | esac |
11232 | |
11233 | exp_sym_flag='-bexport' |
11234 | no_entry_flag='-bnoentry' |
11235 | fi |
11236 | |
11237 | # When large executables or shared objects are built, AIX ld can |
11238 | # have problems creating the table of contents. If linking a library |
11239 | # or program results in "error TOC overflow" add -mminimal-toc to |
11240 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
11241 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
11242 | |
11243 | archive_cmds_CXX='' |
11244 | hardcode_direct_CXX=yes |
11245 | hardcode_libdir_separator_CXX=':' |
11246 | link_all_deplibs_CXX=yes |
11247 | |
11248 | if test "$GXX" = yes; then |
11249 | case $host_os in aix4.[012]|aix4.[012].*) |
11250 | # We only want to do this on AIX 4.2 and lower, the check |
11251 | # below for broken collect2 doesn't work under 4.3+ |
11252 | collect2name=`${CC} -print-prog-name=collect2` |
11253 | if test -f "$collect2name" && \ |
11254 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
11255 | then |
11256 | # We have reworked collect2 |
11257 | hardcode_direct_CXX=yes |
11258 | else |
11259 | # We have old collect2 |
11260 | hardcode_direct_CXX=unsupported |
11261 | # It fails to find uninstalled libraries when the uninstalled |
11262 | # path is not listed in the libpath. Setting hardcode_minus_L |
11263 | # to unsupported forces relinking |
11264 | hardcode_minus_L_CXX=yes |
11265 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11266 | hardcode_libdir_separator_CXX= |
11267 | fi |
11268 | ;; |
11269 | esac |
11270 | shared_flag='-shared' |
11271 | if test "$aix_use_runtimelinking" = yes; then |
11272 | shared_flag="$shared_flag "'${wl}-G' |
11273 | fi |
11274 | else |
11275 | # not using gcc |
11276 | if test "$host_cpu" = ia64; then |
11277 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
11278 | # chokes on -Wl,-G. The following line is correct: |
11279 | shared_flag='-G' |
11280 | else |
11281 | if test "$aix_use_runtimelinking" = yes; then |
11282 | shared_flag='${wl}-G' |
11283 | else |
11284 | shared_flag='${wl}-bM:SRE' |
11285 | fi |
11286 | fi |
11287 | fi |
11288 | |
11289 | # It seems that -bexpall does not export symbols beginning with |
11290 | # underscore (_), so it is better to generate a list of symbols to export. |
11291 | always_export_symbols_CXX=yes |
11292 | if test "$aix_use_runtimelinking" = yes; then |
11293 | # Warning - without using the other runtime loading flags (-brtl), |
11294 | # -berok will link without error, but may produce a broken library. |
11295 | allow_undefined_flag_CXX='-berok' |
11296 | # Determine the default libpath from the value encoded in an empty executable. |
11297 | cat >conftest.$ac_ext <<_ACEOF |
11298 | /* confdefs.h. */ |
11299 | _ACEOF |
11300 | cat confdefs.h >>conftest.$ac_ext |
11301 | cat >>conftest.$ac_ext <<_ACEOF |
11302 | /* end confdefs.h. */ |
11303 | |
11304 | int |
11305 | main () |
11306 | { |
11307 | |
11308 | ; |
11309 | return 0; |
11310 | } |
11311 | _ACEOF |
11312 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
11313 | if { (ac_try="$ac_link" |
11314 | case "(($ac_try" in |
11315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11316 | *) ac_try_echo=$ac_try;; |
11317 | esac |
11318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11319 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11320 | ac_status=$? |
11321 | grep -v '^ *+' conftest.er1 >conftest.err |
11322 | rm -f conftest.er1 |
11323 | cat conftest.err >&5 |
11324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
11325 | (exit $ac_status); } && { |
11326 | test -z "$ac_cxx_werror_flag" || |
11327 | test ! -s conftest.err |
11328 | } && test -s conftest$ac_exeext && |
11329 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11330 | |
11331 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11332 | }'` |
11333 | # Check for a 64-bit object if we didn't find anything. |
11334 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11335 | }'`; fi |
11336 | else |
11337 | echo "$as_me: failed program was:" >&5 |
11338 | sed 's/^/| /' conftest.$ac_ext >&5 |
11339 | |
dd184caf |
11340 | |
d9898ee8 |
11341 | fi |
dd184caf |
11342 | |
11343 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11344 | conftest$ac_exeext conftest.$ac_ext |
11345 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11346 | |
11347 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11348 | |
11349 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
11350 | else |
11351 | if test "$host_cpu" = ia64; then |
11352 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
11353 | allow_undefined_flag_CXX="-z nodefs" |
11354 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
11355 | else |
11356 | # Determine the default libpath from the value encoded in an empty executable. |
11357 | cat >conftest.$ac_ext <<_ACEOF |
11358 | /* confdefs.h. */ |
11359 | _ACEOF |
11360 | cat confdefs.h >>conftest.$ac_ext |
11361 | cat >>conftest.$ac_ext <<_ACEOF |
11362 | /* end confdefs.h. */ |
11363 | |
11364 | int |
11365 | main () |
11366 | { |
11367 | |
11368 | ; |
11369 | return 0; |
11370 | } |
11371 | _ACEOF |
11372 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
11373 | if { (ac_try="$ac_link" |
11374 | case "(($ac_try" in |
11375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11376 | *) ac_try_echo=$ac_try;; |
11377 | esac |
11378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11379 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11380 | ac_status=$? |
11381 | grep -v '^ *+' conftest.er1 >conftest.err |
11382 | rm -f conftest.er1 |
11383 | cat conftest.err >&5 |
11384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
11385 | (exit $ac_status); } && { |
11386 | test -z "$ac_cxx_werror_flag" || |
11387 | test ! -s conftest.err |
11388 | } && test -s conftest$ac_exeext && |
11389 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11390 | |
11391 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11392 | }'` |
11393 | # Check for a 64-bit object if we didn't find anything. |
11394 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11395 | }'`; fi |
11396 | else |
11397 | echo "$as_me: failed program was:" >&5 |
11398 | sed 's/^/| /' conftest.$ac_ext >&5 |
11399 | |
dd184caf |
11400 | |
d9898ee8 |
11401 | fi |
dd184caf |
11402 | |
11403 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11404 | conftest$ac_exeext conftest.$ac_ext |
11405 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11406 | |
11407 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11408 | # Warning - without using the other run time loading flags, |
11409 | # -berok will link without error, but may produce a broken library. |
11410 | no_undefined_flag_CXX=' ${wl}-bernotok' |
11411 | allow_undefined_flag_CXX=' ${wl}-berok' |
11412 | # Exported symbols can be pulled into shared objects from archives |
11413 | whole_archive_flag_spec_CXX='$convenience' |
11414 | archive_cmds_need_lc_CXX=yes |
11415 | # This is similar to how AIX traditionally builds its shared libraries. |
11416 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
11417 | fi |
11418 | fi |
11419 | ;; |
11420 | |
11421 | beos*) |
11422 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
11423 | allow_undefined_flag_CXX=unsupported |
11424 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
11425 | # support --undefined. This deserves some investigation. FIXME |
11426 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11427 | else |
11428 | ld_shlibs_CXX=no |
11429 | fi |
11430 | ;; |
11431 | |
11432 | chorus*) |
11433 | case $cc_basename in |
11434 | *) |
11435 | # FIXME: insert proper C++ library support |
11436 | ld_shlibs_CXX=no |
11437 | ;; |
11438 | esac |
11439 | ;; |
11440 | |
11441 | cygwin* | mingw* | pw32*) |
11442 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
11443 | # as there is no search path for DLLs. |
11444 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11445 | allow_undefined_flag_CXX=unsupported |
11446 | always_export_symbols_CXX=no |
11447 | enable_shared_with_static_runtimes_CXX=yes |
11448 | |
11449 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
11450 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
11451 | # If the export-symbols file already is a .def file (1st line |
11452 | # is EXPORTS), use it as is; otherwise, prepend... |
11453 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
11454 | cp $export_symbols $output_objdir/$soname.def; |
11455 | else |
11456 | echo EXPORTS > $output_objdir/$soname.def; |
11457 | cat $export_symbols >> $output_objdir/$soname.def; |
11458 | fi~ |
11459 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
11460 | else |
11461 | ld_shlibs_CXX=no |
11462 | fi |
11463 | ;; |
11464 | darwin* | rhapsody*) |
11465 | case $host_os in |
11466 | rhapsody* | darwin1.[012]) |
11467 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
11468 | ;; |
11469 | *) # Darwin 1.3 on |
11470 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
11471 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11472 | else |
11473 | case ${MACOSX_DEPLOYMENT_TARGET} in |
11474 | 10.[012]) |
11475 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11476 | ;; |
11477 | 10.*) |
11478 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
11479 | ;; |
11480 | esac |
11481 | fi |
11482 | ;; |
11483 | esac |
11484 | archive_cmds_need_lc_CXX=no |
11485 | hardcode_direct_CXX=no |
11486 | hardcode_automatic_CXX=yes |
11487 | hardcode_shlibpath_var_CXX=unsupported |
11488 | whole_archive_flag_spec_CXX='' |
11489 | link_all_deplibs_CXX=yes |
11490 | |
11491 | if test "$GXX" = yes ; then |
11492 | lt_int_apple_cc_single_mod=no |
11493 | output_verbose_link_cmd='echo' |
11494 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
11495 | lt_int_apple_cc_single_mod=yes |
11496 | fi |
11497 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11498 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
11499 | else |
11500 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
11501 | fi |
11502 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11503 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11504 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11505 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
11506 | else |
11507 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
11508 | fi |
11509 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
11510 | else |
11511 | case $cc_basename in |
11512 | xlc*) |
11513 | output_verbose_link_cmd='echo' |
11514 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
11515 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11516 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11517 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
11518 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
11519 | ;; |
11520 | *) |
11521 | ld_shlibs_CXX=no |
11522 | ;; |
11523 | esac |
11524 | fi |
11525 | ;; |
11526 | |
11527 | dgux*) |
11528 | case $cc_basename in |
11529 | ec++*) |
11530 | # FIXME: insert proper C++ library support |
11531 | ld_shlibs_CXX=no |
11532 | ;; |
11533 | ghcx*) |
11534 | # Green Hills C++ Compiler |
11535 | # FIXME: insert proper C++ library support |
11536 | ld_shlibs_CXX=no |
11537 | ;; |
11538 | *) |
11539 | # FIXME: insert proper C++ library support |
11540 | ld_shlibs_CXX=no |
11541 | ;; |
11542 | esac |
11543 | ;; |
11544 | freebsd[12]*) |
11545 | # C++ shared libraries reported to be fairly broken before switch to ELF |
11546 | ld_shlibs_CXX=no |
11547 | ;; |
11548 | freebsd-elf*) |
11549 | archive_cmds_need_lc_CXX=no |
11550 | ;; |
11551 | freebsd* | kfreebsd*-gnu | dragonfly*) |
11552 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
11553 | # conventions |
11554 | ld_shlibs_CXX=yes |
11555 | ;; |
11556 | gnu*) |
11557 | ;; |
11558 | hpux9*) |
11559 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11560 | hardcode_libdir_separator_CXX=: |
11561 | export_dynamic_flag_spec_CXX='${wl}-E' |
11562 | hardcode_direct_CXX=yes |
11563 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11564 | # but as the default |
11565 | # location of the library. |
11566 | |
11567 | case $cc_basename in |
11568 | CC*) |
11569 | # FIXME: insert proper C++ library support |
11570 | ld_shlibs_CXX=no |
11571 | ;; |
11572 | aCC*) |
11573 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
11574 | # Commands to make compiler produce verbose output that lists |
11575 | # what "hidden" libraries, object files and flags are used when |
11576 | # linking a shared library. |
11577 | # |
11578 | # There doesn't appear to be a way to prevent this compiler from |
11579 | # explicitly linking system object files so we need to strip them |
11580 | # from the output so that they don't get included in the library |
11581 | # dependencies. |
11582 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
11583 | ;; |
11584 | *) |
11585 | if test "$GXX" = yes; then |
11586 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
11587 | else |
11588 | # FIXME: insert proper C++ library support |
11589 | ld_shlibs_CXX=no |
11590 | fi |
11591 | ;; |
11592 | esac |
11593 | ;; |
11594 | hpux10*|hpux11*) |
11595 | if test $with_gnu_ld = no; then |
11596 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11597 | hardcode_libdir_separator_CXX=: |
11598 | |
11599 | case $host_cpu in |
11600 | hppa*64*|ia64*) |
11601 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
11602 | ;; |
11603 | *) |
11604 | export_dynamic_flag_spec_CXX='${wl}-E' |
11605 | ;; |
11606 | esac |
11607 | fi |
11608 | case $host_cpu in |
11609 | hppa*64*|ia64*) |
11610 | hardcode_direct_CXX=no |
11611 | hardcode_shlibpath_var_CXX=no |
11612 | ;; |
11613 | *) |
11614 | hardcode_direct_CXX=yes |
11615 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11616 | # but as the default |
11617 | # location of the library. |
11618 | ;; |
11619 | esac |
11620 | |
11621 | case $cc_basename in |
11622 | CC*) |
11623 | # FIXME: insert proper C++ library support |
11624 | ld_shlibs_CXX=no |
11625 | ;; |
11626 | aCC*) |
11627 | case $host_cpu in |
11628 | hppa*64*) |
11629 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11630 | ;; |
11631 | ia64*) |
11632 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11633 | ;; |
11634 | *) |
11635 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11636 | ;; |
11637 | esac |
11638 | # Commands to make compiler produce verbose output that lists |
11639 | # what "hidden" libraries, object files and flags are used when |
11640 | # linking a shared library. |
11641 | # |
11642 | # There doesn't appear to be a way to prevent this compiler from |
11643 | # explicitly linking system object files so we need to strip them |
11644 | # from the output so that they don't get included in the library |
11645 | # dependencies. |
11646 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
11647 | ;; |
11648 | *) |
11649 | if test "$GXX" = yes; then |
11650 | if test $with_gnu_ld = no; then |
11651 | case $host_cpu in |
11652 | hppa*64*) |
11653 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11654 | ;; |
11655 | ia64*) |
11656 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11657 | ;; |
11658 | *) |
11659 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11660 | ;; |
11661 | esac |
11662 | fi |
11663 | else |
11664 | # FIXME: insert proper C++ library support |
11665 | ld_shlibs_CXX=no |
11666 | fi |
11667 | ;; |
11668 | esac |
11669 | ;; |
11670 | interix3*) |
11671 | hardcode_direct_CXX=no |
11672 | hardcode_shlibpath_var_CXX=no |
11673 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11674 | export_dynamic_flag_spec_CXX='${wl}-E' |
11675 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
11676 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
11677 | # default) and relocated if they conflict, which is a slow very memory |
11678 | # consuming and fragmenting process. To avoid this, we pick a random, |
11679 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
11680 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
11681 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
11682 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
11683 | ;; |
11684 | irix5* | irix6*) |
11685 | case $cc_basename in |
11686 | CC*) |
11687 | # SGI C++ |
11688 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
11689 | |
11690 | # Archives containing C++ object files must be created using |
11691 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
11692 | # necessary to make sure instantiated templates are included |
11693 | # in the archive. |
11694 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
11695 | ;; |
11696 | *) |
11697 | if test "$GXX" = yes; then |
11698 | if test "$with_gnu_ld" = no; then |
11699 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
11700 | else |
11701 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
11702 | fi |
11703 | fi |
11704 | link_all_deplibs_CXX=yes |
11705 | ;; |
11706 | esac |
11707 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11708 | hardcode_libdir_separator_CXX=: |
11709 | ;; |
11710 | linux*) |
11711 | case $cc_basename in |
11712 | KCC*) |
11713 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11714 | |
11715 | # KCC will only create a shared library if the output file |
11716 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11717 | # to its proper name (with version) after linking. |
11718 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
11719 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
11720 | # Commands to make compiler produce verbose output that lists |
11721 | # what "hidden" libraries, object files and flags are used when |
11722 | # linking a shared library. |
11723 | # |
11724 | # There doesn't appear to be a way to prevent this compiler from |
11725 | # explicitly linking system object files so we need to strip them |
11726 | # from the output so that they don't get included in the library |
11727 | # dependencies. |
11728 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
11729 | |
11730 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
11731 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11732 | |
11733 | # Archives containing C++ object files must be created using |
11734 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11735 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11736 | ;; |
11737 | icpc*) |
11738 | # Intel C++ |
11739 | with_gnu_ld=yes |
11740 | # version 8.0 and above of icpc choke on multiply defined symbols |
11741 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
11742 | # earlier do not add the objects themselves. |
11743 | case `$CC -V 2>&1` in |
11744 | *"Version 7."*) |
11745 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11746 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
11747 | ;; |
11748 | *) # Version 8.0 or newer |
11749 | tmp_idyn= |
11750 | case $host_cpu in |
11751 | ia64*) tmp_idyn=' -i_dynamic';; |
11752 | esac |
11753 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11754 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
11755 | ;; |
11756 | esac |
11757 | archive_cmds_need_lc_CXX=no |
11758 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11759 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11760 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
11761 | ;; |
11762 | pgCC*) |
11763 | # Portland Group C++ compiler |
11764 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
11765 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
11766 | |
11767 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11768 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11769 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
11770 | ;; |
11771 | cxx*) |
11772 | # Compaq C++ |
11773 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11774 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
11775 | |
11776 | runpath_var=LD_RUN_PATH |
11777 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11778 | hardcode_libdir_separator_CXX=: |
11779 | |
11780 | # Commands to make compiler produce verbose output that lists |
11781 | # what "hidden" libraries, object files and flags are used when |
11782 | # linking a shared library. |
11783 | # |
11784 | # There doesn't appear to be a way to prevent this compiler from |
11785 | # explicitly linking system object files so we need to strip them |
11786 | # from the output so that they don't get included in the library |
11787 | # dependencies. |
11788 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
11789 | ;; |
11790 | esac |
11791 | ;; |
11792 | lynxos*) |
11793 | # FIXME: insert proper C++ library support |
11794 | ld_shlibs_CXX=no |
11795 | ;; |
11796 | m88k*) |
11797 | # FIXME: insert proper C++ library support |
11798 | ld_shlibs_CXX=no |
11799 | ;; |
11800 | mvs*) |
11801 | case $cc_basename in |
11802 | cxx*) |
11803 | # FIXME: insert proper C++ library support |
11804 | ld_shlibs_CXX=no |
11805 | ;; |
11806 | *) |
11807 | # FIXME: insert proper C++ library support |
11808 | ld_shlibs_CXX=no |
11809 | ;; |
11810 | esac |
11811 | ;; |
11812 | netbsd*) |
11813 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11814 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
11815 | wlarc= |
11816 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11817 | hardcode_direct_CXX=yes |
11818 | hardcode_shlibpath_var_CXX=no |
11819 | fi |
11820 | # Workaround some broken pre-1.5 toolchains |
11821 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
11822 | ;; |
11823 | openbsd2*) |
11824 | # C++ shared libraries are fairly broken |
11825 | ld_shlibs_CXX=no |
11826 | ;; |
11827 | openbsd*) |
11828 | hardcode_direct_CXX=yes |
11829 | hardcode_shlibpath_var_CXX=no |
11830 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11831 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11832 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
11833 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
11834 | export_dynamic_flag_spec_CXX='${wl}-E' |
11835 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11836 | fi |
11837 | output_verbose_link_cmd='echo' |
11838 | ;; |
11839 | osf3*) |
11840 | case $cc_basename in |
11841 | KCC*) |
11842 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11843 | |
11844 | # KCC will only create a shared library if the output file |
11845 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11846 | # to its proper name (with version) after linking. |
11847 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
11848 | |
11849 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11850 | hardcode_libdir_separator_CXX=: |
11851 | |
11852 | # Archives containing C++ object files must be created using |
11853 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11854 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11855 | |
11856 | ;; |
11857 | RCC*) |
11858 | # Rational C++ 2.4.1 |
11859 | # FIXME: insert proper C++ library support |
11860 | ld_shlibs_CXX=no |
11861 | ;; |
11862 | cxx*) |
11863 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11864 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
11865 | |
11866 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11867 | hardcode_libdir_separator_CXX=: |
11868 | |
11869 | # Commands to make compiler produce verbose output that lists |
11870 | # what "hidden" libraries, object files and flags are used when |
11871 | # linking a shared library. |
11872 | # |
11873 | # There doesn't appear to be a way to prevent this compiler from |
11874 | # explicitly linking system object files so we need to strip them |
11875 | # from the output so that they don't get included in the library |
11876 | # dependencies. |
11877 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
11878 | ;; |
11879 | *) |
11880 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11881 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11882 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
11883 | |
11884 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11885 | hardcode_libdir_separator_CXX=: |
11886 | |
11887 | # Commands to make compiler produce verbose output that lists |
11888 | # what "hidden" libraries, object files and flags are used when |
11889 | # linking a shared library. |
11890 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11891 | |
11892 | else |
11893 | # FIXME: insert proper C++ library support |
11894 | ld_shlibs_CXX=no |
11895 | fi |
11896 | ;; |
11897 | esac |
11898 | ;; |
11899 | osf4* | osf5*) |
11900 | case $cc_basename in |
11901 | KCC*) |
11902 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11903 | |
11904 | # KCC will only create a shared library if the output file |
11905 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11906 | # to its proper name (with version) after linking. |
11907 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
11908 | |
11909 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11910 | hardcode_libdir_separator_CXX=: |
11911 | |
11912 | # Archives containing C++ object files must be created using |
11913 | # the KAI C++ compiler. |
11914 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
11915 | ;; |
11916 | RCC*) |
11917 | # Rational C++ 2.4.1 |
11918 | # FIXME: insert proper C++ library support |
11919 | ld_shlibs_CXX=no |
11920 | ;; |
11921 | cxx*) |
11922 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
11923 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
11924 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
11925 | echo "-hidden">> $lib.exp~ |
11926 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ |
11927 | $rm $lib.exp' |
11928 | |
11929 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11930 | hardcode_libdir_separator_CXX=: |
11931 | |
11932 | # Commands to make compiler produce verbose output that lists |
11933 | # what "hidden" libraries, object files and flags are used when |
11934 | # linking a shared library. |
11935 | # |
11936 | # There doesn't appear to be a way to prevent this compiler from |
11937 | # explicitly linking system object files so we need to strip them |
11938 | # from the output so that they don't get included in the library |
11939 | # dependencies. |
11940 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
11941 | ;; |
11942 | *) |
11943 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11944 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11945 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
11946 | |
11947 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11948 | hardcode_libdir_separator_CXX=: |
11949 | |
11950 | # Commands to make compiler produce verbose output that lists |
11951 | # what "hidden" libraries, object files and flags are used when |
11952 | # linking a shared library. |
11953 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11954 | |
11955 | else |
11956 | # FIXME: insert proper C++ library support |
11957 | ld_shlibs_CXX=no |
11958 | fi |
11959 | ;; |
11960 | esac |
11961 | ;; |
11962 | psos*) |
11963 | # FIXME: insert proper C++ library support |
11964 | ld_shlibs_CXX=no |
11965 | ;; |
11966 | sunos4*) |
11967 | case $cc_basename in |
11968 | CC*) |
11969 | # Sun C++ 4.x |
11970 | # FIXME: insert proper C++ library support |
11971 | ld_shlibs_CXX=no |
11972 | ;; |
11973 | lcc*) |
11974 | # Lucid |
11975 | # FIXME: insert proper C++ library support |
11976 | ld_shlibs_CXX=no |
11977 | ;; |
11978 | *) |
11979 | # FIXME: insert proper C++ library support |
11980 | ld_shlibs_CXX=no |
11981 | ;; |
11982 | esac |
11983 | ;; |
11984 | solaris*) |
11985 | case $cc_basename in |
11986 | CC*) |
11987 | # Sun C++ 4.2, 5.x and Centerline C++ |
11988 | archive_cmds_need_lc_CXX=yes |
11989 | no_undefined_flag_CXX=' -zdefs' |
11990 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11991 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11992 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11993 | |
11994 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11995 | hardcode_shlibpath_var_CXX=no |
11996 | case $host_os in |
11997 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11998 | *) |
11999 | # The C++ compiler is used as linker so we must use $wl |
12000 | # flag to pass the commands to the underlying system |
12001 | # linker. We must also pass each convience library through |
12002 | # to the system linker between allextract/defaultextract. |
12003 | # The C++ compiler will combine linker options so we |
12004 | # cannot just pass the convience library names through |
12005 | # without $wl. |
12006 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
12007 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
12008 | ;; |
12009 | esac |
12010 | link_all_deplibs_CXX=yes |
12011 | |
12012 | output_verbose_link_cmd='echo' |
12013 | |
12014 | # Archives containing C++ object files must be created using |
12015 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
12016 | # necessary to make sure instantiated templates are included |
12017 | # in the archive. |
12018 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
12019 | ;; |
12020 | gcx*) |
12021 | # Green Hills C++ Compiler |
12022 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
12023 | |
12024 | # The C++ compiler must be used to create the archive. |
12025 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
12026 | ;; |
12027 | *) |
12028 | # GNU C++ compiler with Solaris linker |
12029 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
12030 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
12031 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
12032 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
12033 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
12034 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
12035 | |
12036 | # Commands to make compiler produce verbose output that lists |
12037 | # what "hidden" libraries, object files and flags are used when |
12038 | # linking a shared library. |
12039 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
12040 | else |
12041 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
12042 | # platform. |
12043 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
12044 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
12045 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
12046 | |
12047 | # Commands to make compiler produce verbose output that lists |
12048 | # what "hidden" libraries, object files and flags are used when |
12049 | # linking a shared library. |
12050 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
12051 | fi |
12052 | |
12053 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
12054 | fi |
12055 | ;; |
12056 | esac |
12057 | ;; |
12058 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
12059 | no_undefined_flag_CXX='${wl}-z,text' |
12060 | archive_cmds_need_lc_CXX=no |
12061 | hardcode_shlibpath_var_CXX=no |
12062 | runpath_var='LD_RUN_PATH' |
12063 | |
12064 | case $cc_basename in |
12065 | CC*) |
12066 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12067 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12068 | ;; |
12069 | *) |
12070 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12071 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12072 | ;; |
12073 | esac |
12074 | ;; |
12075 | sysv5* | sco3.2v5* | sco5v6*) |
12076 | # Note: We can NOT use -z defs as we might desire, because we do not |
12077 | # link with -lc, and that would cause any symbols used from libc to |
12078 | # always be unresolved, which means just about no library would |
12079 | # ever link correctly. If we're not using GNU ld we use -z text |
12080 | # though, which does catch some bad symbols but isn't as heavy-handed |
12081 | # as -z defs. |
12082 | # For security reasons, it is highly recommended that you always |
12083 | # use absolute paths for naming shared libraries, and exclude the |
12084 | # DT_RUNPATH tag from executables and libraries. But doing so |
12085 | # requires that you compile everything twice, which is a pain. |
12086 | # So that behaviour is only enabled if SCOABSPATH is set to a |
12087 | # non-empty value in the environment. Most likely only useful for |
12088 | # creating official distributions of packages. |
12089 | # This is a hack until libtool officially supports absolute path |
12090 | # names for shared libraries. |
12091 | no_undefined_flag_CXX='${wl}-z,text' |
12092 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
12093 | archive_cmds_need_lc_CXX=no |
12094 | hardcode_shlibpath_var_CXX=no |
12095 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
12096 | hardcode_libdir_separator_CXX=':' |
12097 | link_all_deplibs_CXX=yes |
12098 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
12099 | runpath_var='LD_RUN_PATH' |
12100 | |
12101 | case $cc_basename in |
12102 | CC*) |
12103 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12104 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12105 | ;; |
12106 | *) |
12107 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12108 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12109 | ;; |
12110 | esac |
12111 | ;; |
12112 | tandem*) |
12113 | case $cc_basename in |
12114 | NCC*) |
12115 | # NonStop-UX NCC 3.20 |
12116 | # FIXME: insert proper C++ library support |
12117 | ld_shlibs_CXX=no |
12118 | ;; |
12119 | *) |
12120 | # FIXME: insert proper C++ library support |
12121 | ld_shlibs_CXX=no |
12122 | ;; |
12123 | esac |
12124 | ;; |
12125 | vxworks*) |
12126 | # FIXME: insert proper C++ library support |
12127 | ld_shlibs_CXX=no |
12128 | ;; |
12129 | *) |
12130 | # FIXME: insert proper C++ library support |
12131 | ld_shlibs_CXX=no |
12132 | ;; |
12133 | esac |
dd184caf |
12134 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12135 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
12136 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12137 | |
12138 | GCC_CXX="$GXX" |
12139 | LD_CXX="$LD" |
12140 | |
12141 | |
12142 | cat > conftest.$ac_ext <<EOF |
12143 | class Foo |
12144 | { |
12145 | public: |
12146 | Foo (void) { a = 0; } |
12147 | private: |
12148 | int a; |
12149 | }; |
12150 | EOF |
12151 | |
12152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12153 | (eval $ac_compile) 2>&5 |
12154 | ac_status=$? |
12155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12156 | (exit $ac_status); }; then |
12157 | # Parse the compiler output and extract the necessary |
12158 | # objects, libraries and library flags. |
12159 | |
12160 | # Sentinel used to keep track of whether or not we are before |
12161 | # the conftest object file. |
12162 | pre_test_object_deps_done=no |
12163 | |
12164 | # The `*' in the case matches for architectures that use `case' in |
12165 | # $output_verbose_cmd can trigger glob expansion during the loop |
12166 | # eval without this substitution. |
12167 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
12168 | |
12169 | for p in `eval $output_verbose_link_cmd`; do |
12170 | case $p in |
12171 | |
12172 | -L* | -R* | -l*) |
12173 | # Some compilers place space between "-{L,R}" and the path. |
12174 | # Remove the space. |
12175 | if test $p = "-L" \ |
12176 | || test $p = "-R"; then |
12177 | prev=$p |
12178 | continue |
12179 | else |
12180 | prev= |
12181 | fi |
12182 | |
12183 | if test "$pre_test_object_deps_done" = no; then |
12184 | case $p in |
12185 | -L* | -R*) |
12186 | # Internal compiler library paths should come after those |
12187 | # provided the user. The postdeps already come after the |
12188 | # user supplied libs so there is no need to process them. |
12189 | if test -z "$compiler_lib_search_path_CXX"; then |
12190 | compiler_lib_search_path_CXX="${prev}${p}" |
12191 | else |
12192 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
12193 | fi |
12194 | ;; |
12195 | # The "-l" case would never come before the object being |
12196 | # linked, so don't bother handling this case. |
12197 | esac |
12198 | else |
12199 | if test -z "$postdeps_CXX"; then |
12200 | postdeps_CXX="${prev}${p}" |
12201 | else |
12202 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
12203 | fi |
12204 | fi |
12205 | ;; |
12206 | |
12207 | *.$objext) |
12208 | # This assumes that the test object file only shows up |
12209 | # once in the compiler output. |
12210 | if test "$p" = "conftest.$objext"; then |
12211 | pre_test_object_deps_done=yes |
12212 | continue |
12213 | fi |
12214 | |
12215 | if test "$pre_test_object_deps_done" = no; then |
12216 | if test -z "$predep_objects_CXX"; then |
12217 | predep_objects_CXX="$p" |
12218 | else |
12219 | predep_objects_CXX="$predep_objects_CXX $p" |
12220 | fi |
12221 | else |
12222 | if test -z "$postdep_objects_CXX"; then |
12223 | postdep_objects_CXX="$p" |
12224 | else |
12225 | postdep_objects_CXX="$postdep_objects_CXX $p" |
12226 | fi |
12227 | fi |
12228 | ;; |
12229 | |
12230 | *) ;; # Ignore the rest. |
12231 | |
12232 | esac |
12233 | done |
12234 | |
12235 | # Clean up. |
12236 | rm -f a.out a.exe |
12237 | else |
12238 | echo "libtool.m4: error: problem compiling CXX test program" |
12239 | fi |
12240 | |
12241 | $rm -f confest.$objext |
12242 | |
12243 | # PORTME: override above test on systems where it is broken |
12244 | case $host_os in |
12245 | interix3*) |
12246 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
12247 | # hack all around it, let's just trust "g++" to DTRT. |
12248 | predep_objects_CXX= |
12249 | postdep_objects_CXX= |
12250 | postdeps_CXX= |
12251 | ;; |
12252 | |
12253 | solaris*) |
12254 | case $cc_basename in |
12255 | CC*) |
12256 | # Adding this requires a known-good setup of shared libraries for |
12257 | # Sun compiler versions before 5.6, else PIC objects from an old |
12258 | # archive will be linked into the output, leading to subtle bugs. |
12259 | postdeps_CXX='-lCstd -lCrun' |
12260 | ;; |
12261 | esac |
12262 | ;; |
12263 | esac |
12264 | |
12265 | |
12266 | case " $postdeps_CXX " in |
12267 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
12268 | esac |
12269 | |
12270 | lt_prog_compiler_wl_CXX= |
12271 | lt_prog_compiler_pic_CXX= |
12272 | lt_prog_compiler_static_CXX= |
12273 | |
dd184caf |
12274 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
12275 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
12276 | |
12277 | # C++ specific cases for pic, static, wl, etc. |
12278 | if test "$GXX" = yes; then |
12279 | lt_prog_compiler_wl_CXX='-Wl,' |
12280 | lt_prog_compiler_static_CXX='-static' |
12281 | |
12282 | case $host_os in |
12283 | aix*) |
12284 | # All AIX code is PIC. |
12285 | if test "$host_cpu" = ia64; then |
12286 | # AIX 5 now supports IA64 processor |
12287 | lt_prog_compiler_static_CXX='-Bstatic' |
12288 | fi |
12289 | ;; |
12290 | amigaos*) |
12291 | # FIXME: we need at least 68020 code to build shared libraries, but |
12292 | # adding the `-m68020' flag to GCC prevents building anything better, |
12293 | # like `-m68040'. |
12294 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
12295 | ;; |
12296 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
12297 | # PIC is the default for these OSes. |
12298 | ;; |
12299 | mingw* | os2* | pw32*) |
12300 | # This hack is so that the source file can tell whether it is being |
12301 | # built for inclusion in a dll (and should export symbols for example). |
12302 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
12303 | ;; |
12304 | darwin* | rhapsody*) |
12305 | # PIC is the default on this platform |
12306 | # Common symbols not allowed in MH_DYLIB files |
12307 | lt_prog_compiler_pic_CXX='-fno-common' |
12308 | ;; |
12309 | *djgpp*) |
12310 | # DJGPP does not support shared libraries at all |
12311 | lt_prog_compiler_pic_CXX= |
12312 | ;; |
12313 | interix3*) |
12314 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
12315 | # Instead, we relocate shared libraries at runtime. |
12316 | ;; |
12317 | sysv4*MP*) |
12318 | if test -d /usr/nec; then |
12319 | lt_prog_compiler_pic_CXX=-Kconform_pic |
12320 | fi |
12321 | ;; |
12322 | hpux*) |
12323 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
12324 | # not for PA HP-UX. |
12325 | case $host_cpu in |
12326 | hppa*64*|ia64*) |
12327 | ;; |
12328 | *) |
12329 | lt_prog_compiler_pic_CXX='-fPIC' |
12330 | ;; |
12331 | esac |
12332 | ;; |
12333 | *) |
12334 | lt_prog_compiler_pic_CXX='-fPIC' |
12335 | ;; |
12336 | esac |
12337 | else |
12338 | case $host_os in |
12339 | aix4* | aix5*) |
12340 | # All AIX code is PIC. |
12341 | if test "$host_cpu" = ia64; then |
12342 | # AIX 5 now supports IA64 processor |
12343 | lt_prog_compiler_static_CXX='-Bstatic' |
12344 | else |
12345 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
12346 | fi |
12347 | ;; |
12348 | chorus*) |
12349 | case $cc_basename in |
12350 | cxch68*) |
12351 | # Green Hills C++ Compiler |
12352 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
12353 | ;; |
12354 | esac |
12355 | ;; |
12356 | darwin*) |
12357 | # PIC is the default on this platform |
12358 | # Common symbols not allowed in MH_DYLIB files |
12359 | case $cc_basename in |
12360 | xlc*) |
12361 | lt_prog_compiler_pic_CXX='-qnocommon' |
12362 | lt_prog_compiler_wl_CXX='-Wl,' |
12363 | ;; |
12364 | esac |
12365 | ;; |
12366 | dgux*) |
12367 | case $cc_basename in |
12368 | ec++*) |
12369 | lt_prog_compiler_pic_CXX='-KPIC' |
12370 | ;; |
12371 | ghcx*) |
12372 | # Green Hills C++ Compiler |
12373 | lt_prog_compiler_pic_CXX='-pic' |
12374 | ;; |
12375 | *) |
12376 | ;; |
12377 | esac |
12378 | ;; |
12379 | freebsd* | kfreebsd*-gnu | dragonfly*) |
12380 | # FreeBSD uses GNU C++ |
12381 | ;; |
12382 | hpux9* | hpux10* | hpux11*) |
12383 | case $cc_basename in |
12384 | CC*) |
12385 | lt_prog_compiler_wl_CXX='-Wl,' |
12386 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12387 | if test "$host_cpu" != ia64; then |
12388 | lt_prog_compiler_pic_CXX='+Z' |
12389 | fi |
12390 | ;; |
12391 | aCC*) |
12392 | lt_prog_compiler_wl_CXX='-Wl,' |
12393 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12394 | case $host_cpu in |
12395 | hppa*64*|ia64*) |
12396 | # +Z the default |
12397 | ;; |
12398 | *) |
12399 | lt_prog_compiler_pic_CXX='+Z' |
12400 | ;; |
12401 | esac |
12402 | ;; |
12403 | *) |
12404 | ;; |
12405 | esac |
12406 | ;; |
12407 | interix*) |
12408 | # This is c89, which is MS Visual C++ (no shared libs) |
12409 | # Anyone wants to do a port? |
12410 | ;; |
12411 | irix5* | irix6* | nonstopux*) |
12412 | case $cc_basename in |
12413 | CC*) |
12414 | lt_prog_compiler_wl_CXX='-Wl,' |
12415 | lt_prog_compiler_static_CXX='-non_shared' |
12416 | # CC pic flag -KPIC is the default. |
12417 | ;; |
12418 | *) |
12419 | ;; |
12420 | esac |
12421 | ;; |
12422 | linux*) |
12423 | case $cc_basename in |
12424 | KCC*) |
12425 | # KAI C++ Compiler |
12426 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12427 | lt_prog_compiler_pic_CXX='-fPIC' |
12428 | ;; |
12429 | icpc* | ecpc*) |
12430 | # Intel C++ |
12431 | lt_prog_compiler_wl_CXX='-Wl,' |
12432 | lt_prog_compiler_pic_CXX='-KPIC' |
12433 | lt_prog_compiler_static_CXX='-static' |
12434 | ;; |
12435 | pgCC*) |
12436 | # Portland Group C++ compiler. |
12437 | lt_prog_compiler_wl_CXX='-Wl,' |
12438 | lt_prog_compiler_pic_CXX='-fpic' |
12439 | lt_prog_compiler_static_CXX='-Bstatic' |
12440 | ;; |
12441 | cxx*) |
12442 | # Compaq C++ |
12443 | # Make sure the PIC flag is empty. It appears that all Alpha |
12444 | # Linux and Compaq Tru64 Unix objects are PIC. |
12445 | lt_prog_compiler_pic_CXX= |
12446 | lt_prog_compiler_static_CXX='-non_shared' |
12447 | ;; |
12448 | *) |
12449 | ;; |
12450 | esac |
12451 | ;; |
12452 | lynxos*) |
12453 | ;; |
12454 | m88k*) |
12455 | ;; |
12456 | mvs*) |
12457 | case $cc_basename in |
12458 | cxx*) |
12459 | lt_prog_compiler_pic_CXX='-W c,exportall' |
12460 | ;; |
12461 | *) |
12462 | ;; |
12463 | esac |
12464 | ;; |
12465 | netbsd*) |
12466 | ;; |
12467 | osf3* | osf4* | osf5*) |
12468 | case $cc_basename in |
12469 | KCC*) |
12470 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12471 | ;; |
12472 | RCC*) |
12473 | # Rational C++ 2.4.1 |
12474 | lt_prog_compiler_pic_CXX='-pic' |
12475 | ;; |
12476 | cxx*) |
12477 | # Digital/Compaq C++ |
12478 | lt_prog_compiler_wl_CXX='-Wl,' |
12479 | # Make sure the PIC flag is empty. It appears that all Alpha |
12480 | # Linux and Compaq Tru64 Unix objects are PIC. |
12481 | lt_prog_compiler_pic_CXX= |
12482 | lt_prog_compiler_static_CXX='-non_shared' |
12483 | ;; |
12484 | *) |
12485 | ;; |
12486 | esac |
12487 | ;; |
12488 | psos*) |
12489 | ;; |
12490 | solaris*) |
12491 | case $cc_basename in |
12492 | CC*) |
12493 | # Sun C++ 4.2, 5.x and Centerline C++ |
12494 | lt_prog_compiler_pic_CXX='-KPIC' |
12495 | lt_prog_compiler_static_CXX='-Bstatic' |
12496 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12497 | ;; |
12498 | gcx*) |
12499 | # Green Hills C++ Compiler |
12500 | lt_prog_compiler_pic_CXX='-PIC' |
12501 | ;; |
12502 | *) |
12503 | ;; |
12504 | esac |
12505 | ;; |
12506 | sunos4*) |
12507 | case $cc_basename in |
12508 | CC*) |
12509 | # Sun C++ 4.x |
12510 | lt_prog_compiler_pic_CXX='-pic' |
12511 | lt_prog_compiler_static_CXX='-Bstatic' |
12512 | ;; |
12513 | lcc*) |
12514 | # Lucid |
12515 | lt_prog_compiler_pic_CXX='-pic' |
12516 | ;; |
12517 | *) |
12518 | ;; |
12519 | esac |
12520 | ;; |
12521 | tandem*) |
12522 | case $cc_basename in |
12523 | NCC*) |
12524 | # NonStop-UX NCC 3.20 |
12525 | lt_prog_compiler_pic_CXX='-KPIC' |
12526 | ;; |
12527 | *) |
12528 | ;; |
12529 | esac |
12530 | ;; |
12531 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
12532 | case $cc_basename in |
12533 | CC*) |
12534 | lt_prog_compiler_wl_CXX='-Wl,' |
12535 | lt_prog_compiler_pic_CXX='-KPIC' |
12536 | lt_prog_compiler_static_CXX='-Bstatic' |
12537 | ;; |
12538 | esac |
12539 | ;; |
12540 | vxworks*) |
12541 | ;; |
12542 | *) |
12543 | lt_prog_compiler_can_build_shared_CXX=no |
12544 | ;; |
12545 | esac |
12546 | fi |
12547 | |
dd184caf |
12548 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
12549 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
d9898ee8 |
12550 | |
12551 | # |
12552 | # Check to make sure the PIC flag actually works. |
12553 | # |
12554 | if test -n "$lt_prog_compiler_pic_CXX"; then |
12555 | |
dd184caf |
12556 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
12557 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
d9898ee8 |
12558 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
12559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12560 | else |
12561 | lt_prog_compiler_pic_works_CXX=no |
12562 | ac_outfile=conftest.$ac_objext |
12563 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12564 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
12565 | # Insert the option either (1) after the last *FLAGS variable, or |
12566 | # (2) before a word containing "conftest.", or (3) at the end. |
12567 | # Note that $ac_compile itself does not contain backslashes and begins |
12568 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12569 | # The option is referenced via a variable to avoid confusing sed. |
12570 | lt_compile=`echo "$ac_compile" | $SED \ |
12571 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12572 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12573 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
12574 | (eval echo "\"\$as_me:12574: $lt_compile\"" >&5) |
d9898ee8 |
12575 | (eval "$lt_compile" 2>conftest.err) |
12576 | ac_status=$? |
12577 | cat conftest.err >&5 |
dd184caf |
12578 | echo "$as_me:12578: \$? = $ac_status" >&5 |
d9898ee8 |
12579 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12580 | # The compiler can only warn and ignore the option if not recognized |
12581 | # So say no if there are warnings other than the usual output. |
12582 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
12583 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12584 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
12585 | lt_prog_compiler_pic_works_CXX=yes |
12586 | fi |
12587 | fi |
12588 | $rm conftest* |
12589 | |
12590 | fi |
dd184caf |
12591 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
12592 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
d9898ee8 |
12593 | |
12594 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
12595 | case $lt_prog_compiler_pic_CXX in |
12596 | "" | " "*) ;; |
12597 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
12598 | esac |
12599 | else |
12600 | lt_prog_compiler_pic_CXX= |
12601 | lt_prog_compiler_can_build_shared_CXX=no |
12602 | fi |
12603 | |
12604 | fi |
12605 | case $host_os in |
12606 | # For platforms which do not support PIC, -DPIC is meaningless: |
12607 | *djgpp*) |
12608 | lt_prog_compiler_pic_CXX= |
12609 | ;; |
12610 | *) |
12611 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
12612 | ;; |
12613 | esac |
12614 | |
12615 | # |
12616 | # Check to make sure the static flag actually works. |
12617 | # |
12618 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
dd184caf |
12619 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
12620 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
12621 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
12622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12623 | else |
12624 | lt_prog_compiler_static_works_CXX=no |
12625 | save_LDFLAGS="$LDFLAGS" |
12626 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
12627 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
12628 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
12629 | # The linker can only warn and ignore the option if not recognized |
12630 | # So say no if there are warnings |
12631 | if test -s conftest.err; then |
12632 | # Append any errors to the config.log. |
12633 | cat conftest.err 1>&5 |
12634 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
12635 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12636 | if diff conftest.exp conftest.er2 >/dev/null; then |
12637 | lt_prog_compiler_static_works_CXX=yes |
12638 | fi |
12639 | else |
12640 | lt_prog_compiler_static_works_CXX=yes |
12641 | fi |
12642 | fi |
12643 | $rm conftest* |
12644 | LDFLAGS="$save_LDFLAGS" |
12645 | |
12646 | fi |
dd184caf |
12647 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
12648 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
d9898ee8 |
12649 | |
12650 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
12651 | : |
12652 | else |
12653 | lt_prog_compiler_static_CXX= |
12654 | fi |
12655 | |
12656 | |
dd184caf |
12657 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12658 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
12659 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
12660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12661 | else |
12662 | lt_cv_prog_compiler_c_o_CXX=no |
12663 | $rm -r conftest 2>/dev/null |
12664 | mkdir conftest |
12665 | cd conftest |
12666 | mkdir out |
12667 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12668 | |
12669 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
12670 | # Insert the option either (1) after the last *FLAGS variable, or |
12671 | # (2) before a word containing "conftest.", or (3) at the end. |
12672 | # Note that $ac_compile itself does not contain backslashes and begins |
12673 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12674 | lt_compile=`echo "$ac_compile" | $SED \ |
12675 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12676 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12677 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
12678 | (eval echo "\"\$as_me:12678: $lt_compile\"" >&5) |
d9898ee8 |
12679 | (eval "$lt_compile" 2>out/conftest.err) |
12680 | ac_status=$? |
12681 | cat out/conftest.err >&5 |
dd184caf |
12682 | echo "$as_me:12682: \$? = $ac_status" >&5 |
d9898ee8 |
12683 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12684 | then |
12685 | # The compiler can only warn and ignore the option if not recognized |
12686 | # So say no if there are warnings |
12687 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
12688 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
12689 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
12690 | lt_cv_prog_compiler_c_o_CXX=yes |
12691 | fi |
12692 | fi |
12693 | chmod u+w . 2>&5 |
12694 | $rm conftest* |
12695 | # SGI C++ compiler will create directory out/ii_files/ for |
12696 | # template instantiation |
12697 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
12698 | $rm out/* && rmdir out |
12699 | cd .. |
12700 | rmdir conftest |
12701 | $rm conftest* |
12702 | |
12703 | fi |
dd184caf |
12704 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
12705 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
d9898ee8 |
12706 | |
12707 | |
12708 | hard_links="nottested" |
12709 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
12710 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
12711 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
12712 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
12713 | hard_links=yes |
12714 | $rm conftest* |
12715 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
12716 | touch conftest.a |
12717 | ln conftest.a conftest.b 2>&5 || hard_links=no |
12718 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
12719 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
12720 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
12721 | if test "$hard_links" = no; then |
12722 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
12723 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
12724 | need_locks=warn |
12725 | fi |
12726 | else |
12727 | need_locks=no |
12728 | fi |
12729 | |
dd184caf |
12730 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12731 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
12732 | |
12733 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12734 | case $host_os in |
12735 | aix4* | aix5*) |
12736 | # If we're using GNU nm, then we don't want the "-C" option. |
12737 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
12738 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
12739 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
12740 | else |
12741 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
12742 | fi |
12743 | ;; |
12744 | pw32*) |
12745 | export_symbols_cmds_CXX="$ltdll_cmds" |
12746 | ;; |
12747 | cygwin* | mingw*) |
12748 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
12749 | ;; |
12750 | *) |
12751 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12752 | ;; |
12753 | esac |
12754 | |
dd184caf |
12755 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12756 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
12757 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12758 | |
12759 | # |
12760 | # Do we need to explicitly link libc? |
12761 | # |
12762 | case "x$archive_cmds_need_lc_CXX" in |
12763 | x|xyes) |
12764 | # Assume -lc should be added |
12765 | archive_cmds_need_lc_CXX=yes |
12766 | |
12767 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
12768 | case $archive_cmds_CXX in |
12769 | *'~'*) |
12770 | # FIXME: we may have to deal with multi-command sequences. |
12771 | ;; |
12772 | '$CC '*) |
12773 | # Test whether the compiler implicitly links with -lc since on some |
12774 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
12775 | # to ld, don't add -lc before -lgcc. |
dd184caf |
12776 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
12777 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
12778 | $rm conftest* |
12779 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12780 | |
12781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12782 | (eval $ac_compile) 2>&5 |
12783 | ac_status=$? |
12784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12785 | (exit $ac_status); } 2>conftest.err; then |
12786 | soname=conftest |
12787 | lib=conftest |
12788 | libobjs=conftest.$ac_objext |
12789 | deplibs= |
12790 | wl=$lt_prog_compiler_wl_CXX |
12791 | pic_flag=$lt_prog_compiler_pic_CXX |
12792 | compiler_flags=-v |
12793 | linker_flags=-v |
12794 | verstring= |
12795 | output_objdir=. |
12796 | libname=conftest |
12797 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
12798 | allow_undefined_flag_CXX= |
12799 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
12800 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
12801 | ac_status=$? |
12802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12803 | (exit $ac_status); } |
12804 | then |
12805 | archive_cmds_need_lc_CXX=no |
12806 | else |
12807 | archive_cmds_need_lc_CXX=yes |
12808 | fi |
12809 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
12810 | else |
12811 | cat conftest.err 1>&5 |
12812 | fi |
12813 | $rm conftest* |
dd184caf |
12814 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
12815 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
d9898ee8 |
12816 | ;; |
12817 | esac |
12818 | fi |
12819 | ;; |
12820 | esac |
12821 | |
dd184caf |
12822 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
12823 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
12824 | library_names_spec= |
12825 | libname_spec='lib$name' |
12826 | soname_spec= |
12827 | shrext_cmds=".so" |
12828 | postinstall_cmds= |
12829 | postuninstall_cmds= |
12830 | finish_cmds= |
12831 | finish_eval= |
12832 | shlibpath_var= |
12833 | shlibpath_overrides_runpath=unknown |
12834 | version_type=none |
12835 | dynamic_linker="$host_os ld.so" |
12836 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
12837 | if test "$GCC" = yes; then |
12838 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12839 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
12840 | # if the path contains ";" then we assume it to be the separator |
12841 | # otherwise default to the standard path separator (i.e. ":") - it is |
12842 | # assumed that no part of a normal pathname contains ";" but that should |
12843 | # okay in the real world where ";" in dirpaths is itself problematic. |
12844 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12845 | else |
12846 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12847 | fi |
12848 | else |
12849 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
12850 | fi |
12851 | need_lib_prefix=unknown |
12852 | hardcode_into_libs=no |
12853 | |
12854 | # when you set need_version to no, make sure it does not cause -set_version |
12855 | # flags to be left without arguments |
12856 | need_version=unknown |
12857 | |
12858 | case $host_os in |
12859 | aix3*) |
12860 | version_type=linux |
12861 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
12862 | shlibpath_var=LIBPATH |
12863 | |
12864 | # AIX 3 has no versioning support, so we append a major version to the name. |
12865 | soname_spec='${libname}${release}${shared_ext}$major' |
12866 | ;; |
12867 | |
12868 | aix4* | aix5*) |
12869 | version_type=linux |
12870 | need_lib_prefix=no |
12871 | need_version=no |
12872 | hardcode_into_libs=yes |
12873 | if test "$host_cpu" = ia64; then |
12874 | # AIX 5 supports IA64 |
12875 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
12876 | shlibpath_var=LD_LIBRARY_PATH |
12877 | else |
12878 | # With GCC up to 2.95.x, collect2 would create an import file |
12879 | # for dependence libraries. The import file would start with |
12880 | # the line `#! .'. This would cause the generated library to |
12881 | # depend on `.', always an invalid library. This was fixed in |
12882 | # development snapshots of GCC prior to 3.0. |
12883 | case $host_os in |
12884 | aix4 | aix4.[01] | aix4.[01].*) |
12885 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
12886 | echo ' yes ' |
12887 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
12888 | : |
12889 | else |
12890 | can_build_shared=no |
12891 | fi |
12892 | ;; |
12893 | esac |
12894 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
12895 | # soname into executable. Probably we can add versioning support to |
12896 | # collect2, so additional links can be useful in future. |
12897 | if test "$aix_use_runtimelinking" = yes; then |
12898 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
12899 | # instead of lib<name>.a to let people know that these are not |
12900 | # typical AIX shared libraries. |
12901 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12902 | else |
12903 | # We preserve .a as extension for shared libraries through AIX4.2 |
12904 | # and later when we are not doing run time linking. |
12905 | library_names_spec='${libname}${release}.a $libname.a' |
12906 | soname_spec='${libname}${release}${shared_ext}$major' |
12907 | fi |
12908 | shlibpath_var=LIBPATH |
12909 | fi |
12910 | ;; |
12911 | |
12912 | amigaos*) |
12913 | library_names_spec='$libname.ixlibrary $libname.a' |
12914 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
12915 | 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' |
12916 | ;; |
12917 | |
12918 | beos*) |
12919 | library_names_spec='${libname}${shared_ext}' |
12920 | dynamic_linker="$host_os ld.so" |
12921 | shlibpath_var=LIBRARY_PATH |
12922 | ;; |
12923 | |
12924 | bsdi[45]*) |
12925 | version_type=linux |
12926 | need_version=no |
12927 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12928 | soname_spec='${libname}${release}${shared_ext}$major' |
12929 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
12930 | shlibpath_var=LD_LIBRARY_PATH |
12931 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
12932 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
12933 | # the default ld.so.conf also contains /usr/contrib/lib and |
12934 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
12935 | # libtool to hard-code these into programs |
12936 | ;; |
12937 | |
12938 | cygwin* | mingw* | pw32*) |
12939 | version_type=windows |
12940 | shrext_cmds=".dll" |
12941 | need_version=no |
12942 | need_lib_prefix=no |
12943 | |
12944 | case $GCC,$host_os in |
12945 | yes,cygwin* | yes,mingw* | yes,pw32*) |
12946 | library_names_spec='$libname.dll.a' |
12947 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12948 | postinstall_cmds='base_file=`basename \${file}`~ |
12949 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12950 | dldir=$destdir/`dirname \$dlpath`~ |
12951 | test -d \$dldir || mkdir -p \$dldir~ |
12952 | $install_prog $dir/$dlname \$dldir/$dlname~ |
12953 | chmod a+x \$dldir/$dlname' |
12954 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12955 | dlpath=$dir/\$dldll~ |
12956 | $rm \$dlpath' |
12957 | shlibpath_overrides_runpath=yes |
12958 | |
12959 | case $host_os in |
12960 | cygwin*) |
12961 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
12962 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12963 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
12964 | ;; |
12965 | mingw*) |
12966 | # MinGW DLLs use traditional 'lib' prefix |
12967 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12968 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12969 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
12970 | # It is most probably a Windows format PATH printed by |
12971 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
12972 | # path with ; separators, and with drive letters. We can handle the |
12973 | # drive letters (cygwin fileutils understands them), so leave them, |
12974 | # especially as we might pass files found there to a mingw objdump, |
12975 | # which wouldn't understand a cygwinified path. Ahh. |
12976 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12977 | else |
12978 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12979 | fi |
12980 | ;; |
12981 | pw32*) |
12982 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12983 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12984 | ;; |
12985 | esac |
12986 | ;; |
12987 | |
12988 | *) |
12989 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
12990 | ;; |
12991 | esac |
12992 | dynamic_linker='Win32 ld.exe' |
12993 | # FIXME: first we should search . and the directory the executable is in |
12994 | shlibpath_var=PATH |
12995 | ;; |
12996 | |
12997 | darwin* | rhapsody*) |
12998 | dynamic_linker="$host_os dyld" |
12999 | version_type=darwin |
13000 | need_lib_prefix=no |
13001 | need_version=no |
13002 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
13003 | soname_spec='${libname}${release}${major}$shared_ext' |
13004 | shlibpath_overrides_runpath=yes |
13005 | shlibpath_var=DYLD_LIBRARY_PATH |
13006 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
13007 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
13008 | if test "$GCC" = yes; then |
13009 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
13010 | else |
13011 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
13012 | fi |
13013 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
13014 | ;; |
13015 | |
13016 | dgux*) |
13017 | version_type=linux |
13018 | need_lib_prefix=no |
13019 | need_version=no |
13020 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
13021 | soname_spec='${libname}${release}${shared_ext}$major' |
13022 | shlibpath_var=LD_LIBRARY_PATH |
13023 | ;; |
13024 | |
13025 | freebsd1*) |
13026 | dynamic_linker=no |
13027 | ;; |
13028 | |
13029 | kfreebsd*-gnu) |
13030 | version_type=linux |
13031 | need_lib_prefix=no |
13032 | need_version=no |
13033 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13034 | soname_spec='${libname}${release}${shared_ext}$major' |
13035 | shlibpath_var=LD_LIBRARY_PATH |
13036 | shlibpath_overrides_runpath=no |
13037 | hardcode_into_libs=yes |
13038 | dynamic_linker='GNU ld.so' |
13039 | ;; |
13040 | |
13041 | freebsd* | dragonfly*) |
13042 | # DragonFly does not have aout. When/if they implement a new |
13043 | # versioning mechanism, adjust this. |
13044 | if test -x /usr/bin/objformat; then |
13045 | objformat=`/usr/bin/objformat` |
13046 | else |
13047 | case $host_os in |
13048 | freebsd[123]*) objformat=aout ;; |
13049 | *) objformat=elf ;; |
13050 | esac |
13051 | fi |
13052 | version_type=freebsd-$objformat |
13053 | case $version_type in |
13054 | freebsd-elf*) |
13055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
13056 | need_version=no |
13057 | need_lib_prefix=no |
13058 | ;; |
13059 | freebsd-*) |
13060 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
13061 | need_version=yes |
13062 | ;; |
13063 | esac |
13064 | shlibpath_var=LD_LIBRARY_PATH |
13065 | case $host_os in |
13066 | freebsd2*) |
13067 | shlibpath_overrides_runpath=yes |
13068 | ;; |
13069 | freebsd3.[01]* | freebsdelf3.[01]*) |
13070 | shlibpath_overrides_runpath=yes |
13071 | hardcode_into_libs=yes |
13072 | ;; |
13073 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
13074 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
13075 | shlibpath_overrides_runpath=no |
13076 | hardcode_into_libs=yes |
13077 | ;; |
13078 | freebsd*) # from 4.6 on |
13079 | shlibpath_overrides_runpath=yes |
13080 | hardcode_into_libs=yes |
13081 | ;; |
13082 | esac |
13083 | ;; |
13084 | |
13085 | gnu*) |
13086 | version_type=linux |
13087 | need_lib_prefix=no |
13088 | need_version=no |
13089 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
13090 | soname_spec='${libname}${release}${shared_ext}$major' |
13091 | shlibpath_var=LD_LIBRARY_PATH |
13092 | hardcode_into_libs=yes |
13093 | ;; |
13094 | |
13095 | hpux9* | hpux10* | hpux11*) |
13096 | # Give a soname corresponding to the major version so that dld.sl refuses to |
13097 | # link against other versions. |
13098 | version_type=sunos |
13099 | need_lib_prefix=no |
13100 | need_version=no |
13101 | case $host_cpu in |
13102 | ia64*) |
13103 | shrext_cmds='.so' |
13104 | hardcode_into_libs=yes |
13105 | dynamic_linker="$host_os dld.so" |
13106 | shlibpath_var=LD_LIBRARY_PATH |
13107 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
13108 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13109 | soname_spec='${libname}${release}${shared_ext}$major' |
13110 | if test "X$HPUX_IA64_MODE" = X32; then |
13111 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
13112 | else |
13113 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
13114 | fi |
13115 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
13116 | ;; |
13117 | hppa*64*) |
13118 | shrext_cmds='.sl' |
13119 | hardcode_into_libs=yes |
13120 | dynamic_linker="$host_os dld.sl" |
13121 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
13122 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
13123 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13124 | soname_spec='${libname}${release}${shared_ext}$major' |
13125 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
13126 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
13127 | ;; |
13128 | *) |
13129 | shrext_cmds='.sl' |
13130 | dynamic_linker="$host_os dld.sl" |
13131 | shlibpath_var=SHLIB_PATH |
13132 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
13133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13134 | soname_spec='${libname}${release}${shared_ext}$major' |
13135 | ;; |
13136 | esac |
13137 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
13138 | postinstall_cmds='chmod 555 $lib' |
13139 | ;; |
13140 | |
13141 | interix3*) |
13142 | version_type=linux |
13143 | need_lib_prefix=no |
13144 | need_version=no |
13145 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13146 | soname_spec='${libname}${release}${shared_ext}$major' |
13147 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
13148 | shlibpath_var=LD_LIBRARY_PATH |
13149 | shlibpath_overrides_runpath=no |
13150 | hardcode_into_libs=yes |
13151 | ;; |
13152 | |
13153 | irix5* | irix6* | nonstopux*) |
13154 | case $host_os in |
13155 | nonstopux*) version_type=nonstopux ;; |
13156 | *) |
13157 | if test "$lt_cv_prog_gnu_ld" = yes; then |
13158 | version_type=linux |
13159 | else |
13160 | version_type=irix |
13161 | fi ;; |
13162 | esac |
13163 | need_lib_prefix=no |
13164 | need_version=no |
13165 | soname_spec='${libname}${release}${shared_ext}$major' |
13166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
13167 | case $host_os in |
13168 | irix5* | nonstopux*) |
13169 | libsuff= shlibsuff= |
13170 | ;; |
13171 | *) |
13172 | case $LD in # libtool.m4 will add one of these switches to LD |
13173 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
13174 | libsuff= shlibsuff= libmagic=32-bit;; |
13175 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
13176 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
13177 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
13178 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
13179 | *) libsuff= shlibsuff= libmagic=never-match;; |
13180 | esac |
13181 | ;; |
13182 | esac |
13183 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
13184 | shlibpath_overrides_runpath=no |
13185 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
13186 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
13187 | hardcode_into_libs=yes |
13188 | ;; |
13189 | |
13190 | # No shared lib support for Linux oldld, aout, or coff. |
13191 | linux*oldld* | linux*aout* | linux*coff*) |
13192 | dynamic_linker=no |
13193 | ;; |
13194 | |
13195 | # This must be Linux ELF. |
13196 | linux*) |
13197 | version_type=linux |
13198 | need_lib_prefix=no |
13199 | need_version=no |
13200 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13201 | soname_spec='${libname}${release}${shared_ext}$major' |
13202 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
13203 | shlibpath_var=LD_LIBRARY_PATH |
13204 | shlibpath_overrides_runpath=no |
13205 | # This implies no fast_install, which is unacceptable. |
13206 | # Some rework will be needed to allow for fast_install |
13207 | # before this can be enabled. |
13208 | hardcode_into_libs=yes |
13209 | |
13210 | # find out which ABI we are using |
13211 | libsuff= |
13212 | case "$host_cpu" in |
13213 | x86_64*|s390x*|powerpc64*) |
dd184caf |
13214 | echo '#line 13214 "configure"' > conftest.$ac_ext |
d9898ee8 |
13215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13216 | (eval $ac_compile) 2>&5 |
13217 | ac_status=$? |
13218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13219 | (exit $ac_status); }; then |
13220 | case `/usr/bin/file conftest.$ac_objext` in |
13221 | *64-bit*) |
13222 | libsuff=64 |
13223 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
13224 | ;; |
13225 | esac |
13226 | fi |
13227 | rm -rf conftest* |
13228 | ;; |
13229 | esac |
13230 | |
13231 | # Append ld.so.conf contents to the search path |
13232 | if test -f /etc/ld.so.conf; then |
dd184caf |
13233 | 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
13234 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
13235 | fi |
13236 | |
13237 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13238 | # powerpc, because MkLinux only supported shared libraries with the |
13239 | # GNU dynamic linker. Since this was broken with cross compilers, |
13240 | # most powerpc-linux boxes support dynamic linking these days and |
13241 | # people can always --disable-shared, the test was removed, and we |
13242 | # assume the GNU/Linux dynamic linker is in use. |
13243 | dynamic_linker='GNU/Linux ld.so' |
13244 | ;; |
13245 | |
13246 | knetbsd*-gnu) |
13247 | version_type=linux |
13248 | need_lib_prefix=no |
13249 | need_version=no |
13250 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13251 | soname_spec='${libname}${release}${shared_ext}$major' |
13252 | shlibpath_var=LD_LIBRARY_PATH |
13253 | shlibpath_overrides_runpath=no |
13254 | hardcode_into_libs=yes |
13255 | dynamic_linker='GNU ld.so' |
13256 | ;; |
13257 | |
13258 | netbsd*) |
13259 | version_type=sunos |
13260 | need_lib_prefix=no |
13261 | need_version=no |
13262 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13263 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13264 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13265 | dynamic_linker='NetBSD (a.out) ld.so' |
13266 | else |
13267 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13268 | soname_spec='${libname}${release}${shared_ext}$major' |
13269 | dynamic_linker='NetBSD ld.elf_so' |
13270 | fi |
13271 | shlibpath_var=LD_LIBRARY_PATH |
13272 | shlibpath_overrides_runpath=yes |
13273 | hardcode_into_libs=yes |
13274 | ;; |
13275 | |
13276 | newsos6) |
13277 | version_type=linux |
13278 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13279 | shlibpath_var=LD_LIBRARY_PATH |
13280 | shlibpath_overrides_runpath=yes |
13281 | ;; |
13282 | |
13283 | nto-qnx*) |
13284 | version_type=linux |
13285 | need_lib_prefix=no |
13286 | need_version=no |
13287 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13288 | soname_spec='${libname}${release}${shared_ext}$major' |
13289 | shlibpath_var=LD_LIBRARY_PATH |
13290 | shlibpath_overrides_runpath=yes |
13291 | ;; |
13292 | |
13293 | openbsd*) |
13294 | version_type=sunos |
13295 | sys_lib_dlsearch_path_spec="/usr/lib" |
13296 | need_lib_prefix=no |
13297 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
13298 | case $host_os in |
13299 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
13300 | *) need_version=no ;; |
13301 | esac |
13302 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13303 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13304 | shlibpath_var=LD_LIBRARY_PATH |
13305 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
13306 | case $host_os in |
13307 | openbsd2.[89] | openbsd2.[89].*) |
13308 | shlibpath_overrides_runpath=no |
13309 | ;; |
13310 | *) |
13311 | shlibpath_overrides_runpath=yes |
13312 | ;; |
13313 | esac |
13314 | else |
13315 | shlibpath_overrides_runpath=yes |
13316 | fi |
13317 | ;; |
13318 | |
13319 | os2*) |
13320 | libname_spec='$name' |
13321 | shrext_cmds=".dll" |
13322 | need_lib_prefix=no |
13323 | library_names_spec='$libname${shared_ext} $libname.a' |
13324 | dynamic_linker='OS/2 ld.exe' |
13325 | shlibpath_var=LIBPATH |
13326 | ;; |
13327 | |
13328 | osf3* | osf4* | osf5*) |
13329 | version_type=osf |
13330 | need_lib_prefix=no |
13331 | need_version=no |
13332 | soname_spec='${libname}${release}${shared_ext}$major' |
13333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13334 | shlibpath_var=LD_LIBRARY_PATH |
13335 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
13336 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
13337 | ;; |
13338 | |
13339 | solaris*) |
13340 | version_type=linux |
13341 | need_lib_prefix=no |
13342 | need_version=no |
13343 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13344 | soname_spec='${libname}${release}${shared_ext}$major' |
13345 | shlibpath_var=LD_LIBRARY_PATH |
13346 | shlibpath_overrides_runpath=yes |
13347 | hardcode_into_libs=yes |
13348 | # ldd complains unless libraries are executable |
13349 | postinstall_cmds='chmod +x $lib' |
13350 | ;; |
13351 | |
13352 | sunos4*) |
13353 | version_type=sunos |
13354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13355 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
13356 | shlibpath_var=LD_LIBRARY_PATH |
13357 | shlibpath_overrides_runpath=yes |
13358 | if test "$with_gnu_ld" = yes; then |
13359 | need_lib_prefix=no |
13360 | fi |
13361 | need_version=yes |
13362 | ;; |
13363 | |
13364 | sysv4 | sysv4.3*) |
13365 | version_type=linux |
13366 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13367 | soname_spec='${libname}${release}${shared_ext}$major' |
13368 | shlibpath_var=LD_LIBRARY_PATH |
13369 | case $host_vendor in |
13370 | sni) |
13371 | shlibpath_overrides_runpath=no |
13372 | need_lib_prefix=no |
13373 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
13374 | runpath_var=LD_RUN_PATH |
13375 | ;; |
13376 | siemens) |
13377 | need_lib_prefix=no |
13378 | ;; |
13379 | motorola) |
13380 | need_lib_prefix=no |
13381 | need_version=no |
13382 | shlibpath_overrides_runpath=no |
13383 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
13384 | ;; |
13385 | esac |
13386 | ;; |
13387 | |
13388 | sysv4*MP*) |
13389 | if test -d /usr/nec ;then |
13390 | version_type=linux |
13391 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
13392 | soname_spec='$libname${shared_ext}.$major' |
13393 | shlibpath_var=LD_LIBRARY_PATH |
13394 | fi |
13395 | ;; |
13396 | |
13397 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
13398 | version_type=freebsd-elf |
13399 | need_lib_prefix=no |
13400 | need_version=no |
13401 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
13402 | soname_spec='${libname}${release}${shared_ext}$major' |
13403 | shlibpath_var=LD_LIBRARY_PATH |
13404 | hardcode_into_libs=yes |
13405 | if test "$with_gnu_ld" = yes; then |
13406 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
13407 | shlibpath_overrides_runpath=no |
13408 | else |
13409 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
13410 | shlibpath_overrides_runpath=yes |
13411 | case $host_os in |
13412 | sco3.2v5*) |
13413 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
13414 | ;; |
13415 | esac |
13416 | fi |
13417 | sys_lib_dlsearch_path_spec='/usr/lib' |
13418 | ;; |
13419 | |
13420 | uts4*) |
13421 | version_type=linux |
13422 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13423 | soname_spec='${libname}${release}${shared_ext}$major' |
13424 | shlibpath_var=LD_LIBRARY_PATH |
13425 | ;; |
13426 | |
13427 | *) |
13428 | dynamic_linker=no |
13429 | ;; |
13430 | esac |
dd184caf |
13431 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
13432 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
13433 | test "$dynamic_linker" = no && can_build_shared=no |
13434 | |
13435 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
13436 | if test "$GCC" = yes; then |
13437 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
13438 | fi |
13439 | |
dd184caf |
13440 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
13441 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
13442 | hardcode_action_CXX= |
13443 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
13444 | test -n "$runpath_var_CXX" || \ |
13445 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
13446 | |
13447 | # We can hardcode non-existant directories. |
13448 | if test "$hardcode_direct_CXX" != no && |
13449 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
13450 | # have to relink, otherwise we might link with an installed library |
13451 | # when we should be linking with a yet-to-be-installed one |
13452 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
13453 | test "$hardcode_minus_L_CXX" != no; then |
13454 | # Linking always hardcodes the temporary library directory. |
13455 | hardcode_action_CXX=relink |
13456 | else |
13457 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
13458 | hardcode_action_CXX=immediate |
13459 | fi |
13460 | else |
13461 | # We cannot hardcode anything, or else we can only hardcode existing |
13462 | # directories. |
13463 | hardcode_action_CXX=unsupported |
13464 | fi |
dd184caf |
13465 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
13466 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
d9898ee8 |
13467 | |
13468 | if test "$hardcode_action_CXX" = relink; then |
13469 | # Fast installation is not supported |
13470 | enable_fast_install=no |
13471 | elif test "$shlibpath_overrides_runpath" = yes || |
13472 | test "$enable_shared" = no; then |
13473 | # Fast installation is not necessary |
13474 | enable_fast_install=needless |
13475 | fi |
13476 | |
13477 | |
13478 | # The else clause should only fire when bootstrapping the |
13479 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
13480 | # with your package, and you will get complaints that there are |
13481 | # no rules to generate ltmain.sh. |
13482 | if test -f "$ltmain"; then |
13483 | # See if we are running on zsh, and set the options which allow our commands through |
13484 | # without removal of \ escapes. |
13485 | if test -n "${ZSH_VERSION+set}" ; then |
13486 | setopt NO_GLOB_SUBST |
13487 | fi |
13488 | # Now quote all the things that may contain metacharacters while being |
13489 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
13490 | # variables and quote the copies for generation of the libtool script. |
13491 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
13492 | SED SHELL STRIP \ |
13493 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
13494 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
13495 | deplibs_check_method reload_flag reload_cmds need_locks \ |
13496 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
13497 | lt_cv_sys_global_symbol_to_c_name_address \ |
13498 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
13499 | old_postinstall_cmds old_postuninstall_cmds \ |
13500 | compiler_CXX \ |
13501 | CC_CXX \ |
13502 | LD_CXX \ |
13503 | lt_prog_compiler_wl_CXX \ |
13504 | lt_prog_compiler_pic_CXX \ |
13505 | lt_prog_compiler_static_CXX \ |
13506 | lt_prog_compiler_no_builtin_flag_CXX \ |
13507 | export_dynamic_flag_spec_CXX \ |
13508 | thread_safe_flag_spec_CXX \ |
13509 | whole_archive_flag_spec_CXX \ |
13510 | enable_shared_with_static_runtimes_CXX \ |
13511 | old_archive_cmds_CXX \ |
13512 | old_archive_from_new_cmds_CXX \ |
13513 | predep_objects_CXX \ |
13514 | postdep_objects_CXX \ |
13515 | predeps_CXX \ |
13516 | postdeps_CXX \ |
13517 | compiler_lib_search_path_CXX \ |
13518 | archive_cmds_CXX \ |
13519 | archive_expsym_cmds_CXX \ |
13520 | postinstall_cmds_CXX \ |
13521 | postuninstall_cmds_CXX \ |
13522 | old_archive_from_expsyms_cmds_CXX \ |
13523 | allow_undefined_flag_CXX \ |
13524 | no_undefined_flag_CXX \ |
13525 | export_symbols_cmds_CXX \ |
13526 | hardcode_libdir_flag_spec_CXX \ |
13527 | hardcode_libdir_flag_spec_ld_CXX \ |
13528 | hardcode_libdir_separator_CXX \ |
13529 | hardcode_automatic_CXX \ |
13530 | module_cmds_CXX \ |
13531 | module_expsym_cmds_CXX \ |
13532 | lt_cv_prog_compiler_c_o_CXX \ |
13533 | exclude_expsyms_CXX \ |
13534 | include_expsyms_CXX; do |
13535 | |
13536 | case $var in |
13537 | old_archive_cmds_CXX | \ |
13538 | old_archive_from_new_cmds_CXX | \ |
13539 | archive_cmds_CXX | \ |
13540 | archive_expsym_cmds_CXX | \ |
13541 | module_cmds_CXX | \ |
13542 | module_expsym_cmds_CXX | \ |
13543 | old_archive_from_expsyms_cmds_CXX | \ |
13544 | export_symbols_cmds_CXX | \ |
13545 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
13546 | postinstall_cmds | postuninstall_cmds | \ |
13547 | old_postinstall_cmds | old_postuninstall_cmds | \ |
13548 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
13549 | # Double-quote double-evaled strings. |
13550 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
13551 | ;; |
13552 | *) |
13553 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
13554 | ;; |
13555 | esac |
13556 | done |
13557 | |
13558 | case $lt_echo in |
13559 | *'\$0 --fallback-echo"') |
13560 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
13561 | ;; |
13562 | esac |
13563 | |
13564 | cfgfile="$ofile" |
13565 | |
13566 | cat <<__EOF__ >> "$cfgfile" |
13567 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
13568 | |
13569 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
13570 | |
13571 | # Shell to use when invoking shell scripts. |
13572 | SHELL=$lt_SHELL |
13573 | |
13574 | # Whether or not to build shared libraries. |
13575 | build_libtool_libs=$enable_shared |
13576 | |
13577 | # Whether or not to build static libraries. |
13578 | build_old_libs=$enable_static |
13579 | |
13580 | # Whether or not to add -lc for building shared libraries. |
13581 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
13582 | |
13583 | # Whether or not to disallow shared libs when runtime libs are static |
13584 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
13585 | |
13586 | # Whether or not to optimize for fast installation. |
13587 | fast_install=$enable_fast_install |
13588 | |
13589 | # The host system. |
13590 | host_alias=$host_alias |
13591 | host=$host |
13592 | host_os=$host_os |
13593 | |
13594 | # The build system. |
13595 | build_alias=$build_alias |
13596 | build=$build |
13597 | build_os=$build_os |
13598 | |
13599 | # An echo program that does not interpret backslashes. |
13600 | echo=$lt_echo |
13601 | |
13602 | # The archiver. |
13603 | AR=$lt_AR |
13604 | AR_FLAGS=$lt_AR_FLAGS |
13605 | |
13606 | # A C compiler. |
13607 | LTCC=$lt_LTCC |
13608 | |
13609 | # LTCC compiler flags. |
13610 | LTCFLAGS=$lt_LTCFLAGS |
13611 | |
13612 | # A language-specific compiler. |
13613 | CC=$lt_compiler_CXX |
13614 | |
13615 | # Is the compiler the GNU C compiler? |
13616 | with_gcc=$GCC_CXX |
13617 | |
d9898ee8 |
13618 | # An ERE matcher. |
13619 | EGREP=$lt_EGREP |
13620 | |
13621 | # The linker used to build libraries. |
13622 | LD=$lt_LD_CXX |
13623 | |
13624 | # Whether we need hard or soft links. |
13625 | LN_S=$lt_LN_S |
13626 | |
13627 | # A BSD-compatible nm program. |
13628 | NM=$lt_NM |
13629 | |
13630 | # A symbol stripping program |
13631 | STRIP=$lt_STRIP |
13632 | |
13633 | # Used to examine libraries when file_magic_cmd begins "file" |
13634 | MAGIC_CMD=$MAGIC_CMD |
13635 | |
13636 | # Used on cygwin: DLL creation program. |
13637 | DLLTOOL="$DLLTOOL" |
13638 | |
13639 | # Used on cygwin: object dumper. |
13640 | OBJDUMP="$OBJDUMP" |
13641 | |
13642 | # Used on cygwin: assembler. |
13643 | AS="$AS" |
13644 | |
13645 | # The name of the directory that contains temporary libtool files. |
13646 | objdir=$objdir |
13647 | |
13648 | # How to create reloadable object files. |
13649 | reload_flag=$lt_reload_flag |
13650 | reload_cmds=$lt_reload_cmds |
13651 | |
13652 | # How to pass a linker flag through the compiler. |
13653 | wl=$lt_lt_prog_compiler_wl_CXX |
13654 | |
13655 | # Object file suffix (normally "o"). |
13656 | objext="$ac_objext" |
13657 | |
13658 | # Old archive suffix (normally "a"). |
13659 | libext="$libext" |
13660 | |
13661 | # Shared library suffix (normally ".so"). |
13662 | shrext_cmds='$shrext_cmds' |
13663 | |
13664 | # Executable file suffix (normally ""). |
13665 | exeext="$exeext" |
13666 | |
13667 | # Additional compiler flags for building library objects. |
13668 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
13669 | pic_mode=$pic_mode |
13670 | |
13671 | # What is the maximum length of a command? |
13672 | max_cmd_len=$lt_cv_sys_max_cmd_len |
13673 | |
13674 | # Does compiler simultaneously support -c and -o options? |
13675 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
13676 | |
13677 | # Must we lock files when doing compilation? |
13678 | need_locks=$lt_need_locks |
13679 | |
13680 | # Do we need the lib prefix for modules? |
13681 | need_lib_prefix=$need_lib_prefix |
13682 | |
13683 | # Do we need a version for libraries? |
13684 | need_version=$need_version |
13685 | |
13686 | # Whether dlopen is supported. |
13687 | dlopen_support=$enable_dlopen |
13688 | |
13689 | # Whether dlopen of programs is supported. |
13690 | dlopen_self=$enable_dlopen_self |
13691 | |
13692 | # Whether dlopen of statically linked programs is supported. |
13693 | dlopen_self_static=$enable_dlopen_self_static |
13694 | |
13695 | # Compiler flag to prevent dynamic linking. |
13696 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
13697 | |
13698 | # Compiler flag to turn off builtin functions. |
13699 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
13700 | |
13701 | # Compiler flag to allow reflexive dlopens. |
13702 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
13703 | |
13704 | # Compiler flag to generate shared objects directly from archives. |
13705 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
13706 | |
13707 | # Compiler flag to generate thread-safe objects. |
13708 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
13709 | |
13710 | # Library versioning type. |
13711 | version_type=$version_type |
13712 | |
13713 | # Format of library name prefix. |
13714 | libname_spec=$lt_libname_spec |
13715 | |
13716 | # List of archive names. First name is the real one, the rest are links. |
13717 | # The last name is the one that the linker finds with -lNAME. |
13718 | library_names_spec=$lt_library_names_spec |
13719 | |
13720 | # The coded name of the library, if different from the real name. |
13721 | soname_spec=$lt_soname_spec |
13722 | |
13723 | # Commands used to build and install an old-style archive. |
13724 | RANLIB=$lt_RANLIB |
13725 | old_archive_cmds=$lt_old_archive_cmds_CXX |
13726 | old_postinstall_cmds=$lt_old_postinstall_cmds |
13727 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
13728 | |
13729 | # Create an old-style archive from a shared archive. |
13730 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
13731 | |
13732 | # Create a temporary old-style archive to link instead of a shared archive. |
13733 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
13734 | |
13735 | # Commands used to build and install a shared archive. |
13736 | archive_cmds=$lt_archive_cmds_CXX |
13737 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
13738 | postinstall_cmds=$lt_postinstall_cmds |
13739 | postuninstall_cmds=$lt_postuninstall_cmds |
13740 | |
13741 | # Commands used to build a loadable module (assumed same as above if empty) |
13742 | module_cmds=$lt_module_cmds_CXX |
13743 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
13744 | |
13745 | # Commands to strip libraries. |
13746 | old_striplib=$lt_old_striplib |
13747 | striplib=$lt_striplib |
13748 | |
13749 | # Dependencies to place before the objects being linked to create a |
13750 | # shared library. |
dd184caf |
13751 | predep_objects=$lt_predep_objects_CXX |
d9898ee8 |
13752 | |
13753 | # Dependencies to place after the objects being linked to create a |
13754 | # shared library. |
dd184caf |
13755 | postdep_objects=$lt_postdep_objects_CXX |
d9898ee8 |
13756 | |
13757 | # Dependencies to place before the objects being linked to create a |
13758 | # shared library. |
13759 | predeps=$lt_predeps_CXX |
13760 | |
13761 | # Dependencies to place after the objects being linked to create a |
13762 | # shared library. |
13763 | postdeps=$lt_postdeps_CXX |
13764 | |
13765 | # The library search path used internally by the compiler when linking |
13766 | # a shared library. |
dd184caf |
13767 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
d9898ee8 |
13768 | |
13769 | # Method to check whether dependent libraries are shared objects. |
13770 | deplibs_check_method=$lt_deplibs_check_method |
13771 | |
13772 | # Command to use when deplibs_check_method == file_magic. |
13773 | file_magic_cmd=$lt_file_magic_cmd |
13774 | |
13775 | # Flag that allows shared libraries with undefined symbols to be built. |
13776 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
13777 | |
13778 | # Flag that forces no undefined symbols. |
13779 | no_undefined_flag=$lt_no_undefined_flag_CXX |
13780 | |
13781 | # Commands used to finish a libtool library installation in a directory. |
13782 | finish_cmds=$lt_finish_cmds |
13783 | |
13784 | # Same as above, but a single script fragment to be evaled but not shown. |
13785 | finish_eval=$lt_finish_eval |
13786 | |
13787 | # Take the output of nm and produce a listing of raw symbols and C names. |
13788 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
13789 | |
13790 | # Transform the output of nm in a proper C declaration |
13791 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
13792 | |
13793 | # Transform the output of nm in a C name address pair |
13794 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
13795 | |
13796 | # This is the shared library runtime path variable. |
13797 | runpath_var=$runpath_var |
13798 | |
13799 | # This is the shared library path variable. |
13800 | shlibpath_var=$shlibpath_var |
13801 | |
13802 | # Is shlibpath searched before the hard-coded library search path? |
13803 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
13804 | |
13805 | # How to hardcode a shared library path into an executable. |
13806 | hardcode_action=$hardcode_action_CXX |
13807 | |
13808 | # Whether we should hardcode library paths into libraries. |
13809 | hardcode_into_libs=$hardcode_into_libs |
13810 | |
13811 | # Flag to hardcode \$libdir into a binary during linking. |
13812 | # This must work even if \$libdir does not exist. |
13813 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
13814 | |
13815 | # If ld is used when linking, flag to hardcode \$libdir into |
13816 | # a binary during linking. This must work even if \$libdir does |
13817 | # not exist. |
13818 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
13819 | |
13820 | # Whether we need a single -rpath flag with a separated argument. |
13821 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
13822 | |
13823 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
13824 | # resulting binary. |
13825 | hardcode_direct=$hardcode_direct_CXX |
13826 | |
13827 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
13828 | # resulting binary. |
13829 | hardcode_minus_L=$hardcode_minus_L_CXX |
13830 | |
13831 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
13832 | # the resulting binary. |
13833 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
13834 | |
13835 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
13836 | # and all subsequent libraries and executables linked against it. |
13837 | hardcode_automatic=$hardcode_automatic_CXX |
13838 | |
13839 | # Variables whose values should be saved in libtool wrapper scripts and |
13840 | # restored at relink time. |
13841 | variables_saved_for_relink="$variables_saved_for_relink" |
13842 | |
13843 | # Whether libtool must link a program against all its dependency libraries. |
13844 | link_all_deplibs=$link_all_deplibs_CXX |
13845 | |
13846 | # Compile-time system search path for libraries |
dd184caf |
13847 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
13848 | |
13849 | # Run-time system search path for libraries |
13850 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
13851 | |
13852 | # Fix the shell variable \$srcfile for the compiler. |
13853 | fix_srcfile_path="$fix_srcfile_path_CXX" |
13854 | |
13855 | # Set to yes if exported symbols are required. |
13856 | always_export_symbols=$always_export_symbols_CXX |
13857 | |
13858 | # The commands to list exported symbols. |
13859 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
13860 | |
13861 | # The commands to extract the exported symbol list from a shared archive. |
13862 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
13863 | |
13864 | # Symbols that should not be listed in the preloaded symbols. |
13865 | exclude_expsyms=$lt_exclude_expsyms_CXX |
13866 | |
13867 | # Symbols that must always be exported. |
13868 | include_expsyms=$lt_include_expsyms_CXX |
13869 | |
13870 | # ### END LIBTOOL TAG CONFIG: $tagname |
13871 | |
13872 | __EOF__ |
13873 | |
13874 | |
13875 | else |
13876 | # If there is no Makefile yet, we rely on a make rule to execute |
13877 | # `config.status --recheck' to rerun these tests and create the |
13878 | # libtool script then. |
13879 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
13880 | if test -f "$ltmain_in"; then |
13881 | test -f Makefile && make "$ltmain" |
13882 | fi |
13883 | fi |
13884 | |
13885 | |
13886 | ac_ext=c |
13887 | ac_cpp='$CPP $CPPFLAGS' |
13888 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13889 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13890 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13891 | |
13892 | CC=$lt_save_CC |
13893 | LDCXX=$LD |
13894 | LD=$lt_save_LD |
13895 | GCC=$lt_save_GCC |
13896 | with_gnu_ldcxx=$with_gnu_ld |
13897 | with_gnu_ld=$lt_save_with_gnu_ld |
13898 | lt_cv_path_LDCXX=$lt_cv_path_LD |
13899 | lt_cv_path_LD=$lt_save_path_LD |
13900 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
13901 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
13902 | |
13903 | else |
13904 | tagname="" |
13905 | fi |
13906 | ;; |
13907 | |
13908 | F77) |
13909 | if test -n "$F77" && test "X$F77" != "Xno"; then |
13910 | |
13911 | ac_ext=f |
13912 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
13913 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13914 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
13915 | |
13916 | |
13917 | archive_cmds_need_lc_F77=no |
13918 | allow_undefined_flag_F77= |
13919 | always_export_symbols_F77=no |
13920 | archive_expsym_cmds_F77= |
13921 | export_dynamic_flag_spec_F77= |
13922 | hardcode_direct_F77=no |
13923 | hardcode_libdir_flag_spec_F77= |
13924 | hardcode_libdir_flag_spec_ld_F77= |
13925 | hardcode_libdir_separator_F77= |
13926 | hardcode_minus_L_F77=no |
13927 | hardcode_automatic_F77=no |
13928 | module_cmds_F77= |
13929 | module_expsym_cmds_F77= |
13930 | link_all_deplibs_F77=unknown |
13931 | old_archive_cmds_F77=$old_archive_cmds |
13932 | no_undefined_flag_F77= |
13933 | whole_archive_flag_spec_F77= |
13934 | enable_shared_with_static_runtimes_F77=no |
13935 | |
13936 | # Source file extension for f77 test sources. |
13937 | ac_ext=f |
13938 | |
13939 | # Object file extension for compiled f77 test sources. |
13940 | objext=o |
13941 | objext_F77=$objext |
13942 | |
13943 | # Code to be used in simple compile tests |
13944 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
13945 | |
13946 | # Code to be used in simple link tests |
13947 | lt_simple_link_test_code=" program t\n end\n" |
13948 | |
13949 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13950 | |
13951 | # If no C compiler was specified, use CC. |
13952 | LTCC=${LTCC-"$CC"} |
13953 | |
13954 | # If no C compiler flags were specified, use CFLAGS. |
13955 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
13956 | |
13957 | # Allow CC to be a program name with arguments. |
13958 | compiler=$CC |
13959 | |
13960 | |
13961 | # save warnings/boilerplate of simple test code |
13962 | ac_outfile=conftest.$ac_objext |
13963 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
13964 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13965 | _lt_compiler_boilerplate=`cat conftest.err` |
13966 | $rm conftest* |
13967 | |
13968 | ac_outfile=conftest.$ac_objext |
13969 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
13970 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13971 | _lt_linker_boilerplate=`cat conftest.err` |
13972 | $rm conftest* |
13973 | |
13974 | |
13975 | # Allow CC to be a program name with arguments. |
13976 | lt_save_CC="$CC" |
13977 | CC=${F77-"f77"} |
13978 | compiler=$CC |
13979 | compiler_F77=$CC |
13980 | for cc_temp in $compiler""; do |
13981 | case $cc_temp in |
13982 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13983 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13984 | \-*) ;; |
13985 | *) break;; |
13986 | esac |
13987 | done |
13988 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13989 | |
13990 | |
dd184caf |
13991 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13992 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
13993 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13994 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
13995 | |
dd184caf |
13996 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13997 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
13998 | test "$can_build_shared" = "no" && enable_shared=no |
13999 | |
14000 | # On AIX, shared libraries and static libraries use the same namespace, and |
14001 | # are all built from PIC. |
14002 | case $host_os in |
14003 | aix3*) |
14004 | test "$enable_shared" = yes && enable_static=no |
14005 | if test -n "$RANLIB"; then |
14006 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
14007 | postinstall_cmds='$RANLIB $lib' |
14008 | fi |
14009 | ;; |
14010 | aix4* | aix5*) |
14011 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
14012 | test "$enable_shared" = yes && enable_static=no |
14013 | fi |
14014 | ;; |
14015 | esac |
dd184caf |
14016 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
14017 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
14018 | |
dd184caf |
14019 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
14020 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
14021 | # Make sure either enable_shared or enable_static is yes. |
14022 | test "$enable_shared" = yes || enable_static=yes |
dd184caf |
14023 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
14024 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
14025 | |
14026 | GCC_F77="$G77" |
14027 | LD_F77="$LD" |
14028 | |
14029 | lt_prog_compiler_wl_F77= |
14030 | lt_prog_compiler_pic_F77= |
14031 | lt_prog_compiler_static_F77= |
14032 | |
dd184caf |
14033 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
14034 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
14035 | |
14036 | if test "$GCC" = yes; then |
14037 | lt_prog_compiler_wl_F77='-Wl,' |
14038 | lt_prog_compiler_static_F77='-static' |
14039 | |
14040 | case $host_os in |
14041 | aix*) |
14042 | # All AIX code is PIC. |
14043 | if test "$host_cpu" = ia64; then |
14044 | # AIX 5 now supports IA64 processor |
14045 | lt_prog_compiler_static_F77='-Bstatic' |
14046 | fi |
14047 | ;; |
14048 | |
14049 | amigaos*) |
14050 | # FIXME: we need at least 68020 code to build shared libraries, but |
14051 | # adding the `-m68020' flag to GCC prevents building anything better, |
14052 | # like `-m68040'. |
14053 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
14054 | ;; |
14055 | |
14056 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
14057 | # PIC is the default for these OSes. |
14058 | ;; |
14059 | |
14060 | mingw* | pw32* | os2*) |
14061 | # This hack is so that the source file can tell whether it is being |
14062 | # built for inclusion in a dll (and should export symbols for example). |
14063 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
14064 | ;; |
14065 | |
14066 | darwin* | rhapsody*) |
14067 | # PIC is the default on this platform |
14068 | # Common symbols not allowed in MH_DYLIB files |
14069 | lt_prog_compiler_pic_F77='-fno-common' |
14070 | ;; |
14071 | |
14072 | interix3*) |
14073 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
14074 | # Instead, we relocate shared libraries at runtime. |
14075 | ;; |
14076 | |
14077 | msdosdjgpp*) |
14078 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
14079 | # on systems that don't support them. |
14080 | lt_prog_compiler_can_build_shared_F77=no |
14081 | enable_shared=no |
14082 | ;; |
14083 | |
14084 | sysv4*MP*) |
14085 | if test -d /usr/nec; then |
14086 | lt_prog_compiler_pic_F77=-Kconform_pic |
14087 | fi |
14088 | ;; |
14089 | |
14090 | hpux*) |
14091 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
14092 | # not for PA HP-UX. |
14093 | case $host_cpu in |
14094 | hppa*64*|ia64*) |
14095 | # +Z the default |
14096 | ;; |
14097 | *) |
14098 | lt_prog_compiler_pic_F77='-fPIC' |
14099 | ;; |
14100 | esac |
14101 | ;; |
14102 | |
14103 | *) |
14104 | lt_prog_compiler_pic_F77='-fPIC' |
14105 | ;; |
14106 | esac |
14107 | else |
14108 | # PORTME Check for flag to pass linker flags through the system compiler. |
14109 | case $host_os in |
14110 | aix*) |
14111 | lt_prog_compiler_wl_F77='-Wl,' |
14112 | if test "$host_cpu" = ia64; then |
14113 | # AIX 5 now supports IA64 processor |
14114 | lt_prog_compiler_static_F77='-Bstatic' |
14115 | else |
14116 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
14117 | fi |
14118 | ;; |
14119 | darwin*) |
14120 | # PIC is the default on this platform |
14121 | # Common symbols not allowed in MH_DYLIB files |
14122 | case $cc_basename in |
14123 | xlc*) |
14124 | lt_prog_compiler_pic_F77='-qnocommon' |
14125 | lt_prog_compiler_wl_F77='-Wl,' |
14126 | ;; |
14127 | esac |
14128 | ;; |
14129 | |
14130 | mingw* | pw32* | os2*) |
14131 | # This hack is so that the source file can tell whether it is being |
14132 | # built for inclusion in a dll (and should export symbols for example). |
14133 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
14134 | ;; |
14135 | |
14136 | hpux9* | hpux10* | hpux11*) |
14137 | lt_prog_compiler_wl_F77='-Wl,' |
14138 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
14139 | # not for PA HP-UX. |
14140 | case $host_cpu in |
14141 | hppa*64*|ia64*) |
14142 | # +Z the default |
14143 | ;; |
14144 | *) |
14145 | lt_prog_compiler_pic_F77='+Z' |
14146 | ;; |
14147 | esac |
14148 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
14149 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
14150 | ;; |
14151 | |
14152 | irix5* | irix6* | nonstopux*) |
14153 | lt_prog_compiler_wl_F77='-Wl,' |
14154 | # PIC (with -KPIC) is the default. |
14155 | lt_prog_compiler_static_F77='-non_shared' |
14156 | ;; |
14157 | |
14158 | newsos6) |
14159 | lt_prog_compiler_pic_F77='-KPIC' |
14160 | lt_prog_compiler_static_F77='-Bstatic' |
14161 | ;; |
14162 | |
14163 | linux*) |
14164 | case $cc_basename in |
14165 | icc* | ecc*) |
14166 | lt_prog_compiler_wl_F77='-Wl,' |
14167 | lt_prog_compiler_pic_F77='-KPIC' |
14168 | lt_prog_compiler_static_F77='-static' |
14169 | ;; |
14170 | pgcc* | pgf77* | pgf90* | pgf95*) |
14171 | # Portland Group compilers (*not* the Pentium gcc compiler, |
14172 | # which looks to be a dead project) |
14173 | lt_prog_compiler_wl_F77='-Wl,' |
14174 | lt_prog_compiler_pic_F77='-fpic' |
14175 | lt_prog_compiler_static_F77='-Bstatic' |
14176 | ;; |
14177 | ccc*) |
14178 | lt_prog_compiler_wl_F77='-Wl,' |
14179 | # All Alpha code is PIC. |
14180 | lt_prog_compiler_static_F77='-non_shared' |
14181 | ;; |
14182 | esac |
14183 | ;; |
14184 | |
14185 | osf3* | osf4* | osf5*) |
14186 | lt_prog_compiler_wl_F77='-Wl,' |
14187 | # All OSF/1 code is PIC. |
14188 | lt_prog_compiler_static_F77='-non_shared' |
14189 | ;; |
14190 | |
14191 | solaris*) |
14192 | lt_prog_compiler_pic_F77='-KPIC' |
14193 | lt_prog_compiler_static_F77='-Bstatic' |
14194 | case $cc_basename in |
14195 | f77* | f90* | f95*) |
14196 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
14197 | *) |
14198 | lt_prog_compiler_wl_F77='-Wl,';; |
14199 | esac |
14200 | ;; |
14201 | |
14202 | sunos4*) |
14203 | lt_prog_compiler_wl_F77='-Qoption ld ' |
14204 | lt_prog_compiler_pic_F77='-PIC' |
14205 | lt_prog_compiler_static_F77='-Bstatic' |
14206 | ;; |
14207 | |
14208 | sysv4 | sysv4.2uw2* | sysv4.3*) |
14209 | lt_prog_compiler_wl_F77='-Wl,' |
14210 | lt_prog_compiler_pic_F77='-KPIC' |
14211 | lt_prog_compiler_static_F77='-Bstatic' |
14212 | ;; |
14213 | |
14214 | sysv4*MP*) |
14215 | if test -d /usr/nec ;then |
14216 | lt_prog_compiler_pic_F77='-Kconform_pic' |
14217 | lt_prog_compiler_static_F77='-Bstatic' |
14218 | fi |
14219 | ;; |
14220 | |
14221 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
14222 | lt_prog_compiler_wl_F77='-Wl,' |
14223 | lt_prog_compiler_pic_F77='-KPIC' |
14224 | lt_prog_compiler_static_F77='-Bstatic' |
14225 | ;; |
14226 | |
14227 | unicos*) |
14228 | lt_prog_compiler_wl_F77='-Wl,' |
14229 | lt_prog_compiler_can_build_shared_F77=no |
14230 | ;; |
14231 | |
14232 | uts4*) |
14233 | lt_prog_compiler_pic_F77='-pic' |
14234 | lt_prog_compiler_static_F77='-Bstatic' |
14235 | ;; |
14236 | |
14237 | *) |
14238 | lt_prog_compiler_can_build_shared_F77=no |
14239 | ;; |
14240 | esac |
14241 | fi |
14242 | |
dd184caf |
14243 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
14244 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
d9898ee8 |
14245 | |
14246 | # |
14247 | # Check to make sure the PIC flag actually works. |
14248 | # |
14249 | if test -n "$lt_prog_compiler_pic_F77"; then |
14250 | |
dd184caf |
14251 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
14252 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
d9898ee8 |
14253 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
14254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14255 | else |
14256 | lt_prog_compiler_pic_works_F77=no |
14257 | ac_outfile=conftest.$ac_objext |
14258 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14259 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
14260 | # Insert the option either (1) after the last *FLAGS variable, or |
14261 | # (2) before a word containing "conftest.", or (3) at the end. |
14262 | # Note that $ac_compile itself does not contain backslashes and begins |
14263 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14264 | # The option is referenced via a variable to avoid confusing sed. |
14265 | lt_compile=`echo "$ac_compile" | $SED \ |
14266 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14267 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14268 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
14269 | (eval echo "\"\$as_me:14269: $lt_compile\"" >&5) |
d9898ee8 |
14270 | (eval "$lt_compile" 2>conftest.err) |
14271 | ac_status=$? |
14272 | cat conftest.err >&5 |
dd184caf |
14273 | echo "$as_me:14273: \$? = $ac_status" >&5 |
d9898ee8 |
14274 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14275 | # The compiler can only warn and ignore the option if not recognized |
14276 | # So say no if there are warnings other than the usual output. |
14277 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
14278 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14279 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
14280 | lt_prog_compiler_pic_works_F77=yes |
14281 | fi |
14282 | fi |
14283 | $rm conftest* |
14284 | |
14285 | fi |
dd184caf |
14286 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
14287 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
d9898ee8 |
14288 | |
14289 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
14290 | case $lt_prog_compiler_pic_F77 in |
14291 | "" | " "*) ;; |
14292 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
14293 | esac |
14294 | else |
14295 | lt_prog_compiler_pic_F77= |
14296 | lt_prog_compiler_can_build_shared_F77=no |
14297 | fi |
14298 | |
14299 | fi |
14300 | case $host_os in |
14301 | # For platforms which do not support PIC, -DPIC is meaningless: |
14302 | *djgpp*) |
14303 | lt_prog_compiler_pic_F77= |
14304 | ;; |
14305 | *) |
14306 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
14307 | ;; |
14308 | esac |
14309 | |
14310 | # |
14311 | # Check to make sure the static flag actually works. |
14312 | # |
14313 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
dd184caf |
14314 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
14315 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
14316 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
14317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14318 | else |
14319 | lt_prog_compiler_static_works_F77=no |
14320 | save_LDFLAGS="$LDFLAGS" |
14321 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
14322 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
14323 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
14324 | # The linker can only warn and ignore the option if not recognized |
14325 | # So say no if there are warnings |
14326 | if test -s conftest.err; then |
14327 | # Append any errors to the config.log. |
14328 | cat conftest.err 1>&5 |
14329 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
14330 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14331 | if diff conftest.exp conftest.er2 >/dev/null; then |
14332 | lt_prog_compiler_static_works_F77=yes |
14333 | fi |
14334 | else |
14335 | lt_prog_compiler_static_works_F77=yes |
14336 | fi |
14337 | fi |
14338 | $rm conftest* |
14339 | LDFLAGS="$save_LDFLAGS" |
14340 | |
14341 | fi |
dd184caf |
14342 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
14343 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
d9898ee8 |
14344 | |
14345 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
14346 | : |
14347 | else |
14348 | lt_prog_compiler_static_F77= |
14349 | fi |
14350 | |
14351 | |
dd184caf |
14352 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14353 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
14354 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
14355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14356 | else |
14357 | lt_cv_prog_compiler_c_o_F77=no |
14358 | $rm -r conftest 2>/dev/null |
14359 | mkdir conftest |
14360 | cd conftest |
14361 | mkdir out |
14362 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14363 | |
14364 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
14365 | # Insert the option either (1) after the last *FLAGS variable, or |
14366 | # (2) before a word containing "conftest.", or (3) at the end. |
14367 | # Note that $ac_compile itself does not contain backslashes and begins |
14368 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14369 | lt_compile=`echo "$ac_compile" | $SED \ |
14370 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14371 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14372 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
14373 | (eval echo "\"\$as_me:14373: $lt_compile\"" >&5) |
d9898ee8 |
14374 | (eval "$lt_compile" 2>out/conftest.err) |
14375 | ac_status=$? |
14376 | cat out/conftest.err >&5 |
dd184caf |
14377 | echo "$as_me:14377: \$? = $ac_status" >&5 |
d9898ee8 |
14378 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14379 | then |
14380 | # The compiler can only warn and ignore the option if not recognized |
14381 | # So say no if there are warnings |
14382 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
14383 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14384 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
14385 | lt_cv_prog_compiler_c_o_F77=yes |
14386 | fi |
14387 | fi |
14388 | chmod u+w . 2>&5 |
14389 | $rm conftest* |
14390 | # SGI C++ compiler will create directory out/ii_files/ for |
14391 | # template instantiation |
14392 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
14393 | $rm out/* && rmdir out |
14394 | cd .. |
14395 | rmdir conftest |
14396 | $rm conftest* |
14397 | |
14398 | fi |
dd184caf |
14399 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
14400 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
d9898ee8 |
14401 | |
14402 | |
14403 | hard_links="nottested" |
14404 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
14405 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
14406 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
14407 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
14408 | hard_links=yes |
14409 | $rm conftest* |
14410 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14411 | touch conftest.a |
14412 | ln conftest.a conftest.b 2>&5 || hard_links=no |
14413 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
14414 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
14415 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
14416 | if test "$hard_links" = no; then |
14417 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14418 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
14419 | need_locks=warn |
14420 | fi |
14421 | else |
14422 | need_locks=no |
14423 | fi |
14424 | |
dd184caf |
14425 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14426 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
14427 | |
14428 | runpath_var= |
14429 | allow_undefined_flag_F77= |
14430 | enable_shared_with_static_runtimes_F77=no |
14431 | archive_cmds_F77= |
14432 | archive_expsym_cmds_F77= |
14433 | old_archive_From_new_cmds_F77= |
14434 | old_archive_from_expsyms_cmds_F77= |
14435 | export_dynamic_flag_spec_F77= |
14436 | whole_archive_flag_spec_F77= |
14437 | thread_safe_flag_spec_F77= |
14438 | hardcode_libdir_flag_spec_F77= |
14439 | hardcode_libdir_flag_spec_ld_F77= |
14440 | hardcode_libdir_separator_F77= |
14441 | hardcode_direct_F77=no |
14442 | hardcode_minus_L_F77=no |
14443 | hardcode_shlibpath_var_F77=unsupported |
14444 | link_all_deplibs_F77=unknown |
14445 | hardcode_automatic_F77=no |
14446 | module_cmds_F77= |
14447 | module_expsym_cmds_F77= |
14448 | always_export_symbols_F77=no |
14449 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
14450 | # include_expsyms should be a list of space-separated symbols to be *always* |
14451 | # included in the symbol list |
14452 | include_expsyms_F77= |
14453 | # exclude_expsyms can be an extended regexp of symbols to exclude |
14454 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
14455 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
14456 | # as well as any symbol that contains `d'. |
14457 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
14458 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14459 | # platforms (ab)use it in PIC code, but their linkers get confused if |
14460 | # the symbol is explicitly referenced. Since portable code cannot |
14461 | # rely on this symbol name, it's probably fine to never include it in |
14462 | # preloaded symbol tables. |
14463 | extract_expsyms_cmds= |
14464 | # Just being paranoid about ensuring that cc_basename is set. |
14465 | for cc_temp in $compiler""; do |
14466 | case $cc_temp in |
14467 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
14468 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
14469 | \-*) ;; |
14470 | *) break;; |
14471 | esac |
14472 | done |
14473 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
14474 | |
14475 | case $host_os in |
14476 | cygwin* | mingw* | pw32*) |
14477 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14478 | # When not using gcc, we currently assume that we are using |
14479 | # Microsoft Visual C++. |
14480 | if test "$GCC" != yes; then |
14481 | with_gnu_ld=no |
14482 | fi |
14483 | ;; |
14484 | interix*) |
14485 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
14486 | with_gnu_ld=yes |
14487 | ;; |
14488 | openbsd*) |
14489 | with_gnu_ld=no |
14490 | ;; |
14491 | esac |
14492 | |
14493 | ld_shlibs_F77=yes |
14494 | if test "$with_gnu_ld" = yes; then |
14495 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14496 | wlarc='${wl}' |
14497 | |
14498 | # Set some defaults for GNU ld with shared library support. These |
14499 | # are reset later if shared libraries are not supported. Putting them |
14500 | # here allows them to be overridden if necessary. |
14501 | runpath_var=LD_RUN_PATH |
14502 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
14503 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
14504 | # ancient GNU ld didn't support --whole-archive et. al. |
14505 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
14506 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
14507 | else |
14508 | whole_archive_flag_spec_F77= |
14509 | fi |
14510 | supports_anon_versioning=no |
14511 | case `$LD -v 2>/dev/null` in |
14512 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14513 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
14514 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
14515 | *\ 2.11.*) ;; # other 2.11 versions |
14516 | *) supports_anon_versioning=yes ;; |
14517 | esac |
14518 | |
14519 | # See if GNU ld supports shared libraries. |
14520 | case $host_os in |
14521 | aix3* | aix4* | aix5*) |
14522 | # On AIX/PPC, the GNU linker is very broken |
14523 | if test "$host_cpu" != ia64; then |
14524 | ld_shlibs_F77=no |
14525 | cat <<EOF 1>&2 |
14526 | |
14527 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
14528 | *** to be unable to reliably create shared libraries on AIX. |
14529 | *** Therefore, libtool is disabling shared libraries support. If you |
14530 | *** really care for shared libraries, you may want to modify your PATH |
14531 | *** so that a non-GNU linker is found, and then restart. |
14532 | |
14533 | EOF |
14534 | fi |
14535 | ;; |
14536 | |
14537 | amigaos*) |
14538 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
14539 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14540 | hardcode_minus_L_F77=yes |
14541 | |
14542 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
14543 | # that the semantics of dynamic libraries on AmigaOS, at least up |
14544 | # to version 4, is to share data among multiple programs linked |
14545 | # with the same dynamic library. Since this doesn't match the |
14546 | # behavior of shared libraries on other platforms, we can't use |
14547 | # them. |
14548 | ld_shlibs_F77=no |
14549 | ;; |
14550 | |
14551 | beos*) |
14552 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14553 | allow_undefined_flag_F77=unsupported |
14554 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
14555 | # support --undefined. This deserves some investigation. FIXME |
14556 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14557 | else |
14558 | ld_shlibs_F77=no |
14559 | fi |
14560 | ;; |
14561 | |
14562 | cygwin* | mingw* | pw32*) |
14563 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
14564 | # as there is no search path for DLLs. |
14565 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14566 | allow_undefined_flag_F77=unsupported |
14567 | always_export_symbols_F77=no |
14568 | enable_shared_with_static_runtimes_F77=yes |
14569 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
14570 | |
14571 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
14572 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14573 | # If the export-symbols file already is a .def file (1st line |
14574 | # is EXPORTS), use it as is; otherwise, prepend... |
14575 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
14576 | cp $export_symbols $output_objdir/$soname.def; |
14577 | else |
14578 | echo EXPORTS > $output_objdir/$soname.def; |
14579 | cat $export_symbols >> $output_objdir/$soname.def; |
14580 | fi~ |
14581 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14582 | else |
14583 | ld_shlibs_F77=no |
14584 | fi |
14585 | ;; |
14586 | |
14587 | interix3*) |
14588 | hardcode_direct_F77=no |
14589 | hardcode_shlibpath_var_F77=no |
14590 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14591 | export_dynamic_flag_spec_F77='${wl}-E' |
14592 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
14593 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
14594 | # default) and relocated if they conflict, which is a slow very memory |
14595 | # consuming and fragmenting process. To avoid this, we pick a random, |
14596 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
14597 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
14598 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
14599 | archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
14600 | ;; |
14601 | |
14602 | linux*) |
14603 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14604 | tmp_addflag= |
14605 | case $cc_basename,$host_cpu in |
14606 | pgcc*) # Portland Group C compiler |
14607 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
14608 | tmp_addflag=' $pic_flag' |
14609 | ;; |
14610 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
14611 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
14612 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14613 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
14614 | tmp_addflag=' -i_dynamic' ;; |
14615 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
14616 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
14617 | ifc* | ifort*) # Intel Fortran compiler |
14618 | tmp_addflag=' -nofor_main' ;; |
14619 | esac |
14620 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14621 | |
14622 | if test $supports_anon_versioning = yes; then |
14623 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
14624 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
14625 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
14626 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
14627 | fi |
14628 | else |
14629 | ld_shlibs_F77=no |
14630 | fi |
14631 | ;; |
14632 | |
14633 | netbsd*) |
14634 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14635 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
14636 | wlarc= |
14637 | else |
14638 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14639 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14640 | fi |
14641 | ;; |
14642 | |
14643 | solaris*) |
14644 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
14645 | ld_shlibs_F77=no |
14646 | cat <<EOF 1>&2 |
14647 | |
14648 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
14649 | *** create shared libraries on Solaris systems. Therefore, libtool |
14650 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14651 | *** binutils to release 2.9.1 or newer. Another option is to modify |
14652 | *** your PATH or compiler configuration so that the native linker is |
14653 | *** used, and then restart. |
14654 | |
14655 | EOF |
14656 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14657 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14658 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14659 | else |
14660 | ld_shlibs_F77=no |
14661 | fi |
14662 | ;; |
14663 | |
14664 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
14665 | case `$LD -v 2>&1` in |
14666 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
14667 | ld_shlibs_F77=no |
14668 | cat <<_LT_EOF 1>&2 |
14669 | |
14670 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
14671 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
14672 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14673 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
14674 | *** your PATH or compiler configuration so that the native linker is |
14675 | *** used, and then restart. |
14676 | |
14677 | _LT_EOF |
14678 | ;; |
14679 | *) |
14680 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14681 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
14682 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
14683 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
14684 | else |
14685 | ld_shlibs_F77=no |
14686 | fi |
14687 | ;; |
14688 | esac |
14689 | ;; |
14690 | |
14691 | sunos4*) |
14692 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14693 | wlarc= |
14694 | hardcode_direct_F77=yes |
14695 | hardcode_shlibpath_var_F77=no |
14696 | ;; |
14697 | |
14698 | *) |
14699 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14700 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14701 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14702 | else |
14703 | ld_shlibs_F77=no |
14704 | fi |
14705 | ;; |
14706 | esac |
14707 | |
14708 | if test "$ld_shlibs_F77" = no; then |
14709 | runpath_var= |
14710 | hardcode_libdir_flag_spec_F77= |
14711 | export_dynamic_flag_spec_F77= |
14712 | whole_archive_flag_spec_F77= |
14713 | fi |
14714 | else |
14715 | # PORTME fill in a description of your system's linker (not GNU ld) |
14716 | case $host_os in |
14717 | aix3*) |
14718 | allow_undefined_flag_F77=unsupported |
14719 | always_export_symbols_F77=yes |
14720 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
14721 | # Note: this linker hardcodes the directories in LIBPATH if there |
14722 | # are no directories specified by -L. |
14723 | hardcode_minus_L_F77=yes |
14724 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
14725 | # Neither direct hardcoding nor static linking is supported with a |
14726 | # broken collect2. |
14727 | hardcode_direct_F77=unsupported |
14728 | fi |
14729 | ;; |
14730 | |
14731 | aix4* | aix5*) |
14732 | if test "$host_cpu" = ia64; then |
14733 | # On IA64, the linker does run time linking by default, so we don't |
14734 | # have to do anything special. |
14735 | aix_use_runtimelinking=no |
14736 | exp_sym_flag='-Bexport' |
14737 | no_entry_flag="" |
14738 | else |
14739 | # If we're using GNU nm, then we don't want the "-C" option. |
14740 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
14741 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
14742 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
14743 | else |
14744 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
14745 | fi |
14746 | aix_use_runtimelinking=no |
14747 | |
14748 | # Test if we are trying to use run time linking or normal |
14749 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
14750 | # need to do runtime linking. |
14751 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
14752 | for ld_flag in $LDFLAGS; do |
14753 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
14754 | aix_use_runtimelinking=yes |
14755 | break |
14756 | fi |
14757 | done |
14758 | ;; |
14759 | esac |
14760 | |
14761 | exp_sym_flag='-bexport' |
14762 | no_entry_flag='-bnoentry' |
14763 | fi |
14764 | |
14765 | # When large executables or shared objects are built, AIX ld can |
14766 | # have problems creating the table of contents. If linking a library |
14767 | # or program results in "error TOC overflow" add -mminimal-toc to |
14768 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
14769 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
14770 | |
14771 | archive_cmds_F77='' |
14772 | hardcode_direct_F77=yes |
14773 | hardcode_libdir_separator_F77=':' |
14774 | link_all_deplibs_F77=yes |
14775 | |
14776 | if test "$GCC" = yes; then |
14777 | case $host_os in aix4.[012]|aix4.[012].*) |
14778 | # We only want to do this on AIX 4.2 and lower, the check |
14779 | # below for broken collect2 doesn't work under 4.3+ |
14780 | collect2name=`${CC} -print-prog-name=collect2` |
14781 | if test -f "$collect2name" && \ |
14782 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
14783 | then |
14784 | # We have reworked collect2 |
14785 | hardcode_direct_F77=yes |
14786 | else |
14787 | # We have old collect2 |
14788 | hardcode_direct_F77=unsupported |
14789 | # It fails to find uninstalled libraries when the uninstalled |
14790 | # path is not listed in the libpath. Setting hardcode_minus_L |
14791 | # to unsupported forces relinking |
14792 | hardcode_minus_L_F77=yes |
14793 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14794 | hardcode_libdir_separator_F77= |
14795 | fi |
14796 | ;; |
14797 | esac |
14798 | shared_flag='-shared' |
14799 | if test "$aix_use_runtimelinking" = yes; then |
14800 | shared_flag="$shared_flag "'${wl}-G' |
14801 | fi |
14802 | else |
14803 | # not using gcc |
14804 | if test "$host_cpu" = ia64; then |
14805 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
14806 | # chokes on -Wl,-G. The following line is correct: |
14807 | shared_flag='-G' |
14808 | else |
14809 | if test "$aix_use_runtimelinking" = yes; then |
14810 | shared_flag='${wl}-G' |
14811 | else |
14812 | shared_flag='${wl}-bM:SRE' |
14813 | fi |
14814 | fi |
14815 | fi |
14816 | |
14817 | # It seems that -bexpall does not export symbols beginning with |
14818 | # underscore (_), so it is better to generate a list of symbols to export. |
14819 | always_export_symbols_F77=yes |
14820 | if test "$aix_use_runtimelinking" = yes; then |
14821 | # Warning - without using the other runtime loading flags (-brtl), |
14822 | # -berok will link without error, but may produce a broken library. |
14823 | allow_undefined_flag_F77='-berok' |
14824 | # Determine the default libpath from the value encoded in an empty executable. |
14825 | cat >conftest.$ac_ext <<_ACEOF |
14826 | program main |
14827 | |
14828 | end |
14829 | _ACEOF |
14830 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
14831 | if { (ac_try="$ac_link" |
14832 | case "(($ac_try" in |
14833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14834 | *) ac_try_echo=$ac_try;; |
14835 | esac |
14836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14837 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14838 | ac_status=$? |
14839 | grep -v '^ *+' conftest.er1 >conftest.err |
14840 | rm -f conftest.er1 |
14841 | cat conftest.err >&5 |
14842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
14843 | (exit $ac_status); } && { |
14844 | test -z "$ac_f77_werror_flag" || |
14845 | test ! -s conftest.err |
14846 | } && test -s conftest$ac_exeext && |
14847 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14848 | |
14849 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14850 | }'` |
14851 | # Check for a 64-bit object if we didn't find anything. |
14852 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14853 | }'`; fi |
14854 | else |
14855 | echo "$as_me: failed program was:" >&5 |
14856 | sed 's/^/| /' conftest.$ac_ext >&5 |
14857 | |
dd184caf |
14858 | |
d9898ee8 |
14859 | fi |
dd184caf |
14860 | |
14861 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14862 | conftest$ac_exeext conftest.$ac_ext |
14863 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14864 | |
14865 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14866 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
14867 | else |
14868 | if test "$host_cpu" = ia64; then |
14869 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
14870 | allow_undefined_flag_F77="-z nodefs" |
14871 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
14872 | else |
14873 | # Determine the default libpath from the value encoded in an empty executable. |
14874 | cat >conftest.$ac_ext <<_ACEOF |
14875 | program main |
14876 | |
14877 | end |
14878 | _ACEOF |
14879 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
14880 | if { (ac_try="$ac_link" |
14881 | case "(($ac_try" in |
14882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14883 | *) ac_try_echo=$ac_try;; |
14884 | esac |
14885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14886 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14887 | ac_status=$? |
14888 | grep -v '^ *+' conftest.er1 >conftest.err |
14889 | rm -f conftest.er1 |
14890 | cat conftest.err >&5 |
14891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
14892 | (exit $ac_status); } && { |
14893 | test -z "$ac_f77_werror_flag" || |
14894 | test ! -s conftest.err |
14895 | } && test -s conftest$ac_exeext && |
14896 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14897 | |
14898 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14899 | }'` |
14900 | # Check for a 64-bit object if we didn't find anything. |
14901 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14902 | }'`; fi |
14903 | else |
14904 | echo "$as_me: failed program was:" >&5 |
14905 | sed 's/^/| /' conftest.$ac_ext >&5 |
14906 | |
dd184caf |
14907 | |
d9898ee8 |
14908 | fi |
dd184caf |
14909 | |
14910 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14911 | conftest$ac_exeext conftest.$ac_ext |
14912 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14913 | |
14914 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14915 | # Warning - without using the other run time loading flags, |
14916 | # -berok will link without error, but may produce a broken library. |
14917 | no_undefined_flag_F77=' ${wl}-bernotok' |
14918 | allow_undefined_flag_F77=' ${wl}-berok' |
14919 | # Exported symbols can be pulled into shared objects from archives |
14920 | whole_archive_flag_spec_F77='$convenience' |
14921 | archive_cmds_need_lc_F77=yes |
14922 | # This is similar to how AIX traditionally builds its shared libraries. |
14923 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
14924 | fi |
14925 | fi |
14926 | ;; |
14927 | |
14928 | amigaos*) |
14929 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
14930 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14931 | hardcode_minus_L_F77=yes |
14932 | # see comment about different semantics on the GNU ld section |
14933 | ld_shlibs_F77=no |
14934 | ;; |
14935 | |
14936 | bsdi[45]*) |
14937 | export_dynamic_flag_spec_F77=-rdynamic |
14938 | ;; |
14939 | |
14940 | cygwin* | mingw* | pw32*) |
14941 | # When not using gcc, we currently assume that we are using |
14942 | # Microsoft Visual C++. |
14943 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
14944 | # no search path for DLLs. |
14945 | hardcode_libdir_flag_spec_F77=' ' |
14946 | allow_undefined_flag_F77=unsupported |
14947 | # Tell ltmain to make .lib files, not .a files. |
14948 | libext=lib |
14949 | # Tell ltmain to make .dll files, not .so files. |
14950 | shrext_cmds=".dll" |
14951 | # FIXME: Setting linknames here is a bad hack. |
14952 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14953 | # The linker will automatically build a .lib file if we build a DLL. |
14954 | old_archive_From_new_cmds_F77='true' |
14955 | # FIXME: Should let the user specify the lib program. |
14956 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
14957 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
14958 | enable_shared_with_static_runtimes_F77=yes |
14959 | ;; |
14960 | |
14961 | darwin* | rhapsody*) |
14962 | case $host_os in |
14963 | rhapsody* | darwin1.[012]) |
14964 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
14965 | ;; |
14966 | *) # Darwin 1.3 on |
14967 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14968 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14969 | else |
14970 | case ${MACOSX_DEPLOYMENT_TARGET} in |
14971 | 10.[012]) |
14972 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14973 | ;; |
14974 | 10.*) |
14975 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
14976 | ;; |
14977 | esac |
14978 | fi |
14979 | ;; |
14980 | esac |
14981 | archive_cmds_need_lc_F77=no |
14982 | hardcode_direct_F77=no |
14983 | hardcode_automatic_F77=yes |
14984 | hardcode_shlibpath_var_F77=unsupported |
14985 | whole_archive_flag_spec_F77='' |
14986 | link_all_deplibs_F77=yes |
14987 | if test "$GCC" = yes ; then |
14988 | output_verbose_link_cmd='echo' |
14989 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14990 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14991 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14992 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
14993 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
14994 | else |
14995 | case $cc_basename in |
14996 | xlc*) |
14997 | output_verbose_link_cmd='echo' |
14998 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
14999 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
15000 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
15001 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
15002 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
15003 | ;; |
15004 | *) |
15005 | ld_shlibs_F77=no |
15006 | ;; |
15007 | esac |
15008 | fi |
15009 | ;; |
15010 | |
15011 | dgux*) |
15012 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15013 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15014 | hardcode_shlibpath_var_F77=no |
15015 | ;; |
15016 | |
15017 | freebsd1*) |
15018 | ld_shlibs_F77=no |
15019 | ;; |
15020 | |
15021 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
15022 | # support. Future versions do this automatically, but an explicit c++rt0.o |
15023 | # does not break anything, and helps significantly (at the cost of a little |
15024 | # extra space). |
15025 | freebsd2.2*) |
15026 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
15027 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15028 | hardcode_direct_F77=yes |
15029 | hardcode_shlibpath_var_F77=no |
15030 | ;; |
15031 | |
15032 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
15033 | freebsd2*) |
15034 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
15035 | hardcode_direct_F77=yes |
15036 | hardcode_minus_L_F77=yes |
15037 | hardcode_shlibpath_var_F77=no |
15038 | ;; |
15039 | |
15040 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
15041 | freebsd* | kfreebsd*-gnu | dragonfly*) |
15042 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
15043 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15044 | hardcode_direct_F77=yes |
15045 | hardcode_shlibpath_var_F77=no |
15046 | ;; |
15047 | |
15048 | hpux9*) |
15049 | if test "$GCC" = yes; then |
15050 | archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
15051 | else |
15052 | archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
15053 | fi |
15054 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
15055 | hardcode_libdir_separator_F77=: |
15056 | hardcode_direct_F77=yes |
15057 | |
15058 | # hardcode_minus_L: Not really in the search PATH, |
15059 | # but as the default location of the library. |
15060 | hardcode_minus_L_F77=yes |
15061 | export_dynamic_flag_spec_F77='${wl}-E' |
15062 | ;; |
15063 | |
15064 | hpux10*) |
15065 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
15066 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
15067 | else |
15068 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
15069 | fi |
15070 | if test "$with_gnu_ld" = no; then |
15071 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
15072 | hardcode_libdir_separator_F77=: |
15073 | |
15074 | hardcode_direct_F77=yes |
15075 | export_dynamic_flag_spec_F77='${wl}-E' |
15076 | |
15077 | # hardcode_minus_L: Not really in the search PATH, |
15078 | # but as the default location of the library. |
15079 | hardcode_minus_L_F77=yes |
15080 | fi |
15081 | ;; |
15082 | |
15083 | hpux11*) |
15084 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
15085 | case $host_cpu in |
15086 | hppa*64*) |
15087 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15088 | ;; |
15089 | ia64*) |
15090 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
15091 | ;; |
15092 | *) |
15093 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
15094 | ;; |
15095 | esac |
15096 | else |
15097 | case $host_cpu in |
15098 | hppa*64*) |
15099 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15100 | ;; |
15101 | ia64*) |
15102 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
15103 | ;; |
15104 | *) |
15105 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
15106 | ;; |
15107 | esac |
15108 | fi |
15109 | if test "$with_gnu_ld" = no; then |
15110 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
15111 | hardcode_libdir_separator_F77=: |
15112 | |
15113 | case $host_cpu in |
15114 | hppa*64*|ia64*) |
15115 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
15116 | hardcode_direct_F77=no |
15117 | hardcode_shlibpath_var_F77=no |
15118 | ;; |
15119 | *) |
15120 | hardcode_direct_F77=yes |
15121 | export_dynamic_flag_spec_F77='${wl}-E' |
15122 | |
15123 | # hardcode_minus_L: Not really in the search PATH, |
15124 | # but as the default location of the library. |
15125 | hardcode_minus_L_F77=yes |
15126 | ;; |
15127 | esac |
15128 | fi |
15129 | ;; |
15130 | |
15131 | irix5* | irix6* | nonstopux*) |
15132 | if test "$GCC" = yes; then |
15133 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
15134 | else |
15135 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
15136 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
15137 | fi |
15138 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15139 | hardcode_libdir_separator_F77=: |
15140 | link_all_deplibs_F77=yes |
15141 | ;; |
15142 | |
15143 | netbsd*) |
15144 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15145 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
15146 | else |
15147 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
15148 | fi |
15149 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15150 | hardcode_direct_F77=yes |
15151 | hardcode_shlibpath_var_F77=no |
15152 | ;; |
15153 | |
15154 | newsos6) |
15155 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15156 | hardcode_direct_F77=yes |
15157 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15158 | hardcode_libdir_separator_F77=: |
15159 | hardcode_shlibpath_var_F77=no |
15160 | ;; |
15161 | |
15162 | openbsd*) |
15163 | hardcode_direct_F77=yes |
15164 | hardcode_shlibpath_var_F77=no |
15165 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15166 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
15167 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
15168 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
15169 | export_dynamic_flag_spec_F77='${wl}-E' |
15170 | else |
15171 | case $host_os in |
15172 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
15173 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
15174 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15175 | ;; |
15176 | *) |
15177 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
15178 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
15179 | ;; |
15180 | esac |
15181 | fi |
15182 | ;; |
15183 | |
15184 | os2*) |
15185 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15186 | hardcode_minus_L_F77=yes |
15187 | allow_undefined_flag_F77=unsupported |
15188 | archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
15189 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
15190 | ;; |
15191 | |
15192 | osf3*) |
15193 | if test "$GCC" = yes; then |
15194 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15195 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
15196 | else |
15197 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15198 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
15199 | fi |
15200 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15201 | hardcode_libdir_separator_F77=: |
15202 | ;; |
15203 | |
15204 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
15205 | if test "$GCC" = yes; then |
15206 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15207 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
15208 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15209 | else |
15210 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15211 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
15212 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
15213 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
15214 | |
15215 | # Both c and cxx compiler support -rpath directly |
15216 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
15217 | fi |
15218 | hardcode_libdir_separator_F77=: |
15219 | ;; |
15220 | |
15221 | solaris*) |
15222 | no_undefined_flag_F77=' -z text' |
15223 | if test "$GCC" = yes; then |
15224 | wlarc='${wl}' |
15225 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15226 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15227 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
15228 | else |
15229 | wlarc='' |
15230 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15231 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15232 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
15233 | fi |
15234 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15235 | hardcode_shlibpath_var_F77=no |
15236 | case $host_os in |
15237 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
15238 | *) |
15239 | # The compiler driver will combine linker options so we |
15240 | # cannot just pass the convience library names through |
15241 | # without $wl, iff we do not link with $LD. |
15242 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
15243 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
15244 | case $wlarc in |
15245 | '') |
15246 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
15247 | *) |
15248 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
15249 | esac ;; |
15250 | esac |
15251 | link_all_deplibs_F77=yes |
15252 | ;; |
15253 | |
15254 | sunos4*) |
15255 | if test "x$host_vendor" = xsequent; then |
15256 | # Use $CC to link under sequent, because it throws in some extra .o |
15257 | # files that make .init and .fini sections work. |
15258 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
15259 | else |
15260 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
15261 | fi |
15262 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15263 | hardcode_direct_F77=yes |
15264 | hardcode_minus_L_F77=yes |
15265 | hardcode_shlibpath_var_F77=no |
15266 | ;; |
15267 | |
15268 | sysv4) |
15269 | case $host_vendor in |
15270 | sni) |
15271 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15272 | hardcode_direct_F77=yes # is this really true??? |
15273 | ;; |
15274 | siemens) |
15275 | ## LD is ld it makes a PLAMLIB |
15276 | ## CC just makes a GrossModule. |
15277 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
15278 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
15279 | hardcode_direct_F77=no |
15280 | ;; |
15281 | motorola) |
15282 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15283 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
15284 | ;; |
15285 | esac |
15286 | runpath_var='LD_RUN_PATH' |
15287 | hardcode_shlibpath_var_F77=no |
15288 | ;; |
15289 | |
15290 | sysv4.3*) |
15291 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15292 | hardcode_shlibpath_var_F77=no |
15293 | export_dynamic_flag_spec_F77='-Bexport' |
15294 | ;; |
15295 | |
15296 | sysv4*MP*) |
15297 | if test -d /usr/nec; then |
15298 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15299 | hardcode_shlibpath_var_F77=no |
15300 | runpath_var=LD_RUN_PATH |
15301 | hardcode_runpath_var=yes |
15302 | ld_shlibs_F77=yes |
15303 | fi |
15304 | ;; |
15305 | |
15306 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
15307 | no_undefined_flag_F77='${wl}-z,text' |
15308 | archive_cmds_need_lc_F77=no |
15309 | hardcode_shlibpath_var_F77=no |
15310 | runpath_var='LD_RUN_PATH' |
15311 | |
15312 | if test "$GCC" = yes; then |
15313 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15314 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15315 | else |
15316 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15317 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15318 | fi |
15319 | ;; |
15320 | |
15321 | sysv5* | sco3.2v5* | sco5v6*) |
15322 | # Note: We can NOT use -z defs as we might desire, because we do not |
15323 | # link with -lc, and that would cause any symbols used from libc to |
15324 | # always be unresolved, which means just about no library would |
15325 | # ever link correctly. If we're not using GNU ld we use -z text |
15326 | # though, which does catch some bad symbols but isn't as heavy-handed |
15327 | # as -z defs. |
15328 | no_undefined_flag_F77='${wl}-z,text' |
15329 | allow_undefined_flag_F77='${wl}-z,nodefs' |
15330 | archive_cmds_need_lc_F77=no |
15331 | hardcode_shlibpath_var_F77=no |
15332 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
15333 | hardcode_libdir_separator_F77=':' |
15334 | link_all_deplibs_F77=yes |
15335 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
15336 | runpath_var='LD_RUN_PATH' |
15337 | |
15338 | if test "$GCC" = yes; then |
15339 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15340 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15341 | else |
15342 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15343 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15344 | fi |
15345 | ;; |
15346 | |
15347 | uts4*) |
15348 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15349 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15350 | hardcode_shlibpath_var_F77=no |
15351 | ;; |
15352 | |
15353 | *) |
15354 | ld_shlibs_F77=no |
15355 | ;; |
15356 | esac |
15357 | fi |
15358 | |
dd184caf |
15359 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
15360 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
d9898ee8 |
15361 | test "$ld_shlibs_F77" = no && can_build_shared=no |
15362 | |
15363 | # |
15364 | # Do we need to explicitly link libc? |
15365 | # |
15366 | case "x$archive_cmds_need_lc_F77" in |
15367 | x|xyes) |
15368 | # Assume -lc should be added |
15369 | archive_cmds_need_lc_F77=yes |
15370 | |
15371 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
15372 | case $archive_cmds_F77 in |
15373 | *'~'*) |
15374 | # FIXME: we may have to deal with multi-command sequences. |
15375 | ;; |
15376 | '$CC '*) |
15377 | # Test whether the compiler implicitly links with -lc since on some |
15378 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
15379 | # to ld, don't add -lc before -lgcc. |
dd184caf |
15380 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
15381 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
15382 | $rm conftest* |
15383 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15384 | |
15385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15386 | (eval $ac_compile) 2>&5 |
15387 | ac_status=$? |
15388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15389 | (exit $ac_status); } 2>conftest.err; then |
15390 | soname=conftest |
15391 | lib=conftest |
15392 | libobjs=conftest.$ac_objext |
15393 | deplibs= |
15394 | wl=$lt_prog_compiler_wl_F77 |
15395 | pic_flag=$lt_prog_compiler_pic_F77 |
15396 | compiler_flags=-v |
15397 | linker_flags=-v |
15398 | verstring= |
15399 | output_objdir=. |
15400 | libname=conftest |
15401 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
15402 | allow_undefined_flag_F77= |
15403 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
15404 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
15405 | ac_status=$? |
15406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15407 | (exit $ac_status); } |
15408 | then |
15409 | archive_cmds_need_lc_F77=no |
15410 | else |
15411 | archive_cmds_need_lc_F77=yes |
15412 | fi |
15413 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
15414 | else |
15415 | cat conftest.err 1>&5 |
15416 | fi |
15417 | $rm conftest* |
dd184caf |
15418 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
15419 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
d9898ee8 |
15420 | ;; |
15421 | esac |
15422 | fi |
15423 | ;; |
15424 | esac |
15425 | |
dd184caf |
15426 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
15427 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
15428 | library_names_spec= |
15429 | libname_spec='lib$name' |
15430 | soname_spec= |
15431 | shrext_cmds=".so" |
15432 | postinstall_cmds= |
15433 | postuninstall_cmds= |
15434 | finish_cmds= |
15435 | finish_eval= |
15436 | shlibpath_var= |
15437 | shlibpath_overrides_runpath=unknown |
15438 | version_type=none |
15439 | dynamic_linker="$host_os ld.so" |
15440 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
15441 | if test "$GCC" = yes; then |
15442 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15443 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
15444 | # if the path contains ";" then we assume it to be the separator |
15445 | # otherwise default to the standard path separator (i.e. ":") - it is |
15446 | # assumed that no part of a normal pathname contains ";" but that should |
15447 | # okay in the real world where ";" in dirpaths is itself problematic. |
15448 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15449 | else |
15450 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15451 | fi |
15452 | else |
15453 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
15454 | fi |
15455 | need_lib_prefix=unknown |
15456 | hardcode_into_libs=no |
15457 | |
15458 | # when you set need_version to no, make sure it does not cause -set_version |
15459 | # flags to be left without arguments |
15460 | need_version=unknown |
15461 | |
15462 | case $host_os in |
15463 | aix3*) |
15464 | version_type=linux |
15465 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
15466 | shlibpath_var=LIBPATH |
15467 | |
15468 | # AIX 3 has no versioning support, so we append a major version to the name. |
15469 | soname_spec='${libname}${release}${shared_ext}$major' |
15470 | ;; |
15471 | |
15472 | aix4* | aix5*) |
15473 | version_type=linux |
15474 | need_lib_prefix=no |
15475 | need_version=no |
15476 | hardcode_into_libs=yes |
15477 | if test "$host_cpu" = ia64; then |
15478 | # AIX 5 supports IA64 |
15479 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
15480 | shlibpath_var=LD_LIBRARY_PATH |
15481 | else |
15482 | # With GCC up to 2.95.x, collect2 would create an import file |
15483 | # for dependence libraries. The import file would start with |
15484 | # the line `#! .'. This would cause the generated library to |
15485 | # depend on `.', always an invalid library. This was fixed in |
15486 | # development snapshots of GCC prior to 3.0. |
15487 | case $host_os in |
15488 | aix4 | aix4.[01] | aix4.[01].*) |
15489 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
15490 | echo ' yes ' |
15491 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
15492 | : |
15493 | else |
15494 | can_build_shared=no |
15495 | fi |
15496 | ;; |
15497 | esac |
15498 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
15499 | # soname into executable. Probably we can add versioning support to |
15500 | # collect2, so additional links can be useful in future. |
15501 | if test "$aix_use_runtimelinking" = yes; then |
15502 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
15503 | # instead of lib<name>.a to let people know that these are not |
15504 | # typical AIX shared libraries. |
15505 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15506 | else |
15507 | # We preserve .a as extension for shared libraries through AIX4.2 |
15508 | # and later when we are not doing run time linking. |
15509 | library_names_spec='${libname}${release}.a $libname.a' |
15510 | soname_spec='${libname}${release}${shared_ext}$major' |
15511 | fi |
15512 | shlibpath_var=LIBPATH |
15513 | fi |
15514 | ;; |
15515 | |
15516 | amigaos*) |
15517 | library_names_spec='$libname.ixlibrary $libname.a' |
15518 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
15519 | 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' |
15520 | ;; |
15521 | |
15522 | beos*) |
15523 | library_names_spec='${libname}${shared_ext}' |
15524 | dynamic_linker="$host_os ld.so" |
15525 | shlibpath_var=LIBRARY_PATH |
15526 | ;; |
15527 | |
15528 | bsdi[45]*) |
15529 | version_type=linux |
15530 | need_version=no |
15531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15532 | soname_spec='${libname}${release}${shared_ext}$major' |
15533 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
15534 | shlibpath_var=LD_LIBRARY_PATH |
15535 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
15536 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
15537 | # the default ld.so.conf also contains /usr/contrib/lib and |
15538 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
15539 | # libtool to hard-code these into programs |
15540 | ;; |
15541 | |
15542 | cygwin* | mingw* | pw32*) |
15543 | version_type=windows |
15544 | shrext_cmds=".dll" |
15545 | need_version=no |
15546 | need_lib_prefix=no |
15547 | |
15548 | case $GCC,$host_os in |
15549 | yes,cygwin* | yes,mingw* | yes,pw32*) |
15550 | library_names_spec='$libname.dll.a' |
15551 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
15552 | postinstall_cmds='base_file=`basename \${file}`~ |
15553 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
15554 | dldir=$destdir/`dirname \$dlpath`~ |
15555 | test -d \$dldir || mkdir -p \$dldir~ |
15556 | $install_prog $dir/$dlname \$dldir/$dlname~ |
15557 | chmod a+x \$dldir/$dlname' |
15558 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
15559 | dlpath=$dir/\$dldll~ |
15560 | $rm \$dlpath' |
15561 | shlibpath_overrides_runpath=yes |
15562 | |
15563 | case $host_os in |
15564 | cygwin*) |
15565 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
15566 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15567 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
15568 | ;; |
15569 | mingw*) |
15570 | # MinGW DLLs use traditional 'lib' prefix |
15571 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15572 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15573 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
15574 | # It is most probably a Windows format PATH printed by |
15575 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
15576 | # path with ; separators, and with drive letters. We can handle the |
15577 | # drive letters (cygwin fileutils understands them), so leave them, |
15578 | # especially as we might pass files found there to a mingw objdump, |
15579 | # which wouldn't understand a cygwinified path. Ahh. |
15580 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15581 | else |
15582 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15583 | fi |
15584 | ;; |
15585 | pw32*) |
15586 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
15587 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15588 | ;; |
15589 | esac |
15590 | ;; |
15591 | |
15592 | *) |
15593 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
15594 | ;; |
15595 | esac |
15596 | dynamic_linker='Win32 ld.exe' |
15597 | # FIXME: first we should search . and the directory the executable is in |
15598 | shlibpath_var=PATH |
15599 | ;; |
15600 | |
15601 | darwin* | rhapsody*) |
15602 | dynamic_linker="$host_os dyld" |
15603 | version_type=darwin |
15604 | need_lib_prefix=no |
15605 | need_version=no |
15606 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
15607 | soname_spec='${libname}${release}${major}$shared_ext' |
15608 | shlibpath_overrides_runpath=yes |
15609 | shlibpath_var=DYLD_LIBRARY_PATH |
15610 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
15611 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
15612 | if test "$GCC" = yes; then |
15613 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
15614 | else |
15615 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
15616 | fi |
15617 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15618 | ;; |
15619 | |
15620 | dgux*) |
15621 | version_type=linux |
15622 | need_lib_prefix=no |
15623 | need_version=no |
15624 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
15625 | soname_spec='${libname}${release}${shared_ext}$major' |
15626 | shlibpath_var=LD_LIBRARY_PATH |
15627 | ;; |
15628 | |
15629 | freebsd1*) |
15630 | dynamic_linker=no |
15631 | ;; |
15632 | |
15633 | kfreebsd*-gnu) |
15634 | version_type=linux |
15635 | need_lib_prefix=no |
15636 | need_version=no |
15637 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15638 | soname_spec='${libname}${release}${shared_ext}$major' |
15639 | shlibpath_var=LD_LIBRARY_PATH |
15640 | shlibpath_overrides_runpath=no |
15641 | hardcode_into_libs=yes |
15642 | dynamic_linker='GNU ld.so' |
15643 | ;; |
15644 | |
15645 | freebsd* | dragonfly*) |
15646 | # DragonFly does not have aout. When/if they implement a new |
15647 | # versioning mechanism, adjust this. |
15648 | if test -x /usr/bin/objformat; then |
15649 | objformat=`/usr/bin/objformat` |
15650 | else |
15651 | case $host_os in |
15652 | freebsd[123]*) objformat=aout ;; |
15653 | *) objformat=elf ;; |
15654 | esac |
15655 | fi |
15656 | version_type=freebsd-$objformat |
15657 | case $version_type in |
15658 | freebsd-elf*) |
15659 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15660 | need_version=no |
15661 | need_lib_prefix=no |
15662 | ;; |
15663 | freebsd-*) |
15664 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
15665 | need_version=yes |
15666 | ;; |
15667 | esac |
15668 | shlibpath_var=LD_LIBRARY_PATH |
15669 | case $host_os in |
15670 | freebsd2*) |
15671 | shlibpath_overrides_runpath=yes |
15672 | ;; |
15673 | freebsd3.[01]* | freebsdelf3.[01]*) |
15674 | shlibpath_overrides_runpath=yes |
15675 | hardcode_into_libs=yes |
15676 | ;; |
15677 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
15678 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
15679 | shlibpath_overrides_runpath=no |
15680 | hardcode_into_libs=yes |
15681 | ;; |
15682 | freebsd*) # from 4.6 on |
15683 | shlibpath_overrides_runpath=yes |
15684 | hardcode_into_libs=yes |
15685 | ;; |
15686 | esac |
15687 | ;; |
15688 | |
15689 | gnu*) |
15690 | version_type=linux |
15691 | need_lib_prefix=no |
15692 | need_version=no |
15693 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
15694 | soname_spec='${libname}${release}${shared_ext}$major' |
15695 | shlibpath_var=LD_LIBRARY_PATH |
15696 | hardcode_into_libs=yes |
15697 | ;; |
15698 | |
15699 | hpux9* | hpux10* | hpux11*) |
15700 | # Give a soname corresponding to the major version so that dld.sl refuses to |
15701 | # link against other versions. |
15702 | version_type=sunos |
15703 | need_lib_prefix=no |
15704 | need_version=no |
15705 | case $host_cpu in |
15706 | ia64*) |
15707 | shrext_cmds='.so' |
15708 | hardcode_into_libs=yes |
15709 | dynamic_linker="$host_os dld.so" |
15710 | shlibpath_var=LD_LIBRARY_PATH |
15711 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15712 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15713 | soname_spec='${libname}${release}${shared_ext}$major' |
15714 | if test "X$HPUX_IA64_MODE" = X32; then |
15715 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
15716 | else |
15717 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
15718 | fi |
15719 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15720 | ;; |
15721 | hppa*64*) |
15722 | shrext_cmds='.sl' |
15723 | hardcode_into_libs=yes |
15724 | dynamic_linker="$host_os dld.sl" |
15725 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
15726 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15727 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15728 | soname_spec='${libname}${release}${shared_ext}$major' |
15729 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
15730 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15731 | ;; |
15732 | *) |
15733 | shrext_cmds='.sl' |
15734 | dynamic_linker="$host_os dld.sl" |
15735 | shlibpath_var=SHLIB_PATH |
15736 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
15737 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15738 | soname_spec='${libname}${release}${shared_ext}$major' |
15739 | ;; |
15740 | esac |
15741 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
15742 | postinstall_cmds='chmod 555 $lib' |
15743 | ;; |
15744 | |
15745 | interix3*) |
15746 | version_type=linux |
15747 | need_lib_prefix=no |
15748 | need_version=no |
15749 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15750 | soname_spec='${libname}${release}${shared_ext}$major' |
15751 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
15752 | shlibpath_var=LD_LIBRARY_PATH |
15753 | shlibpath_overrides_runpath=no |
15754 | hardcode_into_libs=yes |
15755 | ;; |
15756 | |
15757 | irix5* | irix6* | nonstopux*) |
15758 | case $host_os in |
15759 | nonstopux*) version_type=nonstopux ;; |
15760 | *) |
15761 | if test "$lt_cv_prog_gnu_ld" = yes; then |
15762 | version_type=linux |
15763 | else |
15764 | version_type=irix |
15765 | fi ;; |
15766 | esac |
15767 | need_lib_prefix=no |
15768 | need_version=no |
15769 | soname_spec='${libname}${release}${shared_ext}$major' |
15770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
15771 | case $host_os in |
15772 | irix5* | nonstopux*) |
15773 | libsuff= shlibsuff= |
15774 | ;; |
15775 | *) |
15776 | case $LD in # libtool.m4 will add one of these switches to LD |
15777 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
15778 | libsuff= shlibsuff= libmagic=32-bit;; |
15779 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
15780 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
15781 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
15782 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
15783 | *) libsuff= shlibsuff= libmagic=never-match;; |
15784 | esac |
15785 | ;; |
15786 | esac |
15787 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
15788 | shlibpath_overrides_runpath=no |
15789 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
15790 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
15791 | hardcode_into_libs=yes |
15792 | ;; |
15793 | |
15794 | # No shared lib support for Linux oldld, aout, or coff. |
15795 | linux*oldld* | linux*aout* | linux*coff*) |
15796 | dynamic_linker=no |
15797 | ;; |
15798 | |
15799 | # This must be Linux ELF. |
15800 | linux*) |
15801 | version_type=linux |
15802 | need_lib_prefix=no |
15803 | need_version=no |
15804 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15805 | soname_spec='${libname}${release}${shared_ext}$major' |
15806 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
15807 | shlibpath_var=LD_LIBRARY_PATH |
15808 | shlibpath_overrides_runpath=no |
15809 | # This implies no fast_install, which is unacceptable. |
15810 | # Some rework will be needed to allow for fast_install |
15811 | # before this can be enabled. |
15812 | hardcode_into_libs=yes |
15813 | |
15814 | # find out which ABI we are using |
15815 | libsuff= |
15816 | case "$host_cpu" in |
15817 | x86_64*|s390x*|powerpc64*) |
dd184caf |
15818 | echo '#line 15818 "configure"' > conftest.$ac_ext |
d9898ee8 |
15819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15820 | (eval $ac_compile) 2>&5 |
15821 | ac_status=$? |
15822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15823 | (exit $ac_status); }; then |
15824 | case `/usr/bin/file conftest.$ac_objext` in |
15825 | *64-bit*) |
15826 | libsuff=64 |
15827 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
15828 | ;; |
15829 | esac |
15830 | fi |
15831 | rm -rf conftest* |
15832 | ;; |
15833 | esac |
15834 | |
15835 | # Append ld.so.conf contents to the search path |
15836 | if test -f /etc/ld.so.conf; then |
dd184caf |
15837 | 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
15838 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
15839 | fi |
15840 | |
15841 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15842 | # powerpc, because MkLinux only supported shared libraries with the |
15843 | # GNU dynamic linker. Since this was broken with cross compilers, |
15844 | # most powerpc-linux boxes support dynamic linking these days and |
15845 | # people can always --disable-shared, the test was removed, and we |
15846 | # assume the GNU/Linux dynamic linker is in use. |
15847 | dynamic_linker='GNU/Linux ld.so' |
15848 | ;; |
15849 | |
15850 | knetbsd*-gnu) |
15851 | version_type=linux |
15852 | need_lib_prefix=no |
15853 | need_version=no |
15854 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15855 | soname_spec='${libname}${release}${shared_ext}$major' |
15856 | shlibpath_var=LD_LIBRARY_PATH |
15857 | shlibpath_overrides_runpath=no |
15858 | hardcode_into_libs=yes |
15859 | dynamic_linker='GNU ld.so' |
15860 | ;; |
15861 | |
15862 | netbsd*) |
15863 | version_type=sunos |
15864 | need_lib_prefix=no |
15865 | need_version=no |
15866 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15868 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15869 | dynamic_linker='NetBSD (a.out) ld.so' |
15870 | else |
15871 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15872 | soname_spec='${libname}${release}${shared_ext}$major' |
15873 | dynamic_linker='NetBSD ld.elf_so' |
15874 | fi |
15875 | shlibpath_var=LD_LIBRARY_PATH |
15876 | shlibpath_overrides_runpath=yes |
15877 | hardcode_into_libs=yes |
15878 | ;; |
15879 | |
15880 | newsos6) |
15881 | version_type=linux |
15882 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15883 | shlibpath_var=LD_LIBRARY_PATH |
15884 | shlibpath_overrides_runpath=yes |
15885 | ;; |
15886 | |
15887 | nto-qnx*) |
15888 | version_type=linux |
15889 | need_lib_prefix=no |
15890 | need_version=no |
15891 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15892 | soname_spec='${libname}${release}${shared_ext}$major' |
15893 | shlibpath_var=LD_LIBRARY_PATH |
15894 | shlibpath_overrides_runpath=yes |
15895 | ;; |
15896 | |
15897 | openbsd*) |
15898 | version_type=sunos |
15899 | sys_lib_dlsearch_path_spec="/usr/lib" |
15900 | need_lib_prefix=no |
15901 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
15902 | case $host_os in |
15903 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
15904 | *) need_version=no ;; |
15905 | esac |
15906 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15907 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15908 | shlibpath_var=LD_LIBRARY_PATH |
15909 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15910 | case $host_os in |
15911 | openbsd2.[89] | openbsd2.[89].*) |
15912 | shlibpath_overrides_runpath=no |
15913 | ;; |
15914 | *) |
15915 | shlibpath_overrides_runpath=yes |
15916 | ;; |
15917 | esac |
15918 | else |
15919 | shlibpath_overrides_runpath=yes |
15920 | fi |
15921 | ;; |
15922 | |
15923 | os2*) |
15924 | libname_spec='$name' |
15925 | shrext_cmds=".dll" |
15926 | need_lib_prefix=no |
15927 | library_names_spec='$libname${shared_ext} $libname.a' |
15928 | dynamic_linker='OS/2 ld.exe' |
15929 | shlibpath_var=LIBPATH |
15930 | ;; |
15931 | |
15932 | osf3* | osf4* | osf5*) |
15933 | version_type=osf |
15934 | need_lib_prefix=no |
15935 | need_version=no |
15936 | soname_spec='${libname}${release}${shared_ext}$major' |
15937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15938 | shlibpath_var=LD_LIBRARY_PATH |
15939 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15940 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15941 | ;; |
15942 | |
15943 | solaris*) |
15944 | version_type=linux |
15945 | need_lib_prefix=no |
15946 | need_version=no |
15947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15948 | soname_spec='${libname}${release}${shared_ext}$major' |
15949 | shlibpath_var=LD_LIBRARY_PATH |
15950 | shlibpath_overrides_runpath=yes |
15951 | hardcode_into_libs=yes |
15952 | # ldd complains unless libraries are executable |
15953 | postinstall_cmds='chmod +x $lib' |
15954 | ;; |
15955 | |
15956 | sunos4*) |
15957 | version_type=sunos |
15958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15959 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15960 | shlibpath_var=LD_LIBRARY_PATH |
15961 | shlibpath_overrides_runpath=yes |
15962 | if test "$with_gnu_ld" = yes; then |
15963 | need_lib_prefix=no |
15964 | fi |
15965 | need_version=yes |
15966 | ;; |
15967 | |
15968 | sysv4 | sysv4.3*) |
15969 | version_type=linux |
15970 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15971 | soname_spec='${libname}${release}${shared_ext}$major' |
15972 | shlibpath_var=LD_LIBRARY_PATH |
15973 | case $host_vendor in |
15974 | sni) |
15975 | shlibpath_overrides_runpath=no |
15976 | need_lib_prefix=no |
15977 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
15978 | runpath_var=LD_RUN_PATH |
15979 | ;; |
15980 | siemens) |
15981 | need_lib_prefix=no |
15982 | ;; |
15983 | motorola) |
15984 | need_lib_prefix=no |
15985 | need_version=no |
15986 | shlibpath_overrides_runpath=no |
15987 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15988 | ;; |
15989 | esac |
15990 | ;; |
15991 | |
15992 | sysv4*MP*) |
15993 | if test -d /usr/nec ;then |
15994 | version_type=linux |
15995 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15996 | soname_spec='$libname${shared_ext}.$major' |
15997 | shlibpath_var=LD_LIBRARY_PATH |
15998 | fi |
15999 | ;; |
16000 | |
16001 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
16002 | version_type=freebsd-elf |
16003 | need_lib_prefix=no |
16004 | need_version=no |
16005 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
16006 | soname_spec='${libname}${release}${shared_ext}$major' |
16007 | shlibpath_var=LD_LIBRARY_PATH |
16008 | hardcode_into_libs=yes |
16009 | if test "$with_gnu_ld" = yes; then |
16010 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
16011 | shlibpath_overrides_runpath=no |
16012 | else |
16013 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
16014 | shlibpath_overrides_runpath=yes |
16015 | case $host_os in |
16016 | sco3.2v5*) |
16017 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
16018 | ;; |
16019 | esac |
16020 | fi |
16021 | sys_lib_dlsearch_path_spec='/usr/lib' |
16022 | ;; |
16023 | |
16024 | uts4*) |
16025 | version_type=linux |
16026 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16027 | soname_spec='${libname}${release}${shared_ext}$major' |
16028 | shlibpath_var=LD_LIBRARY_PATH |
16029 | ;; |
16030 | |
16031 | *) |
16032 | dynamic_linker=no |
16033 | ;; |
16034 | esac |
dd184caf |
16035 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
16036 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
16037 | test "$dynamic_linker" = no && can_build_shared=no |
16038 | |
16039 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
16040 | if test "$GCC" = yes; then |
16041 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
16042 | fi |
16043 | |
dd184caf |
16044 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
16045 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
16046 | hardcode_action_F77= |
16047 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
16048 | test -n "$runpath_var_F77" || \ |
16049 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
16050 | |
16051 | # We can hardcode non-existant directories. |
16052 | if test "$hardcode_direct_F77" != no && |
16053 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
16054 | # have to relink, otherwise we might link with an installed library |
16055 | # when we should be linking with a yet-to-be-installed one |
16056 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
16057 | test "$hardcode_minus_L_F77" != no; then |
16058 | # Linking always hardcodes the temporary library directory. |
16059 | hardcode_action_F77=relink |
16060 | else |
16061 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
16062 | hardcode_action_F77=immediate |
16063 | fi |
16064 | else |
16065 | # We cannot hardcode anything, or else we can only hardcode existing |
16066 | # directories. |
16067 | hardcode_action_F77=unsupported |
16068 | fi |
dd184caf |
16069 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
16070 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
d9898ee8 |
16071 | |
16072 | if test "$hardcode_action_F77" = relink; then |
16073 | # Fast installation is not supported |
16074 | enable_fast_install=no |
16075 | elif test "$shlibpath_overrides_runpath" = yes || |
16076 | test "$enable_shared" = no; then |
16077 | # Fast installation is not necessary |
16078 | enable_fast_install=needless |
16079 | fi |
16080 | |
16081 | |
16082 | # The else clause should only fire when bootstrapping the |
16083 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
16084 | # with your package, and you will get complaints that there are |
16085 | # no rules to generate ltmain.sh. |
16086 | if test -f "$ltmain"; then |
16087 | # See if we are running on zsh, and set the options which allow our commands through |
16088 | # without removal of \ escapes. |
16089 | if test -n "${ZSH_VERSION+set}" ; then |
16090 | setopt NO_GLOB_SUBST |
16091 | fi |
16092 | # Now quote all the things that may contain metacharacters while being |
16093 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
16094 | # variables and quote the copies for generation of the libtool script. |
16095 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
16096 | SED SHELL STRIP \ |
16097 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
16098 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
16099 | deplibs_check_method reload_flag reload_cmds need_locks \ |
16100 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
16101 | lt_cv_sys_global_symbol_to_c_name_address \ |
16102 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
16103 | old_postinstall_cmds old_postuninstall_cmds \ |
16104 | compiler_F77 \ |
16105 | CC_F77 \ |
16106 | LD_F77 \ |
16107 | lt_prog_compiler_wl_F77 \ |
16108 | lt_prog_compiler_pic_F77 \ |
16109 | lt_prog_compiler_static_F77 \ |
16110 | lt_prog_compiler_no_builtin_flag_F77 \ |
16111 | export_dynamic_flag_spec_F77 \ |
16112 | thread_safe_flag_spec_F77 \ |
16113 | whole_archive_flag_spec_F77 \ |
16114 | enable_shared_with_static_runtimes_F77 \ |
16115 | old_archive_cmds_F77 \ |
16116 | old_archive_from_new_cmds_F77 \ |
16117 | predep_objects_F77 \ |
16118 | postdep_objects_F77 \ |
16119 | predeps_F77 \ |
16120 | postdeps_F77 \ |
16121 | compiler_lib_search_path_F77 \ |
16122 | archive_cmds_F77 \ |
16123 | archive_expsym_cmds_F77 \ |
16124 | postinstall_cmds_F77 \ |
16125 | postuninstall_cmds_F77 \ |
16126 | old_archive_from_expsyms_cmds_F77 \ |
16127 | allow_undefined_flag_F77 \ |
16128 | no_undefined_flag_F77 \ |
16129 | export_symbols_cmds_F77 \ |
16130 | hardcode_libdir_flag_spec_F77 \ |
16131 | hardcode_libdir_flag_spec_ld_F77 \ |
16132 | hardcode_libdir_separator_F77 \ |
16133 | hardcode_automatic_F77 \ |
16134 | module_cmds_F77 \ |
16135 | module_expsym_cmds_F77 \ |
16136 | lt_cv_prog_compiler_c_o_F77 \ |
16137 | exclude_expsyms_F77 \ |
16138 | include_expsyms_F77; do |
16139 | |
16140 | case $var in |
16141 | old_archive_cmds_F77 | \ |
16142 | old_archive_from_new_cmds_F77 | \ |
16143 | archive_cmds_F77 | \ |
16144 | archive_expsym_cmds_F77 | \ |
16145 | module_cmds_F77 | \ |
16146 | module_expsym_cmds_F77 | \ |
16147 | old_archive_from_expsyms_cmds_F77 | \ |
16148 | export_symbols_cmds_F77 | \ |
16149 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
16150 | postinstall_cmds | postuninstall_cmds | \ |
16151 | old_postinstall_cmds | old_postuninstall_cmds | \ |
16152 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
16153 | # Double-quote double-evaled strings. |
16154 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
16155 | ;; |
16156 | *) |
16157 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
16158 | ;; |
16159 | esac |
16160 | done |
16161 | |
16162 | case $lt_echo in |
16163 | *'\$0 --fallback-echo"') |
16164 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
16165 | ;; |
16166 | esac |
16167 | |
16168 | cfgfile="$ofile" |
16169 | |
16170 | cat <<__EOF__ >> "$cfgfile" |
16171 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
16172 | |
16173 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
16174 | |
16175 | # Shell to use when invoking shell scripts. |
16176 | SHELL=$lt_SHELL |
16177 | |
16178 | # Whether or not to build shared libraries. |
16179 | build_libtool_libs=$enable_shared |
16180 | |
16181 | # Whether or not to build static libraries. |
16182 | build_old_libs=$enable_static |
16183 | |
16184 | # Whether or not to add -lc for building shared libraries. |
16185 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
16186 | |
16187 | # Whether or not to disallow shared libs when runtime libs are static |
16188 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
16189 | |
16190 | # Whether or not to optimize for fast installation. |
16191 | fast_install=$enable_fast_install |
16192 | |
16193 | # The host system. |
16194 | host_alias=$host_alias |
16195 | host=$host |
16196 | host_os=$host_os |
16197 | |
16198 | # The build system. |
16199 | build_alias=$build_alias |
16200 | build=$build |
16201 | build_os=$build_os |
16202 | |
16203 | # An echo program that does not interpret backslashes. |
16204 | echo=$lt_echo |
16205 | |
16206 | # The archiver. |
16207 | AR=$lt_AR |
16208 | AR_FLAGS=$lt_AR_FLAGS |
16209 | |
16210 | # A C compiler. |
16211 | LTCC=$lt_LTCC |
16212 | |
16213 | # LTCC compiler flags. |
16214 | LTCFLAGS=$lt_LTCFLAGS |
16215 | |
16216 | # A language-specific compiler. |
16217 | CC=$lt_compiler_F77 |
16218 | |
16219 | # Is the compiler the GNU C compiler? |
16220 | with_gcc=$GCC_F77 |
16221 | |
d9898ee8 |
16222 | # An ERE matcher. |
16223 | EGREP=$lt_EGREP |
16224 | |
16225 | # The linker used to build libraries. |
16226 | LD=$lt_LD_F77 |
16227 | |
16228 | # Whether we need hard or soft links. |
16229 | LN_S=$lt_LN_S |
16230 | |
16231 | # A BSD-compatible nm program. |
16232 | NM=$lt_NM |
16233 | |
16234 | # A symbol stripping program |
16235 | STRIP=$lt_STRIP |
16236 | |
16237 | # Used to examine libraries when file_magic_cmd begins "file" |
16238 | MAGIC_CMD=$MAGIC_CMD |
16239 | |
16240 | # Used on cygwin: DLL creation program. |
16241 | DLLTOOL="$DLLTOOL" |
16242 | |
16243 | # Used on cygwin: object dumper. |
16244 | OBJDUMP="$OBJDUMP" |
16245 | |
16246 | # Used on cygwin: assembler. |
16247 | AS="$AS" |
16248 | |
16249 | # The name of the directory that contains temporary libtool files. |
16250 | objdir=$objdir |
16251 | |
16252 | # How to create reloadable object files. |
16253 | reload_flag=$lt_reload_flag |
16254 | reload_cmds=$lt_reload_cmds |
16255 | |
16256 | # How to pass a linker flag through the compiler. |
16257 | wl=$lt_lt_prog_compiler_wl_F77 |
16258 | |
16259 | # Object file suffix (normally "o"). |
16260 | objext="$ac_objext" |
16261 | |
16262 | # Old archive suffix (normally "a"). |
16263 | libext="$libext" |
16264 | |
16265 | # Shared library suffix (normally ".so"). |
16266 | shrext_cmds='$shrext_cmds' |
16267 | |
16268 | # Executable file suffix (normally ""). |
16269 | exeext="$exeext" |
16270 | |
16271 | # Additional compiler flags for building library objects. |
16272 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
16273 | pic_mode=$pic_mode |
16274 | |
16275 | # What is the maximum length of a command? |
16276 | max_cmd_len=$lt_cv_sys_max_cmd_len |
16277 | |
16278 | # Does compiler simultaneously support -c and -o options? |
16279 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
16280 | |
16281 | # Must we lock files when doing compilation? |
16282 | need_locks=$lt_need_locks |
16283 | |
16284 | # Do we need the lib prefix for modules? |
16285 | need_lib_prefix=$need_lib_prefix |
16286 | |
16287 | # Do we need a version for libraries? |
16288 | need_version=$need_version |
16289 | |
16290 | # Whether dlopen is supported. |
16291 | dlopen_support=$enable_dlopen |
16292 | |
16293 | # Whether dlopen of programs is supported. |
16294 | dlopen_self=$enable_dlopen_self |
16295 | |
16296 | # Whether dlopen of statically linked programs is supported. |
16297 | dlopen_self_static=$enable_dlopen_self_static |
16298 | |
16299 | # Compiler flag to prevent dynamic linking. |
16300 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
16301 | |
16302 | # Compiler flag to turn off builtin functions. |
16303 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
16304 | |
16305 | # Compiler flag to allow reflexive dlopens. |
16306 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
16307 | |
16308 | # Compiler flag to generate shared objects directly from archives. |
16309 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
16310 | |
16311 | # Compiler flag to generate thread-safe objects. |
16312 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
16313 | |
16314 | # Library versioning type. |
16315 | version_type=$version_type |
16316 | |
16317 | # Format of library name prefix. |
16318 | libname_spec=$lt_libname_spec |
16319 | |
16320 | # List of archive names. First name is the real one, the rest are links. |
16321 | # The last name is the one that the linker finds with -lNAME. |
16322 | library_names_spec=$lt_library_names_spec |
16323 | |
16324 | # The coded name of the library, if different from the real name. |
16325 | soname_spec=$lt_soname_spec |
16326 | |
16327 | # Commands used to build and install an old-style archive. |
16328 | RANLIB=$lt_RANLIB |
16329 | old_archive_cmds=$lt_old_archive_cmds_F77 |
16330 | old_postinstall_cmds=$lt_old_postinstall_cmds |
16331 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
16332 | |
16333 | # Create an old-style archive from a shared archive. |
16334 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
16335 | |
16336 | # Create a temporary old-style archive to link instead of a shared archive. |
16337 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
16338 | |
16339 | # Commands used to build and install a shared archive. |
16340 | archive_cmds=$lt_archive_cmds_F77 |
16341 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
16342 | postinstall_cmds=$lt_postinstall_cmds |
16343 | postuninstall_cmds=$lt_postuninstall_cmds |
16344 | |
16345 | # Commands used to build a loadable module (assumed same as above if empty) |
16346 | module_cmds=$lt_module_cmds_F77 |
16347 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
16348 | |
16349 | # Commands to strip libraries. |
16350 | old_striplib=$lt_old_striplib |
16351 | striplib=$lt_striplib |
16352 | |
16353 | # Dependencies to place before the objects being linked to create a |
16354 | # shared library. |
dd184caf |
16355 | predep_objects=$lt_predep_objects_F77 |
d9898ee8 |
16356 | |
16357 | # Dependencies to place after the objects being linked to create a |
16358 | # shared library. |
dd184caf |
16359 | postdep_objects=$lt_postdep_objects_F77 |
d9898ee8 |
16360 | |
16361 | # Dependencies to place before the objects being linked to create a |
16362 | # shared library. |
16363 | predeps=$lt_predeps_F77 |
16364 | |
16365 | # Dependencies to place after the objects being linked to create a |
16366 | # shared library. |
16367 | postdeps=$lt_postdeps_F77 |
16368 | |
16369 | # The library search path used internally by the compiler when linking |
16370 | # a shared library. |
dd184caf |
16371 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
d9898ee8 |
16372 | |
16373 | # Method to check whether dependent libraries are shared objects. |
16374 | deplibs_check_method=$lt_deplibs_check_method |
16375 | |
16376 | # Command to use when deplibs_check_method == file_magic. |
16377 | file_magic_cmd=$lt_file_magic_cmd |
16378 | |
16379 | # Flag that allows shared libraries with undefined symbols to be built. |
16380 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
16381 | |
16382 | # Flag that forces no undefined symbols. |
16383 | no_undefined_flag=$lt_no_undefined_flag_F77 |
16384 | |
16385 | # Commands used to finish a libtool library installation in a directory. |
16386 | finish_cmds=$lt_finish_cmds |
16387 | |
16388 | # Same as above, but a single script fragment to be evaled but not shown. |
16389 | finish_eval=$lt_finish_eval |
16390 | |
16391 | # Take the output of nm and produce a listing of raw symbols and C names. |
16392 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
16393 | |
16394 | # Transform the output of nm in a proper C declaration |
16395 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
16396 | |
16397 | # Transform the output of nm in a C name address pair |
16398 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
16399 | |
16400 | # This is the shared library runtime path variable. |
16401 | runpath_var=$runpath_var |
16402 | |
16403 | # This is the shared library path variable. |
16404 | shlibpath_var=$shlibpath_var |
16405 | |
16406 | # Is shlibpath searched before the hard-coded library search path? |
16407 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
16408 | |
16409 | # How to hardcode a shared library path into an executable. |
16410 | hardcode_action=$hardcode_action_F77 |
16411 | |
16412 | # Whether we should hardcode library paths into libraries. |
16413 | hardcode_into_libs=$hardcode_into_libs |
16414 | |
16415 | # Flag to hardcode \$libdir into a binary during linking. |
16416 | # This must work even if \$libdir does not exist. |
16417 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
16418 | |
16419 | # If ld is used when linking, flag to hardcode \$libdir into |
16420 | # a binary during linking. This must work even if \$libdir does |
16421 | # not exist. |
16422 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
16423 | |
16424 | # Whether we need a single -rpath flag with a separated argument. |
16425 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
16426 | |
16427 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
16428 | # resulting binary. |
16429 | hardcode_direct=$hardcode_direct_F77 |
16430 | |
16431 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
16432 | # resulting binary. |
16433 | hardcode_minus_L=$hardcode_minus_L_F77 |
16434 | |
16435 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
16436 | # the resulting binary. |
16437 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
16438 | |
16439 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
16440 | # and all subsequent libraries and executables linked against it. |
16441 | hardcode_automatic=$hardcode_automatic_F77 |
16442 | |
16443 | # Variables whose values should be saved in libtool wrapper scripts and |
16444 | # restored at relink time. |
16445 | variables_saved_for_relink="$variables_saved_for_relink" |
16446 | |
16447 | # Whether libtool must link a program against all its dependency libraries. |
16448 | link_all_deplibs=$link_all_deplibs_F77 |
16449 | |
16450 | # Compile-time system search path for libraries |
dd184caf |
16451 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
16452 | |
16453 | # Run-time system search path for libraries |
16454 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
16455 | |
16456 | # Fix the shell variable \$srcfile for the compiler. |
16457 | fix_srcfile_path="$fix_srcfile_path_F77" |
16458 | |
16459 | # Set to yes if exported symbols are required. |
16460 | always_export_symbols=$always_export_symbols_F77 |
16461 | |
16462 | # The commands to list exported symbols. |
16463 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
16464 | |
16465 | # The commands to extract the exported symbol list from a shared archive. |
16466 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
16467 | |
16468 | # Symbols that should not be listed in the preloaded symbols. |
16469 | exclude_expsyms=$lt_exclude_expsyms_F77 |
16470 | |
16471 | # Symbols that must always be exported. |
16472 | include_expsyms=$lt_include_expsyms_F77 |
16473 | |
16474 | # ### END LIBTOOL TAG CONFIG: $tagname |
16475 | |
16476 | __EOF__ |
16477 | |
16478 | |
16479 | else |
16480 | # If there is no Makefile yet, we rely on a make rule to execute |
16481 | # `config.status --recheck' to rerun these tests and create the |
16482 | # libtool script then. |
16483 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
16484 | if test -f "$ltmain_in"; then |
16485 | test -f Makefile && make "$ltmain" |
16486 | fi |
16487 | fi |
16488 | |
16489 | |
16490 | ac_ext=c |
16491 | ac_cpp='$CPP $CPPFLAGS' |
16492 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
16493 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
16494 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
16495 | |
16496 | CC="$lt_save_CC" |
16497 | |
16498 | else |
16499 | tagname="" |
16500 | fi |
16501 | ;; |
16502 | |
16503 | GCJ) |
16504 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
16505 | |
16506 | |
d9898ee8 |
16507 | # Source file extension for Java test sources. |
16508 | ac_ext=java |
16509 | |
16510 | # Object file extension for compiled Java test sources. |
16511 | objext=o |
16512 | objext_GCJ=$objext |
16513 | |
16514 | # Code to be used in simple compile tests |
16515 | lt_simple_compile_test_code="class foo {}\n" |
16516 | |
16517 | # Code to be used in simple link tests |
16518 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
16519 | |
16520 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
16521 | |
16522 | # If no C compiler was specified, use CC. |
16523 | LTCC=${LTCC-"$CC"} |
16524 | |
16525 | # If no C compiler flags were specified, use CFLAGS. |
16526 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
16527 | |
16528 | # Allow CC to be a program name with arguments. |
16529 | compiler=$CC |
16530 | |
16531 | |
16532 | # save warnings/boilerplate of simple test code |
16533 | ac_outfile=conftest.$ac_objext |
16534 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
16535 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16536 | _lt_compiler_boilerplate=`cat conftest.err` |
16537 | $rm conftest* |
16538 | |
16539 | ac_outfile=conftest.$ac_objext |
16540 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
16541 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16542 | _lt_linker_boilerplate=`cat conftest.err` |
16543 | $rm conftest* |
16544 | |
16545 | |
16546 | # Allow CC to be a program name with arguments. |
16547 | lt_save_CC="$CC" |
16548 | CC=${GCJ-"gcj"} |
16549 | compiler=$CC |
16550 | compiler_GCJ=$CC |
16551 | for cc_temp in $compiler""; do |
16552 | case $cc_temp in |
16553 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16554 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16555 | \-*) ;; |
16556 | *) break;; |
16557 | esac |
16558 | done |
16559 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16560 | |
16561 | |
16562 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
16563 | archive_cmds_need_lc_GCJ=no |
16564 | |
16565 | old_archive_cmds_GCJ=$old_archive_cmds |
16566 | |
16567 | |
16568 | lt_prog_compiler_no_builtin_flag_GCJ= |
16569 | |
16570 | if test "$GCC" = yes; then |
16571 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
16572 | |
16573 | |
dd184caf |
16574 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
16575 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
16576 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
16577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16578 | else |
16579 | lt_cv_prog_compiler_rtti_exceptions=no |
16580 | ac_outfile=conftest.$ac_objext |
16581 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16582 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
16583 | # Insert the option either (1) after the last *FLAGS variable, or |
16584 | # (2) before a word containing "conftest.", or (3) at the end. |
16585 | # Note that $ac_compile itself does not contain backslashes and begins |
16586 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16587 | # The option is referenced via a variable to avoid confusing sed. |
16588 | lt_compile=`echo "$ac_compile" | $SED \ |
16589 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16590 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16591 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
16592 | (eval echo "\"\$as_me:16592: $lt_compile\"" >&5) |
d9898ee8 |
16593 | (eval "$lt_compile" 2>conftest.err) |
16594 | ac_status=$? |
16595 | cat conftest.err >&5 |
dd184caf |
16596 | echo "$as_me:16596: \$? = $ac_status" >&5 |
d9898ee8 |
16597 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16598 | # The compiler can only warn and ignore the option if not recognized |
16599 | # So say no if there are warnings other than the usual output. |
16600 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16601 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16602 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16603 | lt_cv_prog_compiler_rtti_exceptions=yes |
16604 | fi |
16605 | fi |
16606 | $rm conftest* |
16607 | |
16608 | fi |
dd184caf |
16609 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
16610 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
16611 | |
16612 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
16613 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
16614 | else |
16615 | : |
16616 | fi |
16617 | |
16618 | fi |
16619 | |
16620 | lt_prog_compiler_wl_GCJ= |
16621 | lt_prog_compiler_pic_GCJ= |
16622 | lt_prog_compiler_static_GCJ= |
16623 | |
dd184caf |
16624 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
16625 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
16626 | |
16627 | if test "$GCC" = yes; then |
16628 | lt_prog_compiler_wl_GCJ='-Wl,' |
16629 | lt_prog_compiler_static_GCJ='-static' |
16630 | |
16631 | case $host_os in |
16632 | aix*) |
16633 | # All AIX code is PIC. |
16634 | if test "$host_cpu" = ia64; then |
16635 | # AIX 5 now supports IA64 processor |
16636 | lt_prog_compiler_static_GCJ='-Bstatic' |
16637 | fi |
16638 | ;; |
16639 | |
16640 | amigaos*) |
16641 | # FIXME: we need at least 68020 code to build shared libraries, but |
16642 | # adding the `-m68020' flag to GCC prevents building anything better, |
16643 | # like `-m68040'. |
16644 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
16645 | ;; |
16646 | |
16647 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
16648 | # PIC is the default for these OSes. |
16649 | ;; |
16650 | |
16651 | mingw* | pw32* | os2*) |
16652 | # This hack is so that the source file can tell whether it is being |
16653 | # built for inclusion in a dll (and should export symbols for example). |
16654 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16655 | ;; |
16656 | |
16657 | darwin* | rhapsody*) |
16658 | # PIC is the default on this platform |
16659 | # Common symbols not allowed in MH_DYLIB files |
16660 | lt_prog_compiler_pic_GCJ='-fno-common' |
16661 | ;; |
16662 | |
16663 | interix3*) |
16664 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
16665 | # Instead, we relocate shared libraries at runtime. |
16666 | ;; |
16667 | |
16668 | msdosdjgpp*) |
16669 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
16670 | # on systems that don't support them. |
16671 | lt_prog_compiler_can_build_shared_GCJ=no |
16672 | enable_shared=no |
16673 | ;; |
16674 | |
16675 | sysv4*MP*) |
16676 | if test -d /usr/nec; then |
16677 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
16678 | fi |
16679 | ;; |
16680 | |
16681 | hpux*) |
16682 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16683 | # not for PA HP-UX. |
16684 | case $host_cpu in |
16685 | hppa*64*|ia64*) |
16686 | # +Z the default |
16687 | ;; |
16688 | *) |
16689 | lt_prog_compiler_pic_GCJ='-fPIC' |
16690 | ;; |
16691 | esac |
16692 | ;; |
16693 | |
16694 | *) |
16695 | lt_prog_compiler_pic_GCJ='-fPIC' |
16696 | ;; |
16697 | esac |
16698 | else |
16699 | # PORTME Check for flag to pass linker flags through the system compiler. |
16700 | case $host_os in |
16701 | aix*) |
16702 | lt_prog_compiler_wl_GCJ='-Wl,' |
16703 | if test "$host_cpu" = ia64; then |
16704 | # AIX 5 now supports IA64 processor |
16705 | lt_prog_compiler_static_GCJ='-Bstatic' |
16706 | else |
16707 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
16708 | fi |
16709 | ;; |
16710 | darwin*) |
16711 | # PIC is the default on this platform |
16712 | # Common symbols not allowed in MH_DYLIB files |
16713 | case $cc_basename in |
16714 | xlc*) |
16715 | lt_prog_compiler_pic_GCJ='-qnocommon' |
16716 | lt_prog_compiler_wl_GCJ='-Wl,' |
16717 | ;; |
16718 | esac |
16719 | ;; |
16720 | |
16721 | mingw* | pw32* | os2*) |
16722 | # This hack is so that the source file can tell whether it is being |
16723 | # built for inclusion in a dll (and should export symbols for example). |
16724 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16725 | ;; |
16726 | |
16727 | hpux9* | hpux10* | hpux11*) |
16728 | lt_prog_compiler_wl_GCJ='-Wl,' |
16729 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16730 | # not for PA HP-UX. |
16731 | case $host_cpu in |
16732 | hppa*64*|ia64*) |
16733 | # +Z the default |
16734 | ;; |
16735 | *) |
16736 | lt_prog_compiler_pic_GCJ='+Z' |
16737 | ;; |
16738 | esac |
16739 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
16740 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
16741 | ;; |
16742 | |
16743 | irix5* | irix6* | nonstopux*) |
16744 | lt_prog_compiler_wl_GCJ='-Wl,' |
16745 | # PIC (with -KPIC) is the default. |
16746 | lt_prog_compiler_static_GCJ='-non_shared' |
16747 | ;; |
16748 | |
16749 | newsos6) |
16750 | lt_prog_compiler_pic_GCJ='-KPIC' |
16751 | lt_prog_compiler_static_GCJ='-Bstatic' |
16752 | ;; |
16753 | |
16754 | linux*) |
16755 | case $cc_basename in |
16756 | icc* | ecc*) |
16757 | lt_prog_compiler_wl_GCJ='-Wl,' |
16758 | lt_prog_compiler_pic_GCJ='-KPIC' |
16759 | lt_prog_compiler_static_GCJ='-static' |
16760 | ;; |
16761 | pgcc* | pgf77* | pgf90* | pgf95*) |
16762 | # Portland Group compilers (*not* the Pentium gcc compiler, |
16763 | # which looks to be a dead project) |
16764 | lt_prog_compiler_wl_GCJ='-Wl,' |
16765 | lt_prog_compiler_pic_GCJ='-fpic' |
16766 | lt_prog_compiler_static_GCJ='-Bstatic' |
16767 | ;; |
16768 | ccc*) |
16769 | lt_prog_compiler_wl_GCJ='-Wl,' |
16770 | # All Alpha code is PIC. |
16771 | lt_prog_compiler_static_GCJ='-non_shared' |
16772 | ;; |
16773 | esac |
16774 | ;; |
16775 | |
16776 | osf3* | osf4* | osf5*) |
16777 | lt_prog_compiler_wl_GCJ='-Wl,' |
16778 | # All OSF/1 code is PIC. |
16779 | lt_prog_compiler_static_GCJ='-non_shared' |
16780 | ;; |
16781 | |
16782 | solaris*) |
16783 | lt_prog_compiler_pic_GCJ='-KPIC' |
16784 | lt_prog_compiler_static_GCJ='-Bstatic' |
16785 | case $cc_basename in |
16786 | f77* | f90* | f95*) |
16787 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
16788 | *) |
16789 | lt_prog_compiler_wl_GCJ='-Wl,';; |
16790 | esac |
16791 | ;; |
16792 | |
16793 | sunos4*) |
16794 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
16795 | lt_prog_compiler_pic_GCJ='-PIC' |
16796 | lt_prog_compiler_static_GCJ='-Bstatic' |
16797 | ;; |
16798 | |
16799 | sysv4 | sysv4.2uw2* | sysv4.3*) |
16800 | lt_prog_compiler_wl_GCJ='-Wl,' |
16801 | lt_prog_compiler_pic_GCJ='-KPIC' |
16802 | lt_prog_compiler_static_GCJ='-Bstatic' |
16803 | ;; |
16804 | |
16805 | sysv4*MP*) |
16806 | if test -d /usr/nec ;then |
16807 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
16808 | lt_prog_compiler_static_GCJ='-Bstatic' |
16809 | fi |
16810 | ;; |
16811 | |
16812 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
16813 | lt_prog_compiler_wl_GCJ='-Wl,' |
16814 | lt_prog_compiler_pic_GCJ='-KPIC' |
16815 | lt_prog_compiler_static_GCJ='-Bstatic' |
16816 | ;; |
16817 | |
16818 | unicos*) |
16819 | lt_prog_compiler_wl_GCJ='-Wl,' |
16820 | lt_prog_compiler_can_build_shared_GCJ=no |
16821 | ;; |
16822 | |
16823 | uts4*) |
16824 | lt_prog_compiler_pic_GCJ='-pic' |
16825 | lt_prog_compiler_static_GCJ='-Bstatic' |
16826 | ;; |
16827 | |
16828 | *) |
16829 | lt_prog_compiler_can_build_shared_GCJ=no |
16830 | ;; |
16831 | esac |
16832 | fi |
16833 | |
dd184caf |
16834 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
16835 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
d9898ee8 |
16836 | |
16837 | # |
16838 | # Check to make sure the PIC flag actually works. |
16839 | # |
16840 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
16841 | |
dd184caf |
16842 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
16843 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
d9898ee8 |
16844 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
16845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16846 | else |
16847 | lt_prog_compiler_pic_works_GCJ=no |
16848 | ac_outfile=conftest.$ac_objext |
16849 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16850 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
16851 | # Insert the option either (1) after the last *FLAGS variable, or |
16852 | # (2) before a word containing "conftest.", or (3) at the end. |
16853 | # Note that $ac_compile itself does not contain backslashes and begins |
16854 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16855 | # The option is referenced via a variable to avoid confusing sed. |
16856 | lt_compile=`echo "$ac_compile" | $SED \ |
16857 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16858 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16859 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
16860 | (eval echo "\"\$as_me:16860: $lt_compile\"" >&5) |
d9898ee8 |
16861 | (eval "$lt_compile" 2>conftest.err) |
16862 | ac_status=$? |
16863 | cat conftest.err >&5 |
dd184caf |
16864 | echo "$as_me:16864: \$? = $ac_status" >&5 |
d9898ee8 |
16865 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16866 | # The compiler can only warn and ignore the option if not recognized |
16867 | # So say no if there are warnings other than the usual output. |
16868 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16869 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16870 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16871 | lt_prog_compiler_pic_works_GCJ=yes |
16872 | fi |
16873 | fi |
16874 | $rm conftest* |
16875 | |
16876 | fi |
dd184caf |
16877 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
16878 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
d9898ee8 |
16879 | |
16880 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
16881 | case $lt_prog_compiler_pic_GCJ in |
16882 | "" | " "*) ;; |
16883 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
16884 | esac |
16885 | else |
16886 | lt_prog_compiler_pic_GCJ= |
16887 | lt_prog_compiler_can_build_shared_GCJ=no |
16888 | fi |
16889 | |
16890 | fi |
16891 | case $host_os in |
16892 | # For platforms which do not support PIC, -DPIC is meaningless: |
16893 | *djgpp*) |
16894 | lt_prog_compiler_pic_GCJ= |
16895 | ;; |
16896 | *) |
16897 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
16898 | ;; |
16899 | esac |
16900 | |
16901 | # |
16902 | # Check to make sure the static flag actually works. |
16903 | # |
16904 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
dd184caf |
16905 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
16906 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
16907 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
16908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16909 | else |
16910 | lt_prog_compiler_static_works_GCJ=no |
16911 | save_LDFLAGS="$LDFLAGS" |
16912 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
16913 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
16914 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
16915 | # The linker can only warn and ignore the option if not recognized |
16916 | # So say no if there are warnings |
16917 | if test -s conftest.err; then |
16918 | # Append any errors to the config.log. |
16919 | cat conftest.err 1>&5 |
16920 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
16921 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16922 | if diff conftest.exp conftest.er2 >/dev/null; then |
16923 | lt_prog_compiler_static_works_GCJ=yes |
16924 | fi |
16925 | else |
16926 | lt_prog_compiler_static_works_GCJ=yes |
16927 | fi |
16928 | fi |
16929 | $rm conftest* |
16930 | LDFLAGS="$save_LDFLAGS" |
16931 | |
16932 | fi |
dd184caf |
16933 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
16934 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
d9898ee8 |
16935 | |
16936 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
16937 | : |
16938 | else |
16939 | lt_prog_compiler_static_GCJ= |
16940 | fi |
16941 | |
16942 | |
dd184caf |
16943 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16944 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
16945 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16947 | else |
16948 | lt_cv_prog_compiler_c_o_GCJ=no |
16949 | $rm -r conftest 2>/dev/null |
16950 | mkdir conftest |
16951 | cd conftest |
16952 | mkdir out |
16953 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16954 | |
16955 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
16956 | # Insert the option either (1) after the last *FLAGS variable, or |
16957 | # (2) before a word containing "conftest.", or (3) at the end. |
16958 | # Note that $ac_compile itself does not contain backslashes and begins |
16959 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16960 | lt_compile=`echo "$ac_compile" | $SED \ |
16961 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16962 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16963 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
16964 | (eval echo "\"\$as_me:16964: $lt_compile\"" >&5) |
d9898ee8 |
16965 | (eval "$lt_compile" 2>out/conftest.err) |
16966 | ac_status=$? |
16967 | cat out/conftest.err >&5 |
dd184caf |
16968 | echo "$as_me:16968: \$? = $ac_status" >&5 |
d9898ee8 |
16969 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16970 | then |
16971 | # The compiler can only warn and ignore the option if not recognized |
16972 | # So say no if there are warnings |
16973 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16974 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16975 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16976 | lt_cv_prog_compiler_c_o_GCJ=yes |
16977 | fi |
16978 | fi |
16979 | chmod u+w . 2>&5 |
16980 | $rm conftest* |
16981 | # SGI C++ compiler will create directory out/ii_files/ for |
16982 | # template instantiation |
16983 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16984 | $rm out/* && rmdir out |
16985 | cd .. |
16986 | rmdir conftest |
16987 | $rm conftest* |
16988 | |
16989 | fi |
dd184caf |
16990 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16991 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
d9898ee8 |
16992 | |
16993 | |
16994 | hard_links="nottested" |
16995 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16996 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
16997 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16998 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
16999 | hard_links=yes |
17000 | $rm conftest* |
17001 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
17002 | touch conftest.a |
17003 | ln conftest.a conftest.b 2>&5 || hard_links=no |
17004 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
17005 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
17006 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
17007 | if test "$hard_links" = no; then |
17008 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
17009 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
17010 | need_locks=warn |
17011 | fi |
17012 | else |
17013 | need_locks=no |
17014 | fi |
17015 | |
dd184caf |
17016 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
17017 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
17018 | |
17019 | runpath_var= |
17020 | allow_undefined_flag_GCJ= |
17021 | enable_shared_with_static_runtimes_GCJ=no |
17022 | archive_cmds_GCJ= |
17023 | archive_expsym_cmds_GCJ= |
17024 | old_archive_From_new_cmds_GCJ= |
17025 | old_archive_from_expsyms_cmds_GCJ= |
17026 | export_dynamic_flag_spec_GCJ= |
17027 | whole_archive_flag_spec_GCJ= |
17028 | thread_safe_flag_spec_GCJ= |
17029 | hardcode_libdir_flag_spec_GCJ= |
17030 | hardcode_libdir_flag_spec_ld_GCJ= |
17031 | hardcode_libdir_separator_GCJ= |
17032 | hardcode_direct_GCJ=no |
17033 | hardcode_minus_L_GCJ=no |
17034 | hardcode_shlibpath_var_GCJ=unsupported |
17035 | link_all_deplibs_GCJ=unknown |
17036 | hardcode_automatic_GCJ=no |
17037 | module_cmds_GCJ= |
17038 | module_expsym_cmds_GCJ= |
17039 | always_export_symbols_GCJ=no |
17040 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
17041 | # include_expsyms should be a list of space-separated symbols to be *always* |
17042 | # included in the symbol list |
17043 | include_expsyms_GCJ= |
17044 | # exclude_expsyms can be an extended regexp of symbols to exclude |
17045 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
17046 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
17047 | # as well as any symbol that contains `d'. |
17048 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
17049 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
17050 | # platforms (ab)use it in PIC code, but their linkers get confused if |
17051 | # the symbol is explicitly referenced. Since portable code cannot |
17052 | # rely on this symbol name, it's probably fine to never include it in |
17053 | # preloaded symbol tables. |
17054 | extract_expsyms_cmds= |
17055 | # Just being paranoid about ensuring that cc_basename is set. |
17056 | for cc_temp in $compiler""; do |
17057 | case $cc_temp in |
17058 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
17059 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
17060 | \-*) ;; |
17061 | *) break;; |
17062 | esac |
17063 | done |
17064 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
17065 | |
17066 | case $host_os in |
17067 | cygwin* | mingw* | pw32*) |
17068 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
17069 | # When not using gcc, we currently assume that we are using |
17070 | # Microsoft Visual C++. |
17071 | if test "$GCC" != yes; then |
17072 | with_gnu_ld=no |
17073 | fi |
17074 | ;; |
17075 | interix*) |
17076 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
17077 | with_gnu_ld=yes |
17078 | ;; |
17079 | openbsd*) |
17080 | with_gnu_ld=no |
17081 | ;; |
17082 | esac |
17083 | |
17084 | ld_shlibs_GCJ=yes |
17085 | if test "$with_gnu_ld" = yes; then |
17086 | # If archive_cmds runs LD, not CC, wlarc should be empty |
17087 | wlarc='${wl}' |
17088 | |
17089 | # Set some defaults for GNU ld with shared library support. These |
17090 | # are reset later if shared libraries are not supported. Putting them |
17091 | # here allows them to be overridden if necessary. |
17092 | runpath_var=LD_RUN_PATH |
17093 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
17094 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
17095 | # ancient GNU ld didn't support --whole-archive et. al. |
17096 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
17097 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
17098 | else |
17099 | whole_archive_flag_spec_GCJ= |
17100 | fi |
17101 | supports_anon_versioning=no |
17102 | case `$LD -v 2>/dev/null` in |
17103 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
17104 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
17105 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
17106 | *\ 2.11.*) ;; # other 2.11 versions |
17107 | *) supports_anon_versioning=yes ;; |
17108 | esac |
17109 | |
17110 | # See if GNU ld supports shared libraries. |
17111 | case $host_os in |
17112 | aix3* | aix4* | aix5*) |
17113 | # On AIX/PPC, the GNU linker is very broken |
17114 | if test "$host_cpu" != ia64; then |
17115 | ld_shlibs_GCJ=no |
17116 | cat <<EOF 1>&2 |
17117 | |
17118 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
17119 | *** to be unable to reliably create shared libraries on AIX. |
17120 | *** Therefore, libtool is disabling shared libraries support. If you |
17121 | *** really care for shared libraries, you may want to modify your PATH |
17122 | *** so that a non-GNU linker is found, and then restart. |
17123 | |
17124 | EOF |
17125 | fi |
17126 | ;; |
17127 | |
17128 | amigaos*) |
17129 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
17130 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17131 | hardcode_minus_L_GCJ=yes |
17132 | |
17133 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
17134 | # that the semantics of dynamic libraries on AmigaOS, at least up |
17135 | # to version 4, is to share data among multiple programs linked |
17136 | # with the same dynamic library. Since this doesn't match the |
17137 | # behavior of shared libraries on other platforms, we can't use |
17138 | # them. |
17139 | ld_shlibs_GCJ=no |
17140 | ;; |
17141 | |
17142 | beos*) |
17143 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17144 | allow_undefined_flag_GCJ=unsupported |
17145 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
17146 | # support --undefined. This deserves some investigation. FIXME |
17147 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17148 | else |
17149 | ld_shlibs_GCJ=no |
17150 | fi |
17151 | ;; |
17152 | |
17153 | cygwin* | mingw* | pw32*) |
17154 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
17155 | # as there is no search path for DLLs. |
17156 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17157 | allow_undefined_flag_GCJ=unsupported |
17158 | always_export_symbols_GCJ=no |
17159 | enable_shared_with_static_runtimes_GCJ=yes |
17160 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
17161 | |
17162 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
17163 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
17164 | # If the export-symbols file already is a .def file (1st line |
17165 | # is EXPORTS), use it as is; otherwise, prepend... |
17166 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
17167 | cp $export_symbols $output_objdir/$soname.def; |
17168 | else |
17169 | echo EXPORTS > $output_objdir/$soname.def; |
17170 | cat $export_symbols >> $output_objdir/$soname.def; |
17171 | fi~ |
17172 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
17173 | else |
17174 | ld_shlibs_GCJ=no |
17175 | fi |
17176 | ;; |
17177 | |
17178 | interix3*) |
17179 | hardcode_direct_GCJ=no |
17180 | hardcode_shlibpath_var_GCJ=no |
17181 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17182 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17183 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
17184 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
17185 | # default) and relocated if they conflict, which is a slow very memory |
17186 | # consuming and fragmenting process. To avoid this, we pick a random, |
17187 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
17188 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
17189 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
17190 | archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
17191 | ;; |
17192 | |
17193 | linux*) |
17194 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17195 | tmp_addflag= |
17196 | case $cc_basename,$host_cpu in |
17197 | pgcc*) # Portland Group C compiler |
17198 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
17199 | tmp_addflag=' $pic_flag' |
17200 | ;; |
17201 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
17202 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
17203 | tmp_addflag=' $pic_flag -Mnomain' ;; |
17204 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
17205 | tmp_addflag=' -i_dynamic' ;; |
17206 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
17207 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
17208 | ifc* | ifort*) # Intel Fortran compiler |
17209 | tmp_addflag=' -nofor_main' ;; |
17210 | esac |
17211 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17212 | |
17213 | if test $supports_anon_versioning = yes; then |
17214 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
17215 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
17216 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
17217 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
17218 | fi |
17219 | else |
17220 | ld_shlibs_GCJ=no |
17221 | fi |
17222 | ;; |
17223 | |
17224 | netbsd*) |
17225 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17226 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
17227 | wlarc= |
17228 | else |
17229 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17230 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17231 | fi |
17232 | ;; |
17233 | |
17234 | solaris*) |
17235 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
17236 | ld_shlibs_GCJ=no |
17237 | cat <<EOF 1>&2 |
17238 | |
17239 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
17240 | *** create shared libraries on Solaris systems. Therefore, libtool |
17241 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17242 | *** binutils to release 2.9.1 or newer. Another option is to modify |
17243 | *** your PATH or compiler configuration so that the native linker is |
17244 | *** used, and then restart. |
17245 | |
17246 | EOF |
17247 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17248 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17249 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17250 | else |
17251 | ld_shlibs_GCJ=no |
17252 | fi |
17253 | ;; |
17254 | |
17255 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
17256 | case `$LD -v 2>&1` in |
17257 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
17258 | ld_shlibs_GCJ=no |
17259 | cat <<_LT_EOF 1>&2 |
17260 | |
17261 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
17262 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
17263 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17264 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
17265 | *** your PATH or compiler configuration so that the native linker is |
17266 | *** used, and then restart. |
17267 | |
17268 | _LT_EOF |
17269 | ;; |
17270 | *) |
17271 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17272 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
17273 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
17274 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
17275 | else |
17276 | ld_shlibs_GCJ=no |
17277 | fi |
17278 | ;; |
17279 | esac |
17280 | ;; |
17281 | |
17282 | sunos4*) |
17283 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17284 | wlarc= |
17285 | hardcode_direct_GCJ=yes |
17286 | hardcode_shlibpath_var_GCJ=no |
17287 | ;; |
17288 | |
17289 | *) |
17290 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17291 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17292 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17293 | else |
17294 | ld_shlibs_GCJ=no |
17295 | fi |
17296 | ;; |
17297 | esac |
17298 | |
17299 | if test "$ld_shlibs_GCJ" = no; then |
17300 | runpath_var= |
17301 | hardcode_libdir_flag_spec_GCJ= |
17302 | export_dynamic_flag_spec_GCJ= |
17303 | whole_archive_flag_spec_GCJ= |
17304 | fi |
17305 | else |
17306 | # PORTME fill in a description of your system's linker (not GNU ld) |
17307 | case $host_os in |
17308 | aix3*) |
17309 | allow_undefined_flag_GCJ=unsupported |
17310 | always_export_symbols_GCJ=yes |
17311 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
17312 | # Note: this linker hardcodes the directories in LIBPATH if there |
17313 | # are no directories specified by -L. |
17314 | hardcode_minus_L_GCJ=yes |
17315 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
17316 | # Neither direct hardcoding nor static linking is supported with a |
17317 | # broken collect2. |
17318 | hardcode_direct_GCJ=unsupported |
17319 | fi |
17320 | ;; |
17321 | |
17322 | aix4* | aix5*) |
17323 | if test "$host_cpu" = ia64; then |
17324 | # On IA64, the linker does run time linking by default, so we don't |
17325 | # have to do anything special. |
17326 | aix_use_runtimelinking=no |
17327 | exp_sym_flag='-Bexport' |
17328 | no_entry_flag="" |
17329 | else |
17330 | # If we're using GNU nm, then we don't want the "-C" option. |
17331 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
17332 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
17333 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
17334 | else |
17335 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
17336 | fi |
17337 | aix_use_runtimelinking=no |
17338 | |
17339 | # Test if we are trying to use run time linking or normal |
17340 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
17341 | # need to do runtime linking. |
17342 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
17343 | for ld_flag in $LDFLAGS; do |
17344 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
17345 | aix_use_runtimelinking=yes |
17346 | break |
17347 | fi |
17348 | done |
17349 | ;; |
17350 | esac |
17351 | |
17352 | exp_sym_flag='-bexport' |
17353 | no_entry_flag='-bnoentry' |
17354 | fi |
17355 | |
17356 | # When large executables or shared objects are built, AIX ld can |
17357 | # have problems creating the table of contents. If linking a library |
17358 | # or program results in "error TOC overflow" add -mminimal-toc to |
17359 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
17360 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
17361 | |
17362 | archive_cmds_GCJ='' |
17363 | hardcode_direct_GCJ=yes |
17364 | hardcode_libdir_separator_GCJ=':' |
17365 | link_all_deplibs_GCJ=yes |
17366 | |
17367 | if test "$GCC" = yes; then |
17368 | case $host_os in aix4.[012]|aix4.[012].*) |
17369 | # We only want to do this on AIX 4.2 and lower, the check |
17370 | # below for broken collect2 doesn't work under 4.3+ |
17371 | collect2name=`${CC} -print-prog-name=collect2` |
17372 | if test -f "$collect2name" && \ |
17373 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
17374 | then |
17375 | # We have reworked collect2 |
17376 | hardcode_direct_GCJ=yes |
17377 | else |
17378 | # We have old collect2 |
17379 | hardcode_direct_GCJ=unsupported |
17380 | # It fails to find uninstalled libraries when the uninstalled |
17381 | # path is not listed in the libpath. Setting hardcode_minus_L |
17382 | # to unsupported forces relinking |
17383 | hardcode_minus_L_GCJ=yes |
17384 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17385 | hardcode_libdir_separator_GCJ= |
17386 | fi |
17387 | ;; |
17388 | esac |
17389 | shared_flag='-shared' |
17390 | if test "$aix_use_runtimelinking" = yes; then |
17391 | shared_flag="$shared_flag "'${wl}-G' |
17392 | fi |
17393 | else |
17394 | # not using gcc |
17395 | if test "$host_cpu" = ia64; then |
17396 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
17397 | # chokes on -Wl,-G. The following line is correct: |
17398 | shared_flag='-G' |
17399 | else |
17400 | if test "$aix_use_runtimelinking" = yes; then |
17401 | shared_flag='${wl}-G' |
17402 | else |
17403 | shared_flag='${wl}-bM:SRE' |
17404 | fi |
17405 | fi |
17406 | fi |
17407 | |
17408 | # It seems that -bexpall does not export symbols beginning with |
17409 | # underscore (_), so it is better to generate a list of symbols to export. |
17410 | always_export_symbols_GCJ=yes |
17411 | if test "$aix_use_runtimelinking" = yes; then |
17412 | # Warning - without using the other runtime loading flags (-brtl), |
17413 | # -berok will link without error, but may produce a broken library. |
17414 | allow_undefined_flag_GCJ='-berok' |
17415 | # Determine the default libpath from the value encoded in an empty executable. |
17416 | cat >conftest.$ac_ext <<_ACEOF |
17417 | /* confdefs.h. */ |
17418 | _ACEOF |
17419 | cat confdefs.h >>conftest.$ac_ext |
17420 | cat >>conftest.$ac_ext <<_ACEOF |
17421 | /* end confdefs.h. */ |
17422 | |
17423 | int |
17424 | main () |
17425 | { |
17426 | |
17427 | ; |
17428 | return 0; |
17429 | } |
17430 | _ACEOF |
17431 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
17432 | if { (ac_try="$ac_link" |
17433 | case "(($ac_try" in |
17434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17435 | *) ac_try_echo=$ac_try;; |
17436 | esac |
17437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17438 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17439 | ac_status=$? |
17440 | grep -v '^ *+' conftest.er1 >conftest.err |
17441 | rm -f conftest.er1 |
17442 | cat conftest.err >&5 |
17443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
17444 | (exit $ac_status); } && { |
17445 | test -z "$ac_c_werror_flag" || |
17446 | test ! -s conftest.err |
17447 | } && test -s conftest$ac_exeext && |
17448 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17449 | |
17450 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17451 | }'` |
17452 | # Check for a 64-bit object if we didn't find anything. |
17453 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17454 | }'`; fi |
17455 | else |
17456 | echo "$as_me: failed program was:" >&5 |
17457 | sed 's/^/| /' conftest.$ac_ext >&5 |
17458 | |
dd184caf |
17459 | |
d9898ee8 |
17460 | fi |
dd184caf |
17461 | |
17462 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17463 | conftest$ac_exeext conftest.$ac_ext |
17464 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17465 | |
17466 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17467 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
17468 | else |
17469 | if test "$host_cpu" = ia64; then |
17470 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
17471 | allow_undefined_flag_GCJ="-z nodefs" |
17472 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
17473 | else |
17474 | # Determine the default libpath from the value encoded in an empty executable. |
17475 | cat >conftest.$ac_ext <<_ACEOF |
17476 | /* confdefs.h. */ |
17477 | _ACEOF |
17478 | cat confdefs.h >>conftest.$ac_ext |
17479 | cat >>conftest.$ac_ext <<_ACEOF |
17480 | /* end confdefs.h. */ |
17481 | |
17482 | int |
17483 | main () |
17484 | { |
17485 | |
17486 | ; |
17487 | return 0; |
17488 | } |
17489 | _ACEOF |
17490 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
17491 | if { (ac_try="$ac_link" |
17492 | case "(($ac_try" in |
17493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17494 | *) ac_try_echo=$ac_try;; |
17495 | esac |
17496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17497 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17498 | ac_status=$? |
17499 | grep -v '^ *+' conftest.er1 >conftest.err |
17500 | rm -f conftest.er1 |
17501 | cat conftest.err >&5 |
17502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
17503 | (exit $ac_status); } && { |
17504 | test -z "$ac_c_werror_flag" || |
17505 | test ! -s conftest.err |
17506 | } && test -s conftest$ac_exeext && |
17507 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17508 | |
17509 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17510 | }'` |
17511 | # Check for a 64-bit object if we didn't find anything. |
17512 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17513 | }'`; fi |
17514 | else |
17515 | echo "$as_me: failed program was:" >&5 |
17516 | sed 's/^/| /' conftest.$ac_ext >&5 |
17517 | |
dd184caf |
17518 | |
d9898ee8 |
17519 | fi |
dd184caf |
17520 | |
17521 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17522 | conftest$ac_exeext conftest.$ac_ext |
17523 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17524 | |
17525 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17526 | # Warning - without using the other run time loading flags, |
17527 | # -berok will link without error, but may produce a broken library. |
17528 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
17529 | allow_undefined_flag_GCJ=' ${wl}-berok' |
17530 | # Exported symbols can be pulled into shared objects from archives |
17531 | whole_archive_flag_spec_GCJ='$convenience' |
17532 | archive_cmds_need_lc_GCJ=yes |
17533 | # This is similar to how AIX traditionally builds its shared libraries. |
17534 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
17535 | fi |
17536 | fi |
17537 | ;; |
17538 | |
17539 | amigaos*) |
17540 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
17541 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17542 | hardcode_minus_L_GCJ=yes |
17543 | # see comment about different semantics on the GNU ld section |
17544 | ld_shlibs_GCJ=no |
17545 | ;; |
17546 | |
17547 | bsdi[45]*) |
17548 | export_dynamic_flag_spec_GCJ=-rdynamic |
17549 | ;; |
17550 | |
17551 | cygwin* | mingw* | pw32*) |
17552 | # When not using gcc, we currently assume that we are using |
17553 | # Microsoft Visual C++. |
17554 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
17555 | # no search path for DLLs. |
17556 | hardcode_libdir_flag_spec_GCJ=' ' |
17557 | allow_undefined_flag_GCJ=unsupported |
17558 | # Tell ltmain to make .lib files, not .a files. |
17559 | libext=lib |
17560 | # Tell ltmain to make .dll files, not .so files. |
17561 | shrext_cmds=".dll" |
17562 | # FIXME: Setting linknames here is a bad hack. |
17563 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
17564 | # The linker will automatically build a .lib file if we build a DLL. |
17565 | old_archive_From_new_cmds_GCJ='true' |
17566 | # FIXME: Should let the user specify the lib program. |
17567 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
17568 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
17569 | enable_shared_with_static_runtimes_GCJ=yes |
17570 | ;; |
17571 | |
17572 | darwin* | rhapsody*) |
17573 | case $host_os in |
17574 | rhapsody* | darwin1.[012]) |
17575 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
17576 | ;; |
17577 | *) # Darwin 1.3 on |
17578 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
17579 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17580 | else |
17581 | case ${MACOSX_DEPLOYMENT_TARGET} in |
17582 | 10.[012]) |
17583 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17584 | ;; |
17585 | 10.*) |
17586 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
17587 | ;; |
17588 | esac |
17589 | fi |
17590 | ;; |
17591 | esac |
17592 | archive_cmds_need_lc_GCJ=no |
17593 | hardcode_direct_GCJ=no |
17594 | hardcode_automatic_GCJ=yes |
17595 | hardcode_shlibpath_var_GCJ=unsupported |
17596 | whole_archive_flag_spec_GCJ='' |
17597 | link_all_deplibs_GCJ=yes |
17598 | if test "$GCC" = yes ; then |
17599 | output_verbose_link_cmd='echo' |
17600 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
17601 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17602 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17603 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
17604 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
17605 | else |
17606 | case $cc_basename in |
17607 | xlc*) |
17608 | output_verbose_link_cmd='echo' |
17609 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
17610 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17611 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17612 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
17613 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
17614 | ;; |
17615 | *) |
17616 | ld_shlibs_GCJ=no |
17617 | ;; |
17618 | esac |
17619 | fi |
17620 | ;; |
17621 | |
17622 | dgux*) |
17623 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17624 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17625 | hardcode_shlibpath_var_GCJ=no |
17626 | ;; |
17627 | |
17628 | freebsd1*) |
17629 | ld_shlibs_GCJ=no |
17630 | ;; |
17631 | |
17632 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
17633 | # support. Future versions do this automatically, but an explicit c++rt0.o |
17634 | # does not break anything, and helps significantly (at the cost of a little |
17635 | # extra space). |
17636 | freebsd2.2*) |
17637 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
17638 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17639 | hardcode_direct_GCJ=yes |
17640 | hardcode_shlibpath_var_GCJ=no |
17641 | ;; |
17642 | |
17643 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
17644 | freebsd2*) |
17645 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17646 | hardcode_direct_GCJ=yes |
17647 | hardcode_minus_L_GCJ=yes |
17648 | hardcode_shlibpath_var_GCJ=no |
17649 | ;; |
17650 | |
17651 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
17652 | freebsd* | kfreebsd*-gnu | dragonfly*) |
17653 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
17654 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17655 | hardcode_direct_GCJ=yes |
17656 | hardcode_shlibpath_var_GCJ=no |
17657 | ;; |
17658 | |
17659 | hpux9*) |
17660 | if test "$GCC" = yes; then |
17661 | archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
17662 | else |
17663 | archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
17664 | fi |
17665 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17666 | hardcode_libdir_separator_GCJ=: |
17667 | hardcode_direct_GCJ=yes |
17668 | |
17669 | # hardcode_minus_L: Not really in the search PATH, |
17670 | # but as the default location of the library. |
17671 | hardcode_minus_L_GCJ=yes |
17672 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17673 | ;; |
17674 | |
17675 | hpux10*) |
17676 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17677 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17678 | else |
17679 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
17680 | fi |
17681 | if test "$with_gnu_ld" = no; then |
17682 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17683 | hardcode_libdir_separator_GCJ=: |
17684 | |
17685 | hardcode_direct_GCJ=yes |
17686 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17687 | |
17688 | # hardcode_minus_L: Not really in the search PATH, |
17689 | # but as the default location of the library. |
17690 | hardcode_minus_L_GCJ=yes |
17691 | fi |
17692 | ;; |
17693 | |
17694 | hpux11*) |
17695 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17696 | case $host_cpu in |
17697 | hppa*64*) |
17698 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17699 | ;; |
17700 | ia64*) |
17701 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17702 | ;; |
17703 | *) |
17704 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17705 | ;; |
17706 | esac |
17707 | else |
17708 | case $host_cpu in |
17709 | hppa*64*) |
17710 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17711 | ;; |
17712 | ia64*) |
17713 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17714 | ;; |
17715 | *) |
17716 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17717 | ;; |
17718 | esac |
17719 | fi |
17720 | if test "$with_gnu_ld" = no; then |
17721 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17722 | hardcode_libdir_separator_GCJ=: |
17723 | |
17724 | case $host_cpu in |
17725 | hppa*64*|ia64*) |
17726 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
17727 | hardcode_direct_GCJ=no |
17728 | hardcode_shlibpath_var_GCJ=no |
17729 | ;; |
17730 | *) |
17731 | hardcode_direct_GCJ=yes |
17732 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17733 | |
17734 | # hardcode_minus_L: Not really in the search PATH, |
17735 | # but as the default location of the library. |
17736 | hardcode_minus_L_GCJ=yes |
17737 | ;; |
17738 | esac |
17739 | fi |
17740 | ;; |
17741 | |
17742 | irix5* | irix6* | nonstopux*) |
17743 | if test "$GCC" = yes; then |
17744 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
17745 | else |
17746 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
17747 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
17748 | fi |
17749 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17750 | hardcode_libdir_separator_GCJ=: |
17751 | link_all_deplibs_GCJ=yes |
17752 | ;; |
17753 | |
17754 | netbsd*) |
17755 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17756 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
17757 | else |
17758 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
17759 | fi |
17760 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17761 | hardcode_direct_GCJ=yes |
17762 | hardcode_shlibpath_var_GCJ=no |
17763 | ;; |
17764 | |
17765 | newsos6) |
17766 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17767 | hardcode_direct_GCJ=yes |
17768 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17769 | hardcode_libdir_separator_GCJ=: |
17770 | hardcode_shlibpath_var_GCJ=no |
17771 | ;; |
17772 | |
17773 | openbsd*) |
17774 | hardcode_direct_GCJ=yes |
17775 | hardcode_shlibpath_var_GCJ=no |
17776 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17777 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17778 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
17779 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17780 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17781 | else |
17782 | case $host_os in |
17783 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
17784 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17785 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17786 | ;; |
17787 | *) |
17788 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17789 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17790 | ;; |
17791 | esac |
17792 | fi |
17793 | ;; |
17794 | |
17795 | os2*) |
17796 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17797 | hardcode_minus_L_GCJ=yes |
17798 | allow_undefined_flag_GCJ=unsupported |
17799 | archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
17800 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
17801 | ;; |
17802 | |
17803 | osf3*) |
17804 | if test "$GCC" = yes; then |
17805 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17806 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
17807 | else |
17808 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17809 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
17810 | fi |
17811 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17812 | hardcode_libdir_separator_GCJ=: |
17813 | ;; |
17814 | |
17815 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
17816 | if test "$GCC" = yes; then |
17817 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17818 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
17819 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17820 | else |
17821 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17822 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
17823 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
17824 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
17825 | |
17826 | # Both c and cxx compiler support -rpath directly |
17827 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
17828 | fi |
17829 | hardcode_libdir_separator_GCJ=: |
17830 | ;; |
17831 | |
17832 | solaris*) |
17833 | no_undefined_flag_GCJ=' -z text' |
17834 | if test "$GCC" = yes; then |
17835 | wlarc='${wl}' |
17836 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17837 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17838 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
17839 | else |
17840 | wlarc='' |
17841 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17842 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17843 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
17844 | fi |
17845 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17846 | hardcode_shlibpath_var_GCJ=no |
17847 | case $host_os in |
17848 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
17849 | *) |
17850 | # The compiler driver will combine linker options so we |
17851 | # cannot just pass the convience library names through |
17852 | # without $wl, iff we do not link with $LD. |
17853 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
17854 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
17855 | case $wlarc in |
17856 | '') |
17857 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
17858 | *) |
17859 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
17860 | esac ;; |
17861 | esac |
17862 | link_all_deplibs_GCJ=yes |
17863 | ;; |
17864 | |
17865 | sunos4*) |
17866 | if test "x$host_vendor" = xsequent; then |
17867 | # Use $CC to link under sequent, because it throws in some extra .o |
17868 | # files that make .init and .fini sections work. |
17869 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
17870 | else |
17871 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
17872 | fi |
17873 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17874 | hardcode_direct_GCJ=yes |
17875 | hardcode_minus_L_GCJ=yes |
17876 | hardcode_shlibpath_var_GCJ=no |
17877 | ;; |
17878 | |
17879 | sysv4) |
17880 | case $host_vendor in |
17881 | sni) |
17882 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17883 | hardcode_direct_GCJ=yes # is this really true??? |
17884 | ;; |
17885 | siemens) |
17886 | ## LD is ld it makes a PLAMLIB |
17887 | ## CC just makes a GrossModule. |
17888 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
17889 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
17890 | hardcode_direct_GCJ=no |
17891 | ;; |
17892 | motorola) |
17893 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17894 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
17895 | ;; |
17896 | esac |
17897 | runpath_var='LD_RUN_PATH' |
17898 | hardcode_shlibpath_var_GCJ=no |
17899 | ;; |
17900 | |
17901 | sysv4.3*) |
17902 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17903 | hardcode_shlibpath_var_GCJ=no |
17904 | export_dynamic_flag_spec_GCJ='-Bexport' |
17905 | ;; |
17906 | |
17907 | sysv4*MP*) |
17908 | if test -d /usr/nec; then |
17909 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17910 | hardcode_shlibpath_var_GCJ=no |
17911 | runpath_var=LD_RUN_PATH |
17912 | hardcode_runpath_var=yes |
17913 | ld_shlibs_GCJ=yes |
17914 | fi |
17915 | ;; |
17916 | |
17917 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
17918 | no_undefined_flag_GCJ='${wl}-z,text' |
17919 | archive_cmds_need_lc_GCJ=no |
17920 | hardcode_shlibpath_var_GCJ=no |
17921 | runpath_var='LD_RUN_PATH' |
17922 | |
17923 | if test "$GCC" = yes; then |
17924 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17925 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17926 | else |
17927 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17928 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17929 | fi |
17930 | ;; |
17931 | |
17932 | sysv5* | sco3.2v5* | sco5v6*) |
17933 | # Note: We can NOT use -z defs as we might desire, because we do not |
17934 | # link with -lc, and that would cause any symbols used from libc to |
17935 | # always be unresolved, which means just about no library would |
17936 | # ever link correctly. If we're not using GNU ld we use -z text |
17937 | # though, which does catch some bad symbols but isn't as heavy-handed |
17938 | # as -z defs. |
17939 | no_undefined_flag_GCJ='${wl}-z,text' |
17940 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
17941 | archive_cmds_need_lc_GCJ=no |
17942 | hardcode_shlibpath_var_GCJ=no |
17943 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
17944 | hardcode_libdir_separator_GCJ=':' |
17945 | link_all_deplibs_GCJ=yes |
17946 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
17947 | runpath_var='LD_RUN_PATH' |
17948 | |
17949 | if test "$GCC" = yes; then |
17950 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17951 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17952 | else |
17953 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17954 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17955 | fi |
17956 | ;; |
17957 | |
17958 | uts4*) |
17959 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17960 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17961 | hardcode_shlibpath_var_GCJ=no |
17962 | ;; |
17963 | |
17964 | *) |
17965 | ld_shlibs_GCJ=no |
17966 | ;; |
17967 | esac |
17968 | fi |
17969 | |
dd184caf |
17970 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17971 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
d9898ee8 |
17972 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17973 | |
17974 | # |
17975 | # Do we need to explicitly link libc? |
17976 | # |
17977 | case "x$archive_cmds_need_lc_GCJ" in |
17978 | x|xyes) |
17979 | # Assume -lc should be added |
17980 | archive_cmds_need_lc_GCJ=yes |
17981 | |
17982 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
17983 | case $archive_cmds_GCJ in |
17984 | *'~'*) |
17985 | # FIXME: we may have to deal with multi-command sequences. |
17986 | ;; |
17987 | '$CC '*) |
17988 | # Test whether the compiler implicitly links with -lc since on some |
17989 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
17990 | # to ld, don't add -lc before -lgcc. |
dd184caf |
17991 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17992 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
17993 | $rm conftest* |
17994 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
17995 | |
17996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17997 | (eval $ac_compile) 2>&5 |
17998 | ac_status=$? |
17999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18000 | (exit $ac_status); } 2>conftest.err; then |
18001 | soname=conftest |
18002 | lib=conftest |
18003 | libobjs=conftest.$ac_objext |
18004 | deplibs= |
18005 | wl=$lt_prog_compiler_wl_GCJ |
18006 | pic_flag=$lt_prog_compiler_pic_GCJ |
18007 | compiler_flags=-v |
18008 | linker_flags=-v |
18009 | verstring= |
18010 | output_objdir=. |
18011 | libname=conftest |
18012 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
18013 | allow_undefined_flag_GCJ= |
18014 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
18015 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
18016 | ac_status=$? |
18017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18018 | (exit $ac_status); } |
18019 | then |
18020 | archive_cmds_need_lc_GCJ=no |
18021 | else |
18022 | archive_cmds_need_lc_GCJ=yes |
18023 | fi |
18024 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
18025 | else |
18026 | cat conftest.err 1>&5 |
18027 | fi |
18028 | $rm conftest* |
dd184caf |
18029 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
18030 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
d9898ee8 |
18031 | ;; |
18032 | esac |
18033 | fi |
18034 | ;; |
18035 | esac |
18036 | |
dd184caf |
18037 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
18038 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
18039 | library_names_spec= |
18040 | libname_spec='lib$name' |
18041 | soname_spec= |
18042 | shrext_cmds=".so" |
18043 | postinstall_cmds= |
18044 | postuninstall_cmds= |
18045 | finish_cmds= |
18046 | finish_eval= |
18047 | shlibpath_var= |
18048 | shlibpath_overrides_runpath=unknown |
18049 | version_type=none |
18050 | dynamic_linker="$host_os ld.so" |
18051 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
18052 | if test "$GCC" = yes; then |
18053 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
18054 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
18055 | # if the path contains ";" then we assume it to be the separator |
18056 | # otherwise default to the standard path separator (i.e. ":") - it is |
18057 | # assumed that no part of a normal pathname contains ";" but that should |
18058 | # okay in the real world where ";" in dirpaths is itself problematic. |
18059 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
18060 | else |
18061 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
18062 | fi |
18063 | else |
18064 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
18065 | fi |
18066 | need_lib_prefix=unknown |
18067 | hardcode_into_libs=no |
18068 | |
18069 | # when you set need_version to no, make sure it does not cause -set_version |
18070 | # flags to be left without arguments |
18071 | need_version=unknown |
18072 | |
18073 | case $host_os in |
18074 | aix3*) |
18075 | version_type=linux |
18076 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
18077 | shlibpath_var=LIBPATH |
18078 | |
18079 | # AIX 3 has no versioning support, so we append a major version to the name. |
18080 | soname_spec='${libname}${release}${shared_ext}$major' |
18081 | ;; |
18082 | |
18083 | aix4* | aix5*) |
18084 | version_type=linux |
18085 | need_lib_prefix=no |
18086 | need_version=no |
18087 | hardcode_into_libs=yes |
18088 | if test "$host_cpu" = ia64; then |
18089 | # AIX 5 supports IA64 |
18090 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
18091 | shlibpath_var=LD_LIBRARY_PATH |
18092 | else |
18093 | # With GCC up to 2.95.x, collect2 would create an import file |
18094 | # for dependence libraries. The import file would start with |
18095 | # the line `#! .'. This would cause the generated library to |
18096 | # depend on `.', always an invalid library. This was fixed in |
18097 | # development snapshots of GCC prior to 3.0. |
18098 | case $host_os in |
18099 | aix4 | aix4.[01] | aix4.[01].*) |
18100 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
18101 | echo ' yes ' |
18102 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
18103 | : |
18104 | else |
18105 | can_build_shared=no |
18106 | fi |
18107 | ;; |
18108 | esac |
18109 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
18110 | # soname into executable. Probably we can add versioning support to |
18111 | # collect2, so additional links can be useful in future. |
18112 | if test "$aix_use_runtimelinking" = yes; then |
18113 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
18114 | # instead of lib<name>.a to let people know that these are not |
18115 | # typical AIX shared libraries. |
18116 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18117 | else |
18118 | # We preserve .a as extension for shared libraries through AIX4.2 |
18119 | # and later when we are not doing run time linking. |
18120 | library_names_spec='${libname}${release}.a $libname.a' |
18121 | soname_spec='${libname}${release}${shared_ext}$major' |
18122 | fi |
18123 | shlibpath_var=LIBPATH |
18124 | fi |
18125 | ;; |
18126 | |
18127 | amigaos*) |
18128 | library_names_spec='$libname.ixlibrary $libname.a' |
18129 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
18130 | 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' |
18131 | ;; |
18132 | |
18133 | beos*) |
18134 | library_names_spec='${libname}${shared_ext}' |
18135 | dynamic_linker="$host_os ld.so" |
18136 | shlibpath_var=LIBRARY_PATH |
18137 | ;; |
18138 | |
18139 | bsdi[45]*) |
18140 | version_type=linux |
18141 | need_version=no |
18142 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18143 | soname_spec='${libname}${release}${shared_ext}$major' |
18144 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
18145 | shlibpath_var=LD_LIBRARY_PATH |
18146 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
18147 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
18148 | # the default ld.so.conf also contains /usr/contrib/lib and |
18149 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
18150 | # libtool to hard-code these into programs |
18151 | ;; |
18152 | |
18153 | cygwin* | mingw* | pw32*) |
18154 | version_type=windows |
18155 | shrext_cmds=".dll" |
18156 | need_version=no |
18157 | need_lib_prefix=no |
18158 | |
18159 | case $GCC,$host_os in |
18160 | yes,cygwin* | yes,mingw* | yes,pw32*) |
18161 | library_names_spec='$libname.dll.a' |
18162 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
18163 | postinstall_cmds='base_file=`basename \${file}`~ |
18164 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
18165 | dldir=$destdir/`dirname \$dlpath`~ |
18166 | test -d \$dldir || mkdir -p \$dldir~ |
18167 | $install_prog $dir/$dlname \$dldir/$dlname~ |
18168 | chmod a+x \$dldir/$dlname' |
18169 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
18170 | dlpath=$dir/\$dldll~ |
18171 | $rm \$dlpath' |
18172 | shlibpath_overrides_runpath=yes |
18173 | |
18174 | case $host_os in |
18175 | cygwin*) |
18176 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
18177 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18178 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
18179 | ;; |
18180 | mingw*) |
18181 | # MinGW DLLs use traditional 'lib' prefix |
18182 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18183 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
18184 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
18185 | # It is most probably a Windows format PATH printed by |
18186 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
18187 | # path with ; separators, and with drive letters. We can handle the |
18188 | # drive letters (cygwin fileutils understands them), so leave them, |
18189 | # especially as we might pass files found there to a mingw objdump, |
18190 | # which wouldn't understand a cygwinified path. Ahh. |
18191 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
18192 | else |
18193 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
18194 | fi |
18195 | ;; |
18196 | pw32*) |
18197 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
18198 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18199 | ;; |
18200 | esac |
18201 | ;; |
18202 | |
18203 | *) |
18204 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
18205 | ;; |
18206 | esac |
18207 | dynamic_linker='Win32 ld.exe' |
18208 | # FIXME: first we should search . and the directory the executable is in |
18209 | shlibpath_var=PATH |
18210 | ;; |
18211 | |
18212 | darwin* | rhapsody*) |
18213 | dynamic_linker="$host_os dyld" |
18214 | version_type=darwin |
18215 | need_lib_prefix=no |
18216 | need_version=no |
18217 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
18218 | soname_spec='${libname}${release}${major}$shared_ext' |
18219 | shlibpath_overrides_runpath=yes |
18220 | shlibpath_var=DYLD_LIBRARY_PATH |
18221 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
18222 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
18223 | if test "$GCC" = yes; then |
18224 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
18225 | else |
18226 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
18227 | fi |
18228 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
18229 | ;; |
18230 | |
18231 | dgux*) |
18232 | version_type=linux |
18233 | need_lib_prefix=no |
18234 | need_version=no |
18235 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
18236 | soname_spec='${libname}${release}${shared_ext}$major' |
18237 | shlibpath_var=LD_LIBRARY_PATH |
18238 | ;; |
18239 | |
18240 | freebsd1*) |
18241 | dynamic_linker=no |
18242 | ;; |
18243 | |
18244 | kfreebsd*-gnu) |
18245 | version_type=linux |
18246 | need_lib_prefix=no |
18247 | need_version=no |
18248 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18249 | soname_spec='${libname}${release}${shared_ext}$major' |
18250 | shlibpath_var=LD_LIBRARY_PATH |
18251 | shlibpath_overrides_runpath=no |
18252 | hardcode_into_libs=yes |
18253 | dynamic_linker='GNU ld.so' |
18254 | ;; |
18255 | |
18256 | freebsd* | dragonfly*) |
18257 | # DragonFly does not have aout. When/if they implement a new |
18258 | # versioning mechanism, adjust this. |
18259 | if test -x /usr/bin/objformat; then |
18260 | objformat=`/usr/bin/objformat` |
18261 | else |
18262 | case $host_os in |
18263 | freebsd[123]*) objformat=aout ;; |
18264 | *) objformat=elf ;; |
18265 | esac |
18266 | fi |
18267 | version_type=freebsd-$objformat |
18268 | case $version_type in |
18269 | freebsd-elf*) |
18270 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18271 | need_version=no |
18272 | need_lib_prefix=no |
18273 | ;; |
18274 | freebsd-*) |
18275 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
18276 | need_version=yes |
18277 | ;; |
18278 | esac |
18279 | shlibpath_var=LD_LIBRARY_PATH |
18280 | case $host_os in |
18281 | freebsd2*) |
18282 | shlibpath_overrides_runpath=yes |
18283 | ;; |
18284 | freebsd3.[01]* | freebsdelf3.[01]*) |
18285 | shlibpath_overrides_runpath=yes |
18286 | hardcode_into_libs=yes |
18287 | ;; |
18288 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
18289 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
18290 | shlibpath_overrides_runpath=no |
18291 | hardcode_into_libs=yes |
18292 | ;; |
18293 | freebsd*) # from 4.6 on |
18294 | shlibpath_overrides_runpath=yes |
18295 | hardcode_into_libs=yes |
18296 | ;; |
18297 | esac |
18298 | ;; |
18299 | |
18300 | gnu*) |
18301 | version_type=linux |
18302 | need_lib_prefix=no |
18303 | need_version=no |
18304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
18305 | soname_spec='${libname}${release}${shared_ext}$major' |
18306 | shlibpath_var=LD_LIBRARY_PATH |
18307 | hardcode_into_libs=yes |
18308 | ;; |
18309 | |
18310 | hpux9* | hpux10* | hpux11*) |
18311 | # Give a soname corresponding to the major version so that dld.sl refuses to |
18312 | # link against other versions. |
18313 | version_type=sunos |
18314 | need_lib_prefix=no |
18315 | need_version=no |
18316 | case $host_cpu in |
18317 | ia64*) |
18318 | shrext_cmds='.so' |
18319 | hardcode_into_libs=yes |
18320 | dynamic_linker="$host_os dld.so" |
18321 | shlibpath_var=LD_LIBRARY_PATH |
18322 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18323 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18324 | soname_spec='${libname}${release}${shared_ext}$major' |
18325 | if test "X$HPUX_IA64_MODE" = X32; then |
18326 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
18327 | else |
18328 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
18329 | fi |
18330 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18331 | ;; |
18332 | hppa*64*) |
18333 | shrext_cmds='.sl' |
18334 | hardcode_into_libs=yes |
18335 | dynamic_linker="$host_os dld.sl" |
18336 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
18337 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18338 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18339 | soname_spec='${libname}${release}${shared_ext}$major' |
18340 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
18341 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18342 | ;; |
18343 | *) |
18344 | shrext_cmds='.sl' |
18345 | dynamic_linker="$host_os dld.sl" |
18346 | shlibpath_var=SHLIB_PATH |
18347 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
18348 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18349 | soname_spec='${libname}${release}${shared_ext}$major' |
18350 | ;; |
18351 | esac |
18352 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
18353 | postinstall_cmds='chmod 555 $lib' |
18354 | ;; |
18355 | |
18356 | interix3*) |
18357 | version_type=linux |
18358 | need_lib_prefix=no |
18359 | need_version=no |
18360 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18361 | soname_spec='${libname}${release}${shared_ext}$major' |
18362 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
18363 | shlibpath_var=LD_LIBRARY_PATH |
18364 | shlibpath_overrides_runpath=no |
18365 | hardcode_into_libs=yes |
18366 | ;; |
18367 | |
18368 | irix5* | irix6* | nonstopux*) |
18369 | case $host_os in |
18370 | nonstopux*) version_type=nonstopux ;; |
18371 | *) |
18372 | if test "$lt_cv_prog_gnu_ld" = yes; then |
18373 | version_type=linux |
18374 | else |
18375 | version_type=irix |
18376 | fi ;; |
18377 | esac |
18378 | need_lib_prefix=no |
18379 | need_version=no |
18380 | soname_spec='${libname}${release}${shared_ext}$major' |
18381 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
18382 | case $host_os in |
18383 | irix5* | nonstopux*) |
18384 | libsuff= shlibsuff= |
18385 | ;; |
18386 | *) |
18387 | case $LD in # libtool.m4 will add one of these switches to LD |
18388 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
18389 | libsuff= shlibsuff= libmagic=32-bit;; |
18390 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
18391 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
18392 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
18393 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
18394 | *) libsuff= shlibsuff= libmagic=never-match;; |
18395 | esac |
18396 | ;; |
18397 | esac |
18398 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
18399 | shlibpath_overrides_runpath=no |
18400 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
18401 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
18402 | hardcode_into_libs=yes |
18403 | ;; |
18404 | |
18405 | # No shared lib support for Linux oldld, aout, or coff. |
18406 | linux*oldld* | linux*aout* | linux*coff*) |
18407 | dynamic_linker=no |
18408 | ;; |
18409 | |
18410 | # This must be Linux ELF. |
18411 | linux*) |
18412 | version_type=linux |
18413 | need_lib_prefix=no |
18414 | need_version=no |
18415 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18416 | soname_spec='${libname}${release}${shared_ext}$major' |
18417 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
18418 | shlibpath_var=LD_LIBRARY_PATH |
18419 | shlibpath_overrides_runpath=no |
18420 | # This implies no fast_install, which is unacceptable. |
18421 | # Some rework will be needed to allow for fast_install |
18422 | # before this can be enabled. |
18423 | hardcode_into_libs=yes |
18424 | |
18425 | # find out which ABI we are using |
18426 | libsuff= |
18427 | case "$host_cpu" in |
18428 | x86_64*|s390x*|powerpc64*) |
dd184caf |
18429 | echo '#line 18429 "configure"' > conftest.$ac_ext |
d9898ee8 |
18430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18431 | (eval $ac_compile) 2>&5 |
18432 | ac_status=$? |
18433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18434 | (exit $ac_status); }; then |
18435 | case `/usr/bin/file conftest.$ac_objext` in |
18436 | *64-bit*) |
18437 | libsuff=64 |
18438 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
18439 | ;; |
18440 | esac |
18441 | fi |
18442 | rm -rf conftest* |
18443 | ;; |
18444 | esac |
18445 | |
18446 | # Append ld.so.conf contents to the search path |
18447 | if test -f /etc/ld.so.conf; then |
dd184caf |
18448 | 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
18449 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
18450 | fi |
18451 | |
18452 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
18453 | # powerpc, because MkLinux only supported shared libraries with the |
18454 | # GNU dynamic linker. Since this was broken with cross compilers, |
18455 | # most powerpc-linux boxes support dynamic linking these days and |
18456 | # people can always --disable-shared, the test was removed, and we |
18457 | # assume the GNU/Linux dynamic linker is in use. |
18458 | dynamic_linker='GNU/Linux ld.so' |
18459 | ;; |
18460 | |
18461 | knetbsd*-gnu) |
18462 | version_type=linux |
18463 | need_lib_prefix=no |
18464 | need_version=no |
18465 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18466 | soname_spec='${libname}${release}${shared_ext}$major' |
18467 | shlibpath_var=LD_LIBRARY_PATH |
18468 | shlibpath_overrides_runpath=no |
18469 | hardcode_into_libs=yes |
18470 | dynamic_linker='GNU ld.so' |
18471 | ;; |
18472 | |
18473 | netbsd*) |
18474 | version_type=sunos |
18475 | need_lib_prefix=no |
18476 | need_version=no |
18477 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
18478 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18479 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18480 | dynamic_linker='NetBSD (a.out) ld.so' |
18481 | else |
18482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18483 | soname_spec='${libname}${release}${shared_ext}$major' |
18484 | dynamic_linker='NetBSD ld.elf_so' |
18485 | fi |
18486 | shlibpath_var=LD_LIBRARY_PATH |
18487 | shlibpath_overrides_runpath=yes |
18488 | hardcode_into_libs=yes |
18489 | ;; |
18490 | |
18491 | newsos6) |
18492 | version_type=linux |
18493 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18494 | shlibpath_var=LD_LIBRARY_PATH |
18495 | shlibpath_overrides_runpath=yes |
18496 | ;; |
18497 | |
18498 | nto-qnx*) |
18499 | version_type=linux |
18500 | need_lib_prefix=no |
18501 | need_version=no |
18502 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18503 | soname_spec='${libname}${release}${shared_ext}$major' |
18504 | shlibpath_var=LD_LIBRARY_PATH |
18505 | shlibpath_overrides_runpath=yes |
18506 | ;; |
18507 | |
18508 | openbsd*) |
18509 | version_type=sunos |
18510 | sys_lib_dlsearch_path_spec="/usr/lib" |
18511 | need_lib_prefix=no |
18512 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
18513 | case $host_os in |
18514 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
18515 | *) need_version=no ;; |
18516 | esac |
18517 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18518 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18519 | shlibpath_var=LD_LIBRARY_PATH |
18520 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
18521 | case $host_os in |
18522 | openbsd2.[89] | openbsd2.[89].*) |
18523 | shlibpath_overrides_runpath=no |
18524 | ;; |
18525 | *) |
18526 | shlibpath_overrides_runpath=yes |
18527 | ;; |
18528 | esac |
18529 | else |
18530 | shlibpath_overrides_runpath=yes |
18531 | fi |
18532 | ;; |
18533 | |
18534 | os2*) |
18535 | libname_spec='$name' |
18536 | shrext_cmds=".dll" |
18537 | need_lib_prefix=no |
18538 | library_names_spec='$libname${shared_ext} $libname.a' |
18539 | dynamic_linker='OS/2 ld.exe' |
18540 | shlibpath_var=LIBPATH |
18541 | ;; |
18542 | |
18543 | osf3* | osf4* | osf5*) |
18544 | version_type=osf |
18545 | need_lib_prefix=no |
18546 | need_version=no |
18547 | soname_spec='${libname}${release}${shared_ext}$major' |
18548 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18549 | shlibpath_var=LD_LIBRARY_PATH |
18550 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
18551 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
18552 | ;; |
18553 | |
18554 | solaris*) |
18555 | version_type=linux |
18556 | need_lib_prefix=no |
18557 | need_version=no |
18558 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18559 | soname_spec='${libname}${release}${shared_ext}$major' |
18560 | shlibpath_var=LD_LIBRARY_PATH |
18561 | shlibpath_overrides_runpath=yes |
18562 | hardcode_into_libs=yes |
18563 | # ldd complains unless libraries are executable |
18564 | postinstall_cmds='chmod +x $lib' |
18565 | ;; |
18566 | |
18567 | sunos4*) |
18568 | version_type=sunos |
18569 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18570 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
18571 | shlibpath_var=LD_LIBRARY_PATH |
18572 | shlibpath_overrides_runpath=yes |
18573 | if test "$with_gnu_ld" = yes; then |
18574 | need_lib_prefix=no |
18575 | fi |
18576 | need_version=yes |
18577 | ;; |
18578 | |
18579 | sysv4 | sysv4.3*) |
18580 | version_type=linux |
18581 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18582 | soname_spec='${libname}${release}${shared_ext}$major' |
18583 | shlibpath_var=LD_LIBRARY_PATH |
18584 | case $host_vendor in |
18585 | sni) |
18586 | shlibpath_overrides_runpath=no |
18587 | need_lib_prefix=no |
18588 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
18589 | runpath_var=LD_RUN_PATH |
18590 | ;; |
18591 | siemens) |
18592 | need_lib_prefix=no |
18593 | ;; |
18594 | motorola) |
18595 | need_lib_prefix=no |
18596 | need_version=no |
18597 | shlibpath_overrides_runpath=no |
18598 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
18599 | ;; |
18600 | esac |
18601 | ;; |
18602 | |
18603 | sysv4*MP*) |
18604 | if test -d /usr/nec ;then |
18605 | version_type=linux |
18606 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
18607 | soname_spec='$libname${shared_ext}.$major' |
18608 | shlibpath_var=LD_LIBRARY_PATH |
18609 | fi |
18610 | ;; |
18611 | |
18612 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
18613 | version_type=freebsd-elf |
18614 | need_lib_prefix=no |
18615 | need_version=no |
18616 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18617 | soname_spec='${libname}${release}${shared_ext}$major' |
18618 | shlibpath_var=LD_LIBRARY_PATH |
18619 | hardcode_into_libs=yes |
18620 | if test "$with_gnu_ld" = yes; then |
18621 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
18622 | shlibpath_overrides_runpath=no |
18623 | else |
18624 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
18625 | shlibpath_overrides_runpath=yes |
18626 | case $host_os in |
18627 | sco3.2v5*) |
18628 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
18629 | ;; |
18630 | esac |
18631 | fi |
18632 | sys_lib_dlsearch_path_spec='/usr/lib' |
18633 | ;; |
18634 | |
18635 | uts4*) |
18636 | version_type=linux |
18637 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18638 | soname_spec='${libname}${release}${shared_ext}$major' |
18639 | shlibpath_var=LD_LIBRARY_PATH |
18640 | ;; |
18641 | |
18642 | *) |
18643 | dynamic_linker=no |
18644 | ;; |
18645 | esac |
dd184caf |
18646 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
18647 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
18648 | test "$dynamic_linker" = no && can_build_shared=no |
18649 | |
18650 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
18651 | if test "$GCC" = yes; then |
18652 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
18653 | fi |
18654 | |
dd184caf |
18655 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
18656 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
18657 | hardcode_action_GCJ= |
18658 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
18659 | test -n "$runpath_var_GCJ" || \ |
18660 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
18661 | |
18662 | # We can hardcode non-existant directories. |
18663 | if test "$hardcode_direct_GCJ" != no && |
18664 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
18665 | # have to relink, otherwise we might link with an installed library |
18666 | # when we should be linking with a yet-to-be-installed one |
18667 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
18668 | test "$hardcode_minus_L_GCJ" != no; then |
18669 | # Linking always hardcodes the temporary library directory. |
18670 | hardcode_action_GCJ=relink |
18671 | else |
18672 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
18673 | hardcode_action_GCJ=immediate |
18674 | fi |
18675 | else |
18676 | # We cannot hardcode anything, or else we can only hardcode existing |
18677 | # directories. |
18678 | hardcode_action_GCJ=unsupported |
18679 | fi |
dd184caf |
18680 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
18681 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
d9898ee8 |
18682 | |
18683 | if test "$hardcode_action_GCJ" = relink; then |
18684 | # Fast installation is not supported |
18685 | enable_fast_install=no |
18686 | elif test "$shlibpath_overrides_runpath" = yes || |
18687 | test "$enable_shared" = no; then |
18688 | # Fast installation is not necessary |
18689 | enable_fast_install=needless |
18690 | fi |
18691 | |
18692 | |
18693 | # The else clause should only fire when bootstrapping the |
18694 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18695 | # with your package, and you will get complaints that there are |
18696 | # no rules to generate ltmain.sh. |
18697 | if test -f "$ltmain"; then |
18698 | # See if we are running on zsh, and set the options which allow our commands through |
18699 | # without removal of \ escapes. |
18700 | if test -n "${ZSH_VERSION+set}" ; then |
18701 | setopt NO_GLOB_SUBST |
18702 | fi |
18703 | # Now quote all the things that may contain metacharacters while being |
18704 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18705 | # variables and quote the copies for generation of the libtool script. |
18706 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18707 | SED SHELL STRIP \ |
18708 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18709 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18710 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18711 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18712 | lt_cv_sys_global_symbol_to_c_name_address \ |
18713 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18714 | old_postinstall_cmds old_postuninstall_cmds \ |
18715 | compiler_GCJ \ |
18716 | CC_GCJ \ |
18717 | LD_GCJ \ |
18718 | lt_prog_compiler_wl_GCJ \ |
18719 | lt_prog_compiler_pic_GCJ \ |
18720 | lt_prog_compiler_static_GCJ \ |
18721 | lt_prog_compiler_no_builtin_flag_GCJ \ |
18722 | export_dynamic_flag_spec_GCJ \ |
18723 | thread_safe_flag_spec_GCJ \ |
18724 | whole_archive_flag_spec_GCJ \ |
18725 | enable_shared_with_static_runtimes_GCJ \ |
18726 | old_archive_cmds_GCJ \ |
18727 | old_archive_from_new_cmds_GCJ \ |
18728 | predep_objects_GCJ \ |
18729 | postdep_objects_GCJ \ |
18730 | predeps_GCJ \ |
18731 | postdeps_GCJ \ |
18732 | compiler_lib_search_path_GCJ \ |
18733 | archive_cmds_GCJ \ |
18734 | archive_expsym_cmds_GCJ \ |
18735 | postinstall_cmds_GCJ \ |
18736 | postuninstall_cmds_GCJ \ |
18737 | old_archive_from_expsyms_cmds_GCJ \ |
18738 | allow_undefined_flag_GCJ \ |
18739 | no_undefined_flag_GCJ \ |
18740 | export_symbols_cmds_GCJ \ |
18741 | hardcode_libdir_flag_spec_GCJ \ |
18742 | hardcode_libdir_flag_spec_ld_GCJ \ |
18743 | hardcode_libdir_separator_GCJ \ |
18744 | hardcode_automatic_GCJ \ |
18745 | module_cmds_GCJ \ |
18746 | module_expsym_cmds_GCJ \ |
18747 | lt_cv_prog_compiler_c_o_GCJ \ |
18748 | exclude_expsyms_GCJ \ |
18749 | include_expsyms_GCJ; do |
18750 | |
18751 | case $var in |
18752 | old_archive_cmds_GCJ | \ |
18753 | old_archive_from_new_cmds_GCJ | \ |
18754 | archive_cmds_GCJ | \ |
18755 | archive_expsym_cmds_GCJ | \ |
18756 | module_cmds_GCJ | \ |
18757 | module_expsym_cmds_GCJ | \ |
18758 | old_archive_from_expsyms_cmds_GCJ | \ |
18759 | export_symbols_cmds_GCJ | \ |
18760 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18761 | postinstall_cmds | postuninstall_cmds | \ |
18762 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18763 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18764 | # Double-quote double-evaled strings. |
18765 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18766 | ;; |
18767 | *) |
18768 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18769 | ;; |
18770 | esac |
18771 | done |
18772 | |
18773 | case $lt_echo in |
18774 | *'\$0 --fallback-echo"') |
18775 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18776 | ;; |
18777 | esac |
18778 | |
18779 | cfgfile="$ofile" |
18780 | |
18781 | cat <<__EOF__ >> "$cfgfile" |
18782 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18783 | |
18784 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18785 | |
18786 | # Shell to use when invoking shell scripts. |
18787 | SHELL=$lt_SHELL |
18788 | |
18789 | # Whether or not to build shared libraries. |
18790 | build_libtool_libs=$enable_shared |
18791 | |
18792 | # Whether or not to build static libraries. |
18793 | build_old_libs=$enable_static |
18794 | |
18795 | # Whether or not to add -lc for building shared libraries. |
18796 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
18797 | |
18798 | # Whether or not to disallow shared libs when runtime libs are static |
18799 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
18800 | |
18801 | # Whether or not to optimize for fast installation. |
18802 | fast_install=$enable_fast_install |
18803 | |
18804 | # The host system. |
18805 | host_alias=$host_alias |
18806 | host=$host |
18807 | host_os=$host_os |
18808 | |
18809 | # The build system. |
18810 | build_alias=$build_alias |
18811 | build=$build |
18812 | build_os=$build_os |
18813 | |
18814 | # An echo program that does not interpret backslashes. |
18815 | echo=$lt_echo |
18816 | |
18817 | # The archiver. |
18818 | AR=$lt_AR |
18819 | AR_FLAGS=$lt_AR_FLAGS |
18820 | |
18821 | # A C compiler. |
18822 | LTCC=$lt_LTCC |
18823 | |
18824 | # LTCC compiler flags. |
18825 | LTCFLAGS=$lt_LTCFLAGS |
18826 | |
18827 | # A language-specific compiler. |
18828 | CC=$lt_compiler_GCJ |
18829 | |
18830 | # Is the compiler the GNU C compiler? |
18831 | with_gcc=$GCC_GCJ |
18832 | |
d9898ee8 |
18833 | # An ERE matcher. |
18834 | EGREP=$lt_EGREP |
18835 | |
18836 | # The linker used to build libraries. |
18837 | LD=$lt_LD_GCJ |
18838 | |
18839 | # Whether we need hard or soft links. |
18840 | LN_S=$lt_LN_S |
18841 | |
18842 | # A BSD-compatible nm program. |
18843 | NM=$lt_NM |
18844 | |
18845 | # A symbol stripping program |
18846 | STRIP=$lt_STRIP |
18847 | |
18848 | # Used to examine libraries when file_magic_cmd begins "file" |
18849 | MAGIC_CMD=$MAGIC_CMD |
18850 | |
18851 | # Used on cygwin: DLL creation program. |
18852 | DLLTOOL="$DLLTOOL" |
18853 | |
18854 | # Used on cygwin: object dumper. |
18855 | OBJDUMP="$OBJDUMP" |
18856 | |
18857 | # Used on cygwin: assembler. |
18858 | AS="$AS" |
18859 | |
18860 | # The name of the directory that contains temporary libtool files. |
18861 | objdir=$objdir |
18862 | |
18863 | # How to create reloadable object files. |
18864 | reload_flag=$lt_reload_flag |
18865 | reload_cmds=$lt_reload_cmds |
18866 | |
18867 | # How to pass a linker flag through the compiler. |
18868 | wl=$lt_lt_prog_compiler_wl_GCJ |
18869 | |
18870 | # Object file suffix (normally "o"). |
18871 | objext="$ac_objext" |
18872 | |
18873 | # Old archive suffix (normally "a"). |
18874 | libext="$libext" |
18875 | |
18876 | # Shared library suffix (normally ".so"). |
18877 | shrext_cmds='$shrext_cmds' |
18878 | |
18879 | # Executable file suffix (normally ""). |
18880 | exeext="$exeext" |
18881 | |
18882 | # Additional compiler flags for building library objects. |
18883 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
18884 | pic_mode=$pic_mode |
18885 | |
18886 | # What is the maximum length of a command? |
18887 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18888 | |
18889 | # Does compiler simultaneously support -c and -o options? |
18890 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
18891 | |
18892 | # Must we lock files when doing compilation? |
18893 | need_locks=$lt_need_locks |
18894 | |
18895 | # Do we need the lib prefix for modules? |
18896 | need_lib_prefix=$need_lib_prefix |
18897 | |
18898 | # Do we need a version for libraries? |
18899 | need_version=$need_version |
18900 | |
18901 | # Whether dlopen is supported. |
18902 | dlopen_support=$enable_dlopen |
18903 | |
18904 | # Whether dlopen of programs is supported. |
18905 | dlopen_self=$enable_dlopen_self |
18906 | |
18907 | # Whether dlopen of statically linked programs is supported. |
18908 | dlopen_self_static=$enable_dlopen_self_static |
18909 | |
18910 | # Compiler flag to prevent dynamic linking. |
18911 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
18912 | |
18913 | # Compiler flag to turn off builtin functions. |
18914 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
18915 | |
18916 | # Compiler flag to allow reflexive dlopens. |
18917 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
18918 | |
18919 | # Compiler flag to generate shared objects directly from archives. |
18920 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
18921 | |
18922 | # Compiler flag to generate thread-safe objects. |
18923 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
18924 | |
18925 | # Library versioning type. |
18926 | version_type=$version_type |
18927 | |
18928 | # Format of library name prefix. |
18929 | libname_spec=$lt_libname_spec |
18930 | |
18931 | # List of archive names. First name is the real one, the rest are links. |
18932 | # The last name is the one that the linker finds with -lNAME. |
18933 | library_names_spec=$lt_library_names_spec |
18934 | |
18935 | # The coded name of the library, if different from the real name. |
18936 | soname_spec=$lt_soname_spec |
18937 | |
18938 | # Commands used to build and install an old-style archive. |
18939 | RANLIB=$lt_RANLIB |
18940 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
18941 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18942 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18943 | |
18944 | # Create an old-style archive from a shared archive. |
18945 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
18946 | |
18947 | # Create a temporary old-style archive to link instead of a shared archive. |
18948 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
18949 | |
18950 | # Commands used to build and install a shared archive. |
18951 | archive_cmds=$lt_archive_cmds_GCJ |
18952 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
18953 | postinstall_cmds=$lt_postinstall_cmds |
18954 | postuninstall_cmds=$lt_postuninstall_cmds |
18955 | |
18956 | # Commands used to build a loadable module (assumed same as above if empty) |
18957 | module_cmds=$lt_module_cmds_GCJ |
18958 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
18959 | |
18960 | # Commands to strip libraries. |
18961 | old_striplib=$lt_old_striplib |
18962 | striplib=$lt_striplib |
18963 | |
18964 | # Dependencies to place before the objects being linked to create a |
18965 | # shared library. |
dd184caf |
18966 | predep_objects=$lt_predep_objects_GCJ |
d9898ee8 |
18967 | |
18968 | # Dependencies to place after the objects being linked to create a |
18969 | # shared library. |
dd184caf |
18970 | postdep_objects=$lt_postdep_objects_GCJ |
d9898ee8 |
18971 | |
18972 | # Dependencies to place before the objects being linked to create a |
18973 | # shared library. |
18974 | predeps=$lt_predeps_GCJ |
18975 | |
18976 | # Dependencies to place after the objects being linked to create a |
18977 | # shared library. |
18978 | postdeps=$lt_postdeps_GCJ |
18979 | |
18980 | # The library search path used internally by the compiler when linking |
18981 | # a shared library. |
dd184caf |
18982 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
d9898ee8 |
18983 | |
18984 | # Method to check whether dependent libraries are shared objects. |
18985 | deplibs_check_method=$lt_deplibs_check_method |
18986 | |
18987 | # Command to use when deplibs_check_method == file_magic. |
18988 | file_magic_cmd=$lt_file_magic_cmd |
18989 | |
18990 | # Flag that allows shared libraries with undefined symbols to be built. |
18991 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18992 | |
18993 | # Flag that forces no undefined symbols. |
18994 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
18995 | |
18996 | # Commands used to finish a libtool library installation in a directory. |
18997 | finish_cmds=$lt_finish_cmds |
18998 | |
18999 | # Same as above, but a single script fragment to be evaled but not shown. |
19000 | finish_eval=$lt_finish_eval |
19001 | |
19002 | # Take the output of nm and produce a listing of raw symbols and C names. |
19003 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
19004 | |
19005 | # Transform the output of nm in a proper C declaration |
19006 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19007 | |
19008 | # Transform the output of nm in a C name address pair |
19009 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
19010 | |
19011 | # This is the shared library runtime path variable. |
19012 | runpath_var=$runpath_var |
19013 | |
19014 | # This is the shared library path variable. |
19015 | shlibpath_var=$shlibpath_var |
19016 | |
19017 | # Is shlibpath searched before the hard-coded library search path? |
19018 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19019 | |
19020 | # How to hardcode a shared library path into an executable. |
19021 | hardcode_action=$hardcode_action_GCJ |
19022 | |
19023 | # Whether we should hardcode library paths into libraries. |
19024 | hardcode_into_libs=$hardcode_into_libs |
19025 | |
19026 | # Flag to hardcode \$libdir into a binary during linking. |
19027 | # This must work even if \$libdir does not exist. |
19028 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
19029 | |
19030 | # If ld is used when linking, flag to hardcode \$libdir into |
19031 | # a binary during linking. This must work even if \$libdir does |
19032 | # not exist. |
19033 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
19034 | |
19035 | # Whether we need a single -rpath flag with a separated argument. |
19036 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
19037 | |
19038 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19039 | # resulting binary. |
19040 | hardcode_direct=$hardcode_direct_GCJ |
19041 | |
19042 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
19043 | # resulting binary. |
19044 | hardcode_minus_L=$hardcode_minus_L_GCJ |
19045 | |
19046 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19047 | # the resulting binary. |
19048 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
19049 | |
19050 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
19051 | # and all subsequent libraries and executables linked against it. |
19052 | hardcode_automatic=$hardcode_automatic_GCJ |
19053 | |
19054 | # Variables whose values should be saved in libtool wrapper scripts and |
19055 | # restored at relink time. |
19056 | variables_saved_for_relink="$variables_saved_for_relink" |
19057 | |
19058 | # Whether libtool must link a program against all its dependency libraries. |
19059 | link_all_deplibs=$link_all_deplibs_GCJ |
19060 | |
19061 | # Compile-time system search path for libraries |
dd184caf |
19062 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
19063 | |
19064 | # Run-time system search path for libraries |
19065 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19066 | |
19067 | # Fix the shell variable \$srcfile for the compiler. |
19068 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
19069 | |
19070 | # Set to yes if exported symbols are required. |
19071 | always_export_symbols=$always_export_symbols_GCJ |
19072 | |
19073 | # The commands to list exported symbols. |
19074 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
19075 | |
19076 | # The commands to extract the exported symbol list from a shared archive. |
19077 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19078 | |
19079 | # Symbols that should not be listed in the preloaded symbols. |
19080 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
19081 | |
19082 | # Symbols that must always be exported. |
19083 | include_expsyms=$lt_include_expsyms_GCJ |
19084 | |
19085 | # ### END LIBTOOL TAG CONFIG: $tagname |
19086 | |
19087 | __EOF__ |
19088 | |
19089 | |
19090 | else |
19091 | # If there is no Makefile yet, we rely on a make rule to execute |
19092 | # `config.status --recheck' to rerun these tests and create the |
19093 | # libtool script then. |
19094 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19095 | if test -f "$ltmain_in"; then |
19096 | test -f Makefile && make "$ltmain" |
19097 | fi |
19098 | fi |
19099 | |
19100 | |
19101 | ac_ext=c |
19102 | ac_cpp='$CPP $CPPFLAGS' |
19103 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19104 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19105 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19106 | |
19107 | CC="$lt_save_CC" |
19108 | |
19109 | else |
19110 | tagname="" |
19111 | fi |
19112 | ;; |
19113 | |
19114 | RC) |
19115 | |
19116 | |
d9898ee8 |
19117 | # Source file extension for RC test sources. |
19118 | ac_ext=rc |
19119 | |
19120 | # Object file extension for compiled RC test sources. |
19121 | objext=o |
19122 | objext_RC=$objext |
19123 | |
19124 | # Code to be used in simple compile tests |
19125 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
19126 | |
19127 | # Code to be used in simple link tests |
19128 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
19129 | |
19130 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
19131 | |
19132 | # If no C compiler was specified, use CC. |
19133 | LTCC=${LTCC-"$CC"} |
19134 | |
19135 | # If no C compiler flags were specified, use CFLAGS. |
19136 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
19137 | |
19138 | # Allow CC to be a program name with arguments. |
19139 | compiler=$CC |
19140 | |
19141 | |
19142 | # save warnings/boilerplate of simple test code |
19143 | ac_outfile=conftest.$ac_objext |
19144 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
19145 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
19146 | _lt_compiler_boilerplate=`cat conftest.err` |
19147 | $rm conftest* |
19148 | |
19149 | ac_outfile=conftest.$ac_objext |
19150 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
19151 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
19152 | _lt_linker_boilerplate=`cat conftest.err` |
19153 | $rm conftest* |
19154 | |
19155 | |
19156 | # Allow CC to be a program name with arguments. |
19157 | lt_save_CC="$CC" |
19158 | CC=${RC-"windres"} |
19159 | compiler=$CC |
19160 | compiler_RC=$CC |
19161 | for cc_temp in $compiler""; do |
19162 | case $cc_temp in |
19163 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
19164 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
19165 | \-*) ;; |
19166 | *) break;; |
19167 | esac |
19168 | done |
19169 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
19170 | |
19171 | lt_cv_prog_compiler_c_o_RC=yes |
19172 | |
19173 | # The else clause should only fire when bootstrapping the |
19174 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
19175 | # with your package, and you will get complaints that there are |
19176 | # no rules to generate ltmain.sh. |
19177 | if test -f "$ltmain"; then |
19178 | # See if we are running on zsh, and set the options which allow our commands through |
19179 | # without removal of \ escapes. |
19180 | if test -n "${ZSH_VERSION+set}" ; then |
19181 | setopt NO_GLOB_SUBST |
19182 | fi |
19183 | # Now quote all the things that may contain metacharacters while being |
19184 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
19185 | # variables and quote the copies for generation of the libtool script. |
19186 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
19187 | SED SHELL STRIP \ |
19188 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
19189 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
19190 | deplibs_check_method reload_flag reload_cmds need_locks \ |
19191 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
19192 | lt_cv_sys_global_symbol_to_c_name_address \ |
19193 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
19194 | old_postinstall_cmds old_postuninstall_cmds \ |
19195 | compiler_RC \ |
19196 | CC_RC \ |
19197 | LD_RC \ |
19198 | lt_prog_compiler_wl_RC \ |
19199 | lt_prog_compiler_pic_RC \ |
19200 | lt_prog_compiler_static_RC \ |
19201 | lt_prog_compiler_no_builtin_flag_RC \ |
19202 | export_dynamic_flag_spec_RC \ |
19203 | thread_safe_flag_spec_RC \ |
19204 | whole_archive_flag_spec_RC \ |
19205 | enable_shared_with_static_runtimes_RC \ |
19206 | old_archive_cmds_RC \ |
19207 | old_archive_from_new_cmds_RC \ |
19208 | predep_objects_RC \ |
19209 | postdep_objects_RC \ |
19210 | predeps_RC \ |
19211 | postdeps_RC \ |
19212 | compiler_lib_search_path_RC \ |
19213 | archive_cmds_RC \ |
19214 | archive_expsym_cmds_RC \ |
19215 | postinstall_cmds_RC \ |
19216 | postuninstall_cmds_RC \ |
19217 | old_archive_from_expsyms_cmds_RC \ |
19218 | allow_undefined_flag_RC \ |
19219 | no_undefined_flag_RC \ |
19220 | export_symbols_cmds_RC \ |
19221 | hardcode_libdir_flag_spec_RC \ |
19222 | hardcode_libdir_flag_spec_ld_RC \ |
19223 | hardcode_libdir_separator_RC \ |
19224 | hardcode_automatic_RC \ |
19225 | module_cmds_RC \ |
19226 | module_expsym_cmds_RC \ |
19227 | lt_cv_prog_compiler_c_o_RC \ |
19228 | exclude_expsyms_RC \ |
19229 | include_expsyms_RC; do |
19230 | |
19231 | case $var in |
19232 | old_archive_cmds_RC | \ |
19233 | old_archive_from_new_cmds_RC | \ |
19234 | archive_cmds_RC | \ |
19235 | archive_expsym_cmds_RC | \ |
19236 | module_cmds_RC | \ |
19237 | module_expsym_cmds_RC | \ |
19238 | old_archive_from_expsyms_cmds_RC | \ |
19239 | export_symbols_cmds_RC | \ |
19240 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
19241 | postinstall_cmds | postuninstall_cmds | \ |
19242 | old_postinstall_cmds | old_postuninstall_cmds | \ |
19243 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
19244 | # Double-quote double-evaled strings. |
19245 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
19246 | ;; |
19247 | *) |
19248 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
19249 | ;; |
19250 | esac |
19251 | done |
19252 | |
19253 | case $lt_echo in |
19254 | *'\$0 --fallback-echo"') |
19255 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
19256 | ;; |
19257 | esac |
19258 | |
19259 | cfgfile="$ofile" |
19260 | |
19261 | cat <<__EOF__ >> "$cfgfile" |
19262 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
19263 | |
19264 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
19265 | |
19266 | # Shell to use when invoking shell scripts. |
19267 | SHELL=$lt_SHELL |
19268 | |
19269 | # Whether or not to build shared libraries. |
19270 | build_libtool_libs=$enable_shared |
19271 | |
19272 | # Whether or not to build static libraries. |
19273 | build_old_libs=$enable_static |
19274 | |
19275 | # Whether or not to add -lc for building shared libraries. |
19276 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
19277 | |
19278 | # Whether or not to disallow shared libs when runtime libs are static |
19279 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
19280 | |
19281 | # Whether or not to optimize for fast installation. |
19282 | fast_install=$enable_fast_install |
19283 | |
19284 | # The host system. |
19285 | host_alias=$host_alias |
19286 | host=$host |
19287 | host_os=$host_os |
19288 | |
19289 | # The build system. |
19290 | build_alias=$build_alias |
19291 | build=$build |
19292 | build_os=$build_os |
19293 | |
19294 | # An echo program that does not interpret backslashes. |
19295 | echo=$lt_echo |
19296 | |
19297 | # The archiver. |
19298 | AR=$lt_AR |
19299 | AR_FLAGS=$lt_AR_FLAGS |
19300 | |
19301 | # A C compiler. |
19302 | LTCC=$lt_LTCC |
19303 | |
19304 | # LTCC compiler flags. |
19305 | LTCFLAGS=$lt_LTCFLAGS |
19306 | |
19307 | # A language-specific compiler. |
19308 | CC=$lt_compiler_RC |
19309 | |
19310 | # Is the compiler the GNU C compiler? |
19311 | with_gcc=$GCC_RC |
19312 | |
d9898ee8 |
19313 | # An ERE matcher. |
19314 | EGREP=$lt_EGREP |
19315 | |
19316 | # The linker used to build libraries. |
19317 | LD=$lt_LD_RC |
19318 | |
19319 | # Whether we need hard or soft links. |
19320 | LN_S=$lt_LN_S |
19321 | |
19322 | # A BSD-compatible nm program. |
19323 | NM=$lt_NM |
19324 | |
19325 | # A symbol stripping program |
19326 | STRIP=$lt_STRIP |
19327 | |
19328 | # Used to examine libraries when file_magic_cmd begins "file" |
19329 | MAGIC_CMD=$MAGIC_CMD |
19330 | |
19331 | # Used on cygwin: DLL creation program. |
19332 | DLLTOOL="$DLLTOOL" |
19333 | |
19334 | # Used on cygwin: object dumper. |
19335 | OBJDUMP="$OBJDUMP" |
19336 | |
19337 | # Used on cygwin: assembler. |
19338 | AS="$AS" |
19339 | |
19340 | # The name of the directory that contains temporary libtool files. |
19341 | objdir=$objdir |
19342 | |
19343 | # How to create reloadable object files. |
19344 | reload_flag=$lt_reload_flag |
19345 | reload_cmds=$lt_reload_cmds |
19346 | |
19347 | # How to pass a linker flag through the compiler. |
19348 | wl=$lt_lt_prog_compiler_wl_RC |
19349 | |
19350 | # Object file suffix (normally "o"). |
19351 | objext="$ac_objext" |
19352 | |
19353 | # Old archive suffix (normally "a"). |
19354 | libext="$libext" |
19355 | |
19356 | # Shared library suffix (normally ".so"). |
19357 | shrext_cmds='$shrext_cmds' |
19358 | |
19359 | # Executable file suffix (normally ""). |
19360 | exeext="$exeext" |
19361 | |
19362 | # Additional compiler flags for building library objects. |
19363 | pic_flag=$lt_lt_prog_compiler_pic_RC |
19364 | pic_mode=$pic_mode |
19365 | |
19366 | # What is the maximum length of a command? |
19367 | max_cmd_len=$lt_cv_sys_max_cmd_len |
19368 | |
19369 | # Does compiler simultaneously support -c and -o options? |
19370 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
19371 | |
19372 | # Must we lock files when doing compilation? |
19373 | need_locks=$lt_need_locks |
19374 | |
19375 | # Do we need the lib prefix for modules? |
19376 | need_lib_prefix=$need_lib_prefix |
19377 | |
19378 | # Do we need a version for libraries? |
19379 | need_version=$need_version |
19380 | |
19381 | # Whether dlopen is supported. |
19382 | dlopen_support=$enable_dlopen |
19383 | |
19384 | # Whether dlopen of programs is supported. |
19385 | dlopen_self=$enable_dlopen_self |
19386 | |
19387 | # Whether dlopen of statically linked programs is supported. |
19388 | dlopen_self_static=$enable_dlopen_self_static |
19389 | |
19390 | # Compiler flag to prevent dynamic linking. |
19391 | link_static_flag=$lt_lt_prog_compiler_static_RC |
19392 | |
19393 | # Compiler flag to turn off builtin functions. |
19394 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
19395 | |
19396 | # Compiler flag to allow reflexive dlopens. |
19397 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
19398 | |
19399 | # Compiler flag to generate shared objects directly from archives. |
19400 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
19401 | |
19402 | # Compiler flag to generate thread-safe objects. |
19403 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
19404 | |
19405 | # Library versioning type. |
19406 | version_type=$version_type |
19407 | |
19408 | # Format of library name prefix. |
19409 | libname_spec=$lt_libname_spec |
19410 | |
19411 | # List of archive names. First name is the real one, the rest are links. |
19412 | # The last name is the one that the linker finds with -lNAME. |
19413 | library_names_spec=$lt_library_names_spec |
19414 | |
19415 | # The coded name of the library, if different from the real name. |
19416 | soname_spec=$lt_soname_spec |
19417 | |
19418 | # Commands used to build and install an old-style archive. |
19419 | RANLIB=$lt_RANLIB |
19420 | old_archive_cmds=$lt_old_archive_cmds_RC |
19421 | old_postinstall_cmds=$lt_old_postinstall_cmds |
19422 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
19423 | |
19424 | # Create an old-style archive from a shared archive. |
19425 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
19426 | |
19427 | # Create a temporary old-style archive to link instead of a shared archive. |
19428 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
19429 | |
19430 | # Commands used to build and install a shared archive. |
19431 | archive_cmds=$lt_archive_cmds_RC |
19432 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
19433 | postinstall_cmds=$lt_postinstall_cmds |
19434 | postuninstall_cmds=$lt_postuninstall_cmds |
19435 | |
19436 | # Commands used to build a loadable module (assumed same as above if empty) |
19437 | module_cmds=$lt_module_cmds_RC |
19438 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
19439 | |
19440 | # Commands to strip libraries. |
19441 | old_striplib=$lt_old_striplib |
19442 | striplib=$lt_striplib |
19443 | |
19444 | # Dependencies to place before the objects being linked to create a |
19445 | # shared library. |
dd184caf |
19446 | predep_objects=$lt_predep_objects_RC |
d9898ee8 |
19447 | |
19448 | # Dependencies to place after the objects being linked to create a |
19449 | # shared library. |
dd184caf |
19450 | postdep_objects=$lt_postdep_objects_RC |
d9898ee8 |
19451 | |
19452 | # Dependencies to place before the objects being linked to create a |
19453 | # shared library. |
19454 | predeps=$lt_predeps_RC |
19455 | |
19456 | # Dependencies to place after the objects being linked to create a |
19457 | # shared library. |
19458 | postdeps=$lt_postdeps_RC |
19459 | |
19460 | # The library search path used internally by the compiler when linking |
19461 | # a shared library. |
dd184caf |
19462 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
d9898ee8 |
19463 | |
19464 | # Method to check whether dependent libraries are shared objects. |
19465 | deplibs_check_method=$lt_deplibs_check_method |
19466 | |
19467 | # Command to use when deplibs_check_method == file_magic. |
19468 | file_magic_cmd=$lt_file_magic_cmd |
19469 | |
19470 | # Flag that allows shared libraries with undefined symbols to be built. |
19471 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
19472 | |
19473 | # Flag that forces no undefined symbols. |
19474 | no_undefined_flag=$lt_no_undefined_flag_RC |
19475 | |
19476 | # Commands used to finish a libtool library installation in a directory. |
19477 | finish_cmds=$lt_finish_cmds |
19478 | |
19479 | # Same as above, but a single script fragment to be evaled but not shown. |
19480 | finish_eval=$lt_finish_eval |
19481 | |
19482 | # Take the output of nm and produce a listing of raw symbols and C names. |
19483 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
19484 | |
19485 | # Transform the output of nm in a proper C declaration |
19486 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19487 | |
19488 | # Transform the output of nm in a C name address pair |
19489 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
19490 | |
19491 | # This is the shared library runtime path variable. |
19492 | runpath_var=$runpath_var |
19493 | |
19494 | # This is the shared library path variable. |
19495 | shlibpath_var=$shlibpath_var |
19496 | |
19497 | # Is shlibpath searched before the hard-coded library search path? |
19498 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19499 | |
19500 | # How to hardcode a shared library path into an executable. |
19501 | hardcode_action=$hardcode_action_RC |
19502 | |
19503 | # Whether we should hardcode library paths into libraries. |
19504 | hardcode_into_libs=$hardcode_into_libs |
19505 | |
19506 | # Flag to hardcode \$libdir into a binary during linking. |
19507 | # This must work even if \$libdir does not exist. |
19508 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
19509 | |
19510 | # If ld is used when linking, flag to hardcode \$libdir into |
19511 | # a binary during linking. This must work even if \$libdir does |
19512 | # not exist. |
19513 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
19514 | |
19515 | # Whether we need a single -rpath flag with a separated argument. |
19516 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
19517 | |
19518 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19519 | # resulting binary. |
19520 | hardcode_direct=$hardcode_direct_RC |
19521 | |
19522 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
19523 | # resulting binary. |
19524 | hardcode_minus_L=$hardcode_minus_L_RC |
19525 | |
19526 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19527 | # the resulting binary. |
19528 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
19529 | |
19530 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
19531 | # and all subsequent libraries and executables linked against it. |
19532 | hardcode_automatic=$hardcode_automatic_RC |
19533 | |
19534 | # Variables whose values should be saved in libtool wrapper scripts and |
19535 | # restored at relink time. |
19536 | variables_saved_for_relink="$variables_saved_for_relink" |
19537 | |
19538 | # Whether libtool must link a program against all its dependency libraries. |
19539 | link_all_deplibs=$link_all_deplibs_RC |
19540 | |
19541 | # Compile-time system search path for libraries |
dd184caf |
19542 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
19543 | |
19544 | # Run-time system search path for libraries |
19545 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19546 | |
19547 | # Fix the shell variable \$srcfile for the compiler. |
19548 | fix_srcfile_path="$fix_srcfile_path_RC" |
19549 | |
19550 | # Set to yes if exported symbols are required. |
19551 | always_export_symbols=$always_export_symbols_RC |
19552 | |
19553 | # The commands to list exported symbols. |
19554 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
19555 | |
19556 | # The commands to extract the exported symbol list from a shared archive. |
19557 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19558 | |
19559 | # Symbols that should not be listed in the preloaded symbols. |
19560 | exclude_expsyms=$lt_exclude_expsyms_RC |
19561 | |
19562 | # Symbols that must always be exported. |
19563 | include_expsyms=$lt_include_expsyms_RC |
19564 | |
19565 | # ### END LIBTOOL TAG CONFIG: $tagname |
19566 | |
19567 | __EOF__ |
19568 | |
19569 | |
19570 | else |
19571 | # If there is no Makefile yet, we rely on a make rule to execute |
19572 | # `config.status --recheck' to rerun these tests and create the |
19573 | # libtool script then. |
19574 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19575 | if test -f "$ltmain_in"; then |
19576 | test -f Makefile && make "$ltmain" |
19577 | fi |
19578 | fi |
19579 | |
19580 | |
19581 | ac_ext=c |
19582 | ac_cpp='$CPP $CPPFLAGS' |
19583 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19584 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19585 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19586 | |
19587 | CC="$lt_save_CC" |
19588 | |
19589 | ;; |
19590 | |
19591 | *) |
19592 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
19593 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
19594 | { (exit 1); exit 1; }; } |
19595 | ;; |
19596 | esac |
19597 | |
19598 | # Append the new tag name to the list of available tags. |
19599 | if test -n "$tagname" ; then |
19600 | available_tags="$available_tags $tagname" |
19601 | fi |
19602 | fi |
19603 | done |
19604 | IFS="$lt_save_ifs" |
19605 | |
19606 | # Now substitute the updated list of available tags. |
19607 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
19608 | mv "${ofile}T" "$ofile" |
19609 | chmod +x "$ofile" |
19610 | else |
19611 | rm -f "${ofile}T" |
19612 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
19613 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
19614 | { (exit 1); exit 1; }; } |
19615 | fi |
19616 | fi |
19617 | |
19618 | |
19619 | |
19620 | # This can be used to rebuild libtool when needed |
19621 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
19622 | |
19623 | # Always use our own libtool. |
19624 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
19625 | |
19626 | # Prevent multiple expansion |
19627 | |
19628 | |
19629 | |
19630 | |
19631 | |
19632 | |
19633 | |
19634 | |
19635 | |
19636 | |
19637 | |
19638 | |
19639 | |
19640 | |
19641 | |
19642 | |
19643 | |
19644 | |
19645 | |
19646 | |
19647 | |
19648 | |
19649 | for ac_prog in perl5 perl |
19650 | do |
19651 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
19652 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
19653 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19654 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
19655 | if test "${ac_cv_path_PERL+set}" = set; then |
19656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19657 | else |
19658 | case $PERL in |
19659 | [\\/]* | ?:[\\/]*) |
19660 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
19661 | ;; |
19662 | *) |
19663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19664 | for as_dir in $LPATH |
19665 | do |
19666 | IFS=$as_save_IFS |
19667 | test -z "$as_dir" && as_dir=. |
19668 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
19669 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
19670 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
19671 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
19672 | break 2 |
19673 | fi |
19674 | done |
19675 | done |
dd184caf |
19676 | IFS=$as_save_IFS |
d9898ee8 |
19677 | |
19678 | ;; |
19679 | esac |
19680 | fi |
19681 | PERL=$ac_cv_path_PERL |
d9898ee8 |
19682 | if test -n "$PERL"; then |
dd184caf |
19683 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
19684 | echo "${ECHO_T}$PERL" >&6; } |
d9898ee8 |
19685 | else |
dd184caf |
19686 | { echo "$as_me:$LINENO: result: no" >&5 |
19687 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
19688 | fi |
19689 | |
dd184caf |
19690 | |
d9898ee8 |
19691 | test -n "$PERL" && break |
19692 | done |
19693 | test -n "$PERL" || PERL="perl" |
19694 | |
19695 | for ac_prog in courier-config |
19696 | do |
19697 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
19698 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
19699 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19700 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
19701 | if test "${ac_cv_path_COURIERCONFIG+set}" = set; then |
19702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19703 | else |
19704 | case $COURIERCONFIG in |
19705 | [\\/]* | ?:[\\/]*) |
19706 | ac_cv_path_COURIERCONFIG="$COURIERCONFIG" # Let the user override the test with a path. |
19707 | ;; |
19708 | *) |
19709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19710 | for as_dir in $LPATH |
19711 | do |
19712 | IFS=$as_save_IFS |
19713 | test -z "$as_dir" && as_dir=. |
19714 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
19715 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
19716 | ac_cv_path_COURIERCONFIG="$as_dir/$ac_word$ac_exec_ext" |
19717 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
19718 | break 2 |
19719 | fi |
19720 | done |
19721 | done |
dd184caf |
19722 | IFS=$as_save_IFS |
d9898ee8 |
19723 | |
19724 | ;; |
19725 | esac |
19726 | fi |
19727 | COURIERCONFIG=$ac_cv_path_COURIERCONFIG |
d9898ee8 |
19728 | if test -n "$COURIERCONFIG"; then |
dd184caf |
19729 | { echo "$as_me:$LINENO: result: $COURIERCONFIG" >&5 |
19730 | echo "${ECHO_T}$COURIERCONFIG" >&6; } |
d9898ee8 |
19731 | else |
dd184caf |
19732 | { echo "$as_me:$LINENO: result: no" >&5 |
19733 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
19734 | fi |
19735 | |
dd184caf |
19736 | |
d9898ee8 |
19737 | test -n "$COURIERCONFIG" && break |
19738 | done |
19739 | test -n "$COURIERCONFIG" || COURIERCONFIG="courier-config" |
19740 | |
19741 | |
19742 | if test "$PERL" = "perl" |
19743 | then |
19744 | { { echo "$as_me:$LINENO: error: Perl is required" >&5 |
19745 | echo "$as_me: error: Perl is required" >&2;} |
19746 | { (exit 1); exit 1; }; } |
19747 | fi |
19748 | |
19749 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
19750 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
19751 | eval "prefix=$prefix" |
19752 | eval "exec_prefix=$exec_prefix" |
19753 | eval "sysconfdir=$sysconfdir" |
19754 | eval "bindir=$bindir" |
19755 | eval "sbindir=$sbindir" |
19756 | eval "localstatedir=$localstatedir" |
19757 | eval "libexecdir=$libexecdir" |
19758 | |
19759 | |
dd184caf |
19760 | # Check whether --with-redhat was given. |
d9898ee8 |
19761 | if test "${with_redhat+set}" = set; then |
dd184caf |
19762 | withval=$with_redhat; redhat=$withval |
d9898ee8 |
19763 | else |
19764 | redhat=no |
dd184caf |
19765 | fi |
19766 | |
d9898ee8 |
19767 | |
19768 | if test "$srcdir" = "." |
19769 | then |
19770 | case `./config.guess` in |
19771 | *-redhat-*) |
19772 | if test "$redhat" = "no" |
19773 | then |
19774 | hash='#' |
19775 | { echo "$as_me:$LINENO: WARNING: === I think you are trying to run this configure script" >&5 |
19776 | echo "$as_me: WARNING: === I think you are trying to run this configure script" >&2;} |
19777 | { echo "$as_me:$LINENO: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&5 |
19778 | echo "$as_me: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&2;} |
19779 | { echo "$as_me:$LINENO: WARNING: === It's much faster to create installable binary RPMs" >&5 |
19780 | echo "$as_me: WARNING: === It's much faster to create installable binary RPMs" >&2;} |
19781 | { echo "$as_me:$LINENO: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&5 |
19782 | echo "$as_me: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&2;} |
19783 | { echo "$as_me:$LINENO: WARNING: === When you do this you may find that RPM will tell you" >&5 |
19784 | echo "$as_me: WARNING: === When you do this you may find that RPM will tell you" >&2;} |
19785 | { echo "$as_me:$LINENO: WARNING: === to install some other software first, before trying to" >&5 |
19786 | echo "$as_me: WARNING: === to install some other software first, before trying to" >&2;} |
19787 | { echo "$as_me:$LINENO: WARNING: === build this one, and even tell you the name of RPMs you" >&5 |
19788 | echo "$as_me: WARNING: === build this one, and even tell you the name of RPMs you" >&2;} |
19789 | { echo "$as_me:$LINENO: WARNING: === need to install from the distribution CD. That's much" >&5 |
19790 | echo "$as_me: WARNING: === need to install from the distribution CD. That's much" >&2;} |
19791 | { echo "$as_me:$LINENO: WARNING: === easier than trying to figure out the same from some" >&5 |
19792 | echo "$as_me: WARNING: === easier than trying to figure out the same from some" >&2;} |
19793 | { echo "$as_me:$LINENO: WARNING: === cryptic error message." >&5 |
19794 | echo "$as_me: WARNING: === cryptic error message." >&2;} |
19795 | { echo "$as_me:$LINENO: WARNING: " >&5 |
19796 | echo "$as_me: WARNING: " >&2;} |
19797 | { echo "$as_me:$LINENO: WARNING: === Even if you don't intend to use everything you need to" >&5 |
19798 | echo "$as_me: WARNING: === Even if you don't intend to use everything you need to" >&2;} |
19799 | { echo "$as_me:$LINENO: WARNING: === have in order to build via RPM, you should still do as" >&5 |
19800 | echo "$as_me: WARNING: === have in order to build via RPM, you should still do as" >&2;} |
19801 | { echo "$as_me:$LINENO: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&5 |
19802 | echo "$as_me: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&2;} |
19803 | { echo "$as_me:$LINENO: WARNING: === goes into RPM sub-packages, which do not need to be" >&5 |
19804 | echo "$as_me: WARNING: === goes into RPM sub-packages, which do not need to be" >&2;} |
19805 | { echo "$as_me:$LINENO: WARNING: === installed." >&5 |
19806 | echo "$as_me: WARNING: === installed." >&2;} |
19807 | { echo "$as_me:$LINENO: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&5 |
19808 | echo "$as_me: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&2;} |
19809 | { echo "$as_me:$LINENO: WARNING: === parameter to this configure script and not see this" >&5 |
19810 | echo "$as_me: WARNING: === parameter to this configure script and not see this" >&2;} |
19811 | { echo "$as_me:$LINENO: WARNING: === error message. You should also do this when upgrading" >&5 |
19812 | echo "$as_me: WARNING: === error message. You should also do this when upgrading" >&2;} |
19813 | { echo "$as_me:$LINENO: WARNING: === and you didn't use RPM with the older version." >&5 |
19814 | echo "$as_me: WARNING: === and you didn't use RPM with the older version." >&2;} |
19815 | { { echo "$as_me:$LINENO: error: ... in either case you better know what you're doing!" >&5 |
19816 | echo "$as_me: error: ... in either case you better know what you're doing!" >&2;} |
19817 | { (exit 1); exit 1; }; } |
19818 | fi |
19819 | ;; |
19820 | *) |
19821 | ;; |
19822 | esac |
19823 | fi |
19824 | for ac_prog in expect |
19825 | do |
19826 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
19827 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
19828 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
19830 | if test "${ac_cv_path_EXPECT+set}" = set; then |
19831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19832 | else |
19833 | case $EXPECT in |
19834 | [\\/]* | ?:[\\/]*) |
19835 | ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path. |
19836 | ;; |
19837 | *) |
19838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19839 | for as_dir in $LPATH |
19840 | do |
19841 | IFS=$as_save_IFS |
19842 | test -z "$as_dir" && as_dir=. |
19843 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
19844 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
19845 | ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext" |
19846 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
19847 | break 2 |
19848 | fi |
19849 | done |
19850 | done |
dd184caf |
19851 | IFS=$as_save_IFS |
d9898ee8 |
19852 | |
19853 | ;; |
19854 | esac |
19855 | fi |
19856 | EXPECT=$ac_cv_path_EXPECT |
d9898ee8 |
19857 | if test -n "$EXPECT"; then |
dd184caf |
19858 | { echo "$as_me:$LINENO: result: $EXPECT" >&5 |
19859 | echo "${ECHO_T}$EXPECT" >&6; } |
d9898ee8 |
19860 | else |
dd184caf |
19861 | { echo "$as_me:$LINENO: result: no" >&5 |
19862 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
19863 | fi |
19864 | |
dd184caf |
19865 | |
d9898ee8 |
19866 | test -n "$EXPECT" && break |
19867 | done |
19868 | test -n "$EXPECT" || EXPECT="expect" |
19869 | |
19870 | |
19871 | if test "$EXPECT" = "expect" |
19872 | then |
19873 | { echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5 |
19874 | echo "$as_me: WARNING: -----------------------------------------------------" >&2;} |
19875 | { echo "$as_me:$LINENO: WARNING: expect not found - will not be able to change passwds" >&5 |
19876 | echo "$as_me: WARNING: expect not found - will not be able to change passwds" >&2;} |
19877 | { echo "$as_me:$LINENO: WARNING: in webmail" >&5 |
19878 | echo "$as_me: WARNING: in webmail" >&2;} |
19879 | { echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5 |
19880 | echo "$as_me: WARNING: -----------------------------------------------------" >&2;} |
19881 | sleep 5 |
19882 | else |
19883 | |
19884 | cat >>confdefs.h <<_ACEOF |
19885 | #define HAVE_EXPECT 1 |
19886 | _ACEOF |
19887 | |
19888 | fi |
19889 | |
19890 | for ac_prog in passwd |
19891 | do |
19892 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
19893 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
19894 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19895 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
19896 | if test "${ac_cv_path_PASSWD+set}" = set; then |
19897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19898 | else |
19899 | case $PASSWD in |
19900 | [\\/]* | ?:[\\/]*) |
19901 | ac_cv_path_PASSWD="$PASSWD" # Let the user override the test with a path. |
19902 | ;; |
19903 | *) |
19904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19905 | for as_dir in $LPATH |
19906 | do |
19907 | IFS=$as_save_IFS |
19908 | test -z "$as_dir" && as_dir=. |
19909 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
19910 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
19911 | ac_cv_path_PASSWD="$as_dir/$ac_word$ac_exec_ext" |
19912 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
19913 | break 2 |
19914 | fi |
19915 | done |
19916 | done |
dd184caf |
19917 | IFS=$as_save_IFS |
d9898ee8 |
19918 | |
19919 | ;; |
19920 | esac |
19921 | fi |
19922 | PASSWD=$ac_cv_path_PASSWD |
d9898ee8 |
19923 | if test -n "$PASSWD"; then |
dd184caf |
19924 | { echo "$as_me:$LINENO: result: $PASSWD" >&5 |
19925 | echo "${ECHO_T}$PASSWD" >&6; } |
d9898ee8 |
19926 | else |
dd184caf |
19927 | { echo "$as_me:$LINENO: result: no" >&5 |
19928 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
19929 | fi |
19930 | |
dd184caf |
19931 | |
d9898ee8 |
19932 | test -n "$PASSWD" && break |
19933 | done |
19934 | test -n "$PASSWD" || PASSWD="passwd" |
19935 | |
19936 | |
19937 | |
19938 | if test "$GCC" = "yes" |
19939 | then |
19940 | CFLAGS="$CFLAGS -Wall" |
19941 | fi |
19942 | |
19943 | CFLAGS="$CFLAGS -I.. -I${srcdir}/.." |
19944 | |
dd184caf |
19945 | { echo "$as_me:$LINENO: checking whether -lm is needed for floor" >&5 |
19946 | echo $ECHO_N "checking whether -lm is needed for floor... $ECHO_C" >&6; } |
d9898ee8 |
19947 | cat >conftest.$ac_ext <<_ACEOF |
19948 | /* confdefs.h. */ |
19949 | _ACEOF |
19950 | cat confdefs.h >>conftest.$ac_ext |
19951 | cat >>conftest.$ac_ext <<_ACEOF |
19952 | /* end confdefs.h. */ |
19953 | |
dd184caf |
19954 | /* Override any GCC internal prototype to avoid an error. |
19955 | Use char because int might match the return type of a GCC |
19956 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
19957 | #ifdef __cplusplus |
19958 | extern "C" |
19959 | #endif |
d9898ee8 |
19960 | char floor (); |
19961 | int |
19962 | main () |
19963 | { |
dd184caf |
19964 | return floor (); |
d9898ee8 |
19965 | ; |
19966 | return 0; |
19967 | } |
19968 | _ACEOF |
19969 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
19970 | if { (ac_try="$ac_link" |
19971 | case "(($ac_try" in |
19972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19973 | *) ac_try_echo=$ac_try;; |
19974 | esac |
19975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19976 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
19977 | ac_status=$? |
19978 | grep -v '^ *+' conftest.er1 >conftest.err |
19979 | rm -f conftest.er1 |
19980 | cat conftest.err >&5 |
19981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19982 | (exit $ac_status); } && { |
19983 | test -z "$ac_c_werror_flag" || |
19984 | test ! -s conftest.err |
19985 | } && test -s conftest$ac_exeext && |
19986 | $as_test_x conftest$ac_exeext; then |
19987 | { echo "$as_me:$LINENO: result: no" >&5 |
19988 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
19989 | else |
19990 | echo "$as_me: failed program was:" >&5 |
19991 | sed 's/^/| /' conftest.$ac_ext >&5 |
19992 | |
dd184caf |
19993 | LIBM="-lm" |
19994 | { echo "$as_me:$LINENO: result: yes" >&5 |
19995 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
19996 | fi |
dd184caf |
19997 | |
19998 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
19999 | conftest$ac_exeext conftest.$ac_ext |
20000 | |
20001 | |
dd184caf |
20002 | # Check whether --with-pkgconfdir was given. |
d9898ee8 |
20003 | if test "${with_pkgconfdir+set}" = set; then |
dd184caf |
20004 | withval=$with_pkgconfdir; pkgconfdir="$withval" |
d9898ee8 |
20005 | else |
20006 | pkgconfdir="$sysconfdir/authlib" |
dd184caf |
20007 | fi |
20008 | |
d9898ee8 |
20009 | |
20010 | SASL_LIST="SASL(\"PLAIN\", authsasl_plain, authsaslclient_plain) SASL(\"LOGIN\", authsasl_login, authsaslclient_login)" |
20011 | |
20012 | |
20013 | |
20014 | |
20015 | |
20016 | if test -d ${srcdir}/md5 |
20017 | then |
20018 | MD5=1 |
20019 | |
20020 | cat >>confdefs.h <<_ACEOF |
20021 | #define HAVE_MD5LIB 1 |
20022 | _ACEOF |
20023 | |
20024 | MD5LIB=md5/libmd5.la |
20025 | if test -d ${srcdir}/md5 |
20026 | then |
20027 | SASL_LIST="SASL(\"CRAM-MD5\", authsasl_cram, authsaslclient_crammd5) $SASL_LIST" |
20028 | fi |
20029 | else |
20030 | MD5LIB="" |
20031 | MD5=0 |
20032 | fi |
20033 | |
dd184caf |
20034 | if test "$MD5" = 1; then |
d9898ee8 |
20035 | HAVE_MD5_TRUE= |
20036 | HAVE_MD5_FALSE='#' |
20037 | else |
20038 | HAVE_MD5_TRUE='#' |
20039 | HAVE_MD5_FALSE= |
20040 | fi |
20041 | |
20042 | |
20043 | |
20044 | |
20045 | |
20046 | |
20047 | if test -d ${srcdir}/sha1 |
20048 | then |
20049 | SHA1=1 |
20050 | |
20051 | cat >>confdefs.h <<_ACEOF |
20052 | #define HAVE_SHA1LIB 1 |
20053 | _ACEOF |
20054 | |
20055 | SHA1LIB=sha1/libsha1.la |
20056 | if test -d ${srcdir}/sha1 |
20057 | then |
20058 | SASL_LIST="SASL(\"CRAM-SHA1\", authsasl_cram, authsaslclient_cramsha1) $SASL_LIST" |
20059 | SASL_LIST="SASL(\"CRAM-SHA256\", authsasl_cram, authsaslclient_cramsha256) $SASL_LIST" |
20060 | fi |
20061 | else |
20062 | SHA1LIB="" |
20063 | SHA1=0 |
20064 | fi |
20065 | |
dd184caf |
20066 | if test "$SHA1" = 1; then |
d9898ee8 |
20067 | HAVE_SHA1_TRUE= |
20068 | HAVE_SHA1_FALSE='#' |
20069 | else |
20070 | HAVE_SHA1_TRUE='#' |
20071 | HAVE_SHA1_FALSE= |
20072 | fi |
20073 | |
20074 | |
20075 | |
20076 | |
20077 | |
20078 | |
20079 | |
20080 | if test -d ${srcdir}/libhmac |
20081 | then |
20082 | HMAC=1 |
20083 | |
20084 | cat >>confdefs.h <<_ACEOF |
20085 | #define HAVE_HMACLIB 1 |
20086 | _ACEOF |
20087 | |
20088 | HMACLIB=libhmac/libhmac.la |
20089 | else |
20090 | HMACLIB="" |
20091 | HMAC=0 |
20092 | fi |
20093 | |
dd184caf |
20094 | if test "$HMAC" = 1; then |
d9898ee8 |
20095 | HAVE_HMACLIB_TRUE= |
20096 | HAVE_HMACLIB_FALSE='#' |
20097 | else |
20098 | HAVE_HMACLIB_TRUE='#' |
20099 | HAVE_HMACLIB_FALSE= |
20100 | fi |
20101 | |
20102 | |
20103 | saveLIBS="$LIBS" |
20104 | NETLIBS="" |
20105 | USENSL=no |
20106 | |
dd184caf |
20107 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
20108 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } |
d9898ee8 |
20109 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
20110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20111 | else |
20112 | ac_check_lib_save_LIBS=$LIBS |
20113 | LIBS="-lsocket $LIBS" |
20114 | cat >conftest.$ac_ext <<_ACEOF |
20115 | /* confdefs.h. */ |
20116 | _ACEOF |
20117 | cat confdefs.h >>conftest.$ac_ext |
20118 | cat >>conftest.$ac_ext <<_ACEOF |
20119 | /* end confdefs.h. */ |
20120 | |
dd184caf |
20121 | /* Override any GCC internal prototype to avoid an error. |
20122 | Use char because int might match the return type of a GCC |
20123 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20124 | #ifdef __cplusplus |
20125 | extern "C" |
20126 | #endif |
d9898ee8 |
20127 | char socket (); |
20128 | int |
20129 | main () |
20130 | { |
dd184caf |
20131 | return socket (); |
d9898ee8 |
20132 | ; |
20133 | return 0; |
20134 | } |
20135 | _ACEOF |
20136 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
20137 | if { (ac_try="$ac_link" |
20138 | case "(($ac_try" in |
20139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20140 | *) ac_try_echo=$ac_try;; |
20141 | esac |
20142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20143 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20144 | ac_status=$? |
20145 | grep -v '^ *+' conftest.er1 >conftest.err |
20146 | rm -f conftest.er1 |
20147 | cat conftest.err >&5 |
20148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20149 | (exit $ac_status); } && { |
20150 | test -z "$ac_c_werror_flag" || |
20151 | test ! -s conftest.err |
20152 | } && test -s conftest$ac_exeext && |
20153 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20154 | ac_cv_lib_socket_socket=yes |
20155 | else |
20156 | echo "$as_me: failed program was:" >&5 |
20157 | sed 's/^/| /' conftest.$ac_ext >&5 |
20158 | |
dd184caf |
20159 | ac_cv_lib_socket_socket=no |
d9898ee8 |
20160 | fi |
dd184caf |
20161 | |
20162 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20163 | conftest$ac_exeext conftest.$ac_ext |
20164 | LIBS=$ac_check_lib_save_LIBS |
20165 | fi |
dd184caf |
20166 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
20167 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
d9898ee8 |
20168 | if test $ac_cv_lib_socket_socket = yes; then |
20169 | result=yes |
20170 | else |
20171 | result=no |
20172 | fi |
20173 | |
20174 | if test $result = yes; then |
20175 | NETLIBS="-lsocket" |
20176 | else |
dd184caf |
20177 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
20178 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } |
d9898ee8 |
20179 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
20180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20181 | else |
20182 | ac_check_lib_save_LIBS=$LIBS |
20183 | LIBS="-lsocket -lnsl $LIBS" |
20184 | cat >conftest.$ac_ext <<_ACEOF |
20185 | /* confdefs.h. */ |
20186 | _ACEOF |
20187 | cat confdefs.h >>conftest.$ac_ext |
20188 | cat >>conftest.$ac_ext <<_ACEOF |
20189 | /* end confdefs.h. */ |
20190 | |
dd184caf |
20191 | /* Override any GCC internal prototype to avoid an error. |
20192 | Use char because int might match the return type of a GCC |
20193 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20194 | #ifdef __cplusplus |
20195 | extern "C" |
20196 | #endif |
d9898ee8 |
20197 | char socket (); |
20198 | int |
20199 | main () |
20200 | { |
dd184caf |
20201 | return socket (); |
d9898ee8 |
20202 | ; |
20203 | return 0; |
20204 | } |
20205 | _ACEOF |
20206 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
20207 | if { (ac_try="$ac_link" |
20208 | case "(($ac_try" in |
20209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20210 | *) ac_try_echo=$ac_try;; |
20211 | esac |
20212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20213 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20214 | ac_status=$? |
20215 | grep -v '^ *+' conftest.er1 >conftest.err |
20216 | rm -f conftest.er1 |
20217 | cat conftest.err >&5 |
20218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20219 | (exit $ac_status); } && { |
20220 | test -z "$ac_c_werror_flag" || |
20221 | test ! -s conftest.err |
20222 | } && test -s conftest$ac_exeext && |
20223 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20224 | ac_cv_lib_socket_socket=yes |
20225 | else |
20226 | echo "$as_me: failed program was:" >&5 |
20227 | sed 's/^/| /' conftest.$ac_ext >&5 |
20228 | |
dd184caf |
20229 | ac_cv_lib_socket_socket=no |
d9898ee8 |
20230 | fi |
dd184caf |
20231 | |
20232 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20233 | conftest$ac_exeext conftest.$ac_ext |
20234 | LIBS=$ac_check_lib_save_LIBS |
20235 | fi |
dd184caf |
20236 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
20237 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
d9898ee8 |
20238 | if test $ac_cv_lib_socket_socket = yes; then |
20239 | result=yes |
20240 | else |
20241 | result=no |
20242 | fi |
20243 | |
20244 | if test $result = yes; then |
20245 | NETLIBS = "-lsocket -lnsl" |
20246 | USENSL=yes |
20247 | else |
dd184caf |
20248 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
20249 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } |
d9898ee8 |
20250 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
20251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20252 | else |
20253 | ac_check_lib_save_LIBS=$LIBS |
20254 | LIBS="-lsocket $LIBS" |
20255 | cat >conftest.$ac_ext <<_ACEOF |
20256 | /* confdefs.h. */ |
20257 | _ACEOF |
20258 | cat confdefs.h >>conftest.$ac_ext |
20259 | cat >>conftest.$ac_ext <<_ACEOF |
20260 | /* end confdefs.h. */ |
20261 | |
dd184caf |
20262 | /* Override any GCC internal prototype to avoid an error. |
20263 | Use char because int might match the return type of a GCC |
20264 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20265 | #ifdef __cplusplus |
20266 | extern "C" |
20267 | #endif |
d9898ee8 |
20268 | char connect (); |
20269 | int |
20270 | main () |
20271 | { |
dd184caf |
20272 | return connect (); |
d9898ee8 |
20273 | ; |
20274 | return 0; |
20275 | } |
20276 | _ACEOF |
20277 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
20278 | if { (ac_try="$ac_link" |
20279 | case "(($ac_try" in |
20280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20281 | *) ac_try_echo=$ac_try;; |
20282 | esac |
20283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20284 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20285 | ac_status=$? |
20286 | grep -v '^ *+' conftest.er1 >conftest.err |
20287 | rm -f conftest.er1 |
20288 | cat conftest.err >&5 |
20289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20290 | (exit $ac_status); } && { |
20291 | test -z "$ac_c_werror_flag" || |
20292 | test ! -s conftest.err |
20293 | } && test -s conftest$ac_exeext && |
20294 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20295 | ac_cv_lib_socket_connect=yes |
20296 | else |
20297 | echo "$as_me: failed program was:" >&5 |
20298 | sed 's/^/| /' conftest.$ac_ext >&5 |
20299 | |
dd184caf |
20300 | ac_cv_lib_socket_connect=no |
d9898ee8 |
20301 | fi |
dd184caf |
20302 | |
20303 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20304 | conftest$ac_exeext conftest.$ac_ext |
20305 | LIBS=$ac_check_lib_save_LIBS |
20306 | fi |
dd184caf |
20307 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
20308 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } |
d9898ee8 |
20309 | if test $ac_cv_lib_socket_connect = yes; then |
20310 | result=yes |
20311 | else |
20312 | result=no |
20313 | fi |
20314 | |
20315 | if test $result = yes; then |
20316 | NETLIBS="-lsocket" |
20317 | else |
dd184caf |
20318 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
20319 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } |
d9898ee8 |
20320 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
20321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20322 | else |
20323 | ac_check_lib_save_LIBS=$LIBS |
20324 | LIBS="-lsocket -lnsl $LIBS" |
20325 | cat >conftest.$ac_ext <<_ACEOF |
20326 | /* confdefs.h. */ |
20327 | _ACEOF |
20328 | cat confdefs.h >>conftest.$ac_ext |
20329 | cat >>conftest.$ac_ext <<_ACEOF |
20330 | /* end confdefs.h. */ |
20331 | |
dd184caf |
20332 | /* Override any GCC internal prototype to avoid an error. |
20333 | Use char because int might match the return type of a GCC |
20334 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20335 | #ifdef __cplusplus |
20336 | extern "C" |
20337 | #endif |
d9898ee8 |
20338 | char connect (); |
20339 | int |
20340 | main () |
20341 | { |
dd184caf |
20342 | return connect (); |
d9898ee8 |
20343 | ; |
20344 | return 0; |
20345 | } |
20346 | _ACEOF |
20347 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
20348 | if { (ac_try="$ac_link" |
20349 | case "(($ac_try" in |
20350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20351 | *) ac_try_echo=$ac_try;; |
20352 | esac |
20353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20354 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20355 | ac_status=$? |
20356 | grep -v '^ *+' conftest.er1 >conftest.err |
20357 | rm -f conftest.er1 |
20358 | cat conftest.err >&5 |
20359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20360 | (exit $ac_status); } && { |
20361 | test -z "$ac_c_werror_flag" || |
20362 | test ! -s conftest.err |
20363 | } && test -s conftest$ac_exeext && |
20364 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20365 | ac_cv_lib_socket_connect=yes |
20366 | else |
20367 | echo "$as_me: failed program was:" >&5 |
20368 | sed 's/^/| /' conftest.$ac_ext >&5 |
20369 | |
dd184caf |
20370 | ac_cv_lib_socket_connect=no |
d9898ee8 |
20371 | fi |
dd184caf |
20372 | |
20373 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20374 | conftest$ac_exeext conftest.$ac_ext |
20375 | LIBS=$ac_check_lib_save_LIBS |
20376 | fi |
dd184caf |
20377 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
20378 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } |
d9898ee8 |
20379 | if test $ac_cv_lib_socket_connect = yes; then |
20380 | result=yes |
20381 | else |
20382 | result=no |
20383 | fi |
20384 | |
20385 | if test $result = yes; then |
20386 | NETLIBS="-lsocket -lnsl" |
20387 | USENSL=yes |
20388 | fi |
20389 | fi |
20390 | fi |
20391 | fi |
20392 | |
20393 | if test $USENSL != yes; then |
20394 | LIBS="$LIBS $NETLIBS" |
20395 | cat >conftest.$ac_ext <<_ACEOF |
20396 | /* confdefs.h. */ |
20397 | _ACEOF |
20398 | cat confdefs.h >>conftest.$ac_ext |
20399 | cat >>conftest.$ac_ext <<_ACEOF |
20400 | /* end confdefs.h. */ |
20401 | |
dd184caf |
20402 | /* Override any GCC internal prototype to avoid an error. |
20403 | Use char because int might match the return type of a GCC |
20404 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20405 | #ifdef __cplusplus |
20406 | extern "C" |
20407 | #endif |
d9898ee8 |
20408 | char inet_addr (); |
20409 | int |
20410 | main () |
20411 | { |
dd184caf |
20412 | return inet_addr (); |
d9898ee8 |
20413 | ; |
20414 | return 0; |
20415 | } |
20416 | _ACEOF |
20417 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
20418 | if { (ac_try="$ac_link" |
20419 | case "(($ac_try" in |
20420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20421 | *) ac_try_echo=$ac_try;; |
20422 | esac |
20423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20424 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20425 | ac_status=$? |
20426 | grep -v '^ *+' conftest.er1 >conftest.err |
20427 | rm -f conftest.er1 |
20428 | cat conftest.err >&5 |
20429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20430 | (exit $ac_status); } && { |
20431 | test -z "$ac_c_werror_flag" || |
20432 | test ! -s conftest.err |
20433 | } && test -s conftest$ac_exeext && |
20434 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20435 | : |
20436 | else |
20437 | echo "$as_me: failed program was:" >&5 |
20438 | sed 's/^/| /' conftest.$ac_ext >&5 |
20439 | |
20440 | |
dd184caf |
20441 | { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 |
20442 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; } |
d9898ee8 |
20443 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then |
20444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20445 | else |
20446 | ac_check_lib_save_LIBS=$LIBS |
20447 | LIBS="-lnsl $LIBS" |
20448 | cat >conftest.$ac_ext <<_ACEOF |
20449 | /* confdefs.h. */ |
20450 | _ACEOF |
20451 | cat confdefs.h >>conftest.$ac_ext |
20452 | cat >>conftest.$ac_ext <<_ACEOF |
20453 | /* end confdefs.h. */ |
20454 | |
dd184caf |
20455 | /* Override any GCC internal prototype to avoid an error. |
20456 | Use char because int might match the return type of a GCC |
20457 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20458 | #ifdef __cplusplus |
20459 | extern "C" |
20460 | #endif |
d9898ee8 |
20461 | char inet_addr (); |
20462 | int |
20463 | main () |
20464 | { |
dd184caf |
20465 | return inet_addr (); |
d9898ee8 |
20466 | ; |
20467 | return 0; |
20468 | } |
20469 | _ACEOF |
20470 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
20471 | if { (ac_try="$ac_link" |
20472 | case "(($ac_try" in |
20473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20474 | *) ac_try_echo=$ac_try;; |
20475 | esac |
20476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20477 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20478 | ac_status=$? |
20479 | grep -v '^ *+' conftest.er1 >conftest.err |
20480 | rm -f conftest.er1 |
20481 | cat conftest.err >&5 |
20482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20483 | (exit $ac_status); } && { |
20484 | test -z "$ac_c_werror_flag" || |
20485 | test ! -s conftest.err |
20486 | } && test -s conftest$ac_exeext && |
20487 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20488 | ac_cv_lib_nsl_inet_addr=yes |
20489 | else |
20490 | echo "$as_me: failed program was:" >&5 |
20491 | sed 's/^/| /' conftest.$ac_ext >&5 |
20492 | |
dd184caf |
20493 | ac_cv_lib_nsl_inet_addr=no |
d9898ee8 |
20494 | fi |
dd184caf |
20495 | |
20496 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20497 | conftest$ac_exeext conftest.$ac_ext |
20498 | LIBS=$ac_check_lib_save_LIBS |
20499 | fi |
dd184caf |
20500 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 |
20501 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; } |
d9898ee8 |
20502 | if test $ac_cv_lib_nsl_inet_addr = yes; then |
20503 | result=yes |
20504 | else |
20505 | result=no |
20506 | fi |
20507 | |
20508 | if test $result = yes; then |
20509 | NETLIBS="$NETLIBS -lnsl" |
20510 | fi |
20511 | |
20512 | fi |
dd184caf |
20513 | |
20514 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20515 | conftest$ac_exeext conftest.$ac_ext |
20516 | fi |
20517 | |
20518 | LIBS="$saveLIBS" |
20519 | |
20520 | |
20521 | |
20522 | |
20523 | |
20524 | |
20525 | |
dd184caf |
20526 | # Check whether --with-db was given. |
d9898ee8 |
20527 | if test "${with_db+set}" = set; then |
dd184caf |
20528 | withval=$with_db; db="$withval" |
d9898ee8 |
20529 | else |
20530 | needs_withdb=1 |
dd184caf |
20531 | fi |
20532 | |
d9898ee8 |
20533 | |
20534 | case "$db" in |
20535 | gdbm) |
20536 | ;; |
20537 | db) |
20538 | ;; |
20539 | "") |
20540 | ;; |
20541 | *) |
20542 | { { echo "$as_me:$LINENO: error: Invalid --with-db option." >&5 |
20543 | echo "$as_me: error: Invalid --with-db option." >&2;} |
20544 | { (exit 1); exit 1; }; } |
20545 | ;; |
20546 | esac |
20547 | |
20548 | saveLIBS="$LIBS" |
20549 | |
20550 | if test "$db" != "db" |
20551 | then |
dd184caf |
20552 | { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5 |
20553 | echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; } |
d9898ee8 |
20554 | if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then |
20555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20556 | else |
20557 | ac_check_lib_save_LIBS=$LIBS |
20558 | LIBS="-lgdbm $LIBS" |
20559 | cat >conftest.$ac_ext <<_ACEOF |
20560 | /* confdefs.h. */ |
20561 | _ACEOF |
20562 | cat confdefs.h >>conftest.$ac_ext |
20563 | cat >>conftest.$ac_ext <<_ACEOF |
20564 | /* end confdefs.h. */ |
20565 | |
dd184caf |
20566 | /* Override any GCC internal prototype to avoid an error. |
20567 | Use char because int might match the return type of a GCC |
20568 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20569 | #ifdef __cplusplus |
20570 | extern "C" |
20571 | #endif |
d9898ee8 |
20572 | char gdbm_open (); |
20573 | int |
20574 | main () |
20575 | { |
dd184caf |
20576 | return gdbm_open (); |
d9898ee8 |
20577 | ; |
20578 | return 0; |
20579 | } |
20580 | _ACEOF |
20581 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
20582 | if { (ac_try="$ac_link" |
20583 | case "(($ac_try" in |
20584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20585 | *) ac_try_echo=$ac_try;; |
20586 | esac |
20587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20588 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20589 | ac_status=$? |
20590 | grep -v '^ *+' conftest.er1 >conftest.err |
20591 | rm -f conftest.er1 |
20592 | cat conftest.err >&5 |
20593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20594 | (exit $ac_status); } && { |
20595 | test -z "$ac_c_werror_flag" || |
20596 | test ! -s conftest.err |
20597 | } && test -s conftest$ac_exeext && |
20598 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20599 | ac_cv_lib_gdbm_gdbm_open=yes |
20600 | else |
20601 | echo "$as_me: failed program was:" >&5 |
20602 | sed 's/^/| /' conftest.$ac_ext >&5 |
20603 | |
dd184caf |
20604 | ac_cv_lib_gdbm_gdbm_open=no |
d9898ee8 |
20605 | fi |
dd184caf |
20606 | |
20607 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20608 | conftest$ac_exeext conftest.$ac_ext |
20609 | LIBS=$ac_check_lib_save_LIBS |
20610 | fi |
dd184caf |
20611 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5 |
20612 | echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; } |
d9898ee8 |
20613 | if test $ac_cv_lib_gdbm_gdbm_open = yes; then |
20614 | LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS" |
20615 | fi |
20616 | |
dd184caf |
20617 | { echo "$as_me:$LINENO: checking for gdbm_open" >&5 |
20618 | echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6; } |
d9898ee8 |
20619 | if test "${ac_cv_func_gdbm_open+set}" = set; then |
20620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20621 | else |
20622 | cat >conftest.$ac_ext <<_ACEOF |
20623 | /* confdefs.h. */ |
20624 | _ACEOF |
20625 | cat confdefs.h >>conftest.$ac_ext |
20626 | cat >>conftest.$ac_ext <<_ACEOF |
20627 | /* end confdefs.h. */ |
20628 | /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open. |
20629 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
20630 | #define gdbm_open innocuous_gdbm_open |
20631 | |
20632 | /* System header to define __stub macros and hopefully few prototypes, |
20633 | which can conflict with char gdbm_open (); below. |
20634 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
20635 | <limits.h> exists even on freestanding compilers. */ |
20636 | |
20637 | #ifdef __STDC__ |
20638 | # include <limits.h> |
20639 | #else |
20640 | # include <assert.h> |
20641 | #endif |
20642 | |
20643 | #undef gdbm_open |
20644 | |
dd184caf |
20645 | /* Override any GCC internal prototype to avoid an error. |
20646 | Use char because int might match the return type of a GCC |
20647 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20648 | #ifdef __cplusplus |
20649 | extern "C" |
d9898ee8 |
20650 | #endif |
d9898ee8 |
20651 | char gdbm_open (); |
20652 | /* The GNU C library defines this for functions which it implements |
20653 | to always fail with ENOSYS. Some functions are actually named |
20654 | something starting with __ and the normal name is an alias. */ |
dd184caf |
20655 | #if defined __stub_gdbm_open || defined __stub___gdbm_open |
d9898ee8 |
20656 | choke me |
d9898ee8 |
20657 | #endif |
20658 | |
20659 | int |
20660 | main () |
20661 | { |
dd184caf |
20662 | return gdbm_open (); |
d9898ee8 |
20663 | ; |
20664 | return 0; |
20665 | } |
20666 | _ACEOF |
20667 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
20668 | if { (ac_try="$ac_link" |
20669 | case "(($ac_try" in |
20670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20671 | *) ac_try_echo=$ac_try;; |
20672 | esac |
20673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20674 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20675 | ac_status=$? |
20676 | grep -v '^ *+' conftest.er1 >conftest.err |
20677 | rm -f conftest.er1 |
20678 | cat conftest.err >&5 |
20679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20680 | (exit $ac_status); } && { |
20681 | test -z "$ac_c_werror_flag" || |
20682 | test ! -s conftest.err |
20683 | } && test -s conftest$ac_exeext && |
20684 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20685 | ac_cv_func_gdbm_open=yes |
20686 | else |
20687 | echo "$as_me: failed program was:" >&5 |
20688 | sed 's/^/| /' conftest.$ac_ext >&5 |
20689 | |
dd184caf |
20690 | ac_cv_func_gdbm_open=no |
d9898ee8 |
20691 | fi |
dd184caf |
20692 | |
20693 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20694 | conftest$ac_exeext conftest.$ac_ext |
20695 | fi |
dd184caf |
20696 | { echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5 |
20697 | echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6; } |
d9898ee8 |
20698 | if test $ac_cv_func_gdbm_open = yes; then |
20699 | HAVE_GDBM=y |
20700 | fi |
20701 | |
20702 | fi |
20703 | |
20704 | LIBS="$saveLIBS" |
20705 | |
20706 | if test "$db" != "gdbm" |
20707 | then |
dd184caf |
20708 | { echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5 |
20709 | echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6; } |
d9898ee8 |
20710 | if test "${ac_cv_lib_db_dbopen+set}" = set; then |
20711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20712 | else |
20713 | ac_check_lib_save_LIBS=$LIBS |
20714 | LIBS="-ldb $LIBS" |
20715 | cat >conftest.$ac_ext <<_ACEOF |
20716 | /* confdefs.h. */ |
20717 | _ACEOF |
20718 | cat confdefs.h >>conftest.$ac_ext |
20719 | cat >>conftest.$ac_ext <<_ACEOF |
20720 | /* end confdefs.h. */ |
20721 | |
dd184caf |
20722 | /* Override any GCC internal prototype to avoid an error. |
20723 | Use char because int might match the return type of a GCC |
20724 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20725 | #ifdef __cplusplus |
20726 | extern "C" |
20727 | #endif |
d9898ee8 |
20728 | char dbopen (); |
20729 | int |
20730 | main () |
20731 | { |
dd184caf |
20732 | return dbopen (); |
d9898ee8 |
20733 | ; |
20734 | return 0; |
20735 | } |
20736 | _ACEOF |
20737 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
20738 | if { (ac_try="$ac_link" |
20739 | case "(($ac_try" in |
20740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20741 | *) ac_try_echo=$ac_try;; |
20742 | esac |
20743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20744 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20745 | ac_status=$? |
20746 | grep -v '^ *+' conftest.er1 >conftest.err |
20747 | rm -f conftest.er1 |
20748 | cat conftest.err >&5 |
20749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20750 | (exit $ac_status); } && { |
20751 | test -z "$ac_c_werror_flag" || |
20752 | test ! -s conftest.err |
20753 | } && test -s conftest$ac_exeext && |
20754 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20755 | ac_cv_lib_db_dbopen=yes |
20756 | else |
20757 | echo "$as_me: failed program was:" >&5 |
20758 | sed 's/^/| /' conftest.$ac_ext >&5 |
20759 | |
dd184caf |
20760 | ac_cv_lib_db_dbopen=no |
d9898ee8 |
20761 | fi |
dd184caf |
20762 | |
20763 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20764 | conftest$ac_exeext conftest.$ac_ext |
20765 | LIBS=$ac_check_lib_save_LIBS |
20766 | fi |
dd184caf |
20767 | { echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5 |
20768 | echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6; } |
d9898ee8 |
20769 | if test $ac_cv_lib_db_dbopen = yes; then |
20770 | LIBDB=-ldb ; LIBS="-ldb $LIBS" |
20771 | else |
dd184caf |
20772 | { echo "$as_me:$LINENO: checking for db_open in -ldb" >&5 |
20773 | echo $ECHO_N "checking for db_open in -ldb... $ECHO_C" >&6; } |
d9898ee8 |
20774 | if test "${ac_cv_lib_db_db_open+set}" = set; then |
20775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20776 | else |
20777 | ac_check_lib_save_LIBS=$LIBS |
20778 | LIBS="-ldb $LIBS" |
20779 | cat >conftest.$ac_ext <<_ACEOF |
20780 | /* confdefs.h. */ |
20781 | _ACEOF |
20782 | cat confdefs.h >>conftest.$ac_ext |
20783 | cat >>conftest.$ac_ext <<_ACEOF |
20784 | /* end confdefs.h. */ |
20785 | |
dd184caf |
20786 | /* Override any GCC internal prototype to avoid an error. |
20787 | Use char because int might match the return type of a GCC |
20788 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20789 | #ifdef __cplusplus |
20790 | extern "C" |
20791 | #endif |
d9898ee8 |
20792 | char db_open (); |
20793 | int |
20794 | main () |
20795 | { |
dd184caf |
20796 | return db_open (); |
d9898ee8 |
20797 | ; |
20798 | return 0; |
20799 | } |
20800 | _ACEOF |
20801 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
20802 | if { (ac_try="$ac_link" |
20803 | case "(($ac_try" in |
20804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20805 | *) ac_try_echo=$ac_try;; |
20806 | esac |
20807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20808 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20809 | ac_status=$? |
20810 | grep -v '^ *+' conftest.er1 >conftest.err |
20811 | rm -f conftest.er1 |
20812 | cat conftest.err >&5 |
20813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20814 | (exit $ac_status); } && { |
20815 | test -z "$ac_c_werror_flag" || |
20816 | test ! -s conftest.err |
20817 | } && test -s conftest$ac_exeext && |
20818 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20819 | ac_cv_lib_db_db_open=yes |
20820 | else |
20821 | echo "$as_me: failed program was:" >&5 |
20822 | sed 's/^/| /' conftest.$ac_ext >&5 |
20823 | |
dd184caf |
20824 | ac_cv_lib_db_db_open=no |
d9898ee8 |
20825 | fi |
dd184caf |
20826 | |
20827 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20828 | conftest$ac_exeext conftest.$ac_ext |
20829 | LIBS=$ac_check_lib_save_LIBS |
20830 | fi |
dd184caf |
20831 | { echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_open" >&5 |
20832 | echo "${ECHO_T}$ac_cv_lib_db_db_open" >&6; } |
d9898ee8 |
20833 | if test $ac_cv_lib_db_db_open = yes; then |
20834 | LIBDB=-ldb ; LIBS="-ldb $LIBS" |
20835 | else |
dd184caf |
20836 | { echo "$as_me:$LINENO: checking for db_env_create in -ldb" >&5 |
20837 | echo $ECHO_N "checking for db_env_create in -ldb... $ECHO_C" >&6; } |
d9898ee8 |
20838 | if test "${ac_cv_lib_db_db_env_create+set}" = set; then |
20839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20840 | else |
20841 | ac_check_lib_save_LIBS=$LIBS |
20842 | LIBS="-ldb $LIBS" |
20843 | cat >conftest.$ac_ext <<_ACEOF |
20844 | /* confdefs.h. */ |
20845 | _ACEOF |
20846 | cat confdefs.h >>conftest.$ac_ext |
20847 | cat >>conftest.$ac_ext <<_ACEOF |
20848 | /* end confdefs.h. */ |
20849 | |
dd184caf |
20850 | /* Override any GCC internal prototype to avoid an error. |
20851 | Use char because int might match the return type of a GCC |
20852 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20853 | #ifdef __cplusplus |
20854 | extern "C" |
20855 | #endif |
d9898ee8 |
20856 | char db_env_create (); |
20857 | int |
20858 | main () |
20859 | { |
dd184caf |
20860 | return db_env_create (); |
d9898ee8 |
20861 | ; |
20862 | return 0; |
20863 | } |
20864 | _ACEOF |
20865 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
20866 | if { (ac_try="$ac_link" |
20867 | case "(($ac_try" in |
20868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20869 | *) ac_try_echo=$ac_try;; |
20870 | esac |
20871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20872 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20873 | ac_status=$? |
20874 | grep -v '^ *+' conftest.er1 >conftest.err |
20875 | rm -f conftest.er1 |
20876 | cat conftest.err >&5 |
20877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20878 | (exit $ac_status); } && { |
20879 | test -z "$ac_c_werror_flag" || |
20880 | test ! -s conftest.err |
20881 | } && test -s conftest$ac_exeext && |
20882 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20883 | ac_cv_lib_db_db_env_create=yes |
20884 | else |
20885 | echo "$as_me: failed program was:" >&5 |
20886 | sed 's/^/| /' conftest.$ac_ext >&5 |
20887 | |
dd184caf |
20888 | ac_cv_lib_db_db_env_create=no |
d9898ee8 |
20889 | fi |
dd184caf |
20890 | |
20891 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20892 | conftest$ac_exeext conftest.$ac_ext |
20893 | LIBS=$ac_check_lib_save_LIBS |
20894 | fi |
dd184caf |
20895 | { echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_env_create" >&5 |
20896 | echo "${ECHO_T}$ac_cv_lib_db_db_env_create" >&6; } |
d9898ee8 |
20897 | if test $ac_cv_lib_db_db_env_create = yes; then |
20898 | LIBDB=-ldb; LIBS="-ldb $LIBS" |
20899 | fi |
20900 | |
20901 | |
20902 | fi |
20903 | |
20904 | fi |
20905 | |
20906 | |
dd184caf |
20907 | { echo "$as_me:$LINENO: checking for dbopen" >&5 |
20908 | echo $ECHO_N "checking for dbopen... $ECHO_C" >&6; } |
d9898ee8 |
20909 | if test "${ac_cv_func_dbopen+set}" = set; then |
20910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20911 | else |
20912 | cat >conftest.$ac_ext <<_ACEOF |
20913 | /* confdefs.h. */ |
20914 | _ACEOF |
20915 | cat confdefs.h >>conftest.$ac_ext |
20916 | cat >>conftest.$ac_ext <<_ACEOF |
20917 | /* end confdefs.h. */ |
20918 | /* Define dbopen to an innocuous variant, in case <limits.h> declares dbopen. |
20919 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
20920 | #define dbopen innocuous_dbopen |
20921 | |
20922 | /* System header to define __stub macros and hopefully few prototypes, |
20923 | which can conflict with char dbopen (); below. |
20924 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
20925 | <limits.h> exists even on freestanding compilers. */ |
20926 | |
20927 | #ifdef __STDC__ |
20928 | # include <limits.h> |
20929 | #else |
20930 | # include <assert.h> |
20931 | #endif |
20932 | |
20933 | #undef dbopen |
20934 | |
dd184caf |
20935 | /* Override any GCC internal prototype to avoid an error. |
20936 | Use char because int might match the return type of a GCC |
20937 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
20938 | #ifdef __cplusplus |
20939 | extern "C" |
d9898ee8 |
20940 | #endif |
d9898ee8 |
20941 | char dbopen (); |
20942 | /* The GNU C library defines this for functions which it implements |
20943 | to always fail with ENOSYS. Some functions are actually named |
20944 | something starting with __ and the normal name is an alias. */ |
dd184caf |
20945 | #if defined __stub_dbopen || defined __stub___dbopen |
d9898ee8 |
20946 | choke me |
d9898ee8 |
20947 | #endif |
20948 | |
20949 | int |
20950 | main () |
20951 | { |
dd184caf |
20952 | return dbopen (); |
d9898ee8 |
20953 | ; |
20954 | return 0; |
20955 | } |
20956 | _ACEOF |
20957 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
20958 | if { (ac_try="$ac_link" |
20959 | case "(($ac_try" in |
20960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20961 | *) ac_try_echo=$ac_try;; |
20962 | esac |
20963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20964 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
20965 | ac_status=$? |
20966 | grep -v '^ *+' conftest.er1 >conftest.err |
20967 | rm -f conftest.er1 |
20968 | cat conftest.err >&5 |
20969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
20970 | (exit $ac_status); } && { |
20971 | test -z "$ac_c_werror_flag" || |
20972 | test ! -s conftest.err |
20973 | } && test -s conftest$ac_exeext && |
20974 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
20975 | ac_cv_func_dbopen=yes |
20976 | else |
20977 | echo "$as_me: failed program was:" >&5 |
20978 | sed 's/^/| /' conftest.$ac_ext >&5 |
20979 | |
dd184caf |
20980 | ac_cv_func_dbopen=no |
d9898ee8 |
20981 | fi |
dd184caf |
20982 | |
20983 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
20984 | conftest$ac_exeext conftest.$ac_ext |
20985 | fi |
dd184caf |
20986 | { echo "$as_me:$LINENO: result: $ac_cv_func_dbopen" >&5 |
20987 | echo "${ECHO_T}$ac_cv_func_dbopen" >&6; } |
d9898ee8 |
20988 | if test $ac_cv_func_dbopen = yes; then |
20989 | HAVE_BDB=1 |
20990 | fi |
20991 | |
dd184caf |
20992 | { echo "$as_me:$LINENO: checking for db_open" >&5 |
20993 | echo $ECHO_N "checking for db_open... $ECHO_C" >&6; } |
d9898ee8 |
20994 | if test "${ac_cv_func_db_open+set}" = set; then |
20995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20996 | else |
20997 | cat >conftest.$ac_ext <<_ACEOF |
20998 | /* confdefs.h. */ |
20999 | _ACEOF |
21000 | cat confdefs.h >>conftest.$ac_ext |
21001 | cat >>conftest.$ac_ext <<_ACEOF |
21002 | /* end confdefs.h. */ |
21003 | /* Define db_open to an innocuous variant, in case <limits.h> declares db_open. |
21004 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
21005 | #define db_open innocuous_db_open |
21006 | |
21007 | /* System header to define __stub macros and hopefully few prototypes, |
21008 | which can conflict with char db_open (); below. |
21009 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
21010 | <limits.h> exists even on freestanding compilers. */ |
21011 | |
21012 | #ifdef __STDC__ |
21013 | # include <limits.h> |
21014 | #else |
21015 | # include <assert.h> |
21016 | #endif |
21017 | |
21018 | #undef db_open |
21019 | |
dd184caf |
21020 | /* Override any GCC internal prototype to avoid an error. |
21021 | Use char because int might match the return type of a GCC |
21022 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
21023 | #ifdef __cplusplus |
21024 | extern "C" |
d9898ee8 |
21025 | #endif |
d9898ee8 |
21026 | char db_open (); |
21027 | /* The GNU C library defines this for functions which it implements |
21028 | to always fail with ENOSYS. Some functions are actually named |
21029 | something starting with __ and the normal name is an alias. */ |
dd184caf |
21030 | #if defined __stub_db_open || defined __stub___db_open |
d9898ee8 |
21031 | choke me |
d9898ee8 |
21032 | #endif |
21033 | |
21034 | int |
21035 | main () |
21036 | { |
dd184caf |
21037 | return db_open (); |
d9898ee8 |
21038 | ; |
21039 | return 0; |
21040 | } |
21041 | _ACEOF |
21042 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
21043 | if { (ac_try="$ac_link" |
21044 | case "(($ac_try" in |
21045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21046 | *) ac_try_echo=$ac_try;; |
21047 | esac |
21048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21049 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
21050 | ac_status=$? |
21051 | grep -v '^ *+' conftest.er1 >conftest.err |
21052 | rm -f conftest.er1 |
21053 | cat conftest.err >&5 |
21054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
21055 | (exit $ac_status); } && { |
21056 | test -z "$ac_c_werror_flag" || |
21057 | test ! -s conftest.err |
21058 | } && test -s conftest$ac_exeext && |
21059 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
21060 | ac_cv_func_db_open=yes |
21061 | else |
21062 | echo "$as_me: failed program was:" >&5 |
21063 | sed 's/^/| /' conftest.$ac_ext >&5 |
21064 | |
dd184caf |
21065 | ac_cv_func_db_open=no |
d9898ee8 |
21066 | fi |
dd184caf |
21067 | |
21068 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
21069 | conftest$ac_exeext conftest.$ac_ext |
21070 | fi |
dd184caf |
21071 | { echo "$as_me:$LINENO: result: $ac_cv_func_db_open" >&5 |
21072 | echo "${ECHO_T}$ac_cv_func_db_open" >&6; } |
d9898ee8 |
21073 | if test $ac_cv_func_db_open = yes; then |
21074 | HAVE_BDB=1 |
21075 | fi |
21076 | |
dd184caf |
21077 | { echo "$as_me:$LINENO: checking for db_env_create" >&5 |
21078 | echo $ECHO_N "checking for db_env_create... $ECHO_C" >&6; } |
d9898ee8 |
21079 | if test "${ac_cv_func_db_env_create+set}" = set; then |
21080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21081 | else |
21082 | cat >conftest.$ac_ext <<_ACEOF |
21083 | /* confdefs.h. */ |
21084 | _ACEOF |
21085 | cat confdefs.h >>conftest.$ac_ext |
21086 | cat >>conftest.$ac_ext <<_ACEOF |
21087 | /* end confdefs.h. */ |
21088 | /* Define db_env_create to an innocuous variant, in case <limits.h> declares db_env_create. |
21089 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
21090 | #define db_env_create innocuous_db_env_create |
21091 | |
21092 | /* System header to define __stub macros and hopefully few prototypes, |
21093 | which can conflict with char db_env_create (); below. |
21094 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
21095 | <limits.h> exists even on freestanding compilers. */ |
21096 | |
21097 | #ifdef __STDC__ |
21098 | # include <limits.h> |
21099 | #else |
21100 | # include <assert.h> |
21101 | #endif |
21102 | |
21103 | #undef db_env_create |
21104 | |
dd184caf |
21105 | /* Override any GCC internal prototype to avoid an error. |
21106 | Use char because int might match the return type of a GCC |
21107 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
21108 | #ifdef __cplusplus |
21109 | extern "C" |
d9898ee8 |
21110 | #endif |
d9898ee8 |
21111 | char db_env_create (); |
21112 | /* The GNU C library defines this for functions which it implements |
21113 | to always fail with ENOSYS. Some functions are actually named |
21114 | something starting with __ and the normal name is an alias. */ |
dd184caf |
21115 | #if defined __stub_db_env_create || defined __stub___db_env_create |
d9898ee8 |
21116 | choke me |
d9898ee8 |
21117 | #endif |
21118 | |
21119 | int |
21120 | main () |
21121 | { |
dd184caf |
21122 | return db_env_create (); |
d9898ee8 |
21123 | ; |
21124 | return 0; |
21125 | } |
21126 | _ACEOF |
21127 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
21128 | if { (ac_try="$ac_link" |
21129 | case "(($ac_try" in |
21130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21131 | *) ac_try_echo=$ac_try;; |
21132 | esac |
21133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21134 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
21135 | ac_status=$? |
21136 | grep -v '^ *+' conftest.er1 >conftest.err |
21137 | rm -f conftest.er1 |
21138 | cat conftest.err >&5 |
21139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
21140 | (exit $ac_status); } && { |
21141 | test -z "$ac_c_werror_flag" || |
21142 | test ! -s conftest.err |
21143 | } && test -s conftest$ac_exeext && |
21144 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
21145 | ac_cv_func_db_env_create=yes |
21146 | else |
21147 | echo "$as_me: failed program was:" >&5 |
21148 | sed 's/^/| /' conftest.$ac_ext >&5 |
21149 | |
dd184caf |
21150 | ac_cv_func_db_env_create=no |
d9898ee8 |
21151 | fi |
dd184caf |
21152 | |
21153 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
21154 | conftest$ac_exeext conftest.$ac_ext |
21155 | fi |
dd184caf |
21156 | { echo "$as_me:$LINENO: result: $ac_cv_func_db_env_create" >&5 |
21157 | echo "${ECHO_T}$ac_cv_func_db_env_create" >&6; } |
d9898ee8 |
21158 | if test $ac_cv_func_db_env_create = yes; then |
21159 | HAVE_BDB=1 |
21160 | fi |
21161 | |
21162 | fi |
21163 | |
21164 | LIBS="$saveLIBS" |
21165 | |
21166 | if test "$HAVE_GDBM$HAVE_BDB" = "" |
21167 | then |
21168 | { { echo "$as_me:$LINENO: error: Cannot find either the gdbm or the db library." >&5 |
21169 | echo "$as_me: error: Cannot find either the gdbm or the db library." >&2;} |
21170 | { (exit 1); exit 1; }; } |
21171 | fi |
21172 | |
21173 | USE_GDBM=0 |
21174 | USE_DB=0 |
21175 | |
21176 | if test "$HAVE_GDBM" = "y" |
21177 | then |
21178 | LIBDB="" |
21179 | USE_GDBM=1 |
21180 | DBSUBDIR=gdbmobj |
21181 | if test "$needs_withdb" = 1 |
21182 | then |
21183 | ac_configure_args="$ac_configure_args --with-db=gdbm" |
21184 | fi |
21185 | dblibrary=gdbmobj/libgdbmobj.la |
21186 | else |
21187 | LIBGDBM="" |
21188 | USE_DB=1 |
21189 | DBSUBDIR=bdbobj |
21190 | if test "$needs_withdb" = 1 |
21191 | then |
21192 | ac_configure_args="$ac_configure_args --with-db=db" |
21193 | fi |
21194 | dblibrary=bdbobj/libbdbobj.la |
21195 | fi |
21196 | |
21197 | |
21198 | |
21199 | |
21200 | |
21201 | |
21202 | |
21203 | |
dd184caf |
21204 | # Check whether --with-authuserdb was given. |
d9898ee8 |
21205 | if test "${with_authuserdb+set}" = set; then |
dd184caf |
21206 | withval=$with_authuserdb; doauthuserdb="$withval" |
d9898ee8 |
21207 | else |
21208 | doauthuserdb="no" |
21209 | if test -d ${srcdir}/userdb |
21210 | then |
21211 | doauthuserdb="yes" |
21212 | fi |
dd184caf |
21213 | fi |
21214 | |
d9898ee8 |
21215 | |
21216 | if test "$doauthuserdb" = "no" |
21217 | then |
21218 | AUTHUSERDB="" |
21219 | else |
21220 | AUTHUSERDB="authuserdb" |
21221 | LIBAUTHUSERDB="libauthuserdb.la" |
21222 | |
21223 | fi |
21224 | |
21225 | |
dd184caf |
21226 | # Check whether --with-makedatprog was given. |
d9898ee8 |
21227 | if test "${with_makedatprog+set}" = set; then |
dd184caf |
21228 | withval=$with_makedatprog; : |
d9898ee8 |
21229 | else |
21230 | |
21231 | ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog" |
21232 | |
dd184caf |
21233 | fi |
21234 | |
d9898ee8 |
21235 | |
21236 | cat >dbobj.config <<EOF |
21237 | LIBDB=$LIBDB |
21238 | LIBGDBM=$LIBGDBM |
21239 | dblibrary=$dblibrary |
21240 | EOF |
21241 | |
21242 | |
21243 | |
21244 | |
21245 | |
21246 | |
21247 | |
21248 | |
21249 | |
21250 | userdb="$pkgconfdir/userdb" |
21251 | |
dd184caf |
21252 | # Check whether --with-userdb was given. |
d9898ee8 |
21253 | if test "${with_userdb+set}" = set; then |
dd184caf |
21254 | withval=$with_userdb; userdb="$withval" |
d9898ee8 |
21255 | else |
21256 | ac_configure_args="$ac_configure_args '--with-userdb=$userdb'" |
dd184caf |
21257 | fi |
21258 | |
d9898ee8 |
21259 | |
21260 | |
21261 | cat >>confdefs.h <<_ACEOF |
21262 | #define USERDB "$userdb" |
21263 | _ACEOF |
21264 | |
21265 | |
21266 | |
21267 | |
21268 | for ac_header in stdio.h |
21269 | do |
21270 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
21271 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21272 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21273 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21274 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
21275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21276 | fi |
dd184caf |
21277 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21278 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21279 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
21280 | else |
21281 | # Is the header compilable? |
dd184caf |
21282 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21283 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
21284 | cat >conftest.$ac_ext <<_ACEOF |
21285 | /* confdefs.h. */ |
21286 | _ACEOF |
21287 | cat confdefs.h >>conftest.$ac_ext |
21288 | cat >>conftest.$ac_ext <<_ACEOF |
21289 | /* end confdefs.h. */ |
21290 | $ac_includes_default |
21291 | #include <$ac_header> |
21292 | _ACEOF |
21293 | rm -f conftest.$ac_objext |
dd184caf |
21294 | if { (ac_try="$ac_compile" |
21295 | case "(($ac_try" in |
21296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21297 | *) ac_try_echo=$ac_try;; |
21298 | esac |
21299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21300 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
21301 | ac_status=$? |
21302 | grep -v '^ *+' conftest.er1 >conftest.err |
21303 | rm -f conftest.er1 |
21304 | cat conftest.err >&5 |
21305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
21306 | (exit $ac_status); } && { |
21307 | test -z "$ac_c_werror_flag" || |
21308 | test ! -s conftest.err |
21309 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
21310 | ac_header_compiler=yes |
21311 | else |
21312 | echo "$as_me: failed program was:" >&5 |
21313 | sed 's/^/| /' conftest.$ac_ext >&5 |
21314 | |
dd184caf |
21315 | ac_header_compiler=no |
d9898ee8 |
21316 | fi |
dd184caf |
21317 | |
21318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21319 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21320 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
21321 | |
21322 | # Is the header present? |
dd184caf |
21323 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21324 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
21325 | cat >conftest.$ac_ext <<_ACEOF |
21326 | /* confdefs.h. */ |
21327 | _ACEOF |
21328 | cat confdefs.h >>conftest.$ac_ext |
21329 | cat >>conftest.$ac_ext <<_ACEOF |
21330 | /* end confdefs.h. */ |
21331 | #include <$ac_header> |
21332 | _ACEOF |
dd184caf |
21333 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21334 | case "(($ac_try" in |
21335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21336 | *) ac_try_echo=$ac_try;; |
21337 | esac |
21338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21339 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
21340 | ac_status=$? |
21341 | grep -v '^ *+' conftest.er1 >conftest.err |
21342 | rm -f conftest.er1 |
21343 | cat conftest.err >&5 |
21344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
21345 | (exit $ac_status); } >/dev/null && { |
21346 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
21347 | test ! -s conftest.err |
21348 | }; then |
d9898ee8 |
21349 | ac_header_preproc=yes |
21350 | else |
21351 | echo "$as_me: failed program was:" >&5 |
21352 | sed 's/^/| /' conftest.$ac_ext >&5 |
21353 | |
21354 | ac_header_preproc=no |
21355 | fi |
dd184caf |
21356 | |
d9898ee8 |
21357 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
21358 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21359 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
21360 | |
21361 | # So? What about this header? |
21362 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21363 | yes:no: ) |
21364 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21365 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
21366 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21367 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
21368 | ac_header_preproc=yes |
21369 | ;; |
21370 | no:yes:* ) |
21371 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21372 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
21373 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21374 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
21375 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
21376 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
21377 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
21378 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
21379 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21380 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
21381 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21382 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
21383 | ( cat <<\_ASBOX |
d9898ee8 |
21384 | ## -------------------------------------------------- ## |
21385 | ## Report this to courier-users@lists.sourceforge.net ## |
21386 | ## -------------------------------------------------- ## |
21387 | _ASBOX |
dd184caf |
21388 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
21389 | ;; |
21390 | esac |
dd184caf |
21391 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21392 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21393 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
21394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21395 | else |
21396 | eval "$as_ac_Header=\$ac_header_preproc" |
21397 | fi |
dd184caf |
21398 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21399 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21400 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
21401 | |
21402 | fi |
21403 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
21404 | cat >>confdefs.h <<_ACEOF |
21405 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
21406 | _ACEOF |
21407 | |
21408 | fi |
21409 | |
21410 | done |
21411 | |
21412 | |
21413 | |
21414 | |
21415 | |
21416 | |
dd184caf |
21417 | # Check whether --with-authpam was given. |
d9898ee8 |
21418 | if test "${with_authpam+set}" = set; then |
dd184caf |
21419 | withval=$with_authpam; doauthpam="$withval" |
21420 | fi |
21421 | |
d9898ee8 |
21422 | |
21423 | |
21424 | |
21425 | for ac_header in security/pam_appl.h Pam/pam_appl.h |
21426 | do |
21427 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
21428 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21429 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21430 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21431 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
21432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21433 | fi |
dd184caf |
21434 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21435 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21436 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
21437 | else |
21438 | # Is the header compilable? |
dd184caf |
21439 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21440 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
21441 | cat >conftest.$ac_ext <<_ACEOF |
21442 | /* confdefs.h. */ |
21443 | _ACEOF |
21444 | cat confdefs.h >>conftest.$ac_ext |
21445 | cat >>conftest.$ac_ext <<_ACEOF |
21446 | /* end confdefs.h. */ |
21447 | $ac_includes_default |
21448 | #include <$ac_header> |
21449 | _ACEOF |
21450 | rm -f conftest.$ac_objext |
dd184caf |
21451 | if { (ac_try="$ac_compile" |
21452 | case "(($ac_try" in |
21453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21454 | *) ac_try_echo=$ac_try;; |
21455 | esac |
21456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21457 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
21458 | ac_status=$? |
21459 | grep -v '^ *+' conftest.er1 >conftest.err |
21460 | rm -f conftest.er1 |
21461 | cat conftest.err >&5 |
21462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
21463 | (exit $ac_status); } && { |
21464 | test -z "$ac_c_werror_flag" || |
21465 | test ! -s conftest.err |
21466 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
21467 | ac_header_compiler=yes |
21468 | else |
21469 | echo "$as_me: failed program was:" >&5 |
21470 | sed 's/^/| /' conftest.$ac_ext >&5 |
21471 | |
dd184caf |
21472 | ac_header_compiler=no |
d9898ee8 |
21473 | fi |
dd184caf |
21474 | |
21475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21476 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21477 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
21478 | |
21479 | # Is the header present? |
dd184caf |
21480 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21481 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
21482 | cat >conftest.$ac_ext <<_ACEOF |
21483 | /* confdefs.h. */ |
21484 | _ACEOF |
21485 | cat confdefs.h >>conftest.$ac_ext |
21486 | cat >>conftest.$ac_ext <<_ACEOF |
21487 | /* end confdefs.h. */ |
21488 | #include <$ac_header> |
21489 | _ACEOF |
dd184caf |
21490 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21491 | case "(($ac_try" in |
21492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21493 | *) ac_try_echo=$ac_try;; |
21494 | esac |
21495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21496 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
21497 | ac_status=$? |
21498 | grep -v '^ *+' conftest.er1 >conftest.err |
21499 | rm -f conftest.er1 |
21500 | cat conftest.err >&5 |
21501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
21502 | (exit $ac_status); } >/dev/null && { |
21503 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
21504 | test ! -s conftest.err |
21505 | }; then |
d9898ee8 |
21506 | ac_header_preproc=yes |
21507 | else |
21508 | echo "$as_me: failed program was:" >&5 |
21509 | sed 's/^/| /' conftest.$ac_ext >&5 |
21510 | |
21511 | ac_header_preproc=no |
21512 | fi |
dd184caf |
21513 | |
d9898ee8 |
21514 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
21515 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21516 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
21517 | |
21518 | # So? What about this header? |
21519 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21520 | yes:no: ) |
21521 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21522 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
21523 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21524 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
21525 | ac_header_preproc=yes |
21526 | ;; |
21527 | no:yes:* ) |
21528 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21529 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
21530 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21531 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
21532 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
21533 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
21534 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
21535 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
21536 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21537 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
21538 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21539 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
21540 | ( cat <<\_ASBOX |
d9898ee8 |
21541 | ## -------------------------------------------------- ## |
21542 | ## Report this to courier-users@lists.sourceforge.net ## |
21543 | ## -------------------------------------------------- ## |
21544 | _ASBOX |
dd184caf |
21545 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
21546 | ;; |
21547 | esac |
dd184caf |
21548 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21549 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21550 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
21551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21552 | else |
21553 | eval "$as_ac_Header=\$ac_header_preproc" |
21554 | fi |
dd184caf |
21555 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21556 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21557 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
21558 | |
21559 | fi |
21560 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
21561 | cat >>confdefs.h <<_ACEOF |
21562 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
21563 | _ACEOF |
21564 | |
21565 | fi |
21566 | |
21567 | done |
21568 | |
21569 | if test "$doauthpam" = "no" |
21570 | then |
21571 | LIBDL="" |
21572 | else |
21573 | saveLIBS="$LIBS" |
21574 | LIBDL="" |
dd184caf |
21575 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
21576 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
21577 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
21578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21579 | else |
21580 | ac_check_lib_save_LIBS=$LIBS |
21581 | LIBS="-ldl $LIBS" |
21582 | cat >conftest.$ac_ext <<_ACEOF |
21583 | /* confdefs.h. */ |
21584 | _ACEOF |
21585 | cat confdefs.h >>conftest.$ac_ext |
21586 | cat >>conftest.$ac_ext <<_ACEOF |
21587 | /* end confdefs.h. */ |
21588 | |
dd184caf |
21589 | /* Override any GCC internal prototype to avoid an error. |
21590 | Use char because int might match the return type of a GCC |
21591 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
21592 | #ifdef __cplusplus |
21593 | extern "C" |
21594 | #endif |
d9898ee8 |
21595 | char dlopen (); |
21596 | int |
21597 | main () |
21598 | { |
dd184caf |
21599 | return dlopen (); |
d9898ee8 |
21600 | ; |
21601 | return 0; |
21602 | } |
21603 | _ACEOF |
21604 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
21605 | if { (ac_try="$ac_link" |
21606 | case "(($ac_try" in |
21607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21608 | *) ac_try_echo=$ac_try;; |
21609 | esac |
21610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21611 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
21612 | ac_status=$? |
21613 | grep -v '^ *+' conftest.er1 >conftest.err |
21614 | rm -f conftest.er1 |
21615 | cat conftest.err >&5 |
21616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
21617 | (exit $ac_status); } && { |
21618 | test -z "$ac_c_werror_flag" || |
21619 | test ! -s conftest.err |
21620 | } && test -s conftest$ac_exeext && |
21621 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
21622 | ac_cv_lib_dl_dlopen=yes |
21623 | else |
21624 | echo "$as_me: failed program was:" >&5 |
21625 | sed 's/^/| /' conftest.$ac_ext >&5 |
21626 | |
dd184caf |
21627 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
21628 | fi |
dd184caf |
21629 | |
21630 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
21631 | conftest$ac_exeext conftest.$ac_ext |
21632 | LIBS=$ac_check_lib_save_LIBS |
21633 | fi |
dd184caf |
21634 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
21635 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
21636 | if test $ac_cv_lib_dl_dlopen = yes; then |
21637 | LIBDL="-ldl" |
21638 | fi |
21639 | |
21640 | LIBS="$saveLIBS" |
21641 | |
dd184caf |
21642 | { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5 |
21643 | echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; } |
d9898ee8 |
21644 | if test "${ac_cv_lib_pam_pam_start+set}" = set; then |
21645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21646 | else |
21647 | ac_check_lib_save_LIBS=$LIBS |
21648 | LIBS="-lpam $LIBDL $LIBS" |
21649 | cat >conftest.$ac_ext <<_ACEOF |
21650 | /* confdefs.h. */ |
21651 | _ACEOF |
21652 | cat confdefs.h >>conftest.$ac_ext |
21653 | cat >>conftest.$ac_ext <<_ACEOF |
21654 | /* end confdefs.h. */ |
21655 | |
dd184caf |
21656 | /* Override any GCC internal prototype to avoid an error. |
21657 | Use char because int might match the return type of a GCC |
21658 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
21659 | #ifdef __cplusplus |
21660 | extern "C" |
21661 | #endif |
d9898ee8 |
21662 | char pam_start (); |
21663 | int |
21664 | main () |
21665 | { |
dd184caf |
21666 | return pam_start (); |
d9898ee8 |
21667 | ; |
21668 | return 0; |
21669 | } |
21670 | _ACEOF |
21671 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
21672 | if { (ac_try="$ac_link" |
21673 | case "(($ac_try" in |
21674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21675 | *) ac_try_echo=$ac_try;; |
21676 | esac |
21677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21678 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
21679 | ac_status=$? |
21680 | grep -v '^ *+' conftest.er1 >conftest.err |
21681 | rm -f conftest.er1 |
21682 | cat conftest.err >&5 |
21683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
21684 | (exit $ac_status); } && { |
21685 | test -z "$ac_c_werror_flag" || |
21686 | test ! -s conftest.err |
21687 | } && test -s conftest$ac_exeext && |
21688 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
21689 | ac_cv_lib_pam_pam_start=yes |
21690 | else |
21691 | echo "$as_me: failed program was:" >&5 |
21692 | sed 's/^/| /' conftest.$ac_ext >&5 |
21693 | |
dd184caf |
21694 | ac_cv_lib_pam_pam_start=no |
d9898ee8 |
21695 | fi |
dd184caf |
21696 | |
21697 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
21698 | conftest$ac_exeext conftest.$ac_ext |
21699 | LIBS=$ac_check_lib_save_LIBS |
21700 | fi |
dd184caf |
21701 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5 |
21702 | echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; } |
d9898ee8 |
21703 | if test $ac_cv_lib_pam_pam_start = yes; then |
21704 | HAVE_PAM=1 |
21705 | LIBS="-lpam $LIBDL $LIBS" |
21706 | |
21707 | for ac_func in pam_setcred |
21708 | do |
21709 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
dd184caf |
21710 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
21711 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
21712 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
21713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21714 | else |
21715 | cat >conftest.$ac_ext <<_ACEOF |
21716 | /* confdefs.h. */ |
21717 | _ACEOF |
21718 | cat confdefs.h >>conftest.$ac_ext |
21719 | cat >>conftest.$ac_ext <<_ACEOF |
21720 | /* end confdefs.h. */ |
21721 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
21722 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
21723 | #define $ac_func innocuous_$ac_func |
21724 | |
21725 | /* System header to define __stub macros and hopefully few prototypes, |
21726 | which can conflict with char $ac_func (); below. |
21727 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
21728 | <limits.h> exists even on freestanding compilers. */ |
21729 | |
21730 | #ifdef __STDC__ |
21731 | # include <limits.h> |
21732 | #else |
21733 | # include <assert.h> |
21734 | #endif |
21735 | |
21736 | #undef $ac_func |
21737 | |
dd184caf |
21738 | /* Override any GCC internal prototype to avoid an error. |
21739 | Use char because int might match the return type of a GCC |
21740 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
21741 | #ifdef __cplusplus |
21742 | extern "C" |
d9898ee8 |
21743 | #endif |
d9898ee8 |
21744 | char $ac_func (); |
21745 | /* The GNU C library defines this for functions which it implements |
21746 | to always fail with ENOSYS. Some functions are actually named |
21747 | something starting with __ and the normal name is an alias. */ |
dd184caf |
21748 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 |
21749 | choke me |
d9898ee8 |
21750 | #endif |
21751 | |
21752 | int |
21753 | main () |
21754 | { |
dd184caf |
21755 | return $ac_func (); |
d9898ee8 |
21756 | ; |
21757 | return 0; |
21758 | } |
21759 | _ACEOF |
21760 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
21761 | if { (ac_try="$ac_link" |
21762 | case "(($ac_try" in |
21763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21764 | *) ac_try_echo=$ac_try;; |
21765 | esac |
21766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21767 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
21768 | ac_status=$? |
21769 | grep -v '^ *+' conftest.er1 >conftest.err |
21770 | rm -f conftest.er1 |
21771 | cat conftest.err >&5 |
21772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
21773 | (exit $ac_status); } && { |
21774 | test -z "$ac_c_werror_flag" || |
21775 | test ! -s conftest.err |
21776 | } && test -s conftest$ac_exeext && |
21777 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
21778 | eval "$as_ac_var=yes" |
21779 | else |
21780 | echo "$as_me: failed program was:" >&5 |
21781 | sed 's/^/| /' conftest.$ac_ext >&5 |
21782 | |
dd184caf |
21783 | eval "$as_ac_var=no" |
d9898ee8 |
21784 | fi |
dd184caf |
21785 | |
21786 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
21787 | conftest$ac_exeext conftest.$ac_ext |
21788 | fi |
dd184caf |
21789 | ac_res=`eval echo '${'$as_ac_var'}'` |
21790 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21791 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
21792 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
21793 | cat >>confdefs.h <<_ACEOF |
21794 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
21795 | _ACEOF |
21796 | |
21797 | fi |
21798 | done |
21799 | |
21800 | else |
21801 | HAVE_PAM=0 |
21802 | fi |
21803 | |
21804 | LIBS="$saveLIBS" |
21805 | fi |
21806 | |
21807 | |
21808 | LIBAUTHPAM="" |
21809 | if test "$HAVE_PAM" = 1 |
21810 | then |
21811 | LIBAUTHPAM=libauthpam.la |
21812 | fi |
21813 | |
21814 | |
dd184caf |
21815 | # Check whether --with-authpam-libraries was given. |
d9898ee8 |
21816 | if test "${with_authpam_libraries+set}" = set; then |
dd184caf |
21817 | withval=$with_authpam_libraries; authpamcrypt="$withval" |
21818 | fi |
21819 | |
d9898ee8 |
21820 | |
21821 | AUTHPAMCRYPT="$authpamcrypt" |
21822 | |
21823 | |
21824 | |
21825 | |
21826 | |
21827 | |
21828 | |
dd184caf |
21829 | # Check whether --with-authldap was given. |
d9898ee8 |
21830 | if test "${with_authldap+set}" = set; then |
dd184caf |
21831 | withval=$with_authldap; doauthldap="$withval" |
d9898ee8 |
21832 | else |
21833 | doauthldap="yes" |
dd184caf |
21834 | fi |
21835 | |
d9898ee8 |
21836 | |
21837 | |
21838 | for ac_header in lber.h |
21839 | do |
21840 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
21841 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21842 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21843 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21844 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
21845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21846 | fi |
dd184caf |
21847 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21848 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21849 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
21850 | else |
21851 | # Is the header compilable? |
dd184caf |
21852 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21853 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
21854 | cat >conftest.$ac_ext <<_ACEOF |
21855 | /* confdefs.h. */ |
21856 | _ACEOF |
21857 | cat confdefs.h >>conftest.$ac_ext |
21858 | cat >>conftest.$ac_ext <<_ACEOF |
21859 | /* end confdefs.h. */ |
21860 | $ac_includes_default |
21861 | #include <$ac_header> |
21862 | _ACEOF |
21863 | rm -f conftest.$ac_objext |
dd184caf |
21864 | if { (ac_try="$ac_compile" |
21865 | case "(($ac_try" in |
21866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21867 | *) ac_try_echo=$ac_try;; |
21868 | esac |
21869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21870 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
21871 | ac_status=$? |
21872 | grep -v '^ *+' conftest.er1 >conftest.err |
21873 | rm -f conftest.er1 |
21874 | cat conftest.err >&5 |
21875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
21876 | (exit $ac_status); } && { |
21877 | test -z "$ac_c_werror_flag" || |
21878 | test ! -s conftest.err |
21879 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
21880 | ac_header_compiler=yes |
21881 | else |
21882 | echo "$as_me: failed program was:" >&5 |
21883 | sed 's/^/| /' conftest.$ac_ext >&5 |
21884 | |
dd184caf |
21885 | ac_header_compiler=no |
d9898ee8 |
21886 | fi |
dd184caf |
21887 | |
21888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21889 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21890 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
21891 | |
21892 | # Is the header present? |
dd184caf |
21893 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21894 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
21895 | cat >conftest.$ac_ext <<_ACEOF |
21896 | /* confdefs.h. */ |
21897 | _ACEOF |
21898 | cat confdefs.h >>conftest.$ac_ext |
21899 | cat >>conftest.$ac_ext <<_ACEOF |
21900 | /* end confdefs.h. */ |
21901 | #include <$ac_header> |
21902 | _ACEOF |
dd184caf |
21903 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21904 | case "(($ac_try" in |
21905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21906 | *) ac_try_echo=$ac_try;; |
21907 | esac |
21908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21909 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
21910 | ac_status=$? |
21911 | grep -v '^ *+' conftest.er1 >conftest.err |
21912 | rm -f conftest.er1 |
21913 | cat conftest.err >&5 |
21914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
21915 | (exit $ac_status); } >/dev/null && { |
21916 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
21917 | test ! -s conftest.err |
21918 | }; then |
d9898ee8 |
21919 | ac_header_preproc=yes |
21920 | else |
21921 | echo "$as_me: failed program was:" >&5 |
21922 | sed 's/^/| /' conftest.$ac_ext >&5 |
21923 | |
21924 | ac_header_preproc=no |
21925 | fi |
dd184caf |
21926 | |
d9898ee8 |
21927 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
21928 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21929 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
21930 | |
21931 | # So? What about this header? |
21932 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21933 | yes:no: ) |
21934 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21935 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
21936 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21937 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
21938 | ac_header_preproc=yes |
21939 | ;; |
21940 | no:yes:* ) |
21941 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21942 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
21943 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21944 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
21945 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
21946 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
21947 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
21948 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
21949 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21950 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
21951 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21952 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
21953 | ( cat <<\_ASBOX |
d9898ee8 |
21954 | ## -------------------------------------------------- ## |
21955 | ## Report this to courier-users@lists.sourceforge.net ## |
21956 | ## -------------------------------------------------- ## |
21957 | _ASBOX |
dd184caf |
21958 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
21959 | ;; |
21960 | esac |
dd184caf |
21961 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21962 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21963 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
21964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21965 | else |
21966 | eval "$as_ac_Header=\$ac_header_preproc" |
21967 | fi |
dd184caf |
21968 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21969 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21970 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
21971 | |
21972 | fi |
21973 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
21974 | cat >>confdefs.h <<_ACEOF |
21975 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
21976 | _ACEOF |
21977 | |
21978 | fi |
21979 | |
21980 | done |
21981 | |
21982 | |
21983 | for ac_header in ldap.h |
21984 | do |
21985 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
21986 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21987 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21988 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21989 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
21990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21991 | fi |
dd184caf |
21992 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21993 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21994 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
21995 | else |
21996 | # Is the header compilable? |
dd184caf |
21997 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21998 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
21999 | cat >conftest.$ac_ext <<_ACEOF |
22000 | /* confdefs.h. */ |
22001 | _ACEOF |
22002 | cat confdefs.h >>conftest.$ac_ext |
22003 | cat >>conftest.$ac_ext <<_ACEOF |
22004 | /* end confdefs.h. */ |
22005 | $ac_includes_default |
22006 | #include <$ac_header> |
22007 | _ACEOF |
22008 | rm -f conftest.$ac_objext |
dd184caf |
22009 | if { (ac_try="$ac_compile" |
22010 | case "(($ac_try" in |
22011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22012 | *) ac_try_echo=$ac_try;; |
22013 | esac |
22014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22015 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
22016 | ac_status=$? |
22017 | grep -v '^ *+' conftest.er1 >conftest.err |
22018 | rm -f conftest.er1 |
22019 | cat conftest.err >&5 |
22020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
22021 | (exit $ac_status); } && { |
22022 | test -z "$ac_c_werror_flag" || |
22023 | test ! -s conftest.err |
22024 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
22025 | ac_header_compiler=yes |
22026 | else |
22027 | echo "$as_me: failed program was:" >&5 |
22028 | sed 's/^/| /' conftest.$ac_ext >&5 |
22029 | |
dd184caf |
22030 | ac_header_compiler=no |
d9898ee8 |
22031 | fi |
dd184caf |
22032 | |
22033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
22034 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22035 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
22036 | |
22037 | # Is the header present? |
dd184caf |
22038 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
22039 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
22040 | cat >conftest.$ac_ext <<_ACEOF |
22041 | /* confdefs.h. */ |
22042 | _ACEOF |
22043 | cat confdefs.h >>conftest.$ac_ext |
22044 | cat >>conftest.$ac_ext <<_ACEOF |
22045 | /* end confdefs.h. */ |
22046 | #include <$ac_header> |
22047 | _ACEOF |
dd184caf |
22048 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22049 | case "(($ac_try" in |
22050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22051 | *) ac_try_echo=$ac_try;; |
22052 | esac |
22053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22054 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
22055 | ac_status=$? |
22056 | grep -v '^ *+' conftest.er1 >conftest.err |
22057 | rm -f conftest.er1 |
22058 | cat conftest.err >&5 |
22059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
22060 | (exit $ac_status); } >/dev/null && { |
22061 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
22062 | test ! -s conftest.err |
22063 | }; then |
d9898ee8 |
22064 | ac_header_preproc=yes |
22065 | else |
22066 | echo "$as_me: failed program was:" >&5 |
22067 | sed 's/^/| /' conftest.$ac_ext >&5 |
22068 | |
22069 | ac_header_preproc=no |
22070 | fi |
dd184caf |
22071 | |
d9898ee8 |
22072 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
22073 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22074 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
22075 | |
22076 | # So? What about this header? |
22077 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22078 | yes:no: ) |
22079 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22080 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
22081 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22082 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
22083 | ac_header_preproc=yes |
22084 | ;; |
22085 | no:yes:* ) |
22086 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22087 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
22088 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22089 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
22090 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
22091 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
22092 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
22093 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
22094 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22095 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
22096 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22097 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
22098 | ( cat <<\_ASBOX |
d9898ee8 |
22099 | ## -------------------------------------------------- ## |
22100 | ## Report this to courier-users@lists.sourceforge.net ## |
22101 | ## -------------------------------------------------- ## |
22102 | _ASBOX |
dd184caf |
22103 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
22104 | ;; |
22105 | esac |
dd184caf |
22106 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22107 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
22108 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
22109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22110 | else |
22111 | eval "$as_ac_Header=\$ac_header_preproc" |
22112 | fi |
dd184caf |
22113 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22114 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22115 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
22116 | |
22117 | fi |
22118 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
22119 | cat >>confdefs.h <<_ACEOF |
22120 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
22121 | _ACEOF |
22122 | |
22123 | fi |
22124 | |
22125 | done |
22126 | |
22127 | |
22128 | for ac_header in netinet/in.h |
22129 | do |
22130 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
22131 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
22132 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22133 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
22134 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
22135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22136 | fi |
dd184caf |
22137 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22138 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22139 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
22140 | else |
22141 | # Is the header compilable? |
dd184caf |
22142 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
22143 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
22144 | cat >conftest.$ac_ext <<_ACEOF |
22145 | /* confdefs.h. */ |
22146 | _ACEOF |
22147 | cat confdefs.h >>conftest.$ac_ext |
22148 | cat >>conftest.$ac_ext <<_ACEOF |
22149 | /* end confdefs.h. */ |
22150 | $ac_includes_default |
22151 | #include <$ac_header> |
22152 | _ACEOF |
22153 | rm -f conftest.$ac_objext |
dd184caf |
22154 | if { (ac_try="$ac_compile" |
22155 | case "(($ac_try" in |
22156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22157 | *) ac_try_echo=$ac_try;; |
22158 | esac |
22159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22160 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
22161 | ac_status=$? |
22162 | grep -v '^ *+' conftest.er1 >conftest.err |
22163 | rm -f conftest.er1 |
22164 | cat conftest.err >&5 |
22165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
22166 | (exit $ac_status); } && { |
22167 | test -z "$ac_c_werror_flag" || |
22168 | test ! -s conftest.err |
22169 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
22170 | ac_header_compiler=yes |
22171 | else |
22172 | echo "$as_me: failed program was:" >&5 |
22173 | sed 's/^/| /' conftest.$ac_ext >&5 |
22174 | |
dd184caf |
22175 | ac_header_compiler=no |
d9898ee8 |
22176 | fi |
dd184caf |
22177 | |
22178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
22179 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22180 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
22181 | |
22182 | # Is the header present? |
dd184caf |
22183 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
22184 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
22185 | cat >conftest.$ac_ext <<_ACEOF |
22186 | /* confdefs.h. */ |
22187 | _ACEOF |
22188 | cat confdefs.h >>conftest.$ac_ext |
22189 | cat >>conftest.$ac_ext <<_ACEOF |
22190 | /* end confdefs.h. */ |
22191 | #include <$ac_header> |
22192 | _ACEOF |
dd184caf |
22193 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22194 | case "(($ac_try" in |
22195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22196 | *) ac_try_echo=$ac_try;; |
22197 | esac |
22198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22199 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
22200 | ac_status=$? |
22201 | grep -v '^ *+' conftest.er1 >conftest.err |
22202 | rm -f conftest.er1 |
22203 | cat conftest.err >&5 |
22204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
22205 | (exit $ac_status); } >/dev/null && { |
22206 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
22207 | test ! -s conftest.err |
22208 | }; then |
d9898ee8 |
22209 | ac_header_preproc=yes |
22210 | else |
22211 | echo "$as_me: failed program was:" >&5 |
22212 | sed 's/^/| /' conftest.$ac_ext >&5 |
22213 | |
22214 | ac_header_preproc=no |
22215 | fi |
dd184caf |
22216 | |
d9898ee8 |
22217 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
22218 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22219 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
22220 | |
22221 | # So? What about this header? |
22222 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22223 | yes:no: ) |
22224 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22225 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
22226 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22227 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
22228 | ac_header_preproc=yes |
22229 | ;; |
22230 | no:yes:* ) |
22231 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22232 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
22233 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22234 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
22235 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
22236 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
22237 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
22238 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
22239 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22240 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
22241 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22242 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
22243 | ( cat <<\_ASBOX |
d9898ee8 |
22244 | ## -------------------------------------------------- ## |
22245 | ## Report this to courier-users@lists.sourceforge.net ## |
22246 | ## -------------------------------------------------- ## |
22247 | _ASBOX |
dd184caf |
22248 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
22249 | ;; |
22250 | esac |
dd184caf |
22251 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22252 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
22253 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
22254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22255 | else |
22256 | eval "$as_ac_Header=\$ac_header_preproc" |
22257 | fi |
dd184caf |
22258 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22259 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22260 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
22261 | |
22262 | fi |
22263 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
22264 | cat >>confdefs.h <<_ACEOF |
22265 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
22266 | _ACEOF |
22267 | |
22268 | fi |
22269 | |
22270 | done |
22271 | |
22272 | |
22273 | if test "$doauthldap" = "no" |
22274 | then |
22275 | HAVE_LDAP=0 |
22276 | else |
22277 | saveLIBS="$LIBS" |
22278 | LIBS="$NETLIBS $LIBS" |
22279 | LDAPLIBS="" |
22280 | |
dd184caf |
22281 | { echo "$as_me:$LINENO: checking whether -lresolv is needed for res_query" >&5 |
22282 | echo $ECHO_N "checking whether -lresolv is needed for res_query... $ECHO_C" >&6; } |
d9898ee8 |
22283 | cat >conftest.$ac_ext <<_ACEOF |
22284 | /* confdefs.h. */ |
22285 | _ACEOF |
22286 | cat confdefs.h >>conftest.$ac_ext |
22287 | cat >>conftest.$ac_ext <<_ACEOF |
22288 | /* end confdefs.h. */ |
22289 | |
22290 | #include <sys/types.h> |
22291 | #if HAVE_NETINET_IN_H |
22292 | #include <netinet/in.h> |
22293 | #endif |
22294 | #include <resolv.h> |
22295 | |
22296 | void (*func)()= (void (*)())res_query; |
22297 | |
22298 | int |
22299 | main () |
22300 | { |
22301 | (*func)(); |
22302 | ; |
22303 | return 0; |
22304 | } |
22305 | _ACEOF |
22306 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
22307 | if { (ac_try="$ac_link" |
22308 | case "(($ac_try" in |
22309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22310 | *) ac_try_echo=$ac_try;; |
22311 | esac |
22312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22313 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
22314 | ac_status=$? |
22315 | grep -v '^ *+' conftest.er1 >conftest.err |
22316 | rm -f conftest.er1 |
22317 | cat conftest.err >&5 |
22318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
22319 | (exit $ac_status); } && { |
22320 | test -z "$ac_c_werror_flag" || |
22321 | test ! -s conftest.err |
22322 | } && test -s conftest$ac_exeext && |
22323 | $as_test_x conftest$ac_exeext; then |
22324 | { echo "$as_me:$LINENO: result: no" >&5 |
22325 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
22326 | else |
22327 | echo "$as_me: failed program was:" >&5 |
22328 | sed 's/^/| /' conftest.$ac_ext >&5 |
22329 | |
22330 | |
22331 | LIBS="-lresolv $LIBS" |
22332 | |
22333 | cat >conftest.$ac_ext <<_ACEOF |
22334 | /* confdefs.h. */ |
22335 | _ACEOF |
22336 | cat confdefs.h >>conftest.$ac_ext |
22337 | cat >>conftest.$ac_ext <<_ACEOF |
22338 | /* end confdefs.h. */ |
22339 | |
22340 | #include <sys/types.h> |
22341 | #if HAVE_NETINET_IN_H |
22342 | #include <netinet/in.h> |
22343 | #endif |
22344 | #include <resolv.h> |
22345 | |
22346 | void (*func)()= (void (*)())res_query; |
22347 | |
22348 | int |
22349 | main () |
22350 | { |
22351 | (*func)(); |
22352 | ; |
22353 | return 0; |
22354 | } |
22355 | _ACEOF |
22356 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
22357 | if { (ac_try="$ac_link" |
22358 | case "(($ac_try" in |
22359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22360 | *) ac_try_echo=$ac_try;; |
22361 | esac |
22362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22363 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
22364 | ac_status=$? |
22365 | grep -v '^ *+' conftest.er1 >conftest.err |
22366 | rm -f conftest.er1 |
22367 | cat conftest.err >&5 |
22368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
22369 | (exit $ac_status); } && { |
22370 | test -z "$ac_c_werror_flag" || |
22371 | test ! -s conftest.err |
22372 | } && test -s conftest$ac_exeext && |
22373 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
22374 | |
22375 | LDAPLIBS="-lresolv $LDAPLIBS" |
22376 | HAVE_LDAP=1 |
dd184caf |
22377 | { echo "$as_me:$LINENO: result: yes" >&5 |
22378 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
22379 | |
22380 | else |
22381 | echo "$as_me: failed program was:" >&5 |
22382 | sed 's/^/| /' conftest.$ac_ext >&5 |
22383 | |
dd184caf |
22384 | { { echo "$as_me:$LINENO: error: Cannot find function res_query" >&5 |
d9898ee8 |
22385 | echo "$as_me: error: Cannot find function res_query" >&2;} |
22386 | { (exit 1); exit 1; }; } |
22387 | fi |
dd184caf |
22388 | |
22389 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
22390 | conftest$ac_exeext conftest.$ac_ext |
22391 | |
22392 | fi |
dd184caf |
22393 | |
22394 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
22395 | conftest$ac_exeext conftest.$ac_ext |
22396 | |
dd184caf |
22397 | { echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5 |
22398 | echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6; } |
d9898ee8 |
22399 | if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then |
22400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22401 | else |
22402 | ac_check_lib_save_LIBS=$LIBS |
22403 | LIBS="-llber $LIBS" |
22404 | cat >conftest.$ac_ext <<_ACEOF |
22405 | /* confdefs.h. */ |
22406 | _ACEOF |
22407 | cat confdefs.h >>conftest.$ac_ext |
22408 | cat >>conftest.$ac_ext <<_ACEOF |
22409 | /* end confdefs.h. */ |
22410 | |
dd184caf |
22411 | /* Override any GCC internal prototype to avoid an error. |
22412 | Use char because int might match the return type of a GCC |
22413 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
22414 | #ifdef __cplusplus |
22415 | extern "C" |
22416 | #endif |
d9898ee8 |
22417 | char ber_scanf (); |
22418 | int |
22419 | main () |
22420 | { |
dd184caf |
22421 | return ber_scanf (); |
d9898ee8 |
22422 | ; |
22423 | return 0; |
22424 | } |
22425 | _ACEOF |
22426 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
22427 | if { (ac_try="$ac_link" |
22428 | case "(($ac_try" in |
22429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22430 | *) ac_try_echo=$ac_try;; |
22431 | esac |
22432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22433 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
22434 | ac_status=$? |
22435 | grep -v '^ *+' conftest.er1 >conftest.err |
22436 | rm -f conftest.er1 |
22437 | cat conftest.err >&5 |
22438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
22439 | (exit $ac_status); } && { |
22440 | test -z "$ac_c_werror_flag" || |
22441 | test ! -s conftest.err |
22442 | } && test -s conftest$ac_exeext && |
22443 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
22444 | ac_cv_lib_lber_ber_scanf=yes |
22445 | else |
22446 | echo "$as_me: failed program was:" >&5 |
22447 | sed 's/^/| /' conftest.$ac_ext >&5 |
22448 | |
dd184caf |
22449 | ac_cv_lib_lber_ber_scanf=no |
d9898ee8 |
22450 | fi |
dd184caf |
22451 | |
22452 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
22453 | conftest$ac_exeext conftest.$ac_ext |
22454 | LIBS=$ac_check_lib_save_LIBS |
22455 | fi |
dd184caf |
22456 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5 |
22457 | echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6; } |
d9898ee8 |
22458 | if test $ac_cv_lib_lber_ber_scanf = yes; then |
22459 | LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS" |
22460 | fi |
22461 | |
dd184caf |
22462 | { echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5 |
22463 | echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6; } |
d9898ee8 |
22464 | if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then |
22465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22466 | else |
22467 | ac_check_lib_save_LIBS=$LIBS |
22468 | LIBS="-lldap $LIBS" |
22469 | cat >conftest.$ac_ext <<_ACEOF |
22470 | /* confdefs.h. */ |
22471 | _ACEOF |
22472 | cat confdefs.h >>conftest.$ac_ext |
22473 | cat >>conftest.$ac_ext <<_ACEOF |
22474 | /* end confdefs.h. */ |
22475 | |
dd184caf |
22476 | /* Override any GCC internal prototype to avoid an error. |
22477 | Use char because int might match the return type of a GCC |
22478 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
22479 | #ifdef __cplusplus |
22480 | extern "C" |
22481 | #endif |
d9898ee8 |
22482 | char ldap_open (); |
22483 | int |
22484 | main () |
22485 | { |
dd184caf |
22486 | return ldap_open (); |
d9898ee8 |
22487 | ; |
22488 | return 0; |
22489 | } |
22490 | _ACEOF |
22491 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
22492 | if { (ac_try="$ac_link" |
22493 | case "(($ac_try" in |
22494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22495 | *) ac_try_echo=$ac_try;; |
22496 | esac |
22497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22498 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
22499 | ac_status=$? |
22500 | grep -v '^ *+' conftest.er1 >conftest.err |
22501 | rm -f conftest.er1 |
22502 | cat conftest.err >&5 |
22503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
22504 | (exit $ac_status); } && { |
22505 | test -z "$ac_c_werror_flag" || |
22506 | test ! -s conftest.err |
22507 | } && test -s conftest$ac_exeext && |
22508 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
22509 | ac_cv_lib_ldap_ldap_open=yes |
22510 | else |
22511 | echo "$as_me: failed program was:" >&5 |
22512 | sed 's/^/| /' conftest.$ac_ext >&5 |
22513 | |
dd184caf |
22514 | ac_cv_lib_ldap_ldap_open=no |
d9898ee8 |
22515 | fi |
dd184caf |
22516 | |
22517 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
22518 | conftest$ac_exeext conftest.$ac_ext |
22519 | LIBS=$ac_check_lib_save_LIBS |
22520 | fi |
dd184caf |
22521 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5 |
22522 | echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6; } |
d9898ee8 |
22523 | if test $ac_cv_lib_ldap_ldap_open = yes; then |
22524 | LDAPLIBS="-lldap $LDAPLIBS" ; LIBS="-lldap $LIBS" |
22525 | fi |
22526 | |
dd184caf |
22527 | { echo "$as_me:$LINENO: checking for ldap_search_st" >&5 |
22528 | echo $ECHO_N "checking for ldap_search_st... $ECHO_C" >&6; } |
d9898ee8 |
22529 | if test "${ac_cv_func_ldap_search_st+set}" = set; then |
22530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22531 | else |
22532 | cat >conftest.$ac_ext <<_ACEOF |
22533 | /* confdefs.h. */ |
22534 | _ACEOF |
22535 | cat confdefs.h >>conftest.$ac_ext |
22536 | cat >>conftest.$ac_ext <<_ACEOF |
22537 | /* end confdefs.h. */ |
22538 | /* Define ldap_search_st to an innocuous variant, in case <limits.h> declares ldap_search_st. |
22539 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
22540 | #define ldap_search_st innocuous_ldap_search_st |
22541 | |
22542 | /* System header to define __stub macros and hopefully few prototypes, |
22543 | which can conflict with char ldap_search_st (); below. |
22544 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22545 | <limits.h> exists even on freestanding compilers. */ |
22546 | |
22547 | #ifdef __STDC__ |
22548 | # include <limits.h> |
22549 | #else |
22550 | # include <assert.h> |
22551 | #endif |
22552 | |
22553 | #undef ldap_search_st |
22554 | |
dd184caf |
22555 | /* Override any GCC internal prototype to avoid an error. |
22556 | Use char because int might match the return type of a GCC |
22557 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
22558 | #ifdef __cplusplus |
22559 | extern "C" |
d9898ee8 |
22560 | #endif |
d9898ee8 |
22561 | char ldap_search_st (); |
22562 | /* The GNU C library defines this for functions which it implements |
22563 | to always fail with ENOSYS. Some functions are actually named |
22564 | something starting with __ and the normal name is an alias. */ |
dd184caf |
22565 | #if defined __stub_ldap_search_st || defined __stub___ldap_search_st |
d9898ee8 |
22566 | choke me |
d9898ee8 |
22567 | #endif |
22568 | |
22569 | int |
22570 | main () |
22571 | { |
dd184caf |
22572 | return ldap_search_st (); |
d9898ee8 |
22573 | ; |
22574 | return 0; |
22575 | } |
22576 | _ACEOF |
22577 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
22578 | if { (ac_try="$ac_link" |
22579 | case "(($ac_try" in |
22580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22581 | *) ac_try_echo=$ac_try;; |
22582 | esac |
22583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22584 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
22585 | ac_status=$? |
22586 | grep -v '^ *+' conftest.er1 >conftest.err |
22587 | rm -f conftest.er1 |
22588 | cat conftest.err >&5 |
22589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
22590 | (exit $ac_status); } && { |
22591 | test -z "$ac_c_werror_flag" || |
22592 | test ! -s conftest.err |
22593 | } && test -s conftest$ac_exeext && |
22594 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
22595 | ac_cv_func_ldap_search_st=yes |
22596 | else |
22597 | echo "$as_me: failed program was:" >&5 |
22598 | sed 's/^/| /' conftest.$ac_ext >&5 |
22599 | |
dd184caf |
22600 | ac_cv_func_ldap_search_st=no |
d9898ee8 |
22601 | fi |
dd184caf |
22602 | |
22603 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
22604 | conftest$ac_exeext conftest.$ac_ext |
22605 | fi |
dd184caf |
22606 | { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_search_st" >&5 |
22607 | echo "${ECHO_T}$ac_cv_func_ldap_search_st" >&6; } |
d9898ee8 |
22608 | if test $ac_cv_func_ldap_search_st = yes; then |
22609 | HAVE_LDAP=1 |
22610 | else |
22611 | HAVE_LDAP=0 |
22612 | fi |
22613 | |
dd184caf |
22614 | { echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5 |
22615 | echo $ECHO_N "checking for ldap_start_tls_s... $ECHO_C" >&6; } |
d9898ee8 |
22616 | if test "${ac_cv_func_ldap_start_tls_s+set}" = set; then |
22617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22618 | else |
22619 | cat >conftest.$ac_ext <<_ACEOF |
22620 | /* confdefs.h. */ |
22621 | _ACEOF |
22622 | cat confdefs.h >>conftest.$ac_ext |
22623 | cat >>conftest.$ac_ext <<_ACEOF |
22624 | /* end confdefs.h. */ |
22625 | /* Define ldap_start_tls_s to an innocuous variant, in case <limits.h> declares ldap_start_tls_s. |
22626 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
22627 | #define ldap_start_tls_s innocuous_ldap_start_tls_s |
22628 | |
22629 | /* System header to define __stub macros and hopefully few prototypes, |
22630 | which can conflict with char ldap_start_tls_s (); below. |
22631 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22632 | <limits.h> exists even on freestanding compilers. */ |
22633 | |
22634 | #ifdef __STDC__ |
22635 | # include <limits.h> |
22636 | #else |
22637 | # include <assert.h> |
22638 | #endif |
22639 | |
22640 | #undef ldap_start_tls_s |
22641 | |
dd184caf |
22642 | /* Override any GCC internal prototype to avoid an error. |
22643 | Use char because int might match the return type of a GCC |
22644 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
22645 | #ifdef __cplusplus |
22646 | extern "C" |
d9898ee8 |
22647 | #endif |
d9898ee8 |
22648 | char ldap_start_tls_s (); |
22649 | /* The GNU C library defines this for functions which it implements |
22650 | to always fail with ENOSYS. Some functions are actually named |
22651 | something starting with __ and the normal name is an alias. */ |
dd184caf |
22652 | #if defined __stub_ldap_start_tls_s || defined __stub___ldap_start_tls_s |
d9898ee8 |
22653 | choke me |
d9898ee8 |
22654 | #endif |
22655 | |
22656 | int |
22657 | main () |
22658 | { |
dd184caf |
22659 | return ldap_start_tls_s (); |
d9898ee8 |
22660 | ; |
22661 | return 0; |
22662 | } |
22663 | _ACEOF |
22664 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
22665 | if { (ac_try="$ac_link" |
22666 | case "(($ac_try" in |
22667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22668 | *) ac_try_echo=$ac_try;; |
22669 | esac |
22670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22671 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
22672 | ac_status=$? |
22673 | grep -v '^ *+' conftest.er1 >conftest.err |
22674 | rm -f conftest.er1 |
22675 | cat conftest.err >&5 |
22676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
22677 | (exit $ac_status); } && { |
22678 | test -z "$ac_c_werror_flag" || |
22679 | test ! -s conftest.err |
22680 | } && test -s conftest$ac_exeext && |
22681 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
22682 | ac_cv_func_ldap_start_tls_s=yes |
22683 | else |
22684 | echo "$as_me: failed program was:" >&5 |
22685 | sed 's/^/| /' conftest.$ac_ext >&5 |
22686 | |
dd184caf |
22687 | ac_cv_func_ldap_start_tls_s=no |
d9898ee8 |
22688 | fi |
dd184caf |
22689 | |
22690 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
22691 | conftest$ac_exeext conftest.$ac_ext |
22692 | fi |
dd184caf |
22693 | { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5 |
22694 | echo "${ECHO_T}$ac_cv_func_ldap_start_tls_s" >&6; } |
d9898ee8 |
22695 | if test $ac_cv_func_ldap_start_tls_s = yes; then |
22696 | HAVE_LDAP_TLS=1 |
22697 | else |
22698 | HAVE_LDAP_TLS=0 |
22699 | fi |
22700 | |
dd184caf |
22701 | { echo "$as_me:$LINENO: checking for ldap_result2error" >&5 |
22702 | echo $ECHO_N "checking for ldap_result2error... $ECHO_C" >&6; } |
d9898ee8 |
22703 | if test "${ac_cv_func_ldap_result2error+set}" = set; then |
22704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22705 | else |
22706 | cat >conftest.$ac_ext <<_ACEOF |
22707 | /* confdefs.h. */ |
22708 | _ACEOF |
22709 | cat confdefs.h >>conftest.$ac_ext |
22710 | cat >>conftest.$ac_ext <<_ACEOF |
22711 | /* end confdefs.h. */ |
22712 | /* Define ldap_result2error to an innocuous variant, in case <limits.h> declares ldap_result2error. |
22713 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
22714 | #define ldap_result2error innocuous_ldap_result2error |
22715 | |
22716 | /* System header to define __stub macros and hopefully few prototypes, |
22717 | which can conflict with char ldap_result2error (); below. |
22718 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22719 | <limits.h> exists even on freestanding compilers. */ |
22720 | |
22721 | #ifdef __STDC__ |
22722 | # include <limits.h> |
22723 | #else |
22724 | # include <assert.h> |
22725 | #endif |
22726 | |
22727 | #undef ldap_result2error |
22728 | |
dd184caf |
22729 | /* Override any GCC internal prototype to avoid an error. |
22730 | Use char because int might match the return type of a GCC |
22731 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
22732 | #ifdef __cplusplus |
22733 | extern "C" |
d9898ee8 |
22734 | #endif |
d9898ee8 |
22735 | char ldap_result2error (); |
22736 | /* The GNU C library defines this for functions which it implements |
22737 | to always fail with ENOSYS. Some functions are actually named |
22738 | something starting with __ and the normal name is an alias. */ |
dd184caf |
22739 | #if defined __stub_ldap_result2error || defined __stub___ldap_result2error |
d9898ee8 |
22740 | choke me |
d9898ee8 |
22741 | #endif |
22742 | |
22743 | int |
22744 | main () |
22745 | { |
dd184caf |
22746 | return ldap_result2error (); |
d9898ee8 |
22747 | ; |
22748 | return 0; |
22749 | } |
22750 | _ACEOF |
22751 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
22752 | if { (ac_try="$ac_link" |
22753 | case "(($ac_try" in |
22754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22755 | *) ac_try_echo=$ac_try;; |
22756 | esac |
22757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22758 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
22759 | ac_status=$? |
22760 | grep -v '^ *+' conftest.er1 >conftest.err |
22761 | rm -f conftest.er1 |
22762 | cat conftest.err >&5 |
22763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
22764 | (exit $ac_status); } && { |
22765 | test -z "$ac_c_werror_flag" || |
22766 | test ! -s conftest.err |
22767 | } && test -s conftest$ac_exeext && |
22768 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
22769 | ac_cv_func_ldap_result2error=yes |
22770 | else |
22771 | echo "$as_me: failed program was:" >&5 |
22772 | sed 's/^/| /' conftest.$ac_ext >&5 |
22773 | |
dd184caf |
22774 | ac_cv_func_ldap_result2error=no |
d9898ee8 |
22775 | fi |
dd184caf |
22776 | |
22777 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
22778 | conftest$ac_exeext conftest.$ac_ext |
22779 | fi |
dd184caf |
22780 | { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_result2error" >&5 |
22781 | echo "${ECHO_T}$ac_cv_func_ldap_result2error" >&6; } |
d9898ee8 |
22782 | if test $ac_cv_func_ldap_result2error = yes; then |
22783 | HAVE_LDAP_RESULT2ERROR=1 |
22784 | else |
22785 | HAVE_LDAP_RESULT2ERROR=0 |
22786 | fi |
22787 | |
dd184caf |
22788 | { echo "$as_me:$LINENO: checking for ldap_parse_result" >&5 |
22789 | echo $ECHO_N "checking for ldap_parse_result... $ECHO_C" >&6; } |
d9898ee8 |
22790 | if test "${ac_cv_func_ldap_parse_result+set}" = set; then |
22791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22792 | else |
22793 | cat >conftest.$ac_ext <<_ACEOF |
22794 | /* confdefs.h. */ |
22795 | _ACEOF |
22796 | cat confdefs.h >>conftest.$ac_ext |
22797 | cat >>conftest.$ac_ext <<_ACEOF |
22798 | /* end confdefs.h. */ |
22799 | /* Define ldap_parse_result to an innocuous variant, in case <limits.h> declares ldap_parse_result. |
22800 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
22801 | #define ldap_parse_result innocuous_ldap_parse_result |
22802 | |
22803 | /* System header to define __stub macros and hopefully few prototypes, |
22804 | which can conflict with char ldap_parse_result (); below. |
22805 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22806 | <limits.h> exists even on freestanding compilers. */ |
22807 | |
22808 | #ifdef __STDC__ |
22809 | # include <limits.h> |
22810 | #else |
22811 | # include <assert.h> |
22812 | #endif |
22813 | |
22814 | #undef ldap_parse_result |
22815 | |
dd184caf |
22816 | /* Override any GCC internal prototype to avoid an error. |
22817 | Use char because int might match the return type of a GCC |
22818 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
22819 | #ifdef __cplusplus |
22820 | extern "C" |
d9898ee8 |
22821 | #endif |
d9898ee8 |
22822 | char ldap_parse_result (); |
22823 | /* The GNU C library defines this for functions which it implements |
22824 | to always fail with ENOSYS. Some functions are actually named |
22825 | something starting with __ and the normal name is an alias. */ |
dd184caf |
22826 | #if defined __stub_ldap_parse_result || defined __stub___ldap_parse_result |
d9898ee8 |
22827 | choke me |
d9898ee8 |
22828 | #endif |
22829 | |
22830 | int |
22831 | main () |
22832 | { |
dd184caf |
22833 | return ldap_parse_result (); |
d9898ee8 |
22834 | ; |
22835 | return 0; |
22836 | } |
22837 | _ACEOF |
22838 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
22839 | if { (ac_try="$ac_link" |
22840 | case "(($ac_try" in |
22841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22842 | *) ac_try_echo=$ac_try;; |
22843 | esac |
22844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22845 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
22846 | ac_status=$? |
22847 | grep -v '^ *+' conftest.er1 >conftest.err |
22848 | rm -f conftest.er1 |
22849 | cat conftest.err >&5 |
22850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
22851 | (exit $ac_status); } && { |
22852 | test -z "$ac_c_werror_flag" || |
22853 | test ! -s conftest.err |
22854 | } && test -s conftest$ac_exeext && |
22855 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
22856 | ac_cv_func_ldap_parse_result=yes |
22857 | else |
22858 | echo "$as_me: failed program was:" >&5 |
22859 | sed 's/^/| /' conftest.$ac_ext >&5 |
22860 | |
dd184caf |
22861 | ac_cv_func_ldap_parse_result=no |
d9898ee8 |
22862 | fi |
dd184caf |
22863 | |
22864 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
22865 | conftest$ac_exeext conftest.$ac_ext |
22866 | fi |
dd184caf |
22867 | { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_parse_result" >&5 |
22868 | echo "${ECHO_T}$ac_cv_func_ldap_parse_result" >&6; } |
d9898ee8 |
22869 | if test $ac_cv_func_ldap_parse_result = yes; then |
22870 | HAVE_LDAP_PARSE_RESULT=1 |
22871 | else |
22872 | HAVE_LDAP_PARSE_RESULT=0 |
22873 | fi |
22874 | |
22875 | LIBS="$saveLIBS" |
22876 | fi |
22877 | |
22878 | |
dd184caf |
22879 | # Check whether --with-authldaprc was given. |
d9898ee8 |
22880 | if test "${with_authldaprc+set}" = set; then |
dd184caf |
22881 | withval=$with_authldaprc; authldaprc="$withval" |
d9898ee8 |
22882 | else |
22883 | authldaprc="$pkgconfdir/authldaprc" |
dd184caf |
22884 | fi |
22885 | |
d9898ee8 |
22886 | |
22887 | |
22888 | LIBAUTHLDAP="" |
22889 | if test "$HAVE_LDAP" = 1 |
22890 | then |
22891 | LIBAUTHLDAP="libauthldap.la" |
22892 | else |
22893 | authldaprc="" |
22894 | fi |
22895 | |
22896 | |
22897 | |
dd184caf |
22898 | if test "$HAVE_LDAP" = 1; then |
d9898ee8 |
22899 | HAVE_LDAP_TRUE= |
22900 | HAVE_LDAP_FALSE='#' |
22901 | else |
22902 | HAVE_LDAP_TRUE='#' |
22903 | HAVE_LDAP_FALSE= |
22904 | fi |
22905 | |
22906 | |
22907 | cat >>confdefs.h <<_ACEOF |
22908 | #define HAVE_LDAP_TLS $HAVE_LDAP_TLS |
22909 | _ACEOF |
22910 | |
22911 | |
22912 | cat >>confdefs.h <<_ACEOF |
22913 | #define HAVE_LDAP_RESULT2ERROR $HAVE_LDAP_RESULT2ERROR |
22914 | _ACEOF |
22915 | |
22916 | |
22917 | cat >>confdefs.h <<_ACEOF |
22918 | #define HAVE_LDAP_PARSE_RESULT $HAVE_LDAP_PARSE_RESULT |
22919 | _ACEOF |
22920 | |
22921 | |
22922 | |
22923 | |
22924 | |
dd184caf |
22925 | # Check whether --with-authpwd was given. |
d9898ee8 |
22926 | if test "${with_authpwd+set}" = set; then |
dd184caf |
22927 | withval=$with_authpwd; doauthpwd="$withval" |
d9898ee8 |
22928 | else |
22929 | doauthpwd="yes" |
22930 | test "$HAVE_PAM" = 1 && doauthpwd="no" |
22931 | test "$HAVE_LDAP" = 1 && doauthpwd="no" |
22932 | |
dd184caf |
22933 | fi |
22934 | |
d9898ee8 |
22935 | |
22936 | HAVE_PWD=1 |
22937 | if test "$doauthpwd" = "no" |
22938 | then |
22939 | HAVE_PWD=0 |
22940 | fi |
22941 | |
22942 | for ac_func in endpwent |
22943 | do |
22944 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
dd184caf |
22945 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22946 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
22947 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
22948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22949 | else |
22950 | cat >conftest.$ac_ext <<_ACEOF |
22951 | /* confdefs.h. */ |
22952 | _ACEOF |
22953 | cat confdefs.h >>conftest.$ac_ext |
22954 | cat >>conftest.$ac_ext <<_ACEOF |
22955 | /* end confdefs.h. */ |
22956 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22957 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
22958 | #define $ac_func innocuous_$ac_func |
22959 | |
22960 | /* System header to define __stub macros and hopefully few prototypes, |
22961 | which can conflict with char $ac_func (); below. |
22962 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22963 | <limits.h> exists even on freestanding compilers. */ |
22964 | |
22965 | #ifdef __STDC__ |
22966 | # include <limits.h> |
22967 | #else |
22968 | # include <assert.h> |
22969 | #endif |
22970 | |
22971 | #undef $ac_func |
22972 | |
dd184caf |
22973 | /* Override any GCC internal prototype to avoid an error. |
22974 | Use char because int might match the return type of a GCC |
22975 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
22976 | #ifdef __cplusplus |
22977 | extern "C" |
d9898ee8 |
22978 | #endif |
d9898ee8 |
22979 | char $ac_func (); |
22980 | /* The GNU C library defines this for functions which it implements |
22981 | to always fail with ENOSYS. Some functions are actually named |
22982 | something starting with __ and the normal name is an alias. */ |
dd184caf |
22983 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 |
22984 | choke me |
d9898ee8 |
22985 | #endif |
22986 | |
22987 | int |
22988 | main () |
22989 | { |
dd184caf |
22990 | return $ac_func (); |
d9898ee8 |
22991 | ; |
22992 | return 0; |
22993 | } |
22994 | _ACEOF |
22995 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
22996 | if { (ac_try="$ac_link" |
22997 | case "(($ac_try" in |
22998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22999 | *) ac_try_echo=$ac_try;; |
23000 | esac |
23001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23002 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
23003 | ac_status=$? |
23004 | grep -v '^ *+' conftest.er1 >conftest.err |
23005 | rm -f conftest.er1 |
23006 | cat conftest.err >&5 |
23007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
23008 | (exit $ac_status); } && { |
23009 | test -z "$ac_c_werror_flag" || |
23010 | test ! -s conftest.err |
23011 | } && test -s conftest$ac_exeext && |
23012 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
23013 | eval "$as_ac_var=yes" |
23014 | else |
23015 | echo "$as_me: failed program was:" >&5 |
23016 | sed 's/^/| /' conftest.$ac_ext >&5 |
23017 | |
dd184caf |
23018 | eval "$as_ac_var=no" |
d9898ee8 |
23019 | fi |
dd184caf |
23020 | |
23021 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
23022 | conftest$ac_exeext conftest.$ac_ext |
23023 | fi |
dd184caf |
23024 | ac_res=`eval echo '${'$as_ac_var'}'` |
23025 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
23026 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
23027 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
23028 | cat >>confdefs.h <<_ACEOF |
23029 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
23030 | _ACEOF |
23031 | |
23032 | fi |
23033 | done |
23034 | |
23035 | |
23036 | |
23037 | |
23038 | |
23039 | |
dd184caf |
23040 | # Check whether --with-authshadow was given. |
d9898ee8 |
23041 | if test "${with_authshadow+set}" = set; then |
dd184caf |
23042 | withval=$with_authshadow; doauthshadow="$withval" |
d9898ee8 |
23043 | else |
23044 | doauthshadow="yes" |
23045 | test "$HAVE_PAM" = 1 && doauthshadow="no" |
23046 | test "$HAVE_LDAP" = 1 && doauthshadow="no" |
dd184caf |
23047 | fi |
23048 | |
d9898ee8 |
23049 | |
23050 | |
23051 | for ac_header in shadow.h |
23052 | do |
23053 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
23054 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
23055 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
23056 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
23057 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
23058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23059 | fi |
dd184caf |
23060 | ac_res=`eval echo '${'$as_ac_Header'}'` |
23061 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
23062 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
23063 | else |
23064 | # Is the header compilable? |
dd184caf |
23065 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
23066 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
23067 | cat >conftest.$ac_ext <<_ACEOF |
23068 | /* confdefs.h. */ |
23069 | _ACEOF |
23070 | cat confdefs.h >>conftest.$ac_ext |
23071 | cat >>conftest.$ac_ext <<_ACEOF |
23072 | /* end confdefs.h. */ |
23073 | $ac_includes_default |
23074 | #include <$ac_header> |
23075 | _ACEOF |
23076 | rm -f conftest.$ac_objext |
dd184caf |
23077 | if { (ac_try="$ac_compile" |
23078 | case "(($ac_try" in |
23079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23080 | *) ac_try_echo=$ac_try;; |
23081 | esac |
23082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23083 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
23084 | ac_status=$? |
23085 | grep -v '^ *+' conftest.er1 >conftest.err |
23086 | rm -f conftest.er1 |
23087 | cat conftest.err >&5 |
23088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
23089 | (exit $ac_status); } && { |
23090 | test -z "$ac_c_werror_flag" || |
23091 | test ! -s conftest.err |
23092 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
23093 | ac_header_compiler=yes |
23094 | else |
23095 | echo "$as_me: failed program was:" >&5 |
23096 | sed 's/^/| /' conftest.$ac_ext >&5 |
23097 | |
dd184caf |
23098 | ac_header_compiler=no |
d9898ee8 |
23099 | fi |
dd184caf |
23100 | |
23101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
23102 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23103 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
23104 | |
23105 | # Is the header present? |
dd184caf |
23106 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
23107 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
23108 | cat >conftest.$ac_ext <<_ACEOF |
23109 | /* confdefs.h. */ |
23110 | _ACEOF |
23111 | cat confdefs.h >>conftest.$ac_ext |
23112 | cat >>conftest.$ac_ext <<_ACEOF |
23113 | /* end confdefs.h. */ |
23114 | #include <$ac_header> |
23115 | _ACEOF |
dd184caf |
23116 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
23117 | case "(($ac_try" in |
23118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23119 | *) ac_try_echo=$ac_try;; |
23120 | esac |
23121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23122 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
23123 | ac_status=$? |
23124 | grep -v '^ *+' conftest.er1 >conftest.err |
23125 | rm -f conftest.er1 |
23126 | cat conftest.err >&5 |
23127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
23128 | (exit $ac_status); } >/dev/null && { |
23129 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
23130 | test ! -s conftest.err |
23131 | }; then |
d9898ee8 |
23132 | ac_header_preproc=yes |
23133 | else |
23134 | echo "$as_me: failed program was:" >&5 |
23135 | sed 's/^/| /' conftest.$ac_ext >&5 |
23136 | |
23137 | ac_header_preproc=no |
23138 | fi |
dd184caf |
23139 | |
d9898ee8 |
23140 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
23141 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
23142 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
23143 | |
23144 | # So? What about this header? |
23145 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23146 | yes:no: ) |
23147 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
23148 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
23149 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
23150 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
23151 | ac_header_preproc=yes |
23152 | ;; |
23153 | no:yes:* ) |
23154 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
23155 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
23156 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
23157 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
23158 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
23159 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
23160 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
23161 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
23162 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
23163 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
23164 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
23165 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
23166 | ( cat <<\_ASBOX |
d9898ee8 |
23167 | ## -------------------------------------------------- ## |
23168 | ## Report this to courier-users@lists.sourceforge.net ## |
23169 | ## -------------------------------------------------- ## |
23170 | _ASBOX |
dd184caf |
23171 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
23172 | ;; |
23173 | esac |
dd184caf |
23174 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
23175 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
23176 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
23177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23178 | else |
23179 | eval "$as_ac_Header=\$ac_header_preproc" |
23180 | fi |
dd184caf |
23181 | ac_res=`eval echo '${'$as_ac_Header'}'` |
23182 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
23183 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
23184 | |
23185 | fi |
23186 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
23187 | cat >>confdefs.h <<_ACEOF |
23188 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
23189 | _ACEOF |
23190 | |
23191 | fi |
23192 | |
23193 | done |
23194 | |
23195 | saveLIBS="$LIBS" |
23196 | SHADOWLIBS="" |
dd184caf |
23197 | { echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5 |
23198 | echo $ECHO_N "checking for getspent in -lshadow... $ECHO_C" >&6; } |
d9898ee8 |
23199 | if test "${ac_cv_lib_shadow_getspent+set}" = set; then |
23200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23201 | else |
23202 | ac_check_lib_save_LIBS=$LIBS |
23203 | LIBS="-lshadow $LIBS" |
23204 | cat >conftest.$ac_ext <<_ACEOF |
23205 | /* confdefs.h. */ |
23206 | _ACEOF |
23207 | cat confdefs.h >>conftest.$ac_ext |
23208 | cat >>conftest.$ac_ext <<_ACEOF |
23209 | /* end confdefs.h. */ |
23210 | |
dd184caf |
23211 | /* Override any GCC internal prototype to avoid an error. |
23212 | Use char because int might match the return type of a GCC |
23213 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
23214 | #ifdef __cplusplus |
23215 | extern "C" |
23216 | #endif |
d9898ee8 |
23217 | char getspent (); |
23218 | int |
23219 | main () |
23220 | { |
dd184caf |
23221 | return getspent (); |
d9898ee8 |
23222 | ; |
23223 | return 0; |
23224 | } |
23225 | _ACEOF |
23226 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
23227 | if { (ac_try="$ac_link" |
23228 | case "(($ac_try" in |
23229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23230 | *) ac_try_echo=$ac_try;; |
23231 | esac |
23232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23233 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
23234 | ac_status=$? |
23235 | grep -v '^ *+' conftest.er1 >conftest.err |
23236 | rm -f conftest.er1 |
23237 | cat conftest.err >&5 |
23238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
23239 | (exit $ac_status); } && { |
23240 | test -z "$ac_c_werror_flag" || |
23241 | test ! -s conftest.err |
23242 | } && test -s conftest$ac_exeext && |
23243 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
23244 | ac_cv_lib_shadow_getspent=yes |
23245 | else |
23246 | echo "$as_me: failed program was:" >&5 |
23247 | sed 's/^/| /' conftest.$ac_ext >&5 |
23248 | |
dd184caf |
23249 | ac_cv_lib_shadow_getspent=no |
d9898ee8 |
23250 | fi |
dd184caf |
23251 | |
23252 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
23253 | conftest$ac_exeext conftest.$ac_ext |
23254 | LIBS=$ac_check_lib_save_LIBS |
23255 | fi |
dd184caf |
23256 | { echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5 |
23257 | echo "${ECHO_T}$ac_cv_lib_shadow_getspent" >&6; } |
d9898ee8 |
23258 | if test $ac_cv_lib_shadow_getspent = yes; then |
23259 | SHADOWLIBS="-lshadow" ; LIBS="-lshadow $LIBS" |
23260 | fi |
23261 | |
23262 | |
23263 | |
23264 | for ac_func in endspent getspent |
23265 | do |
23266 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
dd184caf |
23267 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
23268 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
23269 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
23270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23271 | else |
23272 | cat >conftest.$ac_ext <<_ACEOF |
23273 | /* confdefs.h. */ |
23274 | _ACEOF |
23275 | cat confdefs.h >>conftest.$ac_ext |
23276 | cat >>conftest.$ac_ext <<_ACEOF |
23277 | /* end confdefs.h. */ |
23278 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23279 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
23280 | #define $ac_func innocuous_$ac_func |
23281 | |
23282 | /* System header to define __stub macros and hopefully few prototypes, |
23283 | which can conflict with char $ac_func (); below. |
23284 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
23285 | <limits.h> exists even on freestanding compilers. */ |
23286 | |
23287 | #ifdef __STDC__ |
23288 | # include <limits.h> |
23289 | #else |
23290 | # include <assert.h> |
23291 | #endif |
23292 | |
23293 | #undef $ac_func |
23294 | |
dd184caf |
23295 | /* Override any GCC internal prototype to avoid an error. |
23296 | Use char because int might match the return type of a GCC |
23297 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
23298 | #ifdef __cplusplus |
23299 | extern "C" |
d9898ee8 |
23300 | #endif |
d9898ee8 |
23301 | char $ac_func (); |
23302 | /* The GNU C library defines this for functions which it implements |
23303 | to always fail with ENOSYS. Some functions are actually named |
23304 | something starting with __ and the normal name is an alias. */ |
dd184caf |
23305 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 |
23306 | choke me |
d9898ee8 |
23307 | #endif |
23308 | |
23309 | int |
23310 | main () |
23311 | { |
dd184caf |
23312 | return $ac_func (); |
d9898ee8 |
23313 | ; |
23314 | return 0; |
23315 | } |
23316 | _ACEOF |
23317 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
23318 | if { (ac_try="$ac_link" |
23319 | case "(($ac_try" in |
23320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23321 | *) ac_try_echo=$ac_try;; |
23322 | esac |
23323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23324 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
23325 | ac_status=$? |
23326 | grep -v '^ *+' conftest.er1 >conftest.err |
23327 | rm -f conftest.er1 |
23328 | cat conftest.err >&5 |
23329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
23330 | (exit $ac_status); } && { |
23331 | test -z "$ac_c_werror_flag" || |
23332 | test ! -s conftest.err |
23333 | } && test -s conftest$ac_exeext && |
23334 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
23335 | eval "$as_ac_var=yes" |
23336 | else |
23337 | echo "$as_me: failed program was:" >&5 |
23338 | sed 's/^/| /' conftest.$ac_ext >&5 |
23339 | |
dd184caf |
23340 | eval "$as_ac_var=no" |
d9898ee8 |
23341 | fi |
dd184caf |
23342 | |
23343 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
23344 | conftest$ac_exeext conftest.$ac_ext |
23345 | fi |
dd184caf |
23346 | ac_res=`eval echo '${'$as_ac_var'}'` |
23347 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
23348 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
23349 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
23350 | cat >>confdefs.h <<_ACEOF |
23351 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
23352 | _ACEOF |
23353 | |
23354 | fi |
23355 | done |
23356 | |
23357 | LIBS="$saveLIBS" |
23358 | |
23359 | if test "$doauthshadow" = "no" |
23360 | then |
23361 | HAVE_SHADOW=0 |
23362 | else |
23363 | |
23364 | saveLIBS="$LIBS" |
23365 | |
dd184caf |
23366 | { echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5 |
23367 | echo $ECHO_N "checking for getspent in -lshadow... $ECHO_C" >&6; } |
d9898ee8 |
23368 | if test "${ac_cv_lib_shadow_getspent+set}" = set; then |
23369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23370 | else |
23371 | ac_check_lib_save_LIBS=$LIBS |
23372 | LIBS="-lshadow $LIBS" |
23373 | cat >conftest.$ac_ext <<_ACEOF |
23374 | /* confdefs.h. */ |
23375 | _ACEOF |
23376 | cat confdefs.h >>conftest.$ac_ext |
23377 | cat >>conftest.$ac_ext <<_ACEOF |
23378 | /* end confdefs.h. */ |
23379 | |
dd184caf |
23380 | /* Override any GCC internal prototype to avoid an error. |
23381 | Use char because int might match the return type of a GCC |
23382 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
23383 | #ifdef __cplusplus |
23384 | extern "C" |
23385 | #endif |
d9898ee8 |
23386 | char getspent (); |
23387 | int |
23388 | main () |
23389 | { |
dd184caf |
23390 | return getspent (); |
d9898ee8 |
23391 | ; |
23392 | return 0; |
23393 | } |
23394 | _ACEOF |
23395 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
23396 | if { (ac_try="$ac_link" |
23397 | case "(($ac_try" in |
23398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23399 | *) ac_try_echo=$ac_try;; |
23400 | esac |
23401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23402 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
23403 | ac_status=$? |
23404 | grep -v '^ *+' conftest.er1 >conftest.err |
23405 | rm -f conftest.er1 |
23406 | cat conftest.err >&5 |
23407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
23408 | (exit $ac_status); } && { |
23409 | test -z "$ac_c_werror_flag" || |
23410 | test ! -s conftest.err |
23411 | } && test -s conftest$ac_exeext && |
23412 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
23413 | ac_cv_lib_shadow_getspent=yes |
23414 | else |
23415 | echo "$as_me: failed program was:" >&5 |
23416 | sed 's/^/| /' conftest.$ac_ext >&5 |
23417 | |
dd184caf |
23418 | ac_cv_lib_shadow_getspent=no |
d9898ee8 |
23419 | fi |
dd184caf |
23420 | |
23421 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
23422 | conftest$ac_exeext conftest.$ac_ext |
23423 | LIBS=$ac_check_lib_save_LIBS |
23424 | fi |
dd184caf |
23425 | { echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5 |
23426 | echo "${ECHO_T}$ac_cv_lib_shadow_getspent" >&6; } |
d9898ee8 |
23427 | if test $ac_cv_lib_shadow_getspent = yes; then |
23428 | cat >>confdefs.h <<_ACEOF |
23429 | #define HAVE_LIBSHADOW 1 |
23430 | _ACEOF |
23431 | |
23432 | LIBS="-lshadow $LIBS" |
23433 | |
23434 | fi |
23435 | |
dd184caf |
23436 | { echo "$as_me:$LINENO: checking for getspent" >&5 |
23437 | echo $ECHO_N "checking for getspent... $ECHO_C" >&6; } |
d9898ee8 |
23438 | if test "${ac_cv_func_getspent+set}" = set; then |
23439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23440 | else |
23441 | cat >conftest.$ac_ext <<_ACEOF |
23442 | /* confdefs.h. */ |
23443 | _ACEOF |
23444 | cat confdefs.h >>conftest.$ac_ext |
23445 | cat >>conftest.$ac_ext <<_ACEOF |
23446 | /* end confdefs.h. */ |
23447 | /* Define getspent to an innocuous variant, in case <limits.h> declares getspent. |
23448 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
23449 | #define getspent innocuous_getspent |
23450 | |
23451 | /* System header to define __stub macros and hopefully few prototypes, |
23452 | which can conflict with char getspent (); below. |
23453 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
23454 | <limits.h> exists even on freestanding compilers. */ |
23455 | |
23456 | #ifdef __STDC__ |
23457 | # include <limits.h> |
23458 | #else |
23459 | # include <assert.h> |
23460 | #endif |
23461 | |
23462 | #undef getspent |
23463 | |
dd184caf |
23464 | /* Override any GCC internal prototype to avoid an error. |
23465 | Use char because int might match the return type of a GCC |
23466 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
23467 | #ifdef __cplusplus |
23468 | extern "C" |
d9898ee8 |
23469 | #endif |
d9898ee8 |
23470 | char getspent (); |
23471 | /* The GNU C library defines this for functions which it implements |
23472 | to always fail with ENOSYS. Some functions are actually named |
23473 | something starting with __ and the normal name is an alias. */ |
dd184caf |
23474 | #if defined __stub_getspent || defined __stub___getspent |
d9898ee8 |
23475 | choke me |
d9898ee8 |
23476 | #endif |
23477 | |
23478 | int |
23479 | main () |
23480 | { |
dd184caf |
23481 | return getspent (); |
d9898ee8 |
23482 | ; |
23483 | return 0; |
23484 | } |
23485 | _ACEOF |
23486 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
23487 | if { (ac_try="$ac_link" |
23488 | case "(($ac_try" in |
23489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23490 | *) ac_try_echo=$ac_try;; |
23491 | esac |
23492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23493 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
23494 | ac_status=$? |
23495 | grep -v '^ *+' conftest.er1 >conftest.err |
23496 | rm -f conftest.er1 |
23497 | cat conftest.err >&5 |
23498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
23499 | (exit $ac_status); } && { |
23500 | test -z "$ac_c_werror_flag" || |
23501 | test ! -s conftest.err |
23502 | } && test -s conftest$ac_exeext && |
23503 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
23504 | ac_cv_func_getspent=yes |
23505 | else |
23506 | echo "$as_me: failed program was:" >&5 |
23507 | sed 's/^/| /' conftest.$ac_ext >&5 |
23508 | |
dd184caf |
23509 | ac_cv_func_getspent=no |
d9898ee8 |
23510 | fi |
dd184caf |
23511 | |
23512 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
23513 | conftest$ac_exeext conftest.$ac_ext |
23514 | fi |
dd184caf |
23515 | { echo "$as_me:$LINENO: result: $ac_cv_func_getspent" >&5 |
23516 | echo "${ECHO_T}$ac_cv_func_getspent" >&6; } |
d9898ee8 |
23517 | if test $ac_cv_func_getspent = yes; then |
23518 | HAVE_SHADOW=1 |
23519 | else |
23520 | HAVE_SHADOW=0 |
23521 | fi |
23522 | |
23523 | LIBS="$saveLIBS" |
23524 | fi |
23525 | |
23526 | LIBAUTHSHADOW="" |
23527 | if test "$HAVE_SHADOW" = 1 |
23528 | then |
23529 | LIBAUTHSHADOW="libauthshadow.la" |
23530 | fi |
23531 | |
23532 | |
23533 | |
23534 | LIBAUTHPWD="" |
23535 | if test "$HAVE_PWD" = 1 |
23536 | then |
23537 | LIBAUTHPWD="libauthpwd.la" |
23538 | fi |
23539 | |
23540 | |
23541 | |
23542 | |
23543 | |
23544 | |
23545 | |
23546 | vpopmail_home=`$PERL -e '@a=getpwnam("vpopmail"); print "$a[7]";'` |
23547 | |
23548 | |
23549 | |
23550 | |
dd184caf |
23551 | # Check whether --with-authvchkpw was given. |
d9898ee8 |
23552 | if test "${with_authvchkpw+set}" = set; then |
dd184caf |
23553 | withval=$with_authvchkpw; doauthvchkpw="$withval" |
d9898ee8 |
23554 | else |
23555 | doauthvchkpw=no |
23556 | if test "$vpopmail_home" != "" |
23557 | then |
23558 | doauthvchkpw=yes |
23559 | fi |
dd184caf |
23560 | fi |
23561 | |
d9898ee8 |
23562 | |
23563 | if test "$doauthvchkpw" = "no" |
23564 | then |
23565 | HAVE_VCHKPW=0 |
23566 | vpopmail_home=. |
23567 | else |
23568 | HAVE_VCHKPW=1 |
23569 | |
23570 | |
23571 | cat <<EOF |
23572 | ---------------------------------------------------- |
23573 | NOTE |
23574 | |
23575 | |
23576 | All questions regarding ANY vpopmail-related problems, |
23577 | such as compiling/building failures, or login errors |
23578 | should be referred to the vpopmail mailing list. |
23579 | Vpopmail questions sent to the Courier mailing lists |
23580 | will be IGNORED. |
23581 | ---------------------------------------------------- |
23582 | \a |
23583 | EOF |
23584 | sleep 5 |
23585 | |
23586 | if test -f ${vpopmail_home}/etc/lib_deps |
23587 | then |
23588 | CFLAGS="`cat ${vpopmail_home}/etc/inc_deps` $CFLAGS" |
23589 | VPOPMAILLIBS="`cat ${vpopmail_home}/etc/lib_deps`" |
23590 | else |
23591 | { { echo "$as_me:$LINENO: error: ${vpopmail_home}/etc/lib_deps does not exist - upgrade vpopmail to the current version or fix the permissions on this file" >&5 |
23592 | echo "$as_me: error: ${vpopmail_home}/etc/lib_deps does not exist - upgrade vpopmail to the current version or fix the permissions on this file" >&2;} |
23593 | { (exit 1); exit 1; }; } |
23594 | fi |
23595 | fi |
23596 | |
23597 | |
23598 | |
23599 | LIBAUTHVCHKPW="" |
23600 | if test "$HAVE_VCHKPW" = 1 |
23601 | then |
23602 | LIBAUTHVCHKPW="libauthvchkpw.la" |
23603 | HAVE_VCHKPW="1" |
23604 | |
23605 | |
23606 | _SAVE_LIBS=$LIBS |
23607 | LIBS="$VPOPMAILLIBS $CRYPTLIBS $LIBS" |
dd184caf |
23608 | { echo "$as_me:$LINENO: checking for open_smtp_relay" >&5 |
23609 | echo $ECHO_N "checking for open_smtp_relay... $ECHO_C" >&6; } |
d9898ee8 |
23610 | if test "${ac_cv_func_open_smtp_relay+set}" = set; then |
23611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23612 | else |
23613 | cat >conftest.$ac_ext <<_ACEOF |
23614 | /* confdefs.h. */ |
23615 | _ACEOF |
23616 | cat confdefs.h >>conftest.$ac_ext |
23617 | cat >>conftest.$ac_ext <<_ACEOF |
23618 | /* end confdefs.h. */ |
23619 | /* Define open_smtp_relay to an innocuous variant, in case <limits.h> declares open_smtp_relay. |
23620 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
23621 | #define open_smtp_relay innocuous_open_smtp_relay |
23622 | |
23623 | /* System header to define __stub macros and hopefully few prototypes, |
23624 | which can conflict with char open_smtp_relay (); below. |
23625 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
23626 | <limits.h> exists even on freestanding compilers. */ |
23627 | |
23628 | #ifdef __STDC__ |
23629 | # include <limits.h> |
23630 | #else |
23631 | # include <assert.h> |
23632 | #endif |
23633 | |
23634 | #undef open_smtp_relay |
23635 | |
dd184caf |
23636 | /* Override any GCC internal prototype to avoid an error. |
23637 | Use char because int might match the return type of a GCC |
23638 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
23639 | #ifdef __cplusplus |
23640 | extern "C" |
d9898ee8 |
23641 | #endif |
d9898ee8 |
23642 | char open_smtp_relay (); |
23643 | /* The GNU C library defines this for functions which it implements |
23644 | to always fail with ENOSYS. Some functions are actually named |
23645 | something starting with __ and the normal name is an alias. */ |
dd184caf |
23646 | #if defined __stub_open_smtp_relay || defined __stub___open_smtp_relay |
d9898ee8 |
23647 | choke me |
d9898ee8 |
23648 | #endif |
23649 | |
23650 | int |
23651 | main () |
23652 | { |
dd184caf |
23653 | return open_smtp_relay (); |
d9898ee8 |
23654 | ; |
23655 | return 0; |
23656 | } |
23657 | _ACEOF |
23658 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
23659 | if { (ac_try="$ac_link" |
23660 | case "(($ac_try" in |
23661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23662 | *) ac_try_echo=$ac_try;; |
23663 | esac |
23664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23665 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
23666 | ac_status=$? |
23667 | grep -v '^ *+' conftest.er1 >conftest.err |
23668 | rm -f conftest.er1 |
23669 | cat conftest.err >&5 |
23670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
23671 | (exit $ac_status); } && { |
23672 | test -z "$ac_c_werror_flag" || |
23673 | test ! -s conftest.err |
23674 | } && test -s conftest$ac_exeext && |
23675 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
23676 | ac_cv_func_open_smtp_relay=yes |
23677 | else |
23678 | echo "$as_me: failed program was:" >&5 |
23679 | sed 's/^/| /' conftest.$ac_ext >&5 |
23680 | |
dd184caf |
23681 | ac_cv_func_open_smtp_relay=no |
d9898ee8 |
23682 | fi |
dd184caf |
23683 | |
23684 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
23685 | conftest$ac_exeext conftest.$ac_ext |
23686 | fi |
dd184caf |
23687 | { echo "$as_me:$LINENO: result: $ac_cv_func_open_smtp_relay" >&5 |
23688 | echo "${ECHO_T}$ac_cv_func_open_smtp_relay" >&6; } |
d9898ee8 |
23689 | if test $ac_cv_func_open_smtp_relay = yes; then |
23690 | |
23691 | cat >>confdefs.h <<\_ACEOF |
23692 | #define HAVE_OPEN_SMTP_RELAY 1 |
23693 | _ACEOF |
23694 | |
23695 | fi |
23696 | |
dd184caf |
23697 | { echo "$as_me:$LINENO: checking for vset_lastauth" >&5 |
23698 | echo $ECHO_N "checking for vset_lastauth... $ECHO_C" >&6; } |
d9898ee8 |
23699 | if test "${ac_cv_func_vset_lastauth+set}" = set; then |
23700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23701 | else |
23702 | cat >conftest.$ac_ext <<_ACEOF |
23703 | /* confdefs.h. */ |
23704 | _ACEOF |
23705 | cat confdefs.h >>conftest.$ac_ext |
23706 | cat >>conftest.$ac_ext <<_ACEOF |
23707 | /* end confdefs.h. */ |
23708 | /* Define vset_lastauth to an innocuous variant, in case <limits.h> declares vset_lastauth. |
23709 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
23710 | #define vset_lastauth innocuous_vset_lastauth |
23711 | |
23712 | /* System header to define __stub macros and hopefully few prototypes, |
23713 | which can conflict with char vset_lastauth (); below. |
23714 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
23715 | <limits.h> exists even on freestanding compilers. */ |
23716 | |
23717 | #ifdef __STDC__ |
23718 | # include <limits.h> |
23719 | #else |
23720 | # include <assert.h> |
23721 | #endif |
23722 | |
23723 | #undef vset_lastauth |
23724 | |
dd184caf |
23725 | /* Override any GCC internal prototype to avoid an error. |
23726 | Use char because int might match the return type of a GCC |
23727 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
23728 | #ifdef __cplusplus |
23729 | extern "C" |
d9898ee8 |
23730 | #endif |
d9898ee8 |
23731 | char vset_lastauth (); |
23732 | /* The GNU C library defines this for functions which it implements |
23733 | to always fail with ENOSYS. Some functions are actually named |
23734 | something starting with __ and the normal name is an alias. */ |
dd184caf |
23735 | #if defined __stub_vset_lastauth || defined __stub___vset_lastauth |
d9898ee8 |
23736 | choke me |
d9898ee8 |
23737 | #endif |
23738 | |
23739 | int |
23740 | main () |
23741 | { |
dd184caf |
23742 | return vset_lastauth (); |
d9898ee8 |
23743 | ; |
23744 | return 0; |
23745 | } |
23746 | _ACEOF |
23747 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
23748 | if { (ac_try="$ac_link" |
23749 | case "(($ac_try" in |
23750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23751 | *) ac_try_echo=$ac_try;; |
23752 | esac |
23753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23754 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
23755 | ac_status=$? |
23756 | grep -v '^ *+' conftest.er1 >conftest.err |
23757 | rm -f conftest.er1 |
23758 | cat conftest.err >&5 |
23759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
23760 | (exit $ac_status); } && { |
23761 | test -z "$ac_c_werror_flag" || |
23762 | test ! -s conftest.err |
23763 | } && test -s conftest$ac_exeext && |
23764 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
23765 | ac_cv_func_vset_lastauth=yes |
23766 | else |
23767 | echo "$as_me: failed program was:" >&5 |
23768 | sed 's/^/| /' conftest.$ac_ext >&5 |
23769 | |
dd184caf |
23770 | ac_cv_func_vset_lastauth=no |
d9898ee8 |
23771 | fi |
dd184caf |
23772 | |
23773 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
23774 | conftest$ac_exeext conftest.$ac_ext |
23775 | fi |
dd184caf |
23776 | { echo "$as_me:$LINENO: result: $ac_cv_func_vset_lastauth" >&5 |
23777 | echo "${ECHO_T}$ac_cv_func_vset_lastauth" >&6; } |
d9898ee8 |
23778 | if test $ac_cv_func_vset_lastauth = yes; then |
23779 | |
23780 | cat >>confdefs.h <<\_ACEOF |
23781 | #define HAVE_VSET_LASTAUTH 1 |
23782 | _ACEOF |
23783 | |
23784 | fi |
23785 | |
23786 | LIBS=$_SAVE_LIBS |
23787 | fi |
23788 | |
23789 | |
23790 | |
23791 | |
23792 | |
23793 | |
23794 | |
dd184caf |
23795 | # Check whether --with-authpgsqlrc was given. |
d9898ee8 |
23796 | if test "${with_authpgsqlrc+set}" = set; then |
dd184caf |
23797 | withval=$with_authpgsqlrc; authpgsqlrc="$withval" |
d9898ee8 |
23798 | else |
23799 | authpgsqlrc="$pkgconfdir/authpgsqlrc" |
dd184caf |
23800 | fi |
d9898ee8 |
23801 | |
23802 | |
23803 | |
dd184caf |
23804 | |
23805 | # Check whether --with-authpgsql was given. |
d9898ee8 |
23806 | if test "${with_authpgsql+set}" = set; then |
dd184caf |
23807 | withval=$with_authpgsql; doauthpgsql="$withval" |
23808 | fi |
23809 | |
d9898ee8 |
23810 | |
23811 | for ac_prog in pg_config |
23812 | do |
23813 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
23814 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
23815 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
23816 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
23817 | if test "${ac_cv_path_PG_CONFIG+set}" = set; then |
23818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23819 | else |
23820 | case $PG_CONFIG in |
23821 | [\\/]* | ?:[\\/]*) |
23822 | ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path. |
23823 | ;; |
23824 | *) |
23825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
23826 | for as_dir in $LPATH |
23827 | do |
23828 | IFS=$as_save_IFS |
23829 | test -z "$as_dir" && as_dir=. |
23830 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
23831 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
23832 | ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
23833 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
23834 | break 2 |
23835 | fi |
23836 | done |
23837 | done |
dd184caf |
23838 | IFS=$as_save_IFS |
d9898ee8 |
23839 | |
23840 | ;; |
23841 | esac |
23842 | fi |
23843 | PG_CONFIG=$ac_cv_path_PG_CONFIG |
d9898ee8 |
23844 | if test -n "$PG_CONFIG"; then |
dd184caf |
23845 | { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5 |
23846 | echo "${ECHO_T}$PG_CONFIG" >&6; } |
d9898ee8 |
23847 | else |
dd184caf |
23848 | { echo "$as_me:$LINENO: result: no" >&5 |
23849 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
23850 | fi |
23851 | |
dd184caf |
23852 | |
d9898ee8 |
23853 | test -n "$PG_CONFIG" && break |
23854 | done |
23855 | test -n "$PG_CONFIG" || PG_CONFIG="pg_config" |
23856 | |
23857 | |
23858 | PGSQL_LIBS="-lpq" |
23859 | |
dd184caf |
23860 | # Check whether --with-pgsql-libs was given. |
d9898ee8 |
23861 | if test "${with_pgsql_libs+set}" = set; then |
dd184caf |
23862 | withval=$with_pgsql_libs; PGSQL_LIBS="-L$withval $PGSQL_LIBS" |
d9898ee8 |
23863 | else |
23864 | if test -x $PG_CONFIG |
23865 | then |
23866 | PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS" |
23867 | fi |
23868 | |
dd184caf |
23869 | fi |
23870 | |
d9898ee8 |
23871 | |
dd184caf |
23872 | # Check whether --with-pgsql-includes was given. |
d9898ee8 |
23873 | if test "${with_pgsql_includes+set}" = set; then |
dd184caf |
23874 | withval=$with_pgsql_includes; PGSQL_CFLAGS="-I$withval" |
d9898ee8 |
23875 | else |
23876 | if test -x $PG_CONFIG |
23877 | then |
23878 | PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`" |
23879 | fi |
23880 | |
dd184caf |
23881 | fi |
23882 | |
d9898ee8 |
23883 | |
23884 | if test "$doauthpgsql" = "" |
23885 | then |
23886 | LIBS="$PGSQL_LIBS $LIBS" |
dd184caf |
23887 | { echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5 |
23888 | echo $ECHO_N "checking for PQsetdbLogin... $ECHO_C" >&6; } |
d9898ee8 |
23889 | if test "${ac_cv_func_PQsetdbLogin+set}" = set; then |
23890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23891 | else |
23892 | cat >conftest.$ac_ext <<_ACEOF |
23893 | /* confdefs.h. */ |
23894 | _ACEOF |
23895 | cat confdefs.h >>conftest.$ac_ext |
23896 | cat >>conftest.$ac_ext <<_ACEOF |
23897 | /* end confdefs.h. */ |
23898 | /* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin. |
23899 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
23900 | #define PQsetdbLogin innocuous_PQsetdbLogin |
23901 | |
23902 | /* System header to define __stub macros and hopefully few prototypes, |
23903 | which can conflict with char PQsetdbLogin (); below. |
23904 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
23905 | <limits.h> exists even on freestanding compilers. */ |
23906 | |
23907 | #ifdef __STDC__ |
23908 | # include <limits.h> |
23909 | #else |
23910 | # include <assert.h> |
23911 | #endif |
23912 | |
23913 | #undef PQsetdbLogin |
23914 | |
dd184caf |
23915 | /* Override any GCC internal prototype to avoid an error. |
23916 | Use char because int might match the return type of a GCC |
23917 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
23918 | #ifdef __cplusplus |
23919 | extern "C" |
d9898ee8 |
23920 | #endif |
d9898ee8 |
23921 | char PQsetdbLogin (); |
23922 | /* The GNU C library defines this for functions which it implements |
23923 | to always fail with ENOSYS. Some functions are actually named |
23924 | something starting with __ and the normal name is an alias. */ |
dd184caf |
23925 | #if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin |
d9898ee8 |
23926 | choke me |
d9898ee8 |
23927 | #endif |
23928 | |
23929 | int |
23930 | main () |
23931 | { |
dd184caf |
23932 | return PQsetdbLogin (); |
d9898ee8 |
23933 | ; |
23934 | return 0; |
23935 | } |
23936 | _ACEOF |
23937 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
23938 | if { (ac_try="$ac_link" |
23939 | case "(($ac_try" in |
23940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23941 | *) ac_try_echo=$ac_try;; |
23942 | esac |
23943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23944 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
23945 | ac_status=$? |
23946 | grep -v '^ *+' conftest.er1 >conftest.err |
23947 | rm -f conftest.er1 |
23948 | cat conftest.err >&5 |
23949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
23950 | (exit $ac_status); } && { |
23951 | test -z "$ac_c_werror_flag" || |
23952 | test ! -s conftest.err |
23953 | } && test -s conftest$ac_exeext && |
23954 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
23955 | ac_cv_func_PQsetdbLogin=yes |
23956 | else |
23957 | echo "$as_me: failed program was:" >&5 |
23958 | sed 's/^/| /' conftest.$ac_ext >&5 |
23959 | |
dd184caf |
23960 | ac_cv_func_PQsetdbLogin=no |
d9898ee8 |
23961 | fi |
dd184caf |
23962 | |
23963 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
23964 | conftest$ac_exeext conftest.$ac_ext |
23965 | fi |
dd184caf |
23966 | { echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5 |
23967 | echo "${ECHO_T}$ac_cv_func_PQsetdbLogin" >&6; } |
d9898ee8 |
23968 | if test $ac_cv_func_PQsetdbLogin = yes; then |
23969 | doauthpgsql="yes" |
23970 | |
23971 | fi |
23972 | |
23973 | LIBS="$saveLIBS" |
23974 | fi |
23975 | |
23976 | if test "$doauthpgsql" != "yes" |
23977 | then |
23978 | LIBAUTHPGSQL="" |
23979 | HAVE_AUTHPGSQL=0 |
23980 | else |
23981 | saveLIBS="$LIBS" |
23982 | LIBS="$PGSQL_LIBS $LIBS" |
dd184caf |
23983 | { echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5 |
23984 | echo $ECHO_N "checking for PQsetdbLogin... $ECHO_C" >&6; } |
d9898ee8 |
23985 | if test "${ac_cv_func_PQsetdbLogin+set}" = set; then |
23986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23987 | else |
23988 | cat >conftest.$ac_ext <<_ACEOF |
23989 | /* confdefs.h. */ |
23990 | _ACEOF |
23991 | cat confdefs.h >>conftest.$ac_ext |
23992 | cat >>conftest.$ac_ext <<_ACEOF |
23993 | /* end confdefs.h. */ |
23994 | /* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin. |
23995 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
23996 | #define PQsetdbLogin innocuous_PQsetdbLogin |
23997 | |
23998 | /* System header to define __stub macros and hopefully few prototypes, |
23999 | which can conflict with char PQsetdbLogin (); below. |
24000 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
24001 | <limits.h> exists even on freestanding compilers. */ |
24002 | |
24003 | #ifdef __STDC__ |
24004 | # include <limits.h> |
24005 | #else |
24006 | # include <assert.h> |
24007 | #endif |
24008 | |
24009 | #undef PQsetdbLogin |
24010 | |
dd184caf |
24011 | /* Override any GCC internal prototype to avoid an error. |
24012 | Use char because int might match the return type of a GCC |
24013 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
24014 | #ifdef __cplusplus |
24015 | extern "C" |
d9898ee8 |
24016 | #endif |
d9898ee8 |
24017 | char PQsetdbLogin (); |
24018 | /* The GNU C library defines this for functions which it implements |
24019 | to always fail with ENOSYS. Some functions are actually named |
24020 | something starting with __ and the normal name is an alias. */ |
dd184caf |
24021 | #if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin |
d9898ee8 |
24022 | choke me |
d9898ee8 |
24023 | #endif |
24024 | |
24025 | int |
24026 | main () |
24027 | { |
dd184caf |
24028 | return PQsetdbLogin (); |
d9898ee8 |
24029 | ; |
24030 | return 0; |
24031 | } |
24032 | _ACEOF |
24033 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
24034 | if { (ac_try="$ac_link" |
24035 | case "(($ac_try" in |
24036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24037 | *) ac_try_echo=$ac_try;; |
24038 | esac |
24039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24040 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
24041 | ac_status=$? |
24042 | grep -v '^ *+' conftest.er1 >conftest.err |
24043 | rm -f conftest.er1 |
24044 | cat conftest.err >&5 |
24045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
24046 | (exit $ac_status); } && { |
24047 | test -z "$ac_c_werror_flag" || |
24048 | test ! -s conftest.err |
24049 | } && test -s conftest$ac_exeext && |
24050 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
24051 | ac_cv_func_PQsetdbLogin=yes |
24052 | else |
24053 | echo "$as_me: failed program was:" >&5 |
24054 | sed 's/^/| /' conftest.$ac_ext >&5 |
24055 | |
dd184caf |
24056 | ac_cv_func_PQsetdbLogin=no |
d9898ee8 |
24057 | fi |
dd184caf |
24058 | |
24059 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
24060 | conftest$ac_exeext conftest.$ac_ext |
24061 | fi |
dd184caf |
24062 | { echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5 |
24063 | echo "${ECHO_T}$ac_cv_func_PQsetdbLogin" >&6; } |
d9898ee8 |
24064 | if test $ac_cv_func_PQsetdbLogin = yes; then |
24065 | AUTHPGSQL="authpgsql" |
24066 | HAVE_AUTHPGSQL=1 |
24067 | else |
24068 | { { echo "$as_me:$LINENO: error: --with-authpgsql specified but no libpq.so" >&5 |
24069 | echo "$as_me: error: --with-authpgsql specified but no libpq.so" >&2;} |
24070 | { (exit 1); exit 1; }; } |
24071 | fi |
24072 | |
24073 | LIBS="$saveLIBS" |
24074 | HAVE_AUTHPGSQL=1 |
24075 | CFLAGS="$PGSQL_CFLAGS $CFLAGS" |
24076 | LIBAUTHPGSQL="libauthpgsql.la" |
24077 | fi |
24078 | |
24079 | |
24080 | |
dd184caf |
24081 | if test "$HAVE_AUTHPGSQL" = 1; then |
d9898ee8 |
24082 | HAVE_AUTHPGSQL_TRUE= |
24083 | HAVE_AUTHPGSQL_FALSE='#' |
24084 | else |
24085 | HAVE_AUTHPGSQL_TRUE='#' |
24086 | HAVE_AUTHPGSQL_FALSE= |
24087 | fi |
24088 | |
24089 | |
24090 | |
24091 | |
24092 | |
24093 | |
dd184caf |
24094 | # Check whether --with-authmysqlrc was given. |
d9898ee8 |
24095 | if test "${with_authmysqlrc+set}" = set; then |
dd184caf |
24096 | withval=$with_authmysqlrc; authmysqlrc="$withval" |
d9898ee8 |
24097 | else |
24098 | authmysqlrc="$pkgconfdir/authmysqlrc" |
dd184caf |
24099 | fi |
24100 | |
d9898ee8 |
24101 | |
24102 | |
24103 | |
dd184caf |
24104 | # Check whether --with-authmysql was given. |
d9898ee8 |
24105 | if test "${with_authmysql+set}" = set; then |
dd184caf |
24106 | withval=$with_authmysql; doauthmysql="$withval" |
24107 | fi |
24108 | |
d9898ee8 |
24109 | |
dd184caf |
24110 | # Check whether --with-mysql-libs was given. |
d9898ee8 |
24111 | if test "${with_mysql_libs+set}" = set; then |
dd184caf |
24112 | withval=$with_mysql_libs; MYSQL_LIBS="-L$withval -lmysqlclient" |
24113 | |
24114 | fi |
d9898ee8 |
24115 | |
d9898ee8 |
24116 | |
dd184caf |
24117 | # Check whether --with-mysql-includes was given. |
d9898ee8 |
24118 | if test "${with_mysql_includes+set}" = set; then |
dd184caf |
24119 | withval=$with_mysql_includes; MYSQL_CFLAGS="-I$withval" |
24120 | |
24121 | fi |
d9898ee8 |
24122 | |
d9898ee8 |
24123 | |
24124 | for ac_prog in mysql_config |
24125 | do |
24126 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
24127 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
24128 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
24129 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
24130 | if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then |
24131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24132 | else |
24133 | case $MYSQL_CONFIG in |
24134 | [\\/]* | ?:[\\/]*) |
24135 | ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path. |
24136 | ;; |
24137 | *) |
24138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
24139 | for as_dir in $LPATH |
24140 | do |
24141 | IFS=$as_save_IFS |
24142 | test -z "$as_dir" && as_dir=. |
24143 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
24144 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
24145 | ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
24146 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
24147 | break 2 |
24148 | fi |
24149 | done |
24150 | done |
dd184caf |
24151 | IFS=$as_save_IFS |
d9898ee8 |
24152 | |
24153 | ;; |
24154 | esac |
24155 | fi |
24156 | MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG |
d9898ee8 |
24157 | if test -n "$MYSQL_CONFIG"; then |
dd184caf |
24158 | { echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5 |
24159 | echo "${ECHO_T}$MYSQL_CONFIG" >&6; } |
d9898ee8 |
24160 | else |
dd184caf |
24161 | { echo "$as_me:$LINENO: result: no" >&5 |
24162 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
24163 | fi |
24164 | |
dd184caf |
24165 | |
d9898ee8 |
24166 | test -n "$MYSQL_CONFIG" && break |
24167 | done |
24168 | test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="mysql_config" |
24169 | |
24170 | |
24171 | if test -x "$MYSQL_CONFIG" |
24172 | then |
24173 | MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`" |
24174 | MYSQL_LIBS="`$MYSQL_CONFIG --libs`" |
24175 | |
24176 | eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\`\"" |
24177 | eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\`\"" |
24178 | fi |
24179 | |
24180 | if test "$doauthmysql" = "" |
24181 | then |
24182 | LIBS="$MYSQL_LIBS $LIBS" |
dd184caf |
24183 | { echo "$as_me:$LINENO: checking for mysql_connect" >&5 |
24184 | echo $ECHO_N "checking for mysql_connect... $ECHO_C" >&6; } |
d9898ee8 |
24185 | if test "${ac_cv_func_mysql_connect+set}" = set; then |
24186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24187 | else |
24188 | cat >conftest.$ac_ext <<_ACEOF |
24189 | /* confdefs.h. */ |
24190 | _ACEOF |
24191 | cat confdefs.h >>conftest.$ac_ext |
24192 | cat >>conftest.$ac_ext <<_ACEOF |
24193 | /* end confdefs.h. */ |
24194 | /* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect. |
24195 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
24196 | #define mysql_connect innocuous_mysql_connect |
24197 | |
24198 | /* System header to define __stub macros and hopefully few prototypes, |
24199 | which can conflict with char mysql_connect (); below. |
24200 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
24201 | <limits.h> exists even on freestanding compilers. */ |
24202 | |
24203 | #ifdef __STDC__ |
24204 | # include <limits.h> |
24205 | #else |
24206 | # include <assert.h> |
24207 | #endif |
24208 | |
24209 | #undef mysql_connect |
24210 | |
dd184caf |
24211 | /* Override any GCC internal prototype to avoid an error. |
24212 | Use char because int might match the return type of a GCC |
24213 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
24214 | #ifdef __cplusplus |
24215 | extern "C" |
d9898ee8 |
24216 | #endif |
d9898ee8 |
24217 | char mysql_connect (); |
24218 | /* The GNU C library defines this for functions which it implements |
24219 | to always fail with ENOSYS. Some functions are actually named |
24220 | something starting with __ and the normal name is an alias. */ |
dd184caf |
24221 | #if defined __stub_mysql_connect || defined __stub___mysql_connect |
d9898ee8 |
24222 | choke me |
d9898ee8 |
24223 | #endif |
24224 | |
24225 | int |
24226 | main () |
24227 | { |
dd184caf |
24228 | return mysql_connect (); |
d9898ee8 |
24229 | ; |
24230 | return 0; |
24231 | } |
24232 | _ACEOF |
24233 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
24234 | if { (ac_try="$ac_link" |
24235 | case "(($ac_try" in |
24236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24237 | *) ac_try_echo=$ac_try;; |
24238 | esac |
24239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24240 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
24241 | ac_status=$? |
24242 | grep -v '^ *+' conftest.er1 >conftest.err |
24243 | rm -f conftest.er1 |
24244 | cat conftest.err >&5 |
24245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
24246 | (exit $ac_status); } && { |
24247 | test -z "$ac_c_werror_flag" || |
24248 | test ! -s conftest.err |
24249 | } && test -s conftest$ac_exeext && |
24250 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
24251 | ac_cv_func_mysql_connect=yes |
24252 | else |
24253 | echo "$as_me: failed program was:" >&5 |
24254 | sed 's/^/| /' conftest.$ac_ext >&5 |
24255 | |
dd184caf |
24256 | ac_cv_func_mysql_connect=no |
d9898ee8 |
24257 | fi |
dd184caf |
24258 | |
24259 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
24260 | conftest$ac_exeext conftest.$ac_ext |
24261 | fi |
dd184caf |
24262 | { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5 |
24263 | echo "${ECHO_T}$ac_cv_func_mysql_connect" >&6; } |
d9898ee8 |
24264 | if test $ac_cv_func_mysql_connect = yes; then |
24265 | doauthmysql="yes" |
24266 | |
24267 | fi |
24268 | |
dd184caf |
24269 | { echo "$as_me:$LINENO: checking for mysql_real_connect" >&5 |
24270 | echo $ECHO_N "checking for mysql_real_connect... $ECHO_C" >&6; } |
d9898ee8 |
24271 | if test "${ac_cv_func_mysql_real_connect+set}" = set; then |
24272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24273 | else |
24274 | cat >conftest.$ac_ext <<_ACEOF |
24275 | /* confdefs.h. */ |
24276 | _ACEOF |
24277 | cat confdefs.h >>conftest.$ac_ext |
24278 | cat >>conftest.$ac_ext <<_ACEOF |
24279 | /* end confdefs.h. */ |
24280 | /* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect. |
24281 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
24282 | #define mysql_real_connect innocuous_mysql_real_connect |
24283 | |
24284 | /* System header to define __stub macros and hopefully few prototypes, |
24285 | which can conflict with char mysql_real_connect (); below. |
24286 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
24287 | <limits.h> exists even on freestanding compilers. */ |
24288 | |
24289 | #ifdef __STDC__ |
24290 | # include <limits.h> |
24291 | #else |
24292 | # include <assert.h> |
24293 | #endif |
24294 | |
24295 | #undef mysql_real_connect |
24296 | |
dd184caf |
24297 | /* Override any GCC internal prototype to avoid an error. |
24298 | Use char because int might match the return type of a GCC |
24299 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
24300 | #ifdef __cplusplus |
24301 | extern "C" |
d9898ee8 |
24302 | #endif |
d9898ee8 |
24303 | char mysql_real_connect (); |
24304 | /* The GNU C library defines this for functions which it implements |
24305 | to always fail with ENOSYS. Some functions are actually named |
24306 | something starting with __ and the normal name is an alias. */ |
dd184caf |
24307 | #if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect |
d9898ee8 |
24308 | choke me |
d9898ee8 |
24309 | #endif |
24310 | |
24311 | int |
24312 | main () |
24313 | { |
dd184caf |
24314 | return mysql_real_connect (); |
d9898ee8 |
24315 | ; |
24316 | return 0; |
24317 | } |
24318 | _ACEOF |
24319 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
24320 | if { (ac_try="$ac_link" |
24321 | case "(($ac_try" in |
24322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24323 | *) ac_try_echo=$ac_try;; |
24324 | esac |
24325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24326 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
24327 | ac_status=$? |
24328 | grep -v '^ *+' conftest.er1 >conftest.err |
24329 | rm -f conftest.er1 |
24330 | cat conftest.err >&5 |
24331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
24332 | (exit $ac_status); } && { |
24333 | test -z "$ac_c_werror_flag" || |
24334 | test ! -s conftest.err |
24335 | } && test -s conftest$ac_exeext && |
24336 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
24337 | ac_cv_func_mysql_real_connect=yes |
24338 | else |
24339 | echo "$as_me: failed program was:" >&5 |
24340 | sed 's/^/| /' conftest.$ac_ext >&5 |
24341 | |
dd184caf |
24342 | ac_cv_func_mysql_real_connect=no |
d9898ee8 |
24343 | fi |
dd184caf |
24344 | |
24345 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
24346 | conftest$ac_exeext conftest.$ac_ext |
24347 | fi |
dd184caf |
24348 | { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5 |
24349 | echo "${ECHO_T}$ac_cv_func_mysql_real_connect" >&6; } |
d9898ee8 |
24350 | if test $ac_cv_func_mysql_real_connect = yes; then |
24351 | doauthmysql="yes" |
24352 | |
24353 | fi |
24354 | |
24355 | LIBS="$saveLIBS" |
24356 | fi |
24357 | |
24358 | if test "$doauthmysql" != "yes" |
24359 | then |
24360 | LIBAUTHMYSQL="" |
24361 | HAVE_AUTHMYSQL=0 |
24362 | else |
24363 | saveLIBS="$LIBS" |
24364 | LIBS="$MYSQL_LIBS $LIBS" |
dd184caf |
24365 | { echo "$as_me:$LINENO: checking for mysql_connect" >&5 |
24366 | echo $ECHO_N "checking for mysql_connect... $ECHO_C" >&6; } |
d9898ee8 |
24367 | if test "${ac_cv_func_mysql_connect+set}" = set; then |
24368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24369 | else |
24370 | cat >conftest.$ac_ext <<_ACEOF |
24371 | /* confdefs.h. */ |
24372 | _ACEOF |
24373 | cat confdefs.h >>conftest.$ac_ext |
24374 | cat >>conftest.$ac_ext <<_ACEOF |
24375 | /* end confdefs.h. */ |
24376 | /* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect. |
24377 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
24378 | #define mysql_connect innocuous_mysql_connect |
24379 | |
24380 | /* System header to define __stub macros and hopefully few prototypes, |
24381 | which can conflict with char mysql_connect (); below. |
24382 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
24383 | <limits.h> exists even on freestanding compilers. */ |
24384 | |
24385 | #ifdef __STDC__ |
24386 | # include <limits.h> |
24387 | #else |
24388 | # include <assert.h> |
24389 | #endif |
24390 | |
24391 | #undef mysql_connect |
24392 | |
dd184caf |
24393 | /* Override any GCC internal prototype to avoid an error. |
24394 | Use char because int might match the return type of a GCC |
24395 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
24396 | #ifdef __cplusplus |
24397 | extern "C" |
d9898ee8 |
24398 | #endif |
d9898ee8 |
24399 | char mysql_connect (); |
24400 | /* The GNU C library defines this for functions which it implements |
24401 | to always fail with ENOSYS. Some functions are actually named |
24402 | something starting with __ and the normal name is an alias. */ |
dd184caf |
24403 | #if defined __stub_mysql_connect || defined __stub___mysql_connect |
d9898ee8 |
24404 | choke me |
d9898ee8 |
24405 | #endif |
24406 | |
24407 | int |
24408 | main () |
24409 | { |
dd184caf |
24410 | return mysql_connect (); |
d9898ee8 |
24411 | ; |
24412 | return 0; |
24413 | } |
24414 | _ACEOF |
24415 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
24416 | if { (ac_try="$ac_link" |
24417 | case "(($ac_try" in |
24418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24419 | *) ac_try_echo=$ac_try;; |
24420 | esac |
24421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24422 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
24423 | ac_status=$? |
24424 | grep -v '^ *+' conftest.er1 >conftest.err |
24425 | rm -f conftest.er1 |
24426 | cat conftest.err >&5 |
24427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
24428 | (exit $ac_status); } && { |
24429 | test -z "$ac_c_werror_flag" || |
24430 | test ! -s conftest.err |
24431 | } && test -s conftest$ac_exeext && |
24432 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
24433 | ac_cv_func_mysql_connect=yes |
24434 | else |
24435 | echo "$as_me: failed program was:" >&5 |
24436 | sed 's/^/| /' conftest.$ac_ext >&5 |
24437 | |
dd184caf |
24438 | ac_cv_func_mysql_connect=no |
d9898ee8 |
24439 | fi |
dd184caf |
24440 | |
24441 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
24442 | conftest$ac_exeext conftest.$ac_ext |
24443 | fi |
dd184caf |
24444 | { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5 |
24445 | echo "${ECHO_T}$ac_cv_func_mysql_connect" >&6; } |
d9898ee8 |
24446 | if test $ac_cv_func_mysql_connect = yes; then |
24447 | LIBAUTHMYSQL="libauthmysql.la" |
24448 | HAVE_AUTHMYSQL=1 |
24449 | else |
24450 | |
dd184caf |
24451 | { echo "$as_me:$LINENO: checking for mysql_real_connect" >&5 |
24452 | echo $ECHO_N "checking for mysql_real_connect... $ECHO_C" >&6; } |
d9898ee8 |
24453 | if test "${ac_cv_func_mysql_real_connect+set}" = set; then |
24454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24455 | else |
24456 | cat >conftest.$ac_ext <<_ACEOF |
24457 | /* confdefs.h. */ |
24458 | _ACEOF |
24459 | cat confdefs.h >>conftest.$ac_ext |
24460 | cat >>conftest.$ac_ext <<_ACEOF |
24461 | /* end confdefs.h. */ |
24462 | /* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect. |
24463 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
24464 | #define mysql_real_connect innocuous_mysql_real_connect |
24465 | |
24466 | /* System header to define __stub macros and hopefully few prototypes, |
24467 | which can conflict with char mysql_real_connect (); below. |
24468 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
24469 | <limits.h> exists even on freestanding compilers. */ |
24470 | |
24471 | #ifdef __STDC__ |
24472 | # include <limits.h> |
24473 | #else |
24474 | # include <assert.h> |
24475 | #endif |
24476 | |
24477 | #undef mysql_real_connect |
24478 | |
dd184caf |
24479 | /* Override any GCC internal prototype to avoid an error. |
24480 | Use char because int might match the return type of a GCC |
24481 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
24482 | #ifdef __cplusplus |
24483 | extern "C" |
d9898ee8 |
24484 | #endif |
d9898ee8 |
24485 | char mysql_real_connect (); |
24486 | /* The GNU C library defines this for functions which it implements |
24487 | to always fail with ENOSYS. Some functions are actually named |
24488 | something starting with __ and the normal name is an alias. */ |
dd184caf |
24489 | #if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect |
d9898ee8 |
24490 | choke me |
d9898ee8 |
24491 | #endif |
24492 | |
24493 | int |
24494 | main () |
24495 | { |
dd184caf |
24496 | return mysql_real_connect (); |
d9898ee8 |
24497 | ; |
24498 | return 0; |
24499 | } |
24500 | _ACEOF |
24501 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
24502 | if { (ac_try="$ac_link" |
24503 | case "(($ac_try" in |
24504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24505 | *) ac_try_echo=$ac_try;; |
24506 | esac |
24507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24508 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
24509 | ac_status=$? |
24510 | grep -v '^ *+' conftest.er1 >conftest.err |
24511 | rm -f conftest.er1 |
24512 | cat conftest.err >&5 |
24513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
24514 | (exit $ac_status); } && { |
24515 | test -z "$ac_c_werror_flag" || |
24516 | test ! -s conftest.err |
24517 | } && test -s conftest$ac_exeext && |
24518 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
24519 | ac_cv_func_mysql_real_connect=yes |
24520 | else |
24521 | echo "$as_me: failed program was:" >&5 |
24522 | sed 's/^/| /' conftest.$ac_ext >&5 |
24523 | |
dd184caf |
24524 | ac_cv_func_mysql_real_connect=no |
d9898ee8 |
24525 | fi |
dd184caf |
24526 | |
24527 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
24528 | conftest$ac_exeext conftest.$ac_ext |
24529 | fi |
dd184caf |
24530 | { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5 |
24531 | echo "${ECHO_T}$ac_cv_func_mysql_real_connect" >&6; } |
d9898ee8 |
24532 | if test $ac_cv_func_mysql_real_connect = yes; then |
24533 | LIBAUTHMYSQL="libauthmysql.la" |
24534 | HAVE_AUTHMYSQL=1 |
24535 | else |
24536 | { { echo "$as_me:$LINENO: error: --with-authmysql specified but no mysqlclient.so" >&5 |
24537 | echo "$as_me: error: --with-authmysql specified but no mysqlclient.so" >&2;} |
24538 | { (exit 1); exit 1; }; } |
24539 | |
24540 | fi |
24541 | |
24542 | |
24543 | |
24544 | fi |
24545 | |
24546 | LIBS="$saveLIBS" |
24547 | HAVE_AUTHMYSQL=1 |
24548 | CFLAGS="$MYSQL_CFLAGS $CFLAGS" |
24549 | fi |
24550 | |
24551 | |
dd184caf |
24552 | if test "$HAVE_AUTHMYSQL" = 1; then |
d9898ee8 |
24553 | HAVE_AUTHMYSQL_TRUE= |
24554 | HAVE_AUTHMYSQL_FALSE='#' |
24555 | else |
24556 | HAVE_AUTHMYSQL_TRUE='#' |
24557 | HAVE_AUTHMYSQL_FALSE= |
24558 | fi |
24559 | |
24560 | |
24561 | |
24562 | |
24563 | |
24564 | |
24565 | |
24566 | |
dd184caf |
24567 | # Check whether --with-authcustom was given. |
d9898ee8 |
24568 | if test "${with_authcustom+set}" = set; then |
dd184caf |
24569 | withval=$with_authcustom; doauthcustom="$withval" |
d9898ee8 |
24570 | else |
24571 | doauthcustom=yes |
dd184caf |
24572 | fi |
24573 | |
d9898ee8 |
24574 | |
24575 | LIBAUTHCUSTOM="" |
24576 | |
24577 | if test "$doauthcustom" = "yes" |
24578 | then |
24579 | LIBAUTHCUSTOM="libauthcustom.la" |
24580 | fi |
24581 | |
dd184caf |
24582 | if test "$AUTHCUSTOM" != ""; then |
d9898ee8 |
24583 | HAVE_CUSTOM_TRUE= |
24584 | HAVE_CUSTOM_FALSE='#' |
24585 | else |
24586 | HAVE_CUSTOM_TRUE='#' |
24587 | HAVE_CUSTOM_FALSE= |
24588 | fi |
24589 | |
24590 | |
24591 | |
24592 | |
24593 | |
24594 | |
24595 | |
24596 | |
24597 | |
dd184caf |
24598 | # Check whether --with-pipeprog was given. |
d9898ee8 |
24599 | if test "${with_pipeprog+set}" = set; then |
dd184caf |
24600 | withval=$with_pipeprog; authProg="$withval" |
d9898ee8 |
24601 | else |
24602 | authProg="$pkgconfdir/authProg" |
dd184caf |
24603 | fi |
d9898ee8 |
24604 | |
24605 | |
24606 | |
dd184caf |
24607 | |
24608 | # Check whether --with-authpipe was given. |
d9898ee8 |
24609 | if test "${with_authpipe+set}" = set; then |
dd184caf |
24610 | withval=$with_authpipe; doauthpipe="$withval" |
d9898ee8 |
24611 | else |
24612 | doauthpipe=yes |
dd184caf |
24613 | fi |
24614 | |
d9898ee8 |
24615 | |
24616 | LIBAUTHPIPE="" |
24617 | |
24618 | if test "$doauthpipe" = "yes" |
24619 | then |
24620 | LIBAUTHPIPE="libauthpipe.la" |
24621 | fi |
24622 | |
dd184caf |
24623 | if test "$AUTHPIPE" != ""; then |
d9898ee8 |
24624 | HAVE_PIPE_TRUE= |
24625 | HAVE_PIPE_FALSE='#' |
24626 | else |
24627 | HAVE_PIPE_TRUE='#' |
24628 | HAVE_PIPE_FALSE= |
24629 | fi |
24630 | |
24631 | |
24632 | |
24633 | |
24634 | |
dd184caf |
24635 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
24636 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
d9898ee8 |
24637 | if test "${ac_cv_header_stdc+set}" = set; then |
24638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24639 | else |
24640 | cat >conftest.$ac_ext <<_ACEOF |
24641 | /* confdefs.h. */ |
24642 | _ACEOF |
24643 | cat confdefs.h >>conftest.$ac_ext |
24644 | cat >>conftest.$ac_ext <<_ACEOF |
24645 | /* end confdefs.h. */ |
24646 | #include <stdlib.h> |
24647 | #include <stdarg.h> |
24648 | #include <string.h> |
24649 | #include <float.h> |
24650 | |
24651 | int |
24652 | main () |
24653 | { |
24654 | |
24655 | ; |
24656 | return 0; |
24657 | } |
24658 | _ACEOF |
24659 | rm -f conftest.$ac_objext |
dd184caf |
24660 | if { (ac_try="$ac_compile" |
24661 | case "(($ac_try" in |
24662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24663 | *) ac_try_echo=$ac_try;; |
24664 | esac |
24665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24666 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
24667 | ac_status=$? |
24668 | grep -v '^ *+' conftest.er1 >conftest.err |
24669 | rm -f conftest.er1 |
24670 | cat conftest.err >&5 |
24671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
24672 | (exit $ac_status); } && { |
24673 | test -z "$ac_c_werror_flag" || |
24674 | test ! -s conftest.err |
24675 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
24676 | ac_cv_header_stdc=yes |
24677 | else |
24678 | echo "$as_me: failed program was:" >&5 |
24679 | sed 's/^/| /' conftest.$ac_ext >&5 |
24680 | |
dd184caf |
24681 | ac_cv_header_stdc=no |
d9898ee8 |
24682 | fi |
dd184caf |
24683 | |
24684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
24685 | |
24686 | if test $ac_cv_header_stdc = yes; then |
24687 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
24688 | cat >conftest.$ac_ext <<_ACEOF |
24689 | /* confdefs.h. */ |
24690 | _ACEOF |
24691 | cat confdefs.h >>conftest.$ac_ext |
24692 | cat >>conftest.$ac_ext <<_ACEOF |
24693 | /* end confdefs.h. */ |
24694 | #include <string.h> |
24695 | |
24696 | _ACEOF |
24697 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
24698 | $EGREP "memchr" >/dev/null 2>&1; then |
24699 | : |
24700 | else |
24701 | ac_cv_header_stdc=no |
24702 | fi |
24703 | rm -f conftest* |
24704 | |
24705 | fi |
24706 | |
24707 | if test $ac_cv_header_stdc = yes; then |
24708 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
24709 | cat >conftest.$ac_ext <<_ACEOF |
24710 | /* confdefs.h. */ |
24711 | _ACEOF |
24712 | cat confdefs.h >>conftest.$ac_ext |
24713 | cat >>conftest.$ac_ext <<_ACEOF |
24714 | /* end confdefs.h. */ |
24715 | #include <stdlib.h> |
24716 | |
24717 | _ACEOF |
24718 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
24719 | $EGREP "free" >/dev/null 2>&1; then |
24720 | : |
24721 | else |
24722 | ac_cv_header_stdc=no |
24723 | fi |
24724 | rm -f conftest* |
24725 | |
24726 | fi |
24727 | |
24728 | if test $ac_cv_header_stdc = yes; then |
24729 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
24730 | if test "$cross_compiling" = yes; then |
24731 | : |
24732 | else |
24733 | cat >conftest.$ac_ext <<_ACEOF |
24734 | /* confdefs.h. */ |
24735 | _ACEOF |
24736 | cat confdefs.h >>conftest.$ac_ext |
24737 | cat >>conftest.$ac_ext <<_ACEOF |
24738 | /* end confdefs.h. */ |
24739 | #include <ctype.h> |
dd184caf |
24740 | #include <stdlib.h> |
d9898ee8 |
24741 | #if ((' ' & 0x0FF) == 0x020) |
24742 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
24743 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
24744 | #else |
24745 | # define ISLOWER(c) \ |
24746 | (('a' <= (c) && (c) <= 'i') \ |
24747 | || ('j' <= (c) && (c) <= 'r') \ |
24748 | || ('s' <= (c) && (c) <= 'z')) |
24749 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
24750 | #endif |
24751 | |
24752 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
24753 | int |
24754 | main () |
24755 | { |
24756 | int i; |
24757 | for (i = 0; i < 256; i++) |
24758 | if (XOR (islower (i), ISLOWER (i)) |
24759 | || toupper (i) != TOUPPER (i)) |
dd184caf |
24760 | return 2; |
24761 | return 0; |
d9898ee8 |
24762 | } |
24763 | _ACEOF |
24764 | rm -f conftest$ac_exeext |
dd184caf |
24765 | if { (ac_try="$ac_link" |
24766 | case "(($ac_try" in |
24767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24768 | *) ac_try_echo=$ac_try;; |
24769 | esac |
24770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24771 | (eval "$ac_link") 2>&5 |
d9898ee8 |
24772 | ac_status=$? |
24773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24774 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
24775 | { (case "(($ac_try" in |
24776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24777 | *) ac_try_echo=$ac_try;; |
24778 | esac |
24779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24780 | (eval "$ac_try") 2>&5 |
d9898ee8 |
24781 | ac_status=$? |
24782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24783 | (exit $ac_status); }; }; then |
24784 | : |
24785 | else |
24786 | echo "$as_me: program exited with status $ac_status" >&5 |
24787 | echo "$as_me: failed program was:" >&5 |
24788 | sed 's/^/| /' conftest.$ac_ext >&5 |
24789 | |
24790 | ( exit $ac_status ) |
24791 | ac_cv_header_stdc=no |
24792 | fi |
dd184caf |
24793 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
24794 | fi |
dd184caf |
24795 | |
24796 | |
d9898ee8 |
24797 | fi |
24798 | fi |
dd184caf |
24799 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
24800 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
d9898ee8 |
24801 | if test $ac_cv_header_stdc = yes; then |
24802 | |
24803 | cat >>confdefs.h <<\_ACEOF |
24804 | #define STDC_HEADERS 1 |
24805 | _ACEOF |
24806 | |
24807 | fi |
24808 | |
dd184caf |
24809 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
24810 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
d9898ee8 |
24811 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
24812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24813 | else |
24814 | cat >conftest.$ac_ext <<_ACEOF |
24815 | /* confdefs.h. */ |
24816 | _ACEOF |
24817 | cat confdefs.h >>conftest.$ac_ext |
24818 | cat >>conftest.$ac_ext <<_ACEOF |
24819 | /* end confdefs.h. */ |
24820 | #include <sys/types.h> |
24821 | #include <sys/wait.h> |
24822 | #ifndef WEXITSTATUS |
dd184caf |
24823 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
d9898ee8 |
24824 | #endif |
24825 | #ifndef WIFEXITED |
24826 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
24827 | #endif |
24828 | |
24829 | int |
24830 | main () |
24831 | { |
24832 | int s; |
24833 | wait (&s); |
24834 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
24835 | ; |
24836 | return 0; |
24837 | } |
24838 | _ACEOF |
24839 | rm -f conftest.$ac_objext |
dd184caf |
24840 | if { (ac_try="$ac_compile" |
24841 | case "(($ac_try" in |
24842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24843 | *) ac_try_echo=$ac_try;; |
24844 | esac |
24845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24846 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
24847 | ac_status=$? |
24848 | grep -v '^ *+' conftest.er1 >conftest.err |
24849 | rm -f conftest.er1 |
24850 | cat conftest.err >&5 |
24851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
24852 | (exit $ac_status); } && { |
24853 | test -z "$ac_c_werror_flag" || |
24854 | test ! -s conftest.err |
24855 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
24856 | ac_cv_header_sys_wait_h=yes |
24857 | else |
24858 | echo "$as_me: failed program was:" >&5 |
24859 | sed 's/^/| /' conftest.$ac_ext >&5 |
24860 | |
dd184caf |
24861 | ac_cv_header_sys_wait_h=no |
d9898ee8 |
24862 | fi |
dd184caf |
24863 | |
24864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
24865 | fi |
dd184caf |
24866 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
24867 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
d9898ee8 |
24868 | if test $ac_cv_header_sys_wait_h = yes; then |
24869 | |
24870 | cat >>confdefs.h <<\_ACEOF |
24871 | #define HAVE_SYS_WAIT_H 1 |
24872 | _ACEOF |
24873 | |
24874 | fi |
24875 | |
24876 | |
24877 | |
24878 | |
24879 | |
24880 | |
24881 | |
24882 | |
24883 | |
24884 | for ac_header in sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h |
24885 | do |
24886 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
24887 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
24888 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
24889 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
24890 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
24891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24892 | fi |
dd184caf |
24893 | ac_res=`eval echo '${'$as_ac_Header'}'` |
24894 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
24895 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
24896 | else |
24897 | # Is the header compilable? |
dd184caf |
24898 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
24899 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
24900 | cat >conftest.$ac_ext <<_ACEOF |
24901 | /* confdefs.h. */ |
24902 | _ACEOF |
24903 | cat confdefs.h >>conftest.$ac_ext |
24904 | cat >>conftest.$ac_ext <<_ACEOF |
24905 | /* end confdefs.h. */ |
24906 | $ac_includes_default |
24907 | #include <$ac_header> |
24908 | _ACEOF |
24909 | rm -f conftest.$ac_objext |
dd184caf |
24910 | if { (ac_try="$ac_compile" |
24911 | case "(($ac_try" in |
24912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24913 | *) ac_try_echo=$ac_try;; |
24914 | esac |
24915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24916 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
24917 | ac_status=$? |
24918 | grep -v '^ *+' conftest.er1 >conftest.err |
24919 | rm -f conftest.er1 |
24920 | cat conftest.err >&5 |
24921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
24922 | (exit $ac_status); } && { |
24923 | test -z "$ac_c_werror_flag" || |
24924 | test ! -s conftest.err |
24925 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
24926 | ac_header_compiler=yes |
24927 | else |
24928 | echo "$as_me: failed program was:" >&5 |
24929 | sed 's/^/| /' conftest.$ac_ext >&5 |
24930 | |
dd184caf |
24931 | ac_header_compiler=no |
d9898ee8 |
24932 | fi |
dd184caf |
24933 | |
24934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
24935 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24936 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
24937 | |
24938 | # Is the header present? |
dd184caf |
24939 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
24940 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
24941 | cat >conftest.$ac_ext <<_ACEOF |
24942 | /* confdefs.h. */ |
24943 | _ACEOF |
24944 | cat confdefs.h >>conftest.$ac_ext |
24945 | cat >>conftest.$ac_ext <<_ACEOF |
24946 | /* end confdefs.h. */ |
24947 | #include <$ac_header> |
24948 | _ACEOF |
dd184caf |
24949 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
24950 | case "(($ac_try" in |
24951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24952 | *) ac_try_echo=$ac_try;; |
24953 | esac |
24954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24955 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
24956 | ac_status=$? |
24957 | grep -v '^ *+' conftest.er1 >conftest.err |
24958 | rm -f conftest.er1 |
24959 | cat conftest.err >&5 |
24960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
24961 | (exit $ac_status); } >/dev/null && { |
24962 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
24963 | test ! -s conftest.err |
24964 | }; then |
d9898ee8 |
24965 | ac_header_preproc=yes |
24966 | else |
24967 | echo "$as_me: failed program was:" >&5 |
24968 | sed 's/^/| /' conftest.$ac_ext >&5 |
24969 | |
24970 | ac_header_preproc=no |
24971 | fi |
dd184caf |
24972 | |
d9898ee8 |
24973 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
24974 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
24975 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
24976 | |
24977 | # So? What about this header? |
24978 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24979 | yes:no: ) |
24980 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
24981 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
24982 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
24983 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
24984 | ac_header_preproc=yes |
24985 | ;; |
24986 | no:yes:* ) |
24987 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
24988 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
24989 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
24990 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
24991 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
24992 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
24993 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
24994 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
24995 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
24996 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
24997 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
24998 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
24999 | ( cat <<\_ASBOX |
d9898ee8 |
25000 | ## -------------------------------------------------- ## |
25001 | ## Report this to courier-users@lists.sourceforge.net ## |
25002 | ## -------------------------------------------------- ## |
25003 | _ASBOX |
dd184caf |
25004 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
25005 | ;; |
25006 | esac |
dd184caf |
25007 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
25008 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
25009 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
25010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25011 | else |
25012 | eval "$as_ac_Header=\$ac_header_preproc" |
25013 | fi |
dd184caf |
25014 | ac_res=`eval echo '${'$as_ac_Header'}'` |
25015 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
25016 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
25017 | |
25018 | fi |
25019 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
25020 | cat >>confdefs.h <<_ACEOF |
25021 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
25022 | _ACEOF |
25023 | |
25024 | fi |
25025 | |
25026 | done |
25027 | |
25028 | |
dd184caf |
25029 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
25030 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
d9898ee8 |
25031 | if test "${ac_cv_c_const+set}" = set; then |
25032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25033 | else |
25034 | cat >conftest.$ac_ext <<_ACEOF |
25035 | /* confdefs.h. */ |
25036 | _ACEOF |
25037 | cat confdefs.h >>conftest.$ac_ext |
25038 | cat >>conftest.$ac_ext <<_ACEOF |
25039 | /* end confdefs.h. */ |
25040 | |
25041 | int |
25042 | main () |
25043 | { |
25044 | /* FIXME: Include the comments suggested by Paul. */ |
25045 | #ifndef __cplusplus |
25046 | /* Ultrix mips cc rejects this. */ |
25047 | typedef int charset[2]; |
dd184caf |
25048 | const charset cs; |
d9898ee8 |
25049 | /* SunOS 4.1.1 cc rejects this. */ |
dd184caf |
25050 | char const *const *pcpcc; |
25051 | char **ppc; |
d9898ee8 |
25052 | /* NEC SVR4.0.2 mips cc rejects this. */ |
25053 | struct point {int x, y;}; |
25054 | static struct point const zero = {0,0}; |
25055 | /* AIX XL C 1.02.0.0 rejects this. |
25056 | It does not let you subtract one const X* pointer from another in |
25057 | an arm of an if-expression whose if-part is not a constant |
25058 | expression */ |
25059 | const char *g = "string"; |
dd184caf |
25060 | pcpcc = &g + (g ? g-g : 0); |
d9898ee8 |
25061 | /* HPUX 7.0 cc rejects these. */ |
dd184caf |
25062 | ++pcpcc; |
25063 | ppc = (char**) pcpcc; |
25064 | pcpcc = (char const *const *) ppc; |
d9898ee8 |
25065 | { /* SCO 3.2v4 cc rejects this. */ |
25066 | char *t; |
25067 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
25068 | |
25069 | *t++ = 0; |
dd184caf |
25070 | if (s) return 0; |
d9898ee8 |
25071 | } |
25072 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
25073 | int x[] = {25, 17}; |
25074 | const int *foo = &x[0]; |
25075 | ++foo; |
25076 | } |
25077 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
25078 | typedef const int *iptr; |
25079 | iptr p = 0; |
25080 | ++p; |
25081 | } |
25082 | { /* AIX XL C 1.02.0.0 rejects this saying |
25083 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
25084 | struct s { int j; const int *ap[3]; }; |
25085 | struct s *b; b->j = 5; |
25086 | } |
25087 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
25088 | const int foo = 10; |
dd184caf |
25089 | if (!foo) return 0; |
d9898ee8 |
25090 | } |
dd184caf |
25091 | return !cs[0] && !zero.x; |
d9898ee8 |
25092 | #endif |
25093 | |
25094 | ; |
25095 | return 0; |
25096 | } |
25097 | _ACEOF |
25098 | rm -f conftest.$ac_objext |
dd184caf |
25099 | if { (ac_try="$ac_compile" |
25100 | case "(($ac_try" in |
25101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
25102 | *) ac_try_echo=$ac_try;; |
25103 | esac |
25104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
25105 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
25106 | ac_status=$? |
25107 | grep -v '^ *+' conftest.er1 >conftest.err |
25108 | rm -f conftest.er1 |
25109 | cat conftest.err >&5 |
25110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
25111 | (exit $ac_status); } && { |
25112 | test -z "$ac_c_werror_flag" || |
25113 | test ! -s conftest.err |
25114 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
25115 | ac_cv_c_const=yes |
25116 | else |
25117 | echo "$as_me: failed program was:" >&5 |
25118 | sed 's/^/| /' conftest.$ac_ext >&5 |
25119 | |
dd184caf |
25120 | ac_cv_c_const=no |
d9898ee8 |
25121 | fi |
dd184caf |
25122 | |
25123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
25124 | fi |
dd184caf |
25125 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
25126 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
d9898ee8 |
25127 | if test $ac_cv_c_const = no; then |
25128 | |
25129 | cat >>confdefs.h <<\_ACEOF |
25130 | #define const |
25131 | _ACEOF |
25132 | |
25133 | fi |
25134 | |
dd184caf |
25135 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
25136 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
d9898ee8 |
25137 | if test "${ac_cv_type_pid_t+set}" = set; then |
25138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25139 | else |
25140 | cat >conftest.$ac_ext <<_ACEOF |
25141 | /* confdefs.h. */ |
25142 | _ACEOF |
25143 | cat confdefs.h >>conftest.$ac_ext |
25144 | cat >>conftest.$ac_ext <<_ACEOF |
25145 | /* end confdefs.h. */ |
25146 | $ac_includes_default |
dd184caf |
25147 | typedef pid_t ac__type_new_; |
d9898ee8 |
25148 | int |
25149 | main () |
25150 | { |
dd184caf |
25151 | if ((ac__type_new_ *) 0) |
d9898ee8 |
25152 | return 0; |
dd184caf |
25153 | if (sizeof (ac__type_new_)) |
d9898ee8 |
25154 | return 0; |
25155 | ; |
25156 | return 0; |
25157 | } |
25158 | _ACEOF |
25159 | rm -f conftest.$ac_objext |
dd184caf |
25160 | if { (ac_try="$ac_compile" |
25161 | case "(($ac_try" in |
25162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
25163 | *) ac_try_echo=$ac_try;; |
25164 | esac |
25165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
25166 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
25167 | ac_status=$? |
25168 | grep -v '^ *+' conftest.er1 >conftest.err |
25169 | rm -f conftest.er1 |
25170 | cat conftest.err >&5 |
25171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
25172 | (exit $ac_status); } && { |
25173 | test -z "$ac_c_werror_flag" || |
25174 | test ! -s conftest.err |
25175 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
25176 | ac_cv_type_pid_t=yes |
25177 | else |
25178 | echo "$as_me: failed program was:" >&5 |
25179 | sed 's/^/| /' conftest.$ac_ext >&5 |
25180 | |
dd184caf |
25181 | ac_cv_type_pid_t=no |
d9898ee8 |
25182 | fi |
dd184caf |
25183 | |
25184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
25185 | fi |
dd184caf |
25186 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
25187 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
d9898ee8 |
25188 | if test $ac_cv_type_pid_t = yes; then |
25189 | : |
25190 | else |
25191 | |
25192 | cat >>confdefs.h <<_ACEOF |
25193 | #define pid_t int |
25194 | _ACEOF |
25195 | |
25196 | fi |
25197 | |
dd184caf |
25198 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
25199 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } |
d9898ee8 |
25200 | if test "${ac_cv_type_uid_t+set}" = set; then |
25201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25202 | else |
25203 | cat >conftest.$ac_ext <<_ACEOF |
25204 | /* confdefs.h. */ |
25205 | _ACEOF |
25206 | cat confdefs.h >>conftest.$ac_ext |
25207 | cat >>conftest.$ac_ext <<_ACEOF |
25208 | /* end confdefs.h. */ |
25209 | #include <sys/types.h> |
25210 | |
25211 | _ACEOF |
25212 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
25213 | $EGREP "uid_t" >/dev/null 2>&1; then |
25214 | ac_cv_type_uid_t=yes |
25215 | else |
25216 | ac_cv_type_uid_t=no |
25217 | fi |
25218 | rm -f conftest* |
25219 | |
25220 | fi |
dd184caf |
25221 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
25222 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
d9898ee8 |
25223 | if test $ac_cv_type_uid_t = no; then |
25224 | |
25225 | cat >>confdefs.h <<\_ACEOF |
25226 | #define uid_t int |
25227 | _ACEOF |
25228 | |
25229 | |
25230 | cat >>confdefs.h <<\_ACEOF |
25231 | #define gid_t int |
25232 | _ACEOF |
25233 | |
25234 | fi |
25235 | |
dd184caf |
25236 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
25237 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
d9898ee8 |
25238 | if test "${ac_cv_type_signal+set}" = set; then |
25239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25240 | else |
25241 | cat >conftest.$ac_ext <<_ACEOF |
25242 | /* confdefs.h. */ |
25243 | _ACEOF |
25244 | cat confdefs.h >>conftest.$ac_ext |
25245 | cat >>conftest.$ac_ext <<_ACEOF |
25246 | /* end confdefs.h. */ |
25247 | #include <sys/types.h> |
25248 | #include <signal.h> |
d9898ee8 |
25249 | |
25250 | int |
25251 | main () |
25252 | { |
dd184caf |
25253 | return *(signal (0, 0)) (0) == 1; |
d9898ee8 |
25254 | ; |
25255 | return 0; |
25256 | } |
25257 | _ACEOF |
25258 | rm -f conftest.$ac_objext |
dd184caf |
25259 | if { (ac_try="$ac_compile" |
25260 | case "(($ac_try" in |
25261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
25262 | *) ac_try_echo=$ac_try;; |
25263 | esac |
25264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
25265 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
25266 | ac_status=$? |
25267 | grep -v '^ *+' conftest.er1 >conftest.err |
25268 | rm -f conftest.er1 |
25269 | cat conftest.err >&5 |
25270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
25271 | (exit $ac_status); } && { |
25272 | test -z "$ac_c_werror_flag" || |
25273 | test ! -s conftest.err |
25274 | } && test -s conftest.$ac_objext; then |
25275 | ac_cv_type_signal=int |
d9898ee8 |
25276 | else |
25277 | echo "$as_me: failed program was:" >&5 |
25278 | sed 's/^/| /' conftest.$ac_ext >&5 |
25279 | |
dd184caf |
25280 | ac_cv_type_signal=void |
d9898ee8 |
25281 | fi |
dd184caf |
25282 | |
25283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
25284 | fi |
dd184caf |
25285 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
25286 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
d9898ee8 |
25287 | |
25288 | cat >>confdefs.h <<_ACEOF |
25289 | #define RETSIGTYPE $ac_cv_type_signal |
25290 | _ACEOF |
25291 | |
25292 | |
25293 | |
25294 | |
25295 | |
25296 | for ac_func in setsid setlogin |
25297 | do |
25298 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
dd184caf |
25299 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
25300 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
25301 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
25302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25303 | else |
25304 | cat >conftest.$ac_ext <<_ACEOF |
25305 | /* confdefs.h. */ |
25306 | _ACEOF |
25307 | cat confdefs.h >>conftest.$ac_ext |
25308 | cat >>conftest.$ac_ext <<_ACEOF |
25309 | /* end confdefs.h. */ |
25310 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
25311 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
25312 | #define $ac_func innocuous_$ac_func |
25313 | |
25314 | /* System header to define __stub macros and hopefully few prototypes, |
25315 | which can conflict with char $ac_func (); below. |
25316 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
25317 | <limits.h> exists even on freestanding compilers. */ |
25318 | |
25319 | #ifdef __STDC__ |
25320 | # include <limits.h> |
25321 | #else |
25322 | # include <assert.h> |
25323 | #endif |
25324 | |
25325 | #undef $ac_func |
25326 | |
dd184caf |
25327 | /* Override any GCC internal prototype to avoid an error. |
25328 | Use char because int might match the return type of a GCC |
25329 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
25330 | #ifdef __cplusplus |
25331 | extern "C" |
d9898ee8 |
25332 | #endif |
d9898ee8 |
25333 | char $ac_func (); |
25334 | /* The GNU C library defines this for functions which it implements |
25335 | to always fail with ENOSYS. Some functions are actually named |
25336 | something starting with __ and the normal name is an alias. */ |
dd184caf |
25337 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 |
25338 | choke me |
d9898ee8 |
25339 | #endif |
25340 | |
25341 | int |
25342 | main () |
25343 | { |
dd184caf |
25344 | return $ac_func (); |
d9898ee8 |
25345 | ; |
25346 | return 0; |
25347 | } |
25348 | _ACEOF |
25349 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
25350 | if { (ac_try="$ac_link" |
25351 | case "(($ac_try" in |
25352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
25353 | *) ac_try_echo=$ac_try;; |
25354 | esac |
25355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
25356 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
25357 | ac_status=$? |
25358 | grep -v '^ *+' conftest.er1 >conftest.err |
25359 | rm -f conftest.er1 |
25360 | cat conftest.err >&5 |
25361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
25362 | (exit $ac_status); } && { |
25363 | test -z "$ac_c_werror_flag" || |
25364 | test ! -s conftest.err |
25365 | } && test -s conftest$ac_exeext && |
25366 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
25367 | eval "$as_ac_var=yes" |
25368 | else |
25369 | echo "$as_me: failed program was:" >&5 |
25370 | sed 's/^/| /' conftest.$ac_ext >&5 |
25371 | |
dd184caf |
25372 | eval "$as_ac_var=no" |
d9898ee8 |
25373 | fi |
dd184caf |
25374 | |
25375 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
25376 | conftest$ac_exeext conftest.$ac_ext |
25377 | fi |
dd184caf |
25378 | ac_res=`eval echo '${'$as_ac_var'}'` |
25379 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
25380 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
25381 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
25382 | cat >>confdefs.h <<_ACEOF |
25383 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
25384 | _ACEOF |
25385 | |
25386 | fi |
25387 | done |
25388 | |
dd184caf |
25389 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 |
25390 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } |
d9898ee8 |
25391 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then |
25392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25393 | else |
25394 | ac_check_lib_save_LIBS=$LIBS |
25395 | LIBS="-lcrypt $LIBS" |
25396 | cat >conftest.$ac_ext <<_ACEOF |
25397 | /* confdefs.h. */ |
25398 | _ACEOF |
25399 | cat confdefs.h >>conftest.$ac_ext |
25400 | cat >>conftest.$ac_ext <<_ACEOF |
25401 | /* end confdefs.h. */ |
25402 | |
dd184caf |
25403 | /* Override any GCC internal prototype to avoid an error. |
25404 | Use char because int might match the return type of a GCC |
25405 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
25406 | #ifdef __cplusplus |
25407 | extern "C" |
25408 | #endif |
d9898ee8 |
25409 | char crypt (); |
25410 | int |
25411 | main () |
25412 | { |
dd184caf |
25413 | return crypt (); |
d9898ee8 |
25414 | ; |
25415 | return 0; |
25416 | } |
25417 | _ACEOF |
25418 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
25419 | if { (ac_try="$ac_link" |
25420 | case "(($ac_try" in |
25421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
25422 | *) ac_try_echo=$ac_try;; |
25423 | esac |
25424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
25425 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
25426 | ac_status=$? |
25427 | grep -v '^ *+' conftest.er1 >conftest.err |
25428 | rm -f conftest.er1 |
25429 | cat conftest.err >&5 |
25430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
25431 | (exit $ac_status); } && { |
25432 | test -z "$ac_c_werror_flag" || |
25433 | test ! -s conftest.err |
25434 | } && test -s conftest$ac_exeext && |
25435 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
25436 | ac_cv_lib_crypt_crypt=yes |
25437 | else |
25438 | echo "$as_me: failed program was:" >&5 |
25439 | sed 's/^/| /' conftest.$ac_ext >&5 |
25440 | |
dd184caf |
25441 | ac_cv_lib_crypt_crypt=no |
d9898ee8 |
25442 | fi |
dd184caf |
25443 | |
25444 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
25445 | conftest$ac_exeext conftest.$ac_ext |
25446 | LIBS=$ac_check_lib_save_LIBS |
25447 | fi |
dd184caf |
25448 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 |
25449 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } |
d9898ee8 |
25450 | if test $ac_cv_lib_crypt_crypt = yes; then |
25451 | CRYPTLIBS="-lcrypt" |
25452 | fi |
25453 | |
25454 | saveLIBS="$LIBS" |
25455 | LIBS="$CRYPTLIBS $LIBS" |
dd184caf |
25456 | { echo "$as_me:$LINENO: checking for crypt" >&5 |
25457 | echo $ECHO_N "checking for crypt... $ECHO_C" >&6; } |
d9898ee8 |
25458 | if test "${ac_cv_func_crypt+set}" = set; then |
25459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25460 | else |
25461 | cat >conftest.$ac_ext <<_ACEOF |
25462 | /* confdefs.h. */ |
25463 | _ACEOF |
25464 | cat confdefs.h >>conftest.$ac_ext |
25465 | cat >>conftest.$ac_ext <<_ACEOF |
25466 | /* end confdefs.h. */ |
25467 | /* Define crypt to an innocuous variant, in case <limits.h> declares crypt. |
25468 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
25469 | #define crypt innocuous_crypt |
25470 | |
25471 | /* System header to define __stub macros and hopefully few prototypes, |
25472 | which can conflict with char crypt (); below. |
25473 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
25474 | <limits.h> exists even on freestanding compilers. */ |
25475 | |
25476 | #ifdef __STDC__ |
25477 | # include <limits.h> |
25478 | #else |
25479 | # include <assert.h> |
25480 | #endif |
25481 | |
25482 | #undef crypt |
25483 | |
dd184caf |
25484 | /* Override any GCC internal prototype to avoid an error. |
25485 | Use char because int might match the return type of a GCC |
25486 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
25487 | #ifdef __cplusplus |
25488 | extern "C" |
d9898ee8 |
25489 | #endif |
d9898ee8 |
25490 | char crypt (); |
25491 | /* The GNU C library defines this for functions which it implements |
25492 | to always fail with ENOSYS. Some functions are actually named |
25493 | something starting with __ and the normal name is an alias. */ |
dd184caf |
25494 | #if defined __stub_crypt || defined __stub___crypt |
d9898ee8 |
25495 | choke me |
d9898ee8 |
25496 | #endif |
25497 | |
25498 | int |
25499 | main () |
25500 | { |
dd184caf |
25501 | return crypt (); |
d9898ee8 |
25502 | ; |
25503 | return 0; |
25504 | } |
25505 | _ACEOF |
25506 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
25507 | if { (ac_try="$ac_link" |
25508 | case "(($ac_try" in |
25509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
25510 | *) ac_try_echo=$ac_try;; |
25511 | esac |
25512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
25513 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
25514 | ac_status=$? |
25515 | grep -v '^ *+' conftest.er1 >conftest.err |
25516 | rm -f conftest.er1 |
25517 | cat conftest.err >&5 |
25518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
25519 | (exit $ac_status); } && { |
25520 | test -z "$ac_c_werror_flag" || |
25521 | test ! -s conftest.err |
25522 | } && test -s conftest$ac_exeext && |
25523 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
25524 | ac_cv_func_crypt=yes |
25525 | else |
25526 | echo "$as_me: failed program was:" >&5 |
25527 | sed 's/^/| /' conftest.$ac_ext >&5 |
25528 | |
dd184caf |
25529 | ac_cv_func_crypt=no |
d9898ee8 |
25530 | fi |
dd184caf |
25531 | |
25532 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
25533 | conftest$ac_exeext conftest.$ac_ext |
25534 | fi |
dd184caf |
25535 | { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5 |
25536 | echo "${ECHO_T}$ac_cv_func_crypt" >&6; } |
d9898ee8 |
25537 | if test $ac_cv_func_crypt = yes; then |
25538 | |
25539 | cat >>confdefs.h <<_ACEOF |
25540 | #define HAVE_CRYPT 1 |
25541 | _ACEOF |
25542 | |
25543 | fi |
25544 | |
25545 | LIBS="$saveLIBS" |
dd184caf |
25546 | { echo "$as_me:$LINENO: checking for crypt() prototype" >&5 |
25547 | echo $ECHO_N "checking for crypt() prototype... $ECHO_C" >&6; } |
d9898ee8 |
25548 | if test "${userdb_cv_NEED_CRYPT_PROTOTYPE+set}" = set; then |
25549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25550 | else |
25551 | cat >conftest.$ac_ext <<_ACEOF |
25552 | /* confdefs.h. */ |
25553 | _ACEOF |
25554 | cat confdefs.h >>conftest.$ac_ext |
25555 | cat >>conftest.$ac_ext <<_ACEOF |
25556 | /* end confdefs.h. */ |
25557 | |
25558 | #if HAVE_CRYPT_H |
25559 | #include <crypt.h> |
25560 | #endif |
25561 | #if HAVE_UNISTD_H |
25562 | #include <unistd.h> |
25563 | #endif |
25564 | int crypt(int, int); |
25565 | |
25566 | |
25567 | int |
25568 | main () |
25569 | { |
25570 | |
25571 | ; |
25572 | return 0; |
25573 | } |
25574 | _ACEOF |
25575 | rm -f conftest.$ac_objext |
dd184caf |
25576 | if { (ac_try="$ac_compile" |
25577 | case "(($ac_try" in |
25578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
25579 | *) ac_try_echo=$ac_try;; |
25580 | esac |
25581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
25582 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
25583 | ac_status=$? |
25584 | grep -v '^ *+' conftest.er1 >conftest.err |
25585 | rm -f conftest.er1 |
25586 | cat conftest.err >&5 |
25587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
25588 | (exit $ac_status); } && { |
25589 | test -z "$ac_c_werror_flag" || |
25590 | test ! -s conftest.err |
25591 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
25592 | userdb_cv_NEED_CRYPT_PROTOTYPE=1 |
25593 | else |
25594 | echo "$as_me: failed program was:" >&5 |
25595 | sed 's/^/| /' conftest.$ac_ext >&5 |
25596 | |
dd184caf |
25597 | userdb_cv_NEED_CRYPT_PROTOTYPE=0 |
d9898ee8 |
25598 | fi |
dd184caf |
25599 | |
25600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
25601 | |
25602 | |
25603 | fi |
dd184caf |
25604 | { echo "$as_me:$LINENO: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5 |
25605 | echo "${ECHO_T}$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; } |
d9898ee8 |
25606 | |
25607 | |
25608 | cat >>confdefs.h <<_ACEOF |
25609 | #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE |
25610 | _ACEOF |
25611 | |
25612 | |
25613 | |
25614 | |
25615 | |
25616 | |
25617 | |
dd184caf |
25618 | # Check whether --with-authdaemonrc was given. |
d9898ee8 |
25619 | if test "${with_authdaemonrc+set}" = set; then |
dd184caf |
25620 | withval=$with_authdaemonrc; authdaemonrc="$withval" |
d9898ee8 |
25621 | else |
25622 | authdaemonrc="$pkgconfdir/authdaemonrc" |
dd184caf |
25623 | fi |
d9898ee8 |
25624 | |
25625 | |
25626 | |
dd184caf |
25627 | |
25628 | # Check whether --with-authdaemonvar was given. |
d9898ee8 |
25629 | if test "${with_authdaemonvar+set}" = set; then |
dd184caf |
25630 | withval=$with_authdaemonvar; authdaemonvar="$withval" |
d9898ee8 |
25631 | else |
25632 | authdaemonvar="$localstatedir/spool/authdaemon" |
dd184caf |
25633 | fi |
25634 | |
d9898ee8 |
25635 | |
25636 | |
25637 | |
25638 | |
25639 | |
25640 | |
25641 | cat >>confdefs.h <<_ACEOF |
25642 | #define SASL_LIST $SASL_LIST |
25643 | _ACEOF |
25644 | |
25645 | |
25646 | rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h |
25647 | |
25648 | |
25649 | |
25650 | result="" |
25651 | |
25652 | if test -x "$COURIERCONFIG" |
25653 | then |
25654 | $COURIERCONFIG >conftest.out || exit 1 |
25655 | sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1 |
25656 | . conftest2.out |
25657 | rm -f conftest.out conftest2.out |
25658 | |
25659 | cmailuser="$mailuser" |
25660 | cmailgroup="$mailgroup" |
25661 | result=" (from courier-config)" |
25662 | fi |
25663 | |
25664 | if test -x "$bindir/courierauthconfig" |
25665 | then |
25666 | $bindir/courierauthconfig --configfiles >conftest.out || exit 1 |
25667 | sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1 |
25668 | . conftest2.out |
25669 | rm -f conftest.out conftest2.out |
25670 | |
25671 | cmailuser="$mailuser" |
25672 | cmailgroup="$mailgroup" |
25673 | result=" (from previous courierauthconfig)" |
25674 | fi |
25675 | |
25676 | |
25677 | |
25678 | LB='[' |
25679 | RB=']' |
25680 | |
25681 | |
25682 | |
dd184caf |
25683 | { echo "$as_me:$LINENO: checking for mail userid" >&5 |
25684 | echo $ECHO_N "checking for mail userid... $ECHO_C" >&6; } |
d9898ee8 |
25685 | |
25686 | |
dd184caf |
25687 | # Check whether --with-mailuser was given. |
d9898ee8 |
25688 | if test "${with_mailuser+set}" = set; then |
dd184caf |
25689 | withval=$with_mailuser; mailuser="$withval" |
d9898ee8 |
25690 | else |
25691 | if test "$cmailuser" = "" |
25692 | then |
25693 | if test "$cross_compiling" = yes; then |
25694 | { { echo "$as_me:$LINENO: error: Must use --with-mailuser when cross compiling." >&5 |
25695 | echo "$as_me: error: Must use --with-mailuser when cross compiling." >&2;} |
25696 | { (exit 1); exit 1; }; } |
25697 | else |
25698 | cat >conftest.$ac_ext <<_ACEOF |
25699 | /* confdefs.h. */ |
25700 | _ACEOF |
25701 | cat confdefs.h >>conftest.$ac_ext |
25702 | cat >>conftest.$ac_ext <<_ACEOF |
25703 | /* end confdefs.h. */ |
25704 | |
25705 | #include <stdio.h> |
25706 | #include <pwd.h> |
25707 | #include <stdlib.h> |
25708 | |
25709 | static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0}; |
25710 | |
25711 | int main() |
25712 | { |
25713 | int i; |
25714 | FILE *f; |
25715 | char *p; |
25716 | |
25717 | for (i=0; ids $LB i $RB; i++) |
25718 | if (getpwnam(ids $LB i $RB)) break; |
25719 | |
25720 | f=fopen("conftest.out", "w"); |
25721 | if (f && ids $LB i $RB) |
25722 | { |
25723 | fprintf(f, "%s\n", ids $LB i $RB); |
25724 | fclose(f); |
25725 | exit(0); |
25726 | } |
25727 | fclose(f); |
25728 | exit (1); |
25729 | return (1); |
25730 | } |
25731 | |
25732 | _ACEOF |
25733 | rm -f conftest$ac_exeext |
dd184caf |
25734 | if { (ac_try="$ac_link" |
25735 | case "(($ac_try" in |
25736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
25737 | *) ac_try_echo=$ac_try;; |
25738 | esac |
25739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
25740 | (eval "$ac_link") 2>&5 |
d9898ee8 |
25741 | ac_status=$? |
25742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25743 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
25744 | { (case "(($ac_try" in |
25745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
25746 | *) ac_try_echo=$ac_try;; |
25747 | esac |
25748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
25749 | (eval "$ac_try") 2>&5 |
d9898ee8 |
25750 | ac_status=$? |
25751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25752 | (exit $ac_status); }; }; then |
25753 | mailuser=`cat conftest.out` |
25754 | else |
25755 | echo "$as_me: program exited with status $ac_status" >&5 |
25756 | echo "$as_me: failed program was:" >&5 |
25757 | sed 's/^/| /' conftest.$ac_ext >&5 |
25758 | |
25759 | ( exit $ac_status ) |
25760 | { { echo "$as_me:$LINENO: error: Cannot determine mail user" >&5 |
25761 | echo "$as_me: error: Cannot determine mail user" >&2;} |
25762 | { (exit use --with-mailuser.); exit use --with-mailuser.; }; } |
25763 | fi |
dd184caf |
25764 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
25765 | fi |
dd184caf |
25766 | |
25767 | |
d9898ee8 |
25768 | else |
25769 | mailuser="$cmailuser" |
25770 | fi |
25771 | ac_configure_args="$ac_configure_args --with-mailuser=$mailuser" |
dd184caf |
25772 | fi |
d9898ee8 |
25773 | |
d9898ee8 |
25774 | |
dd184caf |
25775 | { echo "$as_me:$LINENO: result: $mailuser $result" >&5 |
25776 | echo "${ECHO_T}$mailuser $result" >&6; } |
d9898ee8 |
25777 | |
dd184caf |
25778 | { echo "$as_me:$LINENO: checking for mail group id" >&5 |
25779 | echo $ECHO_N "checking for mail group id... $ECHO_C" >&6; } |
d9898ee8 |
25780 | |
dd184caf |
25781 | |
25782 | # Check whether --with-mailgroup was given. |
d9898ee8 |
25783 | if test "${with_mailgroup+set}" = set; then |
dd184caf |
25784 | withval=$with_mailgroup; mailgroup="$withval" |
d9898ee8 |
25785 | else |
25786 | if test "$cmailgroup" = "" |
25787 | then |
25788 | if test "$cross_compiling" = yes; then |
25789 | { { echo "$as_me:$LINENO: error: Must use --with-mailgroup when cross compiling." >&5 |
25790 | echo "$as_me: error: Must use --with-mailgroup when cross compiling." >&2;} |
25791 | { (exit 1); exit 1; }; } |
25792 | else |
25793 | cat >conftest.$ac_ext <<_ACEOF |
25794 | /* confdefs.h. */ |
25795 | _ACEOF |
25796 | cat confdefs.h >>conftest.$ac_ext |
25797 | cat >>conftest.$ac_ext <<_ACEOF |
25798 | /* end confdefs.h. */ |
25799 | |
25800 | #include <stdio.h> |
25801 | #include <grp.h> |
25802 | #include <stdlib.h> |
25803 | |
25804 | static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0}; |
25805 | |
25806 | int main() |
25807 | { |
25808 | int i; |
25809 | FILE *f; |
25810 | |
25811 | for (i=0; ids $LB i $RB; i++) |
25812 | if (getgrnam(ids $LB i $RB)) break; |
25813 | |
25814 | f=fopen("conftest.out", "w"); |
25815 | if (f && ids $LB i $RB) |
25816 | { |
25817 | fprintf(f, "%s\n", ids $LB i $RB); |
25818 | fclose(f); |
25819 | exit(0); |
25820 | } |
25821 | fclose(f); |
25822 | exit (1); |
25823 | return (1); |
25824 | } |
25825 | |
25826 | _ACEOF |
25827 | rm -f conftest$ac_exeext |
dd184caf |
25828 | if { (ac_try="$ac_link" |
25829 | case "(($ac_try" in |
25830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
25831 | *) ac_try_echo=$ac_try;; |
25832 | esac |
25833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
25834 | (eval "$ac_link") 2>&5 |
d9898ee8 |
25835 | ac_status=$? |
25836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25837 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
25838 | { (case "(($ac_try" in |
25839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
25840 | *) ac_try_echo=$ac_try;; |
25841 | esac |
25842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
25843 | (eval "$ac_try") 2>&5 |
d9898ee8 |
25844 | ac_status=$? |
25845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25846 | (exit $ac_status); }; }; then |
25847 | mailgroup=`cat conftest.out` |
25848 | else |
25849 | echo "$as_me: program exited with status $ac_status" >&5 |
25850 | echo "$as_me: failed program was:" >&5 |
25851 | sed 's/^/| /' conftest.$ac_ext >&5 |
25852 | |
25853 | ( exit $ac_status ) |
25854 | { { echo "$as_me:$LINENO: error: Cannot determine mail group" >&5 |
25855 | echo "$as_me: error: Cannot determine mail group" >&2;} |
25856 | { (exit use --with-mailgroup.); exit use --with-mailgroup.; }; } |
25857 | fi |
dd184caf |
25858 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
25859 | fi |
dd184caf |
25860 | |
25861 | |
d9898ee8 |
25862 | else |
25863 | mailgroup="$cmailgroup" |
25864 | fi |
25865 | ac_configure_args="$ac_configure_args --with-mailgroup=$mailgroup" |
25866 | |
dd184caf |
25867 | fi |
25868 | |
25869 | { echo "$as_me:$LINENO: result: $mailgroup $result" >&5 |
25870 | echo "${ECHO_T}$mailgroup $result" >&6; } |
d9898ee8 |
25871 | |
25872 | |
25873 | rm -f conftest.out |
25874 | |
25875 | |
dd184caf |
25876 | # Check whether --with-stdheaderdir was given. |
d9898ee8 |
25877 | if test "${with_stdheaderdir+set}" = set; then |
dd184caf |
25878 | withval=$with_stdheaderdir; |
d9898ee8 |
25879 | if test "$withval" = "no" |
25880 | then |
25881 | |
25882 | cat >>confdefs.h <<_ACEOF |
25883 | #define HAVE_NOSTDHEADERDIR 1 |
25884 | _ACEOF |
25885 | |
25886 | fi |
25887 | |
dd184caf |
25888 | fi |
25889 | |
d9898ee8 |
25890 | |
dd184caf |
25891 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
25892 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
d9898ee8 |
25893 | if test "${authlib_cv_hassocklen_t+set}" = set; then |
25894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25895 | else |
25896 | cat >conftest.$ac_ext <<_ACEOF |
25897 | /* confdefs.h. */ |
25898 | _ACEOF |
25899 | cat confdefs.h >>conftest.$ac_ext |
25900 | cat >>conftest.$ac_ext <<_ACEOF |
25901 | /* end confdefs.h. */ |
25902 | |
25903 | #include <sys/types.h> |
25904 | #include <sys/socket.h> |
25905 | |
25906 | socklen_t sl_t; |
25907 | |
25908 | _ACEOF |
25909 | rm -f conftest.$ac_objext |
dd184caf |
25910 | if { (ac_try="$ac_compile" |
25911 | case "(($ac_try" in |
25912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
25913 | *) ac_try_echo=$ac_try;; |
25914 | esac |
25915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
25916 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
25917 | ac_status=$? |
25918 | grep -v '^ *+' conftest.er1 >conftest.err |
25919 | rm -f conftest.er1 |
25920 | cat conftest.err >&5 |
25921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
25922 | (exit $ac_status); } && { |
25923 | test -z "$ac_c_werror_flag" || |
25924 | test ! -s conftest.err |
25925 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
25926 | authlib_cv_hassocklen_t=yes |
25927 | else |
25928 | echo "$as_me: failed program was:" >&5 |
25929 | sed 's/^/| /' conftest.$ac_ext >&5 |
25930 | |
dd184caf |
25931 | authlib_cv_hassocklen_t=no |
d9898ee8 |
25932 | fi |
dd184caf |
25933 | |
25934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
25935 | |
25936 | fi |
dd184caf |
25937 | { echo "$as_me:$LINENO: result: $authlib_cv_hassocklen_t" >&5 |
25938 | echo "${ECHO_T}$authlib_cv_hassocklen_t" >&6; } |
d9898ee8 |
25939 | |
25940 | socklen_t="int" |
25941 | |
25942 | if test $authlib_cv_hassocklen_t = yes |
25943 | then |
25944 | : |
25945 | else |
25946 | |
25947 | cat >>confdefs.h <<_ACEOF |
25948 | #define socklen_t int |
25949 | _ACEOF |
25950 | |
25951 | fi |
25952 | |
25953 | if test x"$enable_ltdl_install" = x"yes" |
25954 | then |
25955 | LIBLTDL_SUBDIR=libltdl |
25956 | fi |
25957 | |
25958 | |
25959 | |
25960 | |
dd184caf |
25961 | # Check whether --with-repository was given. |
d9898ee8 |
25962 | if test "${with_repository+set}" = set; then |
dd184caf |
25963 | withval=$with_repository; REPOSITORY="$withval" |
25964 | fi |
d9898ee8 |
25965 | |
25966 | |
25967 | |
dd184caf |
25968 | if test -d ${srcdir}/docbook; then |
d9898ee8 |
25969 | HAVE_SGML_TRUE= |
25970 | HAVE_SGML_FALSE='#' |
25971 | else |
25972 | HAVE_SGML_TRUE='#' |
25973 | HAVE_SGML_FALSE= |
25974 | fi |
25975 | |
d9898ee8 |
25976 | subdirs="$subdirs libltdl bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog" |
25977 | |
25978 | |
dd184caf |
25979 | ac_config_files="$ac_config_files Makefile authdaemond authdaemonrc authsystem.passwd README.authdebug.html dbobj.h authmigrate courier-authlib.spec courier-authlib.lpspec courier-authlib.sysvinit userdb-test-cram-md5.pl" |
d9898ee8 |
25980 | |
25981 | cat >confcache <<\_ACEOF |
25982 | # This file is a shell script that caches the results of configure |
25983 | # tests run on this system so they can be shared between configure |
25984 | # scripts and configure runs, see configure's option --config-cache. |
25985 | # It is not useful on other systems. If it contains results you don't |
25986 | # want to keep, you may remove or edit it. |
25987 | # |
25988 | # config.status only pays attention to the cache file if you give it |
25989 | # the --recheck option to rerun configure. |
25990 | # |
25991 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
25992 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
25993 | # following values. |
25994 | |
25995 | _ACEOF |
25996 | |
25997 | # The following way of writing the cache mishandles newlines in values, |
25998 | # but we know of no workaround that is simple, portable, and efficient. |
dd184caf |
25999 | # So, we kill variables containing newlines. |
d9898ee8 |
26000 | # Ultrix sh set writes to stderr and can't be redirected directly, |
26001 | # and sets the high bit in the cache file unless we assign to the vars. |
dd184caf |
26002 | ( |
26003 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
26004 | eval ac_val=\$$ac_var |
26005 | case $ac_val in #( |
26006 | *${as_nl}*) |
26007 | case $ac_var in #( |
26008 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
26009 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
26010 | esac |
26011 | case $ac_var in #( |
26012 | _ | IFS | as_nl) ;; #( |
26013 | *) $as_unset $ac_var ;; |
26014 | esac ;; |
26015 | esac |
26016 | done |
26017 | |
d9898ee8 |
26018 | (set) 2>&1 | |
dd184caf |
26019 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
26020 | *${as_nl}ac_space=\ *) |
d9898ee8 |
26021 | # `set' does not quote correctly, so add quotes (double-quote |
26022 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
26023 | sed -n \ |
26024 | "s/'/'\\\\''/g; |
26025 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
dd184caf |
26026 | ;; #( |
d9898ee8 |
26027 | *) |
26028 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
dd184caf |
26029 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
26030 | ;; |
dd184caf |
26031 | esac | |
26032 | sort |
26033 | ) | |
d9898ee8 |
26034 | sed ' |
dd184caf |
26035 | /^ac_cv_env_/b end |
d9898ee8 |
26036 | t clear |
dd184caf |
26037 | :clear |
d9898ee8 |
26038 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
26039 | t end |
dd184caf |
26040 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
26041 | :end' >>confcache |
26042 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
26043 | if test -w "$cache_file"; then |
26044 | test "x$cache_file" != "x/dev/null" && |
26045 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
26046 | echo "$as_me: updating cache $cache_file" >&6;} |
d9898ee8 |
26047 | cat confcache >$cache_file |
26048 | else |
dd184caf |
26049 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
26050 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
d9898ee8 |
26051 | fi |
26052 | fi |
26053 | rm -f confcache |
26054 | |
26055 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
26056 | # Let make expand exec_prefix. |
26057 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
26058 | |
d9898ee8 |
26059 | DEFS=-DHAVE_CONFIG_H |
26060 | |
26061 | ac_libobjs= |
26062 | ac_ltlibobjs= |
26063 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
26064 | # 1. Remove the extension, and $U if already installed. |
dd184caf |
26065 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
26066 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
26067 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
26068 | # will be set to the directory where LIBOBJS objects are built. |
26069 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
26070 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
d9898ee8 |
26071 | done |
26072 | LIBOBJS=$ac_libobjs |
26073 | |
26074 | LTLIBOBJS=$ac_ltlibobjs |
26075 | |
26076 | |
26077 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
26078 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
26079 | Usually this means the macro was only invoked conditionally." >&5 |
26080 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
26081 | Usually this means the macro was only invoked conditionally." >&2;} |
26082 | { (exit 1); exit 1; }; } |
26083 | fi |
26084 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
26085 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
26086 | Usually this means the macro was only invoked conditionally." >&5 |
26087 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
26088 | Usually this means the macro was only invoked conditionally." >&2;} |
26089 | { (exit 1); exit 1; }; } |
26090 | fi |
26091 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
26092 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
26093 | Usually this means the macro was only invoked conditionally." >&5 |
26094 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
26095 | Usually this means the macro was only invoked conditionally." >&2;} |
26096 | { (exit 1); exit 1; }; } |
26097 | fi |
26098 | if test -z "${HAVE_MD5_TRUE}" && test -z "${HAVE_MD5_FALSE}"; then |
26099 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_MD5\" was never defined. |
26100 | Usually this means the macro was only invoked conditionally." >&5 |
26101 | echo "$as_me: error: conditional \"HAVE_MD5\" was never defined. |
26102 | Usually this means the macro was only invoked conditionally." >&2;} |
26103 | { (exit 1); exit 1; }; } |
26104 | fi |
26105 | if test -z "${HAVE_SHA1_TRUE}" && test -z "${HAVE_SHA1_FALSE}"; then |
26106 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_SHA1\" was never defined. |
26107 | Usually this means the macro was only invoked conditionally." >&5 |
26108 | echo "$as_me: error: conditional \"HAVE_SHA1\" was never defined. |
26109 | Usually this means the macro was only invoked conditionally." >&2;} |
26110 | { (exit 1); exit 1; }; } |
26111 | fi |
26112 | if test -z "${HAVE_HMACLIB_TRUE}" && test -z "${HAVE_HMACLIB_FALSE}"; then |
26113 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_HMACLIB\" was never defined. |
26114 | Usually this means the macro was only invoked conditionally." >&5 |
26115 | echo "$as_me: error: conditional \"HAVE_HMACLIB\" was never defined. |
26116 | Usually this means the macro was only invoked conditionally." >&2;} |
26117 | { (exit 1); exit 1; }; } |
26118 | fi |
26119 | if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then |
26120 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_LDAP\" was never defined. |
26121 | Usually this means the macro was only invoked conditionally." >&5 |
26122 | echo "$as_me: error: conditional \"HAVE_LDAP\" was never defined. |
26123 | Usually this means the macro was only invoked conditionally." >&2;} |
26124 | { (exit 1); exit 1; }; } |
26125 | fi |
26126 | if test -z "${HAVE_AUTHPGSQL_TRUE}" && test -z "${HAVE_AUTHPGSQL_FALSE}"; then |
26127 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHPGSQL\" was never defined. |
26128 | Usually this means the macro was only invoked conditionally." >&5 |
26129 | echo "$as_me: error: conditional \"HAVE_AUTHPGSQL\" was never defined. |
26130 | Usually this means the macro was only invoked conditionally." >&2;} |
26131 | { (exit 1); exit 1; }; } |
26132 | fi |
26133 | if test -z "${HAVE_AUTHMYSQL_TRUE}" && test -z "${HAVE_AUTHMYSQL_FALSE}"; then |
26134 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHMYSQL\" was never defined. |
26135 | Usually this means the macro was only invoked conditionally." >&5 |
26136 | echo "$as_me: error: conditional \"HAVE_AUTHMYSQL\" was never defined. |
26137 | Usually this means the macro was only invoked conditionally." >&2;} |
26138 | { (exit 1); exit 1; }; } |
26139 | fi |
26140 | if test -z "${HAVE_CUSTOM_TRUE}" && test -z "${HAVE_CUSTOM_FALSE}"; then |
26141 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CUSTOM\" was never defined. |
26142 | Usually this means the macro was only invoked conditionally." >&5 |
26143 | echo "$as_me: error: conditional \"HAVE_CUSTOM\" was never defined. |
26144 | Usually this means the macro was only invoked conditionally." >&2;} |
26145 | { (exit 1); exit 1; }; } |
26146 | fi |
26147 | if test -z "${HAVE_PIPE_TRUE}" && test -z "${HAVE_PIPE_FALSE}"; then |
26148 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_PIPE\" was never defined. |
26149 | Usually this means the macro was only invoked conditionally." >&5 |
26150 | echo "$as_me: error: conditional \"HAVE_PIPE\" was never defined. |
26151 | Usually this means the macro was only invoked conditionally." >&2;} |
26152 | { (exit 1); exit 1; }; } |
26153 | fi |
26154 | if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then |
26155 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined. |
26156 | Usually this means the macro was only invoked conditionally." >&5 |
26157 | echo "$as_me: error: conditional \"HAVE_SGML\" was never defined. |
26158 | Usually this means the macro was only invoked conditionally." >&2;} |
26159 | { (exit 1); exit 1; }; } |
26160 | fi |
26161 | |
26162 | : ${CONFIG_STATUS=./config.status} |
26163 | ac_clean_files_save=$ac_clean_files |
26164 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
26165 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
26166 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
26167 | cat >$CONFIG_STATUS <<_ACEOF |
26168 | #! $SHELL |
26169 | # Generated by $as_me. |
26170 | # Run this file to recreate the current configuration. |
26171 | # Compiler output produced by configure, useful for debugging |
26172 | # configure, is in config.log if it exists. |
26173 | |
26174 | debug=false |
26175 | ac_cs_recheck=false |
26176 | ac_cs_silent=false |
26177 | SHELL=\${CONFIG_SHELL-$SHELL} |
26178 | _ACEOF |
26179 | |
26180 | cat >>$CONFIG_STATUS <<\_ACEOF |
26181 | ## --------------------- ## |
26182 | ## M4sh Initialization. ## |
26183 | ## --------------------- ## |
26184 | |
dd184caf |
26185 | # Be more Bourne compatible |
26186 | DUALCASE=1; export DUALCASE # for MKS sh |
d9898ee8 |
26187 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
26188 | emulate sh |
26189 | NULLCMD=: |
26190 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
26191 | # is contrary to our usage. Disable this feature. |
26192 | alias -g '${1+"$@"}'='"$@"' |
dd184caf |
26193 | setopt NO_GLOB_SUBST |
26194 | else |
26195 | case `(set -o) 2>/dev/null` in |
26196 | *posix*) set -o posix ;; |
26197 | esac |
26198 | |
26199 | fi |
26200 | |
26201 | |
26202 | |
26203 | |
26204 | # PATH needs CR |
26205 | # Avoid depending upon Character Ranges. |
26206 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
26207 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
26208 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
26209 | as_cr_digits='0123456789' |
26210 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
26211 | |
26212 | # The user is always right. |
26213 | if test "${PATH_SEPARATOR+set}" != set; then |
26214 | echo "#! /bin/sh" >conf$$.sh |
26215 | echo "exit 0" >>conf$$.sh |
26216 | chmod +x conf$$.sh |
26217 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
26218 | PATH_SEPARATOR=';' |
26219 | else |
26220 | PATH_SEPARATOR=: |
26221 | fi |
26222 | rm -f conf$$.sh |
d9898ee8 |
26223 | fi |
d9898ee8 |
26224 | |
26225 | # Support unset when possible. |
26226 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
26227 | as_unset=unset |
26228 | else |
26229 | as_unset=false |
26230 | fi |
26231 | |
26232 | |
dd184caf |
26233 | # IFS |
26234 | # We need space, tab and new line, in precisely that order. Quoting is |
26235 | # there to prevent editors from complaining about space-tab. |
26236 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
26237 | # splitting by setting IFS to empty value.) |
26238 | as_nl=' |
26239 | ' |
26240 | IFS=" "" $as_nl" |
26241 | |
26242 | # Find who we are. Look in the path if we contain no directory separator. |
26243 | case $0 in |
26244 | *[\\/]* ) as_myself=$0 ;; |
26245 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
26246 | for as_dir in $PATH |
26247 | do |
26248 | IFS=$as_save_IFS |
26249 | test -z "$as_dir" && as_dir=. |
26250 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
26251 | done |
26252 | IFS=$as_save_IFS |
26253 | |
26254 | ;; |
26255 | esac |
26256 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
26257 | # in which case we are not to be found in the path. |
26258 | if test "x$as_myself" = x; then |
26259 | as_myself=$0 |
26260 | fi |
26261 | if test ! -f "$as_myself"; then |
26262 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
26263 | { (exit 1); exit 1; } |
26264 | fi |
26265 | |
d9898ee8 |
26266 | # Work around bugs in pre-3.0 UWIN ksh. |
dd184caf |
26267 | for as_var in ENV MAIL MAILPATH |
26268 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
26269 | done |
d9898ee8 |
26270 | PS1='$ ' |
26271 | PS2='> ' |
26272 | PS4='+ ' |
26273 | |
26274 | # NLS nuisances. |
26275 | for as_var in \ |
26276 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
26277 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
26278 | LC_TELEPHONE LC_TIME |
26279 | do |
26280 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
26281 | eval $as_var=C; export $as_var |
26282 | else |
dd184caf |
26283 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
d9898ee8 |
26284 | fi |
26285 | done |
26286 | |
26287 | # Required to use basename. |
dd184caf |
26288 | if expr a : '\(a\)' >/dev/null 2>&1 && |
26289 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
26290 | as_expr=expr |
26291 | else |
26292 | as_expr=false |
26293 | fi |
26294 | |
dd184caf |
26295 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 |
26296 | as_basename=basename |
26297 | else |
26298 | as_basename=false |
26299 | fi |
26300 | |
26301 | |
26302 | # Name of the executable. |
dd184caf |
26303 | as_me=`$as_basename -- "$0" || |
d9898ee8 |
26304 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
26305 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
26306 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
26307 | echo X/"$0" | |
dd184caf |
26308 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
26309 | s//\1/ |
26310 | q |
26311 | } |
26312 | /^X\/\(\/\/\)$/{ |
26313 | s//\1/ |
26314 | q |
26315 | } |
26316 | /^X\/\(\/\).*/{ |
26317 | s//\1/ |
26318 | q |
26319 | } |
26320 | s/.*/./; q'` |
d9898ee8 |
26321 | |
dd184caf |
26322 | # CDPATH. |
26323 | $as_unset CDPATH |
d9898ee8 |
26324 | |
d9898ee8 |
26325 | |
26326 | |
26327 | as_lineno_1=$LINENO |
26328 | as_lineno_2=$LINENO |
d9898ee8 |
26329 | test "x$as_lineno_1" != "x$as_lineno_2" && |
dd184caf |
26330 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
d9898ee8 |
26331 | |
26332 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
26333 | # uniformly replaced by the line number. The first 'sed' inserts a |
dd184caf |
26334 | # line-number line after each line using $LINENO; the second 'sed' |
26335 | # does the real work. The second script uses 'N' to pair each |
26336 | # line-number line with the line containing $LINENO, and appends |
26337 | # trailing '-' during substitution so that $LINENO is not a special |
26338 | # case at line end. |
d9898ee8 |
26339 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
dd184caf |
26340 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
26341 | # E. McMahon (1931-1989) for sed's syntax. :-) |
26342 | sed -n ' |
26343 | p |
26344 | /[$]LINENO/= |
26345 | ' <$as_myself | |
d9898ee8 |
26346 | sed ' |
dd184caf |
26347 | s/[$]LINENO.*/&-/ |
26348 | t lineno |
26349 | b |
26350 | :lineno |
d9898ee8 |
26351 | N |
dd184caf |
26352 | :loop |
26353 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
26354 | t loop |
dd184caf |
26355 | s/-\n.*// |
d9898ee8 |
26356 | ' >$as_me.lineno && |
dd184caf |
26357 | chmod +x "$as_me.lineno" || |
26358 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
d9898ee8 |
26359 | { (exit 1); exit 1; }; } |
26360 | |
26361 | # Don't try to exec as it changes $[0], causing all sort of problems |
26362 | # (the dirname of $[0] is not the place where we might find the |
dd184caf |
26363 | # original and so on. Autoconf is especially sensitive to this). |
26364 | . "./$as_me.lineno" |
d9898ee8 |
26365 | # Exit status is that of the last command. |
26366 | exit |
26367 | } |
26368 | |
26369 | |
dd184caf |
26370 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
26371 | as_dirname=dirname |
26372 | else |
26373 | as_dirname=false |
26374 | fi |
26375 | |
26376 | ECHO_C= ECHO_N= ECHO_T= |
26377 | case `echo -n x` in |
26378 | -n*) |
26379 | case `echo 'x\c'` in |
26380 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
26381 | *) ECHO_C='\c';; |
26382 | esac;; |
26383 | *) |
26384 | ECHO_N='-n';; |
d9898ee8 |
26385 | esac |
26386 | |
dd184caf |
26387 | if expr a : '\(a\)' >/dev/null 2>&1 && |
26388 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
26389 | as_expr=expr |
26390 | else |
26391 | as_expr=false |
26392 | fi |
26393 | |
26394 | rm -f conf$$ conf$$.exe conf$$.file |
dd184caf |
26395 | if test -d conf$$.dir; then |
26396 | rm -f conf$$.dir/conf$$.file |
26397 | else |
26398 | rm -f conf$$.dir |
26399 | mkdir conf$$.dir |
26400 | fi |
d9898ee8 |
26401 | echo >conf$$.file |
26402 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
dd184caf |
26403 | as_ln_s='ln -s' |
26404 | # ... but there are two gotchas: |
26405 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
26406 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
26407 | # In both cases, we have to default to `cp -p'. |
26408 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d9898ee8 |
26409 | as_ln_s='cp -p' |
d9898ee8 |
26410 | elif ln conf$$.file conf$$ 2>/dev/null; then |
26411 | as_ln_s=ln |
26412 | else |
26413 | as_ln_s='cp -p' |
26414 | fi |
dd184caf |
26415 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
26416 | rmdir conf$$.dir 2>/dev/null |
d9898ee8 |
26417 | |
26418 | if mkdir -p . 2>/dev/null; then |
26419 | as_mkdir_p=: |
26420 | else |
26421 | test -d ./-p && rmdir ./-p |
26422 | as_mkdir_p=false |
26423 | fi |
26424 | |
dd184caf |
26425 | if test -x / >/dev/null 2>&1; then |
26426 | as_test_x='test -x' |
26427 | else |
26428 | if ls -dL / >/dev/null 2>&1; then |
26429 | as_ls_L_option=L |
26430 | else |
26431 | as_ls_L_option= |
26432 | fi |
26433 | as_test_x=' |
26434 | eval sh -c '\'' |
26435 | if test -d "$1"; then |
26436 | test -d "$1/."; |
26437 | else |
26438 | case $1 in |
26439 | -*)set "./$1";; |
26440 | esac; |
26441 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
26442 | ???[sx]*):;;*)false;;esac;fi |
26443 | '\'' sh |
26444 | ' |
26445 | fi |
26446 | as_executable_p=$as_test_x |
d9898ee8 |
26447 | |
26448 | # Sed expression to map a string onto a valid CPP name. |
26449 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
26450 | |
26451 | # Sed expression to map a string onto a valid variable name. |
26452 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
26453 | |
26454 | |
d9898ee8 |
26455 | exec 6>&1 |
26456 | |
dd184caf |
26457 | # Save the log message, to keep $[0] and so on meaningful, and to |
d9898ee8 |
26458 | # report actual input values of CONFIG_FILES etc. instead of their |
dd184caf |
26459 | # values after options handling. |
26460 | ac_log=" |
26461 | This file was extended by courier-authlib $as_me 0.60.1, which was |
26462 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
26463 | |
26464 | CONFIG_FILES = $CONFIG_FILES |
26465 | CONFIG_HEADERS = $CONFIG_HEADERS |
26466 | CONFIG_LINKS = $CONFIG_LINKS |
26467 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
26468 | $ $0 $@ |
26469 | |
dd184caf |
26470 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
26471 | " |
26472 | |
d9898ee8 |
26473 | _ACEOF |
26474 | |
dd184caf |
26475 | cat >>$CONFIG_STATUS <<_ACEOF |
d9898ee8 |
26476 | # Files that config.status was made for. |
dd184caf |
26477 | config_files="$ac_config_files" |
26478 | config_headers="$ac_config_headers" |
26479 | config_commands="$ac_config_commands" |
d9898ee8 |
26480 | |
dd184caf |
26481 | _ACEOF |
d9898ee8 |
26482 | |
26483 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
26484 | ac_cs_usage="\ |
26485 | \`$as_me' instantiates files from templates according to the |
26486 | current configuration. |
26487 | |
26488 | Usage: $0 [OPTIONS] [FILE]... |
26489 | |
26490 | -h, --help print this help, then exit |
dd184caf |
26491 | -V, --version print version number and configuration settings, then exit |
d9898ee8 |
26492 | -q, --quiet do not print progress messages |
26493 | -d, --debug don't remove temporary files |
26494 | --recheck update $as_me by reconfiguring in the same conditions |
26495 | --file=FILE[:TEMPLATE] |
26496 | instantiate the configuration file FILE |
26497 | --header=FILE[:TEMPLATE] |
26498 | instantiate the configuration header FILE |
26499 | |
26500 | Configuration files: |
26501 | $config_files |
26502 | |
26503 | Configuration headers: |
26504 | $config_headers |
26505 | |
26506 | Configuration commands: |
26507 | $config_commands |
26508 | |
26509 | Report bugs to <bug-autoconf@gnu.org>." |
d9898ee8 |
26510 | |
dd184caf |
26511 | _ACEOF |
d9898ee8 |
26512 | cat >>$CONFIG_STATUS <<_ACEOF |
26513 | ac_cs_version="\\ |
dd184caf |
26514 | courier-authlib config.status 0.60.1 |
26515 | configured by $0, generated by GNU Autoconf 2.61, |
26516 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
d9898ee8 |
26517 | |
dd184caf |
26518 | Copyright (C) 2006 Free Software Foundation, Inc. |
d9898ee8 |
26519 | This config.status script is free software; the Free Software Foundation |
26520 | gives unlimited permission to copy, distribute and modify it." |
dd184caf |
26521 | |
26522 | ac_pwd='$ac_pwd' |
26523 | srcdir='$srcdir' |
26524 | INSTALL='$INSTALL' |
26525 | MKDIR_P='$MKDIR_P' |
d9898ee8 |
26526 | _ACEOF |
26527 | |
26528 | cat >>$CONFIG_STATUS <<\_ACEOF |
26529 | # If no file are specified by the user, then we need to provide default |
26530 | # value. By we need to know if files were specified by the user. |
26531 | ac_need_defaults=: |
26532 | while test $# != 0 |
26533 | do |
26534 | case $1 in |
26535 | --*=*) |
dd184caf |
26536 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
26537 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
d9898ee8 |
26538 | ac_shift=: |
26539 | ;; |
dd184caf |
26540 | *) |
d9898ee8 |
26541 | ac_option=$1 |
26542 | ac_optarg=$2 |
26543 | ac_shift=shift |
26544 | ;; |
d9898ee8 |
26545 | esac |
26546 | |
26547 | case $ac_option in |
26548 | # Handling of the options. |
d9898ee8 |
26549 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
26550 | ac_cs_recheck=: ;; |
dd184caf |
26551 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
26552 | echo "$ac_cs_version"; exit ;; |
26553 | --debug | --debu | --deb | --de | --d | -d ) |
d9898ee8 |
26554 | debug=: ;; |
26555 | --file | --fil | --fi | --f ) |
26556 | $ac_shift |
26557 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
26558 | ac_need_defaults=false;; |
26559 | --header | --heade | --head | --hea ) |
26560 | $ac_shift |
26561 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
26562 | ac_need_defaults=false;; |
dd184caf |
26563 | --he | --h) |
26564 | # Conflict between --help and --header |
26565 | { echo "$as_me: error: ambiguous option: $1 |
26566 | Try \`$0 --help' for more information." >&2 |
26567 | { (exit 1); exit 1; }; };; |
26568 | --help | --hel | -h ) |
26569 | echo "$ac_cs_usage"; exit ;; |
d9898ee8 |
26570 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
26571 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
26572 | ac_cs_silent=: ;; |
26573 | |
26574 | # This is an error. |
dd184caf |
26575 | -*) { echo "$as_me: error: unrecognized option: $1 |
26576 | Try \`$0 --help' for more information." >&2 |
d9898ee8 |
26577 | { (exit 1); exit 1; }; } ;; |
26578 | |
dd184caf |
26579 | *) ac_config_targets="$ac_config_targets $1" |
26580 | ac_need_defaults=false ;; |
d9898ee8 |
26581 | |
26582 | esac |
26583 | shift |
26584 | done |
26585 | |
26586 | ac_configure_extra_args= |
26587 | |
26588 | if $ac_cs_silent; then |
26589 | exec 6>/dev/null |
26590 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
26591 | fi |
26592 | |
26593 | _ACEOF |
26594 | cat >>$CONFIG_STATUS <<_ACEOF |
26595 | if \$ac_cs_recheck; then |
dd184caf |
26596 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
26597 | CONFIG_SHELL=$SHELL |
26598 | export CONFIG_SHELL |
26599 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
d9898ee8 |
26600 | fi |
26601 | |
26602 | _ACEOF |
dd184caf |
26603 | cat >>$CONFIG_STATUS <<\_ACEOF |
26604 | exec 5>>config.log |
26605 | { |
26606 | echo |
26607 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
26608 | ## Running $as_me. ## |
26609 | _ASBOX |
26610 | echo "$ac_log" |
26611 | } >&5 |
d9898ee8 |
26612 | |
dd184caf |
26613 | _ACEOF |
d9898ee8 |
26614 | cat >>$CONFIG_STATUS <<_ACEOF |
26615 | # |
dd184caf |
26616 | # INIT-COMMANDS |
d9898ee8 |
26617 | # |
d9898ee8 |
26618 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
26619 | |
26620 | _ACEOF |
26621 | |
d9898ee8 |
26622 | cat >>$CONFIG_STATUS <<\_ACEOF |
dd184caf |
26623 | |
26624 | # Handling of arguments. |
d9898ee8 |
26625 | for ac_config_target in $ac_config_targets |
26626 | do |
dd184caf |
26627 | case $ac_config_target in |
26628 | "courier_auth_config.h") CONFIG_HEADERS="$CONFIG_HEADERS courier_auth_config.h" ;; |
26629 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
26630 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
26631 | "authdaemond") CONFIG_FILES="$CONFIG_FILES authdaemond" ;; |
26632 | "authdaemonrc") CONFIG_FILES="$CONFIG_FILES authdaemonrc" ;; |
26633 | "authsystem.passwd") CONFIG_FILES="$CONFIG_FILES authsystem.passwd" ;; |
26634 | "README.authdebug.html") CONFIG_FILES="$CONFIG_FILES README.authdebug.html" ;; |
26635 | "dbobj.h") CONFIG_FILES="$CONFIG_FILES dbobj.h" ;; |
26636 | "authmigrate") CONFIG_FILES="$CONFIG_FILES authmigrate" ;; |
26637 | "courier-authlib.spec") CONFIG_FILES="$CONFIG_FILES courier-authlib.spec" ;; |
26638 | "courier-authlib.lpspec") CONFIG_FILES="$CONFIG_FILES courier-authlib.lpspec" ;; |
26639 | "courier-authlib.sysvinit") CONFIG_FILES="$CONFIG_FILES courier-authlib.sysvinit" ;; |
26640 | "userdb-test-cram-md5.pl") CONFIG_FILES="$CONFIG_FILES userdb-test-cram-md5.pl" ;; |
26641 | |
d9898ee8 |
26642 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
26643 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
26644 | { (exit 1); exit 1; }; };; |
26645 | esac |
26646 | done |
26647 | |
dd184caf |
26648 | |
d9898ee8 |
26649 | # If the user did not use the arguments to specify the items to instantiate, |
26650 | # then the envvar interface is used. Set only those that are not. |
26651 | # We use the long form for the default assignment because of an extremely |
26652 | # bizarre bug on SunOS 4.1.3. |
26653 | if $ac_need_defaults; then |
26654 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
26655 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
26656 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
26657 | fi |
26658 | |
26659 | # Have a temporary directory for convenience. Make it in the build tree |
dd184caf |
26660 | # simply because there is no reason against having it here, and in addition, |
d9898ee8 |
26661 | # creating and moving files from /tmp can sometimes cause problems. |
dd184caf |
26662 | # Hook for its removal unless debugging. |
26663 | # Note that there is a small window in which the directory will not be cleaned: |
26664 | # after its creation but before its name has been assigned to `$tmp'. |
d9898ee8 |
26665 | $debug || |
26666 | { |
dd184caf |
26667 | tmp= |
26668 | trap 'exit_status=$? |
26669 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
26670 | ' 0 |
d9898ee8 |
26671 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
26672 | } |
d9898ee8 |
26673 | # Create a (secure) tmp directory for tmp files. |
26674 | |
26675 | { |
dd184caf |
26676 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d9898ee8 |
26677 | test -n "$tmp" && test -d "$tmp" |
26678 | } || |
26679 | { |
dd184caf |
26680 | tmp=./conf$$-$RANDOM |
26681 | (umask 077 && mkdir "$tmp") |
d9898ee8 |
26682 | } || |
26683 | { |
26684 | echo "$me: cannot create a temporary directory in ." >&2 |
26685 | { (exit 1); exit 1; } |
26686 | } |
26687 | |
d9898ee8 |
26688 | # |
dd184caf |
26689 | # Set up the sed scripts for CONFIG_FILES section. |
d9898ee8 |
26690 | # |
26691 | |
26692 | # No need to generate the scripts if there are no CONFIG_FILES. |
26693 | # This happens for instance when ./config.status config.h |
dd184caf |
26694 | if test -n "$CONFIG_FILES"; then |
26695 | |
26696 | _ACEOF |
26697 | |
26698 | |
26699 | |
26700 | ac_delim='%!_!# ' |
26701 | for ac_last_try in false false false false false :; do |
26702 | cat >conf$$subs.sed <<_ACEOF |
26703 | SHELL!$SHELL$ac_delim |
26704 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
26705 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
26706 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
26707 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
26708 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
26709 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
26710 | exec_prefix!$exec_prefix$ac_delim |
26711 | prefix!$prefix$ac_delim |
26712 | program_transform_name!$program_transform_name$ac_delim |
26713 | bindir!$bindir$ac_delim |
26714 | sbindir!$sbindir$ac_delim |
26715 | libexecdir!$libexecdir$ac_delim |
26716 | datarootdir!$datarootdir$ac_delim |
26717 | datadir!$datadir$ac_delim |
26718 | sysconfdir!$sysconfdir$ac_delim |
26719 | sharedstatedir!$sharedstatedir$ac_delim |
26720 | localstatedir!$localstatedir$ac_delim |
26721 | includedir!$includedir$ac_delim |
26722 | oldincludedir!$oldincludedir$ac_delim |
26723 | docdir!$docdir$ac_delim |
26724 | infodir!$infodir$ac_delim |
26725 | htmldir!$htmldir$ac_delim |
26726 | dvidir!$dvidir$ac_delim |
26727 | pdfdir!$pdfdir$ac_delim |
26728 | psdir!$psdir$ac_delim |
26729 | libdir!$libdir$ac_delim |
26730 | localedir!$localedir$ac_delim |
26731 | mandir!$mandir$ac_delim |
26732 | DEFS!$DEFS$ac_delim |
26733 | ECHO_C!$ECHO_C$ac_delim |
26734 | ECHO_N!$ECHO_N$ac_delim |
26735 | ECHO_T!$ECHO_T$ac_delim |
26736 | LIBS!$LIBS$ac_delim |
26737 | build_alias!$build_alias$ac_delim |
26738 | host_alias!$host_alias$ac_delim |
26739 | target_alias!$target_alias$ac_delim |
26740 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
26741 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
26742 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
26743 | am__isrc!$am__isrc$ac_delim |
26744 | CYGPATH_W!$CYGPATH_W$ac_delim |
26745 | PACKAGE!$PACKAGE$ac_delim |
26746 | VERSION!$VERSION$ac_delim |
26747 | ACLOCAL!$ACLOCAL$ac_delim |
26748 | AUTOCONF!$AUTOCONF$ac_delim |
26749 | AUTOMAKE!$AUTOMAKE$ac_delim |
26750 | AUTOHEADER!$AUTOHEADER$ac_delim |
26751 | MAKEINFO!$MAKEINFO$ac_delim |
26752 | install_sh!$install_sh$ac_delim |
26753 | STRIP!$STRIP$ac_delim |
26754 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
26755 | mkdir_p!$mkdir_p$ac_delim |
26756 | AWK!$AWK$ac_delim |
26757 | SET_MAKE!$SET_MAKE$ac_delim |
26758 | am__leading_dot!$am__leading_dot$ac_delim |
26759 | AMTAR!$AMTAR$ac_delim |
26760 | am__tar!$am__tar$ac_delim |
26761 | am__untar!$am__untar$ac_delim |
26762 | CC!$CC$ac_delim |
26763 | CFLAGS!$CFLAGS$ac_delim |
26764 | LDFLAGS!$LDFLAGS$ac_delim |
26765 | CPPFLAGS!$CPPFLAGS$ac_delim |
26766 | ac_ct_CC!$ac_ct_CC$ac_delim |
26767 | EXEEXT!$EXEEXT$ac_delim |
26768 | OBJEXT!$OBJEXT$ac_delim |
26769 | DEPDIR!$DEPDIR$ac_delim |
26770 | am__include!$am__include$ac_delim |
26771 | am__quote!$am__quote$ac_delim |
26772 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
26773 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
26774 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
26775 | CCDEPMODE!$CCDEPMODE$ac_delim |
26776 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
26777 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
26778 | CPP!$CPP$ac_delim |
26779 | LN_S!$LN_S$ac_delim |
26780 | SYSCONFTOOL_PERL!$SYSCONFTOOL_PERL$ac_delim |
26781 | SYSCONFTOOL!$SYSCONFTOOL$ac_delim |
26782 | build!$build$ac_delim |
26783 | build_cpu!$build_cpu$ac_delim |
26784 | build_vendor!$build_vendor$ac_delim |
26785 | build_os!$build_os$ac_delim |
26786 | host!$host$ac_delim |
26787 | host_cpu!$host_cpu$ac_delim |
26788 | host_vendor!$host_vendor$ac_delim |
26789 | host_os!$host_os$ac_delim |
26790 | SED!$SED$ac_delim |
26791 | GREP!$GREP$ac_delim |
26792 | EGREP!$EGREP$ac_delim |
26793 | ECHO!$ECHO$ac_delim |
26794 | AR!$AR$ac_delim |
26795 | RANLIB!$RANLIB$ac_delim |
26796 | CXX!$CXX$ac_delim |
26797 | CXXFLAGS!$CXXFLAGS$ac_delim |
26798 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
26799 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
26800 | _ACEOF |
26801 | |
26802 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
26803 | break |
26804 | elif $ac_last_try; then |
26805 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
26806 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
26807 | { (exit 1); exit 1; }; } |
26808 | else |
26809 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
d9898ee8 |
26810 | fi |
dd184caf |
26811 | done |
d9898ee8 |
26812 | |
dd184caf |
26813 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
26814 | if test -n "$ac_eof"; then |
26815 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
26816 | ac_eof=`expr $ac_eof + 1` |
26817 | fi |
26818 | |
26819 | cat >>$CONFIG_STATUS <<_ACEOF |
26820 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
26821 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
26822 | _ACEOF |
26823 | sed ' |
26824 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
26825 | s/^/s,@/; s/!/@,|#_!!_#|/ |
26826 | :n |
26827 | t n |
26828 | s/'"$ac_delim"'$/,g/; t |
26829 | s/$/\\/; p |
26830 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
26831 | ' >>$CONFIG_STATUS <conf$$subs.sed |
26832 | rm -f conf$$subs.sed |
26833 | cat >>$CONFIG_STATUS <<_ACEOF |
26834 | CEOF$ac_eof |
26835 | _ACEOF |
26836 | |
26837 | |
26838 | ac_delim='%!_!# ' |
26839 | for ac_last_try in false false false false false :; do |
26840 | cat >conf$$subs.sed <<_ACEOF |
26841 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
26842 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
26843 | CXXCPP!$CXXCPP$ac_delim |
26844 | F77!$F77$ac_delim |
26845 | FFLAGS!$FFLAGS$ac_delim |
26846 | ac_ct_F77!$ac_ct_F77$ac_delim |
26847 | LIBTOOL!$LIBTOOL$ac_delim |
26848 | LTDLINCL!$LTDLINCL$ac_delim |
26849 | LIBLTDL!$LIBLTDL$ac_delim |
26850 | PERL!$PERL$ac_delim |
26851 | COURIERCONFIG!$COURIERCONFIG$ac_delim |
26852 | EXPECT!$EXPECT$ac_delim |
26853 | PASSWD!$PASSWD$ac_delim |
26854 | MD5LIB!$MD5LIB$ac_delim |
26855 | HAVE_MD5_TRUE!$HAVE_MD5_TRUE$ac_delim |
26856 | HAVE_MD5_FALSE!$HAVE_MD5_FALSE$ac_delim |
26857 | SHA1LIB!$SHA1LIB$ac_delim |
26858 | HAVE_SHA1_TRUE!$HAVE_SHA1_TRUE$ac_delim |
26859 | HAVE_SHA1_FALSE!$HAVE_SHA1_FALSE$ac_delim |
26860 | HMACLIB!$HMACLIB$ac_delim |
26861 | HAVE_HMACLIB_TRUE!$HAVE_HMACLIB_TRUE$ac_delim |
26862 | HAVE_HMACLIB_FALSE!$HAVE_HMACLIB_FALSE$ac_delim |
26863 | NETLIBS!$NETLIBS$ac_delim |
26864 | DBSUBDIR!$DBSUBDIR$ac_delim |
26865 | USE_GDBM!$USE_GDBM$ac_delim |
26866 | USE_DB!$USE_DB$ac_delim |
26867 | LIBDB!$LIBDB$ac_delim |
26868 | LIBGDBM!$LIBGDBM$ac_delim |
26869 | dblibrary!$dblibrary$ac_delim |
26870 | LIBAUTHUSERDB!$LIBAUTHUSERDB$ac_delim |
26871 | userdb!$userdb$ac_delim |
26872 | LIBDL!$LIBDL$ac_delim |
26873 | AUTHPAMCRYPT!$AUTHPAMCRYPT$ac_delim |
26874 | LIBAUTHPAM!$LIBAUTHPAM$ac_delim |
26875 | authldaprc!$authldaprc$ac_delim |
26876 | LDAPLIBS!$LDAPLIBS$ac_delim |
26877 | LIBAUTHLDAP!$LIBAUTHLDAP$ac_delim |
26878 | HAVE_LDAP_TRUE!$HAVE_LDAP_TRUE$ac_delim |
26879 | HAVE_LDAP_FALSE!$HAVE_LDAP_FALSE$ac_delim |
26880 | SHADOWLIBS!$SHADOWLIBS$ac_delim |
26881 | LIBAUTHSHADOW!$LIBAUTHSHADOW$ac_delim |
26882 | LIBAUTHPWD!$LIBAUTHPWD$ac_delim |
26883 | vpopmail_home!$vpopmail_home$ac_delim |
26884 | VPOPMAILLIBS!$VPOPMAILLIBS$ac_delim |
26885 | LIBAUTHVCHKPW!$LIBAUTHVCHKPW$ac_delim |
26886 | authpgsqlrc!$authpgsqlrc$ac_delim |
26887 | PG_CONFIG!$PG_CONFIG$ac_delim |
26888 | PGSQL_LIBS!$PGSQL_LIBS$ac_delim |
26889 | LIBAUTHPGSQL!$LIBAUTHPGSQL$ac_delim |
26890 | HAVE_AUTHPGSQL_TRUE!$HAVE_AUTHPGSQL_TRUE$ac_delim |
26891 | HAVE_AUTHPGSQL_FALSE!$HAVE_AUTHPGSQL_FALSE$ac_delim |
26892 | authmysqlrc!$authmysqlrc$ac_delim |
26893 | MYSQL_CONFIG!$MYSQL_CONFIG$ac_delim |
26894 | LIBAUTHMYSQL!$LIBAUTHMYSQL$ac_delim |
26895 | MYSQL_LIBS!$MYSQL_LIBS$ac_delim |
26896 | HAVE_AUTHMYSQL_TRUE!$HAVE_AUTHMYSQL_TRUE$ac_delim |
26897 | HAVE_AUTHMYSQL_FALSE!$HAVE_AUTHMYSQL_FALSE$ac_delim |
26898 | HAVE_CUSTOM_TRUE!$HAVE_CUSTOM_TRUE$ac_delim |
26899 | HAVE_CUSTOM_FALSE!$HAVE_CUSTOM_FALSE$ac_delim |
26900 | LIBAUTHCUSTOM!$LIBAUTHCUSTOM$ac_delim |
26901 | authProg!$authProg$ac_delim |
26902 | HAVE_PIPE_TRUE!$HAVE_PIPE_TRUE$ac_delim |
26903 | HAVE_PIPE_FALSE!$HAVE_PIPE_FALSE$ac_delim |
26904 | LIBAUTHPIPE!$LIBAUTHPIPE$ac_delim |
26905 | CRYPTLIBS!$CRYPTLIBS$ac_delim |
26906 | authdaemonrc!$authdaemonrc$ac_delim |
26907 | authdaemonvar!$authdaemonvar$ac_delim |
26908 | LIBM!$LIBM$ac_delim |
26909 | mailuser!$mailuser$ac_delim |
26910 | mailgroup!$mailgroup$ac_delim |
26911 | LIBLTDL_SUBDIR!$LIBLTDL_SUBDIR$ac_delim |
26912 | REPOSITORY!$REPOSITORY$ac_delim |
26913 | HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim |
26914 | HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim |
26915 | subdirs!$subdirs$ac_delim |
26916 | LIBOBJS!$LIBOBJS$ac_delim |
26917 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
26918 | _ACEOF |
26919 | |
26920 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then |
26921 | break |
26922 | elif $ac_last_try; then |
26923 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
26924 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
26925 | { (exit 1); exit 1; }; } |
26926 | else |
26927 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
26928 | fi |
26929 | done |
26930 | |
26931 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
26932 | if test -n "$ac_eof"; then |
26933 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
26934 | ac_eof=`expr $ac_eof + 1` |
26935 | fi |
26936 | |
26937 | cat >>$CONFIG_STATUS <<_ACEOF |
26938 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
26939 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
26940 | _ACEOF |
26941 | sed ' |
26942 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
26943 | s/^/s,@/; s/!/@,|#_!!_#|/ |
26944 | :n |
26945 | t n |
26946 | s/'"$ac_delim"'$/,g/; t |
26947 | s/$/\\/; p |
26948 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
26949 | ' >>$CONFIG_STATUS <conf$$subs.sed |
26950 | rm -f conf$$subs.sed |
26951 | cat >>$CONFIG_STATUS <<_ACEOF |
26952 | :end |
26953 | s/|#_!!_#|//g |
26954 | CEOF$ac_eof |
d9898ee8 |
26955 | _ACEOF |
dd184caf |
26956 | |
26957 | |
26958 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
26959 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
26960 | # trailing colons and then remove the whole line if VPATH becomes empty |
26961 | # (actually we leave an empty line to preserve line numbers). |
26962 | if test "x$srcdir" = x.; then |
26963 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
26964 | s/:*\$(srcdir):*/:/ |
26965 | s/:*\${srcdir}:*/:/ |
26966 | s/:*@srcdir@:*/:/ |
26967 | s/^\([^=]*=[ ]*\):*/\1/ |
26968 | s/:*$// |
26969 | s/^[^=]*=[ ]*$// |
26970 | }' |
26971 | fi |
26972 | |
d9898ee8 |
26973 | cat >>$CONFIG_STATUS <<\_ACEOF |
dd184caf |
26974 | fi # test -n "$CONFIG_FILES" |
26975 | |
26976 | |
26977 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
26978 | do |
26979 | case $ac_tag in |
26980 | :[FHLC]) ac_mode=$ac_tag; continue;; |
26981 | esac |
26982 | case $ac_mode$ac_tag in |
26983 | :[FHL]*:*);; |
26984 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
26985 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
26986 | { (exit 1); exit 1; }; };; |
26987 | :[FH]-) ac_tag=-:-;; |
26988 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
26989 | esac |
26990 | ac_save_IFS=$IFS |
26991 | IFS=: |
26992 | set x $ac_tag |
26993 | IFS=$ac_save_IFS |
26994 | shift |
26995 | ac_file=$1 |
26996 | shift |
26997 | |
26998 | case $ac_mode in |
26999 | :L) ac_source=$1;; |
27000 | :[FH]) |
27001 | ac_file_inputs= |
27002 | for ac_f |
27003 | do |
27004 | case $ac_f in |
27005 | -) ac_f="$tmp/stdin";; |
27006 | *) # Look for the file first in the build tree, then in the source tree |
27007 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
27008 | # because $ac_f cannot contain `:'. |
27009 | test -f "$ac_f" || |
27010 | case $ac_f in |
27011 | [\\/$]*) false;; |
27012 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
27013 | esac || |
27014 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
27015 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
27016 | { (exit 1); exit 1; }; };; |
27017 | esac |
27018 | ac_file_inputs="$ac_file_inputs $ac_f" |
27019 | done |
27020 | |
27021 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
27022 | # use $as_me), people would be surprised to read: |
27023 | # /* config.h. Generated by config.status. */ |
27024 | configure_input="Generated from "`IFS=: |
27025 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
27026 | if test x"$ac_file" != x-; then |
27027 | configure_input="$ac_file. $configure_input" |
27028 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
27029 | echo "$as_me: creating $ac_file" >&6;} |
27030 | fi |
27031 | |
27032 | case $ac_tag in |
27033 | *:-:* | *:-) cat >"$tmp/stdin";; |
27034 | esac |
27035 | ;; |
d9898ee8 |
27036 | esac |
27037 | |
dd184caf |
27038 | ac_dir=`$as_dirname -- "$ac_file" || |
d9898ee8 |
27039 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
27040 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
27041 | X"$ac_file" : 'X\(//\)$' \| \ |
dd184caf |
27042 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
27043 | echo X"$ac_file" | |
dd184caf |
27044 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
27045 | s//\1/ |
27046 | q |
27047 | } |
27048 | /^X\(\/\/\)[^/].*/{ |
27049 | s//\1/ |
27050 | q |
27051 | } |
27052 | /^X\(\/\/\)$/{ |
27053 | s//\1/ |
27054 | q |
27055 | } |
27056 | /^X\(\/\).*/{ |
27057 | s//\1/ |
27058 | q |
27059 | } |
27060 | s/.*/./; q'` |
27061 | { as_dir="$ac_dir" |
27062 | case $as_dir in #( |
27063 | -*) as_dir=./$as_dir;; |
27064 | esac |
27065 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
27066 | as_dirs= |
dd184caf |
27067 | while :; do |
27068 | case $as_dir in #( |
27069 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
27070 | *) as_qdir=$as_dir;; |
27071 | esac |
27072 | as_dirs="'$as_qdir' $as_dirs" |
27073 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
27074 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
27075 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
27076 | X"$as_dir" : 'X\(//\)$' \| \ |
dd184caf |
27077 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
27078 | echo X"$as_dir" | |
dd184caf |
27079 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
27080 | s//\1/ |
27081 | q |
27082 | } |
27083 | /^X\(\/\/\)[^/].*/{ |
27084 | s//\1/ |
27085 | q |
27086 | } |
27087 | /^X\(\/\/\)$/{ |
27088 | s//\1/ |
27089 | q |
27090 | } |
27091 | /^X\(\/\).*/{ |
27092 | s//\1/ |
27093 | q |
27094 | } |
27095 | s/.*/./; q'` |
27096 | test -d "$as_dir" && break |
d9898ee8 |
27097 | done |
dd184caf |
27098 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
27099 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
27100 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
27101 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
27102 | ac_builddir=. |
27103 | |
dd184caf |
27104 | case "$ac_dir" in |
27105 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
27106 | *) |
d9898ee8 |
27107 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
dd184caf |
27108 | # A ".." for each directory in $ac_dir_suffix. |
27109 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
27110 | case $ac_top_builddir_sub in |
27111 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
27112 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
27113 | esac ;; |
27114 | esac |
27115 | ac_abs_top_builddir=$ac_pwd |
27116 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
27117 | # for backward compatibility: |
27118 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
27119 | |
27120 | case $srcdir in |
dd184caf |
27121 | .) # We are building in place. |
d9898ee8 |
27122 | ac_srcdir=. |
dd184caf |
27123 | ac_top_srcdir=$ac_top_builddir_sub |
27124 | ac_abs_top_srcdir=$ac_pwd ;; |
27125 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
27126 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf |
27127 | ac_top_srcdir=$srcdir |
27128 | ac_abs_top_srcdir=$srcdir ;; |
27129 | *) # Relative name. |
27130 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
27131 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
27132 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
27133 | esac |
dd184caf |
27134 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
d9898ee8 |
27135 | |
d9898ee8 |
27136 | |
dd184caf |
27137 | case $ac_mode in |
27138 | :F) |
27139 | # |
27140 | # CONFIG_FILE |
27141 | # |
d9898ee8 |
27142 | |
27143 | case $INSTALL in |
27144 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
dd184caf |
27145 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
d9898ee8 |
27146 | esac |
dd184caf |
27147 | ac_MKDIR_P=$MKDIR_P |
27148 | case $MKDIR_P in |
27149 | [\\/$]* | ?:[\\/]* ) ;; |
27150 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
27151 | esac |
27152 | _ACEOF |
d9898ee8 |
27153 | |
dd184caf |
27154 | cat >>$CONFIG_STATUS <<\_ACEOF |
27155 | # If the template does not know about datarootdir, expand it. |
27156 | # FIXME: This hack should be removed a few years after 2.60. |
27157 | ac_datarootdir_hack=; ac_datarootdir_seen= |
27158 | |
27159 | case `sed -n '/datarootdir/ { |
27160 | p |
27161 | q |
27162 | } |
27163 | /@datadir@/p |
27164 | /@docdir@/p |
27165 | /@infodir@/p |
27166 | /@localedir@/p |
27167 | /@mandir@/p |
27168 | ' $ac_file_inputs` in |
27169 | *datarootdir*) ac_datarootdir_seen=yes;; |
27170 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
27171 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
27172 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
d9898ee8 |
27173 | _ACEOF |
dd184caf |
27174 | cat >>$CONFIG_STATUS <<_ACEOF |
27175 | ac_datarootdir_hack=' |
27176 | s&@datadir@&$datadir&g |
27177 | s&@docdir@&$docdir&g |
27178 | s&@infodir@&$infodir&g |
27179 | s&@localedir@&$localedir&g |
27180 | s&@mandir@&$mandir&g |
27181 | s&\\\${datarootdir}&$datarootdir&g' ;; |
27182 | esac |
27183 | _ACEOF |
27184 | |
27185 | # Neutralize VPATH when `$srcdir' = `.'. |
27186 | # Shell code in configure.ac might set extrasub. |
27187 | # FIXME: do we really want to maintain this feature? |
d9898ee8 |
27188 | cat >>$CONFIG_STATUS <<_ACEOF |
27189 | sed "$ac_vpsub |
27190 | $extrasub |
27191 | _ACEOF |
27192 | cat >>$CONFIG_STATUS <<\_ACEOF |
27193 | :t |
27194 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
dd184caf |
27195 | s&@configure_input@&$configure_input&;t t |
27196 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
27197 | s&@srcdir@&$ac_srcdir&;t t |
27198 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
27199 | s&@top_srcdir@&$ac_top_srcdir&;t t |
27200 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
27201 | s&@builddir@&$ac_builddir&;t t |
27202 | s&@abs_builddir@&$ac_abs_builddir&;t t |
27203 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
27204 | s&@INSTALL@&$ac_INSTALL&;t t |
27205 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
27206 | $ac_datarootdir_hack |
27207 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
27208 | |
27209 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
27210 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
27211 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
27212 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
27213 | which seems to be undefined. Please make sure it is defined." >&5 |
27214 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
27215 | which seems to be undefined. Please make sure it is defined." >&2;} |
27216 | |
27217 | rm -f "$tmp/stdin" |
d9898ee8 |
27218 | case $ac_file in |
dd184caf |
27219 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
27220 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
d9898ee8 |
27221 | esac |
dd184caf |
27222 | ;; |
27223 | :H) |
27224 | # |
27225 | # CONFIG_HEADER |
27226 | # |
27227 | _ACEOF |
d9898ee8 |
27228 | |
dd184caf |
27229 | # Transform confdefs.h into a sed script `conftest.defines', that |
27230 | # substitutes the proper values into config.h.in to produce config.h. |
27231 | rm -f conftest.defines conftest.tail |
27232 | # First, append a space to every undef/define line, to ease matching. |
27233 | echo 's/$/ /' >conftest.defines |
27234 | # Then, protect against being on the right side of a sed subst, or in |
27235 | # an unquoted here document, in config.status. If some macros were |
27236 | # called several times there might be several #defines for the same |
27237 | # symbol, which is useless. But do not sort them, since the last |
27238 | # AC_DEFINE must be honored. |
27239 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
27240 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
27241 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
27242 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
27243 | # just an empty string. |
27244 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
27245 | ac_dB='\\)[ (].*,\\1define\\2' |
27246 | ac_dC=' ' |
27247 | ac_dD=' ,' |
27248 | |
27249 | uniq confdefs.h | |
27250 | sed -n ' |
27251 | t rset |
27252 | :rset |
27253 | s/^[ ]*#[ ]*define[ ][ ]*// |
27254 | t ok |
27255 | d |
27256 | :ok |
27257 | s/[\\&,]/\\&/g |
27258 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
27259 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
27260 | ' >>conftest.defines |
27261 | |
27262 | # Remove the space that was appended to ease matching. |
27263 | # Then replace #undef with comments. This is necessary, for |
d9898ee8 |
27264 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
27265 | # on some systems where configure will not decide to define it. |
dd184caf |
27266 | # (The regexp can be short, since the line contains either #define or #undef.) |
27267 | echo 's/ $// |
27268 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
27269 | |
27270 | # Break up conftest.defines: |
27271 | ac_max_sed_lines=50 |
27272 | |
27273 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
27274 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
27275 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
27276 | # et cetera. |
27277 | ac_in='$ac_file_inputs' |
27278 | ac_out='"$tmp/out1"' |
27279 | ac_nxt='"$tmp/out2"' |
27280 | |
27281 | while : |
d9898ee8 |
27282 | do |
dd184caf |
27283 | # Write a here document: |
27284 | cat >>$CONFIG_STATUS <<_ACEOF |
27285 | # First, check the format of the line: |
27286 | cat >"\$tmp/defines.sed" <<\\CEOF |
27287 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
27288 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
27289 | b |
27290 | :def |
27291 | _ACEOF |
27292 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
d9898ee8 |
27293 | echo 'CEOF |
dd184caf |
27294 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
27295 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
27296 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
27297 | grep . conftest.tail >/dev/null || break |
d9898ee8 |
27298 | rm -f conftest.defines |
27299 | mv conftest.tail conftest.defines |
27300 | done |
dd184caf |
27301 | rm -f conftest.defines conftest.tail |
d9898ee8 |
27302 | |
dd184caf |
27303 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
d9898ee8 |
27304 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
27305 | if test x"$ac_file" != x-; then |
dd184caf |
27306 | echo "/* $configure_input */" >"$tmp/config.h" |
27307 | cat "$ac_result" >>"$tmp/config.h" |
27308 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
d9898ee8 |
27309 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
27310 | echo "$as_me: $ac_file is unchanged" >&6;} |
27311 | else |
d9898ee8 |
27312 | rm -f $ac_file |
dd184caf |
27313 | mv "$tmp/config.h" $ac_file |
d9898ee8 |
27314 | fi |
27315 | else |
dd184caf |
27316 | echo "/* $configure_input */" |
27317 | cat "$ac_result" |
d9898ee8 |
27318 | fi |
dd184caf |
27319 | rm -f "$tmp/out12" |
d9898ee8 |
27320 | # Compute $ac_file's index in $config_headers. |
27321 | _am_stamp_count=1 |
27322 | for _am_header in $config_headers :; do |
27323 | case $_am_header in |
27324 | $ac_file | $ac_file:* ) |
27325 | break ;; |
27326 | * ) |
27327 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
27328 | esac |
27329 | done |
dd184caf |
27330 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
d9898ee8 |
27331 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
27332 | X$ac_file : 'X\(//\)[^/]' \| \ |
27333 | X$ac_file : 'X\(//\)$' \| \ |
dd184caf |
27334 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
27335 | echo X$ac_file | |
dd184caf |
27336 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
27337 | s//\1/ |
27338 | q |
27339 | } |
27340 | /^X\(\/\/\)[^/].*/{ |
27341 | s//\1/ |
27342 | q |
27343 | } |
27344 | /^X\(\/\/\)$/{ |
27345 | s//\1/ |
27346 | q |
27347 | } |
27348 | /^X\(\/\).*/{ |
27349 | s//\1/ |
27350 | q |
27351 | } |
27352 | s/.*/./; q'`/stamp-h$_am_stamp_count |
27353 | ;; |
d9898ee8 |
27354 | |
dd184caf |
27355 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
27356 | echo "$as_me: executing $ac_file commands" >&6;} |
27357 | ;; |
27358 | esac |
d9898ee8 |
27359 | |
27360 | |
dd184caf |
27361 | case $ac_file$ac_mode in |
27362 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
d9898ee8 |
27363 | # Strip MF so we end up with the name of the file. |
27364 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
27365 | # Check whether this is an Automake generated Makefile or not. |
27366 | # We used to match only the files named `Makefile.in', but |
27367 | # some people rename them; so instead we look at the file content. |
27368 | # Grep'ing the first line is not enough: some people post-process |
27369 | # each Makefile.in and add a new line on top of each file to say so. |
dd184caf |
27370 | # Grep'ing the whole file is not good either: AIX grep has a line |
27371 | # limit of 2048, but all sed's we know have understand at least 4000. |
27372 | if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then |
27373 | dirpart=`$as_dirname -- "$mf" || |
d9898ee8 |
27374 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
27375 | X"$mf" : 'X\(//\)[^/]' \| \ |
27376 | X"$mf" : 'X\(//\)$' \| \ |
dd184caf |
27377 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
27378 | echo X"$mf" | |
dd184caf |
27379 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
27380 | s//\1/ |
27381 | q |
27382 | } |
27383 | /^X\(\/\/\)[^/].*/{ |
27384 | s//\1/ |
27385 | q |
27386 | } |
27387 | /^X\(\/\/\)$/{ |
27388 | s//\1/ |
27389 | q |
27390 | } |
27391 | /^X\(\/\).*/{ |
27392 | s//\1/ |
27393 | q |
27394 | } |
27395 | s/.*/./; q'` |
d9898ee8 |
27396 | else |
27397 | continue |
27398 | fi |
27399 | # Extract the definition of DEPDIR, am__include, and am__quote |
27400 | # from the Makefile without running `make'. |
27401 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
27402 | test -z "$DEPDIR" && continue |
27403 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
27404 | test -z "am__include" && continue |
27405 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
27406 | # When using ansi2knr, U may be empty or an underscore; expand it |
27407 | U=`sed -n 's/^U = //p' < "$mf"` |
27408 | # Find all dependency output files, they are included files with |
27409 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
27410 | # simplest approach to changing $(DEPDIR) to its actual value in the |
27411 | # expansion. |
27412 | for file in `sed -n " |
27413 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
27414 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
27415 | # Make sure the directory exists. |
27416 | test -f "$dirpart/$file" && continue |
dd184caf |
27417 | fdir=`$as_dirname -- "$file" || |
d9898ee8 |
27418 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
27419 | X"$file" : 'X\(//\)[^/]' \| \ |
27420 | X"$file" : 'X\(//\)$' \| \ |
dd184caf |
27421 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
27422 | echo X"$file" | |
dd184caf |
27423 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
27424 | s//\1/ |
27425 | q |
27426 | } |
27427 | /^X\(\/\/\)[^/].*/{ |
27428 | s//\1/ |
27429 | q |
27430 | } |
27431 | /^X\(\/\/\)$/{ |
27432 | s//\1/ |
27433 | q |
27434 | } |
27435 | /^X\(\/\).*/{ |
27436 | s//\1/ |
27437 | q |
27438 | } |
27439 | s/.*/./; q'` |
27440 | { as_dir=$dirpart/$fdir |
27441 | case $as_dir in #( |
27442 | -*) as_dir=./$as_dir;; |
27443 | esac |
27444 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
27445 | as_dirs= |
dd184caf |
27446 | while :; do |
27447 | case $as_dir in #( |
27448 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
27449 | *) as_qdir=$as_dir;; |
27450 | esac |
27451 | as_dirs="'$as_qdir' $as_dirs" |
27452 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
27453 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
27454 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
27455 | X"$as_dir" : 'X\(//\)$' \| \ |
dd184caf |
27456 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
27457 | echo X"$as_dir" | |
dd184caf |
27458 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
27459 | s//\1/ |
27460 | q |
27461 | } |
27462 | /^X\(\/\/\)[^/].*/{ |
27463 | s//\1/ |
27464 | q |
27465 | } |
27466 | /^X\(\/\/\)$/{ |
27467 | s//\1/ |
27468 | q |
27469 | } |
27470 | /^X\(\/\).*/{ |
27471 | s//\1/ |
27472 | q |
27473 | } |
27474 | s/.*/./; q'` |
27475 | test -d "$as_dir" && break |
d9898ee8 |
27476 | done |
dd184caf |
27477 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
27478 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
27479 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
27480 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
27481 | # echo "creating $dirpart/$file" |
27482 | echo '# dummy' > "$dirpart/$file" |
27483 | done |
27484 | done |
27485 | ;; |
dd184caf |
27486 | |
d9898ee8 |
27487 | esac |
dd184caf |
27488 | done # for ac_tag |
d9898ee8 |
27489 | |
d9898ee8 |
27490 | |
27491 | { (exit 0); exit 0; } |
27492 | _ACEOF |
27493 | chmod +x $CONFIG_STATUS |
27494 | ac_clean_files=$ac_clean_files_save |
27495 | |
27496 | |
27497 | # configure is writing to config.log, and then calls config.status. |
27498 | # config.status does its own redirection, appending to config.log. |
27499 | # Unfortunately, on DOS this fails, as config.log is still kept open |
27500 | # by configure, so config.status won't be able to write to it; its |
27501 | # output is simply discarded. So we exec the FD to /dev/null, |
27502 | # effectively closing config.log, so it can be properly (re)opened and |
27503 | # appended to by config.status. When coming back to configure, we |
27504 | # need to make the FD available again. |
27505 | if test "$no_create" != yes; then |
27506 | ac_cs_success=: |
27507 | ac_config_status_args= |
27508 | test "$silent" = yes && |
27509 | ac_config_status_args="$ac_config_status_args --quiet" |
27510 | exec 5>/dev/null |
27511 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
27512 | exec 5>>config.log |
27513 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
27514 | # would make configure fail if this is the last instruction. |
27515 | $ac_cs_success || { (exit 1); exit 1; } |
27516 | fi |
27517 | |
27518 | # |
27519 | # CONFIG_SUBDIRS section. |
27520 | # |
27521 | if test "$no_recursion" != yes; then |
27522 | |
27523 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
27524 | ac_sub_configure_args= |
27525 | ac_prev= |
dd184caf |
27526 | eval "set x $ac_configure_args" |
27527 | shift |
27528 | for ac_arg |
27529 | do |
d9898ee8 |
27530 | if test -n "$ac_prev"; then |
27531 | ac_prev= |
27532 | continue |
27533 | fi |
27534 | case $ac_arg in |
27535 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
27536 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
27537 | ac_prev=cache_file ;; |
27538 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
27539 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
27540 | | --c=*) |
27541 | ;; |
27542 | --config-cache | -C) |
27543 | ;; |
27544 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
27545 | ac_prev=srcdir ;; |
27546 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
27547 | ;; |
27548 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
27549 | ac_prev=prefix ;; |
27550 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
27551 | ;; |
dd184caf |
27552 | *) |
27553 | case $ac_arg in |
27554 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
27555 | esac |
27556 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
d9898ee8 |
27557 | esac |
27558 | done |
27559 | |
27560 | # Always prepend --prefix to ensure using the same prefix |
27561 | # in subdir configurations. |
dd184caf |
27562 | ac_arg="--prefix=$prefix" |
27563 | case $ac_arg in |
27564 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
27565 | esac |
27566 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" |
27567 | |
27568 | # Pass --silent |
27569 | if test "$silent" = yes; then |
27570 | ac_sub_configure_args="--silent $ac_sub_configure_args" |
27571 | fi |
d9898ee8 |
27572 | |
27573 | ac_popdir=`pwd` |
27574 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
27575 | |
27576 | # Do not complain, so a configure script can configure whichever |
27577 | # parts of a large source tree are present. |
dd184caf |
27578 | test -d "$srcdir/$ac_dir" || continue |
27579 | |
27580 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
27581 | echo "$as_me:$LINENO: $ac_msg" >&5 |
27582 | echo "$ac_msg" >&6 |
27583 | { as_dir="$ac_dir" |
27584 | case $as_dir in #( |
27585 | -*) as_dir=./$as_dir;; |
27586 | esac |
27587 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
27588 | as_dirs= |
dd184caf |
27589 | while :; do |
27590 | case $as_dir in #( |
27591 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
27592 | *) as_qdir=$as_dir;; |
27593 | esac |
27594 | as_dirs="'$as_qdir' $as_dirs" |
27595 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
27596 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
27597 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
27598 | X"$as_dir" : 'X\(//\)$' \| \ |
dd184caf |
27599 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
27600 | echo X"$as_dir" | |
dd184caf |
27601 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
27602 | s//\1/ |
27603 | q |
27604 | } |
27605 | /^X\(\/\/\)[^/].*/{ |
27606 | s//\1/ |
27607 | q |
27608 | } |
27609 | /^X\(\/\/\)$/{ |
27610 | s//\1/ |
27611 | q |
27612 | } |
27613 | /^X\(\/\).*/{ |
27614 | s//\1/ |
27615 | q |
27616 | } |
27617 | s/.*/./; q'` |
27618 | test -d "$as_dir" && break |
d9898ee8 |
27619 | done |
dd184caf |
27620 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
27621 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
27622 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
27623 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
27624 | ac_builddir=. |
27625 | |
dd184caf |
27626 | case "$ac_dir" in |
27627 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
27628 | *) |
d9898ee8 |
27629 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
dd184caf |
27630 | # A ".." for each directory in $ac_dir_suffix. |
27631 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
27632 | case $ac_top_builddir_sub in |
27633 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
27634 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
27635 | esac ;; |
27636 | esac |
27637 | ac_abs_top_builddir=$ac_pwd |
27638 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
27639 | # for backward compatibility: |
27640 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
27641 | |
27642 | case $srcdir in |
dd184caf |
27643 | .) # We are building in place. |
d9898ee8 |
27644 | ac_srcdir=. |
dd184caf |
27645 | ac_top_srcdir=$ac_top_builddir_sub |
27646 | ac_abs_top_srcdir=$ac_pwd ;; |
27647 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
27648 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf |
27649 | ac_top_srcdir=$srcdir |
27650 | ac_abs_top_srcdir=$srcdir ;; |
27651 | *) # Relative name. |
27652 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
27653 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
27654 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
27655 | esac |
dd184caf |
27656 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
d9898ee8 |
27657 | |
27658 | |
dd184caf |
27659 | cd "$ac_dir" |
d9898ee8 |
27660 | |
27661 | # Check for guested configure; otherwise get Cygnus style configure. |
dd184caf |
27662 | if test -f "$ac_srcdir/configure.gnu"; then |
27663 | ac_sub_configure=$ac_srcdir/configure.gnu |
27664 | elif test -f "$ac_srcdir/configure"; then |
27665 | ac_sub_configure=$ac_srcdir/configure |
27666 | elif test -f "$ac_srcdir/configure.in"; then |
27667 | # This should be Cygnus configure. |
27668 | ac_sub_configure=$ac_aux_dir/configure |
d9898ee8 |
27669 | else |
27670 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
27671 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
27672 | ac_sub_configure= |
27673 | fi |
27674 | |
27675 | # The recursion is here. |
27676 | if test -n "$ac_sub_configure"; then |
27677 | # Make the cache file name correct relative to the subdirectory. |
27678 | case $cache_file in |
27679 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
dd184caf |
27680 | *) # Relative name. |
27681 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
d9898ee8 |
27682 | esac |
27683 | |
dd184caf |
27684 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
27685 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
d9898ee8 |
27686 | # The eval makes quoting arguments work. |
dd184caf |
27687 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
27688 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
d9898ee8 |
27689 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
27690 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
27691 | { (exit 1); exit 1; }; } |
27692 | fi |
27693 | |
dd184caf |
27694 | cd "$ac_popdir" |
d9898ee8 |
27695 | done |
27696 | fi |
27697 | |
27698 | |