Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for mcrypt 2.6.8.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell [email protected] about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
572 :
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<_LT_EOF
582 $*
583 _LT_EOF
584 exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598 then
599 break
600 fi
601 done
602 fi
603
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
607 :
608 else
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
612 #
613 # So, first we look for a working echo in the user's PATH.
614
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
617 IFS="$lt_save_ifs"
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
622 ECHO="$dir/echo"
623 break
624 fi
625 done
626 IFS="$lt_save_ifs"
627
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
634 ECHO='print -r'
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
641 export CONFIG_SHELL
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643 else
644 # Try using printf.
645 ECHO='printf %s\n'
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 # Cool, printf works
650 :
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656 export CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
658 export SHELL
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 else
666 # maybe with a smaller string...
667 prev=:
668
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671 then
672 break
673 fi
674 prev="$cmd"
675 done
676
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681 else
682 # Oops. We lost completely, so just stick with echo.
683 ECHO=echo
684 fi
685 fi
686 fi
687 fi
688 fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME='mcrypt'
723 PACKAGE_TARNAME='mcrypt'
724 PACKAGE_VERSION='2.6.8'
725 PACKAGE_STRING='mcrypt 2.6.8'
726 PACKAGE_BUGREPORT=''
727
728 # Factoring default headers for most tests.
729 ac_includes_default="\
730 #include <stdio.h>
731 #ifdef HAVE_SYS_TYPES_H
732 # include <sys/types.h>
733 #endif
734 #ifdef HAVE_SYS_STAT_H
735 # include <sys/stat.h>
736 #endif
737 #ifdef STDC_HEADERS
738 # include <stdlib.h>
739 # include <stddef.h>
740 #else
741 # ifdef HAVE_STDLIB_H
742 # include <stdlib.h>
743 # endif
744 #endif
745 #ifdef HAVE_STRING_H
746 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
747 # include <memory.h>
748 # endif
749 # include <string.h>
750 #endif
751 #ifdef HAVE_STRINGS_H
752 # include <strings.h>
753 #endif
754 #ifdef HAVE_INTTYPES_H
755 # include <inttypes.h>
756 #endif
757 #ifdef HAVE_STDINT_H
758 # include <stdint.h>
759 #endif
760 #ifdef HAVE_UNISTD_H
761 # include <unistd.h>
762 #endif"
763
764 gt_needs=
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 build
803 build_cpu
804 build_vendor
805 build_os
806 host
807 host_cpu
808 host_vendor
809 host_os
810 target
811 target_cpu
812 target_vendor
813 target_os
814 INSTALL_PROGRAM
815 INSTALL_SCRIPT
816 INSTALL_DATA
817 am__isrc
818 CYGPATH_W
819 PACKAGE
820 VERSION
821 ACLOCAL
822 AUTOCONF
823 AUTOMAKE
824 AUTOHEADER
825 MAKEINFO
826 install_sh
827 STRIP
828 INSTALL_STRIP_PROGRAM
829 mkdir_p
830 AWK
831 SET_MAKE
832 am__leading_dot
833 AMTAR
834 am__tar
835 am__untar
836 LIBTOOL
837 CC
838 CFLAGS
839 LDFLAGS
840 CPPFLAGS
841 ac_ct_CC
842 EXEEXT
843 OBJEXT
844 DEPDIR
845 am__include
846 am__quote
847 AMDEP_TRUE
848 AMDEP_FALSE
849 AMDEPBACKSLASH
850 CCDEPMODE
851 am__fastdepCC_TRUE
852 am__fastdepCC_FALSE
853 SED
854 GREP
855 EGREP
856 FGREP
857 LD
858 DUMPBIN
859 ac_ct_DUMPBIN
860 NM
861 LN_S
862 AR
863 RANLIB
864 lt_ECHO
865 DSYMUTIL
866 NMEDIT
867 LIPO
868 OTOOL
869 OTOOL64
870 CPP
871 LIBMCRYPT_CONFIG
872 LIBMCRYPT_CFLAGS
873 LIBMCRYPT_LIBS
874 USE_NLS
875 MSGFMT
876 GMSGFMT
877 MSGFMT_015
878 GMSGFMT_015
879 XGETTEXT
880 XGETTEXT_015
881 MSGMERGE
882 INTL_MACOSX_LIBS
883 LIBICONV
884 LTLIBICONV
885 INTLLIBS
886 LIBINTL
887 LTLIBINTL
888 POSUB
889 RM
890 GZIP
891 BZIP2
892 LIBOBJS
893 LTLIBOBJS'
894 ac_subst_files=''
895 ac_precious_vars='build_alias
896 host_alias
897 target_alias
898 CC
899 CFLAGS
900 LDFLAGS
901 LIBS
902 CPPFLAGS
903 CPP'
904
905
906 # Initialize some variables set by options.
907 ac_init_help=
908 ac_init_version=false
909 # The variables have the same names as the options, with
910 # dashes changed to underlines.
911 cache_file=/dev/null
912 exec_prefix=NONE
913 no_create=
914 no_recursion=
915 prefix=NONE
916 program_prefix=NONE
917 program_suffix=NONE
918 program_transform_name=s,x,x,
919 silent=
920 site=
921 srcdir=
922 verbose=
923 x_includes=NONE
924 x_libraries=NONE
925
926 # Installation directory options.
927 # These are left unexpanded so users can "make install exec_prefix=/foo"
928 # and all the variables that are supposed to be based on exec_prefix
929 # by default will actually change.
930 # Use braces instead of parens because sh, perl, etc. also accept them.
931 # (The list follows the same order as the GNU Coding Standards.)
932 bindir='${exec_prefix}/bin'
933 sbindir='${exec_prefix}/sbin'
934 libexecdir='${exec_prefix}/libexec'
935 datarootdir='${prefix}/share'
936 datadir='${datarootdir}'
937 sysconfdir='${prefix}/etc'
938 sharedstatedir='${prefix}/com'
939 localstatedir='${prefix}/var'
940 includedir='${prefix}/include'
941 oldincludedir='/usr/include'
942 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
943 infodir='${datarootdir}/info'
944 htmldir='${docdir}'
945 dvidir='${docdir}'
946 pdfdir='${docdir}'
947 psdir='${docdir}'
948 libdir='${exec_prefix}/lib'
949 localedir='${datarootdir}/locale'
950 mandir='${datarootdir}/man'
951
952 ac_prev=
953 ac_dashdash=
954 for ac_option
955 do
956 # If the previous option needs an argument, assign it.
957 if test -n "$ac_prev"; then
958 eval $ac_prev=\$ac_option
959 ac_prev=
960 continue
961 fi
962
963 case $ac_option in
964 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 *) ac_optarg=yes ;;
966 esac
967
968 # Accept the important Cygnus configure options, so we can diagnose typos.
969
970 case $ac_dashdash$ac_option in
971 --)
972 ac_dashdash=yes ;;
973
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 ac_prev=bindir ;;
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977 bindir=$ac_optarg ;;
978
979 -build | --build | --buil | --bui | --bu)
980 ac_prev=build_alias ;;
981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982 build_alias=$ac_optarg ;;
983
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989 cache_file=$ac_optarg ;;
990
991 --config-cache | -C)
992 cache_file=config.cache ;;
993
994 -datadir | --datadir | --datadi | --datad)
995 ac_prev=datadir ;;
996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
997 datadir=$ac_optarg ;;
998
999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1005
1006 -disable-* | --disable-*)
1007 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1010 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1011 { (exit 1); exit 1; }; }
1012 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1013 eval enable_$ac_feature=no ;;
1014
1015 -docdir | --docdir | --docdi | --doc | --do)
1016 ac_prev=docdir ;;
1017 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1018 docdir=$ac_optarg ;;
1019
1020 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 ac_prev=dvidir ;;
1022 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1023 dvidir=$ac_optarg ;;
1024
1025 -enable-* | --enable-*)
1026 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1029 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1030 { (exit 1); exit 1; }; }
1031 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1032 eval enable_$ac_feature=\$ac_optarg ;;
1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1053
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1058
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1088
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1162
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1182
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1193
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1198
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1203
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1210
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1215
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1218
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1221
1222 -with-* | --with-*)
1223 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 { echo "$as_me: error: invalid package name: $ac_package" >&2
1227 { (exit 1); exit 1; }; }
1228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229 eval with_$ac_package=\$ac_optarg ;;
1230
1231 -without-* | --without-*)
1232 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 { echo "$as_me: error: invalid package name: $ac_package" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1238 eval with_$ac_package=no ;;
1239
1240 --x)
1241 # Obsolete; use --with-x.
1242 with_x=yes ;;
1243
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249 x_includes=$ac_optarg ;;
1250
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256 x_libraries=$ac_optarg ;;
1257
1258 -*) { echo "$as_me: error: unrecognized option: $ac_option
1259 Try \`$0 --help' for more information." >&2
1260 { (exit 1); exit 1; }; }
1261 ;;
1262
1263 *=*)
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1267 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1268 { (exit 1); exit 1; }; }
1269 eval $ac_envvar=\$ac_optarg
1270 export $ac_envvar ;;
1271
1272 *)
1273 # FIXME: should be removed in autoconf 3.0.
1274 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1278 ;;
1279
1280 esac
1281 done
1282
1283 if test -n "$ac_prev"; then
1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285 { echo "$as_me: error: missing argument to $ac_option" >&2
1286 { (exit 1); exit 1; }; }
1287 fi
1288
1289 # Be sure to have absolute directory names.
1290 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
1294 do
1295 eval ac_val=\$$ac_var
1296 case $ac_val in
1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 esac
1300 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1301 { (exit 1); exit 1; }; }
1302 done
1303
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1307 build=$build_alias
1308 host=$host_alias
1309 target=$target_alias
1310
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1316 If a cross compiler is detected then cross compile mode will be used." >&2
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320 fi
1321
1322 ac_tool_prefix=
1323 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325 test "$silent" = yes && exec 6>/dev/null
1326
1327
1328 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di=`ls -di .` &&
1330 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 { echo "$as_me: error: Working directory cannot be determined" >&2
1332 { (exit 1); exit 1; }; }
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 { echo "$as_me: error: pwd does not report name of working directory" >&2
1335 { (exit 1); exit 1; }; }
1336
1337
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$0" ||
1343 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$0" : 'X\(//\)[^/]' \| \
1345 X"$0" : 'X\(//\)$' \| \
1346 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1347 echo X"$0" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)[^/].*/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\).*/{
1361 s//\1/
1362 q
1363 }
1364 s/.*/./; q'`
1365 srcdir=$ac_confdir
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 srcdir=..
1368 fi
1369 else
1370 ac_srcdir_defaulted=no
1371 fi
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1375 { (exit 1); exit 1; }; }
1376 fi
1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1380 { (exit 1); exit 1; }; }
1381 pwd)`
1382 # When building in place, set srcdir=.
1383 if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 srcdir=.
1385 fi
1386 # Remove unnecessary trailing slashes from srcdir.
1387 # Double slashes in file names in object file debugging info
1388 # mess up M-x gdb in Emacs.
1389 case $srcdir in
1390 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391 esac
1392 for ac_var in $ac_precious_vars; do
1393 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_env_${ac_var}_value=\$${ac_var}
1395 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397 done
1398
1399 #
1400 # Report the --help message.
1401 #
1402 if test "$ac_init_help" = "long"; then
1403 # Omit some internal or obsolete options to make the list less imposing.
1404 # This message is too long to be a string in the A/UX 3.1 sh.
1405 cat <<_ACEOF
1406 \`configure' configures mcrypt 2.6.8 to adapt to many kinds of systems.
1407
1408 Usage: $0 [OPTION]... [VAR=VALUE]...
1409
1410 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411 VAR=VALUE. See below for descriptions of some of the useful variables.
1412
1413 Defaults for the options are specified in brackets.
1414
1415 Configuration:
1416 -h, --help display this help and exit
1417 --help=short display options specific to this package
1418 --help=recursive display the short help of all the included packages
1419 -V, --version display version information and exit
1420 -q, --quiet, --silent do not print \`checking...' messages
1421 --cache-file=FILE cache test results in FILE [disabled]
1422 -C, --config-cache alias for \`--cache-file=config.cache'
1423 -n, --no-create do not create output files
1424 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1425
1426 Installation directories:
1427 --prefix=PREFIX install architecture-independent files in PREFIX
1428 [$ac_default_prefix]
1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1430 [PREFIX]
1431
1432 By default, \`make install' will install all the files in
1433 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1434 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435 for instance \`--prefix=\$HOME'.
1436
1437 For better control, use the options below.
1438
1439 Fine tuning of the installation directories:
1440 --bindir=DIR user executables [EPREFIX/bin]
1441 --sbindir=DIR system admin executables [EPREFIX/sbin]
1442 --libexecdir=DIR program executables [EPREFIX/libexec]
1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1446 --libdir=DIR object code libraries [EPREFIX/lib]
1447 --includedir=DIR C header files [PREFIX/include]
1448 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451 --infodir=DIR info documentation [DATAROOTDIR/info]
1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453 --mandir=DIR man documentation [DATAROOTDIR/man]
1454 --docdir=DIR documentation root [DATAROOTDIR/doc/mcrypt]
1455 --htmldir=DIR html documentation [DOCDIR]
1456 --dvidir=DIR dvi documentation [DOCDIR]
1457 --pdfdir=DIR pdf documentation [DOCDIR]
1458 --psdir=DIR ps documentation [DOCDIR]
1459 _ACEOF
1460
1461 cat <<\_ACEOF
1462
1463 Program names:
1464 --program-prefix=PREFIX prepend PREFIX to installed program names
1465 --program-suffix=SUFFIX append SUFFIX to installed program names
1466 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1467
1468 System types:
1469 --build=BUILD configure for building on BUILD [guessed]
1470 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1471 --target=TARGET configure for building compilers for TARGET [HOST]
1472 _ACEOF
1473 fi
1474
1475 if test -n "$ac_init_help"; then
1476 case $ac_init_help in
1477 short | recursive ) echo "Configuration of mcrypt 2.6.8:";;
1478 esac
1479 cat <<\_ACEOF
1480
1481 Optional Features:
1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-static[=PKGS] build static libraries [default=yes]
1486 --enable-fast-install[=PKGS]
1487 optimize for fast installation [default=yes]
1488 --disable-dependency-tracking speeds up one-time build
1489 --enable-dependency-tracking do not reject slow dependency extractors
1490 --disable-libtool-lock avoid locking (might break parallel builds)
1491 --disable-nls do not use Native Language Support
1492 --disable-rpath do not hardcode runtime library paths
1493 --disable-dev-random disable the use of dev random
1494 --enable-static-link link mcrypt statically (libmcrypt must also be a static library))
1495 --enable-maintainer-mode enable maintainer mode
1496 --disable-included-getpass disable-included-getpass
1497 --disable-largefile omit support for large files
1498
1499 Optional Packages:
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1502 --with-pic try to use only PIC/non-PIC objects [default=use
1503 both]
1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1505 --with-libmcrypt-prefix=PFX Prefix where libmcrypt is installed (optional)
1506 --with-gnu-ld assume the C compiler uses GNU ld default=no
1507 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1508 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1509 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1510 --without-libintl-prefix don't search for libintl in includedir and libdir
1511
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
1518 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1520 CPP C preprocessor
1521
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1524
1525 _ACEOF
1526 ac_status=$?
1527 fi
1528
1529 if test "$ac_init_help" = "recursive"; then
1530 # If there are subdirs, report their specific --help.
1531 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532 test -d "$ac_dir" || continue
1533 ac_builddir=.
1534
1535 case "$ac_dir" in
1536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *)
1538 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1539 # A ".." for each directory in $ac_dir_suffix.
1540 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1541 case $ac_top_builddir_sub in
1542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544 esac ;;
1545 esac
1546 ac_abs_top_builddir=$ac_pwd
1547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1548 # for backward compatibility:
1549 ac_top_builddir=$ac_top_build_prefix
1550
1551 case $srcdir in
1552 .) # We are building in place.
1553 ac_srcdir=.
1554 ac_top_srcdir=$ac_top_builddir_sub
1555 ac_abs_top_srcdir=$ac_pwd ;;
1556 [\\/]* | ?:[\\/]* ) # Absolute name.
1557 ac_srcdir=$srcdir$ac_dir_suffix;
1558 ac_top_srcdir=$srcdir
1559 ac_abs_top_srcdir=$srcdir ;;
1560 *) # Relative name.
1561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1562 ac_top_srcdir=$ac_top_build_prefix$srcdir
1563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564 esac
1565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1566
1567 cd "$ac_dir" || { ac_status=$?; continue; }
1568 # Check for guested configure.
1569 if test -f "$ac_srcdir/configure.gnu"; then
1570 echo &&
1571 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1572 elif test -f "$ac_srcdir/configure"; then
1573 echo &&
1574 $SHELL "$ac_srcdir/configure" --help=recursive
1575 else
1576 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1577 fi || ac_status=$?
1578 cd "$ac_pwd" || { ac_status=$?; break; }
1579 done
1580 fi
1581
1582 test -n "$ac_init_help" && exit $ac_status
1583 if $ac_init_version; then
1584 cat <<\_ACEOF
1585 mcrypt configure 2.6.8
1586 generated by GNU Autoconf 2.61
1587
1588 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1589 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1590 This configure script is free software; the Free Software Foundation
1591 gives unlimited permission to copy, distribute and modify it.
1592 _ACEOF
1593 exit
1594 fi
1595 cat >config.log <<_ACEOF
1596 This file contains any messages produced by compilers while
1597 running configure, to aid debugging if configure makes a mistake.
1598
1599 It was created by mcrypt $as_me 2.6.8, which was
1600 generated by GNU Autoconf 2.61. Invocation command line was
1601
1602 $ $0 $@
1603
1604 _ACEOF
1605 exec 5>>config.log
1606 {
1607 cat <<_ASUNAME
1608 ## --------- ##
1609 ## Platform. ##
1610 ## --------- ##
1611
1612 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1613 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1614 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1615 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1616 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1617
1618 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1619 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1620
1621 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1622 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1623 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1624 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1625 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1626 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1627 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1628
1629 _ASUNAME
1630
1631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 for as_dir in $PATH
1633 do
1634 IFS=$as_save_IFS
1635 test -z "$as_dir" && as_dir=.
1636 echo "PATH: $as_dir"
1637 done
1638 IFS=$as_save_IFS
1639
1640 } >&5
1641
1642 cat >&5 <<_ACEOF
1643
1644
1645 ## ----------- ##
1646 ## Core tests. ##
1647 ## ----------- ##
1648
1649 _ACEOF
1650
1651
1652 # Keep a trace of the command line.
1653 # Strip out --no-create and --no-recursion so they do not pile up.
1654 # Strip out --silent because we don't want to record it for future runs.
1655 # Also quote any args containing shell meta-characters.
1656 # Make two passes to allow for proper duplicate-argument suppression.
1657 ac_configure_args=
1658 ac_configure_args0=
1659 ac_configure_args1=
1660 ac_must_keep_next=false
1661 for ac_pass in 1 2
1662 do
1663 for ac_arg
1664 do
1665 case $ac_arg in
1666 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1667 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1668 | -silent | --silent | --silen | --sile | --sil)
1669 continue ;;
1670 *\'*)
1671 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1672 esac
1673 case $ac_pass in
1674 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1675 2)
1676 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1677 if test $ac_must_keep_next = true; then
1678 ac_must_keep_next=false # Got value, back to normal.
1679 else
1680 case $ac_arg in
1681 *=* | --config-cache | -C | -disable-* | --disable-* \
1682 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1683 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1684 | -with-* | --with-* | -without-* | --without-* | --x)
1685 case "$ac_configure_args0 " in
1686 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1687 esac
1688 ;;
1689 -* ) ac_must_keep_next=true ;;
1690 esac
1691 fi
1692 ac_configure_args="$ac_configure_args '$ac_arg'"
1693 ;;
1694 esac
1695 done
1696 done
1697 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1698 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1699
1700 # When interrupted or exit'd, cleanup temporary files, and complete
1701 # config.log. We remove comments because anyway the quotes in there
1702 # would cause problems or look ugly.
1703 # WARNING: Use '\'' to represent an apostrophe within the trap.
1704 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1705 trap 'exit_status=$?
1706 # Save into config.log some information that might help in debugging.
1707 {
1708 echo
1709
1710 cat <<\_ASBOX
1711 ## ---------------- ##
1712 ## Cache variables. ##
1713 ## ---------------- ##
1714 _ASBOX
1715 echo
1716 # The following way of writing the cache mishandles newlines in values,
1717 (
1718 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1719 eval ac_val=\$$ac_var
1720 case $ac_val in #(
1721 *${as_nl}*)
1722 case $ac_var in #(
1723 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1724 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1725 esac
1726 case $ac_var in #(
1727 _ | IFS | as_nl) ;; #(
1728 *) $as_unset $ac_var ;;
1729 esac ;;
1730 esac
1731 done
1732 (set) 2>&1 |
1733 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1734 *${as_nl}ac_space=\ *)
1735 sed -n \
1736 "s/'\''/'\''\\\\'\'''\''/g;
1737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1738 ;; #(
1739 *)
1740 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1741 ;;
1742 esac |
1743 sort
1744 )
1745 echo
1746
1747 cat <<\_ASBOX
1748 ## ----------------- ##
1749 ## Output variables. ##
1750 ## ----------------- ##
1751 _ASBOX
1752 echo
1753 for ac_var in $ac_subst_vars
1754 do
1755 eval ac_val=\$$ac_var
1756 case $ac_val in
1757 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1758 esac
1759 echo "$ac_var='\''$ac_val'\''"
1760 done | sort
1761 echo
1762
1763 if test -n "$ac_subst_files"; then
1764 cat <<\_ASBOX
1765 ## ------------------- ##
1766 ## File substitutions. ##
1767 ## ------------------- ##
1768 _ASBOX
1769 echo
1770 for ac_var in $ac_subst_files
1771 do
1772 eval ac_val=\$$ac_var
1773 case $ac_val in
1774 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1775 esac
1776 echo "$ac_var='\''$ac_val'\''"
1777 done | sort
1778 echo
1779 fi
1780
1781 if test -s confdefs.h; then
1782 cat <<\_ASBOX
1783 ## ----------- ##
1784 ## confdefs.h. ##
1785 ## ----------- ##
1786 _ASBOX
1787 echo
1788 cat confdefs.h
1789 echo
1790 fi
1791 test "$ac_signal" != 0 &&
1792 echo "$as_me: caught signal $ac_signal"
1793 echo "$as_me: exit $exit_status"
1794 } >&5
1795 rm -f core *.core core.conftest.* &&
1796 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1797 exit $exit_status
1798 ' 0
1799 for ac_signal in 1 2 13 15; do
1800 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1801 done
1802 ac_signal=0
1803
1804 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1805 rm -f -r conftest* confdefs.h
1806
1807 # Predefined preprocessor variables.
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_NAME "$PACKAGE_NAME"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1816 _ACEOF
1817
1818
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1821 _ACEOF
1822
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_STRING "$PACKAGE_STRING"
1826 _ACEOF
1827
1828
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1831 _ACEOF
1832
1833
1834 # Let the site file select an alternate cache file if it wants to.
1835 # Prefer explicitly selected file to automatically selected ones.
1836 if test -n "$CONFIG_SITE"; then
1837 set x "$CONFIG_SITE"
1838 elif test "x$prefix" != xNONE; then
1839 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1840 else
1841 set x "$ac_default_prefix/share/config.site" \
1842 "$ac_default_prefix/etc/config.site"
1843 fi
1844 shift
1845 for ac_site_file
1846 do
1847 if test -r "$ac_site_file"; then
1848 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1849 echo "$as_me: loading site script $ac_site_file" >&6;}
1850 sed 's/^/| /' "$ac_site_file" >&5
1851 . "$ac_site_file"
1852 fi
1853 done
1854
1855 if test -r "$cache_file"; then
1856 # Some versions of bash will fail to source /dev/null (special
1857 # files actually), so we avoid doing that.
1858 if test -f "$cache_file"; then
1859 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1860 echo "$as_me: loading cache $cache_file" >&6;}
1861 case $cache_file in
1862 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1863 *) . "./$cache_file";;
1864 esac
1865 fi
1866 else
1867 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1868 echo "$as_me: creating cache $cache_file" >&6;}
1869 >$cache_file
1870 fi
1871
1872 gt_needs="$gt_needs "
1873 # Check that the precious variables saved in the cache have kept the same
1874 # value.
1875 ac_cache_corrupted=false
1876 for ac_var in $ac_precious_vars; do
1877 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1878 eval ac_new_set=\$ac_env_${ac_var}_set
1879 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1880 eval ac_new_val=\$ac_env_${ac_var}_value
1881 case $ac_old_set,$ac_new_set in
1882 set,)
1883 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1885 ac_cache_corrupted=: ;;
1886 ,set)
1887 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1888 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1889 ac_cache_corrupted=: ;;
1890 ,);;
1891 *)
1892 if test "x$ac_old_val" != "x$ac_new_val"; then
1893 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1896 echo "$as_me: former value: $ac_old_val" >&2;}
1897 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1898 echo "$as_me: current value: $ac_new_val" >&2;}
1899 ac_cache_corrupted=:
1900 fi;;
1901 esac
1902 # Pass precious variables to config.status.
1903 if test "$ac_new_set" = set; then
1904 case $ac_new_val in
1905 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1906 *) ac_arg=$ac_var=$ac_new_val ;;
1907 esac
1908 case " $ac_configure_args " in
1909 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1910 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1911 esac
1912 fi
1913 done
1914 if $ac_cache_corrupted; then
1915 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1916 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1917 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1918 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1919 { (exit 1); exit 1; }; }
1920 fi
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946 ac_ext=c
1947 ac_cpp='$CPP $CPPFLAGS'
1948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951
1952
1953
1954 ac_aux_dir=
1955 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1956 if test -f "$ac_dir/install-sh"; then
1957 ac_aux_dir=$ac_dir
1958 ac_install_sh="$ac_aux_dir/install-sh -c"
1959 break
1960 elif test -f "$ac_dir/install.sh"; then
1961 ac_aux_dir=$ac_dir
1962 ac_install_sh="$ac_aux_dir/install.sh -c"
1963 break
1964 elif test -f "$ac_dir/shtool"; then
1965 ac_aux_dir=$ac_dir
1966 ac_install_sh="$ac_aux_dir/shtool install -c"
1967 break
1968 fi
1969 done
1970 if test -z "$ac_aux_dir"; then
1971 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1972 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1973 { (exit 1); exit 1; }; }
1974 fi
1975
1976 # These three variables are undocumented and unsupported,
1977 # and are intended to be withdrawn in a future Autoconf release.
1978 # They can cause serious problems if a builder's source tree is in a directory
1979 # whose full name contains unusual characters.
1980 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1981 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1982 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1983
1984
1985 # Make sure we can run config.sub.
1986 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1987 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1988 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1989 { (exit 1); exit 1; }; }
1990
1991 { echo "$as_me:$LINENO: checking build system type" >&5
1992 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1993 if test "${ac_cv_build+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996 ac_build_alias=$build_alias
1997 test "x$ac_build_alias" = x &&
1998 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1999 test "x$ac_build_alias" = x &&
2000 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2001 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2002 { (exit 1); exit 1; }; }
2003 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2004 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2005 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2006 { (exit 1); exit 1; }; }
2007
2008 fi
2009 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2010 echo "${ECHO_T}$ac_cv_build" >&6; }
2011 case $ac_cv_build in
2012 *-*-*) ;;
2013 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2014 echo "$as_me: error: invalid value of canonical build" >&2;}
2015 { (exit 1); exit 1; }; };;
2016 esac
2017 build=$ac_cv_build
2018 ac_save_IFS=$IFS; IFS='-'
2019 set x $ac_cv_build
2020 shift
2021 build_cpu=$1
2022 build_vendor=$2
2023 shift; shift
2024 # Remember, the first character of IFS is used to create $*,
2025 # except with old shells:
2026 build_os=$*
2027 IFS=$ac_save_IFS
2028 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2029
2030
2031 { echo "$as_me:$LINENO: checking host system type" >&5
2032 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2033 if test "${ac_cv_host+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 if test "x$host_alias" = x; then
2037 ac_cv_host=$ac_cv_build
2038 else
2039 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2040 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2041 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2042 { (exit 1); exit 1; }; }
2043 fi
2044
2045 fi
2046 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2047 echo "${ECHO_T}$ac_cv_host" >&6; }
2048 case $ac_cv_host in
2049 *-*-*) ;;
2050 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2051 echo "$as_me: error: invalid value of canonical host" >&2;}
2052 { (exit 1); exit 1; }; };;
2053 esac
2054 host=$ac_cv_host
2055 ac_save_IFS=$IFS; IFS='-'
2056 set x $ac_cv_host
2057 shift
2058 host_cpu=$1
2059 host_vendor=$2
2060 shift; shift
2061 # Remember, the first character of IFS is used to create $*,
2062 # except with old shells:
2063 host_os=$*
2064 IFS=$ac_save_IFS
2065 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2066
2067
2068 { echo "$as_me:$LINENO: checking target system type" >&5
2069 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2070 if test "${ac_cv_target+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 if test "x$target_alias" = x; then
2074 ac_cv_target=$ac_cv_host
2075 else
2076 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2077 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2078 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2079 { (exit 1); exit 1; }; }
2080 fi
2081
2082 fi
2083 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2084 echo "${ECHO_T}$ac_cv_target" >&6; }
2085 case $ac_cv_target in
2086 *-*-*) ;;
2087 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2088 echo "$as_me: error: invalid value of canonical target" >&2;}
2089 { (exit 1); exit 1; }; };;
2090 esac
2091 target=$ac_cv_target
2092 ac_save_IFS=$IFS; IFS='-'
2093 set x $ac_cv_target
2094 shift
2095 target_cpu=$1
2096 target_vendor=$2
2097 shift; shift
2098 # Remember, the first character of IFS is used to create $*,
2099 # except with old shells:
2100 target_os=$*
2101 IFS=$ac_save_IFS
2102 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2103
2104
2105 # The aliases save the names the user supplied, while $host etc.
2106 # will get canonicalized.
2107 test -n "$target_alias" &&
2108 test "$program_prefix$program_suffix$program_transform_name" = \
2109 NONENONEs,x,x, &&
2110 program_prefix=${target_alias}-
2111
2112 am__api_version='1.10'
2113
2114 # Find a good install program. We prefer a C program (faster),
2115 # so one script is as good as another. But avoid the broken or
2116 # incompatible versions:
2117 # SysV /etc/install, /usr/sbin/install
2118 # SunOS /usr/etc/install
2119 # IRIX /sbin/install
2120 # AIX /bin/install
2121 # AmigaOS /C/install, which installs bootblocks on floppy discs
2122 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2123 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2124 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2125 # OS/2's system install, which has a completely different semantic
2126 # ./install, which can be erroneously created by make from ./install.sh.
2127 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2128 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2129 if test -z "$INSTALL"; then
2130 if test "${ac_cv_path_install+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2135 do
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 # Account for people who put trailing slashes in PATH elements.
2139 case $as_dir/ in
2140 ./ | .// | /cC/* | \
2141 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2142 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2143 /usr/ucb/* ) ;;
2144 *)
2145 # OSF1 and SCO ODT 3.0 have their own names for install.
2146 # Don't use installbsd from OSF since it installs stuff as root
2147 # by default.
2148 for ac_prog in ginstall scoinst install; do
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2151 if test $ac_prog = install &&
2152 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2153 # AIX install. It has an incompatible calling convention.
2154 :
2155 elif test $ac_prog = install &&
2156 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157 # program-specific install script used by HP pwplus--don't use.
2158 :
2159 else
2160 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2161 break 3
2162 fi
2163 fi
2164 done
2165 done
2166 ;;
2167 esac
2168 done
2169 IFS=$as_save_IFS
2170
2171
2172 fi
2173 if test "${ac_cv_path_install+set}" = set; then
2174 INSTALL=$ac_cv_path_install
2175 else
2176 # As a last resort, use the slow shell script. Don't cache a
2177 # value for INSTALL within a source directory, because that will
2178 # break other packages using the cache if that directory is
2179 # removed, or if the value is a relative name.
2180 INSTALL=$ac_install_sh
2181 fi
2182 fi
2183 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2184 echo "${ECHO_T}$INSTALL" >&6; }
2185
2186 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2187 # It thinks the first close brace ends the variable substitution.
2188 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2189
2190 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2191
2192 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2193
2194 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2195 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2196 # Just in case
2197 sleep 1
2198 echo timestamp > conftest.file
2199 # Do `set' in a subshell so we don't clobber the current shell's
2200 # arguments. Must try -L first in case configure is actually a
2201 # symlink; some systems play weird games with the mod time of symlinks
2202 # (eg FreeBSD returns the mod time of the symlink's containing
2203 # directory).
2204 if (
2205 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2206 if test "$*" = "X"; then
2207 # -L didn't work.
2208 set X `ls -t $srcdir/configure conftest.file`
2209 fi
2210 rm -f conftest.file
2211 if test "$*" != "X $srcdir/configure conftest.file" \
2212 && test "$*" != "X conftest.file $srcdir/configure"; then
2213
2214 # If neither matched, then we have a broken ls. This can happen
2215 # if, for instance, CONFIG_SHELL is bash and it inherits a
2216 # broken ls alias from the environment. This has actually
2217 # happened. Such a system could not be considered "sane".
2218 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2219 alias in your environment" >&5
2220 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2221 alias in your environment" >&2;}
2222 { (exit 1); exit 1; }; }
2223 fi
2224
2225 test "$2" = conftest.file
2226 )
2227 then
2228 # Ok.
2229 :
2230 else
2231 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2232 Check your system clock" >&5
2233 echo "$as_me: error: newly created file is older than distributed files!
2234 Check your system clock" >&2;}
2235 { (exit 1); exit 1; }; }
2236 fi
2237 { echo "$as_me:$LINENO: result: yes" >&5
2238 echo "${ECHO_T}yes" >&6; }
2239 test "$program_prefix" != NONE &&
2240 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2241 # Use a double $ so make ignores it.
2242 test "$program_suffix" != NONE &&
2243 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2244 # Double any \ or $. echo might interpret backslashes.
2245 # By default was `s,x,x', remove it if useless.
2246 cat <<\_ACEOF >conftest.sed
2247 s/[\\$]/&&/g;s/;s,x,x,$//
2248 _ACEOF
2249 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2250 rm -f conftest.sed
2251
2252 # expand $ac_aux_dir to an absolute path
2253 am_aux_dir=`cd $ac_aux_dir && pwd`
2254
2255 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2256 # Use eval to expand $SHELL
2257 if eval "$MISSING --run true"; then
2258 am_missing_run="$MISSING --run "
2259 else
2260 am_missing_run=
2261 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2262 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2263 fi
2264
2265 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2266 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2267 if test -z "$MKDIR_P"; then
2268 if test "${ac_cv_path_mkdir+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 else
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2273 do
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 for ac_prog in mkdir gmkdir; do
2277 for ac_exec_ext in '' $ac_executable_extensions; do
2278 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2279 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2280 'mkdir (GNU coreutils) '* | \
2281 'mkdir (coreutils) '* | \
2282 'mkdir (fileutils) '4.1*)
2283 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2284 break 3;;
2285 esac
2286 done
2287 done
2288 done
2289 IFS=$as_save_IFS
2290
2291 fi
2292
2293 if test "${ac_cv_path_mkdir+set}" = set; then
2294 MKDIR_P="$ac_cv_path_mkdir -p"
2295 else
2296 # As a last resort, use the slow shell script. Don't cache a
2297 # value for MKDIR_P within a source directory, because that will
2298 # break other packages using the cache if that directory is
2299 # removed, or if the value is a relative name.
2300 test -d ./--version && rmdir ./--version
2301 MKDIR_P="$ac_install_sh -d"
2302 fi
2303 fi
2304 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2305 echo "${ECHO_T}$MKDIR_P" >&6; }
2306
2307 mkdir_p="$MKDIR_P"
2308 case $mkdir_p in
2309 [\\/$]* | ?:[\\/]*) ;;
2310 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2311 esac
2312
2313 for ac_prog in gawk mawk nawk awk
2314 do
2315 # Extract the first word of "$ac_prog", so it can be a program name with args.
2316 set dummy $ac_prog; ac_word=$2
2317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2319 if test "${ac_cv_prog_AWK+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322 if test -n "$AWK"; then
2323 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332 ac_cv_prog_AWK="$ac_prog"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 break 2
2335 fi
2336 done
2337 done
2338 IFS=$as_save_IFS
2339
2340 fi
2341 fi
2342 AWK=$ac_cv_prog_AWK
2343 if test -n "$AWK"; then
2344 { echo "$as_me:$LINENO: result: $AWK" >&5
2345 echo "${ECHO_T}$AWK" >&6; }
2346 else
2347 { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2349 fi
2350
2351
2352 test -n "$AWK" && break
2353 done
2354
2355 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2356 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2357 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2358 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361 cat >conftest.make <<\_ACEOF
2362 SHELL = /bin/sh
2363 all:
2364 @echo '@@@%%%=$(MAKE)=@@@%%%'
2365 _ACEOF
2366 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2367 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2368 *@@@%%%=?*=@@@%%%*)
2369 eval ac_cv_prog_make_${ac_make}_set=yes;;
2370 *)
2371 eval ac_cv_prog_make_${ac_make}_set=no;;
2372 esac
2373 rm -f conftest.make
2374 fi
2375 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2376 { echo "$as_me:$LINENO: result: yes" >&5
2377 echo "${ECHO_T}yes" >&6; }
2378 SET_MAKE=
2379 else
2380 { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2382 SET_MAKE="MAKE=${MAKE-make}"
2383 fi
2384
2385 rm -rf .tst 2>/dev/null
2386 mkdir .tst 2>/dev/null
2387 if test -d .tst; then
2388 am__leading_dot=.
2389 else
2390 am__leading_dot=_
2391 fi
2392 rmdir .tst 2>/dev/null
2393
2394 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2395 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2396 # is not polluted with repeated "-I."
2397 am__isrc=' -I$(srcdir)'
2398 # test to see if srcdir already configured
2399 if test -f $srcdir/config.status; then
2400 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2401 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2402 { (exit 1); exit 1; }; }
2403 fi
2404 fi
2405
2406 # test whether we have cygpath
2407 if test -z "$CYGPATH_W"; then
2408 if (cygpath --version) >/dev/null 2>/dev/null; then
2409 CYGPATH_W='cygpath -w'
2410 else
2411 CYGPATH_W=echo
2412 fi
2413 fi
2414
2415
2416 # Define the identity of the package.
2417 PACKAGE='mcrypt'
2418 VERSION='2.6.8'
2419
2420
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE "$PACKAGE"
2423 _ACEOF
2424
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define VERSION "$VERSION"
2428 _ACEOF
2429
2430 # Some tools Automake needs.
2431
2432 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2433
2434
2435 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2436
2437
2438 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2439
2440
2441 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2442
2443
2444 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2445
2446 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2447
2448 # Installed binaries are usually stripped using `strip' when the user
2449 # run `make install-strip'. However `strip' might not be the right
2450 # tool to use in cross-compilation environments, therefore Automake
2451 # will honor the `STRIP' environment variable to overrule this program.
2452 if test "$cross_compiling" != no; then
2453 if test -n "$ac_tool_prefix"; then
2454 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2455 set dummy ${ac_tool_prefix}strip; ac_word=$2
2456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_STRIP+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461 if test -n "$STRIP"; then
2462 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2463 else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 break 2
2474 fi
2475 done
2476 done
2477 IFS=$as_save_IFS
2478
2479 fi
2480 fi
2481 STRIP=$ac_cv_prog_STRIP
2482 if test -n "$STRIP"; then
2483 { echo "$as_me:$LINENO: result: $STRIP" >&5
2484 echo "${ECHO_T}$STRIP" >&6; }
2485 else
2486 { echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6; }
2488 fi
2489
2490
2491 fi
2492 if test -z "$ac_cv_prog_STRIP"; then
2493 ac_ct_STRIP=$STRIP
2494 # Extract the first word of "strip", so it can be a program name with args.
2495 set dummy strip; ac_word=$2
2496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501 if test -n "$ac_ct_STRIP"; then
2502 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 ac_cv_prog_ac_ct_STRIP="strip"
2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 break 2
2514 fi
2515 done
2516 done
2517 IFS=$as_save_IFS
2518
2519 fi
2520 fi
2521 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2522 if test -n "$ac_ct_STRIP"; then
2523 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2524 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2525 else
2526 { echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6; }
2528 fi
2529
2530 if test "x$ac_ct_STRIP" = x; then
2531 STRIP=":"
2532 else
2533 case $cross_compiling:$ac_tool_warned in
2534 yes:)
2535 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2536 whose name does not start with the host triplet. If you think this
2537 configuration is useful to you, please write to [email protected]." >&5
2538 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2539 whose name does not start with the host triplet. If you think this
2540 configuration is useful to you, please write to [email protected]." >&2;}
2541 ac_tool_warned=yes ;;
2542 esac
2543 STRIP=$ac_ct_STRIP
2544 fi
2545 else
2546 STRIP="$ac_cv_prog_STRIP"
2547 fi
2548
2549 fi
2550 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2551
2552 # We need awk for the "check" target. The system "awk" is bad on
2553 # some platforms.
2554 # Always define AMTAR for backward compatibility.
2555
2556 AMTAR=${AMTAR-"${am_missing_run}tar"}
2557
2558 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2559
2560
2561
2562
2563
2564 ac_config_headers="$ac_config_headers config.h"
2565
2566
2567
2568 cat >>confdefs.h <<_ACEOF
2569 #define T_CPU "$target_cpu"
2570 _ACEOF
2571
2572
2573 cat >>confdefs.h <<_ACEOF
2574 #define T_VENDOR "$target_vendor"
2575 _ACEOF
2576
2577
2578 cat >>confdefs.h <<_ACEOF
2579 #define T_OS "$target_os"
2580 _ACEOF
2581
2582
2583 case `pwd` in
2584 *\ * | *\ *)
2585 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2586 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2587 esac
2588
2589
2590
2591 macro_version='2.2.4'
2592 macro_revision='1.2976'
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606 ltmain="$ac_aux_dir/ltmain.sh"
2607
2608 DEPDIR="${am__leading_dot}deps"
2609
2610 ac_config_commands="$ac_config_commands depfiles"
2611
2612
2613 am_make=${MAKE-make}
2614 cat > confinc << 'END'
2615 am__doit:
2616 @echo done
2617 .PHONY: am__doit
2618 END
2619 # If we don't find an include directive, just comment out the code.
2620 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2621 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2622 am__include="#"
2623 am__quote=
2624 _am_result=none
2625 # First try GNU make style include.
2626 echo "include confinc" > confmf
2627 # We grep out `Entering directory' and `Leaving directory'
2628 # messages which can occur if `w' ends up in MAKEFLAGS.
2629 # In particular we don't look at `^make:' because GNU make might
2630 # be invoked under some other name (usually "gmake"), in which
2631 # case it prints its new name instead of `make'.
2632 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2633 am__include=include
2634 am__quote=
2635 _am_result=GNU
2636 fi
2637 # Now try BSD make style include.
2638 if test "$am__include" = "#"; then
2639 echo '.include "confinc"' > confmf
2640 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2641 am__include=.include
2642 am__quote="\""
2643 _am_result=BSD
2644 fi
2645 fi
2646
2647
2648 { echo "$as_me:$LINENO: result: $_am_result" >&5
2649 echo "${ECHO_T}$_am_result" >&6; }
2650 rm -f confinc confmf
2651
2652 # Check whether --enable-dependency-tracking was given.
2653 if test "${enable_dependency_tracking+set}" = set; then
2654 enableval=$enable_dependency_tracking;
2655 fi
2656
2657 if test "x$enable_dependency_tracking" != xno; then
2658 am_depcomp="$ac_aux_dir/depcomp"
2659 AMDEPBACKSLASH='\'
2660 fi
2661 if test "x$enable_dependency_tracking" != xno; then
2662 AMDEP_TRUE=
2663 AMDEP_FALSE='#'
2664 else
2665 AMDEP_TRUE='#'
2666 AMDEP_FALSE=
2667 fi
2668
2669
2670 ac_ext=c
2671 ac_cpp='$CPP $CPPFLAGS'
2672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2675 if test -n "$ac_tool_prefix"; then
2676 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2677 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 if test -n "$CC"; then
2684 ac_cv_prog_CC="$CC" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697 done
2698 done
2699 IFS=$as_save_IFS
2700
2701 fi
2702 fi
2703 CC=$ac_cv_prog_CC
2704 if test -n "$CC"; then
2705 { echo "$as_me:$LINENO: result: $CC" >&5
2706 echo "${ECHO_T}$CC" >&6; }
2707 else
2708 { echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6; }
2710 fi
2711
2712
2713 fi
2714 if test -z "$ac_cv_prog_CC"; then
2715 ac_ct_CC=$CC
2716 # Extract the first word of "gcc", so it can be a program name with args.
2717 set dummy gcc; ac_word=$2
2718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2720 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 if test -n "$ac_ct_CC"; then
2724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 ac_cv_prog_ac_ct_CC="gcc"
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737 done
2738 done
2739 IFS=$as_save_IFS
2740
2741 fi
2742 fi
2743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2744 if test -n "$ac_ct_CC"; then
2745 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2746 echo "${ECHO_T}$ac_ct_CC" >&6; }
2747 else
2748 { echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6; }
2750 fi
2751
2752 if test "x$ac_ct_CC" = x; then
2753 CC=""
2754 else
2755 case $cross_compiling:$ac_tool_warned in
2756 yes:)
2757 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2758 whose name does not start with the host triplet. If you think this
2759 configuration is useful to you, please write to [email protected]." >&5
2760 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2761 whose name does not start with the host triplet. If you think this
2762 configuration is useful to you, please write to [email protected]." >&2;}
2763 ac_tool_warned=yes ;;
2764 esac
2765 CC=$ac_ct_CC
2766 fi
2767 else
2768 CC="$ac_cv_prog_CC"
2769 fi
2770
2771 if test -z "$CC"; then
2772 if test -n "$ac_tool_prefix"; then
2773 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2774 set dummy ${ac_tool_prefix}cc; ac_word=$2
2775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
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
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_CC="${ac_tool_prefix}cc"
2791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2793 fi
2794 done
2795 done
2796 IFS=$as_save_IFS
2797
2798 fi
2799 fi
2800 CC=$ac_cv_prog_CC
2801 if test -n "$CC"; then
2802 { echo "$as_me:$LINENO: result: $CC" >&5
2803 echo "${ECHO_T}$CC" >&6; }
2804 else
2805 { echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6; }
2807 fi
2808
2809
2810 fi
2811 fi
2812 if test -z "$CC"; then
2813 # Extract the first word of "cc", so it can be a program name with args.
2814 set dummy cc; ac_word=$2
2815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2817 if test "${ac_cv_prog_CC+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 else
2820 if test -n "$CC"; then
2821 ac_cv_prog_CC="$CC" # Let the user override the test.
2822 else
2823 ac_prog_rejected=no
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2832 ac_prog_rejected=yes
2833 continue
2834 fi
2835 ac_cv_prog_CC="cc"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839 done
2840 done
2841 IFS=$as_save_IFS
2842
2843 if test $ac_prog_rejected = yes; then
2844 # We found a bogon in the path, so make sure we never use it.
2845 set dummy $ac_cv_prog_CC
2846 shift
2847 if test $# != 0; then
2848 # We chose a different compiler from the bogus one.
2849 # However, it has the same basename, so the bogon will be chosen
2850 # first if we set CC to just the basename; use the full file name.
2851 shift
2852 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2853 fi
2854 fi
2855 fi
2856 fi
2857 CC=$ac_cv_prog_CC
2858 if test -n "$CC"; then
2859 { echo "$as_me:$LINENO: result: $CC" >&5
2860 echo "${ECHO_T}$CC" >&6; }
2861 else
2862 { echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6; }
2864 fi
2865
2866
2867 fi
2868 if test -z "$CC"; then
2869 if test -n "$ac_tool_prefix"; then
2870 for ac_prog in cl.exe
2871 do
2872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2876 if test "${ac_cv_prog_CC+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 if test -n "$CC"; then
2880 ac_cv_prog_CC="$CC" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2884 do
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2892 fi
2893 done
2894 done
2895 IFS=$as_save_IFS
2896
2897 fi
2898 fi
2899 CC=$ac_cv_prog_CC
2900 if test -n "$CC"; then
2901 { echo "$as_me:$LINENO: result: $CC" >&5
2902 echo "${ECHO_T}$CC" >&6; }
2903 else
2904 { echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6; }
2906 fi
2907
2908
2909 test -n "$CC" && break
2910 done
2911 fi
2912 if test -z "$CC"; then
2913 ac_ct_CC=$CC
2914 for ac_prog in cl.exe
2915 do
2916 # Extract the first word of "$ac_prog", so it can be a program name with args.
2917 set dummy $ac_prog; ac_word=$2
2918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2920 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923 if test -n "$ac_ct_CC"; then
2924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2925 else
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933 ac_cv_prog_ac_ct_CC="$ac_prog"
2934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937 done
2938 done
2939 IFS=$as_save_IFS
2940
2941 fi
2942 fi
2943 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2944 if test -n "$ac_ct_CC"; then
2945 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2946 echo "${ECHO_T}$ac_ct_CC" >&6; }
2947 else
2948 { echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6; }
2950 fi
2951
2952
2953 test -n "$ac_ct_CC" && break
2954 done
2955
2956 if test "x$ac_ct_CC" = x; then
2957 CC=""
2958 else
2959 case $cross_compiling:$ac_tool_warned in
2960 yes:)
2961 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2962 whose name does not start with the host triplet. If you think this
2963 configuration is useful to you, please write to [email protected]." >&5
2964 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet. If you think this
2966 configuration is useful to you, please write to [email protected]." >&2;}
2967 ac_tool_warned=yes ;;
2968 esac
2969 CC=$ac_ct_CC
2970 fi
2971 fi
2972
2973 fi
2974
2975
2976 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2977 See \`config.log' for more details." >&5
2978 echo "$as_me: error: no acceptable C compiler found in \$PATH
2979 See \`config.log' for more details." >&2;}
2980 { (exit 1); exit 1; }; }
2981
2982 # Provide some information about the compiler.
2983 echo "$as_me:$LINENO: checking for C compiler version" >&5
2984 ac_compiler=`set X $ac_compile; echo $2`
2985 { (ac_try="$ac_compiler --version >&5"
2986 case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989 esac
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_compiler --version >&5") 2>&5
2992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }
2995 { (ac_try="$ac_compiler -v >&5"
2996 case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compiler -v >&5") 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }
3005 { (ac_try="$ac_compiler -V >&5"
3006 case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3009 esac
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_compiler -V >&5") 2>&5
3012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }
3015
3016 cat >conftest.$ac_ext <<_ACEOF
3017 /* confdefs.h. */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3022
3023 int
3024 main ()
3025 {
3026
3027 ;
3028 return 0;
3029 }
3030 _ACEOF
3031 ac_clean_files_save=$ac_clean_files
3032 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3033 # Try to create an executable without -o first, disregard a.out.
3034 # It will help us diagnose broken compilers, and finding out an intuition
3035 # of exeext.
3036 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3037 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3038 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3039 #
3040 # List of possible output files, starting from the most likely.
3041 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3042 # only as a last resort. b.out is created by i960 compilers.
3043 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3044 #
3045 # The IRIX 6 linker writes into existing files which may not be
3046 # executable, retaining their permissions. Remove them first so a
3047 # subsequent execution test works.
3048 ac_rmfiles=
3049 for ac_file in $ac_files
3050 do
3051 case $ac_file in
3052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3053 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3054 esac
3055 done
3056 rm -f $ac_rmfiles
3057
3058 if { (ac_try="$ac_link_default"
3059 case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_link_default") 2>&5
3065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; then
3068 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3069 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3070 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3071 # so that the user can short-circuit this test for compilers unknown to
3072 # Autoconf.
3073 for ac_file in $ac_files ''
3074 do
3075 test -f "$ac_file" || continue
3076 case $ac_file in
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3078 ;;
3079 [ab].out )
3080 # We found the default executable, but exeext='' is most
3081 # certainly right.
3082 break;;
3083 *.* )
3084 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3085 then :; else
3086 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3087 fi
3088 # We set ac_cv_exeext here because the later test for it is not
3089 # safe: cross compilers may not add the suffix if given an `-o'
3090 # argument, so we may need to know it at that point already.
3091 # Even if this section looks crufty: it has the advantage of
3092 # actually working.
3093 break;;
3094 * )
3095 break;;
3096 esac
3097 done
3098 test "$ac_cv_exeext" = no && ac_cv_exeext=
3099
3100 else
3101 ac_file=''
3102 fi
3103
3104 { echo "$as_me:$LINENO: result: $ac_file" >&5
3105 echo "${ECHO_T}$ac_file" >&6; }
3106 if test -z "$ac_file"; then
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3109
3110 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3111 See \`config.log' for more details." >&5
3112 echo "$as_me: error: C compiler cannot create executables
3113 See \`config.log' for more details." >&2;}
3114 { (exit 77); exit 77; }; }
3115 fi
3116
3117 ac_exeext=$ac_cv_exeext
3118
3119 # Check that the compiler produces executables we can run. If not, either
3120 # the compiler is broken, or we cross compile.
3121 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3122 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3123 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3124 # If not cross compiling, check that we can run a simple program.
3125 if test "$cross_compiling" != yes; then
3126 if { ac_try='./$ac_file'
3127 { (case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_try") 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; }; then
3136 cross_compiling=no
3137 else
3138 if test "$cross_compiling" = maybe; then
3139 cross_compiling=yes
3140 else
3141 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3142 If you meant to cross compile, use \`--host'.
3143 See \`config.log' for more details." >&5
3144 echo "$as_me: error: cannot run C compiled programs.
3145 If you meant to cross compile, use \`--host'.
3146 See \`config.log' for more details." >&2;}
3147 { (exit 1); exit 1; }; }
3148 fi
3149 fi
3150 fi
3151 { echo "$as_me:$LINENO: result: yes" >&5
3152 echo "${ECHO_T}yes" >&6; }
3153
3154 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3155 ac_clean_files=$ac_clean_files_save
3156 # Check that the compiler produces executables we can run. If not, either
3157 # the compiler is broken, or we cross compile.
3158 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3159 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3160 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3161 echo "${ECHO_T}$cross_compiling" >&6; }
3162
3163 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3164 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3165 if { (ac_try="$ac_link"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_link") 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; then
3175 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3176 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3177 # work properly (i.e., refer to `conftest.exe'), while it won't with
3178 # `rm'.
3179 for ac_file in conftest.exe conftest conftest.*; do
3180 test -f "$ac_file" || continue
3181 case $ac_file in
3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3183 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3184 break;;
3185 * ) break;;
3186 esac
3187 done
3188 else
3189 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3190 See \`config.log' for more details." >&5
3191 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3192 See \`config.log' for more details." >&2;}
3193 { (exit 1); exit 1; }; }
3194 fi
3195
3196 rm -f conftest$ac_cv_exeext
3197 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3198 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3199
3200 rm -f conftest.$ac_ext
3201 EXEEXT=$ac_cv_exeext
3202 ac_exeext=$EXEEXT
3203 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3204 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3205 if test "${ac_cv_objext+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208 cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h. */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3214
3215 int
3216 main ()
3217 {
3218
3219 ;
3220 return 0;
3221 }
3222 _ACEOF
3223 rm -f conftest.o conftest.obj
3224 if { (ac_try="$ac_compile"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_compile") 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; then
3234 for ac_file in conftest.o conftest.obj conftest.*; do
3235 test -f "$ac_file" || continue;
3236 case $ac_file in
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3238 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3239 break;;
3240 esac
3241 done
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3247 See \`config.log' for more details." >&5
3248 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3249 See \`config.log' for more details." >&2;}
3250 { (exit 1); exit 1; }; }
3251 fi
3252
3253 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3254 fi
3255 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3256 echo "${ECHO_T}$ac_cv_objext" >&6; }
3257 OBJEXT=$ac_cv_objext
3258 ac_objext=$OBJEXT
3259 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3260 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3261 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
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 #ifndef __GNUC__
3275 choke me
3276 #endif
3277
3278 ;
3279 return 0;
3280 }
3281 _ACEOF
3282 rm -f conftest.$ac_objext
3283 if { (ac_try="$ac_compile"
3284 case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287 esac
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_compile") 2>conftest.er1
3290 ac_status=$?
3291 grep -v '^ *+' conftest.er1 >conftest.err
3292 rm -f conftest.er1
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } && {
3296 test -z "$ac_c_werror_flag" ||
3297 test ! -s conftest.err
3298 } && test -s conftest.$ac_objext; then
3299 ac_compiler_gnu=yes
3300 else
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3303
3304 ac_compiler_gnu=no
3305 fi
3306
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3309
3310 fi
3311 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3312 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3313 GCC=`test $ac_compiler_gnu = yes && echo yes`
3314 ac_test_CFLAGS=${CFLAGS+set}
3315 ac_save_CFLAGS=$CFLAGS
3316 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3317 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3318 if test "${ac_cv_prog_cc_g+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 ac_save_c_werror_flag=$ac_c_werror_flag
3322 ac_c_werror_flag=yes
3323 ac_cv_prog_cc_g=no
3324 CFLAGS="-g"
3325 cat >conftest.$ac_ext <<_ACEOF
3326 /* confdefs.h. */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3331
3332 int
3333 main ()
3334 {
3335
3336 ;
3337 return 0;
3338 }
3339 _ACEOF
3340 rm -f conftest.$ac_objext
3341 if { (ac_try="$ac_compile"
3342 case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_compile") 2>conftest.er1
3348 ac_status=$?
3349 grep -v '^ *+' conftest.er1 >conftest.err
3350 rm -f conftest.er1
3351 cat conftest.err >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } && {
3354 test -z "$ac_c_werror_flag" ||
3355 test ! -s conftest.err
3356 } && test -s conftest.$ac_objext; then
3357 ac_cv_prog_cc_g=yes
3358 else
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362 CFLAGS=""
3363 cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h. */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3369
3370 int
3371 main ()
3372 {
3373
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 rm -f conftest.$ac_objext
3379 if { (ac_try="$ac_compile"
3380 case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_compile") 2>conftest.er1
3386 ac_status=$?
3387 grep -v '^ *+' conftest.er1 >conftest.err
3388 rm -f conftest.er1
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } && {
3392 test -z "$ac_c_werror_flag" ||
3393 test ! -s conftest.err
3394 } && test -s conftest.$ac_objext; then
3395 :
3396 else
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 ac_c_werror_flag=$ac_save_c_werror_flag
3401 CFLAGS="-g"
3402 cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408
3409 int
3410 main ()
3411 {
3412
3413 ;
3414 return 0;
3415 }
3416 _ACEOF
3417 rm -f conftest.$ac_objext
3418 if { (ac_try="$ac_compile"
3419 case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424 (eval "$ac_compile") 2>conftest.er1
3425 ac_status=$?
3426 grep -v '^ *+' conftest.er1 >conftest.err
3427 rm -f conftest.er1
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } && {
3431 test -z "$ac_c_werror_flag" ||
3432 test ! -s conftest.err
3433 } && test -s conftest.$ac_objext; then
3434 ac_cv_prog_cc_g=yes
3435 else
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439
3440 fi
3441
3442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443 fi
3444
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 fi
3447
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 ac_c_werror_flag=$ac_save_c_werror_flag
3450 fi
3451 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3452 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3453 if test "$ac_test_CFLAGS" = set; then
3454 CFLAGS=$ac_save_CFLAGS
3455 elif test $ac_cv_prog_cc_g = yes; then
3456 if test "$GCC" = yes; then
3457 CFLAGS="-g -O2"
3458 else
3459 CFLAGS="-g"
3460 fi
3461 else
3462 if test "$GCC" = yes; then
3463 CFLAGS="-O2"
3464 else
3465 CFLAGS=
3466 fi
3467 fi
3468 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3469 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3470 if test "${ac_cv_prog_cc_c89+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473 ac_cv_prog_cc_c89=no
3474 ac_save_CC=$CC
3475 cat >conftest.$ac_ext <<_ACEOF
3476 /* confdefs.h. */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3481 #include <stdarg.h>
3482 #include <stdio.h>
3483 #include <sys/types.h>
3484 #include <sys/stat.h>
3485 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3486 struct buf { int x; };
3487 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3488 static char *e (p, i)
3489 char **p;
3490 int i;
3491 {
3492 return p[i];
3493 }
3494 static char *f (char * (*g) (char **, int), char **p, ...)
3495 {
3496 char *s;
3497 va_list v;
3498 va_start (v,p);
3499 s = g (p, va_arg (v,int));
3500 va_end (v);
3501 return s;
3502 }
3503
3504 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3505 function prototypes and stuff, but not '\xHH' hex character constants.
3506 These don't provoke an error unfortunately, instead are silently treated
3507 as 'x'. The following induces an error, until -std is added to get
3508 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3509 array size at least. It's necessary to write '\x00'==0 to get something
3510 that's true only with -std. */
3511 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3512
3513 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3514 inside strings and character constants. */
3515 #define FOO(x) 'x'
3516 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3517
3518 int test (int i, double x);
3519 struct s1 {int (*f) (int a);};
3520 struct s2 {int (*f) (double a);};
3521 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3522 int argc;
3523 char **argv;
3524 int
3525 main ()
3526 {
3527 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3528 ;
3529 return 0;
3530 }
3531 _ACEOF
3532 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3533 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3534 do
3535 CC="$ac_save_CC $ac_arg"
3536 rm -f conftest.$ac_objext
3537 if { (ac_try="$ac_compile"
3538 case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541 esac
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_compile") 2>conftest.er1
3544 ac_status=$?
3545 grep -v '^ *+' conftest.er1 >conftest.err
3546 rm -f conftest.er1
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } && {
3550 test -z "$ac_c_werror_flag" ||
3551 test ! -s conftest.err
3552 } && test -s conftest.$ac_objext; then
3553 ac_cv_prog_cc_c89=$ac_arg
3554 else
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3557
3558
3559 fi
3560
3561 rm -f core conftest.err conftest.$ac_objext
3562 test "x$ac_cv_prog_cc_c89" != "xno" && break
3563 done
3564 rm -f conftest.$ac_ext
3565 CC=$ac_save_CC
3566
3567 fi
3568 # AC_CACHE_VAL
3569 case "x$ac_cv_prog_cc_c89" in
3570 x)
3571 { echo "$as_me:$LINENO: result: none needed" >&5
3572 echo "${ECHO_T}none needed" >&6; } ;;
3573 xno)
3574 { echo "$as_me:$LINENO: result: unsupported" >&5
3575 echo "${ECHO_T}unsupported" >&6; } ;;
3576 *)
3577 CC="$CC $ac_cv_prog_cc_c89"
3578 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3579 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3580 esac
3581
3582
3583 ac_ext=c
3584 ac_cpp='$CPP $CPPFLAGS'
3585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3588
3589 depcc="$CC" am_compiler_list=
3590
3591 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3592 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3593 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3597 # We make a subdir and do the tests there. Otherwise we can end up
3598 # making bogus files that we don't know about and never remove. For
3599 # instance it was reported that on HP-UX the gcc test will end up
3600 # making a dummy file named `D' -- because `-MD' means `put the output
3601 # in D'.
3602 mkdir conftest.dir
3603 # Copy depcomp to subdir because otherwise we won't find it if we're
3604 # using a relative directory.
3605 cp "$am_depcomp" conftest.dir
3606 cd conftest.dir
3607 # We will build objects and dependencies in a subdirectory because
3608 # it helps to detect inapplicable dependency modes. For instance
3609 # both Tru64's cc and ICC support -MD to output dependencies as a
3610 # side effect of compilation, but ICC will put the dependencies in
3611 # the current directory while Tru64 will put them in the object
3612 # directory.
3613 mkdir sub
3614
3615 am_cv_CC_dependencies_compiler_type=none
3616 if test "$am_compiler_list" = ""; then
3617 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3618 fi
3619 for depmode in $am_compiler_list; do
3620 # Setup a source with many dependencies, because some compilers
3621 # like to wrap large dependency lists on column 80 (with \), and
3622 # we should not choose a depcomp mode which is confused by this.
3623 #
3624 # We need to recreate these files for each test, as the compiler may
3625 # overwrite some of them when testing with obscure command lines.
3626 # This happens at least with the AIX C compiler.
3627 : > sub/conftest.c
3628 for i in 1 2 3 4 5 6; do
3629 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3630 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3631 # Solaris 8's {/usr,}/bin/sh.
3632 touch sub/conftst$i.h
3633 done
3634 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3635
3636 case $depmode in
3637 nosideeffect)
3638 # after this tag, mechanisms are not by side-effect, so they'll
3639 # only be used when explicitly requested
3640 if test "x$enable_dependency_tracking" = xyes; then
3641 continue
3642 else
3643 break
3644 fi
3645 ;;
3646 none) break ;;
3647 esac
3648 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3649 # mode. It turns out that the SunPro C++ compiler does not properly
3650 # handle `-M -o', and we need to detect this.
3651 if depmode=$depmode \
3652 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3653 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3654 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3655 >/dev/null 2>conftest.err &&
3656 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3657 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3658 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3659 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3660 # icc doesn't choke on unknown options, it will just issue warnings
3661 # or remarks (even with -Werror). So we grep stderr for any message
3662 # that says an option was ignored or not supported.
3663 # When given -MP, icc 7.0 and 7.1 complain thusly:
3664 # icc: Command line warning: ignoring option '-M'; no argument required
3665 # The diagnosis changed in icc 8.0:
3666 # icc: Command line remark: option '-MP' not supported
3667 if (grep 'ignoring option' conftest.err ||
3668 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3669 am_cv_CC_dependencies_compiler_type=$depmode
3670 break
3671 fi
3672 fi
3673 done
3674
3675 cd ..
3676 rm -rf conftest.dir
3677 else
3678 am_cv_CC_dependencies_compiler_type=none
3679 fi
3680
3681 fi
3682 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3683 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3684 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3685
3686 if
3687 test "x$enable_dependency_tracking" != xno \
3688 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3689 am__fastdepCC_TRUE=
3690 am__fastdepCC_FALSE='#'
3691 else
3692 am__fastdepCC_TRUE='#'
3693 am__fastdepCC_FALSE=
3694 fi
3695
3696
3697 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3698 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3699 if test "${ac_cv_path_SED+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3703 for ac_i in 1 2 3 4 5 6 7; do
3704 ac_script="$ac_script$as_nl$ac_script"
3705 done
3706 echo "$ac_script" | sed 99q >conftest.sed
3707 $as_unset ac_script || ac_script=
3708 # Extract the first word of "sed gsed" to use in msg output
3709 if test -z "$SED"; then
3710 set dummy sed gsed; ac_prog_name=$2
3711 if test "${ac_cv_path_SED+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714 ac_path_SED_found=false
3715 # Loop through the user's path and test for each of PROGNAME-LIST
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3718 do
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_prog in sed gsed; do
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3724 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3725 # Check for GNU ac_path_SED and select it if it is found.
3726 # Check for GNU $ac_path_SED
3727 case `"$ac_path_SED" --version 2>&1` in
3728 *GNU*)
3729 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3730 *)
3731 ac_count=0
3732 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3733 while :
3734 do
3735 cat "conftest.in" "conftest.in" >"conftest.tmp"
3736 mv "conftest.tmp" "conftest.in"
3737 cp "conftest.in" "conftest.nl"
3738 echo '' >> "conftest.nl"
3739 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3740 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3741 ac_count=`expr $ac_count + 1`
3742 if test $ac_count -gt ${ac_path_SED_max-0}; then
3743 # Best one so far, save it but keep looking for a better one
3744 ac_cv_path_SED="$ac_path_SED"
3745 ac_path_SED_max=$ac_count
3746 fi
3747 # 10*(2^10) chars as input seems more than enough
3748 test $ac_count -gt 10 && break
3749 done
3750 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3751 esac
3752
3753
3754 $ac_path_SED_found && break 3
3755 done
3756 done
3757
3758 done
3759 IFS=$as_save_IFS
3760
3761
3762 fi
3763
3764 SED="$ac_cv_path_SED"
3765 if test -z "$SED"; then
3766 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3767 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3768 { (exit 1); exit 1; }; }
3769 fi
3770
3771 else
3772 ac_cv_path_SED=$SED
3773 fi
3774
3775 fi
3776 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3777 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3778 SED="$ac_cv_path_SED"
3779 rm -f conftest.sed
3780
3781 test -z "$SED" && SED=sed
3782 Xsed="$SED -e 1s/^X//"
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3795 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3796 if test "${ac_cv_path_GREP+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 else
3799 # Extract the first word of "grep ggrep" to use in msg output
3800 if test -z "$GREP"; then
3801 set dummy grep ggrep; ac_prog_name=$2
3802 if test "${ac_cv_path_GREP+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805 ac_path_GREP_found=false
3806 # Loop through the user's path and test for each of PROGNAME-LIST
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3809 do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_prog in grep ggrep; do
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3815 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3816 # Check for GNU ac_path_GREP and select it if it is found.
3817 # Check for GNU $ac_path_GREP
3818 case `"$ac_path_GREP" --version 2>&1` in
3819 *GNU*)
3820 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3821 *)
3822 ac_count=0
3823 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3824 while :
3825 do
3826 cat "conftest.in" "conftest.in" >"conftest.tmp"
3827 mv "conftest.tmp" "conftest.in"
3828 cp "conftest.in" "conftest.nl"
3829 echo 'GREP' >> "conftest.nl"
3830 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3831 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3832 ac_count=`expr $ac_count + 1`
3833 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3834 # Best one so far, save it but keep looking for a better one
3835 ac_cv_path_GREP="$ac_path_GREP"
3836 ac_path_GREP_max=$ac_count
3837 fi
3838 # 10*(2^10) chars as input seems more than enough
3839 test $ac_count -gt 10 && break
3840 done
3841 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3842 esac
3843
3844
3845 $ac_path_GREP_found && break 3
3846 done
3847 done
3848
3849 done
3850 IFS=$as_save_IFS
3851
3852
3853 fi
3854
3855 GREP="$ac_cv_path_GREP"
3856 if test -z "$GREP"; then
3857 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3858 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3859 { (exit 1); exit 1; }; }
3860 fi
3861
3862 else
3863 ac_cv_path_GREP=$GREP
3864 fi
3865
3866
3867 fi
3868 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3869 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3870 GREP="$ac_cv_path_GREP"
3871
3872
3873 { echo "$as_me:$LINENO: checking for egrep" >&5
3874 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3875 if test "${ac_cv_path_EGREP+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3879 then ac_cv_path_EGREP="$GREP -E"
3880 else
3881 # Extract the first word of "egrep" to use in msg output
3882 if test -z "$EGREP"; then
3883 set dummy egrep; ac_prog_name=$2
3884 if test "${ac_cv_path_EGREP+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887 ac_path_EGREP_found=false
3888 # Loop through the user's path and test for each of PROGNAME-LIST
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3891 do
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_prog in egrep; do
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3897 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3898 # Check for GNU ac_path_EGREP and select it if it is found.
3899 # Check for GNU $ac_path_EGREP
3900 case `"$ac_path_EGREP" --version 2>&1` in
3901 *GNU*)
3902 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3903 *)
3904 ac_count=0
3905 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3906 while :
3907 do
3908 cat "conftest.in" "conftest.in" >"conftest.tmp"
3909 mv "conftest.tmp" "conftest.in"
3910 cp "conftest.in" "conftest.nl"
3911 echo 'EGREP' >> "conftest.nl"
3912 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3913 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3914 ac_count=`expr $ac_count + 1`
3915 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3916 # Best one so far, save it but keep looking for a better one
3917 ac_cv_path_EGREP="$ac_path_EGREP"
3918 ac_path_EGREP_max=$ac_count
3919 fi
3920 # 10*(2^10) chars as input seems more than enough
3921 test $ac_count -gt 10 && break
3922 done
3923 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3924 esac
3925
3926
3927 $ac_path_EGREP_found && break 3
3928 done
3929 done
3930
3931 done
3932 IFS=$as_save_IFS
3933
3934
3935 fi
3936
3937 EGREP="$ac_cv_path_EGREP"
3938 if test -z "$EGREP"; then
3939 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3940 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3941 { (exit 1); exit 1; }; }
3942 fi
3943
3944 else
3945 ac_cv_path_EGREP=$EGREP
3946 fi
3947
3948
3949 fi
3950 fi
3951 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3952 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3953 EGREP="$ac_cv_path_EGREP"
3954
3955
3956 { echo "$as_me:$LINENO: checking for fgrep" >&5
3957 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3958 if test "${ac_cv_path_FGREP+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3962 then ac_cv_path_FGREP="$GREP -F"
3963 else
3964 # Extract the first word of "fgrep" to use in msg output
3965 if test -z "$FGREP"; then
3966 set dummy fgrep; ac_prog_name=$2
3967 if test "${ac_cv_path_FGREP+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970 ac_path_FGREP_found=false
3971 # Loop through the user's path and test for each of PROGNAME-LIST
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974 do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_prog in fgrep; do
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3980 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3981 # Check for GNU ac_path_FGREP and select it if it is found.
3982 # Check for GNU $ac_path_FGREP
3983 case `"$ac_path_FGREP" --version 2>&1` in
3984 *GNU*)
3985 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3986 *)
3987 ac_count=0
3988 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3989 while :
3990 do
3991 cat "conftest.in" "conftest.in" >"conftest.tmp"
3992 mv "conftest.tmp" "conftest.in"
3993 cp "conftest.in" "conftest.nl"
3994 echo 'FGREP' >> "conftest.nl"
3995 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997 ac_count=`expr $ac_count + 1`
3998 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3999 # Best one so far, save it but keep looking for a better one
4000 ac_cv_path_FGREP="$ac_path_FGREP"
4001 ac_path_FGREP_max=$ac_count
4002 fi
4003 # 10*(2^10) chars as input seems more than enough
4004 test $ac_count -gt 10 && break
4005 done
4006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4007 esac
4008
4009
4010 $ac_path_FGREP_found && break 3
4011 done
4012 done
4013
4014 done
4015 IFS=$as_save_IFS
4016
4017
4018 fi
4019
4020 FGREP="$ac_cv_path_FGREP"
4021 if test -z "$FGREP"; then
4022 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024 { (exit 1); exit 1; }; }
4025 fi
4026
4027 else
4028 ac_cv_path_FGREP=$FGREP
4029 fi
4030
4031
4032 fi
4033 fi
4034 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4035 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4036 FGREP="$ac_cv_path_FGREP"
4037
4038
4039 test -z "$GREP" && GREP=grep
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059 # Check whether --with-gnu-ld was given.
4060 if test "${with_gnu_ld+set}" = set; then
4061 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4062 else
4063 with_gnu_ld=no
4064 fi
4065
4066 ac_prog=ld
4067 if test "$GCC" = yes; then
4068 # Check if gcc -print-prog-name=ld gives a path.
4069 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4070 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4071 case $host in
4072 *-*-mingw*)
4073 # gcc leaves a trailing carriage return which upsets mingw
4074 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4075 *)
4076 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4077 esac
4078 case $ac_prog in
4079 # Accept absolute paths.
4080 [\\/]* | ?:[\\/]*)
4081 re_direlt='/[^/][^/]*/\.\./'
4082 # Canonicalize the pathname of ld
4083 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4084 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4085 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4086 done
4087 test -z "$LD" && LD="$ac_prog"
4088 ;;
4089 "")
4090 # If it fails, then pretend we aren't using GCC.
4091 ac_prog=ld
4092 ;;
4093 *)
4094 # If it is relative, then search for the first ld in PATH.
4095 with_gnu_ld=unknown
4096 ;;
4097 esac
4098 elif test "$with_gnu_ld" = yes; then
4099 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4100 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4101 else
4102 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4103 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4104 fi
4105 if test "${lt_cv_path_LD+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108 if test -z "$LD"; then
4109 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4110 for ac_dir in $PATH; do
4111 IFS="$lt_save_ifs"
4112 test -z "$ac_dir" && ac_dir=.
4113 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4114 lt_cv_path_LD="$ac_dir/$ac_prog"
4115 # Check to see if the program is GNU ld. I'd rather use --version,
4116 # but apparently some variants of GNU ld only accept -v.
4117 # Break only if it was the GNU/non-GNU ld that we prefer.
4118 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4119 *GNU* | *'with BFD'*)
4120 test "$with_gnu_ld" != no && break
4121 ;;
4122 *)
4123 test "$with_gnu_ld" != yes && break
4124 ;;
4125 esac
4126 fi
4127 done
4128 IFS="$lt_save_ifs"
4129 else
4130 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4131 fi
4132 fi
4133
4134 LD="$lt_cv_path_LD"
4135 if test -n "$LD"; then
4136 { echo "$as_me:$LINENO: result: $LD" >&5
4137 echo "${ECHO_T}$LD" >&6; }
4138 else
4139 { echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6; }
4141 fi
4142 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4143 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4144 { (exit 1); exit 1; }; }
4145 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4146 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4147 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4151 case `$LD -v 2>&1 </dev/null` in
4152 *GNU* | *'with BFD'*)
4153 lt_cv_prog_gnu_ld=yes
4154 ;;
4155 *)
4156 lt_cv_prog_gnu_ld=no
4157 ;;
4158 esac
4159 fi
4160 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4161 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4162 with_gnu_ld=$lt_cv_prog_gnu_ld
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4173 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4174 if test "${lt_cv_path_NM+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 else
4177 if test -n "$NM"; then
4178 # Let the user override the test.
4179 lt_cv_path_NM="$NM"
4180 else
4181 lt_nm_to_check="${ac_tool_prefix}nm"
4182 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4183 lt_nm_to_check="$lt_nm_to_check nm"
4184 fi
4185 for lt_tmp_nm in $lt_nm_to_check; do
4186 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4187 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4188 IFS="$lt_save_ifs"
4189 test -z "$ac_dir" && ac_dir=.
4190 tmp_nm="$ac_dir/$lt_tmp_nm"
4191 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4192 # Check to see if the nm accepts a BSD-compat flag.
4193 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4194 # nm: unknown option "B" ignored
4195 # Tru64's nm complains that /dev/null is an invalid object file
4196 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4197 */dev/null* | *'Invalid file or object type'*)
4198 lt_cv_path_NM="$tmp_nm -B"
4199 break
4200 ;;
4201 *)
4202 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4203 */dev/null*)
4204 lt_cv_path_NM="$tmp_nm -p"
4205 break
4206 ;;
4207 *)
4208 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4209 continue # so that we can try to find one that supports BSD flags
4210 ;;
4211 esac
4212 ;;
4213 esac
4214 fi
4215 done
4216 IFS="$lt_save_ifs"
4217 done
4218 : ${lt_cv_path_NM=no}
4219 fi
4220 fi
4221 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4222 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4223 if test "$lt_cv_path_NM" != "no"; then
4224 NM="$lt_cv_path_NM"
4225 else
4226 # Didn't find any BSD compatible name lister, look for dumpbin.
4227 if test -n "$ac_tool_prefix"; then
4228 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4229 do
4230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4234 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 else
4237 if test -n "$DUMPBIN"; then
4238 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4239 else
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4242 do
4243 IFS=$as_save_IFS
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4247 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 break 2
4250 fi
4251 done
4252 done
4253 IFS=$as_save_IFS
4254
4255 fi
4256 fi
4257 DUMPBIN=$ac_cv_prog_DUMPBIN
4258 if test -n "$DUMPBIN"; then
4259 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4260 echo "${ECHO_T}$DUMPBIN" >&6; }
4261 else
4262 { echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6; }
4264 fi
4265
4266
4267 test -n "$DUMPBIN" && break
4268 done
4269 fi
4270 if test -z "$DUMPBIN"; then
4271 ac_ct_DUMPBIN=$DUMPBIN
4272 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4273 do
4274 # Extract the first word of "$ac_prog", so it can be a program name with args.
4275 set dummy $ac_prog; ac_word=$2
4276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4278 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281 if test -n "$ac_ct_DUMPBIN"; then
4282 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4291 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 break 2
4294 fi
4295 done
4296 done
4297 IFS=$as_save_IFS
4298
4299 fi
4300 fi
4301 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4302 if test -n "$ac_ct_DUMPBIN"; then
4303 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4304 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4305 else
4306 { echo "$as_me:$LINENO: result: no" >&5
4307 echo "${ECHO_T}no" >&6; }
4308 fi
4309
4310
4311 test -n "$ac_ct_DUMPBIN" && break
4312 done
4313
4314 if test "x$ac_ct_DUMPBIN" = x; then
4315 DUMPBIN=":"
4316 else
4317 case $cross_compiling:$ac_tool_warned in
4318 yes:)
4319 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4320 whose name does not start with the host triplet. If you think this
4321 configuration is useful to you, please write to [email protected]." >&5
4322 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4323 whose name does not start with the host triplet. If you think this
4324 configuration is useful to you, please write to [email protected]." >&2;}
4325 ac_tool_warned=yes ;;
4326 esac
4327 DUMPBIN=$ac_ct_DUMPBIN
4328 fi
4329 fi
4330
4331
4332 if test "$DUMPBIN" != ":"; then
4333 NM="$DUMPBIN"
4334 fi
4335 fi
4336 test -z "$NM" && NM=nm
4337
4338
4339
4340
4341
4342
4343 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4344 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4345 if test "${lt_cv_nm_interface+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348 lt_cv_nm_interface="BSD nm"
4349 echo "int some_variable = 0;" > conftest.$ac_ext
4350 (eval echo "\"\$as_me:4350: $ac_compile\"" >&5)
4351 (eval "$ac_compile" 2>conftest.err)
4352 cat conftest.err >&5
4353 (eval echo "\"\$as_me:4353: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4354 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4355 cat conftest.err >&5
4356 (eval echo "\"\$as_me:4356: output\"" >&5)
4357 cat conftest.out >&5
4358 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4359 lt_cv_nm_interface="MS dumpbin"
4360 fi
4361 rm -f conftest*
4362 fi
4363 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4364 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4365
4366 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4367 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4368 LN_S=$as_ln_s
4369 if test "$LN_S" = "ln -s"; then
4370 { echo "$as_me:$LINENO: result: yes" >&5
4371 echo "${ECHO_T}yes" >&6; }
4372 else
4373 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4374 echo "${ECHO_T}no, using $LN_S" >&6; }
4375 fi
4376
4377 # find the maximum length of command line arguments
4378 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4379 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4380 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383 i=0
4384 teststring="ABCD"
4385
4386 case $build_os in
4387 msdosdjgpp*)
4388 # On DJGPP, this test can blow up pretty badly due to problems in libc
4389 # (any single argument exceeding 2000 bytes causes a buffer overrun
4390 # during glob expansion). Even if it were fixed, the result of this
4391 # check would be larger than it should be.
4392 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4393 ;;
4394
4395 gnu*)
4396 # Under GNU Hurd, this test is not required because there is
4397 # no limit to the length of command line arguments.
4398 # Libtool will interpret -1 as no limit whatsoever
4399 lt_cv_sys_max_cmd_len=-1;
4400 ;;
4401
4402 cygwin* | mingw*)
4403 # On Win9x/ME, this test blows up -- it succeeds, but takes
4404 # about 5 minutes as the teststring grows exponentially.
4405 # Worse, since 9x/ME are not pre-emptively multitasking,
4406 # you end up with a "frozen" computer, even though with patience
4407 # the test eventually succeeds (with a max line length of 256k).
4408 # Instead, let's just punt: use the minimum linelength reported by
4409 # all of the supported platforms: 8192 (on NT/2K/XP).
4410 lt_cv_sys_max_cmd_len=8192;
4411 ;;
4412
4413 amigaos*)
4414 # On AmigaOS with pdksh, this test takes hours, literally.
4415 # So we just punt and use a minimum line length of 8192.
4416 lt_cv_sys_max_cmd_len=8192;
4417 ;;
4418
4419 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4420 # This has been around since 386BSD, at least. Likely further.
4421 if test -x /sbin/sysctl; then
4422 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4423 elif test -x /usr/sbin/sysctl; then
4424 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4425 else
4426 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4427 fi
4428 # And add a safety zone
4429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4431 ;;
4432
4433 interix*)
4434 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4435 lt_cv_sys_max_cmd_len=196608
4436 ;;
4437
4438 osf*)
4439 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4440 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4441 # nice to cause kernel panics so lets avoid the loop below.
4442 # First set a reasonable default.
4443 lt_cv_sys_max_cmd_len=16384
4444 #
4445 if test -x /sbin/sysconfig; then
4446 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4447 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4448 esac
4449 fi
4450 ;;
4451 sco3.2v5*)
4452 lt_cv_sys_max_cmd_len=102400
4453 ;;
4454 sysv5* | sco5v6* | sysv4.2uw2*)
4455 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4456 if test -n "$kargmax"; then
4457 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4458 else
4459 lt_cv_sys_max_cmd_len=32768
4460 fi
4461 ;;
4462 *)
4463 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4464 if test -n "$lt_cv_sys_max_cmd_len"; then
4465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4466 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4467 else
4468 # Make teststring a little bigger before we do anything with it.
4469 # a 1K string should be a reasonable start.
4470 for i in 1 2 3 4 5 6 7 8 ; do
4471 teststring=$teststring$teststring
4472 done
4473 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4474 # If test is not a shell built-in, we'll probably end up computing a
4475 # maximum length that is only half of the actual maximum length, but
4476 # we can't tell.
4477 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4478 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4479 test $i != 17 # 1/2 MB should be enough
4480 do
4481 i=`expr $i + 1`
4482 teststring=$teststring$teststring
4483 done
4484 # Only check the string length outside the loop.
4485 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4486 teststring=
4487 # Add a significant safety factor because C++ compilers can tack on
4488 # massive amounts of additional arguments before passing them to the
4489 # linker. It appears as though 1/2 is a usable value.
4490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4491 fi
4492 ;;
4493 esac
4494
4495 fi
4496
4497 if test -n $lt_cv_sys_max_cmd_len ; then
4498 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4499 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4500 else
4501 { echo "$as_me:$LINENO: result: none" >&5
4502 echo "${ECHO_T}none" >&6; }
4503 fi
4504 max_cmd_len=$lt_cv_sys_max_cmd_len
4505
4506
4507
4508
4509
4510
4511 : ${CP="cp -f"}
4512 : ${MV="mv -f"}
4513 : ${RM="rm -f"}
4514
4515 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4516 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4517 # Try some XSI features
4518 xsi_shell=no
4519 ( _lt_dummy="a/b/c"
4520 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4521 = c,a/b,, \
4522 && eval 'test $(( 1 + 1 )) -eq 2 \
4523 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4524 && xsi_shell=yes
4525 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
4526 echo "${ECHO_T}$xsi_shell" >&6; }
4527
4528
4529 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4530 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4531 lt_shell_append=no
4532 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4533 >/dev/null 2>&1 \
4534 && lt_shell_append=yes
4535 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4536 echo "${ECHO_T}$lt_shell_append" >&6; }
4537
4538
4539 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4540 lt_unset=unset
4541 else
4542 lt_unset=false
4543 fi
4544
4545
4546
4547
4548
4549 # test EBCDIC or ASCII
4550 case `echo X|tr X '\101'` in
4551 A) # ASCII based system
4552 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4553 lt_SP2NL='tr \040 \012'
4554 lt_NL2SP='tr \015\012 \040\040'
4555 ;;
4556 *) # EBCDIC based system
4557 lt_SP2NL='tr \100 \n'
4558 lt_NL2SP='tr \r\n \100\100'
4559 ;;
4560 esac
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4571 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4572 if test "${lt_cv_ld_reload_flag+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575 lt_cv_ld_reload_flag='-r'
4576 fi
4577 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4578 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4579 reload_flag=$lt_cv_ld_reload_flag
4580 case $reload_flag in
4581 "" | " "*) ;;
4582 *) reload_flag=" $reload_flag" ;;
4583 esac
4584 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4585 case $host_os in
4586 darwin*)
4587 if test "$GCC" = yes; then
4588 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4589 else
4590 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4591 fi
4592 ;;
4593 esac
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4605 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4606 if test "${lt_cv_deplibs_check_method+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609 lt_cv_file_magic_cmd='$MAGIC_CMD'
4610 lt_cv_file_magic_test_file=
4611 lt_cv_deplibs_check_method='unknown'
4612 # Need to set the preceding variable on all platforms that support
4613 # interlibrary dependencies.
4614 # 'none' -- dependencies not supported.
4615 # `unknown' -- same as none, but documents that we really don't know.
4616 # 'pass_all' -- all dependencies passed with no checks.
4617 # 'test_compile' -- check by making test program.
4618 # 'file_magic [[regex]]' -- check by looking for files in library path
4619 # which responds to the $file_magic_cmd with a given extended regex.
4620 # If you have `file' or equivalent on your system and you're not sure
4621 # whether `pass_all' will *always* work, you probably want this one.
4622
4623 case $host_os in
4624 aix[4-9]*)
4625 lt_cv_deplibs_check_method=pass_all
4626 ;;
4627
4628 beos*)
4629 lt_cv_deplibs_check_method=pass_all
4630 ;;
4631
4632 bsdi[45]*)
4633 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4634 lt_cv_file_magic_cmd='/usr/bin/file -L'
4635 lt_cv_file_magic_test_file=/shlib/libc.so
4636 ;;
4637
4638 cygwin*)
4639 # func_win32_libid is a shell function defined in ltmain.sh
4640 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4641 lt_cv_file_magic_cmd='func_win32_libid'
4642 ;;
4643
4644 mingw* | pw32*)
4645 # Base MSYS/MinGW do not provide the 'file' command needed by
4646 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4647 # unless we find 'file', for example because we are cross-compiling.
4648 if ( file / ) >/dev/null 2>&1; then
4649 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4650 lt_cv_file_magic_cmd='func_win32_libid'
4651 else
4652 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4653 lt_cv_file_magic_cmd='$OBJDUMP -f'
4654 fi
4655 ;;
4656
4657 darwin* | rhapsody*)
4658 lt_cv_deplibs_check_method=pass_all
4659 ;;
4660
4661 freebsd* | dragonfly*)
4662 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4663 case $host_cpu in
4664 i*86 )
4665 # Not sure whether the presence of OpenBSD here was a mistake.
4666 # Let's accept both of them until this is cleared up.
4667 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4668 lt_cv_file_magic_cmd=/usr/bin/file
4669 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4670 ;;
4671 esac
4672 else
4673 lt_cv_deplibs_check_method=pass_all
4674 fi
4675 ;;
4676
4677 gnu*)
4678 lt_cv_deplibs_check_method=pass_all
4679 ;;
4680
4681 hpux10.20* | hpux11*)
4682 lt_cv_file_magic_cmd=/usr/bin/file
4683 case $host_cpu in
4684 ia64*)
4685 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4686 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4687 ;;
4688 hppa*64*)
4689 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]'
4690 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4691 ;;
4692 *)
4693 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4694 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4695 ;;
4696 esac
4697 ;;
4698
4699 interix[3-9]*)
4700 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4702 ;;
4703
4704 irix5* | irix6* | nonstopux*)
4705 case $LD in
4706 *-32|*"-32 ") libmagic=32-bit;;
4707 *-n32|*"-n32 ") libmagic=N32;;
4708 *-64|*"-64 ") libmagic=64-bit;;
4709 *) libmagic=never-match;;
4710 esac
4711 lt_cv_deplibs_check_method=pass_all
4712 ;;
4713
4714 # This must be Linux ELF.
4715 linux* | k*bsd*-gnu)
4716 lt_cv_deplibs_check_method=pass_all
4717 ;;
4718
4719 netbsd* | netbsdelf*-gnu)
4720 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4722 else
4723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4724 fi
4725 ;;
4726
4727 newos6*)
4728 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4729 lt_cv_file_magic_cmd=/usr/bin/file
4730 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4731 ;;
4732
4733 *nto* | *qnx*)
4734 lt_cv_deplibs_check_method=pass_all
4735 ;;
4736
4737 openbsd*)
4738 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4739 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4740 else
4741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4742 fi
4743 ;;
4744
4745 osf3* | osf4* | osf5*)
4746 lt_cv_deplibs_check_method=pass_all
4747 ;;
4748
4749 rdos*)
4750 lt_cv_deplibs_check_method=pass_all
4751 ;;
4752
4753 solaris*)
4754 lt_cv_deplibs_check_method=pass_all
4755 ;;
4756
4757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4758 lt_cv_deplibs_check_method=pass_all
4759 ;;
4760
4761 sysv4 | sysv4.3*)
4762 case $host_vendor in
4763 motorola)
4764 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]'
4765 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4766 ;;
4767 ncr)
4768 lt_cv_deplibs_check_method=pass_all
4769 ;;
4770 sequent)
4771 lt_cv_file_magic_cmd='/bin/file'
4772 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4773 ;;
4774 sni)
4775 lt_cv_file_magic_cmd='/bin/file'
4776 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4777 lt_cv_file_magic_test_file=/lib/libc.so
4778 ;;
4779 siemens)
4780 lt_cv_deplibs_check_method=pass_all
4781 ;;
4782 pc)
4783 lt_cv_deplibs_check_method=pass_all
4784 ;;
4785 esac
4786 ;;
4787
4788 tpf*)
4789 lt_cv_deplibs_check_method=pass_all
4790 ;;
4791 esac
4792
4793 fi
4794 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4795 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4796 file_magic_cmd=$lt_cv_file_magic_cmd
4797 deplibs_check_method=$lt_cv_deplibs_check_method
4798 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811 if test -n "$ac_tool_prefix"; then
4812 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4813 set dummy ${ac_tool_prefix}ar; ac_word=$2
4814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4816 if test "${ac_cv_prog_AR+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819 if test -n "$AR"; then
4820 ac_cv_prog_AR="$AR" # Let the user override the test.
4821 else
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4824 do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_prog_AR="${ac_tool_prefix}ar"
4830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
4832 fi
4833 done
4834 done
4835 IFS=$as_save_IFS
4836
4837 fi
4838 fi
4839 AR=$ac_cv_prog_AR
4840 if test -n "$AR"; then
4841 { echo "$as_me:$LINENO: result: $AR" >&5
4842 echo "${ECHO_T}$AR" >&6; }
4843 else
4844 { echo "$as_me:$LINENO: result: no" >&5
4845 echo "${ECHO_T}no" >&6; }
4846 fi
4847
4848
4849 fi
4850 if test -z "$ac_cv_prog_AR"; then
4851 ac_ct_AR=$AR
4852 # Extract the first word of "ar", so it can be a program name with args.
4853 set dummy ar; ac_word=$2
4854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4856 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859 if test -n "$ac_ct_AR"; then
4860 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_ac_ct_AR="ar"
4870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4872 fi
4873 done
4874 done
4875 IFS=$as_save_IFS
4876
4877 fi
4878 fi
4879 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4880 if test -n "$ac_ct_AR"; then
4881 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4882 echo "${ECHO_T}$ac_ct_AR" >&6; }
4883 else
4884 { echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6; }
4886 fi
4887
4888 if test "x$ac_ct_AR" = x; then
4889 AR="false"
4890 else
4891 case $cross_compiling:$ac_tool_warned in
4892 yes:)
4893 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4894 whose name does not start with the host triplet. If you think this
4895 configuration is useful to you, please write to [email protected]." >&5
4896 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4897 whose name does not start with the host triplet. If you think this
4898 configuration is useful to you, please write to [email protected]." >&2;}
4899 ac_tool_warned=yes ;;
4900 esac
4901 AR=$ac_ct_AR
4902 fi
4903 else
4904 AR="$ac_cv_prog_AR"
4905 fi
4906
4907 test -z "$AR" && AR=ar
4908 test -z "$AR_FLAGS" && AR_FLAGS=cru
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920 if test -n "$ac_tool_prefix"; then
4921 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4922 set dummy ${ac_tool_prefix}strip; ac_word=$2
4923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4925 if test "${ac_cv_prog_STRIP+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928 if test -n "$STRIP"; then
4929 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4930 else
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4933 do
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4938 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 break 2
4941 fi
4942 done
4943 done
4944 IFS=$as_save_IFS
4945
4946 fi
4947 fi
4948 STRIP=$ac_cv_prog_STRIP
4949 if test -n "$STRIP"; then
4950 { echo "$as_me:$LINENO: result: $STRIP" >&5
4951 echo "${ECHO_T}$STRIP" >&6; }
4952 else
4953 { echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6; }
4955 fi
4956
4957
4958 fi
4959 if test -z "$ac_cv_prog_STRIP"; then
4960 ac_ct_STRIP=$STRIP
4961 # Extract the first word of "strip", so it can be a program name with args.
4962 set dummy strip; ac_word=$2
4963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4965 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968 if test -n "$ac_ct_STRIP"; then
4969 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4973 do
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4978 ac_cv_prog_ac_ct_STRIP="strip"
4979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 break 2
4981 fi
4982 done
4983 done
4984 IFS=$as_save_IFS
4985
4986 fi
4987 fi
4988 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4989 if test -n "$ac_ct_STRIP"; then
4990 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4991 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4992 else
4993 { echo "$as_me:$LINENO: result: no" >&5
4994 echo "${ECHO_T}no" >&6; }
4995 fi
4996
4997 if test "x$ac_ct_STRIP" = x; then
4998 STRIP=":"
4999 else
5000 case $cross_compiling:$ac_tool_warned in
5001 yes:)
5002 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5003 whose name does not start with the host triplet. If you think this
5004 configuration is useful to you, please write to [email protected]." >&5
5005 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5006 whose name does not start with the host triplet. If you think this
5007 configuration is useful to you, please write to [email protected]." >&2;}
5008 ac_tool_warned=yes ;;
5009 esac
5010 STRIP=$ac_ct_STRIP
5011 fi
5012 else
5013 STRIP="$ac_cv_prog_STRIP"
5014 fi
5015
5016 test -z "$STRIP" && STRIP=:
5017
5018
5019
5020
5021
5022
5023 if test -n "$ac_tool_prefix"; then
5024 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5025 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5028 if test "${ac_cv_prog_RANLIB+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031 if test -n "$RANLIB"; then
5032 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5033 else
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5036 do
5037 IFS=$as_save_IFS
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 break 2
5044 fi
5045 done
5046 done
5047 IFS=$as_save_IFS
5048
5049 fi
5050 fi
5051 RANLIB=$ac_cv_prog_RANLIB
5052 if test -n "$RANLIB"; then
5053 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5054 echo "${ECHO_T}$RANLIB" >&6; }
5055 else
5056 { echo "$as_me:$LINENO: result: no" >&5
5057 echo "${ECHO_T}no" >&6; }
5058 fi
5059
5060
5061 fi
5062 if test -z "$ac_cv_prog_RANLIB"; then
5063 ac_ct_RANLIB=$RANLIB
5064 # Extract the first word of "ranlib", so it can be a program name with args.
5065 set dummy ranlib; ac_word=$2
5066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5068 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071 if test -n "$ac_ct_RANLIB"; then
5072 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5073 else
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_prog_ac_ct_RANLIB="ranlib"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5084 fi
5085 done
5086 done
5087 IFS=$as_save_IFS
5088
5089 fi
5090 fi
5091 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5092 if test -n "$ac_ct_RANLIB"; then
5093 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5094 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5095 else
5096 { echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6; }
5098 fi
5099
5100 if test "x$ac_ct_RANLIB" = x; then
5101 RANLIB=":"
5102 else
5103 case $cross_compiling:$ac_tool_warned in
5104 yes:)
5105 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5106 whose name does not start with the host triplet. If you think this
5107 configuration is useful to you, please write to [email protected]." >&5
5108 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5109 whose name does not start with the host triplet. If you think this
5110 configuration is useful to you, please write to [email protected]." >&2;}
5111 ac_tool_warned=yes ;;
5112 esac
5113 RANLIB=$ac_ct_RANLIB
5114 fi
5115 else
5116 RANLIB="$ac_cv_prog_RANLIB"
5117 fi
5118
5119 test -z "$RANLIB" && RANLIB=:
5120
5121
5122
5123
5124
5125
5126 # Determine commands to create old-style static archives.
5127 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5128 old_postinstall_cmds='chmod 644 $oldlib'
5129 old_postuninstall_cmds=
5130
5131 if test -n "$RANLIB"; then
5132 case $host_os in
5133 openbsd*)
5134 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5135 ;;
5136 *)
5137 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5138 ;;
5139 esac
5140 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5141 fi
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176 # If no C compiler was specified, use CC.
5177 LTCC=${LTCC-"$CC"}
5178
5179 # If no C compiler flags were specified, use CFLAGS.
5180 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5181
5182 # Allow CC to be a program name with arguments.
5183 compiler=$CC
5184
5185
5186 # Check for command to grab the raw symbol name followed by C symbol from nm.
5187 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5188 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5189 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 else
5192
5193 # These are sane defaults that work on at least a few old systems.
5194 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5195
5196 # Character class describing NM global symbol codes.
5197 symcode='[BCDEGRST]'
5198
5199 # Regexp to match symbols that can be accessed directly from C.
5200 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5201
5202 # Define system-specific variables.
5203 case $host_os in
5204 aix*)
5205 symcode='[BCDT]'
5206 ;;
5207 cygwin* | mingw* | pw32*)
5208 symcode='[ABCDGISTW]'
5209 ;;
5210 hpux*)
5211 if test "$host_cpu" = ia64; then
5212 symcode='[ABCDEGRST]'
5213 fi
5214 ;;
5215 irix* | nonstopux*)
5216 symcode='[BCDEGRST]'
5217 ;;
5218 osf*)
5219 symcode='[BCDEGQRST]'
5220 ;;
5221 solaris*)
5222 symcode='[BDRT]'
5223 ;;
5224 sco3.2v5*)
5225 symcode='[DT]'
5226 ;;
5227 sysv4.2uw2*)
5228 symcode='[DT]'
5229 ;;
5230 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5231 symcode='[ABDT]'
5232 ;;
5233 sysv4)
5234 symcode='[DFNSTU]'
5235 ;;
5236 esac
5237
5238 # If we're using GNU nm, then use its standard symbol codes.
5239 case `$NM -V 2>&1` in
5240 *GNU* | *'with BFD'*)
5241 symcode='[ABCDGIRSTW]' ;;
5242 esac
5243
5244 # Transform an extracted symbol line into a proper C declaration.
5245 # Some systems (esp. on ia64) link data and code symbols differently,
5246 # so use this general approach.
5247 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5248
5249 # Transform an extracted symbol line into symbol name and symbol address
5250 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5251 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5252
5253 # Handle CRLF in mingw tool chain
5254 opt_cr=
5255 case $build_os in
5256 mingw*)
5257 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5258 ;;
5259 esac
5260
5261 # Try without a prefix underscore, then with it.
5262 for ac_symprfx in "" "_"; do
5263
5264 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5265 symxfrm="\\1 $ac_symprfx\\2 \\2"
5266
5267 # Write the raw and C identifiers.
5268 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5269 # Fake it for dumpbin and say T for any non-static function
5270 # and D for any global variable.
5271 # Also find C++ and __fastcall symbols from MSVC++,
5272 # which start with @ or ?.
5273 lt_cv_sys_global_symbol_pipe="$AWK '"\
5274 " {last_section=section; section=\$ 3};"\
5275 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5276 " \$ 0!~/External *\|/{next};"\
5277 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5278 " {if(hide[section]) next};"\
5279 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5280 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5281 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5282 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5283 " ' prfx=^$ac_symprfx"
5284 else
5285 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5286 fi
5287
5288 # Check to see that the pipe works correctly.
5289 pipe_works=no
5290
5291 rm -f conftest*
5292 cat > conftest.$ac_ext <<_LT_EOF
5293 #ifdef __cplusplus
5294 extern "C" {
5295 #endif
5296 char nm_test_var;
5297 void nm_test_func(void);
5298 void nm_test_func(void){}
5299 #ifdef __cplusplus
5300 }
5301 #endif
5302 int main(){nm_test_var='a';nm_test_func();return(0);}
5303 _LT_EOF
5304
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306 (eval $ac_compile) 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; then
5310 # Now try to grab the symbols.
5311 nlist=conftest.nm
5312 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5313 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } && test -s "$nlist"; then
5317 # Try sorting and uniquifying the output.
5318 if sort "$nlist" | uniq > "$nlist"T; then
5319 mv -f "$nlist"T "$nlist"
5320 else
5321 rm -f "$nlist"T
5322 fi
5323
5324 # Make sure that we snagged all the symbols we need.
5325 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5326 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5327 cat <<_LT_EOF > conftest.$ac_ext
5328 #ifdef __cplusplus
5329 extern "C" {
5330 #endif
5331
5332 _LT_EOF
5333 # Now generate the symbol file.
5334 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5335
5336 cat <<_LT_EOF >> conftest.$ac_ext
5337
5338 /* The mapping between symbol names and symbols. */
5339 const struct {
5340 const char *name;
5341 void *address;
5342 }
5343 lt__PROGRAM__LTX_preloaded_symbols[] =
5344 {
5345 { "@PROGRAM@", (void *) 0 },
5346 _LT_EOF
5347 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5348 cat <<\_LT_EOF >> conftest.$ac_ext
5349 {0, (void *) 0}
5350 };
5351
5352 /* This works around a problem in FreeBSD linker */
5353 #ifdef FREEBSD_WORKAROUND
5354 static const void *lt_preloaded_setup() {
5355 return lt__PROGRAM__LTX_preloaded_symbols;
5356 }
5357 #endif
5358
5359 #ifdef __cplusplus
5360 }
5361 #endif
5362 _LT_EOF
5363 # Now try linking the two files.
5364 mv conftest.$ac_objext conftstm.$ac_objext
5365 lt_save_LIBS="$LIBS"
5366 lt_save_CFLAGS="$CFLAGS"
5367 LIBS="conftstm.$ac_objext"
5368 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5370 (eval $ac_link) 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5374 pipe_works=yes
5375 fi
5376 LIBS="$lt_save_LIBS"
5377 CFLAGS="$lt_save_CFLAGS"
5378 else
5379 echo "cannot find nm_test_func in $nlist" >&5
5380 fi
5381 else
5382 echo "cannot find nm_test_var in $nlist" >&5
5383 fi
5384 else
5385 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5386 fi
5387 else
5388 echo "$progname: failed program was:" >&5
5389 cat conftest.$ac_ext >&5
5390 fi
5391 rm -rf conftest* conftst*
5392
5393 # Do not use the global_symbol_pipe unless it works.
5394 if test "$pipe_works" = yes; then
5395 break
5396 else
5397 lt_cv_sys_global_symbol_pipe=
5398 fi
5399 done
5400
5401 fi
5402
5403 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5404 lt_cv_sys_global_symbol_to_cdecl=
5405 fi
5406 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5407 { echo "$as_me:$LINENO: result: failed" >&5
5408 echo "${ECHO_T}failed" >&6; }
5409 else
5410 { echo "$as_me:$LINENO: result: ok" >&5
5411 echo "${ECHO_T}ok" >&6; }
5412 fi
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436 # Check whether --enable-libtool-lock was given.
5437 if test "${enable_libtool_lock+set}" = set; then
5438 enableval=$enable_libtool_lock;
5439 fi
5440
5441 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5442
5443 # Some flags need to be propagated to the compiler or linker for good
5444 # libtool support.
5445 case $host in
5446 ia64-*-hpux*)
5447 # Find out which ABI we are using.
5448 echo 'int i;' > conftest.$ac_ext
5449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5450 (eval $ac_compile) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; then
5454 case `/usr/bin/file conftest.$ac_objext` in
5455 *ELF-32*)
5456 HPUX_IA64_MODE="32"
5457 ;;
5458 *ELF-64*)
5459 HPUX_IA64_MODE="64"
5460 ;;
5461 esac
5462 fi
5463 rm -rf conftest*
5464 ;;
5465 *-*-irix6*)
5466 # Find out which ABI we are using.
5467 echo '#line 5467 "configure"' > conftest.$ac_ext
5468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5469 (eval $ac_compile) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; then
5473 if test "$lt_cv_prog_gnu_ld" = yes; then
5474 case `/usr/bin/file conftest.$ac_objext` in
5475 *32-bit*)
5476 LD="${LD-ld} -melf32bsmip"
5477 ;;
5478 *N32*)
5479 LD="${LD-ld} -melf32bmipn32"
5480 ;;
5481 *64-bit*)
5482 LD="${LD-ld} -melf64bmip"
5483 ;;
5484 esac
5485 else
5486 case `/usr/bin/file conftest.$ac_objext` in
5487 *32-bit*)
5488 LD="${LD-ld} -32"
5489 ;;
5490 *N32*)
5491 LD="${LD-ld} -n32"
5492 ;;
5493 *64-bit*)
5494 LD="${LD-ld} -64"
5495 ;;
5496 esac
5497 fi
5498 fi
5499 rm -rf conftest*
5500 ;;
5501
5502 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5503 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5504 # Find out which ABI we are using.
5505 echo 'int i;' > conftest.$ac_ext
5506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5507 (eval $ac_compile) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; then
5511 case `/usr/bin/file conftest.o` in
5512 *32-bit*)
5513 case $host in
5514 x86_64-*kfreebsd*-gnu)
5515 LD="${LD-ld} -m elf_i386_fbsd"
5516 ;;
5517 x86_64-*linux*)
5518 LD="${LD-ld} -m elf_i386"
5519 ;;
5520 ppc64-*linux*|powerpc64-*linux*)
5521 LD="${LD-ld} -m elf32ppclinux"
5522 ;;
5523 s390x-*linux*)
5524 LD="${LD-ld} -m elf_s390"
5525 ;;
5526 sparc64-*linux*)
5527 LD="${LD-ld} -m elf32_sparc"
5528 ;;
5529 esac
5530 ;;
5531 *64-bit*)
5532 case $host in
5533 x86_64-*kfreebsd*-gnu)
5534 LD="${LD-ld} -m elf_x86_64_fbsd"
5535 ;;
5536 x86_64-*linux*)
5537 LD="${LD-ld} -m elf_x86_64"
5538 ;;
5539 ppc*-*linux*|powerpc*-*linux*)
5540 LD="${LD-ld} -m elf64ppc"
5541 ;;
5542 s390*-*linux*|s390*-*tpf*)
5543 LD="${LD-ld} -m elf64_s390"
5544 ;;
5545 sparc*-*linux*)
5546 LD="${LD-ld} -m elf64_sparc"
5547 ;;
5548 esac
5549 ;;
5550 esac
5551 fi
5552 rm -rf conftest*
5553 ;;
5554
5555 *-*-sco3.2v5*)
5556 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5557 SAVE_CFLAGS="$CFLAGS"
5558 CFLAGS="$CFLAGS -belf"
5559 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5560 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5561 if test "${lt_cv_cc_needs_belf+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 else
5564 ac_ext=c
5565 ac_cpp='$CPP $CPPFLAGS'
5566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5569
5570 cat >conftest.$ac_ext <<_ACEOF
5571 /* confdefs.h. */
5572 _ACEOF
5573 cat confdefs.h >>conftest.$ac_ext
5574 cat >>conftest.$ac_ext <<_ACEOF
5575 /* end confdefs.h. */
5576
5577 int
5578 main ()
5579 {
5580
5581 ;
5582 return 0;
5583 }
5584 _ACEOF
5585 rm -f conftest.$ac_objext conftest$ac_exeext
5586 if { (ac_try="$ac_link"
5587 case "(($ac_try" in
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5590 esac
5591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592 (eval "$ac_link") 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } && {
5599 test -z "$ac_c_werror_flag" ||
5600 test ! -s conftest.err
5601 } && test -s conftest$ac_exeext &&
5602 $as_test_x conftest$ac_exeext; then
5603 lt_cv_cc_needs_belf=yes
5604 else
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5607
5608 lt_cv_cc_needs_belf=no
5609 fi
5610
5611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5612 conftest$ac_exeext conftest.$ac_ext
5613 ac_ext=c
5614 ac_cpp='$CPP $CPPFLAGS'
5615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5618
5619 fi
5620 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5621 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5622 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5623 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5624 CFLAGS="$SAVE_CFLAGS"
5625 fi
5626 ;;
5627 sparc*-*solaris*)
5628 # Find out which ABI we are using.
5629 echo 'int i;' > conftest.$ac_ext
5630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5631 (eval $ac_compile) 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; then
5635 case `/usr/bin/file conftest.o` in
5636 *64-bit*)
5637 case $lt_cv_prog_gnu_ld in
5638 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5639 *)
5640 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5641 LD="${LD-ld} -64"
5642 fi
5643 ;;
5644 esac
5645 ;;
5646 esac
5647 fi
5648 rm -rf conftest*
5649 ;;
5650 esac
5651
5652 need_locks="$enable_libtool_lock"
5653
5654
5655 case $host_os in
5656 rhapsody* | darwin*)
5657 if test -n "$ac_tool_prefix"; then
5658 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5659 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5662 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665 if test -n "$DSYMUTIL"; then
5666 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5675 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 break 2
5678 fi
5679 done
5680 done
5681 IFS=$as_save_IFS
5682
5683 fi
5684 fi
5685 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5686 if test -n "$DSYMUTIL"; then
5687 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5688 echo "${ECHO_T}$DSYMUTIL" >&6; }
5689 else
5690 { echo "$as_me:$LINENO: result: no" >&5
5691 echo "${ECHO_T}no" >&6; }
5692 fi
5693
5694
5695 fi
5696 if test -z "$ac_cv_prog_DSYMUTIL"; then
5697 ac_ct_DSYMUTIL=$DSYMUTIL
5698 # Extract the first word of "dsymutil", so it can be a program name with args.
5699 set dummy dsymutil; ac_word=$2
5700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5702 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 else
5705 if test -n "$ac_ct_DSYMUTIL"; then
5706 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5707 else
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5710 do
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 break 2
5718 fi
5719 done
5720 done
5721 IFS=$as_save_IFS
5722
5723 fi
5724 fi
5725 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5726 if test -n "$ac_ct_DSYMUTIL"; then
5727 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5728 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5729 else
5730 { echo "$as_me:$LINENO: result: no" >&5
5731 echo "${ECHO_T}no" >&6; }
5732 fi
5733
5734 if test "x$ac_ct_DSYMUTIL" = x; then
5735 DSYMUTIL=":"
5736 else
5737 case $cross_compiling:$ac_tool_warned in
5738 yes:)
5739 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5740 whose name does not start with the host triplet. If you think this
5741 configuration is useful to you, please write to [email protected]." >&5
5742 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5743 whose name does not start with the host triplet. If you think this
5744 configuration is useful to you, please write to [email protected]." >&2;}
5745 ac_tool_warned=yes ;;
5746 esac
5747 DSYMUTIL=$ac_ct_DSYMUTIL
5748 fi
5749 else
5750 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5751 fi
5752
5753 if test -n "$ac_tool_prefix"; then
5754 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5755 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5758 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761 if test -n "$NMEDIT"; then
5762 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767 IFS=$as_save_IFS
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5771 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 break 2
5774 fi
5775 done
5776 done
5777 IFS=$as_save_IFS
5778
5779 fi
5780 fi
5781 NMEDIT=$ac_cv_prog_NMEDIT
5782 if test -n "$NMEDIT"; then
5783 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5784 echo "${ECHO_T}$NMEDIT" >&6; }
5785 else
5786 { echo "$as_me:$LINENO: result: no" >&5
5787 echo "${ECHO_T}no" >&6; }
5788 fi
5789
5790
5791 fi
5792 if test -z "$ac_cv_prog_NMEDIT"; then
5793 ac_ct_NMEDIT=$NMEDIT
5794 # Extract the first word of "nmedit", so it can be a program name with args.
5795 set dummy nmedit; ac_word=$2
5796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5798 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801 if test -n "$ac_ct_NMEDIT"; then
5802 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5811 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 break 2
5814 fi
5815 done
5816 done
5817 IFS=$as_save_IFS
5818
5819 fi
5820 fi
5821 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5822 if test -n "$ac_ct_NMEDIT"; then
5823 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5824 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5825 else
5826 { echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6; }
5828 fi
5829
5830 if test "x$ac_ct_NMEDIT" = x; then
5831 NMEDIT=":"
5832 else
5833 case $cross_compiling:$ac_tool_warned in
5834 yes:)
5835 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5836 whose name does not start with the host triplet. If you think this
5837 configuration is useful to you, please write to [email protected]." >&5
5838 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5839 whose name does not start with the host triplet. If you think this
5840 configuration is useful to you, please write to [email protected]." >&2;}
5841 ac_tool_warned=yes ;;
5842 esac
5843 NMEDIT=$ac_ct_NMEDIT
5844 fi
5845 else
5846 NMEDIT="$ac_cv_prog_NMEDIT"
5847 fi
5848
5849 if test -n "$ac_tool_prefix"; then
5850 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5851 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5854 if test "${ac_cv_prog_LIPO+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 else
5857 if test -n "$LIPO"; then
5858 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5859 else
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 for as_dir in $PATH
5862 do
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5867 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 break 2
5870 fi
5871 done
5872 done
5873 IFS=$as_save_IFS
5874
5875 fi
5876 fi
5877 LIPO=$ac_cv_prog_LIPO
5878 if test -n "$LIPO"; then
5879 { echo "$as_me:$LINENO: result: $LIPO" >&5
5880 echo "${ECHO_T}$LIPO" >&6; }
5881 else
5882 { echo "$as_me:$LINENO: result: no" >&5
5883 echo "${ECHO_T}no" >&6; }
5884 fi
5885
5886
5887 fi
5888 if test -z "$ac_cv_prog_LIPO"; then
5889 ac_ct_LIPO=$LIPO
5890 # Extract the first word of "lipo", so it can be a program name with args.
5891 set dummy lipo; ac_word=$2
5892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5894 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897 if test -n "$ac_ct_LIPO"; then
5898 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5899 else
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5902 do
5903 IFS=$as_save_IFS
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5907 ac_cv_prog_ac_ct_LIPO="lipo"
5908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 break 2
5910 fi
5911 done
5912 done
5913 IFS=$as_save_IFS
5914
5915 fi
5916 fi
5917 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5918 if test -n "$ac_ct_LIPO"; then
5919 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5920 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5921 else
5922 { echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6; }
5924 fi
5925
5926 if test "x$ac_ct_LIPO" = x; then
5927 LIPO=":"
5928 else
5929 case $cross_compiling:$ac_tool_warned in
5930 yes:)
5931 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5932 whose name does not start with the host triplet. If you think this
5933 configuration is useful to you, please write to [email protected]." >&5
5934 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5935 whose name does not start with the host triplet. If you think this
5936 configuration is useful to you, please write to [email protected]." >&2;}
5937 ac_tool_warned=yes ;;
5938 esac
5939 LIPO=$ac_ct_LIPO
5940 fi
5941 else
5942 LIPO="$ac_cv_prog_LIPO"
5943 fi
5944
5945 if test -n "$ac_tool_prefix"; then
5946 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5947 set dummy ${ac_tool_prefix}otool; ac_word=$2
5948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5950 if test "${ac_cv_prog_OTOOL+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953 if test -n "$OTOOL"; then
5954 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5963 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 break 2
5966 fi
5967 done
5968 done
5969 IFS=$as_save_IFS
5970
5971 fi
5972 fi
5973 OTOOL=$ac_cv_prog_OTOOL
5974 if test -n "$OTOOL"; then
5975 { echo "$as_me:$LINENO: result: $OTOOL" >&5
5976 echo "${ECHO_T}$OTOOL" >&6; }
5977 else
5978 { echo "$as_me:$LINENO: result: no" >&5
5979 echo "${ECHO_T}no" >&6; }
5980 fi
5981
5982
5983 fi
5984 if test -z "$ac_cv_prog_OTOOL"; then
5985 ac_ct_OTOOL=$OTOOL
5986 # Extract the first word of "otool", so it can be a program name with args.
5987 set dummy otool; ac_word=$2
5988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5990 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993 if test -n "$ac_ct_OTOOL"; then
5994 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5995 else
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 for as_dir in $PATH
5998 do
5999 IFS=$as_save_IFS
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6003 ac_cv_prog_ac_ct_OTOOL="otool"
6004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005 break 2
6006 fi
6007 done
6008 done
6009 IFS=$as_save_IFS
6010
6011 fi
6012 fi
6013 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6014 if test -n "$ac_ct_OTOOL"; then
6015 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6016 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6017 else
6018 { echo "$as_me:$LINENO: result: no" >&5
6019 echo "${ECHO_T}no" >&6; }
6020 fi
6021
6022 if test "x$ac_ct_OTOOL" = x; then
6023 OTOOL=":"
6024 else
6025 case $cross_compiling:$ac_tool_warned in
6026 yes:)
6027 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6028 whose name does not start with the host triplet. If you think this
6029 configuration is useful to you, please write to [email protected]." >&5
6030 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6031 whose name does not start with the host triplet. If you think this
6032 configuration is useful to you, please write to [email protected]." >&2;}
6033 ac_tool_warned=yes ;;
6034 esac
6035 OTOOL=$ac_ct_OTOOL
6036 fi
6037 else
6038 OTOOL="$ac_cv_prog_OTOOL"
6039 fi
6040
6041 if test -n "$ac_tool_prefix"; then
6042 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6043 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6046 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049 if test -n "$OTOOL64"; then
6050 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6051 else
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6054 do
6055 IFS=$as_save_IFS
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 break 2
6062 fi
6063 done
6064 done
6065 IFS=$as_save_IFS
6066
6067 fi
6068 fi
6069 OTOOL64=$ac_cv_prog_OTOOL64
6070 if test -n "$OTOOL64"; then
6071 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6072 echo "${ECHO_T}$OTOOL64" >&6; }
6073 else
6074 { echo "$as_me:$LINENO: result: no" >&5
6075 echo "${ECHO_T}no" >&6; }
6076 fi
6077
6078
6079 fi
6080 if test -z "$ac_cv_prog_OTOOL64"; then
6081 ac_ct_OTOOL64=$OTOOL64
6082 # Extract the first word of "otool64", so it can be a program name with args.
6083 set dummy otool64; ac_word=$2
6084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6086 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 if test -n "$ac_ct_OTOOL64"; then
6090 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6091 else
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 for as_dir in $PATH
6094 do
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6099 ac_cv_prog_ac_ct_OTOOL64="otool64"
6100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 break 2
6102 fi
6103 done
6104 done
6105 IFS=$as_save_IFS
6106
6107 fi
6108 fi
6109 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6110 if test -n "$ac_ct_OTOOL64"; then
6111 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6112 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6113 else
6114 { echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6; }
6116 fi
6117
6118 if test "x$ac_ct_OTOOL64" = x; then
6119 OTOOL64=":"
6120 else
6121 case $cross_compiling:$ac_tool_warned in
6122 yes:)
6123 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6124 whose name does not start with the host triplet. If you think this
6125 configuration is useful to you, please write to [email protected]." >&5
6126 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6127 whose name does not start with the host triplet. If you think this
6128 configuration is useful to you, please write to [email protected]." >&2;}
6129 ac_tool_warned=yes ;;
6130 esac
6131 OTOOL64=$ac_ct_OTOOL64
6132 fi
6133 else
6134 OTOOL64="$ac_cv_prog_OTOOL64"
6135 fi
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6164 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6165 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168 lt_cv_apple_cc_single_mod=no
6169 if test -z "${LT_MULTI_MODULE}"; then
6170 # By default we will add the -single_module flag. You can override
6171 # by either setting the environment variable LT_MULTI_MODULE
6172 # non-empty at configure time, or by adding -multi_module to the
6173 # link flags.
6174 rm -rf libconftest.dylib*
6175 echo "int foo(void){return 1;}" > conftest.c
6176 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6177 -dynamiclib -Wl,-single_module conftest.c" >&5
6178 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6179 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6180 _lt_result=$?
6181 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6182 lt_cv_apple_cc_single_mod=yes
6183 else
6184 cat conftest.err >&5
6185 fi
6186 rm -rf libconftest.dylib*
6187 rm -f conftest.*
6188 fi
6189 fi
6190 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6191 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6192 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6193 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6194 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197 lt_cv_ld_exported_symbols_list=no
6198 save_LDFLAGS=$LDFLAGS
6199 echo "_main" > conftest.sym
6200 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6201 cat >conftest.$ac_ext <<_ACEOF
6202 /* confdefs.h. */
6203 _ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6207
6208 int
6209 main ()
6210 {
6211
6212 ;
6213 return 0;
6214 }
6215 _ACEOF
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (ac_try="$ac_link"
6218 case "(($ac_try" in
6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6221 esac
6222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223 (eval "$ac_link") 2>conftest.er1
6224 ac_status=$?
6225 grep -v '^ *+' conftest.er1 >conftest.err
6226 rm -f conftest.er1
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } && {
6230 test -z "$ac_c_werror_flag" ||
6231 test ! -s conftest.err
6232 } && test -s conftest$ac_exeext &&
6233 $as_test_x conftest$ac_exeext; then
6234 lt_cv_ld_exported_symbols_list=yes
6235 else
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239 lt_cv_ld_exported_symbols_list=no
6240 fi
6241
6242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6243 conftest$ac_exeext conftest.$ac_ext
6244 LDFLAGS="$save_LDFLAGS"
6245
6246 fi
6247 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6248 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6249 case $host_os in
6250 rhapsody* | darwin1.[012])
6251 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6252 darwin1.*)
6253 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6254 darwin*) # darwin 5.x on
6255 # if running on 10.5 or later, the deployment target defaults
6256 # to the OS version, if on x86, and 10.4, the deployment
6257 # target defaults to 10.4. Don't you love it?
6258 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6259 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6260 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6261 10.[012]*)
6262 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6263 10.*)
6264 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6265 esac
6266 ;;
6267 esac
6268 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6269 _lt_dar_single_mod='$single_module'
6270 fi
6271 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6272 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6273 else
6274 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6275 fi
6276 if test "$DSYMUTIL" != ":"; then
6277 _lt_dsymutil='~$DSYMUTIL $lib || :'
6278 else
6279 _lt_dsymutil=
6280 fi
6281 ;;
6282 esac
6283
6284 ac_ext=c
6285 ac_cpp='$CPP $CPPFLAGS'
6286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6289 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6290 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6291 # On Suns, sometimes $CPP names a directory.
6292 if test -n "$CPP" && test -d "$CPP"; then
6293 CPP=
6294 fi
6295 if test -z "$CPP"; then
6296 if test "${ac_cv_prog_CPP+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299 # Double quotes because CPP needs to be expanded
6300 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6301 do
6302 ac_preproc_ok=false
6303 for ac_c_preproc_warn_flag in '' yes
6304 do
6305 # Use a header file that comes with gcc, so configuring glibc
6306 # with a fresh cross-compiler works.
6307 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6308 # <limits.h> exists even on freestanding compilers.
6309 # On the NeXT, cc -E runs the code through the compiler's parser,
6310 # not just through cpp. "Syntax error" is here to catch this case.
6311 cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h. */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6317 #ifdef __STDC__
6318 # include <limits.h>
6319 #else
6320 # include <assert.h>
6321 #endif
6322 Syntax error
6323 _ACEOF
6324 if { (ac_try="$ac_cpp conftest.$ac_ext"
6325 case "(($ac_try" in
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6328 esac
6329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6331 ac_status=$?
6332 grep -v '^ *+' conftest.er1 >conftest.err
6333 rm -f conftest.er1
6334 cat conftest.err >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } >/dev/null && {
6337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6338 test ! -s conftest.err
6339 }; then
6340 :
6341 else
6342 echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6344
6345 # Broken: fails on valid input.
6346 continue
6347 fi
6348
6349 rm -f conftest.err conftest.$ac_ext
6350
6351 # OK, works on sane cases. Now check whether nonexistent headers
6352 # can be detected and how.
6353 cat >conftest.$ac_ext <<_ACEOF
6354 /* confdefs.h. */
6355 _ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6359 #include <ac_nonexistent.h>
6360 _ACEOF
6361 if { (ac_try="$ac_cpp conftest.$ac_ext"
6362 case "(($ac_try" in
6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6365 esac
6366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6368 ac_status=$?
6369 grep -v '^ *+' conftest.er1 >conftest.err
6370 rm -f conftest.er1
6371 cat conftest.err >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } >/dev/null && {
6374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6375 test ! -s conftest.err
6376 }; then
6377 # Broken: success on invalid input.
6378 continue
6379 else
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6382
6383 # Passes both tests.
6384 ac_preproc_ok=:
6385 break
6386 fi
6387
6388 rm -f conftest.err conftest.$ac_ext
6389
6390 done
6391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6392 rm -f conftest.err conftest.$ac_ext
6393 if $ac_preproc_ok; then
6394 break
6395 fi
6396
6397 done
6398 ac_cv_prog_CPP=$CPP
6399
6400 fi
6401 CPP=$ac_cv_prog_CPP
6402 else
6403 ac_cv_prog_CPP=$CPP
6404 fi
6405 { echo "$as_me:$LINENO: result: $CPP" >&5
6406 echo "${ECHO_T}$CPP" >&6; }
6407 ac_preproc_ok=false
6408 for ac_c_preproc_warn_flag in '' yes
6409 do
6410 # Use a header file that comes with gcc, so configuring glibc
6411 # with a fresh cross-compiler works.
6412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6413 # <limits.h> exists even on freestanding compilers.
6414 # On the NeXT, cc -E runs the code through the compiler's parser,
6415 # not just through cpp. "Syntax error" is here to catch this case.
6416 cat >conftest.$ac_ext <<_ACEOF
6417 /* confdefs.h. */
6418 _ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 #ifdef __STDC__
6423 # include <limits.h>
6424 #else
6425 # include <assert.h>
6426 #endif
6427 Syntax error
6428 _ACEOF
6429 if { (ac_try="$ac_cpp conftest.$ac_ext"
6430 case "(($ac_try" in
6431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432 *) ac_try_echo=$ac_try;;
6433 esac
6434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6436 ac_status=$?
6437 grep -v '^ *+' conftest.er1 >conftest.err
6438 rm -f conftest.er1
6439 cat conftest.err >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } >/dev/null && {
6442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6443 test ! -s conftest.err
6444 }; then
6445 :
6446 else
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6449
6450 # Broken: fails on valid input.
6451 continue
6452 fi
6453
6454 rm -f conftest.err conftest.$ac_ext
6455
6456 # OK, works on sane cases. Now check whether nonexistent headers
6457 # can be detected and how.
6458 cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h. */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 #include <ac_nonexistent.h>
6465 _ACEOF
6466 if { (ac_try="$ac_cpp conftest.$ac_ext"
6467 case "(($ac_try" in
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6470 esac
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6473 ac_status=$?
6474 grep -v '^ *+' conftest.er1 >conftest.err
6475 rm -f conftest.er1
6476 cat conftest.err >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } >/dev/null && {
6479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 }; then
6482 # Broken: success on invalid input.
6483 continue
6484 else
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6487
6488 # Passes both tests.
6489 ac_preproc_ok=:
6490 break
6491 fi
6492
6493 rm -f conftest.err conftest.$ac_ext
6494
6495 done
6496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6497 rm -f conftest.err conftest.$ac_ext
6498 if $ac_preproc_ok; then
6499 :
6500 else
6501 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6502 See \`config.log' for more details." >&5
6503 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6504 See \`config.log' for more details." >&2;}
6505 { (exit 1); exit 1; }; }
6506 fi
6507
6508 ac_ext=c
6509 ac_cpp='$CPP $CPPFLAGS'
6510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6513
6514
6515 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6517 if test "${ac_cv_header_stdc+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 #include <stdlib.h>
6527 #include <stdarg.h>
6528 #include <string.h>
6529 #include <float.h>
6530
6531 int
6532 main ()
6533 {
6534
6535 ;
6536 return 0;
6537 }
6538 _ACEOF
6539 rm -f conftest.$ac_objext
6540 if { (ac_try="$ac_compile"
6541 case "(($ac_try" in
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6544 esac
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_compile") 2>conftest.er1
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && {
6553 test -z "$ac_c_werror_flag" ||
6554 test ! -s conftest.err
6555 } && test -s conftest.$ac_objext; then
6556 ac_cv_header_stdc=yes
6557 else
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6560
6561 ac_cv_header_stdc=no
6562 fi
6563
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565
6566 if test $ac_cv_header_stdc = yes; then
6567 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6568 cat >conftest.$ac_ext <<_ACEOF
6569 /* confdefs.h. */
6570 _ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6574 #include <string.h>
6575
6576 _ACEOF
6577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6578 $EGREP "memchr" >/dev/null 2>&1; then
6579 :
6580 else
6581 ac_cv_header_stdc=no
6582 fi
6583 rm -f conftest*
6584
6585 fi
6586
6587 if test $ac_cv_header_stdc = yes; then
6588 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6589 cat >conftest.$ac_ext <<_ACEOF
6590 /* confdefs.h. */
6591 _ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6595 #include <stdlib.h>
6596
6597 _ACEOF
6598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6599 $EGREP "free" >/dev/null 2>&1; then
6600 :
6601 else
6602 ac_cv_header_stdc=no
6603 fi
6604 rm -f conftest*
6605
6606 fi
6607
6608 if test $ac_cv_header_stdc = yes; then
6609 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6610 if test "$cross_compiling" = yes; then
6611 :
6612 else
6613 cat >conftest.$ac_ext <<_ACEOF
6614 /* confdefs.h. */
6615 _ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6619 #include <ctype.h>
6620 #include <stdlib.h>
6621 #if ((' ' & 0x0FF) == 0x020)
6622 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6623 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6624 #else
6625 # define ISLOWER(c) \
6626 (('a' <= (c) && (c) <= 'i') \
6627 || ('j' <= (c) && (c) <= 'r') \
6628 || ('s' <= (c) && (c) <= 'z'))
6629 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6630 #endif
6631
6632 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6633 int
6634 main ()
6635 {
6636 int i;
6637 for (i = 0; i < 256; i++)
6638 if (XOR (islower (i), ISLOWER (i))
6639 || toupper (i) != TOUPPER (i))
6640 return 2;
6641 return 0;
6642 }
6643 _ACEOF
6644 rm -f conftest$ac_exeext
6645 if { (ac_try="$ac_link"
6646 case "(($ac_try" in
6647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648 *) ac_try_echo=$ac_try;;
6649 esac
6650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651 (eval "$ac_link") 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6655 { (case "(($ac_try" in
6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6658 esac
6659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660 (eval "$ac_try") 2>&5
6661 ac_status=$?
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; }; then
6664 :
6665 else
6666 echo "$as_me: program exited with status $ac_status" >&5
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6669
6670 ( exit $ac_status )
6671 ac_cv_header_stdc=no
6672 fi
6673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6674 fi
6675
6676
6677 fi
6678 fi
6679 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6680 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6681 if test $ac_cv_header_stdc = yes; then
6682
6683 cat >>confdefs.h <<\_ACEOF
6684 #define STDC_HEADERS 1
6685 _ACEOF
6686
6687 fi
6688
6689 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6700 inttypes.h stdint.h unistd.h
6701 do
6702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708 cat >conftest.$ac_ext <<_ACEOF
6709 /* confdefs.h. */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6714 $ac_includes_default
6715
6716 #include <$ac_header>
6717 _ACEOF
6718 rm -f conftest.$ac_objext
6719 if { (ac_try="$ac_compile"
6720 case "(($ac_try" in
6721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6722 *) ac_try_echo=$ac_try;;
6723 esac
6724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6725 (eval "$ac_compile") 2>conftest.er1
6726 ac_status=$?
6727 grep -v '^ *+' conftest.er1 >conftest.err
6728 rm -f conftest.er1
6729 cat conftest.err >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } && {
6732 test -z "$ac_c_werror_flag" ||
6733 test ! -s conftest.err
6734 } && test -s conftest.$ac_objext; then
6735 eval "$as_ac_Header=yes"
6736 else
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6739
6740 eval "$as_ac_Header=no"
6741 fi
6742
6743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744 fi
6745 ac_res=`eval echo '${'$as_ac_Header'}'`
6746 { echo "$as_me:$LINENO: result: $ac_res" >&5
6747 echo "${ECHO_T}$ac_res" >&6; }
6748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6749 cat >>confdefs.h <<_ACEOF
6750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6751 _ACEOF
6752
6753 fi
6754
6755 done
6756
6757
6758
6759 for ac_header in dlfcn.h
6760 do
6761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767 cat >conftest.$ac_ext <<_ACEOF
6768 /* confdefs.h. */
6769 _ACEOF
6770 cat confdefs.h >>conftest.$ac_ext
6771 cat >>conftest.$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 $ac_includes_default
6774
6775 #include <$ac_header>
6776 _ACEOF
6777 rm -f conftest.$ac_objext
6778 if { (ac_try="$ac_compile"
6779 case "(($ac_try" in
6780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6781 *) ac_try_echo=$ac_try;;
6782 esac
6783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6784 (eval "$ac_compile") 2>conftest.er1
6785 ac_status=$?
6786 grep -v '^ *+' conftest.er1 >conftest.err
6787 rm -f conftest.er1
6788 cat conftest.err >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } && {
6791 test -z "$ac_c_werror_flag" ||
6792 test ! -s conftest.err
6793 } && test -s conftest.$ac_objext; then
6794 eval "$as_ac_Header=yes"
6795 else
6796 echo "$as_me: failed program was:" >&5
6797 sed 's/^/| /' conftest.$ac_ext >&5
6798
6799 eval "$as_ac_Header=no"
6800 fi
6801
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 fi
6804 ac_res=`eval echo '${'$as_ac_Header'}'`
6805 { echo "$as_me:$LINENO: result: $ac_res" >&5
6806 echo "${ECHO_T}$ac_res" >&6; }
6807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6808 cat >>confdefs.h <<_ACEOF
6809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6810 _ACEOF
6811
6812 fi
6813
6814 done
6815
6816
6817
6818 # Set options
6819
6820
6821
6822 enable_dlopen=no
6823
6824
6825 enable_win32_dll=no
6826
6827
6828 # Check whether --enable-shared was given.
6829 if test "${enable_shared+set}" = set; then
6830 enableval=$enable_shared; p=${PACKAGE-default}
6831 case $enableval in
6832 yes) enable_shared=yes ;;
6833 no) enable_shared=no ;;
6834 *)
6835 enable_shared=no
6836 # Look at the argument we got. We use all the common list separators.
6837 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6838 for pkg in $enableval; do
6839 IFS="$lt_save_ifs"
6840 if test "X$pkg" = "X$p"; then
6841 enable_shared=yes
6842 fi
6843 done
6844 IFS="$lt_save_ifs"
6845 ;;
6846 esac
6847 else
6848 enable_shared=yes
6849 fi
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859 # Check whether --enable-static was given.
6860 if test "${enable_static+set}" = set; then
6861 enableval=$enable_static; p=${PACKAGE-default}
6862 case $enableval in
6863 yes) enable_static=yes ;;
6864 no) enable_static=no ;;
6865 *)
6866 enable_static=no
6867 # Look at the argument we got. We use all the common list separators.
6868 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6869 for pkg in $enableval; do
6870 IFS="$lt_save_ifs"
6871 if test "X$pkg" = "X$p"; then
6872 enable_static=yes
6873 fi
6874 done
6875 IFS="$lt_save_ifs"
6876 ;;
6877 esac
6878 else
6879 enable_static=yes
6880 fi
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891 # Check whether --with-pic was given.
6892 if test "${with_pic+set}" = set; then
6893 withval=$with_pic; pic_mode="$withval"
6894 else
6895 pic_mode=default
6896 fi
6897
6898
6899 test -z "$pic_mode" && pic_mode=default
6900
6901
6902
6903
6904
6905
6906
6907 # Check whether --enable-fast-install was given.
6908 if test "${enable_fast_install+set}" = set; then
6909 enableval=$enable_fast_install; p=${PACKAGE-default}
6910 case $enableval in
6911 yes) enable_fast_install=yes ;;
6912 no) enable_fast_install=no ;;
6913 *)
6914 enable_fast_install=no
6915 # Look at the argument we got. We use all the common list separators.
6916 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6917 for pkg in $enableval; do
6918 IFS="$lt_save_ifs"
6919 if test "X$pkg" = "X$p"; then
6920 enable_fast_install=yes
6921 fi
6922 done
6923 IFS="$lt_save_ifs"
6924 ;;
6925 esac
6926 else
6927 enable_fast_install=yes
6928 fi
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940 # This can be used to rebuild libtool when needed
6941 LIBTOOL_DEPS="$ltmain"
6942
6943 # Always use our own libtool.
6944 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970 test -z "$LN_S" && LN_S="ln -s"
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985 if test -n "${ZSH_VERSION+set}" ; then
6986 setopt NO_GLOB_SUBST
6987 fi
6988
6989 { echo "$as_me:$LINENO: checking for objdir" >&5
6990 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6991 if test "${lt_cv_objdir+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994 rm -f .libs 2>/dev/null
6995 mkdir .libs 2>/dev/null
6996 if test -d .libs; then
6997 lt_cv_objdir=.libs
6998 else
6999 # MS-DOS does not allow filenames that begin with a dot.
7000 lt_cv_objdir=_libs
7001 fi
7002 rmdir .libs 2>/dev/null
7003 fi
7004 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7005 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7006 objdir=$lt_cv_objdir
7007
7008
7009
7010
7011
7012 cat >>confdefs.h <<_ACEOF
7013 #define LT_OBJDIR "$lt_cv_objdir/"
7014 _ACEOF
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032 case $host_os in
7033 aix3*)
7034 # AIX sometimes has problems with the GCC collect2 program. For some
7035 # reason, if we set the COLLECT_NAMES environment variable, the problems
7036 # vanish in a puff of smoke.
7037 if test "X${COLLECT_NAMES+set}" != Xset; then
7038 COLLECT_NAMES=
7039 export COLLECT_NAMES
7040 fi
7041 ;;
7042 esac
7043
7044 # Sed substitution that helps us do robust quoting. It backslashifies
7045 # metacharacters that are still active within double-quoted strings.
7046 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7047
7048 # Same as above, but do not quote variable references.
7049 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7050
7051 # Sed substitution to delay expansion of an escaped shell variable in a
7052 # double_quote_subst'ed string.
7053 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7054
7055 # Sed substitution to delay expansion of an escaped single quote.
7056 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7057
7058 # Sed substitution to avoid accidental globbing in evaled expressions
7059 no_glob_subst='s/\*/\\\*/g'
7060
7061 # Global variables:
7062 ofile=libtool
7063 can_build_shared=yes
7064
7065 # All known linkers require a `.a' archive for static linking (except MSVC,
7066 # which needs '.lib').
7067 libext=a
7068
7069 with_gnu_ld="$lt_cv_prog_gnu_ld"
7070
7071 old_CC="$CC"
7072 old_CFLAGS="$CFLAGS"
7073
7074 # Set sane defaults for various variables
7075 test -z "$CC" && CC=cc
7076 test -z "$LTCC" && LTCC=$CC
7077 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7078 test -z "$LD" && LD=ld
7079 test -z "$ac_objext" && ac_objext=o
7080
7081 for cc_temp in $compiler""; do
7082 case $cc_temp in
7083 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7084 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7085 \-*) ;;
7086 *) break;;
7087 esac
7088 done
7089 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7090
7091
7092 # Only perform the check for file, if the check method requires it
7093 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7094 case $deplibs_check_method in
7095 file_magic*)
7096 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7097 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7098 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7099 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 else
7102 case $MAGIC_CMD in
7103 [\\/*] | ?:[\\/]*)
7104 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7105 ;;
7106 *)
7107 lt_save_MAGIC_CMD="$MAGIC_CMD"
7108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7109 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7110 for ac_dir in $ac_dummy; do
7111 IFS="$lt_save_ifs"
7112 test -z "$ac_dir" && ac_dir=.
7113 if test -f $ac_dir/${ac_tool_prefix}file; then
7114 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7115 if test -n "$file_magic_test_file"; then
7116 case $deplibs_check_method in
7117 "file_magic "*)
7118 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7120 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7121 $EGREP "$file_magic_regex" > /dev/null; then
7122 :
7123 else
7124 cat <<_LT_EOF 1>&2
7125
7126 *** Warning: the command libtool uses to detect shared libraries,
7127 *** $file_magic_cmd, produces output that libtool cannot recognize.
7128 *** The result is that libtool may fail to recognize shared libraries
7129 *** as such. This will affect the creation of libtool libraries that
7130 *** depend on shared libraries, but programs linked with such libtool
7131 *** libraries will work regardless of this problem. Nevertheless, you
7132 *** may want to report the problem to your system manager and/or to
7133 *** [email protected]
7134
7135 _LT_EOF
7136 fi ;;
7137 esac
7138 fi
7139 break
7140 fi
7141 done
7142 IFS="$lt_save_ifs"
7143 MAGIC_CMD="$lt_save_MAGIC_CMD"
7144 ;;
7145 esac
7146 fi
7147
7148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7149 if test -n "$MAGIC_CMD"; then
7150 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7151 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7152 else
7153 { echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6; }
7155 fi
7156
7157
7158
7159
7160
7161 if test -z "$lt_cv_path_MAGIC_CMD"; then
7162 if test -n "$ac_tool_prefix"; then
7163 { echo "$as_me:$LINENO: checking for file" >&5
7164 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7165 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 else
7168 case $MAGIC_CMD in
7169 [\\/*] | ?:[\\/]*)
7170 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7171 ;;
7172 *)
7173 lt_save_MAGIC_CMD="$MAGIC_CMD"
7174 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7175 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7176 for ac_dir in $ac_dummy; do
7177 IFS="$lt_save_ifs"
7178 test -z "$ac_dir" && ac_dir=.
7179 if test -f $ac_dir/file; then
7180 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7181 if test -n "$file_magic_test_file"; then
7182 case $deplibs_check_method in
7183 "file_magic "*)
7184 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7185 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7186 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7187 $EGREP "$file_magic_regex" > /dev/null; then
7188 :
7189 else
7190 cat <<_LT_EOF 1>&2
7191
7192 *** Warning: the command libtool uses to detect shared libraries,
7193 *** $file_magic_cmd, produces output that libtool cannot recognize.
7194 *** The result is that libtool may fail to recognize shared libraries
7195 *** as such. This will affect the creation of libtool libraries that
7196 *** depend on shared libraries, but programs linked with such libtool
7197 *** libraries will work regardless of this problem. Nevertheless, you
7198 *** may want to report the problem to your system manager and/or to
7199 *** [email protected]
7200
7201 _LT_EOF
7202 fi ;;
7203 esac
7204 fi
7205 break
7206 fi
7207 done
7208 IFS="$lt_save_ifs"
7209 MAGIC_CMD="$lt_save_MAGIC_CMD"
7210 ;;
7211 esac
7212 fi
7213
7214 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7215 if test -n "$MAGIC_CMD"; then
7216 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7217 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7218 else
7219 { echo "$as_me:$LINENO: result: no" >&5
7220 echo "${ECHO_T}no" >&6; }
7221 fi
7222
7223
7224 else
7225 MAGIC_CMD=:
7226 fi
7227 fi
7228
7229 fi
7230 ;;
7231 esac
7232
7233 # Use C for the default configuration in the libtool script
7234
7235 lt_save_CC="$CC"
7236 ac_ext=c
7237 ac_cpp='$CPP $CPPFLAGS'
7238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7241
7242
7243 # Source file extension for C test sources.
7244 ac_ext=c
7245
7246 # Object file extension for compiled C test sources.
7247 objext=o
7248 objext=$objext
7249
7250 # Code to be used in simple compile tests
7251 lt_simple_compile_test_code="int some_variable = 0;"
7252
7253 # Code to be used in simple link tests
7254 lt_simple_link_test_code='int main(){return(0);}'
7255
7256
7257
7258
7259
7260
7261
7262 # If no C compiler was specified, use CC.
7263 LTCC=${LTCC-"$CC"}
7264
7265 # If no C compiler flags were specified, use CFLAGS.
7266 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7267
7268 # Allow CC to be a program name with arguments.
7269 compiler=$CC
7270
7271 # Save the default compiler, since it gets overwritten when the other
7272 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7273 compiler_DEFAULT=$CC
7274
7275 # save warnings/boilerplate of simple test code
7276 ac_outfile=conftest.$ac_objext
7277 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7278 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7279 _lt_compiler_boilerplate=`cat conftest.err`
7280 $RM conftest*
7281
7282 ac_outfile=conftest.$ac_objext
7283 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7284 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7285 _lt_linker_boilerplate=`cat conftest.err`
7286 $RM -r conftest*
7287
7288
7289 ## CAVEAT EMPTOR:
7290 ## There is no encapsulation within the following macros, do not change
7291 ## the running order or otherwise move them around unless you know exactly
7292 ## what you are doing...
7293 if test -n "$compiler"; then
7294
7295 lt_prog_compiler_no_builtin_flag=
7296
7297 if test "$GCC" = yes; then
7298 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7299
7300 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7301 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7302 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 else
7305 lt_cv_prog_compiler_rtti_exceptions=no
7306 ac_outfile=conftest.$ac_objext
7307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7308 lt_compiler_flag="-fno-rtti -fno-exceptions"
7309 # Insert the option either (1) after the last *FLAGS variable, or
7310 # (2) before a word containing "conftest.", or (3) at the end.
7311 # Note that $ac_compile itself does not contain backslashes and begins
7312 # with a dollar sign (not a hyphen), so the echo should work correctly.
7313 # The option is referenced via a variable to avoid confusing sed.
7314 lt_compile=`echo "$ac_compile" | $SED \
7315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7317 -e 's:$: $lt_compiler_flag:'`
7318 (eval echo "\"\$as_me:7318: $lt_compile\"" >&5)
7319 (eval "$lt_compile" 2>conftest.err)
7320 ac_status=$?
7321 cat conftest.err >&5
7322 echo "$as_me:7322: \$? = $ac_status" >&5
7323 if (exit $ac_status) && test -s "$ac_outfile"; then
7324 # The compiler can only warn and ignore the option if not recognized
7325 # So say no if there are warnings other than the usual output.
7326 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7328 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7329 lt_cv_prog_compiler_rtti_exceptions=yes
7330 fi
7331 fi
7332 $RM conftest*
7333
7334 fi
7335 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7336 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7337
7338 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7339 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7340 else
7341 :
7342 fi
7343
7344 fi
7345
7346
7347
7348
7349
7350
7351 lt_prog_compiler_wl=
7352 lt_prog_compiler_pic=
7353 lt_prog_compiler_static=
7354
7355 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7356 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7357
7358 if test "$GCC" = yes; then
7359 lt_prog_compiler_wl='-Wl,'
7360 lt_prog_compiler_static='-static'
7361
7362 case $host_os in
7363 aix*)
7364 # All AIX code is PIC.
7365 if test "$host_cpu" = ia64; then
7366 # AIX 5 now supports IA64 processor
7367 lt_prog_compiler_static='-Bstatic'
7368 fi
7369 ;;
7370
7371 amigaos*)
7372 case $host_cpu in
7373 powerpc)
7374 # see comment about AmigaOS4 .so support
7375 lt_prog_compiler_pic='-fPIC'
7376 ;;
7377 m68k)
7378 # FIXME: we need at least 68020 code to build shared libraries, but
7379 # adding the `-m68020' flag to GCC prevents building anything better,
7380 # like `-m68040'.
7381 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7382 ;;
7383 esac
7384 ;;
7385
7386 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7387 # PIC is the default for these OSes.
7388 ;;
7389
7390 mingw* | cygwin* | pw32* | os2*)
7391 # This hack is so that the source file can tell whether it is being
7392 # built for inclusion in a dll (and should export symbols for example).
7393 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7394 # (--disable-auto-import) libraries
7395 lt_prog_compiler_pic='-DDLL_EXPORT'
7396 ;;
7397
7398 darwin* | rhapsody*)
7399 # PIC is the default on this platform
7400 # Common symbols not allowed in MH_DYLIB files
7401 lt_prog_compiler_pic='-fno-common'
7402 ;;
7403
7404 hpux*)
7405 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7406 # not for PA HP-UX.
7407 case $host_cpu in
7408 hppa*64*|ia64*)
7409 # +Z the default
7410 ;;
7411 *)
7412 lt_prog_compiler_pic='-fPIC'
7413 ;;
7414 esac
7415 ;;
7416
7417 interix[3-9]*)
7418 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7419 # Instead, we relocate shared libraries at runtime.
7420 ;;
7421
7422 msdosdjgpp*)
7423 # Just because we use GCC doesn't mean we suddenly get shared libraries
7424 # on systems that don't support them.
7425 lt_prog_compiler_can_build_shared=no
7426 enable_shared=no
7427 ;;
7428
7429 *nto* | *qnx*)
7430 # QNX uses GNU C++, but need to define -shared option too, otherwise
7431 # it will coredump.
7432 lt_prog_compiler_pic='-fPIC -shared'
7433 ;;
7434
7435 sysv4*MP*)
7436 if test -d /usr/nec; then
7437 lt_prog_compiler_pic=-Kconform_pic
7438 fi
7439 ;;
7440
7441 *)
7442 lt_prog_compiler_pic='-fPIC'
7443 ;;
7444 esac
7445 else
7446 # PORTME Check for flag to pass linker flags through the system compiler.
7447 case $host_os in
7448 aix*)
7449 lt_prog_compiler_wl='-Wl,'
7450 if test "$host_cpu" = ia64; then
7451 # AIX 5 now supports IA64 processor
7452 lt_prog_compiler_static='-Bstatic'
7453 else
7454 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7455 fi
7456 ;;
7457
7458 mingw* | cygwin* | pw32* | os2*)
7459 # This hack is so that the source file can tell whether it is being
7460 # built for inclusion in a dll (and should export symbols for example).
7461 lt_prog_compiler_pic='-DDLL_EXPORT'
7462 ;;
7463
7464 hpux9* | hpux10* | hpux11*)
7465 lt_prog_compiler_wl='-Wl,'
7466 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7467 # not for PA HP-UX.
7468 case $host_cpu in
7469 hppa*64*|ia64*)
7470 # +Z the default
7471 ;;
7472 *)
7473 lt_prog_compiler_pic='+Z'
7474 ;;
7475 esac
7476 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7477 lt_prog_compiler_static='${wl}-a ${wl}archive'
7478 ;;
7479
7480 irix5* | irix6* | nonstopux*)
7481 lt_prog_compiler_wl='-Wl,'
7482 # PIC (with -KPIC) is the default.
7483 lt_prog_compiler_static='-non_shared'
7484 ;;
7485
7486 linux* | k*bsd*-gnu)
7487 case $cc_basename in
7488 icc* | ecc* | ifort*)
7489 lt_prog_compiler_wl='-Wl,'
7490 lt_prog_compiler_pic='-KPIC'
7491 lt_prog_compiler_static='-static'
7492 ;;
7493 pgcc* | pgf77* | pgf90* | pgf95*)
7494 # Portland Group compilers (*not* the Pentium gcc compiler,
7495 # which looks to be a dead project)
7496 lt_prog_compiler_wl='-Wl,'
7497 lt_prog_compiler_pic='-fpic'
7498 lt_prog_compiler_static='-Bstatic'
7499 ;;
7500 ccc*)
7501 lt_prog_compiler_wl='-Wl,'
7502 # All Alpha code is PIC.
7503 lt_prog_compiler_static='-non_shared'
7504 ;;
7505 xl*)
7506 # IBM XL C 8.0/Fortran 10.1 on PPC
7507 lt_prog_compiler_wl='-Wl,'
7508 lt_prog_compiler_pic='-qpic'
7509 lt_prog_compiler_static='-qstaticlink'
7510 ;;
7511 *)
7512 case `$CC -V 2>&1 | sed 5q` in
7513 *Sun\ C*)
7514 # Sun C 5.9
7515 lt_prog_compiler_pic='-KPIC'
7516 lt_prog_compiler_static='-Bstatic'
7517 lt_prog_compiler_wl='-Wl,'
7518 ;;
7519 *Sun\ F*)
7520 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7521 lt_prog_compiler_pic='-KPIC'
7522 lt_prog_compiler_static='-Bstatic'
7523 lt_prog_compiler_wl=''
7524 ;;
7525 esac
7526 ;;
7527 esac
7528 ;;
7529
7530 newsos6)
7531 lt_prog_compiler_pic='-KPIC'
7532 lt_prog_compiler_static='-Bstatic'
7533 ;;
7534
7535 *nto* | *qnx*)
7536 # QNX uses GNU C++, but need to define -shared option too, otherwise
7537 # it will coredump.
7538 lt_prog_compiler_pic='-fPIC -shared'
7539 ;;
7540
7541 osf3* | osf4* | osf5*)
7542 lt_prog_compiler_wl='-Wl,'
7543 # All OSF/1 code is PIC.
7544 lt_prog_compiler_static='-non_shared'
7545 ;;
7546
7547 rdos*)
7548 lt_prog_compiler_static='-non_shared'
7549 ;;
7550
7551 solaris*)
7552 lt_prog_compiler_pic='-KPIC'
7553 lt_prog_compiler_static='-Bstatic'
7554 case $cc_basename in
7555 f77* | f90* | f95*)
7556 lt_prog_compiler_wl='-Qoption ld ';;
7557 *)
7558 lt_prog_compiler_wl='-Wl,';;
7559 esac
7560 ;;
7561
7562 sunos4*)
7563 lt_prog_compiler_wl='-Qoption ld '
7564 lt_prog_compiler_pic='-PIC'
7565 lt_prog_compiler_static='-Bstatic'
7566 ;;
7567
7568 sysv4 | sysv4.2uw2* | sysv4.3*)
7569 lt_prog_compiler_wl='-Wl,'
7570 lt_prog_compiler_pic='-KPIC'
7571 lt_prog_compiler_static='-Bstatic'
7572 ;;
7573
7574 sysv4*MP*)
7575 if test -d /usr/nec ;then
7576 lt_prog_compiler_pic='-Kconform_pic'
7577 lt_prog_compiler_static='-Bstatic'
7578 fi
7579 ;;
7580
7581 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7582 lt_prog_compiler_wl='-Wl,'
7583 lt_prog_compiler_pic='-KPIC'
7584 lt_prog_compiler_static='-Bstatic'
7585 ;;
7586
7587 unicos*)
7588 lt_prog_compiler_wl='-Wl,'
7589 lt_prog_compiler_can_build_shared=no
7590 ;;
7591
7592 uts4*)
7593 lt_prog_compiler_pic='-pic'
7594 lt_prog_compiler_static='-Bstatic'
7595 ;;
7596
7597 *)
7598 lt_prog_compiler_can_build_shared=no
7599 ;;
7600 esac
7601 fi
7602
7603 case $host_os in
7604 # For platforms which do not support PIC, -DPIC is meaningless:
7605 *djgpp*)
7606 lt_prog_compiler_pic=
7607 ;;
7608 *)
7609 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7610 ;;
7611 esac
7612 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7613 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7614
7615
7616
7617
7618
7619
7620 #
7621 # Check to make sure the PIC flag actually works.
7622 #
7623 if test -n "$lt_prog_compiler_pic"; then
7624 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7625 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7626 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629 lt_cv_prog_compiler_pic_works=no
7630 ac_outfile=conftest.$ac_objext
7631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7632 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7633 # Insert the option either (1) after the last *FLAGS variable, or
7634 # (2) before a word containing "conftest.", or (3) at the end.
7635 # Note that $ac_compile itself does not contain backslashes and begins
7636 # with a dollar sign (not a hyphen), so the echo should work correctly.
7637 # The option is referenced via a variable to avoid confusing sed.
7638 lt_compile=`echo "$ac_compile" | $SED \
7639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7641 -e 's:$: $lt_compiler_flag:'`
7642 (eval echo "\"\$as_me:7642: $lt_compile\"" >&5)
7643 (eval "$lt_compile" 2>conftest.err)
7644 ac_status=$?
7645 cat conftest.err >&5
7646 echo "$as_me:7646: \$? = $ac_status" >&5
7647 if (exit $ac_status) && test -s "$ac_outfile"; then
7648 # The compiler can only warn and ignore the option if not recognized
7649 # So say no if there are warnings other than the usual output.
7650 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7653 lt_cv_prog_compiler_pic_works=yes
7654 fi
7655 fi
7656 $RM conftest*
7657
7658 fi
7659 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7660 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7661
7662 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7663 case $lt_prog_compiler_pic in
7664 "" | " "*) ;;
7665 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7666 esac
7667 else
7668 lt_prog_compiler_pic=
7669 lt_prog_compiler_can_build_shared=no
7670 fi
7671
7672 fi
7673
7674
7675
7676
7677
7678
7679 #
7680 # Check to make sure the static flag actually works.
7681 #
7682 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7683 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7684 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7685 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 else
7688 lt_cv_prog_compiler_static_works=no
7689 save_LDFLAGS="$LDFLAGS"
7690 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7691 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7692 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7693 # The linker can only warn and ignore the option if not recognized
7694 # So say no if there are warnings
7695 if test -s conftest.err; then
7696 # Append any errors to the config.log.
7697 cat conftest.err 1>&5
7698 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7700 if diff conftest.exp conftest.er2 >/dev/null; then
7701 lt_cv_prog_compiler_static_works=yes
7702 fi
7703 else
7704 lt_cv_prog_compiler_static_works=yes
7705 fi
7706 fi
7707 $RM -r conftest*
7708 LDFLAGS="$save_LDFLAGS"
7709
7710 fi
7711 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7712 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7713
7714 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7715 :
7716 else
7717 lt_prog_compiler_static=
7718 fi
7719
7720
7721
7722
7723
7724
7725
7726 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7727 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7728 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 else
7731 lt_cv_prog_compiler_c_o=no
7732 $RM -r conftest 2>/dev/null
7733 mkdir conftest
7734 cd conftest
7735 mkdir out
7736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7737
7738 lt_compiler_flag="-o out/conftest2.$ac_objext"
7739 # Insert the option either (1) after the last *FLAGS variable, or
7740 # (2) before a word containing "conftest.", or (3) at the end.
7741 # Note that $ac_compile itself does not contain backslashes and begins
7742 # with a dollar sign (not a hyphen), so the echo should work correctly.
7743 lt_compile=`echo "$ac_compile" | $SED \
7744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7746 -e 's:$: $lt_compiler_flag:'`
7747 (eval echo "\"\$as_me:7747: $lt_compile\"" >&5)
7748 (eval "$lt_compile" 2>out/conftest.err)
7749 ac_status=$?
7750 cat out/conftest.err >&5
7751 echo "$as_me:7751: \$? = $ac_status" >&5
7752 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7753 then
7754 # The compiler can only warn and ignore the option if not recognized
7755 # So say no if there are warnings
7756 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7757 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7758 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7759 lt_cv_prog_compiler_c_o=yes
7760 fi
7761 fi
7762 chmod u+w . 2>&5
7763 $RM conftest*
7764 # SGI C++ compiler will create directory out/ii_files/ for
7765 # template instantiation
7766 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7767 $RM out/* && rmdir out
7768 cd ..
7769 $RM -r conftest
7770 $RM conftest*
7771
7772 fi
7773 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7774 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7775
7776
7777
7778
7779
7780
7781 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7782 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7783 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 else
7786 lt_cv_prog_compiler_c_o=no
7787 $RM -r conftest 2>/dev/null
7788 mkdir conftest
7789 cd conftest
7790 mkdir out
7791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7792
7793 lt_compiler_flag="-o out/conftest2.$ac_objext"
7794 # Insert the option either (1) after the last *FLAGS variable, or
7795 # (2) before a word containing "conftest.", or (3) at the end.
7796 # Note that $ac_compile itself does not contain backslashes and begins
7797 # with a dollar sign (not a hyphen), so the echo should work correctly.
7798 lt_compile=`echo "$ac_compile" | $SED \
7799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7801 -e 's:$: $lt_compiler_flag:'`
7802 (eval echo "\"\$as_me:7802: $lt_compile\"" >&5)
7803 (eval "$lt_compile" 2>out/conftest.err)
7804 ac_status=$?
7805 cat out/conftest.err >&5
7806 echo "$as_me:7806: \$? = $ac_status" >&5
7807 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7808 then
7809 # The compiler can only warn and ignore the option if not recognized
7810 # So say no if there are warnings
7811 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7812 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7813 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7814 lt_cv_prog_compiler_c_o=yes
7815 fi
7816 fi
7817 chmod u+w . 2>&5
7818 $RM conftest*
7819 # SGI C++ compiler will create directory out/ii_files/ for
7820 # template instantiation
7821 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7822 $RM out/* && rmdir out
7823 cd ..
7824 $RM -r conftest
7825 $RM conftest*
7826
7827 fi
7828 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7829 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7830
7831
7832
7833
7834 hard_links="nottested"
7835 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7836 # do not overwrite the value of need_locks provided by the user
7837 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7838 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7839 hard_links=yes
7840 $RM conftest*
7841 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7842 touch conftest.a
7843 ln conftest.a conftest.b 2>&5 || hard_links=no
7844 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7845 { echo "$as_me:$LINENO: result: $hard_links" >&5
7846 echo "${ECHO_T}$hard_links" >&6; }
7847 if test "$hard_links" = no; then
7848 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7849 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7850 need_locks=warn
7851 fi
7852 else
7853 need_locks=no
7854 fi
7855
7856
7857
7858
7859
7860
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; }
7863
7864 runpath_var=
7865 allow_undefined_flag=
7866 always_export_symbols=no
7867 archive_cmds=
7868 archive_expsym_cmds=
7869 compiler_needs_object=no
7870 enable_shared_with_static_runtimes=no
7871 export_dynamic_flag_spec=
7872 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7873 hardcode_automatic=no
7874 hardcode_direct=no
7875 hardcode_direct_absolute=no
7876 hardcode_libdir_flag_spec=
7877 hardcode_libdir_flag_spec_ld=
7878 hardcode_libdir_separator=
7879 hardcode_minus_L=no
7880 hardcode_shlibpath_var=unsupported
7881 inherit_rpath=no
7882 link_all_deplibs=unknown
7883 module_cmds=
7884 module_expsym_cmds=
7885 old_archive_from_new_cmds=
7886 old_archive_from_expsyms_cmds=
7887 thread_safe_flag_spec=
7888 whole_archive_flag_spec=
7889 # include_expsyms should be a list of space-separated symbols to be *always*
7890 # included in the symbol list
7891 include_expsyms=
7892 # exclude_expsyms can be an extended regexp of symbols to exclude
7893 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7894 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7895 # as well as any symbol that contains `d'.
7896 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7897 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7898 # platforms (ab)use it in PIC code, but their linkers get confused if
7899 # the symbol is explicitly referenced. Since portable code cannot
7900 # rely on this symbol name, it's probably fine to never include it in
7901 # preloaded symbol tables.
7902 # Exclude shared library initialization/finalization symbols.
7903 extract_expsyms_cmds=
7904
7905 case $host_os in
7906 cygwin* | mingw* | pw32*)
7907 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7908 # When not using gcc, we currently assume that we are using
7909 # Microsoft Visual C++.
7910 if test "$GCC" != yes; then
7911 with_gnu_ld=no
7912 fi
7913 ;;
7914 interix*)
7915 # we just hope/assume this is gcc and not c89 (= MSVC++)
7916 with_gnu_ld=yes
7917 ;;
7918 openbsd*)
7919 with_gnu_ld=no
7920 ;;
7921 esac
7922
7923 ld_shlibs=yes
7924 if test "$with_gnu_ld" = yes; then
7925 # If archive_cmds runs LD, not CC, wlarc should be empty
7926 wlarc='${wl}'
7927
7928 # Set some defaults for GNU ld with shared library support. These
7929 # are reset later if shared libraries are not supported. Putting them
7930 # here allows them to be overridden if necessary.
7931 runpath_var=LD_RUN_PATH
7932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7933 export_dynamic_flag_spec='${wl}--export-dynamic'
7934 # ancient GNU ld didn't support --whole-archive et. al.
7935 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7936 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7937 else
7938 whole_archive_flag_spec=
7939 fi
7940 supports_anon_versioning=no
7941 case `$LD -v 2>&1` in
7942 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7943 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7944 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7945 *\ 2.11.*) ;; # other 2.11 versions
7946 *) supports_anon_versioning=yes ;;
7947 esac
7948
7949 # See if GNU ld supports shared libraries.
7950 case $host_os in
7951 aix[3-9]*)
7952 # On AIX/PPC, the GNU linker is very broken
7953 if test "$host_cpu" != ia64; then
7954 ld_shlibs=no
7955 cat <<_LT_EOF 1>&2
7956
7957 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7958 *** to be unable to reliably create shared libraries on AIX.
7959 *** Therefore, libtool is disabling shared libraries support. If you
7960 *** really care for shared libraries, you may want to modify your PATH
7961 *** so that a non-GNU linker is found, and then restart.
7962
7963 _LT_EOF
7964 fi
7965 ;;
7966
7967 amigaos*)
7968 case $host_cpu in
7969 powerpc)
7970 # see comment about AmigaOS4 .so support
7971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7972 archive_expsym_cmds=''
7973 ;;
7974 m68k)
7975 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)'
7976 hardcode_libdir_flag_spec='-L$libdir'
7977 hardcode_minus_L=yes
7978 ;;
7979 esac
7980 ;;
7981
7982 beos*)
7983 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7984 allow_undefined_flag=unsupported
7985 # Joseph Beckenbach <[email protected]> says some releases of gcc
7986 # support --undefined. This deserves some investigation. FIXME
7987 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7988 else
7989 ld_shlibs=no
7990 fi
7991 ;;
7992
7993 cygwin* | mingw* | pw32*)
7994 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7995 # as there is no search path for DLLs.
7996 hardcode_libdir_flag_spec='-L$libdir'
7997 allow_undefined_flag=unsupported
7998 always_export_symbols=no
7999 enable_shared_with_static_runtimes=yes
8000 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8001
8002 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8004 # If the export-symbols file already is a .def file (1st line
8005 # is EXPORTS), use it as is; otherwise, prepend...
8006 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8007 cp $export_symbols $output_objdir/$soname.def;
8008 else
8009 echo EXPORTS > $output_objdir/$soname.def;
8010 cat $export_symbols >> $output_objdir/$soname.def;
8011 fi~
8012 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8013 else
8014 ld_shlibs=no
8015 fi
8016 ;;
8017
8018 interix[3-9]*)
8019 hardcode_direct=no
8020 hardcode_shlibpath_var=no
8021 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8022 export_dynamic_flag_spec='${wl}-E'
8023 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8024 # Instead, shared libraries are loaded at an image base (0x10000000 by
8025 # default) and relocated if they conflict, which is a slow very memory
8026 # consuming and fragmenting process. To avoid this, we pick a random,
8027 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8028 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8029 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8030 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'
8031 ;;
8032
8033 gnu* | linux* | tpf* | k*bsd*-gnu)
8034 tmp_diet=no
8035 if test "$host_os" = linux-dietlibc; then
8036 case $cc_basename in
8037 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8038 esac
8039 fi
8040 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8041 && test "$tmp_diet" = no
8042 then
8043 tmp_addflag=
8044 tmp_sharedflag='-shared'
8045 case $cc_basename,$host_cpu in
8046 pgcc*) # Portland Group C compiler
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'
8049 ;;
8050 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8051 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'
8052 tmp_addflag=' $pic_flag -Mnomain' ;;
8053 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8054 tmp_addflag=' -i_dynamic' ;;
8055 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8056 tmp_addflag=' -i_dynamic -nofor_main' ;;
8057 ifc* | ifort*) # Intel Fortran compiler
8058 tmp_addflag=' -nofor_main' ;;
8059 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8060 tmp_sharedflag='-qmkshrobj'
8061 tmp_addflag= ;;
8062 esac
8063 case `$CC -V 2>&1 | sed 5q` in
8064 *Sun\ C*) # Sun C 5.9
8065 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8066 compiler_needs_object=yes
8067 tmp_sharedflag='-G' ;;
8068 *Sun\ F*) # Sun Fortran 8.3
8069 tmp_sharedflag='-G' ;;
8070 esac
8071 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8072
8073 if test "x$supports_anon_versioning" = xyes; then
8074 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8075 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8076 echo "local: *; };" >> $output_objdir/$libname.ver~
8077 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8078 fi
8079
8080 case $cc_basename in
8081 xlf*)
8082 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8083 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8084 hardcode_libdir_flag_spec=
8085 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8086 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8087 if test "x$supports_anon_versioning" = xyes; then
8088 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8089 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8090 echo "local: *; };" >> $output_objdir/$libname.ver~
8091 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8092 fi
8093 ;;
8094 esac
8095 else
8096 ld_shlibs=no
8097 fi
8098 ;;
8099
8100 netbsd* | netbsdelf*-gnu)
8101 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8102 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8103 wlarc=
8104 else
8105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8106 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8107 fi
8108 ;;
8109
8110 solaris*)
8111 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8112 ld_shlibs=no
8113 cat <<_LT_EOF 1>&2
8114
8115 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8116 *** create shared libraries on Solaris systems. Therefore, libtool
8117 *** is disabling shared libraries support. We urge you to upgrade GNU
8118 *** binutils to release 2.9.1 or newer. Another option is to modify
8119 *** your PATH or compiler configuration so that the native linker is
8120 *** used, and then restart.
8121
8122 _LT_EOF
8123 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8125 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8126 else
8127 ld_shlibs=no
8128 fi
8129 ;;
8130
8131 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8132 case `$LD -v 2>&1` in
8133 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8134 ld_shlibs=no
8135 cat <<_LT_EOF 1>&2
8136
8137 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8138 *** reliably create shared libraries on SCO systems. Therefore, libtool
8139 *** is disabling shared libraries support. We urge you to upgrade GNU
8140 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8141 *** your PATH or compiler configuration so that the native linker is
8142 *** used, and then restart.
8143
8144 _LT_EOF
8145 ;;
8146 *)
8147 # For security reasons, it is highly recommended that you always
8148 # use absolute paths for naming shared libraries, and exclude the
8149 # DT_RUNPATH tag from executables and libraries. But doing so
8150 # requires that you compile everything twice, which is a pain.
8151 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8153 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8154 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8155 else
8156 ld_shlibs=no
8157 fi
8158 ;;
8159 esac
8160 ;;
8161
8162 sunos4*)
8163 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8164 wlarc=
8165 hardcode_direct=yes
8166 hardcode_shlibpath_var=no
8167 ;;
8168
8169 *)
8170 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8172 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8173 else
8174 ld_shlibs=no
8175 fi
8176 ;;
8177 esac
8178
8179 if test "$ld_shlibs" = no; then
8180 runpath_var=
8181 hardcode_libdir_flag_spec=
8182 export_dynamic_flag_spec=
8183 whole_archive_flag_spec=
8184 fi
8185 else
8186 # PORTME fill in a description of your system's linker (not GNU ld)
8187 case $host_os in
8188 aix3*)
8189 allow_undefined_flag=unsupported
8190 always_export_symbols=yes
8191 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'
8192 # Note: this linker hardcodes the directories in LIBPATH if there
8193 # are no directories specified by -L.
8194 hardcode_minus_L=yes
8195 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8196 # Neither direct hardcoding nor static linking is supported with a
8197 # broken collect2.
8198 hardcode_direct=unsupported
8199 fi
8200 ;;
8201
8202 aix[4-9]*)
8203 if test "$host_cpu" = ia64; then
8204 # On IA64, the linker does run time linking by default, so we don't
8205 # have to do anything special.
8206 aix_use_runtimelinking=no
8207 exp_sym_flag='-Bexport'
8208 no_entry_flag=""
8209 else
8210 # If we're using GNU nm, then we don't want the "-C" option.
8211 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8212 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8213 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'
8214 else
8215 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'
8216 fi
8217 aix_use_runtimelinking=no
8218
8219 # Test if we are trying to use run time linking or normal
8220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8221 # need to do runtime linking.
8222 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8223 for ld_flag in $LDFLAGS; do
8224 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8225 aix_use_runtimelinking=yes
8226 break
8227 fi
8228 done
8229 ;;
8230 esac
8231
8232 exp_sym_flag='-bexport'
8233 no_entry_flag='-bnoentry'
8234 fi
8235
8236 # When large executables or shared objects are built, AIX ld can
8237 # have problems creating the table of contents. If linking a library
8238 # or program results in "error TOC overflow" add -mminimal-toc to
8239 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8240 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8241
8242 archive_cmds=''
8243 hardcode_direct=yes
8244 hardcode_direct_absolute=yes
8245 hardcode_libdir_separator=':'
8246 link_all_deplibs=yes
8247 file_list_spec='${wl}-f,'
8248
8249 if test "$GCC" = yes; then
8250 case $host_os in aix4.[012]|aix4.[012].*)
8251 # We only want to do this on AIX 4.2 and lower, the check
8252 # below for broken collect2 doesn't work under 4.3+
8253 collect2name=`${CC} -print-prog-name=collect2`
8254 if test -f "$collect2name" &&
8255 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8256 then
8257 # We have reworked collect2
8258 :
8259 else
8260 # We have old collect2
8261 hardcode_direct=unsupported
8262 # It fails to find uninstalled libraries when the uninstalled
8263 # path is not listed in the libpath. Setting hardcode_minus_L
8264 # to unsupported forces relinking
8265 hardcode_minus_L=yes
8266 hardcode_libdir_flag_spec='-L$libdir'
8267 hardcode_libdir_separator=
8268 fi
8269 ;;
8270 esac
8271 shared_flag='-shared'
8272 if test "$aix_use_runtimelinking" = yes; then
8273 shared_flag="$shared_flag "'${wl}-G'
8274 fi
8275 link_all_deplibs=no
8276 else
8277 # not using gcc
8278 if test "$host_cpu" = ia64; then
8279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8280 # chokes on -Wl,-G. The following line is correct:
8281 shared_flag='-G'
8282 else
8283 if test "$aix_use_runtimelinking" = yes; then
8284 shared_flag='${wl}-G'
8285 else
8286 shared_flag='${wl}-bM:SRE'
8287 fi
8288 fi
8289 fi
8290
8291 # It seems that -bexpall does not export symbols beginning with
8292 # underscore (_), so it is better to generate a list of symbols to export.
8293 always_export_symbols=yes
8294 if test "$aix_use_runtimelinking" = yes; then
8295 # Warning - without using the other runtime loading flags (-brtl),
8296 # -berok will link without error, but may produce a broken library.
8297 allow_undefined_flag='-berok'
8298 # Determine the default libpath from the value encoded in an
8299 # empty executable.
8300 cat >conftest.$ac_ext <<_ACEOF
8301 /* confdefs.h. */
8302 _ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h. */
8306
8307 int
8308 main ()
8309 {
8310
8311 ;
8312 return 0;
8313 }
8314 _ACEOF
8315 rm -f conftest.$ac_objext conftest$ac_exeext
8316 if { (ac_try="$ac_link"
8317 case "(($ac_try" in
8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8320 esac
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 (eval "$ac_link") 2>conftest.er1
8323 ac_status=$?
8324 grep -v '^ *+' conftest.er1 >conftest.err
8325 rm -f conftest.er1
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } && {
8329 test -z "$ac_c_werror_flag" ||
8330 test ! -s conftest.err
8331 } && test -s conftest$ac_exeext &&
8332 $as_test_x conftest$ac_exeext; then
8333
8334 lt_aix_libpath_sed='
8335 /Import File Strings/,/^$/ {
8336 /^0/ {
8337 s/^0 *\(.*\)$/\1/
8338 p
8339 }
8340 }'
8341 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8342 # Check for a 64-bit object if we didn't find anything.
8343 if test -z "$aix_libpath"; then
8344 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8345 fi
8346 else
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8349
8350
8351 fi
8352
8353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8354 conftest$ac_exeext conftest.$ac_ext
8355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8356
8357 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8358 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8359 else
8360 if test "$host_cpu" = ia64; then
8361 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8362 allow_undefined_flag="-z nodefs"
8363 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"
8364 else
8365 # Determine the default libpath from the value encoded in an
8366 # empty executable.
8367 cat >conftest.$ac_ext <<_ACEOF
8368 /* confdefs.h. */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8373
8374 int
8375 main ()
8376 {
8377
8378 ;
8379 return 0;
8380 }
8381 _ACEOF
8382 rm -f conftest.$ac_objext conftest$ac_exeext
8383 if { (ac_try="$ac_link"
8384 case "(($ac_try" in
8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386 *) ac_try_echo=$ac_try;;
8387 esac
8388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389 (eval "$ac_link") 2>conftest.er1
8390 ac_status=$?
8391 grep -v '^ *+' conftest.er1 >conftest.err
8392 rm -f conftest.er1
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } && {
8396 test -z "$ac_c_werror_flag" ||
8397 test ! -s conftest.err
8398 } && test -s conftest$ac_exeext &&
8399 $as_test_x conftest$ac_exeext; then
8400
8401 lt_aix_libpath_sed='
8402 /Import File Strings/,/^$/ {
8403 /^0/ {
8404 s/^0 *\(.*\)$/\1/
8405 p
8406 }
8407 }'
8408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8409 # Check for a 64-bit object if we didn't find anything.
8410 if test -z "$aix_libpath"; then
8411 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8412 fi
8413 else
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8416
8417
8418 fi
8419
8420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8421 conftest$ac_exeext conftest.$ac_ext
8422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8423
8424 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8425 # Warning - without using the other run time loading flags,
8426 # -berok will link without error, but may produce a broken library.
8427 no_undefined_flag=' ${wl}-bernotok'
8428 allow_undefined_flag=' ${wl}-berok'
8429 # Exported symbols can be pulled into shared objects from archives
8430 whole_archive_flag_spec='$convenience'
8431 archive_cmds_need_lc=yes
8432 # This is similar to how AIX traditionally builds its shared libraries.
8433 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'
8434 fi
8435 fi
8436 ;;
8437
8438 amigaos*)
8439 case $host_cpu in
8440 powerpc)
8441 # see comment about AmigaOS4 .so support
8442 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8443 archive_expsym_cmds=''
8444 ;;
8445 m68k)
8446 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)'
8447 hardcode_libdir_flag_spec='-L$libdir'
8448 hardcode_minus_L=yes
8449 ;;
8450 esac
8451 ;;
8452
8453 bsdi[45]*)
8454 export_dynamic_flag_spec=-rdynamic
8455 ;;
8456
8457 cygwin* | mingw* | pw32*)
8458 # When not using gcc, we currently assume that we are using
8459 # Microsoft Visual C++.
8460 # hardcode_libdir_flag_spec is actually meaningless, as there is
8461 # no search path for DLLs.
8462 hardcode_libdir_flag_spec=' '
8463 allow_undefined_flag=unsupported
8464 # Tell ltmain to make .lib files, not .a files.
8465 libext=lib
8466 # Tell ltmain to make .dll files, not .so files.
8467 shrext_cmds=".dll"
8468 # FIXME: Setting linknames here is a bad hack.
8469 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8470 # The linker will automatically build a .lib file if we build a DLL.
8471 old_archive_from_new_cmds='true'
8472 # FIXME: Should let the user specify the lib program.
8473 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8474 fix_srcfile_path='`cygpath -w "$srcfile"`'
8475 enable_shared_with_static_runtimes=yes
8476 ;;
8477
8478 darwin* | rhapsody*)
8479
8480
8481 archive_cmds_need_lc=no
8482 hardcode_direct=no
8483 hardcode_automatic=yes
8484 hardcode_shlibpath_var=unsupported
8485 whole_archive_flag_spec=''
8486 link_all_deplibs=yes
8487 allow_undefined_flag="$_lt_dar_allow_undefined"
8488 if test "$GCC" = "yes"; then
8489 output_verbose_link_cmd=echo
8490 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8491 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8492 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8493 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8494
8495 else
8496 ld_shlibs=no
8497 fi
8498
8499 ;;
8500
8501 dgux*)
8502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8503 hardcode_libdir_flag_spec='-L$libdir'
8504 hardcode_shlibpath_var=no
8505 ;;
8506
8507 freebsd1*)
8508 ld_shlibs=no
8509 ;;
8510
8511 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8512 # support. Future versions do this automatically, but an explicit c++rt0.o
8513 # does not break anything, and helps significantly (at the cost of a little
8514 # extra space).
8515 freebsd2.2*)
8516 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8517 hardcode_libdir_flag_spec='-R$libdir'
8518 hardcode_direct=yes
8519 hardcode_shlibpath_var=no
8520 ;;
8521
8522 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8523 freebsd2*)
8524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8525 hardcode_direct=yes
8526 hardcode_minus_L=yes
8527 hardcode_shlibpath_var=no
8528 ;;
8529
8530 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8531 freebsd* | dragonfly*)
8532 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8533 hardcode_libdir_flag_spec='-R$libdir'
8534 hardcode_direct=yes
8535 hardcode_shlibpath_var=no
8536 ;;
8537
8538 hpux9*)
8539 if test "$GCC" = yes; then
8540 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'
8541 else
8542 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'
8543 fi
8544 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8545 hardcode_libdir_separator=:
8546 hardcode_direct=yes
8547
8548 # hardcode_minus_L: Not really in the search PATH,
8549 # but as the default location of the library.
8550 hardcode_minus_L=yes
8551 export_dynamic_flag_spec='${wl}-E'
8552 ;;
8553
8554 hpux10*)
8555 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8556 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8557 else
8558 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8559 fi
8560 if test "$with_gnu_ld" = no; then
8561 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8562 hardcode_libdir_flag_spec_ld='+b $libdir'
8563 hardcode_libdir_separator=:
8564 hardcode_direct=yes
8565 hardcode_direct_absolute=yes
8566 export_dynamic_flag_spec='${wl}-E'
8567 # hardcode_minus_L: Not really in the search PATH,
8568 # but as the default location of the library.
8569 hardcode_minus_L=yes
8570 fi
8571 ;;
8572
8573 hpux11*)
8574 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8575 case $host_cpu in
8576 hppa*64*)
8577 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8578 ;;
8579 ia64*)
8580 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8581 ;;
8582 *)
8583 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8584 ;;
8585 esac
8586 else
8587 case $host_cpu in
8588 hppa*64*)
8589 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8590 ;;
8591 ia64*)
8592 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8593 ;;
8594 *)
8595 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8596 ;;
8597 esac
8598 fi
8599 if test "$with_gnu_ld" = no; then
8600 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8601 hardcode_libdir_separator=:
8602
8603 case $host_cpu in
8604 hppa*64*|ia64*)
8605 hardcode_direct=no
8606 hardcode_shlibpath_var=no
8607 ;;
8608 *)
8609 hardcode_direct=yes
8610 hardcode_direct_absolute=yes
8611 export_dynamic_flag_spec='${wl}-E'
8612
8613 # hardcode_minus_L: Not really in the search PATH,
8614 # but as the default location of the library.
8615 hardcode_minus_L=yes
8616 ;;
8617 esac
8618 fi
8619 ;;
8620
8621 irix5* | irix6* | nonstopux*)
8622 if test "$GCC" = yes; then
8623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8624 # Try to use the -exported_symbol ld option, if it does not
8625 # work, assume that -exports_file does not work either and
8626 # implicitly export all symbols.
8627 save_LDFLAGS="$LDFLAGS"
8628 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8629 cat >conftest.$ac_ext <<_ACEOF
8630 int foo(void) {}
8631 _ACEOF
8632 rm -f conftest.$ac_objext conftest$ac_exeext
8633 if { (ac_try="$ac_link"
8634 case "(($ac_try" in
8635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636 *) ac_try_echo=$ac_try;;
8637 esac
8638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639 (eval "$ac_link") 2>conftest.er1
8640 ac_status=$?
8641 grep -v '^ *+' conftest.er1 >conftest.err
8642 rm -f conftest.er1
8643 cat conftest.err >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } && {
8646 test -z "$ac_c_werror_flag" ||
8647 test ! -s conftest.err
8648 } && test -s conftest$ac_exeext &&
8649 $as_test_x conftest$ac_exeext; then
8650 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8651
8652 else
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8655
8656
8657 fi
8658
8659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8660 conftest$ac_exeext conftest.$ac_ext
8661 LDFLAGS="$save_LDFLAGS"
8662 else
8663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8664 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8665 fi
8666 archive_cmds_need_lc='no'
8667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8668 hardcode_libdir_separator=:
8669 inherit_rpath=yes
8670 link_all_deplibs=yes
8671 ;;
8672
8673 netbsd* | netbsdelf*-gnu)
8674 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8676 else
8677 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8678 fi
8679 hardcode_libdir_flag_spec='-R$libdir'
8680 hardcode_direct=yes
8681 hardcode_shlibpath_var=no
8682 ;;
8683
8684 newsos6)
8685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8686 hardcode_direct=yes
8687 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8688 hardcode_libdir_separator=:
8689 hardcode_shlibpath_var=no
8690 ;;
8691
8692 *nto* | *qnx*)
8693 ;;
8694
8695 openbsd*)
8696 if test -f /usr/libexec/ld.so; then
8697 hardcode_direct=yes
8698 hardcode_shlibpath_var=no
8699 hardcode_direct_absolute=yes
8700 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8701 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8702 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8703 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8704 export_dynamic_flag_spec='${wl}-E'
8705 else
8706 case $host_os in
8707 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8709 hardcode_libdir_flag_spec='-R$libdir'
8710 ;;
8711 *)
8712 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8713 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8714 ;;
8715 esac
8716 fi
8717 else
8718 ld_shlibs=no
8719 fi
8720 ;;
8721
8722 os2*)
8723 hardcode_libdir_flag_spec='-L$libdir'
8724 hardcode_minus_L=yes
8725 allow_undefined_flag=unsupported
8726 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'
8727 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8728 ;;
8729
8730 osf3*)
8731 if test "$GCC" = yes; then
8732 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8733 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8734 else
8735 allow_undefined_flag=' -expect_unresolved \*'
8736 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8737 fi
8738 archive_cmds_need_lc='no'
8739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8740 hardcode_libdir_separator=:
8741 ;;
8742
8743 osf4* | osf5*) # as osf3* with the addition of -msym flag
8744 if test "$GCC" = yes; then
8745 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8746 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8748 else
8749 allow_undefined_flag=' -expect_unresolved \*'
8750 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8751 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8752 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8753
8754 # Both c and cxx compiler support -rpath directly
8755 hardcode_libdir_flag_spec='-rpath $libdir'
8756 fi
8757 archive_cmds_need_lc='no'
8758 hardcode_libdir_separator=:
8759 ;;
8760
8761 solaris*)
8762 no_undefined_flag=' -z defs'
8763 if test "$GCC" = yes; then
8764 wlarc='${wl}'
8765 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8766 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8767 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8768 else
8769 case `$CC -V 2>&1` in
8770 *"Compilers 5.0"*)
8771 wlarc=''
8772 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8773 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8774 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8775 ;;
8776 *)
8777 wlarc='${wl}'
8778 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8779 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8780 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8781 ;;
8782 esac
8783 fi
8784 hardcode_libdir_flag_spec='-R$libdir'
8785 hardcode_shlibpath_var=no
8786 case $host_os in
8787 solaris2.[0-5] | solaris2.[0-5].*) ;;
8788 *)
8789 # The compiler driver will combine and reorder linker options,
8790 # but understands `-z linker_flag'. GCC discards it without `$wl',
8791 # but is careful enough not to reorder.
8792 # Supported since Solaris 2.6 (maybe 2.5.1?)
8793 if test "$GCC" = yes; then
8794 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8795 else
8796 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8797 fi
8798 ;;
8799 esac
8800 link_all_deplibs=yes
8801 ;;
8802
8803 sunos4*)
8804 if test "x$host_vendor" = xsequent; then
8805 # Use $CC to link under sequent, because it throws in some extra .o
8806 # files that make .init and .fini sections work.
8807 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8808 else
8809 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8810 fi
8811 hardcode_libdir_flag_spec='-L$libdir'
8812 hardcode_direct=yes
8813 hardcode_minus_L=yes
8814 hardcode_shlibpath_var=no
8815 ;;
8816
8817 sysv4)
8818 case $host_vendor in
8819 sni)
8820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8821 hardcode_direct=yes # is this really true???
8822 ;;
8823 siemens)
8824 ## LD is ld it makes a PLAMLIB
8825 ## CC just makes a GrossModule.
8826 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8827 reload_cmds='$CC -r -o $output$reload_objs'
8828 hardcode_direct=no
8829 ;;
8830 motorola)
8831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8832 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8833 ;;
8834 esac
8835 runpath_var='LD_RUN_PATH'
8836 hardcode_shlibpath_var=no
8837 ;;
8838
8839 sysv4.3*)
8840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8841 hardcode_shlibpath_var=no
8842 export_dynamic_flag_spec='-Bexport'
8843 ;;
8844
8845 sysv4*MP*)
8846 if test -d /usr/nec; then
8847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848 hardcode_shlibpath_var=no
8849 runpath_var=LD_RUN_PATH
8850 hardcode_runpath_var=yes
8851 ld_shlibs=yes
8852 fi
8853 ;;
8854
8855 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8856 no_undefined_flag='${wl}-z,text'
8857 archive_cmds_need_lc=no
8858 hardcode_shlibpath_var=no
8859 runpath_var='LD_RUN_PATH'
8860
8861 if test "$GCC" = yes; then
8862 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8863 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8864 else
8865 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8866 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8867 fi
8868 ;;
8869
8870 sysv5* | sco3.2v5* | sco5v6*)
8871 # Note: We can NOT use -z defs as we might desire, because we do not
8872 # link with -lc, and that would cause any symbols used from libc to
8873 # always be unresolved, which means just about no library would
8874 # ever link correctly. If we're not using GNU ld we use -z text
8875 # though, which does catch some bad symbols but isn't as heavy-handed
8876 # as -z defs.
8877 no_undefined_flag='${wl}-z,text'
8878 allow_undefined_flag='${wl}-z,nodefs'
8879 archive_cmds_need_lc=no
8880 hardcode_shlibpath_var=no
8881 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8882 hardcode_libdir_separator=':'
8883 link_all_deplibs=yes
8884 export_dynamic_flag_spec='${wl}-Bexport'
8885 runpath_var='LD_RUN_PATH'
8886
8887 if test "$GCC" = yes; then
8888 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8889 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8890 else
8891 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8892 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8893 fi
8894 ;;
8895
8896 uts4*)
8897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898 hardcode_libdir_flag_spec='-L$libdir'
8899 hardcode_shlibpath_var=no
8900 ;;
8901
8902 *)
8903 ld_shlibs=no
8904 ;;
8905 esac
8906
8907 if test x$host_vendor = xsni; then
8908 case $host in
8909 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8910 export_dynamic_flag_spec='${wl}-Blargedynsym'
8911 ;;
8912 esac
8913 fi
8914 fi
8915
8916 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8917 echo "${ECHO_T}$ld_shlibs" >&6; }
8918 test "$ld_shlibs" = no && can_build_shared=no
8919
8920 with_gnu_ld=$with_gnu_ld
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936 #
8937 # Do we need to explicitly link libc?
8938 #
8939 case "x$archive_cmds_need_lc" in
8940 x|xyes)
8941 # Assume -lc should be added
8942 archive_cmds_need_lc=yes
8943
8944 if test "$enable_shared" = yes && test "$GCC" = yes; then
8945 case $archive_cmds in
8946 *'~'*)
8947 # FIXME: we may have to deal with multi-command sequences.
8948 ;;
8949 '$CC '*)
8950 # Test whether the compiler implicitly links with -lc since on some
8951 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8952 # to ld, don't add -lc before -lgcc.
8953 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8954 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8955 $RM conftest*
8956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8957
8958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8959 (eval $ac_compile) 2>&5
8960 ac_status=$?
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } 2>conftest.err; then
8963 soname=conftest
8964 lib=conftest
8965 libobjs=conftest.$ac_objext
8966 deplibs=
8967 wl=$lt_prog_compiler_wl
8968 pic_flag=$lt_prog_compiler_pic
8969 compiler_flags=-v
8970 linker_flags=-v
8971 verstring=
8972 output_objdir=.
8973 libname=conftest
8974 lt_save_allow_undefined_flag=$allow_undefined_flag
8975 allow_undefined_flag=
8976 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8977 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8978 ac_status=$?
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }
8981 then
8982 archive_cmds_need_lc=no
8983 else
8984 archive_cmds_need_lc=yes
8985 fi
8986 allow_undefined_flag=$lt_save_allow_undefined_flag
8987 else
8988 cat conftest.err 1>&5
8989 fi
8990 $RM conftest*
8991 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8992 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8993 ;;
8994 esac
8995 fi
8996 ;;
8997 esac
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9156 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9157
9158 if test "$GCC" = yes; then
9159 case $host_os in
9160 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9161 *) lt_awk_arg="/^libraries:/" ;;
9162 esac
9163 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9164 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9165 # if the path contains ";" then we assume it to be the separator
9166 # otherwise default to the standard path separator (i.e. ":") - it is
9167 # assumed that no part of a normal pathname contains ";" but that should
9168 # okay in the real world where ";" in dirpaths is itself problematic.
9169 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9170 else
9171 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9172 fi
9173 # Ok, now we have the path, separated by spaces, we can step through it
9174 # and add multilib dir if necessary.
9175 lt_tmp_lt_search_path_spec=
9176 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9177 for lt_sys_path in $lt_search_path_spec; do
9178 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9179 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9180 else
9181 test -d "$lt_sys_path" && \
9182 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9183 fi
9184 done
9185 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9186 BEGIN {RS=" "; FS="/|\n";} {
9187 lt_foo="";
9188 lt_count=0;
9189 for (lt_i = NF; lt_i > 0; lt_i--) {
9190 if ($lt_i != "" && $lt_i != ".") {
9191 if ($lt_i == "..") {
9192 lt_count++;
9193 } else {
9194 if (lt_count == 0) {
9195 lt_foo="/" $lt_i lt_foo;
9196 } else {
9197 lt_count--;
9198 }
9199 }
9200 }
9201 }
9202 if (lt_foo != "") { lt_freq[lt_foo]++; }
9203 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9204 }'`
9205 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9206 else
9207 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9208 fi
9209 library_names_spec=
9210 libname_spec='lib$name'
9211 soname_spec=
9212 shrext_cmds=".so"
9213 postinstall_cmds=
9214 postuninstall_cmds=
9215 finish_cmds=
9216 finish_eval=
9217 shlibpath_var=
9218 shlibpath_overrides_runpath=unknown
9219 version_type=none
9220 dynamic_linker="$host_os ld.so"
9221 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9222 need_lib_prefix=unknown
9223 hardcode_into_libs=no
9224
9225 # when you set need_version to no, make sure it does not cause -set_version
9226 # flags to be left without arguments
9227 need_version=unknown
9228
9229 case $host_os in
9230 aix3*)
9231 version_type=linux
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9233 shlibpath_var=LIBPATH
9234
9235 # AIX 3 has no versioning support, so we append a major version to the name.
9236 soname_spec='${libname}${release}${shared_ext}$major'
9237 ;;
9238
9239 aix[4-9]*)
9240 version_type=linux
9241 need_lib_prefix=no
9242 need_version=no
9243 hardcode_into_libs=yes
9244 if test "$host_cpu" = ia64; then
9245 # AIX 5 supports IA64
9246 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 else
9249 # With GCC up to 2.95.x, collect2 would create an import file
9250 # for dependence libraries. The import file would start with
9251 # the line `#! .'. This would cause the generated library to
9252 # depend on `.', always an invalid library. This was fixed in
9253 # development snapshots of GCC prior to 3.0.
9254 case $host_os in
9255 aix4 | aix4.[01] | aix4.[01].*)
9256 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9257 echo ' yes '
9258 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9259 :
9260 else
9261 can_build_shared=no
9262 fi
9263 ;;
9264 esac
9265 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9266 # soname into executable. Probably we can add versioning support to
9267 # collect2, so additional links can be useful in future.
9268 if test "$aix_use_runtimelinking" = yes; then
9269 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9270 # instead of lib<name>.a to let people know that these are not
9271 # typical AIX shared libraries.
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9273 else
9274 # We preserve .a as extension for shared libraries through AIX4.2
9275 # and later when we are not doing run time linking.
9276 library_names_spec='${libname}${release}.a $libname.a'
9277 soname_spec='${libname}${release}${shared_ext}$major'
9278 fi
9279 shlibpath_var=LIBPATH
9280 fi
9281 ;;
9282
9283 amigaos*)
9284 case $host_cpu in
9285 powerpc)
9286 # Since July 2007 AmigaOS4 officially supports .so libraries.
9287 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289 ;;
9290 m68k)
9291 library_names_spec='$libname.ixlibrary $libname.a'
9292 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9293 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'
9294 ;;
9295 esac
9296 ;;
9297
9298 beos*)
9299 library_names_spec='${libname}${shared_ext}'
9300 dynamic_linker="$host_os ld.so"
9301 shlibpath_var=LIBRARY_PATH
9302 ;;
9303
9304 bsdi[45]*)
9305 version_type=linux
9306 need_version=no
9307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9308 soname_spec='${libname}${release}${shared_ext}$major'
9309 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9310 shlibpath_var=LD_LIBRARY_PATH
9311 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9312 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9313 # the default ld.so.conf also contains /usr/contrib/lib and
9314 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9315 # libtool to hard-code these into programs
9316 ;;
9317
9318 cygwin* | mingw* | pw32*)
9319 version_type=windows
9320 shrext_cmds=".dll"
9321 need_version=no
9322 need_lib_prefix=no
9323
9324 case $GCC,$host_os in
9325 yes,cygwin* | yes,mingw* | yes,pw32*)
9326 library_names_spec='$libname.dll.a'
9327 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9328 postinstall_cmds='base_file=`basename \${file}`~
9329 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9330 dldir=$destdir/`dirname \$dlpath`~
9331 test -d \$dldir || mkdir -p \$dldir~
9332 $install_prog $dir/$dlname \$dldir/$dlname~
9333 chmod a+x \$dldir/$dlname~
9334 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9335 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9336 fi'
9337 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9338 dlpath=$dir/\$dldll~
9339 $RM \$dlpath'
9340 shlibpath_overrides_runpath=yes
9341
9342 case $host_os in
9343 cygwin*)
9344 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9345 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9346 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9347 ;;
9348 mingw*)
9349 # MinGW DLLs use traditional 'lib' prefix
9350 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9351 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9352 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9353 # It is most probably a Windows format PATH printed by
9354 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9355 # path with ; separators, and with drive letters. We can handle the
9356 # drive letters (cygwin fileutils understands them), so leave them,
9357 # especially as we might pass files found there to a mingw objdump,
9358 # which wouldn't understand a cygwinified path. Ahh.
9359 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9360 else
9361 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9362 fi
9363 ;;
9364 pw32*)
9365 # pw32 DLLs use 'pw' prefix rather than 'lib'
9366 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9367 ;;
9368 esac
9369 ;;
9370
9371 *)
9372 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9373 ;;
9374 esac
9375 dynamic_linker='Win32 ld.exe'
9376 # FIXME: first we should search . and the directory the executable is in
9377 shlibpath_var=PATH
9378 ;;
9379
9380 darwin* | rhapsody*)
9381 dynamic_linker="$host_os dyld"
9382 version_type=darwin
9383 need_lib_prefix=no
9384 need_version=no
9385 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9386 soname_spec='${libname}${release}${major}$shared_ext'
9387 shlibpath_overrides_runpath=yes
9388 shlibpath_var=DYLD_LIBRARY_PATH
9389 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9390
9391 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9392 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9393 ;;
9394
9395 dgux*)
9396 version_type=linux
9397 need_lib_prefix=no
9398 need_version=no
9399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9400 soname_spec='${libname}${release}${shared_ext}$major'
9401 shlibpath_var=LD_LIBRARY_PATH
9402 ;;
9403
9404 freebsd1*)
9405 dynamic_linker=no
9406 ;;
9407
9408 freebsd* | dragonfly*)
9409 # DragonFly does not have aout. When/if they implement a new
9410 # versioning mechanism, adjust this.
9411 if test -x /usr/bin/objformat; then
9412 objformat=`/usr/bin/objformat`
9413 else
9414 case $host_os in
9415 freebsd[123]*) objformat=aout ;;
9416 *) objformat=elf ;;
9417 esac
9418 fi
9419 version_type=freebsd-$objformat
9420 case $version_type in
9421 freebsd-elf*)
9422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9423 need_version=no
9424 need_lib_prefix=no
9425 ;;
9426 freebsd-*)
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9428 need_version=yes
9429 ;;
9430 esac
9431 shlibpath_var=LD_LIBRARY_PATH
9432 case $host_os in
9433 freebsd2*)
9434 shlibpath_overrides_runpath=yes
9435 ;;
9436 freebsd3.[01]* | freebsdelf3.[01]*)
9437 shlibpath_overrides_runpath=yes
9438 hardcode_into_libs=yes
9439 ;;
9440 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9441 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9442 shlibpath_overrides_runpath=no
9443 hardcode_into_libs=yes
9444 ;;
9445 *) # from 4.6 on, and DragonFly
9446 shlibpath_overrides_runpath=yes
9447 hardcode_into_libs=yes
9448 ;;
9449 esac
9450 ;;
9451
9452 gnu*)
9453 version_type=linux
9454 need_lib_prefix=no
9455 need_version=no
9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9457 soname_spec='${libname}${release}${shared_ext}$major'
9458 shlibpath_var=LD_LIBRARY_PATH
9459 hardcode_into_libs=yes
9460 ;;
9461
9462 hpux9* | hpux10* | hpux11*)
9463 # Give a soname corresponding to the major version so that dld.sl refuses to
9464 # link against other versions.
9465 version_type=sunos
9466 need_lib_prefix=no
9467 need_version=no
9468 case $host_cpu in
9469 ia64*)
9470 shrext_cmds='.so'
9471 hardcode_into_libs=yes
9472 dynamic_linker="$host_os dld.so"
9473 shlibpath_var=LD_LIBRARY_PATH
9474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9476 soname_spec='${libname}${release}${shared_ext}$major'
9477 if test "X$HPUX_IA64_MODE" = X32; then
9478 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9479 else
9480 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9481 fi
9482 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9483 ;;
9484 hppa*64*)
9485 shrext_cmds='.sl'
9486 hardcode_into_libs=yes
9487 dynamic_linker="$host_os dld.sl"
9488 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9489 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9491 soname_spec='${libname}${release}${shared_ext}$major'
9492 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9493 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9494 ;;
9495 *)
9496 shrext_cmds='.sl'
9497 dynamic_linker="$host_os dld.sl"
9498 shlibpath_var=SHLIB_PATH
9499 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9501 soname_spec='${libname}${release}${shared_ext}$major'
9502 ;;
9503 esac
9504 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9505 postinstall_cmds='chmod 555 $lib'
9506 ;;
9507
9508 interix[3-9]*)
9509 version_type=linux
9510 need_lib_prefix=no
9511 need_version=no
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9513 soname_spec='${libname}${release}${shared_ext}$major'
9514 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9515 shlibpath_var=LD_LIBRARY_PATH
9516 shlibpath_overrides_runpath=no
9517 hardcode_into_libs=yes
9518 ;;
9519
9520 irix5* | irix6* | nonstopux*)
9521 case $host_os in
9522 nonstopux*) version_type=nonstopux ;;
9523 *)
9524 if test "$lt_cv_prog_gnu_ld" = yes; then
9525 version_type=linux
9526 else
9527 version_type=irix
9528 fi ;;
9529 esac
9530 need_lib_prefix=no
9531 need_version=no
9532 soname_spec='${libname}${release}${shared_ext}$major'
9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9534 case $host_os in
9535 irix5* | nonstopux*)
9536 libsuff= shlibsuff=
9537 ;;
9538 *)
9539 case $LD in # libtool.m4 will add one of these switches to LD
9540 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9541 libsuff= shlibsuff= libmagic=32-bit;;
9542 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9543 libsuff=32 shlibsuff=N32 libmagic=N32;;
9544 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9545 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9546 *) libsuff= shlibsuff= libmagic=never-match;;
9547 esac
9548 ;;
9549 esac
9550 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9551 shlibpath_overrides_runpath=no
9552 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9553 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9554 hardcode_into_libs=yes
9555 ;;
9556
9557 # No shared lib support for Linux oldld, aout, or coff.
9558 linux*oldld* | linux*aout* | linux*coff*)
9559 dynamic_linker=no
9560 ;;
9561
9562 # This must be Linux ELF.
9563 linux* | k*bsd*-gnu)
9564 version_type=linux
9565 need_lib_prefix=no
9566 need_version=no
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568 soname_spec='${libname}${release}${shared_ext}$major'
9569 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9570 shlibpath_var=LD_LIBRARY_PATH
9571 shlibpath_overrides_runpath=no
9572 # Some binutils ld are patched to set DT_RUNPATH
9573 save_LDFLAGS=$LDFLAGS
9574 save_libdir=$libdir
9575 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9576 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9577 cat >conftest.$ac_ext <<_ACEOF
9578 /* confdefs.h. */
9579 _ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9583
9584 int
9585 main ()
9586 {
9587
9588 ;
9589 return 0;
9590 }
9591 _ACEOF
9592 rm -f conftest.$ac_objext conftest$ac_exeext
9593 if { (ac_try="$ac_link"
9594 case "(($ac_try" in
9595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596 *) ac_try_echo=$ac_try;;
9597 esac
9598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599 (eval "$ac_link") 2>conftest.er1
9600 ac_status=$?
9601 grep -v '^ *+' conftest.er1 >conftest.err
9602 rm -f conftest.er1
9603 cat conftest.err >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } && {
9606 test -z "$ac_c_werror_flag" ||
9607 test ! -s conftest.err
9608 } && test -s conftest$ac_exeext &&
9609 $as_test_x conftest$ac_exeext; then
9610 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9611 shlibpath_overrides_runpath=yes
9612 fi
9613
9614 else
9615 echo "$as_me: failed program was:" >&5
9616 sed 's/^/| /' conftest.$ac_ext >&5
9617
9618
9619 fi
9620
9621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9622 conftest$ac_exeext conftest.$ac_ext
9623 LDFLAGS=$save_LDFLAGS
9624 libdir=$save_libdir
9625
9626 # This implies no fast_install, which is unacceptable.
9627 # Some rework will be needed to allow for fast_install
9628 # before this can be enabled.
9629 hardcode_into_libs=yes
9630
9631 # Append ld.so.conf contents to the search path
9632 if test -f /etc/ld.so.conf; then
9633 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9634 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9635 fi
9636
9637 # We used to test for /lib/ld.so.1 and disable shared libraries on
9638 # powerpc, because MkLinux only supported shared libraries with the
9639 # GNU dynamic linker. Since this was broken with cross compilers,
9640 # most powerpc-linux boxes support dynamic linking these days and
9641 # people can always --disable-shared, the test was removed, and we
9642 # assume the GNU/Linux dynamic linker is in use.
9643 dynamic_linker='GNU/Linux ld.so'
9644 ;;
9645
9646 netbsdelf*-gnu)
9647 version_type=linux
9648 need_lib_prefix=no
9649 need_version=no
9650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9651 soname_spec='${libname}${release}${shared_ext}$major'
9652 shlibpath_var=LD_LIBRARY_PATH
9653 shlibpath_overrides_runpath=no
9654 hardcode_into_libs=yes
9655 dynamic_linker='NetBSD ld.elf_so'
9656 ;;
9657
9658 netbsd*)
9659 version_type=sunos
9660 need_lib_prefix=no
9661 need_version=no
9662 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9665 dynamic_linker='NetBSD (a.out) ld.so'
9666 else
9667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9668 soname_spec='${libname}${release}${shared_ext}$major'
9669 dynamic_linker='NetBSD ld.elf_so'
9670 fi
9671 shlibpath_var=LD_LIBRARY_PATH
9672 shlibpath_overrides_runpath=yes
9673 hardcode_into_libs=yes
9674 ;;
9675
9676 newsos6)
9677 version_type=linux
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679 shlibpath_var=LD_LIBRARY_PATH
9680 shlibpath_overrides_runpath=yes
9681 ;;
9682
9683 *nto* | *qnx*)
9684 version_type=qnx
9685 need_lib_prefix=no
9686 need_version=no
9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9688 soname_spec='${libname}${release}${shared_ext}$major'
9689 shlibpath_var=LD_LIBRARY_PATH
9690 shlibpath_overrides_runpath=no
9691 hardcode_into_libs=yes
9692 dynamic_linker='ldqnx.so'
9693 ;;
9694
9695 openbsd*)
9696 version_type=sunos
9697 sys_lib_dlsearch_path_spec="/usr/lib"
9698 need_lib_prefix=no
9699 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9700 case $host_os in
9701 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9702 *) need_version=no ;;
9703 esac
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9706 shlibpath_var=LD_LIBRARY_PATH
9707 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9708 case $host_os in
9709 openbsd2.[89] | openbsd2.[89].*)
9710 shlibpath_overrides_runpath=no
9711 ;;
9712 *)
9713 shlibpath_overrides_runpath=yes
9714 ;;
9715 esac
9716 else
9717 shlibpath_overrides_runpath=yes
9718 fi
9719 ;;
9720
9721 os2*)
9722 libname_spec='$name'
9723 shrext_cmds=".dll"
9724 need_lib_prefix=no
9725 library_names_spec='$libname${shared_ext} $libname.a'
9726 dynamic_linker='OS/2 ld.exe'
9727 shlibpath_var=LIBPATH
9728 ;;
9729
9730 osf3* | osf4* | osf5*)
9731 version_type=osf
9732 need_lib_prefix=no
9733 need_version=no
9734 soname_spec='${libname}${release}${shared_ext}$major'
9735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9736 shlibpath_var=LD_LIBRARY_PATH
9737 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9738 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9739 ;;
9740
9741 rdos*)
9742 dynamic_linker=no
9743 ;;
9744
9745 solaris*)
9746 version_type=linux
9747 need_lib_prefix=no
9748 need_version=no
9749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9750 soname_spec='${libname}${release}${shared_ext}$major'
9751 shlibpath_var=LD_LIBRARY_PATH
9752 shlibpath_overrides_runpath=yes
9753 hardcode_into_libs=yes
9754 # ldd complains unless libraries are executable
9755 postinstall_cmds='chmod +x $lib'
9756 ;;
9757
9758 sunos4*)
9759 version_type=sunos
9760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9761 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9762 shlibpath_var=LD_LIBRARY_PATH
9763 shlibpath_overrides_runpath=yes
9764 if test "$with_gnu_ld" = yes; then
9765 need_lib_prefix=no
9766 fi
9767 need_version=yes
9768 ;;
9769
9770 sysv4 | sysv4.3*)
9771 version_type=linux
9772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9773 soname_spec='${libname}${release}${shared_ext}$major'
9774 shlibpath_var=LD_LIBRARY_PATH
9775 case $host_vendor in
9776 sni)
9777 shlibpath_overrides_runpath=no
9778 need_lib_prefix=no
9779 runpath_var=LD_RUN_PATH
9780 ;;
9781 siemens)
9782 need_lib_prefix=no
9783 ;;
9784 motorola)
9785 need_lib_prefix=no
9786 need_version=no
9787 shlibpath_overrides_runpath=no
9788 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9789 ;;
9790 esac
9791 ;;
9792
9793 sysv4*MP*)
9794 if test -d /usr/nec ;then
9795 version_type=linux
9796 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9797 soname_spec='$libname${shared_ext}.$major'
9798 shlibpath_var=LD_LIBRARY_PATH
9799 fi
9800 ;;
9801
9802 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9803 version_type=freebsd-elf
9804 need_lib_prefix=no
9805 need_version=no
9806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9807 soname_spec='${libname}${release}${shared_ext}$major'
9808 shlibpath_var=LD_LIBRARY_PATH
9809 shlibpath_overrides_runpath=yes
9810 hardcode_into_libs=yes
9811 if test "$with_gnu_ld" = yes; then
9812 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9813 else
9814 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9815 case $host_os in
9816 sco3.2v5*)
9817 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9818 ;;
9819 esac
9820 fi
9821 sys_lib_dlsearch_path_spec='/usr/lib'
9822 ;;
9823
9824 tpf*)
9825 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9826 version_type=linux
9827 need_lib_prefix=no
9828 need_version=no
9829 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9830 shlibpath_var=LD_LIBRARY_PATH
9831 shlibpath_overrides_runpath=no
9832 hardcode_into_libs=yes
9833 ;;
9834
9835 uts4*)
9836 version_type=linux
9837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9838 soname_spec='${libname}${release}${shared_ext}$major'
9839 shlibpath_var=LD_LIBRARY_PATH
9840 ;;
9841
9842 *)
9843 dynamic_linker=no
9844 ;;
9845 esac
9846 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9847 echo "${ECHO_T}$dynamic_linker" >&6; }
9848 test "$dynamic_linker" = no && can_build_shared=no
9849
9850 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9851 if test "$GCC" = yes; then
9852 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9853 fi
9854
9855 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9856 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9857 fi
9858 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9859 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9860 fi
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9949 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9950 hardcode_action=
9951 if test -n "$hardcode_libdir_flag_spec" ||
9952 test -n "$runpath_var" ||
9953 test "X$hardcode_automatic" = "Xyes" ; then
9954
9955 # We can hardcode non-existent directories.
9956 if test "$hardcode_direct" != no &&
9957 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9958 # have to relink, otherwise we might link with an installed library
9959 # when we should be linking with a yet-to-be-installed one
9960 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9961 test "$hardcode_minus_L" != no; then
9962 # Linking always hardcodes the temporary library directory.
9963 hardcode_action=relink
9964 else
9965 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9966 hardcode_action=immediate
9967 fi
9968 else
9969 # We cannot hardcode anything, or else we can only hardcode existing
9970 # directories.
9971 hardcode_action=unsupported
9972 fi
9973 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9974 echo "${ECHO_T}$hardcode_action" >&6; }
9975
9976 if test "$hardcode_action" = relink ||
9977 test "$inherit_rpath" = yes; then
9978 # Fast installation is not supported
9979 enable_fast_install=no
9980 elif test "$shlibpath_overrides_runpath" = yes ||
9981 test "$enable_shared" = no; then
9982 # Fast installation is not necessary
9983 enable_fast_install=needless
9984 fi
9985
9986
9987
9988
9989
9990
9991 if test "x$enable_dlopen" != xyes; then
9992 enable_dlopen=unknown
9993 enable_dlopen_self=unknown
9994 enable_dlopen_self_static=unknown
9995 else
9996 lt_cv_dlopen=no
9997 lt_cv_dlopen_libs=
9998
9999 case $host_os in
10000 beos*)
10001 lt_cv_dlopen="load_add_on"
10002 lt_cv_dlopen_libs=
10003 lt_cv_dlopen_self=yes
10004 ;;
10005
10006 mingw* | pw32*)
10007 lt_cv_dlopen="LoadLibrary"
10008 lt_cv_dlopen_libs=
10009 ;;
10010
10011 cygwin*)
10012 lt_cv_dlopen="dlopen"
10013 lt_cv_dlopen_libs=
10014 ;;
10015
10016 darwin*)
10017 # if libdl is installed we need to link against it
10018 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10019 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10020 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023 ac_check_lib_save_LIBS=$LIBS
10024 LIBS="-ldl $LIBS"
10025 cat >conftest.$ac_ext <<_ACEOF
10026 /* confdefs.h. */
10027 _ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h. */
10031
10032 /* Override any GCC internal prototype to avoid an error.
10033 Use char because int might match the return type of a GCC
10034 builtin and then its argument prototype would still apply. */
10035 #ifdef __cplusplus
10036 extern "C"
10037 #endif
10038 char dlopen ();
10039 int
10040 main ()
10041 {
10042 return dlopen ();
10043 ;
10044 return 0;
10045 }
10046 _ACEOF
10047 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (ac_try="$ac_link"
10049 case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10052 esac
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_link") 2>conftest.er1
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } && {
10061 test -z "$ac_c_werror_flag" ||
10062 test ! -s conftest.err
10063 } && test -s conftest$ac_exeext &&
10064 $as_test_x conftest$ac_exeext; then
10065 ac_cv_lib_dl_dlopen=yes
10066 else
10067 echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10069
10070 ac_cv_lib_dl_dlopen=no
10071 fi
10072
10073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10074 conftest$ac_exeext conftest.$ac_ext
10075 LIBS=$ac_check_lib_save_LIBS
10076 fi
10077 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10078 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10079 if test $ac_cv_lib_dl_dlopen = yes; then
10080 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10081 else
10082
10083 lt_cv_dlopen="dyld"
10084 lt_cv_dlopen_libs=
10085 lt_cv_dlopen_self=yes
10086
10087 fi
10088
10089 ;;
10090
10091 *)
10092 { echo "$as_me:$LINENO: checking for shl_load" >&5
10093 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10094 if test "${ac_cv_func_shl_load+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097 cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h. */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10103 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10105 #define shl_load innocuous_shl_load
10106
10107 /* System header to define __stub macros and hopefully few prototypes,
10108 which can conflict with char shl_load (); below.
10109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10110 <limits.h> exists even on freestanding compilers. */
10111
10112 #ifdef __STDC__
10113 # include <limits.h>
10114 #else
10115 # include <assert.h>
10116 #endif
10117
10118 #undef shl_load
10119
10120 /* Override any GCC internal prototype to avoid an error.
10121 Use char because int might match the return type of a GCC
10122 builtin and then its argument prototype would still apply. */
10123 #ifdef __cplusplus
10124 extern "C"
10125 #endif
10126 char shl_load ();
10127 /* The GNU C library defines this for functions which it implements
10128 to always fail with ENOSYS. Some functions are actually named
10129 something starting with __ and the normal name is an alias. */
10130 #if defined __stub_shl_load || defined __stub___shl_load
10131 choke me
10132 #endif
10133
10134 int
10135 main ()
10136 {
10137 return shl_load ();
10138 ;
10139 return 0;
10140 }
10141 _ACEOF
10142 rm -f conftest.$ac_objext conftest$ac_exeext
10143 if { (ac_try="$ac_link"
10144 case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10147 esac
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_link") 2>conftest.er1
10150 ac_status=$?
10151 grep -v '^ *+' conftest.er1 >conftest.err
10152 rm -f conftest.er1
10153 cat conftest.err >&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } && {
10156 test -z "$ac_c_werror_flag" ||
10157 test ! -s conftest.err
10158 } && test -s conftest$ac_exeext &&
10159 $as_test_x conftest$ac_exeext; then
10160 ac_cv_func_shl_load=yes
10161 else
10162 echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10164
10165 ac_cv_func_shl_load=no
10166 fi
10167
10168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10169 conftest$ac_exeext conftest.$ac_ext
10170 fi
10171 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10172 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10173 if test $ac_cv_func_shl_load = yes; then
10174 lt_cv_dlopen="shl_load"
10175 else
10176 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10177 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10178 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10179 echo $ECHO_N "(cached) $ECHO_C" >&6
10180 else
10181 ac_check_lib_save_LIBS=$LIBS
10182 LIBS="-ldld $LIBS"
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h. */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189
10190 /* Override any GCC internal prototype to avoid an error.
10191 Use char because int might match the return type of a GCC
10192 builtin and then its argument prototype would still apply. */
10193 #ifdef __cplusplus
10194 extern "C"
10195 #endif
10196 char shl_load ();
10197 int
10198 main ()
10199 {
10200 return shl_load ();
10201 ;
10202 return 0;
10203 }
10204 _ACEOF
10205 rm -f conftest.$ac_objext conftest$ac_exeext
10206 if { (ac_try="$ac_link"
10207 case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10210 esac
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_link") 2>conftest.er1
10213 ac_status=$?
10214 grep -v '^ *+' conftest.er1 >conftest.err
10215 rm -f conftest.er1
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } && {
10219 test -z "$ac_c_werror_flag" ||
10220 test ! -s conftest.err
10221 } && test -s conftest$ac_exeext &&
10222 $as_test_x conftest$ac_exeext; then
10223 ac_cv_lib_dld_shl_load=yes
10224 else
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10227
10228 ac_cv_lib_dld_shl_load=no
10229 fi
10230
10231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10232 conftest$ac_exeext conftest.$ac_ext
10233 LIBS=$ac_check_lib_save_LIBS
10234 fi
10235 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10236 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10237 if test $ac_cv_lib_dld_shl_load = yes; then
10238 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10239 else
10240 { echo "$as_me:$LINENO: checking for dlopen" >&5
10241 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10242 if test "${ac_cv_func_dlopen+set}" = set; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 else
10245 cat >conftest.$ac_ext <<_ACEOF
10246 /* confdefs.h. */
10247 _ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h. */
10251 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10253 #define dlopen innocuous_dlopen
10254
10255 /* System header to define __stub macros and hopefully few prototypes,
10256 which can conflict with char dlopen (); below.
10257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10258 <limits.h> exists even on freestanding compilers. */
10259
10260 #ifdef __STDC__
10261 # include <limits.h>
10262 #else
10263 # include <assert.h>
10264 #endif
10265
10266 #undef dlopen
10267
10268 /* Override any GCC internal prototype to avoid an error.
10269 Use char because int might match the return type of a GCC
10270 builtin and then its argument prototype would still apply. */
10271 #ifdef __cplusplus
10272 extern "C"
10273 #endif
10274 char dlopen ();
10275 /* The GNU C library defines this for functions which it implements
10276 to always fail with ENOSYS. Some functions are actually named
10277 something starting with __ and the normal name is an alias. */
10278 #if defined __stub_dlopen || defined __stub___dlopen
10279 choke me
10280 #endif
10281
10282 int
10283 main ()
10284 {
10285 return dlopen ();
10286 ;
10287 return 0;
10288 }
10289 _ACEOF
10290 rm -f conftest.$ac_objext conftest$ac_exeext
10291 if { (ac_try="$ac_link"
10292 case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10295 esac
10296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_link") 2>conftest.er1
10298 ac_status=$?
10299 grep -v '^ *+' conftest.er1 >conftest.err
10300 rm -f conftest.er1
10301 cat conftest.err >&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } && {
10304 test -z "$ac_c_werror_flag" ||
10305 test ! -s conftest.err
10306 } && test -s conftest$ac_exeext &&
10307 $as_test_x conftest$ac_exeext; then
10308 ac_cv_func_dlopen=yes
10309 else
10310 echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10312
10313 ac_cv_func_dlopen=no
10314 fi
10315
10316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10317 conftest$ac_exeext conftest.$ac_ext
10318 fi
10319 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10320 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10321 if test $ac_cv_func_dlopen = yes; then
10322 lt_cv_dlopen="dlopen"
10323 else
10324 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10325 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10326 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10328 else
10329 ac_check_lib_save_LIBS=$LIBS
10330 LIBS="-ldl $LIBS"
10331 cat >conftest.$ac_ext <<_ACEOF
10332 /* confdefs.h. */
10333 _ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337
10338 /* Override any GCC internal prototype to avoid an error.
10339 Use char because int might match the return type of a GCC
10340 builtin and then its argument prototype would still apply. */
10341 #ifdef __cplusplus
10342 extern "C"
10343 #endif
10344 char dlopen ();
10345 int
10346 main ()
10347 {
10348 return dlopen ();
10349 ;
10350 return 0;
10351 }
10352 _ACEOF
10353 rm -f conftest.$ac_objext conftest$ac_exeext
10354 if { (ac_try="$ac_link"
10355 case "(($ac_try" in
10356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10358 esac
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_link") 2>conftest.er1
10361 ac_status=$?
10362 grep -v '^ *+' conftest.er1 >conftest.err
10363 rm -f conftest.er1
10364 cat conftest.err >&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } && {
10367 test -z "$ac_c_werror_flag" ||
10368 test ! -s conftest.err
10369 } && test -s conftest$ac_exeext &&
10370 $as_test_x conftest$ac_exeext; then
10371 ac_cv_lib_dl_dlopen=yes
10372 else
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10375
10376 ac_cv_lib_dl_dlopen=no
10377 fi
10378
10379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10380 conftest$ac_exeext conftest.$ac_ext
10381 LIBS=$ac_check_lib_save_LIBS
10382 fi
10383 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10384 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10385 if test $ac_cv_lib_dl_dlopen = yes; then
10386 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10387 else
10388 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10389 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10390 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 else
10393 ac_check_lib_save_LIBS=$LIBS
10394 LIBS="-lsvld $LIBS"
10395 cat >conftest.$ac_ext <<_ACEOF
10396 /* confdefs.h. */
10397 _ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h. */
10401
10402 /* Override any GCC internal prototype to avoid an error.
10403 Use char because int might match the return type of a GCC
10404 builtin and then its argument prototype would still apply. */
10405 #ifdef __cplusplus
10406 extern "C"
10407 #endif
10408 char dlopen ();
10409 int
10410 main ()
10411 {
10412 return dlopen ();
10413 ;
10414 return 0;
10415 }
10416 _ACEOF
10417 rm -f conftest.$ac_objext conftest$ac_exeext
10418 if { (ac_try="$ac_link"
10419 case "(($ac_try" in
10420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421 *) ac_try_echo=$ac_try;;
10422 esac
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_link") 2>conftest.er1
10425 ac_status=$?
10426 grep -v '^ *+' conftest.er1 >conftest.err
10427 rm -f conftest.er1
10428 cat conftest.err >&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } && {
10431 test -z "$ac_c_werror_flag" ||
10432 test ! -s conftest.err
10433 } && test -s conftest$ac_exeext &&
10434 $as_test_x conftest$ac_exeext; then
10435 ac_cv_lib_svld_dlopen=yes
10436 else
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10439
10440 ac_cv_lib_svld_dlopen=no
10441 fi
10442
10443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10444 conftest$ac_exeext conftest.$ac_ext
10445 LIBS=$ac_check_lib_save_LIBS
10446 fi
10447 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10448 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10449 if test $ac_cv_lib_svld_dlopen = yes; then
10450 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10451 else
10452 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10453 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10454 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 else
10457 ac_check_lib_save_LIBS=$LIBS
10458 LIBS="-ldld $LIBS"
10459 cat >conftest.$ac_ext <<_ACEOF
10460 /* confdefs.h. */
10461 _ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h. */
10465
10466 /* Override any GCC internal prototype to avoid an error.
10467 Use char because int might match the return type of a GCC
10468 builtin and then its argument prototype would still apply. */
10469 #ifdef __cplusplus
10470 extern "C"
10471 #endif
10472 char dld_link ();
10473 int
10474 main ()
10475 {
10476 return dld_link ();
10477 ;
10478 return 0;
10479 }
10480 _ACEOF
10481 rm -f conftest.$ac_objext conftest$ac_exeext
10482 if { (ac_try="$ac_link"
10483 case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10486 esac
10487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488 (eval "$ac_link") 2>conftest.er1
10489 ac_status=$?
10490 grep -v '^ *+' conftest.er1 >conftest.err
10491 rm -f conftest.er1
10492 cat conftest.err >&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } && {
10495 test -z "$ac_c_werror_flag" ||
10496 test ! -s conftest.err
10497 } && test -s conftest$ac_exeext &&
10498 $as_test_x conftest$ac_exeext; then
10499 ac_cv_lib_dld_dld_link=yes
10500 else
10501 echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10503
10504 ac_cv_lib_dld_dld_link=no
10505 fi
10506
10507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10508 conftest$ac_exeext conftest.$ac_ext
10509 LIBS=$ac_check_lib_save_LIBS
10510 fi
10511 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10512 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10513 if test $ac_cv_lib_dld_dld_link = yes; then
10514 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10515 fi
10516
10517
10518 fi
10519
10520
10521 fi
10522
10523
10524 fi
10525
10526
10527 fi
10528
10529
10530 fi
10531
10532 ;;
10533 esac
10534
10535 if test "x$lt_cv_dlopen" != xno; then
10536 enable_dlopen=yes
10537 else
10538 enable_dlopen=no
10539 fi
10540
10541 case $lt_cv_dlopen in
10542 dlopen)
10543 save_CPPFLAGS="$CPPFLAGS"
10544 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10545
10546 save_LDFLAGS="$LDFLAGS"
10547 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10548
10549 save_LIBS="$LIBS"
10550 LIBS="$lt_cv_dlopen_libs $LIBS"
10551
10552 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10553 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10554 if test "${lt_cv_dlopen_self+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 else
10557 if test "$cross_compiling" = yes; then :
10558 lt_cv_dlopen_self=cross
10559 else
10560 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10561 lt_status=$lt_dlunknown
10562 cat > conftest.$ac_ext <<_LT_EOF
10563 #line 10563 "configure"
10564 #include "confdefs.h"
10565
10566 #if HAVE_DLFCN_H
10567 #include <dlfcn.h>
10568 #endif
10569
10570 #include <stdio.h>
10571
10572 #ifdef RTLD_GLOBAL
10573 # define LT_DLGLOBAL RTLD_GLOBAL
10574 #else
10575 # ifdef DL_GLOBAL
10576 # define LT_DLGLOBAL DL_GLOBAL
10577 # else
10578 # define LT_DLGLOBAL 0
10579 # endif
10580 #endif
10581
10582 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10583 find out it does not work in some platform. */
10584 #ifndef LT_DLLAZY_OR_NOW
10585 # ifdef RTLD_LAZY
10586 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10587 # else
10588 # ifdef DL_LAZY
10589 # define LT_DLLAZY_OR_NOW DL_LAZY
10590 # else
10591 # ifdef RTLD_NOW
10592 # define LT_DLLAZY_OR_NOW RTLD_NOW
10593 # else
10594 # ifdef DL_NOW
10595 # define LT_DLLAZY_OR_NOW DL_NOW
10596 # else
10597 # define LT_DLLAZY_OR_NOW 0
10598 # endif
10599 # endif
10600 # endif
10601 # endif
10602 #endif
10603
10604 #ifdef __cplusplus
10605 extern "C" void exit (int);
10606 #endif
10607
10608 void fnord() { int i=42;}
10609 int main ()
10610 {
10611 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10612 int status = $lt_dlunknown;
10613
10614 if (self)
10615 {
10616 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10617 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10618 /* dlclose (self); */
10619 }
10620 else
10621 puts (dlerror ());
10622
10623 exit (status);
10624 }
10625 _LT_EOF
10626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10627 (eval $ac_link) 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10631 (./conftest; exit; ) >&5 2>/dev/null
10632 lt_status=$?
10633 case x$lt_status in
10634 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10635 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10636 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10637 esac
10638 else :
10639 # compilation failed
10640 lt_cv_dlopen_self=no
10641 fi
10642 fi
10643 rm -fr conftest*
10644
10645
10646 fi
10647 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10648 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10649
10650 if test "x$lt_cv_dlopen_self" = xyes; then
10651 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10652 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10653 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10654 if test "${lt_cv_dlopen_self_static+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 else
10657 if test "$cross_compiling" = yes; then :
10658 lt_cv_dlopen_self_static=cross
10659 else
10660 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10661 lt_status=$lt_dlunknown
10662 cat > conftest.$ac_ext <<_LT_EOF
10663 #line 10663 "configure"
10664 #include "confdefs.h"
10665
10666 #if HAVE_DLFCN_H
10667 #include <dlfcn.h>
10668 #endif
10669
10670 #include <stdio.h>
10671
10672 #ifdef RTLD_GLOBAL
10673 # define LT_DLGLOBAL RTLD_GLOBAL
10674 #else
10675 # ifdef DL_GLOBAL
10676 # define LT_DLGLOBAL DL_GLOBAL
10677 # else
10678 # define LT_DLGLOBAL 0
10679 # endif
10680 #endif
10681
10682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10683 find out it does not work in some platform. */
10684 #ifndef LT_DLLAZY_OR_NOW
10685 # ifdef RTLD_LAZY
10686 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10687 # else
10688 # ifdef DL_LAZY
10689 # define LT_DLLAZY_OR_NOW DL_LAZY
10690 # else
10691 # ifdef RTLD_NOW
10692 # define LT_DLLAZY_OR_NOW RTLD_NOW
10693 # else
10694 # ifdef DL_NOW
10695 # define LT_DLLAZY_OR_NOW DL_NOW
10696 # else
10697 # define LT_DLLAZY_OR_NOW 0
10698 # endif
10699 # endif
10700 # endif
10701 # endif
10702 #endif
10703
10704 #ifdef __cplusplus
10705 extern "C" void exit (int);
10706 #endif
10707
10708 void fnord() { int i=42;}
10709 int main ()
10710 {
10711 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10712 int status = $lt_dlunknown;
10713
10714 if (self)
10715 {
10716 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10717 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10718 /* dlclose (self); */
10719 }
10720 else
10721 puts (dlerror ());
10722
10723 exit (status);
10724 }
10725 _LT_EOF
10726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10727 (eval $ac_link) 2>&5
10728 ac_status=$?
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10731 (./conftest; exit; ) >&5 2>/dev/null
10732 lt_status=$?
10733 case x$lt_status in
10734 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10735 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10736 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10737 esac
10738 else :
10739 # compilation failed
10740 lt_cv_dlopen_self_static=no
10741 fi
10742 fi
10743 rm -fr conftest*
10744
10745
10746 fi
10747 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10748 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10749 fi
10750
10751 CPPFLAGS="$save_CPPFLAGS"
10752 LDFLAGS="$save_LDFLAGS"
10753 LIBS="$save_LIBS"
10754 ;;
10755 esac
10756
10757 case $lt_cv_dlopen_self in
10758 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10759 *) enable_dlopen_self=unknown ;;
10760 esac
10761
10762 case $lt_cv_dlopen_self_static in
10763 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10764 *) enable_dlopen_self_static=unknown ;;
10765 esac
10766 fi
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784 striplib=
10785 old_striplib=
10786 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10787 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10788 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10789 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10790 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10791 { echo "$as_me:$LINENO: result: yes" >&5
10792 echo "${ECHO_T}yes" >&6; }
10793 else
10794 # FIXME - insert some real tests, host_os isn't really good enough
10795 case $host_os in
10796 darwin*)
10797 if test -n "$STRIP" ; then
10798 striplib="$STRIP -x"
10799 old_striplib="$STRIP -S"
10800 { echo "$as_me:$LINENO: result: yes" >&5
10801 echo "${ECHO_T}yes" >&6; }
10802 else
10803 { echo "$as_me:$LINENO: result: no" >&5
10804 echo "${ECHO_T}no" >&6; }
10805 fi
10806 ;;
10807 *)
10808 { echo "$as_me:$LINENO: result: no" >&5
10809 echo "${ECHO_T}no" >&6; }
10810 ;;
10811 esac
10812 fi
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825 # Report which library types will actually be built
10826 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10827 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10828 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10829 echo "${ECHO_T}$can_build_shared" >&6; }
10830
10831 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10832 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10833 test "$can_build_shared" = "no" && enable_shared=no
10834
10835 # On AIX, shared libraries and static libraries use the same namespace, and
10836 # are all built from PIC.
10837 case $host_os in
10838 aix3*)
10839 test "$enable_shared" = yes && enable_static=no
10840 if test -n "$RANLIB"; then
10841 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10842 postinstall_cmds='$RANLIB $lib'
10843 fi
10844 ;;
10845
10846 aix[4-9]*)
10847 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10848 test "$enable_shared" = yes && enable_static=no
10849 fi
10850 ;;
10851 esac
10852 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10853 echo "${ECHO_T}$enable_shared" >&6; }
10854
10855 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10856 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10857 # Make sure either enable_shared or enable_static is yes.
10858 test "$enable_shared" = yes || enable_static=yes
10859 { echo "$as_me:$LINENO: result: $enable_static" >&5
10860 echo "${ECHO_T}$enable_static" >&6; }
10861
10862
10863
10864
10865 fi
10866 ac_ext=c
10867 ac_cpp='$CPP $CPPFLAGS'
10868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10871
10872 CC="$lt_save_CC"
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886 ac_config_commands="$ac_config_commands libtool"
10887
10888
10889
10890
10891 # Only expand once:
10892
10893
10894 ac_ext=c
10895 ac_cpp='$CPP $CPPFLAGS'
10896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10899 if test -n "$ac_tool_prefix"; then
10900 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10901 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10904 if test "${ac_cv_prog_CC+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907 if test -n "$CC"; then
10908 ac_cv_prog_CC="$CC" # Let the user override the test.
10909 else
10910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911 for as_dir in $PATH
10912 do
10913 IFS=$as_save_IFS
10914 test -z "$as_dir" && as_dir=.
10915 for ac_exec_ext in '' $ac_executable_extensions; do
10916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10917 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10919 break 2
10920 fi
10921 done
10922 done
10923 IFS=$as_save_IFS
10924
10925 fi
10926 fi
10927 CC=$ac_cv_prog_CC
10928 if test -n "$CC"; then
10929 { echo "$as_me:$LINENO: result: $CC" >&5
10930 echo "${ECHO_T}$CC" >&6; }
10931 else
10932 { echo "$as_me:$LINENO: result: no" >&5
10933 echo "${ECHO_T}no" >&6; }
10934 fi
10935
10936
10937 fi
10938 if test -z "$ac_cv_prog_CC"; then
10939 ac_ct_CC=$CC
10940 # Extract the first word of "gcc", so it can be a program name with args.
10941 set dummy gcc; ac_word=$2
10942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947 if test -n "$ac_ct_CC"; then
10948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10949 else
10950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951 for as_dir in $PATH
10952 do
10953 IFS=$as_save_IFS
10954 test -z "$as_dir" && as_dir=.
10955 for ac_exec_ext in '' $ac_executable_extensions; do
10956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10957 ac_cv_prog_ac_ct_CC="gcc"
10958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10959 break 2
10960 fi
10961 done
10962 done
10963 IFS=$as_save_IFS
10964
10965 fi
10966 fi
10967 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10968 if test -n "$ac_ct_CC"; then
10969 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10970 echo "${ECHO_T}$ac_ct_CC" >&6; }
10971 else
10972 { echo "$as_me:$LINENO: result: no" >&5
10973 echo "${ECHO_T}no" >&6; }
10974 fi
10975
10976 if test "x$ac_ct_CC" = x; then
10977 CC=""
10978 else
10979 case $cross_compiling:$ac_tool_warned in
10980 yes:)
10981 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10982 whose name does not start with the host triplet. If you think this
10983 configuration is useful to you, please write to [email protected]." >&5
10984 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10985 whose name does not start with the host triplet. If you think this
10986 configuration is useful to you, please write to [email protected]." >&2;}
10987 ac_tool_warned=yes ;;
10988 esac
10989 CC=$ac_ct_CC
10990 fi
10991 else
10992 CC="$ac_cv_prog_CC"
10993 fi
10994
10995 if test -z "$CC"; then
10996 if test -n "$ac_tool_prefix"; then
10997 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10998 set dummy ${ac_tool_prefix}cc; ac_word=$2
10999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11001 if test "${ac_cv_prog_CC+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11003 else
11004 if test -n "$CC"; then
11005 ac_cv_prog_CC="$CC" # Let the user override the test.
11006 else
11007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11008 for as_dir in $PATH
11009 do
11010 IFS=$as_save_IFS
11011 test -z "$as_dir" && as_dir=.
11012 for ac_exec_ext in '' $ac_executable_extensions; do
11013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11014 ac_cv_prog_CC="${ac_tool_prefix}cc"
11015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11016 break 2
11017 fi
11018 done
11019 done
11020 IFS=$as_save_IFS
11021
11022 fi
11023 fi
11024 CC=$ac_cv_prog_CC
11025 if test -n "$CC"; then
11026 { echo "$as_me:$LINENO: result: $CC" >&5
11027 echo "${ECHO_T}$CC" >&6; }
11028 else
11029 { echo "$as_me:$LINENO: result: no" >&5
11030 echo "${ECHO_T}no" >&6; }
11031 fi
11032
11033
11034 fi
11035 fi
11036 if test -z "$CC"; then
11037 # Extract the first word of "cc", so it can be a program name with args.
11038 set dummy cc; ac_word=$2
11039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11041 if test "${ac_cv_prog_CC+set}" = set; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11043 else
11044 if test -n "$CC"; then
11045 ac_cv_prog_CC="$CC" # Let the user override the test.
11046 else
11047 ac_prog_rejected=no
11048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049 for as_dir in $PATH
11050 do
11051 IFS=$as_save_IFS
11052 test -z "$as_dir" && as_dir=.
11053 for ac_exec_ext in '' $ac_executable_extensions; do
11054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11055 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11056 ac_prog_rejected=yes
11057 continue
11058 fi
11059 ac_cv_prog_CC="cc"
11060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11061 break 2
11062 fi
11063 done
11064 done
11065 IFS=$as_save_IFS
11066
11067 if test $ac_prog_rejected = yes; then
11068 # We found a bogon in the path, so make sure we never use it.
11069 set dummy $ac_cv_prog_CC
11070 shift
11071 if test $# != 0; then
11072 # We chose a different compiler from the bogus one.
11073 # However, it has the same basename, so the bogon will be chosen
11074 # first if we set CC to just the basename; use the full file name.
11075 shift
11076 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11077 fi
11078 fi
11079 fi
11080 fi
11081 CC=$ac_cv_prog_CC
11082 if test -n "$CC"; then
11083 { echo "$as_me:$LINENO: result: $CC" >&5
11084 echo "${ECHO_T}$CC" >&6; }
11085 else
11086 { echo "$as_me:$LINENO: result: no" >&5
11087 echo "${ECHO_T}no" >&6; }
11088 fi
11089
11090
11091 fi
11092 if test -z "$CC"; then
11093 if test -n "$ac_tool_prefix"; then
11094 for ac_prog in cl.exe
11095 do
11096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11100 if test "${ac_cv_prog_CC+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103 if test -n "$CC"; then
11104 ac_cv_prog_CC="$CC" # Let the user override the test.
11105 else
11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $PATH
11108 do
11109 IFS=$as_save_IFS
11110 test -z "$as_dir" && as_dir=.
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11113 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11115 break 2
11116 fi
11117 done
11118 done
11119 IFS=$as_save_IFS
11120
11121 fi
11122 fi
11123 CC=$ac_cv_prog_CC
11124 if test -n "$CC"; then
11125 { echo "$as_me:$LINENO: result: $CC" >&5
11126 echo "${ECHO_T}$CC" >&6; }
11127 else
11128 { echo "$as_me:$LINENO: result: no" >&5
11129 echo "${ECHO_T}no" >&6; }
11130 fi
11131
11132
11133 test -n "$CC" && break
11134 done
11135 fi
11136 if test -z "$CC"; then
11137 ac_ct_CC=$CC
11138 for ac_prog in cl.exe
11139 do
11140 # Extract the first word of "$ac_prog", so it can be a program name with args.
11141 set dummy $ac_prog; ac_word=$2
11142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 else
11147 if test -n "$ac_ct_CC"; then
11148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11149 else
11150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151 for as_dir in $PATH
11152 do
11153 IFS=$as_save_IFS
11154 test -z "$as_dir" && as_dir=.
11155 for ac_exec_ext in '' $ac_executable_extensions; do
11156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11157 ac_cv_prog_ac_ct_CC="$ac_prog"
11158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11159 break 2
11160 fi
11161 done
11162 done
11163 IFS=$as_save_IFS
11164
11165 fi
11166 fi
11167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11168 if test -n "$ac_ct_CC"; then
11169 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11170 echo "${ECHO_T}$ac_ct_CC" >&6; }
11171 else
11172 { echo "$as_me:$LINENO: result: no" >&5
11173 echo "${ECHO_T}no" >&6; }
11174 fi
11175
11176
11177 test -n "$ac_ct_CC" && break
11178 done
11179
11180 if test "x$ac_ct_CC" = x; then
11181 CC=""
11182 else
11183 case $cross_compiling:$ac_tool_warned in
11184 yes:)
11185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11186 whose name does not start with the host triplet. If you think this
11187 configuration is useful to you, please write to [email protected]." >&5
11188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11189 whose name does not start with the host triplet. If you think this
11190 configuration is useful to you, please write to [email protected]." >&2;}
11191 ac_tool_warned=yes ;;
11192 esac
11193 CC=$ac_ct_CC
11194 fi
11195 fi
11196
11197 fi
11198
11199
11200 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11201 See \`config.log' for more details." >&5
11202 echo "$as_me: error: no acceptable C compiler found in \$PATH
11203 See \`config.log' for more details." >&2;}
11204 { (exit 1); exit 1; }; }
11205
11206 # Provide some information about the compiler.
11207 echo "$as_me:$LINENO: checking for C compiler version" >&5
11208 ac_compiler=`set X $ac_compile; echo $2`
11209 { (ac_try="$ac_compiler --version >&5"
11210 case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11213 esac
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215 (eval "$ac_compiler --version >&5") 2>&5
11216 ac_status=$?
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }
11219 { (ac_try="$ac_compiler -v >&5"
11220 case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11223 esac
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_compiler -v >&5") 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }
11229 { (ac_try="$ac_compiler -V >&5"
11230 case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11233 esac
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_compiler -V >&5") 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }
11239
11240 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11241 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
11242 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 else
11245 cat >conftest.$ac_ext <<_ACEOF
11246 /* confdefs.h. */
11247 _ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11251
11252 int
11253 main ()
11254 {
11255 #ifndef __GNUC__
11256 choke me
11257 #endif
11258
11259 ;
11260 return 0;
11261 }
11262 _ACEOF
11263 rm -f conftest.$ac_objext
11264 if { (ac_try="$ac_compile"
11265 case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11268 esac
11269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270 (eval "$ac_compile") 2>conftest.er1
11271 ac_status=$?
11272 grep -v '^ *+' conftest.er1 >conftest.err
11273 rm -f conftest.er1
11274 cat conftest.err >&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } && {
11277 test -z "$ac_c_werror_flag" ||
11278 test ! -s conftest.err
11279 } && test -s conftest.$ac_objext; then
11280 ac_compiler_gnu=yes
11281 else
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11284
11285 ac_compiler_gnu=no
11286 fi
11287
11288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11290
11291 fi
11292 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11293 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
11294 GCC=`test $ac_compiler_gnu = yes && echo yes`
11295 ac_test_CFLAGS=${CFLAGS+set}
11296 ac_save_CFLAGS=$CFLAGS
11297 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11298 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
11299 if test "${ac_cv_prog_cc_g+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302 ac_save_c_werror_flag=$ac_c_werror_flag
11303 ac_c_werror_flag=yes
11304 ac_cv_prog_cc_g=no
11305 CFLAGS="-g"
11306 cat >conftest.$ac_ext <<_ACEOF
11307 /* confdefs.h. */
11308 _ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11312
11313 int
11314 main ()
11315 {
11316
11317 ;
11318 return 0;
11319 }
11320 _ACEOF
11321 rm -f conftest.$ac_objext
11322 if { (ac_try="$ac_compile"
11323 case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11326 esac
11327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328 (eval "$ac_compile") 2>conftest.er1
11329 ac_status=$?
11330 grep -v '^ *+' conftest.er1 >conftest.err
11331 rm -f conftest.er1
11332 cat conftest.err >&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } && {
11335 test -z "$ac_c_werror_flag" ||
11336 test ! -s conftest.err
11337 } && test -s conftest.$ac_objext; then
11338 ac_cv_prog_cc_g=yes
11339 else
11340 echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11342
11343 CFLAGS=""
11344 cat >conftest.$ac_ext <<_ACEOF
11345 /* confdefs.h. */
11346 _ACEOF
11347 cat confdefs.h >>conftest.$ac_ext
11348 cat >>conftest.$ac_ext <<_ACEOF
11349 /* end confdefs.h. */
11350
11351 int
11352 main ()
11353 {
11354
11355 ;
11356 return 0;
11357 }
11358 _ACEOF
11359 rm -f conftest.$ac_objext
11360 if { (ac_try="$ac_compile"
11361 case "(($ac_try" in
11362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11364 esac
11365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_compile") 2>conftest.er1
11367 ac_status=$?
11368 grep -v '^ *+' conftest.er1 >conftest.err
11369 rm -f conftest.er1
11370 cat conftest.err >&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } && {
11373 test -z "$ac_c_werror_flag" ||
11374 test ! -s conftest.err
11375 } && test -s conftest.$ac_objext; then
11376 :
11377 else
11378 echo "$as_me: failed program was:" >&5
11379 sed 's/^/| /' conftest.$ac_ext >&5
11380
11381 ac_c_werror_flag=$ac_save_c_werror_flag
11382 CFLAGS="-g"
11383 cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h. */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389
11390 int
11391 main ()
11392 {
11393
11394 ;
11395 return 0;
11396 }
11397 _ACEOF
11398 rm -f conftest.$ac_objext
11399 if { (ac_try="$ac_compile"
11400 case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11403 esac
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_compile") 2>conftest.er1
11406 ac_status=$?
11407 grep -v '^ *+' conftest.er1 >conftest.err
11408 rm -f conftest.er1
11409 cat conftest.err >&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } && {
11412 test -z "$ac_c_werror_flag" ||
11413 test ! -s conftest.err
11414 } && test -s conftest.$ac_objext; then
11415 ac_cv_prog_cc_g=yes
11416 else
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11419
11420
11421 fi
11422
11423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11424 fi
11425
11426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11427 fi
11428
11429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11430 ac_c_werror_flag=$ac_save_c_werror_flag
11431 fi
11432 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11433 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
11434 if test "$ac_test_CFLAGS" = set; then
11435 CFLAGS=$ac_save_CFLAGS
11436 elif test $ac_cv_prog_cc_g = yes; then
11437 if test "$GCC" = yes; then
11438 CFLAGS="-g -O2"
11439 else
11440 CFLAGS="-g"
11441 fi
11442 else
11443 if test "$GCC" = yes; then
11444 CFLAGS="-O2"
11445 else
11446 CFLAGS=
11447 fi
11448 fi
11449 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11450 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
11451 if test "${ac_cv_prog_cc_c89+set}" = set; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11453 else
11454 ac_cv_prog_cc_c89=no
11455 ac_save_CC=$CC
11456 cat >conftest.$ac_ext <<_ACEOF
11457 /* confdefs.h. */
11458 _ACEOF
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>conftest.$ac_ext <<_ACEOF
11461 /* end confdefs.h. */
11462 #include <stdarg.h>
11463 #include <stdio.h>
11464 #include <sys/types.h>
11465 #include <sys/stat.h>
11466 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11467 struct buf { int x; };
11468 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11469 static char *e (p, i)
11470 char **p;
11471 int i;
11472 {
11473 return p[i];
11474 }
11475 static char *f (char * (*g) (char **, int), char **p, ...)
11476 {
11477 char *s;
11478 va_list v;
11479 va_start (v,p);
11480 s = g (p, va_arg (v,int));
11481 va_end (v);
11482 return s;
11483 }
11484
11485 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11486 function prototypes and stuff, but not '\xHH' hex character constants.
11487 These don't provoke an error unfortunately, instead are silently treated
11488 as 'x'. The following induces an error, until -std is added to get
11489 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11490 array size at least. It's necessary to write '\x00'==0 to get something
11491 that's true only with -std. */
11492 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11493
11494 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11495 inside strings and character constants. */
11496 #define FOO(x) 'x'
11497 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11498
11499 int test (int i, double x);
11500 struct s1 {int (*f) (int a);};
11501 struct s2 {int (*f) (double a);};
11502 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11503 int argc;
11504 char **argv;
11505 int
11506 main ()
11507 {
11508 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11509 ;
11510 return 0;
11511 }
11512 _ACEOF
11513 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11514 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11515 do
11516 CC="$ac_save_CC $ac_arg"
11517 rm -f conftest.$ac_objext
11518 if { (ac_try="$ac_compile"
11519 case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11522 esac
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_compile") 2>conftest.er1
11525 ac_status=$?
11526 grep -v '^ *+' conftest.er1 >conftest.err
11527 rm -f conftest.er1
11528 cat conftest.err >&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } && {
11531 test -z "$ac_c_werror_flag" ||
11532 test ! -s conftest.err
11533 } && test -s conftest.$ac_objext; then
11534 ac_cv_prog_cc_c89=$ac_arg
11535 else
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11538
11539
11540 fi
11541
11542 rm -f core conftest.err conftest.$ac_objext
11543 test "x$ac_cv_prog_cc_c89" != "xno" && break
11544 done
11545 rm -f conftest.$ac_ext
11546 CC=$ac_save_CC
11547
11548 fi
11549 # AC_CACHE_VAL
11550 case "x$ac_cv_prog_cc_c89" in
11551 x)
11552 { echo "$as_me:$LINENO: result: none needed" >&5
11553 echo "${ECHO_T}none needed" >&6; } ;;
11554 xno)
11555 { echo "$as_me:$LINENO: result: unsupported" >&5
11556 echo "${ECHO_T}unsupported" >&6; } ;;
11557 *)
11558 CC="$CC $ac_cv_prog_cc_c89"
11559 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11560 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
11561 esac
11562
11563
11564 ac_ext=c
11565 ac_cpp='$CPP $CPPFLAGS'
11566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11569
11570 depcc="$CC" am_compiler_list=
11571
11572 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11573 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
11574 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11575 echo $ECHO_N "(cached) $ECHO_C" >&6
11576 else
11577 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11578 # We make a subdir and do the tests there. Otherwise we can end up
11579 # making bogus files that we don't know about and never remove. For
11580 # instance it was reported that on HP-UX the gcc test will end up
11581 # making a dummy file named `D' -- because `-MD' means `put the output
11582 # in D'.
11583 mkdir conftest.dir
11584 # Copy depcomp to subdir because otherwise we won't find it if we're
11585 # using a relative directory.
11586 cp "$am_depcomp" conftest.dir
11587 cd conftest.dir
11588 # We will build objects and dependencies in a subdirectory because
11589 # it helps to detect inapplicable dependency modes. For instance
11590 # both Tru64's cc and ICC support -MD to output dependencies as a
11591 # side effect of compilation, but ICC will put the dependencies in
11592 # the current directory while Tru64 will put them in the object
11593 # directory.
11594 mkdir sub
11595
11596 am_cv_CC_dependencies_compiler_type=none
11597 if test "$am_compiler_list" = ""; then
11598 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11599 fi
11600 for depmode in $am_compiler_list; do
11601 # Setup a source with many dependencies, because some compilers
11602 # like to wrap large dependency lists on column 80 (with \), and
11603 # we should not choose a depcomp mode which is confused by this.
11604 #
11605 # We need to recreate these files for each test, as the compiler may
11606 # overwrite some of them when testing with obscure command lines.
11607 # This happens at least with the AIX C compiler.
11608 : > sub/conftest.c
11609 for i in 1 2 3 4 5 6; do
11610 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11611 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11612 # Solaris 8's {/usr,}/bin/sh.
11613 touch sub/conftst$i.h
11614 done
11615 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11616
11617 case $depmode in
11618 nosideeffect)
11619 # after this tag, mechanisms are not by side-effect, so they'll
11620 # only be used when explicitly requested
11621 if test "x$enable_dependency_tracking" = xyes; then
11622 continue
11623 else
11624 break
11625 fi
11626 ;;
11627 none) break ;;
11628 esac
11629 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11630 # mode. It turns out that the SunPro C++ compiler does not properly
11631 # handle `-M -o', and we need to detect this.
11632 if depmode=$depmode \
11633 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11634 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11635 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11636 >/dev/null 2>conftest.err &&
11637 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11638 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11639 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11640 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11641 # icc doesn't choke on unknown options, it will just issue warnings
11642 # or remarks (even with -Werror). So we grep stderr for any message
11643 # that says an option was ignored or not supported.
11644 # When given -MP, icc 7.0 and 7.1 complain thusly:
11645 # icc: Command line warning: ignoring option '-M'; no argument required
11646 # The diagnosis changed in icc 8.0:
11647 # icc: Command line remark: option '-MP' not supported
11648 if (grep 'ignoring option' conftest.err ||
11649 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11650 am_cv_CC_dependencies_compiler_type=$depmode
11651 break
11652 fi
11653 fi
11654 done
11655
11656 cd ..
11657 rm -rf conftest.dir
11658 else
11659 am_cv_CC_dependencies_compiler_type=none
11660 fi
11661
11662 fi
11663 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11664 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
11665 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11666
11667 if
11668 test "x$enable_dependency_tracking" != xno \
11669 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11670 am__fastdepCC_TRUE=
11671 am__fastdepCC_FALSE='#'
11672 else
11673 am__fastdepCC_TRUE='#'
11674 am__fastdepCC_FALSE=
11675 fi
11676
11677
11678
11679
11680
11681 # Check whether --with-libmcrypt-prefix was given.
11682 if test "${with_libmcrypt_prefix+set}" = set; then
11683 withval=$with_libmcrypt_prefix; libmcrypt_config_prefix="$withval"
11684 else
11685 libmcrypt_config_prefix=""
11686 fi
11687
11688
11689 if test x$libmcrypt_config_prefix != x ; then
11690 libmcrypt_config_args="$libmcrypt_config_args --prefix=$libmcrypt_config_prefix"
11691 if test x${LIBMCRYPT_CONFIG+set} != xset ; then
11692 LIBMCRYPT_CONFIG=$libmcrypt_config_prefix/bin/libmcrypt-config
11693 fi
11694 fi
11695
11696 # Extract the first word of "libmcrypt-config", so it can be a program name with args.
11697 set dummy libmcrypt-config; ac_word=$2
11698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11700 if test "${ac_cv_path_LIBMCRYPT_CONFIG+set}" = set; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11702 else
11703 case $LIBMCRYPT_CONFIG in
11704 [\\/]* | ?:[\\/]*)
11705 ac_cv_path_LIBMCRYPT_CONFIG="$LIBMCRYPT_CONFIG" # Let the user override the test with a path.
11706 ;;
11707 *)
11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $PATH
11710 do
11711 IFS=$as_save_IFS
11712 test -z "$as_dir" && as_dir=.
11713 for ac_exec_ext in '' $ac_executable_extensions; do
11714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11715 ac_cv_path_LIBMCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11717 break 2
11718 fi
11719 done
11720 done
11721 IFS=$as_save_IFS
11722
11723 test -z "$ac_cv_path_LIBMCRYPT_CONFIG" && ac_cv_path_LIBMCRYPT_CONFIG="no"
11724 ;;
11725 esac
11726 fi
11727 LIBMCRYPT_CONFIG=$ac_cv_path_LIBMCRYPT_CONFIG
11728 if test -n "$LIBMCRYPT_CONFIG"; then
11729 { echo "$as_me:$LINENO: result: $LIBMCRYPT_CONFIG" >&5
11730 echo "${ECHO_T}$LIBMCRYPT_CONFIG" >&6; }
11731 else
11732 { echo "$as_me:$LINENO: result: no" >&5
11733 echo "${ECHO_T}no" >&6; }
11734 fi
11735
11736
11737 min_libmcrypt_version=2.5.0
11738 { echo "$as_me:$LINENO: checking for libmcrypt - version >= $min_libmcrypt_version" >&5
11739 echo $ECHO_N "checking for libmcrypt - version >= $min_libmcrypt_version... $ECHO_C" >&6; }
11740 no_libmcrypt=""
11741 if test "$LIBMCRYPT_CONFIG" = "no" ; then
11742 if test "$cross_compiling" = yes; then
11743 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11744 See \`config.log' for more details." >&5
11745 echo "$as_me: error: cannot run test program while cross compiling
11746 See \`config.log' for more details." >&2;}
11747 { (exit 1); exit 1; }; }
11748 else
11749 cat >conftest.$ac_ext <<_ACEOF
11750 /* confdefs.h. */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h. */
11755
11756 #include <stdio.h>
11757 #include <stdlib.h>
11758 #include <string.h>
11759 #include <mcrypt.h>
11760
11761 int
11762 main ()
11763 {
11764 #if MCRYPT_API_VERSION <= 19991015
11765 /* version 2.2 */
11766 return 0;
11767 #else
11768 /* version 2.4 */
11769 return 1;
11770 #endif /* 19991015 */
11771 }
11772
11773 _ACEOF
11774 rm -f conftest$ac_exeext
11775 if { (ac_try="$ac_link"
11776 case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11779 esac
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_link") 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11785 { (case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11788 esac
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_try") 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; }; then
11794 libmcrypt_config_version="2.2.0"
11795 if test x$libmcrypt_config_prefix != x ; then
11796 TTLIBS="-L${libmcrypt_config_prefix}/libs"
11797 TTINCLUDE="-I${libmcrypt_config_prefix}/include"
11798 fi
11799 LIBMCRYPT_CFLAGS="${TTINCLUDE}"
11800 LIBMCRYPT_LIBS="${TTLIBS} -lmcrypt"
11801
11802 cat >>confdefs.h <<\_ACEOF
11803 #define LIBMCRYPT22 1
11804 _ACEOF
11805
11806
11807
11808 else
11809 echo "$as_me: program exited with status $ac_status" >&5
11810 echo "$as_me: failed program was:" >&5
11811 sed 's/^/| /' conftest.$ac_ext >&5
11812
11813 ( exit $ac_status )
11814 libmcrypt_config_version="2.4.0"
11815 if test x$libmcrypt_config_prefix != x ; then
11816 TTLIBS="-L${libmcrypt_config_prefix}/libs"
11817 TTINCLUDE="-I${libmcrypt_config_prefix}/include"
11818 fi
11819 LIBMCRYPT_CFLAGS="${TTINCLUDE}"
11820 LIBMCRYPT_LIBS="${TTLIBS} -lmcrypt -lltdl ${LIBADD_DL}"
11821
11822 cat >>confdefs.h <<\_ACEOF
11823 #define LIBMCRYPT24 1
11824 _ACEOF
11825
11826 fi
11827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11828 fi
11829
11830
11831 else
11832 LIBMCRYPT_CFLAGS=`$LIBMCRYPT_CONFIG $libmcrypt_config_args --cflags`
11833 LIBMCRYPT_LIBS=`$LIBMCRYPT_CONFIG $libmcrypt_config_args --libs`
11834 libmcrypt_config_version=`$LIBMCRYPT_CONFIG $libmcrypt_config_args --version`
11835
11836 cat >>confdefs.h <<\_ACEOF
11837 #define LIBMCRYPT24 1
11838 _ACEOF
11839
11840 fi
11841
11842 ac_save_CFLAGS="$CFLAGS"
11843 ac_save_LIBS="$LIBS"
11844 CFLAGS="$CFLAGS $LIBMCRYPT_CFLAGS"
11845 LIBS="$LIBS $LIBMCRYPT_LIBS"
11846
11847 rm -f conf.libmcrypttest
11848 if test "$cross_compiling" = yes; then
11849 echo $ac_n "cross compiling; assumed OK... $ac_c"
11850 else
11851 cat >conftest.$ac_ext <<_ACEOF
11852 /* confdefs.h. */
11853 _ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857
11858 #include <stdio.h>
11859 #include <stdlib.h>
11860 #include <string.h>
11861 #include <mcrypt.h>
11862
11863 #define TWO "2.2"
11864
11865 int
11866 main ()
11867 {
11868 #if MCRYPT_API_VERSION <= 20010201
11869
11870 #if MCRYPT_API_VERSION <= 19991015
11871 /* version 2.2 */
11872 int x = mcrypt_get_key_size(MCRYPT_TWOFISH_128);
11873 system ("touch conf.libmcrypttest");
11874
11875 if( strncmp( TWO, "$min_libmcrypt_version", strlen(TWO))) {
11876 printf("\n*** Requested libmcrypt %s, but LIBMCRYPT (%s)\n",
11877 "$min_libmcrypt_version", TWO );
11878 printf("*** was found!\n");
11879 return 1;
11880 }
11881 return 0;
11882 #else
11883 /* version 2.4 before 11 */
11884 MCRYPT td = mcrypt_module_open("twofish", NULL, "cbc", NULL);
11885 system ("touch conf.libmcrypttest");
11886 mcrypt_module_close(td);
11887
11888 return 0;
11889 #endif /* 19991015 */
11890
11891 #else
11892
11893 system ("touch conf.libmcrypttest");
11894
11895 if( strcmp( mcrypt_check_version(NULL), "$libmcrypt_config_version" ) )
11896 {
11897 printf("\n*** 'libmcrypt-config --version' returned %s, but LIBMCRYPT (%s)\n",
11898 "$libmcrypt_config_version", mcrypt_check_version(NULL) );
11899 printf("*** was found! If libmcrypt-config was correct, then it is best\n");
11900 printf("*** to remove the old version of LIBMCRYPT. You may also be able to fix the error\n");
11901 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11902 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11903 printf("*** required on your system.\n");
11904 printf("*** If libmcrypt-config was wrong, set the environment variable LIBMCRYPT_CONFIG\n");
11905 printf("*** to point to the correct copy of libmcrypt-config, and remove the file config.cache\n");
11906 printf("*** before re-running configure\n");
11907 }
11908 else if ( strcmp(mcrypt_check_version(NULL), LIBMCRYPT_VERSION ) )
11909 {
11910 printf("\n*** LIBMCRYPT header file (version %s) does not match\n", LIBMCRYPT_VERSION);
11911 printf("*** library (version %s)\n", mcrypt_check_version(NULL) );
11912 }
11913 else
11914 {
11915 if ( mcrypt_check_version( "$min_libmcrypt_version" ) )
11916 {
11917 return 0;
11918 }
11919 else
11920 {
11921 printf("no\n*** An old version of LIBMCRYPT (%s) was found.\n",
11922 mcrypt_check_version(NULL) );
11923 printf("*** You need a version of LIBMCRYPT newer than %s. The latest version of\n",
11924 "$min_libmcrypt_version" );
11925 printf("*** LIBMCRYPT is always available from ftp://mcrypt.hellug.gr/pub/mcrypt.\n");
11926 printf("*** \n");
11927 printf("*** If you have already installed a sufficiently new version, this error\n");
11928 printf("*** probably means that the wrong copy of the libmcrypt-config shell script is\n");
11929 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11930 printf("*** of LIBMCRYPT, but you can also set the LIBMCRYPT_CONFIG environment to point to the\n");
11931 printf("*** correct copy of libmcrypt-config. (In this case, you will have to\n");
11932 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11933 printf("*** so that the correct libraries are found at run-time))\n");
11934 }
11935 }
11936 return 1;
11937
11938 #endif /* 20010201 */
11939
11940 }
11941
11942 _ACEOF
11943 rm -f conftest$ac_exeext
11944 if { (ac_try="$ac_link"
11945 case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11948 esac
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_link") 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11954 { (case "(($ac_try" in
11955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11957 esac
11958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959 (eval "$ac_try") 2>&5
11960 ac_status=$?
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; }; then
11963 :
11964 else
11965 echo "$as_me: program exited with status $ac_status" >&5
11966 echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11968
11969 ( exit $ac_status )
11970 no_libmcrypt=yes
11971 fi
11972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11973 fi
11974
11975
11976 CFLAGS="$ac_save_CFLAGS"
11977 LIBS="$ac_save_LIBS"
11978
11979
11980 if test "x$no_libmcrypt" = x ; then
11981 { echo "$as_me:$LINENO: result: yes" >&5
11982 echo "${ECHO_T}yes" >&6; }
11983 :
11984 else
11985 if test -f conf.libmcrypttest ; then
11986 :
11987 else
11988 { echo "$as_me:$LINENO: result: no" >&5
11989 echo "${ECHO_T}no" >&6; }
11990 fi
11991
11992 if test -f conf.libmcrypttest ; then
11993 :
11994 else
11995 echo "*** Could not run libmcrypt test program, checking why..."
11996 CFLAGS="$CFLAGS $LIBMCRYPT_CFLAGS"
11997 LIBS="$LIBS $LIBMCRYPT_LIBS"
11998 cat >conftest.$ac_ext <<_ACEOF
11999 /* confdefs.h. */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004
12005 #include <stdio.h>
12006 #include <stdlib.h>
12007 #include <string.h>
12008 #include <mcrypt.h>
12009
12010 int
12011 main ()
12012 {
12013
12014 #if MCRYPT_API_VERSION <= 20010201
12015
12016 #if MCRYPT_API_VERSION <= 19991015
12017 /* version 2.2 */
12018 int x = mcrypt_get_key_size(MCRYPT_TWOFISH_128);
12019 return 0;
12020 #else
12021 /* version 2.4 before 11 */
12022 MCRYPT td = mcrypt_module_open("twofish", NULL, "cbc", NULL);
12023 mcrypt_module_close(td);
12024 return 0;
12025 #endif /* 19991015 */
12026 #else
12027
12028 return !!mcrypt_check_version(NULL);
12029
12030 #endif /* 20010201 */
12031
12032
12033 ;
12034 return 0;
12035 }
12036 _ACEOF
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (ac_try="$ac_link"
12039 case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12042 esac
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_link") 2>conftest.er1
12045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } && {
12051 test -z "$ac_c_werror_flag" ||
12052 test ! -s conftest.err
12053 } && test -s conftest$ac_exeext &&
12054 $as_test_x conftest$ac_exeext; then
12055 echo "*** The test program compiled, but did not run. This usually means"
12056 echo "*** that the run-time linker is not finding LIBMCRYPT or finding the wrong"
12057 echo "*** version of LIBMCRYPT. If it is not finding LIBMCRYPT, you'll need to set your"
12058 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12059 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12060 echo "*** is required on your system"
12061 echo "***"
12062 echo "*** If you have an old version installed, it is best to remove it, although"
12063 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12064 echo "***"
12065 else
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12068
12069 echo "*** The test program failed to compile or link. See the file config.log for the"
12070 echo "*** exact error that occured. This usually means LIBMCRYPT was incorrectly installed"
12071 echo "*** or that you have moved LIBMCRYPT since it was installed. In the latter case, you"
12072 echo "*** may want to edit the libmcrypt-config script: $LIBMCRYPT_CONFIG"
12073 fi
12074
12075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12076 conftest$ac_exeext conftest.$ac_ext
12077 CFLAGS="$ac_save_CFLAGS"
12078 LIBS="$ac_save_LIBS"
12079 fi
12080
12081 LIBMCRYPT_CFLAGS=""
12082 LIBMCRYPT_LIBS=""
12083 { { echo "$as_me:$LINENO: error: *** libmcrypt was not found" >&5
12084 echo "$as_me: error: *** libmcrypt was not found" >&2;}
12085 { (exit 1); exit 1; }; }
12086
12087 fi
12088 rm -f conf.libmcrypttest
12089
12090
12091
12092
12093 { echo "$as_me:$LINENO: checking for mhash_keygen in -lmhash" >&5
12094 echo $ECHO_N "checking for mhash_keygen in -lmhash... $ECHO_C" >&6; }
12095 if test "${ac_cv_lib_mhash_mhash_keygen+set}" = set; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 else
12098 ac_check_lib_save_LIBS=$LIBS
12099 LIBS="-lmhash $LIBS"
12100 cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h. */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106
12107 /* Override any GCC internal prototype to avoid an error.
12108 Use char because int might match the return type of a GCC
12109 builtin and then its argument prototype would still apply. */
12110 #ifdef __cplusplus
12111 extern "C"
12112 #endif
12113 char mhash_keygen ();
12114 int
12115 main ()
12116 {
12117 return mhash_keygen ();
12118 ;
12119 return 0;
12120 }
12121 _ACEOF
12122 rm -f conftest.$ac_objext conftest$ac_exeext
12123 if { (ac_try="$ac_link"
12124 case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12127 esac
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_link") 2>conftest.er1
12130 ac_status=$?
12131 grep -v '^ *+' conftest.er1 >conftest.err
12132 rm -f conftest.er1
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } && {
12136 test -z "$ac_c_werror_flag" ||
12137 test ! -s conftest.err
12138 } && test -s conftest$ac_exeext &&
12139 $as_test_x conftest$ac_exeext; then
12140 ac_cv_lib_mhash_mhash_keygen=yes
12141 else
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12144
12145 ac_cv_lib_mhash_mhash_keygen=no
12146 fi
12147
12148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12149 conftest$ac_exeext conftest.$ac_ext
12150 LIBS=$ac_check_lib_save_LIBS
12151 fi
12152 { echo "$as_me:$LINENO: result: $ac_cv_lib_mhash_mhash_keygen" >&5
12153 echo "${ECHO_T}$ac_cv_lib_mhash_mhash_keygen" >&6; }
12154 if test $ac_cv_lib_mhash_mhash_keygen = yes; then
12155 LIBS="${LIBS} -lmhash"
12156 else
12157 { { echo "$as_me:$LINENO: error: \"You need at least libmhash 0.8.15 to compile this program. http://mhash.sf.net/\"" >&5
12158 echo "$as_me: error: \"You need at least libmhash 0.8.15 to compile this program. http://mhash.sf.net/\"" >&2;}
12159 { (exit 1); exit 1; }; }
12160 fi
12161
12162
12163 { echo "$as_me:$LINENO: checking whether mhash >= 0.8.15" >&5
12164 echo $ECHO_N "checking whether mhash >= 0.8.15... $ECHO_C" >&6; }
12165 if test "$cross_compiling" = yes; then
12166 { echo "$as_me:$LINENO: result: cross compiling" >&5
12167 echo "${ECHO_T}cross compiling" >&6; }
12168
12169 else
12170 cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h. */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176
12177 #include <mhash.h>
12178
12179 int main() {
12180
12181 if (MHASH_API_VERSION >= 20020524)
12182 exit(0);
12183 else
12184 exit(-1);
12185 }
12186
12187 _ACEOF
12188 rm -f conftest$ac_exeext
12189 if { (ac_try="$ac_link"
12190 case "(($ac_try" in
12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12193 esac
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_link") 2>&5
12196 ac_status=$?
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12199 { (case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12202 esac
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_try") 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; }; then
12208 { echo "$as_me:$LINENO: result: yes" >&5
12209 echo "${ECHO_T}yes" >&6; }
12210
12211 else
12212 echo "$as_me: program exited with status $ac_status" >&5
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12215
12216 ( exit $ac_status )
12217 { echo "$as_me:$LINENO: result: no" >&5
12218 echo "${ECHO_T}no" >&6; }
12219 { { echo "$as_me:$LINENO: error: \"You need at least libmhash 0.8.15 to compile this program. http://mhash.sf.net/\"" >&5
12220 echo "$as_me: error: \"You need at least libmhash 0.8.15 to compile this program. http://mhash.sf.net/\"" >&2;}
12221 { (exit 1); exit 1; }; }
12222
12223 fi
12224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12225 fi
12226
12227
12228
12229
12230 ALL_LINGUAS="el cs pl de es_AR"
12231
12232
12233 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12234 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12235 # Check whether --enable-nls was given.
12236 if test "${enable_nls+set}" = set; then
12237 enableval=$enable_nls; USE_NLS=$enableval
12238 else
12239 USE_NLS=yes
12240 fi
12241
12242 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12243 echo "${ECHO_T}$USE_NLS" >&6; }
12244
12245
12246
12247
12248
12249
12250 # Prepare PATH_SEPARATOR.
12251 # The user is always right.
12252 if test "${PATH_SEPARATOR+set}" != set; then
12253 echo "#! /bin/sh" >conf$$.sh
12254 echo "exit 0" >>conf$$.sh
12255 chmod +x conf$$.sh
12256 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12257 PATH_SEPARATOR=';'
12258 else
12259 PATH_SEPARATOR=:
12260 fi
12261 rm -f conf$$.sh
12262 fi
12263
12264 # Find out how to test for executable files. Don't use a zero-byte file,
12265 # as systems may use methods other than mode bits to determine executability.
12266 cat >conf$$.file <<_ASEOF
12267 #! /bin/sh
12268 exit 0
12269 _ASEOF
12270 chmod +x conf$$.file
12271 if test -x conf$$.file >/dev/null 2>&1; then
12272 ac_executable_p="test -x"
12273 else
12274 ac_executable_p="test -f"
12275 fi
12276 rm -f conf$$.file
12277
12278 # Extract the first word of "msgfmt", so it can be a program name with args.
12279 set dummy msgfmt; ac_word=$2
12280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12282 if test "${ac_cv_path_MSGFMT+set}" = set; then
12283 echo $ECHO_N "(cached) $ECHO_C" >&6
12284 else
12285 case "$MSGFMT" in
12286 [\\/]* | ?:[\\/]*)
12287 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12288 ;;
12289 *)
12290 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12291 for ac_dir in $PATH; do
12292 IFS="$ac_save_IFS"
12293 test -z "$ac_dir" && ac_dir=.
12294 for ac_exec_ext in '' $ac_executable_extensions; do
12295 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12296 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12297 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12298 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12299 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12300 break 2
12301 fi
12302 fi
12303 done
12304 done
12305 IFS="$ac_save_IFS"
12306 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12307 ;;
12308 esac
12309 fi
12310 MSGFMT="$ac_cv_path_MSGFMT"
12311 if test "$MSGFMT" != ":"; then
12312 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
12313 echo "${ECHO_T}$MSGFMT" >&6; }
12314 else
12315 { echo "$as_me:$LINENO: result: no" >&5
12316 echo "${ECHO_T}no" >&6; }
12317 fi
12318
12319 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12320 set dummy gmsgfmt; ac_word=$2
12321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12323 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
12326 case $GMSGFMT in
12327 [\\/]* | ?:[\\/]*)
12328 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12329 ;;
12330 *)
12331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12332 for as_dir in $PATH
12333 do
12334 IFS=$as_save_IFS
12335 test -z "$as_dir" && as_dir=.
12336 for ac_exec_ext in '' $ac_executable_extensions; do
12337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12338 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12340 break 2
12341 fi
12342 done
12343 done
12344 IFS=$as_save_IFS
12345
12346 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12347 ;;
12348 esac
12349 fi
12350 GMSGFMT=$ac_cv_path_GMSGFMT
12351 if test -n "$GMSGFMT"; then
12352 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12353 echo "${ECHO_T}$GMSGFMT" >&6; }
12354 else
12355 { echo "$as_me:$LINENO: result: no" >&5
12356 echo "${ECHO_T}no" >&6; }
12357 fi
12358
12359
12360
12361 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12362 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12363 *) MSGFMT_015=$MSGFMT ;;
12364 esac
12365
12366 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12367 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12368 *) GMSGFMT_015=$GMSGFMT ;;
12369 esac
12370
12371
12372
12373 # Prepare PATH_SEPARATOR.
12374 # The user is always right.
12375 if test "${PATH_SEPARATOR+set}" != set; then
12376 echo "#! /bin/sh" >conf$$.sh
12377 echo "exit 0" >>conf$$.sh
12378 chmod +x conf$$.sh
12379 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12380 PATH_SEPARATOR=';'
12381 else
12382 PATH_SEPARATOR=:
12383 fi
12384 rm -f conf$$.sh
12385 fi
12386
12387 # Find out how to test for executable files. Don't use a zero-byte file,
12388 # as systems may use methods other than mode bits to determine executability.
12389 cat >conf$$.file <<_ASEOF
12390 #! /bin/sh
12391 exit 0
12392 _ASEOF
12393 chmod +x conf$$.file
12394 if test -x conf$$.file >/dev/null 2>&1; then
12395 ac_executable_p="test -x"
12396 else
12397 ac_executable_p="test -f"
12398 fi
12399 rm -f conf$$.file
12400
12401 # Extract the first word of "xgettext", so it can be a program name with args.
12402 set dummy xgettext; ac_word=$2
12403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12405 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12406 echo $ECHO_N "(cached) $ECHO_C" >&6
12407 else
12408 case "$XGETTEXT" in
12409 [\\/]* | ?:[\\/]*)
12410 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12411 ;;
12412 *)
12413 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12414 for ac_dir in $PATH; do
12415 IFS="$ac_save_IFS"
12416 test -z "$ac_dir" && ac_dir=.
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12419 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12420 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12421 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12422 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12423 break 2
12424 fi
12425 fi
12426 done
12427 done
12428 IFS="$ac_save_IFS"
12429 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12430 ;;
12431 esac
12432 fi
12433 XGETTEXT="$ac_cv_path_XGETTEXT"
12434 if test "$XGETTEXT" != ":"; then
12435 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12436 echo "${ECHO_T}$XGETTEXT" >&6; }
12437 else
12438 { echo "$as_me:$LINENO: result: no" >&5
12439 echo "${ECHO_T}no" >&6; }
12440 fi
12441
12442 rm -f messages.po
12443
12444 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12445 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12446 *) XGETTEXT_015=$XGETTEXT ;;
12447 esac
12448
12449
12450
12451 # Prepare PATH_SEPARATOR.
12452 # The user is always right.
12453 if test "${PATH_SEPARATOR+set}" != set; then
12454 echo "#! /bin/sh" >conf$$.sh
12455 echo "exit 0" >>conf$$.sh
12456 chmod +x conf$$.sh
12457 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12458 PATH_SEPARATOR=';'
12459 else
12460 PATH_SEPARATOR=:
12461 fi
12462 rm -f conf$$.sh
12463 fi
12464
12465 # Find out how to test for executable files. Don't use a zero-byte file,
12466 # as systems may use methods other than mode bits to determine executability.
12467 cat >conf$$.file <<_ASEOF
12468 #! /bin/sh
12469 exit 0
12470 _ASEOF
12471 chmod +x conf$$.file
12472 if test -x conf$$.file >/dev/null 2>&1; then
12473 ac_executable_p="test -x"
12474 else
12475 ac_executable_p="test -f"
12476 fi
12477 rm -f conf$$.file
12478
12479 # Extract the first word of "msgmerge", so it can be a program name with args.
12480 set dummy msgmerge; ac_word=$2
12481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12483 if test "${ac_cv_path_MSGMERGE+set}" = set; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12485 else
12486 case "$MSGMERGE" in
12487 [\\/]* | ?:[\\/]*)
12488 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12489 ;;
12490 *)
12491 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12492 for ac_dir in $PATH; do
12493 IFS="$ac_save_IFS"
12494 test -z "$ac_dir" && ac_dir=.
12495 for ac_exec_ext in '' $ac_executable_extensions; do
12496 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12497 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12498 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12499 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12500 break 2
12501 fi
12502 fi
12503 done
12504 done
12505 IFS="$ac_save_IFS"
12506 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12507 ;;
12508 esac
12509 fi
12510 MSGMERGE="$ac_cv_path_MSGMERGE"
12511 if test "$MSGMERGE" != ":"; then
12512 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12513 echo "${ECHO_T}$MSGMERGE" >&6; }
12514 else
12515 { echo "$as_me:$LINENO: result: no" >&5
12516 echo "${ECHO_T}no" >&6; }
12517 fi
12518
12519
12520 test -n "$localedir" || localedir='${datadir}/locale'
12521
12522
12523 ac_config_commands="$ac_config_commands po-directories"
12524
12525
12526
12527 if test "X$prefix" = "XNONE"; then
12528 acl_final_prefix="$ac_default_prefix"
12529 else
12530 acl_final_prefix="$prefix"
12531 fi
12532 if test "X$exec_prefix" = "XNONE"; then
12533 acl_final_exec_prefix='${prefix}'
12534 else
12535 acl_final_exec_prefix="$exec_prefix"
12536 fi
12537 acl_save_prefix="$prefix"
12538 prefix="$acl_final_prefix"
12539 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12540 prefix="$acl_save_prefix"
12541
12542
12543 # Check whether --with-gnu-ld was given.
12544 if test "${with_gnu_ld+set}" = set; then
12545 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12546 else
12547 with_gnu_ld=no
12548 fi
12549
12550 # Prepare PATH_SEPARATOR.
12551 # The user is always right.
12552 if test "${PATH_SEPARATOR+set}" != set; then
12553 echo "#! /bin/sh" >conf$$.sh
12554 echo "exit 0" >>conf$$.sh
12555 chmod +x conf$$.sh
12556 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12557 PATH_SEPARATOR=';'
12558 else
12559 PATH_SEPARATOR=:
12560 fi
12561 rm -f conf$$.sh
12562 fi
12563 ac_prog=ld
12564 if test "$GCC" = yes; then
12565 # Check if gcc -print-prog-name=ld gives a path.
12566 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
12567 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
12568 case $host in
12569 *-*-mingw*)
12570 # gcc leaves a trailing carriage return which upsets mingw
12571 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12572 *)
12573 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12574 esac
12575 case $ac_prog in
12576 # Accept absolute paths.
12577 [\\/]* | [A-Za-z]:[\\/]*)
12578 re_direlt='/[^/][^/]*/\.\./'
12579 # Canonicalize the path of ld
12580 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12581 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12582 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12583 done
12584 test -z "$LD" && LD="$ac_prog"
12585 ;;
12586 "")
12587 # If it fails, then pretend we aren't using GCC.
12588 ac_prog=ld
12589 ;;
12590 *)
12591 # If it is relative, then search for the first ld in PATH.
12592 with_gnu_ld=unknown
12593 ;;
12594 esac
12595 elif test "$with_gnu_ld" = yes; then
12596 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12597 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12598 else
12599 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12600 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12601 fi
12602 if test "${acl_cv_path_LD+set}" = set; then
12603 echo $ECHO_N "(cached) $ECHO_C" >&6
12604 else
12605 if test -z "$LD"; then
12606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12607 for ac_dir in $PATH; do
12608 test -z "$ac_dir" && ac_dir=.
12609 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12610 acl_cv_path_LD="$ac_dir/$ac_prog"
12611 # Check to see if the program is GNU ld. I'd rather use --version,
12612 # but apparently some GNU ld's only accept -v.
12613 # Break only if it was the GNU/non-GNU ld that we prefer.
12614 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12615 *GNU* | *'with BFD'*)
12616 test "$with_gnu_ld" != no && break ;;
12617 *)
12618 test "$with_gnu_ld" != yes && break ;;
12619 esac
12620 fi
12621 done
12622 IFS="$ac_save_ifs"
12623 else
12624 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12625 fi
12626 fi
12627
12628 LD="$acl_cv_path_LD"
12629 if test -n "$LD"; then
12630 { echo "$as_me:$LINENO: result: $LD" >&5
12631 echo "${ECHO_T}$LD" >&6; }
12632 else
12633 { echo "$as_me:$LINENO: result: no" >&5
12634 echo "${ECHO_T}no" >&6; }
12635 fi
12636 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12637 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12638 { (exit 1); exit 1; }; }
12639 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12640 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12641 if test "${acl_cv_prog_gnu_ld+set}" = set; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
12643 else
12644 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12645 case `$LD -v 2>&1 </dev/null` in
12646 *GNU* | *'with BFD'*)
12647 acl_cv_prog_gnu_ld=yes ;;
12648 *)
12649 acl_cv_prog_gnu_ld=no ;;
12650 esac
12651 fi
12652 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
12653 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
12654 with_gnu_ld=$acl_cv_prog_gnu_ld
12655
12656
12657
12658
12659 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
12660 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
12661 if test "${acl_cv_rpath+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12663 else
12664
12665 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12666 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12667 . ./conftest.sh
12668 rm -f ./conftest.sh
12669 acl_cv_rpath=done
12670
12671 fi
12672 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
12673 echo "${ECHO_T}$acl_cv_rpath" >&6; }
12674 wl="$acl_cv_wl"
12675 libext="$acl_cv_libext"
12676 shlibext="$acl_cv_shlibext"
12677 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12678 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12679 hardcode_direct="$acl_cv_hardcode_direct"
12680 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12681 # Check whether --enable-rpath was given.
12682 if test "${enable_rpath+set}" = set; then
12683 enableval=$enable_rpath; :
12684 else
12685 enable_rpath=yes
12686 fi
12687
12688
12689
12690 acl_libdirstem=lib
12691 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12692 if test -n "$searchpath"; then
12693 acl_save_IFS="${IFS= }"; IFS=":"
12694 for searchdir in $searchpath; do
12695 if test -d "$searchdir"; then
12696 case "$searchdir" in
12697 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12698 *) searchdir=`cd "$searchdir" && pwd`
12699 case "$searchdir" in
12700 */lib64 ) acl_libdirstem=lib64 ;;
12701 esac ;;
12702 esac
12703 fi
12704 done
12705 IFS="$acl_save_IFS"
12706 fi
12707
12708
12709
12710
12711
12712
12713
12714
12715 use_additional=yes
12716
12717 acl_save_prefix="$prefix"
12718 prefix="$acl_final_prefix"
12719 acl_save_exec_prefix="$exec_prefix"
12720 exec_prefix="$acl_final_exec_prefix"
12721
12722 eval additional_includedir=\"$includedir\"
12723 eval additional_libdir=\"$libdir\"
12724
12725 exec_prefix="$acl_save_exec_prefix"
12726 prefix="$acl_save_prefix"
12727
12728
12729 # Check whether --with-libiconv-prefix was given.
12730 if test "${with_libiconv_prefix+set}" = set; then
12731 withval=$with_libiconv_prefix;
12732 if test "X$withval" = "Xno"; then
12733 use_additional=no
12734 else
12735 if test "X$withval" = "X"; then
12736
12737 acl_save_prefix="$prefix"
12738 prefix="$acl_final_prefix"
12739 acl_save_exec_prefix="$exec_prefix"
12740 exec_prefix="$acl_final_exec_prefix"
12741
12742 eval additional_includedir=\"$includedir\"
12743 eval additional_libdir=\"$libdir\"
12744
12745 exec_prefix="$acl_save_exec_prefix"
12746 prefix="$acl_save_prefix"
12747
12748 else
12749 additional_includedir="$withval/include"
12750 additional_libdir="$withval/$acl_libdirstem"
12751 fi
12752 fi
12753
12754 fi
12755
12756 LIBICONV=
12757 LTLIBICONV=
12758 INCICONV=
12759 rpathdirs=
12760 ltrpathdirs=
12761 names_already_handled=
12762 names_next_round='iconv '
12763 while test -n "$names_next_round"; do
12764 names_this_round="$names_next_round"
12765 names_next_round=
12766 for name in $names_this_round; do
12767 already_handled=
12768 for n in $names_already_handled; do
12769 if test "$n" = "$name"; then
12770 already_handled=yes
12771 break
12772 fi
12773 done
12774 if test -z "$already_handled"; then
12775 names_already_handled="$names_already_handled $name"
12776 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12777 eval value=\"\$HAVE_LIB$uppername\"
12778 if test -n "$value"; then
12779 if test "$value" = yes; then
12780 eval value=\"\$LIB$uppername\"
12781 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12782 eval value=\"\$LTLIB$uppername\"
12783 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12784 else
12785 :
12786 fi
12787 else
12788 found_dir=
12789 found_la=
12790 found_so=
12791 found_a=
12792 if test $use_additional = yes; then
12793 if test -n "$shlibext" \
12794 && { test -f "$additional_libdir/lib$name.$shlibext" \
12795 || { test "$shlibext" = dll \
12796 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
12797 found_dir="$additional_libdir"
12798 if test -f "$additional_libdir/lib$name.$shlibext"; then
12799 found_so="$additional_libdir/lib$name.$shlibext"
12800 else
12801 found_so="$additional_libdir/lib$name.dll.a"
12802 fi
12803 if test -f "$additional_libdir/lib$name.la"; then
12804 found_la="$additional_libdir/lib$name.la"
12805 fi
12806 else
12807 if test -f "$additional_libdir/lib$name.$libext"; then
12808 found_dir="$additional_libdir"
12809 found_a="$additional_libdir/lib$name.$libext"
12810 if test -f "$additional_libdir/lib$name.la"; then
12811 found_la="$additional_libdir/lib$name.la"
12812 fi
12813 fi
12814 fi
12815 fi
12816 if test "X$found_dir" = "X"; then
12817 for x in $LDFLAGS $LTLIBICONV; do
12818
12819 acl_save_prefix="$prefix"
12820 prefix="$acl_final_prefix"
12821 acl_save_exec_prefix="$exec_prefix"
12822 exec_prefix="$acl_final_exec_prefix"
12823 eval x=\"$x\"
12824 exec_prefix="$acl_save_exec_prefix"
12825 prefix="$acl_save_prefix"
12826
12827 case "$x" in
12828 -L*)
12829 dir=`echo "X$x" | sed -e 's/^X-L//'`
12830 if test -n "$shlibext" \
12831 && { test -f "$dir/lib$name.$shlibext" \
12832 || { test "$shlibext" = dll \
12833 && test -f "$dir/lib$name.dll.a"; }; }; then
12834 found_dir="$dir"
12835 if test -f "$dir/lib$name.$shlibext"; then
12836 found_so="$dir/lib$name.$shlibext"
12837 else
12838 found_so="$dir/lib$name.dll.a"
12839 fi
12840 if test -f "$dir/lib$name.la"; then
12841 found_la="$dir/lib$name.la"
12842 fi
12843 else
12844 if test -f "$dir/lib$name.$libext"; then
12845 found_dir="$dir"
12846 found_a="$dir/lib$name.$libext"
12847 if test -f "$dir/lib$name.la"; then
12848 found_la="$dir/lib$name.la"
12849 fi
12850 fi
12851 fi
12852 ;;
12853 esac
12854 if test "X$found_dir" != "X"; then
12855 break
12856 fi
12857 done
12858 fi
12859 if test "X$found_dir" != "X"; then
12860 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12861 if test "X$found_so" != "X"; then
12862 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12863 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12864 else
12865 haveit=
12866 for x in $ltrpathdirs; do
12867 if test "X$x" = "X$found_dir"; then
12868 haveit=yes
12869 break
12870 fi
12871 done
12872 if test -z "$haveit"; then
12873 ltrpathdirs="$ltrpathdirs $found_dir"
12874 fi
12875 if test "$hardcode_direct" = yes; then
12876 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12877 else
12878 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12879 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12880 haveit=
12881 for x in $rpathdirs; do
12882 if test "X$x" = "X$found_dir"; then
12883 haveit=yes
12884 break
12885 fi
12886 done
12887 if test -z "$haveit"; then
12888 rpathdirs="$rpathdirs $found_dir"
12889 fi
12890 else
12891 haveit=
12892 for x in $LDFLAGS $LIBICONV; do
12893
12894 acl_save_prefix="$prefix"
12895 prefix="$acl_final_prefix"
12896 acl_save_exec_prefix="$exec_prefix"
12897 exec_prefix="$acl_final_exec_prefix"
12898 eval x=\"$x\"
12899 exec_prefix="$acl_save_exec_prefix"
12900 prefix="$acl_save_prefix"
12901
12902 if test "X$x" = "X-L$found_dir"; then
12903 haveit=yes
12904 break
12905 fi
12906 done
12907 if test -z "$haveit"; then
12908 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12909 fi
12910 if test "$hardcode_minus_L" != no; then
12911 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12912 else
12913 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12914 fi
12915 fi
12916 fi
12917 fi
12918 else
12919 if test "X$found_a" != "X"; then
12920 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12921 else
12922 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12923 fi
12924 fi
12925 additional_includedir=
12926 case "$found_dir" in
12927 */$acl_libdirstem | */$acl_libdirstem/)
12928 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12929 additional_includedir="$basedir/include"
12930 ;;
12931 esac
12932 if test "X$additional_includedir" != "X"; then
12933 if test "X$additional_includedir" != "X/usr/include"; then
12934 haveit=
12935 if test "X$additional_includedir" = "X/usr/local/include"; then
12936 if test -n "$GCC"; then
12937 case $host_os in
12938 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12939 esac
12940 fi
12941 fi
12942 if test -z "$haveit"; then
12943 for x in $CPPFLAGS $INCICONV; do
12944
12945 acl_save_prefix="$prefix"
12946 prefix="$acl_final_prefix"
12947 acl_save_exec_prefix="$exec_prefix"
12948 exec_prefix="$acl_final_exec_prefix"
12949 eval x=\"$x\"
12950 exec_prefix="$acl_save_exec_prefix"
12951 prefix="$acl_save_prefix"
12952
12953 if test "X$x" = "X-I$additional_includedir"; then
12954 haveit=yes
12955 break
12956 fi
12957 done
12958 if test -z "$haveit"; then
12959 if test -d "$additional_includedir"; then
12960 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12961 fi
12962 fi
12963 fi
12964 fi
12965 fi
12966 if test -n "$found_la"; then
12967 save_libdir="$libdir"
12968 case "$found_la" in
12969 */* | *\\*) . "$found_la" ;;
12970 *) . "./$found_la" ;;
12971 esac
12972 libdir="$save_libdir"
12973 for dep in $dependency_libs; do
12974 case "$dep" in
12975 -L*)
12976 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12977 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12978 haveit=
12979 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12980 if test -n "$GCC"; then
12981 case $host_os in
12982 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12983 esac
12984 fi
12985 fi
12986 if test -z "$haveit"; then
12987 haveit=
12988 for x in $LDFLAGS $LIBICONV; do
12989
12990 acl_save_prefix="$prefix"
12991 prefix="$acl_final_prefix"
12992 acl_save_exec_prefix="$exec_prefix"
12993 exec_prefix="$acl_final_exec_prefix"
12994 eval x=\"$x\"
12995 exec_prefix="$acl_save_exec_prefix"
12996 prefix="$acl_save_prefix"
12997
12998 if test "X$x" = "X-L$additional_libdir"; then
12999 haveit=yes
13000 break
13001 fi
13002 done
13003 if test -z "$haveit"; then
13004 if test -d "$additional_libdir"; then
13005 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13006 fi
13007 fi
13008 haveit=
13009 for x in $LDFLAGS $LTLIBICONV; do
13010
13011 acl_save_prefix="$prefix"
13012 prefix="$acl_final_prefix"
13013 acl_save_exec_prefix="$exec_prefix"
13014 exec_prefix="$acl_final_exec_prefix"
13015 eval x=\"$x\"
13016 exec_prefix="$acl_save_exec_prefix"
13017 prefix="$acl_save_prefix"
13018
13019 if test "X$x" = "X-L$additional_libdir"; then
13020 haveit=yes
13021 break
13022 fi
13023 done
13024 if test -z "$haveit"; then
13025 if test -d "$additional_libdir"; then
13026 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13027 fi
13028 fi
13029 fi
13030 fi
13031 ;;
13032 -R*)
13033 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13034 if test "$enable_rpath" != no; then
13035 haveit=
13036 for x in $rpathdirs; do
13037 if test "X$x" = "X$dir"; then
13038 haveit=yes
13039 break
13040 fi
13041 done
13042 if test -z "$haveit"; then
13043 rpathdirs="$rpathdirs $dir"
13044 fi
13045 haveit=
13046 for x in $ltrpathdirs; do
13047 if test "X$x" = "X$dir"; then
13048 haveit=yes
13049 break
13050 fi
13051 done
13052 if test -z "$haveit"; then
13053 ltrpathdirs="$ltrpathdirs $dir"
13054 fi
13055 fi
13056 ;;
13057 -l*)
13058 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13059 ;;
13060 *.la)
13061 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13062 ;;
13063 *)
13064 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13065 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13066 ;;
13067 esac
13068 done
13069 fi
13070 else
13071 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13072 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13073 fi
13074 fi
13075 fi
13076 done
13077 done
13078 if test "X$rpathdirs" != "X"; then
13079 if test -n "$hardcode_libdir_separator"; then
13080 alldirs=
13081 for found_dir in $rpathdirs; do
13082 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13083 done
13084 acl_save_libdir="$libdir"
13085 libdir="$alldirs"
13086 eval flag=\"$hardcode_libdir_flag_spec\"
13087 libdir="$acl_save_libdir"
13088 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13089 else
13090 for found_dir in $rpathdirs; do
13091 acl_save_libdir="$libdir"
13092 libdir="$found_dir"
13093 eval flag=\"$hardcode_libdir_flag_spec\"
13094 libdir="$acl_save_libdir"
13095 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13096 done
13097 fi
13098 fi
13099 if test "X$ltrpathdirs" != "X"; then
13100 for found_dir in $ltrpathdirs; do
13101 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13102 done
13103 fi
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
13130 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
13131 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13133 else
13134 gt_save_LIBS="$LIBS"
13135 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13136 cat >conftest.$ac_ext <<_ACEOF
13137 /* confdefs.h. */
13138 _ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13142 #include <CoreFoundation/CFPreferences.h>
13143 int
13144 main ()
13145 {
13146 CFPreferencesCopyAppValue(NULL, NULL)
13147 ;
13148 return 0;
13149 }
13150 _ACEOF
13151 rm -f conftest.$ac_objext conftest$ac_exeext
13152 if { (ac_try="$ac_link"
13153 case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13156 esac
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_link") 2>conftest.er1
13159 ac_status=$?
13160 grep -v '^ *+' conftest.er1 >conftest.err
13161 rm -f conftest.er1
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } && {
13165 test -z "$ac_c_werror_flag" ||
13166 test ! -s conftest.err
13167 } && test -s conftest$ac_exeext &&
13168 $as_test_x conftest$ac_exeext; then
13169 gt_cv_func_CFPreferencesCopyAppValue=yes
13170 else
13171 echo "$as_me: failed program was:" >&5
13172 sed 's/^/| /' conftest.$ac_ext >&5
13173
13174 gt_cv_func_CFPreferencesCopyAppValue=no
13175 fi
13176
13177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13178 conftest$ac_exeext conftest.$ac_ext
13179 LIBS="$gt_save_LIBS"
13180 fi
13181 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13182 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13183 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13184
13185 cat >>confdefs.h <<\_ACEOF
13186 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
13187 _ACEOF
13188
13189 fi
13190 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
13191 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
13192 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
13193 echo $ECHO_N "(cached) $ECHO_C" >&6
13194 else
13195 gt_save_LIBS="$LIBS"
13196 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13197 cat >conftest.$ac_ext <<_ACEOF
13198 /* confdefs.h. */
13199 _ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h. */
13203 #include <CoreFoundation/CFLocale.h>
13204 int
13205 main ()
13206 {
13207 CFLocaleCopyCurrent();
13208 ;
13209 return 0;
13210 }
13211 _ACEOF
13212 rm -f conftest.$ac_objext conftest$ac_exeext
13213 if { (ac_try="$ac_link"
13214 case "(($ac_try" in
13215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13217 esac
13218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13219 (eval "$ac_link") 2>conftest.er1
13220 ac_status=$?
13221 grep -v '^ *+' conftest.er1 >conftest.err
13222 rm -f conftest.er1
13223 cat conftest.err >&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } && {
13226 test -z "$ac_c_werror_flag" ||
13227 test ! -s conftest.err
13228 } && test -s conftest$ac_exeext &&
13229 $as_test_x conftest$ac_exeext; then
13230 gt_cv_func_CFLocaleCopyCurrent=yes
13231 else
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13234
13235 gt_cv_func_CFLocaleCopyCurrent=no
13236 fi
13237
13238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13239 conftest$ac_exeext conftest.$ac_ext
13240 LIBS="$gt_save_LIBS"
13241 fi
13242 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13243 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13244 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13245
13246 cat >>confdefs.h <<\_ACEOF
13247 #define HAVE_CFLOCALECOPYCURRENT 1
13248 _ACEOF
13249
13250 fi
13251 INTL_MACOSX_LIBS=
13252 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13253 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13254 fi
13255
13256
13257
13258
13259
13260
13261 LIBINTL=
13262 LTLIBINTL=
13263 POSUB=
13264
13265 case " $gt_needs " in
13266 *" need-formatstring-macros "*) gt_api_version=3 ;;
13267 *" need-ngettext "*) gt_api_version=2 ;;
13268 *) gt_api_version=1 ;;
13269 esac
13270 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13271 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13272
13273 if test "$USE_NLS" = "yes"; then
13274 gt_use_preinstalled_gnugettext=no
13275
13276
13277 if test $gt_api_version -ge 3; then
13278 gt_revision_test_code='
13279 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13280 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13281 #endif
13282 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13283 '
13284 else
13285 gt_revision_test_code=
13286 fi
13287 if test $gt_api_version -ge 2; then
13288 gt_expression_test_code=' + * ngettext ("", "", 0)'
13289 else
13290 gt_expression_test_code=
13291 fi
13292
13293 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13294 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
13295 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13297 else
13298 cat >conftest.$ac_ext <<_ACEOF
13299 /* confdefs.h. */
13300 _ACEOF
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h. */
13304 #include <libintl.h>
13305 $gt_revision_test_code
13306 extern int _nl_msg_cat_cntr;
13307 extern int *_nl_domain_bindings;
13308 int
13309 main ()
13310 {
13311 bindtextdomain ("", "");
13312 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
13313 ;
13314 return 0;
13315 }
13316 _ACEOF
13317 rm -f conftest.$ac_objext conftest$ac_exeext
13318 if { (ac_try="$ac_link"
13319 case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13322 esac
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_link") 2>conftest.er1
13325 ac_status=$?
13326 grep -v '^ *+' conftest.er1 >conftest.err
13327 rm -f conftest.er1
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } && {
13331 test -z "$ac_c_werror_flag" ||
13332 test ! -s conftest.err
13333 } && test -s conftest$ac_exeext &&
13334 $as_test_x conftest$ac_exeext; then
13335 eval "$gt_func_gnugettext_libc=yes"
13336 else
13337 echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13339
13340 eval "$gt_func_gnugettext_libc=no"
13341 fi
13342
13343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13344 conftest$ac_exeext conftest.$ac_ext
13345 fi
13346 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
13347 { echo "$as_me:$LINENO: result: $ac_res" >&5
13348 echo "${ECHO_T}$ac_res" >&6; }
13349
13350 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13351
13352
13353
13354
13355
13356 am_save_CPPFLAGS="$CPPFLAGS"
13357
13358 for element in $INCICONV; do
13359 haveit=
13360 for x in $CPPFLAGS; do
13361
13362 acl_save_prefix="$prefix"
13363 prefix="$acl_final_prefix"
13364 acl_save_exec_prefix="$exec_prefix"
13365 exec_prefix="$acl_final_exec_prefix"
13366 eval x=\"$x\"
13367 exec_prefix="$acl_save_exec_prefix"
13368 prefix="$acl_save_prefix"
13369
13370 if test "X$x" = "X$element"; then
13371 haveit=yes
13372 break
13373 fi
13374 done
13375 if test -z "$haveit"; then
13376 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13377 fi
13378 done
13379
13380
13381 { echo "$as_me:$LINENO: checking for iconv" >&5
13382 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
13383 if test "${am_cv_func_iconv+set}" = set; then
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
13385 else
13386
13387 am_cv_func_iconv="no, consider installing GNU libiconv"
13388 am_cv_lib_iconv=no
13389 cat >conftest.$ac_ext <<_ACEOF
13390 /* confdefs.h. */
13391 _ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h. */
13395 #include <stdlib.h>
13396 #include <iconv.h>
13397 int
13398 main ()
13399 {
13400 iconv_t cd = iconv_open("","");
13401 iconv(cd,NULL,NULL,NULL,NULL);
13402 iconv_close(cd);
13403 ;
13404 return 0;
13405 }
13406 _ACEOF
13407 rm -f conftest.$ac_objext conftest$ac_exeext
13408 if { (ac_try="$ac_link"
13409 case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13412 esac
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_link") 2>conftest.er1
13415 ac_status=$?
13416 grep -v '^ *+' conftest.er1 >conftest.err
13417 rm -f conftest.er1
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } && {
13421 test -z "$ac_c_werror_flag" ||
13422 test ! -s conftest.err
13423 } && test -s conftest$ac_exeext &&
13424 $as_test_x conftest$ac_exeext; then
13425 am_cv_func_iconv=yes
13426 else
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13429
13430
13431 fi
13432
13433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13434 conftest$ac_exeext conftest.$ac_ext
13435 if test "$am_cv_func_iconv" != yes; then
13436 am_save_LIBS="$LIBS"
13437 LIBS="$LIBS $LIBICONV"
13438 cat >conftest.$ac_ext <<_ACEOF
13439 /* confdefs.h. */
13440 _ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h. */
13444 #include <stdlib.h>
13445 #include <iconv.h>
13446 int
13447 main ()
13448 {
13449 iconv_t cd = iconv_open("","");
13450 iconv(cd,NULL,NULL,NULL,NULL);
13451 iconv_close(cd);
13452 ;
13453 return 0;
13454 }
13455 _ACEOF
13456 rm -f conftest.$ac_objext conftest$ac_exeext
13457 if { (ac_try="$ac_link"
13458 case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13461 esac
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_link") 2>conftest.er1
13464 ac_status=$?
13465 grep -v '^ *+' conftest.er1 >conftest.err
13466 rm -f conftest.er1
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } && {
13470 test -z "$ac_c_werror_flag" ||
13471 test ! -s conftest.err
13472 } && test -s conftest$ac_exeext &&
13473 $as_test_x conftest$ac_exeext; then
13474 am_cv_lib_iconv=yes
13475 am_cv_func_iconv=yes
13476 else
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13479
13480
13481 fi
13482
13483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13484 conftest$ac_exeext conftest.$ac_ext
13485 LIBS="$am_save_LIBS"
13486 fi
13487
13488 fi
13489 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13490 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13491 if test "$am_cv_func_iconv" = yes; then
13492
13493 cat >>confdefs.h <<\_ACEOF
13494 #define HAVE_ICONV 1
13495 _ACEOF
13496
13497 fi
13498 if test "$am_cv_lib_iconv" = yes; then
13499 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13500 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
13501 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
13502 echo "${ECHO_T}$LIBICONV" >&6; }
13503 else
13504 CPPFLAGS="$am_save_CPPFLAGS"
13505 LIBICONV=
13506 LTLIBICONV=
13507 fi
13508
13509
13510
13511
13512
13513
13514
13515 use_additional=yes
13516
13517 acl_save_prefix="$prefix"
13518 prefix="$acl_final_prefix"
13519 acl_save_exec_prefix="$exec_prefix"
13520 exec_prefix="$acl_final_exec_prefix"
13521
13522 eval additional_includedir=\"$includedir\"
13523 eval additional_libdir=\"$libdir\"
13524
13525 exec_prefix="$acl_save_exec_prefix"
13526 prefix="$acl_save_prefix"
13527
13528
13529 # Check whether --with-libintl-prefix was given.
13530 if test "${with_libintl_prefix+set}" = set; then
13531 withval=$with_libintl_prefix;
13532 if test "X$withval" = "Xno"; then
13533 use_additional=no
13534 else
13535 if test "X$withval" = "X"; then
13536
13537 acl_save_prefix="$prefix"
13538 prefix="$acl_final_prefix"
13539 acl_save_exec_prefix="$exec_prefix"
13540 exec_prefix="$acl_final_exec_prefix"
13541
13542 eval additional_includedir=\"$includedir\"
13543 eval additional_libdir=\"$libdir\"
13544
13545 exec_prefix="$acl_save_exec_prefix"
13546 prefix="$acl_save_prefix"
13547
13548 else
13549 additional_includedir="$withval/include"
13550 additional_libdir="$withval/$acl_libdirstem"
13551 fi
13552 fi
13553
13554 fi
13555
13556 LIBINTL=
13557 LTLIBINTL=
13558 INCINTL=
13559 rpathdirs=
13560 ltrpathdirs=
13561 names_already_handled=
13562 names_next_round='intl '
13563 while test -n "$names_next_round"; do
13564 names_this_round="$names_next_round"
13565 names_next_round=
13566 for name in $names_this_round; do
13567 already_handled=
13568 for n in $names_already_handled; do
13569 if test "$n" = "$name"; then
13570 already_handled=yes
13571 break
13572 fi
13573 done
13574 if test -z "$already_handled"; then
13575 names_already_handled="$names_already_handled $name"
13576 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13577 eval value=\"\$HAVE_LIB$uppername\"
13578 if test -n "$value"; then
13579 if test "$value" = yes; then
13580 eval value=\"\$LIB$uppername\"
13581 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13582 eval value=\"\$LTLIB$uppername\"
13583 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13584 else
13585 :
13586 fi
13587 else
13588 found_dir=
13589 found_la=
13590 found_so=
13591 found_a=
13592 if test $use_additional = yes; then
13593 if test -n "$shlibext" \
13594 && { test -f "$additional_libdir/lib$name.$shlibext" \
13595 || { test "$shlibext" = dll \
13596 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13597 found_dir="$additional_libdir"
13598 if test -f "$additional_libdir/lib$name.$shlibext"; then
13599 found_so="$additional_libdir/lib$name.$shlibext"
13600 else
13601 found_so="$additional_libdir/lib$name.dll.a"
13602 fi
13603 if test -f "$additional_libdir/lib$name.la"; then
13604 found_la="$additional_libdir/lib$name.la"
13605 fi
13606 else
13607 if test -f "$additional_libdir/lib$name.$libext"; then
13608 found_dir="$additional_libdir"
13609 found_a="$additional_libdir/lib$name.$libext"
13610 if test -f "$additional_libdir/lib$name.la"; then
13611 found_la="$additional_libdir/lib$name.la"
13612 fi
13613 fi
13614 fi
13615 fi
13616 if test "X$found_dir" = "X"; then
13617 for x in $LDFLAGS $LTLIBINTL; do
13618
13619 acl_save_prefix="$prefix"
13620 prefix="$acl_final_prefix"
13621 acl_save_exec_prefix="$exec_prefix"
13622 exec_prefix="$acl_final_exec_prefix"
13623 eval x=\"$x\"
13624 exec_prefix="$acl_save_exec_prefix"
13625 prefix="$acl_save_prefix"
13626
13627 case "$x" in
13628 -L*)
13629 dir=`echo "X$x" | sed -e 's/^X-L//'`
13630 if test -n "$shlibext" \
13631 && { test -f "$dir/lib$name.$shlibext" \
13632 || { test "$shlibext" = dll \
13633 && test -f "$dir/lib$name.dll.a"; }; }; then
13634 found_dir="$dir"
13635 if test -f "$dir/lib$name.$shlibext"; then
13636 found_so="$dir/lib$name.$shlibext"
13637 else
13638 found_so="$dir/lib$name.dll.a"
13639 fi
13640 if test -f "$dir/lib$name.la"; then
13641 found_la="$dir/lib$name.la"
13642 fi
13643 else
13644 if test -f "$dir/lib$name.$libext"; then
13645 found_dir="$dir"
13646 found_a="$dir/lib$name.$libext"
13647 if test -f "$dir/lib$name.la"; then
13648 found_la="$dir/lib$name.la"
13649 fi
13650 fi
13651 fi
13652 ;;
13653 esac
13654 if test "X$found_dir" != "X"; then
13655 break
13656 fi
13657 done
13658 fi
13659 if test "X$found_dir" != "X"; then
13660 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13661 if test "X$found_so" != "X"; then
13662 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13663 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13664 else
13665 haveit=
13666 for x in $ltrpathdirs; do
13667 if test "X$x" = "X$found_dir"; then
13668 haveit=yes
13669 break
13670 fi
13671 done
13672 if test -z "$haveit"; then
13673 ltrpathdirs="$ltrpathdirs $found_dir"
13674 fi
13675 if test "$hardcode_direct" = yes; then
13676 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13677 else
13678 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13679 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13680 haveit=
13681 for x in $rpathdirs; do
13682 if test "X$x" = "X$found_dir"; then
13683 haveit=yes
13684 break
13685 fi
13686 done
13687 if test -z "$haveit"; then
13688 rpathdirs="$rpathdirs $found_dir"
13689 fi
13690 else
13691 haveit=
13692 for x in $LDFLAGS $LIBINTL; do
13693
13694 acl_save_prefix="$prefix"
13695 prefix="$acl_final_prefix"
13696 acl_save_exec_prefix="$exec_prefix"
13697 exec_prefix="$acl_final_exec_prefix"
13698 eval x=\"$x\"
13699 exec_prefix="$acl_save_exec_prefix"
13700 prefix="$acl_save_prefix"
13701
13702 if test "X$x" = "X-L$found_dir"; then
13703 haveit=yes
13704 break
13705 fi
13706 done
13707 if test -z "$haveit"; then
13708 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13709 fi
13710 if test "$hardcode_minus_L" != no; then
13711 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13712 else
13713 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13714 fi
13715 fi
13716 fi
13717 fi
13718 else
13719 if test "X$found_a" != "X"; then
13720 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13721 else
13722 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13723 fi
13724 fi
13725 additional_includedir=
13726 case "$found_dir" in
13727 */$acl_libdirstem | */$acl_libdirstem/)
13728 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13729 additional_includedir="$basedir/include"
13730 ;;
13731 esac
13732 if test "X$additional_includedir" != "X"; then
13733 if test "X$additional_includedir" != "X/usr/include"; then
13734 haveit=
13735 if test "X$additional_includedir" = "X/usr/local/include"; then
13736 if test -n "$GCC"; then
13737 case $host_os in
13738 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13739 esac
13740 fi
13741 fi
13742 if test -z "$haveit"; then
13743 for x in $CPPFLAGS $INCINTL; do
13744
13745 acl_save_prefix="$prefix"
13746 prefix="$acl_final_prefix"
13747 acl_save_exec_prefix="$exec_prefix"
13748 exec_prefix="$acl_final_exec_prefix"
13749 eval x=\"$x\"
13750 exec_prefix="$acl_save_exec_prefix"
13751 prefix="$acl_save_prefix"
13752
13753 if test "X$x" = "X-I$additional_includedir"; then
13754 haveit=yes
13755 break
13756 fi
13757 done
13758 if test -z "$haveit"; then
13759 if test -d "$additional_includedir"; then
13760 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13761 fi
13762 fi
13763 fi
13764 fi
13765 fi
13766 if test -n "$found_la"; then
13767 save_libdir="$libdir"
13768 case "$found_la" in
13769 */* | *\\*) . "$found_la" ;;
13770 *) . "./$found_la" ;;
13771 esac
13772 libdir="$save_libdir"
13773 for dep in $dependency_libs; do
13774 case "$dep" in
13775 -L*)
13776 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13777 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13778 haveit=
13779 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13780 if test -n "$GCC"; then
13781 case $host_os in
13782 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13783 esac
13784 fi
13785 fi
13786 if test -z "$haveit"; then
13787 haveit=
13788 for x in $LDFLAGS $LIBINTL; do
13789
13790 acl_save_prefix="$prefix"
13791 prefix="$acl_final_prefix"
13792 acl_save_exec_prefix="$exec_prefix"
13793 exec_prefix="$acl_final_exec_prefix"
13794 eval x=\"$x\"
13795 exec_prefix="$acl_save_exec_prefix"
13796 prefix="$acl_save_prefix"
13797
13798 if test "X$x" = "X-L$additional_libdir"; then
13799 haveit=yes
13800 break
13801 fi
13802 done
13803 if test -z "$haveit"; then
13804 if test -d "$additional_libdir"; then
13805 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13806 fi
13807 fi
13808 haveit=
13809 for x in $LDFLAGS $LTLIBINTL; do
13810
13811 acl_save_prefix="$prefix"
13812 prefix="$acl_final_prefix"
13813 acl_save_exec_prefix="$exec_prefix"
13814 exec_prefix="$acl_final_exec_prefix"
13815 eval x=\"$x\"
13816 exec_prefix="$acl_save_exec_prefix"
13817 prefix="$acl_save_prefix"
13818
13819 if test "X$x" = "X-L$additional_libdir"; then
13820 haveit=yes
13821 break
13822 fi
13823 done
13824 if test -z "$haveit"; then
13825 if test -d "$additional_libdir"; then
13826 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13827 fi
13828 fi
13829 fi
13830 fi
13831 ;;
13832 -R*)
13833 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13834 if test "$enable_rpath" != no; then
13835 haveit=
13836 for x in $rpathdirs; do
13837 if test "X$x" = "X$dir"; then
13838 haveit=yes
13839 break
13840 fi
13841 done
13842 if test -z "$haveit"; then
13843 rpathdirs="$rpathdirs $dir"
13844 fi
13845 haveit=
13846 for x in $ltrpathdirs; do
13847 if test "X$x" = "X$dir"; then
13848 haveit=yes
13849 break
13850 fi
13851 done
13852 if test -z "$haveit"; then
13853 ltrpathdirs="$ltrpathdirs $dir"
13854 fi
13855 fi
13856 ;;
13857 -l*)
13858 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13859 ;;
13860 *.la)
13861 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13862 ;;
13863 *)
13864 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13865 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13866 ;;
13867 esac
13868 done
13869 fi
13870 else
13871 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13872 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13873 fi
13874 fi
13875 fi
13876 done
13877 done
13878 if test "X$rpathdirs" != "X"; then
13879 if test -n "$hardcode_libdir_separator"; then
13880 alldirs=
13881 for found_dir in $rpathdirs; do
13882 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13883 done
13884 acl_save_libdir="$libdir"
13885 libdir="$alldirs"
13886 eval flag=\"$hardcode_libdir_flag_spec\"
13887 libdir="$acl_save_libdir"
13888 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13889 else
13890 for found_dir in $rpathdirs; do
13891 acl_save_libdir="$libdir"
13892 libdir="$found_dir"
13893 eval flag=\"$hardcode_libdir_flag_spec\"
13894 libdir="$acl_save_libdir"
13895 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13896 done
13897 fi
13898 fi
13899 if test "X$ltrpathdirs" != "X"; then
13900 for found_dir in $ltrpathdirs; do
13901 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13902 done
13903 fi
13904
13905 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13906 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13907 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
13908 echo $ECHO_N "(cached) $ECHO_C" >&6
13909 else
13910 gt_save_CPPFLAGS="$CPPFLAGS"
13911 CPPFLAGS="$CPPFLAGS $INCINTL"
13912 gt_save_LIBS="$LIBS"
13913 LIBS="$LIBS $LIBINTL"
13914 cat >conftest.$ac_ext <<_ACEOF
13915 /* confdefs.h. */
13916 _ACEOF
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h. */
13920 #include <libintl.h>
13921 $gt_revision_test_code
13922 extern int _nl_msg_cat_cntr;
13923 extern
13924 #ifdef __cplusplus
13925 "C"
13926 #endif
13927 const char *_nl_expand_alias (const char *);
13928 int
13929 main ()
13930 {
13931 bindtextdomain ("", "");
13932 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13933 ;
13934 return 0;
13935 }
13936 _ACEOF
13937 rm -f conftest.$ac_objext conftest$ac_exeext
13938 if { (ac_try="$ac_link"
13939 case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13942 esac
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_link") 2>conftest.er1
13945 ac_status=$?
13946 grep -v '^ *+' conftest.er1 >conftest.err
13947 rm -f conftest.er1
13948 cat conftest.err >&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } && {
13951 test -z "$ac_c_werror_flag" ||
13952 test ! -s conftest.err
13953 } && test -s conftest$ac_exeext &&
13954 $as_test_x conftest$ac_exeext; then
13955 eval "$gt_func_gnugettext_libintl=yes"
13956 else
13957 echo "$as_me: failed program was:" >&5
13958 sed 's/^/| /' conftest.$ac_ext >&5
13959
13960 eval "$gt_func_gnugettext_libintl=no"
13961 fi
13962
13963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13964 conftest$ac_exeext conftest.$ac_ext
13965 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13966 LIBS="$LIBS $LIBICONV"
13967 cat >conftest.$ac_ext <<_ACEOF
13968 /* confdefs.h. */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13973 #include <libintl.h>
13974 $gt_revision_test_code
13975 extern int _nl_msg_cat_cntr;
13976 extern
13977 #ifdef __cplusplus
13978 "C"
13979 #endif
13980 const char *_nl_expand_alias (const char *);
13981 int
13982 main ()
13983 {
13984 bindtextdomain ("", "");
13985 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13986 ;
13987 return 0;
13988 }
13989 _ACEOF
13990 rm -f conftest.$ac_objext conftest$ac_exeext
13991 if { (ac_try="$ac_link"
13992 case "(($ac_try" in
13993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994 *) ac_try_echo=$ac_try;;
13995 esac
13996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13997 (eval "$ac_link") 2>conftest.er1
13998 ac_status=$?
13999 grep -v '^ *+' conftest.er1 >conftest.err
14000 rm -f conftest.er1
14001 cat conftest.err >&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } && {
14004 test -z "$ac_c_werror_flag" ||
14005 test ! -s conftest.err
14006 } && test -s conftest$ac_exeext &&
14007 $as_test_x conftest$ac_exeext; then
14008 LIBINTL="$LIBINTL $LIBICONV"
14009 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14010 eval "$gt_func_gnugettext_libintl=yes"
14011
14012 else
14013 echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.$ac_ext >&5
14015
14016
14017 fi
14018
14019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14020 conftest$ac_exeext conftest.$ac_ext
14021 fi
14022 CPPFLAGS="$gt_save_CPPFLAGS"
14023 LIBS="$gt_save_LIBS"
14024 fi
14025 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
14026 { echo "$as_me:$LINENO: result: $ac_res" >&5
14027 echo "${ECHO_T}$ac_res" >&6; }
14028 fi
14029
14030 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14031 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14032 && test "$PACKAGE" != gettext-runtime \
14033 && test "$PACKAGE" != gettext-tools; }; then
14034 gt_use_preinstalled_gnugettext=yes
14035 else
14036 LIBINTL=
14037 LTLIBINTL=
14038 INCINTL=
14039 fi
14040
14041
14042
14043 if test -n "$INTL_MACOSX_LIBS"; then
14044 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14045 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14046 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14047 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14048 fi
14049 fi
14050
14051 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14052 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14053
14054 cat >>confdefs.h <<\_ACEOF
14055 #define ENABLE_NLS 1
14056 _ACEOF
14057
14058 else
14059 USE_NLS=no
14060 fi
14061 fi
14062
14063 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
14064 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
14065 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
14066 echo "${ECHO_T}$USE_NLS" >&6; }
14067 if test "$USE_NLS" = "yes"; then
14068 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
14069 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
14070 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14071 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14072 gt_source="external libintl"
14073 else
14074 gt_source="libc"
14075 fi
14076 else
14077 gt_source="included intl directory"
14078 fi
14079 { echo "$as_me:$LINENO: result: $gt_source" >&5
14080 echo "${ECHO_T}$gt_source" >&6; }
14081 fi
14082
14083 if test "$USE_NLS" = "yes"; then
14084
14085 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14086 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14087 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
14088 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
14089 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
14090 echo "${ECHO_T}$LIBINTL" >&6; }
14091
14092 for element in $INCINTL; do
14093 haveit=
14094 for x in $CPPFLAGS; do
14095
14096 acl_save_prefix="$prefix"
14097 prefix="$acl_final_prefix"
14098 acl_save_exec_prefix="$exec_prefix"
14099 exec_prefix="$acl_final_exec_prefix"
14100 eval x=\"$x\"
14101 exec_prefix="$acl_save_exec_prefix"
14102 prefix="$acl_save_prefix"
14103
14104 if test "X$x" = "X$element"; then
14105 haveit=yes
14106 break
14107 fi
14108 done
14109 if test -z "$haveit"; then
14110 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14111 fi
14112 done
14113
14114 fi
14115
14116
14117 cat >>confdefs.h <<\_ACEOF
14118 #define HAVE_GETTEXT 1
14119 _ACEOF
14120
14121
14122 cat >>confdefs.h <<\_ACEOF
14123 #define HAVE_DCGETTEXT 1
14124 _ACEOF
14125
14126 fi
14127
14128 POSUB=po
14129 fi
14130
14131
14132
14133 INTLLIBS="$LIBINTL"
14134
14135
14136
14137
14138
14139
14140
14141
14142 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
14143 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
14144 if test "${ac_cv_lib_z_compress+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 else
14147 ac_check_lib_save_LIBS=$LIBS
14148 LIBS="-lz $LIBS"
14149 cat >conftest.$ac_ext <<_ACEOF
14150 /* confdefs.h. */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155
14156 /* Override any GCC internal prototype to avoid an error.
14157 Use char because int might match the return type of a GCC
14158 builtin and then its argument prototype would still apply. */
14159 #ifdef __cplusplus
14160 extern "C"
14161 #endif
14162 char compress ();
14163 int
14164 main ()
14165 {
14166 return compress ();
14167 ;
14168 return 0;
14169 }
14170 _ACEOF
14171 rm -f conftest.$ac_objext conftest$ac_exeext
14172 if { (ac_try="$ac_link"
14173 case "(($ac_try" in
14174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14176 esac
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_link") 2>conftest.er1
14179 ac_status=$?
14180 grep -v '^ *+' conftest.er1 >conftest.err
14181 rm -f conftest.er1
14182 cat conftest.err >&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } && {
14185 test -z "$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 } && test -s conftest$ac_exeext &&
14188 $as_test_x conftest$ac_exeext; then
14189 ac_cv_lib_z_compress=yes
14190 else
14191 echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14193
14194 ac_cv_lib_z_compress=no
14195 fi
14196
14197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14198 conftest$ac_exeext conftest.$ac_ext
14199 LIBS=$ac_check_lib_save_LIBS
14200 fi
14201 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
14202 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
14203 if test $ac_cv_lib_z_compress = yes; then
14204 cat >>confdefs.h <<_ACEOF
14205 #define HAVE_LIBZ 1
14206 _ACEOF
14207
14208 LIBS="-lz $LIBS"
14209
14210 else
14211 { echo "$as_me:$LINENO: WARNING: ***
14212 *** ZLIB was not found. You will not be able to use ZLIB compression
14213 *** in OpenPGP packets." >&5
14214 echo "$as_me: WARNING: ***
14215 *** ZLIB was not found. You will not be able to use ZLIB compression
14216 *** in OpenPGP packets." >&2;}
14217 fi
14218
14219
14220 LIBS="${LIBS} ${LIBMCRYPT_LIBS}"
14221 CFLAGS="${CFLAGS} ${LIBMCRYPT_CFLAGS} -Wall"
14222
14223
14224 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14225 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
14226 if test "${ac_cv_c_const+set}" = set; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 else
14229 cat >conftest.$ac_ext <<_ACEOF
14230 /* confdefs.h. */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235
14236 int
14237 main ()
14238 {
14239 /* FIXME: Include the comments suggested by Paul. */
14240 #ifndef __cplusplus
14241 /* Ultrix mips cc rejects this. */
14242 typedef int charset[2];
14243 const charset cs;
14244 /* SunOS 4.1.1 cc rejects this. */
14245 char const *const *pcpcc;
14246 char **ppc;
14247 /* NEC SVR4.0.2 mips cc rejects this. */
14248 struct point {int x, y;};
14249 static struct point const zero = {0,0};
14250 /* AIX XL C 1.02.0.0 rejects this.
14251 It does not let you subtract one const X* pointer from another in
14252 an arm of an if-expression whose if-part is not a constant
14253 expression */
14254 const char *g = "string";
14255 pcpcc = &g + (g ? g-g : 0);
14256 /* HPUX 7.0 cc rejects these. */
14257 ++pcpcc;
14258 ppc = (char**) pcpcc;
14259 pcpcc = (char const *const *) ppc;
14260 { /* SCO 3.2v4 cc rejects this. */
14261 char *t;
14262 char const *s = 0 ? (char *) 0 : (char const *) 0;
14263
14264 *t++ = 0;
14265 if (s) return 0;
14266 }
14267 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14268 int x[] = {25, 17};
14269 const int *foo = &x[0];
14270 ++foo;
14271 }
14272 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14273 typedef const int *iptr;
14274 iptr p = 0;
14275 ++p;
14276 }
14277 { /* AIX XL C 1.02.0.0 rejects this saying
14278 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14279 struct s { int j; const int *ap[3]; };
14280 struct s *b; b->j = 5;
14281 }
14282 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14283 const int foo = 10;
14284 if (!foo) return 0;
14285 }
14286 return !cs[0] && !zero.x;
14287 #endif
14288
14289 ;
14290 return 0;
14291 }
14292 _ACEOF
14293 rm -f conftest.$ac_objext
14294 if { (ac_try="$ac_compile"
14295 case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14298 esac
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_compile") 2>conftest.er1
14301 ac_status=$?
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } && {
14307 test -z "$ac_c_werror_flag" ||
14308 test ! -s conftest.err
14309 } && test -s conftest.$ac_objext; then
14310 ac_cv_c_const=yes
14311 else
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14314
14315 ac_cv_c_const=no
14316 fi
14317
14318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319 fi
14320 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14321 echo "${ECHO_T}$ac_cv_c_const" >&6; }
14322 if test $ac_cv_c_const = no; then
14323
14324 cat >>confdefs.h <<\_ACEOF
14325 #define const
14326 _ACEOF
14327
14328 fi
14329
14330
14331 # Find a good install program. We prefer a C program (faster),
14332 # so one script is as good as another. But avoid the broken or
14333 # incompatible versions:
14334 # SysV /etc/install, /usr/sbin/install
14335 # SunOS /usr/etc/install
14336 # IRIX /sbin/install
14337 # AIX /bin/install
14338 # AmigaOS /C/install, which installs bootblocks on floppy discs
14339 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14340 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14341 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14342 # OS/2's system install, which has a completely different semantic
14343 # ./install, which can be erroneously created by make from ./install.sh.
14344 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14345 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
14346 if test -z "$INSTALL"; then
14347 if test "${ac_cv_path_install+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 else
14350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14351 for as_dir in $PATH
14352 do
14353 IFS=$as_save_IFS
14354 test -z "$as_dir" && as_dir=.
14355 # Account for people who put trailing slashes in PATH elements.
14356 case $as_dir/ in
14357 ./ | .// | /cC/* | \
14358 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14359 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
14360 /usr/ucb/* ) ;;
14361 *)
14362 # OSF1 and SCO ODT 3.0 have their own names for install.
14363 # Don't use installbsd from OSF since it installs stuff as root
14364 # by default.
14365 for ac_prog in ginstall scoinst install; do
14366 for ac_exec_ext in '' $ac_executable_extensions; do
14367 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14368 if test $ac_prog = install &&
14369 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14370 # AIX install. It has an incompatible calling convention.
14371 :
14372 elif test $ac_prog = install &&
14373 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14374 # program-specific install script used by HP pwplus--don't use.
14375 :
14376 else
14377 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14378 break 3
14379 fi
14380 fi
14381 done
14382 done
14383 ;;
14384 esac
14385 done
14386 IFS=$as_save_IFS
14387
14388
14389 fi
14390 if test "${ac_cv_path_install+set}" = set; then
14391 INSTALL=$ac_cv_path_install
14392 else
14393 # As a last resort, use the slow shell script. Don't cache a
14394 # value for INSTALL within a source directory, because that will
14395 # break other packages using the cache if that directory is
14396 # removed, or if the value is a relative name.
14397 INSTALL=$ac_install_sh
14398 fi
14399 fi
14400 { echo "$as_me:$LINENO: result: $INSTALL" >&5
14401 echo "${ECHO_T}$INSTALL" >&6; }
14402
14403 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14404 # It thinks the first close brace ends the variable substitution.
14405 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14406
14407 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14408
14409 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14410
14411 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
14412 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
14413 LN_S=$as_ln_s
14414 if test "$LN_S" = "ln -s"; then
14415 { echo "$as_me:$LINENO: result: yes" >&5
14416 echo "${ECHO_T}yes" >&6; }
14417 else
14418 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14419 echo "${ECHO_T}no, using $LN_S" >&6; }
14420 fi
14421
14422 # Extract the first word of "rm", so it can be a program name with args.
14423 set dummy rm; ac_word=$2
14424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14426 if test "${ac_cv_path_RM+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14428 else
14429 case $RM in
14430 [\\/]* | ?:[\\/]*)
14431 ac_cv_path_RM="$RM" # Let the user override the test with a path.
14432 ;;
14433 *)
14434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14435 for as_dir in $PATH
14436 do
14437 IFS=$as_save_IFS
14438 test -z "$as_dir" && as_dir=.
14439 for ac_exec_ext in '' $ac_executable_extensions; do
14440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14441 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
14442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14443 break 2
14444 fi
14445 done
14446 done
14447 IFS=$as_save_IFS
14448
14449 ;;
14450 esac
14451 fi
14452 RM=$ac_cv_path_RM
14453 if test -n "$RM"; then
14454 { echo "$as_me:$LINENO: result: $RM" >&5
14455 echo "${ECHO_T}$RM" >&6; }
14456 else
14457 { echo "$as_me:$LINENO: result: no" >&5
14458 echo "${ECHO_T}no" >&6; }
14459 fi
14460
14461
14462
14463 case "${target}" in
14464 *-cygwin*)
14465 ;;
14466 *-mingw*)
14467 ;;
14468 *)
14469 # Extract the first word of "gzip", so it can be a program name with args.
14470 set dummy gzip; ac_word=$2
14471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14473 if test "${ac_cv_path_GZIP+set}" = set; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14475 else
14476 case $GZIP in
14477 [\\/]* | ?:[\\/]*)
14478 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
14479 ;;
14480 *)
14481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14482 for as_dir in $PATH
14483 do
14484 IFS=$as_save_IFS
14485 test -z "$as_dir" && as_dir=.
14486 for ac_exec_ext in '' $ac_executable_extensions; do
14487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14488 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
14489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14490 break 2
14491 fi
14492 done
14493 done
14494 IFS=$as_save_IFS
14495
14496 ;;
14497 esac
14498 fi
14499 GZIP=$ac_cv_path_GZIP
14500 if test -n "$GZIP"; then
14501 { echo "$as_me:$LINENO: result: $GZIP" >&5
14502 echo "${ECHO_T}$GZIP" >&6; }
14503 else
14504 { echo "$as_me:$LINENO: result: no" >&5
14505 echo "${ECHO_T}no" >&6; }
14506 fi
14507
14508
14509
14510 cat >>confdefs.h <<_ACEOF
14511 #define GZIP "$GZIP"
14512 _ACEOF
14513
14514 # Extract the first word of "bzip2", so it can be a program name with args.
14515 set dummy bzip2; ac_word=$2
14516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14518 if test "${ac_cv_path_BZIP2+set}" = set; then
14519 echo $ECHO_N "(cached) $ECHO_C" >&6
14520 else
14521 case $BZIP2 in
14522 [\\/]* | ?:[\\/]*)
14523 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
14524 ;;
14525 *)
14526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14527 for as_dir in $PATH
14528 do
14529 IFS=$as_save_IFS
14530 test -z "$as_dir" && as_dir=.
14531 for ac_exec_ext in '' $ac_executable_extensions; do
14532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14533 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
14534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14535 break 2
14536 fi
14537 done
14538 done
14539 IFS=$as_save_IFS
14540
14541 ;;
14542 esac
14543 fi
14544 BZIP2=$ac_cv_path_BZIP2
14545 if test -n "$BZIP2"; then
14546 { echo "$as_me:$LINENO: result: $BZIP2" >&5
14547 echo "${ECHO_T}$BZIP2" >&6; }
14548 else
14549 { echo "$as_me:$LINENO: result: no" >&5
14550 echo "${ECHO_T}no" >&6; }
14551 fi
14552
14553
14554
14555 cat >>confdefs.h <<_ACEOF
14556 #define BZIP2 "$BZIP2"
14557 _ACEOF
14558
14559 ;;
14560 esac
14561
14562
14563 { echo "$as_me:$LINENO: checking whether use of /dev/random is requested" >&5
14564 echo $ECHO_N "checking whether use of /dev/random is requested... $ECHO_C" >&6; }
14565 # Check whether --enable-dev-random was given.
14566 if test "${enable_dev_random+set}" = set; then
14567 enableval=$enable_dev_random; try_dev_random=$enableval
14568 else
14569 try_dev_random=yes
14570 fi
14571
14572 { echo "$as_me:$LINENO: result: $try_dev_random" >&5
14573 echo "${ECHO_T}$try_dev_random" >&6; }
14574
14575
14576 opt_static_link=no
14577 { echo "$as_me:$LINENO: checking whether static link is requested" >&5
14578 echo $ECHO_N "checking whether static link is requested... $ECHO_C" >&6; }
14579 # Check whether --enable-static-link was given.
14580 if test "${enable_static_link+set}" = set; then
14581 enableval=$enable_static_link; opt_static_link=$enableval
14582 fi
14583
14584 { echo "$as_me:$LINENO: result: $opt_static_link" >&5
14585 echo "${ECHO_T}$opt_static_link" >&6; }
14586
14587 opt_maintainer_mode=no
14588 { echo "$as_me:$LINENO: checking whether in maintanance mode" >&5
14589 echo $ECHO_N "checking whether in maintanance mode... $ECHO_C" >&6; }
14590 # Check whether --enable-maintainer-mode was given.
14591 if test "${enable_maintainer_mode+set}" = set; then
14592 enableval=$enable_maintainer_mode; opt_maintainer_mode=$enableval
14593 fi
14594
14595 { echo "$as_me:$LINENO: result: $opt_maintainer_mode" >&5
14596 echo "${ECHO_T}$opt_maintainer_mode" >&6; }
14597
14598
14599 { echo "$as_me:$LINENO: checking whether included getpass is requested" >&5
14600 echo $ECHO_N "checking whether included getpass is requested... $ECHO_C" >&6; }
14601 # Check whether --enable-included-getpass was given.
14602 if test "${enable_included_getpass+set}" = set; then
14603 enableval=$enable_included_getpass; try_getpass=$enableval
14604 else
14605 try_getpass=yes
14606 fi
14607
14608 { echo "$as_me:$LINENO: result: $try_getpass" >&5
14609 echo "${ECHO_T}$try_getpass" >&6; }
14610
14611 if test "$try_getpass" != yes ; then
14612
14613 cat >>confdefs.h <<\_ACEOF
14614 #define NO_GETPASS 1
14615 _ACEOF
14616
14617 fi
14618
14619 case "${target}" in
14620 *-openbsd*)
14621 NAME_OF_DEV_RANDOM="/dev/srandom"
14622 NAME_OF_DEV_URANDOM="/dev/urandom"
14623 ;;
14624 *-cygwin*)
14625
14626 cat >>confdefs.h <<\_ACEOF
14627 #define WIN32 1
14628 _ACEOF
14629
14630 NAME_OF_DEV_RANDOM=""
14631 NAME_OF_DEV_URANDOM=""
14632 ;;
14633 *-mingw*)
14634
14635 cat >>confdefs.h <<\_ACEOF
14636 #define WIN32 1
14637 _ACEOF
14638
14639 NAME_OF_DEV_RANDOM=""
14640 NAME_OF_DEV_URANDOM=""
14641 ;;
14642 *)
14643 NAME_OF_DEV_RANDOM="/dev/random"
14644 NAME_OF_DEV_URANDOM="/dev/urandom"
14645 ;;
14646 esac
14647
14648
14649 cat >>confdefs.h <<_ACEOF
14650 #define NAME_OF_DEV_RANDOM "$NAME_OF_DEV_RANDOM"
14651 _ACEOF
14652
14653
14654 cat >>confdefs.h <<_ACEOF
14655 #define NAME_OF_DEV_URANDOM "$NAME_OF_DEV_URANDOM"
14656 _ACEOF
14657
14658
14659 if test "$try_dev_random" = yes ; then
14660 { echo "$as_me:$LINENO: checking for random device" >&5
14661 echo $ECHO_N "checking for random device... $ECHO_C" >&6; }
14662 if test "${ac_cv_have_dev_random+set}" = set; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14664 else
14665 if test -c "/dev/random" && test -c "$NAME_OF_DEV_URANDOM" ; then
14666 ac_cv_have_dev_random=yes; else ac_cv_have_dev_random=no; fi
14667 fi
14668 { echo "$as_me:$LINENO: result: $ac_cv_have_dev_random" >&5
14669 echo "${ECHO_T}$ac_cv_have_dev_random" >&6; }
14670 if test "$ac_cv_have_dev_random" = yes; then
14671
14672 cat >>confdefs.h <<\_ACEOF
14673 #define HAVE_DEV_RANDOM 1
14674 _ACEOF
14675
14676 else
14677 { echo "$as_me:$LINENO: WARNING: No random device found. No real random data can be used." >&5
14678 echo "$as_me: WARNING: No random device found. No real random data can be used." >&2;}
14679 fi
14680 else
14681 { echo "$as_me:$LINENO: checking for random device" >&5
14682 echo $ECHO_N "checking for random device... $ECHO_C" >&6; }
14683 ac_cv_have_dev_random=no
14684 { echo "$as_me:$LINENO: result: has been disabled" >&5
14685 echo "${ECHO_T}has been disabled" >&6; }
14686 { echo "$as_me:$LINENO: WARNING: Support for random device was disabled. No real random data can be used." >&5
14687 echo "$as_me: WARNING: Support for random device was disabled. No real random data can be used." >&2;}
14688 fi
14689
14690
14691 if test $ac_cv_c_compiler_gnu = yes; then
14692
14693 if test $opt_maintainer_mode = yes; then
14694 CFLAGS=" -Wall -Wpointer-arith -O0 -ggdb3"
14695 fi
14696 fi
14697
14698 if test "$opt_static_link" = yes; then
14699 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
14700 LDFLAGS="-static $LDFLAGS"
14701 fi
14702 fi
14703
14704 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14705 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14706 if test "${ac_cv_c_bigendian+set}" = set; then
14707 echo $ECHO_N "(cached) $ECHO_C" >&6
14708 else
14709 # See if sys/param.h defines the BYTE_ORDER macro.
14710 cat >conftest.$ac_ext <<_ACEOF
14711 /* confdefs.h. */
14712 _ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h. */
14716 #include <sys/types.h>
14717 #include <sys/param.h>
14718
14719 int
14720 main ()
14721 {
14722 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14723 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14724 bogus endian macros
14725 #endif
14726
14727 ;
14728 return 0;
14729 }
14730 _ACEOF
14731 rm -f conftest.$ac_objext
14732 if { (ac_try="$ac_compile"
14733 case "(($ac_try" in
14734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14735 *) ac_try_echo=$ac_try;;
14736 esac
14737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14738 (eval "$ac_compile") 2>conftest.er1
14739 ac_status=$?
14740 grep -v '^ *+' conftest.er1 >conftest.err
14741 rm -f conftest.er1
14742 cat conftest.err >&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } && {
14745 test -z "$ac_c_werror_flag" ||
14746 test ! -s conftest.err
14747 } && test -s conftest.$ac_objext; then
14748 # It does; now see whether it defined to BIG_ENDIAN or not.
14749 cat >conftest.$ac_ext <<_ACEOF
14750 /* confdefs.h. */
14751 _ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14755 #include <sys/types.h>
14756 #include <sys/param.h>
14757
14758 int
14759 main ()
14760 {
14761 #if BYTE_ORDER != BIG_ENDIAN
14762 not big endian
14763 #endif
14764
14765 ;
14766 return 0;
14767 }
14768 _ACEOF
14769 rm -f conftest.$ac_objext
14770 if { (ac_try="$ac_compile"
14771 case "(($ac_try" in
14772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773 *) ac_try_echo=$ac_try;;
14774 esac
14775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776 (eval "$ac_compile") 2>conftest.er1
14777 ac_status=$?
14778 grep -v '^ *+' conftest.er1 >conftest.err
14779 rm -f conftest.er1
14780 cat conftest.err >&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } && {
14783 test -z "$ac_c_werror_flag" ||
14784 test ! -s conftest.err
14785 } && test -s conftest.$ac_objext; then
14786 ac_cv_c_bigendian=yes
14787 else
14788 echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14790
14791 ac_cv_c_bigendian=no
14792 fi
14793
14794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14795 else
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14798
14799 # It does not; compile a test program.
14800 if test "$cross_compiling" = yes; then
14801 # try to guess the endianness by grepping values into an object file
14802 ac_cv_c_bigendian=unknown
14803 cat >conftest.$ac_ext <<_ACEOF
14804 /* confdefs.h. */
14805 _ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14810 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14811 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14812 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14813 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14814 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14815 int
14816 main ()
14817 {
14818 _ascii (); _ebcdic ();
14819 ;
14820 return 0;
14821 }
14822 _ACEOF
14823 rm -f conftest.$ac_objext
14824 if { (ac_try="$ac_compile"
14825 case "(($ac_try" in
14826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827 *) ac_try_echo=$ac_try;;
14828 esac
14829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830 (eval "$ac_compile") 2>conftest.er1
14831 ac_status=$?
14832 grep -v '^ *+' conftest.er1 >conftest.err
14833 rm -f conftest.er1
14834 cat conftest.err >&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } && {
14837 test -z "$ac_c_werror_flag" ||
14838 test ! -s conftest.err
14839 } && test -s conftest.$ac_objext; then
14840 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14841 ac_cv_c_bigendian=yes
14842 fi
14843 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14844 if test "$ac_cv_c_bigendian" = unknown; then
14845 ac_cv_c_bigendian=no
14846 else
14847 # finding both strings is unlikely to happen, but who knows?
14848 ac_cv_c_bigendian=unknown
14849 fi
14850 fi
14851 else
14852 echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14854
14855
14856 fi
14857
14858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14859 else
14860 cat >conftest.$ac_ext <<_ACEOF
14861 /* confdefs.h. */
14862 _ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14866 $ac_includes_default
14867 int
14868 main ()
14869 {
14870
14871 /* Are we little or big endian? From Harbison&Steele. */
14872 union
14873 {
14874 long int l;
14875 char c[sizeof (long int)];
14876 } u;
14877 u.l = 1;
14878 return u.c[sizeof (long int) - 1] == 1;
14879
14880 ;
14881 return 0;
14882 }
14883 _ACEOF
14884 rm -f conftest$ac_exeext
14885 if { (ac_try="$ac_link"
14886 case "(($ac_try" in
14887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14888 *) ac_try_echo=$ac_try;;
14889 esac
14890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14891 (eval "$ac_link") 2>&5
14892 ac_status=$?
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14895 { (case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14898 esac
14899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900 (eval "$ac_try") 2>&5
14901 ac_status=$?
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; }; then
14904 ac_cv_c_bigendian=no
14905 else
14906 echo "$as_me: program exited with status $ac_status" >&5
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14909
14910 ( exit $ac_status )
14911 ac_cv_c_bigendian=yes
14912 fi
14913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14914 fi
14915
14916
14917 fi
14918
14919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14920 fi
14921 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14922 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14923 case $ac_cv_c_bigendian in
14924 yes)
14925
14926 cat >>confdefs.h <<\_ACEOF
14927 #define WORDS_BIGENDIAN 1
14928 _ACEOF
14929 ;;
14930 no)
14931 ;;
14932 *)
14933 { { echo "$as_me:$LINENO: error: unknown endianness
14934 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14935 echo "$as_me: error: unknown endianness
14936 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14937 { (exit 1); exit 1; }; } ;;
14938 esac
14939
14940 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14941 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
14942 if test "${ac_cv_type_signal+set}" = set; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 else
14945 cat >conftest.$ac_ext <<_ACEOF
14946 /* confdefs.h. */
14947 _ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14951 #include <sys/types.h>
14952 #include <signal.h>
14953
14954 int
14955 main ()
14956 {
14957 return *(signal (0, 0)) (0) == 1;
14958 ;
14959 return 0;
14960 }
14961 _ACEOF
14962 rm -f conftest.$ac_objext
14963 if { (ac_try="$ac_compile"
14964 case "(($ac_try" in
14965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966 *) ac_try_echo=$ac_try;;
14967 esac
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969 (eval "$ac_compile") 2>conftest.er1
14970 ac_status=$?
14971 grep -v '^ *+' conftest.er1 >conftest.err
14972 rm -f conftest.er1
14973 cat conftest.err >&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } && {
14976 test -z "$ac_c_werror_flag" ||
14977 test ! -s conftest.err
14978 } && test -s conftest.$ac_objext; then
14979 ac_cv_type_signal=int
14980 else
14981 echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14983
14984 ac_cv_type_signal=void
14985 fi
14986
14987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14988 fi
14989 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14990 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
14991
14992 cat >>confdefs.h <<_ACEOF
14993 #define RETSIGTYPE $ac_cv_type_signal
14994 _ACEOF
14995
14996
14997 { echo "$as_me:$LINENO: checking for unsigned long int" >&5
14998 echo $ECHO_N "checking for unsigned long int... $ECHO_C" >&6; }
14999 if test "${ac_cv_type_unsigned_long_int+set}" = set; then
15000 echo $ECHO_N "(cached) $ECHO_C" >&6
15001 else
15002 cat >conftest.$ac_ext <<_ACEOF
15003 /* confdefs.h. */
15004 _ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h. */
15008 $ac_includes_default
15009 typedef unsigned long int ac__type_new_;
15010 int
15011 main ()
15012 {
15013 if ((ac__type_new_ *) 0)
15014 return 0;
15015 if (sizeof (ac__type_new_))
15016 return 0;
15017 ;
15018 return 0;
15019 }
15020 _ACEOF
15021 rm -f conftest.$ac_objext
15022 if { (ac_try="$ac_compile"
15023 case "(($ac_try" in
15024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15025 *) ac_try_echo=$ac_try;;
15026 esac
15027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15028 (eval "$ac_compile") 2>conftest.er1
15029 ac_status=$?
15030 grep -v '^ *+' conftest.er1 >conftest.err
15031 rm -f conftest.er1
15032 cat conftest.err >&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } && {
15035 test -z "$ac_c_werror_flag" ||
15036 test ! -s conftest.err
15037 } && test -s conftest.$ac_objext; then
15038 ac_cv_type_unsigned_long_int=yes
15039 else
15040 echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15042
15043 ac_cv_type_unsigned_long_int=no
15044 fi
15045
15046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15047 fi
15048 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_int" >&5
15049 echo "${ECHO_T}$ac_cv_type_unsigned_long_int" >&6; }
15050
15051 # The cast to long int works around a bug in the HP C Compiler
15052 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15053 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15054 # This bug is HP SR number 8606223364.
15055 { echo "$as_me:$LINENO: checking size of unsigned long int" >&5
15056 echo $ECHO_N "checking size of unsigned long int... $ECHO_C" >&6; }
15057 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 else
15060 if test "$cross_compiling" = yes; then
15061 # Depending upon the size, compute the lo and hi bounds.
15062 cat >conftest.$ac_ext <<_ACEOF
15063 /* confdefs.h. */
15064 _ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15068 $ac_includes_default
15069 typedef unsigned long int ac__type_sizeof_;
15070 int
15071 main ()
15072 {
15073 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15074 test_array [0] = 0
15075
15076 ;
15077 return 0;
15078 }
15079 _ACEOF
15080 rm -f conftest.$ac_objext
15081 if { (ac_try="$ac_compile"
15082 case "(($ac_try" in
15083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084 *) ac_try_echo=$ac_try;;
15085 esac
15086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087 (eval "$ac_compile") 2>conftest.er1
15088 ac_status=$?
15089 grep -v '^ *+' conftest.er1 >conftest.err
15090 rm -f conftest.er1
15091 cat conftest.err >&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } && {
15094 test -z "$ac_c_werror_flag" ||
15095 test ! -s conftest.err
15096 } && test -s conftest.$ac_objext; then
15097 ac_lo=0 ac_mid=0
15098 while :; do
15099 cat >conftest.$ac_ext <<_ACEOF
15100 /* confdefs.h. */
15101 _ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h. */
15105 $ac_includes_default
15106 typedef unsigned long int ac__type_sizeof_;
15107 int
15108 main ()
15109 {
15110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15111 test_array [0] = 0
15112
15113 ;
15114 return 0;
15115 }
15116 _ACEOF
15117 rm -f conftest.$ac_objext
15118 if { (ac_try="$ac_compile"
15119 case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15122 esac
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_compile") 2>conftest.er1
15125 ac_status=$?
15126 grep -v '^ *+' conftest.er1 >conftest.err
15127 rm -f conftest.er1
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } && {
15131 test -z "$ac_c_werror_flag" ||
15132 test ! -s conftest.err
15133 } && test -s conftest.$ac_objext; then
15134 ac_hi=$ac_mid; break
15135 else
15136 echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15138
15139 ac_lo=`expr $ac_mid + 1`
15140 if test $ac_lo -le $ac_mid; then
15141 ac_lo= ac_hi=
15142 break
15143 fi
15144 ac_mid=`expr 2 '*' $ac_mid + 1`
15145 fi
15146
15147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15148 done
15149 else
15150 echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15152
15153 cat >conftest.$ac_ext <<_ACEOF
15154 /* confdefs.h. */
15155 _ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15159 $ac_includes_default
15160 typedef unsigned long int ac__type_sizeof_;
15161 int
15162 main ()
15163 {
15164 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15165 test_array [0] = 0
15166
15167 ;
15168 return 0;
15169 }
15170 _ACEOF
15171 rm -f conftest.$ac_objext
15172 if { (ac_try="$ac_compile"
15173 case "(($ac_try" in
15174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15175 *) ac_try_echo=$ac_try;;
15176 esac
15177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15178 (eval "$ac_compile") 2>conftest.er1
15179 ac_status=$?
15180 grep -v '^ *+' conftest.er1 >conftest.err
15181 rm -f conftest.er1
15182 cat conftest.err >&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); } && {
15185 test -z "$ac_c_werror_flag" ||
15186 test ! -s conftest.err
15187 } && test -s conftest.$ac_objext; then
15188 ac_hi=-1 ac_mid=-1
15189 while :; do
15190 cat >conftest.$ac_ext <<_ACEOF
15191 /* confdefs.h. */
15192 _ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h. */
15196 $ac_includes_default
15197 typedef unsigned long int ac__type_sizeof_;
15198 int
15199 main ()
15200 {
15201 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15202 test_array [0] = 0
15203
15204 ;
15205 return 0;
15206 }
15207 _ACEOF
15208 rm -f conftest.$ac_objext
15209 if { (ac_try="$ac_compile"
15210 case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15213 esac
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_compile") 2>conftest.er1
15216 ac_status=$?
15217 grep -v '^ *+' conftest.er1 >conftest.err
15218 rm -f conftest.er1
15219 cat conftest.err >&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } && {
15222 test -z "$ac_c_werror_flag" ||
15223 test ! -s conftest.err
15224 } && test -s conftest.$ac_objext; then
15225 ac_lo=$ac_mid; break
15226 else
15227 echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15229
15230 ac_hi=`expr '(' $ac_mid ')' - 1`
15231 if test $ac_mid -le $ac_hi; then
15232 ac_lo= ac_hi=
15233 break
15234 fi
15235 ac_mid=`expr 2 '*' $ac_mid`
15236 fi
15237
15238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15239 done
15240 else
15241 echo "$as_me: failed program was:" >&5
15242 sed 's/^/| /' conftest.$ac_ext >&5
15243
15244 ac_lo= ac_hi=
15245 fi
15246
15247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15248 fi
15249
15250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15251 # Binary search between lo and hi bounds.
15252 while test "x$ac_lo" != "x$ac_hi"; do
15253 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15254 cat >conftest.$ac_ext <<_ACEOF
15255 /* confdefs.h. */
15256 _ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15260 $ac_includes_default
15261 typedef unsigned long int ac__type_sizeof_;
15262 int
15263 main ()
15264 {
15265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15266 test_array [0] = 0
15267
15268 ;
15269 return 0;
15270 }
15271 _ACEOF
15272 rm -f conftest.$ac_objext
15273 if { (ac_try="$ac_compile"
15274 case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277 esac
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_compile") 2>conftest.er1
15280 ac_status=$?
15281 grep -v '^ *+' conftest.er1 >conftest.err
15282 rm -f conftest.er1
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } && {
15286 test -z "$ac_c_werror_flag" ||
15287 test ! -s conftest.err
15288 } && test -s conftest.$ac_objext; then
15289 ac_hi=$ac_mid
15290 else
15291 echo "$as_me: failed program was:" >&5
15292 sed 's/^/| /' conftest.$ac_ext >&5
15293
15294 ac_lo=`expr '(' $ac_mid ')' + 1`
15295 fi
15296
15297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15298 done
15299 case $ac_lo in
15300 ?*) ac_cv_sizeof_unsigned_long_int=$ac_lo;;
15301 '') if test "$ac_cv_type_unsigned_long_int" = yes; then
15302 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int)
15303 See \`config.log' for more details." >&5
15304 echo "$as_me: error: cannot compute sizeof (unsigned long int)
15305 See \`config.log' for more details." >&2;}
15306 { (exit 77); exit 77; }; }
15307 else
15308 ac_cv_sizeof_unsigned_long_int=0
15309 fi ;;
15310 esac
15311 else
15312 cat >conftest.$ac_ext <<_ACEOF
15313 /* confdefs.h. */
15314 _ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15318 $ac_includes_default
15319 typedef unsigned long int ac__type_sizeof_;
15320 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15321 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15322 #include <stdio.h>
15323 #include <stdlib.h>
15324 int
15325 main ()
15326 {
15327
15328 FILE *f = fopen ("conftest.val", "w");
15329 if (! f)
15330 return 1;
15331 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15332 {
15333 long int i = longval ();
15334 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15335 return 1;
15336 fprintf (f, "%ld\n", i);
15337 }
15338 else
15339 {
15340 unsigned long int i = ulongval ();
15341 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15342 return 1;
15343 fprintf (f, "%lu\n", i);
15344 }
15345 return ferror (f) || fclose (f) != 0;
15346
15347 ;
15348 return 0;
15349 }
15350 _ACEOF
15351 rm -f conftest$ac_exeext
15352 if { (ac_try="$ac_link"
15353 case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15356 esac
15357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358 (eval "$ac_link") 2>&5
15359 ac_status=$?
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15362 { (case "(($ac_try" in
15363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364 *) ac_try_echo=$ac_try;;
15365 esac
15366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15367 (eval "$ac_try") 2>&5
15368 ac_status=$?
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }; then
15371 ac_cv_sizeof_unsigned_long_int=`cat conftest.val`
15372 else
15373 echo "$as_me: program exited with status $ac_status" >&5
15374 echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15376
15377 ( exit $ac_status )
15378 if test "$ac_cv_type_unsigned_long_int" = yes; then
15379 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int)
15380 See \`config.log' for more details." >&5
15381 echo "$as_me: error: cannot compute sizeof (unsigned long int)
15382 See \`config.log' for more details." >&2;}
15383 { (exit 77); exit 77; }; }
15384 else
15385 ac_cv_sizeof_unsigned_long_int=0
15386 fi
15387 fi
15388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15389 fi
15390 rm -f conftest.val
15391 fi
15392 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
15393 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
15394
15395
15396
15397 cat >>confdefs.h <<_ACEOF
15398 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
15399 _ACEOF
15400
15401
15402 { echo "$as_me:$LINENO: checking for unsigned int" >&5
15403 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
15404 if test "${ac_cv_type_unsigned_int+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15406 else
15407 cat >conftest.$ac_ext <<_ACEOF
15408 /* confdefs.h. */
15409 _ACEOF
15410 cat confdefs.h >>conftest.$ac_ext
15411 cat >>conftest.$ac_ext <<_ACEOF
15412 /* end confdefs.h. */
15413 $ac_includes_default
15414 typedef unsigned int ac__type_new_;
15415 int
15416 main ()
15417 {
15418 if ((ac__type_new_ *) 0)
15419 return 0;
15420 if (sizeof (ac__type_new_))
15421 return 0;
15422 ;
15423 return 0;
15424 }
15425 _ACEOF
15426 rm -f conftest.$ac_objext
15427 if { (ac_try="$ac_compile"
15428 case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15431 esac
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_compile") 2>conftest.er1
15434 ac_status=$?
15435 grep -v '^ *+' conftest.er1 >conftest.err
15436 rm -f conftest.er1
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } && {
15440 test -z "$ac_c_werror_flag" ||
15441 test ! -s conftest.err
15442 } && test -s conftest.$ac_objext; then
15443 ac_cv_type_unsigned_int=yes
15444 else
15445 echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15447
15448 ac_cv_type_unsigned_int=no
15449 fi
15450
15451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452 fi
15453 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
15454 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
15455
15456 # The cast to long int works around a bug in the HP C Compiler
15457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15458 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15459 # This bug is HP SR number 8606223364.
15460 { echo "$as_me:$LINENO: checking size of unsigned int" >&5
15461 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
15462 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
15463 echo $ECHO_N "(cached) $ECHO_C" >&6
15464 else
15465 if test "$cross_compiling" = yes; then
15466 # Depending upon the size, compute the lo and hi bounds.
15467 cat >conftest.$ac_ext <<_ACEOF
15468 /* confdefs.h. */
15469 _ACEOF
15470 cat confdefs.h >>conftest.$ac_ext
15471 cat >>conftest.$ac_ext <<_ACEOF
15472 /* end confdefs.h. */
15473 $ac_includes_default
15474 typedef unsigned int ac__type_sizeof_;
15475 int
15476 main ()
15477 {
15478 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15479 test_array [0] = 0
15480
15481 ;
15482 return 0;
15483 }
15484 _ACEOF
15485 rm -f conftest.$ac_objext
15486 if { (ac_try="$ac_compile"
15487 case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15490 esac
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_compile") 2>conftest.er1
15493 ac_status=$?
15494 grep -v '^ *+' conftest.er1 >conftest.err
15495 rm -f conftest.er1
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } && {
15499 test -z "$ac_c_werror_flag" ||
15500 test ! -s conftest.err
15501 } && test -s conftest.$ac_objext; then
15502 ac_lo=0 ac_mid=0
15503 while :; do
15504 cat >conftest.$ac_ext <<_ACEOF
15505 /* confdefs.h. */
15506 _ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15510 $ac_includes_default
15511 typedef unsigned int ac__type_sizeof_;
15512 int
15513 main ()
15514 {
15515 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15516 test_array [0] = 0
15517
15518 ;
15519 return 0;
15520 }
15521 _ACEOF
15522 rm -f conftest.$ac_objext
15523 if { (ac_try="$ac_compile"
15524 case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15527 esac
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_compile") 2>conftest.er1
15530 ac_status=$?
15531 grep -v '^ *+' conftest.er1 >conftest.err
15532 rm -f conftest.er1
15533 cat conftest.err >&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } && {
15536 test -z "$ac_c_werror_flag" ||
15537 test ! -s conftest.err
15538 } && test -s conftest.$ac_objext; then
15539 ac_hi=$ac_mid; break
15540 else
15541 echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15543
15544 ac_lo=`expr $ac_mid + 1`
15545 if test $ac_lo -le $ac_mid; then
15546 ac_lo= ac_hi=
15547 break
15548 fi
15549 ac_mid=`expr 2 '*' $ac_mid + 1`
15550 fi
15551
15552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15553 done
15554 else
15555 echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15557
15558 cat >conftest.$ac_ext <<_ACEOF
15559 /* confdefs.h. */
15560 _ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h. */
15564 $ac_includes_default
15565 typedef unsigned int ac__type_sizeof_;
15566 int
15567 main ()
15568 {
15569 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15570 test_array [0] = 0
15571
15572 ;
15573 return 0;
15574 }
15575 _ACEOF
15576 rm -f conftest.$ac_objext
15577 if { (ac_try="$ac_compile"
15578 case "(($ac_try" in
15579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580 *) ac_try_echo=$ac_try;;
15581 esac
15582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15583 (eval "$ac_compile") 2>conftest.er1
15584 ac_status=$?
15585 grep -v '^ *+' conftest.er1 >conftest.err
15586 rm -f conftest.er1
15587 cat conftest.err >&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } && {
15590 test -z "$ac_c_werror_flag" ||
15591 test ! -s conftest.err
15592 } && test -s conftest.$ac_objext; then
15593 ac_hi=-1 ac_mid=-1
15594 while :; do
15595 cat >conftest.$ac_ext <<_ACEOF
15596 /* confdefs.h. */
15597 _ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h. */
15601 $ac_includes_default
15602 typedef unsigned int ac__type_sizeof_;
15603 int
15604 main ()
15605 {
15606 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15607 test_array [0] = 0
15608
15609 ;
15610 return 0;
15611 }
15612 _ACEOF
15613 rm -f conftest.$ac_objext
15614 if { (ac_try="$ac_compile"
15615 case "(($ac_try" in
15616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617 *) ac_try_echo=$ac_try;;
15618 esac
15619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15620 (eval "$ac_compile") 2>conftest.er1
15621 ac_status=$?
15622 grep -v '^ *+' conftest.er1 >conftest.err
15623 rm -f conftest.er1
15624 cat conftest.err >&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } && {
15627 test -z "$ac_c_werror_flag" ||
15628 test ! -s conftest.err
15629 } && test -s conftest.$ac_objext; then
15630 ac_lo=$ac_mid; break
15631 else
15632 echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.$ac_ext >&5
15634
15635 ac_hi=`expr '(' $ac_mid ')' - 1`
15636 if test $ac_mid -le $ac_hi; then
15637 ac_lo= ac_hi=
15638 break
15639 fi
15640 ac_mid=`expr 2 '*' $ac_mid`
15641 fi
15642
15643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15644 done
15645 else
15646 echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15648
15649 ac_lo= ac_hi=
15650 fi
15651
15652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15653 fi
15654
15655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15656 # Binary search between lo and hi bounds.
15657 while test "x$ac_lo" != "x$ac_hi"; do
15658 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15659 cat >conftest.$ac_ext <<_ACEOF
15660 /* confdefs.h. */
15661 _ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h. */
15665 $ac_includes_default
15666 typedef unsigned int ac__type_sizeof_;
15667 int
15668 main ()
15669 {
15670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15671 test_array [0] = 0
15672
15673 ;
15674 return 0;
15675 }
15676 _ACEOF
15677 rm -f conftest.$ac_objext
15678 if { (ac_try="$ac_compile"
15679 case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15682 esac
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_compile") 2>conftest.er1
15685 ac_status=$?
15686 grep -v '^ *+' conftest.er1 >conftest.err
15687 rm -f conftest.er1
15688 cat conftest.err >&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); } && {
15691 test -z "$ac_c_werror_flag" ||
15692 test ! -s conftest.err
15693 } && test -s conftest.$ac_objext; then
15694 ac_hi=$ac_mid
15695 else
15696 echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15698
15699 ac_lo=`expr '(' $ac_mid ')' + 1`
15700 fi
15701
15702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15703 done
15704 case $ac_lo in
15705 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
15706 '') if test "$ac_cv_type_unsigned_int" = yes; then
15707 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
15708 See \`config.log' for more details." >&5
15709 echo "$as_me: error: cannot compute sizeof (unsigned int)
15710 See \`config.log' for more details." >&2;}
15711 { (exit 77); exit 77; }; }
15712 else
15713 ac_cv_sizeof_unsigned_int=0
15714 fi ;;
15715 esac
15716 else
15717 cat >conftest.$ac_ext <<_ACEOF
15718 /* confdefs.h. */
15719 _ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15723 $ac_includes_default
15724 typedef unsigned int ac__type_sizeof_;
15725 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15726 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15727 #include <stdio.h>
15728 #include <stdlib.h>
15729 int
15730 main ()
15731 {
15732
15733 FILE *f = fopen ("conftest.val", "w");
15734 if (! f)
15735 return 1;
15736 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15737 {
15738 long int i = longval ();
15739 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15740 return 1;
15741 fprintf (f, "%ld\n", i);
15742 }
15743 else
15744 {
15745 unsigned long int i = ulongval ();
15746 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15747 return 1;
15748 fprintf (f, "%lu\n", i);
15749 }
15750 return ferror (f) || fclose (f) != 0;
15751
15752 ;
15753 return 0;
15754 }
15755 _ACEOF
15756 rm -f conftest$ac_exeext
15757 if { (ac_try="$ac_link"
15758 case "(($ac_try" in
15759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760 *) ac_try_echo=$ac_try;;
15761 esac
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763 (eval "$ac_link") 2>&5
15764 ac_status=$?
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15767 { (case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15770 esac
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_try") 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_cv_sizeof_unsigned_int=`cat conftest.val`
15777 else
15778 echo "$as_me: program exited with status $ac_status" >&5
15779 echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15781
15782 ( exit $ac_status )
15783 if test "$ac_cv_type_unsigned_int" = yes; then
15784 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
15785 See \`config.log' for more details." >&5
15786 echo "$as_me: error: cannot compute sizeof (unsigned int)
15787 See \`config.log' for more details." >&2;}
15788 { (exit 77); exit 77; }; }
15789 else
15790 ac_cv_sizeof_unsigned_int=0
15791 fi
15792 fi
15793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15794 fi
15795 rm -f conftest.val
15796 fi
15797 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
15798 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
15799
15800
15801
15802 cat >>confdefs.h <<_ACEOF
15803 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
15804 _ACEOF
15805
15806
15807 { echo "$as_me:$LINENO: checking for unsigned short int" >&5
15808 echo $ECHO_N "checking for unsigned short int... $ECHO_C" >&6; }
15809 if test "${ac_cv_type_unsigned_short_int+set}" = set; then
15810 echo $ECHO_N "(cached) $ECHO_C" >&6
15811 else
15812 cat >conftest.$ac_ext <<_ACEOF
15813 /* confdefs.h. */
15814 _ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 $ac_includes_default
15819 typedef unsigned short int ac__type_new_;
15820 int
15821 main ()
15822 {
15823 if ((ac__type_new_ *) 0)
15824 return 0;
15825 if (sizeof (ac__type_new_))
15826 return 0;
15827 ;
15828 return 0;
15829 }
15830 _ACEOF
15831 rm -f conftest.$ac_objext
15832 if { (ac_try="$ac_compile"
15833 case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15836 esac
15837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_compile") 2>conftest.er1
15839 ac_status=$?
15840 grep -v '^ *+' conftest.er1 >conftest.err
15841 rm -f conftest.er1
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } && {
15845 test -z "$ac_c_werror_flag" ||
15846 test ! -s conftest.err
15847 } && test -s conftest.$ac_objext; then
15848 ac_cv_type_unsigned_short_int=yes
15849 else
15850 echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15852
15853 ac_cv_type_unsigned_short_int=no
15854 fi
15855
15856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15857 fi
15858 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short_int" >&5
15859 echo "${ECHO_T}$ac_cv_type_unsigned_short_int" >&6; }
15860
15861 # The cast to long int works around a bug in the HP C Compiler
15862 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15863 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15864 # This bug is HP SR number 8606223364.
15865 { echo "$as_me:$LINENO: checking size of unsigned short int" >&5
15866 echo $ECHO_N "checking size of unsigned short int... $ECHO_C" >&6; }
15867 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 else
15870 if test "$cross_compiling" = yes; then
15871 # Depending upon the size, compute the lo and hi bounds.
15872 cat >conftest.$ac_ext <<_ACEOF
15873 /* confdefs.h. */
15874 _ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15878 $ac_includes_default
15879 typedef unsigned short int ac__type_sizeof_;
15880 int
15881 main ()
15882 {
15883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15884 test_array [0] = 0
15885
15886 ;
15887 return 0;
15888 }
15889 _ACEOF
15890 rm -f conftest.$ac_objext
15891 if { (ac_try="$ac_compile"
15892 case "(($ac_try" in
15893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15894 *) ac_try_echo=$ac_try;;
15895 esac
15896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15897 (eval "$ac_compile") 2>conftest.er1
15898 ac_status=$?
15899 grep -v '^ *+' conftest.er1 >conftest.err
15900 rm -f conftest.er1
15901 cat conftest.err >&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } && {
15904 test -z "$ac_c_werror_flag" ||
15905 test ! -s conftest.err
15906 } && test -s conftest.$ac_objext; then
15907 ac_lo=0 ac_mid=0
15908 while :; do
15909 cat >conftest.$ac_ext <<_ACEOF
15910 /* confdefs.h. */
15911 _ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h. */
15915 $ac_includes_default
15916 typedef unsigned short int ac__type_sizeof_;
15917 int
15918 main ()
15919 {
15920 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15921 test_array [0] = 0
15922
15923 ;
15924 return 0;
15925 }
15926 _ACEOF
15927 rm -f conftest.$ac_objext
15928 if { (ac_try="$ac_compile"
15929 case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15932 esac
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_compile") 2>conftest.er1
15935 ac_status=$?
15936 grep -v '^ *+' conftest.er1 >conftest.err
15937 rm -f conftest.er1
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } && {
15941 test -z "$ac_c_werror_flag" ||
15942 test ! -s conftest.err
15943 } && test -s conftest.$ac_objext; then
15944 ac_hi=$ac_mid; break
15945 else
15946 echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15948
15949 ac_lo=`expr $ac_mid + 1`
15950 if test $ac_lo -le $ac_mid; then
15951 ac_lo= ac_hi=
15952 break
15953 fi
15954 ac_mid=`expr 2 '*' $ac_mid + 1`
15955 fi
15956
15957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15958 done
15959 else
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15962
15963 cat >conftest.$ac_ext <<_ACEOF
15964 /* confdefs.h. */
15965 _ACEOF
15966 cat confdefs.h >>conftest.$ac_ext
15967 cat >>conftest.$ac_ext <<_ACEOF
15968 /* end confdefs.h. */
15969 $ac_includes_default
15970 typedef unsigned short int ac__type_sizeof_;
15971 int
15972 main ()
15973 {
15974 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15975 test_array [0] = 0
15976
15977 ;
15978 return 0;
15979 }
15980 _ACEOF
15981 rm -f conftest.$ac_objext
15982 if { (ac_try="$ac_compile"
15983 case "(($ac_try" in
15984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985 *) ac_try_echo=$ac_try;;
15986 esac
15987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15988 (eval "$ac_compile") 2>conftest.er1
15989 ac_status=$?
15990 grep -v '^ *+' conftest.er1 >conftest.err
15991 rm -f conftest.er1
15992 cat conftest.err >&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); } && {
15995 test -z "$ac_c_werror_flag" ||
15996 test ! -s conftest.err
15997 } && test -s conftest.$ac_objext; then
15998 ac_hi=-1 ac_mid=-1
15999 while :; do
16000 cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h. */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16006 $ac_includes_default
16007 typedef unsigned short int ac__type_sizeof_;
16008 int
16009 main ()
16010 {
16011 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
16012 test_array [0] = 0
16013
16014 ;
16015 return 0;
16016 }
16017 _ACEOF
16018 rm -f conftest.$ac_objext
16019 if { (ac_try="$ac_compile"
16020 case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16023 esac
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_compile") 2>conftest.er1
16026 ac_status=$?
16027 grep -v '^ *+' conftest.er1 >conftest.err
16028 rm -f conftest.er1
16029 cat conftest.err >&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } && {
16032 test -z "$ac_c_werror_flag" ||
16033 test ! -s conftest.err
16034 } && test -s conftest.$ac_objext; then
16035 ac_lo=$ac_mid; break
16036 else
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16039
16040 ac_hi=`expr '(' $ac_mid ')' - 1`
16041 if test $ac_mid -le $ac_hi; then
16042 ac_lo= ac_hi=
16043 break
16044 fi
16045 ac_mid=`expr 2 '*' $ac_mid`
16046 fi
16047
16048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16049 done
16050 else
16051 echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16053
16054 ac_lo= ac_hi=
16055 fi
16056
16057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16058 fi
16059
16060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061 # Binary search between lo and hi bounds.
16062 while test "x$ac_lo" != "x$ac_hi"; do
16063 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16064 cat >conftest.$ac_ext <<_ACEOF
16065 /* confdefs.h. */
16066 _ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16070 $ac_includes_default
16071 typedef unsigned short int ac__type_sizeof_;
16072 int
16073 main ()
16074 {
16075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16076 test_array [0] = 0
16077
16078 ;
16079 return 0;
16080 }
16081 _ACEOF
16082 rm -f conftest.$ac_objext
16083 if { (ac_try="$ac_compile"
16084 case "(($ac_try" in
16085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086 *) ac_try_echo=$ac_try;;
16087 esac
16088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16089 (eval "$ac_compile") 2>conftest.er1
16090 ac_status=$?
16091 grep -v '^ *+' conftest.er1 >conftest.err
16092 rm -f conftest.er1
16093 cat conftest.err >&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } && {
16096 test -z "$ac_c_werror_flag" ||
16097 test ! -s conftest.err
16098 } && test -s conftest.$ac_objext; then
16099 ac_hi=$ac_mid
16100 else
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16103
16104 ac_lo=`expr '(' $ac_mid ')' + 1`
16105 fi
16106
16107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16108 done
16109 case $ac_lo in
16110 ?*) ac_cv_sizeof_unsigned_short_int=$ac_lo;;
16111 '') if test "$ac_cv_type_unsigned_short_int" = yes; then
16112 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int)
16113 See \`config.log' for more details." >&5
16114 echo "$as_me: error: cannot compute sizeof (unsigned short int)
16115 See \`config.log' for more details." >&2;}
16116 { (exit 77); exit 77; }; }
16117 else
16118 ac_cv_sizeof_unsigned_short_int=0
16119 fi ;;
16120 esac
16121 else
16122 cat >conftest.$ac_ext <<_ACEOF
16123 /* confdefs.h. */
16124 _ACEOF
16125 cat confdefs.h >>conftest.$ac_ext
16126 cat >>conftest.$ac_ext <<_ACEOF
16127 /* end confdefs.h. */
16128 $ac_includes_default
16129 typedef unsigned short int ac__type_sizeof_;
16130 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16131 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16132 #include <stdio.h>
16133 #include <stdlib.h>
16134 int
16135 main ()
16136 {
16137
16138 FILE *f = fopen ("conftest.val", "w");
16139 if (! f)
16140 return 1;
16141 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16142 {
16143 long int i = longval ();
16144 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16145 return 1;
16146 fprintf (f, "%ld\n", i);
16147 }
16148 else
16149 {
16150 unsigned long int i = ulongval ();
16151 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16152 return 1;
16153 fprintf (f, "%lu\n", i);
16154 }
16155 return ferror (f) || fclose (f) != 0;
16156
16157 ;
16158 return 0;
16159 }
16160 _ACEOF
16161 rm -f conftest$ac_exeext
16162 if { (ac_try="$ac_link"
16163 case "(($ac_try" in
16164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165 *) ac_try_echo=$ac_try;;
16166 esac
16167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16168 (eval "$ac_link") 2>&5
16169 ac_status=$?
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16172 { (case "(($ac_try" in
16173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16175 esac
16176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177 (eval "$ac_try") 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }; then
16181 ac_cv_sizeof_unsigned_short_int=`cat conftest.val`
16182 else
16183 echo "$as_me: program exited with status $ac_status" >&5
16184 echo "$as_me: failed program was:" >&5
16185 sed 's/^/| /' conftest.$ac_ext >&5
16186
16187 ( exit $ac_status )
16188 if test "$ac_cv_type_unsigned_short_int" = yes; then
16189 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int)
16190 See \`config.log' for more details." >&5
16191 echo "$as_me: error: cannot compute sizeof (unsigned short int)
16192 See \`config.log' for more details." >&2;}
16193 { (exit 77); exit 77; }; }
16194 else
16195 ac_cv_sizeof_unsigned_short_int=0
16196 fi
16197 fi
16198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16199 fi
16200 rm -f conftest.val
16201 fi
16202 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
16203 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
16204
16205
16206
16207 cat >>confdefs.h <<_ACEOF
16208 #define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
16209 _ACEOF
16210
16211
16212 { echo "$as_me:$LINENO: checking for unsigned char" >&5
16213 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; }
16214 if test "${ac_cv_type_unsigned_char+set}" = set; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16216 else
16217 cat >conftest.$ac_ext <<_ACEOF
16218 /* confdefs.h. */
16219 _ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h. */
16223 $ac_includes_default
16224 typedef unsigned char ac__type_new_;
16225 int
16226 main ()
16227 {
16228 if ((ac__type_new_ *) 0)
16229 return 0;
16230 if (sizeof (ac__type_new_))
16231 return 0;
16232 ;
16233 return 0;
16234 }
16235 _ACEOF
16236 rm -f conftest.$ac_objext
16237 if { (ac_try="$ac_compile"
16238 case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16241 esac
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_compile") 2>conftest.er1
16244 ac_status=$?
16245 grep -v '^ *+' conftest.er1 >conftest.err
16246 rm -f conftest.er1
16247 cat conftest.err >&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } && {
16250 test -z "$ac_c_werror_flag" ||
16251 test ! -s conftest.err
16252 } && test -s conftest.$ac_objext; then
16253 ac_cv_type_unsigned_char=yes
16254 else
16255 echo "$as_me: failed program was:" >&5
16256 sed 's/^/| /' conftest.$ac_ext >&5
16257
16258 ac_cv_type_unsigned_char=no
16259 fi
16260
16261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16262 fi
16263 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
16264 echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6; }
16265
16266 # The cast to long int works around a bug in the HP C Compiler
16267 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16268 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16269 # This bug is HP SR number 8606223364.
16270 { echo "$as_me:$LINENO: checking size of unsigned char" >&5
16271 echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6; }
16272 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 else
16275 if test "$cross_compiling" = yes; then
16276 # Depending upon the size, compute the lo and hi bounds.
16277 cat >conftest.$ac_ext <<_ACEOF
16278 /* confdefs.h. */
16279 _ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16283 $ac_includes_default
16284 typedef unsigned char ac__type_sizeof_;
16285 int
16286 main ()
16287 {
16288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
16289 test_array [0] = 0
16290
16291 ;
16292 return 0;
16293 }
16294 _ACEOF
16295 rm -f conftest.$ac_objext
16296 if { (ac_try="$ac_compile"
16297 case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16300 esac
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_compile") 2>conftest.er1
16303 ac_status=$?
16304 grep -v '^ *+' conftest.er1 >conftest.err
16305 rm -f conftest.er1
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } && {
16309 test -z "$ac_c_werror_flag" ||
16310 test ! -s conftest.err
16311 } && test -s conftest.$ac_objext; then
16312 ac_lo=0 ac_mid=0
16313 while :; do
16314 cat >conftest.$ac_ext <<_ACEOF
16315 /* confdefs.h. */
16316 _ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h. */
16320 $ac_includes_default
16321 typedef unsigned char ac__type_sizeof_;
16322 int
16323 main ()
16324 {
16325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16326 test_array [0] = 0
16327
16328 ;
16329 return 0;
16330 }
16331 _ACEOF
16332 rm -f conftest.$ac_objext
16333 if { (ac_try="$ac_compile"
16334 case "(($ac_try" in
16335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336 *) ac_try_echo=$ac_try;;
16337 esac
16338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16339 (eval "$ac_compile") 2>conftest.er1
16340 ac_status=$?
16341 grep -v '^ *+' conftest.er1 >conftest.err
16342 rm -f conftest.er1
16343 cat conftest.err >&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } && {
16346 test -z "$ac_c_werror_flag" ||
16347 test ! -s conftest.err
16348 } && test -s conftest.$ac_objext; then
16349 ac_hi=$ac_mid; break
16350 else
16351 echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16353
16354 ac_lo=`expr $ac_mid + 1`
16355 if test $ac_lo -le $ac_mid; then
16356 ac_lo= ac_hi=
16357 break
16358 fi
16359 ac_mid=`expr 2 '*' $ac_mid + 1`
16360 fi
16361
16362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16363 done
16364 else
16365 echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16367
16368 cat >conftest.$ac_ext <<_ACEOF
16369 /* confdefs.h. */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16374 $ac_includes_default
16375 typedef unsigned char ac__type_sizeof_;
16376 int
16377 main ()
16378 {
16379 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
16380 test_array [0] = 0
16381
16382 ;
16383 return 0;
16384 }
16385 _ACEOF
16386 rm -f conftest.$ac_objext
16387 if { (ac_try="$ac_compile"
16388 case "(($ac_try" in
16389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390 *) ac_try_echo=$ac_try;;
16391 esac
16392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393 (eval "$ac_compile") 2>conftest.er1
16394 ac_status=$?
16395 grep -v '^ *+' conftest.er1 >conftest.err
16396 rm -f conftest.er1
16397 cat conftest.err >&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } && {
16400 test -z "$ac_c_werror_flag" ||
16401 test ! -s conftest.err
16402 } && test -s conftest.$ac_objext; then
16403 ac_hi=-1 ac_mid=-1
16404 while :; do
16405 cat >conftest.$ac_ext <<_ACEOF
16406 /* confdefs.h. */
16407 _ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h. */
16411 $ac_includes_default
16412 typedef unsigned char ac__type_sizeof_;
16413 int
16414 main ()
16415 {
16416 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
16417 test_array [0] = 0
16418
16419 ;
16420 return 0;
16421 }
16422 _ACEOF
16423 rm -f conftest.$ac_objext
16424 if { (ac_try="$ac_compile"
16425 case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16428 esac
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_compile") 2>conftest.er1
16431 ac_status=$?
16432 grep -v '^ *+' conftest.er1 >conftest.err
16433 rm -f conftest.er1
16434 cat conftest.err >&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } && {
16437 test -z "$ac_c_werror_flag" ||
16438 test ! -s conftest.err
16439 } && test -s conftest.$ac_objext; then
16440 ac_lo=$ac_mid; break
16441 else
16442 echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16444
16445 ac_hi=`expr '(' $ac_mid ')' - 1`
16446 if test $ac_mid -le $ac_hi; then
16447 ac_lo= ac_hi=
16448 break
16449 fi
16450 ac_mid=`expr 2 '*' $ac_mid`
16451 fi
16452
16453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16454 done
16455 else
16456 echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16458
16459 ac_lo= ac_hi=
16460 fi
16461
16462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16463 fi
16464
16465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16466 # Binary search between lo and hi bounds.
16467 while test "x$ac_lo" != "x$ac_hi"; do
16468 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16469 cat >conftest.$ac_ext <<_ACEOF
16470 /* confdefs.h. */
16471 _ACEOF
16472 cat confdefs.h >>conftest.$ac_ext
16473 cat >>conftest.$ac_ext <<_ACEOF
16474 /* end confdefs.h. */
16475 $ac_includes_default
16476 typedef unsigned char ac__type_sizeof_;
16477 int
16478 main ()
16479 {
16480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16481 test_array [0] = 0
16482
16483 ;
16484 return 0;
16485 }
16486 _ACEOF
16487 rm -f conftest.$ac_objext
16488 if { (ac_try="$ac_compile"
16489 case "(($ac_try" in
16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491 *) ac_try_echo=$ac_try;;
16492 esac
16493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494 (eval "$ac_compile") 2>conftest.er1
16495 ac_status=$?
16496 grep -v '^ *+' conftest.er1 >conftest.err
16497 rm -f conftest.er1
16498 cat conftest.err >&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); } && {
16501 test -z "$ac_c_werror_flag" ||
16502 test ! -s conftest.err
16503 } && test -s conftest.$ac_objext; then
16504 ac_hi=$ac_mid
16505 else
16506 echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16508
16509 ac_lo=`expr '(' $ac_mid ')' + 1`
16510 fi
16511
16512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16513 done
16514 case $ac_lo in
16515 ?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
16516 '') if test "$ac_cv_type_unsigned_char" = yes; then
16517 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
16518 See \`config.log' for more details." >&5
16519 echo "$as_me: error: cannot compute sizeof (unsigned char)
16520 See \`config.log' for more details." >&2;}
16521 { (exit 77); exit 77; }; }
16522 else
16523 ac_cv_sizeof_unsigned_char=0
16524 fi ;;
16525 esac
16526 else
16527 cat >conftest.$ac_ext <<_ACEOF
16528 /* confdefs.h. */
16529 _ACEOF
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h. */
16533 $ac_includes_default
16534 typedef unsigned char ac__type_sizeof_;
16535 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16536 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16537 #include <stdio.h>
16538 #include <stdlib.h>
16539 int
16540 main ()
16541 {
16542
16543 FILE *f = fopen ("conftest.val", "w");
16544 if (! f)
16545 return 1;
16546 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16547 {
16548 long int i = longval ();
16549 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16550 return 1;
16551 fprintf (f, "%ld\n", i);
16552 }
16553 else
16554 {
16555 unsigned long int i = ulongval ();
16556 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16557 return 1;
16558 fprintf (f, "%lu\n", i);
16559 }
16560 return ferror (f) || fclose (f) != 0;
16561
16562 ;
16563 return 0;
16564 }
16565 _ACEOF
16566 rm -f conftest$ac_exeext
16567 if { (ac_try="$ac_link"
16568 case "(($ac_try" in
16569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570 *) ac_try_echo=$ac_try;;
16571 esac
16572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573 (eval "$ac_link") 2>&5
16574 ac_status=$?
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16577 { (case "(($ac_try" in
16578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579 *) ac_try_echo=$ac_try;;
16580 esac
16581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16582 (eval "$ac_try") 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 ac_cv_sizeof_unsigned_char=`cat conftest.val`
16587 else
16588 echo "$as_me: program exited with status $ac_status" >&5
16589 echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16591
16592 ( exit $ac_status )
16593 if test "$ac_cv_type_unsigned_char" = yes; then
16594 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
16595 See \`config.log' for more details." >&5
16596 echo "$as_me: error: cannot compute sizeof (unsigned char)
16597 See \`config.log' for more details." >&2;}
16598 { (exit 77); exit 77; }; }
16599 else
16600 ac_cv_sizeof_unsigned_char=0
16601 fi
16602 fi
16603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16604 fi
16605 rm -f conftest.val
16606 fi
16607 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
16608 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
16609
16610
16611
16612 cat >>confdefs.h <<_ACEOF
16613 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
16614 _ACEOF
16615
16616
16617
16618 { echo "$as_me:$LINENO: checking for off_t" >&5
16619 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
16620 if test "${ac_cv_type_off_t+set}" = set; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
16622 else
16623 cat >conftest.$ac_ext <<_ACEOF
16624 /* confdefs.h. */
16625 _ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h. */
16629 $ac_includes_default
16630 typedef off_t ac__type_new_;
16631 int
16632 main ()
16633 {
16634 if ((ac__type_new_ *) 0)
16635 return 0;
16636 if (sizeof (ac__type_new_))
16637 return 0;
16638 ;
16639 return 0;
16640 }
16641 _ACEOF
16642 rm -f conftest.$ac_objext
16643 if { (ac_try="$ac_compile"
16644 case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16647 esac
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_compile") 2>conftest.er1
16650 ac_status=$?
16651 grep -v '^ *+' conftest.er1 >conftest.err
16652 rm -f conftest.er1
16653 cat conftest.err >&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } && {
16656 test -z "$ac_c_werror_flag" ||
16657 test ! -s conftest.err
16658 } && test -s conftest.$ac_objext; then
16659 ac_cv_type_off_t=yes
16660 else
16661 echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16663
16664 ac_cv_type_off_t=no
16665 fi
16666
16667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16668 fi
16669 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16670 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
16671 if test $ac_cv_type_off_t = yes; then
16672
16673 cat >>confdefs.h <<\_ACEOF
16674 #define HAVE_OFF_T 1
16675 _ACEOF
16676
16677 fi
16678
16679
16680 # Check whether --enable-largefile was given.
16681 if test "${enable_largefile+set}" = set; then
16682 enableval=$enable_largefile;
16683 fi
16684
16685 if test "$enable_largefile" != no; then
16686
16687 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16688 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
16689 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16691 else
16692 ac_cv_sys_largefile_CC=no
16693 if test "$GCC" != yes; then
16694 ac_save_CC=$CC
16695 while :; do
16696 # IRIX 6.2 and later do not support large files by default,
16697 # so use the C compiler's -n32 option if that helps.
16698 cat >conftest.$ac_ext <<_ACEOF
16699 /* confdefs.h. */
16700 _ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h. */
16704 #include <sys/types.h>
16705 /* Check that off_t can represent 2**63 - 1 correctly.
16706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16707 since some C++ compilers masquerading as C compilers
16708 incorrectly reject 9223372036854775807. */
16709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16711 && LARGE_OFF_T % 2147483647 == 1)
16712 ? 1 : -1];
16713 int
16714 main ()
16715 {
16716
16717 ;
16718 return 0;
16719 }
16720 _ACEOF
16721 rm -f conftest.$ac_objext
16722 if { (ac_try="$ac_compile"
16723 case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16726 esac
16727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728 (eval "$ac_compile") 2>conftest.er1
16729 ac_status=$?
16730 grep -v '^ *+' conftest.er1 >conftest.err
16731 rm -f conftest.er1
16732 cat conftest.err >&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } && {
16735 test -z "$ac_c_werror_flag" ||
16736 test ! -s conftest.err
16737 } && test -s conftest.$ac_objext; then
16738 break
16739 else
16740 echo "$as_me: failed program was:" >&5
16741 sed 's/^/| /' conftest.$ac_ext >&5
16742
16743
16744 fi
16745
16746 rm -f core conftest.err conftest.$ac_objext
16747 CC="$CC -n32"
16748 rm -f conftest.$ac_objext
16749 if { (ac_try="$ac_compile"
16750 case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16753 esac
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755 (eval "$ac_compile") 2>conftest.er1
16756 ac_status=$?
16757 grep -v '^ *+' conftest.er1 >conftest.err
16758 rm -f conftest.er1
16759 cat conftest.err >&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } && {
16762 test -z "$ac_c_werror_flag" ||
16763 test ! -s conftest.err
16764 } && test -s conftest.$ac_objext; then
16765 ac_cv_sys_largefile_CC=' -n32'; break
16766 else
16767 echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16769
16770
16771 fi
16772
16773 rm -f core conftest.err conftest.$ac_objext
16774 break
16775 done
16776 CC=$ac_save_CC
16777 rm -f conftest.$ac_ext
16778 fi
16779 fi
16780 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16781 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
16782 if test "$ac_cv_sys_largefile_CC" != no; then
16783 CC=$CC$ac_cv_sys_largefile_CC
16784 fi
16785
16786 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16787 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
16788 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16789 echo $ECHO_N "(cached) $ECHO_C" >&6
16790 else
16791 while :; do
16792 cat >conftest.$ac_ext <<_ACEOF
16793 /* confdefs.h. */
16794 _ACEOF
16795 cat confdefs.h >>conftest.$ac_ext
16796 cat >>conftest.$ac_ext <<_ACEOF
16797 /* end confdefs.h. */
16798 #include <sys/types.h>
16799 /* Check that off_t can represent 2**63 - 1 correctly.
16800 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16801 since some C++ compilers masquerading as C compilers
16802 incorrectly reject 9223372036854775807. */
16803 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16804 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16805 && LARGE_OFF_T % 2147483647 == 1)
16806 ? 1 : -1];
16807 int
16808 main ()
16809 {
16810
16811 ;
16812 return 0;
16813 }
16814 _ACEOF
16815 rm -f conftest.$ac_objext
16816 if { (ac_try="$ac_compile"
16817 case "(($ac_try" in
16818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819 *) ac_try_echo=$ac_try;;
16820 esac
16821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822 (eval "$ac_compile") 2>conftest.er1
16823 ac_status=$?
16824 grep -v '^ *+' conftest.er1 >conftest.err
16825 rm -f conftest.er1
16826 cat conftest.err >&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); } && {
16829 test -z "$ac_c_werror_flag" ||
16830 test ! -s conftest.err
16831 } && test -s conftest.$ac_objext; then
16832 ac_cv_sys_file_offset_bits=no; break
16833 else
16834 echo "$as_me: failed program was:" >&5
16835 sed 's/^/| /' conftest.$ac_ext >&5
16836
16837
16838 fi
16839
16840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16841 cat >conftest.$ac_ext <<_ACEOF
16842 /* confdefs.h. */
16843 _ACEOF
16844 cat confdefs.h >>conftest.$ac_ext
16845 cat >>conftest.$ac_ext <<_ACEOF
16846 /* end confdefs.h. */
16847 #define _FILE_OFFSET_BITS 64
16848 #include <sys/types.h>
16849 /* Check that off_t can represent 2**63 - 1 correctly.
16850 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16851 since some C++ compilers masquerading as C compilers
16852 incorrectly reject 9223372036854775807. */
16853 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16854 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16855 && LARGE_OFF_T % 2147483647 == 1)
16856 ? 1 : -1];
16857 int
16858 main ()
16859 {
16860
16861 ;
16862 return 0;
16863 }
16864 _ACEOF
16865 rm -f conftest.$ac_objext
16866 if { (ac_try="$ac_compile"
16867 case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16870 esac
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_compile") 2>conftest.er1
16873 ac_status=$?
16874 grep -v '^ *+' conftest.er1 >conftest.err
16875 rm -f conftest.er1
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } && {
16879 test -z "$ac_c_werror_flag" ||
16880 test ! -s conftest.err
16881 } && test -s conftest.$ac_objext; then
16882 ac_cv_sys_file_offset_bits=64; break
16883 else
16884 echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16886
16887
16888 fi
16889
16890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16891 ac_cv_sys_file_offset_bits=unknown
16892 break
16893 done
16894 fi
16895 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16896 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
16897 case $ac_cv_sys_file_offset_bits in #(
16898 no | unknown) ;;
16899 *)
16900 cat >>confdefs.h <<_ACEOF
16901 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16902 _ACEOF
16903 ;;
16904 esac
16905 rm -f conftest*
16906 if test $ac_cv_sys_file_offset_bits = unknown; then
16907 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16908 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
16909 if test "${ac_cv_sys_large_files+set}" = set; then
16910 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 else
16912 while :; do
16913 cat >conftest.$ac_ext <<_ACEOF
16914 /* confdefs.h. */
16915 _ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h. */
16919 #include <sys/types.h>
16920 /* Check that off_t can represent 2**63 - 1 correctly.
16921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16922 since some C++ compilers masquerading as C compilers
16923 incorrectly reject 9223372036854775807. */
16924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16926 && LARGE_OFF_T % 2147483647 == 1)
16927 ? 1 : -1];
16928 int
16929 main ()
16930 {
16931
16932 ;
16933 return 0;
16934 }
16935 _ACEOF
16936 rm -f conftest.$ac_objext
16937 if { (ac_try="$ac_compile"
16938 case "(($ac_try" in
16939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940 *) ac_try_echo=$ac_try;;
16941 esac
16942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943 (eval "$ac_compile") 2>conftest.er1
16944 ac_status=$?
16945 grep -v '^ *+' conftest.er1 >conftest.err
16946 rm -f conftest.er1
16947 cat conftest.err >&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } && {
16950 test -z "$ac_c_werror_flag" ||
16951 test ! -s conftest.err
16952 } && test -s conftest.$ac_objext; then
16953 ac_cv_sys_large_files=no; break
16954 else
16955 echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16957
16958
16959 fi
16960
16961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16962 cat >conftest.$ac_ext <<_ACEOF
16963 /* confdefs.h. */
16964 _ACEOF
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h. */
16968 #define _LARGE_FILES 1
16969 #include <sys/types.h>
16970 /* Check that off_t can represent 2**63 - 1 correctly.
16971 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16972 since some C++ compilers masquerading as C compilers
16973 incorrectly reject 9223372036854775807. */
16974 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16975 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16976 && LARGE_OFF_T % 2147483647 == 1)
16977 ? 1 : -1];
16978 int
16979 main ()
16980 {
16981
16982 ;
16983 return 0;
16984 }
16985 _ACEOF
16986 rm -f conftest.$ac_objext
16987 if { (ac_try="$ac_compile"
16988 case "(($ac_try" in
16989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990 *) ac_try_echo=$ac_try;;
16991 esac
16992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993 (eval "$ac_compile") 2>conftest.er1
16994 ac_status=$?
16995 grep -v '^ *+' conftest.er1 >conftest.err
16996 rm -f conftest.er1
16997 cat conftest.err >&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); } && {
17000 test -z "$ac_c_werror_flag" ||
17001 test ! -s conftest.err
17002 } && test -s conftest.$ac_objext; then
17003 ac_cv_sys_large_files=1; break
17004 else
17005 echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17007
17008
17009 fi
17010
17011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17012 ac_cv_sys_large_files=unknown
17013 break
17014 done
17015 fi
17016 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17017 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
17018 case $ac_cv_sys_large_files in #(
17019 no | unknown) ;;
17020 *)
17021 cat >>confdefs.h <<_ACEOF
17022 #define _LARGE_FILES $ac_cv_sys_large_files
17023 _ACEOF
17024 ;;
17025 esac
17026 rm -f conftest*
17027 fi
17028 fi
17029
17030
17031 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
17032 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
17033 if test "${ac_cv_header_stdc+set}" = set; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17035 else
17036 cat >conftest.$ac_ext <<_ACEOF
17037 /* confdefs.h. */
17038 _ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17042 #include <stdlib.h>
17043 #include <stdarg.h>
17044 #include <string.h>
17045 #include <float.h>
17046
17047 int
17048 main ()
17049 {
17050
17051 ;
17052 return 0;
17053 }
17054 _ACEOF
17055 rm -f conftest.$ac_objext
17056 if { (ac_try="$ac_compile"
17057 case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17060 esac
17061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062 (eval "$ac_compile") 2>conftest.er1
17063 ac_status=$?
17064 grep -v '^ *+' conftest.er1 >conftest.err
17065 rm -f conftest.er1
17066 cat conftest.err >&5
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); } && {
17069 test -z "$ac_c_werror_flag" ||
17070 test ! -s conftest.err
17071 } && test -s conftest.$ac_objext; then
17072 ac_cv_header_stdc=yes
17073 else
17074 echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17076
17077 ac_cv_header_stdc=no
17078 fi
17079
17080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17081
17082 if test $ac_cv_header_stdc = yes; then
17083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17084 cat >conftest.$ac_ext <<_ACEOF
17085 /* confdefs.h. */
17086 _ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h. */
17090 #include <string.h>
17091
17092 _ACEOF
17093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17094 $EGREP "memchr" >/dev/null 2>&1; then
17095 :
17096 else
17097 ac_cv_header_stdc=no
17098 fi
17099 rm -f conftest*
17100
17101 fi
17102
17103 if test $ac_cv_header_stdc = yes; then
17104 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17105 cat >conftest.$ac_ext <<_ACEOF
17106 /* confdefs.h. */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17111 #include <stdlib.h>
17112
17113 _ACEOF
17114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17115 $EGREP "free" >/dev/null 2>&1; then
17116 :
17117 else
17118 ac_cv_header_stdc=no
17119 fi
17120 rm -f conftest*
17121
17122 fi
17123
17124 if test $ac_cv_header_stdc = yes; then
17125 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17126 if test "$cross_compiling" = yes; then
17127 :
17128 else
17129 cat >conftest.$ac_ext <<_ACEOF
17130 /* confdefs.h. */
17131 _ACEOF
17132 cat confdefs.h >>conftest.$ac_ext
17133 cat >>conftest.$ac_ext <<_ACEOF
17134 /* end confdefs.h. */
17135 #include <ctype.h>
17136 #include <stdlib.h>
17137 #if ((' ' & 0x0FF) == 0x020)
17138 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17139 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17140 #else
17141 # define ISLOWER(c) \
17142 (('a' <= (c) && (c) <= 'i') \
17143 || ('j' <= (c) && (c) <= 'r') \
17144 || ('s' <= (c) && (c) <= 'z'))
17145 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17146 #endif
17147
17148 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17149 int
17150 main ()
17151 {
17152 int i;
17153 for (i = 0; i < 256; i++)
17154 if (XOR (islower (i), ISLOWER (i))
17155 || toupper (i) != TOUPPER (i))
17156 return 2;
17157 return 0;
17158 }
17159 _ACEOF
17160 rm -f conftest$ac_exeext
17161 if { (ac_try="$ac_link"
17162 case "(($ac_try" in
17163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164 *) ac_try_echo=$ac_try;;
17165 esac
17166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167 (eval "$ac_link") 2>&5
17168 ac_status=$?
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17171 { (case "(($ac_try" in
17172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17174 esac
17175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176 (eval "$ac_try") 2>&5
17177 ac_status=$?
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; }; then
17180 :
17181 else
17182 echo "$as_me: program exited with status $ac_status" >&5
17183 echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17185
17186 ( exit $ac_status )
17187 ac_cv_header_stdc=no
17188 fi
17189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17190 fi
17191
17192
17193 fi
17194 fi
17195 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
17196 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
17197 if test $ac_cv_header_stdc = yes; then
17198
17199 cat >>confdefs.h <<\_ACEOF
17200 #define STDC_HEADERS 1
17201 _ACEOF
17202
17203 fi
17204
17205
17206
17207
17208
17209
17210
17211 for ac_header in unistd.h pwd.h locale.h strings.h mcrypt.h ctype.h
17212 do
17213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17219 fi
17220 ac_res=`eval echo '${'$as_ac_Header'}'`
17221 { echo "$as_me:$LINENO: result: $ac_res" >&5
17222 echo "${ECHO_T}$ac_res" >&6; }
17223 else
17224 # Is the header compilable?
17225 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17227 cat >conftest.$ac_ext <<_ACEOF
17228 /* confdefs.h. */
17229 _ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17233 $ac_includes_default
17234 #include <$ac_header>
17235 _ACEOF
17236 rm -f conftest.$ac_objext
17237 if { (ac_try="$ac_compile"
17238 case "(($ac_try" in
17239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240 *) ac_try_echo=$ac_try;;
17241 esac
17242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_compile") 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } && {
17250 test -z "$ac_c_werror_flag" ||
17251 test ! -s conftest.err
17252 } && test -s conftest.$ac_objext; then
17253 ac_header_compiler=yes
17254 else
17255 echo "$as_me: failed program was:" >&5
17256 sed 's/^/| /' conftest.$ac_ext >&5
17257
17258 ac_header_compiler=no
17259 fi
17260
17261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17263 echo "${ECHO_T}$ac_header_compiler" >&6; }
17264
17265 # Is the header present?
17266 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17268 cat >conftest.$ac_ext <<_ACEOF
17269 /* confdefs.h. */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h. */
17274 #include <$ac_header>
17275 _ACEOF
17276 if { (ac_try="$ac_cpp conftest.$ac_ext"
17277 case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17280 esac
17281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17283 ac_status=$?
17284 grep -v '^ *+' conftest.er1 >conftest.err
17285 rm -f conftest.er1
17286 cat conftest.err >&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } >/dev/null && {
17289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17290 test ! -s conftest.err
17291 }; then
17292 ac_header_preproc=yes
17293 else
17294 echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17296
17297 ac_header_preproc=no
17298 fi
17299
17300 rm -f conftest.err conftest.$ac_ext
17301 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17302 echo "${ECHO_T}$ac_header_preproc" >&6; }
17303
17304 # So? What about this header?
17305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17306 yes:no: )
17307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17311 ac_header_preproc=yes
17312 ;;
17313 no:yes:* )
17314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17321 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17326
17327 ;;
17328 esac
17329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17332 echo $ECHO_N "(cached) $ECHO_C" >&6
17333 else
17334 eval "$as_ac_Header=\$ac_header_preproc"
17335 fi
17336 ac_res=`eval echo '${'$as_ac_Header'}'`
17337 { echo "$as_me:$LINENO: result: $ac_res" >&5
17338 echo "${ECHO_T}$ac_res" >&6; }
17339
17340 fi
17341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17342 cat >>confdefs.h <<_ACEOF
17343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17344 _ACEOF
17345
17346 fi
17347
17348 done
17349
17350
17351
17352
17353
17354 for ac_header in sys/stat.h sys/types.h fcntl.h sys/wait.h
17355 do
17356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 fi
17363 ac_res=`eval echo '${'$as_ac_Header'}'`
17364 { echo "$as_me:$LINENO: result: $ac_res" >&5
17365 echo "${ECHO_T}$ac_res" >&6; }
17366 else
17367 # Is the header compilable?
17368 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17370 cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h. */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 $ac_includes_default
17377 #include <$ac_header>
17378 _ACEOF
17379 rm -f conftest.$ac_objext
17380 if { (ac_try="$ac_compile"
17381 case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17384 esac
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_compile") 2>conftest.er1
17387 ac_status=$?
17388 grep -v '^ *+' conftest.er1 >conftest.err
17389 rm -f conftest.er1
17390 cat conftest.err >&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } && {
17393 test -z "$ac_c_werror_flag" ||
17394 test ! -s conftest.err
17395 } && test -s conftest.$ac_objext; then
17396 ac_header_compiler=yes
17397 else
17398 echo "$as_me: failed program was:" >&5
17399 sed 's/^/| /' conftest.$ac_ext >&5
17400
17401 ac_header_compiler=no
17402 fi
17403
17404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17406 echo "${ECHO_T}$ac_header_compiler" >&6; }
17407
17408 # Is the header present?
17409 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17411 cat >conftest.$ac_ext <<_ACEOF
17412 /* confdefs.h. */
17413 _ACEOF
17414 cat confdefs.h >>conftest.$ac_ext
17415 cat >>conftest.$ac_ext <<_ACEOF
17416 /* end confdefs.h. */
17417 #include <$ac_header>
17418 _ACEOF
17419 if { (ac_try="$ac_cpp conftest.$ac_ext"
17420 case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17423 esac
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17426 ac_status=$?
17427 grep -v '^ *+' conftest.er1 >conftest.err
17428 rm -f conftest.er1
17429 cat conftest.err >&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } >/dev/null && {
17432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17433 test ! -s conftest.err
17434 }; then
17435 ac_header_preproc=yes
17436 else
17437 echo "$as_me: failed program was:" >&5
17438 sed 's/^/| /' conftest.$ac_ext >&5
17439
17440 ac_header_preproc=no
17441 fi
17442
17443 rm -f conftest.err conftest.$ac_ext
17444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17445 echo "${ECHO_T}$ac_header_preproc" >&6; }
17446
17447 # So? What about this header?
17448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17449 yes:no: )
17450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17454 ac_header_preproc=yes
17455 ;;
17456 no:yes:* )
17457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17469
17470 ;;
17471 esac
17472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17475 echo $ECHO_N "(cached) $ECHO_C" >&6
17476 else
17477 eval "$as_ac_Header=\$ac_header_preproc"
17478 fi
17479 ac_res=`eval echo '${'$as_ac_Header'}'`
17480 { echo "$as_me:$LINENO: result: $ac_res" >&5
17481 echo "${ECHO_T}$ac_res" >&6; }
17482
17483 fi
17484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17485 cat >>confdefs.h <<_ACEOF
17486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17487 _ACEOF
17488
17489 fi
17490
17491 done
17492
17493
17494
17495 for ac_header in utime.h signal.h
17496 do
17497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17502 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 fi
17504 ac_res=`eval echo '${'$as_ac_Header'}'`
17505 { echo "$as_me:$LINENO: result: $ac_res" >&5
17506 echo "${ECHO_T}$ac_res" >&6; }
17507 else
17508 # Is the header compilable?
17509 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17511 cat >conftest.$ac_ext <<_ACEOF
17512 /* confdefs.h. */
17513 _ACEOF
17514 cat confdefs.h >>conftest.$ac_ext
17515 cat >>conftest.$ac_ext <<_ACEOF
17516 /* end confdefs.h. */
17517 $ac_includes_default
17518 #include <$ac_header>
17519 _ACEOF
17520 rm -f conftest.$ac_objext
17521 if { (ac_try="$ac_compile"
17522 case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17525 esac
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_compile") 2>conftest.er1
17528 ac_status=$?
17529 grep -v '^ *+' conftest.er1 >conftest.err
17530 rm -f conftest.er1
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } && {
17534 test -z "$ac_c_werror_flag" ||
17535 test ! -s conftest.err
17536 } && test -s conftest.$ac_objext; then
17537 ac_header_compiler=yes
17538 else
17539 echo "$as_me: failed program was:" >&5
17540 sed 's/^/| /' conftest.$ac_ext >&5
17541
17542 ac_header_compiler=no
17543 fi
17544
17545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17546 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17547 echo "${ECHO_T}$ac_header_compiler" >&6; }
17548
17549 # Is the header present?
17550 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17552 cat >conftest.$ac_ext <<_ACEOF
17553 /* confdefs.h. */
17554 _ACEOF
17555 cat confdefs.h >>conftest.$ac_ext
17556 cat >>conftest.$ac_ext <<_ACEOF
17557 /* end confdefs.h. */
17558 #include <$ac_header>
17559 _ACEOF
17560 if { (ac_try="$ac_cpp conftest.$ac_ext"
17561 case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17564 esac
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17567 ac_status=$?
17568 grep -v '^ *+' conftest.er1 >conftest.err
17569 rm -f conftest.er1
17570 cat conftest.err >&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } >/dev/null && {
17573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17574 test ! -s conftest.err
17575 }; then
17576 ac_header_preproc=yes
17577 else
17578 echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.$ac_ext >&5
17580
17581 ac_header_preproc=no
17582 fi
17583
17584 rm -f conftest.err conftest.$ac_ext
17585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17586 echo "${ECHO_T}$ac_header_preproc" >&6; }
17587
17588 # So? What about this header?
17589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17590 yes:no: )
17591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17595 ac_header_preproc=yes
17596 ;;
17597 no:yes:* )
17598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17605 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17610
17611 ;;
17612 esac
17613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17616 echo $ECHO_N "(cached) $ECHO_C" >&6
17617 else
17618 eval "$as_ac_Header=\$ac_header_preproc"
17619 fi
17620 ac_res=`eval echo '${'$as_ac_Header'}'`
17621 { echo "$as_me:$LINENO: result: $ac_res" >&5
17622 echo "${ECHO_T}$ac_res" >&6; }
17623
17624 fi
17625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17626 cat >>confdefs.h <<_ACEOF
17627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17628 _ACEOF
17629
17630 fi
17631
17632 done
17633
17634
17635
17636
17637 for ac_header in termios.h termio.h sgtty.h
17638 do
17639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17644 echo $ECHO_N "(cached) $ECHO_C" >&6
17645 fi
17646 ac_res=`eval echo '${'$as_ac_Header'}'`
17647 { echo "$as_me:$LINENO: result: $ac_res" >&5
17648 echo "${ECHO_T}$ac_res" >&6; }
17649 else
17650 # Is the header compilable?
17651 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17653 cat >conftest.$ac_ext <<_ACEOF
17654 /* confdefs.h. */
17655 _ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h. */
17659 $ac_includes_default
17660 #include <$ac_header>
17661 _ACEOF
17662 rm -f conftest.$ac_objext
17663 if { (ac_try="$ac_compile"
17664 case "(($ac_try" in
17665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666 *) ac_try_echo=$ac_try;;
17667 esac
17668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17669 (eval "$ac_compile") 2>conftest.er1
17670 ac_status=$?
17671 grep -v '^ *+' conftest.er1 >conftest.err
17672 rm -f conftest.er1
17673 cat conftest.err >&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); } && {
17676 test -z "$ac_c_werror_flag" ||
17677 test ! -s conftest.err
17678 } && test -s conftest.$ac_objext; then
17679 ac_header_compiler=yes
17680 else
17681 echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17683
17684 ac_header_compiler=no
17685 fi
17686
17687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17689 echo "${ECHO_T}$ac_header_compiler" >&6; }
17690
17691 # Is the header present?
17692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17694 cat >conftest.$ac_ext <<_ACEOF
17695 /* confdefs.h. */
17696 _ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h. */
17700 #include <$ac_header>
17701 _ACEOF
17702 if { (ac_try="$ac_cpp conftest.$ac_ext"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17709 ac_status=$?
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } >/dev/null && {
17715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17716 test ! -s conftest.err
17717 }; then
17718 ac_header_preproc=yes
17719 else
17720 echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17722
17723 ac_header_preproc=no
17724 fi
17725
17726 rm -f conftest.err conftest.$ac_ext
17727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17728 echo "${ECHO_T}$ac_header_preproc" >&6; }
17729
17730 # So? What about this header?
17731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17732 yes:no: )
17733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17737 ac_header_preproc=yes
17738 ;;
17739 no:yes:* )
17740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17752
17753 ;;
17754 esac
17755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17758 echo $ECHO_N "(cached) $ECHO_C" >&6
17759 else
17760 eval "$as_ac_Header=\$ac_header_preproc"
17761 fi
17762 ac_res=`eval echo '${'$as_ac_Header'}'`
17763 { echo "$as_me:$LINENO: result: $ac_res" >&5
17764 echo "${ECHO_T}$ac_res" >&6; }
17765
17766 fi
17767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17768 cat >>confdefs.h <<_ACEOF
17769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17770 _ACEOF
17771
17772 fi
17773
17774 done
17775
17776
17777
17778
17779
17780
17781
17782
17783 for ac_func in bzero signal sigaction memset fsync siglongjmp strlcpy
17784 do
17785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17790 else
17791 cat >conftest.$ac_ext <<_ACEOF
17792 /* confdefs.h. */
17793 _ACEOF
17794 cat confdefs.h >>conftest.$ac_ext
17795 cat >>conftest.$ac_ext <<_ACEOF
17796 /* end confdefs.h. */
17797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17799 #define $ac_func innocuous_$ac_func
17800
17801 /* System header to define __stub macros and hopefully few prototypes,
17802 which can conflict with char $ac_func (); below.
17803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17804 <limits.h> exists even on freestanding compilers. */
17805
17806 #ifdef __STDC__
17807 # include <limits.h>
17808 #else
17809 # include <assert.h>
17810 #endif
17811
17812 #undef $ac_func
17813
17814 /* Override any GCC internal prototype to avoid an error.
17815 Use char because int might match the return type of a GCC
17816 builtin and then its argument prototype would still apply. */
17817 #ifdef __cplusplus
17818 extern "C"
17819 #endif
17820 char $ac_func ();
17821 /* The GNU C library defines this for functions which it implements
17822 to always fail with ENOSYS. Some functions are actually named
17823 something starting with __ and the normal name is an alias. */
17824 #if defined __stub_$ac_func || defined __stub___$ac_func
17825 choke me
17826 #endif
17827
17828 int
17829 main ()
17830 {
17831 return $ac_func ();
17832 ;
17833 return 0;
17834 }
17835 _ACEOF
17836 rm -f conftest.$ac_objext conftest$ac_exeext
17837 if { (ac_try="$ac_link"
17838 case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17841 esac
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_link") 2>conftest.er1
17844 ac_status=$?
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } && {
17850 test -z "$ac_c_werror_flag" ||
17851 test ! -s conftest.err
17852 } && test -s conftest$ac_exeext &&
17853 $as_test_x conftest$ac_exeext; then
17854 eval "$as_ac_var=yes"
17855 else
17856 echo "$as_me: failed program was:" >&5
17857 sed 's/^/| /' conftest.$ac_ext >&5
17858
17859 eval "$as_ac_var=no"
17860 fi
17861
17862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17863 conftest$ac_exeext conftest.$ac_ext
17864 fi
17865 ac_res=`eval echo '${'$as_ac_var'}'`
17866 { echo "$as_me:$LINENO: result: $ac_res" >&5
17867 echo "${ECHO_T}$ac_res" >&6; }
17868 if test `eval echo '${'$as_ac_var'}'` = yes; then
17869 cat >>confdefs.h <<_ACEOF
17870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17871 _ACEOF
17872
17873 fi
17874 done
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884 for ac_func in umask utime memmove bcopy getpwuid waitpid kill ftime
17885 do
17886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17887 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17891 else
17892 cat >conftest.$ac_ext <<_ACEOF
17893 /* confdefs.h. */
17894 _ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h. */
17898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17900 #define $ac_func innocuous_$ac_func
17901
17902 /* System header to define __stub macros and hopefully few prototypes,
17903 which can conflict with char $ac_func (); below.
17904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17905 <limits.h> exists even on freestanding compilers. */
17906
17907 #ifdef __STDC__
17908 # include <limits.h>
17909 #else
17910 # include <assert.h>
17911 #endif
17912
17913 #undef $ac_func
17914
17915 /* Override any GCC internal prototype to avoid an error.
17916 Use char because int might match the return type of a GCC
17917 builtin and then its argument prototype would still apply. */
17918 #ifdef __cplusplus
17919 extern "C"
17920 #endif
17921 char $ac_func ();
17922 /* The GNU C library defines this for functions which it implements
17923 to always fail with ENOSYS. Some functions are actually named
17924 something starting with __ and the normal name is an alias. */
17925 #if defined __stub_$ac_func || defined __stub___$ac_func
17926 choke me
17927 #endif
17928
17929 int
17930 main ()
17931 {
17932 return $ac_func ();
17933 ;
17934 return 0;
17935 }
17936 _ACEOF
17937 rm -f conftest.$ac_objext conftest$ac_exeext
17938 if { (ac_try="$ac_link"
17939 case "(($ac_try" in
17940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941 *) ac_try_echo=$ac_try;;
17942 esac
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944 (eval "$ac_link") 2>conftest.er1
17945 ac_status=$?
17946 grep -v '^ *+' conftest.er1 >conftest.err
17947 rm -f conftest.er1
17948 cat conftest.err >&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); } && {
17951 test -z "$ac_c_werror_flag" ||
17952 test ! -s conftest.err
17953 } && test -s conftest$ac_exeext &&
17954 $as_test_x conftest$ac_exeext; then
17955 eval "$as_ac_var=yes"
17956 else
17957 echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17959
17960 eval "$as_ac_var=no"
17961 fi
17962
17963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17964 conftest$ac_exeext conftest.$ac_ext
17965 fi
17966 ac_res=`eval echo '${'$as_ac_var'}'`
17967 { echo "$as_me:$LINENO: result: $ac_res" >&5
17968 echo "${ECHO_T}$ac_res" >&6; }
17969 if test `eval echo '${'$as_ac_var'}'` = yes; then
17970 cat >>confdefs.h <<_ACEOF
17971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17972 _ACEOF
17973
17974 fi
17975 done
17976
17977
17978
17979
17980 for ac_func in lstat stat fseeko
17981 do
17982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17987 else
17988 cat >conftest.$ac_ext <<_ACEOF
17989 /* confdefs.h. */
17990 _ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h. */
17994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17996 #define $ac_func innocuous_$ac_func
17997
17998 /* System header to define __stub macros and hopefully few prototypes,
17999 which can conflict with char $ac_func (); below.
18000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18001 <limits.h> exists even on freestanding compilers. */
18002
18003 #ifdef __STDC__
18004 # include <limits.h>
18005 #else
18006 # include <assert.h>
18007 #endif
18008
18009 #undef $ac_func
18010
18011 /* Override any GCC internal prototype to avoid an error.
18012 Use char because int might match the return type of a GCC
18013 builtin and then its argument prototype would still apply. */
18014 #ifdef __cplusplus
18015 extern "C"
18016 #endif
18017 char $ac_func ();
18018 /* The GNU C library defines this for functions which it implements
18019 to always fail with ENOSYS. Some functions are actually named
18020 something starting with __ and the normal name is an alias. */
18021 #if defined __stub_$ac_func || defined __stub___$ac_func
18022 choke me
18023 #endif
18024
18025 int
18026 main ()
18027 {
18028 return $ac_func ();
18029 ;
18030 return 0;
18031 }
18032 _ACEOF
18033 rm -f conftest.$ac_objext conftest$ac_exeext
18034 if { (ac_try="$ac_link"
18035 case "(($ac_try" in
18036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037 *) ac_try_echo=$ac_try;;
18038 esac
18039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18040 (eval "$ac_link") 2>conftest.er1
18041 ac_status=$?
18042 grep -v '^ *+' conftest.er1 >conftest.err
18043 rm -f conftest.er1
18044 cat conftest.err >&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } && {
18047 test -z "$ac_c_werror_flag" ||
18048 test ! -s conftest.err
18049 } && test -s conftest$ac_exeext &&
18050 $as_test_x conftest$ac_exeext; then
18051 eval "$as_ac_var=yes"
18052 else
18053 echo "$as_me: failed program was:" >&5
18054 sed 's/^/| /' conftest.$ac_ext >&5
18055
18056 eval "$as_ac_var=no"
18057 fi
18058
18059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18060 conftest$ac_exeext conftest.$ac_ext
18061 fi
18062 ac_res=`eval echo '${'$as_ac_var'}'`
18063 { echo "$as_me:$LINENO: result: $ac_res" >&5
18064 echo "${ECHO_T}$ac_res" >&6; }
18065 if test `eval echo '${'$as_ac_var'}'` = yes; then
18066 cat >>confdefs.h <<_ACEOF
18067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18068 _ACEOF
18069
18070 fi
18071 done
18072
18073
18074
18075 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile po/Makefile.in"
18076
18077 ac_config_commands="$ac_config_commands default"
18078
18079 cat >confcache <<\_ACEOF
18080 # This file is a shell script that caches the results of configure
18081 # tests run on this system so they can be shared between configure
18082 # scripts and configure runs, see configure's option --config-cache.
18083 # It is not useful on other systems. If it contains results you don't
18084 # want to keep, you may remove or edit it.
18085 #
18086 # config.status only pays attention to the cache file if you give it
18087 # the --recheck option to rerun configure.
18088 #
18089 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18090 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18091 # following values.
18092
18093 _ACEOF
18094
18095 # The following way of writing the cache mishandles newlines in values,
18096 # but we know of no workaround that is simple, portable, and efficient.
18097 # So, we kill variables containing newlines.
18098 # Ultrix sh set writes to stderr and can't be redirected directly,
18099 # and sets the high bit in the cache file unless we assign to the vars.
18100 (
18101 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18102 eval ac_val=\$$ac_var
18103 case $ac_val in #(
18104 *${as_nl}*)
18105 case $ac_var in #(
18106 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18107 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18108 esac
18109 case $ac_var in #(
18110 _ | IFS | as_nl) ;; #(
18111 *) $as_unset $ac_var ;;
18112 esac ;;
18113 esac
18114 done
18115
18116 (set) 2>&1 |
18117 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18118 *${as_nl}ac_space=\ *)
18119 # `set' does not quote correctly, so add quotes (double-quote
18120 # substitution turns \\\\ into \\, and sed turns \\ into \).
18121 sed -n \
18122 "s/'/'\\\\''/g;
18123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18124 ;; #(
18125 *)
18126 # `set' quotes correctly as required by POSIX, so do not add quotes.
18127 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18128 ;;
18129 esac |
18130 sort
18131 ) |
18132 sed '
18133 /^ac_cv_env_/b end
18134 t clear
18135 :clear
18136 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18137 t end
18138 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18139 :end' >>confcache
18140 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18141 if test -w "$cache_file"; then
18142 test "x$cache_file" != "x/dev/null" &&
18143 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18144 echo "$as_me: updating cache $cache_file" >&6;}
18145 cat confcache >$cache_file
18146 else
18147 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18148 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18149 fi
18150 fi
18151 rm -f confcache
18152
18153 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18154 # Let make expand exec_prefix.
18155 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18156
18157 DEFS=-DHAVE_CONFIG_H
18158
18159 ac_libobjs=
18160 ac_ltlibobjs=
18161 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18162 # 1. Remove the extension, and $U if already installed.
18163 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18164 ac_i=`echo "$ac_i" | sed "$ac_script"`
18165 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18166 # will be set to the directory where LIBOBJS objects are built.
18167 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18168 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18169 done
18170 LIBOBJS=$ac_libobjs
18171
18172 LTLIBOBJS=$ac_ltlibobjs
18173
18174
18175 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18176 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18177 Usually this means the macro was only invoked conditionally." >&5
18178 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18179 Usually this means the macro was only invoked conditionally." >&2;}
18180 { (exit 1); exit 1; }; }
18181 fi
18182 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18183 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18184 Usually this means the macro was only invoked conditionally." >&5
18185 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18186 Usually this means the macro was only invoked conditionally." >&2;}
18187 { (exit 1); exit 1; }; }
18188 fi
18189 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18190 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18191 Usually this means the macro was only invoked conditionally." >&5
18192 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18193 Usually this means the macro was only invoked conditionally." >&2;}
18194 { (exit 1); exit 1; }; }
18195 fi
18196
18197 : ${CONFIG_STATUS=./config.status}
18198 ac_clean_files_save=$ac_clean_files
18199 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18200 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18201 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18202 cat >$CONFIG_STATUS <<_ACEOF
18203 #! $SHELL
18204 # Generated by $as_me.
18205 # Run this file to recreate the current configuration.
18206 # Compiler output produced by configure, useful for debugging
18207 # configure, is in config.log if it exists.
18208
18209 debug=false
18210 ac_cs_recheck=false
18211 ac_cs_silent=false
18212 SHELL=\${CONFIG_SHELL-$SHELL}
18213 _ACEOF
18214
18215 cat >>$CONFIG_STATUS <<\_ACEOF
18216 ## --------------------- ##
18217 ## M4sh Initialization. ##
18218 ## --------------------- ##
18219
18220 # Be more Bourne compatible
18221 DUALCASE=1; export DUALCASE # for MKS sh
18222 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18223 emulate sh
18224 NULLCMD=:
18225 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18226 # is contrary to our usage. Disable this feature.
18227 alias -g '${1+"$@"}'='"$@"'
18228 setopt NO_GLOB_SUBST
18229 else
18230 case `(set -o) 2>/dev/null` in
18231 *posix*) set -o posix ;;
18232 esac
18233
18234 fi
18235
18236
18237
18238
18239 # PATH needs CR
18240 # Avoid depending upon Character Ranges.
18241 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18242 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18243 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18244 as_cr_digits='0123456789'
18245 as_cr_alnum=$as_cr_Letters$as_cr_digits
18246
18247 # The user is always right.
18248 if test "${PATH_SEPARATOR+set}" != set; then
18249 echo "#! /bin/sh" >conf$$.sh
18250 echo "exit 0" >>conf$$.sh
18251 chmod +x conf$$.sh
18252 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18253 PATH_SEPARATOR=';'
18254 else
18255 PATH_SEPARATOR=:
18256 fi
18257 rm -f conf$$.sh
18258 fi
18259
18260 # Support unset when possible.
18261 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18262 as_unset=unset
18263 else
18264 as_unset=false
18265 fi
18266
18267
18268 # IFS
18269 # We need space, tab and new line, in precisely that order. Quoting is
18270 # there to prevent editors from complaining about space-tab.
18271 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18272 # splitting by setting IFS to empty value.)
18273 as_nl='
18274 '
18275 IFS=" "" $as_nl"
18276
18277 # Find who we are. Look in the path if we contain no directory separator.
18278 case $0 in
18279 *[\\/]* ) as_myself=$0 ;;
18280 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18281 for as_dir in $PATH
18282 do
18283 IFS=$as_save_IFS
18284 test -z "$as_dir" && as_dir=.
18285 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18286 done
18287 IFS=$as_save_IFS
18288
18289 ;;
18290 esac
18291 # We did not find ourselves, most probably we were run as `sh COMMAND'
18292 # in which case we are not to be found in the path.
18293 if test "x$as_myself" = x; then
18294 as_myself=$0
18295 fi
18296 if test ! -f "$as_myself"; then
18297 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18298 { (exit 1); exit 1; }
18299 fi
18300
18301 # Work around bugs in pre-3.0 UWIN ksh.
18302 for as_var in ENV MAIL MAILPATH
18303 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18304 done
18305 PS1='$ '
18306 PS2='> '
18307 PS4='+ '
18308
18309 # NLS nuisances.
18310 for as_var in \
18311 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18312 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18313 LC_TELEPHONE LC_TIME
18314 do
18315 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18316 eval $as_var=C; export $as_var
18317 else
18318 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18319 fi
18320 done
18321
18322 # Required to use basename.
18323 if expr a : '\(a\)' >/dev/null 2>&1 &&
18324 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18325 as_expr=expr
18326 else
18327 as_expr=false
18328 fi
18329
18330 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18331 as_basename=basename
18332 else
18333 as_basename=false
18334 fi
18335
18336
18337 # Name of the executable.
18338 as_me=`$as_basename -- "$0" ||
18339 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18340 X"$0" : 'X\(//\)$' \| \
18341 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18342 echo X/"$0" |
18343 sed '/^.*\/\([^/][^/]*\)\/*$/{
18344 s//\1/
18345 q
18346 }
18347 /^X\/\(\/\/\)$/{
18348 s//\1/
18349 q
18350 }
18351 /^X\/\(\/\).*/{
18352 s//\1/
18353 q
18354 }
18355 s/.*/./; q'`
18356
18357 # CDPATH.
18358 $as_unset CDPATH
18359
18360
18361
18362 as_lineno_1=$LINENO
18363 as_lineno_2=$LINENO
18364 test "x$as_lineno_1" != "x$as_lineno_2" &&
18365 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18366
18367 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18368 # uniformly replaced by the line number. The first 'sed' inserts a
18369 # line-number line after each line using $LINENO; the second 'sed'
18370 # does the real work. The second script uses 'N' to pair each
18371 # line-number line with the line containing $LINENO, and appends
18372 # trailing '-' during substitution so that $LINENO is not a special
18373 # case at line end.
18374 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18375 # scripts with optimization help from Paolo Bonzini. Blame Lee
18376 # E. McMahon (1931-1989) for sed's syntax. :-)
18377 sed -n '
18378 p
18379 /[$]LINENO/=
18380 ' <$as_myself |
18381 sed '
18382 s/[$]LINENO.*/&-/
18383 t lineno
18384 b
18385 :lineno
18386 N
18387 :loop
18388 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18389 t loop
18390 s/-\n.*//
18391 ' >$as_me.lineno &&
18392 chmod +x "$as_me.lineno" ||
18393 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18394 { (exit 1); exit 1; }; }
18395
18396 # Don't try to exec as it changes $[0], causing all sort of problems
18397 # (the dirname of $[0] is not the place where we might find the
18398 # original and so on. Autoconf is especially sensitive to this).
18399 . "./$as_me.lineno"
18400 # Exit status is that of the last command.
18401 exit
18402 }
18403
18404
18405 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18406 as_dirname=dirname
18407 else
18408 as_dirname=false
18409 fi
18410
18411 ECHO_C= ECHO_N= ECHO_T=
18412 case `echo -n x` in
18413 -n*)
18414 case `echo 'x\c'` in
18415 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18416 *) ECHO_C='\c';;
18417 esac;;
18418 *)
18419 ECHO_N='-n';;
18420 esac
18421
18422 if expr a : '\(a\)' >/dev/null 2>&1 &&
18423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18424 as_expr=expr
18425 else
18426 as_expr=false
18427 fi
18428
18429 rm -f conf$$ conf$$.exe conf$$.file
18430 if test -d conf$$.dir; then
18431 rm -f conf$$.dir/conf$$.file
18432 else
18433 rm -f conf$$.dir
18434 mkdir conf$$.dir
18435 fi
18436 echo >conf$$.file
18437 if ln -s conf$$.file conf$$ 2>/dev/null; then
18438 as_ln_s='ln -s'
18439 # ... but there are two gotchas:
18440 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18441 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18442 # In both cases, we have to default to `cp -p'.
18443 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18444 as_ln_s='cp -p'
18445 elif ln conf$$.file conf$$ 2>/dev/null; then
18446 as_ln_s=ln
18447 else
18448 as_ln_s='cp -p'
18449 fi
18450 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18451 rmdir conf$$.dir 2>/dev/null
18452
18453 if mkdir -p . 2>/dev/null; then
18454 as_mkdir_p=:
18455 else
18456 test -d ./-p && rmdir ./-p
18457 as_mkdir_p=false
18458 fi
18459
18460 if test -x / >/dev/null 2>&1; then
18461 as_test_x='test -x'
18462 else
18463 if ls -dL / >/dev/null 2>&1; then
18464 as_ls_L_option=L
18465 else
18466 as_ls_L_option=
18467 fi
18468 as_test_x='
18469 eval sh -c '\''
18470 if test -d "$1"; then
18471 test -d "$1/.";
18472 else
18473 case $1 in
18474 -*)set "./$1";;
18475 esac;
18476 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18477 ???[sx]*):;;*)false;;esac;fi
18478 '\'' sh
18479 '
18480 fi
18481 as_executable_p=$as_test_x
18482
18483 # Sed expression to map a string onto a valid CPP name.
18484 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18485
18486 # Sed expression to map a string onto a valid variable name.
18487 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18488
18489
18490 exec 6>&1
18491
18492 # Save the log message, to keep $[0] and so on meaningful, and to
18493 # report actual input values of CONFIG_FILES etc. instead of their
18494 # values after options handling.
18495 ac_log="
18496 This file was extended by mcrypt $as_me 2.6.8, which was
18497 generated by GNU Autoconf 2.61. Invocation command line was
18498
18499 CONFIG_FILES = $CONFIG_FILES
18500 CONFIG_HEADERS = $CONFIG_HEADERS
18501 CONFIG_LINKS = $CONFIG_LINKS
18502 CONFIG_COMMANDS = $CONFIG_COMMANDS
18503 $ $0 $@
18504
18505 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18506 "
18507
18508 _ACEOF
18509
18510 cat >>$CONFIG_STATUS <<_ACEOF
18511 # Files that config.status was made for.
18512 config_files="$ac_config_files"
18513 config_headers="$ac_config_headers"
18514 config_commands="$ac_config_commands"
18515
18516 _ACEOF
18517
18518 cat >>$CONFIG_STATUS <<\_ACEOF
18519 ac_cs_usage="\
18520 \`$as_me' instantiates files from templates according to the
18521 current configuration.
18522
18523 Usage: $0 [OPTIONS] [FILE]...
18524
18525 -h, --help print this help, then exit
18526 -V, --version print version number and configuration settings, then exit
18527 -q, --quiet do not print progress messages
18528 -d, --debug don't remove temporary files
18529 --recheck update $as_me by reconfiguring in the same conditions
18530 --file=FILE[:TEMPLATE]
18531 instantiate the configuration file FILE
18532 --header=FILE[:TEMPLATE]
18533 instantiate the configuration header FILE
18534
18535 Configuration files:
18536 $config_files
18537
18538 Configuration headers:
18539 $config_headers
18540
18541 Configuration commands:
18542 $config_commands
18543
18544 Report bugs to <[email protected]>."
18545
18546 _ACEOF
18547 cat >>$CONFIG_STATUS <<_ACEOF
18548 ac_cs_version="\\
18549 mcrypt config.status 2.6.8
18550 configured by $0, generated by GNU Autoconf 2.61,
18551 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18552
18553 Copyright (C) 2006 Free Software Foundation, Inc.
18554 This config.status script is free software; the Free Software Foundation
18555 gives unlimited permission to copy, distribute and modify it."
18556
18557 ac_pwd='$ac_pwd'
18558 srcdir='$srcdir'
18559 INSTALL='$INSTALL'
18560 MKDIR_P='$MKDIR_P'
18561 _ACEOF
18562
18563 cat >>$CONFIG_STATUS <<\_ACEOF
18564 # If no file are specified by the user, then we need to provide default
18565 # value. By we need to know if files were specified by the user.
18566 ac_need_defaults=:
18567 while test $# != 0
18568 do
18569 case $1 in
18570 --*=*)
18571 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18572 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18573 ac_shift=:
18574 ;;
18575 *)
18576 ac_option=$1
18577 ac_optarg=$2
18578 ac_shift=shift
18579 ;;
18580 esac
18581
18582 case $ac_option in
18583 # Handling of the options.
18584 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18585 ac_cs_recheck=: ;;
18586 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18587 echo "$ac_cs_version"; exit ;;
18588 --debug | --debu | --deb | --de | --d | -d )
18589 debug=: ;;
18590 --file | --fil | --fi | --f )
18591 $ac_shift
18592 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18593 ac_need_defaults=false;;
18594 --header | --heade | --head | --hea )
18595 $ac_shift
18596 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18597 ac_need_defaults=false;;
18598 --he | --h)
18599 # Conflict between --help and --header
18600 { echo "$as_me: error: ambiguous option: $1
18601 Try \`$0 --help' for more information." >&2
18602 { (exit 1); exit 1; }; };;
18603 --help | --hel | -h )
18604 echo "$ac_cs_usage"; exit ;;
18605 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18606 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18607 ac_cs_silent=: ;;
18608
18609 # This is an error.
18610 -*) { echo "$as_me: error: unrecognized option: $1
18611 Try \`$0 --help' for more information." >&2
18612 { (exit 1); exit 1; }; } ;;
18613
18614 *) ac_config_targets="$ac_config_targets $1"
18615 ac_need_defaults=false ;;
18616
18617 esac
18618 shift
18619 done
18620
18621 ac_configure_extra_args=
18622
18623 if $ac_cs_silent; then
18624 exec 6>/dev/null
18625 ac_configure_extra_args="$ac_configure_extra_args --silent"
18626 fi
18627
18628 _ACEOF
18629 cat >>$CONFIG_STATUS <<_ACEOF
18630 if \$ac_cs_recheck; then
18631 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18632 CONFIG_SHELL=$SHELL
18633 export CONFIG_SHELL
18634 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18635 fi
18636
18637 _ACEOF
18638 cat >>$CONFIG_STATUS <<\_ACEOF
18639 exec 5>>config.log
18640 {
18641 echo
18642 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18643 ## Running $as_me. ##
18644 _ASBOX
18645 echo "$ac_log"
18646 } >&5
18647
18648 _ACEOF
18649 cat >>$CONFIG_STATUS <<_ACEOF
18650 #
18651 # INIT-COMMANDS
18652 #
18653 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18654
18655
18656 # The HP-UX ksh and POSIX shell print the target directory to stdout
18657 # if CDPATH is set.
18658 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18659
18660 sed_quote_subst='$sed_quote_subst'
18661 double_quote_subst='$double_quote_subst'
18662 delay_variable_subst='$delay_variable_subst'
18663 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18664 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18665 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18666 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18667 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18668 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18669 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18670 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18671 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18672 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18673 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18674 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18675 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18676 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18677 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18678 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18679 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18680 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18681 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18682 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18683 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18684 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18685 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18686 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18687 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18688 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18689 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18690 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18691 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18692 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18693 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18694 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18695 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18696 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18697 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18698 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18699 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18700 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18701 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18702 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18703 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18704 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18705 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18706 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
18707 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18708 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18709 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18710 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18711 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18712 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18713 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18714 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18715 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18716 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18717 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18718 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18719 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18720 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18721 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18722 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18723 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18724 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18725 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18726 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18727 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18728 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18729 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18730 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18731 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18732 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18733 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18734 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18735 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18736 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18737 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18738 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18739 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18740 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18741 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18742 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18743 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18744 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18745 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18746 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18747 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18748 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18749 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18750 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18751 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18752 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18753 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18754 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18755 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18756 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18757 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18758 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18759 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18760 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18761 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18762 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18763 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18764 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18765 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18766 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18767 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18768 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18769 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18770 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18771 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18772 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18773 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18774 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18775 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18776 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18777 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18778 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18779 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18780
18781 LTCC='$LTCC'
18782 LTCFLAGS='$LTCFLAGS'
18783 compiler='$compiler_DEFAULT'
18784
18785 # Quote evaled strings.
18786 for var in SED \
18787 GREP \
18788 EGREP \
18789 FGREP \
18790 LD \
18791 NM \
18792 LN_S \
18793 lt_SP2NL \
18794 lt_NL2SP \
18795 reload_flag \
18796 deplibs_check_method \
18797 file_magic_cmd \
18798 AR \
18799 AR_FLAGS \
18800 STRIP \
18801 RANLIB \
18802 CC \
18803 CFLAGS \
18804 compiler \
18805 lt_cv_sys_global_symbol_pipe \
18806 lt_cv_sys_global_symbol_to_cdecl \
18807 lt_cv_sys_global_symbol_to_c_name_address \
18808 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18809 SHELL \
18810 ECHO \
18811 lt_prog_compiler_no_builtin_flag \
18812 lt_prog_compiler_wl \
18813 lt_prog_compiler_pic \
18814 lt_prog_compiler_static \
18815 lt_cv_prog_compiler_c_o \
18816 need_locks \
18817 DSYMUTIL \
18818 NMEDIT \
18819 LIPO \
18820 OTOOL \
18821 OTOOL64 \
18822 shrext_cmds \
18823 export_dynamic_flag_spec \
18824 whole_archive_flag_spec \
18825 compiler_needs_object \
18826 with_gnu_ld \
18827 allow_undefined_flag \
18828 no_undefined_flag \
18829 hardcode_libdir_flag_spec \
18830 hardcode_libdir_flag_spec_ld \
18831 hardcode_libdir_separator \
18832 fix_srcfile_path \
18833 exclude_expsyms \
18834 include_expsyms \
18835 file_list_spec \
18836 variables_saved_for_relink \
18837 libname_spec \
18838 library_names_spec \
18839 soname_spec \
18840 finish_eval \
18841 old_striplib \
18842 striplib; do
18843 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18844 *[\\\\\\\`\\"\\\$]*)
18845 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18846 ;;
18847 *)
18848 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18849 ;;
18850 esac
18851 done
18852
18853 # Double-quote double-evaled strings.
18854 for var in reload_cmds \
18855 old_postinstall_cmds \
18856 old_postuninstall_cmds \
18857 old_archive_cmds \
18858 extract_expsyms_cmds \
18859 old_archive_from_new_cmds \
18860 old_archive_from_expsyms_cmds \
18861 archive_cmds \
18862 archive_expsym_cmds \
18863 module_cmds \
18864 module_expsym_cmds \
18865 export_symbols_cmds \
18866 prelink_cmds \
18867 postinstall_cmds \
18868 postuninstall_cmds \
18869 finish_cmds \
18870 sys_lib_search_path_spec \
18871 sys_lib_dlsearch_path_spec; do
18872 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18873 *[\\\\\\\`\\"\\\$]*)
18874 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18875 ;;
18876 *)
18877 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18878 ;;
18879 esac
18880 done
18881
18882 # Fix-up fallback echo if it was mangled by the above quoting rules.
18883 case \$lt_ECHO in
18884 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18885 ;;
18886 esac
18887
18888 ac_aux_dir='$ac_aux_dir'
18889 xsi_shell='$xsi_shell'
18890 lt_shell_append='$lt_shell_append'
18891
18892 # See if we are running on zsh, and set the options which allow our
18893 # commands through without removal of \ escapes INIT.
18894 if test -n "\${ZSH_VERSION+set}" ; then
18895 setopt NO_GLOB_SUBST
18896 fi
18897
18898
18899 PACKAGE='$PACKAGE'
18900 VERSION='$VERSION'
18901 TIMESTAMP='$TIMESTAMP'
18902 RM='$RM'
18903 ofile='$ofile'
18904
18905
18906
18907 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18908 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
18909 # from automake < 1.5.
18910 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18911 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18912 LINGUAS="${LINGUAS-%UNSET%}"
18913
18914
18915
18916 _ACEOF
18917
18918 cat >>$CONFIG_STATUS <<\_ACEOF
18919
18920 # Handling of arguments.
18921 for ac_config_target in $ac_config_targets
18922 do
18923 case $ac_config_target in
18924 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18925 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18926 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18927 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
18928 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18929 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18930 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18931 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18932 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18933
18934 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18935 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18936 { (exit 1); exit 1; }; };;
18937 esac
18938 done
18939
18940
18941 # If the user did not use the arguments to specify the items to instantiate,
18942 # then the envvar interface is used. Set only those that are not.
18943 # We use the long form for the default assignment because of an extremely
18944 # bizarre bug on SunOS 4.1.3.
18945 if $ac_need_defaults; then
18946 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18947 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18948 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18949 fi
18950
18951 # Have a temporary directory for convenience. Make it in the build tree
18952 # simply because there is no reason against having it here, and in addition,
18953 # creating and moving files from /tmp can sometimes cause problems.
18954 # Hook for its removal unless debugging.
18955 # Note that there is a small window in which the directory will not be cleaned:
18956 # after its creation but before its name has been assigned to `$tmp'.
18957 $debug ||
18958 {
18959 tmp=
18960 trap 'exit_status=$?
18961 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18962 ' 0
18963 trap '{ (exit 1); exit 1; }' 1 2 13 15
18964 }
18965 # Create a (secure) tmp directory for tmp files.
18966
18967 {
18968 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18969 test -n "$tmp" && test -d "$tmp"
18970 } ||
18971 {
18972 tmp=./conf$$-$RANDOM
18973 (umask 077 && mkdir "$tmp")
18974 } ||
18975 {
18976 echo "$me: cannot create a temporary directory in ." >&2
18977 { (exit 1); exit 1; }
18978 }
18979
18980 #
18981 # Set up the sed scripts for CONFIG_FILES section.
18982 #
18983
18984 # No need to generate the scripts if there are no CONFIG_FILES.
18985 # This happens for instance when ./config.status config.h
18986 if test -n "$CONFIG_FILES"; then
18987
18988 _ACEOF
18989
18990
18991
18992 ac_delim='%!_!# '
18993 for ac_last_try in false false false false false :; do
18994 cat >conf$$subs.sed <<_ACEOF
18995 SHELL!$SHELL$ac_delim
18996 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18997 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18998 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18999 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19000 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19001 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19002 exec_prefix!$exec_prefix$ac_delim
19003 prefix!$prefix$ac_delim
19004 program_transform_name!$program_transform_name$ac_delim
19005 bindir!$bindir$ac_delim
19006 sbindir!$sbindir$ac_delim
19007 libexecdir!$libexecdir$ac_delim
19008 datarootdir!$datarootdir$ac_delim
19009 datadir!$datadir$ac_delim
19010 sysconfdir!$sysconfdir$ac_delim
19011 sharedstatedir!$sharedstatedir$ac_delim
19012 localstatedir!$localstatedir$ac_delim
19013 includedir!$includedir$ac_delim
19014 oldincludedir!$oldincludedir$ac_delim
19015 docdir!$docdir$ac_delim
19016 infodir!$infodir$ac_delim
19017 htmldir!$htmldir$ac_delim
19018 dvidir!$dvidir$ac_delim
19019 pdfdir!$pdfdir$ac_delim
19020 psdir!$psdir$ac_delim
19021 libdir!$libdir$ac_delim
19022 localedir!$localedir$ac_delim
19023 mandir!$mandir$ac_delim
19024 DEFS!$DEFS$ac_delim
19025 ECHO_C!$ECHO_C$ac_delim
19026 ECHO_N!$ECHO_N$ac_delim
19027 ECHO_T!$ECHO_T$ac_delim
19028 LIBS!$LIBS$ac_delim
19029 build_alias!$build_alias$ac_delim
19030 host_alias!$host_alias$ac_delim
19031 target_alias!$target_alias$ac_delim
19032 build!$build$ac_delim
19033 build_cpu!$build_cpu$ac_delim
19034 build_vendor!$build_vendor$ac_delim
19035 build_os!$build_os$ac_delim
19036 host!$host$ac_delim
19037 host_cpu!$host_cpu$ac_delim
19038 host_vendor!$host_vendor$ac_delim
19039 host_os!$host_os$ac_delim
19040 target!$target$ac_delim
19041 target_cpu!$target_cpu$ac_delim
19042 target_vendor!$target_vendor$ac_delim
19043 target_os!$target_os$ac_delim
19044 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19045 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19046 INSTALL_DATA!$INSTALL_DATA$ac_delim
19047 am__isrc!$am__isrc$ac_delim
19048 CYGPATH_W!$CYGPATH_W$ac_delim
19049 PACKAGE!$PACKAGE$ac_delim
19050 VERSION!$VERSION$ac_delim
19051 ACLOCAL!$ACLOCAL$ac_delim
19052 AUTOCONF!$AUTOCONF$ac_delim
19053 AUTOMAKE!$AUTOMAKE$ac_delim
19054 AUTOHEADER!$AUTOHEADER$ac_delim
19055 MAKEINFO!$MAKEINFO$ac_delim
19056 install_sh!$install_sh$ac_delim
19057 STRIP!$STRIP$ac_delim
19058 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
19059 mkdir_p!$mkdir_p$ac_delim
19060 AWK!$AWK$ac_delim
19061 SET_MAKE!$SET_MAKE$ac_delim
19062 am__leading_dot!$am__leading_dot$ac_delim
19063 AMTAR!$AMTAR$ac_delim
19064 am__tar!$am__tar$ac_delim
19065 am__untar!$am__untar$ac_delim
19066 LIBTOOL!$LIBTOOL$ac_delim
19067 CC!$CC$ac_delim
19068 CFLAGS!$CFLAGS$ac_delim
19069 LDFLAGS!$LDFLAGS$ac_delim
19070 CPPFLAGS!$CPPFLAGS$ac_delim
19071 ac_ct_CC!$ac_ct_CC$ac_delim
19072 EXEEXT!$EXEEXT$ac_delim
19073 OBJEXT!$OBJEXT$ac_delim
19074 DEPDIR!$DEPDIR$ac_delim
19075 am__include!$am__include$ac_delim
19076 am__quote!$am__quote$ac_delim
19077 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
19078 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
19079 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
19080 CCDEPMODE!$CCDEPMODE$ac_delim
19081 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
19082 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
19083 SED!$SED$ac_delim
19084 GREP!$GREP$ac_delim
19085 EGREP!$EGREP$ac_delim
19086 FGREP!$FGREP$ac_delim
19087 LD!$LD$ac_delim
19088 DUMPBIN!$DUMPBIN$ac_delim
19089 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
19090 NM!$NM$ac_delim
19091 LN_S!$LN_S$ac_delim
19092 _ACEOF
19093
19094 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19095 break
19096 elif $ac_last_try; then
19097 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19098 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19099 { (exit 1); exit 1; }; }
19100 else
19101 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19102 fi
19103 done
19104
19105 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19106 if test -n "$ac_eof"; then
19107 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19108 ac_eof=`expr $ac_eof + 1`
19109 fi
19110
19111 cat >>$CONFIG_STATUS <<_ACEOF
19112 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19113 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19114 _ACEOF
19115 sed '
19116 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19117 s/^/s,@/; s/!/@,|#_!!_#|/
19118 :n
19119 t n
19120 s/'"$ac_delim"'$/,g/; t
19121 s/$/\\/; p
19122 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19123 ' >>$CONFIG_STATUS <conf$$subs.sed
19124 rm -f conf$$subs.sed
19125 cat >>$CONFIG_STATUS <<_ACEOF
19126 CEOF$ac_eof
19127 _ACEOF
19128
19129
19130 ac_delim='%!_!# '
19131 for ac_last_try in false false false false false :; do
19132 cat >conf$$subs.sed <<_ACEOF
19133 AR!$AR$ac_delim
19134 RANLIB!$RANLIB$ac_delim
19135 lt_ECHO!$lt_ECHO$ac_delim
19136 DSYMUTIL!$DSYMUTIL$ac_delim
19137 NMEDIT!$NMEDIT$ac_delim
19138 LIPO!$LIPO$ac_delim
19139 OTOOL!$OTOOL$ac_delim
19140 OTOOL64!$OTOOL64$ac_delim
19141 CPP!$CPP$ac_delim
19142 LIBMCRYPT_CONFIG!$LIBMCRYPT_CONFIG$ac_delim
19143 LIBMCRYPT_CFLAGS!$LIBMCRYPT_CFLAGS$ac_delim
19144 LIBMCRYPT_LIBS!$LIBMCRYPT_LIBS$ac_delim
19145 USE_NLS!$USE_NLS$ac_delim
19146 MSGFMT!$MSGFMT$ac_delim
19147 GMSGFMT!$GMSGFMT$ac_delim
19148 MSGFMT_015!$MSGFMT_015$ac_delim
19149 GMSGFMT_015!$GMSGFMT_015$ac_delim
19150 XGETTEXT!$XGETTEXT$ac_delim
19151 XGETTEXT_015!$XGETTEXT_015$ac_delim
19152 MSGMERGE!$MSGMERGE$ac_delim
19153 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
19154 LIBICONV!$LIBICONV$ac_delim
19155 LTLIBICONV!$LTLIBICONV$ac_delim
19156 INTLLIBS!$INTLLIBS$ac_delim
19157 LIBINTL!$LIBINTL$ac_delim
19158 LTLIBINTL!$LTLIBINTL$ac_delim
19159 POSUB!$POSUB$ac_delim
19160 RM!$RM$ac_delim
19161 GZIP!$GZIP$ac_delim
19162 BZIP2!$BZIP2$ac_delim
19163 LIBOBJS!$LIBOBJS$ac_delim
19164 LTLIBOBJS!$LTLIBOBJS$ac_delim
19165 _ACEOF
19166
19167 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 32; then
19168 break
19169 elif $ac_last_try; then
19170 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19171 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19172 { (exit 1); exit 1; }; }
19173 else
19174 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19175 fi
19176 done
19177
19178 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19179 if test -n "$ac_eof"; then
19180 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19181 ac_eof=`expr $ac_eof + 1`
19182 fi
19183
19184 cat >>$CONFIG_STATUS <<_ACEOF
19185 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19186 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19187 _ACEOF
19188 sed '
19189 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19190 s/^/s,@/; s/!/@,|#_!!_#|/
19191 :n
19192 t n
19193 s/'"$ac_delim"'$/,g/; t
19194 s/$/\\/; p
19195 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19196 ' >>$CONFIG_STATUS <conf$$subs.sed
19197 rm -f conf$$subs.sed
19198 cat >>$CONFIG_STATUS <<_ACEOF
19199 :end
19200 s/|#_!!_#|//g
19201 CEOF$ac_eof
19202 _ACEOF
19203
19204
19205 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19206 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19207 # trailing colons and then remove the whole line if VPATH becomes empty
19208 # (actually we leave an empty line to preserve line numbers).
19209 if test "x$srcdir" = x.; then
19210 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19211 s/:*\$(srcdir):*/:/
19212 s/:*\${srcdir}:*/:/
19213 s/:*@srcdir@:*/:/
19214 s/^\([^=]*=[ ]*\):*/\1/
19215 s/:*$//
19216 s/^[^=]*=[ ]*$//
19217 }'
19218 fi
19219
19220 cat >>$CONFIG_STATUS <<\_ACEOF
19221 fi # test -n "$CONFIG_FILES"
19222
19223
19224 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19225 do
19226 case $ac_tag in
19227 :[FHLC]) ac_mode=$ac_tag; continue;;
19228 esac
19229 case $ac_mode$ac_tag in
19230 :[FHL]*:*);;
19231 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19232 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19233 { (exit 1); exit 1; }; };;
19234 :[FH]-) ac_tag=-:-;;
19235 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19236 esac
19237 ac_save_IFS=$IFS
19238 IFS=:
19239 set x $ac_tag
19240 IFS=$ac_save_IFS
19241 shift
19242 ac_file=$1
19243 shift
19244
19245 case $ac_mode in
19246 :L) ac_source=$1;;
19247 :[FH])
19248 ac_file_inputs=
19249 for ac_f
19250 do
19251 case $ac_f in
19252 -) ac_f="$tmp/stdin";;
19253 *) # Look for the file first in the build tree, then in the source tree
19254 # (if the path is not absolute). The absolute path cannot be DOS-style,
19255 # because $ac_f cannot contain `:'.
19256 test -f "$ac_f" ||
19257 case $ac_f in
19258 [\\/$]*) false;;
19259 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19260 esac ||
19261 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19262 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19263 { (exit 1); exit 1; }; };;
19264 esac
19265 ac_file_inputs="$ac_file_inputs $ac_f"
19266 done
19267
19268 # Let's still pretend it is `configure' which instantiates (i.e., don't
19269 # use $as_me), people would be surprised to read:
19270 # /* config.h. Generated by config.status. */
19271 configure_input="Generated from "`IFS=:
19272 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19273 if test x"$ac_file" != x-; then
19274 configure_input="$ac_file. $configure_input"
19275 { echo "$as_me:$LINENO: creating $ac_file" >&5
19276 echo "$as_me: creating $ac_file" >&6;}
19277 fi
19278
19279 case $ac_tag in
19280 *:-:* | *:-) cat >"$tmp/stdin";;
19281 esac
19282 ;;
19283 esac
19284
19285 ac_dir=`$as_dirname -- "$ac_file" ||
19286 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19287 X"$ac_file" : 'X\(//\)[^/]' \| \
19288 X"$ac_file" : 'X\(//\)$' \| \
19289 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19290 echo X"$ac_file" |
19291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19292 s//\1/
19293 q
19294 }
19295 /^X\(\/\/\)[^/].*/{
19296 s//\1/
19297 q
19298 }
19299 /^X\(\/\/\)$/{
19300 s//\1/
19301 q
19302 }
19303 /^X\(\/\).*/{
19304 s//\1/
19305 q
19306 }
19307 s/.*/./; q'`
19308 { as_dir="$ac_dir"
19309 case $as_dir in #(
19310 -*) as_dir=./$as_dir;;
19311 esac
19312 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19313 as_dirs=
19314 while :; do
19315 case $as_dir in #(
19316 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19317 *) as_qdir=$as_dir;;
19318 esac
19319 as_dirs="'$as_qdir' $as_dirs"
19320 as_dir=`$as_dirname -- "$as_dir" ||
19321 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19322 X"$as_dir" : 'X\(//\)[^/]' \| \
19323 X"$as_dir" : 'X\(//\)$' \| \
19324 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19325 echo X"$as_dir" |
19326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19327 s//\1/
19328 q
19329 }
19330 /^X\(\/\/\)[^/].*/{
19331 s//\1/
19332 q
19333 }
19334 /^X\(\/\/\)$/{
19335 s//\1/
19336 q
19337 }
19338 /^X\(\/\).*/{
19339 s//\1/
19340 q
19341 }
19342 s/.*/./; q'`
19343 test -d "$as_dir" && break
19344 done
19345 test -z "$as_dirs" || eval "mkdir $as_dirs"
19346 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19347 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19348 { (exit 1); exit 1; }; }; }
19349 ac_builddir=.
19350
19351 case "$ac_dir" in
19352 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19353 *)
19354 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19355 # A ".." for each directory in $ac_dir_suffix.
19356 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19357 case $ac_top_builddir_sub in
19358 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19359 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19360 esac ;;
19361 esac
19362 ac_abs_top_builddir=$ac_pwd
19363 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19364 # for backward compatibility:
19365 ac_top_builddir=$ac_top_build_prefix
19366
19367 case $srcdir in
19368 .) # We are building in place.
19369 ac_srcdir=.
19370 ac_top_srcdir=$ac_top_builddir_sub
19371 ac_abs_top_srcdir=$ac_pwd ;;
19372 [\\/]* | ?:[\\/]* ) # Absolute name.
19373 ac_srcdir=$srcdir$ac_dir_suffix;
19374 ac_top_srcdir=$srcdir
19375 ac_abs_top_srcdir=$srcdir ;;
19376 *) # Relative name.
19377 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19378 ac_top_srcdir=$ac_top_build_prefix$srcdir
19379 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19380 esac
19381 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19382
19383
19384 case $ac_mode in
19385 :F)
19386 #
19387 # CONFIG_FILE
19388 #
19389
19390 case $INSTALL in
19391 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19392 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19393 esac
19394 ac_MKDIR_P=$MKDIR_P
19395 case $MKDIR_P in
19396 [\\/$]* | ?:[\\/]* ) ;;
19397 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19398 esac
19399 _ACEOF
19400
19401 cat >>$CONFIG_STATUS <<\_ACEOF
19402 # If the template does not know about datarootdir, expand it.
19403 # FIXME: This hack should be removed a few years after 2.60.
19404 ac_datarootdir_hack=; ac_datarootdir_seen=
19405
19406 case `sed -n '/datarootdir/ {
19407 p
19408 q
19409 }
19410 /@datadir@/p
19411 /@docdir@/p
19412 /@infodir@/p
19413 /@localedir@/p
19414 /@mandir@/p
19415 ' $ac_file_inputs` in
19416 *datarootdir*) ac_datarootdir_seen=yes;;
19417 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19418 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19419 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19420 _ACEOF
19421 cat >>$CONFIG_STATUS <<_ACEOF
19422 ac_datarootdir_hack='
19423 s&@datadir@&$datadir&g
19424 s&@docdir@&$docdir&g
19425 s&@infodir@&$infodir&g
19426 s&@localedir@&$localedir&g
19427 s&@mandir@&$mandir&g
19428 s&\\\${datarootdir}&$datarootdir&g' ;;
19429 esac
19430 _ACEOF
19431
19432 # Neutralize VPATH when `$srcdir' = `.'.
19433 # Shell code in configure.ac might set extrasub.
19434 # FIXME: do we really want to maintain this feature?
19435 cat >>$CONFIG_STATUS <<_ACEOF
19436 sed "$ac_vpsub
19437 $extrasub
19438 _ACEOF
19439 cat >>$CONFIG_STATUS <<\_ACEOF
19440 :t
19441 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19442 s&@configure_input@&$configure_input&;t t
19443 s&@top_builddir@&$ac_top_builddir_sub&;t t
19444 s&@srcdir@&$ac_srcdir&;t t
19445 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19446 s&@top_srcdir@&$ac_top_srcdir&;t t
19447 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19448 s&@builddir@&$ac_builddir&;t t
19449 s&@abs_builddir@&$ac_abs_builddir&;t t
19450 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19451 s&@INSTALL@&$ac_INSTALL&;t t
19452 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19453 $ac_datarootdir_hack
19454 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
19455
19456 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19457 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19458 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19459 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19460 which seems to be undefined. Please make sure it is defined." >&5
19461 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19462 which seems to be undefined. Please make sure it is defined." >&2;}
19463
19464 rm -f "$tmp/stdin"
19465 case $ac_file in
19466 -) cat "$tmp/out"; rm -f "$tmp/out";;
19467 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19468 esac
19469 ;;
19470 :H)
19471 #
19472 # CONFIG_HEADER
19473 #
19474 _ACEOF
19475
19476 # Transform confdefs.h into a sed script `conftest.defines', that
19477 # substitutes the proper values into config.h.in to produce config.h.
19478 rm -f conftest.defines conftest.tail
19479 # First, append a space to every undef/define line, to ease matching.
19480 echo 's/$/ /' >conftest.defines
19481 # Then, protect against being on the right side of a sed subst, or in
19482 # an unquoted here document, in config.status. If some macros were
19483 # called several times there might be several #defines for the same
19484 # symbol, which is useless. But do not sort them, since the last
19485 # AC_DEFINE must be honored.
19486 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19487 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19488 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19489 # PARAMS is the parameter list in the macro definition--in most cases, it's
19490 # just an empty string.
19491 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19492 ac_dB='\\)[ (].*,\\1define\\2'
19493 ac_dC=' '
19494 ac_dD=' ,'
19495
19496 uniq confdefs.h |
19497 sed -n '
19498 t rset
19499 :rset
19500 s/^[ ]*#[ ]*define[ ][ ]*//
19501 t ok
19502 d
19503 :ok
19504 s/[\\&,]/\\&/g
19505 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19506 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19507 ' >>conftest.defines
19508
19509 # Remove the space that was appended to ease matching.
19510 # Then replace #undef with comments. This is necessary, for
19511 # example, in the case of _POSIX_SOURCE, which is predefined and required
19512 # on some systems where configure will not decide to define it.
19513 # (The regexp can be short, since the line contains either #define or #undef.)
19514 echo 's/ $//
19515 s,^[ #]*u.*,/* & */,' >>conftest.defines
19516
19517 # Break up conftest.defines:
19518 ac_max_sed_lines=50
19519
19520 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19521 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19522 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19523 # et cetera.
19524 ac_in='$ac_file_inputs'
19525 ac_out='"$tmp/out1"'
19526 ac_nxt='"$tmp/out2"'
19527
19528 while :
19529 do
19530 # Write a here document:
19531 cat >>$CONFIG_STATUS <<_ACEOF
19532 # First, check the format of the line:
19533 cat >"\$tmp/defines.sed" <<\\CEOF
19534 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19535 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19536 b
19537 :def
19538 _ACEOF
19539 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19540 echo 'CEOF
19541 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19542 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19543 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19544 grep . conftest.tail >/dev/null || break
19545 rm -f conftest.defines
19546 mv conftest.tail conftest.defines
19547 done
19548 rm -f conftest.defines conftest.tail
19549
19550 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19551 cat >>$CONFIG_STATUS <<\_ACEOF
19552 if test x"$ac_file" != x-; then
19553 echo "/* $configure_input */" >"$tmp/config.h"
19554 cat "$ac_result" >>"$tmp/config.h"
19555 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19556 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19557 echo "$as_me: $ac_file is unchanged" >&6;}
19558 else
19559 rm -f $ac_file
19560 mv "$tmp/config.h" $ac_file
19561 fi
19562 else
19563 echo "/* $configure_input */"
19564 cat "$ac_result"
19565 fi
19566 rm -f "$tmp/out12"
19567 # Compute $ac_file's index in $config_headers.
19568 _am_arg=$ac_file
19569 _am_stamp_count=1
19570 for _am_header in $config_headers :; do
19571 case $_am_header in
19572 $_am_arg | $_am_arg:* )
19573 break ;;
19574 * )
19575 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19576 esac
19577 done
19578 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19579 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19580 X"$_am_arg" : 'X\(//\)[^/]' \| \
19581 X"$_am_arg" : 'X\(//\)$' \| \
19582 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19583 echo X"$_am_arg" |
19584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19585 s//\1/
19586 q
19587 }
19588 /^X\(\/\/\)[^/].*/{
19589 s//\1/
19590 q
19591 }
19592 /^X\(\/\/\)$/{
19593 s//\1/
19594 q
19595 }
19596 /^X\(\/\).*/{
19597 s//\1/
19598 q
19599 }
19600 s/.*/./; q'`/stamp-h$_am_stamp_count
19601 ;;
19602
19603 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19604 echo "$as_me: executing $ac_file commands" >&6;}
19605 ;;
19606 esac
19607
19608
19609 case $ac_file$ac_mode in
19610 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19611 # Strip MF so we end up with the name of the file.
19612 mf=`echo "$mf" | sed -e 's/:.*$//'`
19613 # Check whether this is an Automake generated Makefile or not.
19614 # We used to match only the files named `Makefile.in', but
19615 # some people rename them; so instead we look at the file content.
19616 # Grep'ing the first line is not enough: some people post-process
19617 # each Makefile.in and add a new line on top of each file to say so.
19618 # Grep'ing the whole file is not good either: AIX grep has a line
19619 # limit of 2048, but all sed's we know have understand at least 4000.
19620 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19621 dirpart=`$as_dirname -- "$mf" ||
19622 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19623 X"$mf" : 'X\(//\)[^/]' \| \
19624 X"$mf" : 'X\(//\)$' \| \
19625 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19626 echo X"$mf" |
19627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19628 s//\1/
19629 q
19630 }
19631 /^X\(\/\/\)[^/].*/{
19632 s//\1/
19633 q
19634 }
19635 /^X\(\/\/\)$/{
19636 s//\1/
19637 q
19638 }
19639 /^X\(\/\).*/{
19640 s//\1/
19641 q
19642 }
19643 s/.*/./; q'`
19644 else
19645 continue
19646 fi
19647 # Extract the definition of DEPDIR, am__include, and am__quote
19648 # from the Makefile without running `make'.
19649 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19650 test -z "$DEPDIR" && continue
19651 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19652 test -z "am__include" && continue
19653 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19654 # When using ansi2knr, U may be empty or an underscore; expand it
19655 U=`sed -n 's/^U = //p' < "$mf"`
19656 # Find all dependency output files, they are included files with
19657 # $(DEPDIR) in their names. We invoke sed twice because it is the
19658 # simplest approach to changing $(DEPDIR) to its actual value in the
19659 # expansion.
19660 for file in `sed -n "
19661 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19662 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19663 # Make sure the directory exists.
19664 test -f "$dirpart/$file" && continue
19665 fdir=`$as_dirname -- "$file" ||
19666 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19667 X"$file" : 'X\(//\)[^/]' \| \
19668 X"$file" : 'X\(//\)$' \| \
19669 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19670 echo X"$file" |
19671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19672 s//\1/
19673 q
19674 }
19675 /^X\(\/\/\)[^/].*/{
19676 s//\1/
19677 q
19678 }
19679 /^X\(\/\/\)$/{
19680 s//\1/
19681 q
19682 }
19683 /^X\(\/\).*/{
19684 s//\1/
19685 q
19686 }
19687 s/.*/./; q'`
19688 { as_dir=$dirpart/$fdir
19689 case $as_dir in #(
19690 -*) as_dir=./$as_dir;;
19691 esac
19692 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19693 as_dirs=
19694 while :; do
19695 case $as_dir in #(
19696 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19697 *) as_qdir=$as_dir;;
19698 esac
19699 as_dirs="'$as_qdir' $as_dirs"
19700 as_dir=`$as_dirname -- "$as_dir" ||
19701 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19702 X"$as_dir" : 'X\(//\)[^/]' \| \
19703 X"$as_dir" : 'X\(//\)$' \| \
19704 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19705 echo X"$as_dir" |
19706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19707 s//\1/
19708 q
19709 }
19710 /^X\(\/\/\)[^/].*/{
19711 s//\1/
19712 q
19713 }
19714 /^X\(\/\/\)$/{
19715 s//\1/
19716 q
19717 }
19718 /^X\(\/\).*/{
19719 s//\1/
19720 q
19721 }
19722 s/.*/./; q'`
19723 test -d "$as_dir" && break
19724 done
19725 test -z "$as_dirs" || eval "mkdir $as_dirs"
19726 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19727 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19728 { (exit 1); exit 1; }; }; }
19729 # echo "creating $dirpart/$file"
19730 echo '# dummy' > "$dirpart/$file"
19731 done
19732 done
19733 ;;
19734 "libtool":C)
19735
19736 # See if we are running on zsh, and set the options which allow our
19737 # commands through without removal of \ escapes.
19738 if test -n "${ZSH_VERSION+set}" ; then
19739 setopt NO_GLOB_SUBST
19740 fi
19741
19742 cfgfile="${ofile}T"
19743 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19744 $RM "$cfgfile"
19745
19746 cat <<_LT_EOF >> "$cfgfile"
19747 #! $SHELL
19748
19749 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19750 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19751 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19752 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19753 #
19754 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19755 # 2006, 2007, 2008 Free Software Foundation, Inc.
19756 # Written by Gordon Matzigkeit, 1996
19757 #
19758 # This file is part of GNU Libtool.
19759 #
19760 # GNU Libtool is free software; you can redistribute it and/or
19761 # modify it under the terms of the GNU General Public License as
19762 # published by the Free Software Foundation; either version 2 of
19763 # the License, or (at your option) any later version.
19764 #
19765 # As a special exception to the GNU General Public License,
19766 # if you distribute this file as part of a program or library that
19767 # is built using GNU Libtool, you may include this file under the
19768 # same distribution terms that you use for the rest of that program.
19769 #
19770 # GNU Libtool is distributed in the hope that it will be useful,
19771 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19772 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19773 # GNU General Public License for more details.
19774 #
19775 # You should have received a copy of the GNU General Public License
19776 # along with GNU Libtool; see the file COPYING. If not, a copy
19777 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19778 # obtained by writing to the Free Software Foundation, Inc.,
19779 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19780
19781
19782 # The names of the tagged configurations supported by this script.
19783 available_tags=""
19784
19785 # ### BEGIN LIBTOOL CONFIG
19786
19787 # Which release of libtool.m4 was used?
19788 macro_version=$macro_version
19789 macro_revision=$macro_revision
19790
19791 # Whether or not to build shared libraries.
19792 build_libtool_libs=$enable_shared
19793
19794 # Whether or not to build static libraries.
19795 build_old_libs=$enable_static
19796
19797 # What type of objects to build.
19798 pic_mode=$pic_mode
19799
19800 # Whether or not to optimize for fast installation.
19801 fast_install=$enable_fast_install
19802
19803 # The host system.
19804 host_alias=$host_alias
19805 host=$host
19806 host_os=$host_os
19807
19808 # The build system.
19809 build_alias=$build_alias
19810 build=$build
19811 build_os=$build_os
19812
19813 # A sed program that does not truncate output.
19814 SED=$lt_SED
19815
19816 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19817 Xsed="\$SED -e 1s/^X//"
19818
19819 # A grep program that handles long lines.
19820 GREP=$lt_GREP
19821
19822 # An ERE matcher.
19823 EGREP=$lt_EGREP
19824
19825 # A literal string matcher.
19826 FGREP=$lt_FGREP
19827
19828 # A BSD- or MS-compatible name lister.
19829 NM=$lt_NM
19830
19831 # Whether we need soft or hard links.
19832 LN_S=$lt_LN_S
19833
19834 # What is the maximum length of a command?
19835 max_cmd_len=$max_cmd_len
19836
19837 # Object file suffix (normally "o").
19838 objext=$ac_objext
19839
19840 # Executable file suffix (normally "").
19841 exeext=$exeext
19842
19843 # whether the shell understands "unset".
19844 lt_unset=$lt_unset
19845
19846 # turn spaces into newlines.
19847 SP2NL=$lt_lt_SP2NL
19848
19849 # turn newlines into spaces.
19850 NL2SP=$lt_lt_NL2SP
19851
19852 # How to create reloadable object files.
19853 reload_flag=$lt_reload_flag
19854 reload_cmds=$lt_reload_cmds
19855
19856 # Method to check whether dependent libraries are shared objects.
19857 deplibs_check_method=$lt_deplibs_check_method
19858
19859 # Command to use when deplibs_check_method == "file_magic".
19860 file_magic_cmd=$lt_file_magic_cmd
19861
19862 # The archiver.
19863 AR=$lt_AR
19864 AR_FLAGS=$lt_AR_FLAGS
19865
19866 # A symbol stripping program.
19867 STRIP=$lt_STRIP
19868
19869 # Commands used to install an old-style archive.
19870 RANLIB=$lt_RANLIB
19871 old_postinstall_cmds=$lt_old_postinstall_cmds
19872 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19873
19874 # A C compiler.
19875 LTCC=$lt_CC
19876
19877 # LTCC compiler flags.
19878 LTCFLAGS=$lt_CFLAGS
19879
19880 # Take the output of nm and produce a listing of raw symbols and C names.
19881 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19882
19883 # Transform the output of nm in a proper C declaration.
19884 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19885
19886 # Transform the output of nm in a C name address pair.
19887 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19888
19889 # Transform the output of nm in a C name address pair when lib prefix is needed.
19890 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19891
19892 # The name of the directory that contains temporary libtool files.
19893 objdir=$objdir
19894
19895 # Shell to use when invoking shell scripts.
19896 SHELL=$lt_SHELL
19897
19898 # An echo program that does not interpret backslashes.
19899 ECHO=$lt_ECHO
19900
19901 # Used to examine libraries when file_magic_cmd begins with "file".
19902 MAGIC_CMD=$MAGIC_CMD
19903
19904 # Must we lock files when doing compilation?
19905 need_locks=$lt_need_locks
19906
19907 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19908 DSYMUTIL=$lt_DSYMUTIL
19909
19910 # Tool to change global to local symbols on Mac OS X.
19911 NMEDIT=$lt_NMEDIT
19912
19913 # Tool to manipulate fat objects and archives on Mac OS X.
19914 LIPO=$lt_LIPO
19915
19916 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19917 OTOOL=$lt_OTOOL
19918
19919 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19920 OTOOL64=$lt_OTOOL64
19921
19922 # Old archive suffix (normally "a").
19923 libext=$libext
19924
19925 # Shared library suffix (normally ".so").
19926 shrext_cmds=$lt_shrext_cmds
19927
19928 # The commands to extract the exported symbol list from a shared archive.
19929 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19930
19931 # Variables whose values should be saved in libtool wrapper scripts and
19932 # restored at link time.
19933 variables_saved_for_relink=$lt_variables_saved_for_relink
19934
19935 # Do we need the "lib" prefix for modules?
19936 need_lib_prefix=$need_lib_prefix
19937
19938 # Do we need a version for libraries?
19939 need_version=$need_version
19940
19941 # Library versioning type.
19942 version_type=$version_type
19943
19944 # Shared library runtime path variable.
19945 runpath_var=$runpath_var
19946
19947 # Shared library path variable.
19948 shlibpath_var=$shlibpath_var
19949
19950 # Is shlibpath searched before the hard-coded library search path?
19951 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19952
19953 # Format of library name prefix.
19954 libname_spec=$lt_libname_spec
19955
19956 # List of archive names. First name is the real one, the rest are links.
19957 # The last name is the one that the linker finds with -lNAME
19958 library_names_spec=$lt_library_names_spec
19959
19960 # The coded name of the library, if different from the real name.
19961 soname_spec=$lt_soname_spec
19962
19963 # Command to use after installation of a shared archive.
19964 postinstall_cmds=$lt_postinstall_cmds
19965
19966 # Command to use after uninstallation of a shared archive.
19967 postuninstall_cmds=$lt_postuninstall_cmds
19968
19969 # Commands used to finish a libtool library installation in a directory.
19970 finish_cmds=$lt_finish_cmds
19971
19972 # As "finish_cmds", except a single script fragment to be evaled but
19973 # not shown.
19974 finish_eval=$lt_finish_eval
19975
19976 # Whether we should hardcode library paths into libraries.
19977 hardcode_into_libs=$hardcode_into_libs
19978
19979 # Compile-time system search path for libraries.
19980 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19981
19982 # Run-time system search path for libraries.
19983 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19984
19985 # Whether dlopen is supported.
19986 dlopen_support=$enable_dlopen
19987
19988 # Whether dlopen of programs is supported.
19989 dlopen_self=$enable_dlopen_self
19990
19991 # Whether dlopen of statically linked programs is supported.
19992 dlopen_self_static=$enable_dlopen_self_static
19993
19994 # Commands to strip libraries.
19995 old_striplib=$lt_old_striplib
19996 striplib=$lt_striplib
19997
19998
19999 # The linker used to build libraries.
20000 LD=$lt_LD
20001
20002 # Commands used to build an old-style archive.
20003 old_archive_cmds=$lt_old_archive_cmds
20004
20005 # A language specific compiler.
20006 CC=$lt_compiler
20007
20008 # Is the compiler the GNU compiler?
20009 with_gcc=$GCC
20010
20011 # Compiler flag to turn off builtin functions.
20012 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20013
20014 # How to pass a linker flag through the compiler.
20015 wl=$lt_lt_prog_compiler_wl
20016
20017 # Additional compiler flags for building library objects.
20018 pic_flag=$lt_lt_prog_compiler_pic
20019
20020 # Compiler flag to prevent dynamic linking.
20021 link_static_flag=$lt_lt_prog_compiler_static
20022
20023 # Does compiler simultaneously support -c and -o options?
20024 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20025
20026 # Whether or not to add -lc for building shared libraries.
20027 build_libtool_need_lc=$archive_cmds_need_lc
20028
20029 # Whether or not to disallow shared libs when runtime libs are static.
20030 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20031
20032 # Compiler flag to allow reflexive dlopens.
20033 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20034
20035 # Compiler flag to generate shared objects directly from archives.
20036 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20037
20038 # Whether the compiler copes with passing no objects directly.
20039 compiler_needs_object=$lt_compiler_needs_object
20040
20041 # Create an old-style archive from a shared archive.
20042 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20043
20044 # Create a temporary old-style archive to link instead of a shared archive.
20045 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20046
20047 # Commands used to build a shared archive.
20048 archive_cmds=$lt_archive_cmds
20049 archive_expsym_cmds=$lt_archive_expsym_cmds
20050
20051 # Commands used to build a loadable module if different from building
20052 # a shared archive.
20053 module_cmds=$lt_module_cmds
20054 module_expsym_cmds=$lt_module_expsym_cmds
20055
20056 # Whether we are building with GNU ld or not.
20057 with_gnu_ld=$lt_with_gnu_ld
20058
20059 # Flag that allows shared libraries with undefined symbols to be built.
20060 allow_undefined_flag=$lt_allow_undefined_flag
20061
20062 # Flag that enforces no undefined symbols.
20063 no_undefined_flag=$lt_no_undefined_flag
20064
20065 # Flag to hardcode \$libdir into a binary during linking.
20066 # This must work even if \$libdir does not exist
20067 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20068
20069 # If ld is used when linking, flag to hardcode \$libdir into a binary
20070 # during linking. This must work even if \$libdir does not exist.
20071 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20072
20073 # Whether we need a single "-rpath" flag with a separated argument.
20074 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20075
20076 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20077 # DIR into the resulting binary.
20078 hardcode_direct=$hardcode_direct
20079
20080 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20081 # DIR into the resulting binary and the resulting library dependency is
20082 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20083 # library is relocated.
20084 hardcode_direct_absolute=$hardcode_direct_absolute
20085
20086 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20087 # into the resulting binary.
20088 hardcode_minus_L=$hardcode_minus_L
20089
20090 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20091 # into the resulting binary.
20092 hardcode_shlibpath_var=$hardcode_shlibpath_var
20093
20094 # Set to "yes" if building a shared library automatically hardcodes DIR
20095 # into the library and all subsequent libraries and executables linked
20096 # against it.
20097 hardcode_automatic=$hardcode_automatic
20098
20099 # Set to yes if linker adds runtime paths of dependent libraries
20100 # to runtime path list.
20101 inherit_rpath=$inherit_rpath
20102
20103 # Whether libtool must link a program against all its dependency libraries.
20104 link_all_deplibs=$link_all_deplibs
20105
20106 # Fix the shell variable \$srcfile for the compiler.
20107 fix_srcfile_path=$lt_fix_srcfile_path
20108
20109 # Set to "yes" if exported symbols are required.
20110 always_export_symbols=$always_export_symbols
20111
20112 # The commands to list exported symbols.
20113 export_symbols_cmds=$lt_export_symbols_cmds
20114
20115 # Symbols that should not be listed in the preloaded symbols.
20116 exclude_expsyms=$lt_exclude_expsyms
20117
20118 # Symbols that must always be exported.
20119 include_expsyms=$lt_include_expsyms
20120
20121 # Commands necessary for linking programs (against libraries) with templates.
20122 prelink_cmds=$lt_prelink_cmds
20123
20124 # Specify filename containing input files.
20125 file_list_spec=$lt_file_list_spec
20126
20127 # How to hardcode a shared library path into an executable.
20128 hardcode_action=$hardcode_action
20129
20130 # ### END LIBTOOL CONFIG
20131
20132 _LT_EOF
20133
20134 case $host_os in
20135 aix3*)
20136 cat <<\_LT_EOF >> "$cfgfile"
20137 # AIX sometimes has problems with the GCC collect2 program. For some
20138 # reason, if we set the COLLECT_NAMES environment variable, the problems
20139 # vanish in a puff of smoke.
20140 if test "X${COLLECT_NAMES+set}" != Xset; then
20141 COLLECT_NAMES=
20142 export COLLECT_NAMES
20143 fi
20144 _LT_EOF
20145 ;;
20146 esac
20147
20148
20149 ltmain="$ac_aux_dir/ltmain.sh"
20150
20151
20152 # We use sed instead of cat because bash on DJGPP gets confused if
20153 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20154 # text mode, it properly converts lines to CR/LF. This bash problem
20155 # is reportedly fixed, but why not run on old versions too?
20156 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20157 || (rm -f "$cfgfile"; exit 1)
20158
20159 case $xsi_shell in
20160 yes)
20161 cat << \_LT_EOF >> "$cfgfile"
20162
20163 # func_dirname file append nondir_replacement
20164 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20165 # otherwise set result to NONDIR_REPLACEMENT.
20166 func_dirname ()
20167 {
20168 case ${1} in
20169 */*) func_dirname_result="${1%/*}${2}" ;;
20170 * ) func_dirname_result="${3}" ;;
20171 esac
20172 }
20173
20174 # func_basename file
20175 func_basename ()
20176 {
20177 func_basename_result="${1##*/}"
20178 }
20179
20180 # func_dirname_and_basename file append nondir_replacement
20181 # perform func_basename and func_dirname in a single function
20182 # call:
20183 # dirname: Compute the dirname of FILE. If nonempty,
20184 # add APPEND to the result, otherwise set result
20185 # to NONDIR_REPLACEMENT.
20186 # value returned in "$func_dirname_result"
20187 # basename: Compute filename of FILE.
20188 # value retuned in "$func_basename_result"
20189 # Implementation must be kept synchronized with func_dirname
20190 # and func_basename. For efficiency, we do not delegate to
20191 # those functions but instead duplicate the functionality here.
20192 func_dirname_and_basename ()
20193 {
20194 case ${1} in
20195 */*) func_dirname_result="${1%/*}${2}" ;;
20196 * ) func_dirname_result="${3}" ;;
20197 esac
20198 func_basename_result="${1##*/}"
20199 }
20200
20201 # func_stripname prefix suffix name
20202 # strip PREFIX and SUFFIX off of NAME.
20203 # PREFIX and SUFFIX must not contain globbing or regex special
20204 # characters, hashes, percent signs, but SUFFIX may contain a leading
20205 # dot (in which case that matches only a dot).
20206 func_stripname ()
20207 {
20208 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20209 # positional parameters, so assign one to ordinary parameter first.
20210 func_stripname_result=${3}
20211 func_stripname_result=${func_stripname_result#"${1}"}
20212 func_stripname_result=${func_stripname_result%"${2}"}
20213 }
20214
20215 # func_opt_split
20216 func_opt_split ()
20217 {
20218 func_opt_split_opt=${1%%=*}
20219 func_opt_split_arg=${1#*=}
20220 }
20221
20222 # func_lo2o object
20223 func_lo2o ()
20224 {
20225 case ${1} in
20226 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20227 *) func_lo2o_result=${1} ;;
20228 esac
20229 }
20230
20231 # func_xform libobj-or-source
20232 func_xform ()
20233 {
20234 func_xform_result=${1%.*}.lo
20235 }
20236
20237 # func_arith arithmetic-term...
20238 func_arith ()
20239 {
20240 func_arith_result=$(( $* ))
20241 }
20242
20243 # func_len string
20244 # STRING may not start with a hyphen.
20245 func_len ()
20246 {
20247 func_len_result=${#1}
20248 }
20249
20250 _LT_EOF
20251 ;;
20252 *) # Bourne compatible functions.
20253 cat << \_LT_EOF >> "$cfgfile"
20254
20255 # func_dirname file append nondir_replacement
20256 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20257 # otherwise set result to NONDIR_REPLACEMENT.
20258 func_dirname ()
20259 {
20260 # Extract subdirectory from the argument.
20261 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20262 if test "X$func_dirname_result" = "X${1}"; then
20263 func_dirname_result="${3}"
20264 else
20265 func_dirname_result="$func_dirname_result${2}"
20266 fi
20267 }
20268
20269 # func_basename file
20270 func_basename ()
20271 {
20272 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20273 }
20274
20275
20276 # func_stripname prefix suffix name
20277 # strip PREFIX and SUFFIX off of NAME.
20278 # PREFIX and SUFFIX must not contain globbing or regex special
20279 # characters, hashes, percent signs, but SUFFIX may contain a leading
20280 # dot (in which case that matches only a dot).
20281 # func_strip_suffix prefix name
20282 func_stripname ()
20283 {
20284 case ${2} in
20285 .*) func_stripname_result=`$ECHO "X${3}" \
20286 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20287 *) func_stripname_result=`$ECHO "X${3}" \
20288 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20289 esac
20290 }
20291
20292 # sed scripts:
20293 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20294 my_sed_long_arg='1s/^-[^=]*=//'
20295
20296 # func_opt_split
20297 func_opt_split ()
20298 {
20299 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20300 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20301 }
20302
20303 # func_lo2o object
20304 func_lo2o ()
20305 {
20306 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20307 }
20308
20309 # func_xform libobj-or-source
20310 func_xform ()
20311 {
20312 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20313 }
20314
20315 # func_arith arithmetic-term...
20316 func_arith ()
20317 {
20318 func_arith_result=`expr "$@"`
20319 }
20320
20321 # func_len string
20322 # STRING may not start with a hyphen.
20323 func_len ()
20324 {
20325 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20326 }
20327
20328 _LT_EOF
20329 esac
20330
20331 case $lt_shell_append in
20332 yes)
20333 cat << \_LT_EOF >> "$cfgfile"
20334
20335 # func_append var value
20336 # Append VALUE to the end of shell variable VAR.
20337 func_append ()
20338 {
20339 eval "$1+=\$2"
20340 }
20341 _LT_EOF
20342 ;;
20343 *)
20344 cat << \_LT_EOF >> "$cfgfile"
20345
20346 # func_append var value
20347 # Append VALUE to the end of shell variable VAR.
20348 func_append ()
20349 {
20350 eval "$1=\$$1\$2"
20351 }
20352
20353 _LT_EOF
20354 ;;
20355 esac
20356
20357
20358 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20359 || (rm -f "$cfgfile"; exit 1)
20360
20361 mv -f "$cfgfile" "$ofile" ||
20362 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20363 chmod +x "$ofile"
20364
20365 ;;
20366 "po-directories":C)
20367 for ac_file in $CONFIG_FILES; do
20368 # Support "outfile[:infile[:infile...]]"
20369 case "$ac_file" in
20370 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20371 esac
20372 # PO directories have a Makefile.in generated from Makefile.in.in.
20373 case "$ac_file" in */Makefile.in)
20374 # Adjust a relative srcdir.
20375 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20376 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
20377 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20378 # In autoconf-2.13 it is called $ac_given_srcdir.
20379 # In autoconf-2.50 it is called $srcdir.
20380 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20381 case "$ac_given_srcdir" in
20382 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20383 /*) top_srcdir="$ac_given_srcdir" ;;
20384 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20385 esac
20386 # Treat a directory as a PO directory if and only if it has a
20387 # POTFILES.in file. This allows packages to have multiple PO
20388 # directories under different names or in different locations.
20389 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20390 rm -f "$ac_dir/POTFILES"
20391 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20392 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20393 POMAKEFILEDEPS="POTFILES.in"
20394 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
20395 # on $ac_dir but don't depend on user-specified configuration
20396 # parameters.
20397 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20398 # The LINGUAS file contains the set of available languages.
20399 if test -n "$OBSOLETE_ALL_LINGUAS"; then
20400 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20401 fi
20402 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20403 # Hide the ALL_LINGUAS assigment from automake < 1.5.
20404 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20405 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20406 else
20407 # The set of available languages was given in configure.in.
20408 # Hide the ALL_LINGUAS assigment from automake < 1.5.
20409 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20410 fi
20411 # Compute POFILES
20412 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
20413 # Compute UPDATEPOFILES
20414 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
20415 # Compute DUMMYPOFILES
20416 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
20417 # Compute GMOFILES
20418 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
20419 case "$ac_given_srcdir" in
20420 .) srcdirpre= ;;
20421 *) srcdirpre='$(srcdir)/' ;;
20422 esac
20423 POFILES=
20424 UPDATEPOFILES=
20425 DUMMYPOFILES=
20426 GMOFILES=
20427 for lang in $ALL_LINGUAS; do
20428 POFILES="$POFILES $srcdirpre$lang.po"
20429 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20430 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20431 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20432 done
20433 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20434 # environment variable.
20435 INST_LINGUAS=
20436 if test -n "$ALL_LINGUAS"; then
20437 for presentlang in $ALL_LINGUAS; do
20438 useit=no
20439 if test "%UNSET%" != "$LINGUAS"; then
20440 desiredlanguages="$LINGUAS"
20441 else
20442 desiredlanguages="$ALL_LINGUAS"
20443 fi
20444 for desiredlang in $desiredlanguages; do
20445 # Use the presentlang catalog if desiredlang is
20446 # a. equal to presentlang, or
20447 # b. a variant of presentlang (because in this case,
20448 # presentlang can be used as a fallback for messages
20449 # which are not translated in the desiredlang catalog).
20450 case "$desiredlang" in
20451 "$presentlang"*) useit=yes;;
20452 esac
20453 done
20454 if test $useit = yes; then
20455 INST_LINGUAS="$INST_LINGUAS $presentlang"
20456 fi
20457 done
20458 fi
20459 CATALOGS=
20460 if test -n "$INST_LINGUAS"; then
20461 for lang in $INST_LINGUAS; do
20462 CATALOGS="$CATALOGS $lang.gmo"
20463 done
20464 fi
20465 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20466 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
20467 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20468 if test -f "$f"; then
20469 case "$f" in
20470 *.orig | *.bak | *~) ;;
20471 *) cat "$f" >> "$ac_dir/Makefile" ;;
20472 esac
20473 fi
20474 done
20475 fi
20476 ;;
20477 esac
20478 done ;;
20479 "default":C) ;;
20480
20481 esac
20482 done # for ac_tag
20483
20484
20485 { (exit 0); exit 0; }
20486 _ACEOF
20487 chmod +x $CONFIG_STATUS
20488 ac_clean_files=$ac_clean_files_save
20489
20490
20491 # configure is writing to config.log, and then calls config.status.
20492 # config.status does its own redirection, appending to config.log.
20493 # Unfortunately, on DOS this fails, as config.log is still kept open
20494 # by configure, so config.status won't be able to write to it; its
20495 # output is simply discarded. So we exec the FD to /dev/null,
20496 # effectively closing config.log, so it can be properly (re)opened and
20497 # appended to by config.status. When coming back to configure, we
20498 # need to make the FD available again.
20499 if test "$no_create" != yes; then
20500 ac_cs_success=:
20501 ac_config_status_args=
20502 test "$silent" = yes &&
20503 ac_config_status_args="$ac_config_status_args --quiet"
20504 exec 5>/dev/null
20505 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20506 exec 5>>config.log
20507 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20508 # would make configure fail if this is the last instruction.
20509 $ac_cs_success || { (exit 1); exit 1; }
20510 fi
20511