Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / unicode / configure
CommitLineData
8d138742
CE
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for unicode 0.10.
4#
5# Report bugs to <courier-maildrop@lists.sourceforge.net>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110 ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140else
141 as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181
182 if test $as_have_required = yes && (eval ":
183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
198
199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
206
207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239 :
240else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253done
254IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501*)
502 ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532else
533 as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$lt_ECHO in
581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585esac
586
587ECHO=${lt_ECHO-echo}
588if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606$*
607_LT_EOF
608 exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713fi
714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
724
725exec 7<&0 </dev/null 6>&1
726
727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
736ac_clean_files=
737ac_config_libobj_dir=.
738LIBOBJS=
739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
745# Identity of this package.
746PACKAGE_NAME='unicode'
747PACKAGE_TARNAME='unicode'
748PACKAGE_VERSION='0.10'
749PACKAGE_STRING='unicode 0.10'
750PACKAGE_BUGREPORT='courier-maildrop@lists.sourceforge.net'
751
752ac_unique_file="mkiso8859.pl"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
756#ifdef HAVE_SYS_TYPES_H
757# include <sys/types.h>
758#endif
759#ifdef HAVE_SYS_STAT_H
760# include <sys/stat.h>
761#endif
762#ifdef STDC_HEADERS
763# include <stdlib.h>
764# include <stddef.h>
765#else
766# ifdef HAVE_STDLIB_H
767# include <stdlib.h>
768# endif
769#endif
770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772# include <memory.h>
773# endif
774# include <string.h>
775#endif
776#ifdef HAVE_STRINGS_H
777# include <strings.h>
778#endif
779#ifdef HAVE_INTTYPES_H
780# include <inttypes.h>
781#endif
782#ifdef HAVE_STDINT_H
783# include <stdint.h>
784#endif
785#ifdef HAVE_UNISTD_H
786# include <unistd.h>
787#endif"
788
789ac_subst_vars='am__EXEEXT_FALSE
790am__EXEEXT_TRUE
791LTLIBOBJS
792LIBOBJS
793unicode_xtest
794UPDATE_UNICODE_FALSE
795UPDATE_UNICODE_TRUE
796unicode
797PERL
798CPP
799OTOOL64
800OTOOL
801LIPO
802NMEDIT
803DSYMUTIL
804lt_ECHO
805RANLIB
806AR
807OBJDUMP
808LN_S
809NM
810ac_ct_DUMPBIN
811DUMPBIN
812LD
813FGREP
814EGREP
815GREP
816SED
817am__fastdepCC_FALSE
818am__fastdepCC_TRUE
819CCDEPMODE
820AMDEPBACKSLASH
821AMDEP_FALSE
822AMDEP_TRUE
823am__quote
824am__include
825DEPDIR
826OBJEXT
827EXEEXT
828ac_ct_CC
829CPPFLAGS
830LDFLAGS
831CFLAGS
832CC
833host_os
834host_vendor
835host_cpu
836host
837build_os
838build_vendor
839build_cpu
840build
841LIBTOOL
842am__untar
843am__tar
844AMTAR
845am__leading_dot
846SET_MAKE
847AWK
848mkdir_p
849MKDIR_P
850INSTALL_STRIP_PROGRAM
851STRIP
852install_sh
853MAKEINFO
854AUTOHEADER
855AUTOMAKE
856AUTOCONF
857ACLOCAL
858VERSION
859PACKAGE
860CYGPATH_W
861am__isrc
862INSTALL_DATA
863INSTALL_SCRIPT
864INSTALL_PROGRAM
865target_alias
866host_alias
867build_alias
868LIBS
869ECHO_T
870ECHO_N
871ECHO_C
872DEFS
873mandir
874localedir
875libdir
876psdir
877pdfdir
878dvidir
879htmldir
880infodir
881docdir
882oldincludedir
883includedir
884localstatedir
885sharedstatedir
886sysconfdir
887datadir
888datarootdir
889libexecdir
890sbindir
891bindir
892program_transform_name
893prefix
894exec_prefix
895PACKAGE_BUGREPORT
896PACKAGE_STRING
897PACKAGE_VERSION
898PACKAGE_TARNAME
899PACKAGE_NAME
900PATH_SEPARATOR
901SHELL'
902ac_subst_files=''
903ac_user_opts='
904enable_option_checking
905enable_shared
906enable_static
907with_pic
908enable_fast_install
909enable_dependency_tracking
910with_gnu_ld
911enable_libtool_lock
912enable_mimecharset
913enable_unicode
914enable_unicode_test
915'
916 ac_precious_vars='build_alias
917host_alias
918target_alias
919CC
920CFLAGS
921LDFLAGS
922LIBS
923CPPFLAGS
924CPP'
925
926
927# Initialize some variables set by options.
928ac_init_help=
929ac_init_version=false
930ac_unrecognized_opts=
931ac_unrecognized_sep=
932# The variables have the same names as the options, with
933# dashes changed to underlines.
934cache_file=/dev/null
935exec_prefix=NONE
936no_create=
937no_recursion=
938prefix=NONE
939program_prefix=NONE
940program_suffix=NONE
941program_transform_name=s,x,x,
942silent=
943site=
944srcdir=
945verbose=
946x_includes=NONE
947x_libraries=NONE
948
949# Installation directory options.
950# These are left unexpanded so users can "make install exec_prefix=/foo"
951# and all the variables that are supposed to be based on exec_prefix
952# by default will actually change.
953# Use braces instead of parens because sh, perl, etc. also accept them.
954# (The list follows the same order as the GNU Coding Standards.)
955bindir='${exec_prefix}/bin'
956sbindir='${exec_prefix}/sbin'
957libexecdir='${exec_prefix}/libexec'
958datarootdir='${prefix}/share'
959datadir='${datarootdir}'
960sysconfdir='${prefix}/etc'
961sharedstatedir='${prefix}/com'
962localstatedir='${prefix}/var'
963includedir='${prefix}/include'
964oldincludedir='/usr/include'
965docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
966infodir='${datarootdir}/info'
967htmldir='${docdir}'
968dvidir='${docdir}'
969pdfdir='${docdir}'
970psdir='${docdir}'
971libdir='${exec_prefix}/lib'
972localedir='${datarootdir}/locale'
973mandir='${datarootdir}/man'
974
975ac_prev=
976ac_dashdash=
977for ac_option
978do
979 # If the previous option needs an argument, assign it.
980 if test -n "$ac_prev"; then
981 eval $ac_prev=\$ac_option
982 ac_prev=
983 continue
984 fi
985
986 case $ac_option in
987 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
988 *) ac_optarg=yes ;;
989 esac
990
991 # Accept the important Cygnus configure options, so we can diagnose typos.
992
993 case $ac_dashdash$ac_option in
994 --)
995 ac_dashdash=yes ;;
996
997 -bindir | --bindir | --bindi | --bind | --bin | --bi)
998 ac_prev=bindir ;;
999 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000 bindir=$ac_optarg ;;
1001
1002 -build | --build | --buil | --bui | --bu)
1003 ac_prev=build_alias ;;
1004 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1005 build_alias=$ac_optarg ;;
1006
1007 -cache-file | --cache-file | --cache-fil | --cache-fi \
1008 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1009 ac_prev=cache_file ;;
1010 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1011 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1012 cache_file=$ac_optarg ;;
1013
1014 --config-cache | -C)
1015 cache_file=config.cache ;;
1016
1017 -datadir | --datadir | --datadi | --datad)
1018 ac_prev=datadir ;;
1019 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1020 datadir=$ac_optarg ;;
1021
1022 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1023 | --dataroo | --dataro | --datar)
1024 ac_prev=datarootdir ;;
1025 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1026 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1027 datarootdir=$ac_optarg ;;
1028
1029 -disable-* | --disable-*)
1030 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1034 { (exit 1); exit 1; }; }
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1038 *"
1039"enable_$ac_useropt"
1040"*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1043 esac
1044 eval enable_$ac_useropt=no ;;
1045
1046 -docdir | --docdir | --docdi | --doc | --do)
1047 ac_prev=docdir ;;
1048 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1049 docdir=$ac_optarg ;;
1050
1051 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1052 ac_prev=dvidir ;;
1053 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1054 dvidir=$ac_optarg ;;
1055
1056 -enable-* | --enable-*)
1057 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_useropt_orig=$ac_useropt
1063 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064 case $ac_user_opts in
1065 *"
1066"enable_$ac_useropt"
1067"*) ;;
1068 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1069 ac_unrecognized_sep=', ';;
1070 esac
1071 eval enable_$ac_useropt=\$ac_optarg ;;
1072
1073 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075 | --exec | --exe | --ex)
1076 ac_prev=exec_prefix ;;
1077 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079 | --exec=* | --exe=* | --ex=*)
1080 exec_prefix=$ac_optarg ;;
1081
1082 -gas | --gas | --ga | --g)
1083 # Obsolete; use --with-gas.
1084 with_gas=yes ;;
1085
1086 -help | --help | --hel | --he | -h)
1087 ac_init_help=long ;;
1088 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089 ac_init_help=recursive ;;
1090 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091 ac_init_help=short ;;
1092
1093 -host | --host | --hos | --ho)
1094 ac_prev=host_alias ;;
1095 -host=* | --host=* | --hos=* | --ho=*)
1096 host_alias=$ac_optarg ;;
1097
1098 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1099 ac_prev=htmldir ;;
1100 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1101 | --ht=*)
1102 htmldir=$ac_optarg ;;
1103
1104 -includedir | --includedir | --includedi | --included | --include \
1105 | --includ | --inclu | --incl | --inc)
1106 ac_prev=includedir ;;
1107 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108 | --includ=* | --inclu=* | --incl=* | --inc=*)
1109 includedir=$ac_optarg ;;
1110
1111 -infodir | --infodir | --infodi | --infod | --info | --inf)
1112 ac_prev=infodir ;;
1113 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114 infodir=$ac_optarg ;;
1115
1116 -libdir | --libdir | --libdi | --libd)
1117 ac_prev=libdir ;;
1118 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119 libdir=$ac_optarg ;;
1120
1121 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122 | --libexe | --libex | --libe)
1123 ac_prev=libexecdir ;;
1124 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125 | --libexe=* | --libex=* | --libe=*)
1126 libexecdir=$ac_optarg ;;
1127
1128 -localedir | --localedir | --localedi | --localed | --locale)
1129 ac_prev=localedir ;;
1130 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131 localedir=$ac_optarg ;;
1132
1133 -localstatedir | --localstatedir | --localstatedi | --localstated \
1134 | --localstate | --localstat | --localsta | --localst | --locals)
1135 ac_prev=localstatedir ;;
1136 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138 localstatedir=$ac_optarg ;;
1139
1140 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1141 ac_prev=mandir ;;
1142 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143 mandir=$ac_optarg ;;
1144
1145 -nfp | --nfp | --nf)
1146 # Obsolete; use --without-fp.
1147 with_fp=no ;;
1148
1149 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150 | --no-cr | --no-c | -n)
1151 no_create=yes ;;
1152
1153 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1155 no_recursion=yes ;;
1156
1157 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159 | --oldin | --oldi | --old | --ol | --o)
1160 ac_prev=oldincludedir ;;
1161 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164 oldincludedir=$ac_optarg ;;
1165
1166 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1167 ac_prev=prefix ;;
1168 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169 prefix=$ac_optarg ;;
1170
1171 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172 | --program-pre | --program-pr | --program-p)
1173 ac_prev=program_prefix ;;
1174 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176 program_prefix=$ac_optarg ;;
1177
1178 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179 | --program-suf | --program-su | --program-s)
1180 ac_prev=program_suffix ;;
1181 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183 program_suffix=$ac_optarg ;;
1184
1185 -program-transform-name | --program-transform-name \
1186 | --program-transform-nam | --program-transform-na \
1187 | --program-transform-n | --program-transform- \
1188 | --program-transform | --program-transfor \
1189 | --program-transfo | --program-transf \
1190 | --program-trans | --program-tran \
1191 | --progr-tra | --program-tr | --program-t)
1192 ac_prev=program_transform_name ;;
1193 -program-transform-name=* | --program-transform-name=* \
1194 | --program-transform-nam=* | --program-transform-na=* \
1195 | --program-transform-n=* | --program-transform-=* \
1196 | --program-transform=* | --program-transfor=* \
1197 | --program-transfo=* | --program-transf=* \
1198 | --program-trans=* | --program-tran=* \
1199 | --progr-tra=* | --program-tr=* | --program-t=*)
1200 program_transform_name=$ac_optarg ;;
1201
1202 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1203 ac_prev=pdfdir ;;
1204 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205 pdfdir=$ac_optarg ;;
1206
1207 -psdir | --psdir | --psdi | --psd | --ps)
1208 ac_prev=psdir ;;
1209 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1210 psdir=$ac_optarg ;;
1211
1212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1214 silent=yes ;;
1215
1216 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217 ac_prev=sbindir ;;
1218 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219 | --sbi=* | --sb=*)
1220 sbindir=$ac_optarg ;;
1221
1222 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224 | --sharedst | --shareds | --shared | --share | --shar \
1225 | --sha | --sh)
1226 ac_prev=sharedstatedir ;;
1227 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230 | --sha=* | --sh=*)
1231 sharedstatedir=$ac_optarg ;;
1232
1233 -site | --site | --sit)
1234 ac_prev=site ;;
1235 -site=* | --site=* | --sit=*)
1236 site=$ac_optarg ;;
1237
1238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239 ac_prev=srcdir ;;
1240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241 srcdir=$ac_optarg ;;
1242
1243 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244 | --syscon | --sysco | --sysc | --sys | --sy)
1245 ac_prev=sysconfdir ;;
1246 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248 sysconfdir=$ac_optarg ;;
1249
1250 -target | --target | --targe | --targ | --tar | --ta | --t)
1251 ac_prev=target_alias ;;
1252 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253 target_alias=$ac_optarg ;;
1254
1255 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256 verbose=yes ;;
1257
1258 -version | --version | --versio | --versi | --vers | -V)
1259 ac_init_version=: ;;
1260
1261 -with-* | --with-*)
1262 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1266 { (exit 1); exit 1; }; }
1267 ac_useropt_orig=$ac_useropt
1268 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269 case $ac_user_opts in
1270 *"
1271"with_$ac_useropt"
1272"*) ;;
1273 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1274 ac_unrecognized_sep=', ';;
1275 esac
1276 eval with_$ac_useropt=\$ac_optarg ;;
1277
1278 -without-* | --without-*)
1279 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1283 { (exit 1); exit 1; }; }
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1287 *"
1288"with_$ac_useropt"
1289"*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=no ;;
1294
1295 --x)
1296 # Obsolete; use --with-x.
1297 with_x=yes ;;
1298
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1305
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1312
1313 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1314Try \`$0 --help' for more information." >&2
1315 { (exit 1); exit 1; }; }
1316 ;;
1317
1318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323 { (exit 1); exit 1; }; }
1324 eval $ac_envvar=\$ac_optarg
1325 export $ac_envvar ;;
1326
1327 *)
1328 # FIXME: should be removed in autoconf 3.0.
1329 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333 ;;
1334
1335 esac
1336done
1337
1338if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1341 { (exit 1); exit 1; }; }
1342fi
1343
1344if test -n "$ac_unrecognized_opts"; then
1345 case $enable_option_checking in
1346 no) ;;
1347 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1348 { (exit 1); exit 1; }; } ;;
1349 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1350 esac
1351fi
1352
1353# Check all directory arguments for consistency.
1354for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1355 datadir sysconfdir sharedstatedir localstatedir includedir \
1356 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1357 libdir localedir mandir
1358do
1359 eval ac_val=\$$ac_var
1360 # Remove trailing slashes.
1361 case $ac_val in
1362 */ )
1363 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1364 eval $ac_var=\$ac_val;;
1365 esac
1366 # Be sure to have absolute directory names.
1367 case $ac_val in
1368 [\\/$]* | ?:[\\/]* ) continue;;
1369 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1370 esac
1371 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1372 { (exit 1); exit 1; }; }
1373done
1374
1375# There might be people who depend on the old broken behavior: `$host'
1376# used to hold the argument of --host etc.
1377# FIXME: To remove some day.
1378build=$build_alias
1379host=$host_alias
1380target=$target_alias
1381
1382# FIXME: To remove some day.
1383if test "x$host_alias" != x; then
1384 if test "x$build_alias" = x; then
1385 cross_compiling=maybe
1386 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1387 If a cross compiler is detected then cross compile mode will be used." >&2
1388 elif test "x$build_alias" != "x$host_alias"; then
1389 cross_compiling=yes
1390 fi
1391fi
1392
1393ac_tool_prefix=
1394test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395
1396test "$silent" = yes && exec 6>/dev/null
1397
1398
1399ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400ac_ls_di=`ls -di .` &&
1401ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1403 { (exit 1); exit 1; }; }
1404test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1405 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1406 { (exit 1); exit 1; }; }
1407
1408
1409# Find the source files, if location was not specified.
1410if test -z "$srcdir"; then
1411 ac_srcdir_defaulted=yes
1412 # Try the directory containing this script, then the parent directory.
1413 ac_confdir=`$as_dirname -- "$as_myself" ||
1414$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415 X"$as_myself" : 'X\(//\)[^/]' \| \
1416 X"$as_myself" : 'X\(//\)$' \| \
1417 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1418$as_echo X"$as_myself" |
1419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\/\)[^/].*/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\/\)$/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\).*/{
1432 s//\1/
1433 q
1434 }
1435 s/.*/./; q'`
1436 srcdir=$ac_confdir
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 srcdir=..
1439 fi
1440else
1441 ac_srcdir_defaulted=no
1442fi
1443if test ! -r "$srcdir/$ac_unique_file"; then
1444 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1445 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1446 { (exit 1); exit 1; }; }
1447fi
1448ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449ac_abs_confdir=`(
1450 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1451 { (exit 1); exit 1; }; }
1452 pwd)`
1453# When building in place, set srcdir=.
1454if test "$ac_abs_confdir" = "$ac_pwd"; then
1455 srcdir=.
1456fi
1457# Remove unnecessary trailing slashes from srcdir.
1458# Double slashes in file names in object file debugging info
1459# mess up M-x gdb in Emacs.
1460case $srcdir in
1461*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462esac
1463for ac_var in $ac_precious_vars; do
1464 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_env_${ac_var}_value=\$${ac_var}
1466 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1468done
1469
1470#
1471# Report the --help message.
1472#
1473if test "$ac_init_help" = "long"; then
1474 # Omit some internal or obsolete options to make the list less imposing.
1475 # This message is too long to be a string in the A/UX 3.1 sh.
1476 cat <<_ACEOF
1477\`configure' configures unicode 0.10 to adapt to many kinds of systems.
1478
1479Usage: $0 [OPTION]... [VAR=VALUE]...
1480
1481To assign environment variables (e.g., CC, CFLAGS...), specify them as
1482VAR=VALUE. See below for descriptions of some of the useful variables.
1483
1484Defaults for the options are specified in brackets.
1485
1486Configuration:
1487 -h, --help display this help and exit
1488 --help=short display options specific to this package
1489 --help=recursive display the short help of all the included packages
1490 -V, --version display version information and exit
1491 -q, --quiet, --silent do not print \`checking...' messages
1492 --cache-file=FILE cache test results in FILE [disabled]
1493 -C, --config-cache alias for \`--cache-file=config.cache'
1494 -n, --no-create do not create output files
1495 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496
1497Installation directories:
1498 --prefix=PREFIX install architecture-independent files in PREFIX
1499 [$ac_default_prefix]
1500 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1501 [PREFIX]
1502
1503By default, \`make install' will install all the files in
1504\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1505an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1506for instance \`--prefix=\$HOME'.
1507
1508For better control, use the options below.
1509
1510Fine tuning of the installation directories:
1511 --bindir=DIR user executables [EPREFIX/bin]
1512 --sbindir=DIR system admin executables [EPREFIX/sbin]
1513 --libexecdir=DIR program executables [EPREFIX/libexec]
1514 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1515 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1516 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1517 --libdir=DIR object code libraries [EPREFIX/lib]
1518 --includedir=DIR C header files [PREFIX/include]
1519 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1520 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1521 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1522 --infodir=DIR info documentation [DATAROOTDIR/info]
1523 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1524 --mandir=DIR man documentation [DATAROOTDIR/man]
1525 --docdir=DIR documentation root [DATAROOTDIR/doc/unicode]
1526 --htmldir=DIR html documentation [DOCDIR]
1527 --dvidir=DIR dvi documentation [DOCDIR]
1528 --pdfdir=DIR pdf documentation [DOCDIR]
1529 --psdir=DIR ps documentation [DOCDIR]
1530_ACEOF
1531
1532 cat <<\_ACEOF
1533
1534Program names:
1535 --program-prefix=PREFIX prepend PREFIX to installed program names
1536 --program-suffix=SUFFIX append SUFFIX to installed program names
1537 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1538
1539System types:
1540 --build=BUILD configure for building on BUILD [guessed]
1541 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1542_ACEOF
1543fi
1544
1545if test -n "$ac_init_help"; then
1546 case $ac_init_help in
1547 short | recursive ) echo "Configuration of unicode 0.10:";;
1548 esac
1549 cat <<\_ACEOF
1550
1551Optional Features:
1552 --disable-option-checking ignore unrecognized --enable/--with options
1553 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1554 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1555 --enable-shared[=PKGS] build shared libraries [default=yes]
1556 --enable-static[=PKGS] build static libraries [default=yes]
1557 --enable-fast-install[=PKGS]
1558 optimize for fast installation [default=yes]
1559 --disable-dependency-tracking speeds up one-time build
1560 --enable-dependency-tracking do not reject slow dependency extractors
1561 --disable-libtool-lock avoid locking (might break parallel builds)
1562 --enable-mimecharset=charset Default MIME charset to set on new messages
1563 --disable-unicode Disable all of unicode except iso-8859-1
1564 --enable-unicode=chset,chset Comma-sep list of unicode charsets to use
1565
1566
1567Optional Packages:
1568 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1569 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1570 --with-pic try to use only PIC/non-PIC objects [default=use
1571 both]
1572 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1573
1574Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
1582 CPP C preprocessor
1583
1584Use these variables to override the choices made by `configure' or to help
1585it to find libraries and programs with nonstandard names/locations.
1586
1587Report bugs to <courier-maildrop@lists.sourceforge.net>.
1588_ACEOF
1589ac_status=$?
1590fi
1591
1592if test "$ac_init_help" = "recursive"; then
1593 # If there are subdirs, report their specific --help.
1594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1595 test -d "$ac_dir" ||
1596 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1597 continue
1598 ac_builddir=.
1599
1600case "$ac_dir" in
1601.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602*)
1603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1604 # A ".." for each directory in $ac_dir_suffix.
1605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1606 case $ac_top_builddir_sub in
1607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1609 esac ;;
1610esac
1611ac_abs_top_builddir=$ac_pwd
1612ac_abs_builddir=$ac_pwd$ac_dir_suffix
1613# for backward compatibility:
1614ac_top_builddir=$ac_top_build_prefix
1615
1616case $srcdir in
1617 .) # We are building in place.
1618 ac_srcdir=.
1619 ac_top_srcdir=$ac_top_builddir_sub
1620 ac_abs_top_srcdir=$ac_pwd ;;
1621 [\\/]* | ?:[\\/]* ) # Absolute name.
1622 ac_srcdir=$srcdir$ac_dir_suffix;
1623 ac_top_srcdir=$srcdir
1624 ac_abs_top_srcdir=$srcdir ;;
1625 *) # Relative name.
1626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1627 ac_top_srcdir=$ac_top_build_prefix$srcdir
1628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1629esac
1630ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1631
1632 cd "$ac_dir" || { ac_status=$?; continue; }
1633 # Check for guested configure.
1634 if test -f "$ac_srcdir/configure.gnu"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1637 elif test -f "$ac_srcdir/configure"; then
1638 echo &&
1639 $SHELL "$ac_srcdir/configure" --help=recursive
1640 else
1641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1642 fi || ac_status=$?
1643 cd "$ac_pwd" || { ac_status=$?; break; }
1644 done
1645fi
1646
1647test -n "$ac_init_help" && exit $ac_status
1648if $ac_init_version; then
1649 cat <<\_ACEOF
1650unicode configure 0.10
1651generated by GNU Autoconf 2.63
1652
1653Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16542002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1655This configure script is free software; the Free Software Foundation
1656gives unlimited permission to copy, distribute and modify it.
1657_ACEOF
1658 exit
1659fi
1660cat >config.log <<_ACEOF
1661This file contains any messages produced by compilers while
1662running configure, to aid debugging if configure makes a mistake.
1663
1664It was created by unicode $as_me 0.10, which was
1665generated by GNU Autoconf 2.63. Invocation command line was
1666
1667 $ $0 $@
1668
1669_ACEOF
1670exec 5>>config.log
1671{
1672cat <<_ASUNAME
1673## --------- ##
1674## Platform. ##
1675## --------- ##
1676
1677hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1678uname -m = `(uname -m) 2>/dev/null || echo unknown`
1679uname -r = `(uname -r) 2>/dev/null || echo unknown`
1680uname -s = `(uname -s) 2>/dev/null || echo unknown`
1681uname -v = `(uname -v) 2>/dev/null || echo unknown`
1682
1683/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1684/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1685
1686/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1687/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1688/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1689/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1690/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1691/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1692/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1693
1694_ASUNAME
1695
1696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697for as_dir in $PATH
1698do
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 $as_echo "PATH: $as_dir"
1702done
1703IFS=$as_save_IFS
1704
1705} >&5
1706
1707cat >&5 <<_ACEOF
1708
1709
1710## ----------- ##
1711## Core tests. ##
1712## ----------- ##
1713
1714_ACEOF
1715
1716
1717# Keep a trace of the command line.
1718# Strip out --no-create and --no-recursion so they do not pile up.
1719# Strip out --silent because we don't want to record it for future runs.
1720# Also quote any args containing shell meta-characters.
1721# Make two passes to allow for proper duplicate-argument suppression.
1722ac_configure_args=
1723ac_configure_args0=
1724ac_configure_args1=
1725ac_must_keep_next=false
1726for ac_pass in 1 2
1727do
1728 for ac_arg
1729 do
1730 case $ac_arg in
1731 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1732 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1733 | -silent | --silent | --silen | --sile | --sil)
1734 continue ;;
1735 *\'*)
1736 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1737 esac
1738 case $ac_pass in
1739 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1740 2)
1741 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1742 if test $ac_must_keep_next = true; then
1743 ac_must_keep_next=false # Got value, back to normal.
1744 else
1745 case $ac_arg in
1746 *=* | --config-cache | -C | -disable-* | --disable-* \
1747 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1748 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1749 | -with-* | --with-* | -without-* | --without-* | --x)
1750 case "$ac_configure_args0 " in
1751 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1752 esac
1753 ;;
1754 -* ) ac_must_keep_next=true ;;
1755 esac
1756 fi
1757 ac_configure_args="$ac_configure_args '$ac_arg'"
1758 ;;
1759 esac
1760 done
1761done
1762$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1763$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1764
1765# When interrupted or exit'd, cleanup temporary files, and complete
1766# config.log. We remove comments because anyway the quotes in there
1767# would cause problems or look ugly.
1768# WARNING: Use '\'' to represent an apostrophe within the trap.
1769# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1770trap 'exit_status=$?
1771 # Save into config.log some information that might help in debugging.
1772 {
1773 echo
1774
1775 cat <<\_ASBOX
1776## ---------------- ##
1777## Cache variables. ##
1778## ---------------- ##
1779_ASBOX
1780 echo
1781 # The following way of writing the cache mishandles newlines in values,
1782(
1783 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1784 eval ac_val=\$$ac_var
1785 case $ac_val in #(
1786 *${as_nl}*)
1787 case $ac_var in #(
1788 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1789$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1790 esac
1791 case $ac_var in #(
1792 _ | IFS | as_nl) ;; #(
1793 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1794 *) $as_unset $ac_var ;;
1795 esac ;;
1796 esac
1797 done
1798 (set) 2>&1 |
1799 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1800 *${as_nl}ac_space=\ *)
1801 sed -n \
1802 "s/'\''/'\''\\\\'\'''\''/g;
1803 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1804 ;; #(
1805 *)
1806 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1807 ;;
1808 esac |
1809 sort
1810)
1811 echo
1812
1813 cat <<\_ASBOX
1814## ----------------- ##
1815## Output variables. ##
1816## ----------------- ##
1817_ASBOX
1818 echo
1819 for ac_var in $ac_subst_vars
1820 do
1821 eval ac_val=\$$ac_var
1822 case $ac_val in
1823 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824 esac
1825 $as_echo "$ac_var='\''$ac_val'\''"
1826 done | sort
1827 echo
1828
1829 if test -n "$ac_subst_files"; then
1830 cat <<\_ASBOX
1831## ------------------- ##
1832## File substitutions. ##
1833## ------------------- ##
1834_ASBOX
1835 echo
1836 for ac_var in $ac_subst_files
1837 do
1838 eval ac_val=\$$ac_var
1839 case $ac_val in
1840 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1841 esac
1842 $as_echo "$ac_var='\''$ac_val'\''"
1843 done | sort
1844 echo
1845 fi
1846
1847 if test -s confdefs.h; then
1848 cat <<\_ASBOX
1849## ----------- ##
1850## confdefs.h. ##
1851## ----------- ##
1852_ASBOX
1853 echo
1854 cat confdefs.h
1855 echo
1856 fi
1857 test "$ac_signal" != 0 &&
1858 $as_echo "$as_me: caught signal $ac_signal"
1859 $as_echo "$as_me: exit $exit_status"
1860 } >&5
1861 rm -f core *.core core.conftest.* &&
1862 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1863 exit $exit_status
1864' 0
1865for ac_signal in 1 2 13 15; do
1866 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1867done
1868ac_signal=0
1869
1870# confdefs.h avoids OS command line length limits that DEFS can exceed.
1871rm -f -r conftest* confdefs.h
1872
1873# Predefined preprocessor variables.
1874
1875cat >>confdefs.h <<_ACEOF
1876#define PACKAGE_NAME "$PACKAGE_NAME"
1877_ACEOF
1878
1879
1880cat >>confdefs.h <<_ACEOF
1881#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1882_ACEOF
1883
1884
1885cat >>confdefs.h <<_ACEOF
1886#define PACKAGE_VERSION "$PACKAGE_VERSION"
1887_ACEOF
1888
1889
1890cat >>confdefs.h <<_ACEOF
1891#define PACKAGE_STRING "$PACKAGE_STRING"
1892_ACEOF
1893
1894
1895cat >>confdefs.h <<_ACEOF
1896#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1897_ACEOF
1898
1899
1900# Let the site file select an alternate cache file if it wants to.
1901# Prefer an explicitly selected file to automatically selected ones.
1902ac_site_file1=NONE
1903ac_site_file2=NONE
1904if test -n "$CONFIG_SITE"; then
1905 ac_site_file1=$CONFIG_SITE
1906elif test "x$prefix" != xNONE; then
1907 ac_site_file1=$prefix/share/config.site
1908 ac_site_file2=$prefix/etc/config.site
1909else
1910 ac_site_file1=$ac_default_prefix/share/config.site
1911 ac_site_file2=$ac_default_prefix/etc/config.site
1912fi
1913for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1914do
1915 test "x$ac_site_file" = xNONE && continue
1916 if test -r "$ac_site_file"; then
1917 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1918$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1919 sed 's/^/| /' "$ac_site_file" >&5
1920 . "$ac_site_file"
1921 fi
1922done
1923
1924if test -r "$cache_file"; then
1925 # Some versions of bash will fail to source /dev/null (special
1926 # files actually), so we avoid doing that.
1927 if test -f "$cache_file"; then
1928 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1929$as_echo "$as_me: loading cache $cache_file" >&6;}
1930 case $cache_file in
1931 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1932 *) . "./$cache_file";;
1933 esac
1934 fi
1935else
1936 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1937$as_echo "$as_me: creating cache $cache_file" >&6;}
1938 >$cache_file
1939fi
1940
1941# Check that the precious variables saved in the cache have kept the same
1942# value.
1943ac_cache_corrupted=false
1944for ac_var in $ac_precious_vars; do
1945 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1946 eval ac_new_set=\$ac_env_${ac_var}_set
1947 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1948 eval ac_new_val=\$ac_env_${ac_var}_value
1949 case $ac_old_set,$ac_new_set in
1950 set,)
1951 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1952$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1953 ac_cache_corrupted=: ;;
1954 ,set)
1955 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1956$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1957 ac_cache_corrupted=: ;;
1958 ,);;
1959 *)
1960 if test "x$ac_old_val" != "x$ac_new_val"; then
1961 # differences in whitespace do not lead to failure.
1962 ac_old_val_w=`echo x $ac_old_val`
1963 ac_new_val_w=`echo x $ac_new_val`
1964 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1965 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1966$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1967 ac_cache_corrupted=:
1968 else
1969 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1970$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1971 eval $ac_var=\$ac_old_val
1972 fi
1973 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1974$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1975 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1976$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1977 fi;;
1978 esac
1979 # Pass precious variables to config.status.
1980 if test "$ac_new_set" = set; then
1981 case $ac_new_val in
1982 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1983 *) ac_arg=$ac_var=$ac_new_val ;;
1984 esac
1985 case " $ac_configure_args " in
1986 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1987 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1988 esac
1989 fi
1990done
1991if $ac_cache_corrupted; then
1992 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1994 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1995$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1996 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1997$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1998 { (exit 1); exit 1; }; }
1999fi
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025ac_ext=c
2026ac_cpp='$CPP $CPPFLAGS'
2027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2029ac_compiler_gnu=$ac_cv_c_compiler_gnu
2030
2031
2032
2033>confdefs.h # Kill PACKAGE_ macros
2034
2035
2036
2037LPATH="$PATH:/usr/local/bin"
2038
2039ac_config_headers="$ac_config_headers unicode_config.h"
2040
2041am__api_version='1.11'
2042
2043ac_aux_dir=
2044for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2045 if test -f "$ac_dir/install-sh"; then
2046 ac_aux_dir=$ac_dir
2047 ac_install_sh="$ac_aux_dir/install-sh -c"
2048 break
2049 elif test -f "$ac_dir/install.sh"; then
2050 ac_aux_dir=$ac_dir
2051 ac_install_sh="$ac_aux_dir/install.sh -c"
2052 break
2053 elif test -f "$ac_dir/shtool"; then
2054 ac_aux_dir=$ac_dir
2055 ac_install_sh="$ac_aux_dir/shtool install -c"
2056 break
2057 fi
2058done
2059if test -z "$ac_aux_dir"; then
2060 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2061$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2062 { (exit 1); exit 1; }; }
2063fi
2064
2065# These three variables are undocumented and unsupported,
2066# and are intended to be withdrawn in a future Autoconf release.
2067# They can cause serious problems if a builder's source tree is in a directory
2068# whose full name contains unusual characters.
2069ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2070ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2071ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2072
2073
2074# Find a good install program. We prefer a C program (faster),
2075# so one script is as good as another. But avoid the broken or
2076# incompatible versions:
2077# SysV /etc/install, /usr/sbin/install
2078# SunOS /usr/etc/install
2079# IRIX /sbin/install
2080# AIX /bin/install
2081# AmigaOS /C/install, which installs bootblocks on floppy discs
2082# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2083# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2084# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2085# OS/2's system install, which has a completely different semantic
2086# ./install, which can be erroneously created by make from ./install.sh.
2087# Reject install programs that cannot install multiple files.
2088{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2089$as_echo_n "checking for a BSD-compatible install... " >&6; }
2090if test -z "$INSTALL"; then
2091if test "${ac_cv_path_install+set}" = set; then
2092 $as_echo_n "(cached) " >&6
2093else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095for as_dir in $PATH
2096do
2097 IFS=$as_save_IFS
2098 test -z "$as_dir" && as_dir=.
2099 # Account for people who put trailing slashes in PATH elements.
2100case $as_dir/ in
2101 ./ | .// | /cC/* | \
2102 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2103 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2104 /usr/ucb/* ) ;;
2105 *)
2106 # OSF1 and SCO ODT 3.0 have their own names for install.
2107 # Don't use installbsd from OSF since it installs stuff as root
2108 # by default.
2109 for ac_prog in ginstall scoinst install; do
2110 for ac_exec_ext in '' $ac_executable_extensions; do
2111 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2112 if test $ac_prog = install &&
2113 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2114 # AIX install. It has an incompatible calling convention.
2115 :
2116 elif test $ac_prog = install &&
2117 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2118 # program-specific install script used by HP pwplus--don't use.
2119 :
2120 else
2121 rm -rf conftest.one conftest.two conftest.dir
2122 echo one > conftest.one
2123 echo two > conftest.two
2124 mkdir conftest.dir
2125 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2126 test -s conftest.one && test -s conftest.two &&
2127 test -s conftest.dir/conftest.one &&
2128 test -s conftest.dir/conftest.two
2129 then
2130 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2131 break 3
2132 fi
2133 fi
2134 fi
2135 done
2136 done
2137 ;;
2138esac
2139
2140done
2141IFS=$as_save_IFS
2142
2143rm -rf conftest.one conftest.two conftest.dir
2144
2145fi
2146 if test "${ac_cv_path_install+set}" = set; then
2147 INSTALL=$ac_cv_path_install
2148 else
2149 # As a last resort, use the slow shell script. Don't cache a
2150 # value for INSTALL within a source directory, because that will
2151 # break other packages using the cache if that directory is
2152 # removed, or if the value is a relative name.
2153 INSTALL=$ac_install_sh
2154 fi
2155fi
2156{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2157$as_echo "$INSTALL" >&6; }
2158
2159# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2160# It thinks the first close brace ends the variable substitution.
2161test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2162
2163test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2164
2165test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2166
2167{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2168$as_echo_n "checking whether build environment is sane... " >&6; }
2169# Just in case
2170sleep 1
2171echo timestamp > conftest.file
2172# Reject unsafe characters in $srcdir or the absolute working directory
2173# name. Accept space and tab only in the latter.
2174am_lf='
2175'
2176case `pwd` in
2177 *[\\\"\#\$\&\'\`$am_lf]*)
2178 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2179$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2180 { (exit 1); exit 1; }; };;
2181esac
2182case $srcdir in
2183 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2184 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2185$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2186 { (exit 1); exit 1; }; };;
2187esac
2188
2189# Do `set' in a subshell so we don't clobber the current shell's
2190# arguments. Must try -L first in case configure is actually a
2191# symlink; some systems play weird games with the mod time of symlinks
2192# (eg FreeBSD returns the mod time of the symlink's containing
2193# directory).
2194if (
2195 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2196 if test "$*" = "X"; then
2197 # -L didn't work.
2198 set X `ls -t "$srcdir/configure" conftest.file`
2199 fi
2200 rm -f conftest.file
2201 if test "$*" != "X $srcdir/configure conftest.file" \
2202 && test "$*" != "X conftest.file $srcdir/configure"; then
2203
2204 # If neither matched, then we have a broken ls. This can happen
2205 # if, for instance, CONFIG_SHELL is bash and it inherits a
2206 # broken ls alias from the environment. This has actually
2207 # happened. Such a system could not be considered "sane".
2208 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2209alias in your environment" >&5
2210$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2211alias in your environment" >&2;}
2212 { (exit 1); exit 1; }; }
2213 fi
2214
2215 test "$2" = conftest.file
2216 )
2217then
2218 # Ok.
2219 :
2220else
2221 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2222Check your system clock" >&5
2223$as_echo "$as_me: error: newly created file is older than distributed files!
2224Check your system clock" >&2;}
2225 { (exit 1); exit 1; }; }
2226fi
2227{ $as_echo "$as_me:$LINENO: result: yes" >&5
2228$as_echo "yes" >&6; }
2229test "$program_prefix" != NONE &&
2230 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2231# Use a double $ so make ignores it.
2232test "$program_suffix" != NONE &&
2233 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2234# Double any \ or $.
2235# By default was `s,x,x', remove it if useless.
2236ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2237program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2238
2239# expand $ac_aux_dir to an absolute path
2240am_aux_dir=`cd $ac_aux_dir && pwd`
2241
2242if test x"${MISSING+set}" != xset; then
2243 case $am_aux_dir in
2244 *\ * | *\ *)
2245 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2246 *)
2247 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2248 esac
2249fi
2250# Use eval to expand $SHELL
2251if eval "$MISSING --run true"; then
2252 am_missing_run="$MISSING --run "
2253else
2254 am_missing_run=
2255 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2256$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2257fi
2258
2259if test x"${install_sh}" != xset; then
2260 case $am_aux_dir in
2261 *\ * | *\ *)
2262 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2263 *)
2264 install_sh="\${SHELL} $am_aux_dir/install-sh"
2265 esac
2266fi
2267
2268# Installed binaries are usually stripped using `strip' when the user
2269# run `make install-strip'. However `strip' might not be the right
2270# tool to use in cross-compilation environments, therefore Automake
2271# will honor the `STRIP' environment variable to overrule this program.
2272if test "$cross_compiling" != no; then
2273 if test -n "$ac_tool_prefix"; then
2274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2275set dummy ${ac_tool_prefix}strip; ac_word=$2
2276{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2277$as_echo_n "checking for $ac_word... " >&6; }
2278if test "${ac_cv_prog_STRIP+set}" = set; then
2279 $as_echo_n "(cached) " >&6
2280else
2281 if test -n "$STRIP"; then
2282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2283else
2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2292 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 break 2
2294 fi
2295done
2296done
2297IFS=$as_save_IFS
2298
2299fi
2300fi
2301STRIP=$ac_cv_prog_STRIP
2302if test -n "$STRIP"; then
2303 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2304$as_echo "$STRIP" >&6; }
2305else
2306 { $as_echo "$as_me:$LINENO: result: no" >&5
2307$as_echo "no" >&6; }
2308fi
2309
2310
2311fi
2312if test -z "$ac_cv_prog_STRIP"; then
2313 ac_ct_STRIP=$STRIP
2314 # Extract the first word of "strip", so it can be a program name with args.
2315set dummy strip; ac_word=$2
2316{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2317$as_echo_n "checking for $ac_word... " >&6; }
2318if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2319 $as_echo_n "(cached) " >&6
2320else
2321 if test -n "$ac_ct_STRIP"; then
2322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2323else
2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325for as_dir in $PATH
2326do
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331 ac_cv_prog_ac_ct_STRIP="strip"
2332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2334 fi
2335done
2336done
2337IFS=$as_save_IFS
2338
2339fi
2340fi
2341ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2342if test -n "$ac_ct_STRIP"; then
2343 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2344$as_echo "$ac_ct_STRIP" >&6; }
2345else
2346 { $as_echo "$as_me:$LINENO: result: no" >&5
2347$as_echo "no" >&6; }
2348fi
2349
2350 if test "x$ac_ct_STRIP" = x; then
2351 STRIP=":"
2352 else
2353 case $cross_compiling:$ac_tool_warned in
2354yes:)
2355{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2357ac_tool_warned=yes ;;
2358esac
2359 STRIP=$ac_ct_STRIP
2360 fi
2361else
2362 STRIP="$ac_cv_prog_STRIP"
2363fi
2364
2365fi
2366INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2367
2368{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2369$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2370if test -z "$MKDIR_P"; then
2371 if test "${ac_cv_path_mkdir+set}" = set; then
2372 $as_echo_n "(cached) " >&6
2373else
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2376do
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 for ac_prog in mkdir gmkdir; do
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2382 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2383 'mkdir (GNU coreutils) '* | \
2384 'mkdir (coreutils) '* | \
2385 'mkdir (fileutils) '4.1*)
2386 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2387 break 3;;
2388 esac
2389 done
2390 done
2391done
2392IFS=$as_save_IFS
2393
2394fi
2395
2396 if test "${ac_cv_path_mkdir+set}" = set; then
2397 MKDIR_P="$ac_cv_path_mkdir -p"
2398 else
2399 # As a last resort, use the slow shell script. Don't cache a
2400 # value for MKDIR_P within a source directory, because that will
2401 # break other packages using the cache if that directory is
2402 # removed, or if the value is a relative name.
2403 test -d ./--version && rmdir ./--version
2404 MKDIR_P="$ac_install_sh -d"
2405 fi
2406fi
2407{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2408$as_echo "$MKDIR_P" >&6; }
2409
2410mkdir_p="$MKDIR_P"
2411case $mkdir_p in
2412 [\\/$]* | ?:[\\/]*) ;;
2413 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2414esac
2415
2416for ac_prog in gawk mawk nawk awk
2417do
2418 # Extract the first word of "$ac_prog", so it can be a program name with args.
2419set dummy $ac_prog; ac_word=$2
2420{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2421$as_echo_n "checking for $ac_word... " >&6; }
2422if test "${ac_cv_prog_AWK+set}" = set; then
2423 $as_echo_n "(cached) " >&6
2424else
2425 if test -n "$AWK"; then
2426 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2427else
2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429for as_dir in $PATH
2430do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2435 ac_cv_prog_AWK="$ac_prog"
2436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 break 2
2438 fi
2439done
2440done
2441IFS=$as_save_IFS
2442
2443fi
2444fi
2445AWK=$ac_cv_prog_AWK
2446if test -n "$AWK"; then
2447 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2448$as_echo "$AWK" >&6; }
2449else
2450 { $as_echo "$as_me:$LINENO: result: no" >&5
2451$as_echo "no" >&6; }
2452fi
2453
2454
2455 test -n "$AWK" && break
2456done
2457
2458{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2459$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2460set x ${MAKE-make}
2461ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2462if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2463 $as_echo_n "(cached) " >&6
2464else
2465 cat >conftest.make <<\_ACEOF
2466SHELL = /bin/sh
2467all:
2468 @echo '@@@%%%=$(MAKE)=@@@%%%'
2469_ACEOF
2470# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2471case `${MAKE-make} -f conftest.make 2>/dev/null` in
2472 *@@@%%%=?*=@@@%%%*)
2473 eval ac_cv_prog_make_${ac_make}_set=yes;;
2474 *)
2475 eval ac_cv_prog_make_${ac_make}_set=no;;
2476esac
2477rm -f conftest.make
2478fi
2479if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2480 { $as_echo "$as_me:$LINENO: result: yes" >&5
2481$as_echo "yes" >&6; }
2482 SET_MAKE=
2483else
2484 { $as_echo "$as_me:$LINENO: result: no" >&5
2485$as_echo "no" >&6; }
2486 SET_MAKE="MAKE=${MAKE-make}"
2487fi
2488
2489rm -rf .tst 2>/dev/null
2490mkdir .tst 2>/dev/null
2491if test -d .tst; then
2492 am__leading_dot=.
2493else
2494 am__leading_dot=_
2495fi
2496rmdir .tst 2>/dev/null
2497
2498if test "`cd $srcdir && pwd`" != "`pwd`"; then
2499 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2500 # is not polluted with repeated "-I."
2501 am__isrc=' -I$(srcdir)'
2502 # test to see if srcdir already configured
2503 if test -f $srcdir/config.status; then
2504 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2505$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2506 { (exit 1); exit 1; }; }
2507 fi
2508fi
2509
2510# test whether we have cygpath
2511if test -z "$CYGPATH_W"; then
2512 if (cygpath --version) >/dev/null 2>/dev/null; then
2513 CYGPATH_W='cygpath -w'
2514 else
2515 CYGPATH_W=echo
2516 fi
2517fi
2518
2519
2520# Define the identity of the package.
2521 PACKAGE='unicode'
2522 VERSION='0.10'
2523
2524
2525# Some tools Automake needs.
2526
2527ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2528
2529
2530AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2531
2532
2533AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2534
2535
2536AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2537
2538
2539MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2540
2541# We need awk for the "check" target. The system "awk" is bad on
2542# some platforms.
2543# Always define AMTAR for backward compatibility.
2544
2545AMTAR=${AMTAR-"${am_missing_run}tar"}
2546
2547am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2548
2549
2550
2551
2552
2553
2554{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2555$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2556set x ${MAKE-make}
2557ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2558if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2559 $as_echo_n "(cached) " >&6
2560else
2561 cat >conftest.make <<\_ACEOF
2562SHELL = /bin/sh
2563all:
2564 @echo '@@@%%%=$(MAKE)=@@@%%%'
2565_ACEOF
2566# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2567case `${MAKE-make} -f conftest.make 2>/dev/null` in
2568 *@@@%%%=?*=@@@%%%*)
2569 eval ac_cv_prog_make_${ac_make}_set=yes;;
2570 *)
2571 eval ac_cv_prog_make_${ac_make}_set=no;;
2572esac
2573rm -f conftest.make
2574fi
2575if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2576 { $as_echo "$as_me:$LINENO: result: yes" >&5
2577$as_echo "yes" >&6; }
2578 SET_MAKE=
2579else
2580 { $as_echo "$as_me:$LINENO: result: no" >&5
2581$as_echo "no" >&6; }
2582 SET_MAKE="MAKE=${MAKE-make}"
2583fi
2584
2585case `pwd` in
2586 *\ * | *\ *)
2587 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2588$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2589esac
2590
2591
2592
2593macro_version='2.2.6'
2594macro_revision='1.3012'
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608ltmain="$ac_aux_dir/ltmain.sh"
2609
2610# Make sure we can run config.sub.
2611$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2612 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2613$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2614 { (exit 1); exit 1; }; }
2615
2616{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2617$as_echo_n "checking build system type... " >&6; }
2618if test "${ac_cv_build+set}" = set; then
2619 $as_echo_n "(cached) " >&6
2620else
2621 ac_build_alias=$build_alias
2622test "x$ac_build_alias" = x &&
2623 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2624test "x$ac_build_alias" = x &&
2625 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2626$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2627 { (exit 1); exit 1; }; }
2628ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2629 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2630$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2631 { (exit 1); exit 1; }; }
2632
2633fi
2634{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2635$as_echo "$ac_cv_build" >&6; }
2636case $ac_cv_build in
2637*-*-*) ;;
2638*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2639$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2640 { (exit 1); exit 1; }; };;
2641esac
2642build=$ac_cv_build
2643ac_save_IFS=$IFS; IFS='-'
2644set x $ac_cv_build
2645shift
2646build_cpu=$1
2647build_vendor=$2
2648shift; shift
2649# Remember, the first character of IFS is used to create $*,
2650# except with old shells:
2651build_os=$*
2652IFS=$ac_save_IFS
2653case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2654
2655
2656{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2657$as_echo_n "checking host system type... " >&6; }
2658if test "${ac_cv_host+set}" = set; then
2659 $as_echo_n "(cached) " >&6
2660else
2661 if test "x$host_alias" = x; then
2662 ac_cv_host=$ac_cv_build
2663else
2664 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2665 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2666$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2667 { (exit 1); exit 1; }; }
2668fi
2669
2670fi
2671{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2672$as_echo "$ac_cv_host" >&6; }
2673case $ac_cv_host in
2674*-*-*) ;;
2675*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2676$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2677 { (exit 1); exit 1; }; };;
2678esac
2679host=$ac_cv_host
2680ac_save_IFS=$IFS; IFS='-'
2681set x $ac_cv_host
2682shift
2683host_cpu=$1
2684host_vendor=$2
2685shift; shift
2686# Remember, the first character of IFS is used to create $*,
2687# except with old shells:
2688host_os=$*
2689IFS=$ac_save_IFS
2690case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2691
2692
2693DEPDIR="${am__leading_dot}deps"
2694
2695ac_config_commands="$ac_config_commands depfiles"
2696
2697
2698am_make=${MAKE-make}
2699cat > confinc << 'END'
2700am__doit:
2701 @echo this is the am__doit target
2702.PHONY: am__doit
2703END
2704# If we don't find an include directive, just comment out the code.
2705{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2706$as_echo_n "checking for style of include used by $am_make... " >&6; }
2707am__include="#"
2708am__quote=
2709_am_result=none
2710# First try GNU make style include.
2711echo "include confinc" > confmf
2712# Ignore all kinds of additional output from `make'.
2713case `$am_make -s -f confmf 2> /dev/null` in #(
2714*the\ am__doit\ target*)
2715 am__include=include
2716 am__quote=
2717 _am_result=GNU
2718 ;;
2719esac
2720# Now try BSD make style include.
2721if test "$am__include" = "#"; then
2722 echo '.include "confinc"' > confmf
2723 case `$am_make -s -f confmf 2> /dev/null` in #(
2724 *the\ am__doit\ target*)
2725 am__include=.include
2726 am__quote="\""
2727 _am_result=BSD
2728 ;;
2729 esac
2730fi
2731
2732
2733{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2734$as_echo "$_am_result" >&6; }
2735rm -f confinc confmf
2736
2737# Check whether --enable-dependency-tracking was given.
2738if test "${enable_dependency_tracking+set}" = set; then
2739 enableval=$enable_dependency_tracking;
2740fi
2741
2742if test "x$enable_dependency_tracking" != xno; then
2743 am_depcomp="$ac_aux_dir/depcomp"
2744 AMDEPBACKSLASH='\'
2745fi
2746 if test "x$enable_dependency_tracking" != xno; then
2747 AMDEP_TRUE=
2748 AMDEP_FALSE='#'
2749else
2750 AMDEP_TRUE='#'
2751 AMDEP_FALSE=
2752fi
2753
2754
2755ac_ext=c
2756ac_cpp='$CPP $CPPFLAGS'
2757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760if test -n "$ac_tool_prefix"; then
2761 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2762set dummy ${ac_tool_prefix}gcc; ac_word=$2
2763{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2764$as_echo_n "checking for $ac_word... " >&6; }
2765if test "${ac_cv_prog_CC+set}" = set; then
2766 $as_echo_n "(cached) " >&6
2767else
2768 if test -n "$CC"; then
2769 ac_cv_prog_CC="$CC" # Let the user override the test.
2770else
2771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772for as_dir in $PATH
2773do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2778 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2779 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782done
2783done
2784IFS=$as_save_IFS
2785
2786fi
2787fi
2788CC=$ac_cv_prog_CC
2789if test -n "$CC"; then
2790 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2791$as_echo "$CC" >&6; }
2792else
2793 { $as_echo "$as_me:$LINENO: result: no" >&5
2794$as_echo "no" >&6; }
2795fi
2796
2797
2798fi
2799if test -z "$ac_cv_prog_CC"; then
2800 ac_ct_CC=$CC
2801 # Extract the first word of "gcc", so it can be a program name with args.
2802set dummy gcc; ac_word=$2
2803{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2804$as_echo_n "checking for $ac_word... " >&6; }
2805if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2806 $as_echo_n "(cached) " >&6
2807else
2808 if test -n "$ac_ct_CC"; then
2809 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2810else
2811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812for as_dir in $PATH
2813do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 ac_cv_prog_ac_ct_CC="gcc"
2819 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 break 2
2821 fi
2822done
2823done
2824IFS=$as_save_IFS
2825
2826fi
2827fi
2828ac_ct_CC=$ac_cv_prog_ac_ct_CC
2829if test -n "$ac_ct_CC"; then
2830 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2831$as_echo "$ac_ct_CC" >&6; }
2832else
2833 { $as_echo "$as_me:$LINENO: result: no" >&5
2834$as_echo "no" >&6; }
2835fi
2836
2837 if test "x$ac_ct_CC" = x; then
2838 CC=""
2839 else
2840 case $cross_compiling:$ac_tool_warned in
2841yes:)
2842{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2844ac_tool_warned=yes ;;
2845esac
2846 CC=$ac_ct_CC
2847 fi
2848else
2849 CC="$ac_cv_prog_CC"
2850fi
2851
2852if test -z "$CC"; then
2853 if test -n "$ac_tool_prefix"; then
2854 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2855set dummy ${ac_tool_prefix}cc; ac_word=$2
2856{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2857$as_echo_n "checking for $ac_word... " >&6; }
2858if test "${ac_cv_prog_CC+set}" = set; then
2859 $as_echo_n "(cached) " >&6
2860else
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC="$CC" # Let the user override the test.
2863else
2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH
2866do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2871 ac_cv_prog_CC="${ac_tool_prefix}cc"
2872 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 break 2
2874 fi
2875done
2876done
2877IFS=$as_save_IFS
2878
2879fi
2880fi
2881CC=$ac_cv_prog_CC
2882if test -n "$CC"; then
2883 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2884$as_echo "$CC" >&6; }
2885else
2886 { $as_echo "$as_me:$LINENO: result: no" >&5
2887$as_echo "no" >&6; }
2888fi
2889
2890
2891 fi
2892fi
2893if test -z "$CC"; then
2894 # Extract the first word of "cc", so it can be a program name with args.
2895set dummy cc; ac_word=$2
2896{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2897$as_echo_n "checking for $ac_word... " >&6; }
2898if test "${ac_cv_prog_CC+set}" = set; then
2899 $as_echo_n "(cached) " >&6
2900else
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2903else
2904 ac_prog_rejected=no
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2913 ac_prog_rejected=yes
2914 continue
2915 fi
2916 ac_cv_prog_CC="cc"
2917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 break 2
2919 fi
2920done
2921done
2922IFS=$as_save_IFS
2923
2924if test $ac_prog_rejected = yes; then
2925 # We found a bogon in the path, so make sure we never use it.
2926 set dummy $ac_cv_prog_CC
2927 shift
2928 if test $# != 0; then
2929 # We chose a different compiler from the bogus one.
2930 # However, it has the same basename, so the bogon will be chosen
2931 # first if we set CC to just the basename; use the full file name.
2932 shift
2933 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2934 fi
2935fi
2936fi
2937fi
2938CC=$ac_cv_prog_CC
2939if test -n "$CC"; then
2940 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2941$as_echo "$CC" >&6; }
2942else
2943 { $as_echo "$as_me:$LINENO: result: no" >&5
2944$as_echo "no" >&6; }
2945fi
2946
2947
2948fi
2949if test -z "$CC"; then
2950 if test -n "$ac_tool_prefix"; then
2951 for ac_prog in cl.exe
2952 do
2953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2954set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2955{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2956$as_echo_n "checking for $ac_word... " >&6; }
2957if test "${ac_cv_prog_CC+set}" = set; then
2958 $as_echo_n "(cached) " >&6
2959else
2960 if test -n "$CC"; then
2961 ac_cv_prog_CC="$CC" # Let the user override the test.
2962else
2963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964for as_dir in $PATH
2965do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2971 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
2974done
2975done
2976IFS=$as_save_IFS
2977
2978fi
2979fi
2980CC=$ac_cv_prog_CC
2981if test -n "$CC"; then
2982 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2983$as_echo "$CC" >&6; }
2984else
2985 { $as_echo "$as_me:$LINENO: result: no" >&5
2986$as_echo "no" >&6; }
2987fi
2988
2989
2990 test -n "$CC" && break
2991 done
2992fi
2993if test -z "$CC"; then
2994 ac_ct_CC=$CC
2995 for ac_prog in cl.exe
2996do
2997 # Extract the first word of "$ac_prog", so it can be a program name with args.
2998set dummy $ac_prog; ac_word=$2
2999{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3000$as_echo_n "checking for $ac_word... " >&6; }
3001if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3002 $as_echo_n "(cached) " >&6
3003else
3004 if test -n "$ac_ct_CC"; then
3005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3006else
3007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008for as_dir in $PATH
3009do
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014 ac_cv_prog_ac_ct_CC="$ac_prog"
3015 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 break 2
3017 fi
3018done
3019done
3020IFS=$as_save_IFS
3021
3022fi
3023fi
3024ac_ct_CC=$ac_cv_prog_ac_ct_CC
3025if test -n "$ac_ct_CC"; then
3026 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3027$as_echo "$ac_ct_CC" >&6; }
3028else
3029 { $as_echo "$as_me:$LINENO: result: no" >&5
3030$as_echo "no" >&6; }
3031fi
3032
3033
3034 test -n "$ac_ct_CC" && break
3035done
3036
3037 if test "x$ac_ct_CC" = x; then
3038 CC=""
3039 else
3040 case $cross_compiling:$ac_tool_warned in
3041yes:)
3042{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3044ac_tool_warned=yes ;;
3045esac
3046 CC=$ac_ct_CC
3047 fi
3048fi
3049
3050fi
3051
3052
3053test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3055{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3056See \`config.log' for more details." >&5
3057$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3058See \`config.log' for more details." >&2;}
3059 { (exit 1); exit 1; }; }; }
3060
3061# Provide some information about the compiler.
3062$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3063set X $ac_compile
3064ac_compiler=$2
3065{ (ac_try="$ac_compiler --version >&5"
3066case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069esac
3070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3071$as_echo "$ac_try_echo") >&5
3072 (eval "$ac_compiler --version >&5") 2>&5
3073 ac_status=$?
3074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }
3076{ (ac_try="$ac_compiler -v >&5"
3077case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080esac
3081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3082$as_echo "$ac_try_echo") >&5
3083 (eval "$ac_compiler -v >&5") 2>&5
3084 ac_status=$?
3085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }
3087{ (ac_try="$ac_compiler -V >&5"
3088case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091esac
3092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3093$as_echo "$ac_try_echo") >&5
3094 (eval "$ac_compiler -V >&5") 2>&5
3095 ac_status=$?
3096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }
3098
3099cat >conftest.$ac_ext <<_ACEOF
3100/* confdefs.h. */
3101_ACEOF
3102cat confdefs.h >>conftest.$ac_ext
3103cat >>conftest.$ac_ext <<_ACEOF
3104/* end confdefs.h. */
3105
3106int
3107main ()
3108{
3109
3110 ;
3111 return 0;
3112}
3113_ACEOF
3114ac_clean_files_save=$ac_clean_files
3115ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3116# Try to create an executable without -o first, disregard a.out.
3117# It will help us diagnose broken compilers, and finding out an intuition
3118# of exeext.
3119{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3120$as_echo_n "checking for C compiler default output file name... " >&6; }
3121ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3122
3123# The possible output files:
3124ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3125
3126ac_rmfiles=
3127for ac_file in $ac_files
3128do
3129 case $ac_file in
3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3131 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3132 esac
3133done
3134rm -f $ac_rmfiles
3135
3136if { (ac_try="$ac_link_default"
3137case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3142$as_echo "$ac_try_echo") >&5
3143 (eval "$ac_link_default") 2>&5
3144 ac_status=$?
3145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; then
3147 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3148# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3149# in a Makefile. We should not override ac_cv_exeext if it was cached,
3150# so that the user can short-circuit this test for compilers unknown to
3151# Autoconf.
3152for ac_file in $ac_files ''
3153do
3154 test -f "$ac_file" || continue
3155 case $ac_file in
3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3157 ;;
3158 [ab].out )
3159 # We found the default executable, but exeext='' is most
3160 # certainly right.
3161 break;;
3162 *.* )
3163 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3164 then :; else
3165 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3166 fi
3167 # We set ac_cv_exeext here because the later test for it is not
3168 # safe: cross compilers may not add the suffix if given an `-o'
3169 # argument, so we may need to know it at that point already.
3170 # Even if this section looks crufty: it has the advantage of
3171 # actually working.
3172 break;;
3173 * )
3174 break;;
3175 esac
3176done
3177test "$ac_cv_exeext" = no && ac_cv_exeext=
3178
3179else
3180 ac_file=''
3181fi
3182
3183{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3184$as_echo "$ac_file" >&6; }
3185if test -z "$ac_file"; then
3186 $as_echo "$as_me: failed program was:" >&5
3187sed 's/^/| /' conftest.$ac_ext >&5
3188
3189{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3192See \`config.log' for more details." >&5
3193$as_echo "$as_me: error: C compiler cannot create executables
3194See \`config.log' for more details." >&2;}
3195 { (exit 77); exit 77; }; }; }
3196fi
3197
3198ac_exeext=$ac_cv_exeext
3199
3200# Check that the compiler produces executables we can run. If not, either
3201# the compiler is broken, or we cross compile.
3202{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3203$as_echo_n "checking whether the C compiler works... " >&6; }
3204# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3205# If not cross compiling, check that we can run a simple program.
3206if test "$cross_compiling" != yes; then
3207 if { ac_try='./$ac_file'
3208 { (case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211esac
3212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3213$as_echo "$ac_try_echo") >&5
3214 (eval "$ac_try") 2>&5
3215 ac_status=$?
3216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; }; then
3218 cross_compiling=no
3219 else
3220 if test "$cross_compiling" = maybe; then
3221 cross_compiling=yes
3222 else
3223 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3226If you meant to cross compile, use \`--host'.
3227See \`config.log' for more details." >&5
3228$as_echo "$as_me: error: cannot run C compiled programs.
3229If you meant to cross compile, use \`--host'.
3230See \`config.log' for more details." >&2;}
3231 { (exit 1); exit 1; }; }; }
3232 fi
3233 fi
3234fi
3235{ $as_echo "$as_me:$LINENO: result: yes" >&5
3236$as_echo "yes" >&6; }
3237
3238rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3239ac_clean_files=$ac_clean_files_save
3240# Check that the compiler produces executables we can run. If not, either
3241# the compiler is broken, or we cross compile.
3242{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3243$as_echo_n "checking whether we are cross compiling... " >&6; }
3244{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3245$as_echo "$cross_compiling" >&6; }
3246
3247{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3248$as_echo_n "checking for suffix of executables... " >&6; }
3249if { (ac_try="$ac_link"
3250case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253esac
3254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3255$as_echo "$ac_try_echo") >&5
3256 (eval "$ac_link") 2>&5
3257 ac_status=$?
3258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; then
3260 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3261# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3262# work properly (i.e., refer to `conftest.exe'), while it won't with
3263# `rm'.
3264for ac_file in conftest.exe conftest conftest.*; do
3265 test -f "$ac_file" || continue
3266 case $ac_file in
3267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3268 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3269 break;;
3270 * ) break;;
3271 esac
3272done
3273else
3274 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3277See \`config.log' for more details." >&5
3278$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3279See \`config.log' for more details." >&2;}
3280 { (exit 1); exit 1; }; }; }
3281fi
3282
3283rm -f conftest$ac_cv_exeext
3284{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3285$as_echo "$ac_cv_exeext" >&6; }
3286
3287rm -f conftest.$ac_ext
3288EXEEXT=$ac_cv_exeext
3289ac_exeext=$EXEEXT
3290{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3291$as_echo_n "checking for suffix of object files... " >&6; }
3292if test "${ac_cv_objext+set}" = set; then
3293 $as_echo_n "(cached) " >&6
3294else
3295 cat >conftest.$ac_ext <<_ACEOF
3296/* confdefs.h. */
3297_ACEOF
3298cat confdefs.h >>conftest.$ac_ext
3299cat >>conftest.$ac_ext <<_ACEOF
3300/* end confdefs.h. */
3301
3302int
3303main ()
3304{
3305
3306 ;
3307 return 0;
3308}
3309_ACEOF
3310rm -f conftest.o conftest.obj
3311if { (ac_try="$ac_compile"
3312case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315esac
3316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3317$as_echo "$ac_try_echo") >&5
3318 (eval "$ac_compile") 2>&5
3319 ac_status=$?
3320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; then
3322 for ac_file in conftest.o conftest.obj conftest.*; do
3323 test -f "$ac_file" || continue;
3324 case $ac_file in
3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3326 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3327 break;;
3328 esac
3329done
3330else
3331 $as_echo "$as_me: failed program was:" >&5
3332sed 's/^/| /' conftest.$ac_ext >&5
3333
3334{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3337See \`config.log' for more details." >&5
3338$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3339See \`config.log' for more details." >&2;}
3340 { (exit 1); exit 1; }; }; }
3341fi
3342
3343rm -f conftest.$ac_cv_objext conftest.$ac_ext
3344fi
3345{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3346$as_echo "$ac_cv_objext" >&6; }
3347OBJEXT=$ac_cv_objext
3348ac_objext=$OBJEXT
3349{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3350$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3351if test "${ac_cv_c_compiler_gnu+set}" = set; then
3352 $as_echo_n "(cached) " >&6
3353else
3354 cat >conftest.$ac_ext <<_ACEOF
3355/* confdefs.h. */
3356_ACEOF
3357cat confdefs.h >>conftest.$ac_ext
3358cat >>conftest.$ac_ext <<_ACEOF
3359/* end confdefs.h. */
3360
3361int
3362main ()
3363{
3364#ifndef __GNUC__
3365 choke me
3366#endif
3367
3368 ;
3369 return 0;
3370}
3371_ACEOF
3372rm -f conftest.$ac_objext
3373if { (ac_try="$ac_compile"
3374case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377esac
3378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3379$as_echo "$ac_try_echo") >&5
3380 (eval "$ac_compile") 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } && {
3387 test -z "$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 } && test -s conftest.$ac_objext; then
3390 ac_compiler_gnu=yes
3391else
3392 $as_echo "$as_me: failed program was:" >&5
3393sed 's/^/| /' conftest.$ac_ext >&5
3394
3395 ac_compiler_gnu=no
3396fi
3397
3398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399ac_cv_c_compiler_gnu=$ac_compiler_gnu
3400
3401fi
3402{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3403$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3404if test $ac_compiler_gnu = yes; then
3405 GCC=yes
3406else
3407 GCC=
3408fi
3409ac_test_CFLAGS=${CFLAGS+set}
3410ac_save_CFLAGS=$CFLAGS
3411{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3412$as_echo_n "checking whether $CC accepts -g... " >&6; }
3413if test "${ac_cv_prog_cc_g+set}" = set; then
3414 $as_echo_n "(cached) " >&6
3415else
3416 ac_save_c_werror_flag=$ac_c_werror_flag
3417 ac_c_werror_flag=yes
3418 ac_cv_prog_cc_g=no
3419 CFLAGS="-g"
3420 cat >conftest.$ac_ext <<_ACEOF
3421/* confdefs.h. */
3422_ACEOF
3423cat confdefs.h >>conftest.$ac_ext
3424cat >>conftest.$ac_ext <<_ACEOF
3425/* end confdefs.h. */
3426
3427int
3428main ()
3429{
3430
3431 ;
3432 return 0;
3433}
3434_ACEOF
3435rm -f conftest.$ac_objext
3436if { (ac_try="$ac_compile"
3437case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440esac
3441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3442$as_echo "$ac_try_echo") >&5
3443 (eval "$ac_compile") 2>conftest.er1
3444 ac_status=$?
3445 grep -v '^ *+' conftest.er1 >conftest.err
3446 rm -f conftest.er1
3447 cat conftest.err >&5
3448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } && {
3450 test -z "$ac_c_werror_flag" ||
3451 test ! -s conftest.err
3452 } && test -s conftest.$ac_objext; then
3453 ac_cv_prog_cc_g=yes
3454else
3455 $as_echo "$as_me: failed program was:" >&5
3456sed 's/^/| /' conftest.$ac_ext >&5
3457
3458 CFLAGS=""
3459 cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h. */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h. */
3465
3466int
3467main ()
3468{
3469
3470 ;
3471 return 0;
3472}
3473_ACEOF
3474rm -f conftest.$ac_objext
3475if { (ac_try="$ac_compile"
3476case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479esac
3480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3481$as_echo "$ac_try_echo") >&5
3482 (eval "$ac_compile") 2>conftest.er1
3483 ac_status=$?
3484 grep -v '^ *+' conftest.er1 >conftest.err
3485 rm -f conftest.er1
3486 cat conftest.err >&5
3487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } && {
3489 test -z "$ac_c_werror_flag" ||
3490 test ! -s conftest.err
3491 } && test -s conftest.$ac_objext; then
3492 :
3493else
3494 $as_echo "$as_me: failed program was:" >&5
3495sed 's/^/| /' conftest.$ac_ext >&5
3496
3497 ac_c_werror_flag=$ac_save_c_werror_flag
3498 CFLAGS="-g"
3499 cat >conftest.$ac_ext <<_ACEOF
3500/* confdefs.h. */
3501_ACEOF
3502cat confdefs.h >>conftest.$ac_ext
3503cat >>conftest.$ac_ext <<_ACEOF
3504/* end confdefs.h. */
3505
3506int
3507main ()
3508{
3509
3510 ;
3511 return 0;
3512}
3513_ACEOF
3514rm -f conftest.$ac_objext
3515if { (ac_try="$ac_compile"
3516case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519esac
3520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3521$as_echo "$ac_try_echo") >&5
3522 (eval "$ac_compile") 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } && {
3529 test -z "$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3531 } && test -s conftest.$ac_objext; then
3532 ac_cv_prog_cc_g=yes
3533else
3534 $as_echo "$as_me: failed program was:" >&5
3535sed 's/^/| /' conftest.$ac_ext >&5
3536
3537
3538fi
3539
3540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3541fi
3542
3543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544fi
3545
3546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 ac_c_werror_flag=$ac_save_c_werror_flag
3548fi
3549{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3550$as_echo "$ac_cv_prog_cc_g" >&6; }
3551if test "$ac_test_CFLAGS" = set; then
3552 CFLAGS=$ac_save_CFLAGS
3553elif test $ac_cv_prog_cc_g = yes; then
3554 if test "$GCC" = yes; then
3555 CFLAGS="-g -O2"
3556 else
3557 CFLAGS="-g"
3558 fi
3559else
3560 if test "$GCC" = yes; then
3561 CFLAGS="-O2"
3562 else
3563 CFLAGS=
3564 fi
3565fi
3566{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3567$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3568if test "${ac_cv_prog_cc_c89+set}" = set; then
3569 $as_echo_n "(cached) " >&6
3570else
3571 ac_cv_prog_cc_c89=no
3572ac_save_CC=$CC
3573cat >conftest.$ac_ext <<_ACEOF
3574/* confdefs.h. */
3575_ACEOF
3576cat confdefs.h >>conftest.$ac_ext
3577cat >>conftest.$ac_ext <<_ACEOF
3578/* end confdefs.h. */
3579#include <stdarg.h>
3580#include <stdio.h>
3581#include <sys/types.h>
3582#include <sys/stat.h>
3583/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3584struct buf { int x; };
3585FILE * (*rcsopen) (struct buf *, struct stat *, int);
3586static char *e (p, i)
3587 char **p;
3588 int i;
3589{
3590 return p[i];
3591}
3592static char *f (char * (*g) (char **, int), char **p, ...)
3593{
3594 char *s;
3595 va_list v;
3596 va_start (v,p);
3597 s = g (p, va_arg (v,int));
3598 va_end (v);
3599 return s;
3600}
3601
3602/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3603 function prototypes and stuff, but not '\xHH' hex character constants.
3604 These don't provoke an error unfortunately, instead are silently treated
3605 as 'x'. The following induces an error, until -std is added to get
3606 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3607 array size at least. It's necessary to write '\x00'==0 to get something
3608 that's true only with -std. */
3609int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3610
3611/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3612 inside strings and character constants. */
3613#define FOO(x) 'x'
3614int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3615
3616int test (int i, double x);
3617struct s1 {int (*f) (int a);};
3618struct s2 {int (*f) (double a);};
3619int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3620int argc;
3621char **argv;
3622int
3623main ()
3624{
3625return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3626 ;
3627 return 0;
3628}
3629_ACEOF
3630for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3631 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3632do
3633 CC="$ac_save_CC $ac_arg"
3634 rm -f conftest.$ac_objext
3635if { (ac_try="$ac_compile"
3636case "(($ac_try" in
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3639esac
3640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3641$as_echo "$ac_try_echo") >&5
3642 (eval "$ac_compile") 2>conftest.er1
3643 ac_status=$?
3644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
3647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } && {
3649 test -z "$ac_c_werror_flag" ||
3650 test ! -s conftest.err
3651 } && test -s conftest.$ac_objext; then
3652 ac_cv_prog_cc_c89=$ac_arg
3653else
3654 $as_echo "$as_me: failed program was:" >&5
3655sed 's/^/| /' conftest.$ac_ext >&5
3656
3657
3658fi
3659
3660rm -f core conftest.err conftest.$ac_objext
3661 test "x$ac_cv_prog_cc_c89" != "xno" && break
3662done
3663rm -f conftest.$ac_ext
3664CC=$ac_save_CC
3665
3666fi
3667# AC_CACHE_VAL
3668case "x$ac_cv_prog_cc_c89" in
3669 x)
3670 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3671$as_echo "none needed" >&6; } ;;
3672 xno)
3673 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3674$as_echo "unsupported" >&6; } ;;
3675 *)
3676 CC="$CC $ac_cv_prog_cc_c89"
3677 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3678$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3679esac
3680
3681
3682ac_ext=c
3683ac_cpp='$CPP $CPPFLAGS'
3684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687
3688depcc="$CC" am_compiler_list=
3689
3690{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3691$as_echo_n "checking dependency style of $depcc... " >&6; }
3692if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3693 $as_echo_n "(cached) " >&6
3694else
3695 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3696 # We make a subdir and do the tests there. Otherwise we can end up
3697 # making bogus files that we don't know about and never remove. For
3698 # instance it was reported that on HP-UX the gcc test will end up
3699 # making a dummy file named `D' -- because `-MD' means `put the output
3700 # in D'.
3701 mkdir conftest.dir
3702 # Copy depcomp to subdir because otherwise we won't find it if we're
3703 # using a relative directory.
3704 cp "$am_depcomp" conftest.dir
3705 cd conftest.dir
3706 # We will build objects and dependencies in a subdirectory because
3707 # it helps to detect inapplicable dependency modes. For instance
3708 # both Tru64's cc and ICC support -MD to output dependencies as a
3709 # side effect of compilation, but ICC will put the dependencies in
3710 # the current directory while Tru64 will put them in the object
3711 # directory.
3712 mkdir sub
3713
3714 am_cv_CC_dependencies_compiler_type=none
3715 if test "$am_compiler_list" = ""; then
3716 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3717 fi
3718 am__universal=false
3719 case " $depcc " in #(
3720 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3721 esac
3722
3723 for depmode in $am_compiler_list; do
3724 # Setup a source with many dependencies, because some compilers
3725 # like to wrap large dependency lists on column 80 (with \), and
3726 # we should not choose a depcomp mode which is confused by this.
3727 #
3728 # We need to recreate these files for each test, as the compiler may
3729 # overwrite some of them when testing with obscure command lines.
3730 # This happens at least with the AIX C compiler.
3731 : > sub/conftest.c
3732 for i in 1 2 3 4 5 6; do
3733 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3734 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3735 # Solaris 8's {/usr,}/bin/sh.
3736 touch sub/conftst$i.h
3737 done
3738 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3739
3740 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3741 # mode. It turns out that the SunPro C++ compiler does not properly
3742 # handle `-M -o', and we need to detect this. Also, some Intel
3743 # versions had trouble with output in subdirs
3744 am__obj=sub/conftest.${OBJEXT-o}
3745 am__minus_obj="-o $am__obj"
3746 case $depmode in
3747 gcc)
3748 # This depmode causes a compiler race in universal mode.
3749 test "$am__universal" = false || continue
3750 ;;
3751 nosideeffect)
3752 # after this tag, mechanisms are not by side-effect, so they'll
3753 # only be used when explicitly requested
3754 if test "x$enable_dependency_tracking" = xyes; then
3755 continue
3756 else
3757 break
3758 fi
3759 ;;
3760 msvisualcpp | msvcmsys)
3761 # This compiler won't grok `-c -o', but also, the minuso test has
3762 # not run yet. These depmodes are late enough in the game, and
3763 # so weak that their functioning should not be impacted.
3764 am__obj=conftest.${OBJEXT-o}
3765 am__minus_obj=
3766 ;;
3767 none) break ;;
3768 esac
3769 if depmode=$depmode \
3770 source=sub/conftest.c object=$am__obj \
3771 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3772 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3773 >/dev/null 2>conftest.err &&
3774 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3775 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3776 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3777 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3778 # icc doesn't choke on unknown options, it will just issue warnings
3779 # or remarks (even with -Werror). So we grep stderr for any message
3780 # that says an option was ignored or not supported.
3781 # When given -MP, icc 7.0 and 7.1 complain thusly:
3782 # icc: Command line warning: ignoring option '-M'; no argument required
3783 # The diagnosis changed in icc 8.0:
3784 # icc: Command line remark: option '-MP' not supported
3785 if (grep 'ignoring option' conftest.err ||
3786 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3787 am_cv_CC_dependencies_compiler_type=$depmode
3788 break
3789 fi
3790 fi
3791 done
3792
3793 cd ..
3794 rm -rf conftest.dir
3795else
3796 am_cv_CC_dependencies_compiler_type=none
3797fi
3798
3799fi
3800{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3801$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3802CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3803
3804 if
3805 test "x$enable_dependency_tracking" != xno \
3806 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3807 am__fastdepCC_TRUE=
3808 am__fastdepCC_FALSE='#'
3809else
3810 am__fastdepCC_TRUE='#'
3811 am__fastdepCC_FALSE=
3812fi
3813
3814
3815{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3816$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3817if test "${ac_cv_path_SED+set}" = set; then
3818 $as_echo_n "(cached) " >&6
3819else
3820 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3821 for ac_i in 1 2 3 4 5 6 7; do
3822 ac_script="$ac_script$as_nl$ac_script"
3823 done
3824 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3825 $as_unset ac_script || ac_script=
3826 if test -z "$SED"; then
3827 ac_path_SED_found=false
3828 # Loop through the user's path and test for each of PROGNAME-LIST
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830for as_dir in $PATH
3831do
3832 IFS=$as_save_IFS
3833 test -z "$as_dir" && as_dir=.
3834 for ac_prog in sed gsed; do
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3837 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3838# Check for GNU ac_path_SED and select it if it is found.
3839 # Check for GNU $ac_path_SED
3840case `"$ac_path_SED" --version 2>&1` in
3841*GNU*)
3842 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3843*)
3844 ac_count=0
3845 $as_echo_n 0123456789 >"conftest.in"
3846 while :
3847 do
3848 cat "conftest.in" "conftest.in" >"conftest.tmp"
3849 mv "conftest.tmp" "conftest.in"
3850 cp "conftest.in" "conftest.nl"
3851 $as_echo '' >> "conftest.nl"
3852 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3854 ac_count=`expr $ac_count + 1`
3855 if test $ac_count -gt ${ac_path_SED_max-0}; then
3856 # Best one so far, save it but keep looking for a better one
3857 ac_cv_path_SED="$ac_path_SED"
3858 ac_path_SED_max=$ac_count
3859 fi
3860 # 10*(2^10) chars as input seems more than enough
3861 test $ac_count -gt 10 && break
3862 done
3863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3864esac
3865
3866 $ac_path_SED_found && break 3
3867 done
3868 done
3869done
3870IFS=$as_save_IFS
3871 if test -z "$ac_cv_path_SED"; then
3872 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3873$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3874 { (exit 1); exit 1; }; }
3875 fi
3876else
3877 ac_cv_path_SED=$SED
3878fi
3879
3880fi
3881{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3882$as_echo "$ac_cv_path_SED" >&6; }
3883 SED="$ac_cv_path_SED"
3884 rm -f conftest.sed
3885
3886test -z "$SED" && SED=sed
3887Xsed="$SED -e 1s/^X//"
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3900$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3901if test "${ac_cv_path_GREP+set}" = set; then
3902 $as_echo_n "(cached) " >&6
3903else
3904 if test -z "$GREP"; then
3905 ac_path_GREP_found=false
3906 # Loop through the user's path and test for each of PROGNAME-LIST
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3909do
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_prog in grep ggrep; do
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3915 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3916# Check for GNU ac_path_GREP and select it if it is found.
3917 # Check for GNU $ac_path_GREP
3918case `"$ac_path_GREP" --version 2>&1` in
3919*GNU*)
3920 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3921*)
3922 ac_count=0
3923 $as_echo_n 0123456789 >"conftest.in"
3924 while :
3925 do
3926 cat "conftest.in" "conftest.in" >"conftest.tmp"
3927 mv "conftest.tmp" "conftest.in"
3928 cp "conftest.in" "conftest.nl"
3929 $as_echo 'GREP' >> "conftest.nl"
3930 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3932 ac_count=`expr $ac_count + 1`
3933 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3934 # Best one so far, save it but keep looking for a better one
3935 ac_cv_path_GREP="$ac_path_GREP"
3936 ac_path_GREP_max=$ac_count
3937 fi
3938 # 10*(2^10) chars as input seems more than enough
3939 test $ac_count -gt 10 && break
3940 done
3941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3942esac
3943
3944 $ac_path_GREP_found && break 3
3945 done
3946 done
3947done
3948IFS=$as_save_IFS
3949 if test -z "$ac_cv_path_GREP"; then
3950 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3951$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3952 { (exit 1); exit 1; }; }
3953 fi
3954else
3955 ac_cv_path_GREP=$GREP
3956fi
3957
3958fi
3959{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3960$as_echo "$ac_cv_path_GREP" >&6; }
3961 GREP="$ac_cv_path_GREP"
3962
3963
3964{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3965$as_echo_n "checking for egrep... " >&6; }
3966if test "${ac_cv_path_EGREP+set}" = set; then
3967 $as_echo_n "(cached) " >&6
3968else
3969 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3970 then ac_cv_path_EGREP="$GREP -E"
3971 else
3972 if test -z "$EGREP"; then
3973 ac_path_EGREP_found=false
3974 # Loop through the user's path and test for each of PROGNAME-LIST
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3977do
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
3980 for ac_prog in egrep; do
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3983 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3984# Check for GNU ac_path_EGREP and select it if it is found.
3985 # Check for GNU $ac_path_EGREP
3986case `"$ac_path_EGREP" --version 2>&1` in
3987*GNU*)
3988 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3989*)
3990 ac_count=0
3991 $as_echo_n 0123456789 >"conftest.in"
3992 while :
3993 do
3994 cat "conftest.in" "conftest.in" >"conftest.tmp"
3995 mv "conftest.tmp" "conftest.in"
3996 cp "conftest.in" "conftest.nl"
3997 $as_echo 'EGREP' >> "conftest.nl"
3998 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4000 ac_count=`expr $ac_count + 1`
4001 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4002 # Best one so far, save it but keep looking for a better one
4003 ac_cv_path_EGREP="$ac_path_EGREP"
4004 ac_path_EGREP_max=$ac_count
4005 fi
4006 # 10*(2^10) chars as input seems more than enough
4007 test $ac_count -gt 10 && break
4008 done
4009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010esac
4011
4012 $ac_path_EGREP_found && break 3
4013 done
4014 done
4015done
4016IFS=$as_save_IFS
4017 if test -z "$ac_cv_path_EGREP"; then
4018 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4019$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4020 { (exit 1); exit 1; }; }
4021 fi
4022else
4023 ac_cv_path_EGREP=$EGREP
4024fi
4025
4026 fi
4027fi
4028{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4029$as_echo "$ac_cv_path_EGREP" >&6; }
4030 EGREP="$ac_cv_path_EGREP"
4031
4032
4033{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4034$as_echo_n "checking for fgrep... " >&6; }
4035if test "${ac_cv_path_FGREP+set}" = set; then
4036 $as_echo_n "(cached) " >&6
4037else
4038 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4039 then ac_cv_path_FGREP="$GREP -F"
4040 else
4041 if test -z "$FGREP"; then
4042 ac_path_FGREP_found=false
4043 # Loop through the user's path and test for each of PROGNAME-LIST
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4046do
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_prog in fgrep; do
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4052 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4053# Check for GNU ac_path_FGREP and select it if it is found.
4054 # Check for GNU $ac_path_FGREP
4055case `"$ac_path_FGREP" --version 2>&1` in
4056*GNU*)
4057 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4058*)
4059 ac_count=0
4060 $as_echo_n 0123456789 >"conftest.in"
4061 while :
4062 do
4063 cat "conftest.in" "conftest.in" >"conftest.tmp"
4064 mv "conftest.tmp" "conftest.in"
4065 cp "conftest.in" "conftest.nl"
4066 $as_echo 'FGREP' >> "conftest.nl"
4067 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4069 ac_count=`expr $ac_count + 1`
4070 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4071 # Best one so far, save it but keep looking for a better one
4072 ac_cv_path_FGREP="$ac_path_FGREP"
4073 ac_path_FGREP_max=$ac_count
4074 fi
4075 # 10*(2^10) chars as input seems more than enough
4076 test $ac_count -gt 10 && break
4077 done
4078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4079esac
4080
4081 $ac_path_FGREP_found && break 3
4082 done
4083 done
4084done
4085IFS=$as_save_IFS
4086 if test -z "$ac_cv_path_FGREP"; then
4087 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4088$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4089 { (exit 1); exit 1; }; }
4090 fi
4091else
4092 ac_cv_path_FGREP=$FGREP
4093fi
4094
4095 fi
4096fi
4097{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4098$as_echo "$ac_cv_path_FGREP" >&6; }
4099 FGREP="$ac_cv_path_FGREP"
4100
4101
4102test -z "$GREP" && GREP=grep
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122# Check whether --with-gnu-ld was given.
4123if test "${with_gnu_ld+set}" = set; then
4124 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4125else
4126 with_gnu_ld=no
4127fi
4128
4129ac_prog=ld
4130if test "$GCC" = yes; then
4131 # Check if gcc -print-prog-name=ld gives a path.
4132 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4133$as_echo_n "checking for ld used by $CC... " >&6; }
4134 case $host in
4135 *-*-mingw*)
4136 # gcc leaves a trailing carriage return which upsets mingw
4137 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4138 *)
4139 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4140 esac
4141 case $ac_prog in
4142 # Accept absolute paths.
4143 [\\/]* | ?:[\\/]*)
4144 re_direlt='/[^/][^/]*/\.\./'
4145 # Canonicalize the pathname of ld
4146 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4147 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4148 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4149 done
4150 test -z "$LD" && LD="$ac_prog"
4151 ;;
4152 "")
4153 # If it fails, then pretend we aren't using GCC.
4154 ac_prog=ld
4155 ;;
4156 *)
4157 # If it is relative, then search for the first ld in PATH.
4158 with_gnu_ld=unknown
4159 ;;
4160 esac
4161elif test "$with_gnu_ld" = yes; then
4162 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4163$as_echo_n "checking for GNU ld... " >&6; }
4164else
4165 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4166$as_echo_n "checking for non-GNU ld... " >&6; }
4167fi
4168if test "${lt_cv_path_LD+set}" = set; then
4169 $as_echo_n "(cached) " >&6
4170else
4171 if test -z "$LD"; then
4172 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4173 for ac_dir in $PATH; do
4174 IFS="$lt_save_ifs"
4175 test -z "$ac_dir" && ac_dir=.
4176 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4177 lt_cv_path_LD="$ac_dir/$ac_prog"
4178 # Check to see if the program is GNU ld. I'd rather use --version,
4179 # but apparently some variants of GNU ld only accept -v.
4180 # Break only if it was the GNU/non-GNU ld that we prefer.
4181 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4182 *GNU* | *'with BFD'*)
4183 test "$with_gnu_ld" != no && break
4184 ;;
4185 *)
4186 test "$with_gnu_ld" != yes && break
4187 ;;
4188 esac
4189 fi
4190 done
4191 IFS="$lt_save_ifs"
4192else
4193 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4194fi
4195fi
4196
4197LD="$lt_cv_path_LD"
4198if test -n "$LD"; then
4199 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4200$as_echo "$LD" >&6; }
4201else
4202 { $as_echo "$as_me:$LINENO: result: no" >&5
4203$as_echo "no" >&6; }
4204fi
4205test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4206$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4207 { (exit 1); exit 1; }; }
4208{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4209$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4210if test "${lt_cv_prog_gnu_ld+set}" = set; then
4211 $as_echo_n "(cached) " >&6
4212else
4213 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4214case `$LD -v 2>&1 </dev/null` in
4215*GNU* | *'with BFD'*)
4216 lt_cv_prog_gnu_ld=yes
4217 ;;
4218*)
4219 lt_cv_prog_gnu_ld=no
4220 ;;
4221esac
4222fi
4223{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4224$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4225with_gnu_ld=$lt_cv_prog_gnu_ld
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4236$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4237if test "${lt_cv_path_NM+set}" = set; then
4238 $as_echo_n "(cached) " >&6
4239else
4240 if test -n "$NM"; then
4241 # Let the user override the test.
4242 lt_cv_path_NM="$NM"
4243else
4244 lt_nm_to_check="${ac_tool_prefix}nm"
4245 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4246 lt_nm_to_check="$lt_nm_to_check nm"
4247 fi
4248 for lt_tmp_nm in $lt_nm_to_check; do
4249 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4250 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4251 IFS="$lt_save_ifs"
4252 test -z "$ac_dir" && ac_dir=.
4253 tmp_nm="$ac_dir/$lt_tmp_nm"
4254 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4255 # Check to see if the nm accepts a BSD-compat flag.
4256 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4257 # nm: unknown option "B" ignored
4258 # Tru64's nm complains that /dev/null is an invalid object file
4259 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4260 */dev/null* | *'Invalid file or object type'*)
4261 lt_cv_path_NM="$tmp_nm -B"
4262 break
4263 ;;
4264 *)
4265 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4266 */dev/null*)
4267 lt_cv_path_NM="$tmp_nm -p"
4268 break
4269 ;;
4270 *)
4271 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4272 continue # so that we can try to find one that supports BSD flags
4273 ;;
4274 esac
4275 ;;
4276 esac
4277 fi
4278 done
4279 IFS="$lt_save_ifs"
4280 done
4281 : ${lt_cv_path_NM=no}
4282fi
4283fi
4284{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4285$as_echo "$lt_cv_path_NM" >&6; }
4286if test "$lt_cv_path_NM" != "no"; then
4287 NM="$lt_cv_path_NM"
4288else
4289 # Didn't find any BSD compatible name lister, look for dumpbin.
4290 if test -n "$ac_tool_prefix"; then
4291 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4292 do
4293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4294set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4295{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4296$as_echo_n "checking for $ac_word... " >&6; }
4297if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4298 $as_echo_n "(cached) " >&6
4299else
4300 if test -n "$DUMPBIN"; then
4301 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4302else
4303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304for as_dir in $PATH
4305do
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4310 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4311 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 break 2
4313 fi
4314done
4315done
4316IFS=$as_save_IFS
4317
4318fi
4319fi
4320DUMPBIN=$ac_cv_prog_DUMPBIN
4321if test -n "$DUMPBIN"; then
4322 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4323$as_echo "$DUMPBIN" >&6; }
4324else
4325 { $as_echo "$as_me:$LINENO: result: no" >&5
4326$as_echo "no" >&6; }
4327fi
4328
4329
4330 test -n "$DUMPBIN" && break
4331 done
4332fi
4333if test -z "$DUMPBIN"; then
4334 ac_ct_DUMPBIN=$DUMPBIN
4335 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4336do
4337 # Extract the first word of "$ac_prog", so it can be a program name with args.
4338set dummy $ac_prog; ac_word=$2
4339{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4340$as_echo_n "checking for $ac_word... " >&6; }
4341if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4342 $as_echo_n "(cached) " >&6
4343else
4344 if test -n "$ac_ct_DUMPBIN"; then
4345 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4346else
4347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348for as_dir in $PATH
4349do
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4354 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 break 2
4357 fi
4358done
4359done
4360IFS=$as_save_IFS
4361
4362fi
4363fi
4364ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4365if test -n "$ac_ct_DUMPBIN"; then
4366 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4367$as_echo "$ac_ct_DUMPBIN" >&6; }
4368else
4369 { $as_echo "$as_me:$LINENO: result: no" >&5
4370$as_echo "no" >&6; }
4371fi
4372
4373
4374 test -n "$ac_ct_DUMPBIN" && break
4375done
4376
4377 if test "x$ac_ct_DUMPBIN" = x; then
4378 DUMPBIN=":"
4379 else
4380 case $cross_compiling:$ac_tool_warned in
4381yes:)
4382{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4384ac_tool_warned=yes ;;
4385esac
4386 DUMPBIN=$ac_ct_DUMPBIN
4387 fi
4388fi
4389
4390
4391 if test "$DUMPBIN" != ":"; then
4392 NM="$DUMPBIN"
4393 fi
4394fi
4395test -z "$NM" && NM=nm
4396
4397
4398
4399
4400
4401
4402{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4403$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4404if test "${lt_cv_nm_interface+set}" = set; then
4405 $as_echo_n "(cached) " >&6
4406else
4407 lt_cv_nm_interface="BSD nm"
4408 echo "int some_variable = 0;" > conftest.$ac_ext
4409 (eval echo "\"\$as_me:4409: $ac_compile\"" >&5)
4410 (eval "$ac_compile" 2>conftest.err)
4411 cat conftest.err >&5
4412 (eval echo "\"\$as_me:4412: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4413 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4414 cat conftest.err >&5
4415 (eval echo "\"\$as_me:4415: output\"" >&5)
4416 cat conftest.out >&5
4417 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4418 lt_cv_nm_interface="MS dumpbin"
4419 fi
4420 rm -f conftest*
4421fi
4422{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4423$as_echo "$lt_cv_nm_interface" >&6; }
4424
4425{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4426$as_echo_n "checking whether ln -s works... " >&6; }
4427LN_S=$as_ln_s
4428if test "$LN_S" = "ln -s"; then
4429 { $as_echo "$as_me:$LINENO: result: yes" >&5
4430$as_echo "yes" >&6; }
4431else
4432 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4433$as_echo "no, using $LN_S" >&6; }
4434fi
4435
4436# find the maximum length of command line arguments
4437{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4438$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4439if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4440 $as_echo_n "(cached) " >&6
4441else
4442 i=0
4443 teststring="ABCD"
4444
4445 case $build_os in
4446 msdosdjgpp*)
4447 # On DJGPP, this test can blow up pretty badly due to problems in libc
4448 # (any single argument exceeding 2000 bytes causes a buffer overrun
4449 # during glob expansion). Even if it were fixed, the result of this
4450 # check would be larger than it should be.
4451 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4452 ;;
4453
4454 gnu*)
4455 # Under GNU Hurd, this test is not required because there is
4456 # no limit to the length of command line arguments.
4457 # Libtool will interpret -1 as no limit whatsoever
4458 lt_cv_sys_max_cmd_len=-1;
4459 ;;
4460
4461 cygwin* | mingw* | cegcc*)
4462 # On Win9x/ME, this test blows up -- it succeeds, but takes
4463 # about 5 minutes as the teststring grows exponentially.
4464 # Worse, since 9x/ME are not pre-emptively multitasking,
4465 # you end up with a "frozen" computer, even though with patience
4466 # the test eventually succeeds (with a max line length of 256k).
4467 # Instead, let's just punt: use the minimum linelength reported by
4468 # all of the supported platforms: 8192 (on NT/2K/XP).
4469 lt_cv_sys_max_cmd_len=8192;
4470 ;;
4471
4472 amigaos*)
4473 # On AmigaOS with pdksh, this test takes hours, literally.
4474 # So we just punt and use a minimum line length of 8192.
4475 lt_cv_sys_max_cmd_len=8192;
4476 ;;
4477
4478 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4479 # This has been around since 386BSD, at least. Likely further.
4480 if test -x /sbin/sysctl; then
4481 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4482 elif test -x /usr/sbin/sysctl; then
4483 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4484 else
4485 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4486 fi
4487 # And add a safety zone
4488 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4490 ;;
4491
4492 interix*)
4493 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4494 lt_cv_sys_max_cmd_len=196608
4495 ;;
4496
4497 osf*)
4498 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4499 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4500 # nice to cause kernel panics so lets avoid the loop below.
4501 # First set a reasonable default.
4502 lt_cv_sys_max_cmd_len=16384
4503 #
4504 if test -x /sbin/sysconfig; then
4505 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4506 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4507 esac
4508 fi
4509 ;;
4510 sco3.2v5*)
4511 lt_cv_sys_max_cmd_len=102400
4512 ;;
4513 sysv5* | sco5v6* | sysv4.2uw2*)
4514 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4515 if test -n "$kargmax"; then
4516 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4517 else
4518 lt_cv_sys_max_cmd_len=32768
4519 fi
4520 ;;
4521 *)
4522 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4523 if test -n "$lt_cv_sys_max_cmd_len"; then
4524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4525 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4526 else
4527 # Make teststring a little bigger before we do anything with it.
4528 # a 1K string should be a reasonable start.
4529 for i in 1 2 3 4 5 6 7 8 ; do
4530 teststring=$teststring$teststring
4531 done
4532 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4533 # If test is not a shell built-in, we'll probably end up computing a
4534 # maximum length that is only half of the actual maximum length, but
4535 # we can't tell.
4536 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4537 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4538 test $i != 17 # 1/2 MB should be enough
4539 do
4540 i=`expr $i + 1`
4541 teststring=$teststring$teststring
4542 done
4543 # Only check the string length outside the loop.
4544 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4545 teststring=
4546 # Add a significant safety factor because C++ compilers can tack on
4547 # massive amounts of additional arguments before passing them to the
4548 # linker. It appears as though 1/2 is a usable value.
4549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4550 fi
4551 ;;
4552 esac
4553
4554fi
4555
4556if test -n $lt_cv_sys_max_cmd_len ; then
4557 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4558$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4559else
4560 { $as_echo "$as_me:$LINENO: result: none" >&5
4561$as_echo "none" >&6; }
4562fi
4563max_cmd_len=$lt_cv_sys_max_cmd_len
4564
4565
4566
4567
4568
4569
4570: ${CP="cp -f"}
4571: ${MV="mv -f"}
4572: ${RM="rm -f"}
4573
4574{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4575$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4576# Try some XSI features
4577xsi_shell=no
4578( _lt_dummy="a/b/c"
4579 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4580 = c,a/b,, \
4581 && eval 'test $(( 1 + 1 )) -eq 2 \
4582 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4583 && xsi_shell=yes
4584{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4585$as_echo "$xsi_shell" >&6; }
4586
4587
4588{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4589$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4590lt_shell_append=no
4591( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4592 >/dev/null 2>&1 \
4593 && lt_shell_append=yes
4594{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4595$as_echo "$lt_shell_append" >&6; }
4596
4597
4598if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4599 lt_unset=unset
4600else
4601 lt_unset=false
4602fi
4603
4604
4605
4606
4607
4608# test EBCDIC or ASCII
4609case `echo X|tr X '\101'` in
4610 A) # ASCII based system
4611 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4612 lt_SP2NL='tr \040 \012'
4613 lt_NL2SP='tr \015\012 \040\040'
4614 ;;
4615 *) # EBCDIC based system
4616 lt_SP2NL='tr \100 \n'
4617 lt_NL2SP='tr \r\n \100\100'
4618 ;;
4619esac
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4630$as_echo_n "checking for $LD option to reload object files... " >&6; }
4631if test "${lt_cv_ld_reload_flag+set}" = set; then
4632 $as_echo_n "(cached) " >&6
4633else
4634 lt_cv_ld_reload_flag='-r'
4635fi
4636{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4637$as_echo "$lt_cv_ld_reload_flag" >&6; }
4638reload_flag=$lt_cv_ld_reload_flag
4639case $reload_flag in
4640"" | " "*) ;;
4641*) reload_flag=" $reload_flag" ;;
4642esac
4643reload_cmds='$LD$reload_flag -o $output$reload_objs'
4644case $host_os in
4645 darwin*)
4646 if test "$GCC" = yes; then
4647 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4648 else
4649 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4650 fi
4651 ;;
4652esac
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662if test -n "$ac_tool_prefix"; then
4663 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4664set dummy ${ac_tool_prefix}objdump; ac_word=$2
4665{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4666$as_echo_n "checking for $ac_word... " >&6; }
4667if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4668 $as_echo_n "(cached) " >&6
4669else
4670 if test -n "$OBJDUMP"; then
4671 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4672else
4673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674for as_dir in $PATH
4675do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4681 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4683 fi
4684done
4685done
4686IFS=$as_save_IFS
4687
4688fi
4689fi
4690OBJDUMP=$ac_cv_prog_OBJDUMP
4691if test -n "$OBJDUMP"; then
4692 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4693$as_echo "$OBJDUMP" >&6; }
4694else
4695 { $as_echo "$as_me:$LINENO: result: no" >&5
4696$as_echo "no" >&6; }
4697fi
4698
4699
4700fi
4701if test -z "$ac_cv_prog_OBJDUMP"; then
4702 ac_ct_OBJDUMP=$OBJDUMP
4703 # Extract the first word of "objdump", so it can be a program name with args.
4704set dummy objdump; ac_word=$2
4705{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4706$as_echo_n "checking for $ac_word... " >&6; }
4707if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4708 $as_echo_n "(cached) " >&6
4709else
4710 if test -n "$ac_ct_OBJDUMP"; then
4711 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4712else
4713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714for as_dir in $PATH
4715do
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4721 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 break 2
4723 fi
4724done
4725done
4726IFS=$as_save_IFS
4727
4728fi
4729fi
4730ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4731if test -n "$ac_ct_OBJDUMP"; then
4732 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4733$as_echo "$ac_ct_OBJDUMP" >&6; }
4734else
4735 { $as_echo "$as_me:$LINENO: result: no" >&5
4736$as_echo "no" >&6; }
4737fi
4738
4739 if test "x$ac_ct_OBJDUMP" = x; then
4740 OBJDUMP="false"
4741 else
4742 case $cross_compiling:$ac_tool_warned in
4743yes:)
4744{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4746ac_tool_warned=yes ;;
4747esac
4748 OBJDUMP=$ac_ct_OBJDUMP
4749 fi
4750else
4751 OBJDUMP="$ac_cv_prog_OBJDUMP"
4752fi
4753
4754test -z "$OBJDUMP" && OBJDUMP=objdump
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4765$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4766if test "${lt_cv_deplibs_check_method+set}" = set; then
4767 $as_echo_n "(cached) " >&6
4768else
4769 lt_cv_file_magic_cmd='$MAGIC_CMD'
4770lt_cv_file_magic_test_file=
4771lt_cv_deplibs_check_method='unknown'
4772# Need to set the preceding variable on all platforms that support
4773# interlibrary dependencies.
4774# 'none' -- dependencies not supported.
4775# `unknown' -- same as none, but documents that we really don't know.
4776# 'pass_all' -- all dependencies passed with no checks.
4777# 'test_compile' -- check by making test program.
4778# 'file_magic [[regex]]' -- check by looking for files in library path
4779# which responds to the $file_magic_cmd with a given extended regex.
4780# If you have `file' or equivalent on your system and you're not sure
4781# whether `pass_all' will *always* work, you probably want this one.
4782
4783case $host_os in
4784aix[4-9]*)
4785 lt_cv_deplibs_check_method=pass_all
4786 ;;
4787
4788beos*)
4789 lt_cv_deplibs_check_method=pass_all
4790 ;;
4791
4792bsdi[45]*)
4793 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4794 lt_cv_file_magic_cmd='/usr/bin/file -L'
4795 lt_cv_file_magic_test_file=/shlib/libc.so
4796 ;;
4797
4798cygwin*)
4799 # func_win32_libid is a shell function defined in ltmain.sh
4800 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4801 lt_cv_file_magic_cmd='func_win32_libid'
4802 ;;
4803
4804mingw* | pw32*)
4805 # Base MSYS/MinGW do not provide the 'file' command needed by
4806 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4807 # unless we find 'file', for example because we are cross-compiling.
4808 if ( file / ) >/dev/null 2>&1; then
4809 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4810 lt_cv_file_magic_cmd='func_win32_libid'
4811 else
4812 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4813 lt_cv_file_magic_cmd='$OBJDUMP -f'
4814 fi
4815 ;;
4816
4817cegcc)
4818 # use the weaker test based on 'objdump'. See mingw*.
4819 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4820 lt_cv_file_magic_cmd='$OBJDUMP -f'
4821 ;;
4822
4823darwin* | rhapsody*)
4824 lt_cv_deplibs_check_method=pass_all
4825 ;;
4826
4827freebsd* | dragonfly*)
4828 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4829 case $host_cpu in
4830 i*86 )
4831 # Not sure whether the presence of OpenBSD here was a mistake.
4832 # Let's accept both of them until this is cleared up.
4833 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4834 lt_cv_file_magic_cmd=/usr/bin/file
4835 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4836 ;;
4837 esac
4838 else
4839 lt_cv_deplibs_check_method=pass_all
4840 fi
4841 ;;
4842
4843gnu*)
4844 lt_cv_deplibs_check_method=pass_all
4845 ;;
4846
4847hpux10.20* | hpux11*)
4848 lt_cv_file_magic_cmd=/usr/bin/file
4849 case $host_cpu in
4850 ia64*)
4851 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4852 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4853 ;;
4854 hppa*64*)
4855 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]'
4856 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4857 ;;
4858 *)
4859 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4860 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4861 ;;
4862 esac
4863 ;;
4864
4865interix[3-9]*)
4866 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4867 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4868 ;;
4869
4870irix5* | irix6* | nonstopux*)
4871 case $LD in
4872 *-32|*"-32 ") libmagic=32-bit;;
4873 *-n32|*"-n32 ") libmagic=N32;;
4874 *-64|*"-64 ") libmagic=64-bit;;
4875 *) libmagic=never-match;;
4876 esac
4877 lt_cv_deplibs_check_method=pass_all
4878 ;;
4879
4880# This must be Linux ELF.
4881linux* | k*bsd*-gnu)
4882 lt_cv_deplibs_check_method=pass_all
4883 ;;
4884
4885netbsd*)
4886 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4887 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4888 else
4889 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4890 fi
4891 ;;
4892
4893newos6*)
4894 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4895 lt_cv_file_magic_cmd=/usr/bin/file
4896 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4897 ;;
4898
4899*nto* | *qnx*)
4900 lt_cv_deplibs_check_method=pass_all
4901 ;;
4902
4903openbsd*)
4904 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4905 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4906 else
4907 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4908 fi
4909 ;;
4910
4911osf3* | osf4* | osf5*)
4912 lt_cv_deplibs_check_method=pass_all
4913 ;;
4914
4915rdos*)
4916 lt_cv_deplibs_check_method=pass_all
4917 ;;
4918
4919solaris*)
4920 lt_cv_deplibs_check_method=pass_all
4921 ;;
4922
4923sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4924 lt_cv_deplibs_check_method=pass_all
4925 ;;
4926
4927sysv4 | sysv4.3*)
4928 case $host_vendor in
4929 motorola)
4930 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]'
4931 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4932 ;;
4933 ncr)
4934 lt_cv_deplibs_check_method=pass_all
4935 ;;
4936 sequent)
4937 lt_cv_file_magic_cmd='/bin/file'
4938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4939 ;;
4940 sni)
4941 lt_cv_file_magic_cmd='/bin/file'
4942 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4943 lt_cv_file_magic_test_file=/lib/libc.so
4944 ;;
4945 siemens)
4946 lt_cv_deplibs_check_method=pass_all
4947 ;;
4948 pc)
4949 lt_cv_deplibs_check_method=pass_all
4950 ;;
4951 esac
4952 ;;
4953
4954tpf*)
4955 lt_cv_deplibs_check_method=pass_all
4956 ;;
4957esac
4958
4959fi
4960{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4961$as_echo "$lt_cv_deplibs_check_method" >&6; }
4962file_magic_cmd=$lt_cv_file_magic_cmd
4963deplibs_check_method=$lt_cv_deplibs_check_method
4964test -z "$deplibs_check_method" && deplibs_check_method=unknown
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977if test -n "$ac_tool_prefix"; then
4978 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4979set dummy ${ac_tool_prefix}ar; ac_word=$2
4980{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4981$as_echo_n "checking for $ac_word... " >&6; }
4982if test "${ac_cv_prog_AR+set}" = set; then
4983 $as_echo_n "(cached) " >&6
4984else
4985 if test -n "$AR"; then
4986 ac_cv_prog_AR="$AR" # Let the user override the test.
4987else
4988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_prog_AR="${ac_tool_prefix}ar"
4996 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4998 fi
4999done
5000done
5001IFS=$as_save_IFS
5002
5003fi
5004fi
5005AR=$ac_cv_prog_AR
5006if test -n "$AR"; then
5007 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5008$as_echo "$AR" >&6; }
5009else
5010 { $as_echo "$as_me:$LINENO: result: no" >&5
5011$as_echo "no" >&6; }
5012fi
5013
5014
5015fi
5016if test -z "$ac_cv_prog_AR"; then
5017 ac_ct_AR=$AR
5018 # Extract the first word of "ar", so it can be a program name with args.
5019set dummy ar; ac_word=$2
5020{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5021$as_echo_n "checking for $ac_word... " >&6; }
5022if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5023 $as_echo_n "(cached) " >&6
5024else
5025 if test -n "$ac_ct_AR"; then
5026 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5027else
5028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029for as_dir in $PATH
5030do
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5035 ac_cv_prog_ac_ct_AR="ar"
5036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 break 2
5038 fi
5039done
5040done
5041IFS=$as_save_IFS
5042
5043fi
5044fi
5045ac_ct_AR=$ac_cv_prog_ac_ct_AR
5046if test -n "$ac_ct_AR"; then
5047 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5048$as_echo "$ac_ct_AR" >&6; }
5049else
5050 { $as_echo "$as_me:$LINENO: result: no" >&5
5051$as_echo "no" >&6; }
5052fi
5053
5054 if test "x$ac_ct_AR" = x; then
5055 AR="false"
5056 else
5057 case $cross_compiling:$ac_tool_warned in
5058yes:)
5059{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5061ac_tool_warned=yes ;;
5062esac
5063 AR=$ac_ct_AR
5064 fi
5065else
5066 AR="$ac_cv_prog_AR"
5067fi
5068
5069test -z "$AR" && AR=ar
5070test -z "$AR_FLAGS" && AR_FLAGS=cru
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082if test -n "$ac_tool_prefix"; then
5083 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5084set dummy ${ac_tool_prefix}strip; ac_word=$2
5085{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5086$as_echo_n "checking for $ac_word... " >&6; }
5087if test "${ac_cv_prog_STRIP+set}" = set; then
5088 $as_echo_n "(cached) " >&6
5089else
5090 if test -n "$STRIP"; then
5091 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5092else
5093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094for as_dir in $PATH
5095do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5101 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5103 fi
5104done
5105done
5106IFS=$as_save_IFS
5107
5108fi
5109fi
5110STRIP=$ac_cv_prog_STRIP
5111if test -n "$STRIP"; then
5112 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5113$as_echo "$STRIP" >&6; }
5114else
5115 { $as_echo "$as_me:$LINENO: result: no" >&5
5116$as_echo "no" >&6; }
5117fi
5118
5119
5120fi
5121if test -z "$ac_cv_prog_STRIP"; then
5122 ac_ct_STRIP=$STRIP
5123 # Extract the first word of "strip", so it can be a program name with args.
5124set dummy strip; ac_word=$2
5125{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5126$as_echo_n "checking for $ac_word... " >&6; }
5127if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5128 $as_echo_n "(cached) " >&6
5129else
5130 if test -n "$ac_ct_STRIP"; then
5131 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5132else
5133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140 ac_cv_prog_ac_ct_STRIP="strip"
5141 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5143 fi
5144done
5145done
5146IFS=$as_save_IFS
5147
5148fi
5149fi
5150ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5151if test -n "$ac_ct_STRIP"; then
5152 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5153$as_echo "$ac_ct_STRIP" >&6; }
5154else
5155 { $as_echo "$as_me:$LINENO: result: no" >&5
5156$as_echo "no" >&6; }
5157fi
5158
5159 if test "x$ac_ct_STRIP" = x; then
5160 STRIP=":"
5161 else
5162 case $cross_compiling:$ac_tool_warned in
5163yes:)
5164{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5165$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5166ac_tool_warned=yes ;;
5167esac
5168 STRIP=$ac_ct_STRIP
5169 fi
5170else
5171 STRIP="$ac_cv_prog_STRIP"
5172fi
5173
5174test -z "$STRIP" && STRIP=:
5175
5176
5177
5178
5179
5180
5181if test -n "$ac_tool_prefix"; then
5182 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5183set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5184{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5185$as_echo_n "checking for $ac_word... " >&6; }
5186if test "${ac_cv_prog_RANLIB+set}" = set; then
5187 $as_echo_n "(cached) " >&6
5188else
5189 if test -n "$RANLIB"; then
5190 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5191else
5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5202 fi
5203done
5204done
5205IFS=$as_save_IFS
5206
5207fi
5208fi
5209RANLIB=$ac_cv_prog_RANLIB
5210if test -n "$RANLIB"; then
5211 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5212$as_echo "$RANLIB" >&6; }
5213else
5214 { $as_echo "$as_me:$LINENO: result: no" >&5
5215$as_echo "no" >&6; }
5216fi
5217
5218
5219fi
5220if test -z "$ac_cv_prog_RANLIB"; then
5221 ac_ct_RANLIB=$RANLIB
5222 # Extract the first word of "ranlib", so it can be a program name with args.
5223set dummy ranlib; ac_word=$2
5224{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5225$as_echo_n "checking for $ac_word... " >&6; }
5226if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5227 $as_echo_n "(cached) " >&6
5228else
5229 if test -n "$ac_ct_RANLIB"; then
5230 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5231else
5232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233for as_dir in $PATH
5234do
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239 ac_cv_prog_ac_ct_RANLIB="ranlib"
5240 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5242 fi
5243done
5244done
5245IFS=$as_save_IFS
5246
5247fi
5248fi
5249ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5250if test -n "$ac_ct_RANLIB"; then
5251 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5252$as_echo "$ac_ct_RANLIB" >&6; }
5253else
5254 { $as_echo "$as_me:$LINENO: result: no" >&5
5255$as_echo "no" >&6; }
5256fi
5257
5258 if test "x$ac_ct_RANLIB" = x; then
5259 RANLIB=":"
5260 else
5261 case $cross_compiling:$ac_tool_warned in
5262yes:)
5263{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5265ac_tool_warned=yes ;;
5266esac
5267 RANLIB=$ac_ct_RANLIB
5268 fi
5269else
5270 RANLIB="$ac_cv_prog_RANLIB"
5271fi
5272
5273test -z "$RANLIB" && RANLIB=:
5274
5275
5276
5277
5278
5279
5280# Determine commands to create old-style static archives.
5281old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5282old_postinstall_cmds='chmod 644 $oldlib'
5283old_postuninstall_cmds=
5284
5285if test -n "$RANLIB"; then
5286 case $host_os in
5287 openbsd*)
5288 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5289 ;;
5290 *)
5291 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5292 ;;
5293 esac
5294 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5295fi
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330# If no C compiler was specified, use CC.
5331LTCC=${LTCC-"$CC"}
5332
5333# If no C compiler flags were specified, use CFLAGS.
5334LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5335
5336# Allow CC to be a program name with arguments.
5337compiler=$CC
5338
5339
5340# Check for command to grab the raw symbol name followed by C symbol from nm.
5341{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5342$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5343if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5344 $as_echo_n "(cached) " >&6
5345else
5346
5347# These are sane defaults that work on at least a few old systems.
5348# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5349
5350# Character class describing NM global symbol codes.
5351symcode='[BCDEGRST]'
5352
5353# Regexp to match symbols that can be accessed directly from C.
5354sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5355
5356# Define system-specific variables.
5357case $host_os in
5358aix*)
5359 symcode='[BCDT]'
5360 ;;
5361cygwin* | mingw* | pw32* | cegcc*)
5362 symcode='[ABCDGISTW]'
5363 ;;
5364hpux*)
5365 if test "$host_cpu" = ia64; then
5366 symcode='[ABCDEGRST]'
5367 fi
5368 ;;
5369irix* | nonstopux*)
5370 symcode='[BCDEGRST]'
5371 ;;
5372osf*)
5373 symcode='[BCDEGQRST]'
5374 ;;
5375solaris*)
5376 symcode='[BDRT]'
5377 ;;
5378sco3.2v5*)
5379 symcode='[DT]'
5380 ;;
5381sysv4.2uw2*)
5382 symcode='[DT]'
5383 ;;
5384sysv5* | sco5v6* | unixware* | OpenUNIX*)
5385 symcode='[ABDT]'
5386 ;;
5387sysv4)
5388 symcode='[DFNSTU]'
5389 ;;
5390esac
5391
5392# If we're using GNU nm, then use its standard symbol codes.
5393case `$NM -V 2>&1` in
5394*GNU* | *'with BFD'*)
5395 symcode='[ABCDGIRSTW]' ;;
5396esac
5397
5398# Transform an extracted symbol line into a proper C declaration.
5399# Some systems (esp. on ia64) link data and code symbols differently,
5400# so use this general approach.
5401lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5402
5403# Transform an extracted symbol line into symbol name and symbol address
5404lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5405lt_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'"
5406
5407# Handle CRLF in mingw tool chain
5408opt_cr=
5409case $build_os in
5410mingw*)
5411 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5412 ;;
5413esac
5414
5415# Try without a prefix underscore, then with it.
5416for ac_symprfx in "" "_"; do
5417
5418 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5419 symxfrm="\\1 $ac_symprfx\\2 \\2"
5420
5421 # Write the raw and C identifiers.
5422 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5423 # Fake it for dumpbin and say T for any non-static function
5424 # and D for any global variable.
5425 # Also find C++ and __fastcall symbols from MSVC++,
5426 # which start with @ or ?.
5427 lt_cv_sys_global_symbol_pipe="$AWK '"\
5428" {last_section=section; section=\$ 3};"\
5429" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5430" \$ 0!~/External *\|/{next};"\
5431" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5432" {if(hide[section]) next};"\
5433" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5434" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5435" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5436" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5437" ' prfx=^$ac_symprfx"
5438 else
5439 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5440 fi
5441
5442 # Check to see that the pipe works correctly.
5443 pipe_works=no
5444
5445 rm -f conftest*
5446 cat > conftest.$ac_ext <<_LT_EOF
5447#ifdef __cplusplus
5448extern "C" {
5449#endif
5450char nm_test_var;
5451void nm_test_func(void);
5452void nm_test_func(void){}
5453#ifdef __cplusplus
5454}
5455#endif
5456int main(){nm_test_var='a';nm_test_func();return(0);}
5457_LT_EOF
5458
5459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5460 (eval $ac_compile) 2>&5
5461 ac_status=$?
5462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); }; then
5464 # Now try to grab the symbols.
5465 nlist=conftest.nm
5466 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5467 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5468 ac_status=$?
5469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } && test -s "$nlist"; then
5471 # Try sorting and uniquifying the output.
5472 if sort "$nlist" | uniq > "$nlist"T; then
5473 mv -f "$nlist"T "$nlist"
5474 else
5475 rm -f "$nlist"T
5476 fi
5477
5478 # Make sure that we snagged all the symbols we need.
5479 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5480 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5481 cat <<_LT_EOF > conftest.$ac_ext
5482#ifdef __cplusplus
5483extern "C" {
5484#endif
5485
5486_LT_EOF
5487 # Now generate the symbol file.
5488 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5489
5490 cat <<_LT_EOF >> conftest.$ac_ext
5491
5492/* The mapping between symbol names and symbols. */
5493const struct {
5494 const char *name;
5495 void *address;
5496}
5497lt__PROGRAM__LTX_preloaded_symbols[] =
5498{
5499 { "@PROGRAM@", (void *) 0 },
5500_LT_EOF
5501 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5502 cat <<\_LT_EOF >> conftest.$ac_ext
5503 {0, (void *) 0}
5504};
5505
5506/* This works around a problem in FreeBSD linker */
5507#ifdef FREEBSD_WORKAROUND
5508static const void *lt_preloaded_setup() {
5509 return lt__PROGRAM__LTX_preloaded_symbols;
5510}
5511#endif
5512
5513#ifdef __cplusplus
5514}
5515#endif
5516_LT_EOF
5517 # Now try linking the two files.
5518 mv conftest.$ac_objext conftstm.$ac_objext
5519 lt_save_LIBS="$LIBS"
5520 lt_save_CFLAGS="$CFLAGS"
5521 LIBS="conftstm.$ac_objext"
5522 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5524 (eval $ac_link) 2>&5
5525 ac_status=$?
5526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5528 pipe_works=yes
5529 fi
5530 LIBS="$lt_save_LIBS"
5531 CFLAGS="$lt_save_CFLAGS"
5532 else
5533 echo "cannot find nm_test_func in $nlist" >&5
5534 fi
5535 else
5536 echo "cannot find nm_test_var in $nlist" >&5
5537 fi
5538 else
5539 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5540 fi
5541 else
5542 echo "$progname: failed program was:" >&5
5543 cat conftest.$ac_ext >&5
5544 fi
5545 rm -rf conftest* conftst*
5546
5547 # Do not use the global_symbol_pipe unless it works.
5548 if test "$pipe_works" = yes; then
5549 break
5550 else
5551 lt_cv_sys_global_symbol_pipe=
5552 fi
5553done
5554
5555fi
5556
5557if test -z "$lt_cv_sys_global_symbol_pipe"; then
5558 lt_cv_sys_global_symbol_to_cdecl=
5559fi
5560if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5561 { $as_echo "$as_me:$LINENO: result: failed" >&5
5562$as_echo "failed" >&6; }
5563else
5564 { $as_echo "$as_me:$LINENO: result: ok" >&5
5565$as_echo "ok" >&6; }
5566fi
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590# Check whether --enable-libtool-lock was given.
5591if test "${enable_libtool_lock+set}" = set; then
5592 enableval=$enable_libtool_lock;
5593fi
5594
5595test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5596
5597# Some flags need to be propagated to the compiler or linker for good
5598# libtool support.
5599case $host in
5600ia64-*-hpux*)
5601 # Find out which ABI we are using.
5602 echo 'int i;' > conftest.$ac_ext
5603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5604 (eval $ac_compile) 2>&5
5605 ac_status=$?
5606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; then
5608 case `/usr/bin/file conftest.$ac_objext` in
5609 *ELF-32*)
5610 HPUX_IA64_MODE="32"
5611 ;;
5612 *ELF-64*)
5613 HPUX_IA64_MODE="64"
5614 ;;
5615 esac
5616 fi
5617 rm -rf conftest*
5618 ;;
5619*-*-irix6*)
5620 # Find out which ABI we are using.
5621 echo '#line 5621 "configure"' > conftest.$ac_ext
5622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5623 (eval $ac_compile) 2>&5
5624 ac_status=$?
5625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; then
5627 if test "$lt_cv_prog_gnu_ld" = yes; then
5628 case `/usr/bin/file conftest.$ac_objext` in
5629 *32-bit*)
5630 LD="${LD-ld} -melf32bsmip"
5631 ;;
5632 *N32*)
5633 LD="${LD-ld} -melf32bmipn32"
5634 ;;
5635 *64-bit*)
5636 LD="${LD-ld} -melf64bmip"
5637 ;;
5638 esac
5639 else
5640 case `/usr/bin/file conftest.$ac_objext` in
5641 *32-bit*)
5642 LD="${LD-ld} -32"
5643 ;;
5644 *N32*)
5645 LD="${LD-ld} -n32"
5646 ;;
5647 *64-bit*)
5648 LD="${LD-ld} -64"
5649 ;;
5650 esac
5651 fi
5652 fi
5653 rm -rf conftest*
5654 ;;
5655
5656x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5657s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5658 # Find out which ABI we are using.
5659 echo 'int i;' > conftest.$ac_ext
5660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5661 (eval $ac_compile) 2>&5
5662 ac_status=$?
5663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; then
5665 case `/usr/bin/file conftest.o` in
5666 *32-bit*)
5667 case $host in
5668 x86_64-*kfreebsd*-gnu)
5669 LD="${LD-ld} -m elf_i386_fbsd"
5670 ;;
5671 x86_64-*linux*)
5672 LD="${LD-ld} -m elf_i386"
5673 ;;
5674 ppc64-*linux*|powerpc64-*linux*)
5675 LD="${LD-ld} -m elf32ppclinux"
5676 ;;
5677 s390x-*linux*)
5678 LD="${LD-ld} -m elf_s390"
5679 ;;
5680 sparc64-*linux*)
5681 LD="${LD-ld} -m elf32_sparc"
5682 ;;
5683 esac
5684 ;;
5685 *64-bit*)
5686 case $host in
5687 x86_64-*kfreebsd*-gnu)
5688 LD="${LD-ld} -m elf_x86_64_fbsd"
5689 ;;
5690 x86_64-*linux*)
5691 LD="${LD-ld} -m elf_x86_64"
5692 ;;
5693 ppc*-*linux*|powerpc*-*linux*)
5694 LD="${LD-ld} -m elf64ppc"
5695 ;;
5696 s390*-*linux*|s390*-*tpf*)
5697 LD="${LD-ld} -m elf64_s390"
5698 ;;
5699 sparc*-*linux*)
5700 LD="${LD-ld} -m elf64_sparc"
5701 ;;
5702 esac
5703 ;;
5704 esac
5705 fi
5706 rm -rf conftest*
5707 ;;
5708
5709*-*-sco3.2v5*)
5710 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5711 SAVE_CFLAGS="$CFLAGS"
5712 CFLAGS="$CFLAGS -belf"
5713 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5714$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5715if test "${lt_cv_cc_needs_belf+set}" = set; then
5716 $as_echo_n "(cached) " >&6
5717else
5718 ac_ext=c
5719ac_cpp='$CPP $CPPFLAGS'
5720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5722ac_compiler_gnu=$ac_cv_c_compiler_gnu
5723
5724 cat >conftest.$ac_ext <<_ACEOF
5725/* confdefs.h. */
5726_ACEOF
5727cat confdefs.h >>conftest.$ac_ext
5728cat >>conftest.$ac_ext <<_ACEOF
5729/* end confdefs.h. */
5730
5731int
5732main ()
5733{
5734
5735 ;
5736 return 0;
5737}
5738_ACEOF
5739rm -f conftest.$ac_objext conftest$ac_exeext
5740if { (ac_try="$ac_link"
5741case "(($ac_try" in
5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743 *) ac_try_echo=$ac_try;;
5744esac
5745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5746$as_echo "$ac_try_echo") >&5
5747 (eval "$ac_link") 2>conftest.er1
5748 ac_status=$?
5749 grep -v '^ *+' conftest.er1 >conftest.err
5750 rm -f conftest.er1
5751 cat conftest.err >&5
5752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } && {
5754 test -z "$ac_c_werror_flag" ||
5755 test ! -s conftest.err
5756 } && test -s conftest$ac_exeext && {
5757 test "$cross_compiling" = yes ||
5758 $as_test_x conftest$ac_exeext
5759 }; then
5760 lt_cv_cc_needs_belf=yes
5761else
5762 $as_echo "$as_me: failed program was:" >&5
5763sed 's/^/| /' conftest.$ac_ext >&5
5764
5765 lt_cv_cc_needs_belf=no
5766fi
5767
5768rm -rf conftest.dSYM
5769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5770 conftest$ac_exeext conftest.$ac_ext
5771 ac_ext=c
5772ac_cpp='$CPP $CPPFLAGS'
5773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5775ac_compiler_gnu=$ac_cv_c_compiler_gnu
5776
5777fi
5778{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5779$as_echo "$lt_cv_cc_needs_belf" >&6; }
5780 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5781 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5782 CFLAGS="$SAVE_CFLAGS"
5783 fi
5784 ;;
5785sparc*-*solaris*)
5786 # Find out which ABI we are using.
5787 echo 'int i;' > conftest.$ac_ext
5788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5789 (eval $ac_compile) 2>&5
5790 ac_status=$?
5791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; then
5793 case `/usr/bin/file conftest.o` in
5794 *64-bit*)
5795 case $lt_cv_prog_gnu_ld in
5796 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5797 *)
5798 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5799 LD="${LD-ld} -64"
5800 fi
5801 ;;
5802 esac
5803 ;;
5804 esac
5805 fi
5806 rm -rf conftest*
5807 ;;
5808esac
5809
5810need_locks="$enable_libtool_lock"
5811
5812
5813 case $host_os in
5814 rhapsody* | darwin*)
5815 if test -n "$ac_tool_prefix"; then
5816 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5817set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5818{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5819$as_echo_n "checking for $ac_word... " >&6; }
5820if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5821 $as_echo_n "(cached) " >&6
5822else
5823 if test -n "$DSYMUTIL"; then
5824 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5825else
5826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827for as_dir in $PATH
5828do
5829 IFS=$as_save_IFS
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5834 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 break 2
5836 fi
5837done
5838done
5839IFS=$as_save_IFS
5840
5841fi
5842fi
5843DSYMUTIL=$ac_cv_prog_DSYMUTIL
5844if test -n "$DSYMUTIL"; then
5845 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5846$as_echo "$DSYMUTIL" >&6; }
5847else
5848 { $as_echo "$as_me:$LINENO: result: no" >&5
5849$as_echo "no" >&6; }
5850fi
5851
5852
5853fi
5854if test -z "$ac_cv_prog_DSYMUTIL"; then
5855 ac_ct_DSYMUTIL=$DSYMUTIL
5856 # Extract the first word of "dsymutil", so it can be a program name with args.
5857set dummy dsymutil; ac_word=$2
5858{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5859$as_echo_n "checking for $ac_word... " >&6; }
5860if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5861 $as_echo_n "(cached) " >&6
5862else
5863 if test -n "$ac_ct_DSYMUTIL"; then
5864 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5865else
5866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867for as_dir in $PATH
5868do
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5873 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5874 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 break 2
5876 fi
5877done
5878done
5879IFS=$as_save_IFS
5880
5881fi
5882fi
5883ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5884if test -n "$ac_ct_DSYMUTIL"; then
5885 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5886$as_echo "$ac_ct_DSYMUTIL" >&6; }
5887else
5888 { $as_echo "$as_me:$LINENO: result: no" >&5
5889$as_echo "no" >&6; }
5890fi
5891
5892 if test "x$ac_ct_DSYMUTIL" = x; then
5893 DSYMUTIL=":"
5894 else
5895 case $cross_compiling:$ac_tool_warned in
5896yes:)
5897{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5899ac_tool_warned=yes ;;
5900esac
5901 DSYMUTIL=$ac_ct_DSYMUTIL
5902 fi
5903else
5904 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5905fi
5906
5907 if test -n "$ac_tool_prefix"; then
5908 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5909set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5910{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5911$as_echo_n "checking for $ac_word... " >&6; }
5912if test "${ac_cv_prog_NMEDIT+set}" = set; then
5913 $as_echo_n "(cached) " >&6
5914else
5915 if test -n "$NMEDIT"; then
5916 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5917else
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5925 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5926 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5928 fi
5929done
5930done
5931IFS=$as_save_IFS
5932
5933fi
5934fi
5935NMEDIT=$ac_cv_prog_NMEDIT
5936if test -n "$NMEDIT"; then
5937 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5938$as_echo "$NMEDIT" >&6; }
5939else
5940 { $as_echo "$as_me:$LINENO: result: no" >&5
5941$as_echo "no" >&6; }
5942fi
5943
5944
5945fi
5946if test -z "$ac_cv_prog_NMEDIT"; then
5947 ac_ct_NMEDIT=$NMEDIT
5948 # Extract the first word of "nmedit", so it can be a program name with args.
5949set dummy nmedit; ac_word=$2
5950{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5951$as_echo_n "checking for $ac_word... " >&6; }
5952if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5953 $as_echo_n "(cached) " >&6
5954else
5955 if test -n "$ac_ct_NMEDIT"; then
5956 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5957else
5958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959for as_dir in $PATH
5960do
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5965 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5966 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 break 2
5968 fi
5969done
5970done
5971IFS=$as_save_IFS
5972
5973fi
5974fi
5975ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5976if test -n "$ac_ct_NMEDIT"; then
5977 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5978$as_echo "$ac_ct_NMEDIT" >&6; }
5979else
5980 { $as_echo "$as_me:$LINENO: result: no" >&5
5981$as_echo "no" >&6; }
5982fi
5983
5984 if test "x$ac_ct_NMEDIT" = x; then
5985 NMEDIT=":"
5986 else
5987 case $cross_compiling:$ac_tool_warned in
5988yes:)
5989{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5991ac_tool_warned=yes ;;
5992esac
5993 NMEDIT=$ac_ct_NMEDIT
5994 fi
5995else
5996 NMEDIT="$ac_cv_prog_NMEDIT"
5997fi
5998
5999 if test -n "$ac_tool_prefix"; then
6000 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6001set dummy ${ac_tool_prefix}lipo; ac_word=$2
6002{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6003$as_echo_n "checking for $ac_word... " >&6; }
6004if test "${ac_cv_prog_LIPO+set}" = set; then
6005 $as_echo_n "(cached) " >&6
6006else
6007 if test -n "$LIPO"; then
6008 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6009else
6010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011for as_dir in $PATH
6012do
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6020 fi
6021done
6022done
6023IFS=$as_save_IFS
6024
6025fi
6026fi
6027LIPO=$ac_cv_prog_LIPO
6028if test -n "$LIPO"; then
6029 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6030$as_echo "$LIPO" >&6; }
6031else
6032 { $as_echo "$as_me:$LINENO: result: no" >&5
6033$as_echo "no" >&6; }
6034fi
6035
6036
6037fi
6038if test -z "$ac_cv_prog_LIPO"; then
6039 ac_ct_LIPO=$LIPO
6040 # Extract the first word of "lipo", so it can be a program name with args.
6041set dummy lipo; ac_word=$2
6042{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6043$as_echo_n "checking for $ac_word... " >&6; }
6044if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6045 $as_echo_n "(cached) " >&6
6046else
6047 if test -n "$ac_ct_LIPO"; then
6048 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6049else
6050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051for as_dir in $PATH
6052do
6053 IFS=$as_save_IFS
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6057 ac_cv_prog_ac_ct_LIPO="lipo"
6058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 break 2
6060 fi
6061done
6062done
6063IFS=$as_save_IFS
6064
6065fi
6066fi
6067ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6068if test -n "$ac_ct_LIPO"; then
6069 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6070$as_echo "$ac_ct_LIPO" >&6; }
6071else
6072 { $as_echo "$as_me:$LINENO: result: no" >&5
6073$as_echo "no" >&6; }
6074fi
6075
6076 if test "x$ac_ct_LIPO" = x; then
6077 LIPO=":"
6078 else
6079 case $cross_compiling:$ac_tool_warned in
6080yes:)
6081{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6083ac_tool_warned=yes ;;
6084esac
6085 LIPO=$ac_ct_LIPO
6086 fi
6087else
6088 LIPO="$ac_cv_prog_LIPO"
6089fi
6090
6091 if test -n "$ac_tool_prefix"; then
6092 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6093set dummy ${ac_tool_prefix}otool; ac_word=$2
6094{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6095$as_echo_n "checking for $ac_word... " >&6; }
6096if test "${ac_cv_prog_OTOOL+set}" = set; then
6097 $as_echo_n "(cached) " >&6
6098else
6099 if test -n "$OTOOL"; then
6100 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6101else
6102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103for as_dir in $PATH
6104do
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 break 2
6112 fi
6113done
6114done
6115IFS=$as_save_IFS
6116
6117fi
6118fi
6119OTOOL=$ac_cv_prog_OTOOL
6120if test -n "$OTOOL"; then
6121 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6122$as_echo "$OTOOL" >&6; }
6123else
6124 { $as_echo "$as_me:$LINENO: result: no" >&5
6125$as_echo "no" >&6; }
6126fi
6127
6128
6129fi
6130if test -z "$ac_cv_prog_OTOOL"; then
6131 ac_ct_OTOOL=$OTOOL
6132 # Extract the first word of "otool", so it can be a program name with args.
6133set dummy otool; ac_word=$2
6134{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6135$as_echo_n "checking for $ac_word... " >&6; }
6136if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6137 $as_echo_n "(cached) " >&6
6138else
6139 if test -n "$ac_ct_OTOOL"; then
6140 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6141else
6142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143for as_dir in $PATH
6144do
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6149 ac_cv_prog_ac_ct_OTOOL="otool"
6150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 break 2
6152 fi
6153done
6154done
6155IFS=$as_save_IFS
6156
6157fi
6158fi
6159ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6160if test -n "$ac_ct_OTOOL"; then
6161 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6162$as_echo "$ac_ct_OTOOL" >&6; }
6163else
6164 { $as_echo "$as_me:$LINENO: result: no" >&5
6165$as_echo "no" >&6; }
6166fi
6167
6168 if test "x$ac_ct_OTOOL" = x; then
6169 OTOOL=":"
6170 else
6171 case $cross_compiling:$ac_tool_warned in
6172yes:)
6173{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6175ac_tool_warned=yes ;;
6176esac
6177 OTOOL=$ac_ct_OTOOL
6178 fi
6179else
6180 OTOOL="$ac_cv_prog_OTOOL"
6181fi
6182
6183 if test -n "$ac_tool_prefix"; then
6184 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6185set dummy ${ac_tool_prefix}otool64; ac_word=$2
6186{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6187$as_echo_n "checking for $ac_word... " >&6; }
6188if test "${ac_cv_prog_OTOOL64+set}" = set; then
6189 $as_echo_n "(cached) " >&6
6190else
6191 if test -n "$OTOOL64"; then
6192 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6193else
6194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195for as_dir in $PATH
6196do
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6204 fi
6205done
6206done
6207IFS=$as_save_IFS
6208
6209fi
6210fi
6211OTOOL64=$ac_cv_prog_OTOOL64
6212if test -n "$OTOOL64"; then
6213 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6214$as_echo "$OTOOL64" >&6; }
6215else
6216 { $as_echo "$as_me:$LINENO: result: no" >&5
6217$as_echo "no" >&6; }
6218fi
6219
6220
6221fi
6222if test -z "$ac_cv_prog_OTOOL64"; then
6223 ac_ct_OTOOL64=$OTOOL64
6224 # Extract the first word of "otool64", so it can be a program name with args.
6225set dummy otool64; ac_word=$2
6226{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6227$as_echo_n "checking for $ac_word... " >&6; }
6228if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6229 $as_echo_n "(cached) " >&6
6230else
6231 if test -n "$ac_ct_OTOOL64"; then
6232 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6233else
6234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235for as_dir in $PATH
6236do
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6241 ac_cv_prog_ac_ct_OTOOL64="otool64"
6242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 break 2
6244 fi
6245done
6246done
6247IFS=$as_save_IFS
6248
6249fi
6250fi
6251ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6252if test -n "$ac_ct_OTOOL64"; then
6253 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6254$as_echo "$ac_ct_OTOOL64" >&6; }
6255else
6256 { $as_echo "$as_me:$LINENO: result: no" >&5
6257$as_echo "no" >&6; }
6258fi
6259
6260 if test "x$ac_ct_OTOOL64" = x; then
6261 OTOOL64=":"
6262 else
6263 case $cross_compiling:$ac_tool_warned in
6264yes:)
6265{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267ac_tool_warned=yes ;;
6268esac
6269 OTOOL64=$ac_ct_OTOOL64
6270 fi
6271else
6272 OTOOL64="$ac_cv_prog_OTOOL64"
6273fi
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6302$as_echo_n "checking for -single_module linker flag... " >&6; }
6303if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6304 $as_echo_n "(cached) " >&6
6305else
6306 lt_cv_apple_cc_single_mod=no
6307 if test -z "${LT_MULTI_MODULE}"; then
6308 # By default we will add the -single_module flag. You can override
6309 # by either setting the environment variable LT_MULTI_MODULE
6310 # non-empty at configure time, or by adding -multi_module to the
6311 # link flags.
6312 rm -rf libconftest.dylib*
6313 echo "int foo(void){return 1;}" > conftest.c
6314 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6315-dynamiclib -Wl,-single_module conftest.c" >&5
6316 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6317 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6318 _lt_result=$?
6319 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6320 lt_cv_apple_cc_single_mod=yes
6321 else
6322 cat conftest.err >&5
6323 fi
6324 rm -rf libconftest.dylib*
6325 rm -f conftest.*
6326 fi
6327fi
6328{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6329$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6330 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6331$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6332if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6333 $as_echo_n "(cached) " >&6
6334else
6335 lt_cv_ld_exported_symbols_list=no
6336 save_LDFLAGS=$LDFLAGS
6337 echo "_main" > conftest.sym
6338 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6339 cat >conftest.$ac_ext <<_ACEOF
6340/* confdefs.h. */
6341_ACEOF
6342cat confdefs.h >>conftest.$ac_ext
6343cat >>conftest.$ac_ext <<_ACEOF
6344/* end confdefs.h. */
6345
6346int
6347main ()
6348{
6349
6350 ;
6351 return 0;
6352}
6353_ACEOF
6354rm -f conftest.$ac_objext conftest$ac_exeext
6355if { (ac_try="$ac_link"
6356case "(($ac_try" in
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6359esac
6360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6361$as_echo "$ac_try_echo") >&5
6362 (eval "$ac_link") 2>conftest.er1
6363 ac_status=$?
6364 grep -v '^ *+' conftest.er1 >conftest.err
6365 rm -f conftest.er1
6366 cat conftest.err >&5
6367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } && {
6369 test -z "$ac_c_werror_flag" ||
6370 test ! -s conftest.err
6371 } && test -s conftest$ac_exeext && {
6372 test "$cross_compiling" = yes ||
6373 $as_test_x conftest$ac_exeext
6374 }; then
6375 lt_cv_ld_exported_symbols_list=yes
6376else
6377 $as_echo "$as_me: failed program was:" >&5
6378sed 's/^/| /' conftest.$ac_ext >&5
6379
6380 lt_cv_ld_exported_symbols_list=no
6381fi
6382
6383rm -rf conftest.dSYM
6384rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6385 conftest$ac_exeext conftest.$ac_ext
6386 LDFLAGS="$save_LDFLAGS"
6387
6388fi
6389{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6390$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6391 case $host_os in
6392 rhapsody* | darwin1.[012])
6393 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6394 darwin1.*)
6395 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6396 darwin*) # darwin 5.x on
6397 # if running on 10.5 or later, the deployment target defaults
6398 # to the OS version, if on x86, and 10.4, the deployment
6399 # target defaults to 10.4. Don't you love it?
6400 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6401 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6402 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6403 10.[012]*)
6404 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6405 10.*)
6406 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6407 esac
6408 ;;
6409 esac
6410 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6411 _lt_dar_single_mod='$single_module'
6412 fi
6413 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6414 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6415 else
6416 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6417 fi
6418 if test "$DSYMUTIL" != ":"; then
6419 _lt_dsymutil='~$DSYMUTIL $lib || :'
6420 else
6421 _lt_dsymutil=
6422 fi
6423 ;;
6424 esac
6425
6426ac_ext=c
6427ac_cpp='$CPP $CPPFLAGS'
6428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6430ac_compiler_gnu=$ac_cv_c_compiler_gnu
6431{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6432$as_echo_n "checking how to run the C preprocessor... " >&6; }
6433# On Suns, sometimes $CPP names a directory.
6434if test -n "$CPP" && test -d "$CPP"; then
6435 CPP=
6436fi
6437if test -z "$CPP"; then
6438 if test "${ac_cv_prog_CPP+set}" = set; then
6439 $as_echo_n "(cached) " >&6
6440else
6441 # Double quotes because CPP needs to be expanded
6442 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6443 do
6444 ac_preproc_ok=false
6445for ac_c_preproc_warn_flag in '' yes
6446do
6447 # Use a header file that comes with gcc, so configuring glibc
6448 # with a fresh cross-compiler works.
6449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6450 # <limits.h> exists even on freestanding compilers.
6451 # On the NeXT, cc -E runs the code through the compiler's parser,
6452 # not just through cpp. "Syntax error" is here to catch this case.
6453 cat >conftest.$ac_ext <<_ACEOF
6454/* confdefs.h. */
6455_ACEOF
6456cat confdefs.h >>conftest.$ac_ext
6457cat >>conftest.$ac_ext <<_ACEOF
6458/* end confdefs.h. */
6459#ifdef __STDC__
6460# include <limits.h>
6461#else
6462# include <assert.h>
6463#endif
6464 Syntax error
6465_ACEOF
6466if { (ac_try="$ac_cpp conftest.$ac_ext"
6467case "(($ac_try" in
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6470esac
6471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6472$as_echo "$ac_try_echo") >&5
6473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6474 ac_status=$?
6475 grep -v '^ *+' conftest.er1 >conftest.err
6476 rm -f conftest.er1
6477 cat conftest.err >&5
6478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } >/dev/null && {
6480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6481 test ! -s conftest.err
6482 }; then
6483 :
6484else
6485 $as_echo "$as_me: failed program was:" >&5
6486sed 's/^/| /' conftest.$ac_ext >&5
6487
6488 # Broken: fails on valid input.
6489continue
6490fi
6491
6492rm -f conftest.err conftest.$ac_ext
6493
6494 # OK, works on sane cases. Now check whether nonexistent headers
6495 # can be detected and how.
6496 cat >conftest.$ac_ext <<_ACEOF
6497/* confdefs.h. */
6498_ACEOF
6499cat confdefs.h >>conftest.$ac_ext
6500cat >>conftest.$ac_ext <<_ACEOF
6501/* end confdefs.h. */
6502#include <ac_nonexistent.h>
6503_ACEOF
6504if { (ac_try="$ac_cpp conftest.$ac_ext"
6505case "(($ac_try" in
6506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6507 *) ac_try_echo=$ac_try;;
6508esac
6509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6510$as_echo "$ac_try_echo") >&5
6511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } >/dev/null && {
6518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6519 test ! -s conftest.err
6520 }; then
6521 # Broken: success on invalid input.
6522continue
6523else
6524 $as_echo "$as_me: failed program was:" >&5
6525sed 's/^/| /' conftest.$ac_ext >&5
6526
6527 # Passes both tests.
6528ac_preproc_ok=:
6529break
6530fi
6531
6532rm -f conftest.err conftest.$ac_ext
6533
6534done
6535# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6536rm -f conftest.err conftest.$ac_ext
6537if $ac_preproc_ok; then
6538 break
6539fi
6540
6541 done
6542 ac_cv_prog_CPP=$CPP
6543
6544fi
6545 CPP=$ac_cv_prog_CPP
6546else
6547 ac_cv_prog_CPP=$CPP
6548fi
6549{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6550$as_echo "$CPP" >&6; }
6551ac_preproc_ok=false
6552for ac_c_preproc_warn_flag in '' yes
6553do
6554 # Use a header file that comes with gcc, so configuring glibc
6555 # with a fresh cross-compiler works.
6556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6557 # <limits.h> exists even on freestanding compilers.
6558 # On the NeXT, cc -E runs the code through the compiler's parser,
6559 # not just through cpp. "Syntax error" is here to catch this case.
6560 cat >conftest.$ac_ext <<_ACEOF
6561/* confdefs.h. */
6562_ACEOF
6563cat confdefs.h >>conftest.$ac_ext
6564cat >>conftest.$ac_ext <<_ACEOF
6565/* end confdefs.h. */
6566#ifdef __STDC__
6567# include <limits.h>
6568#else
6569# include <assert.h>
6570#endif
6571 Syntax error
6572_ACEOF
6573if { (ac_try="$ac_cpp conftest.$ac_ext"
6574case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577esac
6578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6579$as_echo "$ac_try_echo") >&5
6580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } >/dev/null && {
6587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6588 test ! -s conftest.err
6589 }; then
6590 :
6591else
6592 $as_echo "$as_me: failed program was:" >&5
6593sed 's/^/| /' conftest.$ac_ext >&5
6594
6595 # Broken: fails on valid input.
6596continue
6597fi
6598
6599rm -f conftest.err conftest.$ac_ext
6600
6601 # OK, works on sane cases. Now check whether nonexistent headers
6602 # can be detected and how.
6603 cat >conftest.$ac_ext <<_ACEOF
6604/* confdefs.h. */
6605_ACEOF
6606cat confdefs.h >>conftest.$ac_ext
6607cat >>conftest.$ac_ext <<_ACEOF
6608/* end confdefs.h. */
6609#include <ac_nonexistent.h>
6610_ACEOF
6611if { (ac_try="$ac_cpp conftest.$ac_ext"
6612case "(($ac_try" in
6613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6614 *) ac_try_echo=$ac_try;;
6615esac
6616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6617$as_echo "$ac_try_echo") >&5
6618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6619 ac_status=$?
6620 grep -v '^ *+' conftest.er1 >conftest.err
6621 rm -f conftest.er1
6622 cat conftest.err >&5
6623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } >/dev/null && {
6625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6626 test ! -s conftest.err
6627 }; then
6628 # Broken: success on invalid input.
6629continue
6630else
6631 $as_echo "$as_me: failed program was:" >&5
6632sed 's/^/| /' conftest.$ac_ext >&5
6633
6634 # Passes both tests.
6635ac_preproc_ok=:
6636break
6637fi
6638
6639rm -f conftest.err conftest.$ac_ext
6640
6641done
6642# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6643rm -f conftest.err conftest.$ac_ext
6644if $ac_preproc_ok; then
6645 :
6646else
6647 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6649{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6650See \`config.log' for more details." >&5
6651$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6652See \`config.log' for more details." >&2;}
6653 { (exit 1); exit 1; }; }; }
6654fi
6655
6656ac_ext=c
6657ac_cpp='$CPP $CPPFLAGS'
6658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6660ac_compiler_gnu=$ac_cv_c_compiler_gnu
6661
6662
6663{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6664$as_echo_n "checking for ANSI C header files... " >&6; }
6665if test "${ac_cv_header_stdc+set}" = set; then
6666 $as_echo_n "(cached) " >&6
6667else
6668 cat >conftest.$ac_ext <<_ACEOF
6669/* confdefs.h. */
6670_ACEOF
6671cat confdefs.h >>conftest.$ac_ext
6672cat >>conftest.$ac_ext <<_ACEOF
6673/* end confdefs.h. */
6674#include <stdlib.h>
6675#include <stdarg.h>
6676#include <string.h>
6677#include <float.h>
6678
6679int
6680main ()
6681{
6682
6683 ;
6684 return 0;
6685}
6686_ACEOF
6687rm -f conftest.$ac_objext
6688if { (ac_try="$ac_compile"
6689case "(($ac_try" in
6690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691 *) ac_try_echo=$ac_try;;
6692esac
6693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6694$as_echo "$ac_try_echo") >&5
6695 (eval "$ac_compile") 2>conftest.er1
6696 ac_status=$?
6697 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -f conftest.er1
6699 cat conftest.err >&5
6700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && {
6702 test -z "$ac_c_werror_flag" ||
6703 test ! -s conftest.err
6704 } && test -s conftest.$ac_objext; then
6705 ac_cv_header_stdc=yes
6706else
6707 $as_echo "$as_me: failed program was:" >&5
6708sed 's/^/| /' conftest.$ac_ext >&5
6709
6710 ac_cv_header_stdc=no
6711fi
6712
6713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714
6715if test $ac_cv_header_stdc = yes; then
6716 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6717 cat >conftest.$ac_ext <<_ACEOF
6718/* confdefs.h. */
6719_ACEOF
6720cat confdefs.h >>conftest.$ac_ext
6721cat >>conftest.$ac_ext <<_ACEOF
6722/* end confdefs.h. */
6723#include <string.h>
6724
6725_ACEOF
6726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6727 $EGREP "memchr" >/dev/null 2>&1; then
6728 :
6729else
6730 ac_cv_header_stdc=no
6731fi
6732rm -f conftest*
6733
6734fi
6735
6736if test $ac_cv_header_stdc = yes; then
6737 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6738 cat >conftest.$ac_ext <<_ACEOF
6739/* confdefs.h. */
6740_ACEOF
6741cat confdefs.h >>conftest.$ac_ext
6742cat >>conftest.$ac_ext <<_ACEOF
6743/* end confdefs.h. */
6744#include <stdlib.h>
6745
6746_ACEOF
6747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6748 $EGREP "free" >/dev/null 2>&1; then
6749 :
6750else
6751 ac_cv_header_stdc=no
6752fi
6753rm -f conftest*
6754
6755fi
6756
6757if test $ac_cv_header_stdc = yes; then
6758 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6759 if test "$cross_compiling" = yes; then
6760 :
6761else
6762 cat >conftest.$ac_ext <<_ACEOF
6763/* confdefs.h. */
6764_ACEOF
6765cat confdefs.h >>conftest.$ac_ext
6766cat >>conftest.$ac_ext <<_ACEOF
6767/* end confdefs.h. */
6768#include <ctype.h>
6769#include <stdlib.h>
6770#if ((' ' & 0x0FF) == 0x020)
6771# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6772# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6773#else
6774# define ISLOWER(c) \
6775 (('a' <= (c) && (c) <= 'i') \
6776 || ('j' <= (c) && (c) <= 'r') \
6777 || ('s' <= (c) && (c) <= 'z'))
6778# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6779#endif
6780
6781#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6782int
6783main ()
6784{
6785 int i;
6786 for (i = 0; i < 256; i++)
6787 if (XOR (islower (i), ISLOWER (i))
6788 || toupper (i) != TOUPPER (i))
6789 return 2;
6790 return 0;
6791}
6792_ACEOF
6793rm -f conftest$ac_exeext
6794if { (ac_try="$ac_link"
6795case "(($ac_try" in
6796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6797 *) ac_try_echo=$ac_try;;
6798esac
6799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6800$as_echo "$ac_try_echo") >&5
6801 (eval "$ac_link") 2>&5
6802 ac_status=$?
6803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6805 { (case "(($ac_try" in
6806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807 *) ac_try_echo=$ac_try;;
6808esac
6809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6810$as_echo "$ac_try_echo") >&5
6811 (eval "$ac_try") 2>&5
6812 ac_status=$?
6813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; }; then
6815 :
6816else
6817 $as_echo "$as_me: program exited with status $ac_status" >&5
6818$as_echo "$as_me: failed program was:" >&5
6819sed 's/^/| /' conftest.$ac_ext >&5
6820
6821( exit $ac_status )
6822ac_cv_header_stdc=no
6823fi
6824rm -rf conftest.dSYM
6825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6826fi
6827
6828
6829fi
6830fi
6831{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6832$as_echo "$ac_cv_header_stdc" >&6; }
6833if test $ac_cv_header_stdc = yes; then
6834
6835cat >>confdefs.h <<\_ACEOF
6836#define STDC_HEADERS 1
6837_ACEOF
6838
6839fi
6840
6841# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6852 inttypes.h stdint.h unistd.h
6853do
6854as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6855{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6856$as_echo_n "checking for $ac_header... " >&6; }
6857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6858 $as_echo_n "(cached) " >&6
6859else
6860 cat >conftest.$ac_ext <<_ACEOF
6861/* confdefs.h. */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h. */
6866$ac_includes_default
6867
6868#include <$ac_header>
6869_ACEOF
6870rm -f conftest.$ac_objext
6871if { (ac_try="$ac_compile"
6872case "(($ac_try" in
6873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874 *) ac_try_echo=$ac_try;;
6875esac
6876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6877$as_echo "$ac_try_echo") >&5
6878 (eval "$ac_compile") 2>conftest.er1
6879 ac_status=$?
6880 grep -v '^ *+' conftest.er1 >conftest.err
6881 rm -f conftest.er1
6882 cat conftest.err >&5
6883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } && {
6885 test -z "$ac_c_werror_flag" ||
6886 test ! -s conftest.err
6887 } && test -s conftest.$ac_objext; then
6888 eval "$as_ac_Header=yes"
6889else
6890 $as_echo "$as_me: failed program was:" >&5
6891sed 's/^/| /' conftest.$ac_ext >&5
6892
6893 eval "$as_ac_Header=no"
6894fi
6895
6896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897fi
6898ac_res=`eval 'as_val=${'$as_ac_Header'}
6899 $as_echo "$as_val"'`
6900 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6901$as_echo "$ac_res" >&6; }
6902as_val=`eval 'as_val=${'$as_ac_Header'}
6903 $as_echo "$as_val"'`
6904 if test "x$as_val" = x""yes; then
6905 cat >>confdefs.h <<_ACEOF
6906#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6907_ACEOF
6908
6909fi
6910
6911done
6912
6913
6914
6915for ac_header in dlfcn.h
6916do
6917as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6918{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6919$as_echo_n "checking for $ac_header... " >&6; }
6920if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6921 $as_echo_n "(cached) " >&6
6922else
6923 cat >conftest.$ac_ext <<_ACEOF
6924/* confdefs.h. */
6925_ACEOF
6926cat confdefs.h >>conftest.$ac_ext
6927cat >>conftest.$ac_ext <<_ACEOF
6928/* end confdefs.h. */
6929$ac_includes_default
6930
6931#include <$ac_header>
6932_ACEOF
6933rm -f conftest.$ac_objext
6934if { (ac_try="$ac_compile"
6935case "(($ac_try" in
6936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937 *) ac_try_echo=$ac_try;;
6938esac
6939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6940$as_echo "$ac_try_echo") >&5
6941 (eval "$ac_compile") 2>conftest.er1
6942 ac_status=$?
6943 grep -v '^ *+' conftest.er1 >conftest.err
6944 rm -f conftest.er1
6945 cat conftest.err >&5
6946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } && {
6948 test -z "$ac_c_werror_flag" ||
6949 test ! -s conftest.err
6950 } && test -s conftest.$ac_objext; then
6951 eval "$as_ac_Header=yes"
6952else
6953 $as_echo "$as_me: failed program was:" >&5
6954sed 's/^/| /' conftest.$ac_ext >&5
6955
6956 eval "$as_ac_Header=no"
6957fi
6958
6959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6960fi
6961ac_res=`eval 'as_val=${'$as_ac_Header'}
6962 $as_echo "$as_val"'`
6963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6964$as_echo "$ac_res" >&6; }
6965as_val=`eval 'as_val=${'$as_ac_Header'}
6966 $as_echo "$as_val"'`
6967 if test "x$as_val" = x""yes; then
6968 cat >>confdefs.h <<_ACEOF
6969#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6970_ACEOF
6971
6972fi
6973
6974done
6975
6976
6977
6978# Set options
6979
6980
6981
6982 enable_dlopen=no
6983
6984
6985 enable_win32_dll=no
6986
6987
6988 # Check whether --enable-shared was given.
6989if test "${enable_shared+set}" = set; then
6990 enableval=$enable_shared; p=${PACKAGE-default}
6991 case $enableval in
6992 yes) enable_shared=yes ;;
6993 no) enable_shared=no ;;
6994 *)
6995 enable_shared=no
6996 # Look at the argument we got. We use all the common list separators.
6997 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6998 for pkg in $enableval; do
6999 IFS="$lt_save_ifs"
7000 if test "X$pkg" = "X$p"; then
7001 enable_shared=yes
7002 fi
7003 done
7004 IFS="$lt_save_ifs"
7005 ;;
7006 esac
7007else
7008 enable_shared=yes
7009fi
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019 # Check whether --enable-static was given.
7020if test "${enable_static+set}" = set; then
7021 enableval=$enable_static; p=${PACKAGE-default}
7022 case $enableval in
7023 yes) enable_static=yes ;;
7024 no) enable_static=no ;;
7025 *)
7026 enable_static=no
7027 # Look at the argument we got. We use all the common list separators.
7028 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7029 for pkg in $enableval; do
7030 IFS="$lt_save_ifs"
7031 if test "X$pkg" = "X$p"; then
7032 enable_static=yes
7033 fi
7034 done
7035 IFS="$lt_save_ifs"
7036 ;;
7037 esac
7038else
7039 enable_static=yes
7040fi
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051# Check whether --with-pic was given.
7052if test "${with_pic+set}" = set; then
7053 withval=$with_pic; pic_mode="$withval"
7054else
7055 pic_mode=default
7056fi
7057
7058
7059test -z "$pic_mode" && pic_mode=default
7060
7061
7062
7063
7064
7065
7066
7067 # Check whether --enable-fast-install was given.
7068if test "${enable_fast_install+set}" = set; then
7069 enableval=$enable_fast_install; p=${PACKAGE-default}
7070 case $enableval in
7071 yes) enable_fast_install=yes ;;
7072 no) enable_fast_install=no ;;
7073 *)
7074 enable_fast_install=no
7075 # Look at the argument we got. We use all the common list separators.
7076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7077 for pkg in $enableval; do
7078 IFS="$lt_save_ifs"
7079 if test "X$pkg" = "X$p"; then
7080 enable_fast_install=yes
7081 fi
7082 done
7083 IFS="$lt_save_ifs"
7084 ;;
7085 esac
7086else
7087 enable_fast_install=yes
7088fi
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100# This can be used to rebuild libtool when needed
7101LIBTOOL_DEPS="$ltmain"
7102
7103# Always use our own libtool.
7104LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130test -z "$LN_S" && LN_S="ln -s"
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145if test -n "${ZSH_VERSION+set}" ; then
7146 setopt NO_GLOB_SUBST
7147fi
7148
7149{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7150$as_echo_n "checking for objdir... " >&6; }
7151if test "${lt_cv_objdir+set}" = set; then
7152 $as_echo_n "(cached) " >&6
7153else
7154 rm -f .libs 2>/dev/null
7155mkdir .libs 2>/dev/null
7156if test -d .libs; then
7157 lt_cv_objdir=.libs
7158else
7159 # MS-DOS does not allow filenames that begin with a dot.
7160 lt_cv_objdir=_libs
7161fi
7162rmdir .libs 2>/dev/null
7163fi
7164{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7165$as_echo "$lt_cv_objdir" >&6; }
7166objdir=$lt_cv_objdir
7167
7168
7169
7170
7171
7172cat >>confdefs.h <<_ACEOF
7173#define LT_OBJDIR "$lt_cv_objdir/"
7174_ACEOF
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192case $host_os in
7193aix3*)
7194 # AIX sometimes has problems with the GCC collect2 program. For some
7195 # reason, if we set the COLLECT_NAMES environment variable, the problems
7196 # vanish in a puff of smoke.
7197 if test "X${COLLECT_NAMES+set}" != Xset; then
7198 COLLECT_NAMES=
7199 export COLLECT_NAMES
7200 fi
7201 ;;
7202esac
7203
7204# Sed substitution that helps us do robust quoting. It backslashifies
7205# metacharacters that are still active within double-quoted strings.
7206sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7207
7208# Same as above, but do not quote variable references.
7209double_quote_subst='s/\(["`\\]\)/\\\1/g'
7210
7211# Sed substitution to delay expansion of an escaped shell variable in a
7212# double_quote_subst'ed string.
7213delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7214
7215# Sed substitution to delay expansion of an escaped single quote.
7216delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7217
7218# Sed substitution to avoid accidental globbing in evaled expressions
7219no_glob_subst='s/\*/\\\*/g'
7220
7221# Global variables:
7222ofile=libtool
7223can_build_shared=yes
7224
7225# All known linkers require a `.a' archive for static linking (except MSVC,
7226# which needs '.lib').
7227libext=a
7228
7229with_gnu_ld="$lt_cv_prog_gnu_ld"
7230
7231old_CC="$CC"
7232old_CFLAGS="$CFLAGS"
7233
7234# Set sane defaults for various variables
7235test -z "$CC" && CC=cc
7236test -z "$LTCC" && LTCC=$CC
7237test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7238test -z "$LD" && LD=ld
7239test -z "$ac_objext" && ac_objext=o
7240
7241for cc_temp in $compiler""; do
7242 case $cc_temp in
7243 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7244 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7245 \-*) ;;
7246 *) break;;
7247 esac
7248done
7249cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7250
7251
7252# Only perform the check for file, if the check method requires it
7253test -z "$MAGIC_CMD" && MAGIC_CMD=file
7254case $deplibs_check_method in
7255file_magic*)
7256 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7257 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7258$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7259if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7260 $as_echo_n "(cached) " >&6
7261else
7262 case $MAGIC_CMD in
7263[\\/*] | ?:[\\/]*)
7264 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7265 ;;
7266*)
7267 lt_save_MAGIC_CMD="$MAGIC_CMD"
7268 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7269 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7270 for ac_dir in $ac_dummy; do
7271 IFS="$lt_save_ifs"
7272 test -z "$ac_dir" && ac_dir=.
7273 if test -f $ac_dir/${ac_tool_prefix}file; then
7274 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7275 if test -n "$file_magic_test_file"; then
7276 case $deplibs_check_method in
7277 "file_magic "*)
7278 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7279 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7280 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7281 $EGREP "$file_magic_regex" > /dev/null; then
7282 :
7283 else
7284 cat <<_LT_EOF 1>&2
7285
7286*** Warning: the command libtool uses to detect shared libraries,
7287*** $file_magic_cmd, produces output that libtool cannot recognize.
7288*** The result is that libtool may fail to recognize shared libraries
7289*** as such. This will affect the creation of libtool libraries that
7290*** depend on shared libraries, but programs linked with such libtool
7291*** libraries will work regardless of this problem. Nevertheless, you
7292*** may want to report the problem to your system manager and/or to
7293*** bug-libtool@gnu.org
7294
7295_LT_EOF
7296 fi ;;
7297 esac
7298 fi
7299 break
7300 fi
7301 done
7302 IFS="$lt_save_ifs"
7303 MAGIC_CMD="$lt_save_MAGIC_CMD"
7304 ;;
7305esac
7306fi
7307
7308MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7309if test -n "$MAGIC_CMD"; then
7310 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7311$as_echo "$MAGIC_CMD" >&6; }
7312else
7313 { $as_echo "$as_me:$LINENO: result: no" >&5
7314$as_echo "no" >&6; }
7315fi
7316
7317
7318
7319
7320
7321if test -z "$lt_cv_path_MAGIC_CMD"; then
7322 if test -n "$ac_tool_prefix"; then
7323 { $as_echo "$as_me:$LINENO: checking for file" >&5
7324$as_echo_n "checking for file... " >&6; }
7325if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7326 $as_echo_n "(cached) " >&6
7327else
7328 case $MAGIC_CMD in
7329[\\/*] | ?:[\\/]*)
7330 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7331 ;;
7332*)
7333 lt_save_MAGIC_CMD="$MAGIC_CMD"
7334 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7335 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7336 for ac_dir in $ac_dummy; do
7337 IFS="$lt_save_ifs"
7338 test -z "$ac_dir" && ac_dir=.
7339 if test -f $ac_dir/file; then
7340 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7341 if test -n "$file_magic_test_file"; then
7342 case $deplibs_check_method in
7343 "file_magic "*)
7344 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7346 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7347 $EGREP "$file_magic_regex" > /dev/null; then
7348 :
7349 else
7350 cat <<_LT_EOF 1>&2
7351
7352*** Warning: the command libtool uses to detect shared libraries,
7353*** $file_magic_cmd, produces output that libtool cannot recognize.
7354*** The result is that libtool may fail to recognize shared libraries
7355*** as such. This will affect the creation of libtool libraries that
7356*** depend on shared libraries, but programs linked with such libtool
7357*** libraries will work regardless of this problem. Nevertheless, you
7358*** may want to report the problem to your system manager and/or to
7359*** bug-libtool@gnu.org
7360
7361_LT_EOF
7362 fi ;;
7363 esac
7364 fi
7365 break
7366 fi
7367 done
7368 IFS="$lt_save_ifs"
7369 MAGIC_CMD="$lt_save_MAGIC_CMD"
7370 ;;
7371esac
7372fi
7373
7374MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7375if test -n "$MAGIC_CMD"; then
7376 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7377$as_echo "$MAGIC_CMD" >&6; }
7378else
7379 { $as_echo "$as_me:$LINENO: result: no" >&5
7380$as_echo "no" >&6; }
7381fi
7382
7383
7384 else
7385 MAGIC_CMD=:
7386 fi
7387fi
7388
7389 fi
7390 ;;
7391esac
7392
7393# Use C for the default configuration in the libtool script
7394
7395lt_save_CC="$CC"
7396ac_ext=c
7397ac_cpp='$CPP $CPPFLAGS'
7398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7400ac_compiler_gnu=$ac_cv_c_compiler_gnu
7401
7402
7403# Source file extension for C test sources.
7404ac_ext=c
7405
7406# Object file extension for compiled C test sources.
7407objext=o
7408objext=$objext
7409
7410# Code to be used in simple compile tests
7411lt_simple_compile_test_code="int some_variable = 0;"
7412
7413# Code to be used in simple link tests
7414lt_simple_link_test_code='int main(){return(0);}'
7415
7416
7417
7418
7419
7420
7421
7422# If no C compiler was specified, use CC.
7423LTCC=${LTCC-"$CC"}
7424
7425# If no C compiler flags were specified, use CFLAGS.
7426LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7427
7428# Allow CC to be a program name with arguments.
7429compiler=$CC
7430
7431# Save the default compiler, since it gets overwritten when the other
7432# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7433compiler_DEFAULT=$CC
7434
7435# save warnings/boilerplate of simple test code
7436ac_outfile=conftest.$ac_objext
7437echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7438eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7439_lt_compiler_boilerplate=`cat conftest.err`
7440$RM conftest*
7441
7442ac_outfile=conftest.$ac_objext
7443echo "$lt_simple_link_test_code" >conftest.$ac_ext
7444eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7445_lt_linker_boilerplate=`cat conftest.err`
7446$RM -r conftest*
7447
7448
7449if test -n "$compiler"; then
7450
7451lt_prog_compiler_no_builtin_flag=
7452
7453if test "$GCC" = yes; then
7454 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7455
7456 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7457$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7458if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7459 $as_echo_n "(cached) " >&6
7460else
7461 lt_cv_prog_compiler_rtti_exceptions=no
7462 ac_outfile=conftest.$ac_objext
7463 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7464 lt_compiler_flag="-fno-rtti -fno-exceptions"
7465 # Insert the option either (1) after the last *FLAGS variable, or
7466 # (2) before a word containing "conftest.", or (3) at the end.
7467 # Note that $ac_compile itself does not contain backslashes and begins
7468 # with a dollar sign (not a hyphen), so the echo should work correctly.
7469 # The option is referenced via a variable to avoid confusing sed.
7470 lt_compile=`echo "$ac_compile" | $SED \
7471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7473 -e 's:$: $lt_compiler_flag:'`
7474 (eval echo "\"\$as_me:7474: $lt_compile\"" >&5)
7475 (eval "$lt_compile" 2>conftest.err)
7476 ac_status=$?
7477 cat conftest.err >&5
7478 echo "$as_me:7478: \$? = $ac_status" >&5
7479 if (exit $ac_status) && test -s "$ac_outfile"; then
7480 # The compiler can only warn and ignore the option if not recognized
7481 # So say no if there are warnings other than the usual output.
7482 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7484 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7485 lt_cv_prog_compiler_rtti_exceptions=yes
7486 fi
7487 fi
7488 $RM conftest*
7489
7490fi
7491{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7492$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7493
7494if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7495 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7496else
7497 :
7498fi
7499
7500fi
7501
7502
7503
7504
7505
7506
7507 lt_prog_compiler_wl=
7508lt_prog_compiler_pic=
7509lt_prog_compiler_static=
7510
7511{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7512$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7513
7514 if test "$GCC" = yes; then
7515 lt_prog_compiler_wl='-Wl,'
7516 lt_prog_compiler_static='-static'
7517
7518 case $host_os in
7519 aix*)
7520 # All AIX code is PIC.
7521 if test "$host_cpu" = ia64; then
7522 # AIX 5 now supports IA64 processor
7523 lt_prog_compiler_static='-Bstatic'
7524 fi
7525 ;;
7526
7527 amigaos*)
7528 case $host_cpu in
7529 powerpc)
7530 # see comment about AmigaOS4 .so support
7531 lt_prog_compiler_pic='-fPIC'
7532 ;;
7533 m68k)
7534 # FIXME: we need at least 68020 code to build shared libraries, but
7535 # adding the `-m68020' flag to GCC prevents building anything better,
7536 # like `-m68040'.
7537 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7538 ;;
7539 esac
7540 ;;
7541
7542 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7543 # PIC is the default for these OSes.
7544 ;;
7545
7546 mingw* | cygwin* | pw32* | os2* | cegcc*)
7547 # This hack is so that the source file can tell whether it is being
7548 # built for inclusion in a dll (and should export symbols for example).
7549 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7550 # (--disable-auto-import) libraries
7551 lt_prog_compiler_pic='-DDLL_EXPORT'
7552 ;;
7553
7554 darwin* | rhapsody*)
7555 # PIC is the default on this platform
7556 # Common symbols not allowed in MH_DYLIB files
7557 lt_prog_compiler_pic='-fno-common'
7558 ;;
7559
7560 hpux*)
7561 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7562 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7563 # sets the default TLS model and affects inlining.
7564 case $host_cpu in
7565 hppa*64*)
7566 # +Z the default
7567 ;;
7568 *)
7569 lt_prog_compiler_pic='-fPIC'
7570 ;;
7571 esac
7572 ;;
7573
7574 interix[3-9]*)
7575 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7576 # Instead, we relocate shared libraries at runtime.
7577 ;;
7578
7579 msdosdjgpp*)
7580 # Just because we use GCC doesn't mean we suddenly get shared libraries
7581 # on systems that don't support them.
7582 lt_prog_compiler_can_build_shared=no
7583 enable_shared=no
7584 ;;
7585
7586 *nto* | *qnx*)
7587 # QNX uses GNU C++, but need to define -shared option too, otherwise
7588 # it will coredump.
7589 lt_prog_compiler_pic='-fPIC -shared'
7590 ;;
7591
7592 sysv4*MP*)
7593 if test -d /usr/nec; then
7594 lt_prog_compiler_pic=-Kconform_pic
7595 fi
7596 ;;
7597
7598 *)
7599 lt_prog_compiler_pic='-fPIC'
7600 ;;
7601 esac
7602 else
7603 # PORTME Check for flag to pass linker flags through the system compiler.
7604 case $host_os in
7605 aix*)
7606 lt_prog_compiler_wl='-Wl,'
7607 if test "$host_cpu" = ia64; then
7608 # AIX 5 now supports IA64 processor
7609 lt_prog_compiler_static='-Bstatic'
7610 else
7611 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7612 fi
7613 ;;
7614
7615 mingw* | cygwin* | pw32* | os2* | cegcc*)
7616 # This hack is so that the source file can tell whether it is being
7617 # built for inclusion in a dll (and should export symbols for example).
7618 lt_prog_compiler_pic='-DDLL_EXPORT'
7619 ;;
7620
7621 hpux9* | hpux10* | hpux11*)
7622 lt_prog_compiler_wl='-Wl,'
7623 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7624 # not for PA HP-UX.
7625 case $host_cpu in
7626 hppa*64*|ia64*)
7627 # +Z the default
7628 ;;
7629 *)
7630 lt_prog_compiler_pic='+Z'
7631 ;;
7632 esac
7633 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7634 lt_prog_compiler_static='${wl}-a ${wl}archive'
7635 ;;
7636
7637 irix5* | irix6* | nonstopux*)
7638 lt_prog_compiler_wl='-Wl,'
7639 # PIC (with -KPIC) is the default.
7640 lt_prog_compiler_static='-non_shared'
7641 ;;
7642
7643 linux* | k*bsd*-gnu)
7644 case $cc_basename in
7645 # old Intel for x86_64 which still supported -KPIC.
7646 ecc*)
7647 lt_prog_compiler_wl='-Wl,'
7648 lt_prog_compiler_pic='-KPIC'
7649 lt_prog_compiler_static='-static'
7650 ;;
7651 # icc used to be incompatible with GCC.
7652 # ICC 10 doesn't accept -KPIC any more.
7653 icc* | ifort*)
7654 lt_prog_compiler_wl='-Wl,'
7655 lt_prog_compiler_pic='-fPIC'
7656 lt_prog_compiler_static='-static'
7657 ;;
7658 # Lahey Fortran 8.1.
7659 lf95*)
7660 lt_prog_compiler_wl='-Wl,'
7661 lt_prog_compiler_pic='--shared'
7662 lt_prog_compiler_static='--static'
7663 ;;
7664 pgcc* | pgf77* | pgf90* | pgf95*)
7665 # Portland Group compilers (*not* the Pentium gcc compiler,
7666 # which looks to be a dead project)
7667 lt_prog_compiler_wl='-Wl,'
7668 lt_prog_compiler_pic='-fpic'
7669 lt_prog_compiler_static='-Bstatic'
7670 ;;
7671 ccc*)
7672 lt_prog_compiler_wl='-Wl,'
7673 # All Alpha code is PIC.
7674 lt_prog_compiler_static='-non_shared'
7675 ;;
7676 xl*)
7677 # IBM XL C 8.0/Fortran 10.1 on PPC
7678 lt_prog_compiler_wl='-Wl,'
7679 lt_prog_compiler_pic='-qpic'
7680 lt_prog_compiler_static='-qstaticlink'
7681 ;;
7682 *)
7683 case `$CC -V 2>&1 | sed 5q` in
7684 *Sun\ C*)
7685 # Sun C 5.9
7686 lt_prog_compiler_pic='-KPIC'
7687 lt_prog_compiler_static='-Bstatic'
7688 lt_prog_compiler_wl='-Wl,'
7689 ;;
7690 *Sun\ F*)
7691 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7692 lt_prog_compiler_pic='-KPIC'
7693 lt_prog_compiler_static='-Bstatic'
7694 lt_prog_compiler_wl=''
7695 ;;
7696 esac
7697 ;;
7698 esac
7699 ;;
7700
7701 newsos6)
7702 lt_prog_compiler_pic='-KPIC'
7703 lt_prog_compiler_static='-Bstatic'
7704 ;;
7705
7706 *nto* | *qnx*)
7707 # QNX uses GNU C++, but need to define -shared option too, otherwise
7708 # it will coredump.
7709 lt_prog_compiler_pic='-fPIC -shared'
7710 ;;
7711
7712 osf3* | osf4* | osf5*)
7713 lt_prog_compiler_wl='-Wl,'
7714 # All OSF/1 code is PIC.
7715 lt_prog_compiler_static='-non_shared'
7716 ;;
7717
7718 rdos*)
7719 lt_prog_compiler_static='-non_shared'
7720 ;;
7721
7722 solaris*)
7723 lt_prog_compiler_pic='-KPIC'
7724 lt_prog_compiler_static='-Bstatic'
7725 case $cc_basename in
7726 f77* | f90* | f95*)
7727 lt_prog_compiler_wl='-Qoption ld ';;
7728 *)
7729 lt_prog_compiler_wl='-Wl,';;
7730 esac
7731 ;;
7732
7733 sunos4*)
7734 lt_prog_compiler_wl='-Qoption ld '
7735 lt_prog_compiler_pic='-PIC'
7736 lt_prog_compiler_static='-Bstatic'
7737 ;;
7738
7739 sysv4 | sysv4.2uw2* | sysv4.3*)
7740 lt_prog_compiler_wl='-Wl,'
7741 lt_prog_compiler_pic='-KPIC'
7742 lt_prog_compiler_static='-Bstatic'
7743 ;;
7744
7745 sysv4*MP*)
7746 if test -d /usr/nec ;then
7747 lt_prog_compiler_pic='-Kconform_pic'
7748 lt_prog_compiler_static='-Bstatic'
7749 fi
7750 ;;
7751
7752 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7753 lt_prog_compiler_wl='-Wl,'
7754 lt_prog_compiler_pic='-KPIC'
7755 lt_prog_compiler_static='-Bstatic'
7756 ;;
7757
7758 unicos*)
7759 lt_prog_compiler_wl='-Wl,'
7760 lt_prog_compiler_can_build_shared=no
7761 ;;
7762
7763 uts4*)
7764 lt_prog_compiler_pic='-pic'
7765 lt_prog_compiler_static='-Bstatic'
7766 ;;
7767
7768 *)
7769 lt_prog_compiler_can_build_shared=no
7770 ;;
7771 esac
7772 fi
7773
7774case $host_os in
7775 # For platforms which do not support PIC, -DPIC is meaningless:
7776 *djgpp*)
7777 lt_prog_compiler_pic=
7778 ;;
7779 *)
7780 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7781 ;;
7782esac
7783{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7784$as_echo "$lt_prog_compiler_pic" >&6; }
7785
7786
7787
7788
7789
7790
7791#
7792# Check to make sure the PIC flag actually works.
7793#
7794if test -n "$lt_prog_compiler_pic"; then
7795 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7796$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7797if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7798 $as_echo_n "(cached) " >&6
7799else
7800 lt_cv_prog_compiler_pic_works=no
7801 ac_outfile=conftest.$ac_objext
7802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7803 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7804 # Insert the option either (1) after the last *FLAGS variable, or
7805 # (2) before a word containing "conftest.", or (3) at the end.
7806 # Note that $ac_compile itself does not contain backslashes and begins
7807 # with a dollar sign (not a hyphen), so the echo should work correctly.
7808 # The option is referenced via a variable to avoid confusing sed.
7809 lt_compile=`echo "$ac_compile" | $SED \
7810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7812 -e 's:$: $lt_compiler_flag:'`
7813 (eval echo "\"\$as_me:7813: $lt_compile\"" >&5)
7814 (eval "$lt_compile" 2>conftest.err)
7815 ac_status=$?
7816 cat conftest.err >&5
7817 echo "$as_me:7817: \$? = $ac_status" >&5
7818 if (exit $ac_status) && test -s "$ac_outfile"; then
7819 # The compiler can only warn and ignore the option if not recognized
7820 # So say no if there are warnings other than the usual output.
7821 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7823 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7824 lt_cv_prog_compiler_pic_works=yes
7825 fi
7826 fi
7827 $RM conftest*
7828
7829fi
7830{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7831$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7832
7833if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7834 case $lt_prog_compiler_pic in
7835 "" | " "*) ;;
7836 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7837 esac
7838else
7839 lt_prog_compiler_pic=
7840 lt_prog_compiler_can_build_shared=no
7841fi
7842
7843fi
7844
7845
7846
7847
7848
7849
7850#
7851# Check to make sure the static flag actually works.
7852#
7853wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7854{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7855$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7856if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7857 $as_echo_n "(cached) " >&6
7858else
7859 lt_cv_prog_compiler_static_works=no
7860 save_LDFLAGS="$LDFLAGS"
7861 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7862 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7863 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7864 # The linker can only warn and ignore the option if not recognized
7865 # So say no if there are warnings
7866 if test -s conftest.err; then
7867 # Append any errors to the config.log.
7868 cat conftest.err 1>&5
7869 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7871 if diff conftest.exp conftest.er2 >/dev/null; then
7872 lt_cv_prog_compiler_static_works=yes
7873 fi
7874 else
7875 lt_cv_prog_compiler_static_works=yes
7876 fi
7877 fi
7878 $RM -r conftest*
7879 LDFLAGS="$save_LDFLAGS"
7880
7881fi
7882{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7883$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7884
7885if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7886 :
7887else
7888 lt_prog_compiler_static=
7889fi
7890
7891
7892
7893
7894
7895
7896
7897 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7898$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7899if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7900 $as_echo_n "(cached) " >&6
7901else
7902 lt_cv_prog_compiler_c_o=no
7903 $RM -r conftest 2>/dev/null
7904 mkdir conftest
7905 cd conftest
7906 mkdir out
7907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7908
7909 lt_compiler_flag="-o out/conftest2.$ac_objext"
7910 # Insert the option either (1) after the last *FLAGS variable, or
7911 # (2) before a word containing "conftest.", or (3) at the end.
7912 # Note that $ac_compile itself does not contain backslashes and begins
7913 # with a dollar sign (not a hyphen), so the echo should work correctly.
7914 lt_compile=`echo "$ac_compile" | $SED \
7915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7917 -e 's:$: $lt_compiler_flag:'`
7918 (eval echo "\"\$as_me:7918: $lt_compile\"" >&5)
7919 (eval "$lt_compile" 2>out/conftest.err)
7920 ac_status=$?
7921 cat out/conftest.err >&5
7922 echo "$as_me:7922: \$? = $ac_status" >&5
7923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7924 then
7925 # The compiler can only warn and ignore the option if not recognized
7926 # So say no if there are warnings
7927 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7930 lt_cv_prog_compiler_c_o=yes
7931 fi
7932 fi
7933 chmod u+w . 2>&5
7934 $RM conftest*
7935 # SGI C++ compiler will create directory out/ii_files/ for
7936 # template instantiation
7937 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7938 $RM out/* && rmdir out
7939 cd ..
7940 $RM -r conftest
7941 $RM conftest*
7942
7943fi
7944{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7945$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7946
7947
7948
7949
7950
7951
7952 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7953$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7954if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7955 $as_echo_n "(cached) " >&6
7956else
7957 lt_cv_prog_compiler_c_o=no
7958 $RM -r conftest 2>/dev/null
7959 mkdir conftest
7960 cd conftest
7961 mkdir out
7962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7963
7964 lt_compiler_flag="-o out/conftest2.$ac_objext"
7965 # Insert the option either (1) after the last *FLAGS variable, or
7966 # (2) before a word containing "conftest.", or (3) at the end.
7967 # Note that $ac_compile itself does not contain backslashes and begins
7968 # with a dollar sign (not a hyphen), so the echo should work correctly.
7969 lt_compile=`echo "$ac_compile" | $SED \
7970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7972 -e 's:$: $lt_compiler_flag:'`
7973 (eval echo "\"\$as_me:7973: $lt_compile\"" >&5)
7974 (eval "$lt_compile" 2>out/conftest.err)
7975 ac_status=$?
7976 cat out/conftest.err >&5
7977 echo "$as_me:7977: \$? = $ac_status" >&5
7978 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7979 then
7980 # The compiler can only warn and ignore the option if not recognized
7981 # So say no if there are warnings
7982 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7983 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7984 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7985 lt_cv_prog_compiler_c_o=yes
7986 fi
7987 fi
7988 chmod u+w . 2>&5
7989 $RM conftest*
7990 # SGI C++ compiler will create directory out/ii_files/ for
7991 # template instantiation
7992 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7993 $RM out/* && rmdir out
7994 cd ..
7995 $RM -r conftest
7996 $RM conftest*
7997
7998fi
7999{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8000$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8001
8002
8003
8004
8005hard_links="nottested"
8006if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8007 # do not overwrite the value of need_locks provided by the user
8008 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8009$as_echo_n "checking if we can lock with hard links... " >&6; }
8010 hard_links=yes
8011 $RM conftest*
8012 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8013 touch conftest.a
8014 ln conftest.a conftest.b 2>&5 || hard_links=no
8015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8016 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8017$as_echo "$hard_links" >&6; }
8018 if test "$hard_links" = no; then
8019 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8020$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8021 need_locks=warn
8022 fi
8023else
8024 need_locks=no
8025fi
8026
8027
8028
8029
8030
8031
8032 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8033$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8034
8035 runpath_var=
8036 allow_undefined_flag=
8037 always_export_symbols=no
8038 archive_cmds=
8039 archive_expsym_cmds=
8040 compiler_needs_object=no
8041 enable_shared_with_static_runtimes=no
8042 export_dynamic_flag_spec=
8043 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8044 hardcode_automatic=no
8045 hardcode_direct=no
8046 hardcode_direct_absolute=no
8047 hardcode_libdir_flag_spec=
8048 hardcode_libdir_flag_spec_ld=
8049 hardcode_libdir_separator=
8050 hardcode_minus_L=no
8051 hardcode_shlibpath_var=unsupported
8052 inherit_rpath=no
8053 link_all_deplibs=unknown
8054 module_cmds=
8055 module_expsym_cmds=
8056 old_archive_from_new_cmds=
8057 old_archive_from_expsyms_cmds=
8058 thread_safe_flag_spec=
8059 whole_archive_flag_spec=
8060 # include_expsyms should be a list of space-separated symbols to be *always*
8061 # included in the symbol list
8062 include_expsyms=
8063 # exclude_expsyms can be an extended regexp of symbols to exclude
8064 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8065 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8066 # as well as any symbol that contains `d'.
8067 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8068 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8069 # platforms (ab)use it in PIC code, but their linkers get confused if
8070 # the symbol is explicitly referenced. Since portable code cannot
8071 # rely on this symbol name, it's probably fine to never include it in
8072 # preloaded symbol tables.
8073 # Exclude shared library initialization/finalization symbols.
8074 extract_expsyms_cmds=
8075
8076 case $host_os in
8077 cygwin* | mingw* | pw32* | cegcc*)
8078 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8079 # When not using gcc, we currently assume that we are using
8080 # Microsoft Visual C++.
8081 if test "$GCC" != yes; then
8082 with_gnu_ld=no
8083 fi
8084 ;;
8085 interix*)
8086 # we just hope/assume this is gcc and not c89 (= MSVC++)
8087 with_gnu_ld=yes
8088 ;;
8089 openbsd*)
8090 with_gnu_ld=no
8091 ;;
8092 esac
8093
8094 ld_shlibs=yes
8095 if test "$with_gnu_ld" = yes; then
8096 # If archive_cmds runs LD, not CC, wlarc should be empty
8097 wlarc='${wl}'
8098
8099 # Set some defaults for GNU ld with shared library support. These
8100 # are reset later if shared libraries are not supported. Putting them
8101 # here allows them to be overridden if necessary.
8102 runpath_var=LD_RUN_PATH
8103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8104 export_dynamic_flag_spec='${wl}--export-dynamic'
8105 # ancient GNU ld didn't support --whole-archive et. al.
8106 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8107 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8108 else
8109 whole_archive_flag_spec=
8110 fi
8111 supports_anon_versioning=no
8112 case `$LD -v 2>&1` in
8113 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8114 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8115 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8116 *\ 2.11.*) ;; # other 2.11 versions
8117 *) supports_anon_versioning=yes ;;
8118 esac
8119
8120 # See if GNU ld supports shared libraries.
8121 case $host_os in
8122 aix[3-9]*)
8123 # On AIX/PPC, the GNU linker is very broken
8124 if test "$host_cpu" != ia64; then
8125 ld_shlibs=no
8126 cat <<_LT_EOF 1>&2
8127
8128*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8129*** to be unable to reliably create shared libraries on AIX.
8130*** Therefore, libtool is disabling shared libraries support. If you
8131*** really care for shared libraries, you may want to modify your PATH
8132*** so that a non-GNU linker is found, and then restart.
8133
8134_LT_EOF
8135 fi
8136 ;;
8137
8138 amigaos*)
8139 case $host_cpu in
8140 powerpc)
8141 # see comment about AmigaOS4 .so support
8142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8143 archive_expsym_cmds=''
8144 ;;
8145 m68k)
8146 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)'
8147 hardcode_libdir_flag_spec='-L$libdir'
8148 hardcode_minus_L=yes
8149 ;;
8150 esac
8151 ;;
8152
8153 beos*)
8154 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8155 allow_undefined_flag=unsupported
8156 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8157 # support --undefined. This deserves some investigation. FIXME
8158 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8159 else
8160 ld_shlibs=no
8161 fi
8162 ;;
8163
8164 cygwin* | mingw* | pw32* | cegcc*)
8165 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8166 # as there is no search path for DLLs.
8167 hardcode_libdir_flag_spec='-L$libdir'
8168 allow_undefined_flag=unsupported
8169 always_export_symbols=no
8170 enable_shared_with_static_runtimes=yes
8171 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8172
8173 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8175 # If the export-symbols file already is a .def file (1st line
8176 # is EXPORTS), use it as is; otherwise, prepend...
8177 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8178 cp $export_symbols $output_objdir/$soname.def;
8179 else
8180 echo EXPORTS > $output_objdir/$soname.def;
8181 cat $export_symbols >> $output_objdir/$soname.def;
8182 fi~
8183 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8184 else
8185 ld_shlibs=no
8186 fi
8187 ;;
8188
8189 interix[3-9]*)
8190 hardcode_direct=no
8191 hardcode_shlibpath_var=no
8192 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8193 export_dynamic_flag_spec='${wl}-E'
8194 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8195 # Instead, shared libraries are loaded at an image base (0x10000000 by
8196 # default) and relocated if they conflict, which is a slow very memory
8197 # consuming and fragmenting process. To avoid this, we pick a random,
8198 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8199 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8200 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8201 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'
8202 ;;
8203
8204 gnu* | linux* | tpf* | k*bsd*-gnu)
8205 tmp_diet=no
8206 if test "$host_os" = linux-dietlibc; then
8207 case $cc_basename in
8208 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8209 esac
8210 fi
8211 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8212 && test "$tmp_diet" = no
8213 then
8214 tmp_addflag=
8215 tmp_sharedflag='-shared'
8216 case $cc_basename,$host_cpu in
8217 pgcc*) # Portland Group C compiler
8218 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'
8219 tmp_addflag=' $pic_flag'
8220 ;;
8221 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8222 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'
8223 tmp_addflag=' $pic_flag -Mnomain' ;;
8224 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8225 tmp_addflag=' -i_dynamic' ;;
8226 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8227 tmp_addflag=' -i_dynamic -nofor_main' ;;
8228 ifc* | ifort*) # Intel Fortran compiler
8229 tmp_addflag=' -nofor_main' ;;
8230 lf95*) # Lahey Fortran 8.1
8231 whole_archive_flag_spec=
8232 tmp_sharedflag='--shared' ;;
8233 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8234 tmp_sharedflag='-qmkshrobj'
8235 tmp_addflag= ;;
8236 esac
8237 case `$CC -V 2>&1 | sed 5q` in
8238 *Sun\ C*) # Sun C 5.9
8239 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'
8240 compiler_needs_object=yes
8241 tmp_sharedflag='-G' ;;
8242 *Sun\ F*) # Sun Fortran 8.3
8243 tmp_sharedflag='-G' ;;
8244 esac
8245 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8246
8247 if test "x$supports_anon_versioning" = xyes; then
8248 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8249 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8250 echo "local: *; };" >> $output_objdir/$libname.ver~
8251 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8252 fi
8253
8254 case $cc_basename in
8255 xlf*)
8256 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8257 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8258 hardcode_libdir_flag_spec=
8259 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8260 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8261 if test "x$supports_anon_versioning" = xyes; then
8262 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8263 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8264 echo "local: *; };" >> $output_objdir/$libname.ver~
8265 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8266 fi
8267 ;;
8268 esac
8269 else
8270 ld_shlibs=no
8271 fi
8272 ;;
8273
8274 netbsd*)
8275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8276 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8277 wlarc=
8278 else
8279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8280 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8281 fi
8282 ;;
8283
8284 solaris*)
8285 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8286 ld_shlibs=no
8287 cat <<_LT_EOF 1>&2
8288
8289*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8290*** create shared libraries on Solaris systems. Therefore, libtool
8291*** is disabling shared libraries support. We urge you to upgrade GNU
8292*** binutils to release 2.9.1 or newer. Another option is to modify
8293*** your PATH or compiler configuration so that the native linker is
8294*** used, and then restart.
8295
8296_LT_EOF
8297 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8300 else
8301 ld_shlibs=no
8302 fi
8303 ;;
8304
8305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8306 case `$LD -v 2>&1` in
8307 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8308 ld_shlibs=no
8309 cat <<_LT_EOF 1>&2
8310
8311*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8312*** reliably create shared libraries on SCO systems. Therefore, libtool
8313*** is disabling shared libraries support. We urge you to upgrade GNU
8314*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8315*** your PATH or compiler configuration so that the native linker is
8316*** used, and then restart.
8317
8318_LT_EOF
8319 ;;
8320 *)
8321 # For security reasons, it is highly recommended that you always
8322 # use absolute paths for naming shared libraries, and exclude the
8323 # DT_RUNPATH tag from executables and libraries. But doing so
8324 # requires that you compile everything twice, which is a pain.
8325 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8326 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8328 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8329 else
8330 ld_shlibs=no
8331 fi
8332 ;;
8333 esac
8334 ;;
8335
8336 sunos4*)
8337 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8338 wlarc=
8339 hardcode_direct=yes
8340 hardcode_shlibpath_var=no
8341 ;;
8342
8343 *)
8344 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8346 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8347 else
8348 ld_shlibs=no
8349 fi
8350 ;;
8351 esac
8352
8353 if test "$ld_shlibs" = no; then
8354 runpath_var=
8355 hardcode_libdir_flag_spec=
8356 export_dynamic_flag_spec=
8357 whole_archive_flag_spec=
8358 fi
8359 else
8360 # PORTME fill in a description of your system's linker (not GNU ld)
8361 case $host_os in
8362 aix3*)
8363 allow_undefined_flag=unsupported
8364 always_export_symbols=yes
8365 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'
8366 # Note: this linker hardcodes the directories in LIBPATH if there
8367 # are no directories specified by -L.
8368 hardcode_minus_L=yes
8369 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8370 # Neither direct hardcoding nor static linking is supported with a
8371 # broken collect2.
8372 hardcode_direct=unsupported
8373 fi
8374 ;;
8375
8376 aix[4-9]*)
8377 if test "$host_cpu" = ia64; then
8378 # On IA64, the linker does run time linking by default, so we don't
8379 # have to do anything special.
8380 aix_use_runtimelinking=no
8381 exp_sym_flag='-Bexport'
8382 no_entry_flag=""
8383 else
8384 # If we're using GNU nm, then we don't want the "-C" option.
8385 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8386 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8387 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'
8388 else
8389 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'
8390 fi
8391 aix_use_runtimelinking=no
8392
8393 # Test if we are trying to use run time linking or normal
8394 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8395 # need to do runtime linking.
8396 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8397 for ld_flag in $LDFLAGS; do
8398 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8399 aix_use_runtimelinking=yes
8400 break
8401 fi
8402 done
8403 ;;
8404 esac
8405
8406 exp_sym_flag='-bexport'
8407 no_entry_flag='-bnoentry'
8408 fi
8409
8410 # When large executables or shared objects are built, AIX ld can
8411 # have problems creating the table of contents. If linking a library
8412 # or program results in "error TOC overflow" add -mminimal-toc to
8413 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8414 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8415
8416 archive_cmds=''
8417 hardcode_direct=yes
8418 hardcode_direct_absolute=yes
8419 hardcode_libdir_separator=':'
8420 link_all_deplibs=yes
8421 file_list_spec='${wl}-f,'
8422
8423 if test "$GCC" = yes; then
8424 case $host_os in aix4.[012]|aix4.[012].*)
8425 # We only want to do this on AIX 4.2 and lower, the check
8426 # below for broken collect2 doesn't work under 4.3+
8427 collect2name=`${CC} -print-prog-name=collect2`
8428 if test -f "$collect2name" &&
8429 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8430 then
8431 # We have reworked collect2
8432 :
8433 else
8434 # We have old collect2
8435 hardcode_direct=unsupported
8436 # It fails to find uninstalled libraries when the uninstalled
8437 # path is not listed in the libpath. Setting hardcode_minus_L
8438 # to unsupported forces relinking
8439 hardcode_minus_L=yes
8440 hardcode_libdir_flag_spec='-L$libdir'
8441 hardcode_libdir_separator=
8442 fi
8443 ;;
8444 esac
8445 shared_flag='-shared'
8446 if test "$aix_use_runtimelinking" = yes; then
8447 shared_flag="$shared_flag "'${wl}-G'
8448 fi
8449 else
8450 # not using gcc
8451 if test "$host_cpu" = ia64; then
8452 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8453 # chokes on -Wl,-G. The following line is correct:
8454 shared_flag='-G'
8455 else
8456 if test "$aix_use_runtimelinking" = yes; then
8457 shared_flag='${wl}-G'
8458 else
8459 shared_flag='${wl}-bM:SRE'
8460 fi
8461 fi
8462 fi
8463
8464 export_dynamic_flag_spec='${wl}-bexpall'
8465 # It seems that -bexpall does not export symbols beginning with
8466 # underscore (_), so it is better to generate a list of symbols to export.
8467 always_export_symbols=yes
8468 if test "$aix_use_runtimelinking" = yes; then
8469 # Warning - without using the other runtime loading flags (-brtl),
8470 # -berok will link without error, but may produce a broken library.
8471 allow_undefined_flag='-berok'
8472 # Determine the default libpath from the value encoded in an
8473 # empty executable.
8474 cat >conftest.$ac_ext <<_ACEOF
8475/* confdefs.h. */
8476_ACEOF
8477cat confdefs.h >>conftest.$ac_ext
8478cat >>conftest.$ac_ext <<_ACEOF
8479/* end confdefs.h. */
8480
8481int
8482main ()
8483{
8484
8485 ;
8486 return 0;
8487}
8488_ACEOF
8489rm -f conftest.$ac_objext conftest$ac_exeext
8490if { (ac_try="$ac_link"
8491case "(($ac_try" in
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8494esac
8495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8496$as_echo "$ac_try_echo") >&5
8497 (eval "$ac_link") 2>conftest.er1
8498 ac_status=$?
8499 grep -v '^ *+' conftest.er1 >conftest.err
8500 rm -f conftest.er1
8501 cat conftest.err >&5
8502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } && {
8504 test -z "$ac_c_werror_flag" ||
8505 test ! -s conftest.err
8506 } && test -s conftest$ac_exeext && {
8507 test "$cross_compiling" = yes ||
8508 $as_test_x conftest$ac_exeext
8509 }; then
8510
8511lt_aix_libpath_sed='
8512 /Import File Strings/,/^$/ {
8513 /^0/ {
8514 s/^0 *\(.*\)$/\1/
8515 p
8516 }
8517 }'
8518aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8519# Check for a 64-bit object if we didn't find anything.
8520if test -z "$aix_libpath"; then
8521 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8522fi
8523else
8524 $as_echo "$as_me: failed program was:" >&5
8525sed 's/^/| /' conftest.$ac_ext >&5
8526
8527
8528fi
8529
8530rm -rf conftest.dSYM
8531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8532 conftest$ac_exeext conftest.$ac_ext
8533if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8534
8535 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8536 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"
8537 else
8538 if test "$host_cpu" = ia64; then
8539 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8540 allow_undefined_flag="-z nodefs"
8541 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"
8542 else
8543 # Determine the default libpath from the value encoded in an
8544 # empty executable.
8545 cat >conftest.$ac_ext <<_ACEOF
8546/* confdefs.h. */
8547_ACEOF
8548cat confdefs.h >>conftest.$ac_ext
8549cat >>conftest.$ac_ext <<_ACEOF
8550/* end confdefs.h. */
8551
8552int
8553main ()
8554{
8555
8556 ;
8557 return 0;
8558}
8559_ACEOF
8560rm -f conftest.$ac_objext conftest$ac_exeext
8561if { (ac_try="$ac_link"
8562case "(($ac_try" in
8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8565esac
8566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8567$as_echo "$ac_try_echo") >&5
8568 (eval "$ac_link") 2>conftest.er1
8569 ac_status=$?
8570 grep -v '^ *+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } && {
8575 test -z "$ac_c_werror_flag" ||
8576 test ! -s conftest.err
8577 } && test -s conftest$ac_exeext && {
8578 test "$cross_compiling" = yes ||
8579 $as_test_x conftest$ac_exeext
8580 }; then
8581
8582lt_aix_libpath_sed='
8583 /Import File Strings/,/^$/ {
8584 /^0/ {
8585 s/^0 *\(.*\)$/\1/
8586 p
8587 }
8588 }'
8589aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8590# Check for a 64-bit object if we didn't find anything.
8591if test -z "$aix_libpath"; then
8592 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8593fi
8594else
8595 $as_echo "$as_me: failed program was:" >&5
8596sed 's/^/| /' conftest.$ac_ext >&5
8597
8598
8599fi
8600
8601rm -rf conftest.dSYM
8602rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8603 conftest$ac_exeext conftest.$ac_ext
8604if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8605
8606 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8607 # Warning - without using the other run time loading flags,
8608 # -berok will link without error, but may produce a broken library.
8609 no_undefined_flag=' ${wl}-bernotok'
8610 allow_undefined_flag=' ${wl}-berok'
8611 # Exported symbols can be pulled into shared objects from archives
8612 whole_archive_flag_spec='$convenience'
8613 archive_cmds_need_lc=yes
8614 # This is similar to how AIX traditionally builds its shared libraries.
8615 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'
8616 fi
8617 fi
8618 ;;
8619
8620 amigaos*)
8621 case $host_cpu in
8622 powerpc)
8623 # see comment about AmigaOS4 .so support
8624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8625 archive_expsym_cmds=''
8626 ;;
8627 m68k)
8628 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)'
8629 hardcode_libdir_flag_spec='-L$libdir'
8630 hardcode_minus_L=yes
8631 ;;
8632 esac
8633 ;;
8634
8635 bsdi[45]*)
8636 export_dynamic_flag_spec=-rdynamic
8637 ;;
8638
8639 cygwin* | mingw* | pw32* | cegcc*)
8640 # When not using gcc, we currently assume that we are using
8641 # Microsoft Visual C++.
8642 # hardcode_libdir_flag_spec is actually meaningless, as there is
8643 # no search path for DLLs.
8644 hardcode_libdir_flag_spec=' '
8645 allow_undefined_flag=unsupported
8646 # Tell ltmain to make .lib files, not .a files.
8647 libext=lib
8648 # Tell ltmain to make .dll files, not .so files.
8649 shrext_cmds=".dll"
8650 # FIXME: Setting linknames here is a bad hack.
8651 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8652 # The linker will automatically build a .lib file if we build a DLL.
8653 old_archive_from_new_cmds='true'
8654 # FIXME: Should let the user specify the lib program.
8655 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8656 fix_srcfile_path='`cygpath -w "$srcfile"`'
8657 enable_shared_with_static_runtimes=yes
8658 ;;
8659
8660 darwin* | rhapsody*)
8661
8662
8663 archive_cmds_need_lc=no
8664 hardcode_direct=no
8665 hardcode_automatic=yes
8666 hardcode_shlibpath_var=unsupported
8667 whole_archive_flag_spec=''
8668 link_all_deplibs=yes
8669 allow_undefined_flag="$_lt_dar_allow_undefined"
8670 case $cc_basename in
8671 ifort*) _lt_dar_can_shared=yes ;;
8672 *) _lt_dar_can_shared=$GCC ;;
8673 esac
8674 if test "$_lt_dar_can_shared" = "yes"; then
8675 output_verbose_link_cmd=echo
8676 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8677 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8678 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}"
8679 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}"
8680
8681 else
8682 ld_shlibs=no
8683 fi
8684
8685 ;;
8686
8687 dgux*)
8688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8689 hardcode_libdir_flag_spec='-L$libdir'
8690 hardcode_shlibpath_var=no
8691 ;;
8692
8693 freebsd1*)
8694 ld_shlibs=no
8695 ;;
8696
8697 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8698 # support. Future versions do this automatically, but an explicit c++rt0.o
8699 # does not break anything, and helps significantly (at the cost of a little
8700 # extra space).
8701 freebsd2.2*)
8702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8703 hardcode_libdir_flag_spec='-R$libdir'
8704 hardcode_direct=yes
8705 hardcode_shlibpath_var=no
8706 ;;
8707
8708 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8709 freebsd2*)
8710 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8711 hardcode_direct=yes
8712 hardcode_minus_L=yes
8713 hardcode_shlibpath_var=no
8714 ;;
8715
8716 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8717 freebsd* | dragonfly*)
8718 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8719 hardcode_libdir_flag_spec='-R$libdir'
8720 hardcode_direct=yes
8721 hardcode_shlibpath_var=no
8722 ;;
8723
8724 hpux9*)
8725 if test "$GCC" = yes; then
8726 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'
8727 else
8728 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'
8729 fi
8730 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8731 hardcode_libdir_separator=:
8732 hardcode_direct=yes
8733
8734 # hardcode_minus_L: Not really in the search PATH,
8735 # but as the default location of the library.
8736 hardcode_minus_L=yes
8737 export_dynamic_flag_spec='${wl}-E'
8738 ;;
8739
8740 hpux10*)
8741 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8742 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8743 else
8744 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8745 fi
8746 if test "$with_gnu_ld" = no; then
8747 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8748 hardcode_libdir_flag_spec_ld='+b $libdir'
8749 hardcode_libdir_separator=:
8750 hardcode_direct=yes
8751 hardcode_direct_absolute=yes
8752 export_dynamic_flag_spec='${wl}-E'
8753 # hardcode_minus_L: Not really in the search PATH,
8754 # but as the default location of the library.
8755 hardcode_minus_L=yes
8756 fi
8757 ;;
8758
8759 hpux11*)
8760 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8761 case $host_cpu in
8762 hppa*64*)
8763 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8764 ;;
8765 ia64*)
8766 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8767 ;;
8768 *)
8769 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8770 ;;
8771 esac
8772 else
8773 case $host_cpu in
8774 hppa*64*)
8775 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8776 ;;
8777 ia64*)
8778 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8779 ;;
8780 *)
8781 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8782 ;;
8783 esac
8784 fi
8785 if test "$with_gnu_ld" = no; then
8786 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8787 hardcode_libdir_separator=:
8788
8789 case $host_cpu in
8790 hppa*64*|ia64*)
8791 hardcode_direct=no
8792 hardcode_shlibpath_var=no
8793 ;;
8794 *)
8795 hardcode_direct=yes
8796 hardcode_direct_absolute=yes
8797 export_dynamic_flag_spec='${wl}-E'
8798
8799 # hardcode_minus_L: Not really in the search PATH,
8800 # but as the default location of the library.
8801 hardcode_minus_L=yes
8802 ;;
8803 esac
8804 fi
8805 ;;
8806
8807 irix5* | irix6* | nonstopux*)
8808 if test "$GCC" = yes; then
8809 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'
8810 # Try to use the -exported_symbol ld option, if it does not
8811 # work, assume that -exports_file does not work either and
8812 # implicitly export all symbols.
8813 save_LDFLAGS="$LDFLAGS"
8814 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8815 cat >conftest.$ac_ext <<_ACEOF
8816int foo(void) {}
8817_ACEOF
8818rm -f conftest.$ac_objext conftest$ac_exeext
8819if { (ac_try="$ac_link"
8820case "(($ac_try" in
8821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822 *) ac_try_echo=$ac_try;;
8823esac
8824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8825$as_echo "$ac_try_echo") >&5
8826 (eval "$ac_link") 2>conftest.er1
8827 ac_status=$?
8828 grep -v '^ *+' conftest.er1 >conftest.err
8829 rm -f conftest.er1
8830 cat conftest.err >&5
8831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } && {
8833 test -z "$ac_c_werror_flag" ||
8834 test ! -s conftest.err
8835 } && test -s conftest$ac_exeext && {
8836 test "$cross_compiling" = yes ||
8837 $as_test_x conftest$ac_exeext
8838 }; then
8839 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'
8840
8841else
8842 $as_echo "$as_me: failed program was:" >&5
8843sed 's/^/| /' conftest.$ac_ext >&5
8844
8845
8846fi
8847
8848rm -rf conftest.dSYM
8849rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8850 conftest$ac_exeext conftest.$ac_ext
8851 LDFLAGS="$save_LDFLAGS"
8852 else
8853 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'
8854 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'
8855 fi
8856 archive_cmds_need_lc='no'
8857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8858 hardcode_libdir_separator=:
8859 inherit_rpath=yes
8860 link_all_deplibs=yes
8861 ;;
8862
8863 netbsd*)
8864 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8865 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8866 else
8867 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8868 fi
8869 hardcode_libdir_flag_spec='-R$libdir'
8870 hardcode_direct=yes
8871 hardcode_shlibpath_var=no
8872 ;;
8873
8874 newsos6)
8875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8876 hardcode_direct=yes
8877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8878 hardcode_libdir_separator=:
8879 hardcode_shlibpath_var=no
8880 ;;
8881
8882 *nto* | *qnx*)
8883 ;;
8884
8885 openbsd*)
8886 if test -f /usr/libexec/ld.so; then
8887 hardcode_direct=yes
8888 hardcode_shlibpath_var=no
8889 hardcode_direct_absolute=yes
8890 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8892 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8893 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8894 export_dynamic_flag_spec='${wl}-E'
8895 else
8896 case $host_os in
8897 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8899 hardcode_libdir_flag_spec='-R$libdir'
8900 ;;
8901 *)
8902 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8903 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8904 ;;
8905 esac
8906 fi
8907 else
8908 ld_shlibs=no
8909 fi
8910 ;;
8911
8912 os2*)
8913 hardcode_libdir_flag_spec='-L$libdir'
8914 hardcode_minus_L=yes
8915 allow_undefined_flag=unsupported
8916 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'
8917 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8918 ;;
8919
8920 osf3*)
8921 if test "$GCC" = yes; then
8922 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8923 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'
8924 else
8925 allow_undefined_flag=' -expect_unresolved \*'
8926 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'
8927 fi
8928 archive_cmds_need_lc='no'
8929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8930 hardcode_libdir_separator=:
8931 ;;
8932
8933 osf4* | osf5*) # as osf3* with the addition of -msym flag
8934 if test "$GCC" = yes; then
8935 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8936 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'
8937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8938 else
8939 allow_undefined_flag=' -expect_unresolved \*'
8940 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'
8941 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~
8942 $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'
8943
8944 # Both c and cxx compiler support -rpath directly
8945 hardcode_libdir_flag_spec='-rpath $libdir'
8946 fi
8947 archive_cmds_need_lc='no'
8948 hardcode_libdir_separator=:
8949 ;;
8950
8951 solaris*)
8952 no_undefined_flag=' -z defs'
8953 if test "$GCC" = yes; then
8954 wlarc='${wl}'
8955 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8956 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8957 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8958 else
8959 case `$CC -V 2>&1` in
8960 *"Compilers 5.0"*)
8961 wlarc=''
8962 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8963 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8964 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8965 ;;
8966 *)
8967 wlarc='${wl}'
8968 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8969 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8970 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8971 ;;
8972 esac
8973 fi
8974 hardcode_libdir_flag_spec='-R$libdir'
8975 hardcode_shlibpath_var=no
8976 case $host_os in
8977 solaris2.[0-5] | solaris2.[0-5].*) ;;
8978 *)
8979 # The compiler driver will combine and reorder linker options,
8980 # but understands `-z linker_flag'. GCC discards it without `$wl',
8981 # but is careful enough not to reorder.
8982 # Supported since Solaris 2.6 (maybe 2.5.1?)
8983 if test "$GCC" = yes; then
8984 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8985 else
8986 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8987 fi
8988 ;;
8989 esac
8990 link_all_deplibs=yes
8991 ;;
8992
8993 sunos4*)
8994 if test "x$host_vendor" = xsequent; then
8995 # Use $CC to link under sequent, because it throws in some extra .o
8996 # files that make .init and .fini sections work.
8997 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8998 else
8999 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9000 fi
9001 hardcode_libdir_flag_spec='-L$libdir'
9002 hardcode_direct=yes
9003 hardcode_minus_L=yes
9004 hardcode_shlibpath_var=no
9005 ;;
9006
9007 sysv4)
9008 case $host_vendor in
9009 sni)
9010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9011 hardcode_direct=yes # is this really true???
9012 ;;
9013 siemens)
9014 ## LD is ld it makes a PLAMLIB
9015 ## CC just makes a GrossModule.
9016 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9017 reload_cmds='$CC -r -o $output$reload_objs'
9018 hardcode_direct=no
9019 ;;
9020 motorola)
9021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9022 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9023 ;;
9024 esac
9025 runpath_var='LD_RUN_PATH'
9026 hardcode_shlibpath_var=no
9027 ;;
9028
9029 sysv4.3*)
9030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9031 hardcode_shlibpath_var=no
9032 export_dynamic_flag_spec='-Bexport'
9033 ;;
9034
9035 sysv4*MP*)
9036 if test -d /usr/nec; then
9037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9038 hardcode_shlibpath_var=no
9039 runpath_var=LD_RUN_PATH
9040 hardcode_runpath_var=yes
9041 ld_shlibs=yes
9042 fi
9043 ;;
9044
9045 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9046 no_undefined_flag='${wl}-z,text'
9047 archive_cmds_need_lc=no
9048 hardcode_shlibpath_var=no
9049 runpath_var='LD_RUN_PATH'
9050
9051 if test "$GCC" = yes; then
9052 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9053 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9054 else
9055 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9056 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9057 fi
9058 ;;
9059
9060 sysv5* | sco3.2v5* | sco5v6*)
9061 # Note: We can NOT use -z defs as we might desire, because we do not
9062 # link with -lc, and that would cause any symbols used from libc to
9063 # always be unresolved, which means just about no library would
9064 # ever link correctly. If we're not using GNU ld we use -z text
9065 # though, which does catch some bad symbols but isn't as heavy-handed
9066 # as -z defs.
9067 no_undefined_flag='${wl}-z,text'
9068 allow_undefined_flag='${wl}-z,nodefs'
9069 archive_cmds_need_lc=no
9070 hardcode_shlibpath_var=no
9071 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9072 hardcode_libdir_separator=':'
9073 link_all_deplibs=yes
9074 export_dynamic_flag_spec='${wl}-Bexport'
9075 runpath_var='LD_RUN_PATH'
9076
9077 if test "$GCC" = yes; then
9078 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9079 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9080 else
9081 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9082 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9083 fi
9084 ;;
9085
9086 uts4*)
9087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9088 hardcode_libdir_flag_spec='-L$libdir'
9089 hardcode_shlibpath_var=no
9090 ;;
9091
9092 *)
9093 ld_shlibs=no
9094 ;;
9095 esac
9096
9097 if test x$host_vendor = xsni; then
9098 case $host in
9099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9100 export_dynamic_flag_spec='${wl}-Blargedynsym'
9101 ;;
9102 esac
9103 fi
9104 fi
9105
9106{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9107$as_echo "$ld_shlibs" >&6; }
9108test "$ld_shlibs" = no && can_build_shared=no
9109
9110with_gnu_ld=$with_gnu_ld
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126#
9127# Do we need to explicitly link libc?
9128#
9129case "x$archive_cmds_need_lc" in
9130x|xyes)
9131 # Assume -lc should be added
9132 archive_cmds_need_lc=yes
9133
9134 if test "$enable_shared" = yes && test "$GCC" = yes; then
9135 case $archive_cmds in
9136 *'~'*)
9137 # FIXME: we may have to deal with multi-command sequences.
9138 ;;
9139 '$CC '*)
9140 # Test whether the compiler implicitly links with -lc since on some
9141 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9142 # to ld, don't add -lc before -lgcc.
9143 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9144$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9145 $RM conftest*
9146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9147
9148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9149 (eval $ac_compile) 2>&5
9150 ac_status=$?
9151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } 2>conftest.err; then
9153 soname=conftest
9154 lib=conftest
9155 libobjs=conftest.$ac_objext
9156 deplibs=
9157 wl=$lt_prog_compiler_wl
9158 pic_flag=$lt_prog_compiler_pic
9159 compiler_flags=-v
9160 linker_flags=-v
9161 verstring=
9162 output_objdir=.
9163 libname=conftest
9164 lt_save_allow_undefined_flag=$allow_undefined_flag
9165 allow_undefined_flag=
9166 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9167 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9168 ac_status=$?
9169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }
9171 then
9172 archive_cmds_need_lc=no
9173 else
9174 archive_cmds_need_lc=yes
9175 fi
9176 allow_undefined_flag=$lt_save_allow_undefined_flag
9177 else
9178 cat conftest.err 1>&5
9179 fi
9180 $RM conftest*
9181 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9182$as_echo "$archive_cmds_need_lc" >&6; }
9183 ;;
9184 esac
9185 fi
9186 ;;
9187esac
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9346$as_echo_n "checking dynamic linker characteristics... " >&6; }
9347
9348if test "$GCC" = yes; then
9349 case $host_os in
9350 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9351 *) lt_awk_arg="/^libraries:/" ;;
9352 esac
9353 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9354 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9355 # if the path contains ";" then we assume it to be the separator
9356 # otherwise default to the standard path separator (i.e. ":") - it is
9357 # assumed that no part of a normal pathname contains ";" but that should
9358 # okay in the real world where ";" in dirpaths is itself problematic.
9359 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9360 else
9361 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9362 fi
9363 # Ok, now we have the path, separated by spaces, we can step through it
9364 # and add multilib dir if necessary.
9365 lt_tmp_lt_search_path_spec=
9366 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9367 for lt_sys_path in $lt_search_path_spec; do
9368 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9369 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9370 else
9371 test -d "$lt_sys_path" && \
9372 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9373 fi
9374 done
9375 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9376BEGIN {RS=" "; FS="/|\n";} {
9377 lt_foo="";
9378 lt_count=0;
9379 for (lt_i = NF; lt_i > 0; lt_i--) {
9380 if ($lt_i != "" && $lt_i != ".") {
9381 if ($lt_i == "..") {
9382 lt_count++;
9383 } else {
9384 if (lt_count == 0) {
9385 lt_foo="/" $lt_i lt_foo;
9386 } else {
9387 lt_count--;
9388 }
9389 }
9390 }
9391 }
9392 if (lt_foo != "") { lt_freq[lt_foo]++; }
9393 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9394}'`
9395 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9396else
9397 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9398fi
9399library_names_spec=
9400libname_spec='lib$name'
9401soname_spec=
9402shrext_cmds=".so"
9403postinstall_cmds=
9404postuninstall_cmds=
9405finish_cmds=
9406finish_eval=
9407shlibpath_var=
9408shlibpath_overrides_runpath=unknown
9409version_type=none
9410dynamic_linker="$host_os ld.so"
9411sys_lib_dlsearch_path_spec="/lib /usr/lib"
9412need_lib_prefix=unknown
9413hardcode_into_libs=no
9414
9415# when you set need_version to no, make sure it does not cause -set_version
9416# flags to be left without arguments
9417need_version=unknown
9418
9419case $host_os in
9420aix3*)
9421 version_type=linux
9422 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9423 shlibpath_var=LIBPATH
9424
9425 # AIX 3 has no versioning support, so we append a major version to the name.
9426 soname_spec='${libname}${release}${shared_ext}$major'
9427 ;;
9428
9429aix[4-9]*)
9430 version_type=linux
9431 need_lib_prefix=no
9432 need_version=no
9433 hardcode_into_libs=yes
9434 if test "$host_cpu" = ia64; then
9435 # AIX 5 supports IA64
9436 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9437 shlibpath_var=LD_LIBRARY_PATH
9438 else
9439 # With GCC up to 2.95.x, collect2 would create an import file
9440 # for dependence libraries. The import file would start with
9441 # the line `#! .'. This would cause the generated library to
9442 # depend on `.', always an invalid library. This was fixed in
9443 # development snapshots of GCC prior to 3.0.
9444 case $host_os in
9445 aix4 | aix4.[01] | aix4.[01].*)
9446 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9447 echo ' yes '
9448 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9449 :
9450 else
9451 can_build_shared=no
9452 fi
9453 ;;
9454 esac
9455 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9456 # soname into executable. Probably we can add versioning support to
9457 # collect2, so additional links can be useful in future.
9458 if test "$aix_use_runtimelinking" = yes; then
9459 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9460 # instead of lib<name>.a to let people know that these are not
9461 # typical AIX shared libraries.
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463 else
9464 # We preserve .a as extension for shared libraries through AIX4.2
9465 # and later when we are not doing run time linking.
9466 library_names_spec='${libname}${release}.a $libname.a'
9467 soname_spec='${libname}${release}${shared_ext}$major'
9468 fi
9469 shlibpath_var=LIBPATH
9470 fi
9471 ;;
9472
9473amigaos*)
9474 case $host_cpu in
9475 powerpc)
9476 # Since July 2007 AmigaOS4 officially supports .so libraries.
9477 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9479 ;;
9480 m68k)
9481 library_names_spec='$libname.ixlibrary $libname.a'
9482 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9483 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'
9484 ;;
9485 esac
9486 ;;
9487
9488beos*)
9489 library_names_spec='${libname}${shared_ext}'
9490 dynamic_linker="$host_os ld.so"
9491 shlibpath_var=LIBRARY_PATH
9492 ;;
9493
9494bsdi[45]*)
9495 version_type=linux
9496 need_version=no
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9498 soname_spec='${libname}${release}${shared_ext}$major'
9499 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9500 shlibpath_var=LD_LIBRARY_PATH
9501 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9502 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9503 # the default ld.so.conf also contains /usr/contrib/lib and
9504 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9505 # libtool to hard-code these into programs
9506 ;;
9507
9508cygwin* | mingw* | pw32* | cegcc*)
9509 version_type=windows
9510 shrext_cmds=".dll"
9511 need_version=no
9512 need_lib_prefix=no
9513
9514 case $GCC,$host_os in
9515 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9516 library_names_spec='$libname.dll.a'
9517 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9518 postinstall_cmds='base_file=`basename \${file}`~
9519 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9520 dldir=$destdir/`dirname \$dlpath`~
9521 test -d \$dldir || mkdir -p \$dldir~
9522 $install_prog $dir/$dlname \$dldir/$dlname~
9523 chmod a+x \$dldir/$dlname~
9524 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9525 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9526 fi'
9527 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9528 dlpath=$dir/\$dldll~
9529 $RM \$dlpath'
9530 shlibpath_overrides_runpath=yes
9531
9532 case $host_os in
9533 cygwin*)
9534 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9535 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9536 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9537 ;;
9538 mingw* | cegcc*)
9539 # MinGW DLLs use traditional 'lib' prefix
9540 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9541 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9542 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9543 # It is most probably a Windows format PATH printed by
9544 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9545 # path with ; separators, and with drive letters. We can handle the
9546 # drive letters (cygwin fileutils understands them), so leave them,
9547 # especially as we might pass files found there to a mingw objdump,
9548 # which wouldn't understand a cygwinified path. Ahh.
9549 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9550 else
9551 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9552 fi
9553 ;;
9554 pw32*)
9555 # pw32 DLLs use 'pw' prefix rather than 'lib'
9556 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9557 ;;
9558 esac
9559 ;;
9560
9561 *)
9562 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9563 ;;
9564 esac
9565 dynamic_linker='Win32 ld.exe'
9566 # FIXME: first we should search . and the directory the executable is in
9567 shlibpath_var=PATH
9568 ;;
9569
9570darwin* | rhapsody*)
9571 dynamic_linker="$host_os dyld"
9572 version_type=darwin
9573 need_lib_prefix=no
9574 need_version=no
9575 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9576 soname_spec='${libname}${release}${major}$shared_ext'
9577 shlibpath_overrides_runpath=yes
9578 shlibpath_var=DYLD_LIBRARY_PATH
9579 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9580
9581 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9582 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9583 ;;
9584
9585dgux*)
9586 version_type=linux
9587 need_lib_prefix=no
9588 need_version=no
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9590 soname_spec='${libname}${release}${shared_ext}$major'
9591 shlibpath_var=LD_LIBRARY_PATH
9592 ;;
9593
9594freebsd1*)
9595 dynamic_linker=no
9596 ;;
9597
9598freebsd* | dragonfly*)
9599 # DragonFly does not have aout. When/if they implement a new
9600 # versioning mechanism, adjust this.
9601 if test -x /usr/bin/objformat; then
9602 objformat=`/usr/bin/objformat`
9603 else
9604 case $host_os in
9605 freebsd[123]*) objformat=aout ;;
9606 *) objformat=elf ;;
9607 esac
9608 fi
9609 version_type=freebsd-$objformat
9610 case $version_type in
9611 freebsd-elf*)
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9613 need_version=no
9614 need_lib_prefix=no
9615 ;;
9616 freebsd-*)
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9618 need_version=yes
9619 ;;
9620 esac
9621 shlibpath_var=LD_LIBRARY_PATH
9622 case $host_os in
9623 freebsd2*)
9624 shlibpath_overrides_runpath=yes
9625 ;;
9626 freebsd3.[01]* | freebsdelf3.[01]*)
9627 shlibpath_overrides_runpath=yes
9628 hardcode_into_libs=yes
9629 ;;
9630 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9631 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9632 shlibpath_overrides_runpath=no
9633 hardcode_into_libs=yes
9634 ;;
9635 *) # from 4.6 on, and DragonFly
9636 shlibpath_overrides_runpath=yes
9637 hardcode_into_libs=yes
9638 ;;
9639 esac
9640 ;;
9641
9642gnu*)
9643 version_type=linux
9644 need_lib_prefix=no
9645 need_version=no
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9647 soname_spec='${libname}${release}${shared_ext}$major'
9648 shlibpath_var=LD_LIBRARY_PATH
9649 hardcode_into_libs=yes
9650 ;;
9651
9652hpux9* | hpux10* | hpux11*)
9653 # Give a soname corresponding to the major version so that dld.sl refuses to
9654 # link against other versions.
9655 version_type=sunos
9656 need_lib_prefix=no
9657 need_version=no
9658 case $host_cpu in
9659 ia64*)
9660 shrext_cmds='.so'
9661 hardcode_into_libs=yes
9662 dynamic_linker="$host_os dld.so"
9663 shlibpath_var=LD_LIBRARY_PATH
9664 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9666 soname_spec='${libname}${release}${shared_ext}$major'
9667 if test "X$HPUX_IA64_MODE" = X32; then
9668 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9669 else
9670 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9671 fi
9672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9673 ;;
9674 hppa*64*)
9675 shrext_cmds='.sl'
9676 hardcode_into_libs=yes
9677 dynamic_linker="$host_os dld.sl"
9678 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9679 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9681 soname_spec='${libname}${release}${shared_ext}$major'
9682 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9683 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9684 ;;
9685 *)
9686 shrext_cmds='.sl'
9687 dynamic_linker="$host_os dld.sl"
9688 shlibpath_var=SHLIB_PATH
9689 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9691 soname_spec='${libname}${release}${shared_ext}$major'
9692 ;;
9693 esac
9694 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9695 postinstall_cmds='chmod 555 $lib'
9696 ;;
9697
9698interix[3-9]*)
9699 version_type=linux
9700 need_lib_prefix=no
9701 need_version=no
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9705 shlibpath_var=LD_LIBRARY_PATH
9706 shlibpath_overrides_runpath=no
9707 hardcode_into_libs=yes
9708 ;;
9709
9710irix5* | irix6* | nonstopux*)
9711 case $host_os in
9712 nonstopux*) version_type=nonstopux ;;
9713 *)
9714 if test "$lt_cv_prog_gnu_ld" = yes; then
9715 version_type=linux
9716 else
9717 version_type=irix
9718 fi ;;
9719 esac
9720 need_lib_prefix=no
9721 need_version=no
9722 soname_spec='${libname}${release}${shared_ext}$major'
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9724 case $host_os in
9725 irix5* | nonstopux*)
9726 libsuff= shlibsuff=
9727 ;;
9728 *)
9729 case $LD in # libtool.m4 will add one of these switches to LD
9730 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9731 libsuff= shlibsuff= libmagic=32-bit;;
9732 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9733 libsuff=32 shlibsuff=N32 libmagic=N32;;
9734 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9735 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9736 *) libsuff= shlibsuff= libmagic=never-match;;
9737 esac
9738 ;;
9739 esac
9740 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9741 shlibpath_overrides_runpath=no
9742 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9743 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9744 hardcode_into_libs=yes
9745 ;;
9746
9747# No shared lib support for Linux oldld, aout, or coff.
9748linux*oldld* | linux*aout* | linux*coff*)
9749 dynamic_linker=no
9750 ;;
9751
9752# This must be Linux ELF.
9753linux* | k*bsd*-gnu)
9754 version_type=linux
9755 need_lib_prefix=no
9756 need_version=no
9757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9758 soname_spec='${libname}${release}${shared_ext}$major'
9759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9760 shlibpath_var=LD_LIBRARY_PATH
9761 shlibpath_overrides_runpath=no
9762 # Some binutils ld are patched to set DT_RUNPATH
9763 save_LDFLAGS=$LDFLAGS
9764 save_libdir=$libdir
9765 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9766 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9767 cat >conftest.$ac_ext <<_ACEOF
9768/* confdefs.h. */
9769_ACEOF
9770cat confdefs.h >>conftest.$ac_ext
9771cat >>conftest.$ac_ext <<_ACEOF
9772/* end confdefs.h. */
9773
9774int
9775main ()
9776{
9777
9778 ;
9779 return 0;
9780}
9781_ACEOF
9782rm -f conftest.$ac_objext conftest$ac_exeext
9783if { (ac_try="$ac_link"
9784case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787esac
9788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9789$as_echo "$ac_try_echo") >&5
9790 (eval "$ac_link") 2>conftest.er1
9791 ac_status=$?
9792 grep -v '^ *+' conftest.er1 >conftest.err
9793 rm -f conftest.er1
9794 cat conftest.err >&5
9795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } && {
9797 test -z "$ac_c_werror_flag" ||
9798 test ! -s conftest.err
9799 } && test -s conftest$ac_exeext && {
9800 test "$cross_compiling" = yes ||
9801 $as_test_x conftest$ac_exeext
9802 }; then
9803 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9804 shlibpath_overrides_runpath=yes
9805fi
9806
9807else
9808 $as_echo "$as_me: failed program was:" >&5
9809sed 's/^/| /' conftest.$ac_ext >&5
9810
9811
9812fi
9813
9814rm -rf conftest.dSYM
9815rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9816 conftest$ac_exeext conftest.$ac_ext
9817 LDFLAGS=$save_LDFLAGS
9818 libdir=$save_libdir
9819
9820 # This implies no fast_install, which is unacceptable.
9821 # Some rework will be needed to allow for fast_install
9822 # before this can be enabled.
9823 hardcode_into_libs=yes
9824
9825 # Add ABI-specific directories to the system library path.
9826 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9827
9828 # Append ld.so.conf contents to the search path
9829 if test -f /etc/ld.so.conf; then
9830 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' ' '`
9831 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9832 fi
9833
9834 # We used to test for /lib/ld.so.1 and disable shared libraries on
9835 # powerpc, because MkLinux only supported shared libraries with the
9836 # GNU dynamic linker. Since this was broken with cross compilers,
9837 # most powerpc-linux boxes support dynamic linking these days and
9838 # people can always --disable-shared, the test was removed, and we
9839 # assume the GNU/Linux dynamic linker is in use.
9840 dynamic_linker='GNU/Linux ld.so'
9841 ;;
9842
9843netbsd*)
9844 version_type=sunos
9845 need_lib_prefix=no
9846 need_version=no
9847 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9850 dynamic_linker='NetBSD (a.out) ld.so'
9851 else
9852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9853 soname_spec='${libname}${release}${shared_ext}$major'
9854 dynamic_linker='NetBSD ld.elf_so'
9855 fi
9856 shlibpath_var=LD_LIBRARY_PATH
9857 shlibpath_overrides_runpath=yes
9858 hardcode_into_libs=yes
9859 ;;
9860
9861newsos6)
9862 version_type=linux
9863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9864 shlibpath_var=LD_LIBRARY_PATH
9865 shlibpath_overrides_runpath=yes
9866 ;;
9867
9868*nto* | *qnx*)
9869 version_type=qnx
9870 need_lib_prefix=no
9871 need_version=no
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9873 soname_spec='${libname}${release}${shared_ext}$major'
9874 shlibpath_var=LD_LIBRARY_PATH
9875 shlibpath_overrides_runpath=no
9876 hardcode_into_libs=yes
9877 dynamic_linker='ldqnx.so'
9878 ;;
9879
9880openbsd*)
9881 version_type=sunos
9882 sys_lib_dlsearch_path_spec="/usr/lib"
9883 need_lib_prefix=no
9884 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9885 case $host_os in
9886 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9887 *) need_version=no ;;
9888 esac
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9891 shlibpath_var=LD_LIBRARY_PATH
9892 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9893 case $host_os in
9894 openbsd2.[89] | openbsd2.[89].*)
9895 shlibpath_overrides_runpath=no
9896 ;;
9897 *)
9898 shlibpath_overrides_runpath=yes
9899 ;;
9900 esac
9901 else
9902 shlibpath_overrides_runpath=yes
9903 fi
9904 ;;
9905
9906os2*)
9907 libname_spec='$name'
9908 shrext_cmds=".dll"
9909 need_lib_prefix=no
9910 library_names_spec='$libname${shared_ext} $libname.a'
9911 dynamic_linker='OS/2 ld.exe'
9912 shlibpath_var=LIBPATH
9913 ;;
9914
9915osf3* | osf4* | osf5*)
9916 version_type=osf
9917 need_lib_prefix=no
9918 need_version=no
9919 soname_spec='${libname}${release}${shared_ext}$major'
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921 shlibpath_var=LD_LIBRARY_PATH
9922 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9923 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9924 ;;
9925
9926rdos*)
9927 dynamic_linker=no
9928 ;;
9929
9930solaris*)
9931 version_type=linux
9932 need_lib_prefix=no
9933 need_version=no
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935 soname_spec='${libname}${release}${shared_ext}$major'
9936 shlibpath_var=LD_LIBRARY_PATH
9937 shlibpath_overrides_runpath=yes
9938 hardcode_into_libs=yes
9939 # ldd complains unless libraries are executable
9940 postinstall_cmds='chmod +x $lib'
9941 ;;
9942
9943sunos4*)
9944 version_type=sunos
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9946 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9947 shlibpath_var=LD_LIBRARY_PATH
9948 shlibpath_overrides_runpath=yes
9949 if test "$with_gnu_ld" = yes; then
9950 need_lib_prefix=no
9951 fi
9952 need_version=yes
9953 ;;
9954
9955sysv4 | sysv4.3*)
9956 version_type=linux
9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958 soname_spec='${libname}${release}${shared_ext}$major'
9959 shlibpath_var=LD_LIBRARY_PATH
9960 case $host_vendor in
9961 sni)
9962 shlibpath_overrides_runpath=no
9963 need_lib_prefix=no
9964 runpath_var=LD_RUN_PATH
9965 ;;
9966 siemens)
9967 need_lib_prefix=no
9968 ;;
9969 motorola)
9970 need_lib_prefix=no
9971 need_version=no
9972 shlibpath_overrides_runpath=no
9973 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9974 ;;
9975 esac
9976 ;;
9977
9978sysv4*MP*)
9979 if test -d /usr/nec ;then
9980 version_type=linux
9981 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9982 soname_spec='$libname${shared_ext}.$major'
9983 shlibpath_var=LD_LIBRARY_PATH
9984 fi
9985 ;;
9986
9987sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9988 version_type=freebsd-elf
9989 need_lib_prefix=no
9990 need_version=no
9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9992 soname_spec='${libname}${release}${shared_ext}$major'
9993 shlibpath_var=LD_LIBRARY_PATH
9994 shlibpath_overrides_runpath=yes
9995 hardcode_into_libs=yes
9996 if test "$with_gnu_ld" = yes; then
9997 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9998 else
9999 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10000 case $host_os in
10001 sco3.2v5*)
10002 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10003 ;;
10004 esac
10005 fi
10006 sys_lib_dlsearch_path_spec='/usr/lib'
10007 ;;
10008
10009tpf*)
10010 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10011 version_type=linux
10012 need_lib_prefix=no
10013 need_version=no
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015 shlibpath_var=LD_LIBRARY_PATH
10016 shlibpath_overrides_runpath=no
10017 hardcode_into_libs=yes
10018 ;;
10019
10020uts4*)
10021 version_type=linux
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 shlibpath_var=LD_LIBRARY_PATH
10025 ;;
10026
10027*)
10028 dynamic_linker=no
10029 ;;
10030esac
10031{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10032$as_echo "$dynamic_linker" >&6; }
10033test "$dynamic_linker" = no && can_build_shared=no
10034
10035variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10036if test "$GCC" = yes; then
10037 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10038fi
10039
10040if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10041 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10042fi
10043if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10044 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10045fi
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10134$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10135hardcode_action=
10136if test -n "$hardcode_libdir_flag_spec" ||
10137 test -n "$runpath_var" ||
10138 test "X$hardcode_automatic" = "Xyes" ; then
10139
10140 # We can hardcode non-existent directories.
10141 if test "$hardcode_direct" != no &&
10142 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10143 # have to relink, otherwise we might link with an installed library
10144 # when we should be linking with a yet-to-be-installed one
10145 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10146 test "$hardcode_minus_L" != no; then
10147 # Linking always hardcodes the temporary library directory.
10148 hardcode_action=relink
10149 else
10150 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10151 hardcode_action=immediate
10152 fi
10153else
10154 # We cannot hardcode anything, or else we can only hardcode existing
10155 # directories.
10156 hardcode_action=unsupported
10157fi
10158{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10159$as_echo "$hardcode_action" >&6; }
10160
10161if test "$hardcode_action" = relink ||
10162 test "$inherit_rpath" = yes; then
10163 # Fast installation is not supported
10164 enable_fast_install=no
10165elif test "$shlibpath_overrides_runpath" = yes ||
10166 test "$enable_shared" = no; then
10167 # Fast installation is not necessary
10168 enable_fast_install=needless
10169fi
10170
10171
10172
10173
10174
10175
10176 if test "x$enable_dlopen" != xyes; then
10177 enable_dlopen=unknown
10178 enable_dlopen_self=unknown
10179 enable_dlopen_self_static=unknown
10180else
10181 lt_cv_dlopen=no
10182 lt_cv_dlopen_libs=
10183
10184 case $host_os in
10185 beos*)
10186 lt_cv_dlopen="load_add_on"
10187 lt_cv_dlopen_libs=
10188 lt_cv_dlopen_self=yes
10189 ;;
10190
10191 mingw* | pw32* | cegcc*)
10192 lt_cv_dlopen="LoadLibrary"
10193 lt_cv_dlopen_libs=
10194 ;;
10195
10196 cygwin*)
10197 lt_cv_dlopen="dlopen"
10198 lt_cv_dlopen_libs=
10199 ;;
10200
10201 darwin*)
10202 # if libdl is installed we need to link against it
10203 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10204$as_echo_n "checking for dlopen in -ldl... " >&6; }
10205if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10206 $as_echo_n "(cached) " >&6
10207else
10208 ac_check_lib_save_LIBS=$LIBS
10209LIBS="-ldl $LIBS"
10210cat >conftest.$ac_ext <<_ACEOF
10211/* confdefs.h. */
10212_ACEOF
10213cat confdefs.h >>conftest.$ac_ext
10214cat >>conftest.$ac_ext <<_ACEOF
10215/* end confdefs.h. */
10216
10217/* Override any GCC internal prototype to avoid an error.
10218 Use char because int might match the return type of a GCC
10219 builtin and then its argument prototype would still apply. */
10220#ifdef __cplusplus
10221extern "C"
10222#endif
10223char dlopen ();
10224int
10225main ()
10226{
10227return dlopen ();
10228 ;
10229 return 0;
10230}
10231_ACEOF
10232rm -f conftest.$ac_objext conftest$ac_exeext
10233if { (ac_try="$ac_link"
10234case "(($ac_try" in
10235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236 *) ac_try_echo=$ac_try;;
10237esac
10238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10239$as_echo "$ac_try_echo") >&5
10240 (eval "$ac_link") 2>conftest.er1
10241 ac_status=$?
10242 grep -v '^ *+' conftest.er1 >conftest.err
10243 rm -f conftest.er1
10244 cat conftest.err >&5
10245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } && {
10247 test -z "$ac_c_werror_flag" ||
10248 test ! -s conftest.err
10249 } && test -s conftest$ac_exeext && {
10250 test "$cross_compiling" = yes ||
10251 $as_test_x conftest$ac_exeext
10252 }; then
10253 ac_cv_lib_dl_dlopen=yes
10254else
10255 $as_echo "$as_me: failed program was:" >&5
10256sed 's/^/| /' conftest.$ac_ext >&5
10257
10258 ac_cv_lib_dl_dlopen=no
10259fi
10260
10261rm -rf conftest.dSYM
10262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10263 conftest$ac_exeext conftest.$ac_ext
10264LIBS=$ac_check_lib_save_LIBS
10265fi
10266{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10267$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10268if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10270else
10271
10272 lt_cv_dlopen="dyld"
10273 lt_cv_dlopen_libs=
10274 lt_cv_dlopen_self=yes
10275
10276fi
10277
10278 ;;
10279
10280 *)
10281 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10282$as_echo_n "checking for shl_load... " >&6; }
10283if test "${ac_cv_func_shl_load+set}" = set; then
10284 $as_echo_n "(cached) " >&6
10285else
10286 cat >conftest.$ac_ext <<_ACEOF
10287/* confdefs.h. */
10288_ACEOF
10289cat confdefs.h >>conftest.$ac_ext
10290cat >>conftest.$ac_ext <<_ACEOF
10291/* end confdefs.h. */
10292/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10294#define shl_load innocuous_shl_load
10295
10296/* System header to define __stub macros and hopefully few prototypes,
10297 which can conflict with char shl_load (); below.
10298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10299 <limits.h> exists even on freestanding compilers. */
10300
10301#ifdef __STDC__
10302# include <limits.h>
10303#else
10304# include <assert.h>
10305#endif
10306
10307#undef shl_load
10308
10309/* Override any GCC internal prototype to avoid an error.
10310 Use char because int might match the return type of a GCC
10311 builtin and then its argument prototype would still apply. */
10312#ifdef __cplusplus
10313extern "C"
10314#endif
10315char shl_load ();
10316/* The GNU C library defines this for functions which it implements
10317 to always fail with ENOSYS. Some functions are actually named
10318 something starting with __ and the normal name is an alias. */
10319#if defined __stub_shl_load || defined __stub___shl_load
10320choke me
10321#endif
10322
10323int
10324main ()
10325{
10326return shl_load ();
10327 ;
10328 return 0;
10329}
10330_ACEOF
10331rm -f conftest.$ac_objext conftest$ac_exeext
10332if { (ac_try="$ac_link"
10333case "(($ac_try" in
10334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335 *) ac_try_echo=$ac_try;;
10336esac
10337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10338$as_echo "$ac_try_echo") >&5
10339 (eval "$ac_link") 2>conftest.er1
10340 ac_status=$?
10341 grep -v '^ *+' conftest.er1 >conftest.err
10342 rm -f conftest.er1
10343 cat conftest.err >&5
10344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } && {
10346 test -z "$ac_c_werror_flag" ||
10347 test ! -s conftest.err
10348 } && test -s conftest$ac_exeext && {
10349 test "$cross_compiling" = yes ||
10350 $as_test_x conftest$ac_exeext
10351 }; then
10352 ac_cv_func_shl_load=yes
10353else
10354 $as_echo "$as_me: failed program was:" >&5
10355sed 's/^/| /' conftest.$ac_ext >&5
10356
10357 ac_cv_func_shl_load=no
10358fi
10359
10360rm -rf conftest.dSYM
10361rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10362 conftest$ac_exeext conftest.$ac_ext
10363fi
10364{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10365$as_echo "$ac_cv_func_shl_load" >&6; }
10366if test "x$ac_cv_func_shl_load" = x""yes; then
10367 lt_cv_dlopen="shl_load"
10368else
10369 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10370$as_echo_n "checking for shl_load in -ldld... " >&6; }
10371if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10372 $as_echo_n "(cached) " >&6
10373else
10374 ac_check_lib_save_LIBS=$LIBS
10375LIBS="-ldld $LIBS"
10376cat >conftest.$ac_ext <<_ACEOF
10377/* confdefs.h. */
10378_ACEOF
10379cat confdefs.h >>conftest.$ac_ext
10380cat >>conftest.$ac_ext <<_ACEOF
10381/* end confdefs.h. */
10382
10383/* Override any GCC internal prototype to avoid an error.
10384 Use char because int might match the return type of a GCC
10385 builtin and then its argument prototype would still apply. */
10386#ifdef __cplusplus
10387extern "C"
10388#endif
10389char shl_load ();
10390int
10391main ()
10392{
10393return shl_load ();
10394 ;
10395 return 0;
10396}
10397_ACEOF
10398rm -f conftest.$ac_objext conftest$ac_exeext
10399if { (ac_try="$ac_link"
10400case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10403esac
10404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10405$as_echo "$ac_try_echo") >&5
10406 (eval "$ac_link") 2>conftest.er1
10407 ac_status=$?
10408 grep -v '^ *+' conftest.er1 >conftest.err
10409 rm -f conftest.er1
10410 cat conftest.err >&5
10411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); } && {
10413 test -z "$ac_c_werror_flag" ||
10414 test ! -s conftest.err
10415 } && test -s conftest$ac_exeext && {
10416 test "$cross_compiling" = yes ||
10417 $as_test_x conftest$ac_exeext
10418 }; then
10419 ac_cv_lib_dld_shl_load=yes
10420else
10421 $as_echo "$as_me: failed program was:" >&5
10422sed 's/^/| /' conftest.$ac_ext >&5
10423
10424 ac_cv_lib_dld_shl_load=no
10425fi
10426
10427rm -rf conftest.dSYM
10428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10429 conftest$ac_exeext conftest.$ac_ext
10430LIBS=$ac_check_lib_save_LIBS
10431fi
10432{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10433$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10434if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10435 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10436else
10437 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10438$as_echo_n "checking for dlopen... " >&6; }
10439if test "${ac_cv_func_dlopen+set}" = set; then
10440 $as_echo_n "(cached) " >&6
10441else
10442 cat >conftest.$ac_ext <<_ACEOF
10443/* confdefs.h. */
10444_ACEOF
10445cat confdefs.h >>conftest.$ac_ext
10446cat >>conftest.$ac_ext <<_ACEOF
10447/* end confdefs.h. */
10448/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10450#define dlopen innocuous_dlopen
10451
10452/* System header to define __stub macros and hopefully few prototypes,
10453 which can conflict with char dlopen (); below.
10454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10455 <limits.h> exists even on freestanding compilers. */
10456
10457#ifdef __STDC__
10458# include <limits.h>
10459#else
10460# include <assert.h>
10461#endif
10462
10463#undef dlopen
10464
10465/* Override any GCC internal prototype to avoid an error.
10466 Use char because int might match the return type of a GCC
10467 builtin and then its argument prototype would still apply. */
10468#ifdef __cplusplus
10469extern "C"
10470#endif
10471char dlopen ();
10472/* The GNU C library defines this for functions which it implements
10473 to always fail with ENOSYS. Some functions are actually named
10474 something starting with __ and the normal name is an alias. */
10475#if defined __stub_dlopen || defined __stub___dlopen
10476choke me
10477#endif
10478
10479int
10480main ()
10481{
10482return dlopen ();
10483 ;
10484 return 0;
10485}
10486_ACEOF
10487rm -f conftest.$ac_objext conftest$ac_exeext
10488if { (ac_try="$ac_link"
10489case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10492esac
10493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10494$as_echo "$ac_try_echo") >&5
10495 (eval "$ac_link") 2>conftest.er1
10496 ac_status=$?
10497 grep -v '^ *+' conftest.er1 >conftest.err
10498 rm -f conftest.er1
10499 cat conftest.err >&5
10500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } && {
10502 test -z "$ac_c_werror_flag" ||
10503 test ! -s conftest.err
10504 } && test -s conftest$ac_exeext && {
10505 test "$cross_compiling" = yes ||
10506 $as_test_x conftest$ac_exeext
10507 }; then
10508 ac_cv_func_dlopen=yes
10509else
10510 $as_echo "$as_me: failed program was:" >&5
10511sed 's/^/| /' conftest.$ac_ext >&5
10512
10513 ac_cv_func_dlopen=no
10514fi
10515
10516rm -rf conftest.dSYM
10517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10518 conftest$ac_exeext conftest.$ac_ext
10519fi
10520{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10521$as_echo "$ac_cv_func_dlopen" >&6; }
10522if test "x$ac_cv_func_dlopen" = x""yes; then
10523 lt_cv_dlopen="dlopen"
10524else
10525 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10526$as_echo_n "checking for dlopen in -ldl... " >&6; }
10527if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10528 $as_echo_n "(cached) " >&6
10529else
10530 ac_check_lib_save_LIBS=$LIBS
10531LIBS="-ldl $LIBS"
10532cat >conftest.$ac_ext <<_ACEOF
10533/* confdefs.h. */
10534_ACEOF
10535cat confdefs.h >>conftest.$ac_ext
10536cat >>conftest.$ac_ext <<_ACEOF
10537/* end confdefs.h. */
10538
10539/* Override any GCC internal prototype to avoid an error.
10540 Use char because int might match the return type of a GCC
10541 builtin and then its argument prototype would still apply. */
10542#ifdef __cplusplus
10543extern "C"
10544#endif
10545char dlopen ();
10546int
10547main ()
10548{
10549return dlopen ();
10550 ;
10551 return 0;
10552}
10553_ACEOF
10554rm -f conftest.$ac_objext conftest$ac_exeext
10555if { (ac_try="$ac_link"
10556case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10559esac
10560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10561$as_echo "$ac_try_echo") >&5
10562 (eval "$ac_link") 2>conftest.er1
10563 ac_status=$?
10564 grep -v '^ *+' conftest.er1 >conftest.err
10565 rm -f conftest.er1
10566 cat conftest.err >&5
10567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } && {
10569 test -z "$ac_c_werror_flag" ||
10570 test ! -s conftest.err
10571 } && test -s conftest$ac_exeext && {
10572 test "$cross_compiling" = yes ||
10573 $as_test_x conftest$ac_exeext
10574 }; then
10575 ac_cv_lib_dl_dlopen=yes
10576else
10577 $as_echo "$as_me: failed program was:" >&5
10578sed 's/^/| /' conftest.$ac_ext >&5
10579
10580 ac_cv_lib_dl_dlopen=no
10581fi
10582
10583rm -rf conftest.dSYM
10584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10585 conftest$ac_exeext conftest.$ac_ext
10586LIBS=$ac_check_lib_save_LIBS
10587fi
10588{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10589$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10590if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10591 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10592else
10593 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10594$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10595if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10596 $as_echo_n "(cached) " >&6
10597else
10598 ac_check_lib_save_LIBS=$LIBS
10599LIBS="-lsvld $LIBS"
10600cat >conftest.$ac_ext <<_ACEOF
10601/* confdefs.h. */
10602_ACEOF
10603cat confdefs.h >>conftest.$ac_ext
10604cat >>conftest.$ac_ext <<_ACEOF
10605/* end confdefs.h. */
10606
10607/* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply. */
10610#ifdef __cplusplus
10611extern "C"
10612#endif
10613char dlopen ();
10614int
10615main ()
10616{
10617return dlopen ();
10618 ;
10619 return 0;
10620}
10621_ACEOF
10622rm -f conftest.$ac_objext conftest$ac_exeext
10623if { (ac_try="$ac_link"
10624case "(($ac_try" in
10625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626 *) ac_try_echo=$ac_try;;
10627esac
10628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10629$as_echo "$ac_try_echo") >&5
10630 (eval "$ac_link") 2>conftest.er1
10631 ac_status=$?
10632 grep -v '^ *+' conftest.er1 >conftest.err
10633 rm -f conftest.er1
10634 cat conftest.err >&5
10635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } && {
10637 test -z "$ac_c_werror_flag" ||
10638 test ! -s conftest.err
10639 } && test -s conftest$ac_exeext && {
10640 test "$cross_compiling" = yes ||
10641 $as_test_x conftest$ac_exeext
10642 }; then
10643 ac_cv_lib_svld_dlopen=yes
10644else
10645 $as_echo "$as_me: failed program was:" >&5
10646sed 's/^/| /' conftest.$ac_ext >&5
10647
10648 ac_cv_lib_svld_dlopen=no
10649fi
10650
10651rm -rf conftest.dSYM
10652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10653 conftest$ac_exeext conftest.$ac_ext
10654LIBS=$ac_check_lib_save_LIBS
10655fi
10656{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10657$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10658if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10659 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10660else
10661 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10662$as_echo_n "checking for dld_link in -ldld... " >&6; }
10663if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10664 $as_echo_n "(cached) " >&6
10665else
10666 ac_check_lib_save_LIBS=$LIBS
10667LIBS="-ldld $LIBS"
10668cat >conftest.$ac_ext <<_ACEOF
10669/* confdefs.h. */
10670_ACEOF
10671cat confdefs.h >>conftest.$ac_ext
10672cat >>conftest.$ac_ext <<_ACEOF
10673/* end confdefs.h. */
10674
10675/* Override any GCC internal prototype to avoid an error.
10676 Use char because int might match the return type of a GCC
10677 builtin and then its argument prototype would still apply. */
10678#ifdef __cplusplus
10679extern "C"
10680#endif
10681char dld_link ();
10682int
10683main ()
10684{
10685return dld_link ();
10686 ;
10687 return 0;
10688}
10689_ACEOF
10690rm -f conftest.$ac_objext conftest$ac_exeext
10691if { (ac_try="$ac_link"
10692case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10695esac
10696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10697$as_echo "$ac_try_echo") >&5
10698 (eval "$ac_link") 2>conftest.er1
10699 ac_status=$?
10700 grep -v '^ *+' conftest.er1 >conftest.err
10701 rm -f conftest.er1
10702 cat conftest.err >&5
10703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } && {
10705 test -z "$ac_c_werror_flag" ||
10706 test ! -s conftest.err
10707 } && test -s conftest$ac_exeext && {
10708 test "$cross_compiling" = yes ||
10709 $as_test_x conftest$ac_exeext
10710 }; then
10711 ac_cv_lib_dld_dld_link=yes
10712else
10713 $as_echo "$as_me: failed program was:" >&5
10714sed 's/^/| /' conftest.$ac_ext >&5
10715
10716 ac_cv_lib_dld_dld_link=no
10717fi
10718
10719rm -rf conftest.dSYM
10720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10721 conftest$ac_exeext conftest.$ac_ext
10722LIBS=$ac_check_lib_save_LIBS
10723fi
10724{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10725$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10726if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10727 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10728fi
10729
10730
10731fi
10732
10733
10734fi
10735
10736
10737fi
10738
10739
10740fi
10741
10742
10743fi
10744
10745 ;;
10746 esac
10747
10748 if test "x$lt_cv_dlopen" != xno; then
10749 enable_dlopen=yes
10750 else
10751 enable_dlopen=no
10752 fi
10753
10754 case $lt_cv_dlopen in
10755 dlopen)
10756 save_CPPFLAGS="$CPPFLAGS"
10757 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10758
10759 save_LDFLAGS="$LDFLAGS"
10760 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10761
10762 save_LIBS="$LIBS"
10763 LIBS="$lt_cv_dlopen_libs $LIBS"
10764
10765 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10766$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10767if test "${lt_cv_dlopen_self+set}" = set; then
10768 $as_echo_n "(cached) " >&6
10769else
10770 if test "$cross_compiling" = yes; then :
10771 lt_cv_dlopen_self=cross
10772else
10773 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10774 lt_status=$lt_dlunknown
10775 cat > conftest.$ac_ext <<_LT_EOF
10776#line 10776 "configure"
10777#include "confdefs.h"
10778
10779#if HAVE_DLFCN_H
10780#include <dlfcn.h>
10781#endif
10782
10783#include <stdio.h>
10784
10785#ifdef RTLD_GLOBAL
10786# define LT_DLGLOBAL RTLD_GLOBAL
10787#else
10788# ifdef DL_GLOBAL
10789# define LT_DLGLOBAL DL_GLOBAL
10790# else
10791# define LT_DLGLOBAL 0
10792# endif
10793#endif
10794
10795/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10796 find out it does not work in some platform. */
10797#ifndef LT_DLLAZY_OR_NOW
10798# ifdef RTLD_LAZY
10799# define LT_DLLAZY_OR_NOW RTLD_LAZY
10800# else
10801# ifdef DL_LAZY
10802# define LT_DLLAZY_OR_NOW DL_LAZY
10803# else
10804# ifdef RTLD_NOW
10805# define LT_DLLAZY_OR_NOW RTLD_NOW
10806# else
10807# ifdef DL_NOW
10808# define LT_DLLAZY_OR_NOW DL_NOW
10809# else
10810# define LT_DLLAZY_OR_NOW 0
10811# endif
10812# endif
10813# endif
10814# endif
10815#endif
10816
10817void fnord() { int i=42;}
10818int main ()
10819{
10820 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10821 int status = $lt_dlunknown;
10822
10823 if (self)
10824 {
10825 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10826 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10827 /* dlclose (self); */
10828 }
10829 else
10830 puts (dlerror ());
10831
10832 return status;
10833}
10834_LT_EOF
10835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10836 (eval $ac_link) 2>&5
10837 ac_status=$?
10838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10840 (./conftest; exit; ) >&5 2>/dev/null
10841 lt_status=$?
10842 case x$lt_status in
10843 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10844 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10845 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10846 esac
10847 else :
10848 # compilation failed
10849 lt_cv_dlopen_self=no
10850 fi
10851fi
10852rm -fr conftest*
10853
10854
10855fi
10856{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10857$as_echo "$lt_cv_dlopen_self" >&6; }
10858
10859 if test "x$lt_cv_dlopen_self" = xyes; then
10860 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10861 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10862$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10863if test "${lt_cv_dlopen_self_static+set}" = set; then
10864 $as_echo_n "(cached) " >&6
10865else
10866 if test "$cross_compiling" = yes; then :
10867 lt_cv_dlopen_self_static=cross
10868else
10869 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10870 lt_status=$lt_dlunknown
10871 cat > conftest.$ac_ext <<_LT_EOF
10872#line 10872 "configure"
10873#include "confdefs.h"
10874
10875#if HAVE_DLFCN_H
10876#include <dlfcn.h>
10877#endif
10878
10879#include <stdio.h>
10880
10881#ifdef RTLD_GLOBAL
10882# define LT_DLGLOBAL RTLD_GLOBAL
10883#else
10884# ifdef DL_GLOBAL
10885# define LT_DLGLOBAL DL_GLOBAL
10886# else
10887# define LT_DLGLOBAL 0
10888# endif
10889#endif
10890
10891/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10892 find out it does not work in some platform. */
10893#ifndef LT_DLLAZY_OR_NOW
10894# ifdef RTLD_LAZY
10895# define LT_DLLAZY_OR_NOW RTLD_LAZY
10896# else
10897# ifdef DL_LAZY
10898# define LT_DLLAZY_OR_NOW DL_LAZY
10899# else
10900# ifdef RTLD_NOW
10901# define LT_DLLAZY_OR_NOW RTLD_NOW
10902# else
10903# ifdef DL_NOW
10904# define LT_DLLAZY_OR_NOW DL_NOW
10905# else
10906# define LT_DLLAZY_OR_NOW 0
10907# endif
10908# endif
10909# endif
10910# endif
10911#endif
10912
10913void fnord() { int i=42;}
10914int main ()
10915{
10916 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10917 int status = $lt_dlunknown;
10918
10919 if (self)
10920 {
10921 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10922 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10923 /* dlclose (self); */
10924 }
10925 else
10926 puts (dlerror ());
10927
10928 return status;
10929}
10930_LT_EOF
10931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10932 (eval $ac_link) 2>&5
10933 ac_status=$?
10934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10936 (./conftest; exit; ) >&5 2>/dev/null
10937 lt_status=$?
10938 case x$lt_status in
10939 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10940 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10941 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10942 esac
10943 else :
10944 # compilation failed
10945 lt_cv_dlopen_self_static=no
10946 fi
10947fi
10948rm -fr conftest*
10949
10950
10951fi
10952{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10953$as_echo "$lt_cv_dlopen_self_static" >&6; }
10954 fi
10955
10956 CPPFLAGS="$save_CPPFLAGS"
10957 LDFLAGS="$save_LDFLAGS"
10958 LIBS="$save_LIBS"
10959 ;;
10960 esac
10961
10962 case $lt_cv_dlopen_self in
10963 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10964 *) enable_dlopen_self=unknown ;;
10965 esac
10966
10967 case $lt_cv_dlopen_self_static in
10968 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10969 *) enable_dlopen_self_static=unknown ;;
10970 esac
10971fi
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989striplib=
10990old_striplib=
10991{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10992$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10993if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10994 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10995 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10996 { $as_echo "$as_me:$LINENO: result: yes" >&5
10997$as_echo "yes" >&6; }
10998else
10999# FIXME - insert some real tests, host_os isn't really good enough
11000 case $host_os in
11001 darwin*)
11002 if test -n "$STRIP" ; then
11003 striplib="$STRIP -x"
11004 old_striplib="$STRIP -S"
11005 { $as_echo "$as_me:$LINENO: result: yes" >&5
11006$as_echo "yes" >&6; }
11007 else
11008 { $as_echo "$as_me:$LINENO: result: no" >&5
11009$as_echo "no" >&6; }
11010 fi
11011 ;;
11012 *)
11013 { $as_echo "$as_me:$LINENO: result: no" >&5
11014$as_echo "no" >&6; }
11015 ;;
11016 esac
11017fi
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030 # Report which library types will actually be built
11031 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11032$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11033 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11034$as_echo "$can_build_shared" >&6; }
11035
11036 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11037$as_echo_n "checking whether to build shared libraries... " >&6; }
11038 test "$can_build_shared" = "no" && enable_shared=no
11039
11040 # On AIX, shared libraries and static libraries use the same namespace, and
11041 # are all built from PIC.
11042 case $host_os in
11043 aix3*)
11044 test "$enable_shared" = yes && enable_static=no
11045 if test -n "$RANLIB"; then
11046 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11047 postinstall_cmds='$RANLIB $lib'
11048 fi
11049 ;;
11050
11051 aix[4-9]*)
11052 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11053 test "$enable_shared" = yes && enable_static=no
11054 fi
11055 ;;
11056 esac
11057 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11058$as_echo "$enable_shared" >&6; }
11059
11060 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11061$as_echo_n "checking whether to build static libraries... " >&6; }
11062 # Make sure either enable_shared or enable_static is yes.
11063 test "$enable_shared" = yes || enable_static=yes
11064 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11065$as_echo "$enable_static" >&6; }
11066
11067
11068
11069
11070fi
11071ac_ext=c
11072ac_cpp='$CPP $CPPFLAGS'
11073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11075ac_compiler_gnu=$ac_cv_c_compiler_gnu
11076
11077CC="$lt_save_CC"
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091 ac_config_commands="$ac_config_commands libtool"
11092
11093
11094
11095
11096# Only expand once:
11097
11098
11099# Find a good install program. We prefer a C program (faster),
11100# so one script is as good as another. But avoid the broken or
11101# incompatible versions:
11102# SysV /etc/install, /usr/sbin/install
11103# SunOS /usr/etc/install
11104# IRIX /sbin/install
11105# AIX /bin/install
11106# AmigaOS /C/install, which installs bootblocks on floppy discs
11107# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11108# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11109# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11110# OS/2's system install, which has a completely different semantic
11111# ./install, which can be erroneously created by make from ./install.sh.
11112# Reject install programs that cannot install multiple files.
11113{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11114$as_echo_n "checking for a BSD-compatible install... " >&6; }
11115if test -z "$INSTALL"; then
11116if test "${ac_cv_path_install+set}" = set; then
11117 $as_echo_n "(cached) " >&6
11118else
11119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11120for as_dir in $PATH
11121do
11122 IFS=$as_save_IFS
11123 test -z "$as_dir" && as_dir=.
11124 # Account for people who put trailing slashes in PATH elements.
11125case $as_dir/ in
11126 ./ | .// | /cC/* | \
11127 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11128 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11129 /usr/ucb/* ) ;;
11130 *)
11131 # OSF1 and SCO ODT 3.0 have their own names for install.
11132 # Don't use installbsd from OSF since it installs stuff as root
11133 # by default.
11134 for ac_prog in ginstall scoinst install; do
11135 for ac_exec_ext in '' $ac_executable_extensions; do
11136 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11137 if test $ac_prog = install &&
11138 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11139 # AIX install. It has an incompatible calling convention.
11140 :
11141 elif test $ac_prog = install &&
11142 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11143 # program-specific install script used by HP pwplus--don't use.
11144 :
11145 else
11146 rm -rf conftest.one conftest.two conftest.dir
11147 echo one > conftest.one
11148 echo two > conftest.two
11149 mkdir conftest.dir
11150 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11151 test -s conftest.one && test -s conftest.two &&
11152 test -s conftest.dir/conftest.one &&
11153 test -s conftest.dir/conftest.two
11154 then
11155 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11156 break 3
11157 fi
11158 fi
11159 fi
11160 done
11161 done
11162 ;;
11163esac
11164
11165done
11166IFS=$as_save_IFS
11167
11168rm -rf conftest.one conftest.two conftest.dir
11169
11170fi
11171 if test "${ac_cv_path_install+set}" = set; then
11172 INSTALL=$ac_cv_path_install
11173 else
11174 # As a last resort, use the slow shell script. Don't cache a
11175 # value for INSTALL within a source directory, because that will
11176 # break other packages using the cache if that directory is
11177 # removed, or if the value is a relative name.
11178 INSTALL=$ac_install_sh
11179 fi
11180fi
11181{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
11182$as_echo "$INSTALL" >&6; }
11183
11184# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11185# It thinks the first close brace ends the variable substitution.
11186test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11187
11188test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11189
11190test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11191
11192{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
11193$as_echo_n "checking whether ln -s works... " >&6; }
11194LN_S=$as_ln_s
11195if test "$LN_S" = "ln -s"; then
11196 { $as_echo "$as_me:$LINENO: result: yes" >&5
11197$as_echo "yes" >&6; }
11198else
11199 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11200$as_echo "no, using $LN_S" >&6; }
11201fi
11202
11203ac_ext=c
11204ac_cpp='$CPP $CPPFLAGS'
11205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11207ac_compiler_gnu=$ac_cv_c_compiler_gnu
11208if test -n "$ac_tool_prefix"; then
11209 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11210set dummy ${ac_tool_prefix}gcc; ac_word=$2
11211{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11212$as_echo_n "checking for $ac_word... " >&6; }
11213if test "${ac_cv_prog_CC+set}" = set; then
11214 $as_echo_n "(cached) " >&6
11215else
11216 if test -n "$CC"; then
11217 ac_cv_prog_CC="$CC" # Let the user override the test.
11218else
11219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220for as_dir in $PATH
11221do
11222 IFS=$as_save_IFS
11223 test -z "$as_dir" && as_dir=.
11224 for ac_exec_ext in '' $ac_executable_extensions; do
11225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11226 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11228 break 2
11229 fi
11230done
11231done
11232IFS=$as_save_IFS
11233
11234fi
11235fi
11236CC=$ac_cv_prog_CC
11237if test -n "$CC"; then
11238 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11239$as_echo "$CC" >&6; }
11240else
11241 { $as_echo "$as_me:$LINENO: result: no" >&5
11242$as_echo "no" >&6; }
11243fi
11244
11245
11246fi
11247if test -z "$ac_cv_prog_CC"; then
11248 ac_ct_CC=$CC
11249 # Extract the first word of "gcc", so it can be a program name with args.
11250set dummy gcc; ac_word=$2
11251{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11252$as_echo_n "checking for $ac_word... " >&6; }
11253if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11254 $as_echo_n "(cached) " >&6
11255else
11256 if test -n "$ac_ct_CC"; then
11257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11258else
11259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260for as_dir in $PATH
11261do
11262 IFS=$as_save_IFS
11263 test -z "$as_dir" && as_dir=.
11264 for ac_exec_ext in '' $ac_executable_extensions; do
11265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11266 ac_cv_prog_ac_ct_CC="gcc"
11267 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11268 break 2
11269 fi
11270done
11271done
11272IFS=$as_save_IFS
11273
11274fi
11275fi
11276ac_ct_CC=$ac_cv_prog_ac_ct_CC
11277if test -n "$ac_ct_CC"; then
11278 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11279$as_echo "$ac_ct_CC" >&6; }
11280else
11281 { $as_echo "$as_me:$LINENO: result: no" >&5
11282$as_echo "no" >&6; }
11283fi
11284
11285 if test "x$ac_ct_CC" = x; then
11286 CC=""
11287 else
11288 case $cross_compiling:$ac_tool_warned in
11289yes:)
11290{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11292ac_tool_warned=yes ;;
11293esac
11294 CC=$ac_ct_CC
11295 fi
11296else
11297 CC="$ac_cv_prog_CC"
11298fi
11299
11300if test -z "$CC"; then
11301 if test -n "$ac_tool_prefix"; then
11302 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11303set dummy ${ac_tool_prefix}cc; ac_word=$2
11304{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11305$as_echo_n "checking for $ac_word... " >&6; }
11306if test "${ac_cv_prog_CC+set}" = set; then
11307 $as_echo_n "(cached) " >&6
11308else
11309 if test -n "$CC"; then
11310 ac_cv_prog_CC="$CC" # Let the user override the test.
11311else
11312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313for as_dir in $PATH
11314do
11315 IFS=$as_save_IFS
11316 test -z "$as_dir" && as_dir=.
11317 for ac_exec_ext in '' $ac_executable_extensions; do
11318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11319 ac_cv_prog_CC="${ac_tool_prefix}cc"
11320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11321 break 2
11322 fi
11323done
11324done
11325IFS=$as_save_IFS
11326
11327fi
11328fi
11329CC=$ac_cv_prog_CC
11330if test -n "$CC"; then
11331 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11332$as_echo "$CC" >&6; }
11333else
11334 { $as_echo "$as_me:$LINENO: result: no" >&5
11335$as_echo "no" >&6; }
11336fi
11337
11338
11339 fi
11340fi
11341if test -z "$CC"; then
11342 # Extract the first word of "cc", so it can be a program name with args.
11343set dummy cc; ac_word=$2
11344{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11345$as_echo_n "checking for $ac_word... " >&6; }
11346if test "${ac_cv_prog_CC+set}" = set; then
11347 $as_echo_n "(cached) " >&6
11348else
11349 if test -n "$CC"; then
11350 ac_cv_prog_CC="$CC" # Let the user override the test.
11351else
11352 ac_prog_rejected=no
11353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11354for as_dir in $PATH
11355do
11356 IFS=$as_save_IFS
11357 test -z "$as_dir" && as_dir=.
11358 for ac_exec_ext in '' $ac_executable_extensions; do
11359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11360 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11361 ac_prog_rejected=yes
11362 continue
11363 fi
11364 ac_cv_prog_CC="cc"
11365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11366 break 2
11367 fi
11368done
11369done
11370IFS=$as_save_IFS
11371
11372if test $ac_prog_rejected = yes; then
11373 # We found a bogon in the path, so make sure we never use it.
11374 set dummy $ac_cv_prog_CC
11375 shift
11376 if test $# != 0; then
11377 # We chose a different compiler from the bogus one.
11378 # However, it has the same basename, so the bogon will be chosen
11379 # first if we set CC to just the basename; use the full file name.
11380 shift
11381 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11382 fi
11383fi
11384fi
11385fi
11386CC=$ac_cv_prog_CC
11387if test -n "$CC"; then
11388 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11389$as_echo "$CC" >&6; }
11390else
11391 { $as_echo "$as_me:$LINENO: result: no" >&5
11392$as_echo "no" >&6; }
11393fi
11394
11395
11396fi
11397if test -z "$CC"; then
11398 if test -n "$ac_tool_prefix"; then
11399 for ac_prog in cl.exe
11400 do
11401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11402set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11403{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11404$as_echo_n "checking for $ac_word... " >&6; }
11405if test "${ac_cv_prog_CC+set}" = set; then
11406 $as_echo_n "(cached) " >&6
11407else
11408 if test -n "$CC"; then
11409 ac_cv_prog_CC="$CC" # Let the user override the test.
11410else
11411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412for as_dir in $PATH
11413do
11414 IFS=$as_save_IFS
11415 test -z "$as_dir" && as_dir=.
11416 for ac_exec_ext in '' $ac_executable_extensions; do
11417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11418 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11420 break 2
11421 fi
11422done
11423done
11424IFS=$as_save_IFS
11425
11426fi
11427fi
11428CC=$ac_cv_prog_CC
11429if test -n "$CC"; then
11430 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11431$as_echo "$CC" >&6; }
11432else
11433 { $as_echo "$as_me:$LINENO: result: no" >&5
11434$as_echo "no" >&6; }
11435fi
11436
11437
11438 test -n "$CC" && break
11439 done
11440fi
11441if test -z "$CC"; then
11442 ac_ct_CC=$CC
11443 for ac_prog in cl.exe
11444do
11445 # Extract the first word of "$ac_prog", so it can be a program name with args.
11446set dummy $ac_prog; ac_word=$2
11447{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11448$as_echo_n "checking for $ac_word... " >&6; }
11449if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11450 $as_echo_n "(cached) " >&6
11451else
11452 if test -n "$ac_ct_CC"; then
11453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11454else
11455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11456for as_dir in $PATH
11457do
11458 IFS=$as_save_IFS
11459 test -z "$as_dir" && as_dir=.
11460 for ac_exec_ext in '' $ac_executable_extensions; do
11461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11462 ac_cv_prog_ac_ct_CC="$ac_prog"
11463 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11464 break 2
11465 fi
11466done
11467done
11468IFS=$as_save_IFS
11469
11470fi
11471fi
11472ac_ct_CC=$ac_cv_prog_ac_ct_CC
11473if test -n "$ac_ct_CC"; then
11474 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11475$as_echo "$ac_ct_CC" >&6; }
11476else
11477 { $as_echo "$as_me:$LINENO: result: no" >&5
11478$as_echo "no" >&6; }
11479fi
11480
11481
11482 test -n "$ac_ct_CC" && break
11483done
11484
11485 if test "x$ac_ct_CC" = x; then
11486 CC=""
11487 else
11488 case $cross_compiling:$ac_tool_warned in
11489yes:)
11490{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11492ac_tool_warned=yes ;;
11493esac
11494 CC=$ac_ct_CC
11495 fi
11496fi
11497
11498fi
11499
11500
11501test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11503{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11504See \`config.log' for more details." >&5
11505$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11506See \`config.log' for more details." >&2;}
11507 { (exit 1); exit 1; }; }; }
11508
11509# Provide some information about the compiler.
11510$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11511set X $ac_compile
11512ac_compiler=$2
11513{ (ac_try="$ac_compiler --version >&5"
11514case "(($ac_try" in
11515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11516 *) ac_try_echo=$ac_try;;
11517esac
11518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11519$as_echo "$ac_try_echo") >&5
11520 (eval "$ac_compiler --version >&5") 2>&5
11521 ac_status=$?
11522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }
11524{ (ac_try="$ac_compiler -v >&5"
11525case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11528esac
11529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11530$as_echo "$ac_try_echo") >&5
11531 (eval "$ac_compiler -v >&5") 2>&5
11532 ac_status=$?
11533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }
11535{ (ac_try="$ac_compiler -V >&5"
11536case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11539esac
11540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11541$as_echo "$ac_try_echo") >&5
11542 (eval "$ac_compiler -V >&5") 2>&5
11543 ac_status=$?
11544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }
11546
11547{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11548$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11549if test "${ac_cv_c_compiler_gnu+set}" = set; then
11550 $as_echo_n "(cached) " >&6
11551else
11552 cat >conftest.$ac_ext <<_ACEOF
11553/* confdefs.h. */
11554_ACEOF
11555cat confdefs.h >>conftest.$ac_ext
11556cat >>conftest.$ac_ext <<_ACEOF
11557/* end confdefs.h. */
11558
11559int
11560main ()
11561{
11562#ifndef __GNUC__
11563 choke me
11564#endif
11565
11566 ;
11567 return 0;
11568}
11569_ACEOF
11570rm -f conftest.$ac_objext
11571if { (ac_try="$ac_compile"
11572case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11575esac
11576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11577$as_echo "$ac_try_echo") >&5
11578 (eval "$ac_compile") 2>conftest.er1
11579 ac_status=$?
11580 grep -v '^ *+' conftest.er1 >conftest.err
11581 rm -f conftest.er1
11582 cat conftest.err >&5
11583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } && {
11585 test -z "$ac_c_werror_flag" ||
11586 test ! -s conftest.err
11587 } && test -s conftest.$ac_objext; then
11588 ac_compiler_gnu=yes
11589else
11590 $as_echo "$as_me: failed program was:" >&5
11591sed 's/^/| /' conftest.$ac_ext >&5
11592
11593 ac_compiler_gnu=no
11594fi
11595
11596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11597ac_cv_c_compiler_gnu=$ac_compiler_gnu
11598
11599fi
11600{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11601$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11602if test $ac_compiler_gnu = yes; then
11603 GCC=yes
11604else
11605 GCC=
11606fi
11607ac_test_CFLAGS=${CFLAGS+set}
11608ac_save_CFLAGS=$CFLAGS
11609{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11610$as_echo_n "checking whether $CC accepts -g... " >&6; }
11611if test "${ac_cv_prog_cc_g+set}" = set; then
11612 $as_echo_n "(cached) " >&6
11613else
11614 ac_save_c_werror_flag=$ac_c_werror_flag
11615 ac_c_werror_flag=yes
11616 ac_cv_prog_cc_g=no
11617 CFLAGS="-g"
11618 cat >conftest.$ac_ext <<_ACEOF
11619/* confdefs.h. */
11620_ACEOF
11621cat confdefs.h >>conftest.$ac_ext
11622cat >>conftest.$ac_ext <<_ACEOF
11623/* end confdefs.h. */
11624
11625int
11626main ()
11627{
11628
11629 ;
11630 return 0;
11631}
11632_ACEOF
11633rm -f conftest.$ac_objext
11634if { (ac_try="$ac_compile"
11635case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11638esac
11639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11640$as_echo "$ac_try_echo") >&5
11641 (eval "$ac_compile") 2>conftest.er1
11642 ac_status=$?
11643 grep -v '^ *+' conftest.er1 >conftest.err
11644 rm -f conftest.er1
11645 cat conftest.err >&5
11646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } && {
11648 test -z "$ac_c_werror_flag" ||
11649 test ! -s conftest.err
11650 } && test -s conftest.$ac_objext; then
11651 ac_cv_prog_cc_g=yes
11652else
11653 $as_echo "$as_me: failed program was:" >&5
11654sed 's/^/| /' conftest.$ac_ext >&5
11655
11656 CFLAGS=""
11657 cat >conftest.$ac_ext <<_ACEOF
11658/* confdefs.h. */
11659_ACEOF
11660cat confdefs.h >>conftest.$ac_ext
11661cat >>conftest.$ac_ext <<_ACEOF
11662/* end confdefs.h. */
11663
11664int
11665main ()
11666{
11667
11668 ;
11669 return 0;
11670}
11671_ACEOF
11672rm -f conftest.$ac_objext
11673if { (ac_try="$ac_compile"
11674case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11677esac
11678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11679$as_echo "$ac_try_echo") >&5
11680 (eval "$ac_compile") 2>conftest.er1
11681 ac_status=$?
11682 grep -v '^ *+' conftest.er1 >conftest.err
11683 rm -f conftest.er1
11684 cat conftest.err >&5
11685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } && {
11687 test -z "$ac_c_werror_flag" ||
11688 test ! -s conftest.err
11689 } && test -s conftest.$ac_objext; then
11690 :
11691else
11692 $as_echo "$as_me: failed program was:" >&5
11693sed 's/^/| /' conftest.$ac_ext >&5
11694
11695 ac_c_werror_flag=$ac_save_c_werror_flag
11696 CFLAGS="-g"
11697 cat >conftest.$ac_ext <<_ACEOF
11698/* confdefs.h. */
11699_ACEOF
11700cat confdefs.h >>conftest.$ac_ext
11701cat >>conftest.$ac_ext <<_ACEOF
11702/* end confdefs.h. */
11703
11704int
11705main ()
11706{
11707
11708 ;
11709 return 0;
11710}
11711_ACEOF
11712rm -f conftest.$ac_objext
11713if { (ac_try="$ac_compile"
11714case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11717esac
11718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11719$as_echo "$ac_try_echo") >&5
11720 (eval "$ac_compile") 2>conftest.er1
11721 ac_status=$?
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
11725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } && {
11727 test -z "$ac_c_werror_flag" ||
11728 test ! -s conftest.err
11729 } && test -s conftest.$ac_objext; then
11730 ac_cv_prog_cc_g=yes
11731else
11732 $as_echo "$as_me: failed program was:" >&5
11733sed 's/^/| /' conftest.$ac_ext >&5
11734
11735
11736fi
11737
11738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739fi
11740
11741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11742fi
11743
11744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11745 ac_c_werror_flag=$ac_save_c_werror_flag
11746fi
11747{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11748$as_echo "$ac_cv_prog_cc_g" >&6; }
11749if test "$ac_test_CFLAGS" = set; then
11750 CFLAGS=$ac_save_CFLAGS
11751elif test $ac_cv_prog_cc_g = yes; then
11752 if test "$GCC" = yes; then
11753 CFLAGS="-g -O2"
11754 else
11755 CFLAGS="-g"
11756 fi
11757else
11758 if test "$GCC" = yes; then
11759 CFLAGS="-O2"
11760 else
11761 CFLAGS=
11762 fi
11763fi
11764{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11765$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11766if test "${ac_cv_prog_cc_c89+set}" = set; then
11767 $as_echo_n "(cached) " >&6
11768else
11769 ac_cv_prog_cc_c89=no
11770ac_save_CC=$CC
11771cat >conftest.$ac_ext <<_ACEOF
11772/* confdefs.h. */
11773_ACEOF
11774cat confdefs.h >>conftest.$ac_ext
11775cat >>conftest.$ac_ext <<_ACEOF
11776/* end confdefs.h. */
11777#include <stdarg.h>
11778#include <stdio.h>
11779#include <sys/types.h>
11780#include <sys/stat.h>
11781/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11782struct buf { int x; };
11783FILE * (*rcsopen) (struct buf *, struct stat *, int);
11784static char *e (p, i)
11785 char **p;
11786 int i;
11787{
11788 return p[i];
11789}
11790static char *f (char * (*g) (char **, int), char **p, ...)
11791{
11792 char *s;
11793 va_list v;
11794 va_start (v,p);
11795 s = g (p, va_arg (v,int));
11796 va_end (v);
11797 return s;
11798}
11799
11800/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11801 function prototypes and stuff, but not '\xHH' hex character constants.
11802 These don't provoke an error unfortunately, instead are silently treated
11803 as 'x'. The following induces an error, until -std is added to get
11804 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11805 array size at least. It's necessary to write '\x00'==0 to get something
11806 that's true only with -std. */
11807int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11808
11809/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11810 inside strings and character constants. */
11811#define FOO(x) 'x'
11812int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11813
11814int test (int i, double x);
11815struct s1 {int (*f) (int a);};
11816struct s2 {int (*f) (double a);};
11817int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11818int argc;
11819char **argv;
11820int
11821main ()
11822{
11823return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11824 ;
11825 return 0;
11826}
11827_ACEOF
11828for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11829 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11830do
11831 CC="$ac_save_CC $ac_arg"
11832 rm -f conftest.$ac_objext
11833if { (ac_try="$ac_compile"
11834case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11837esac
11838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11839$as_echo "$ac_try_echo") >&5
11840 (eval "$ac_compile") 2>conftest.er1
11841 ac_status=$?
11842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
11845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } && {
11847 test -z "$ac_c_werror_flag" ||
11848 test ! -s conftest.err
11849 } && test -s conftest.$ac_objext; then
11850 ac_cv_prog_cc_c89=$ac_arg
11851else
11852 $as_echo "$as_me: failed program was:" >&5
11853sed 's/^/| /' conftest.$ac_ext >&5
11854
11855
11856fi
11857
11858rm -f core conftest.err conftest.$ac_objext
11859 test "x$ac_cv_prog_cc_c89" != "xno" && break
11860done
11861rm -f conftest.$ac_ext
11862CC=$ac_save_CC
11863
11864fi
11865# AC_CACHE_VAL
11866case "x$ac_cv_prog_cc_c89" in
11867 x)
11868 { $as_echo "$as_me:$LINENO: result: none needed" >&5
11869$as_echo "none needed" >&6; } ;;
11870 xno)
11871 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
11872$as_echo "unsupported" >&6; } ;;
11873 *)
11874 CC="$CC $ac_cv_prog_cc_c89"
11875 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11876$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11877esac
11878
11879
11880ac_ext=c
11881ac_cpp='$CPP $CPPFLAGS'
11882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11884ac_compiler_gnu=$ac_cv_c_compiler_gnu
11885
11886depcc="$CC" am_compiler_list=
11887
11888{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11889$as_echo_n "checking dependency style of $depcc... " >&6; }
11890if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11891 $as_echo_n "(cached) " >&6
11892else
11893 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11894 # We make a subdir and do the tests there. Otherwise we can end up
11895 # making bogus files that we don't know about and never remove. For
11896 # instance it was reported that on HP-UX the gcc test will end up
11897 # making a dummy file named `D' -- because `-MD' means `put the output
11898 # in D'.
11899 mkdir conftest.dir
11900 # Copy depcomp to subdir because otherwise we won't find it if we're
11901 # using a relative directory.
11902 cp "$am_depcomp" conftest.dir
11903 cd conftest.dir
11904 # We will build objects and dependencies in a subdirectory because
11905 # it helps to detect inapplicable dependency modes. For instance
11906 # both Tru64's cc and ICC support -MD to output dependencies as a
11907 # side effect of compilation, but ICC will put the dependencies in
11908 # the current directory while Tru64 will put them in the object
11909 # directory.
11910 mkdir sub
11911
11912 am_cv_CC_dependencies_compiler_type=none
11913 if test "$am_compiler_list" = ""; then
11914 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11915 fi
11916 am__universal=false
11917 case " $depcc " in #(
11918 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11919 esac
11920
11921 for depmode in $am_compiler_list; do
11922 # Setup a source with many dependencies, because some compilers
11923 # like to wrap large dependency lists on column 80 (with \), and
11924 # we should not choose a depcomp mode which is confused by this.
11925 #
11926 # We need to recreate these files for each test, as the compiler may
11927 # overwrite some of them when testing with obscure command lines.
11928 # This happens at least with the AIX C compiler.
11929 : > sub/conftest.c
11930 for i in 1 2 3 4 5 6; do
11931 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11932 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11933 # Solaris 8's {/usr,}/bin/sh.
11934 touch sub/conftst$i.h
11935 done
11936 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11937
11938 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11939 # mode. It turns out that the SunPro C++ compiler does not properly
11940 # handle `-M -o', and we need to detect this. Also, some Intel
11941 # versions had trouble with output in subdirs
11942 am__obj=sub/conftest.${OBJEXT-o}
11943 am__minus_obj="-o $am__obj"
11944 case $depmode in
11945 gcc)
11946 # This depmode causes a compiler race in universal mode.
11947 test "$am__universal" = false || continue
11948 ;;
11949 nosideeffect)
11950 # after this tag, mechanisms are not by side-effect, so they'll
11951 # only be used when explicitly requested
11952 if test "x$enable_dependency_tracking" = xyes; then
11953 continue
11954 else
11955 break
11956 fi
11957 ;;
11958 msvisualcpp | msvcmsys)
11959 # This compiler won't grok `-c -o', but also, the minuso test has
11960 # not run yet. These depmodes are late enough in the game, and
11961 # so weak that their functioning should not be impacted.
11962 am__obj=conftest.${OBJEXT-o}
11963 am__minus_obj=
11964 ;;
11965 none) break ;;
11966 esac
11967 if depmode=$depmode \
11968 source=sub/conftest.c object=$am__obj \
11969 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11970 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11971 >/dev/null 2>conftest.err &&
11972 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11973 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11974 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11975 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11976 # icc doesn't choke on unknown options, it will just issue warnings
11977 # or remarks (even with -Werror). So we grep stderr for any message
11978 # that says an option was ignored or not supported.
11979 # When given -MP, icc 7.0 and 7.1 complain thusly:
11980 # icc: Command line warning: ignoring option '-M'; no argument required
11981 # The diagnosis changed in icc 8.0:
11982 # icc: Command line remark: option '-MP' not supported
11983 if (grep 'ignoring option' conftest.err ||
11984 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11985 am_cv_CC_dependencies_compiler_type=$depmode
11986 break
11987 fi
11988 fi
11989 done
11990
11991 cd ..
11992 rm -rf conftest.dir
11993else
11994 am_cv_CC_dependencies_compiler_type=none
11995fi
11996
11997fi
11998{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11999$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12000CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12001
12002 if
12003 test "x$enable_dependency_tracking" != xno \
12004 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12005 am__fastdepCC_TRUE=
12006 am__fastdepCC_FALSE='#'
12007else
12008 am__fastdepCC_TRUE='#'
12009 am__fastdepCC_FALSE=
12010fi
12011
12012
12013for ac_prog in perl5 perl
12014do
12015 # Extract the first word of "$ac_prog", so it can be a program name with args.
12016set dummy $ac_prog; ac_word=$2
12017{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12018$as_echo_n "checking for $ac_word... " >&6; }
12019if test "${ac_cv_path_PERL+set}" = set; then
12020 $as_echo_n "(cached) " >&6
12021else
12022 case $PERL in
12023 [\\/]* | ?:[\\/]*)
12024 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12025 ;;
12026 *)
12027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12028for as_dir in $LPATH
12029do
12030 IFS=$as_save_IFS
12031 test -z "$as_dir" && as_dir=.
12032 for ac_exec_ext in '' $ac_executable_extensions; do
12033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12034 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12035 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12036 break 2
12037 fi
12038done
12039done
12040IFS=$as_save_IFS
12041
12042 ;;
12043esac
12044fi
12045PERL=$ac_cv_path_PERL
12046if test -n "$PERL"; then
12047 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12048$as_echo "$PERL" >&6; }
12049else
12050 { $as_echo "$as_me:$LINENO: result: no" >&5
12051$as_echo "no" >&6; }
12052fi
12053
12054
12055 test -n "$PERL" && break
12056done
12057test -n "$PERL" || PERL="perl"
12058
12059
12060if test "$PERL" = "perl"
12061then
12062 { { $as_echo "$as_me:$LINENO: error: Perl not found." >&5
12063$as_echo "$as_me: error: Perl not found." >&2;}
12064 { (exit 1); exit 1; }; }
12065fi
12066
12067
12068
12069
12070
12071for ac_header in stddef.h wchar.h
12072do
12073as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12075 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12076$as_echo_n "checking for $ac_header... " >&6; }
12077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12078 $as_echo_n "(cached) " >&6
12079fi
12080ac_res=`eval 'as_val=${'$as_ac_Header'}
12081 $as_echo "$as_val"'`
12082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12083$as_echo "$ac_res" >&6; }
12084else
12085 # Is the header compilable?
12086{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12087$as_echo_n "checking $ac_header usability... " >&6; }
12088cat >conftest.$ac_ext <<_ACEOF
12089/* confdefs.h. */
12090_ACEOF
12091cat confdefs.h >>conftest.$ac_ext
12092cat >>conftest.$ac_ext <<_ACEOF
12093/* end confdefs.h. */
12094$ac_includes_default
12095#include <$ac_header>
12096_ACEOF
12097rm -f conftest.$ac_objext
12098if { (ac_try="$ac_compile"
12099case "(($ac_try" in
12100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12101 *) ac_try_echo=$ac_try;;
12102esac
12103eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12104$as_echo "$ac_try_echo") >&5
12105 (eval "$ac_compile") 2>conftest.er1
12106 ac_status=$?
12107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
12110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } && {
12112 test -z "$ac_c_werror_flag" ||
12113 test ! -s conftest.err
12114 } && test -s conftest.$ac_objext; then
12115 ac_header_compiler=yes
12116else
12117 $as_echo "$as_me: failed program was:" >&5
12118sed 's/^/| /' conftest.$ac_ext >&5
12119
12120 ac_header_compiler=no
12121fi
12122
12123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12124{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12125$as_echo "$ac_header_compiler" >&6; }
12126
12127# Is the header present?
12128{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12129$as_echo_n "checking $ac_header presence... " >&6; }
12130cat >conftest.$ac_ext <<_ACEOF
12131/* confdefs.h. */
12132_ACEOF
12133cat confdefs.h >>conftest.$ac_ext
12134cat >>conftest.$ac_ext <<_ACEOF
12135/* end confdefs.h. */
12136#include <$ac_header>
12137_ACEOF
12138if { (ac_try="$ac_cpp conftest.$ac_ext"
12139case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142esac
12143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12144$as_echo "$ac_try_echo") >&5
12145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12146 ac_status=$?
12147 grep -v '^ *+' conftest.er1 >conftest.err
12148 rm -f conftest.er1
12149 cat conftest.err >&5
12150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } >/dev/null && {
12152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12153 test ! -s conftest.err
12154 }; then
12155 ac_header_preproc=yes
12156else
12157 $as_echo "$as_me: failed program was:" >&5
12158sed 's/^/| /' conftest.$ac_ext >&5
12159
12160 ac_header_preproc=no
12161fi
12162
12163rm -f conftest.err conftest.$ac_ext
12164{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12165$as_echo "$ac_header_preproc" >&6; }
12166
12167# So? What about this header?
12168case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12169 yes:no: )
12170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12171$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12173$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12174 ac_header_preproc=yes
12175 ;;
12176 no:yes:* )
12177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12178$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12180$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12182$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12184$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12186$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12188$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12189 ( cat <<\_ASBOX
12190## ----------------------------------------------------- ##
12191## Report this to courier-maildrop@lists.sourceforge.net ##
12192## ----------------------------------------------------- ##
12193_ASBOX
12194 ) | sed "s/^/$as_me: WARNING: /" >&2
12195 ;;
12196esac
12197{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12198$as_echo_n "checking for $ac_header... " >&6; }
12199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12200 $as_echo_n "(cached) " >&6
12201else
12202 eval "$as_ac_Header=\$ac_header_preproc"
12203fi
12204ac_res=`eval 'as_val=${'$as_ac_Header'}
12205 $as_echo "$as_val"'`
12206 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12207$as_echo "$ac_res" >&6; }
12208
12209fi
12210as_val=`eval 'as_val=${'$as_ac_Header'}
12211 $as_echo "$as_val"'`
12212 if test "x$as_val" = x""yes; then
12213 cat >>confdefs.h <<_ACEOF
12214#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12215_ACEOF
12216
12217fi
12218
12219done
12220
12221
12222
12223
12224# Check whether --enable-mimecharset was given.
12225if test "${enable_mimecharset+set}" = set; then
12226 enableval=$enable_mimecharset; UNICODECHARSET="$enableval"
12227else
12228 UNICODECHARSET="us-ascii"
12229fi
12230
12231
12232# Check whether --enable-unicode was given.
12233if test "${enable_unicode+set}" = set; then
12234 enableval=$enable_unicode; unicode="$enableval"
12235else
12236 # Disable all unicode support by default, except the maintainer :-)
12237
12238 unicode="no"
12239 if test -f ${srcdir}/UnicodeData.txt
12240 then
12241 unicode=""
12242 fi
12243fi
12244
12245
12246
12247
12248cat >>confdefs.h <<_ACEOF
12249#define UNICODECHARSET "$UNICODECHARSET"
12250_ACEOF
12251
12252
12253 if test -f ${srcdir}/UnicodeData.txt; then
12254 UPDATE_UNICODE_TRUE=
12255 UPDATE_UNICODE_FALSE='#'
12256else
12257 UPDATE_UNICODE_TRUE='#'
12258 UPDATE_UNICODE_FALSE=
12259fi
12260
12261
12262# Check whether --enable-unicode-test was given.
12263if test "${enable_unicode_test+set}" = set; then
12264 enableval=$enable_unicode_test; unicode_xtest="$enableval"
12265else
12266 unicode_xtest="no"
12267fi
12268
12269
12270
12271
12272if test "$GCC" = "yes"
12273then
12274 CFLAGS="$CFLAGS -Wall"
12275fi
12276
12277ac_config_files="$ac_config_files Makefile"
12278
12279cat >confcache <<\_ACEOF
12280# This file is a shell script that caches the results of configure
12281# tests run on this system so they can be shared between configure
12282# scripts and configure runs, see configure's option --config-cache.
12283# It is not useful on other systems. If it contains results you don't
12284# want to keep, you may remove or edit it.
12285#
12286# config.status only pays attention to the cache file if you give it
12287# the --recheck option to rerun configure.
12288#
12289# `ac_cv_env_foo' variables (set or unset) will be overridden when
12290# loading this file, other *unset* `ac_cv_foo' will be assigned the
12291# following values.
12292
12293_ACEOF
12294
12295# The following way of writing the cache mishandles newlines in values,
12296# but we know of no workaround that is simple, portable, and efficient.
12297# So, we kill variables containing newlines.
12298# Ultrix sh set writes to stderr and can't be redirected directly,
12299# and sets the high bit in the cache file unless we assign to the vars.
12300(
12301 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12302 eval ac_val=\$$ac_var
12303 case $ac_val in #(
12304 *${as_nl}*)
12305 case $ac_var in #(
12306 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12307$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12308 esac
12309 case $ac_var in #(
12310 _ | IFS | as_nl) ;; #(
12311 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12312 *) $as_unset $ac_var ;;
12313 esac ;;
12314 esac
12315 done
12316
12317 (set) 2>&1 |
12318 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12319 *${as_nl}ac_space=\ *)
12320 # `set' does not quote correctly, so add quotes (double-quote
12321 # substitution turns \\\\ into \\, and sed turns \\ into \).
12322 sed -n \
12323 "s/'/'\\\\''/g;
12324 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12325 ;; #(
12326 *)
12327 # `set' quotes correctly as required by POSIX, so do not add quotes.
12328 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12329 ;;
12330 esac |
12331 sort
12332) |
12333 sed '
12334 /^ac_cv_env_/b end
12335 t clear
12336 :clear
12337 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12338 t end
12339 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12340 :end' >>confcache
12341if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12342 if test -w "$cache_file"; then
12343 test "x$cache_file" != "x/dev/null" &&
12344 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12345$as_echo "$as_me: updating cache $cache_file" >&6;}
12346 cat confcache >$cache_file
12347 else
12348 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12349$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12350 fi
12351fi
12352rm -f confcache
12353
12354test "x$prefix" = xNONE && prefix=$ac_default_prefix
12355# Let make expand exec_prefix.
12356test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12357
12358DEFS=-DHAVE_CONFIG_H
12359
12360ac_libobjs=
12361ac_ltlibobjs=
12362for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12363 # 1. Remove the extension, and $U if already installed.
12364 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12365 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12366 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12367 # will be set to the directory where LIBOBJS objects are built.
12368 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12369 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12370done
12371LIBOBJS=$ac_libobjs
12372
12373LTLIBOBJS=$ac_ltlibobjs
12374
12375
12376 if test -n "$EXEEXT"; then
12377 am__EXEEXT_TRUE=
12378 am__EXEEXT_FALSE='#'
12379else
12380 am__EXEEXT_TRUE='#'
12381 am__EXEEXT_FALSE=
12382fi
12383
12384if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12385 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12386Usually this means the macro was only invoked conditionally." >&5
12387$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12388Usually this means the macro was only invoked conditionally." >&2;}
12389 { (exit 1); exit 1; }; }
12390fi
12391if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12392 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12393Usually this means the macro was only invoked conditionally." >&5
12394$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12395Usually this means the macro was only invoked conditionally." >&2;}
12396 { (exit 1); exit 1; }; }
12397fi
12398if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12399 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12400Usually this means the macro was only invoked conditionally." >&5
12401$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12402Usually this means the macro was only invoked conditionally." >&2;}
12403 { (exit 1); exit 1; }; }
12404fi
12405if test -z "${UPDATE_UNICODE_TRUE}" && test -z "${UPDATE_UNICODE_FALSE}"; then
12406 { { $as_echo "$as_me:$LINENO: error: conditional \"UPDATE_UNICODE\" was never defined.
12407Usually this means the macro was only invoked conditionally." >&5
12408$as_echo "$as_me: error: conditional \"UPDATE_UNICODE\" was never defined.
12409Usually this means the macro was only invoked conditionally." >&2;}
12410 { (exit 1); exit 1; }; }
12411fi
12412
12413: ${CONFIG_STATUS=./config.status}
12414ac_write_fail=0
12415ac_clean_files_save=$ac_clean_files
12416ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12417{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12418$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12419cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12420#! $SHELL
12421# Generated by $as_me.
12422# Run this file to recreate the current configuration.
12423# Compiler output produced by configure, useful for debugging
12424# configure, is in config.log if it exists.
12425
12426debug=false
12427ac_cs_recheck=false
12428ac_cs_silent=false
12429SHELL=\${CONFIG_SHELL-$SHELL}
12430_ACEOF
12431
12432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12433## --------------------- ##
12434## M4sh Initialization. ##
12435## --------------------- ##
12436
12437# Be more Bourne compatible
12438DUALCASE=1; export DUALCASE # for MKS sh
12439if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12440 emulate sh
12441 NULLCMD=:
12442 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12443 # is contrary to our usage. Disable this feature.
12444 alias -g '${1+"$@"}'='"$@"'
12445 setopt NO_GLOB_SUBST
12446else
12447 case `(set -o) 2>/dev/null` in
12448 *posix*) set -o posix ;;
12449esac
12450
12451fi
12452
12453
12454
12455
12456# PATH needs CR
12457# Avoid depending upon Character Ranges.
12458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12461as_cr_digits='0123456789'
12462as_cr_alnum=$as_cr_Letters$as_cr_digits
12463
12464as_nl='
12465'
12466export as_nl
12467# Printing a long string crashes Solaris 7 /usr/bin/printf.
12468as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12469as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12470as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12471if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12472 as_echo='printf %s\n'
12473 as_echo_n='printf %s'
12474else
12475 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12476 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12477 as_echo_n='/usr/ucb/echo -n'
12478 else
12479 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12480 as_echo_n_body='eval
12481 arg=$1;
12482 case $arg in
12483 *"$as_nl"*)
12484 expr "X$arg" : "X\\(.*\\)$as_nl";
12485 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12486 esac;
12487 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12488 '
12489 export as_echo_n_body
12490 as_echo_n='sh -c $as_echo_n_body as_echo'
12491 fi
12492 export as_echo_body
12493 as_echo='sh -c $as_echo_body as_echo'
12494fi
12495
12496# The user is always right.
12497if test "${PATH_SEPARATOR+set}" != set; then
12498 PATH_SEPARATOR=:
12499 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12500 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12501 PATH_SEPARATOR=';'
12502 }
12503fi
12504
12505# Support unset when possible.
12506if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12507 as_unset=unset
12508else
12509 as_unset=false
12510fi
12511
12512
12513# IFS
12514# We need space, tab and new line, in precisely that order. Quoting is
12515# there to prevent editors from complaining about space-tab.
12516# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12517# splitting by setting IFS to empty value.)
12518IFS=" "" $as_nl"
12519
12520# Find who we are. Look in the path if we contain no directory separator.
12521case $0 in
12522 *[\\/]* ) as_myself=$0 ;;
12523 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524for as_dir in $PATH
12525do
12526 IFS=$as_save_IFS
12527 test -z "$as_dir" && as_dir=.
12528 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12529done
12530IFS=$as_save_IFS
12531
12532 ;;
12533esac
12534# We did not find ourselves, most probably we were run as `sh COMMAND'
12535# in which case we are not to be found in the path.
12536if test "x$as_myself" = x; then
12537 as_myself=$0
12538fi
12539if test ! -f "$as_myself"; then
12540 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12541 { (exit 1); exit 1; }
12542fi
12543
12544# Work around bugs in pre-3.0 UWIN ksh.
12545for as_var in ENV MAIL MAILPATH
12546do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12547done
12548PS1='$ '
12549PS2='> '
12550PS4='+ '
12551
12552# NLS nuisances.
12553LC_ALL=C
12554export LC_ALL
12555LANGUAGE=C
12556export LANGUAGE
12557
12558# Required to use basename.
12559if expr a : '\(a\)' >/dev/null 2>&1 &&
12560 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12561 as_expr=expr
12562else
12563 as_expr=false
12564fi
12565
12566if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12567 as_basename=basename
12568else
12569 as_basename=false
12570fi
12571
12572
12573# Name of the executable.
12574as_me=`$as_basename -- "$0" ||
12575$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12576 X"$0" : 'X\(//\)$' \| \
12577 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12578$as_echo X/"$0" |
12579 sed '/^.*\/\([^/][^/]*\)\/*$/{
12580 s//\1/
12581 q
12582 }
12583 /^X\/\(\/\/\)$/{
12584 s//\1/
12585 q
12586 }
12587 /^X\/\(\/\).*/{
12588 s//\1/
12589 q
12590 }
12591 s/.*/./; q'`
12592
12593# CDPATH.
12594$as_unset CDPATH
12595
12596
12597
12598 as_lineno_1=$LINENO
12599 as_lineno_2=$LINENO
12600 test "x$as_lineno_1" != "x$as_lineno_2" &&
12601 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12602
12603 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12604 # uniformly replaced by the line number. The first 'sed' inserts a
12605 # line-number line after each line using $LINENO; the second 'sed'
12606 # does the real work. The second script uses 'N' to pair each
12607 # line-number line with the line containing $LINENO, and appends
12608 # trailing '-' during substitution so that $LINENO is not a special
12609 # case at line end.
12610 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12611 # scripts with optimization help from Paolo Bonzini. Blame Lee
12612 # E. McMahon (1931-1989) for sed's syntax. :-)
12613 sed -n '
12614 p
12615 /[$]LINENO/=
12616 ' <$as_myself |
12617 sed '
12618 s/[$]LINENO.*/&-/
12619 t lineno
12620 b
12621 :lineno
12622 N
12623 :loop
12624 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12625 t loop
12626 s/-\n.*//
12627 ' >$as_me.lineno &&
12628 chmod +x "$as_me.lineno" ||
12629 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12630 { (exit 1); exit 1; }; }
12631
12632 # Don't try to exec as it changes $[0], causing all sort of problems
12633 # (the dirname of $[0] is not the place where we might find the
12634 # original and so on. Autoconf is especially sensitive to this).
12635 . "./$as_me.lineno"
12636 # Exit status is that of the last command.
12637 exit
12638}
12639
12640
12641if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12642 as_dirname=dirname
12643else
12644 as_dirname=false
12645fi
12646
12647ECHO_C= ECHO_N= ECHO_T=
12648case `echo -n x` in
12649-n*)
12650 case `echo 'x\c'` in
12651 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12652 *) ECHO_C='\c';;
12653 esac;;
12654*)
12655 ECHO_N='-n';;
12656esac
12657if expr a : '\(a\)' >/dev/null 2>&1 &&
12658 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12659 as_expr=expr
12660else
12661 as_expr=false
12662fi
12663
12664rm -f conf$$ conf$$.exe conf$$.file
12665if test -d conf$$.dir; then
12666 rm -f conf$$.dir/conf$$.file
12667else
12668 rm -f conf$$.dir
12669 mkdir conf$$.dir 2>/dev/null
12670fi
12671if (echo >conf$$.file) 2>/dev/null; then
12672 if ln -s conf$$.file conf$$ 2>/dev/null; then
12673 as_ln_s='ln -s'
12674 # ... but there are two gotchas:
12675 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12676 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12677 # In both cases, we have to default to `cp -p'.
12678 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12679 as_ln_s='cp -p'
12680 elif ln conf$$.file conf$$ 2>/dev/null; then
12681 as_ln_s=ln
12682 else
12683 as_ln_s='cp -p'
12684 fi
12685else
12686 as_ln_s='cp -p'
12687fi
12688rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12689rmdir conf$$.dir 2>/dev/null
12690
12691if mkdir -p . 2>/dev/null; then
12692 as_mkdir_p=:
12693else
12694 test -d ./-p && rmdir ./-p
12695 as_mkdir_p=false
12696fi
12697
12698if test -x / >/dev/null 2>&1; then
12699 as_test_x='test -x'
12700else
12701 if ls -dL / >/dev/null 2>&1; then
12702 as_ls_L_option=L
12703 else
12704 as_ls_L_option=
12705 fi
12706 as_test_x='
12707 eval sh -c '\''
12708 if test -d "$1"; then
12709 test -d "$1/.";
12710 else
12711 case $1 in
12712 -*)set "./$1";;
12713 esac;
12714 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12715 ???[sx]*):;;*)false;;esac;fi
12716 '\'' sh
12717 '
12718fi
12719as_executable_p=$as_test_x
12720
12721# Sed expression to map a string onto a valid CPP name.
12722as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12723
12724# Sed expression to map a string onto a valid variable name.
12725as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12726
12727
12728exec 6>&1
12729
12730# Save the log message, to keep $[0] and so on meaningful, and to
12731# report actual input values of CONFIG_FILES etc. instead of their
12732# values after options handling.
12733ac_log="
12734This file was extended by unicode $as_me 0.10, which was
12735generated by GNU Autoconf 2.63. Invocation command line was
12736
12737 CONFIG_FILES = $CONFIG_FILES
12738 CONFIG_HEADERS = $CONFIG_HEADERS
12739 CONFIG_LINKS = $CONFIG_LINKS
12740 CONFIG_COMMANDS = $CONFIG_COMMANDS
12741 $ $0 $@
12742
12743on `(hostname || uname -n) 2>/dev/null | sed 1q`
12744"
12745
12746_ACEOF
12747
12748case $ac_config_files in *"
12749"*) set x $ac_config_files; shift; ac_config_files=$*;;
12750esac
12751
12752case $ac_config_headers in *"
12753"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12754esac
12755
12756
12757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12758# Files that config.status was made for.
12759config_files="$ac_config_files"
12760config_headers="$ac_config_headers"
12761config_commands="$ac_config_commands"
12762
12763_ACEOF
12764
12765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12766ac_cs_usage="\
12767\`$as_me' instantiates files from templates according to the
12768current configuration.
12769
12770Usage: $0 [OPTION]... [FILE]...
12771
12772 -h, --help print this help, then exit
12773 -V, --version print version number and configuration settings, then exit
12774 -q, --quiet, --silent
12775 do not print progress messages
12776 -d, --debug don't remove temporary files
12777 --recheck update $as_me by reconfiguring in the same conditions
12778 --file=FILE[:TEMPLATE]
12779 instantiate the configuration file FILE
12780 --header=FILE[:TEMPLATE]
12781 instantiate the configuration header FILE
12782
12783Configuration files:
12784$config_files
12785
12786Configuration headers:
12787$config_headers
12788
12789Configuration commands:
12790$config_commands
12791
12792Report bugs to <bug-autoconf@gnu.org>."
12793
12794_ACEOF
12795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12796ac_cs_version="\\
12797unicode config.status 0.10
12798configured by $0, generated by GNU Autoconf 2.63,
12799 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12800
12801Copyright (C) 2008 Free Software Foundation, Inc.
12802This config.status script is free software; the Free Software Foundation
12803gives unlimited permission to copy, distribute and modify it."
12804
12805ac_pwd='$ac_pwd'
12806srcdir='$srcdir'
12807INSTALL='$INSTALL'
12808MKDIR_P='$MKDIR_P'
12809AWK='$AWK'
12810test -n "\$AWK" || AWK=awk
12811_ACEOF
12812
12813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12814# The default lists apply if the user does not specify any file.
12815ac_need_defaults=:
12816while test $# != 0
12817do
12818 case $1 in
12819 --*=*)
12820 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12821 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12822 ac_shift=:
12823 ;;
12824 *)
12825 ac_option=$1
12826 ac_optarg=$2
12827 ac_shift=shift
12828 ;;
12829 esac
12830
12831 case $ac_option in
12832 # Handling of the options.
12833 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12834 ac_cs_recheck=: ;;
12835 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12836 $as_echo "$ac_cs_version"; exit ;;
12837 --debug | --debu | --deb | --de | --d | -d )
12838 debug=: ;;
12839 --file | --fil | --fi | --f )
12840 $ac_shift
12841 case $ac_optarg in
12842 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12843 esac
12844 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12845 ac_need_defaults=false;;
12846 --header | --heade | --head | --hea )
12847 $ac_shift
12848 case $ac_optarg in
12849 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12850 esac
12851 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12852 ac_need_defaults=false;;
12853 --he | --h)
12854 # Conflict between --help and --header
12855 { $as_echo "$as_me: error: ambiguous option: $1
12856Try \`$0 --help' for more information." >&2
12857 { (exit 1); exit 1; }; };;
12858 --help | --hel | -h )
12859 $as_echo "$ac_cs_usage"; exit ;;
12860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12861 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12862 ac_cs_silent=: ;;
12863
12864 # This is an error.
12865 -*) { $as_echo "$as_me: error: unrecognized option: $1
12866Try \`$0 --help' for more information." >&2
12867 { (exit 1); exit 1; }; } ;;
12868
12869 *) ac_config_targets="$ac_config_targets $1"
12870 ac_need_defaults=false ;;
12871
12872 esac
12873 shift
12874done
12875
12876ac_configure_extra_args=
12877
12878if $ac_cs_silent; then
12879 exec 6>/dev/null
12880 ac_configure_extra_args="$ac_configure_extra_args --silent"
12881fi
12882
12883_ACEOF
12884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12885if \$ac_cs_recheck; then
12886 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12887 shift
12888 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12889 CONFIG_SHELL='$SHELL'
12890 export CONFIG_SHELL
12891 exec "\$@"
12892fi
12893
12894_ACEOF
12895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12896exec 5>>config.log
12897{
12898 echo
12899 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12900## Running $as_me. ##
12901_ASBOX
12902 $as_echo "$ac_log"
12903} >&5
12904
12905_ACEOF
12906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12907#
12908# INIT-COMMANDS
12909#
12910AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12911
12912
12913# The HP-UX ksh and POSIX shell print the target directory to stdout
12914# if CDPATH is set.
12915(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12916
12917sed_quote_subst='$sed_quote_subst'
12918double_quote_subst='$double_quote_subst'
12919delay_variable_subst='$delay_variable_subst'
12920macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12921macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12922enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12923enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12924pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12925enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12926host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12927host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12928host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12929build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12930build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12931build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12932SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12933Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12934GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12935EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12936FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12937LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12938NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12939LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12940max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12941ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12942exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12943lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12944lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12945lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12946reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12947reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12948OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12949deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12950file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12951AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12952AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12953STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12954RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12955old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12956old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12957old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12958CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12959CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12960compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12961GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12962lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12963lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12964lt_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"`'
12965lt_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"`'
12966objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12967SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12968ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12969MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12970lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12971lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12972lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12973lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12974lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12975need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12976DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12977NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12978LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12979OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12980OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12981libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12982shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12983extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12984archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12985enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12986export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12987whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12988compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12989old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12990old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12991archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12992archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12993module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12994module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12995with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12996allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12997no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12998hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12999hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13000hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13001hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13002hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13003hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13004hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13005hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13006inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13007link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13008fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13009always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13010export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13011exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13012include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13013prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13014file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13015variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13016need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13017need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13018version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13019runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13020shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13021shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13022libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13023library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13024soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13025postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13026postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13027finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13028finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13029hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13030sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13031sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13032hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13033enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13034enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13035enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13036old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13037striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13038
13039LTCC='$LTCC'
13040LTCFLAGS='$LTCFLAGS'
13041compiler='$compiler_DEFAULT'
13042
13043# Quote evaled strings.
13044for var in SED \
13045GREP \
13046EGREP \
13047FGREP \
13048LD \
13049NM \
13050LN_S \
13051lt_SP2NL \
13052lt_NL2SP \
13053reload_flag \
13054OBJDUMP \
13055deplibs_check_method \
13056file_magic_cmd \
13057AR \
13058AR_FLAGS \
13059STRIP \
13060RANLIB \
13061CC \
13062CFLAGS \
13063compiler \
13064lt_cv_sys_global_symbol_pipe \
13065lt_cv_sys_global_symbol_to_cdecl \
13066lt_cv_sys_global_symbol_to_c_name_address \
13067lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13068SHELL \
13069ECHO \
13070lt_prog_compiler_no_builtin_flag \
13071lt_prog_compiler_wl \
13072lt_prog_compiler_pic \
13073lt_prog_compiler_static \
13074lt_cv_prog_compiler_c_o \
13075need_locks \
13076DSYMUTIL \
13077NMEDIT \
13078LIPO \
13079OTOOL \
13080OTOOL64 \
13081shrext_cmds \
13082export_dynamic_flag_spec \
13083whole_archive_flag_spec \
13084compiler_needs_object \
13085with_gnu_ld \
13086allow_undefined_flag \
13087no_undefined_flag \
13088hardcode_libdir_flag_spec \
13089hardcode_libdir_flag_spec_ld \
13090hardcode_libdir_separator \
13091fix_srcfile_path \
13092exclude_expsyms \
13093include_expsyms \
13094file_list_spec \
13095variables_saved_for_relink \
13096libname_spec \
13097library_names_spec \
13098soname_spec \
13099finish_eval \
13100old_striplib \
13101striplib; do
13102 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13103 *[\\\\\\\`\\"\\\$]*)
13104 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13105 ;;
13106 *)
13107 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13108 ;;
13109 esac
13110done
13111
13112# Double-quote double-evaled strings.
13113for var in reload_cmds \
13114old_postinstall_cmds \
13115old_postuninstall_cmds \
13116old_archive_cmds \
13117extract_expsyms_cmds \
13118old_archive_from_new_cmds \
13119old_archive_from_expsyms_cmds \
13120archive_cmds \
13121archive_expsym_cmds \
13122module_cmds \
13123module_expsym_cmds \
13124export_symbols_cmds \
13125prelink_cmds \
13126postinstall_cmds \
13127postuninstall_cmds \
13128finish_cmds \
13129sys_lib_search_path_spec \
13130sys_lib_dlsearch_path_spec; do
13131 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13132 *[\\\\\\\`\\"\\\$]*)
13133 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13134 ;;
13135 *)
13136 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13137 ;;
13138 esac
13139done
13140
13141# Fix-up fallback echo if it was mangled by the above quoting rules.
13142case \$lt_ECHO in
13143*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13144 ;;
13145esac
13146
13147ac_aux_dir='$ac_aux_dir'
13148xsi_shell='$xsi_shell'
13149lt_shell_append='$lt_shell_append'
13150
13151# See if we are running on zsh, and set the options which allow our
13152# commands through without removal of \ escapes INIT.
13153if test -n "\${ZSH_VERSION+set}" ; then
13154 setopt NO_GLOB_SUBST
13155fi
13156
13157
13158 PACKAGE='$PACKAGE'
13159 VERSION='$VERSION'
13160 TIMESTAMP='$TIMESTAMP'
13161 RM='$RM'
13162 ofile='$ofile'
13163
13164
13165
13166
13167_ACEOF
13168
13169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13170
13171# Handling of arguments.
13172for ac_config_target in $ac_config_targets
13173do
13174 case $ac_config_target in
13175 "unicode_config.h") CONFIG_HEADERS="$CONFIG_HEADERS unicode_config.h" ;;
13176 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13177 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13178 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13179
13180 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13181$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13182 { (exit 1); exit 1; }; };;
13183 esac
13184done
13185
13186
13187# If the user did not use the arguments to specify the items to instantiate,
13188# then the envvar interface is used. Set only those that are not.
13189# We use the long form for the default assignment because of an extremely
13190# bizarre bug on SunOS 4.1.3.
13191if $ac_need_defaults; then
13192 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13193 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13194 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13195fi
13196
13197# Have a temporary directory for convenience. Make it in the build tree
13198# simply because there is no reason against having it here, and in addition,
13199# creating and moving files from /tmp can sometimes cause problems.
13200# Hook for its removal unless debugging.
13201# Note that there is a small window in which the directory will not be cleaned:
13202# after its creation but before its name has been assigned to `$tmp'.
13203$debug ||
13204{
13205 tmp=
13206 trap 'exit_status=$?
13207 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13208' 0
13209 trap '{ (exit 1); exit 1; }' 1 2 13 15
13210}
13211# Create a (secure) tmp directory for tmp files.
13212
13213{
13214 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13215 test -n "$tmp" && test -d "$tmp"
13216} ||
13217{
13218 tmp=./conf$$-$RANDOM
13219 (umask 077 && mkdir "$tmp")
13220} ||
13221{
13222 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13223 { (exit 1); exit 1; }
13224}
13225
13226# Set up the scripts for CONFIG_FILES section.
13227# No need to generate them if there are no CONFIG_FILES.
13228# This happens for instance with `./config.status config.h'.
13229if test -n "$CONFIG_FILES"; then
13230
13231
13232ac_cr='\r'
13233ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13234if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13235 ac_cs_awk_cr='\\r'
13236else
13237 ac_cs_awk_cr=$ac_cr
13238fi
13239
13240echo 'BEGIN {' >"$tmp/subs1.awk" &&
13241_ACEOF
13242
13243
13244{
13245 echo "cat >conf$$subs.awk <<_ACEOF" &&
13246 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13247 echo "_ACEOF"
13248} >conf$$subs.sh ||
13249 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13250$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13251 { (exit 1); exit 1; }; }
13252ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13253ac_delim='%!_!# '
13254for ac_last_try in false false false false false :; do
13255 . ./conf$$subs.sh ||
13256 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13257$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13258 { (exit 1); exit 1; }; }
13259
13260 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13261 if test $ac_delim_n = $ac_delim_num; then
13262 break
13263 elif $ac_last_try; then
13264 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13265$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13266 { (exit 1); exit 1; }; }
13267 else
13268 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13269 fi
13270done
13271rm -f conf$$subs.sh
13272
13273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13274cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13275_ACEOF
13276sed -n '
13277h
13278s/^/S["/; s/!.*/"]=/
13279p
13280g
13281s/^[^!]*!//
13282:repl
13283t repl
13284s/'"$ac_delim"'$//
13285t delim
13286:nl
13287h
13288s/\(.\{148\}\).*/\1/
13289t more1
13290s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13291p
13292n
13293b repl
13294:more1
13295s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13296p
13297g
13298s/.\{148\}//
13299t nl
13300:delim
13301h
13302s/\(.\{148\}\).*/\1/
13303t more2
13304s/["\\]/\\&/g; s/^/"/; s/$/"/
13305p
13306b
13307:more2
13308s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13309p
13310g
13311s/.\{148\}//
13312t delim
13313' <conf$$subs.awk | sed '
13314/^[^""]/{
13315 N
13316 s/\n//
13317}
13318' >>$CONFIG_STATUS || ac_write_fail=1
13319rm -f conf$$subs.awk
13320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13321_ACAWK
13322cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13323 for (key in S) S_is_set[key] = 1
13324 FS = "\a"
13325
13326}
13327{
13328 line = $ 0
13329 nfields = split(line, field, "@")
13330 substed = 0
13331 len = length(field[1])
13332 for (i = 2; i < nfields; i++) {
13333 key = field[i]
13334 keylen = length(key)
13335 if (S_is_set[key]) {
13336 value = S[key]
13337 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13338 len += length(value) + length(field[++i])
13339 substed = 1
13340 } else
13341 len += 1 + keylen
13342 }
13343
13344 print line
13345}
13346
13347_ACAWK
13348_ACEOF
13349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13350if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13351 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13352else
13353 cat
13354fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13355 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13356$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13357 { (exit 1); exit 1; }; }
13358_ACEOF
13359
13360# VPATH may cause trouble with some makes, so we remove $(srcdir),
13361# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13362# trailing colons and then remove the whole line if VPATH becomes empty
13363# (actually we leave an empty line to preserve line numbers).
13364if test "x$srcdir" = x.; then
13365 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13366s/:*\$(srcdir):*/:/
13367s/:*\${srcdir}:*/:/
13368s/:*@srcdir@:*/:/
13369s/^\([^=]*=[ ]*\):*/\1/
13370s/:*$//
13371s/^[^=]*=[ ]*$//
13372}'
13373fi
13374
13375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13376fi # test -n "$CONFIG_FILES"
13377
13378# Set up the scripts for CONFIG_HEADERS section.
13379# No need to generate them if there are no CONFIG_HEADERS.
13380# This happens for instance with `./config.status Makefile'.
13381if test -n "$CONFIG_HEADERS"; then
13382cat >"$tmp/defines.awk" <<\_ACAWK ||
13383BEGIN {
13384_ACEOF
13385
13386# Transform confdefs.h into an awk script `defines.awk', embedded as
13387# here-document in config.status, that substitutes the proper values into
13388# config.h.in to produce config.h.
13389
13390# Create a delimiter string that does not exist in confdefs.h, to ease
13391# handling of long lines.
13392ac_delim='%!_!# '
13393for ac_last_try in false false :; do
13394 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13395 if test -z "$ac_t"; then
13396 break
13397 elif $ac_last_try; then
13398 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13399$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13400 { (exit 1); exit 1; }; }
13401 else
13402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13403 fi
13404done
13405
13406# For the awk script, D is an array of macro values keyed by name,
13407# likewise P contains macro parameters if any. Preserve backslash
13408# newline sequences.
13409
13410ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13411sed -n '
13412s/.\{148\}/&'"$ac_delim"'/g
13413t rset
13414:rset
13415s/^[ ]*#[ ]*define[ ][ ]*/ /
13416t def
13417d
13418:def
13419s/\\$//
13420t bsnl
13421s/["\\]/\\&/g
13422s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13423D["\1"]=" \3"/p
13424s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13425d
13426:bsnl
13427s/["\\]/\\&/g
13428s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13429D["\1"]=" \3\\\\\\n"\\/p
13430t cont
13431s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13432t cont
13433d
13434:cont
13435n
13436s/.\{148\}/&'"$ac_delim"'/g
13437t clear
13438:clear
13439s/\\$//
13440t bsnlc
13441s/["\\]/\\&/g; s/^/"/; s/$/"/p
13442d
13443:bsnlc
13444s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13445b cont
13446' <confdefs.h | sed '
13447s/'"$ac_delim"'/"\\\
13448"/g' >>$CONFIG_STATUS || ac_write_fail=1
13449
13450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13451 for (key in D) D_is_set[key] = 1
13452 FS = "\a"
13453}
13454/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13455 line = \$ 0
13456 split(line, arg, " ")
13457 if (arg[1] == "#") {
13458 defundef = arg[2]
13459 mac1 = arg[3]
13460 } else {
13461 defundef = substr(arg[1], 2)
13462 mac1 = arg[2]
13463 }
13464 split(mac1, mac2, "(") #)
13465 macro = mac2[1]
13466 prefix = substr(line, 1, index(line, defundef) - 1)
13467 if (D_is_set[macro]) {
13468 # Preserve the white space surrounding the "#".
13469 print prefix "define", macro P[macro] D[macro]
13470 next
13471 } else {
13472 # Replace #undef with comments. This is necessary, for example,
13473 # in the case of _POSIX_SOURCE, which is predefined and required
13474 # on some systems where configure will not decide to define it.
13475 if (defundef == "undef") {
13476 print "/*", prefix defundef, macro, "*/"
13477 next
13478 }
13479 }
13480}
13481{ print }
13482_ACAWK
13483_ACEOF
13484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13485 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13486$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13487 { (exit 1); exit 1; }; }
13488fi # test -n "$CONFIG_HEADERS"
13489
13490
13491eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13492shift
13493for ac_tag
13494do
13495 case $ac_tag in
13496 :[FHLC]) ac_mode=$ac_tag; continue;;
13497 esac
13498 case $ac_mode$ac_tag in
13499 :[FHL]*:*);;
13500 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13501$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13502 { (exit 1); exit 1; }; };;
13503 :[FH]-) ac_tag=-:-;;
13504 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13505 esac
13506 ac_save_IFS=$IFS
13507 IFS=:
13508 set x $ac_tag
13509 IFS=$ac_save_IFS
13510 shift
13511 ac_file=$1
13512 shift
13513
13514 case $ac_mode in
13515 :L) ac_source=$1;;
13516 :[FH])
13517 ac_file_inputs=
13518 for ac_f
13519 do
13520 case $ac_f in
13521 -) ac_f="$tmp/stdin";;
13522 *) # Look for the file first in the build tree, then in the source tree
13523 # (if the path is not absolute). The absolute path cannot be DOS-style,
13524 # because $ac_f cannot contain `:'.
13525 test -f "$ac_f" ||
13526 case $ac_f in
13527 [\\/$]*) false;;
13528 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13529 esac ||
13530 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13531$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13532 { (exit 1); exit 1; }; };;
13533 esac
13534 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13535 ac_file_inputs="$ac_file_inputs '$ac_f'"
13536 done
13537
13538 # Let's still pretend it is `configure' which instantiates (i.e., don't
13539 # use $as_me), people would be surprised to read:
13540 # /* config.h. Generated by config.status. */
13541 configure_input='Generated from '`
13542 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13543 `' by configure.'
13544 if test x"$ac_file" != x-; then
13545 configure_input="$ac_file. $configure_input"
13546 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13547$as_echo "$as_me: creating $ac_file" >&6;}
13548 fi
13549 # Neutralize special characters interpreted by sed in replacement strings.
13550 case $configure_input in #(
13551 *\&* | *\|* | *\\* )
13552 ac_sed_conf_input=`$as_echo "$configure_input" |
13553 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13554 *) ac_sed_conf_input=$configure_input;;
13555 esac
13556
13557 case $ac_tag in
13558 *:-:* | *:-) cat >"$tmp/stdin" \
13559 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13560$as_echo "$as_me: error: could not create $ac_file" >&2;}
13561 { (exit 1); exit 1; }; } ;;
13562 esac
13563 ;;
13564 esac
13565
13566 ac_dir=`$as_dirname -- "$ac_file" ||
13567$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13568 X"$ac_file" : 'X\(//\)[^/]' \| \
13569 X"$ac_file" : 'X\(//\)$' \| \
13570 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13571$as_echo X"$ac_file" |
13572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13573 s//\1/
13574 q
13575 }
13576 /^X\(\/\/\)[^/].*/{
13577 s//\1/
13578 q
13579 }
13580 /^X\(\/\/\)$/{
13581 s//\1/
13582 q
13583 }
13584 /^X\(\/\).*/{
13585 s//\1/
13586 q
13587 }
13588 s/.*/./; q'`
13589 { as_dir="$ac_dir"
13590 case $as_dir in #(
13591 -*) as_dir=./$as_dir;;
13592 esac
13593 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13594 as_dirs=
13595 while :; do
13596 case $as_dir in #(
13597 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13598 *) as_qdir=$as_dir;;
13599 esac
13600 as_dirs="'$as_qdir' $as_dirs"
13601 as_dir=`$as_dirname -- "$as_dir" ||
13602$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13603 X"$as_dir" : 'X\(//\)[^/]' \| \
13604 X"$as_dir" : 'X\(//\)$' \| \
13605 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13606$as_echo X"$as_dir" |
13607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13608 s//\1/
13609 q
13610 }
13611 /^X\(\/\/\)[^/].*/{
13612 s//\1/
13613 q
13614 }
13615 /^X\(\/\/\)$/{
13616 s//\1/
13617 q
13618 }
13619 /^X\(\/\).*/{
13620 s//\1/
13621 q
13622 }
13623 s/.*/./; q'`
13624 test -d "$as_dir" && break
13625 done
13626 test -z "$as_dirs" || eval "mkdir $as_dirs"
13627 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13628$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13629 { (exit 1); exit 1; }; }; }
13630 ac_builddir=.
13631
13632case "$ac_dir" in
13633.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13634*)
13635 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13636 # A ".." for each directory in $ac_dir_suffix.
13637 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13638 case $ac_top_builddir_sub in
13639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13641 esac ;;
13642esac
13643ac_abs_top_builddir=$ac_pwd
13644ac_abs_builddir=$ac_pwd$ac_dir_suffix
13645# for backward compatibility:
13646ac_top_builddir=$ac_top_build_prefix
13647
13648case $srcdir in
13649 .) # We are building in place.
13650 ac_srcdir=.
13651 ac_top_srcdir=$ac_top_builddir_sub
13652 ac_abs_top_srcdir=$ac_pwd ;;
13653 [\\/]* | ?:[\\/]* ) # Absolute name.
13654 ac_srcdir=$srcdir$ac_dir_suffix;
13655 ac_top_srcdir=$srcdir
13656 ac_abs_top_srcdir=$srcdir ;;
13657 *) # Relative name.
13658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13659 ac_top_srcdir=$ac_top_build_prefix$srcdir
13660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13661esac
13662ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13663
13664
13665 case $ac_mode in
13666 :F)
13667 #
13668 # CONFIG_FILE
13669 #
13670
13671 case $INSTALL in
13672 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13673 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13674 esac
13675 ac_MKDIR_P=$MKDIR_P
13676 case $MKDIR_P in
13677 [\\/$]* | ?:[\\/]* ) ;;
13678 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13679 esac
13680_ACEOF
13681
13682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13683# If the template does not know about datarootdir, expand it.
13684# FIXME: This hack should be removed a few years after 2.60.
13685ac_datarootdir_hack=; ac_datarootdir_seen=
13686
13687ac_sed_dataroot='
13688/datarootdir/ {
13689 p
13690 q
13691}
13692/@datadir@/p
13693/@docdir@/p
13694/@infodir@/p
13695/@localedir@/p
13696/@mandir@/p
13697'
13698case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13699*datarootdir*) ac_datarootdir_seen=yes;;
13700*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13701 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13702$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13703_ACEOF
13704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13705 ac_datarootdir_hack='
13706 s&@datadir@&$datadir&g
13707 s&@docdir@&$docdir&g
13708 s&@infodir@&$infodir&g
13709 s&@localedir@&$localedir&g
13710 s&@mandir@&$mandir&g
13711 s&\\\${datarootdir}&$datarootdir&g' ;;
13712esac
13713_ACEOF
13714
13715# Neutralize VPATH when `$srcdir' = `.'.
13716# Shell code in configure.ac might set extrasub.
13717# FIXME: do we really want to maintain this feature?
13718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13719ac_sed_extra="$ac_vpsub
13720$extrasub
13721_ACEOF
13722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13723:t
13724/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13725s|@configure_input@|$ac_sed_conf_input|;t t
13726s&@top_builddir@&$ac_top_builddir_sub&;t t
13727s&@top_build_prefix@&$ac_top_build_prefix&;t t
13728s&@srcdir@&$ac_srcdir&;t t
13729s&@abs_srcdir@&$ac_abs_srcdir&;t t
13730s&@top_srcdir@&$ac_top_srcdir&;t t
13731s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13732s&@builddir@&$ac_builddir&;t t
13733s&@abs_builddir@&$ac_abs_builddir&;t t
13734s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13735s&@INSTALL@&$ac_INSTALL&;t t
13736s&@MKDIR_P@&$ac_MKDIR_P&;t t
13737$ac_datarootdir_hack
13738"
13739eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13740 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13741$as_echo "$as_me: error: could not create $ac_file" >&2;}
13742 { (exit 1); exit 1; }; }
13743
13744test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13745 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13746 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13747 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13748which seems to be undefined. Please make sure it is defined." >&5
13749$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13750which seems to be undefined. Please make sure it is defined." >&2;}
13751
13752 rm -f "$tmp/stdin"
13753 case $ac_file in
13754 -) cat "$tmp/out" && rm -f "$tmp/out";;
13755 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13756 esac \
13757 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13758$as_echo "$as_me: error: could not create $ac_file" >&2;}
13759 { (exit 1); exit 1; }; }
13760 ;;
13761 :H)
13762 #
13763 # CONFIG_HEADER
13764 #
13765 if test x"$ac_file" != x-; then
13766 {
13767 $as_echo "/* $configure_input */" \
13768 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13769 } >"$tmp/config.h" \
13770 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13771$as_echo "$as_me: error: could not create $ac_file" >&2;}
13772 { (exit 1); exit 1; }; }
13773 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13774 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13775$as_echo "$as_me: $ac_file is unchanged" >&6;}
13776 else
13777 rm -f "$ac_file"
13778 mv "$tmp/config.h" "$ac_file" \
13779 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13780$as_echo "$as_me: error: could not create $ac_file" >&2;}
13781 { (exit 1); exit 1; }; }
13782 fi
13783 else
13784 $as_echo "/* $configure_input */" \
13785 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13786 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13787$as_echo "$as_me: error: could not create -" >&2;}
13788 { (exit 1); exit 1; }; }
13789 fi
13790# Compute "$ac_file"'s index in $config_headers.
13791_am_arg="$ac_file"
13792_am_stamp_count=1
13793for _am_header in $config_headers :; do
13794 case $_am_header in
13795 $_am_arg | $_am_arg:* )
13796 break ;;
13797 * )
13798 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13799 esac
13800done
13801echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13802$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13803 X"$_am_arg" : 'X\(//\)[^/]' \| \
13804 X"$_am_arg" : 'X\(//\)$' \| \
13805 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13806$as_echo X"$_am_arg" |
13807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13808 s//\1/
13809 q
13810 }
13811 /^X\(\/\/\)[^/].*/{
13812 s//\1/
13813 q
13814 }
13815 /^X\(\/\/\)$/{
13816 s//\1/
13817 q
13818 }
13819 /^X\(\/\).*/{
13820 s//\1/
13821 q
13822 }
13823 s/.*/./; q'`/stamp-h$_am_stamp_count
13824 ;;
13825
13826 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13827$as_echo "$as_me: executing $ac_file commands" >&6;}
13828 ;;
13829 esac
13830
13831
13832 case $ac_file$ac_mode in
13833 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13834 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13835 # are listed without --file. Let's play safe and only enable the eval
13836 # if we detect the quoting.
13837 case $CONFIG_FILES in
13838 *\'*) eval set x "$CONFIG_FILES" ;;
13839 *) set x $CONFIG_FILES ;;
13840 esac
13841 shift
13842 for mf
13843 do
13844 # Strip MF so we end up with the name of the file.
13845 mf=`echo "$mf" | sed -e 's/:.*$//'`
13846 # Check whether this is an Automake generated Makefile or not.
13847 # We used to match only the files named `Makefile.in', but
13848 # some people rename them; so instead we look at the file content.
13849 # Grep'ing the first line is not enough: some people post-process
13850 # each Makefile.in and add a new line on top of each file to say so.
13851 # Grep'ing the whole file is not good either: AIX grep has a line
13852 # limit of 2048, but all sed's we know have understand at least 4000.
13853 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13854 dirpart=`$as_dirname -- "$mf" ||
13855$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13856 X"$mf" : 'X\(//\)[^/]' \| \
13857 X"$mf" : 'X\(//\)$' \| \
13858 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13859$as_echo X"$mf" |
13860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13861 s//\1/
13862 q
13863 }
13864 /^X\(\/\/\)[^/].*/{
13865 s//\1/
13866 q
13867 }
13868 /^X\(\/\/\)$/{
13869 s//\1/
13870 q
13871 }
13872 /^X\(\/\).*/{
13873 s//\1/
13874 q
13875 }
13876 s/.*/./; q'`
13877 else
13878 continue
13879 fi
13880 # Extract the definition of DEPDIR, am__include, and am__quote
13881 # from the Makefile without running `make'.
13882 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13883 test -z "$DEPDIR" && continue
13884 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13885 test -z "am__include" && continue
13886 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13887 # When using ansi2knr, U may be empty or an underscore; expand it
13888 U=`sed -n 's/^U = //p' < "$mf"`
13889 # Find all dependency output files, they are included files with
13890 # $(DEPDIR) in their names. We invoke sed twice because it is the
13891 # simplest approach to changing $(DEPDIR) to its actual value in the
13892 # expansion.
13893 for file in `sed -n "
13894 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13895 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13896 # Make sure the directory exists.
13897 test -f "$dirpart/$file" && continue
13898 fdir=`$as_dirname -- "$file" ||
13899$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13900 X"$file" : 'X\(//\)[^/]' \| \
13901 X"$file" : 'X\(//\)$' \| \
13902 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13903$as_echo X"$file" |
13904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13905 s//\1/
13906 q
13907 }
13908 /^X\(\/\/\)[^/].*/{
13909 s//\1/
13910 q
13911 }
13912 /^X\(\/\/\)$/{
13913 s//\1/
13914 q
13915 }
13916 /^X\(\/\).*/{
13917 s//\1/
13918 q
13919 }
13920 s/.*/./; q'`
13921 { as_dir=$dirpart/$fdir
13922 case $as_dir in #(
13923 -*) as_dir=./$as_dir;;
13924 esac
13925 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13926 as_dirs=
13927 while :; do
13928 case $as_dir in #(
13929 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13930 *) as_qdir=$as_dir;;
13931 esac
13932 as_dirs="'$as_qdir' $as_dirs"
13933 as_dir=`$as_dirname -- "$as_dir" ||
13934$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13935 X"$as_dir" : 'X\(//\)[^/]' \| \
13936 X"$as_dir" : 'X\(//\)$' \| \
13937 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13938$as_echo X"$as_dir" |
13939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13940 s//\1/
13941 q
13942 }
13943 /^X\(\/\/\)[^/].*/{
13944 s//\1/
13945 q
13946 }
13947 /^X\(\/\/\)$/{
13948 s//\1/
13949 q
13950 }
13951 /^X\(\/\).*/{
13952 s//\1/
13953 q
13954 }
13955 s/.*/./; q'`
13956 test -d "$as_dir" && break
13957 done
13958 test -z "$as_dirs" || eval "mkdir $as_dirs"
13959 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13960$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13961 { (exit 1); exit 1; }; }; }
13962 # echo "creating $dirpart/$file"
13963 echo '# dummy' > "$dirpart/$file"
13964 done
13965 done
13966}
13967 ;;
13968 "libtool":C)
13969
13970 # See if we are running on zsh, and set the options which allow our
13971 # commands through without removal of \ escapes.
13972 if test -n "${ZSH_VERSION+set}" ; then
13973 setopt NO_GLOB_SUBST
13974 fi
13975
13976 cfgfile="${ofile}T"
13977 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13978 $RM "$cfgfile"
13979
13980 cat <<_LT_EOF >> "$cfgfile"
13981#! $SHELL
13982
13983# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13984# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13985# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13986# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13987#
13988# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13989# 2006, 2007, 2008 Free Software Foundation, Inc.
13990# Written by Gordon Matzigkeit, 1996
13991#
13992# This file is part of GNU Libtool.
13993#
13994# GNU Libtool is free software; you can redistribute it and/or
13995# modify it under the terms of the GNU General Public License as
13996# published by the Free Software Foundation; either version 2 of
13997# the License, or (at your option) any later version.
13998#
13999# As a special exception to the GNU General Public License,
14000# if you distribute this file as part of a program or library that
14001# is built using GNU Libtool, you may include this file under the
14002# same distribution terms that you use for the rest of that program.
14003#
14004# GNU Libtool is distributed in the hope that it will be useful,
14005# but WITHOUT ANY WARRANTY; without even the implied warranty of
14006# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14007# GNU General Public License for more details.
14008#
14009# You should have received a copy of the GNU General Public License
14010# along with GNU Libtool; see the file COPYING. If not, a copy
14011# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14012# obtained by writing to the Free Software Foundation, Inc.,
14013# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14014
14015
14016# The names of the tagged configurations supported by this script.
14017available_tags=""
14018
14019# ### BEGIN LIBTOOL CONFIG
14020
14021# Which release of libtool.m4 was used?
14022macro_version=$macro_version
14023macro_revision=$macro_revision
14024
14025# Whether or not to build shared libraries.
14026build_libtool_libs=$enable_shared
14027
14028# Whether or not to build static libraries.
14029build_old_libs=$enable_static
14030
14031# What type of objects to build.
14032pic_mode=$pic_mode
14033
14034# Whether or not to optimize for fast installation.
14035fast_install=$enable_fast_install
14036
14037# The host system.
14038host_alias=$host_alias
14039host=$host
14040host_os=$host_os
14041
14042# The build system.
14043build_alias=$build_alias
14044build=$build
14045build_os=$build_os
14046
14047# A sed program that does not truncate output.
14048SED=$lt_SED
14049
14050# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14051Xsed="\$SED -e 1s/^X//"
14052
14053# A grep program that handles long lines.
14054GREP=$lt_GREP
14055
14056# An ERE matcher.
14057EGREP=$lt_EGREP
14058
14059# A literal string matcher.
14060FGREP=$lt_FGREP
14061
14062# A BSD- or MS-compatible name lister.
14063NM=$lt_NM
14064
14065# Whether we need soft or hard links.
14066LN_S=$lt_LN_S
14067
14068# What is the maximum length of a command?
14069max_cmd_len=$max_cmd_len
14070
14071# Object file suffix (normally "o").
14072objext=$ac_objext
14073
14074# Executable file suffix (normally "").
14075exeext=$exeext
14076
14077# whether the shell understands "unset".
14078lt_unset=$lt_unset
14079
14080# turn spaces into newlines.
14081SP2NL=$lt_lt_SP2NL
14082
14083# turn newlines into spaces.
14084NL2SP=$lt_lt_NL2SP
14085
14086# How to create reloadable object files.
14087reload_flag=$lt_reload_flag
14088reload_cmds=$lt_reload_cmds
14089
14090# An object symbol dumper.
14091OBJDUMP=$lt_OBJDUMP
14092
14093# Method to check whether dependent libraries are shared objects.
14094deplibs_check_method=$lt_deplibs_check_method
14095
14096# Command to use when deplibs_check_method == "file_magic".
14097file_magic_cmd=$lt_file_magic_cmd
14098
14099# The archiver.
14100AR=$lt_AR
14101AR_FLAGS=$lt_AR_FLAGS
14102
14103# A symbol stripping program.
14104STRIP=$lt_STRIP
14105
14106# Commands used to install an old-style archive.
14107RANLIB=$lt_RANLIB
14108old_postinstall_cmds=$lt_old_postinstall_cmds
14109old_postuninstall_cmds=$lt_old_postuninstall_cmds
14110
14111# A C compiler.
14112LTCC=$lt_CC
14113
14114# LTCC compiler flags.
14115LTCFLAGS=$lt_CFLAGS
14116
14117# Take the output of nm and produce a listing of raw symbols and C names.
14118global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14119
14120# Transform the output of nm in a proper C declaration.
14121global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14122
14123# Transform the output of nm in a C name address pair.
14124global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14125
14126# Transform the output of nm in a C name address pair when lib prefix is needed.
14127global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14128
14129# The name of the directory that contains temporary libtool files.
14130objdir=$objdir
14131
14132# Shell to use when invoking shell scripts.
14133SHELL=$lt_SHELL
14134
14135# An echo program that does not interpret backslashes.
14136ECHO=$lt_ECHO
14137
14138# Used to examine libraries when file_magic_cmd begins with "file".
14139MAGIC_CMD=$MAGIC_CMD
14140
14141# Must we lock files when doing compilation?
14142need_locks=$lt_need_locks
14143
14144# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14145DSYMUTIL=$lt_DSYMUTIL
14146
14147# Tool to change global to local symbols on Mac OS X.
14148NMEDIT=$lt_NMEDIT
14149
14150# Tool to manipulate fat objects and archives on Mac OS X.
14151LIPO=$lt_LIPO
14152
14153# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14154OTOOL=$lt_OTOOL
14155
14156# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14157OTOOL64=$lt_OTOOL64
14158
14159# Old archive suffix (normally "a").
14160libext=$libext
14161
14162# Shared library suffix (normally ".so").
14163shrext_cmds=$lt_shrext_cmds
14164
14165# The commands to extract the exported symbol list from a shared archive.
14166extract_expsyms_cmds=$lt_extract_expsyms_cmds
14167
14168# Variables whose values should be saved in libtool wrapper scripts and
14169# restored at link time.
14170variables_saved_for_relink=$lt_variables_saved_for_relink
14171
14172# Do we need the "lib" prefix for modules?
14173need_lib_prefix=$need_lib_prefix
14174
14175# Do we need a version for libraries?
14176need_version=$need_version
14177
14178# Library versioning type.
14179version_type=$version_type
14180
14181# Shared library runtime path variable.
14182runpath_var=$runpath_var
14183
14184# Shared library path variable.
14185shlibpath_var=$shlibpath_var
14186
14187# Is shlibpath searched before the hard-coded library search path?
14188shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14189
14190# Format of library name prefix.
14191libname_spec=$lt_libname_spec
14192
14193# List of archive names. First name is the real one, the rest are links.
14194# The last name is the one that the linker finds with -lNAME
14195library_names_spec=$lt_library_names_spec
14196
14197# The coded name of the library, if different from the real name.
14198soname_spec=$lt_soname_spec
14199
14200# Command to use after installation of a shared archive.
14201postinstall_cmds=$lt_postinstall_cmds
14202
14203# Command to use after uninstallation of a shared archive.
14204postuninstall_cmds=$lt_postuninstall_cmds
14205
14206# Commands used to finish a libtool library installation in a directory.
14207finish_cmds=$lt_finish_cmds
14208
14209# As "finish_cmds", except a single script fragment to be evaled but
14210# not shown.
14211finish_eval=$lt_finish_eval
14212
14213# Whether we should hardcode library paths into libraries.
14214hardcode_into_libs=$hardcode_into_libs
14215
14216# Compile-time system search path for libraries.
14217sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14218
14219# Run-time system search path for libraries.
14220sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14221
14222# Whether dlopen is supported.
14223dlopen_support=$enable_dlopen
14224
14225# Whether dlopen of programs is supported.
14226dlopen_self=$enable_dlopen_self
14227
14228# Whether dlopen of statically linked programs is supported.
14229dlopen_self_static=$enable_dlopen_self_static
14230
14231# Commands to strip libraries.
14232old_striplib=$lt_old_striplib
14233striplib=$lt_striplib
14234
14235
14236# The linker used to build libraries.
14237LD=$lt_LD
14238
14239# Commands used to build an old-style archive.
14240old_archive_cmds=$lt_old_archive_cmds
14241
14242# A language specific compiler.
14243CC=$lt_compiler
14244
14245# Is the compiler the GNU compiler?
14246with_gcc=$GCC
14247
14248# Compiler flag to turn off builtin functions.
14249no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14250
14251# How to pass a linker flag through the compiler.
14252wl=$lt_lt_prog_compiler_wl
14253
14254# Additional compiler flags for building library objects.
14255pic_flag=$lt_lt_prog_compiler_pic
14256
14257# Compiler flag to prevent dynamic linking.
14258link_static_flag=$lt_lt_prog_compiler_static
14259
14260# Does compiler simultaneously support -c and -o options?
14261compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14262
14263# Whether or not to add -lc for building shared libraries.
14264build_libtool_need_lc=$archive_cmds_need_lc
14265
14266# Whether or not to disallow shared libs when runtime libs are static.
14267allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14268
14269# Compiler flag to allow reflexive dlopens.
14270export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14271
14272# Compiler flag to generate shared objects directly from archives.
14273whole_archive_flag_spec=$lt_whole_archive_flag_spec
14274
14275# Whether the compiler copes with passing no objects directly.
14276compiler_needs_object=$lt_compiler_needs_object
14277
14278# Create an old-style archive from a shared archive.
14279old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14280
14281# Create a temporary old-style archive to link instead of a shared archive.
14282old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14283
14284# Commands used to build a shared archive.
14285archive_cmds=$lt_archive_cmds
14286archive_expsym_cmds=$lt_archive_expsym_cmds
14287
14288# Commands used to build a loadable module if different from building
14289# a shared archive.
14290module_cmds=$lt_module_cmds
14291module_expsym_cmds=$lt_module_expsym_cmds
14292
14293# Whether we are building with GNU ld or not.
14294with_gnu_ld=$lt_with_gnu_ld
14295
14296# Flag that allows shared libraries with undefined symbols to be built.
14297allow_undefined_flag=$lt_allow_undefined_flag
14298
14299# Flag that enforces no undefined symbols.
14300no_undefined_flag=$lt_no_undefined_flag
14301
14302# Flag to hardcode \$libdir into a binary during linking.
14303# This must work even if \$libdir does not exist
14304hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14305
14306# If ld is used when linking, flag to hardcode \$libdir into a binary
14307# during linking. This must work even if \$libdir does not exist.
14308hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14309
14310# Whether we need a single "-rpath" flag with a separated argument.
14311hardcode_libdir_separator=$lt_hardcode_libdir_separator
14312
14313# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14314# DIR into the resulting binary.
14315hardcode_direct=$hardcode_direct
14316
14317# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14318# DIR into the resulting binary and the resulting library dependency is
14319# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14320# library is relocated.
14321hardcode_direct_absolute=$hardcode_direct_absolute
14322
14323# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14324# into the resulting binary.
14325hardcode_minus_L=$hardcode_minus_L
14326
14327# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14328# into the resulting binary.
14329hardcode_shlibpath_var=$hardcode_shlibpath_var
14330
14331# Set to "yes" if building a shared library automatically hardcodes DIR
14332# into the library and all subsequent libraries and executables linked
14333# against it.
14334hardcode_automatic=$hardcode_automatic
14335
14336# Set to yes if linker adds runtime paths of dependent libraries
14337# to runtime path list.
14338inherit_rpath=$inherit_rpath
14339
14340# Whether libtool must link a program against all its dependency libraries.
14341link_all_deplibs=$link_all_deplibs
14342
14343# Fix the shell variable \$srcfile for the compiler.
14344fix_srcfile_path=$lt_fix_srcfile_path
14345
14346# Set to "yes" if exported symbols are required.
14347always_export_symbols=$always_export_symbols
14348
14349# The commands to list exported symbols.
14350export_symbols_cmds=$lt_export_symbols_cmds
14351
14352# Symbols that should not be listed in the preloaded symbols.
14353exclude_expsyms=$lt_exclude_expsyms
14354
14355# Symbols that must always be exported.
14356include_expsyms=$lt_include_expsyms
14357
14358# Commands necessary for linking programs (against libraries) with templates.
14359prelink_cmds=$lt_prelink_cmds
14360
14361# Specify filename containing input files.
14362file_list_spec=$lt_file_list_spec
14363
14364# How to hardcode a shared library path into an executable.
14365hardcode_action=$hardcode_action
14366
14367# ### END LIBTOOL CONFIG
14368
14369_LT_EOF
14370
14371 case $host_os in
14372 aix3*)
14373 cat <<\_LT_EOF >> "$cfgfile"
14374# AIX sometimes has problems with the GCC collect2 program. For some
14375# reason, if we set the COLLECT_NAMES environment variable, the problems
14376# vanish in a puff of smoke.
14377if test "X${COLLECT_NAMES+set}" != Xset; then
14378 COLLECT_NAMES=
14379 export COLLECT_NAMES
14380fi
14381_LT_EOF
14382 ;;
14383 esac
14384
14385
14386ltmain="$ac_aux_dir/ltmain.sh"
14387
14388
14389 # We use sed instead of cat because bash on DJGPP gets confused if
14390 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14391 # text mode, it properly converts lines to CR/LF. This bash problem
14392 # is reportedly fixed, but why not run on old versions too?
14393 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14394 || (rm -f "$cfgfile"; exit 1)
14395
14396 case $xsi_shell in
14397 yes)
14398 cat << \_LT_EOF >> "$cfgfile"
14399
14400# func_dirname file append nondir_replacement
14401# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14402# otherwise set result to NONDIR_REPLACEMENT.
14403func_dirname ()
14404{
14405 case ${1} in
14406 */*) func_dirname_result="${1%/*}${2}" ;;
14407 * ) func_dirname_result="${3}" ;;
14408 esac
14409}
14410
14411# func_basename file
14412func_basename ()
14413{
14414 func_basename_result="${1##*/}"
14415}
14416
14417# func_dirname_and_basename file append nondir_replacement
14418# perform func_basename and func_dirname in a single function
14419# call:
14420# dirname: Compute the dirname of FILE. If nonempty,
14421# add APPEND to the result, otherwise set result
14422# to NONDIR_REPLACEMENT.
14423# value returned in "$func_dirname_result"
14424# basename: Compute filename of FILE.
14425# value retuned in "$func_basename_result"
14426# Implementation must be kept synchronized with func_dirname
14427# and func_basename. For efficiency, we do not delegate to
14428# those functions but instead duplicate the functionality here.
14429func_dirname_and_basename ()
14430{
14431 case ${1} in
14432 */*) func_dirname_result="${1%/*}${2}" ;;
14433 * ) func_dirname_result="${3}" ;;
14434 esac
14435 func_basename_result="${1##*/}"
14436}
14437
14438# func_stripname prefix suffix name
14439# strip PREFIX and SUFFIX off of NAME.
14440# PREFIX and SUFFIX must not contain globbing or regex special
14441# characters, hashes, percent signs, but SUFFIX may contain a leading
14442# dot (in which case that matches only a dot).
14443func_stripname ()
14444{
14445 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14446 # positional parameters, so assign one to ordinary parameter first.
14447 func_stripname_result=${3}
14448 func_stripname_result=${func_stripname_result#"${1}"}
14449 func_stripname_result=${func_stripname_result%"${2}"}
14450}
14451
14452# func_opt_split
14453func_opt_split ()
14454{
14455 func_opt_split_opt=${1%%=*}
14456 func_opt_split_arg=${1#*=}
14457}
14458
14459# func_lo2o object
14460func_lo2o ()
14461{
14462 case ${1} in
14463 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14464 *) func_lo2o_result=${1} ;;
14465 esac
14466}
14467
14468# func_xform libobj-or-source
14469func_xform ()
14470{
14471 func_xform_result=${1%.*}.lo
14472}
14473
14474# func_arith arithmetic-term...
14475func_arith ()
14476{
14477 func_arith_result=$(( $* ))
14478}
14479
14480# func_len string
14481# STRING may not start with a hyphen.
14482func_len ()
14483{
14484 func_len_result=${#1}
14485}
14486
14487_LT_EOF
14488 ;;
14489 *) # Bourne compatible functions.
14490 cat << \_LT_EOF >> "$cfgfile"
14491
14492# func_dirname file append nondir_replacement
14493# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14494# otherwise set result to NONDIR_REPLACEMENT.
14495func_dirname ()
14496{
14497 # Extract subdirectory from the argument.
14498 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14499 if test "X$func_dirname_result" = "X${1}"; then
14500 func_dirname_result="${3}"
14501 else
14502 func_dirname_result="$func_dirname_result${2}"
14503 fi
14504}
14505
14506# func_basename file
14507func_basename ()
14508{
14509 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14510}
14511
14512
14513# func_stripname prefix suffix name
14514# strip PREFIX and SUFFIX off of NAME.
14515# PREFIX and SUFFIX must not contain globbing or regex special
14516# characters, hashes, percent signs, but SUFFIX may contain a leading
14517# dot (in which case that matches only a dot).
14518# func_strip_suffix prefix name
14519func_stripname ()
14520{
14521 case ${2} in
14522 .*) func_stripname_result=`$ECHO "X${3}" \
14523 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14524 *) func_stripname_result=`$ECHO "X${3}" \
14525 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14526 esac
14527}
14528
14529# sed scripts:
14530my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14531my_sed_long_arg='1s/^-[^=]*=//'
14532
14533# func_opt_split
14534func_opt_split ()
14535{
14536 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14537 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14538}
14539
14540# func_lo2o object
14541func_lo2o ()
14542{
14543 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14544}
14545
14546# func_xform libobj-or-source
14547func_xform ()
14548{
14549 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14550}
14551
14552# func_arith arithmetic-term...
14553func_arith ()
14554{
14555 func_arith_result=`expr "$@"`
14556}
14557
14558# func_len string
14559# STRING may not start with a hyphen.
14560func_len ()
14561{
14562 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14563}
14564
14565_LT_EOF
14566esac
14567
14568case $lt_shell_append in
14569 yes)
14570 cat << \_LT_EOF >> "$cfgfile"
14571
14572# func_append var value
14573# Append VALUE to the end of shell variable VAR.
14574func_append ()
14575{
14576 eval "$1+=\$2"
14577}
14578_LT_EOF
14579 ;;
14580 *)
14581 cat << \_LT_EOF >> "$cfgfile"
14582
14583# func_append var value
14584# Append VALUE to the end of shell variable VAR.
14585func_append ()
14586{
14587 eval "$1=\$$1\$2"
14588}
14589
14590_LT_EOF
14591 ;;
14592 esac
14593
14594
14595 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14596 || (rm -f "$cfgfile"; exit 1)
14597
14598 mv -f "$cfgfile" "$ofile" ||
14599 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14600 chmod +x "$ofile"
14601
14602 ;;
14603
14604 esac
14605done # for ac_tag
14606
14607
14608{ (exit 0); exit 0; }
14609_ACEOF
14610chmod +x $CONFIG_STATUS
14611ac_clean_files=$ac_clean_files_save
14612
14613test $ac_write_fail = 0 ||
14614 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14615$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14616 { (exit 1); exit 1; }; }
14617
14618
14619# configure is writing to config.log, and then calls config.status.
14620# config.status does its own redirection, appending to config.log.
14621# Unfortunately, on DOS this fails, as config.log is still kept open
14622# by configure, so config.status won't be able to write to it; its
14623# output is simply discarded. So we exec the FD to /dev/null,
14624# effectively closing config.log, so it can be properly (re)opened and
14625# appended to by config.status. When coming back to configure, we
14626# need to make the FD available again.
14627if test "$no_create" != yes; then
14628 ac_cs_success=:
14629 ac_config_status_args=
14630 test "$silent" = yes &&
14631 ac_config_status_args="$ac_config_status_args --quiet"
14632 exec 5>/dev/null
14633 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14634 exec 5>>config.log
14635 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14636 # would make configure fail if this is the last instruction.
14637 $ac_cs_success || { (exit 1); exit 1; }
14638fi
14639if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14640 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14641$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14642fi
14643