blob: b55b66f4af71526da905cf147da3683aec2772d3 [file] [log] [blame]
Adam Tkacfc4cd712009-03-11 11:14:37 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for zlib 1.1.4.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
178fi
179
180 if test $as_have_required = yes && (eval ":
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
196
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530else
531 as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
578case X$lt_ECHO in
579X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583esac
584
585ECHO=${lt_ECHO-echo}
586if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
604$*
605_LT_EOF
606 exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
625
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
636
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
648 IFS="$lt_save_ifs"
649
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
690
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
706 fi
707 fi
708 fi
709 fi
710 fi
711fi
712
713# Copy echo and quote the copy suitably for passing to libtool from
714# the Makefile, instead of quoting the original, which is used later.
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718fi
719
720
721
722
723exec 7<&0 </dev/null 6>&1
724
725# Name of the host.
726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
734ac_clean_files=
735ac_config_libobj_dir=.
736LIBOBJS=
737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
741SHELL=${CONFIG_SHELL-/bin/sh}
742
743# Identity of this package.
744PACKAGE_NAME='zlib'
745PACKAGE_TARNAME='zlib'
746PACKAGE_VERSION='1.1.4'
747PACKAGE_STRING='zlib 1.1.4'
748PACKAGE_BUGREPORT=''
749
750# Factoring default headers for most tests.
751ac_includes_default="\
752#include <stdio.h>
753#ifdef HAVE_SYS_TYPES_H
754# include <sys/types.h>
755#endif
756#ifdef HAVE_SYS_STAT_H
757# include <sys/stat.h>
758#endif
759#ifdef STDC_HEADERS
760# include <stdlib.h>
761# include <stddef.h>
762#else
763# ifdef HAVE_STDLIB_H
764# include <stdlib.h>
765# endif
766#endif
767#ifdef HAVE_STRING_H
768# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769# include <memory.h>
770# endif
771# include <string.h>
772#endif
773#ifdef HAVE_STRINGS_H
774# include <strings.h>
775#endif
776#ifdef HAVE_INTTYPES_H
777# include <inttypes.h>
778#endif
779#ifdef HAVE_STDINT_H
780# include <stdint.h>
781#endif
782#ifdef HAVE_UNISTD_H
783# include <unistd.h>
784#endif"
785
786ac_subst_vars='LTLIBOBJS
787LIBOBJS
788CPP
789OTOOL64
790OTOOL
791LIPO
792NMEDIT
793DSYMUTIL
794lt_ECHO
795RANLIB
796AR
797OBJDUMP
798LN_S
799NM
800ac_ct_DUMPBIN
801DUMPBIN
802LD
803FGREP
804EGREP
805GREP
806SED
807host_os
808host_vendor
809host_cpu
810host
811build_os
812build_vendor
813build_cpu
814build
815LIBTOOL
816am__fastdepCC_FALSE
817am__fastdepCC_TRUE
818CCDEPMODE
819AMDEPBACKSLASH
820AMDEP_FALSE
821AMDEP_TRUE
822am__quote
823am__include
824DEPDIR
825OBJEXT
826EXEEXT
827ac_ct_CC
828CPPFLAGS
829LDFLAGS
830CFLAGS
831CC
832am__untar
833am__tar
834AMTAR
835am__leading_dot
836SET_MAKE
837AWK
838mkdir_p
839MKDIR_P
840INSTALL_STRIP_PROGRAM
841STRIP
842install_sh
843MAKEINFO
844AUTOHEADER
845AUTOMAKE
846AUTOCONF
847ACLOCAL
848VERSION
849PACKAGE
850CYGPATH_W
851am__isrc
852INSTALL_DATA
853INSTALL_SCRIPT
854INSTALL_PROGRAM
855target_alias
856host_alias
857build_alias
858LIBS
859ECHO_T
860ECHO_N
861ECHO_C
862DEFS
863mandir
864localedir
865libdir
866psdir
867pdfdir
868dvidir
869htmldir
870infodir
871docdir
872oldincludedir
873includedir
874localstatedir
875sharedstatedir
876sysconfdir
877datadir
878datarootdir
879libexecdir
880sbindir
881bindir
882program_transform_name
883prefix
884exec_prefix
885PACKAGE_BUGREPORT
886PACKAGE_STRING
887PACKAGE_VERSION
888PACKAGE_TARNAME
889PACKAGE_NAME
890PATH_SEPARATOR
891SHELL'
892ac_subst_files=''
893ac_user_opts='
894enable_option_checking
895enable_dependency_tracking
896enable_shared
897enable_static
898with_pic
899enable_fast_install
900with_gnu_ld
901enable_libtool_lock
902'
903 ac_precious_vars='build_alias
904host_alias
905target_alias
906CC
907CFLAGS
908LDFLAGS
909LIBS
910CPPFLAGS
911CPP'
912
913
914# Initialize some variables set by options.
915ac_init_help=
916ac_init_version=false
917ac_unrecognized_opts=
918ac_unrecognized_sep=
919# The variables have the same names as the options, with
920# dashes changed to underlines.
921cache_file=/dev/null
922exec_prefix=NONE
923no_create=
924no_recursion=
925prefix=NONE
926program_prefix=NONE
927program_suffix=NONE
928program_transform_name=s,x,x,
929silent=
930site=
931srcdir=
932verbose=
933x_includes=NONE
934x_libraries=NONE
935
936# Installation directory options.
937# These are left unexpanded so users can "make install exec_prefix=/foo"
938# and all the variables that are supposed to be based on exec_prefix
939# by default will actually change.
940# Use braces instead of parens because sh, perl, etc. also accept them.
941# (The list follows the same order as the GNU Coding Standards.)
942bindir='${exec_prefix}/bin'
943sbindir='${exec_prefix}/sbin'
944libexecdir='${exec_prefix}/libexec'
945datarootdir='${prefix}/share'
946datadir='${datarootdir}'
947sysconfdir='${prefix}/etc'
948sharedstatedir='${prefix}/com'
949localstatedir='${prefix}/var'
950includedir='${prefix}/include'
951oldincludedir='/usr/include'
952docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
953infodir='${datarootdir}/info'
954htmldir='${docdir}'
955dvidir='${docdir}'
956pdfdir='${docdir}'
957psdir='${docdir}'
958libdir='${exec_prefix}/lib'
959localedir='${datarootdir}/locale'
960mandir='${datarootdir}/man'
961
962ac_prev=
963ac_dashdash=
964for ac_option
965do
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
968 eval $ac_prev=\$ac_option
969 ac_prev=
970 continue
971 fi
972
973 case $ac_option in
974 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 *) ac_optarg=yes ;;
976 esac
977
978 # Accept the important Cygnus configure options, so we can diagnose typos.
979
980 case $ac_dashdash$ac_option in
981 --)
982 ac_dashdash=yes ;;
983
984 -bindir | --bindir | --bindi | --bind | --bin | --bi)
985 ac_prev=bindir ;;
986 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
987 bindir=$ac_optarg ;;
988
989 -build | --build | --buil | --bui | --bu)
990 ac_prev=build_alias ;;
991 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
992 build_alias=$ac_optarg ;;
993
994 -cache-file | --cache-file | --cache-fil | --cache-fi \
995 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
996 ac_prev=cache_file ;;
997 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
998 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
999 cache_file=$ac_optarg ;;
1000
1001 --config-cache | -C)
1002 cache_file=config.cache ;;
1003
1004 -datadir | --datadir | --datadi | --datad)
1005 ac_prev=datadir ;;
1006 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1007 datadir=$ac_optarg ;;
1008
1009 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1010 | --dataroo | --dataro | --datar)
1011 ac_prev=datarootdir ;;
1012 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1013 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1014 datarootdir=$ac_optarg ;;
1015
1016 -disable-* | --disable-*)
1017 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1025 *"
1026"enable_$ac_useropt"
1027"*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=no ;;
1032
1033 -docdir | --docdir | --docdi | --doc | --do)
1034 ac_prev=docdir ;;
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir=$ac_optarg ;;
1037
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039 ac_prev=dvidir ;;
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir=$ac_optarg ;;
1042
1043 -enable-* | --enable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1052 *"
1053"enable_$ac_useropt"
1054"*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=\$ac_optarg ;;
1059
1060 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062 | --exec | --exe | --ex)
1063 ac_prev=exec_prefix ;;
1064 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066 | --exec=* | --exe=* | --ex=*)
1067 exec_prefix=$ac_optarg ;;
1068
1069 -gas | --gas | --ga | --g)
1070 # Obsolete; use --with-gas.
1071 with_gas=yes ;;
1072
1073 -help | --help | --hel | --he | -h)
1074 ac_init_help=long ;;
1075 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076 ac_init_help=recursive ;;
1077 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078 ac_init_help=short ;;
1079
1080 -host | --host | --hos | --ho)
1081 ac_prev=host_alias ;;
1082 -host=* | --host=* | --hos=* | --ho=*)
1083 host_alias=$ac_optarg ;;
1084
1085 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086 ac_prev=htmldir ;;
1087 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088 | --ht=*)
1089 htmldir=$ac_optarg ;;
1090
1091 -includedir | --includedir | --includedi | --included | --include \
1092 | --includ | --inclu | --incl | --inc)
1093 ac_prev=includedir ;;
1094 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095 | --includ=* | --inclu=* | --incl=* | --inc=*)
1096 includedir=$ac_optarg ;;
1097
1098 -infodir | --infodir | --infodi | --infod | --info | --inf)
1099 ac_prev=infodir ;;
1100 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101 infodir=$ac_optarg ;;
1102
1103 -libdir | --libdir | --libdi | --libd)
1104 ac_prev=libdir ;;
1105 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106 libdir=$ac_optarg ;;
1107
1108 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109 | --libexe | --libex | --libe)
1110 ac_prev=libexecdir ;;
1111 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112 | --libexe=* | --libex=* | --libe=*)
1113 libexecdir=$ac_optarg ;;
1114
1115 -localedir | --localedir | --localedi | --localed | --locale)
1116 ac_prev=localedir ;;
1117 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118 localedir=$ac_optarg ;;
1119
1120 -localstatedir | --localstatedir | --localstatedi | --localstated \
1121 | --localstate | --localstat | --localsta | --localst | --locals)
1122 ac_prev=localstatedir ;;
1123 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125 localstatedir=$ac_optarg ;;
1126
1127 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128 ac_prev=mandir ;;
1129 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130 mandir=$ac_optarg ;;
1131
1132 -nfp | --nfp | --nf)
1133 # Obsolete; use --without-fp.
1134 with_fp=no ;;
1135
1136 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137 | --no-cr | --no-c | -n)
1138 no_create=yes ;;
1139
1140 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142 no_recursion=yes ;;
1143
1144 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146 | --oldin | --oldi | --old | --ol | --o)
1147 ac_prev=oldincludedir ;;
1148 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151 oldincludedir=$ac_optarg ;;
1152
1153 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154 ac_prev=prefix ;;
1155 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156 prefix=$ac_optarg ;;
1157
1158 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159 | --program-pre | --program-pr | --program-p)
1160 ac_prev=program_prefix ;;
1161 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163 program_prefix=$ac_optarg ;;
1164
1165 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166 | --program-suf | --program-su | --program-s)
1167 ac_prev=program_suffix ;;
1168 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170 program_suffix=$ac_optarg ;;
1171
1172 -program-transform-name | --program-transform-name \
1173 | --program-transform-nam | --program-transform-na \
1174 | --program-transform-n | --program-transform- \
1175 | --program-transform | --program-transfor \
1176 | --program-transfo | --program-transf \
1177 | --program-trans | --program-tran \
1178 | --progr-tra | --program-tr | --program-t)
1179 ac_prev=program_transform_name ;;
1180 -program-transform-name=* | --program-transform-name=* \
1181 | --program-transform-nam=* | --program-transform-na=* \
1182 | --program-transform-n=* | --program-transform-=* \
1183 | --program-transform=* | --program-transfor=* \
1184 | --program-transfo=* | --program-transf=* \
1185 | --program-trans=* | --program-tran=* \
1186 | --progr-tra=* | --program-tr=* | --program-t=*)
1187 program_transform_name=$ac_optarg ;;
1188
1189 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190 ac_prev=pdfdir ;;
1191 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192 pdfdir=$ac_optarg ;;
1193
1194 -psdir | --psdir | --psdi | --psd | --ps)
1195 ac_prev=psdir ;;
1196 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197 psdir=$ac_optarg ;;
1198
1199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200 | -silent | --silent | --silen | --sile | --sil)
1201 silent=yes ;;
1202
1203 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204 ac_prev=sbindir ;;
1205 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206 | --sbi=* | --sb=*)
1207 sbindir=$ac_optarg ;;
1208
1209 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211 | --sharedst | --shareds | --shared | --share | --shar \
1212 | --sha | --sh)
1213 ac_prev=sharedstatedir ;;
1214 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217 | --sha=* | --sh=*)
1218 sharedstatedir=$ac_optarg ;;
1219
1220 -site | --site | --sit)
1221 ac_prev=site ;;
1222 -site=* | --site=* | --sit=*)
1223 site=$ac_optarg ;;
1224
1225 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226 ac_prev=srcdir ;;
1227 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228 srcdir=$ac_optarg ;;
1229
1230 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231 | --syscon | --sysco | --sysc | --sys | --sy)
1232 ac_prev=sysconfdir ;;
1233 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235 sysconfdir=$ac_optarg ;;
1236
1237 -target | --target | --targe | --targ | --tar | --ta | --t)
1238 ac_prev=target_alias ;;
1239 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240 target_alias=$ac_optarg ;;
1241
1242 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243 verbose=yes ;;
1244
1245 -version | --version | --versio | --versi | --vers | -V)
1246 ac_init_version=: ;;
1247
1248 -with-* | --with-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1253 { (exit 1); exit 1; }; }
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1257 *"
1258"with_$ac_useropt"
1259"*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=\$ac_optarg ;;
1264
1265 -without-* | --without-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1270 { (exit 1); exit 1; }; }
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1274 *"
1275"with_$ac_useropt"
1276"*) ;;
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1279 esac
1280 eval with_$ac_useropt=no ;;
1281
1282 --x)
1283 # Obsolete; use --with-x.
1284 with_x=yes ;;
1285
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291 x_includes=$ac_optarg ;;
1292
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298 x_libraries=$ac_optarg ;;
1299
1300 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1301Try \`$0 --help' for more information." >&2
1302 { (exit 1); exit 1; }; }
1303 ;;
1304
1305 *=*)
1306 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1309 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1310 { (exit 1); exit 1; }; }
1311 eval $ac_envvar=\$ac_optarg
1312 export $ac_envvar ;;
1313
1314 *)
1315 # FIXME: should be removed in autoconf 3.0.
1316 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1320 ;;
1321
1322 esac
1323done
1324
1325if test -n "$ac_prev"; then
1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1328 { (exit 1); exit 1; }; }
1329fi
1330
1331if test -n "$ac_unrecognized_opts"; then
1332 case $enable_option_checking in
1333 no) ;;
1334 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1335 { (exit 1); exit 1; }; } ;;
1336 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1337 esac
1338fi
1339
1340# Check all directory arguments for consistency.
1341for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342 datadir sysconfdir sharedstatedir localstatedir includedir \
1343 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344 libdir localedir mandir
1345do
1346 eval ac_val=\$$ac_var
1347 # Remove trailing slashes.
1348 case $ac_val in
1349 */ )
1350 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1351 eval $ac_var=\$ac_val;;
1352 esac
1353 # Be sure to have absolute directory names.
1354 case $ac_val in
1355 [\\/$]* | ?:[\\/]* ) continue;;
1356 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357 esac
1358 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1359 { (exit 1); exit 1; }; }
1360done
1361
1362# There might be people who depend on the old broken behavior: `$host'
1363# used to hold the argument of --host etc.
1364# FIXME: To remove some day.
1365build=$build_alias
1366host=$host_alias
1367target=$target_alias
1368
1369# FIXME: To remove some day.
1370if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
1373 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1374 If a cross compiler is detected then cross compile mode will be used." >&2
1375 elif test "x$build_alias" != "x$host_alias"; then
1376 cross_compiling=yes
1377 fi
1378fi
1379
1380ac_tool_prefix=
1381test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382
1383test "$silent" = yes && exec 6>/dev/null
1384
1385
1386ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387ac_ls_di=`ls -di .` &&
1388ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1389 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1390 { (exit 1); exit 1; }; }
1391test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1393 { (exit 1); exit 1; }; }
1394
1395
1396# Find the source files, if location was not specified.
1397if test -z "$srcdir"; then
1398 ac_srcdir_defaulted=yes
1399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir=`$as_dirname -- "$as_myself" ||
1401$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$as_myself" : 'X\(//\)[^/]' \| \
1403 X"$as_myself" : 'X\(//\)$' \| \
1404 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405$as_echo X"$as_myself" |
1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)[^/].*/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\/\)$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\).*/{
1419 s//\1/
1420 q
1421 }
1422 s/.*/./; q'`
1423 srcdir=$ac_confdir
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 srcdir=..
1426 fi
1427else
1428 ac_srcdir_defaulted=no
1429fi
1430if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1433 { (exit 1); exit 1; }; }
1434fi
1435ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436ac_abs_confdir=`(
1437 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1438 { (exit 1); exit 1; }; }
1439 pwd)`
1440# When building in place, set srcdir=.
1441if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 srcdir=.
1443fi
1444# Remove unnecessary trailing slashes from srcdir.
1445# Double slashes in file names in object file debugging info
1446# mess up M-x gdb in Emacs.
1447case $srcdir in
1448*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449esac
1450for ac_var in $ac_precious_vars; do
1451 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_env_${ac_var}_value=\$${ac_var}
1453 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455done
1456
1457#
1458# Report the --help message.
1459#
1460if test "$ac_init_help" = "long"; then
1461 # Omit some internal or obsolete options to make the list less imposing.
1462 # This message is too long to be a string in the A/UX 3.1 sh.
1463 cat <<_ACEOF
1464\`configure' configures zlib 1.1.4 to adapt to many kinds of systems.
1465
1466Usage: $0 [OPTION]... [VAR=VALUE]...
1467
1468To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469VAR=VALUE. See below for descriptions of some of the useful variables.
1470
1471Defaults for the options are specified in brackets.
1472
1473Configuration:
1474 -h, --help display this help and exit
1475 --help=short display options specific to this package
1476 --help=recursive display the short help of all the included packages
1477 -V, --version display version information and exit
1478 -q, --quiet, --silent do not print \`checking...' messages
1479 --cache-file=FILE cache test results in FILE [disabled]
1480 -C, --config-cache alias for \`--cache-file=config.cache'
1481 -n, --no-create do not create output files
1482 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483
1484Installation directories:
1485 --prefix=PREFIX install architecture-independent files in PREFIX
1486 [$ac_default_prefix]
1487 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 [PREFIX]
1489
1490By default, \`make install' will install all the files in
1491\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1492an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493for instance \`--prefix=\$HOME'.
1494
1495For better control, use the options below.
1496
1497Fine tuning of the installation directories:
1498 --bindir=DIR user executables [EPREFIX/bin]
1499 --sbindir=DIR system admin executables [EPREFIX/sbin]
1500 --libexecdir=DIR program executables [EPREFIX/libexec]
1501 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1502 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1503 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1504 --libdir=DIR object code libraries [EPREFIX/lib]
1505 --includedir=DIR C header files [PREFIX/include]
1506 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1507 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1508 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1509 --infodir=DIR info documentation [DATAROOTDIR/info]
1510 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1511 --mandir=DIR man documentation [DATAROOTDIR/man]
1512 --docdir=DIR documentation root [DATAROOTDIR/doc/zlib]
1513 --htmldir=DIR html documentation [DOCDIR]
1514 --dvidir=DIR dvi documentation [DOCDIR]
1515 --pdfdir=DIR pdf documentation [DOCDIR]
1516 --psdir=DIR ps documentation [DOCDIR]
1517_ACEOF
1518
1519 cat <<\_ACEOF
1520
1521Program names:
1522 --program-prefix=PREFIX prepend PREFIX to installed program names
1523 --program-suffix=SUFFIX append SUFFIX to installed program names
1524 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1525
1526System types:
1527 --build=BUILD configure for building on BUILD [guessed]
1528 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1529_ACEOF
1530fi
1531
1532if test -n "$ac_init_help"; then
1533 case $ac_init_help in
1534 short | recursive ) echo "Configuration of zlib 1.1.4:";;
1535 esac
1536 cat <<\_ACEOF
1537
1538Optional Features:
1539 --disable-option-checking ignore unrecognized --enable/--with options
1540 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1541 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1542 --disable-dependency-tracking speeds up one-time build
1543 --enable-dependency-tracking do not reject slow dependency extractors
1544 --enable-shared[=PKGS] build shared libraries [default=yes]
1545 --enable-static[=PKGS] build static libraries [default=yes]
1546 --enable-fast-install[=PKGS]
1547 optimize for fast installation [default=yes]
1548 --disable-libtool-lock avoid locking (might break parallel builds)
1549
1550Optional Packages:
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1553 --with-pic try to use only PIC/non-PIC objects [default=use
1554 both]
1555 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1556
1557Some influential environment variables:
1558 CC C compiler command
1559 CFLAGS C compiler flags
1560 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1561 nonstandard directory <lib dir>
1562 LIBS libraries to pass to the linker, e.g. -l<library>
1563 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1564 you have headers in a nonstandard directory <include dir>
1565 CPP C preprocessor
1566
1567Use these variables to override the choices made by `configure' or to help
1568it to find libraries and programs with nonstandard names/locations.
1569
1570_ACEOF
1571ac_status=$?
1572fi
1573
1574if test "$ac_init_help" = "recursive"; then
1575 # If there are subdirs, report their specific --help.
1576 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1577 test -d "$ac_dir" ||
1578 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1579 continue
1580 ac_builddir=.
1581
1582case "$ac_dir" in
1583.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584*)
1585 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1586 # A ".." for each directory in $ac_dir_suffix.
1587 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591 esac ;;
1592esac
1593ac_abs_top_builddir=$ac_pwd
1594ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595# for backward compatibility:
1596ac_top_builddir=$ac_top_build_prefix
1597
1598case $srcdir in
1599 .) # We are building in place.
1600 ac_srcdir=.
1601 ac_top_srcdir=$ac_top_builddir_sub
1602 ac_abs_top_srcdir=$ac_pwd ;;
1603 [\\/]* | ?:[\\/]* ) # Absolute name.
1604 ac_srcdir=$srcdir$ac_dir_suffix;
1605 ac_top_srcdir=$srcdir
1606 ac_abs_top_srcdir=$srcdir ;;
1607 *) # Relative name.
1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611esac
1612ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614 cd "$ac_dir" || { ac_status=$?; continue; }
1615 # Check for guested configure.
1616 if test -f "$ac_srcdir/configure.gnu"; then
1617 echo &&
1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619 elif test -f "$ac_srcdir/configure"; then
1620 echo &&
1621 $SHELL "$ac_srcdir/configure" --help=recursive
1622 else
1623 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 fi || ac_status=$?
1625 cd "$ac_pwd" || { ac_status=$?; break; }
1626 done
1627fi
1628
1629test -n "$ac_init_help" && exit $ac_status
1630if $ac_init_version; then
1631 cat <<\_ACEOF
1632zlib configure 1.1.4
1633generated by GNU Autoconf 2.63
1634
1635Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16362002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1637This configure script is free software; the Free Software Foundation
1638gives unlimited permission to copy, distribute and modify it.
1639_ACEOF
1640 exit
1641fi
1642cat >config.log <<_ACEOF
1643This file contains any messages produced by compilers while
1644running configure, to aid debugging if configure makes a mistake.
1645
1646It was created by zlib $as_me 1.1.4, which was
1647generated by GNU Autoconf 2.63. Invocation command line was
1648
1649 $ $0 $@
1650
1651_ACEOF
1652exec 5>>config.log
1653{
1654cat <<_ASUNAME
1655## --------- ##
1656## Platform. ##
1657## --------- ##
1658
1659hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1660uname -m = `(uname -m) 2>/dev/null || echo unknown`
1661uname -r = `(uname -r) 2>/dev/null || echo unknown`
1662uname -s = `(uname -s) 2>/dev/null || echo unknown`
1663uname -v = `(uname -v) 2>/dev/null || echo unknown`
1664
1665/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1666/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1667
1668/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1669/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1670/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1671/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1672/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1673/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1674/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1675
1676_ASUNAME
1677
1678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679for as_dir in $PATH
1680do
1681 IFS=$as_save_IFS
1682 test -z "$as_dir" && as_dir=.
1683 $as_echo "PATH: $as_dir"
1684done
1685IFS=$as_save_IFS
1686
1687} >&5
1688
1689cat >&5 <<_ACEOF
1690
1691
1692## ----------- ##
1693## Core tests. ##
1694## ----------- ##
1695
1696_ACEOF
1697
1698
1699# Keep a trace of the command line.
1700# Strip out --no-create and --no-recursion so they do not pile up.
1701# Strip out --silent because we don't want to record it for future runs.
1702# Also quote any args containing shell meta-characters.
1703# Make two passes to allow for proper duplicate-argument suppression.
1704ac_configure_args=
1705ac_configure_args0=
1706ac_configure_args1=
1707ac_must_keep_next=false
1708for ac_pass in 1 2
1709do
1710 for ac_arg
1711 do
1712 case $ac_arg in
1713 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1715 | -silent | --silent | --silen | --sile | --sil)
1716 continue ;;
1717 *\'*)
1718 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1719 esac
1720 case $ac_pass in
1721 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1722 2)
1723 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1724 if test $ac_must_keep_next = true; then
1725 ac_must_keep_next=false # Got value, back to normal.
1726 else
1727 case $ac_arg in
1728 *=* | --config-cache | -C | -disable-* | --disable-* \
1729 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1730 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1731 | -with-* | --with-* | -without-* | --without-* | --x)
1732 case "$ac_configure_args0 " in
1733 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1734 esac
1735 ;;
1736 -* ) ac_must_keep_next=true ;;
1737 esac
1738 fi
1739 ac_configure_args="$ac_configure_args '$ac_arg'"
1740 ;;
1741 esac
1742 done
1743done
1744$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1745$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1746
1747# When interrupted or exit'd, cleanup temporary files, and complete
1748# config.log. We remove comments because anyway the quotes in there
1749# would cause problems or look ugly.
1750# WARNING: Use '\'' to represent an apostrophe within the trap.
1751# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1752trap 'exit_status=$?
1753 # Save into config.log some information that might help in debugging.
1754 {
1755 echo
1756
1757 cat <<\_ASBOX
1758## ---------------- ##
1759## Cache variables. ##
1760## ---------------- ##
1761_ASBOX
1762 echo
1763 # The following way of writing the cache mishandles newlines in values,
1764(
1765 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1766 eval ac_val=\$$ac_var
1767 case $ac_val in #(
1768 *${as_nl}*)
1769 case $ac_var in #(
1770 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1771$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1772 esac
1773 case $ac_var in #(
1774 _ | IFS | as_nl) ;; #(
1775 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1776 *) $as_unset $ac_var ;;
1777 esac ;;
1778 esac
1779 done
1780 (set) 2>&1 |
1781 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1782 *${as_nl}ac_space=\ *)
1783 sed -n \
1784 "s/'\''/'\''\\\\'\'''\''/g;
1785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1786 ;; #(
1787 *)
1788 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1789 ;;
1790 esac |
1791 sort
1792)
1793 echo
1794
1795 cat <<\_ASBOX
1796## ----------------- ##
1797## Output variables. ##
1798## ----------------- ##
1799_ASBOX
1800 echo
1801 for ac_var in $ac_subst_vars
1802 do
1803 eval ac_val=\$$ac_var
1804 case $ac_val in
1805 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806 esac
1807 $as_echo "$ac_var='\''$ac_val'\''"
1808 done | sort
1809 echo
1810
1811 if test -n "$ac_subst_files"; then
1812 cat <<\_ASBOX
1813## ------------------- ##
1814## File substitutions. ##
1815## ------------------- ##
1816_ASBOX
1817 echo
1818 for ac_var in $ac_subst_files
1819 do
1820 eval ac_val=\$$ac_var
1821 case $ac_val in
1822 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1823 esac
1824 $as_echo "$ac_var='\''$ac_val'\''"
1825 done | sort
1826 echo
1827 fi
1828
1829 if test -s confdefs.h; then
1830 cat <<\_ASBOX
1831## ----------- ##
1832## confdefs.h. ##
1833## ----------- ##
1834_ASBOX
1835 echo
1836 cat confdefs.h
1837 echo
1838 fi
1839 test "$ac_signal" != 0 &&
1840 $as_echo "$as_me: caught signal $ac_signal"
1841 $as_echo "$as_me: exit $exit_status"
1842 } >&5
1843 rm -f core *.core core.conftest.* &&
1844 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1845 exit $exit_status
1846' 0
1847for ac_signal in 1 2 13 15; do
1848 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1849done
1850ac_signal=0
1851
1852# confdefs.h avoids OS command line length limits that DEFS can exceed.
1853rm -f -r conftest* confdefs.h
1854
1855# Predefined preprocessor variables.
1856
1857cat >>confdefs.h <<_ACEOF
1858#define PACKAGE_NAME "$PACKAGE_NAME"
1859_ACEOF
1860
1861
1862cat >>confdefs.h <<_ACEOF
1863#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1864_ACEOF
1865
1866
1867cat >>confdefs.h <<_ACEOF
1868#define PACKAGE_VERSION "$PACKAGE_VERSION"
1869_ACEOF
1870
1871
1872cat >>confdefs.h <<_ACEOF
1873#define PACKAGE_STRING "$PACKAGE_STRING"
1874_ACEOF
1875
1876
1877cat >>confdefs.h <<_ACEOF
1878#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1879_ACEOF
1880
1881
1882# Let the site file select an alternate cache file if it wants to.
1883# Prefer an explicitly selected file to automatically selected ones.
1884ac_site_file1=NONE
1885ac_site_file2=NONE
1886if test -n "$CONFIG_SITE"; then
1887 ac_site_file1=$CONFIG_SITE
1888elif test "x$prefix" != xNONE; then
1889 ac_site_file1=$prefix/share/config.site
1890 ac_site_file2=$prefix/etc/config.site
1891else
1892 ac_site_file1=$ac_default_prefix/share/config.site
1893 ac_site_file2=$ac_default_prefix/etc/config.site
1894fi
1895for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1896do
1897 test "x$ac_site_file" = xNONE && continue
1898 if test -r "$ac_site_file"; then
1899 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1900$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1901 sed 's/^/| /' "$ac_site_file" >&5
1902 . "$ac_site_file"
1903 fi
1904done
1905
1906if test -r "$cache_file"; then
1907 # Some versions of bash will fail to source /dev/null (special
1908 # files actually), so we avoid doing that.
1909 if test -f "$cache_file"; then
1910 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1911$as_echo "$as_me: loading cache $cache_file" >&6;}
1912 case $cache_file in
1913 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1914 *) . "./$cache_file";;
1915 esac
1916 fi
1917else
1918 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1919$as_echo "$as_me: creating cache $cache_file" >&6;}
1920 >$cache_file
1921fi
1922
1923# Check that the precious variables saved in the cache have kept the same
1924# value.
1925ac_cache_corrupted=false
1926for ac_var in $ac_precious_vars; do
1927 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1928 eval ac_new_set=\$ac_env_${ac_var}_set
1929 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1930 eval ac_new_val=\$ac_env_${ac_var}_value
1931 case $ac_old_set,$ac_new_set in
1932 set,)
1933 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1934$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1935 ac_cache_corrupted=: ;;
1936 ,set)
1937 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1938$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1939 ac_cache_corrupted=: ;;
1940 ,);;
1941 *)
1942 if test "x$ac_old_val" != "x$ac_new_val"; then
1943 # differences in whitespace do not lead to failure.
1944 ac_old_val_w=`echo x $ac_old_val`
1945 ac_new_val_w=`echo x $ac_new_val`
1946 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1947 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1948$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1949 ac_cache_corrupted=:
1950 else
1951 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1952$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1953 eval $ac_var=\$ac_old_val
1954 fi
1955 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1956$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1957 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1958$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1959 fi;;
1960 esac
1961 # Pass precious variables to config.status.
1962 if test "$ac_new_set" = set; then
1963 case $ac_new_val in
1964 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1965 *) ac_arg=$ac_var=$ac_new_val ;;
1966 esac
1967 case " $ac_configure_args " in
1968 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1969 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1970 esac
1971 fi
1972done
1973if $ac_cache_corrupted; then
1974 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1976 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1977$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1978 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1979$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1980 { (exit 1); exit 1; }; }
1981fi
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007ac_ext=c
2008ac_cpp='$CPP $CPPFLAGS'
2009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012
2013
2014am__api_version='1.10'
2015
2016ac_aux_dir=
2017for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2018 if test -f "$ac_dir/install-sh"; then
2019 ac_aux_dir=$ac_dir
2020 ac_install_sh="$ac_aux_dir/install-sh -c"
2021 break
2022 elif test -f "$ac_dir/install.sh"; then
2023 ac_aux_dir=$ac_dir
2024 ac_install_sh="$ac_aux_dir/install.sh -c"
2025 break
2026 elif test -f "$ac_dir/shtool"; then
2027 ac_aux_dir=$ac_dir
2028 ac_install_sh="$ac_aux_dir/shtool install -c"
2029 break
2030 fi
2031done
2032if test -z "$ac_aux_dir"; then
2033 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2034$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2035 { (exit 1); exit 1; }; }
2036fi
2037
2038# These three variables are undocumented and unsupported,
2039# and are intended to be withdrawn in a future Autoconf release.
2040# They can cause serious problems if a builder's source tree is in a directory
2041# whose full name contains unusual characters.
2042ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2043ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2044ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2045
2046
2047# Find a good install program. We prefer a C program (faster),
2048# so one script is as good as another. But avoid the broken or
2049# incompatible versions:
2050# SysV /etc/install, /usr/sbin/install
2051# SunOS /usr/etc/install
2052# IRIX /sbin/install
2053# AIX /bin/install
2054# AmigaOS /C/install, which installs bootblocks on floppy discs
2055# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2056# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2057# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2058# OS/2's system install, which has a completely different semantic
2059# ./install, which can be erroneously created by make from ./install.sh.
2060# Reject install programs that cannot install multiple files.
2061{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2062$as_echo_n "checking for a BSD-compatible install... " >&6; }
2063if test -z "$INSTALL"; then
2064if test "${ac_cv_path_install+set}" = set; then
2065 $as_echo_n "(cached) " >&6
2066else
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068for as_dir in $PATH
2069do
2070 IFS=$as_save_IFS
2071 test -z "$as_dir" && as_dir=.
2072 # Account for people who put trailing slashes in PATH elements.
2073case $as_dir/ in
2074 ./ | .// | /cC/* | \
2075 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2076 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2077 /usr/ucb/* ) ;;
2078 *)
2079 # OSF1 and SCO ODT 3.0 have their own names for install.
2080 # Don't use installbsd from OSF since it installs stuff as root
2081 # by default.
2082 for ac_prog in ginstall scoinst install; do
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2085 if test $ac_prog = install &&
2086 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2087 # AIX install. It has an incompatible calling convention.
2088 :
2089 elif test $ac_prog = install &&
2090 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2091 # program-specific install script used by HP pwplus--don't use.
2092 :
2093 else
2094 rm -rf conftest.one conftest.two conftest.dir
2095 echo one > conftest.one
2096 echo two > conftest.two
2097 mkdir conftest.dir
2098 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2099 test -s conftest.one && test -s conftest.two &&
2100 test -s conftest.dir/conftest.one &&
2101 test -s conftest.dir/conftest.two
2102 then
2103 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2104 break 3
2105 fi
2106 fi
2107 fi
2108 done
2109 done
2110 ;;
2111esac
2112
2113done
2114IFS=$as_save_IFS
2115
2116rm -rf conftest.one conftest.two conftest.dir
2117
2118fi
2119 if test "${ac_cv_path_install+set}" = set; then
2120 INSTALL=$ac_cv_path_install
2121 else
2122 # As a last resort, use the slow shell script. Don't cache a
2123 # value for INSTALL within a source directory, because that will
2124 # break other packages using the cache if that directory is
2125 # removed, or if the value is a relative name.
2126 INSTALL=$ac_install_sh
2127 fi
2128fi
2129{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2130$as_echo "$INSTALL" >&6; }
2131
2132# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2133# It thinks the first close brace ends the variable substitution.
2134test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2135
2136test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2137
2138test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2139
2140{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2141$as_echo_n "checking whether build environment is sane... " >&6; }
2142# Just in case
2143sleep 1
2144echo timestamp > conftest.file
2145# Do `set' in a subshell so we don't clobber the current shell's
2146# arguments. Must try -L first in case configure is actually a
2147# symlink; some systems play weird games with the mod time of symlinks
2148# (eg FreeBSD returns the mod time of the symlink's containing
2149# directory).
2150if (
2151 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2152 if test "$*" = "X"; then
2153 # -L didn't work.
2154 set X `ls -t $srcdir/configure conftest.file`
2155 fi
2156 rm -f conftest.file
2157 if test "$*" != "X $srcdir/configure conftest.file" \
2158 && test "$*" != "X conftest.file $srcdir/configure"; then
2159
2160 # If neither matched, then we have a broken ls. This can happen
2161 # if, for instance, CONFIG_SHELL is bash and it inherits a
2162 # broken ls alias from the environment. This has actually
2163 # happened. Such a system could not be considered "sane".
2164 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2165alias in your environment" >&5
2166$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2167alias in your environment" >&2;}
2168 { (exit 1); exit 1; }; }
2169 fi
2170
2171 test "$2" = conftest.file
2172 )
2173then
2174 # Ok.
2175 :
2176else
2177 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2178Check your system clock" >&5
2179$as_echo "$as_me: error: newly created file is older than distributed files!
2180Check your system clock" >&2;}
2181 { (exit 1); exit 1; }; }
2182fi
2183{ $as_echo "$as_me:$LINENO: result: yes" >&5
2184$as_echo "yes" >&6; }
2185test "$program_prefix" != NONE &&
2186 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2187# Use a double $ so make ignores it.
2188test "$program_suffix" != NONE &&
2189 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2190# Double any \ or $.
2191# By default was `s,x,x', remove it if useless.
2192ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2193program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2194
2195# expand $ac_aux_dir to an absolute path
2196am_aux_dir=`cd $ac_aux_dir && pwd`
2197
2198test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2199# Use eval to expand $SHELL
2200if eval "$MISSING --run true"; then
2201 am_missing_run="$MISSING --run "
2202else
2203 am_missing_run=
2204 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2205$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2206fi
2207
2208{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2209$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2210if test -z "$MKDIR_P"; then
2211 if test "${ac_cv_path_mkdir+set}" = set; then
2212 $as_echo_n "(cached) " >&6
2213else
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2216do
2217 IFS=$as_save_IFS
2218 test -z "$as_dir" && as_dir=.
2219 for ac_prog in mkdir gmkdir; do
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2222 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2223 'mkdir (GNU coreutils) '* | \
2224 'mkdir (coreutils) '* | \
2225 'mkdir (fileutils) '4.1*)
2226 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2227 break 3;;
2228 esac
2229 done
2230 done
2231done
2232IFS=$as_save_IFS
2233
2234fi
2235
2236 if test "${ac_cv_path_mkdir+set}" = set; then
2237 MKDIR_P="$ac_cv_path_mkdir -p"
2238 else
2239 # As a last resort, use the slow shell script. Don't cache a
2240 # value for MKDIR_P within a source directory, because that will
2241 # break other packages using the cache if that directory is
2242 # removed, or if the value is a relative name.
2243 test -d ./--version && rmdir ./--version
2244 MKDIR_P="$ac_install_sh -d"
2245 fi
2246fi
2247{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2248$as_echo "$MKDIR_P" >&6; }
2249
2250mkdir_p="$MKDIR_P"
2251case $mkdir_p in
2252 [\\/$]* | ?:[\\/]*) ;;
2253 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2254esac
2255
2256for ac_prog in gawk mawk nawk awk
2257do
2258 # Extract the first word of "$ac_prog", so it can be a program name with args.
2259set dummy $ac_prog; ac_word=$2
2260{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2261$as_echo_n "checking for $ac_word... " >&6; }
2262if test "${ac_cv_prog_AWK+set}" = set; then
2263 $as_echo_n "(cached) " >&6
2264else
2265 if test -n "$AWK"; then
2266 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2267else
2268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269for as_dir in $PATH
2270do
2271 IFS=$as_save_IFS
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2275 ac_cv_prog_AWK="$ac_prog"
2276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 break 2
2278 fi
2279done
2280done
2281IFS=$as_save_IFS
2282
2283fi
2284fi
2285AWK=$ac_cv_prog_AWK
2286if test -n "$AWK"; then
2287 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2288$as_echo "$AWK" >&6; }
2289else
2290 { $as_echo "$as_me:$LINENO: result: no" >&5
2291$as_echo "no" >&6; }
2292fi
2293
2294
2295 test -n "$AWK" && break
2296done
2297
2298{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2299$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2300set x ${MAKE-make}
2301ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2302if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2303 $as_echo_n "(cached) " >&6
2304else
2305 cat >conftest.make <<\_ACEOF
2306SHELL = /bin/sh
2307all:
2308 @echo '@@@%%%=$(MAKE)=@@@%%%'
2309_ACEOF
2310# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2311case `${MAKE-make} -f conftest.make 2>/dev/null` in
2312 *@@@%%%=?*=@@@%%%*)
2313 eval ac_cv_prog_make_${ac_make}_set=yes;;
2314 *)
2315 eval ac_cv_prog_make_${ac_make}_set=no;;
2316esac
2317rm -f conftest.make
2318fi
2319if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2320 { $as_echo "$as_me:$LINENO: result: yes" >&5
2321$as_echo "yes" >&6; }
2322 SET_MAKE=
2323else
2324 { $as_echo "$as_me:$LINENO: result: no" >&5
2325$as_echo "no" >&6; }
2326 SET_MAKE="MAKE=${MAKE-make}"
2327fi
2328
2329rm -rf .tst 2>/dev/null
2330mkdir .tst 2>/dev/null
2331if test -d .tst; then
2332 am__leading_dot=.
2333else
2334 am__leading_dot=_
2335fi
2336rmdir .tst 2>/dev/null
2337
2338if test "`cd $srcdir && pwd`" != "`pwd`"; then
2339 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2340 # is not polluted with repeated "-I."
2341 am__isrc=' -I$(srcdir)'
2342 # test to see if srcdir already configured
2343 if test -f $srcdir/config.status; then
2344 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2345$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2346 { (exit 1); exit 1; }; }
2347 fi
2348fi
2349
2350# test whether we have cygpath
2351if test -z "$CYGPATH_W"; then
2352 if (cygpath --version) >/dev/null 2>/dev/null; then
2353 CYGPATH_W='cygpath -w'
2354 else
2355 CYGPATH_W=echo
2356 fi
2357fi
2358
2359
2360# Define the identity of the package.
2361 PACKAGE='zlib'
2362 VERSION='1.1.4'
2363
2364
2365cat >>confdefs.h <<_ACEOF
2366#define PACKAGE "$PACKAGE"
2367_ACEOF
2368
2369
2370cat >>confdefs.h <<_ACEOF
2371#define VERSION "$VERSION"
2372_ACEOF
2373
2374# Some tools Automake needs.
2375
2376ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2377
2378
2379AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2380
2381
2382AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2383
2384
2385AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2386
2387
2388MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2389
2390install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2391
2392# Installed binaries are usually stripped using `strip' when the user
2393# run `make install-strip'. However `strip' might not be the right
2394# tool to use in cross-compilation environments, therefore Automake
2395# will honor the `STRIP' environment variable to overrule this program.
2396if test "$cross_compiling" != no; then
2397 if test -n "$ac_tool_prefix"; then
2398 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2399set dummy ${ac_tool_prefix}strip; ac_word=$2
2400{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2401$as_echo_n "checking for $ac_word... " >&6; }
2402if test "${ac_cv_prog_STRIP+set}" = set; then
2403 $as_echo_n "(cached) " >&6
2404else
2405 if test -n "$STRIP"; then
2406 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2407else
2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409for as_dir in $PATH
2410do
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2415 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 break 2
2418 fi
2419done
2420done
2421IFS=$as_save_IFS
2422
2423fi
2424fi
2425STRIP=$ac_cv_prog_STRIP
2426if test -n "$STRIP"; then
2427 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2428$as_echo "$STRIP" >&6; }
2429else
2430 { $as_echo "$as_me:$LINENO: result: no" >&5
2431$as_echo "no" >&6; }
2432fi
2433
2434
2435fi
2436if test -z "$ac_cv_prog_STRIP"; then
2437 ac_ct_STRIP=$STRIP
2438 # Extract the first word of "strip", so it can be a program name with args.
2439set dummy strip; ac_word=$2
2440{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2441$as_echo_n "checking for $ac_word... " >&6; }
2442if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2443 $as_echo_n "(cached) " >&6
2444else
2445 if test -n "$ac_ct_STRIP"; then
2446 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2447else
2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449for as_dir in $PATH
2450do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_ac_ct_STRIP="strip"
2456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2458 fi
2459done
2460done
2461IFS=$as_save_IFS
2462
2463fi
2464fi
2465ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2466if test -n "$ac_ct_STRIP"; then
2467 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2468$as_echo "$ac_ct_STRIP" >&6; }
2469else
2470 { $as_echo "$as_me:$LINENO: result: no" >&5
2471$as_echo "no" >&6; }
2472fi
2473
2474 if test "x$ac_ct_STRIP" = x; then
2475 STRIP=":"
2476 else
2477 case $cross_compiling:$ac_tool_warned in
2478yes:)
2479{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2481ac_tool_warned=yes ;;
2482esac
2483 STRIP=$ac_ct_STRIP
2484 fi
2485else
2486 STRIP="$ac_cv_prog_STRIP"
2487fi
2488
2489fi
2490INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2491
2492# We need awk for the "check" target. The system "awk" is bad on
2493# some platforms.
2494# Always define AMTAR for backward compatibility.
2495
2496AMTAR=${AMTAR-"${am_missing_run}tar"}
2497
2498am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2499
2500
2501
2502
2503
2504
2505# Checks for programs.
2506ac_ext=c
2507ac_cpp='$CPP $CPPFLAGS'
2508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511if test -n "$ac_tool_prefix"; then
2512 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2513set dummy ${ac_tool_prefix}gcc; ac_word=$2
2514{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2515$as_echo_n "checking for $ac_word... " >&6; }
2516if test "${ac_cv_prog_CC+set}" = set; then
2517 $as_echo_n "(cached) " >&6
2518else
2519 if test -n "$CC"; then
2520 ac_cv_prog_CC="$CC" # Let the user override the test.
2521else
2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523for as_dir in $PATH
2524do
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 break 2
2532 fi
2533done
2534done
2535IFS=$as_save_IFS
2536
2537fi
2538fi
2539CC=$ac_cv_prog_CC
2540if test -n "$CC"; then
2541 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2542$as_echo "$CC" >&6; }
2543else
2544 { $as_echo "$as_me:$LINENO: result: no" >&5
2545$as_echo "no" >&6; }
2546fi
2547
2548
2549fi
2550if test -z "$ac_cv_prog_CC"; then
2551 ac_ct_CC=$CC
2552 # Extract the first word of "gcc", so it can be a program name with args.
2553set dummy gcc; ac_word=$2
2554{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2555$as_echo_n "checking for $ac_word... " >&6; }
2556if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2557 $as_echo_n "(cached) " >&6
2558else
2559 if test -n "$ac_ct_CC"; then
2560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2561else
2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569 ac_cv_prog_ac_ct_CC="gcc"
2570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2572 fi
2573done
2574done
2575IFS=$as_save_IFS
2576
2577fi
2578fi
2579ac_ct_CC=$ac_cv_prog_ac_ct_CC
2580if test -n "$ac_ct_CC"; then
2581 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2582$as_echo "$ac_ct_CC" >&6; }
2583else
2584 { $as_echo "$as_me:$LINENO: result: no" >&5
2585$as_echo "no" >&6; }
2586fi
2587
2588 if test "x$ac_ct_CC" = x; then
2589 CC=""
2590 else
2591 case $cross_compiling:$ac_tool_warned in
2592yes:)
2593{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2595ac_tool_warned=yes ;;
2596esac
2597 CC=$ac_ct_CC
2598 fi
2599else
2600 CC="$ac_cv_prog_CC"
2601fi
2602
2603if test -z "$CC"; then
2604 if test -n "$ac_tool_prefix"; then
2605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2606set dummy ${ac_tool_prefix}cc; ac_word=$2
2607{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2608$as_echo_n "checking for $ac_word... " >&6; }
2609if test "${ac_cv_prog_CC+set}" = set; then
2610 $as_echo_n "(cached) " >&6
2611else
2612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
2614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_CC="${ac_tool_prefix}cc"
2623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626done
2627done
2628IFS=$as_save_IFS
2629
2630fi
2631fi
2632CC=$ac_cv_prog_CC
2633if test -n "$CC"; then
2634 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2635$as_echo "$CC" >&6; }
2636else
2637 { $as_echo "$as_me:$LINENO: result: no" >&5
2638$as_echo "no" >&6; }
2639fi
2640
2641
2642 fi
2643fi
2644if test -z "$CC"; then
2645 # Extract the first word of "cc", so it can be a program name with args.
2646set dummy cc; ac_word=$2
2647{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2648$as_echo_n "checking for $ac_word... " >&6; }
2649if test "${ac_cv_prog_CC+set}" = set; then
2650 $as_echo_n "(cached) " >&6
2651else
2652 if test -n "$CC"; then
2653 ac_cv_prog_CC="$CC" # Let the user override the test.
2654else
2655 ac_prog_rejected=no
2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657for as_dir in $PATH
2658do
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2664 ac_prog_rejected=yes
2665 continue
2666 fi
2667 ac_cv_prog_CC="cc"
2668 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 break 2
2670 fi
2671done
2672done
2673IFS=$as_save_IFS
2674
2675if test $ac_prog_rejected = yes; then
2676 # We found a bogon in the path, so make sure we never use it.
2677 set dummy $ac_cv_prog_CC
2678 shift
2679 if test $# != 0; then
2680 # We chose a different compiler from the bogus one.
2681 # However, it has the same basename, so the bogon will be chosen
2682 # first if we set CC to just the basename; use the full file name.
2683 shift
2684 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2685 fi
2686fi
2687fi
2688fi
2689CC=$ac_cv_prog_CC
2690if test -n "$CC"; then
2691 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2692$as_echo "$CC" >&6; }
2693else
2694 { $as_echo "$as_me:$LINENO: result: no" >&5
2695$as_echo "no" >&6; }
2696fi
2697
2698
2699fi
2700if test -z "$CC"; then
2701 if test -n "$ac_tool_prefix"; then
2702 for ac_prog in cl.exe
2703 do
2704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2705set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2706{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2707$as_echo_n "checking for $ac_word... " >&6; }
2708if test "${ac_cv_prog_CC+set}" = set; then
2709 $as_echo_n "(cached) " >&6
2710else
2711 if test -n "$CC"; then
2712 ac_cv_prog_CC="$CC" # Let the user override the test.
2713else
2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715for as_dir in $PATH
2716do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2722 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2724 fi
2725done
2726done
2727IFS=$as_save_IFS
2728
2729fi
2730fi
2731CC=$ac_cv_prog_CC
2732if test -n "$CC"; then
2733 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2734$as_echo "$CC" >&6; }
2735else
2736 { $as_echo "$as_me:$LINENO: result: no" >&5
2737$as_echo "no" >&6; }
2738fi
2739
2740
2741 test -n "$CC" && break
2742 done
2743fi
2744if test -z "$CC"; then
2745 ac_ct_CC=$CC
2746 for ac_prog in cl.exe
2747do
2748 # Extract the first word of "$ac_prog", so it can be a program name with args.
2749set dummy $ac_prog; ac_word=$2
2750{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2751$as_echo_n "checking for $ac_word... " >&6; }
2752if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2753 $as_echo_n "(cached) " >&6
2754else
2755 if test -n "$ac_ct_CC"; then
2756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2757else
2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765 ac_cv_prog_ac_ct_CC="$ac_prog"
2766 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2768 fi
2769done
2770done
2771IFS=$as_save_IFS
2772
2773fi
2774fi
2775ac_ct_CC=$ac_cv_prog_ac_ct_CC
2776if test -n "$ac_ct_CC"; then
2777 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2778$as_echo "$ac_ct_CC" >&6; }
2779else
2780 { $as_echo "$as_me:$LINENO: result: no" >&5
2781$as_echo "no" >&6; }
2782fi
2783
2784
2785 test -n "$ac_ct_CC" && break
2786done
2787
2788 if test "x$ac_ct_CC" = x; then
2789 CC=""
2790 else
2791 case $cross_compiling:$ac_tool_warned in
2792yes:)
2793{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2795ac_tool_warned=yes ;;
2796esac
2797 CC=$ac_ct_CC
2798 fi
2799fi
2800
2801fi
2802
2803
2804test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2806{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2807See \`config.log' for more details." >&5
2808$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2809See \`config.log' for more details." >&2;}
2810 { (exit 1); exit 1; }; }; }
2811
2812# Provide some information about the compiler.
2813$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2814set X $ac_compile
2815ac_compiler=$2
2816{ (ac_try="$ac_compiler --version >&5"
2817case "(($ac_try" in
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2820esac
2821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2822$as_echo "$ac_try_echo") >&5
2823 (eval "$ac_compiler --version >&5") 2>&5
2824 ac_status=$?
2825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }
2827{ (ac_try="$ac_compiler -v >&5"
2828case "(($ac_try" in
2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830 *) ac_try_echo=$ac_try;;
2831esac
2832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2833$as_echo "$ac_try_echo") >&5
2834 (eval "$ac_compiler -v >&5") 2>&5
2835 ac_status=$?
2836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }
2838{ (ac_try="$ac_compiler -V >&5"
2839case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2842esac
2843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2844$as_echo "$ac_try_echo") >&5
2845 (eval "$ac_compiler -V >&5") 2>&5
2846 ac_status=$?
2847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }
2849
2850cat >conftest.$ac_ext <<_ACEOF
2851/* confdefs.h. */
2852_ACEOF
2853cat confdefs.h >>conftest.$ac_ext
2854cat >>conftest.$ac_ext <<_ACEOF
2855/* end confdefs.h. */
2856
2857int
2858main ()
2859{
2860
2861 ;
2862 return 0;
2863}
2864_ACEOF
2865ac_clean_files_save=$ac_clean_files
2866ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2867# Try to create an executable without -o first, disregard a.out.
2868# It will help us diagnose broken compilers, and finding out an intuition
2869# of exeext.
2870{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2871$as_echo_n "checking for C compiler default output file name... " >&6; }
2872ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2873
2874# The possible output files:
2875ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2876
2877ac_rmfiles=
2878for ac_file in $ac_files
2879do
2880 case $ac_file in
2881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2882 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2883 esac
2884done
2885rm -f $ac_rmfiles
2886
2887if { (ac_try="$ac_link_default"
2888case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891esac
2892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2893$as_echo "$ac_try_echo") >&5
2894 (eval "$ac_link_default") 2>&5
2895 ac_status=$?
2896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; then
2898 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2899# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2900# in a Makefile. We should not override ac_cv_exeext if it was cached,
2901# so that the user can short-circuit this test for compilers unknown to
2902# Autoconf.
2903for ac_file in $ac_files ''
2904do
2905 test -f "$ac_file" || continue
2906 case $ac_file in
2907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2908 ;;
2909 [ab].out )
2910 # We found the default executable, but exeext='' is most
2911 # certainly right.
2912 break;;
2913 *.* )
2914 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2915 then :; else
2916 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2917 fi
2918 # We set ac_cv_exeext here because the later test for it is not
2919 # safe: cross compilers may not add the suffix if given an `-o'
2920 # argument, so we may need to know it at that point already.
2921 # Even if this section looks crufty: it has the advantage of
2922 # actually working.
2923 break;;
2924 * )
2925 break;;
2926 esac
2927done
2928test "$ac_cv_exeext" = no && ac_cv_exeext=
2929
2930else
2931 ac_file=''
2932fi
2933
2934{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2935$as_echo "$ac_file" >&6; }
2936if test -z "$ac_file"; then
2937 $as_echo "$as_me: failed program was:" >&5
2938sed 's/^/| /' conftest.$ac_ext >&5
2939
2940{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2942{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2943See \`config.log' for more details." >&5
2944$as_echo "$as_me: error: C compiler cannot create executables
2945See \`config.log' for more details." >&2;}
2946 { (exit 77); exit 77; }; }; }
2947fi
2948
2949ac_exeext=$ac_cv_exeext
2950
2951# Check that the compiler produces executables we can run. If not, either
2952# the compiler is broken, or we cross compile.
2953{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2954$as_echo_n "checking whether the C compiler works... " >&6; }
2955# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2956# If not cross compiling, check that we can run a simple program.
2957if test "$cross_compiling" != yes; then
2958 if { ac_try='./$ac_file'
2959 { (case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2962esac
2963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2964$as_echo "$ac_try_echo") >&5
2965 (eval "$ac_try") 2>&5
2966 ac_status=$?
2967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2969 cross_compiling=no
2970 else
2971 if test "$cross_compiling" = maybe; then
2972 cross_compiling=yes
2973 else
2974 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2977If you meant to cross compile, use \`--host'.
2978See \`config.log' for more details." >&5
2979$as_echo "$as_me: error: cannot run C compiled programs.
2980If you meant to cross compile, use \`--host'.
2981See \`config.log' for more details." >&2;}
2982 { (exit 1); exit 1; }; }; }
2983 fi
2984 fi
2985fi
2986{ $as_echo "$as_me:$LINENO: result: yes" >&5
2987$as_echo "yes" >&6; }
2988
2989rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2990ac_clean_files=$ac_clean_files_save
2991# Check that the compiler produces executables we can run. If not, either
2992# the compiler is broken, or we cross compile.
2993{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2994$as_echo_n "checking whether we are cross compiling... " >&6; }
2995{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2996$as_echo "$cross_compiling" >&6; }
2997
2998{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2999$as_echo_n "checking for suffix of executables... " >&6; }
3000if { (ac_try="$ac_link"
3001case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004esac
3005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3006$as_echo "$ac_try_echo") >&5
3007 (eval "$ac_link") 2>&5
3008 ac_status=$?
3009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; then
3011 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3012# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3013# work properly (i.e., refer to `conftest.exe'), while it won't with
3014# `rm'.
3015for ac_file in conftest.exe conftest conftest.*; do
3016 test -f "$ac_file" || continue
3017 case $ac_file in
3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3020 break;;
3021 * ) break;;
3022 esac
3023done
3024else
3025 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3028See \`config.log' for more details." >&5
3029$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3030See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }; }
3032fi
3033
3034rm -f conftest$ac_cv_exeext
3035{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3036$as_echo "$ac_cv_exeext" >&6; }
3037
3038rm -f conftest.$ac_ext
3039EXEEXT=$ac_cv_exeext
3040ac_exeext=$EXEEXT
3041{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3042$as_echo_n "checking for suffix of object files... " >&6; }
3043if test "${ac_cv_objext+set}" = set; then
3044 $as_echo_n "(cached) " >&6
3045else
3046 cat >conftest.$ac_ext <<_ACEOF
3047/* confdefs.h. */
3048_ACEOF
3049cat confdefs.h >>conftest.$ac_ext
3050cat >>conftest.$ac_ext <<_ACEOF
3051/* end confdefs.h. */
3052
3053int
3054main ()
3055{
3056
3057 ;
3058 return 0;
3059}
3060_ACEOF
3061rm -f conftest.o conftest.obj
3062if { (ac_try="$ac_compile"
3063case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066esac
3067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3068$as_echo "$ac_try_echo") >&5
3069 (eval "$ac_compile") 2>&5
3070 ac_status=$?
3071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; then
3073 for ac_file in conftest.o conftest.obj conftest.*; do
3074 test -f "$ac_file" || continue;
3075 case $ac_file in
3076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3077 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3078 break;;
3079 esac
3080done
3081else
3082 $as_echo "$as_me: failed program was:" >&5
3083sed 's/^/| /' conftest.$ac_ext >&5
3084
3085{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3088See \`config.log' for more details." >&5
3089$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3090See \`config.log' for more details." >&2;}
3091 { (exit 1); exit 1; }; }; }
3092fi
3093
3094rm -f conftest.$ac_cv_objext conftest.$ac_ext
3095fi
3096{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3097$as_echo "$ac_cv_objext" >&6; }
3098OBJEXT=$ac_cv_objext
3099ac_objext=$OBJEXT
3100{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3101$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3102if test "${ac_cv_c_compiler_gnu+set}" = set; then
3103 $as_echo_n "(cached) " >&6
3104else
3105 cat >conftest.$ac_ext <<_ACEOF
3106/* confdefs.h. */
3107_ACEOF
3108cat confdefs.h >>conftest.$ac_ext
3109cat >>conftest.$ac_ext <<_ACEOF
3110/* end confdefs.h. */
3111
3112int
3113main ()
3114{
3115#ifndef __GNUC__
3116 choke me
3117#endif
3118
3119 ;
3120 return 0;
3121}
3122_ACEOF
3123rm -f conftest.$ac_objext
3124if { (ac_try="$ac_compile"
3125case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128esac
3129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3130$as_echo "$ac_try_echo") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } && {
3138 test -z "$ac_c_werror_flag" ||
3139 test ! -s conftest.err
3140 } && test -s conftest.$ac_objext; then
3141 ac_compiler_gnu=yes
3142else
3143 $as_echo "$as_me: failed program was:" >&5
3144sed 's/^/| /' conftest.$ac_ext >&5
3145
3146 ac_compiler_gnu=no
3147fi
3148
3149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150ac_cv_c_compiler_gnu=$ac_compiler_gnu
3151
3152fi
3153{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3154$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3155if test $ac_compiler_gnu = yes; then
3156 GCC=yes
3157else
3158 GCC=
3159fi
3160ac_test_CFLAGS=${CFLAGS+set}
3161ac_save_CFLAGS=$CFLAGS
3162{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3163$as_echo_n "checking whether $CC accepts -g... " >&6; }
3164if test "${ac_cv_prog_cc_g+set}" = set; then
3165 $as_echo_n "(cached) " >&6
3166else
3167 ac_save_c_werror_flag=$ac_c_werror_flag
3168 ac_c_werror_flag=yes
3169 ac_cv_prog_cc_g=no
3170 CFLAGS="-g"
3171 cat >conftest.$ac_ext <<_ACEOF
3172/* confdefs.h. */
3173_ACEOF
3174cat confdefs.h >>conftest.$ac_ext
3175cat >>conftest.$ac_ext <<_ACEOF
3176/* end confdefs.h. */
3177
3178int
3179main ()
3180{
3181
3182 ;
3183 return 0;
3184}
3185_ACEOF
3186rm -f conftest.$ac_objext
3187if { (ac_try="$ac_compile"
3188case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191esac
3192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3193$as_echo "$ac_try_echo") >&5
3194 (eval "$ac_compile") 2>conftest.er1
3195 ac_status=$?
3196 grep -v '^ *+' conftest.er1 >conftest.err
3197 rm -f conftest.er1
3198 cat conftest.err >&5
3199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } && {
3201 test -z "$ac_c_werror_flag" ||
3202 test ! -s conftest.err
3203 } && test -s conftest.$ac_objext; then
3204 ac_cv_prog_cc_g=yes
3205else
3206 $as_echo "$as_me: failed program was:" >&5
3207sed 's/^/| /' conftest.$ac_ext >&5
3208
3209 CFLAGS=""
3210 cat >conftest.$ac_ext <<_ACEOF
3211/* confdefs.h. */
3212_ACEOF
3213cat confdefs.h >>conftest.$ac_ext
3214cat >>conftest.$ac_ext <<_ACEOF
3215/* end confdefs.h. */
3216
3217int
3218main ()
3219{
3220
3221 ;
3222 return 0;
3223}
3224_ACEOF
3225rm -f conftest.$ac_objext
3226if { (ac_try="$ac_compile"
3227case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230esac
3231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3232$as_echo "$ac_try_echo") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } && {
3240 test -z "$ac_c_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest.$ac_objext; then
3243 :
3244else
3245 $as_echo "$as_me: failed program was:" >&5
3246sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 ac_c_werror_flag=$ac_save_c_werror_flag
3249 CFLAGS="-g"
3250 cat >conftest.$ac_ext <<_ACEOF
3251/* confdefs.h. */
3252_ACEOF
3253cat confdefs.h >>conftest.$ac_ext
3254cat >>conftest.$ac_ext <<_ACEOF
3255/* end confdefs.h. */
3256
3257int
3258main ()
3259{
3260
3261 ;
3262 return 0;
3263}
3264_ACEOF
3265rm -f conftest.$ac_objext
3266if { (ac_try="$ac_compile"
3267case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270esac
3271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3272$as_echo "$ac_try_echo") >&5
3273 (eval "$ac_compile") 2>conftest.er1
3274 ac_status=$?
3275 grep -v '^ *+' conftest.er1 >conftest.err
3276 rm -f conftest.er1
3277 cat conftest.err >&5
3278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } && {
3280 test -z "$ac_c_werror_flag" ||
3281 test ! -s conftest.err
3282 } && test -s conftest.$ac_objext; then
3283 ac_cv_prog_cc_g=yes
3284else
3285 $as_echo "$as_me: failed program was:" >&5
3286sed 's/^/| /' conftest.$ac_ext >&5
3287
3288
3289fi
3290
3291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292fi
3293
3294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295fi
3296
3297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3298 ac_c_werror_flag=$ac_save_c_werror_flag
3299fi
3300{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3301$as_echo "$ac_cv_prog_cc_g" >&6; }
3302if test "$ac_test_CFLAGS" = set; then
3303 CFLAGS=$ac_save_CFLAGS
3304elif test $ac_cv_prog_cc_g = yes; then
3305 if test "$GCC" = yes; then
3306 CFLAGS="-g -O2"
3307 else
3308 CFLAGS="-g"
3309 fi
3310else
3311 if test "$GCC" = yes; then
3312 CFLAGS="-O2"
3313 else
3314 CFLAGS=
3315 fi
3316fi
3317{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3318$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3319if test "${ac_cv_prog_cc_c89+set}" = set; then
3320 $as_echo_n "(cached) " >&6
3321else
3322 ac_cv_prog_cc_c89=no
3323ac_save_CC=$CC
3324cat >conftest.$ac_ext <<_ACEOF
3325/* confdefs.h. */
3326_ACEOF
3327cat confdefs.h >>conftest.$ac_ext
3328cat >>conftest.$ac_ext <<_ACEOF
3329/* end confdefs.h. */
3330#include <stdarg.h>
3331#include <stdio.h>
3332#include <sys/types.h>
3333#include <sys/stat.h>
3334/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3335struct buf { int x; };
3336FILE * (*rcsopen) (struct buf *, struct stat *, int);
3337static char *e (p, i)
3338 char **p;
3339 int i;
3340{
3341 return p[i];
3342}
3343static char *f (char * (*g) (char **, int), char **p, ...)
3344{
3345 char *s;
3346 va_list v;
3347 va_start (v,p);
3348 s = g (p, va_arg (v,int));
3349 va_end (v);
3350 return s;
3351}
3352
3353/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3354 function prototypes and stuff, but not '\xHH' hex character constants.
3355 These don't provoke an error unfortunately, instead are silently treated
3356 as 'x'. The following induces an error, until -std is added to get
3357 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3358 array size at least. It's necessary to write '\x00'==0 to get something
3359 that's true only with -std. */
3360int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3361
3362/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3363 inside strings and character constants. */
3364#define FOO(x) 'x'
3365int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3366
3367int test (int i, double x);
3368struct s1 {int (*f) (int a);};
3369struct s2 {int (*f) (double a);};
3370int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3371int argc;
3372char **argv;
3373int
3374main ()
3375{
3376return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3377 ;
3378 return 0;
3379}
3380_ACEOF
3381for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3382 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3383do
3384 CC="$ac_save_CC $ac_arg"
3385 rm -f conftest.$ac_objext
3386if { (ac_try="$ac_compile"
3387case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390esac
3391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3392$as_echo "$ac_try_echo") >&5
3393 (eval "$ac_compile") 2>conftest.er1
3394 ac_status=$?
3395 grep -v '^ *+' conftest.er1 >conftest.err
3396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } && {
3400 test -z "$ac_c_werror_flag" ||
3401 test ! -s conftest.err
3402 } && test -s conftest.$ac_objext; then
3403 ac_cv_prog_cc_c89=$ac_arg
3404else
3405 $as_echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
3408
3409fi
3410
3411rm -f core conftest.err conftest.$ac_objext
3412 test "x$ac_cv_prog_cc_c89" != "xno" && break
3413done
3414rm -f conftest.$ac_ext
3415CC=$ac_save_CC
3416
3417fi
3418# AC_CACHE_VAL
3419case "x$ac_cv_prog_cc_c89" in
3420 x)
3421 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3422$as_echo "none needed" >&6; } ;;
3423 xno)
3424 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3425$as_echo "unsupported" >&6; } ;;
3426 *)
3427 CC="$CC $ac_cv_prog_cc_c89"
3428 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3429$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3430esac
3431
3432
3433ac_ext=c
3434ac_cpp='$CPP $CPPFLAGS'
3435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438DEPDIR="${am__leading_dot}deps"
3439
3440ac_config_commands="$ac_config_commands depfiles"
3441
3442
3443am_make=${MAKE-make}
3444cat > confinc << 'END'
3445am__doit:
3446 @echo done
3447.PHONY: am__doit
3448END
3449# If we don't find an include directive, just comment out the code.
3450{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3451$as_echo_n "checking for style of include used by $am_make... " >&6; }
3452am__include="#"
3453am__quote=
3454_am_result=none
3455# First try GNU make style include.
3456echo "include confinc" > confmf
3457# We grep out `Entering directory' and `Leaving directory'
3458# messages which can occur if `w' ends up in MAKEFLAGS.
3459# In particular we don't look at `^make:' because GNU make might
3460# be invoked under some other name (usually "gmake"), in which
3461# case it prints its new name instead of `make'.
3462if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3463 am__include=include
3464 am__quote=
3465 _am_result=GNU
3466fi
3467# Now try BSD make style include.
3468if test "$am__include" = "#"; then
3469 echo '.include "confinc"' > confmf
3470 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3471 am__include=.include
3472 am__quote="\""
3473 _am_result=BSD
3474 fi
3475fi
3476
3477
3478{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3479$as_echo "$_am_result" >&6; }
3480rm -f confinc confmf
3481
3482# Check whether --enable-dependency-tracking was given.
3483if test "${enable_dependency_tracking+set}" = set; then
3484 enableval=$enable_dependency_tracking;
3485fi
3486
3487if test "x$enable_dependency_tracking" != xno; then
3488 am_depcomp="$ac_aux_dir/depcomp"
3489 AMDEPBACKSLASH='\'
3490fi
3491 if test "x$enable_dependency_tracking" != xno; then
3492 AMDEP_TRUE=
3493 AMDEP_FALSE='#'
3494else
3495 AMDEP_TRUE='#'
3496 AMDEP_FALSE=
3497fi
3498
3499
3500
3501depcc="$CC" am_compiler_list=
3502
3503{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3504$as_echo_n "checking dependency style of $depcc... " >&6; }
3505if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3506 $as_echo_n "(cached) " >&6
3507else
3508 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3509 # We make a subdir and do the tests there. Otherwise we can end up
3510 # making bogus files that we don't know about and never remove. For
3511 # instance it was reported that on HP-UX the gcc test will end up
3512 # making a dummy file named `D' -- because `-MD' means `put the output
3513 # in D'.
3514 mkdir conftest.dir
3515 # Copy depcomp to subdir because otherwise we won't find it if we're
3516 # using a relative directory.
3517 cp "$am_depcomp" conftest.dir
3518 cd conftest.dir
3519 # We will build objects and dependencies in a subdirectory because
3520 # it helps to detect inapplicable dependency modes. For instance
3521 # both Tru64's cc and ICC support -MD to output dependencies as a
3522 # side effect of compilation, but ICC will put the dependencies in
3523 # the current directory while Tru64 will put them in the object
3524 # directory.
3525 mkdir sub
3526
3527 am_cv_CC_dependencies_compiler_type=none
3528 if test "$am_compiler_list" = ""; then
3529 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3530 fi
3531 for depmode in $am_compiler_list; do
3532 # Setup a source with many dependencies, because some compilers
3533 # like to wrap large dependency lists on column 80 (with \), and
3534 # we should not choose a depcomp mode which is confused by this.
3535 #
3536 # We need to recreate these files for each test, as the compiler may
3537 # overwrite some of them when testing with obscure command lines.
3538 # This happens at least with the AIX C compiler.
3539 : > sub/conftest.c
3540 for i in 1 2 3 4 5 6; do
3541 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3542 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3543 # Solaris 8's {/usr,}/bin/sh.
3544 touch sub/conftst$i.h
3545 done
3546 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3547
3548 case $depmode in
3549 nosideeffect)
3550 # after this tag, mechanisms are not by side-effect, so they'll
3551 # only be used when explicitly requested
3552 if test "x$enable_dependency_tracking" = xyes; then
3553 continue
3554 else
3555 break
3556 fi
3557 ;;
3558 none) break ;;
3559 esac
3560 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3561 # mode. It turns out that the SunPro C++ compiler does not properly
3562 # handle `-M -o', and we need to detect this.
3563 if depmode=$depmode \
3564 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3565 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3566 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3567 >/dev/null 2>conftest.err &&
3568 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3569 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3570 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3571 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3572 # icc doesn't choke on unknown options, it will just issue warnings
3573 # or remarks (even with -Werror). So we grep stderr for any message
3574 # that says an option was ignored or not supported.
3575 # When given -MP, icc 7.0 and 7.1 complain thusly:
3576 # icc: Command line warning: ignoring option '-M'; no argument required
3577 # The diagnosis changed in icc 8.0:
3578 # icc: Command line remark: option '-MP' not supported
3579 if (grep 'ignoring option' conftest.err ||
3580 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3581 am_cv_CC_dependencies_compiler_type=$depmode
3582 break
3583 fi
3584 fi
3585 done
3586
3587 cd ..
3588 rm -rf conftest.dir
3589else
3590 am_cv_CC_dependencies_compiler_type=none
3591fi
3592
3593fi
3594{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3595$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3596CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3597
3598 if
3599 test "x$enable_dependency_tracking" != xno \
3600 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3601 am__fastdepCC_TRUE=
3602 am__fastdepCC_FALSE='#'
3603else
3604 am__fastdepCC_TRUE='#'
3605 am__fastdepCC_FALSE=
3606fi
3607
3608
3609case `pwd` in
3610 *\ * | *\ *)
3611 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3612$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3613esac
3614
3615
3616
3617macro_version='2.2.6'
3618macro_revision='1.3012'
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632ltmain="$ac_aux_dir/ltmain.sh"
3633
3634# Make sure we can run config.sub.
3635$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3636 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3637$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3638 { (exit 1); exit 1; }; }
3639
3640{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3641$as_echo_n "checking build system type... " >&6; }
3642if test "${ac_cv_build+set}" = set; then
3643 $as_echo_n "(cached) " >&6
3644else
3645 ac_build_alias=$build_alias
3646test "x$ac_build_alias" = x &&
3647 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3648test "x$ac_build_alias" = x &&
3649 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3650$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3651 { (exit 1); exit 1; }; }
3652ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3653 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3654$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3655 { (exit 1); exit 1; }; }
3656
3657fi
3658{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3659$as_echo "$ac_cv_build" >&6; }
3660case $ac_cv_build in
3661*-*-*) ;;
3662*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3663$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3664 { (exit 1); exit 1; }; };;
3665esac
3666build=$ac_cv_build
3667ac_save_IFS=$IFS; IFS='-'
3668set x $ac_cv_build
3669shift
3670build_cpu=$1
3671build_vendor=$2
3672shift; shift
3673# Remember, the first character of IFS is used to create $*,
3674# except with old shells:
3675build_os=$*
3676IFS=$ac_save_IFS
3677case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3678
3679
3680{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3681$as_echo_n "checking host system type... " >&6; }
3682if test "${ac_cv_host+set}" = set; then
3683 $as_echo_n "(cached) " >&6
3684else
3685 if test "x$host_alias" = x; then
3686 ac_cv_host=$ac_cv_build
3687else
3688 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3689 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3690$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3691 { (exit 1); exit 1; }; }
3692fi
3693
3694fi
3695{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3696$as_echo "$ac_cv_host" >&6; }
3697case $ac_cv_host in
3698*-*-*) ;;
3699*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3700$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3701 { (exit 1); exit 1; }; };;
3702esac
3703host=$ac_cv_host
3704ac_save_IFS=$IFS; IFS='-'
3705set x $ac_cv_host
3706shift
3707host_cpu=$1
3708host_vendor=$2
3709shift; shift
3710# Remember, the first character of IFS is used to create $*,
3711# except with old shells:
3712host_os=$*
3713IFS=$ac_save_IFS
3714case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3715
3716
3717{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3718$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3719if test "${ac_cv_path_SED+set}" = set; then
3720 $as_echo_n "(cached) " >&6
3721else
3722 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3723 for ac_i in 1 2 3 4 5 6 7; do
3724 ac_script="$ac_script$as_nl$ac_script"
3725 done
3726 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3727 $as_unset ac_script || ac_script=
3728 if test -z "$SED"; then
3729 ac_path_SED_found=false
3730 # Loop through the user's path and test for each of PROGNAME-LIST
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732for as_dir in $PATH
3733do
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_prog in sed gsed; do
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3739 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3740# Check for GNU ac_path_SED and select it if it is found.
3741 # Check for GNU $ac_path_SED
3742case `"$ac_path_SED" --version 2>&1` in
3743*GNU*)
3744 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3745*)
3746 ac_count=0
3747 $as_echo_n 0123456789 >"conftest.in"
3748 while :
3749 do
3750 cat "conftest.in" "conftest.in" >"conftest.tmp"
3751 mv "conftest.tmp" "conftest.in"
3752 cp "conftest.in" "conftest.nl"
3753 $as_echo '' >> "conftest.nl"
3754 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3756 ac_count=`expr $ac_count + 1`
3757 if test $ac_count -gt ${ac_path_SED_max-0}; then
3758 # Best one so far, save it but keep looking for a better one
3759 ac_cv_path_SED="$ac_path_SED"
3760 ac_path_SED_max=$ac_count
3761 fi
3762 # 10*(2^10) chars as input seems more than enough
3763 test $ac_count -gt 10 && break
3764 done
3765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3766esac
3767
3768 $ac_path_SED_found && break 3
3769 done
3770 done
3771done
3772IFS=$as_save_IFS
3773 if test -z "$ac_cv_path_SED"; then
3774 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3775$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3776 { (exit 1); exit 1; }; }
3777 fi
3778else
3779 ac_cv_path_SED=$SED
3780fi
3781
3782fi
3783{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3784$as_echo "$ac_cv_path_SED" >&6; }
3785 SED="$ac_cv_path_SED"
3786 rm -f conftest.sed
3787
3788test -z "$SED" && SED=sed
3789Xsed="$SED -e 1s/^X//"
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3802$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3803if test "${ac_cv_path_GREP+set}" = set; then
3804 $as_echo_n "(cached) " >&6
3805else
3806 if test -z "$GREP"; then
3807 ac_path_GREP_found=false
3808 # Loop through the user's path and test for each of PROGNAME-LIST
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3811do
3812 IFS=$as_save_IFS
3813 test -z "$as_dir" && as_dir=.
3814 for ac_prog in grep ggrep; do
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3817 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3818# Check for GNU ac_path_GREP and select it if it is found.
3819 # Check for GNU $ac_path_GREP
3820case `"$ac_path_GREP" --version 2>&1` in
3821*GNU*)
3822 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3823*)
3824 ac_count=0
3825 $as_echo_n 0123456789 >"conftest.in"
3826 while :
3827 do
3828 cat "conftest.in" "conftest.in" >"conftest.tmp"
3829 mv "conftest.tmp" "conftest.in"
3830 cp "conftest.in" "conftest.nl"
3831 $as_echo 'GREP' >> "conftest.nl"
3832 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3833 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3834 ac_count=`expr $ac_count + 1`
3835 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3836 # Best one so far, save it but keep looking for a better one
3837 ac_cv_path_GREP="$ac_path_GREP"
3838 ac_path_GREP_max=$ac_count
3839 fi
3840 # 10*(2^10) chars as input seems more than enough
3841 test $ac_count -gt 10 && break
3842 done
3843 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3844esac
3845
3846 $ac_path_GREP_found && break 3
3847 done
3848 done
3849done
3850IFS=$as_save_IFS
3851 if test -z "$ac_cv_path_GREP"; then
3852 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3853$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3854 { (exit 1); exit 1; }; }
3855 fi
3856else
3857 ac_cv_path_GREP=$GREP
3858fi
3859
3860fi
3861{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3862$as_echo "$ac_cv_path_GREP" >&6; }
3863 GREP="$ac_cv_path_GREP"
3864
3865
3866{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3867$as_echo_n "checking for egrep... " >&6; }
3868if test "${ac_cv_path_EGREP+set}" = set; then
3869 $as_echo_n "(cached) " >&6
3870else
3871 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3872 then ac_cv_path_EGREP="$GREP -E"
3873 else
3874 if test -z "$EGREP"; then
3875 ac_path_EGREP_found=false
3876 # Loop through the user's path and test for each of PROGNAME-LIST
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3879do
3880 IFS=$as_save_IFS
3881 test -z "$as_dir" && as_dir=.
3882 for ac_prog in egrep; do
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3885 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3886# Check for GNU ac_path_EGREP and select it if it is found.
3887 # Check for GNU $ac_path_EGREP
3888case `"$ac_path_EGREP" --version 2>&1` in
3889*GNU*)
3890 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3891*)
3892 ac_count=0
3893 $as_echo_n 0123456789 >"conftest.in"
3894 while :
3895 do
3896 cat "conftest.in" "conftest.in" >"conftest.tmp"
3897 mv "conftest.tmp" "conftest.in"
3898 cp "conftest.in" "conftest.nl"
3899 $as_echo 'EGREP' >> "conftest.nl"
3900 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3902 ac_count=`expr $ac_count + 1`
3903 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3904 # Best one so far, save it but keep looking for a better one
3905 ac_cv_path_EGREP="$ac_path_EGREP"
3906 ac_path_EGREP_max=$ac_count
3907 fi
3908 # 10*(2^10) chars as input seems more than enough
3909 test $ac_count -gt 10 && break
3910 done
3911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3912esac
3913
3914 $ac_path_EGREP_found && break 3
3915 done
3916 done
3917done
3918IFS=$as_save_IFS
3919 if test -z "$ac_cv_path_EGREP"; then
3920 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3921$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3922 { (exit 1); exit 1; }; }
3923 fi
3924else
3925 ac_cv_path_EGREP=$EGREP
3926fi
3927
3928 fi
3929fi
3930{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3931$as_echo "$ac_cv_path_EGREP" >&6; }
3932 EGREP="$ac_cv_path_EGREP"
3933
3934
3935{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3936$as_echo_n "checking for fgrep... " >&6; }
3937if test "${ac_cv_path_FGREP+set}" = set; then
3938 $as_echo_n "(cached) " >&6
3939else
3940 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3941 then ac_cv_path_FGREP="$GREP -F"
3942 else
3943 if test -z "$FGREP"; then
3944 ac_path_FGREP_found=false
3945 # Loop through the user's path and test for each of PROGNAME-LIST
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3948do
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_prog in fgrep; do
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3954 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3955# Check for GNU ac_path_FGREP and select it if it is found.
3956 # Check for GNU $ac_path_FGREP
3957case `"$ac_path_FGREP" --version 2>&1` in
3958*GNU*)
3959 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3960*)
3961 ac_count=0
3962 $as_echo_n 0123456789 >"conftest.in"
3963 while :
3964 do
3965 cat "conftest.in" "conftest.in" >"conftest.tmp"
3966 mv "conftest.tmp" "conftest.in"
3967 cp "conftest.in" "conftest.nl"
3968 $as_echo 'FGREP' >> "conftest.nl"
3969 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3971 ac_count=`expr $ac_count + 1`
3972 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3973 # Best one so far, save it but keep looking for a better one
3974 ac_cv_path_FGREP="$ac_path_FGREP"
3975 ac_path_FGREP_max=$ac_count
3976 fi
3977 # 10*(2^10) chars as input seems more than enough
3978 test $ac_count -gt 10 && break
3979 done
3980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3981esac
3982
3983 $ac_path_FGREP_found && break 3
3984 done
3985 done
3986done
3987IFS=$as_save_IFS
3988 if test -z "$ac_cv_path_FGREP"; then
3989 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3990$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3991 { (exit 1); exit 1; }; }
3992 fi
3993else
3994 ac_cv_path_FGREP=$FGREP
3995fi
3996
3997 fi
3998fi
3999{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4000$as_echo "$ac_cv_path_FGREP" >&6; }
4001 FGREP="$ac_cv_path_FGREP"
4002
4003
4004test -z "$GREP" && GREP=grep
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024# Check whether --with-gnu-ld was given.
4025if test "${with_gnu_ld+set}" = set; then
4026 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4027else
4028 with_gnu_ld=no
4029fi
4030
4031ac_prog=ld
4032if test "$GCC" = yes; then
4033 # Check if gcc -print-prog-name=ld gives a path.
4034 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4035$as_echo_n "checking for ld used by $CC... " >&6; }
4036 case $host in
4037 *-*-mingw*)
4038 # gcc leaves a trailing carriage return which upsets mingw
4039 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4040 *)
4041 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4042 esac
4043 case $ac_prog in
4044 # Accept absolute paths.
4045 [\\/]* | ?:[\\/]*)
4046 re_direlt='/[^/][^/]*/\.\./'
4047 # Canonicalize the pathname of ld
4048 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4049 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4050 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4051 done
4052 test -z "$LD" && LD="$ac_prog"
4053 ;;
4054 "")
4055 # If it fails, then pretend we aren't using GCC.
4056 ac_prog=ld
4057 ;;
4058 *)
4059 # If it is relative, then search for the first ld in PATH.
4060 with_gnu_ld=unknown
4061 ;;
4062 esac
4063elif test "$with_gnu_ld" = yes; then
4064 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4065$as_echo_n "checking for GNU ld... " >&6; }
4066else
4067 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4068$as_echo_n "checking for non-GNU ld... " >&6; }
4069fi
4070if test "${lt_cv_path_LD+set}" = set; then
4071 $as_echo_n "(cached) " >&6
4072else
4073 if test -z "$LD"; then
4074 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4075 for ac_dir in $PATH; do
4076 IFS="$lt_save_ifs"
4077 test -z "$ac_dir" && ac_dir=.
4078 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4079 lt_cv_path_LD="$ac_dir/$ac_prog"
4080 # Check to see if the program is GNU ld. I'd rather use --version,
4081 # but apparently some variants of GNU ld only accept -v.
4082 # Break only if it was the GNU/non-GNU ld that we prefer.
4083 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4084 *GNU* | *'with BFD'*)
4085 test "$with_gnu_ld" != no && break
4086 ;;
4087 *)
4088 test "$with_gnu_ld" != yes && break
4089 ;;
4090 esac
4091 fi
4092 done
4093 IFS="$lt_save_ifs"
4094else
4095 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4096fi
4097fi
4098
4099LD="$lt_cv_path_LD"
4100if test -n "$LD"; then
4101 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4102$as_echo "$LD" >&6; }
4103else
4104 { $as_echo "$as_me:$LINENO: result: no" >&5
4105$as_echo "no" >&6; }
4106fi
4107test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4108$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4109 { (exit 1); exit 1; }; }
4110{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4111$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4112if test "${lt_cv_prog_gnu_ld+set}" = set; then
4113 $as_echo_n "(cached) " >&6
4114else
4115 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4116case `$LD -v 2>&1 </dev/null` in
4117*GNU* | *'with BFD'*)
4118 lt_cv_prog_gnu_ld=yes
4119 ;;
4120*)
4121 lt_cv_prog_gnu_ld=no
4122 ;;
4123esac
4124fi
4125{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4126$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4127with_gnu_ld=$lt_cv_prog_gnu_ld
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4138$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4139if test "${lt_cv_path_NM+set}" = set; then
4140 $as_echo_n "(cached) " >&6
4141else
4142 if test -n "$NM"; then
4143 # Let the user override the test.
4144 lt_cv_path_NM="$NM"
4145else
4146 lt_nm_to_check="${ac_tool_prefix}nm"
4147 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4148 lt_nm_to_check="$lt_nm_to_check nm"
4149 fi
4150 for lt_tmp_nm in $lt_nm_to_check; do
4151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4152 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4153 IFS="$lt_save_ifs"
4154 test -z "$ac_dir" && ac_dir=.
4155 tmp_nm="$ac_dir/$lt_tmp_nm"
4156 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4157 # Check to see if the nm accepts a BSD-compat flag.
4158 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4159 # nm: unknown option "B" ignored
4160 # Tru64's nm complains that /dev/null is an invalid object file
4161 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4162 */dev/null* | *'Invalid file or object type'*)
4163 lt_cv_path_NM="$tmp_nm -B"
4164 break
4165 ;;
4166 *)
4167 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4168 */dev/null*)
4169 lt_cv_path_NM="$tmp_nm -p"
4170 break
4171 ;;
4172 *)
4173 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4174 continue # so that we can try to find one that supports BSD flags
4175 ;;
4176 esac
4177 ;;
4178 esac
4179 fi
4180 done
4181 IFS="$lt_save_ifs"
4182 done
4183 : ${lt_cv_path_NM=no}
4184fi
4185fi
4186{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4187$as_echo "$lt_cv_path_NM" >&6; }
4188if test "$lt_cv_path_NM" != "no"; then
4189 NM="$lt_cv_path_NM"
4190else
4191 # Didn't find any BSD compatible name lister, look for dumpbin.
4192 if test -n "$ac_tool_prefix"; then
4193 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4194 do
4195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4196set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4197{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4198$as_echo_n "checking for $ac_word... " >&6; }
4199if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4200 $as_echo_n "(cached) " >&6
4201else
4202 if test -n "$DUMPBIN"; then
4203 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4204else
4205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206for as_dir in $PATH
4207do
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4215 fi
4216done
4217done
4218IFS=$as_save_IFS
4219
4220fi
4221fi
4222DUMPBIN=$ac_cv_prog_DUMPBIN
4223if test -n "$DUMPBIN"; then
4224 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4225$as_echo "$DUMPBIN" >&6; }
4226else
4227 { $as_echo "$as_me:$LINENO: result: no" >&5
4228$as_echo "no" >&6; }
4229fi
4230
4231
4232 test -n "$DUMPBIN" && break
4233 done
4234fi
4235if test -z "$DUMPBIN"; then
4236 ac_ct_DUMPBIN=$DUMPBIN
4237 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4238do
4239 # Extract the first word of "$ac_prog", so it can be a program name with args.
4240set dummy $ac_prog; ac_word=$2
4241{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4242$as_echo_n "checking for $ac_word... " >&6; }
4243if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4244 $as_echo_n "(cached) " >&6
4245else
4246 if test -n "$ac_ct_DUMPBIN"; then
4247 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4248else
4249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250for as_dir in $PATH
4251do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4259 fi
4260done
4261done
4262IFS=$as_save_IFS
4263
4264fi
4265fi
4266ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4267if test -n "$ac_ct_DUMPBIN"; then
4268 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4269$as_echo "$ac_ct_DUMPBIN" >&6; }
4270else
4271 { $as_echo "$as_me:$LINENO: result: no" >&5
4272$as_echo "no" >&6; }
4273fi
4274
4275
4276 test -n "$ac_ct_DUMPBIN" && break
4277done
4278
4279 if test "x$ac_ct_DUMPBIN" = x; then
4280 DUMPBIN=":"
4281 else
4282 case $cross_compiling:$ac_tool_warned in
4283yes:)
4284{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4286ac_tool_warned=yes ;;
4287esac
4288 DUMPBIN=$ac_ct_DUMPBIN
4289 fi
4290fi
4291
4292
4293 if test "$DUMPBIN" != ":"; then
4294 NM="$DUMPBIN"
4295 fi
4296fi
4297test -z "$NM" && NM=nm
4298
4299
4300
4301
4302
4303
4304{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4305$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4306if test "${lt_cv_nm_interface+set}" = set; then
4307 $as_echo_n "(cached) " >&6
4308else
4309 lt_cv_nm_interface="BSD nm"
4310 echo "int some_variable = 0;" > conftest.$ac_ext
4311 (eval echo "\"\$as_me:4311: $ac_compile\"" >&5)
4312 (eval "$ac_compile" 2>conftest.err)
4313 cat conftest.err >&5
4314 (eval echo "\"\$as_me:4314: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4315 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4316 cat conftest.err >&5
4317 (eval echo "\"\$as_me:4317: output\"" >&5)
4318 cat conftest.out >&5
4319 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4320 lt_cv_nm_interface="MS dumpbin"
4321 fi
4322 rm -f conftest*
4323fi
4324{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4325$as_echo "$lt_cv_nm_interface" >&6; }
4326
4327{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4328$as_echo_n "checking whether ln -s works... " >&6; }
4329LN_S=$as_ln_s
4330if test "$LN_S" = "ln -s"; then
4331 { $as_echo "$as_me:$LINENO: result: yes" >&5
4332$as_echo "yes" >&6; }
4333else
4334 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4335$as_echo "no, using $LN_S" >&6; }
4336fi
4337
4338# find the maximum length of command line arguments
4339{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4340$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4341if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4342 $as_echo_n "(cached) " >&6
4343else
4344 i=0
4345 teststring="ABCD"
4346
4347 case $build_os in
4348 msdosdjgpp*)
4349 # On DJGPP, this test can blow up pretty badly due to problems in libc
4350 # (any single argument exceeding 2000 bytes causes a buffer overrun
4351 # during glob expansion). Even if it were fixed, the result of this
4352 # check would be larger than it should be.
4353 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4354 ;;
4355
4356 gnu*)
4357 # Under GNU Hurd, this test is not required because there is
4358 # no limit to the length of command line arguments.
4359 # Libtool will interpret -1 as no limit whatsoever
4360 lt_cv_sys_max_cmd_len=-1;
4361 ;;
4362
4363 cygwin* | mingw* | cegcc*)
4364 # On Win9x/ME, this test blows up -- it succeeds, but takes
4365 # about 5 minutes as the teststring grows exponentially.
4366 # Worse, since 9x/ME are not pre-emptively multitasking,
4367 # you end up with a "frozen" computer, even though with patience
4368 # the test eventually succeeds (with a max line length of 256k).
4369 # Instead, let's just punt: use the minimum linelength reported by
4370 # all of the supported platforms: 8192 (on NT/2K/XP).
4371 lt_cv_sys_max_cmd_len=8192;
4372 ;;
4373
4374 amigaos*)
4375 # On AmigaOS with pdksh, this test takes hours, literally.
4376 # So we just punt and use a minimum line length of 8192.
4377 lt_cv_sys_max_cmd_len=8192;
4378 ;;
4379
4380 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4381 # This has been around since 386BSD, at least. Likely further.
4382 if test -x /sbin/sysctl; then
4383 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4384 elif test -x /usr/sbin/sysctl; then
4385 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4386 else
4387 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4388 fi
4389 # And add a safety zone
4390 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4392 ;;
4393
4394 interix*)
4395 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4396 lt_cv_sys_max_cmd_len=196608
4397 ;;
4398
4399 osf*)
4400 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4401 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4402 # nice to cause kernel panics so lets avoid the loop below.
4403 # First set a reasonable default.
4404 lt_cv_sys_max_cmd_len=16384
4405 #
4406 if test -x /sbin/sysconfig; then
4407 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4408 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4409 esac
4410 fi
4411 ;;
4412 sco3.2v5*)
4413 lt_cv_sys_max_cmd_len=102400
4414 ;;
4415 sysv5* | sco5v6* | sysv4.2uw2*)
4416 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4417 if test -n "$kargmax"; then
4418 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4419 else
4420 lt_cv_sys_max_cmd_len=32768
4421 fi
4422 ;;
4423 *)
4424 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4425 if test -n "$lt_cv_sys_max_cmd_len"; then
4426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4427 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4428 else
4429 # Make teststring a little bigger before we do anything with it.
4430 # a 1K string should be a reasonable start.
4431 for i in 1 2 3 4 5 6 7 8 ; do
4432 teststring=$teststring$teststring
4433 done
4434 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4435 # If test is not a shell built-in, we'll probably end up computing a
4436 # maximum length that is only half of the actual maximum length, but
4437 # we can't tell.
4438 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4439 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4440 test $i != 17 # 1/2 MB should be enough
4441 do
4442 i=`expr $i + 1`
4443 teststring=$teststring$teststring
4444 done
4445 # Only check the string length outside the loop.
4446 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4447 teststring=
4448 # Add a significant safety factor because C++ compilers can tack on
4449 # massive amounts of additional arguments before passing them to the
4450 # linker. It appears as though 1/2 is a usable value.
4451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4452 fi
4453 ;;
4454 esac
4455
4456fi
4457
4458if test -n $lt_cv_sys_max_cmd_len ; then
4459 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4460$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4461else
4462 { $as_echo "$as_me:$LINENO: result: none" >&5
4463$as_echo "none" >&6; }
4464fi
4465max_cmd_len=$lt_cv_sys_max_cmd_len
4466
4467
4468
4469
4470
4471
4472: ${CP="cp -f"}
4473: ${MV="mv -f"}
4474: ${RM="rm -f"}
4475
4476{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4477$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4478# Try some XSI features
4479xsi_shell=no
4480( _lt_dummy="a/b/c"
4481 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4482 = c,a/b,, \
4483 && eval 'test $(( 1 + 1 )) -eq 2 \
4484 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4485 && xsi_shell=yes
4486{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4487$as_echo "$xsi_shell" >&6; }
4488
4489
4490{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4491$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4492lt_shell_append=no
4493( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4494 >/dev/null 2>&1 \
4495 && lt_shell_append=yes
4496{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4497$as_echo "$lt_shell_append" >&6; }
4498
4499
4500if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4501 lt_unset=unset
4502else
4503 lt_unset=false
4504fi
4505
4506
4507
4508
4509
4510# test EBCDIC or ASCII
4511case `echo X|tr X '\101'` in
4512 A) # ASCII based system
4513 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4514 lt_SP2NL='tr \040 \012'
4515 lt_NL2SP='tr \015\012 \040\040'
4516 ;;
4517 *) # EBCDIC based system
4518 lt_SP2NL='tr \100 \n'
4519 lt_NL2SP='tr \r\n \100\100'
4520 ;;
4521esac
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4532$as_echo_n "checking for $LD option to reload object files... " >&6; }
4533if test "${lt_cv_ld_reload_flag+set}" = set; then
4534 $as_echo_n "(cached) " >&6
4535else
4536 lt_cv_ld_reload_flag='-r'
4537fi
4538{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4539$as_echo "$lt_cv_ld_reload_flag" >&6; }
4540reload_flag=$lt_cv_ld_reload_flag
4541case $reload_flag in
4542"" | " "*) ;;
4543*) reload_flag=" $reload_flag" ;;
4544esac
4545reload_cmds='$LD$reload_flag -o $output$reload_objs'
4546case $host_os in
4547 darwin*)
4548 if test "$GCC" = yes; then
4549 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4550 else
4551 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4552 fi
4553 ;;
4554esac
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564if test -n "$ac_tool_prefix"; then
4565 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4566set dummy ${ac_tool_prefix}objdump; ac_word=$2
4567{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4568$as_echo_n "checking for $ac_word... " >&6; }
4569if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4570 $as_echo_n "(cached) " >&6
4571else
4572 if test -n "$OBJDUMP"; then
4573 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4574else
4575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576for as_dir in $PATH
4577do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4585 fi
4586done
4587done
4588IFS=$as_save_IFS
4589
4590fi
4591fi
4592OBJDUMP=$ac_cv_prog_OBJDUMP
4593if test -n "$OBJDUMP"; then
4594 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4595$as_echo "$OBJDUMP" >&6; }
4596else
4597 { $as_echo "$as_me:$LINENO: result: no" >&5
4598$as_echo "no" >&6; }
4599fi
4600
4601
4602fi
4603if test -z "$ac_cv_prog_OBJDUMP"; then
4604 ac_ct_OBJDUMP=$OBJDUMP
4605 # Extract the first word of "objdump", so it can be a program name with args.
4606set dummy objdump; ac_word=$2
4607{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4608$as_echo_n "checking for $ac_word... " >&6; }
4609if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4610 $as_echo_n "(cached) " >&6
4611else
4612 if test -n "$ac_ct_OBJDUMP"; then
4613 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4614else
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4625 fi
4626done
4627done
4628IFS=$as_save_IFS
4629
4630fi
4631fi
4632ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4633if test -n "$ac_ct_OBJDUMP"; then
4634 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4635$as_echo "$ac_ct_OBJDUMP" >&6; }
4636else
4637 { $as_echo "$as_me:$LINENO: result: no" >&5
4638$as_echo "no" >&6; }
4639fi
4640
4641 if test "x$ac_ct_OBJDUMP" = x; then
4642 OBJDUMP="false"
4643 else
4644 case $cross_compiling:$ac_tool_warned in
4645yes:)
4646{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4648ac_tool_warned=yes ;;
4649esac
4650 OBJDUMP=$ac_ct_OBJDUMP
4651 fi
4652else
4653 OBJDUMP="$ac_cv_prog_OBJDUMP"
4654fi
4655
4656test -z "$OBJDUMP" && OBJDUMP=objdump
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4667$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4668if test "${lt_cv_deplibs_check_method+set}" = set; then
4669 $as_echo_n "(cached) " >&6
4670else
4671 lt_cv_file_magic_cmd='$MAGIC_CMD'
4672lt_cv_file_magic_test_file=
4673lt_cv_deplibs_check_method='unknown'
4674# Need to set the preceding variable on all platforms that support
4675# interlibrary dependencies.
4676# 'none' -- dependencies not supported.
4677# `unknown' -- same as none, but documents that we really don't know.
4678# 'pass_all' -- all dependencies passed with no checks.
4679# 'test_compile' -- check by making test program.
4680# 'file_magic [[regex]]' -- check by looking for files in library path
4681# which responds to the $file_magic_cmd with a given extended regex.
4682# If you have `file' or equivalent on your system and you're not sure
4683# whether `pass_all' will *always* work, you probably want this one.
4684
4685case $host_os in
4686aix[4-9]*)
4687 lt_cv_deplibs_check_method=pass_all
4688 ;;
4689
4690beos*)
4691 lt_cv_deplibs_check_method=pass_all
4692 ;;
4693
4694bsdi[45]*)
4695 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4696 lt_cv_file_magic_cmd='/usr/bin/file -L'
4697 lt_cv_file_magic_test_file=/shlib/libc.so
4698 ;;
4699
4700cygwin*)
4701 # func_win32_libid is a shell function defined in ltmain.sh
4702 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4703 lt_cv_file_magic_cmd='func_win32_libid'
4704 ;;
4705
4706mingw* | pw32*)
4707 # Base MSYS/MinGW do not provide the 'file' command needed by
4708 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4709 # unless we find 'file', for example because we are cross-compiling.
4710 if ( file / ) >/dev/null 2>&1; then
4711 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4712 lt_cv_file_magic_cmd='func_win32_libid'
4713 else
4714 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4715 lt_cv_file_magic_cmd='$OBJDUMP -f'
4716 fi
4717 ;;
4718
4719cegcc)
4720 # use the weaker test based on 'objdump'. See mingw*.
4721 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4722 lt_cv_file_magic_cmd='$OBJDUMP -f'
4723 ;;
4724
4725darwin* | rhapsody*)
4726 lt_cv_deplibs_check_method=pass_all
4727 ;;
4728
4729freebsd* | dragonfly*)
4730 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4731 case $host_cpu in
4732 i*86 )
4733 # Not sure whether the presence of OpenBSD here was a mistake.
4734 # Let's accept both of them until this is cleared up.
4735 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4736 lt_cv_file_magic_cmd=/usr/bin/file
4737 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4738 ;;
4739 esac
4740 else
4741 lt_cv_deplibs_check_method=pass_all
4742 fi
4743 ;;
4744
4745gnu*)
4746 lt_cv_deplibs_check_method=pass_all
4747 ;;
4748
4749hpux10.20* | hpux11*)
4750 lt_cv_file_magic_cmd=/usr/bin/file
4751 case $host_cpu in
4752 ia64*)
4753 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4754 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4755 ;;
4756 hppa*64*)
4757 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]'
4758 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4759 ;;
4760 *)
4761 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4762 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4763 ;;
4764 esac
4765 ;;
4766
4767interix[3-9]*)
4768 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4770 ;;
4771
4772irix5* | irix6* | nonstopux*)
4773 case $LD in
4774 *-32|*"-32 ") libmagic=32-bit;;
4775 *-n32|*"-n32 ") libmagic=N32;;
4776 *-64|*"-64 ") libmagic=64-bit;;
4777 *) libmagic=never-match;;
4778 esac
4779 lt_cv_deplibs_check_method=pass_all
4780 ;;
4781
4782# This must be Linux ELF.
4783linux* | k*bsd*-gnu)
4784 lt_cv_deplibs_check_method=pass_all
4785 ;;
4786
4787netbsd*)
4788 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4789 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4790 else
4791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4792 fi
4793 ;;
4794
4795newos6*)
4796 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4797 lt_cv_file_magic_cmd=/usr/bin/file
4798 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4799 ;;
4800
4801*nto* | *qnx*)
4802 lt_cv_deplibs_check_method=pass_all
4803 ;;
4804
4805openbsd*)
4806 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4807 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4808 else
4809 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4810 fi
4811 ;;
4812
4813osf3* | osf4* | osf5*)
4814 lt_cv_deplibs_check_method=pass_all
4815 ;;
4816
4817rdos*)
4818 lt_cv_deplibs_check_method=pass_all
4819 ;;
4820
4821solaris*)
4822 lt_cv_deplibs_check_method=pass_all
4823 ;;
4824
4825sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4826 lt_cv_deplibs_check_method=pass_all
4827 ;;
4828
4829sysv4 | sysv4.3*)
4830 case $host_vendor in
4831 motorola)
4832 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]'
4833 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4834 ;;
4835 ncr)
4836 lt_cv_deplibs_check_method=pass_all
4837 ;;
4838 sequent)
4839 lt_cv_file_magic_cmd='/bin/file'
4840 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4841 ;;
4842 sni)
4843 lt_cv_file_magic_cmd='/bin/file'
4844 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4845 lt_cv_file_magic_test_file=/lib/libc.so
4846 ;;
4847 siemens)
4848 lt_cv_deplibs_check_method=pass_all
4849 ;;
4850 pc)
4851 lt_cv_deplibs_check_method=pass_all
4852 ;;
4853 esac
4854 ;;
4855
4856tpf*)
4857 lt_cv_deplibs_check_method=pass_all
4858 ;;
4859esac
4860
4861fi
4862{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4863$as_echo "$lt_cv_deplibs_check_method" >&6; }
4864file_magic_cmd=$lt_cv_file_magic_cmd
4865deplibs_check_method=$lt_cv_deplibs_check_method
4866test -z "$deplibs_check_method" && deplibs_check_method=unknown
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879if test -n "$ac_tool_prefix"; then
4880 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4881set dummy ${ac_tool_prefix}ar; ac_word=$2
4882{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4883$as_echo_n "checking for $ac_word... " >&6; }
4884if test "${ac_cv_prog_AR+set}" = set; then
4885 $as_echo_n "(cached) " >&6
4886else
4887 if test -n "$AR"; then
4888 ac_cv_prog_AR="$AR" # Let the user override the test.
4889else
4890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891for as_dir in $PATH
4892do
4893 IFS=$as_save_IFS
4894 test -z "$as_dir" && as_dir=.
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4897 ac_cv_prog_AR="${ac_tool_prefix}ar"
4898 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4899 break 2
4900 fi
4901done
4902done
4903IFS=$as_save_IFS
4904
4905fi
4906fi
4907AR=$ac_cv_prog_AR
4908if test -n "$AR"; then
4909 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4910$as_echo "$AR" >&6; }
4911else
4912 { $as_echo "$as_me:$LINENO: result: no" >&5
4913$as_echo "no" >&6; }
4914fi
4915
4916
4917fi
4918if test -z "$ac_cv_prog_AR"; then
4919 ac_ct_AR=$AR
4920 # Extract the first word of "ar", so it can be a program name with args.
4921set dummy ar; ac_word=$2
4922{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4923$as_echo_n "checking for $ac_word... " >&6; }
4924if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4925 $as_echo_n "(cached) " >&6
4926else
4927 if test -n "$ac_ct_AR"; then
4928 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4929else
4930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931for as_dir in $PATH
4932do
4933 IFS=$as_save_IFS
4934 test -z "$as_dir" && as_dir=.
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4937 ac_cv_prog_ac_ct_AR="ar"
4938 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 break 2
4940 fi
4941done
4942done
4943IFS=$as_save_IFS
4944
4945fi
4946fi
4947ac_ct_AR=$ac_cv_prog_ac_ct_AR
4948if test -n "$ac_ct_AR"; then
4949 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4950$as_echo "$ac_ct_AR" >&6; }
4951else
4952 { $as_echo "$as_me:$LINENO: result: no" >&5
4953$as_echo "no" >&6; }
4954fi
4955
4956 if test "x$ac_ct_AR" = x; then
4957 AR="false"
4958 else
4959 case $cross_compiling:$ac_tool_warned in
4960yes:)
4961{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4963ac_tool_warned=yes ;;
4964esac
4965 AR=$ac_ct_AR
4966 fi
4967else
4968 AR="$ac_cv_prog_AR"
4969fi
4970
4971test -z "$AR" && AR=ar
4972test -z "$AR_FLAGS" && AR_FLAGS=cru
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984if test -n "$ac_tool_prefix"; then
4985 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4986set dummy ${ac_tool_prefix}strip; ac_word=$2
4987{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4988$as_echo_n "checking for $ac_word... " >&6; }
4989if test "${ac_cv_prog_STRIP+set}" = set; then
4990 $as_echo_n "(cached) " >&6
4991else
4992 if test -n "$STRIP"; then
4993 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4994else
4995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996for as_dir in $PATH
4997do
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5003 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5005 fi
5006done
5007done
5008IFS=$as_save_IFS
5009
5010fi
5011fi
5012STRIP=$ac_cv_prog_STRIP
5013if test -n "$STRIP"; then
5014 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5015$as_echo "$STRIP" >&6; }
5016else
5017 { $as_echo "$as_me:$LINENO: result: no" >&5
5018$as_echo "no" >&6; }
5019fi
5020
5021
5022fi
5023if test -z "$ac_cv_prog_STRIP"; then
5024 ac_ct_STRIP=$STRIP
5025 # Extract the first word of "strip", so it can be a program name with args.
5026set dummy strip; ac_word=$2
5027{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5028$as_echo_n "checking for $ac_word... " >&6; }
5029if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5030 $as_echo_n "(cached) " >&6
5031else
5032 if test -n "$ac_ct_STRIP"; then
5033 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5034else
5035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036for as_dir in $PATH
5037do
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5042 ac_cv_prog_ac_ct_STRIP="strip"
5043 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 break 2
5045 fi
5046done
5047done
5048IFS=$as_save_IFS
5049
5050fi
5051fi
5052ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5053if test -n "$ac_ct_STRIP"; then
5054 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5055$as_echo "$ac_ct_STRIP" >&6; }
5056else
5057 { $as_echo "$as_me:$LINENO: result: no" >&5
5058$as_echo "no" >&6; }
5059fi
5060
5061 if test "x$ac_ct_STRIP" = x; then
5062 STRIP=":"
5063 else
5064 case $cross_compiling:$ac_tool_warned in
5065yes:)
5066{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5068ac_tool_warned=yes ;;
5069esac
5070 STRIP=$ac_ct_STRIP
5071 fi
5072else
5073 STRIP="$ac_cv_prog_STRIP"
5074fi
5075
5076test -z "$STRIP" && STRIP=:
5077
5078
5079
5080
5081
5082
5083if test -n "$ac_tool_prefix"; then
5084 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5085set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5086{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5087$as_echo_n "checking for $ac_word... " >&6; }
5088if test "${ac_cv_prog_RANLIB+set}" = set; then
5089 $as_echo_n "(cached) " >&6
5090else
5091 if test -n "$RANLIB"; then
5092 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5093else
5094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095for as_dir in $PATH
5096do
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5102 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5104 fi
5105done
5106done
5107IFS=$as_save_IFS
5108
5109fi
5110fi
5111RANLIB=$ac_cv_prog_RANLIB
5112if test -n "$RANLIB"; then
5113 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5114$as_echo "$RANLIB" >&6; }
5115else
5116 { $as_echo "$as_me:$LINENO: result: no" >&5
5117$as_echo "no" >&6; }
5118fi
5119
5120
5121fi
5122if test -z "$ac_cv_prog_RANLIB"; then
5123 ac_ct_RANLIB=$RANLIB
5124 # Extract the first word of "ranlib", so it can be a program name with args.
5125set dummy ranlib; ac_word=$2
5126{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5127$as_echo_n "checking for $ac_word... " >&6; }
5128if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5129 $as_echo_n "(cached) " >&6
5130else
5131 if test -n "$ac_ct_RANLIB"; then
5132 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5133else
5134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135for as_dir in $PATH
5136do
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_prog_ac_ct_RANLIB="ranlib"
5142 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5144 fi
5145done
5146done
5147IFS=$as_save_IFS
5148
5149fi
5150fi
5151ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5152if test -n "$ac_ct_RANLIB"; then
5153 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5154$as_echo "$ac_ct_RANLIB" >&6; }
5155else
5156 { $as_echo "$as_me:$LINENO: result: no" >&5
5157$as_echo "no" >&6; }
5158fi
5159
5160 if test "x$ac_ct_RANLIB" = x; then
5161 RANLIB=":"
5162 else
5163 case $cross_compiling:$ac_tool_warned in
5164yes:)
5165{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5167ac_tool_warned=yes ;;
5168esac
5169 RANLIB=$ac_ct_RANLIB
5170 fi
5171else
5172 RANLIB="$ac_cv_prog_RANLIB"
5173fi
5174
5175test -z "$RANLIB" && RANLIB=:
5176
5177
5178
5179
5180
5181
5182# Determine commands to create old-style static archives.
5183old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5184old_postinstall_cmds='chmod 644 $oldlib'
5185old_postuninstall_cmds=
5186
5187if test -n "$RANLIB"; then
5188 case $host_os in
5189 openbsd*)
5190 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5191 ;;
5192 *)
5193 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5194 ;;
5195 esac
5196 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5197fi
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232# If no C compiler was specified, use CC.
5233LTCC=${LTCC-"$CC"}
5234
5235# If no C compiler flags were specified, use CFLAGS.
5236LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5237
5238# Allow CC to be a program name with arguments.
5239compiler=$CC
5240
5241
5242# Check for command to grab the raw symbol name followed by C symbol from nm.
5243{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5244$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5245if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5246 $as_echo_n "(cached) " >&6
5247else
5248
5249# These are sane defaults that work on at least a few old systems.
5250# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5251
5252# Character class describing NM global symbol codes.
5253symcode='[BCDEGRST]'
5254
5255# Regexp to match symbols that can be accessed directly from C.
5256sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5257
5258# Define system-specific variables.
5259case $host_os in
5260aix*)
5261 symcode='[BCDT]'
5262 ;;
5263cygwin* | mingw* | pw32* | cegcc*)
5264 symcode='[ABCDGISTW]'
5265 ;;
5266hpux*)
5267 if test "$host_cpu" = ia64; then
5268 symcode='[ABCDEGRST]'
5269 fi
5270 ;;
5271irix* | nonstopux*)
5272 symcode='[BCDEGRST]'
5273 ;;
5274osf*)
5275 symcode='[BCDEGQRST]'
5276 ;;
5277solaris*)
5278 symcode='[BDRT]'
5279 ;;
5280sco3.2v5*)
5281 symcode='[DT]'
5282 ;;
5283sysv4.2uw2*)
5284 symcode='[DT]'
5285 ;;
5286sysv5* | sco5v6* | unixware* | OpenUNIX*)
5287 symcode='[ABDT]'
5288 ;;
5289sysv4)
5290 symcode='[DFNSTU]'
5291 ;;
5292esac
5293
5294# If we're using GNU nm, then use its standard symbol codes.
5295case `$NM -V 2>&1` in
5296*GNU* | *'with BFD'*)
5297 symcode='[ABCDGIRSTW]' ;;
5298esac
5299
5300# Transform an extracted symbol line into a proper C declaration.
5301# Some systems (esp. on ia64) link data and code symbols differently,
5302# so use this general approach.
5303lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5304
5305# Transform an extracted symbol line into symbol name and symbol address
5306lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5307lt_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'"
5308
5309# Handle CRLF in mingw tool chain
5310opt_cr=
5311case $build_os in
5312mingw*)
5313 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5314 ;;
5315esac
5316
5317# Try without a prefix underscore, then with it.
5318for ac_symprfx in "" "_"; do
5319
5320 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5321 symxfrm="\\1 $ac_symprfx\\2 \\2"
5322
5323 # Write the raw and C identifiers.
5324 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5325 # Fake it for dumpbin and say T for any non-static function
5326 # and D for any global variable.
5327 # Also find C++ and __fastcall symbols from MSVC++,
5328 # which start with @ or ?.
5329 lt_cv_sys_global_symbol_pipe="$AWK '"\
5330" {last_section=section; section=\$ 3};"\
5331" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5332" \$ 0!~/External *\|/{next};"\
5333" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5334" {if(hide[section]) next};"\
5335" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5336" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5337" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5338" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5339" ' prfx=^$ac_symprfx"
5340 else
5341 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5342 fi
5343
5344 # Check to see that the pipe works correctly.
5345 pipe_works=no
5346
5347 rm -f conftest*
5348 cat > conftest.$ac_ext <<_LT_EOF
5349#ifdef __cplusplus
5350extern "C" {
5351#endif
5352char nm_test_var;
5353void nm_test_func(void);
5354void nm_test_func(void){}
5355#ifdef __cplusplus
5356}
5357#endif
5358int main(){nm_test_var='a';nm_test_func();return(0);}
5359_LT_EOF
5360
5361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5362 (eval $ac_compile) 2>&5
5363 ac_status=$?
5364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }; then
5366 # Now try to grab the symbols.
5367 nlist=conftest.nm
5368 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5369 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5370 ac_status=$?
5371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } && test -s "$nlist"; then
5373 # Try sorting and uniquifying the output.
5374 if sort "$nlist" | uniq > "$nlist"T; then
5375 mv -f "$nlist"T "$nlist"
5376 else
5377 rm -f "$nlist"T
5378 fi
5379
5380 # Make sure that we snagged all the symbols we need.
5381 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5382 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5383 cat <<_LT_EOF > conftest.$ac_ext
5384#ifdef __cplusplus
5385extern "C" {
5386#endif
5387
5388_LT_EOF
5389 # Now generate the symbol file.
5390 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5391
5392 cat <<_LT_EOF >> conftest.$ac_ext
5393
5394/* The mapping between symbol names and symbols. */
5395const struct {
5396 const char *name;
5397 void *address;
5398}
5399lt__PROGRAM__LTX_preloaded_symbols[] =
5400{
5401 { "@PROGRAM@", (void *) 0 },
5402_LT_EOF
5403 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5404 cat <<\_LT_EOF >> conftest.$ac_ext
5405 {0, (void *) 0}
5406};
5407
5408/* This works around a problem in FreeBSD linker */
5409#ifdef FREEBSD_WORKAROUND
5410static const void *lt_preloaded_setup() {
5411 return lt__PROGRAM__LTX_preloaded_symbols;
5412}
5413#endif
5414
5415#ifdef __cplusplus
5416}
5417#endif
5418_LT_EOF
5419 # Now try linking the two files.
5420 mv conftest.$ac_objext conftstm.$ac_objext
5421 lt_save_LIBS="$LIBS"
5422 lt_save_CFLAGS="$CFLAGS"
5423 LIBS="conftstm.$ac_objext"
5424 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5426 (eval $ac_link) 2>&5
5427 ac_status=$?
5428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5430 pipe_works=yes
5431 fi
5432 LIBS="$lt_save_LIBS"
5433 CFLAGS="$lt_save_CFLAGS"
5434 else
5435 echo "cannot find nm_test_func in $nlist" >&5
5436 fi
5437 else
5438 echo "cannot find nm_test_var in $nlist" >&5
5439 fi
5440 else
5441 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5442 fi
5443 else
5444 echo "$progname: failed program was:" >&5
5445 cat conftest.$ac_ext >&5
5446 fi
5447 rm -rf conftest* conftst*
5448
5449 # Do not use the global_symbol_pipe unless it works.
5450 if test "$pipe_works" = yes; then
5451 break
5452 else
5453 lt_cv_sys_global_symbol_pipe=
5454 fi
5455done
5456
5457fi
5458
5459if test -z "$lt_cv_sys_global_symbol_pipe"; then
5460 lt_cv_sys_global_symbol_to_cdecl=
5461fi
5462if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5463 { $as_echo "$as_me:$LINENO: result: failed" >&5
5464$as_echo "failed" >&6; }
5465else
5466 { $as_echo "$as_me:$LINENO: result: ok" >&5
5467$as_echo "ok" >&6; }
5468fi
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492# Check whether --enable-libtool-lock was given.
5493if test "${enable_libtool_lock+set}" = set; then
5494 enableval=$enable_libtool_lock;
5495fi
5496
5497test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5498
5499# Some flags need to be propagated to the compiler or linker for good
5500# libtool support.
5501case $host in
5502ia64-*-hpux*)
5503 # Find out which ABI we are using.
5504 echo 'int i;' > conftest.$ac_ext
5505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5506 (eval $ac_compile) 2>&5
5507 ac_status=$?
5508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; then
5510 case `/usr/bin/file conftest.$ac_objext` in
5511 *ELF-32*)
5512 HPUX_IA64_MODE="32"
5513 ;;
5514 *ELF-64*)
5515 HPUX_IA64_MODE="64"
5516 ;;
5517 esac
5518 fi
5519 rm -rf conftest*
5520 ;;
5521*-*-irix6*)
5522 # Find out which ABI we are using.
5523 echo '#line 5523 "configure"' > conftest.$ac_ext
5524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5525 (eval $ac_compile) 2>&5
5526 ac_status=$?
5527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; then
5529 if test "$lt_cv_prog_gnu_ld" = yes; then
5530 case `/usr/bin/file conftest.$ac_objext` in
5531 *32-bit*)
5532 LD="${LD-ld} -melf32bsmip"
5533 ;;
5534 *N32*)
5535 LD="${LD-ld} -melf32bmipn32"
5536 ;;
5537 *64-bit*)
5538 LD="${LD-ld} -melf64bmip"
5539 ;;
5540 esac
5541 else
5542 case `/usr/bin/file conftest.$ac_objext` in
5543 *32-bit*)
5544 LD="${LD-ld} -32"
5545 ;;
5546 *N32*)
5547 LD="${LD-ld} -n32"
5548 ;;
5549 *64-bit*)
5550 LD="${LD-ld} -64"
5551 ;;
5552 esac
5553 fi
5554 fi
5555 rm -rf conftest*
5556 ;;
5557
5558x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5559s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5560 # Find out which ABI we are using.
5561 echo 'int i;' > conftest.$ac_ext
5562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563 (eval $ac_compile) 2>&5
5564 ac_status=$?
5565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; then
5567 case `/usr/bin/file conftest.o` in
5568 *32-bit*)
5569 case $host in
5570 x86_64-*kfreebsd*-gnu)
5571 LD="${LD-ld} -m elf_i386_fbsd"
5572 ;;
5573 x86_64-*linux*)
5574 LD="${LD-ld} -m elf_i386"
5575 ;;
5576 ppc64-*linux*|powerpc64-*linux*)
5577 LD="${LD-ld} -m elf32ppclinux"
5578 ;;
5579 s390x-*linux*)
5580 LD="${LD-ld} -m elf_s390"
5581 ;;
5582 sparc64-*linux*)
5583 LD="${LD-ld} -m elf32_sparc"
5584 ;;
5585 esac
5586 ;;
5587 *64-bit*)
5588 case $host in
5589 x86_64-*kfreebsd*-gnu)
5590 LD="${LD-ld} -m elf_x86_64_fbsd"
5591 ;;
5592 x86_64-*linux*)
5593 LD="${LD-ld} -m elf_x86_64"
5594 ;;
5595 ppc*-*linux*|powerpc*-*linux*)
5596 LD="${LD-ld} -m elf64ppc"
5597 ;;
5598 s390*-*linux*|s390*-*tpf*)
5599 LD="${LD-ld} -m elf64_s390"
5600 ;;
5601 sparc*-*linux*)
5602 LD="${LD-ld} -m elf64_sparc"
5603 ;;
5604 esac
5605 ;;
5606 esac
5607 fi
5608 rm -rf conftest*
5609 ;;
5610
5611*-*-sco3.2v5*)
5612 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5613 SAVE_CFLAGS="$CFLAGS"
5614 CFLAGS="$CFLAGS -belf"
5615 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5616$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5617if test "${lt_cv_cc_needs_belf+set}" = set; then
5618 $as_echo_n "(cached) " >&6
5619else
5620 ac_ext=c
5621ac_cpp='$CPP $CPPFLAGS'
5622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5624ac_compiler_gnu=$ac_cv_c_compiler_gnu
5625
5626 cat >conftest.$ac_ext <<_ACEOF
5627/* confdefs.h. */
5628_ACEOF
5629cat confdefs.h >>conftest.$ac_ext
5630cat >>conftest.$ac_ext <<_ACEOF
5631/* end confdefs.h. */
5632
5633int
5634main ()
5635{
5636
5637 ;
5638 return 0;
5639}
5640_ACEOF
5641rm -f conftest.$ac_objext conftest$ac_exeext
5642if { (ac_try="$ac_link"
5643case "(($ac_try" in
5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645 *) ac_try_echo=$ac_try;;
5646esac
5647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5648$as_echo "$ac_try_echo") >&5
5649 (eval "$ac_link") 2>conftest.er1
5650 ac_status=$?
5651 grep -v '^ *+' conftest.er1 >conftest.err
5652 rm -f conftest.er1
5653 cat conftest.err >&5
5654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } && {
5656 test -z "$ac_c_werror_flag" ||
5657 test ! -s conftest.err
5658 } && test -s conftest$ac_exeext && {
5659 test "$cross_compiling" = yes ||
5660 $as_test_x conftest$ac_exeext
5661 }; then
5662 lt_cv_cc_needs_belf=yes
5663else
5664 $as_echo "$as_me: failed program was:" >&5
5665sed 's/^/| /' conftest.$ac_ext >&5
5666
5667 lt_cv_cc_needs_belf=no
5668fi
5669
5670rm -rf conftest.dSYM
5671rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5672 conftest$ac_exeext conftest.$ac_ext
5673 ac_ext=c
5674ac_cpp='$CPP $CPPFLAGS'
5675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5677ac_compiler_gnu=$ac_cv_c_compiler_gnu
5678
5679fi
5680{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5681$as_echo "$lt_cv_cc_needs_belf" >&6; }
5682 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5683 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5684 CFLAGS="$SAVE_CFLAGS"
5685 fi
5686 ;;
5687sparc*-*solaris*)
5688 # Find out which ABI we are using.
5689 echo 'int i;' > conftest.$ac_ext
5690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5691 (eval $ac_compile) 2>&5
5692 ac_status=$?
5693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; then
5695 case `/usr/bin/file conftest.o` in
5696 *64-bit*)
5697 case $lt_cv_prog_gnu_ld in
5698 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5699 *)
5700 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5701 LD="${LD-ld} -64"
5702 fi
5703 ;;
5704 esac
5705 ;;
5706 esac
5707 fi
5708 rm -rf conftest*
5709 ;;
5710esac
5711
5712need_locks="$enable_libtool_lock"
5713
5714
5715 case $host_os in
5716 rhapsody* | darwin*)
5717 if test -n "$ac_tool_prefix"; then
5718 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5719set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5720{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5721$as_echo_n "checking for $ac_word... " >&6; }
5722if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5723 $as_echo_n "(cached) " >&6
5724else
5725 if test -n "$DSYMUTIL"; then
5726 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5727else
5728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729for as_dir in $PATH
5730do
5731 IFS=$as_save_IFS
5732 test -z "$as_dir" && as_dir=.
5733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5735 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5736 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 break 2
5738 fi
5739done
5740done
5741IFS=$as_save_IFS
5742
5743fi
5744fi
5745DSYMUTIL=$ac_cv_prog_DSYMUTIL
5746if test -n "$DSYMUTIL"; then
5747 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5748$as_echo "$DSYMUTIL" >&6; }
5749else
5750 { $as_echo "$as_me:$LINENO: result: no" >&5
5751$as_echo "no" >&6; }
5752fi
5753
5754
5755fi
5756if test -z "$ac_cv_prog_DSYMUTIL"; then
5757 ac_ct_DSYMUTIL=$DSYMUTIL
5758 # Extract the first word of "dsymutil", so it can be a program name with args.
5759set dummy dsymutil; ac_word=$2
5760{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5761$as_echo_n "checking for $ac_word... " >&6; }
5762if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5763 $as_echo_n "(cached) " >&6
5764else
5765 if test -n "$ac_ct_DSYMUTIL"; then
5766 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5767else
5768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769for as_dir in $PATH
5770do
5771 IFS=$as_save_IFS
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5775 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5776 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 break 2
5778 fi
5779done
5780done
5781IFS=$as_save_IFS
5782
5783fi
5784fi
5785ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5786if test -n "$ac_ct_DSYMUTIL"; then
5787 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5788$as_echo "$ac_ct_DSYMUTIL" >&6; }
5789else
5790 { $as_echo "$as_me:$LINENO: result: no" >&5
5791$as_echo "no" >&6; }
5792fi
5793
5794 if test "x$ac_ct_DSYMUTIL" = x; then
5795 DSYMUTIL=":"
5796 else
5797 case $cross_compiling:$ac_tool_warned in
5798yes:)
5799{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5801ac_tool_warned=yes ;;
5802esac
5803 DSYMUTIL=$ac_ct_DSYMUTIL
5804 fi
5805else
5806 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5807fi
5808
5809 if test -n "$ac_tool_prefix"; then
5810 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5811set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5812{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5813$as_echo_n "checking for $ac_word... " >&6; }
5814if test "${ac_cv_prog_NMEDIT+set}" = set; then
5815 $as_echo_n "(cached) " >&6
5816else
5817 if test -n "$NMEDIT"; then
5818 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5819else
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5828 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 break 2
5830 fi
5831done
5832done
5833IFS=$as_save_IFS
5834
5835fi
5836fi
5837NMEDIT=$ac_cv_prog_NMEDIT
5838if test -n "$NMEDIT"; then
5839 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5840$as_echo "$NMEDIT" >&6; }
5841else
5842 { $as_echo "$as_me:$LINENO: result: no" >&5
5843$as_echo "no" >&6; }
5844fi
5845
5846
5847fi
5848if test -z "$ac_cv_prog_NMEDIT"; then
5849 ac_ct_NMEDIT=$NMEDIT
5850 # Extract the first word of "nmedit", so it can be a program name with args.
5851set dummy nmedit; ac_word=$2
5852{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5853$as_echo_n "checking for $ac_word... " >&6; }
5854if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5855 $as_echo_n "(cached) " >&6
5856else
5857 if test -n "$ac_ct_NMEDIT"; then
5858 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5859else
5860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861for as_dir in $PATH
5862do
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5867 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5868 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 break 2
5870 fi
5871done
5872done
5873IFS=$as_save_IFS
5874
5875fi
5876fi
5877ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5878if test -n "$ac_ct_NMEDIT"; then
5879 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5880$as_echo "$ac_ct_NMEDIT" >&6; }
5881else
5882 { $as_echo "$as_me:$LINENO: result: no" >&5
5883$as_echo "no" >&6; }
5884fi
5885
5886 if test "x$ac_ct_NMEDIT" = x; then
5887 NMEDIT=":"
5888 else
5889 case $cross_compiling:$ac_tool_warned in
5890yes:)
5891{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5893ac_tool_warned=yes ;;
5894esac
5895 NMEDIT=$ac_ct_NMEDIT
5896 fi
5897else
5898 NMEDIT="$ac_cv_prog_NMEDIT"
5899fi
5900
5901 if test -n "$ac_tool_prefix"; then
5902 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5903set dummy ${ac_tool_prefix}lipo; ac_word=$2
5904{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5905$as_echo_n "checking for $ac_word... " >&6; }
5906if test "${ac_cv_prog_LIPO+set}" = set; then
5907 $as_echo_n "(cached) " >&6
5908else
5909 if test -n "$LIPO"; then
5910 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5911else
5912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913for as_dir in $PATH
5914do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5920 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923done
5924done
5925IFS=$as_save_IFS
5926
5927fi
5928fi
5929LIPO=$ac_cv_prog_LIPO
5930if test -n "$LIPO"; then
5931 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5932$as_echo "$LIPO" >&6; }
5933else
5934 { $as_echo "$as_me:$LINENO: result: no" >&5
5935$as_echo "no" >&6; }
5936fi
5937
5938
5939fi
5940if test -z "$ac_cv_prog_LIPO"; then
5941 ac_ct_LIPO=$LIPO
5942 # Extract the first word of "lipo", so it can be a program name with args.
5943set dummy lipo; ac_word=$2
5944{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5945$as_echo_n "checking for $ac_word... " >&6; }
5946if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5947 $as_echo_n "(cached) " >&6
5948else
5949 if test -n "$ac_ct_LIPO"; then
5950 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5951else
5952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953for as_dir in $PATH
5954do
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959 ac_cv_prog_ac_ct_LIPO="lipo"
5960 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 break 2
5962 fi
5963done
5964done
5965IFS=$as_save_IFS
5966
5967fi
5968fi
5969ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5970if test -n "$ac_ct_LIPO"; then
5971 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5972$as_echo "$ac_ct_LIPO" >&6; }
5973else
5974 { $as_echo "$as_me:$LINENO: result: no" >&5
5975$as_echo "no" >&6; }
5976fi
5977
5978 if test "x$ac_ct_LIPO" = x; then
5979 LIPO=":"
5980 else
5981 case $cross_compiling:$ac_tool_warned in
5982yes:)
5983{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5985ac_tool_warned=yes ;;
5986esac
5987 LIPO=$ac_ct_LIPO
5988 fi
5989else
5990 LIPO="$ac_cv_prog_LIPO"
5991fi
5992
5993 if test -n "$ac_tool_prefix"; then
5994 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5995set dummy ${ac_tool_prefix}otool; ac_word=$2
5996{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5997$as_echo_n "checking for $ac_word... " >&6; }
5998if test "${ac_cv_prog_OTOOL+set}" = set; then
5999 $as_echo_n "(cached) " >&6
6000else
6001 if test -n "$OTOOL"; then
6002 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6003else
6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005for as_dir in $PATH
6006do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6012 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015done
6016done
6017IFS=$as_save_IFS
6018
6019fi
6020fi
6021OTOOL=$ac_cv_prog_OTOOL
6022if test -n "$OTOOL"; then
6023 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6024$as_echo "$OTOOL" >&6; }
6025else
6026 { $as_echo "$as_me:$LINENO: result: no" >&5
6027$as_echo "no" >&6; }
6028fi
6029
6030
6031fi
6032if test -z "$ac_cv_prog_OTOOL"; then
6033 ac_ct_OTOOL=$OTOOL
6034 # Extract the first word of "otool", so it can be a program name with args.
6035set dummy otool; ac_word=$2
6036{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6037$as_echo_n "checking for $ac_word... " >&6; }
6038if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6039 $as_echo_n "(cached) " >&6
6040else
6041 if test -n "$ac_ct_OTOOL"; then
6042 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6043else
6044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045for as_dir in $PATH
6046do
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6051 ac_cv_prog_ac_ct_OTOOL="otool"
6052 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 break 2
6054 fi
6055done
6056done
6057IFS=$as_save_IFS
6058
6059fi
6060fi
6061ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6062if test -n "$ac_ct_OTOOL"; then
6063 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6064$as_echo "$ac_ct_OTOOL" >&6; }
6065else
6066 { $as_echo "$as_me:$LINENO: result: no" >&5
6067$as_echo "no" >&6; }
6068fi
6069
6070 if test "x$ac_ct_OTOOL" = x; then
6071 OTOOL=":"
6072 else
6073 case $cross_compiling:$ac_tool_warned in
6074yes:)
6075{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6077ac_tool_warned=yes ;;
6078esac
6079 OTOOL=$ac_ct_OTOOL
6080 fi
6081else
6082 OTOOL="$ac_cv_prog_OTOOL"
6083fi
6084
6085 if test -n "$ac_tool_prefix"; then
6086 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6087set dummy ${ac_tool_prefix}otool64; ac_word=$2
6088{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6089$as_echo_n "checking for $ac_word... " >&6; }
6090if test "${ac_cv_prog_OTOOL64+set}" = set; then
6091 $as_echo_n "(cached) " >&6
6092else
6093 if test -n "$OTOOL64"; then
6094 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6095else
6096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097for as_dir in $PATH
6098do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6104 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 break 2
6106 fi
6107done
6108done
6109IFS=$as_save_IFS
6110
6111fi
6112fi
6113OTOOL64=$ac_cv_prog_OTOOL64
6114if test -n "$OTOOL64"; then
6115 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6116$as_echo "$OTOOL64" >&6; }
6117else
6118 { $as_echo "$as_me:$LINENO: result: no" >&5
6119$as_echo "no" >&6; }
6120fi
6121
6122
6123fi
6124if test -z "$ac_cv_prog_OTOOL64"; then
6125 ac_ct_OTOOL64=$OTOOL64
6126 # Extract the first word of "otool64", so it can be a program name with args.
6127set dummy otool64; ac_word=$2
6128{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6129$as_echo_n "checking for $ac_word... " >&6; }
6130if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6131 $as_echo_n "(cached) " >&6
6132else
6133 if test -n "$ac_ct_OTOOL64"; then
6134 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6135else
6136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137for as_dir in $PATH
6138do
6139 IFS=$as_save_IFS
6140 test -z "$as_dir" && as_dir=.
6141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6143 ac_cv_prog_ac_ct_OTOOL64="otool64"
6144 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 break 2
6146 fi
6147done
6148done
6149IFS=$as_save_IFS
6150
6151fi
6152fi
6153ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6154if test -n "$ac_ct_OTOOL64"; then
6155 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6156$as_echo "$ac_ct_OTOOL64" >&6; }
6157else
6158 { $as_echo "$as_me:$LINENO: result: no" >&5
6159$as_echo "no" >&6; }
6160fi
6161
6162 if test "x$ac_ct_OTOOL64" = x; then
6163 OTOOL64=":"
6164 else
6165 case $cross_compiling:$ac_tool_warned in
6166yes:)
6167{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169ac_tool_warned=yes ;;
6170esac
6171 OTOOL64=$ac_ct_OTOOL64
6172 fi
6173else
6174 OTOOL64="$ac_cv_prog_OTOOL64"
6175fi
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6204$as_echo_n "checking for -single_module linker flag... " >&6; }
6205if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6206 $as_echo_n "(cached) " >&6
6207else
6208 lt_cv_apple_cc_single_mod=no
6209 if test -z "${LT_MULTI_MODULE}"; then
6210 # By default we will add the -single_module flag. You can override
6211 # by either setting the environment variable LT_MULTI_MODULE
6212 # non-empty at configure time, or by adding -multi_module to the
6213 # link flags.
6214 rm -rf libconftest.dylib*
6215 echo "int foo(void){return 1;}" > conftest.c
6216 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6217-dynamiclib -Wl,-single_module conftest.c" >&5
6218 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6219 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6220 _lt_result=$?
6221 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6222 lt_cv_apple_cc_single_mod=yes
6223 else
6224 cat conftest.err >&5
6225 fi
6226 rm -rf libconftest.dylib*
6227 rm -f conftest.*
6228 fi
6229fi
6230{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6231$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6232 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6233$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6234if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6235 $as_echo_n "(cached) " >&6
6236else
6237 lt_cv_ld_exported_symbols_list=no
6238 save_LDFLAGS=$LDFLAGS
6239 echo "_main" > conftest.sym
6240 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6241 cat >conftest.$ac_ext <<_ACEOF
6242/* confdefs.h. */
6243_ACEOF
6244cat confdefs.h >>conftest.$ac_ext
6245cat >>conftest.$ac_ext <<_ACEOF
6246/* end confdefs.h. */
6247
6248int
6249main ()
6250{
6251
6252 ;
6253 return 0;
6254}
6255_ACEOF
6256rm -f conftest.$ac_objext conftest$ac_exeext
6257if { (ac_try="$ac_link"
6258case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261esac
6262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6263$as_echo "$ac_try_echo") >&5
6264 (eval "$ac_link") 2>conftest.er1
6265 ac_status=$?
6266 grep -v '^ *+' conftest.er1 >conftest.err
6267 rm -f conftest.er1
6268 cat conftest.err >&5
6269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } && {
6271 test -z "$ac_c_werror_flag" ||
6272 test ! -s conftest.err
6273 } && test -s conftest$ac_exeext && {
6274 test "$cross_compiling" = yes ||
6275 $as_test_x conftest$ac_exeext
6276 }; then
6277 lt_cv_ld_exported_symbols_list=yes
6278else
6279 $as_echo "$as_me: failed program was:" >&5
6280sed 's/^/| /' conftest.$ac_ext >&5
6281
6282 lt_cv_ld_exported_symbols_list=no
6283fi
6284
6285rm -rf conftest.dSYM
6286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6287 conftest$ac_exeext conftest.$ac_ext
6288 LDFLAGS="$save_LDFLAGS"
6289
6290fi
6291{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6292$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6293 case $host_os in
6294 rhapsody* | darwin1.[012])
6295 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6296 darwin1.*)
6297 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6298 darwin*) # darwin 5.x on
6299 # if running on 10.5 or later, the deployment target defaults
6300 # to the OS version, if on x86, and 10.4, the deployment
6301 # target defaults to 10.4. Don't you love it?
6302 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6303 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6304 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6305 10.[012]*)
6306 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6307 10.*)
6308 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6309 esac
6310 ;;
6311 esac
6312 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6313 _lt_dar_single_mod='$single_module'
6314 fi
6315 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6316 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6317 else
6318 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6319 fi
6320 if test "$DSYMUTIL" != ":"; then
6321 _lt_dsymutil='~$DSYMUTIL $lib || :'
6322 else
6323 _lt_dsymutil=
6324 fi
6325 ;;
6326 esac
6327
6328ac_ext=c
6329ac_cpp='$CPP $CPPFLAGS'
6330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6332ac_compiler_gnu=$ac_cv_c_compiler_gnu
6333{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6334$as_echo_n "checking how to run the C preprocessor... " >&6; }
6335# On Suns, sometimes $CPP names a directory.
6336if test -n "$CPP" && test -d "$CPP"; then
6337 CPP=
6338fi
6339if test -z "$CPP"; then
6340 if test "${ac_cv_prog_CPP+set}" = set; then
6341 $as_echo_n "(cached) " >&6
6342else
6343 # Double quotes because CPP needs to be expanded
6344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6345 do
6346 ac_preproc_ok=false
6347for ac_c_preproc_warn_flag in '' yes
6348do
6349 # Use a header file that comes with gcc, so configuring glibc
6350 # with a fresh cross-compiler works.
6351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6352 # <limits.h> exists even on freestanding compilers.
6353 # On the NeXT, cc -E runs the code through the compiler's parser,
6354 # not just through cpp. "Syntax error" is here to catch this case.
6355 cat >conftest.$ac_ext <<_ACEOF
6356/* confdefs.h. */
6357_ACEOF
6358cat confdefs.h >>conftest.$ac_ext
6359cat >>conftest.$ac_ext <<_ACEOF
6360/* end confdefs.h. */
6361#ifdef __STDC__
6362# include <limits.h>
6363#else
6364# include <assert.h>
6365#endif
6366 Syntax error
6367_ACEOF
6368if { (ac_try="$ac_cpp conftest.$ac_ext"
6369case "(($ac_try" in
6370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6371 *) ac_try_echo=$ac_try;;
6372esac
6373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6374$as_echo "$ac_try_echo") >&5
6375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6376 ac_status=$?
6377 grep -v '^ *+' conftest.er1 >conftest.err
6378 rm -f conftest.er1
6379 cat conftest.err >&5
6380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } >/dev/null && {
6382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6383 test ! -s conftest.err
6384 }; then
6385 :
6386else
6387 $as_echo "$as_me: failed program was:" >&5
6388sed 's/^/| /' conftest.$ac_ext >&5
6389
6390 # Broken: fails on valid input.
6391continue
6392fi
6393
6394rm -f conftest.err conftest.$ac_ext
6395
6396 # OK, works on sane cases. Now check whether nonexistent headers
6397 # can be detected and how.
6398 cat >conftest.$ac_ext <<_ACEOF
6399/* confdefs.h. */
6400_ACEOF
6401cat confdefs.h >>conftest.$ac_ext
6402cat >>conftest.$ac_ext <<_ACEOF
6403/* end confdefs.h. */
6404#include <ac_nonexistent.h>
6405_ACEOF
6406if { (ac_try="$ac_cpp conftest.$ac_ext"
6407case "(($ac_try" in
6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6410esac
6411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6412$as_echo "$ac_try_echo") >&5
6413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6414 ac_status=$?
6415 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -f conftest.er1
6417 cat conftest.err >&5
6418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } >/dev/null && {
6420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6421 test ! -s conftest.err
6422 }; then
6423 # Broken: success on invalid input.
6424continue
6425else
6426 $as_echo "$as_me: failed program was:" >&5
6427sed 's/^/| /' conftest.$ac_ext >&5
6428
6429 # Passes both tests.
6430ac_preproc_ok=:
6431break
6432fi
6433
6434rm -f conftest.err conftest.$ac_ext
6435
6436done
6437# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6438rm -f conftest.err conftest.$ac_ext
6439if $ac_preproc_ok; then
6440 break
6441fi
6442
6443 done
6444 ac_cv_prog_CPP=$CPP
6445
6446fi
6447 CPP=$ac_cv_prog_CPP
6448else
6449 ac_cv_prog_CPP=$CPP
6450fi
6451{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6452$as_echo "$CPP" >&6; }
6453ac_preproc_ok=false
6454for ac_c_preproc_warn_flag in '' yes
6455do
6456 # Use a header file that comes with gcc, so configuring glibc
6457 # with a fresh cross-compiler works.
6458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6459 # <limits.h> exists even on freestanding compilers.
6460 # On the NeXT, cc -E runs the code through the compiler's parser,
6461 # not just through cpp. "Syntax error" is here to catch this case.
6462 cat >conftest.$ac_ext <<_ACEOF
6463/* confdefs.h. */
6464_ACEOF
6465cat confdefs.h >>conftest.$ac_ext
6466cat >>conftest.$ac_ext <<_ACEOF
6467/* end confdefs.h. */
6468#ifdef __STDC__
6469# include <limits.h>
6470#else
6471# include <assert.h>
6472#endif
6473 Syntax error
6474_ACEOF
6475if { (ac_try="$ac_cpp conftest.$ac_ext"
6476case "(($ac_try" in
6477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478 *) ac_try_echo=$ac_try;;
6479esac
6480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6481$as_echo "$ac_try_echo") >&5
6482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6483 ac_status=$?
6484 grep -v '^ *+' conftest.er1 >conftest.err
6485 rm -f conftest.er1
6486 cat conftest.err >&5
6487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } >/dev/null && {
6489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6490 test ! -s conftest.err
6491 }; then
6492 :
6493else
6494 $as_echo "$as_me: failed program was:" >&5
6495sed 's/^/| /' conftest.$ac_ext >&5
6496
6497 # Broken: fails on valid input.
6498continue
6499fi
6500
6501rm -f conftest.err conftest.$ac_ext
6502
6503 # OK, works on sane cases. Now check whether nonexistent headers
6504 # can be detected and how.
6505 cat >conftest.$ac_ext <<_ACEOF
6506/* confdefs.h. */
6507_ACEOF
6508cat confdefs.h >>conftest.$ac_ext
6509cat >>conftest.$ac_ext <<_ACEOF
6510/* end confdefs.h. */
6511#include <ac_nonexistent.h>
6512_ACEOF
6513if { (ac_try="$ac_cpp conftest.$ac_ext"
6514case "(($ac_try" in
6515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6516 *) ac_try_echo=$ac_try;;
6517esac
6518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6519$as_echo "$ac_try_echo") >&5
6520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6521 ac_status=$?
6522 grep -v '^ *+' conftest.er1 >conftest.err
6523 rm -f conftest.er1
6524 cat conftest.err >&5
6525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } >/dev/null && {
6527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6528 test ! -s conftest.err
6529 }; then
6530 # Broken: success on invalid input.
6531continue
6532else
6533 $as_echo "$as_me: failed program was:" >&5
6534sed 's/^/| /' conftest.$ac_ext >&5
6535
6536 # Passes both tests.
6537ac_preproc_ok=:
6538break
6539fi
6540
6541rm -f conftest.err conftest.$ac_ext
6542
6543done
6544# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6545rm -f conftest.err conftest.$ac_ext
6546if $ac_preproc_ok; then
6547 :
6548else
6549 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6551{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6552See \`config.log' for more details." >&5
6553$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6554See \`config.log' for more details." >&2;}
6555 { (exit 1); exit 1; }; }; }
6556fi
6557
6558ac_ext=c
6559ac_cpp='$CPP $CPPFLAGS'
6560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6562ac_compiler_gnu=$ac_cv_c_compiler_gnu
6563
6564
6565{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6566$as_echo_n "checking for ANSI C header files... " >&6; }
6567if test "${ac_cv_header_stdc+set}" = set; then
6568 $as_echo_n "(cached) " >&6
6569else
6570 cat >conftest.$ac_ext <<_ACEOF
6571/* confdefs.h. */
6572_ACEOF
6573cat confdefs.h >>conftest.$ac_ext
6574cat >>conftest.$ac_ext <<_ACEOF
6575/* end confdefs.h. */
6576#include <stdlib.h>
6577#include <stdarg.h>
6578#include <string.h>
6579#include <float.h>
6580
6581int
6582main ()
6583{
6584
6585 ;
6586 return 0;
6587}
6588_ACEOF
6589rm -f conftest.$ac_objext
6590if { (ac_try="$ac_compile"
6591case "(($ac_try" in
6592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6593 *) ac_try_echo=$ac_try;;
6594esac
6595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6596$as_echo "$ac_try_echo") >&5
6597 (eval "$ac_compile") 2>conftest.er1
6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } && {
6604 test -z "$ac_c_werror_flag" ||
6605 test ! -s conftest.err
6606 } && test -s conftest.$ac_objext; then
6607 ac_cv_header_stdc=yes
6608else
6609 $as_echo "$as_me: failed program was:" >&5
6610sed 's/^/| /' conftest.$ac_ext >&5
6611
6612 ac_cv_header_stdc=no
6613fi
6614
6615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616
6617if test $ac_cv_header_stdc = yes; then
6618 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6619 cat >conftest.$ac_ext <<_ACEOF
6620/* confdefs.h. */
6621_ACEOF
6622cat confdefs.h >>conftest.$ac_ext
6623cat >>conftest.$ac_ext <<_ACEOF
6624/* end confdefs.h. */
6625#include <string.h>
6626
6627_ACEOF
6628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6629 $EGREP "memchr" >/dev/null 2>&1; then
6630 :
6631else
6632 ac_cv_header_stdc=no
6633fi
6634rm -f conftest*
6635
6636fi
6637
6638if test $ac_cv_header_stdc = yes; then
6639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6640 cat >conftest.$ac_ext <<_ACEOF
6641/* confdefs.h. */
6642_ACEOF
6643cat confdefs.h >>conftest.$ac_ext
6644cat >>conftest.$ac_ext <<_ACEOF
6645/* end confdefs.h. */
6646#include <stdlib.h>
6647
6648_ACEOF
6649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6650 $EGREP "free" >/dev/null 2>&1; then
6651 :
6652else
6653 ac_cv_header_stdc=no
6654fi
6655rm -f conftest*
6656
6657fi
6658
6659if test $ac_cv_header_stdc = yes; then
6660 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6661 if test "$cross_compiling" = yes; then
6662 :
6663else
6664 cat >conftest.$ac_ext <<_ACEOF
6665/* confdefs.h. */
6666_ACEOF
6667cat confdefs.h >>conftest.$ac_ext
6668cat >>conftest.$ac_ext <<_ACEOF
6669/* end confdefs.h. */
6670#include <ctype.h>
6671#include <stdlib.h>
6672#if ((' ' & 0x0FF) == 0x020)
6673# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6674# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6675#else
6676# define ISLOWER(c) \
6677 (('a' <= (c) && (c) <= 'i') \
6678 || ('j' <= (c) && (c) <= 'r') \
6679 || ('s' <= (c) && (c) <= 'z'))
6680# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6681#endif
6682
6683#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6684int
6685main ()
6686{
6687 int i;
6688 for (i = 0; i < 256; i++)
6689 if (XOR (islower (i), ISLOWER (i))
6690 || toupper (i) != TOUPPER (i))
6691 return 2;
6692 return 0;
6693}
6694_ACEOF
6695rm -f conftest$ac_exeext
6696if { (ac_try="$ac_link"
6697case "(($ac_try" in
6698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6699 *) ac_try_echo=$ac_try;;
6700esac
6701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6702$as_echo "$ac_try_echo") >&5
6703 (eval "$ac_link") 2>&5
6704 ac_status=$?
6705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6707 { (case "(($ac_try" in
6708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709 *) ac_try_echo=$ac_try;;
6710esac
6711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6712$as_echo "$ac_try_echo") >&5
6713 (eval "$ac_try") 2>&5
6714 ac_status=$?
6715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6717 :
6718else
6719 $as_echo "$as_me: program exited with status $ac_status" >&5
6720$as_echo "$as_me: failed program was:" >&5
6721sed 's/^/| /' conftest.$ac_ext >&5
6722
6723( exit $ac_status )
6724ac_cv_header_stdc=no
6725fi
6726rm -rf conftest.dSYM
6727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6728fi
6729
6730
6731fi
6732fi
6733{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6734$as_echo "$ac_cv_header_stdc" >&6; }
6735if test $ac_cv_header_stdc = yes; then
6736
6737cat >>confdefs.h <<\_ACEOF
6738#define STDC_HEADERS 1
6739_ACEOF
6740
6741fi
6742
6743# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6754 inttypes.h stdint.h unistd.h
6755do
6756as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6757{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6758$as_echo_n "checking for $ac_header... " >&6; }
6759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6760 $as_echo_n "(cached) " >&6
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$ac_includes_default
6769
6770#include <$ac_header>
6771_ACEOF
6772rm -f conftest.$ac_objext
6773if { (ac_try="$ac_compile"
6774case "(($ac_try" in
6775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776 *) ac_try_echo=$ac_try;;
6777esac
6778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6779$as_echo "$ac_try_echo") >&5
6780 (eval "$ac_compile") 2>conftest.er1
6781 ac_status=$?
6782 grep -v '^ *+' conftest.er1 >conftest.err
6783 rm -f conftest.er1
6784 cat conftest.err >&5
6785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } && {
6787 test -z "$ac_c_werror_flag" ||
6788 test ! -s conftest.err
6789 } && test -s conftest.$ac_objext; then
6790 eval "$as_ac_Header=yes"
6791else
6792 $as_echo "$as_me: failed program was:" >&5
6793sed 's/^/| /' conftest.$ac_ext >&5
6794
6795 eval "$as_ac_Header=no"
6796fi
6797
6798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799fi
6800ac_res=`eval 'as_val=${'$as_ac_Header'}
6801 $as_echo "$as_val"'`
6802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6803$as_echo "$ac_res" >&6; }
6804as_val=`eval 'as_val=${'$as_ac_Header'}
6805 $as_echo "$as_val"'`
6806 if test "x$as_val" = x""yes; then
6807 cat >>confdefs.h <<_ACEOF
6808#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6809_ACEOF
6810
6811fi
6812
6813done
6814
6815
6816
6817for ac_header in dlfcn.h
6818do
6819as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6820{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6821$as_echo_n "checking for $ac_header... " >&6; }
6822if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6823 $as_echo_n "(cached) " >&6
6824else
6825 cat >conftest.$ac_ext <<_ACEOF
6826/* confdefs.h. */
6827_ACEOF
6828cat confdefs.h >>conftest.$ac_ext
6829cat >>conftest.$ac_ext <<_ACEOF
6830/* end confdefs.h. */
6831$ac_includes_default
6832
6833#include <$ac_header>
6834_ACEOF
6835rm -f conftest.$ac_objext
6836if { (ac_try="$ac_compile"
6837case "(($ac_try" in
6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6840esac
6841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6842$as_echo "$ac_try_echo") >&5
6843 (eval "$ac_compile") 2>conftest.er1
6844 ac_status=$?
6845 grep -v '^ *+' conftest.er1 >conftest.err
6846 rm -f conftest.er1
6847 cat conftest.err >&5
6848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } && {
6850 test -z "$ac_c_werror_flag" ||
6851 test ! -s conftest.err
6852 } && test -s conftest.$ac_objext; then
6853 eval "$as_ac_Header=yes"
6854else
6855 $as_echo "$as_me: failed program was:" >&5
6856sed 's/^/| /' conftest.$ac_ext >&5
6857
6858 eval "$as_ac_Header=no"
6859fi
6860
6861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6862fi
6863ac_res=`eval 'as_val=${'$as_ac_Header'}
6864 $as_echo "$as_val"'`
6865 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6866$as_echo "$ac_res" >&6; }
6867as_val=`eval 'as_val=${'$as_ac_Header'}
6868 $as_echo "$as_val"'`
6869 if test "x$as_val" = x""yes; then
6870 cat >>confdefs.h <<_ACEOF
6871#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6872_ACEOF
6873
6874fi
6875
6876done
6877
6878
6879
6880# Set options
6881
6882
6883
6884 enable_dlopen=no
6885
6886
6887 enable_win32_dll=no
6888
6889
6890 # Check whether --enable-shared was given.
6891if test "${enable_shared+set}" = set; then
6892 enableval=$enable_shared; p=${PACKAGE-default}
6893 case $enableval in
6894 yes) enable_shared=yes ;;
6895 no) enable_shared=no ;;
6896 *)
6897 enable_shared=no
6898 # Look at the argument we got. We use all the common list separators.
6899 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6900 for pkg in $enableval; do
6901 IFS="$lt_save_ifs"
6902 if test "X$pkg" = "X$p"; then
6903 enable_shared=yes
6904 fi
6905 done
6906 IFS="$lt_save_ifs"
6907 ;;
6908 esac
6909else
6910 enable_shared=yes
6911fi
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921 # Check whether --enable-static was given.
6922if test "${enable_static+set}" = set; then
6923 enableval=$enable_static; p=${PACKAGE-default}
6924 case $enableval in
6925 yes) enable_static=yes ;;
6926 no) enable_static=no ;;
6927 *)
6928 enable_static=no
6929 # Look at the argument we got. We use all the common list separators.
6930 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6931 for pkg in $enableval; do
6932 IFS="$lt_save_ifs"
6933 if test "X$pkg" = "X$p"; then
6934 enable_static=yes
6935 fi
6936 done
6937 IFS="$lt_save_ifs"
6938 ;;
6939 esac
6940else
6941 enable_static=yes
6942fi
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953# Check whether --with-pic was given.
6954if test "${with_pic+set}" = set; then
6955 withval=$with_pic; pic_mode="$withval"
6956else
6957 pic_mode=default
6958fi
6959
6960
6961test -z "$pic_mode" && pic_mode=default
6962
6963
6964
6965
6966
6967
6968
6969 # Check whether --enable-fast-install was given.
6970if test "${enable_fast_install+set}" = set; then
6971 enableval=$enable_fast_install; p=${PACKAGE-default}
6972 case $enableval in
6973 yes) enable_fast_install=yes ;;
6974 no) enable_fast_install=no ;;
6975 *)
6976 enable_fast_install=no
6977 # Look at the argument we got. We use all the common list separators.
6978 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6979 for pkg in $enableval; do
6980 IFS="$lt_save_ifs"
6981 if test "X$pkg" = "X$p"; then
6982 enable_fast_install=yes
6983 fi
6984 done
6985 IFS="$lt_save_ifs"
6986 ;;
6987 esac
6988else
6989 enable_fast_install=yes
6990fi
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002# This can be used to rebuild libtool when needed
7003LIBTOOL_DEPS="$ltmain"
7004
7005# Always use our own libtool.
7006LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032test -z "$LN_S" && LN_S="ln -s"
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047if test -n "${ZSH_VERSION+set}" ; then
7048 setopt NO_GLOB_SUBST
7049fi
7050
7051{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7052$as_echo_n "checking for objdir... " >&6; }
7053if test "${lt_cv_objdir+set}" = set; then
7054 $as_echo_n "(cached) " >&6
7055else
7056 rm -f .libs 2>/dev/null
7057mkdir .libs 2>/dev/null
7058if test -d .libs; then
7059 lt_cv_objdir=.libs
7060else
7061 # MS-DOS does not allow filenames that begin with a dot.
7062 lt_cv_objdir=_libs
7063fi
7064rmdir .libs 2>/dev/null
7065fi
7066{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7067$as_echo "$lt_cv_objdir" >&6; }
7068objdir=$lt_cv_objdir
7069
7070
7071
7072
7073
7074cat >>confdefs.h <<_ACEOF
7075#define LT_OBJDIR "$lt_cv_objdir/"
7076_ACEOF
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094case $host_os in
7095aix3*)
7096 # AIX sometimes has problems with the GCC collect2 program. For some
7097 # reason, if we set the COLLECT_NAMES environment variable, the problems
7098 # vanish in a puff of smoke.
7099 if test "X${COLLECT_NAMES+set}" != Xset; then
7100 COLLECT_NAMES=
7101 export COLLECT_NAMES
7102 fi
7103 ;;
7104esac
7105
7106# Sed substitution that helps us do robust quoting. It backslashifies
7107# metacharacters that are still active within double-quoted strings.
7108sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7109
7110# Same as above, but do not quote variable references.
7111double_quote_subst='s/\(["`\\]\)/\\\1/g'
7112
7113# Sed substitution to delay expansion of an escaped shell variable in a
7114# double_quote_subst'ed string.
7115delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7116
7117# Sed substitution to delay expansion of an escaped single quote.
7118delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7119
7120# Sed substitution to avoid accidental globbing in evaled expressions
7121no_glob_subst='s/\*/\\\*/g'
7122
7123# Global variables:
7124ofile=libtool
7125can_build_shared=yes
7126
7127# All known linkers require a `.a' archive for static linking (except MSVC,
7128# which needs '.lib').
7129libext=a
7130
7131with_gnu_ld="$lt_cv_prog_gnu_ld"
7132
7133old_CC="$CC"
7134old_CFLAGS="$CFLAGS"
7135
7136# Set sane defaults for various variables
7137test -z "$CC" && CC=cc
7138test -z "$LTCC" && LTCC=$CC
7139test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7140test -z "$LD" && LD=ld
7141test -z "$ac_objext" && ac_objext=o
7142
7143for cc_temp in $compiler""; do
7144 case $cc_temp in
7145 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7146 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7147 \-*) ;;
7148 *) break;;
7149 esac
7150done
7151cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7152
7153
7154# Only perform the check for file, if the check method requires it
7155test -z "$MAGIC_CMD" && MAGIC_CMD=file
7156case $deplibs_check_method in
7157file_magic*)
7158 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7159 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7160$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7161if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7162 $as_echo_n "(cached) " >&6
7163else
7164 case $MAGIC_CMD in
7165[\\/*] | ?:[\\/]*)
7166 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7167 ;;
7168*)
7169 lt_save_MAGIC_CMD="$MAGIC_CMD"
7170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7171 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7172 for ac_dir in $ac_dummy; do
7173 IFS="$lt_save_ifs"
7174 test -z "$ac_dir" && ac_dir=.
7175 if test -f $ac_dir/${ac_tool_prefix}file; then
7176 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7177 if test -n "$file_magic_test_file"; then
7178 case $deplibs_check_method in
7179 "file_magic "*)
7180 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7181 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7182 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7183 $EGREP "$file_magic_regex" > /dev/null; then
7184 :
7185 else
7186 cat <<_LT_EOF 1>&2
7187
7188*** Warning: the command libtool uses to detect shared libraries,
7189*** $file_magic_cmd, produces output that libtool cannot recognize.
7190*** The result is that libtool may fail to recognize shared libraries
7191*** as such. This will affect the creation of libtool libraries that
7192*** depend on shared libraries, but programs linked with such libtool
7193*** libraries will work regardless of this problem. Nevertheless, you
7194*** may want to report the problem to your system manager and/or to
7195*** bug-libtool@gnu.org
7196
7197_LT_EOF
7198 fi ;;
7199 esac
7200 fi
7201 break
7202 fi
7203 done
7204 IFS="$lt_save_ifs"
7205 MAGIC_CMD="$lt_save_MAGIC_CMD"
7206 ;;
7207esac
7208fi
7209
7210MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7211if test -n "$MAGIC_CMD"; then
7212 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7213$as_echo "$MAGIC_CMD" >&6; }
7214else
7215 { $as_echo "$as_me:$LINENO: result: no" >&5
7216$as_echo "no" >&6; }
7217fi
7218
7219
7220
7221
7222
7223if test -z "$lt_cv_path_MAGIC_CMD"; then
7224 if test -n "$ac_tool_prefix"; then
7225 { $as_echo "$as_me:$LINENO: checking for file" >&5
7226$as_echo_n "checking for file... " >&6; }
7227if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7228 $as_echo_n "(cached) " >&6
7229else
7230 case $MAGIC_CMD in
7231[\\/*] | ?:[\\/]*)
7232 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7233 ;;
7234*)
7235 lt_save_MAGIC_CMD="$MAGIC_CMD"
7236 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7237 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7238 for ac_dir in $ac_dummy; do
7239 IFS="$lt_save_ifs"
7240 test -z "$ac_dir" && ac_dir=.
7241 if test -f $ac_dir/file; then
7242 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7243 if test -n "$file_magic_test_file"; then
7244 case $deplibs_check_method in
7245 "file_magic "*)
7246 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7248 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7249 $EGREP "$file_magic_regex" > /dev/null; then
7250 :
7251 else
7252 cat <<_LT_EOF 1>&2
7253
7254*** Warning: the command libtool uses to detect shared libraries,
7255*** $file_magic_cmd, produces output that libtool cannot recognize.
7256*** The result is that libtool may fail to recognize shared libraries
7257*** as such. This will affect the creation of libtool libraries that
7258*** depend on shared libraries, but programs linked with such libtool
7259*** libraries will work regardless of this problem. Nevertheless, you
7260*** may want to report the problem to your system manager and/or to
7261*** bug-libtool@gnu.org
7262
7263_LT_EOF
7264 fi ;;
7265 esac
7266 fi
7267 break
7268 fi
7269 done
7270 IFS="$lt_save_ifs"
7271 MAGIC_CMD="$lt_save_MAGIC_CMD"
7272 ;;
7273esac
7274fi
7275
7276MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7277if test -n "$MAGIC_CMD"; then
7278 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7279$as_echo "$MAGIC_CMD" >&6; }
7280else
7281 { $as_echo "$as_me:$LINENO: result: no" >&5
7282$as_echo "no" >&6; }
7283fi
7284
7285
7286 else
7287 MAGIC_CMD=:
7288 fi
7289fi
7290
7291 fi
7292 ;;
7293esac
7294
7295# Use C for the default configuration in the libtool script
7296
7297lt_save_CC="$CC"
7298ac_ext=c
7299ac_cpp='$CPP $CPPFLAGS'
7300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7302ac_compiler_gnu=$ac_cv_c_compiler_gnu
7303
7304
7305# Source file extension for C test sources.
7306ac_ext=c
7307
7308# Object file extension for compiled C test sources.
7309objext=o
7310objext=$objext
7311
7312# Code to be used in simple compile tests
7313lt_simple_compile_test_code="int some_variable = 0;"
7314
7315# Code to be used in simple link tests
7316lt_simple_link_test_code='int main(){return(0);}'
7317
7318
7319
7320
7321
7322
7323
7324# If no C compiler was specified, use CC.
7325LTCC=${LTCC-"$CC"}
7326
7327# If no C compiler flags were specified, use CFLAGS.
7328LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7329
7330# Allow CC to be a program name with arguments.
7331compiler=$CC
7332
7333# Save the default compiler, since it gets overwritten when the other
7334# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7335compiler_DEFAULT=$CC
7336
7337# save warnings/boilerplate of simple test code
7338ac_outfile=conftest.$ac_objext
7339echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7340eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7341_lt_compiler_boilerplate=`cat conftest.err`
7342$RM conftest*
7343
7344ac_outfile=conftest.$ac_objext
7345echo "$lt_simple_link_test_code" >conftest.$ac_ext
7346eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7347_lt_linker_boilerplate=`cat conftest.err`
7348$RM -r conftest*
7349
7350
7351if test -n "$compiler"; then
7352
7353lt_prog_compiler_no_builtin_flag=
7354
7355if test "$GCC" = yes; then
7356 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7357
7358 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7359$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7360if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7361 $as_echo_n "(cached) " >&6
7362else
7363 lt_cv_prog_compiler_rtti_exceptions=no
7364 ac_outfile=conftest.$ac_objext
7365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7366 lt_compiler_flag="-fno-rtti -fno-exceptions"
7367 # Insert the option either (1) after the last *FLAGS variable, or
7368 # (2) before a word containing "conftest.", or (3) at the end.
7369 # Note that $ac_compile itself does not contain backslashes and begins
7370 # with a dollar sign (not a hyphen), so the echo should work correctly.
7371 # The option is referenced via a variable to avoid confusing sed.
7372 lt_compile=`echo "$ac_compile" | $SED \
7373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7375 -e 's:$: $lt_compiler_flag:'`
7376 (eval echo "\"\$as_me:7376: $lt_compile\"" >&5)
7377 (eval "$lt_compile" 2>conftest.err)
7378 ac_status=$?
7379 cat conftest.err >&5
7380 echo "$as_me:7380: \$? = $ac_status" >&5
7381 if (exit $ac_status) && test -s "$ac_outfile"; then
7382 # The compiler can only warn and ignore the option if not recognized
7383 # So say no if there are warnings other than the usual output.
7384 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7386 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7387 lt_cv_prog_compiler_rtti_exceptions=yes
7388 fi
7389 fi
7390 $RM conftest*
7391
7392fi
7393{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7394$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7395
7396if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7397 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7398else
7399 :
7400fi
7401
7402fi
7403
7404
7405
7406
7407
7408
7409 lt_prog_compiler_wl=
7410lt_prog_compiler_pic=
7411lt_prog_compiler_static=
7412
7413{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7414$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7415
7416 if test "$GCC" = yes; then
7417 lt_prog_compiler_wl='-Wl,'
7418 lt_prog_compiler_static='-static'
7419
7420 case $host_os in
7421 aix*)
7422 # All AIX code is PIC.
7423 if test "$host_cpu" = ia64; then
7424 # AIX 5 now supports IA64 processor
7425 lt_prog_compiler_static='-Bstatic'
7426 fi
7427 ;;
7428
7429 amigaos*)
7430 case $host_cpu in
7431 powerpc)
7432 # see comment about AmigaOS4 .so support
7433 lt_prog_compiler_pic='-fPIC'
7434 ;;
7435 m68k)
7436 # FIXME: we need at least 68020 code to build shared libraries, but
7437 # adding the `-m68020' flag to GCC prevents building anything better,
7438 # like `-m68040'.
7439 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7440 ;;
7441 esac
7442 ;;
7443
7444 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7445 # PIC is the default for these OSes.
7446 ;;
7447
7448 mingw* | cygwin* | pw32* | os2* | cegcc*)
7449 # This hack is so that the source file can tell whether it is being
7450 # built for inclusion in a dll (and should export symbols for example).
7451 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7452 # (--disable-auto-import) libraries
7453 lt_prog_compiler_pic='-DDLL_EXPORT'
7454 ;;
7455
7456 darwin* | rhapsody*)
7457 # PIC is the default on this platform
7458 # Common symbols not allowed in MH_DYLIB files
7459 lt_prog_compiler_pic='-fno-common'
7460 ;;
7461
7462 hpux*)
7463 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7464 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7465 # sets the default TLS model and affects inlining.
7466 case $host_cpu in
7467 hppa*64*)
7468 # +Z the default
7469 ;;
7470 *)
7471 lt_prog_compiler_pic='-fPIC'
7472 ;;
7473 esac
7474 ;;
7475
7476 interix[3-9]*)
7477 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7478 # Instead, we relocate shared libraries at runtime.
7479 ;;
7480
7481 msdosdjgpp*)
7482 # Just because we use GCC doesn't mean we suddenly get shared libraries
7483 # on systems that don't support them.
7484 lt_prog_compiler_can_build_shared=no
7485 enable_shared=no
7486 ;;
7487
7488 *nto* | *qnx*)
7489 # QNX uses GNU C++, but need to define -shared option too, otherwise
7490 # it will coredump.
7491 lt_prog_compiler_pic='-fPIC -shared'
7492 ;;
7493
7494 sysv4*MP*)
7495 if test -d /usr/nec; then
7496 lt_prog_compiler_pic=-Kconform_pic
7497 fi
7498 ;;
7499
7500 *)
7501 lt_prog_compiler_pic='-fPIC'
7502 ;;
7503 esac
7504 else
7505 # PORTME Check for flag to pass linker flags through the system compiler.
7506 case $host_os in
7507 aix*)
7508 lt_prog_compiler_wl='-Wl,'
7509 if test "$host_cpu" = ia64; then
7510 # AIX 5 now supports IA64 processor
7511 lt_prog_compiler_static='-Bstatic'
7512 else
7513 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7514 fi
7515 ;;
7516
7517 mingw* | cygwin* | pw32* | os2* | cegcc*)
7518 # This hack is so that the source file can tell whether it is being
7519 # built for inclusion in a dll (and should export symbols for example).
7520 lt_prog_compiler_pic='-DDLL_EXPORT'
7521 ;;
7522
7523 hpux9* | hpux10* | hpux11*)
7524 lt_prog_compiler_wl='-Wl,'
7525 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7526 # not for PA HP-UX.
7527 case $host_cpu in
7528 hppa*64*|ia64*)
7529 # +Z the default
7530 ;;
7531 *)
7532 lt_prog_compiler_pic='+Z'
7533 ;;
7534 esac
7535 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7536 lt_prog_compiler_static='${wl}-a ${wl}archive'
7537 ;;
7538
7539 irix5* | irix6* | nonstopux*)
7540 lt_prog_compiler_wl='-Wl,'
7541 # PIC (with -KPIC) is the default.
7542 lt_prog_compiler_static='-non_shared'
7543 ;;
7544
7545 linux* | k*bsd*-gnu)
7546 case $cc_basename in
7547 # old Intel for x86_64 which still supported -KPIC.
7548 ecc*)
7549 lt_prog_compiler_wl='-Wl,'
7550 lt_prog_compiler_pic='-KPIC'
7551 lt_prog_compiler_static='-static'
7552 ;;
7553 # icc used to be incompatible with GCC.
7554 # ICC 10 doesn't accept -KPIC any more.
7555 icc* | ifort*)
7556 lt_prog_compiler_wl='-Wl,'
7557 lt_prog_compiler_pic='-fPIC'
7558 lt_prog_compiler_static='-static'
7559 ;;
7560 # Lahey Fortran 8.1.
7561 lf95*)
7562 lt_prog_compiler_wl='-Wl,'
7563 lt_prog_compiler_pic='--shared'
7564 lt_prog_compiler_static='--static'
7565 ;;
7566 pgcc* | pgf77* | pgf90* | pgf95*)
7567 # Portland Group compilers (*not* the Pentium gcc compiler,
7568 # which looks to be a dead project)
7569 lt_prog_compiler_wl='-Wl,'
7570 lt_prog_compiler_pic='-fpic'
7571 lt_prog_compiler_static='-Bstatic'
7572 ;;
7573 ccc*)
7574 lt_prog_compiler_wl='-Wl,'
7575 # All Alpha code is PIC.
7576 lt_prog_compiler_static='-non_shared'
7577 ;;
7578 xl*)
7579 # IBM XL C 8.0/Fortran 10.1 on PPC
7580 lt_prog_compiler_wl='-Wl,'
7581 lt_prog_compiler_pic='-qpic'
7582 lt_prog_compiler_static='-qstaticlink'
7583 ;;
7584 *)
7585 case `$CC -V 2>&1 | sed 5q` in
7586 *Sun\ C*)
7587 # Sun C 5.9
7588 lt_prog_compiler_pic='-KPIC'
7589 lt_prog_compiler_static='-Bstatic'
7590 lt_prog_compiler_wl='-Wl,'
7591 ;;
7592 *Sun\ F*)
7593 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7594 lt_prog_compiler_pic='-KPIC'
7595 lt_prog_compiler_static='-Bstatic'
7596 lt_prog_compiler_wl=''
7597 ;;
7598 esac
7599 ;;
7600 esac
7601 ;;
7602
7603 newsos6)
7604 lt_prog_compiler_pic='-KPIC'
7605 lt_prog_compiler_static='-Bstatic'
7606 ;;
7607
7608 *nto* | *qnx*)
7609 # QNX uses GNU C++, but need to define -shared option too, otherwise
7610 # it will coredump.
7611 lt_prog_compiler_pic='-fPIC -shared'
7612 ;;
7613
7614 osf3* | osf4* | osf5*)
7615 lt_prog_compiler_wl='-Wl,'
7616 # All OSF/1 code is PIC.
7617 lt_prog_compiler_static='-non_shared'
7618 ;;
7619
7620 rdos*)
7621 lt_prog_compiler_static='-non_shared'
7622 ;;
7623
7624 solaris*)
7625 lt_prog_compiler_pic='-KPIC'
7626 lt_prog_compiler_static='-Bstatic'
7627 case $cc_basename in
7628 f77* | f90* | f95*)
7629 lt_prog_compiler_wl='-Qoption ld ';;
7630 *)
7631 lt_prog_compiler_wl='-Wl,';;
7632 esac
7633 ;;
7634
7635 sunos4*)
7636 lt_prog_compiler_wl='-Qoption ld '
7637 lt_prog_compiler_pic='-PIC'
7638 lt_prog_compiler_static='-Bstatic'
7639 ;;
7640
7641 sysv4 | sysv4.2uw2* | sysv4.3*)
7642 lt_prog_compiler_wl='-Wl,'
7643 lt_prog_compiler_pic='-KPIC'
7644 lt_prog_compiler_static='-Bstatic'
7645 ;;
7646
7647 sysv4*MP*)
7648 if test -d /usr/nec ;then
7649 lt_prog_compiler_pic='-Kconform_pic'
7650 lt_prog_compiler_static='-Bstatic'
7651 fi
7652 ;;
7653
7654 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7655 lt_prog_compiler_wl='-Wl,'
7656 lt_prog_compiler_pic='-KPIC'
7657 lt_prog_compiler_static='-Bstatic'
7658 ;;
7659
7660 unicos*)
7661 lt_prog_compiler_wl='-Wl,'
7662 lt_prog_compiler_can_build_shared=no
7663 ;;
7664
7665 uts4*)
7666 lt_prog_compiler_pic='-pic'
7667 lt_prog_compiler_static='-Bstatic'
7668 ;;
7669
7670 *)
7671 lt_prog_compiler_can_build_shared=no
7672 ;;
7673 esac
7674 fi
7675
7676case $host_os in
7677 # For platforms which do not support PIC, -DPIC is meaningless:
7678 *djgpp*)
7679 lt_prog_compiler_pic=
7680 ;;
7681 *)
7682 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7683 ;;
7684esac
7685{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7686$as_echo "$lt_prog_compiler_pic" >&6; }
7687
7688
7689
7690
7691
7692
7693#
7694# Check to make sure the PIC flag actually works.
7695#
7696if test -n "$lt_prog_compiler_pic"; then
7697 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7698$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7699if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7700 $as_echo_n "(cached) " >&6
7701else
7702 lt_cv_prog_compiler_pic_works=no
7703 ac_outfile=conftest.$ac_objext
7704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7705 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7706 # Insert the option either (1) after the last *FLAGS variable, or
7707 # (2) before a word containing "conftest.", or (3) at the end.
7708 # Note that $ac_compile itself does not contain backslashes and begins
7709 # with a dollar sign (not a hyphen), so the echo should work correctly.
7710 # The option is referenced via a variable to avoid confusing sed.
7711 lt_compile=`echo "$ac_compile" | $SED \
7712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7714 -e 's:$: $lt_compiler_flag:'`
7715 (eval echo "\"\$as_me:7715: $lt_compile\"" >&5)
7716 (eval "$lt_compile" 2>conftest.err)
7717 ac_status=$?
7718 cat conftest.err >&5
7719 echo "$as_me:7719: \$? = $ac_status" >&5
7720 if (exit $ac_status) && test -s "$ac_outfile"; then
7721 # The compiler can only warn and ignore the option if not recognized
7722 # So say no if there are warnings other than the usual output.
7723 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7725 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7726 lt_cv_prog_compiler_pic_works=yes
7727 fi
7728 fi
7729 $RM conftest*
7730
7731fi
7732{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7733$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7734
7735if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7736 case $lt_prog_compiler_pic in
7737 "" | " "*) ;;
7738 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7739 esac
7740else
7741 lt_prog_compiler_pic=
7742 lt_prog_compiler_can_build_shared=no
7743fi
7744
7745fi
7746
7747
7748
7749
7750
7751
7752#
7753# Check to make sure the static flag actually works.
7754#
7755wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7756{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7757$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7758if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7759 $as_echo_n "(cached) " >&6
7760else
7761 lt_cv_prog_compiler_static_works=no
7762 save_LDFLAGS="$LDFLAGS"
7763 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7764 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7765 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7766 # The linker can only warn and ignore the option if not recognized
7767 # So say no if there are warnings
7768 if test -s conftest.err; then
7769 # Append any errors to the config.log.
7770 cat conftest.err 1>&5
7771 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7773 if diff conftest.exp conftest.er2 >/dev/null; then
7774 lt_cv_prog_compiler_static_works=yes
7775 fi
7776 else
7777 lt_cv_prog_compiler_static_works=yes
7778 fi
7779 fi
7780 $RM -r conftest*
7781 LDFLAGS="$save_LDFLAGS"
7782
7783fi
7784{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7785$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7786
7787if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7788 :
7789else
7790 lt_prog_compiler_static=
7791fi
7792
7793
7794
7795
7796
7797
7798
7799 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7800$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7801if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7802 $as_echo_n "(cached) " >&6
7803else
7804 lt_cv_prog_compiler_c_o=no
7805 $RM -r conftest 2>/dev/null
7806 mkdir conftest
7807 cd conftest
7808 mkdir out
7809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7810
7811 lt_compiler_flag="-o out/conftest2.$ac_objext"
7812 # Insert the option either (1) after the last *FLAGS variable, or
7813 # (2) before a word containing "conftest.", or (3) at the end.
7814 # Note that $ac_compile itself does not contain backslashes and begins
7815 # with a dollar sign (not a hyphen), so the echo should work correctly.
7816 lt_compile=`echo "$ac_compile" | $SED \
7817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7819 -e 's:$: $lt_compiler_flag:'`
7820 (eval echo "\"\$as_me:7820: $lt_compile\"" >&5)
7821 (eval "$lt_compile" 2>out/conftest.err)
7822 ac_status=$?
7823 cat out/conftest.err >&5
7824 echo "$as_me:7824: \$? = $ac_status" >&5
7825 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7826 then
7827 # The compiler can only warn and ignore the option if not recognized
7828 # So say no if there are warnings
7829 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7830 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7831 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7832 lt_cv_prog_compiler_c_o=yes
7833 fi
7834 fi
7835 chmod u+w . 2>&5
7836 $RM conftest*
7837 # SGI C++ compiler will create directory out/ii_files/ for
7838 # template instantiation
7839 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7840 $RM out/* && rmdir out
7841 cd ..
7842 $RM -r conftest
7843 $RM conftest*
7844
7845fi
7846{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7847$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7848
7849
7850
7851
7852
7853
7854 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7855$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7856if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7857 $as_echo_n "(cached) " >&6
7858else
7859 lt_cv_prog_compiler_c_o=no
7860 $RM -r conftest 2>/dev/null
7861 mkdir conftest
7862 cd conftest
7863 mkdir out
7864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7865
7866 lt_compiler_flag="-o out/conftest2.$ac_objext"
7867 # Insert the option either (1) after the last *FLAGS variable, or
7868 # (2) before a word containing "conftest.", or (3) at the end.
7869 # Note that $ac_compile itself does not contain backslashes and begins
7870 # with a dollar sign (not a hyphen), so the echo should work correctly.
7871 lt_compile=`echo "$ac_compile" | $SED \
7872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7874 -e 's:$: $lt_compiler_flag:'`
7875 (eval echo "\"\$as_me:7875: $lt_compile\"" >&5)
7876 (eval "$lt_compile" 2>out/conftest.err)
7877 ac_status=$?
7878 cat out/conftest.err >&5
7879 echo "$as_me:7879: \$? = $ac_status" >&5
7880 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7881 then
7882 # The compiler can only warn and ignore the option if not recognized
7883 # So say no if there are warnings
7884 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7885 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7886 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7887 lt_cv_prog_compiler_c_o=yes
7888 fi
7889 fi
7890 chmod u+w . 2>&5
7891 $RM conftest*
7892 # SGI C++ compiler will create directory out/ii_files/ for
7893 # template instantiation
7894 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7895 $RM out/* && rmdir out
7896 cd ..
7897 $RM -r conftest
7898 $RM conftest*
7899
7900fi
7901{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7902$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7903
7904
7905
7906
7907hard_links="nottested"
7908if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7909 # do not overwrite the value of need_locks provided by the user
7910 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7911$as_echo_n "checking if we can lock with hard links... " >&6; }
7912 hard_links=yes
7913 $RM conftest*
7914 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7915 touch conftest.a
7916 ln conftest.a conftest.b 2>&5 || hard_links=no
7917 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7918 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7919$as_echo "$hard_links" >&6; }
7920 if test "$hard_links" = no; then
7921 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7922$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7923 need_locks=warn
7924 fi
7925else
7926 need_locks=no
7927fi
7928
7929
7930
7931
7932
7933
7934 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7935$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7936
7937 runpath_var=
7938 allow_undefined_flag=
7939 always_export_symbols=no
7940 archive_cmds=
7941 archive_expsym_cmds=
7942 compiler_needs_object=no
7943 enable_shared_with_static_runtimes=no
7944 export_dynamic_flag_spec=
7945 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7946 hardcode_automatic=no
7947 hardcode_direct=no
7948 hardcode_direct_absolute=no
7949 hardcode_libdir_flag_spec=
7950 hardcode_libdir_flag_spec_ld=
7951 hardcode_libdir_separator=
7952 hardcode_minus_L=no
7953 hardcode_shlibpath_var=unsupported
7954 inherit_rpath=no
7955 link_all_deplibs=unknown
7956 module_cmds=
7957 module_expsym_cmds=
7958 old_archive_from_new_cmds=
7959 old_archive_from_expsyms_cmds=
7960 thread_safe_flag_spec=
7961 whole_archive_flag_spec=
7962 # include_expsyms should be a list of space-separated symbols to be *always*
7963 # included in the symbol list
7964 include_expsyms=
7965 # exclude_expsyms can be an extended regexp of symbols to exclude
7966 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7967 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7968 # as well as any symbol that contains `d'.
7969 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7970 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7971 # platforms (ab)use it in PIC code, but their linkers get confused if
7972 # the symbol is explicitly referenced. Since portable code cannot
7973 # rely on this symbol name, it's probably fine to never include it in
7974 # preloaded symbol tables.
7975 # Exclude shared library initialization/finalization symbols.
7976 extract_expsyms_cmds=
7977
7978 case $host_os in
7979 cygwin* | mingw* | pw32* | cegcc*)
7980 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7981 # When not using gcc, we currently assume that we are using
7982 # Microsoft Visual C++.
7983 if test "$GCC" != yes; then
7984 with_gnu_ld=no
7985 fi
7986 ;;
7987 interix*)
7988 # we just hope/assume this is gcc and not c89 (= MSVC++)
7989 with_gnu_ld=yes
7990 ;;
7991 openbsd*)
7992 with_gnu_ld=no
7993 ;;
7994 esac
7995
7996 ld_shlibs=yes
7997 if test "$with_gnu_ld" = yes; then
7998 # If archive_cmds runs LD, not CC, wlarc should be empty
7999 wlarc='${wl}'
8000
8001 # Set some defaults for GNU ld with shared library support. These
8002 # are reset later if shared libraries are not supported. Putting them
8003 # here allows them to be overridden if necessary.
8004 runpath_var=LD_RUN_PATH
8005 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8006 export_dynamic_flag_spec='${wl}--export-dynamic'
8007 # ancient GNU ld didn't support --whole-archive et. al.
8008 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8009 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8010 else
8011 whole_archive_flag_spec=
8012 fi
8013 supports_anon_versioning=no
8014 case `$LD -v 2>&1` in
8015 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8016 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8017 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8018 *\ 2.11.*) ;; # other 2.11 versions
8019 *) supports_anon_versioning=yes ;;
8020 esac
8021
8022 # See if GNU ld supports shared libraries.
8023 case $host_os in
8024 aix[3-9]*)
8025 # On AIX/PPC, the GNU linker is very broken
8026 if test "$host_cpu" != ia64; then
8027 ld_shlibs=no
8028 cat <<_LT_EOF 1>&2
8029
8030*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8031*** to be unable to reliably create shared libraries on AIX.
8032*** Therefore, libtool is disabling shared libraries support. If you
8033*** really care for shared libraries, you may want to modify your PATH
8034*** so that a non-GNU linker is found, and then restart.
8035
8036_LT_EOF
8037 fi
8038 ;;
8039
8040 amigaos*)
8041 case $host_cpu in
8042 powerpc)
8043 # see comment about AmigaOS4 .so support
8044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8045 archive_expsym_cmds=''
8046 ;;
8047 m68k)
8048 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)'
8049 hardcode_libdir_flag_spec='-L$libdir'
8050 hardcode_minus_L=yes
8051 ;;
8052 esac
8053 ;;
8054
8055 beos*)
8056 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8057 allow_undefined_flag=unsupported
8058 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8059 # support --undefined. This deserves some investigation. FIXME
8060 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8061 else
8062 ld_shlibs=no
8063 fi
8064 ;;
8065
8066 cygwin* | mingw* | pw32* | cegcc*)
8067 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8068 # as there is no search path for DLLs.
8069 hardcode_libdir_flag_spec='-L$libdir'
8070 allow_undefined_flag=unsupported
8071 always_export_symbols=no
8072 enable_shared_with_static_runtimes=yes
8073 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8074
8075 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8077 # If the export-symbols file already is a .def file (1st line
8078 # is EXPORTS), use it as is; otherwise, prepend...
8079 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8080 cp $export_symbols $output_objdir/$soname.def;
8081 else
8082 echo EXPORTS > $output_objdir/$soname.def;
8083 cat $export_symbols >> $output_objdir/$soname.def;
8084 fi~
8085 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8086 else
8087 ld_shlibs=no
8088 fi
8089 ;;
8090
8091 interix[3-9]*)
8092 hardcode_direct=no
8093 hardcode_shlibpath_var=no
8094 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8095 export_dynamic_flag_spec='${wl}-E'
8096 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8097 # Instead, shared libraries are loaded at an image base (0x10000000 by
8098 # default) and relocated if they conflict, which is a slow very memory
8099 # consuming and fragmenting process. To avoid this, we pick a random,
8100 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8101 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8102 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8103 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'
8104 ;;
8105
8106 gnu* | linux* | tpf* | k*bsd*-gnu)
8107 tmp_diet=no
8108 if test "$host_os" = linux-dietlibc; then
8109 case $cc_basename in
8110 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8111 esac
8112 fi
8113 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8114 && test "$tmp_diet" = no
8115 then
8116 tmp_addflag=
8117 tmp_sharedflag='-shared'
8118 case $cc_basename,$host_cpu in
8119 pgcc*) # Portland Group C compiler
8120 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'
8121 tmp_addflag=' $pic_flag'
8122 ;;
8123 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8124 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'
8125 tmp_addflag=' $pic_flag -Mnomain' ;;
8126 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8127 tmp_addflag=' -i_dynamic' ;;
8128 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8129 tmp_addflag=' -i_dynamic -nofor_main' ;;
8130 ifc* | ifort*) # Intel Fortran compiler
8131 tmp_addflag=' -nofor_main' ;;
8132 lf95*) # Lahey Fortran 8.1
8133 whole_archive_flag_spec=
8134 tmp_sharedflag='--shared' ;;
8135 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8136 tmp_sharedflag='-qmkshrobj'
8137 tmp_addflag= ;;
8138 esac
8139 case `$CC -V 2>&1 | sed 5q` in
8140 *Sun\ C*) # Sun C 5.9
8141 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'
8142 compiler_needs_object=yes
8143 tmp_sharedflag='-G' ;;
8144 *Sun\ F*) # Sun Fortran 8.3
8145 tmp_sharedflag='-G' ;;
8146 esac
8147 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8148
8149 if test "x$supports_anon_versioning" = xyes; then
8150 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8151 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8152 echo "local: *; };" >> $output_objdir/$libname.ver~
8153 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8154 fi
8155
8156 case $cc_basename in
8157 xlf*)
8158 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8159 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8160 hardcode_libdir_flag_spec=
8161 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8162 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8163 if test "x$supports_anon_versioning" = xyes; then
8164 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8166 echo "local: *; };" >> $output_objdir/$libname.ver~
8167 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8168 fi
8169 ;;
8170 esac
8171 else
8172 ld_shlibs=no
8173 fi
8174 ;;
8175
8176 netbsd*)
8177 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8178 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8179 wlarc=
8180 else
8181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8182 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8183 fi
8184 ;;
8185
8186 solaris*)
8187 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8188 ld_shlibs=no
8189 cat <<_LT_EOF 1>&2
8190
8191*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8192*** create shared libraries on Solaris systems. Therefore, libtool
8193*** is disabling shared libraries support. We urge you to upgrade GNU
8194*** binutils to release 2.9.1 or newer. Another option is to modify
8195*** your PATH or compiler configuration so that the native linker is
8196*** used, and then restart.
8197
8198_LT_EOF
8199 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8201 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8202 else
8203 ld_shlibs=no
8204 fi
8205 ;;
8206
8207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8208 case `$LD -v 2>&1` in
8209 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8210 ld_shlibs=no
8211 cat <<_LT_EOF 1>&2
8212
8213*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8214*** reliably create shared libraries on SCO systems. Therefore, libtool
8215*** is disabling shared libraries support. We urge you to upgrade GNU
8216*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8217*** your PATH or compiler configuration so that the native linker is
8218*** used, and then restart.
8219
8220_LT_EOF
8221 ;;
8222 *)
8223 # For security reasons, it is highly recommended that you always
8224 # use absolute paths for naming shared libraries, and exclude the
8225 # DT_RUNPATH tag from executables and libraries. But doing so
8226 # requires that you compile everything twice, which is a pain.
8227 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8231 else
8232 ld_shlibs=no
8233 fi
8234 ;;
8235 esac
8236 ;;
8237
8238 sunos4*)
8239 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8240 wlarc=
8241 hardcode_direct=yes
8242 hardcode_shlibpath_var=no
8243 ;;
8244
8245 *)
8246 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8248 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8249 else
8250 ld_shlibs=no
8251 fi
8252 ;;
8253 esac
8254
8255 if test "$ld_shlibs" = no; then
8256 runpath_var=
8257 hardcode_libdir_flag_spec=
8258 export_dynamic_flag_spec=
8259 whole_archive_flag_spec=
8260 fi
8261 else
8262 # PORTME fill in a description of your system's linker (not GNU ld)
8263 case $host_os in
8264 aix3*)
8265 allow_undefined_flag=unsupported
8266 always_export_symbols=yes
8267 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'
8268 # Note: this linker hardcodes the directories in LIBPATH if there
8269 # are no directories specified by -L.
8270 hardcode_minus_L=yes
8271 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8272 # Neither direct hardcoding nor static linking is supported with a
8273 # broken collect2.
8274 hardcode_direct=unsupported
8275 fi
8276 ;;
8277
8278 aix[4-9]*)
8279 if test "$host_cpu" = ia64; then
8280 # On IA64, the linker does run time linking by default, so we don't
8281 # have to do anything special.
8282 aix_use_runtimelinking=no
8283 exp_sym_flag='-Bexport'
8284 no_entry_flag=""
8285 else
8286 # If we're using GNU nm, then we don't want the "-C" option.
8287 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8288 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8289 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'
8290 else
8291 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'
8292 fi
8293 aix_use_runtimelinking=no
8294
8295 # Test if we are trying to use run time linking or normal
8296 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8297 # need to do runtime linking.
8298 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8299 for ld_flag in $LDFLAGS; do
8300 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8301 aix_use_runtimelinking=yes
8302 break
8303 fi
8304 done
8305 ;;
8306 esac
8307
8308 exp_sym_flag='-bexport'
8309 no_entry_flag='-bnoentry'
8310 fi
8311
8312 # When large executables or shared objects are built, AIX ld can
8313 # have problems creating the table of contents. If linking a library
8314 # or program results in "error TOC overflow" add -mminimal-toc to
8315 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8316 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8317
8318 archive_cmds=''
8319 hardcode_direct=yes
8320 hardcode_direct_absolute=yes
8321 hardcode_libdir_separator=':'
8322 link_all_deplibs=yes
8323 file_list_spec='${wl}-f,'
8324
8325 if test "$GCC" = yes; then
8326 case $host_os in aix4.[012]|aix4.[012].*)
8327 # We only want to do this on AIX 4.2 and lower, the check
8328 # below for broken collect2 doesn't work under 4.3+
8329 collect2name=`${CC} -print-prog-name=collect2`
8330 if test -f "$collect2name" &&
8331 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8332 then
8333 # We have reworked collect2
8334 :
8335 else
8336 # We have old collect2
8337 hardcode_direct=unsupported
8338 # It fails to find uninstalled libraries when the uninstalled
8339 # path is not listed in the libpath. Setting hardcode_minus_L
8340 # to unsupported forces relinking
8341 hardcode_minus_L=yes
8342 hardcode_libdir_flag_spec='-L$libdir'
8343 hardcode_libdir_separator=
8344 fi
8345 ;;
8346 esac
8347 shared_flag='-shared'
8348 if test "$aix_use_runtimelinking" = yes; then
8349 shared_flag="$shared_flag "'${wl}-G'
8350 fi
8351 else
8352 # not using gcc
8353 if test "$host_cpu" = ia64; then
8354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8355 # chokes on -Wl,-G. The following line is correct:
8356 shared_flag='-G'
8357 else
8358 if test "$aix_use_runtimelinking" = yes; then
8359 shared_flag='${wl}-G'
8360 else
8361 shared_flag='${wl}-bM:SRE'
8362 fi
8363 fi
8364 fi
8365
8366 export_dynamic_flag_spec='${wl}-bexpall'
8367 # It seems that -bexpall does not export symbols beginning with
8368 # underscore (_), so it is better to generate a list of symbols to export.
8369 always_export_symbols=yes
8370 if test "$aix_use_runtimelinking" = yes; then
8371 # Warning - without using the other runtime loading flags (-brtl),
8372 # -berok will link without error, but may produce a broken library.
8373 allow_undefined_flag='-berok'
8374 # Determine the default libpath from the value encoded in an
8375 # empty executable.
8376 cat >conftest.$ac_ext <<_ACEOF
8377/* confdefs.h. */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h. */
8382
8383int
8384main ()
8385{
8386
8387 ;
8388 return 0;
8389}
8390_ACEOF
8391rm -f conftest.$ac_objext conftest$ac_exeext
8392if { (ac_try="$ac_link"
8393case "(($ac_try" in
8394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395 *) ac_try_echo=$ac_try;;
8396esac
8397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8398$as_echo "$ac_try_echo") >&5
8399 (eval "$ac_link") 2>conftest.er1
8400 ac_status=$?
8401 grep -v '^ *+' conftest.er1 >conftest.err
8402 rm -f conftest.er1
8403 cat conftest.err >&5
8404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } && {
8406 test -z "$ac_c_werror_flag" ||
8407 test ! -s conftest.err
8408 } && test -s conftest$ac_exeext && {
8409 test "$cross_compiling" = yes ||
8410 $as_test_x conftest$ac_exeext
8411 }; then
8412
8413lt_aix_libpath_sed='
8414 /Import File Strings/,/^$/ {
8415 /^0/ {
8416 s/^0 *\(.*\)$/\1/
8417 p
8418 }
8419 }'
8420aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8421# Check for a 64-bit object if we didn't find anything.
8422if test -z "$aix_libpath"; then
8423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8424fi
8425else
8426 $as_echo "$as_me: failed program was:" >&5
8427sed 's/^/| /' conftest.$ac_ext >&5
8428
8429
8430fi
8431
8432rm -rf conftest.dSYM
8433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8434 conftest$ac_exeext conftest.$ac_ext
8435if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8436
8437 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8438 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"
8439 else
8440 if test "$host_cpu" = ia64; then
8441 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8442 allow_undefined_flag="-z nodefs"
8443 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"
8444 else
8445 # Determine the default libpath from the value encoded in an
8446 # empty executable.
8447 cat >conftest.$ac_ext <<_ACEOF
8448/* confdefs.h. */
8449_ACEOF
8450cat confdefs.h >>conftest.$ac_ext
8451cat >>conftest.$ac_ext <<_ACEOF
8452/* end confdefs.h. */
8453
8454int
8455main ()
8456{
8457
8458 ;
8459 return 0;
8460}
8461_ACEOF
8462rm -f conftest.$ac_objext conftest$ac_exeext
8463if { (ac_try="$ac_link"
8464case "(($ac_try" in
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8467esac
8468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8469$as_echo "$ac_try_echo") >&5
8470 (eval "$ac_link") 2>conftest.er1
8471 ac_status=$?
8472 grep -v '^ *+' conftest.er1 >conftest.err
8473 rm -f conftest.er1
8474 cat conftest.err >&5
8475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } && {
8477 test -z "$ac_c_werror_flag" ||
8478 test ! -s conftest.err
8479 } && test -s conftest$ac_exeext && {
8480 test "$cross_compiling" = yes ||
8481 $as_test_x conftest$ac_exeext
8482 }; then
8483
8484lt_aix_libpath_sed='
8485 /Import File Strings/,/^$/ {
8486 /^0/ {
8487 s/^0 *\(.*\)$/\1/
8488 p
8489 }
8490 }'
8491aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8492# Check for a 64-bit object if we didn't find anything.
8493if test -z "$aix_libpath"; then
8494 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8495fi
8496else
8497 $as_echo "$as_me: failed program was:" >&5
8498sed 's/^/| /' conftest.$ac_ext >&5
8499
8500
8501fi
8502
8503rm -rf conftest.dSYM
8504rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8505 conftest$ac_exeext conftest.$ac_ext
8506if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8507
8508 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8509 # Warning - without using the other run time loading flags,
8510 # -berok will link without error, but may produce a broken library.
8511 no_undefined_flag=' ${wl}-bernotok'
8512 allow_undefined_flag=' ${wl}-berok'
8513 # Exported symbols can be pulled into shared objects from archives
8514 whole_archive_flag_spec='$convenience'
8515 archive_cmds_need_lc=yes
8516 # This is similar to how AIX traditionally builds its shared libraries.
8517 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'
8518 fi
8519 fi
8520 ;;
8521
8522 amigaos*)
8523 case $host_cpu in
8524 powerpc)
8525 # see comment about AmigaOS4 .so support
8526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8527 archive_expsym_cmds=''
8528 ;;
8529 m68k)
8530 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)'
8531 hardcode_libdir_flag_spec='-L$libdir'
8532 hardcode_minus_L=yes
8533 ;;
8534 esac
8535 ;;
8536
8537 bsdi[45]*)
8538 export_dynamic_flag_spec=-rdynamic
8539 ;;
8540
8541 cygwin* | mingw* | pw32* | cegcc*)
8542 # When not using gcc, we currently assume that we are using
8543 # Microsoft Visual C++.
8544 # hardcode_libdir_flag_spec is actually meaningless, as there is
8545 # no search path for DLLs.
8546 hardcode_libdir_flag_spec=' '
8547 allow_undefined_flag=unsupported
8548 # Tell ltmain to make .lib files, not .a files.
8549 libext=lib
8550 # Tell ltmain to make .dll files, not .so files.
8551 shrext_cmds=".dll"
8552 # FIXME: Setting linknames here is a bad hack.
8553 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8554 # The linker will automatically build a .lib file if we build a DLL.
8555 old_archive_from_new_cmds='true'
8556 # FIXME: Should let the user specify the lib program.
8557 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8558 fix_srcfile_path='`cygpath -w "$srcfile"`'
8559 enable_shared_with_static_runtimes=yes
8560 ;;
8561
8562 darwin* | rhapsody*)
8563
8564
8565 archive_cmds_need_lc=no
8566 hardcode_direct=no
8567 hardcode_automatic=yes
8568 hardcode_shlibpath_var=unsupported
8569 whole_archive_flag_spec=''
8570 link_all_deplibs=yes
8571 allow_undefined_flag="$_lt_dar_allow_undefined"
8572 case $cc_basename in
8573 ifort*) _lt_dar_can_shared=yes ;;
8574 *) _lt_dar_can_shared=$GCC ;;
8575 esac
8576 if test "$_lt_dar_can_shared" = "yes"; then
8577 output_verbose_link_cmd=echo
8578 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8579 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8580 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}"
8581 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}"
8582
8583 else
8584 ld_shlibs=no
8585 fi
8586
8587 ;;
8588
8589 dgux*)
8590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8591 hardcode_libdir_flag_spec='-L$libdir'
8592 hardcode_shlibpath_var=no
8593 ;;
8594
8595 freebsd1*)
8596 ld_shlibs=no
8597 ;;
8598
8599 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8600 # support. Future versions do this automatically, but an explicit c++rt0.o
8601 # does not break anything, and helps significantly (at the cost of a little
8602 # extra space).
8603 freebsd2.2*)
8604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8605 hardcode_libdir_flag_spec='-R$libdir'
8606 hardcode_direct=yes
8607 hardcode_shlibpath_var=no
8608 ;;
8609
8610 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8611 freebsd2*)
8612 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8613 hardcode_direct=yes
8614 hardcode_minus_L=yes
8615 hardcode_shlibpath_var=no
8616 ;;
8617
8618 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8619 freebsd* | dragonfly*)
8620 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8621 hardcode_libdir_flag_spec='-R$libdir'
8622 hardcode_direct=yes
8623 hardcode_shlibpath_var=no
8624 ;;
8625
8626 hpux9*)
8627 if test "$GCC" = yes; then
8628 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'
8629 else
8630 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'
8631 fi
8632 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8633 hardcode_libdir_separator=:
8634 hardcode_direct=yes
8635
8636 # hardcode_minus_L: Not really in the search PATH,
8637 # but as the default location of the library.
8638 hardcode_minus_L=yes
8639 export_dynamic_flag_spec='${wl}-E'
8640 ;;
8641
8642 hpux10*)
8643 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8644 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8645 else
8646 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8647 fi
8648 if test "$with_gnu_ld" = no; then
8649 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8650 hardcode_libdir_flag_spec_ld='+b $libdir'
8651 hardcode_libdir_separator=:
8652 hardcode_direct=yes
8653 hardcode_direct_absolute=yes
8654 export_dynamic_flag_spec='${wl}-E'
8655 # hardcode_minus_L: Not really in the search PATH,
8656 # but as the default location of the library.
8657 hardcode_minus_L=yes
8658 fi
8659 ;;
8660
8661 hpux11*)
8662 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8663 case $host_cpu in
8664 hppa*64*)
8665 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8666 ;;
8667 ia64*)
8668 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8669 ;;
8670 *)
8671 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8672 ;;
8673 esac
8674 else
8675 case $host_cpu in
8676 hppa*64*)
8677 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8678 ;;
8679 ia64*)
8680 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8681 ;;
8682 *)
8683 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8684 ;;
8685 esac
8686 fi
8687 if test "$with_gnu_ld" = no; then
8688 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8689 hardcode_libdir_separator=:
8690
8691 case $host_cpu in
8692 hppa*64*|ia64*)
8693 hardcode_direct=no
8694 hardcode_shlibpath_var=no
8695 ;;
8696 *)
8697 hardcode_direct=yes
8698 hardcode_direct_absolute=yes
8699 export_dynamic_flag_spec='${wl}-E'
8700
8701 # hardcode_minus_L: Not really in the search PATH,
8702 # but as the default location of the library.
8703 hardcode_minus_L=yes
8704 ;;
8705 esac
8706 fi
8707 ;;
8708
8709 irix5* | irix6* | nonstopux*)
8710 if test "$GCC" = yes; then
8711 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'
8712 # Try to use the -exported_symbol ld option, if it does not
8713 # work, assume that -exports_file does not work either and
8714 # implicitly export all symbols.
8715 save_LDFLAGS="$LDFLAGS"
8716 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8717 cat >conftest.$ac_ext <<_ACEOF
8718int foo(void) {}
8719_ACEOF
8720rm -f conftest.$ac_objext conftest$ac_exeext
8721if { (ac_try="$ac_link"
8722case "(($ac_try" in
8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724 *) ac_try_echo=$ac_try;;
8725esac
8726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8727$as_echo "$ac_try_echo") >&5
8728 (eval "$ac_link") 2>conftest.er1
8729 ac_status=$?
8730 grep -v '^ *+' conftest.er1 >conftest.err
8731 rm -f conftest.er1
8732 cat conftest.err >&5
8733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } && {
8735 test -z "$ac_c_werror_flag" ||
8736 test ! -s conftest.err
8737 } && test -s conftest$ac_exeext && {
8738 test "$cross_compiling" = yes ||
8739 $as_test_x conftest$ac_exeext
8740 }; then
8741 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'
8742
8743else
8744 $as_echo "$as_me: failed program was:" >&5
8745sed 's/^/| /' conftest.$ac_ext >&5
8746
8747
8748fi
8749
8750rm -rf conftest.dSYM
8751rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8752 conftest$ac_exeext conftest.$ac_ext
8753 LDFLAGS="$save_LDFLAGS"
8754 else
8755 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'
8756 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'
8757 fi
8758 archive_cmds_need_lc='no'
8759 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8760 hardcode_libdir_separator=:
8761 inherit_rpath=yes
8762 link_all_deplibs=yes
8763 ;;
8764
8765 netbsd*)
8766 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8768 else
8769 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8770 fi
8771 hardcode_libdir_flag_spec='-R$libdir'
8772 hardcode_direct=yes
8773 hardcode_shlibpath_var=no
8774 ;;
8775
8776 newsos6)
8777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8778 hardcode_direct=yes
8779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8780 hardcode_libdir_separator=:
8781 hardcode_shlibpath_var=no
8782 ;;
8783
8784 *nto* | *qnx*)
8785 ;;
8786
8787 openbsd*)
8788 if test -f /usr/libexec/ld.so; then
8789 hardcode_direct=yes
8790 hardcode_shlibpath_var=no
8791 hardcode_direct_absolute=yes
8792 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8793 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8794 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8795 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8796 export_dynamic_flag_spec='${wl}-E'
8797 else
8798 case $host_os in
8799 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8801 hardcode_libdir_flag_spec='-R$libdir'
8802 ;;
8803 *)
8804 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8805 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8806 ;;
8807 esac
8808 fi
8809 else
8810 ld_shlibs=no
8811 fi
8812 ;;
8813
8814 os2*)
8815 hardcode_libdir_flag_spec='-L$libdir'
8816 hardcode_minus_L=yes
8817 allow_undefined_flag=unsupported
8818 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'
8819 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8820 ;;
8821
8822 osf3*)
8823 if test "$GCC" = yes; then
8824 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8825 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'
8826 else
8827 allow_undefined_flag=' -expect_unresolved \*'
8828 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'
8829 fi
8830 archive_cmds_need_lc='no'
8831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8832 hardcode_libdir_separator=:
8833 ;;
8834
8835 osf4* | osf5*) # as osf3* with the addition of -msym flag
8836 if test "$GCC" = yes; then
8837 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8838 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'
8839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8840 else
8841 allow_undefined_flag=' -expect_unresolved \*'
8842 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'
8843 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~
8844 $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'
8845
8846 # Both c and cxx compiler support -rpath directly
8847 hardcode_libdir_flag_spec='-rpath $libdir'
8848 fi
8849 archive_cmds_need_lc='no'
8850 hardcode_libdir_separator=:
8851 ;;
8852
8853 solaris*)
8854 no_undefined_flag=' -z defs'
8855 if test "$GCC" = yes; then
8856 wlarc='${wl}'
8857 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8858 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8859 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8860 else
8861 case `$CC -V 2>&1` in
8862 *"Compilers 5.0"*)
8863 wlarc=''
8864 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8866 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8867 ;;
8868 *)
8869 wlarc='${wl}'
8870 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8871 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8872 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8873 ;;
8874 esac
8875 fi
8876 hardcode_libdir_flag_spec='-R$libdir'
8877 hardcode_shlibpath_var=no
8878 case $host_os in
8879 solaris2.[0-5] | solaris2.[0-5].*) ;;
8880 *)
8881 # The compiler driver will combine and reorder linker options,
8882 # but understands `-z linker_flag'. GCC discards it without `$wl',
8883 # but is careful enough not to reorder.
8884 # Supported since Solaris 2.6 (maybe 2.5.1?)
8885 if test "$GCC" = yes; then
8886 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8887 else
8888 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8889 fi
8890 ;;
8891 esac
8892 link_all_deplibs=yes
8893 ;;
8894
8895 sunos4*)
8896 if test "x$host_vendor" = xsequent; then
8897 # Use $CC to link under sequent, because it throws in some extra .o
8898 # files that make .init and .fini sections work.
8899 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8900 else
8901 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8902 fi
8903 hardcode_libdir_flag_spec='-L$libdir'
8904 hardcode_direct=yes
8905 hardcode_minus_L=yes
8906 hardcode_shlibpath_var=no
8907 ;;
8908
8909 sysv4)
8910 case $host_vendor in
8911 sni)
8912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8913 hardcode_direct=yes # is this really true???
8914 ;;
8915 siemens)
8916 ## LD is ld it makes a PLAMLIB
8917 ## CC just makes a GrossModule.
8918 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8919 reload_cmds='$CC -r -o $output$reload_objs'
8920 hardcode_direct=no
8921 ;;
8922 motorola)
8923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8924 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8925 ;;
8926 esac
8927 runpath_var='LD_RUN_PATH'
8928 hardcode_shlibpath_var=no
8929 ;;
8930
8931 sysv4.3*)
8932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933 hardcode_shlibpath_var=no
8934 export_dynamic_flag_spec='-Bexport'
8935 ;;
8936
8937 sysv4*MP*)
8938 if test -d /usr/nec; then
8939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8940 hardcode_shlibpath_var=no
8941 runpath_var=LD_RUN_PATH
8942 hardcode_runpath_var=yes
8943 ld_shlibs=yes
8944 fi
8945 ;;
8946
8947 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8948 no_undefined_flag='${wl}-z,text'
8949 archive_cmds_need_lc=no
8950 hardcode_shlibpath_var=no
8951 runpath_var='LD_RUN_PATH'
8952
8953 if test "$GCC" = yes; then
8954 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8955 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8956 else
8957 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8958 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8959 fi
8960 ;;
8961
8962 sysv5* | sco3.2v5* | sco5v6*)
8963 # Note: We can NOT use -z defs as we might desire, because we do not
8964 # link with -lc, and that would cause any symbols used from libc to
8965 # always be unresolved, which means just about no library would
8966 # ever link correctly. If we're not using GNU ld we use -z text
8967 # though, which does catch some bad symbols but isn't as heavy-handed
8968 # as -z defs.
8969 no_undefined_flag='${wl}-z,text'
8970 allow_undefined_flag='${wl}-z,nodefs'
8971 archive_cmds_need_lc=no
8972 hardcode_shlibpath_var=no
8973 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8974 hardcode_libdir_separator=':'
8975 link_all_deplibs=yes
8976 export_dynamic_flag_spec='${wl}-Bexport'
8977 runpath_var='LD_RUN_PATH'
8978
8979 if test "$GCC" = yes; then
8980 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8981 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8982 else
8983 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8984 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8985 fi
8986 ;;
8987
8988 uts4*)
8989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8990 hardcode_libdir_flag_spec='-L$libdir'
8991 hardcode_shlibpath_var=no
8992 ;;
8993
8994 *)
8995 ld_shlibs=no
8996 ;;
8997 esac
8998
8999 if test x$host_vendor = xsni; then
9000 case $host in
9001 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9002 export_dynamic_flag_spec='${wl}-Blargedynsym'
9003 ;;
9004 esac
9005 fi
9006 fi
9007
9008{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9009$as_echo "$ld_shlibs" >&6; }
9010test "$ld_shlibs" = no && can_build_shared=no
9011
9012with_gnu_ld=$with_gnu_ld
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028#
9029# Do we need to explicitly link libc?
9030#
9031case "x$archive_cmds_need_lc" in
9032x|xyes)
9033 # Assume -lc should be added
9034 archive_cmds_need_lc=yes
9035
9036 if test "$enable_shared" = yes && test "$GCC" = yes; then
9037 case $archive_cmds in
9038 *'~'*)
9039 # FIXME: we may have to deal with multi-command sequences.
9040 ;;
9041 '$CC '*)
9042 # Test whether the compiler implicitly links with -lc since on some
9043 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9044 # to ld, don't add -lc before -lgcc.
9045 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9046$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9047 $RM conftest*
9048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9049
9050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9051 (eval $ac_compile) 2>&5
9052 ac_status=$?
9053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } 2>conftest.err; then
9055 soname=conftest
9056 lib=conftest
9057 libobjs=conftest.$ac_objext
9058 deplibs=
9059 wl=$lt_prog_compiler_wl
9060 pic_flag=$lt_prog_compiler_pic
9061 compiler_flags=-v
9062 linker_flags=-v
9063 verstring=
9064 output_objdir=.
9065 libname=conftest
9066 lt_save_allow_undefined_flag=$allow_undefined_flag
9067 allow_undefined_flag=
9068 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9069 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9070 ac_status=$?
9071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }
9073 then
9074 archive_cmds_need_lc=no
9075 else
9076 archive_cmds_need_lc=yes
9077 fi
9078 allow_undefined_flag=$lt_save_allow_undefined_flag
9079 else
9080 cat conftest.err 1>&5
9081 fi
9082 $RM conftest*
9083 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9084$as_echo "$archive_cmds_need_lc" >&6; }
9085 ;;
9086 esac
9087 fi
9088 ;;
9089esac
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
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 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9248$as_echo_n "checking dynamic linker characteristics... " >&6; }
9249
9250if test "$GCC" = yes; then
9251 case $host_os in
9252 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9253 *) lt_awk_arg="/^libraries:/" ;;
9254 esac
9255 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9256 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9257 # if the path contains ";" then we assume it to be the separator
9258 # otherwise default to the standard path separator (i.e. ":") - it is
9259 # assumed that no part of a normal pathname contains ";" but that should
9260 # okay in the real world where ";" in dirpaths is itself problematic.
9261 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9262 else
9263 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9264 fi
9265 # Ok, now we have the path, separated by spaces, we can step through it
9266 # and add multilib dir if necessary.
9267 lt_tmp_lt_search_path_spec=
9268 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9269 for lt_sys_path in $lt_search_path_spec; do
9270 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9271 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9272 else
9273 test -d "$lt_sys_path" && \
9274 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9275 fi
9276 done
9277 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9278BEGIN {RS=" "; FS="/|\n";} {
9279 lt_foo="";
9280 lt_count=0;
9281 for (lt_i = NF; lt_i > 0; lt_i--) {
9282 if ($lt_i != "" && $lt_i != ".") {
9283 if ($lt_i == "..") {
9284 lt_count++;
9285 } else {
9286 if (lt_count == 0) {
9287 lt_foo="/" $lt_i lt_foo;
9288 } else {
9289 lt_count--;
9290 }
9291 }
9292 }
9293 }
9294 if (lt_foo != "") { lt_freq[lt_foo]++; }
9295 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9296}'`
9297 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9298else
9299 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9300fi
9301library_names_spec=
9302libname_spec='lib$name'
9303soname_spec=
9304shrext_cmds=".so"
9305postinstall_cmds=
9306postuninstall_cmds=
9307finish_cmds=
9308finish_eval=
9309shlibpath_var=
9310shlibpath_overrides_runpath=unknown
9311version_type=none
9312dynamic_linker="$host_os ld.so"
9313sys_lib_dlsearch_path_spec="/lib /usr/lib"
9314need_lib_prefix=unknown
9315hardcode_into_libs=no
9316
9317# when you set need_version to no, make sure it does not cause -set_version
9318# flags to be left without arguments
9319need_version=unknown
9320
9321case $host_os in
9322aix3*)
9323 version_type=linux
9324 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9325 shlibpath_var=LIBPATH
9326
9327 # AIX 3 has no versioning support, so we append a major version to the name.
9328 soname_spec='${libname}${release}${shared_ext}$major'
9329 ;;
9330
9331aix[4-9]*)
9332 version_type=linux
9333 need_lib_prefix=no
9334 need_version=no
9335 hardcode_into_libs=yes
9336 if test "$host_cpu" = ia64; then
9337 # AIX 5 supports IA64
9338 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9339 shlibpath_var=LD_LIBRARY_PATH
9340 else
9341 # With GCC up to 2.95.x, collect2 would create an import file
9342 # for dependence libraries. The import file would start with
9343 # the line `#! .'. This would cause the generated library to
9344 # depend on `.', always an invalid library. This was fixed in
9345 # development snapshots of GCC prior to 3.0.
9346 case $host_os in
9347 aix4 | aix4.[01] | aix4.[01].*)
9348 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9349 echo ' yes '
9350 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9351 :
9352 else
9353 can_build_shared=no
9354 fi
9355 ;;
9356 esac
9357 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9358 # soname into executable. Probably we can add versioning support to
9359 # collect2, so additional links can be useful in future.
9360 if test "$aix_use_runtimelinking" = yes; then
9361 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9362 # instead of lib<name>.a to let people know that these are not
9363 # typical AIX shared libraries.
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365 else
9366 # We preserve .a as extension for shared libraries through AIX4.2
9367 # and later when we are not doing run time linking.
9368 library_names_spec='${libname}${release}.a $libname.a'
9369 soname_spec='${libname}${release}${shared_ext}$major'
9370 fi
9371 shlibpath_var=LIBPATH
9372 fi
9373 ;;
9374
9375amigaos*)
9376 case $host_cpu in
9377 powerpc)
9378 # Since July 2007 AmigaOS4 officially supports .so libraries.
9379 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9381 ;;
9382 m68k)
9383 library_names_spec='$libname.ixlibrary $libname.a'
9384 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9385 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'
9386 ;;
9387 esac
9388 ;;
9389
9390beos*)
9391 library_names_spec='${libname}${shared_ext}'
9392 dynamic_linker="$host_os ld.so"
9393 shlibpath_var=LIBRARY_PATH
9394 ;;
9395
9396bsdi[45]*)
9397 version_type=linux
9398 need_version=no
9399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400 soname_spec='${libname}${release}${shared_ext}$major'
9401 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9402 shlibpath_var=LD_LIBRARY_PATH
9403 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9404 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9405 # the default ld.so.conf also contains /usr/contrib/lib and
9406 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9407 # libtool to hard-code these into programs
9408 ;;
9409
9410cygwin* | mingw* | pw32* | cegcc*)
9411 version_type=windows
9412 shrext_cmds=".dll"
9413 need_version=no
9414 need_lib_prefix=no
9415
9416 case $GCC,$host_os in
9417 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9418 library_names_spec='$libname.dll.a'
9419 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9420 postinstall_cmds='base_file=`basename \${file}`~
9421 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9422 dldir=$destdir/`dirname \$dlpath`~
9423 test -d \$dldir || mkdir -p \$dldir~
9424 $install_prog $dir/$dlname \$dldir/$dlname~
9425 chmod a+x \$dldir/$dlname~
9426 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9427 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9428 fi'
9429 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9430 dlpath=$dir/\$dldll~
9431 $RM \$dlpath'
9432 shlibpath_overrides_runpath=yes
9433
9434 case $host_os in
9435 cygwin*)
9436 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9437 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9438 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9439 ;;
9440 mingw* | cegcc*)
9441 # MinGW DLLs use traditional 'lib' prefix
9442 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9443 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9444 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9445 # It is most probably a Windows format PATH printed by
9446 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9447 # path with ; separators, and with drive letters. We can handle the
9448 # drive letters (cygwin fileutils understands them), so leave them,
9449 # especially as we might pass files found there to a mingw objdump,
9450 # which wouldn't understand a cygwinified path. Ahh.
9451 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9452 else
9453 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9454 fi
9455 ;;
9456 pw32*)
9457 # pw32 DLLs use 'pw' prefix rather than 'lib'
9458 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9459 ;;
9460 esac
9461 ;;
9462
9463 *)
9464 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9465 ;;
9466 esac
9467 dynamic_linker='Win32 ld.exe'
9468 # FIXME: first we should search . and the directory the executable is in
9469 shlibpath_var=PATH
9470 ;;
9471
9472darwin* | rhapsody*)
9473 dynamic_linker="$host_os dyld"
9474 version_type=darwin
9475 need_lib_prefix=no
9476 need_version=no
9477 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9478 soname_spec='${libname}${release}${major}$shared_ext'
9479 shlibpath_overrides_runpath=yes
9480 shlibpath_var=DYLD_LIBRARY_PATH
9481 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9482
9483 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9484 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9485 ;;
9486
9487dgux*)
9488 version_type=linux
9489 need_lib_prefix=no
9490 need_version=no
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9492 soname_spec='${libname}${release}${shared_ext}$major'
9493 shlibpath_var=LD_LIBRARY_PATH
9494 ;;
9495
9496freebsd1*)
9497 dynamic_linker=no
9498 ;;
9499
9500freebsd* | dragonfly*)
9501 # DragonFly does not have aout. When/if they implement a new
9502 # versioning mechanism, adjust this.
9503 if test -x /usr/bin/objformat; then
9504 objformat=`/usr/bin/objformat`
9505 else
9506 case $host_os in
9507 freebsd[123]*) objformat=aout ;;
9508 *) objformat=elf ;;
9509 esac
9510 fi
9511 version_type=freebsd-$objformat
9512 case $version_type in
9513 freebsd-elf*)
9514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9515 need_version=no
9516 need_lib_prefix=no
9517 ;;
9518 freebsd-*)
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9520 need_version=yes
9521 ;;
9522 esac
9523 shlibpath_var=LD_LIBRARY_PATH
9524 case $host_os in
9525 freebsd2*)
9526 shlibpath_overrides_runpath=yes
9527 ;;
9528 freebsd3.[01]* | freebsdelf3.[01]*)
9529 shlibpath_overrides_runpath=yes
9530 hardcode_into_libs=yes
9531 ;;
9532 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9533 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9534 shlibpath_overrides_runpath=no
9535 hardcode_into_libs=yes
9536 ;;
9537 *) # from 4.6 on, and DragonFly
9538 shlibpath_overrides_runpath=yes
9539 hardcode_into_libs=yes
9540 ;;
9541 esac
9542 ;;
9543
9544gnu*)
9545 version_type=linux
9546 need_lib_prefix=no
9547 need_version=no
9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9549 soname_spec='${libname}${release}${shared_ext}$major'
9550 shlibpath_var=LD_LIBRARY_PATH
9551 hardcode_into_libs=yes
9552 ;;
9553
9554hpux9* | hpux10* | hpux11*)
9555 # Give a soname corresponding to the major version so that dld.sl refuses to
9556 # link against other versions.
9557 version_type=sunos
9558 need_lib_prefix=no
9559 need_version=no
9560 case $host_cpu in
9561 ia64*)
9562 shrext_cmds='.so'
9563 hardcode_into_libs=yes
9564 dynamic_linker="$host_os dld.so"
9565 shlibpath_var=LD_LIBRARY_PATH
9566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568 soname_spec='${libname}${release}${shared_ext}$major'
9569 if test "X$HPUX_IA64_MODE" = X32; then
9570 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9571 else
9572 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9573 fi
9574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9575 ;;
9576 hppa*64*)
9577 shrext_cmds='.sl'
9578 hardcode_into_libs=yes
9579 dynamic_linker="$host_os dld.sl"
9580 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9581 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583 soname_spec='${libname}${release}${shared_ext}$major'
9584 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9585 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9586 ;;
9587 *)
9588 shrext_cmds='.sl'
9589 dynamic_linker="$host_os dld.sl"
9590 shlibpath_var=SHLIB_PATH
9591 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9593 soname_spec='${libname}${release}${shared_ext}$major'
9594 ;;
9595 esac
9596 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9597 postinstall_cmds='chmod 555 $lib'
9598 ;;
9599
9600interix[3-9]*)
9601 version_type=linux
9602 need_lib_prefix=no
9603 need_version=no
9604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9605 soname_spec='${libname}${release}${shared_ext}$major'
9606 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9607 shlibpath_var=LD_LIBRARY_PATH
9608 shlibpath_overrides_runpath=no
9609 hardcode_into_libs=yes
9610 ;;
9611
9612irix5* | irix6* | nonstopux*)
9613 case $host_os in
9614 nonstopux*) version_type=nonstopux ;;
9615 *)
9616 if test "$lt_cv_prog_gnu_ld" = yes; then
9617 version_type=linux
9618 else
9619 version_type=irix
9620 fi ;;
9621 esac
9622 need_lib_prefix=no
9623 need_version=no
9624 soname_spec='${libname}${release}${shared_ext}$major'
9625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9626 case $host_os in
9627 irix5* | nonstopux*)
9628 libsuff= shlibsuff=
9629 ;;
9630 *)
9631 case $LD in # libtool.m4 will add one of these switches to LD
9632 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9633 libsuff= shlibsuff= libmagic=32-bit;;
9634 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9635 libsuff=32 shlibsuff=N32 libmagic=N32;;
9636 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9637 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9638 *) libsuff= shlibsuff= libmagic=never-match;;
9639 esac
9640 ;;
9641 esac
9642 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9643 shlibpath_overrides_runpath=no
9644 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9645 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9646 hardcode_into_libs=yes
9647 ;;
9648
9649# No shared lib support for Linux oldld, aout, or coff.
9650linux*oldld* | linux*aout* | linux*coff*)
9651 dynamic_linker=no
9652 ;;
9653
9654# This must be Linux ELF.
9655linux* | k*bsd*-gnu)
9656 version_type=linux
9657 need_lib_prefix=no
9658 need_version=no
9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9660 soname_spec='${libname}${release}${shared_ext}$major'
9661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9662 shlibpath_var=LD_LIBRARY_PATH
9663 shlibpath_overrides_runpath=no
9664 # Some binutils ld are patched to set DT_RUNPATH
9665 save_LDFLAGS=$LDFLAGS
9666 save_libdir=$libdir
9667 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9668 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9669 cat >conftest.$ac_ext <<_ACEOF
9670/* confdefs.h. */
9671_ACEOF
9672cat confdefs.h >>conftest.$ac_ext
9673cat >>conftest.$ac_ext <<_ACEOF
9674/* end confdefs.h. */
9675
9676int
9677main ()
9678{
9679
9680 ;
9681 return 0;
9682}
9683_ACEOF
9684rm -f conftest.$ac_objext conftest$ac_exeext
9685if { (ac_try="$ac_link"
9686case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9689esac
9690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9691$as_echo "$ac_try_echo") >&5
9692 (eval "$ac_link") 2>conftest.er1
9693 ac_status=$?
9694 grep -v '^ *+' conftest.er1 >conftest.err
9695 rm -f conftest.er1
9696 cat conftest.err >&5
9697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && {
9699 test -z "$ac_c_werror_flag" ||
9700 test ! -s conftest.err
9701 } && test -s conftest$ac_exeext && {
9702 test "$cross_compiling" = yes ||
9703 $as_test_x conftest$ac_exeext
9704 }; then
9705 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9706 shlibpath_overrides_runpath=yes
9707fi
9708
9709else
9710 $as_echo "$as_me: failed program was:" >&5
9711sed 's/^/| /' conftest.$ac_ext >&5
9712
9713
9714fi
9715
9716rm -rf conftest.dSYM
9717rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9718 conftest$ac_exeext conftest.$ac_ext
9719 LDFLAGS=$save_LDFLAGS
9720 libdir=$save_libdir
9721
9722 # This implies no fast_install, which is unacceptable.
9723 # Some rework will be needed to allow for fast_install
9724 # before this can be enabled.
9725 hardcode_into_libs=yes
9726
9727 # Add ABI-specific directories to the system library path.
9728 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9729
9730 # Append ld.so.conf contents to the search path
9731 if test -f /etc/ld.so.conf; then
9732 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' ' '`
9733 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9734 fi
9735
9736 # We used to test for /lib/ld.so.1 and disable shared libraries on
9737 # powerpc, because MkLinux only supported shared libraries with the
9738 # GNU dynamic linker. Since this was broken with cross compilers,
9739 # most powerpc-linux boxes support dynamic linking these days and
9740 # people can always --disable-shared, the test was removed, and we
9741 # assume the GNU/Linux dynamic linker is in use.
9742 dynamic_linker='GNU/Linux ld.so'
9743 ;;
9744
9745netbsd*)
9746 version_type=sunos
9747 need_lib_prefix=no
9748 need_version=no
9749 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9752 dynamic_linker='NetBSD (a.out) ld.so'
9753 else
9754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9755 soname_spec='${libname}${release}${shared_ext}$major'
9756 dynamic_linker='NetBSD ld.elf_so'
9757 fi
9758 shlibpath_var=LD_LIBRARY_PATH
9759 shlibpath_overrides_runpath=yes
9760 hardcode_into_libs=yes
9761 ;;
9762
9763newsos6)
9764 version_type=linux
9765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9766 shlibpath_var=LD_LIBRARY_PATH
9767 shlibpath_overrides_runpath=yes
9768 ;;
9769
9770*nto* | *qnx*)
9771 version_type=qnx
9772 need_lib_prefix=no
9773 need_version=no
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9775 soname_spec='${libname}${release}${shared_ext}$major'
9776 shlibpath_var=LD_LIBRARY_PATH
9777 shlibpath_overrides_runpath=no
9778 hardcode_into_libs=yes
9779 dynamic_linker='ldqnx.so'
9780 ;;
9781
9782openbsd*)
9783 version_type=sunos
9784 sys_lib_dlsearch_path_spec="/usr/lib"
9785 need_lib_prefix=no
9786 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9787 case $host_os in
9788 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9789 *) need_version=no ;;
9790 esac
9791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9793 shlibpath_var=LD_LIBRARY_PATH
9794 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9795 case $host_os in
9796 openbsd2.[89] | openbsd2.[89].*)
9797 shlibpath_overrides_runpath=no
9798 ;;
9799 *)
9800 shlibpath_overrides_runpath=yes
9801 ;;
9802 esac
9803 else
9804 shlibpath_overrides_runpath=yes
9805 fi
9806 ;;
9807
9808os2*)
9809 libname_spec='$name'
9810 shrext_cmds=".dll"
9811 need_lib_prefix=no
9812 library_names_spec='$libname${shared_ext} $libname.a'
9813 dynamic_linker='OS/2 ld.exe'
9814 shlibpath_var=LIBPATH
9815 ;;
9816
9817osf3* | osf4* | osf5*)
9818 version_type=osf
9819 need_lib_prefix=no
9820 need_version=no
9821 soname_spec='${libname}${release}${shared_ext}$major'
9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9823 shlibpath_var=LD_LIBRARY_PATH
9824 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9825 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9826 ;;
9827
9828rdos*)
9829 dynamic_linker=no
9830 ;;
9831
9832solaris*)
9833 version_type=linux
9834 need_lib_prefix=no
9835 need_version=no
9836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9837 soname_spec='${libname}${release}${shared_ext}$major'
9838 shlibpath_var=LD_LIBRARY_PATH
9839 shlibpath_overrides_runpath=yes
9840 hardcode_into_libs=yes
9841 # ldd complains unless libraries are executable
9842 postinstall_cmds='chmod +x $lib'
9843 ;;
9844
9845sunos4*)
9846 version_type=sunos
9847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9848 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9849 shlibpath_var=LD_LIBRARY_PATH
9850 shlibpath_overrides_runpath=yes
9851 if test "$with_gnu_ld" = yes; then
9852 need_lib_prefix=no
9853 fi
9854 need_version=yes
9855 ;;
9856
9857sysv4 | sysv4.3*)
9858 version_type=linux
9859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9860 soname_spec='${libname}${release}${shared_ext}$major'
9861 shlibpath_var=LD_LIBRARY_PATH
9862 case $host_vendor in
9863 sni)
9864 shlibpath_overrides_runpath=no
9865 need_lib_prefix=no
9866 runpath_var=LD_RUN_PATH
9867 ;;
9868 siemens)
9869 need_lib_prefix=no
9870 ;;
9871 motorola)
9872 need_lib_prefix=no
9873 need_version=no
9874 shlibpath_overrides_runpath=no
9875 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9876 ;;
9877 esac
9878 ;;
9879
9880sysv4*MP*)
9881 if test -d /usr/nec ;then
9882 version_type=linux
9883 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9884 soname_spec='$libname${shared_ext}.$major'
9885 shlibpath_var=LD_LIBRARY_PATH
9886 fi
9887 ;;
9888
9889sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9890 version_type=freebsd-elf
9891 need_lib_prefix=no
9892 need_version=no
9893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9894 soname_spec='${libname}${release}${shared_ext}$major'
9895 shlibpath_var=LD_LIBRARY_PATH
9896 shlibpath_overrides_runpath=yes
9897 hardcode_into_libs=yes
9898 if test "$with_gnu_ld" = yes; then
9899 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9900 else
9901 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9902 case $host_os in
9903 sco3.2v5*)
9904 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9905 ;;
9906 esac
9907 fi
9908 sys_lib_dlsearch_path_spec='/usr/lib'
9909 ;;
9910
9911tpf*)
9912 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9913 version_type=linux
9914 need_lib_prefix=no
9915 need_version=no
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9917 shlibpath_var=LD_LIBRARY_PATH
9918 shlibpath_overrides_runpath=no
9919 hardcode_into_libs=yes
9920 ;;
9921
9922uts4*)
9923 version_type=linux
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9925 soname_spec='${libname}${release}${shared_ext}$major'
9926 shlibpath_var=LD_LIBRARY_PATH
9927 ;;
9928
9929*)
9930 dynamic_linker=no
9931 ;;
9932esac
9933{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9934$as_echo "$dynamic_linker" >&6; }
9935test "$dynamic_linker" = no && can_build_shared=no
9936
9937variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9938if test "$GCC" = yes; then
9939 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9940fi
9941
9942if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9943 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9944fi
9945if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9946 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9947fi
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10036$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10037hardcode_action=
10038if test -n "$hardcode_libdir_flag_spec" ||
10039 test -n "$runpath_var" ||
10040 test "X$hardcode_automatic" = "Xyes" ; then
10041
10042 # We can hardcode non-existent directories.
10043 if test "$hardcode_direct" != no &&
10044 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10045 # have to relink, otherwise we might link with an installed library
10046 # when we should be linking with a yet-to-be-installed one
10047 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10048 test "$hardcode_minus_L" != no; then
10049 # Linking always hardcodes the temporary library directory.
10050 hardcode_action=relink
10051 else
10052 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10053 hardcode_action=immediate
10054 fi
10055else
10056 # We cannot hardcode anything, or else we can only hardcode existing
10057 # directories.
10058 hardcode_action=unsupported
10059fi
10060{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10061$as_echo "$hardcode_action" >&6; }
10062
10063if test "$hardcode_action" = relink ||
10064 test "$inherit_rpath" = yes; then
10065 # Fast installation is not supported
10066 enable_fast_install=no
10067elif test "$shlibpath_overrides_runpath" = yes ||
10068 test "$enable_shared" = no; then
10069 # Fast installation is not necessary
10070 enable_fast_install=needless
10071fi
10072
10073
10074
10075
10076
10077
10078 if test "x$enable_dlopen" != xyes; then
10079 enable_dlopen=unknown
10080 enable_dlopen_self=unknown
10081 enable_dlopen_self_static=unknown
10082else
10083 lt_cv_dlopen=no
10084 lt_cv_dlopen_libs=
10085
10086 case $host_os in
10087 beos*)
10088 lt_cv_dlopen="load_add_on"
10089 lt_cv_dlopen_libs=
10090 lt_cv_dlopen_self=yes
10091 ;;
10092
10093 mingw* | pw32* | cegcc*)
10094 lt_cv_dlopen="LoadLibrary"
10095 lt_cv_dlopen_libs=
10096 ;;
10097
10098 cygwin*)
10099 lt_cv_dlopen="dlopen"
10100 lt_cv_dlopen_libs=
10101 ;;
10102
10103 darwin*)
10104 # if libdl is installed we need to link against it
10105 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10106$as_echo_n "checking for dlopen in -ldl... " >&6; }
10107if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10108 $as_echo_n "(cached) " >&6
10109else
10110 ac_check_lib_save_LIBS=$LIBS
10111LIBS="-ldl $LIBS"
10112cat >conftest.$ac_ext <<_ACEOF
10113/* confdefs.h. */
10114_ACEOF
10115cat confdefs.h >>conftest.$ac_ext
10116cat >>conftest.$ac_ext <<_ACEOF
10117/* end confdefs.h. */
10118
10119/* Override any GCC internal prototype to avoid an error.
10120 Use char because int might match the return type of a GCC
10121 builtin and then its argument prototype would still apply. */
10122#ifdef __cplusplus
10123extern "C"
10124#endif
10125char dlopen ();
10126int
10127main ()
10128{
10129return dlopen ();
10130 ;
10131 return 0;
10132}
10133_ACEOF
10134rm -f conftest.$ac_objext conftest$ac_exeext
10135if { (ac_try="$ac_link"
10136case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10139esac
10140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10141$as_echo "$ac_try_echo") >&5
10142 (eval "$ac_link") 2>conftest.er1
10143 ac_status=$?
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
10147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } && {
10149 test -z "$ac_c_werror_flag" ||
10150 test ! -s conftest.err
10151 } && test -s conftest$ac_exeext && {
10152 test "$cross_compiling" = yes ||
10153 $as_test_x conftest$ac_exeext
10154 }; then
10155 ac_cv_lib_dl_dlopen=yes
10156else
10157 $as_echo "$as_me: failed program was:" >&5
10158sed 's/^/| /' conftest.$ac_ext >&5
10159
10160 ac_cv_lib_dl_dlopen=no
10161fi
10162
10163rm -rf conftest.dSYM
10164rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10165 conftest$ac_exeext conftest.$ac_ext
10166LIBS=$ac_check_lib_save_LIBS
10167fi
10168{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10169$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10170if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10171 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10172else
10173
10174 lt_cv_dlopen="dyld"
10175 lt_cv_dlopen_libs=
10176 lt_cv_dlopen_self=yes
10177
10178fi
10179
10180 ;;
10181
10182 *)
10183 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10184$as_echo_n "checking for shl_load... " >&6; }
10185if test "${ac_cv_func_shl_load+set}" = set; then
10186 $as_echo_n "(cached) " >&6
10187else
10188 cat >conftest.$ac_ext <<_ACEOF
10189/* confdefs.h. */
10190_ACEOF
10191cat confdefs.h >>conftest.$ac_ext
10192cat >>conftest.$ac_ext <<_ACEOF
10193/* end confdefs.h. */
10194/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10196#define shl_load innocuous_shl_load
10197
10198/* System header to define __stub macros and hopefully few prototypes,
10199 which can conflict with char shl_load (); below.
10200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10201 <limits.h> exists even on freestanding compilers. */
10202
10203#ifdef __STDC__
10204# include <limits.h>
10205#else
10206# include <assert.h>
10207#endif
10208
10209#undef shl_load
10210
10211/* Override any GCC internal prototype to avoid an error.
10212 Use char because int might match the return type of a GCC
10213 builtin and then its argument prototype would still apply. */
10214#ifdef __cplusplus
10215extern "C"
10216#endif
10217char shl_load ();
10218/* The GNU C library defines this for functions which it implements
10219 to always fail with ENOSYS. Some functions are actually named
10220 something starting with __ and the normal name is an alias. */
10221#if defined __stub_shl_load || defined __stub___shl_load
10222choke me
10223#endif
10224
10225int
10226main ()
10227{
10228return shl_load ();
10229 ;
10230 return 0;
10231}
10232_ACEOF
10233rm -f conftest.$ac_objext conftest$ac_exeext
10234if { (ac_try="$ac_link"
10235case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10238esac
10239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10240$as_echo "$ac_try_echo") >&5
10241 (eval "$ac_link") 2>conftest.er1
10242 ac_status=$?
10243 grep -v '^ *+' conftest.er1 >conftest.err
10244 rm -f conftest.er1
10245 cat conftest.err >&5
10246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); } && {
10248 test -z "$ac_c_werror_flag" ||
10249 test ! -s conftest.err
10250 } && test -s conftest$ac_exeext && {
10251 test "$cross_compiling" = yes ||
10252 $as_test_x conftest$ac_exeext
10253 }; then
10254 ac_cv_func_shl_load=yes
10255else
10256 $as_echo "$as_me: failed program was:" >&5
10257sed 's/^/| /' conftest.$ac_ext >&5
10258
10259 ac_cv_func_shl_load=no
10260fi
10261
10262rm -rf conftest.dSYM
10263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10264 conftest$ac_exeext conftest.$ac_ext
10265fi
10266{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10267$as_echo "$ac_cv_func_shl_load" >&6; }
10268if test "x$ac_cv_func_shl_load" = x""yes; then
10269 lt_cv_dlopen="shl_load"
10270else
10271 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10272$as_echo_n "checking for shl_load in -ldld... " >&6; }
10273if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10274 $as_echo_n "(cached) " >&6
10275else
10276 ac_check_lib_save_LIBS=$LIBS
10277LIBS="-ldld $LIBS"
10278cat >conftest.$ac_ext <<_ACEOF
10279/* confdefs.h. */
10280_ACEOF
10281cat confdefs.h >>conftest.$ac_ext
10282cat >>conftest.$ac_ext <<_ACEOF
10283/* end confdefs.h. */
10284
10285/* Override any GCC internal prototype to avoid an error.
10286 Use char because int might match the return type of a GCC
10287 builtin and then its argument prototype would still apply. */
10288#ifdef __cplusplus
10289extern "C"
10290#endif
10291char shl_load ();
10292int
10293main ()
10294{
10295return shl_load ();
10296 ;
10297 return 0;
10298}
10299_ACEOF
10300rm -f conftest.$ac_objext conftest$ac_exeext
10301if { (ac_try="$ac_link"
10302case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10305esac
10306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10307$as_echo "$ac_try_echo") >&5
10308 (eval "$ac_link") 2>conftest.er1
10309 ac_status=$?
10310 grep -v '^ *+' conftest.er1 >conftest.err
10311 rm -f conftest.er1
10312 cat conftest.err >&5
10313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } && {
10315 test -z "$ac_c_werror_flag" ||
10316 test ! -s conftest.err
10317 } && test -s conftest$ac_exeext && {
10318 test "$cross_compiling" = yes ||
10319 $as_test_x conftest$ac_exeext
10320 }; then
10321 ac_cv_lib_dld_shl_load=yes
10322else
10323 $as_echo "$as_me: failed program was:" >&5
10324sed 's/^/| /' conftest.$ac_ext >&5
10325
10326 ac_cv_lib_dld_shl_load=no
10327fi
10328
10329rm -rf conftest.dSYM
10330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10331 conftest$ac_exeext conftest.$ac_ext
10332LIBS=$ac_check_lib_save_LIBS
10333fi
10334{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10335$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10336if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10337 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10338else
10339 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10340$as_echo_n "checking for dlopen... " >&6; }
10341if test "${ac_cv_func_dlopen+set}" = set; then
10342 $as_echo_n "(cached) " >&6
10343else
10344 cat >conftest.$ac_ext <<_ACEOF
10345/* confdefs.h. */
10346_ACEOF
10347cat confdefs.h >>conftest.$ac_ext
10348cat >>conftest.$ac_ext <<_ACEOF
10349/* end confdefs.h. */
10350/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10352#define dlopen innocuous_dlopen
10353
10354/* System header to define __stub macros and hopefully few prototypes,
10355 which can conflict with char dlopen (); below.
10356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10357 <limits.h> exists even on freestanding compilers. */
10358
10359#ifdef __STDC__
10360# include <limits.h>
10361#else
10362# include <assert.h>
10363#endif
10364
10365#undef dlopen
10366
10367/* Override any GCC internal prototype to avoid an error.
10368 Use char because int might match the return type of a GCC
10369 builtin and then its argument prototype would still apply. */
10370#ifdef __cplusplus
10371extern "C"
10372#endif
10373char dlopen ();
10374/* The GNU C library defines this for functions which it implements
10375 to always fail with ENOSYS. Some functions are actually named
10376 something starting with __ and the normal name is an alias. */
10377#if defined __stub_dlopen || defined __stub___dlopen
10378choke me
10379#endif
10380
10381int
10382main ()
10383{
10384return dlopen ();
10385 ;
10386 return 0;
10387}
10388_ACEOF
10389rm -f conftest.$ac_objext conftest$ac_exeext
10390if { (ac_try="$ac_link"
10391case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10394esac
10395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10396$as_echo "$ac_try_echo") >&5
10397 (eval "$ac_link") 2>conftest.er1
10398 ac_status=$?
10399 grep -v '^ *+' conftest.er1 >conftest.err
10400 rm -f conftest.er1
10401 cat conftest.err >&5
10402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } && {
10404 test -z "$ac_c_werror_flag" ||
10405 test ! -s conftest.err
10406 } && test -s conftest$ac_exeext && {
10407 test "$cross_compiling" = yes ||
10408 $as_test_x conftest$ac_exeext
10409 }; then
10410 ac_cv_func_dlopen=yes
10411else
10412 $as_echo "$as_me: failed program was:" >&5
10413sed 's/^/| /' conftest.$ac_ext >&5
10414
10415 ac_cv_func_dlopen=no
10416fi
10417
10418rm -rf conftest.dSYM
10419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10420 conftest$ac_exeext conftest.$ac_ext
10421fi
10422{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10423$as_echo "$ac_cv_func_dlopen" >&6; }
10424if test "x$ac_cv_func_dlopen" = x""yes; then
10425 lt_cv_dlopen="dlopen"
10426else
10427 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10428$as_echo_n "checking for dlopen in -ldl... " >&6; }
10429if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10430 $as_echo_n "(cached) " >&6
10431else
10432 ac_check_lib_save_LIBS=$LIBS
10433LIBS="-ldl $LIBS"
10434cat >conftest.$ac_ext <<_ACEOF
10435/* confdefs.h. */
10436_ACEOF
10437cat confdefs.h >>conftest.$ac_ext
10438cat >>conftest.$ac_ext <<_ACEOF
10439/* end confdefs.h. */
10440
10441/* Override any GCC internal prototype to avoid an error.
10442 Use char because int might match the return type of a GCC
10443 builtin and then its argument prototype would still apply. */
10444#ifdef __cplusplus
10445extern "C"
10446#endif
10447char dlopen ();
10448int
10449main ()
10450{
10451return dlopen ();
10452 ;
10453 return 0;
10454}
10455_ACEOF
10456rm -f conftest.$ac_objext conftest$ac_exeext
10457if { (ac_try="$ac_link"
10458case "(($ac_try" in
10459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460 *) ac_try_echo=$ac_try;;
10461esac
10462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10463$as_echo "$ac_try_echo") >&5
10464 (eval "$ac_link") 2>conftest.er1
10465 ac_status=$?
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
10469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } && {
10471 test -z "$ac_c_werror_flag" ||
10472 test ! -s conftest.err
10473 } && test -s conftest$ac_exeext && {
10474 test "$cross_compiling" = yes ||
10475 $as_test_x conftest$ac_exeext
10476 }; then
10477 ac_cv_lib_dl_dlopen=yes
10478else
10479 $as_echo "$as_me: failed program was:" >&5
10480sed 's/^/| /' conftest.$ac_ext >&5
10481
10482 ac_cv_lib_dl_dlopen=no
10483fi
10484
10485rm -rf conftest.dSYM
10486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10487 conftest$ac_exeext conftest.$ac_ext
10488LIBS=$ac_check_lib_save_LIBS
10489fi
10490{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10491$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10492if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10493 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10494else
10495 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10496$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10497if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10498 $as_echo_n "(cached) " >&6
10499else
10500 ac_check_lib_save_LIBS=$LIBS
10501LIBS="-lsvld $LIBS"
10502cat >conftest.$ac_ext <<_ACEOF
10503/* confdefs.h. */
10504_ACEOF
10505cat confdefs.h >>conftest.$ac_ext
10506cat >>conftest.$ac_ext <<_ACEOF
10507/* end confdefs.h. */
10508
10509/* Override any GCC internal prototype to avoid an error.
10510 Use char because int might match the return type of a GCC
10511 builtin and then its argument prototype would still apply. */
10512#ifdef __cplusplus
10513extern "C"
10514#endif
10515char dlopen ();
10516int
10517main ()
10518{
10519return dlopen ();
10520 ;
10521 return 0;
10522}
10523_ACEOF
10524rm -f conftest.$ac_objext conftest$ac_exeext
10525if { (ac_try="$ac_link"
10526case "(($ac_try" in
10527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528 *) ac_try_echo=$ac_try;;
10529esac
10530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10531$as_echo "$ac_try_echo") >&5
10532 (eval "$ac_link") 2>conftest.er1
10533 ac_status=$?
10534 grep -v '^ *+' conftest.er1 >conftest.err
10535 rm -f conftest.er1
10536 cat conftest.err >&5
10537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } && {
10539 test -z "$ac_c_werror_flag" ||
10540 test ! -s conftest.err
10541 } && test -s conftest$ac_exeext && {
10542 test "$cross_compiling" = yes ||
10543 $as_test_x conftest$ac_exeext
10544 }; then
10545 ac_cv_lib_svld_dlopen=yes
10546else
10547 $as_echo "$as_me: failed program was:" >&5
10548sed 's/^/| /' conftest.$ac_ext >&5
10549
10550 ac_cv_lib_svld_dlopen=no
10551fi
10552
10553rm -rf conftest.dSYM
10554rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10555 conftest$ac_exeext conftest.$ac_ext
10556LIBS=$ac_check_lib_save_LIBS
10557fi
10558{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10559$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10560if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10561 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10562else
10563 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10564$as_echo_n "checking for dld_link in -ldld... " >&6; }
10565if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10566 $as_echo_n "(cached) " >&6
10567else
10568 ac_check_lib_save_LIBS=$LIBS
10569LIBS="-ldld $LIBS"
10570cat >conftest.$ac_ext <<_ACEOF
10571/* confdefs.h. */
10572_ACEOF
10573cat confdefs.h >>conftest.$ac_ext
10574cat >>conftest.$ac_ext <<_ACEOF
10575/* end confdefs.h. */
10576
10577/* Override any GCC internal prototype to avoid an error.
10578 Use char because int might match the return type of a GCC
10579 builtin and then its argument prototype would still apply. */
10580#ifdef __cplusplus
10581extern "C"
10582#endif
10583char dld_link ();
10584int
10585main ()
10586{
10587return dld_link ();
10588 ;
10589 return 0;
10590}
10591_ACEOF
10592rm -f conftest.$ac_objext conftest$ac_exeext
10593if { (ac_try="$ac_link"
10594case "(($ac_try" in
10595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596 *) ac_try_echo=$ac_try;;
10597esac
10598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10599$as_echo "$ac_try_echo") >&5
10600 (eval "$ac_link") 2>conftest.er1
10601 ac_status=$?
10602 grep -v '^ *+' conftest.er1 >conftest.err
10603 rm -f conftest.er1
10604 cat conftest.err >&5
10605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } && {
10607 test -z "$ac_c_werror_flag" ||
10608 test ! -s conftest.err
10609 } && test -s conftest$ac_exeext && {
10610 test "$cross_compiling" = yes ||
10611 $as_test_x conftest$ac_exeext
10612 }; then
10613 ac_cv_lib_dld_dld_link=yes
10614else
10615 $as_echo "$as_me: failed program was:" >&5
10616sed 's/^/| /' conftest.$ac_ext >&5
10617
10618 ac_cv_lib_dld_dld_link=no
10619fi
10620
10621rm -rf conftest.dSYM
10622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10623 conftest$ac_exeext conftest.$ac_ext
10624LIBS=$ac_check_lib_save_LIBS
10625fi
10626{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10627$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10628if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10629 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10630fi
10631
10632
10633fi
10634
10635
10636fi
10637
10638
10639fi
10640
10641
10642fi
10643
10644
10645fi
10646
10647 ;;
10648 esac
10649
10650 if test "x$lt_cv_dlopen" != xno; then
10651 enable_dlopen=yes
10652 else
10653 enable_dlopen=no
10654 fi
10655
10656 case $lt_cv_dlopen in
10657 dlopen)
10658 save_CPPFLAGS="$CPPFLAGS"
10659 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10660
10661 save_LDFLAGS="$LDFLAGS"
10662 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10663
10664 save_LIBS="$LIBS"
10665 LIBS="$lt_cv_dlopen_libs $LIBS"
10666
10667 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10668$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10669if test "${lt_cv_dlopen_self+set}" = set; then
10670 $as_echo_n "(cached) " >&6
10671else
10672 if test "$cross_compiling" = yes; then :
10673 lt_cv_dlopen_self=cross
10674else
10675 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10676 lt_status=$lt_dlunknown
10677 cat > conftest.$ac_ext <<_LT_EOF
10678#line 10678 "configure"
10679#include "confdefs.h"
10680
10681#if HAVE_DLFCN_H
10682#include <dlfcn.h>
10683#endif
10684
10685#include <stdio.h>
10686
10687#ifdef RTLD_GLOBAL
10688# define LT_DLGLOBAL RTLD_GLOBAL
10689#else
10690# ifdef DL_GLOBAL
10691# define LT_DLGLOBAL DL_GLOBAL
10692# else
10693# define LT_DLGLOBAL 0
10694# endif
10695#endif
10696
10697/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10698 find out it does not work in some platform. */
10699#ifndef LT_DLLAZY_OR_NOW
10700# ifdef RTLD_LAZY
10701# define LT_DLLAZY_OR_NOW RTLD_LAZY
10702# else
10703# ifdef DL_LAZY
10704# define LT_DLLAZY_OR_NOW DL_LAZY
10705# else
10706# ifdef RTLD_NOW
10707# define LT_DLLAZY_OR_NOW RTLD_NOW
10708# else
10709# ifdef DL_NOW
10710# define LT_DLLAZY_OR_NOW DL_NOW
10711# else
10712# define LT_DLLAZY_OR_NOW 0
10713# endif
10714# endif
10715# endif
10716# endif
10717#endif
10718
10719void fnord() { int i=42;}
10720int main ()
10721{
10722 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10723 int status = $lt_dlunknown;
10724
10725 if (self)
10726 {
10727 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10728 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10729 /* dlclose (self); */
10730 }
10731 else
10732 puts (dlerror ());
10733
10734 return status;
10735}
10736_LT_EOF
10737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10738 (eval $ac_link) 2>&5
10739 ac_status=$?
10740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10742 (./conftest; exit; ) >&5 2>/dev/null
10743 lt_status=$?
10744 case x$lt_status in
10745 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10746 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10747 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10748 esac
10749 else :
10750 # compilation failed
10751 lt_cv_dlopen_self=no
10752 fi
10753fi
10754rm -fr conftest*
10755
10756
10757fi
10758{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10759$as_echo "$lt_cv_dlopen_self" >&6; }
10760
10761 if test "x$lt_cv_dlopen_self" = xyes; then
10762 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10763 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10764$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10765if test "${lt_cv_dlopen_self_static+set}" = set; then
10766 $as_echo_n "(cached) " >&6
10767else
10768 if test "$cross_compiling" = yes; then :
10769 lt_cv_dlopen_self_static=cross
10770else
10771 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10772 lt_status=$lt_dlunknown
10773 cat > conftest.$ac_ext <<_LT_EOF
10774#line 10774 "configure"
10775#include "confdefs.h"
10776
10777#if HAVE_DLFCN_H
10778#include <dlfcn.h>
10779#endif
10780
10781#include <stdio.h>
10782
10783#ifdef RTLD_GLOBAL
10784# define LT_DLGLOBAL RTLD_GLOBAL
10785#else
10786# ifdef DL_GLOBAL
10787# define LT_DLGLOBAL DL_GLOBAL
10788# else
10789# define LT_DLGLOBAL 0
10790# endif
10791#endif
10792
10793/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10794 find out it does not work in some platform. */
10795#ifndef LT_DLLAZY_OR_NOW
10796# ifdef RTLD_LAZY
10797# define LT_DLLAZY_OR_NOW RTLD_LAZY
10798# else
10799# ifdef DL_LAZY
10800# define LT_DLLAZY_OR_NOW DL_LAZY
10801# else
10802# ifdef RTLD_NOW
10803# define LT_DLLAZY_OR_NOW RTLD_NOW
10804# else
10805# ifdef DL_NOW
10806# define LT_DLLAZY_OR_NOW DL_NOW
10807# else
10808# define LT_DLLAZY_OR_NOW 0
10809# endif
10810# endif
10811# endif
10812# endif
10813#endif
10814
10815void fnord() { int i=42;}
10816int main ()
10817{
10818 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10819 int status = $lt_dlunknown;
10820
10821 if (self)
10822 {
10823 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10824 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10825 /* dlclose (self); */
10826 }
10827 else
10828 puts (dlerror ());
10829
10830 return status;
10831}
10832_LT_EOF
10833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10834 (eval $ac_link) 2>&5
10835 ac_status=$?
10836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10838 (./conftest; exit; ) >&5 2>/dev/null
10839 lt_status=$?
10840 case x$lt_status in
10841 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10842 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10843 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10844 esac
10845 else :
10846 # compilation failed
10847 lt_cv_dlopen_self_static=no
10848 fi
10849fi
10850rm -fr conftest*
10851
10852
10853fi
10854{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10855$as_echo "$lt_cv_dlopen_self_static" >&6; }
10856 fi
10857
10858 CPPFLAGS="$save_CPPFLAGS"
10859 LDFLAGS="$save_LDFLAGS"
10860 LIBS="$save_LIBS"
10861 ;;
10862 esac
10863
10864 case $lt_cv_dlopen_self in
10865 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10866 *) enable_dlopen_self=unknown ;;
10867 esac
10868
10869 case $lt_cv_dlopen_self_static in
10870 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10871 *) enable_dlopen_self_static=unknown ;;
10872 esac
10873fi
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891striplib=
10892old_striplib=
10893{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10894$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10895if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10896 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10897 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10898 { $as_echo "$as_me:$LINENO: result: yes" >&5
10899$as_echo "yes" >&6; }
10900else
10901# FIXME - insert some real tests, host_os isn't really good enough
10902 case $host_os in
10903 darwin*)
10904 if test -n "$STRIP" ; then
10905 striplib="$STRIP -x"
10906 old_striplib="$STRIP -S"
10907 { $as_echo "$as_me:$LINENO: result: yes" >&5
10908$as_echo "yes" >&6; }
10909 else
10910 { $as_echo "$as_me:$LINENO: result: no" >&5
10911$as_echo "no" >&6; }
10912 fi
10913 ;;
10914 *)
10915 { $as_echo "$as_me:$LINENO: result: no" >&5
10916$as_echo "no" >&6; }
10917 ;;
10918 esac
10919fi
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932 # Report which library types will actually be built
10933 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10934$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10935 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10936$as_echo "$can_build_shared" >&6; }
10937
10938 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10939$as_echo_n "checking whether to build shared libraries... " >&6; }
10940 test "$can_build_shared" = "no" && enable_shared=no
10941
10942 # On AIX, shared libraries and static libraries use the same namespace, and
10943 # are all built from PIC.
10944 case $host_os in
10945 aix3*)
10946 test "$enable_shared" = yes && enable_static=no
10947 if test -n "$RANLIB"; then
10948 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10949 postinstall_cmds='$RANLIB $lib'
10950 fi
10951 ;;
10952
10953 aix[4-9]*)
10954 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10955 test "$enable_shared" = yes && enable_static=no
10956 fi
10957 ;;
10958 esac
10959 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10960$as_echo "$enable_shared" >&6; }
10961
10962 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10963$as_echo_n "checking whether to build static libraries... " >&6; }
10964 # Make sure either enable_shared or enable_static is yes.
10965 test "$enable_shared" = yes || enable_static=yes
10966 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10967$as_echo "$enable_static" >&6; }
10968
10969
10970
10971
10972fi
10973ac_ext=c
10974ac_cpp='$CPP $CPPFLAGS'
10975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10977ac_compiler_gnu=$ac_cv_c_compiler_gnu
10978
10979CC="$lt_save_CC"
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993 ac_config_commands="$ac_config_commands libtool"
10994
10995
10996
10997
10998# Only expand once:
10999
11000
11001
11002# Checks for header files.
11003
11004
11005for ac_header in unistd.h errno.h
11006do
11007as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11008if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11009 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11010$as_echo_n "checking for $ac_header... " >&6; }
11011if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11012 $as_echo_n "(cached) " >&6
11013fi
11014ac_res=`eval 'as_val=${'$as_ac_Header'}
11015 $as_echo "$as_val"'`
11016 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11017$as_echo "$ac_res" >&6; }
11018else
11019 # Is the header compilable?
11020{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11021$as_echo_n "checking $ac_header usability... " >&6; }
11022cat >conftest.$ac_ext <<_ACEOF
11023/* confdefs.h. */
11024_ACEOF
11025cat confdefs.h >>conftest.$ac_ext
11026cat >>conftest.$ac_ext <<_ACEOF
11027/* end confdefs.h. */
11028$ac_includes_default
11029#include <$ac_header>
11030_ACEOF
11031rm -f conftest.$ac_objext
11032if { (ac_try="$ac_compile"
11033case "(($ac_try" in
11034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035 *) ac_try_echo=$ac_try;;
11036esac
11037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11038$as_echo "$ac_try_echo") >&5
11039 (eval "$ac_compile") 2>conftest.er1
11040 ac_status=$?
11041 grep -v '^ *+' conftest.er1 >conftest.err
11042 rm -f conftest.er1
11043 cat conftest.err >&5
11044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); } && {
11046 test -z "$ac_c_werror_flag" ||
11047 test ! -s conftest.err
11048 } && test -s conftest.$ac_objext; then
11049 ac_header_compiler=yes
11050else
11051 $as_echo "$as_me: failed program was:" >&5
11052sed 's/^/| /' conftest.$ac_ext >&5
11053
11054 ac_header_compiler=no
11055fi
11056
11057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11058{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11059$as_echo "$ac_header_compiler" >&6; }
11060
11061# Is the header present?
11062{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11063$as_echo_n "checking $ac_header presence... " >&6; }
11064cat >conftest.$ac_ext <<_ACEOF
11065/* confdefs.h. */
11066_ACEOF
11067cat confdefs.h >>conftest.$ac_ext
11068cat >>conftest.$ac_ext <<_ACEOF
11069/* end confdefs.h. */
11070#include <$ac_header>
11071_ACEOF
11072if { (ac_try="$ac_cpp conftest.$ac_ext"
11073case "(($ac_try" in
11074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075 *) ac_try_echo=$ac_try;;
11076esac
11077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11078$as_echo "$ac_try_echo") >&5
11079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11080 ac_status=$?
11081 grep -v '^ *+' conftest.er1 >conftest.err
11082 rm -f conftest.er1
11083 cat conftest.err >&5
11084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); } >/dev/null && {
11086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11087 test ! -s conftest.err
11088 }; then
11089 ac_header_preproc=yes
11090else
11091 $as_echo "$as_me: failed program was:" >&5
11092sed 's/^/| /' conftest.$ac_ext >&5
11093
11094 ac_header_preproc=no
11095fi
11096
11097rm -f conftest.err conftest.$ac_ext
11098{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11099$as_echo "$ac_header_preproc" >&6; }
11100
11101# So? What about this header?
11102case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11103 yes:no: )
11104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11105$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11107$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11108 ac_header_preproc=yes
11109 ;;
11110 no:yes:* )
11111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11112$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11114$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11116$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11118$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11120$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11122$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11123
11124 ;;
11125esac
11126{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11127$as_echo_n "checking for $ac_header... " >&6; }
11128if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11129 $as_echo_n "(cached) " >&6
11130else
11131 eval "$as_ac_Header=\$ac_header_preproc"
11132fi
11133ac_res=`eval 'as_val=${'$as_ac_Header'}
11134 $as_echo "$as_val"'`
11135 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11136$as_echo "$ac_res" >&6; }
11137
11138fi
11139as_val=`eval 'as_val=${'$as_ac_Header'}
11140 $as_echo "$as_val"'`
11141 if test "x$as_val" = x""yes; then
11142 cat >>confdefs.h <<_ACEOF
11143#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11144_ACEOF
11145
11146fi
11147
11148done
11149
11150
11151# Checks for library functions.
11152
11153
11154for ac_header in stdlib.h unistd.h
11155do
11156as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11158 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11159$as_echo_n "checking for $ac_header... " >&6; }
11160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11161 $as_echo_n "(cached) " >&6
11162fi
11163ac_res=`eval 'as_val=${'$as_ac_Header'}
11164 $as_echo "$as_val"'`
11165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11166$as_echo "$ac_res" >&6; }
11167else
11168 # Is the header compilable?
11169{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11170$as_echo_n "checking $ac_header usability... " >&6; }
11171cat >conftest.$ac_ext <<_ACEOF
11172/* confdefs.h. */
11173_ACEOF
11174cat confdefs.h >>conftest.$ac_ext
11175cat >>conftest.$ac_ext <<_ACEOF
11176/* end confdefs.h. */
11177$ac_includes_default
11178#include <$ac_header>
11179_ACEOF
11180rm -f conftest.$ac_objext
11181if { (ac_try="$ac_compile"
11182case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11185esac
11186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11187$as_echo "$ac_try_echo") >&5
11188 (eval "$ac_compile") 2>conftest.er1
11189 ac_status=$?
11190 grep -v '^ *+' conftest.er1 >conftest.err
11191 rm -f conftest.er1
11192 cat conftest.err >&5
11193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } && {
11195 test -z "$ac_c_werror_flag" ||
11196 test ! -s conftest.err
11197 } && test -s conftest.$ac_objext; then
11198 ac_header_compiler=yes
11199else
11200 $as_echo "$as_me: failed program was:" >&5
11201sed 's/^/| /' conftest.$ac_ext >&5
11202
11203 ac_header_compiler=no
11204fi
11205
11206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11207{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11208$as_echo "$ac_header_compiler" >&6; }
11209
11210# Is the header present?
11211{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11212$as_echo_n "checking $ac_header presence... " >&6; }
11213cat >conftest.$ac_ext <<_ACEOF
11214/* confdefs.h. */
11215_ACEOF
11216cat confdefs.h >>conftest.$ac_ext
11217cat >>conftest.$ac_ext <<_ACEOF
11218/* end confdefs.h. */
11219#include <$ac_header>
11220_ACEOF
11221if { (ac_try="$ac_cpp conftest.$ac_ext"
11222case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11225esac
11226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11227$as_echo "$ac_try_echo") >&5
11228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11229 ac_status=$?
11230 grep -v '^ *+' conftest.er1 >conftest.err
11231 rm -f conftest.er1
11232 cat conftest.err >&5
11233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } >/dev/null && {
11235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11236 test ! -s conftest.err
11237 }; then
11238 ac_header_preproc=yes
11239else
11240 $as_echo "$as_me: failed program was:" >&5
11241sed 's/^/| /' conftest.$ac_ext >&5
11242
11243 ac_header_preproc=no
11244fi
11245
11246rm -f conftest.err conftest.$ac_ext
11247{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11248$as_echo "$ac_header_preproc" >&6; }
11249
11250# So? What about this header?
11251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11252 yes:no: )
11253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11254$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11256$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11257 ac_header_preproc=yes
11258 ;;
11259 no:yes:* )
11260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11261$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11263$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11265$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11267$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11269$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11271$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11272
11273 ;;
11274esac
11275{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11276$as_echo_n "checking for $ac_header... " >&6; }
11277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11278 $as_echo_n "(cached) " >&6
11279else
11280 eval "$as_ac_Header=\$ac_header_preproc"
11281fi
11282ac_res=`eval 'as_val=${'$as_ac_Header'}
11283 $as_echo "$as_val"'`
11284 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11285$as_echo "$ac_res" >&6; }
11286
11287fi
11288as_val=`eval 'as_val=${'$as_ac_Header'}
11289 $as_echo "$as_val"'`
11290 if test "x$as_val" = x""yes; then
11291 cat >>confdefs.h <<_ACEOF
11292#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11293_ACEOF
11294
11295fi
11296
11297done
11298
11299
11300for ac_func in getpagesize
11301do
11302as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11303{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11304$as_echo_n "checking for $ac_func... " >&6; }
11305if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11306 $as_echo_n "(cached) " >&6
11307else
11308 cat >conftest.$ac_ext <<_ACEOF
11309/* confdefs.h. */
11310_ACEOF
11311cat confdefs.h >>conftest.$ac_ext
11312cat >>conftest.$ac_ext <<_ACEOF
11313/* end confdefs.h. */
11314/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11316#define $ac_func innocuous_$ac_func
11317
11318/* System header to define __stub macros and hopefully few prototypes,
11319 which can conflict with char $ac_func (); below.
11320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11321 <limits.h> exists even on freestanding compilers. */
11322
11323#ifdef __STDC__
11324# include <limits.h>
11325#else
11326# include <assert.h>
11327#endif
11328
11329#undef $ac_func
11330
11331/* Override any GCC internal prototype to avoid an error.
11332 Use char because int might match the return type of a GCC
11333 builtin and then its argument prototype would still apply. */
11334#ifdef __cplusplus
11335extern "C"
11336#endif
11337char $ac_func ();
11338/* The GNU C library defines this for functions which it implements
11339 to always fail with ENOSYS. Some functions are actually named
11340 something starting with __ and the normal name is an alias. */
11341#if defined __stub_$ac_func || defined __stub___$ac_func
11342choke me
11343#endif
11344
11345int
11346main ()
11347{
11348return $ac_func ();
11349 ;
11350 return 0;
11351}
11352_ACEOF
11353rm -f conftest.$ac_objext conftest$ac_exeext
11354if { (ac_try="$ac_link"
11355case "(($ac_try" in
11356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357 *) ac_try_echo=$ac_try;;
11358esac
11359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11360$as_echo "$ac_try_echo") >&5
11361 (eval "$ac_link") 2>conftest.er1
11362 ac_status=$?
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
11366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } && {
11368 test -z "$ac_c_werror_flag" ||
11369 test ! -s conftest.err
11370 } && test -s conftest$ac_exeext && {
11371 test "$cross_compiling" = yes ||
11372 $as_test_x conftest$ac_exeext
11373 }; then
11374 eval "$as_ac_var=yes"
11375else
11376 $as_echo "$as_me: failed program was:" >&5
11377sed 's/^/| /' conftest.$ac_ext >&5
11378
11379 eval "$as_ac_var=no"
11380fi
11381
11382rm -rf conftest.dSYM
11383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11384 conftest$ac_exeext conftest.$ac_ext
11385fi
11386ac_res=`eval 'as_val=${'$as_ac_var'}
11387 $as_echo "$as_val"'`
11388 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11389$as_echo "$ac_res" >&6; }
11390as_val=`eval 'as_val=${'$as_ac_var'}
11391 $as_echo "$as_val"'`
11392 if test "x$as_val" = x""yes; then
11393 cat >>confdefs.h <<_ACEOF
11394#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11395_ACEOF
11396
11397fi
11398done
11399
11400{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
11401$as_echo_n "checking for working mmap... " >&6; }
11402if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11403 $as_echo_n "(cached) " >&6
11404else
11405 if test "$cross_compiling" = yes; then
11406 ac_cv_func_mmap_fixed_mapped=no
11407else
11408 cat >conftest.$ac_ext <<_ACEOF
11409/* confdefs.h. */
11410_ACEOF
11411cat confdefs.h >>conftest.$ac_ext
11412cat >>conftest.$ac_ext <<_ACEOF
11413/* end confdefs.h. */
11414$ac_includes_default
11415/* malloc might have been renamed as rpl_malloc. */
11416#undef malloc
11417
11418/* Thanks to Mike Haertel and Jim Avera for this test.
11419 Here is a matrix of mmap possibilities:
11420 mmap private not fixed
11421 mmap private fixed at somewhere currently unmapped
11422 mmap private fixed at somewhere already mapped
11423 mmap shared not fixed
11424 mmap shared fixed at somewhere currently unmapped
11425 mmap shared fixed at somewhere already mapped
11426 For private mappings, we should verify that changes cannot be read()
11427 back from the file, nor mmap's back from the file at a different
11428 address. (There have been systems where private was not correctly
11429 implemented like the infamous i386 svr4.0, and systems where the
11430 VM page cache was not coherent with the file system buffer cache
11431 like early versions of FreeBSD and possibly contemporary NetBSD.)
11432 For shared mappings, we should conversely verify that changes get
11433 propagated back to all the places they're supposed to be.
11434
11435 Grep wants private fixed already mapped.
11436 The main things grep needs to know about mmap are:
11437 * does it exist and is it safe to write into the mmap'd area
11438 * how to use it (BSD variants) */
11439
11440#include <fcntl.h>
11441#include <sys/mman.h>
11442
11443#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11444char *malloc ();
11445#endif
11446
11447/* This mess was copied from the GNU getpagesize.h. */
11448#ifndef HAVE_GETPAGESIZE
11449/* Assume that all systems that can run configure have sys/param.h. */
11450# ifndef HAVE_SYS_PARAM_H
11451# define HAVE_SYS_PARAM_H 1
11452# endif
11453
11454# ifdef _SC_PAGESIZE
11455# define getpagesize() sysconf(_SC_PAGESIZE)
11456# else /* no _SC_PAGESIZE */
11457# ifdef HAVE_SYS_PARAM_H
11458# include <sys/param.h>
11459# ifdef EXEC_PAGESIZE
11460# define getpagesize() EXEC_PAGESIZE
11461# else /* no EXEC_PAGESIZE */
11462# ifdef NBPG
11463# define getpagesize() NBPG * CLSIZE
11464# ifndef CLSIZE
11465# define CLSIZE 1
11466# endif /* no CLSIZE */
11467# else /* no NBPG */
11468# ifdef NBPC
11469# define getpagesize() NBPC
11470# else /* no NBPC */
11471# ifdef PAGESIZE
11472# define getpagesize() PAGESIZE
11473# endif /* PAGESIZE */
11474# endif /* no NBPC */
11475# endif /* no NBPG */
11476# endif /* no EXEC_PAGESIZE */
11477# else /* no HAVE_SYS_PARAM_H */
11478# define getpagesize() 8192 /* punt totally */
11479# endif /* no HAVE_SYS_PARAM_H */
11480# endif /* no _SC_PAGESIZE */
11481
11482#endif /* no HAVE_GETPAGESIZE */
11483
11484int
11485main ()
11486{
11487 char *data, *data2, *data3;
11488 int i, pagesize;
11489 int fd;
11490
11491 pagesize = getpagesize ();
11492
11493 /* First, make a file with some known garbage in it. */
11494 data = (char *) malloc (pagesize);
11495 if (!data)
11496 return 1;
11497 for (i = 0; i < pagesize; ++i)
11498 *(data + i) = rand ();
11499 umask (0);
11500 fd = creat ("conftest.mmap", 0600);
11501 if (fd < 0)
11502 return 1;
11503 if (write (fd, data, pagesize) != pagesize)
11504 return 1;
11505 close (fd);
11506
11507 /* Next, try to mmap the file at a fixed address which already has
11508 something else allocated at it. If we can, also make sure that
11509 we see the same garbage. */
11510 fd = open ("conftest.mmap", O_RDWR);
11511 if (fd < 0)
11512 return 1;
11513 data2 = (char *) malloc (2 * pagesize);
11514 if (!data2)
11515 return 1;
11516 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11517 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11518 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11519 return 1;
11520 for (i = 0; i < pagesize; ++i)
11521 if (*(data + i) != *(data2 + i))
11522 return 1;
11523
11524 /* Finally, make sure that changes to the mapped area do not
11525 percolate back to the file as seen by read(). (This is a bug on
11526 some variants of i386 svr4.0.) */
11527 for (i = 0; i < pagesize; ++i)
11528 *(data2 + i) = *(data2 + i) + 1;
11529 data3 = (char *) malloc (pagesize);
11530 if (!data3)
11531 return 1;
11532 if (read (fd, data3, pagesize) != pagesize)
11533 return 1;
11534 for (i = 0; i < pagesize; ++i)
11535 if (*(data + i) != *(data3 + i))
11536 return 1;
11537 close (fd);
11538 return 0;
11539}
11540_ACEOF
11541rm -f conftest$ac_exeext
11542if { (ac_try="$ac_link"
11543case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11546esac
11547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11548$as_echo "$ac_try_echo") >&5
11549 (eval "$ac_link") 2>&5
11550 ac_status=$?
11551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11553 { (case "(($ac_try" in
11554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11555 *) ac_try_echo=$ac_try;;
11556esac
11557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11558$as_echo "$ac_try_echo") >&5
11559 (eval "$ac_try") 2>&5
11560 ac_status=$?
11561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; }; then
11563 ac_cv_func_mmap_fixed_mapped=yes
11564else
11565 $as_echo "$as_me: program exited with status $ac_status" >&5
11566$as_echo "$as_me: failed program was:" >&5
11567sed 's/^/| /' conftest.$ac_ext >&5
11568
11569( exit $ac_status )
11570ac_cv_func_mmap_fixed_mapped=no
11571fi
11572rm -rf conftest.dSYM
11573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11574fi
11575
11576
11577fi
11578{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11579$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11580if test $ac_cv_func_mmap_fixed_mapped = yes; then
11581
11582cat >>confdefs.h <<\_ACEOF
11583#define HAVE_MMAP 1
11584_ACEOF
11585
11586fi
11587rm -f conftest.mmap
11588
11589
11590ac_config_headers="$ac_config_headers config.h"
11591
11592ac_config_files="$ac_config_files Makefile"
11593
11594cat >confcache <<\_ACEOF
11595# This file is a shell script that caches the results of configure
11596# tests run on this system so they can be shared between configure
11597# scripts and configure runs, see configure's option --config-cache.
11598# It is not useful on other systems. If it contains results you don't
11599# want to keep, you may remove or edit it.
11600#
11601# config.status only pays attention to the cache file if you give it
11602# the --recheck option to rerun configure.
11603#
11604# `ac_cv_env_foo' variables (set or unset) will be overridden when
11605# loading this file, other *unset* `ac_cv_foo' will be assigned the
11606# following values.
11607
11608_ACEOF
11609
11610# The following way of writing the cache mishandles newlines in values,
11611# but we know of no workaround that is simple, portable, and efficient.
11612# So, we kill variables containing newlines.
11613# Ultrix sh set writes to stderr and can't be redirected directly,
11614# and sets the high bit in the cache file unless we assign to the vars.
11615(
11616 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11617 eval ac_val=\$$ac_var
11618 case $ac_val in #(
11619 *${as_nl}*)
11620 case $ac_var in #(
11621 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
11622$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11623 esac
11624 case $ac_var in #(
11625 _ | IFS | as_nl) ;; #(
11626 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11627 *) $as_unset $ac_var ;;
11628 esac ;;
11629 esac
11630 done
11631
11632 (set) 2>&1 |
11633 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11634 *${as_nl}ac_space=\ *)
11635 # `set' does not quote correctly, so add quotes (double-quote
11636 # substitution turns \\\\ into \\, and sed turns \\ into \).
11637 sed -n \
11638 "s/'/'\\\\''/g;
11639 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11640 ;; #(
11641 *)
11642 # `set' quotes correctly as required by POSIX, so do not add quotes.
11643 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11644 ;;
11645 esac |
11646 sort
11647) |
11648 sed '
11649 /^ac_cv_env_/b end
11650 t clear
11651 :clear
11652 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11653 t end
11654 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11655 :end' >>confcache
11656if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11657 if test -w "$cache_file"; then
11658 test "x$cache_file" != "x/dev/null" &&
11659 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11660$as_echo "$as_me: updating cache $cache_file" >&6;}
11661 cat confcache >$cache_file
11662 else
11663 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11664$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11665 fi
11666fi
11667rm -f confcache
11668
11669test "x$prefix" = xNONE && prefix=$ac_default_prefix
11670# Let make expand exec_prefix.
11671test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11672
11673DEFS=-DHAVE_CONFIG_H
11674
11675ac_libobjs=
11676ac_ltlibobjs=
11677for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11678 # 1. Remove the extension, and $U if already installed.
11679 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11680 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11681 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11682 # will be set to the directory where LIBOBJS objects are built.
11683 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11684 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11685done
11686LIBOBJS=$ac_libobjs
11687
11688LTLIBOBJS=$ac_ltlibobjs
11689
11690
11691if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11692 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11693Usually this means the macro was only invoked conditionally." >&5
11694$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11695Usually this means the macro was only invoked conditionally." >&2;}
11696 { (exit 1); exit 1; }; }
11697fi
11698if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11699 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11700Usually this means the macro was only invoked conditionally." >&5
11701$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11702Usually this means the macro was only invoked conditionally." >&2;}
11703 { (exit 1); exit 1; }; }
11704fi
11705
11706: ${CONFIG_STATUS=./config.status}
11707ac_write_fail=0
11708ac_clean_files_save=$ac_clean_files
11709ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11710{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11711$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11712cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11713#! $SHELL
11714# Generated by $as_me.
11715# Run this file to recreate the current configuration.
11716# Compiler output produced by configure, useful for debugging
11717# configure, is in config.log if it exists.
11718
11719debug=false
11720ac_cs_recheck=false
11721ac_cs_silent=false
11722SHELL=\${CONFIG_SHELL-$SHELL}
11723_ACEOF
11724
11725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11726## --------------------- ##
11727## M4sh Initialization. ##
11728## --------------------- ##
11729
11730# Be more Bourne compatible
11731DUALCASE=1; export DUALCASE # for MKS sh
11732if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11733 emulate sh
11734 NULLCMD=:
11735 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11736 # is contrary to our usage. Disable this feature.
11737 alias -g '${1+"$@"}'='"$@"'
11738 setopt NO_GLOB_SUBST
11739else
11740 case `(set -o) 2>/dev/null` in
11741 *posix*) set -o posix ;;
11742esac
11743
11744fi
11745
11746
11747
11748
11749# PATH needs CR
11750# Avoid depending upon Character Ranges.
11751as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11752as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11753as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11754as_cr_digits='0123456789'
11755as_cr_alnum=$as_cr_Letters$as_cr_digits
11756
11757as_nl='
11758'
11759export as_nl
11760# Printing a long string crashes Solaris 7 /usr/bin/printf.
11761as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11762as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11763as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11764if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11765 as_echo='printf %s\n'
11766 as_echo_n='printf %s'
11767else
11768 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11769 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11770 as_echo_n='/usr/ucb/echo -n'
11771 else
11772 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11773 as_echo_n_body='eval
11774 arg=$1;
11775 case $arg in
11776 *"$as_nl"*)
11777 expr "X$arg" : "X\\(.*\\)$as_nl";
11778 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11779 esac;
11780 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11781 '
11782 export as_echo_n_body
11783 as_echo_n='sh -c $as_echo_n_body as_echo'
11784 fi
11785 export as_echo_body
11786 as_echo='sh -c $as_echo_body as_echo'
11787fi
11788
11789# The user is always right.
11790if test "${PATH_SEPARATOR+set}" != set; then
11791 PATH_SEPARATOR=:
11792 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11793 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11794 PATH_SEPARATOR=';'
11795 }
11796fi
11797
11798# Support unset when possible.
11799if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11800 as_unset=unset
11801else
11802 as_unset=false
11803fi
11804
11805
11806# IFS
11807# We need space, tab and new line, in precisely that order. Quoting is
11808# there to prevent editors from complaining about space-tab.
11809# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11810# splitting by setting IFS to empty value.)
11811IFS=" "" $as_nl"
11812
11813# Find who we are. Look in the path if we contain no directory separator.
11814case $0 in
11815 *[\\/]* ) as_myself=$0 ;;
11816 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817for as_dir in $PATH
11818do
11819 IFS=$as_save_IFS
11820 test -z "$as_dir" && as_dir=.
11821 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11822done
11823IFS=$as_save_IFS
11824
11825 ;;
11826esac
11827# We did not find ourselves, most probably we were run as `sh COMMAND'
11828# in which case we are not to be found in the path.
11829if test "x$as_myself" = x; then
11830 as_myself=$0
11831fi
11832if test ! -f "$as_myself"; then
11833 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11834 { (exit 1); exit 1; }
11835fi
11836
11837# Work around bugs in pre-3.0 UWIN ksh.
11838for as_var in ENV MAIL MAILPATH
11839do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11840done
11841PS1='$ '
11842PS2='> '
11843PS4='+ '
11844
11845# NLS nuisances.
11846LC_ALL=C
11847export LC_ALL
11848LANGUAGE=C
11849export LANGUAGE
11850
11851# Required to use basename.
11852if expr a : '\(a\)' >/dev/null 2>&1 &&
11853 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11854 as_expr=expr
11855else
11856 as_expr=false
11857fi
11858
11859if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11860 as_basename=basename
11861else
11862 as_basename=false
11863fi
11864
11865
11866# Name of the executable.
11867as_me=`$as_basename -- "$0" ||
11868$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11869 X"$0" : 'X\(//\)$' \| \
11870 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11871$as_echo X/"$0" |
11872 sed '/^.*\/\([^/][^/]*\)\/*$/{
11873 s//\1/
11874 q
11875 }
11876 /^X\/\(\/\/\)$/{
11877 s//\1/
11878 q
11879 }
11880 /^X\/\(\/\).*/{
11881 s//\1/
11882 q
11883 }
11884 s/.*/./; q'`
11885
11886# CDPATH.
11887$as_unset CDPATH
11888
11889
11890
11891 as_lineno_1=$LINENO
11892 as_lineno_2=$LINENO
11893 test "x$as_lineno_1" != "x$as_lineno_2" &&
11894 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11895
11896 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11897 # uniformly replaced by the line number. The first 'sed' inserts a
11898 # line-number line after each line using $LINENO; the second 'sed'
11899 # does the real work. The second script uses 'N' to pair each
11900 # line-number line with the line containing $LINENO, and appends
11901 # trailing '-' during substitution so that $LINENO is not a special
11902 # case at line end.
11903 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11904 # scripts with optimization help from Paolo Bonzini. Blame Lee
11905 # E. McMahon (1931-1989) for sed's syntax. :-)
11906 sed -n '
11907 p
11908 /[$]LINENO/=
11909 ' <$as_myself |
11910 sed '
11911 s/[$]LINENO.*/&-/
11912 t lineno
11913 b
11914 :lineno
11915 N
11916 :loop
11917 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11918 t loop
11919 s/-\n.*//
11920 ' >$as_me.lineno &&
11921 chmod +x "$as_me.lineno" ||
11922 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11923 { (exit 1); exit 1; }; }
11924
11925 # Don't try to exec as it changes $[0], causing all sort of problems
11926 # (the dirname of $[0] is not the place where we might find the
11927 # original and so on. Autoconf is especially sensitive to this).
11928 . "./$as_me.lineno"
11929 # Exit status is that of the last command.
11930 exit
11931}
11932
11933
11934if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11935 as_dirname=dirname
11936else
11937 as_dirname=false
11938fi
11939
11940ECHO_C= ECHO_N= ECHO_T=
11941case `echo -n x` in
11942-n*)
11943 case `echo 'x\c'` in
11944 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11945 *) ECHO_C='\c';;
11946 esac;;
11947*)
11948 ECHO_N='-n';;
11949esac
11950if expr a : '\(a\)' >/dev/null 2>&1 &&
11951 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11952 as_expr=expr
11953else
11954 as_expr=false
11955fi
11956
11957rm -f conf$$ conf$$.exe conf$$.file
11958if test -d conf$$.dir; then
11959 rm -f conf$$.dir/conf$$.file
11960else
11961 rm -f conf$$.dir
11962 mkdir conf$$.dir 2>/dev/null
11963fi
11964if (echo >conf$$.file) 2>/dev/null; then
11965 if ln -s conf$$.file conf$$ 2>/dev/null; then
11966 as_ln_s='ln -s'
11967 # ... but there are two gotchas:
11968 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11969 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11970 # In both cases, we have to default to `cp -p'.
11971 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11972 as_ln_s='cp -p'
11973 elif ln conf$$.file conf$$ 2>/dev/null; then
11974 as_ln_s=ln
11975 else
11976 as_ln_s='cp -p'
11977 fi
11978else
11979 as_ln_s='cp -p'
11980fi
11981rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11982rmdir conf$$.dir 2>/dev/null
11983
11984if mkdir -p . 2>/dev/null; then
11985 as_mkdir_p=:
11986else
11987 test -d ./-p && rmdir ./-p
11988 as_mkdir_p=false
11989fi
11990
11991if test -x / >/dev/null 2>&1; then
11992 as_test_x='test -x'
11993else
11994 if ls -dL / >/dev/null 2>&1; then
11995 as_ls_L_option=L
11996 else
11997 as_ls_L_option=
11998 fi
11999 as_test_x='
12000 eval sh -c '\''
12001 if test -d "$1"; then
12002 test -d "$1/.";
12003 else
12004 case $1 in
12005 -*)set "./$1";;
12006 esac;
12007 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12008 ???[sx]*):;;*)false;;esac;fi
12009 '\'' sh
12010 '
12011fi
12012as_executable_p=$as_test_x
12013
12014# Sed expression to map a string onto a valid CPP name.
12015as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12016
12017# Sed expression to map a string onto a valid variable name.
12018as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12019
12020
12021exec 6>&1
12022
12023# Save the log message, to keep $[0] and so on meaningful, and to
12024# report actual input values of CONFIG_FILES etc. instead of their
12025# values after options handling.
12026ac_log="
12027This file was extended by zlib $as_me 1.1.4, which was
12028generated by GNU Autoconf 2.63. Invocation command line was
12029
12030 CONFIG_FILES = $CONFIG_FILES
12031 CONFIG_HEADERS = $CONFIG_HEADERS
12032 CONFIG_LINKS = $CONFIG_LINKS
12033 CONFIG_COMMANDS = $CONFIG_COMMANDS
12034 $ $0 $@
12035
12036on `(hostname || uname -n) 2>/dev/null | sed 1q`
12037"
12038
12039_ACEOF
12040
12041case $ac_config_files in *"
12042"*) set x $ac_config_files; shift; ac_config_files=$*;;
12043esac
12044
12045case $ac_config_headers in *"
12046"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12047esac
12048
12049
12050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12051# Files that config.status was made for.
12052config_files="$ac_config_files"
12053config_headers="$ac_config_headers"
12054config_commands="$ac_config_commands"
12055
12056_ACEOF
12057
12058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12059ac_cs_usage="\
12060\`$as_me' instantiates files from templates according to the
12061current configuration.
12062
12063Usage: $0 [OPTION]... [FILE]...
12064
12065 -h, --help print this help, then exit
12066 -V, --version print version number and configuration settings, then exit
12067 -q, --quiet, --silent
12068 do not print progress messages
12069 -d, --debug don't remove temporary files
12070 --recheck update $as_me by reconfiguring in the same conditions
12071 --file=FILE[:TEMPLATE]
12072 instantiate the configuration file FILE
12073 --header=FILE[:TEMPLATE]
12074 instantiate the configuration header FILE
12075
12076Configuration files:
12077$config_files
12078
12079Configuration headers:
12080$config_headers
12081
12082Configuration commands:
12083$config_commands
12084
12085Report bugs to <bug-autoconf@gnu.org>."
12086
12087_ACEOF
12088cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12089ac_cs_version="\\
12090zlib config.status 1.1.4
12091configured by $0, generated by GNU Autoconf 2.63,
12092 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12093
12094Copyright (C) 2008 Free Software Foundation, Inc.
12095This config.status script is free software; the Free Software Foundation
12096gives unlimited permission to copy, distribute and modify it."
12097
12098ac_pwd='$ac_pwd'
12099srcdir='$srcdir'
12100INSTALL='$INSTALL'
12101MKDIR_P='$MKDIR_P'
12102AWK='$AWK'
12103test -n "\$AWK" || AWK=awk
12104_ACEOF
12105
12106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12107# The default lists apply if the user does not specify any file.
12108ac_need_defaults=:
12109while test $# != 0
12110do
12111 case $1 in
12112 --*=*)
12113 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12114 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12115 ac_shift=:
12116 ;;
12117 *)
12118 ac_option=$1
12119 ac_optarg=$2
12120 ac_shift=shift
12121 ;;
12122 esac
12123
12124 case $ac_option in
12125 # Handling of the options.
12126 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12127 ac_cs_recheck=: ;;
12128 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12129 $as_echo "$ac_cs_version"; exit ;;
12130 --debug | --debu | --deb | --de | --d | -d )
12131 debug=: ;;
12132 --file | --fil | --fi | --f )
12133 $ac_shift
12134 case $ac_optarg in
12135 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12136 esac
12137 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12138 ac_need_defaults=false;;
12139 --header | --heade | --head | --hea )
12140 $ac_shift
12141 case $ac_optarg in
12142 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12143 esac
12144 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12145 ac_need_defaults=false;;
12146 --he | --h)
12147 # Conflict between --help and --header
12148 { $as_echo "$as_me: error: ambiguous option: $1
12149Try \`$0 --help' for more information." >&2
12150 { (exit 1); exit 1; }; };;
12151 --help | --hel | -h )
12152 $as_echo "$ac_cs_usage"; exit ;;
12153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12154 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12155 ac_cs_silent=: ;;
12156
12157 # This is an error.
12158 -*) { $as_echo "$as_me: error: unrecognized option: $1
12159Try \`$0 --help' for more information." >&2
12160 { (exit 1); exit 1; }; } ;;
12161
12162 *) ac_config_targets="$ac_config_targets $1"
12163 ac_need_defaults=false ;;
12164
12165 esac
12166 shift
12167done
12168
12169ac_configure_extra_args=
12170
12171if $ac_cs_silent; then
12172 exec 6>/dev/null
12173 ac_configure_extra_args="$ac_configure_extra_args --silent"
12174fi
12175
12176_ACEOF
12177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12178if \$ac_cs_recheck; then
12179 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12180 shift
12181 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12182 CONFIG_SHELL='$SHELL'
12183 export CONFIG_SHELL
12184 exec "\$@"
12185fi
12186
12187_ACEOF
12188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12189exec 5>>config.log
12190{
12191 echo
12192 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12193## Running $as_me. ##
12194_ASBOX
12195 $as_echo "$ac_log"
12196} >&5
12197
12198_ACEOF
12199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12200#
12201# INIT-COMMANDS
12202#
12203AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12204
12205
12206# The HP-UX ksh and POSIX shell print the target directory to stdout
12207# if CDPATH is set.
12208(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12209
12210sed_quote_subst='$sed_quote_subst'
12211double_quote_subst='$double_quote_subst'
12212delay_variable_subst='$delay_variable_subst'
12213macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12214macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12215enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12216enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12217pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12218enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12219host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12220host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12221host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12222build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12223build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12224build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12225SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12226Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12227GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12228EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12229FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12230LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12231NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12232LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12233max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12234ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12235exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12236lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12237lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12238lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12239reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12240reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12241OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12242deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12243file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12244AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12245AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12246STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12247RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12248old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12249old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12250old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12251CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12252CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12253compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12254GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12255lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12256lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12257lt_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"`'
12258lt_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"`'
12259objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12260SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12261ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12262MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12263lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12264lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12265lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12266lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12267lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12268need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12269DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12270NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12271LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12272OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12273OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12274libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12275shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12276extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12277archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12278enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12279export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12280whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12281compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12282old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12283old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12284archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12285archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12286module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12287module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12288with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12289allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12290no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12291hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12292hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12293hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12294hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12295hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12296hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12297hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12298hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12299inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12300link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12301fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12302always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12303export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12304exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12305include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12306prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12307file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12308variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12309need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12310need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12311version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12312runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12313shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12314shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12315libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12316library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12317soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12318postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12319postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12320finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12321finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12322hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12323sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12324sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12325hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12326enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12327enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12328enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12329old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12330striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12331
12332LTCC='$LTCC'
12333LTCFLAGS='$LTCFLAGS'
12334compiler='$compiler_DEFAULT'
12335
12336# Quote evaled strings.
12337for var in SED \
12338GREP \
12339EGREP \
12340FGREP \
12341LD \
12342NM \
12343LN_S \
12344lt_SP2NL \
12345lt_NL2SP \
12346reload_flag \
12347OBJDUMP \
12348deplibs_check_method \
12349file_magic_cmd \
12350AR \
12351AR_FLAGS \
12352STRIP \
12353RANLIB \
12354CC \
12355CFLAGS \
12356compiler \
12357lt_cv_sys_global_symbol_pipe \
12358lt_cv_sys_global_symbol_to_cdecl \
12359lt_cv_sys_global_symbol_to_c_name_address \
12360lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12361SHELL \
12362ECHO \
12363lt_prog_compiler_no_builtin_flag \
12364lt_prog_compiler_wl \
12365lt_prog_compiler_pic \
12366lt_prog_compiler_static \
12367lt_cv_prog_compiler_c_o \
12368need_locks \
12369DSYMUTIL \
12370NMEDIT \
12371LIPO \
12372OTOOL \
12373OTOOL64 \
12374shrext_cmds \
12375export_dynamic_flag_spec \
12376whole_archive_flag_spec \
12377compiler_needs_object \
12378with_gnu_ld \
12379allow_undefined_flag \
12380no_undefined_flag \
12381hardcode_libdir_flag_spec \
12382hardcode_libdir_flag_spec_ld \
12383hardcode_libdir_separator \
12384fix_srcfile_path \
12385exclude_expsyms \
12386include_expsyms \
12387file_list_spec \
12388variables_saved_for_relink \
12389libname_spec \
12390library_names_spec \
12391soname_spec \
12392finish_eval \
12393old_striplib \
12394striplib; do
12395 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12396 *[\\\\\\\`\\"\\\$]*)
12397 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12398 ;;
12399 *)
12400 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12401 ;;
12402 esac
12403done
12404
12405# Double-quote double-evaled strings.
12406for var in reload_cmds \
12407old_postinstall_cmds \
12408old_postuninstall_cmds \
12409old_archive_cmds \
12410extract_expsyms_cmds \
12411old_archive_from_new_cmds \
12412old_archive_from_expsyms_cmds \
12413archive_cmds \
12414archive_expsym_cmds \
12415module_cmds \
12416module_expsym_cmds \
12417export_symbols_cmds \
12418prelink_cmds \
12419postinstall_cmds \
12420postuninstall_cmds \
12421finish_cmds \
12422sys_lib_search_path_spec \
12423sys_lib_dlsearch_path_spec; do
12424 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12425 *[\\\\\\\`\\"\\\$]*)
12426 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12427 ;;
12428 *)
12429 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12430 ;;
12431 esac
12432done
12433
12434# Fix-up fallback echo if it was mangled by the above quoting rules.
12435case \$lt_ECHO in
12436*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12437 ;;
12438esac
12439
12440ac_aux_dir='$ac_aux_dir'
12441xsi_shell='$xsi_shell'
12442lt_shell_append='$lt_shell_append'
12443
12444# See if we are running on zsh, and set the options which allow our
12445# commands through without removal of \ escapes INIT.
12446if test -n "\${ZSH_VERSION+set}" ; then
12447 setopt NO_GLOB_SUBST
12448fi
12449
12450
12451 PACKAGE='$PACKAGE'
12452 VERSION='$VERSION'
12453 TIMESTAMP='$TIMESTAMP'
12454 RM='$RM'
12455 ofile='$ofile'
12456
12457
12458
12459
12460_ACEOF
12461
12462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12463
12464# Handling of arguments.
12465for ac_config_target in $ac_config_targets
12466do
12467 case $ac_config_target in
12468 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12469 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12470 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12471 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12472
12473 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12474$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12475 { (exit 1); exit 1; }; };;
12476 esac
12477done
12478
12479
12480# If the user did not use the arguments to specify the items to instantiate,
12481# then the envvar interface is used. Set only those that are not.
12482# We use the long form for the default assignment because of an extremely
12483# bizarre bug on SunOS 4.1.3.
12484if $ac_need_defaults; then
12485 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12486 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12487 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12488fi
12489
12490# Have a temporary directory for convenience. Make it in the build tree
12491# simply because there is no reason against having it here, and in addition,
12492# creating and moving files from /tmp can sometimes cause problems.
12493# Hook for its removal unless debugging.
12494# Note that there is a small window in which the directory will not be cleaned:
12495# after its creation but before its name has been assigned to `$tmp'.
12496$debug ||
12497{
12498 tmp=
12499 trap 'exit_status=$?
12500 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12501' 0
12502 trap '{ (exit 1); exit 1; }' 1 2 13 15
12503}
12504# Create a (secure) tmp directory for tmp files.
12505
12506{
12507 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12508 test -n "$tmp" && test -d "$tmp"
12509} ||
12510{
12511 tmp=./conf$$-$RANDOM
12512 (umask 077 && mkdir "$tmp")
12513} ||
12514{
12515 $as_echo "$as_me: cannot create a temporary directory in ." >&2
12516 { (exit 1); exit 1; }
12517}
12518
12519# Set up the scripts for CONFIG_FILES section.
12520# No need to generate them if there are no CONFIG_FILES.
12521# This happens for instance with `./config.status config.h'.
12522if test -n "$CONFIG_FILES"; then
12523
12524
12525ac_cr=' '
12526ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12527if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12528 ac_cs_awk_cr='\\r'
12529else
12530 ac_cs_awk_cr=$ac_cr
12531fi
12532
12533echo 'BEGIN {' >"$tmp/subs1.awk" &&
12534_ACEOF
12535
12536
12537{
12538 echo "cat >conf$$subs.awk <<_ACEOF" &&
12539 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12540 echo "_ACEOF"
12541} >conf$$subs.sh ||
12542 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12543$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12544 { (exit 1); exit 1; }; }
12545ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12546ac_delim='%!_!# '
12547for ac_last_try in false false false false false :; do
12548 . ./conf$$subs.sh ||
12549 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12550$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12551 { (exit 1); exit 1; }; }
12552
12553 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12554 if test $ac_delim_n = $ac_delim_num; then
12555 break
12556 elif $ac_last_try; then
12557 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12558$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12559 { (exit 1); exit 1; }; }
12560 else
12561 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12562 fi
12563done
12564rm -f conf$$subs.sh
12565
12566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12567cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12568_ACEOF
12569sed -n '
12570h
12571s/^/S["/; s/!.*/"]=/
12572p
12573g
12574s/^[^!]*!//
12575:repl
12576t repl
12577s/'"$ac_delim"'$//
12578t delim
12579:nl
12580h
12581s/\(.\{148\}\).*/\1/
12582t more1
12583s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12584p
12585n
12586b repl
12587:more1
12588s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12589p
12590g
12591s/.\{148\}//
12592t nl
12593:delim
12594h
12595s/\(.\{148\}\).*/\1/
12596t more2
12597s/["\\]/\\&/g; s/^/"/; s/$/"/
12598p
12599b
12600:more2
12601s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12602p
12603g
12604s/.\{148\}//
12605t delim
12606' <conf$$subs.awk | sed '
12607/^[^""]/{
12608 N
12609 s/\n//
12610}
12611' >>$CONFIG_STATUS || ac_write_fail=1
12612rm -f conf$$subs.awk
12613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12614_ACAWK
12615cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12616 for (key in S) S_is_set[key] = 1
12617 FS = ""
12618
12619}
12620{
12621 line = $ 0
12622 nfields = split(line, field, "@")
12623 substed = 0
12624 len = length(field[1])
12625 for (i = 2; i < nfields; i++) {
12626 key = field[i]
12627 keylen = length(key)
12628 if (S_is_set[key]) {
12629 value = S[key]
12630 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12631 len += length(value) + length(field[++i])
12632 substed = 1
12633 } else
12634 len += 1 + keylen
12635 }
12636
12637 print line
12638}
12639
12640_ACAWK
12641_ACEOF
12642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12643if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12644 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12645else
12646 cat
12647fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12648 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12649$as_echo "$as_me: error: could not setup config files machinery" >&2;}
12650 { (exit 1); exit 1; }; }
12651_ACEOF
12652
12653# VPATH may cause trouble with some makes, so we remove $(srcdir),
12654# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12655# trailing colons and then remove the whole line if VPATH becomes empty
12656# (actually we leave an empty line to preserve line numbers).
12657if test "x$srcdir" = x.; then
12658 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12659s/:*\$(srcdir):*/:/
12660s/:*\${srcdir}:*/:/
12661s/:*@srcdir@:*/:/
12662s/^\([^=]*=[ ]*\):*/\1/
12663s/:*$//
12664s/^[^=]*=[ ]*$//
12665}'
12666fi
12667
12668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12669fi # test -n "$CONFIG_FILES"
12670
12671# Set up the scripts for CONFIG_HEADERS section.
12672# No need to generate them if there are no CONFIG_HEADERS.
12673# This happens for instance with `./config.status Makefile'.
12674if test -n "$CONFIG_HEADERS"; then
12675cat >"$tmp/defines.awk" <<\_ACAWK ||
12676BEGIN {
12677_ACEOF
12678
12679# Transform confdefs.h into an awk script `defines.awk', embedded as
12680# here-document in config.status, that substitutes the proper values into
12681# config.h.in to produce config.h.
12682
12683# Create a delimiter string that does not exist in confdefs.h, to ease
12684# handling of long lines.
12685ac_delim='%!_!# '
12686for ac_last_try in false false :; do
12687 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12688 if test -z "$ac_t"; then
12689 break
12690 elif $ac_last_try; then
12691 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12692$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12693 { (exit 1); exit 1; }; }
12694 else
12695 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12696 fi
12697done
12698
12699# For the awk script, D is an array of macro values keyed by name,
12700# likewise P contains macro parameters if any. Preserve backslash
12701# newline sequences.
12702
12703ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12704sed -n '
12705s/.\{148\}/&'"$ac_delim"'/g
12706t rset
12707:rset
12708s/^[ ]*#[ ]*define[ ][ ]*/ /
12709t def
12710d
12711:def
12712s/\\$//
12713t bsnl
12714s/["\\]/\\&/g
12715s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12716D["\1"]=" \3"/p
12717s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12718d
12719:bsnl
12720s/["\\]/\\&/g
12721s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12722D["\1"]=" \3\\\\\\n"\\/p
12723t cont
12724s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12725t cont
12726d
12727:cont
12728n
12729s/.\{148\}/&'"$ac_delim"'/g
12730t clear
12731:clear
12732s/\\$//
12733t bsnlc
12734s/["\\]/\\&/g; s/^/"/; s/$/"/p
12735d
12736:bsnlc
12737s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12738b cont
12739' <confdefs.h | sed '
12740s/'"$ac_delim"'/"\\\
12741"/g' >>$CONFIG_STATUS || ac_write_fail=1
12742
12743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12744 for (key in D) D_is_set[key] = 1
12745 FS = ""
12746}
12747/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12748 line = \$ 0
12749 split(line, arg, " ")
12750 if (arg[1] == "#") {
12751 defundef = arg[2]
12752 mac1 = arg[3]
12753 } else {
12754 defundef = substr(arg[1], 2)
12755 mac1 = arg[2]
12756 }
12757 split(mac1, mac2, "(") #)
12758 macro = mac2[1]
12759 prefix = substr(line, 1, index(line, defundef) - 1)
12760 if (D_is_set[macro]) {
12761 # Preserve the white space surrounding the "#".
12762 print prefix "define", macro P[macro] D[macro]
12763 next
12764 } else {
12765 # Replace #undef with comments. This is necessary, for example,
12766 # in the case of _POSIX_SOURCE, which is predefined and required
12767 # on some systems where configure will not decide to define it.
12768 if (defundef == "undef") {
12769 print "/*", prefix defundef, macro, "*/"
12770 next
12771 }
12772 }
12773}
12774{ print }
12775_ACAWK
12776_ACEOF
12777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12778 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12779$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12780 { (exit 1); exit 1; }; }
12781fi # test -n "$CONFIG_HEADERS"
12782
12783
12784eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12785shift
12786for ac_tag
12787do
12788 case $ac_tag in
12789 :[FHLC]) ac_mode=$ac_tag; continue;;
12790 esac
12791 case $ac_mode$ac_tag in
12792 :[FHL]*:*);;
12793 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
12794$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
12795 { (exit 1); exit 1; }; };;
12796 :[FH]-) ac_tag=-:-;;
12797 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12798 esac
12799 ac_save_IFS=$IFS
12800 IFS=:
12801 set x $ac_tag
12802 IFS=$ac_save_IFS
12803 shift
12804 ac_file=$1
12805 shift
12806
12807 case $ac_mode in
12808 :L) ac_source=$1;;
12809 :[FH])
12810 ac_file_inputs=
12811 for ac_f
12812 do
12813 case $ac_f in
12814 -) ac_f="$tmp/stdin";;
12815 *) # Look for the file first in the build tree, then in the source tree
12816 # (if the path is not absolute). The absolute path cannot be DOS-style,
12817 # because $ac_f cannot contain `:'.
12818 test -f "$ac_f" ||
12819 case $ac_f in
12820 [\\/$]*) false;;
12821 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12822 esac ||
12823 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12824$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12825 { (exit 1); exit 1; }; };;
12826 esac
12827 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12828 ac_file_inputs="$ac_file_inputs '$ac_f'"
12829 done
12830
12831 # Let's still pretend it is `configure' which instantiates (i.e., don't
12832 # use $as_me), people would be surprised to read:
12833 # /* config.h. Generated by config.status. */
12834 configure_input='Generated from '`
12835 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12836 `' by configure.'
12837 if test x"$ac_file" != x-; then
12838 configure_input="$ac_file. $configure_input"
12839 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12840$as_echo "$as_me: creating $ac_file" >&6;}
12841 fi
12842 # Neutralize special characters interpreted by sed in replacement strings.
12843 case $configure_input in #(
12844 *\&* | *\|* | *\\* )
12845 ac_sed_conf_input=`$as_echo "$configure_input" |
12846 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12847 *) ac_sed_conf_input=$configure_input;;
12848 esac
12849
12850 case $ac_tag in
12851 *:-:* | *:-) cat >"$tmp/stdin" \
12852 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12853$as_echo "$as_me: error: could not create $ac_file" >&2;}
12854 { (exit 1); exit 1; }; } ;;
12855 esac
12856 ;;
12857 esac
12858
12859 ac_dir=`$as_dirname -- "$ac_file" ||
12860$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12861 X"$ac_file" : 'X\(//\)[^/]' \| \
12862 X"$ac_file" : 'X\(//\)$' \| \
12863 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12864$as_echo X"$ac_file" |
12865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12866 s//\1/
12867 q
12868 }
12869 /^X\(\/\/\)[^/].*/{
12870 s//\1/
12871 q
12872 }
12873 /^X\(\/\/\)$/{
12874 s//\1/
12875 q
12876 }
12877 /^X\(\/\).*/{
12878 s//\1/
12879 q
12880 }
12881 s/.*/./; q'`
12882 { as_dir="$ac_dir"
12883 case $as_dir in #(
12884 -*) as_dir=./$as_dir;;
12885 esac
12886 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12887 as_dirs=
12888 while :; do
12889 case $as_dir in #(
12890 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12891 *) as_qdir=$as_dir;;
12892 esac
12893 as_dirs="'$as_qdir' $as_dirs"
12894 as_dir=`$as_dirname -- "$as_dir" ||
12895$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12896 X"$as_dir" : 'X\(//\)[^/]' \| \
12897 X"$as_dir" : 'X\(//\)$' \| \
12898 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12899$as_echo X"$as_dir" |
12900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12901 s//\1/
12902 q
12903 }
12904 /^X\(\/\/\)[^/].*/{
12905 s//\1/
12906 q
12907 }
12908 /^X\(\/\/\)$/{
12909 s//\1/
12910 q
12911 }
12912 /^X\(\/\).*/{
12913 s//\1/
12914 q
12915 }
12916 s/.*/./; q'`
12917 test -d "$as_dir" && break
12918 done
12919 test -z "$as_dirs" || eval "mkdir $as_dirs"
12920 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12921$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12922 { (exit 1); exit 1; }; }; }
12923 ac_builddir=.
12924
12925case "$ac_dir" in
12926.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12927*)
12928 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12929 # A ".." for each directory in $ac_dir_suffix.
12930 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12931 case $ac_top_builddir_sub in
12932 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12933 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12934 esac ;;
12935esac
12936ac_abs_top_builddir=$ac_pwd
12937ac_abs_builddir=$ac_pwd$ac_dir_suffix
12938# for backward compatibility:
12939ac_top_builddir=$ac_top_build_prefix
12940
12941case $srcdir in
12942 .) # We are building in place.
12943 ac_srcdir=.
12944 ac_top_srcdir=$ac_top_builddir_sub
12945 ac_abs_top_srcdir=$ac_pwd ;;
12946 [\\/]* | ?:[\\/]* ) # Absolute name.
12947 ac_srcdir=$srcdir$ac_dir_suffix;
12948 ac_top_srcdir=$srcdir
12949 ac_abs_top_srcdir=$srcdir ;;
12950 *) # Relative name.
12951 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12952 ac_top_srcdir=$ac_top_build_prefix$srcdir
12953 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12954esac
12955ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12956
12957
12958 case $ac_mode in
12959 :F)
12960 #
12961 # CONFIG_FILE
12962 #
12963
12964 case $INSTALL in
12965 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12966 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12967 esac
12968 ac_MKDIR_P=$MKDIR_P
12969 case $MKDIR_P in
12970 [\\/$]* | ?:[\\/]* ) ;;
12971 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12972 esac
12973_ACEOF
12974
12975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12976# If the template does not know about datarootdir, expand it.
12977# FIXME: This hack should be removed a few years after 2.60.
12978ac_datarootdir_hack=; ac_datarootdir_seen=
12979
12980ac_sed_dataroot='
12981/datarootdir/ {
12982 p
12983 q
12984}
12985/@datadir@/p
12986/@docdir@/p
12987/@infodir@/p
12988/@localedir@/p
12989/@mandir@/p
12990'
12991case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12992*datarootdir*) ac_datarootdir_seen=yes;;
12993*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12994 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12995$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12996_ACEOF
12997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12998 ac_datarootdir_hack='
12999 s&@datadir@&$datadir&g
13000 s&@docdir@&$docdir&g
13001 s&@infodir@&$infodir&g
13002 s&@localedir@&$localedir&g
13003 s&@mandir@&$mandir&g
13004 s&\\\${datarootdir}&$datarootdir&g' ;;
13005esac
13006_ACEOF
13007
13008# Neutralize VPATH when `$srcdir' = `.'.
13009# Shell code in configure.ac might set extrasub.
13010# FIXME: do we really want to maintain this feature?
13011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13012ac_sed_extra="$ac_vpsub
13013$extrasub
13014_ACEOF
13015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13016:t
13017/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13018s|@configure_input@|$ac_sed_conf_input|;t t
13019s&@top_builddir@&$ac_top_builddir_sub&;t t
13020s&@top_build_prefix@&$ac_top_build_prefix&;t t
13021s&@srcdir@&$ac_srcdir&;t t
13022s&@abs_srcdir@&$ac_abs_srcdir&;t t
13023s&@top_srcdir@&$ac_top_srcdir&;t t
13024s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13025s&@builddir@&$ac_builddir&;t t
13026s&@abs_builddir@&$ac_abs_builddir&;t t
13027s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13028s&@INSTALL@&$ac_INSTALL&;t t
13029s&@MKDIR_P@&$ac_MKDIR_P&;t t
13030$ac_datarootdir_hack
13031"
13032eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13033 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13034$as_echo "$as_me: error: could not create $ac_file" >&2;}
13035 { (exit 1); exit 1; }; }
13036
13037test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13038 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13039 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13040 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13041which seems to be undefined. Please make sure it is defined." >&5
13042$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13043which seems to be undefined. Please make sure it is defined." >&2;}
13044
13045 rm -f "$tmp/stdin"
13046 case $ac_file in
13047 -) cat "$tmp/out" && rm -f "$tmp/out";;
13048 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13049 esac \
13050 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13051$as_echo "$as_me: error: could not create $ac_file" >&2;}
13052 { (exit 1); exit 1; }; }
13053 ;;
13054 :H)
13055 #
13056 # CONFIG_HEADER
13057 #
13058 if test x"$ac_file" != x-; then
13059 {
13060 $as_echo "/* $configure_input */" \
13061 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13062 } >"$tmp/config.h" \
13063 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13064$as_echo "$as_me: error: could not create $ac_file" >&2;}
13065 { (exit 1); exit 1; }; }
13066 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13067 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13068$as_echo "$as_me: $ac_file is unchanged" >&6;}
13069 else
13070 rm -f "$ac_file"
13071 mv "$tmp/config.h" "$ac_file" \
13072 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13073$as_echo "$as_me: error: could not create $ac_file" >&2;}
13074 { (exit 1); exit 1; }; }
13075 fi
13076 else
13077 $as_echo "/* $configure_input */" \
13078 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13079 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13080$as_echo "$as_me: error: could not create -" >&2;}
13081 { (exit 1); exit 1; }; }
13082 fi
13083# Compute "$ac_file"'s index in $config_headers.
13084_am_arg="$ac_file"
13085_am_stamp_count=1
13086for _am_header in $config_headers :; do
13087 case $_am_header in
13088 $_am_arg | $_am_arg:* )
13089 break ;;
13090 * )
13091 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13092 esac
13093done
13094echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13095$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13096 X"$_am_arg" : 'X\(//\)[^/]' \| \
13097 X"$_am_arg" : 'X\(//\)$' \| \
13098 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13099$as_echo X"$_am_arg" |
13100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13101 s//\1/
13102 q
13103 }
13104 /^X\(\/\/\)[^/].*/{
13105 s//\1/
13106 q
13107 }
13108 /^X\(\/\/\)$/{
13109 s//\1/
13110 q
13111 }
13112 /^X\(\/\).*/{
13113 s//\1/
13114 q
13115 }
13116 s/.*/./; q'`/stamp-h$_am_stamp_count
13117 ;;
13118
13119 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13120$as_echo "$as_me: executing $ac_file commands" >&6;}
13121 ;;
13122 esac
13123
13124
13125 case $ac_file$ac_mode in
13126 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
13127# are listed without --file. Let's play safe and only enable the eval
13128# if we detect the quoting.
13129case $CONFIG_FILES in
13130*\'*) eval set x "$CONFIG_FILES" ;;
13131*) set x $CONFIG_FILES ;;
13132esac
13133shift
13134for mf
13135do
13136 # Strip MF so we end up with the name of the file.
13137 mf=`echo "$mf" | sed -e 's/:.*$//'`
13138 # Check whether this is an Automake generated Makefile or not.
13139 # We used to match only the files named `Makefile.in', but
13140 # some people rename them; so instead we look at the file content.
13141 # Grep'ing the first line is not enough: some people post-process
13142 # each Makefile.in and add a new line on top of each file to say so.
13143 # Grep'ing the whole file is not good either: AIX grep has a line
13144 # limit of 2048, but all sed's we know have understand at least 4000.
13145 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13146 dirpart=`$as_dirname -- "$mf" ||
13147$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13148 X"$mf" : 'X\(//\)[^/]' \| \
13149 X"$mf" : 'X\(//\)$' \| \
13150 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13151$as_echo X"$mf" |
13152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13153 s//\1/
13154 q
13155 }
13156 /^X\(\/\/\)[^/].*/{
13157 s//\1/
13158 q
13159 }
13160 /^X\(\/\/\)$/{
13161 s//\1/
13162 q
13163 }
13164 /^X\(\/\).*/{
13165 s//\1/
13166 q
13167 }
13168 s/.*/./; q'`
13169 else
13170 continue
13171 fi
13172 # Extract the definition of DEPDIR, am__include, and am__quote
13173 # from the Makefile without running `make'.
13174 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13175 test -z "$DEPDIR" && continue
13176 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13177 test -z "am__include" && continue
13178 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13179 # When using ansi2knr, U may be empty or an underscore; expand it
13180 U=`sed -n 's/^U = //p' < "$mf"`
13181 # Find all dependency output files, they are included files with
13182 # $(DEPDIR) in their names. We invoke sed twice because it is the
13183 # simplest approach to changing $(DEPDIR) to its actual value in the
13184 # expansion.
13185 for file in `sed -n "
13186 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13187 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13188 # Make sure the directory exists.
13189 test -f "$dirpart/$file" && continue
13190 fdir=`$as_dirname -- "$file" ||
13191$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13192 X"$file" : 'X\(//\)[^/]' \| \
13193 X"$file" : 'X\(//\)$' \| \
13194 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13195$as_echo X"$file" |
13196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13197 s//\1/
13198 q
13199 }
13200 /^X\(\/\/\)[^/].*/{
13201 s//\1/
13202 q
13203 }
13204 /^X\(\/\/\)$/{
13205 s//\1/
13206 q
13207 }
13208 /^X\(\/\).*/{
13209 s//\1/
13210 q
13211 }
13212 s/.*/./; q'`
13213 { as_dir=$dirpart/$fdir
13214 case $as_dir in #(
13215 -*) as_dir=./$as_dir;;
13216 esac
13217 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13218 as_dirs=
13219 while :; do
13220 case $as_dir in #(
13221 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13222 *) as_qdir=$as_dir;;
13223 esac
13224 as_dirs="'$as_qdir' $as_dirs"
13225 as_dir=`$as_dirname -- "$as_dir" ||
13226$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13227 X"$as_dir" : 'X\(//\)[^/]' \| \
13228 X"$as_dir" : 'X\(//\)$' \| \
13229 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13230$as_echo X"$as_dir" |
13231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13232 s//\1/
13233 q
13234 }
13235 /^X\(\/\/\)[^/].*/{
13236 s//\1/
13237 q
13238 }
13239 /^X\(\/\/\)$/{
13240 s//\1/
13241 q
13242 }
13243 /^X\(\/\).*/{
13244 s//\1/
13245 q
13246 }
13247 s/.*/./; q'`
13248 test -d "$as_dir" && break
13249 done
13250 test -z "$as_dirs" || eval "mkdir $as_dirs"
13251 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13252$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13253 { (exit 1); exit 1; }; }; }
13254 # echo "creating $dirpart/$file"
13255 echo '# dummy' > "$dirpart/$file"
13256 done
13257done
13258 ;;
13259 "libtool":C)
13260
13261 # See if we are running on zsh, and set the options which allow our
13262 # commands through without removal of \ escapes.
13263 if test -n "${ZSH_VERSION+set}" ; then
13264 setopt NO_GLOB_SUBST
13265 fi
13266
13267 cfgfile="${ofile}T"
13268 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13269 $RM "$cfgfile"
13270
13271 cat <<_LT_EOF >> "$cfgfile"
13272#! $SHELL
13273
13274# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13275# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13276# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13277# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13278#
13279# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13280# 2006, 2007, 2008 Free Software Foundation, Inc.
13281# Written by Gordon Matzigkeit, 1996
13282#
13283# This file is part of GNU Libtool.
13284#
13285# GNU Libtool is free software; you can redistribute it and/or
13286# modify it under the terms of the GNU General Public License as
13287# published by the Free Software Foundation; either version 2 of
13288# the License, or (at your option) any later version.
13289#
13290# As a special exception to the GNU General Public License,
13291# if you distribute this file as part of a program or library that
13292# is built using GNU Libtool, you may include this file under the
13293# same distribution terms that you use for the rest of that program.
13294#
13295# GNU Libtool is distributed in the hope that it will be useful,
13296# but WITHOUT ANY WARRANTY; without even the implied warranty of
13297# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13298# GNU General Public License for more details.
13299#
13300# You should have received a copy of the GNU General Public License
13301# along with GNU Libtool; see the file COPYING. If not, a copy
13302# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13303# obtained by writing to the Free Software Foundation, Inc.,
13304# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13305
13306
13307# The names of the tagged configurations supported by this script.
13308available_tags=""
13309
13310# ### BEGIN LIBTOOL CONFIG
13311
13312# Which release of libtool.m4 was used?
13313macro_version=$macro_version
13314macro_revision=$macro_revision
13315
13316# Whether or not to build shared libraries.
13317build_libtool_libs=$enable_shared
13318
13319# Whether or not to build static libraries.
13320build_old_libs=$enable_static
13321
13322# What type of objects to build.
13323pic_mode=$pic_mode
13324
13325# Whether or not to optimize for fast installation.
13326fast_install=$enable_fast_install
13327
13328# The host system.
13329host_alias=$host_alias
13330host=$host
13331host_os=$host_os
13332
13333# The build system.
13334build_alias=$build_alias
13335build=$build
13336build_os=$build_os
13337
13338# A sed program that does not truncate output.
13339SED=$lt_SED
13340
13341# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13342Xsed="\$SED -e 1s/^X//"
13343
13344# A grep program that handles long lines.
13345GREP=$lt_GREP
13346
13347# An ERE matcher.
13348EGREP=$lt_EGREP
13349
13350# A literal string matcher.
13351FGREP=$lt_FGREP
13352
13353# A BSD- or MS-compatible name lister.
13354NM=$lt_NM
13355
13356# Whether we need soft or hard links.
13357LN_S=$lt_LN_S
13358
13359# What is the maximum length of a command?
13360max_cmd_len=$max_cmd_len
13361
13362# Object file suffix (normally "o").
13363objext=$ac_objext
13364
13365# Executable file suffix (normally "").
13366exeext=$exeext
13367
13368# whether the shell understands "unset".
13369lt_unset=$lt_unset
13370
13371# turn spaces into newlines.
13372SP2NL=$lt_lt_SP2NL
13373
13374# turn newlines into spaces.
13375NL2SP=$lt_lt_NL2SP
13376
13377# How to create reloadable object files.
13378reload_flag=$lt_reload_flag
13379reload_cmds=$lt_reload_cmds
13380
13381# An object symbol dumper.
13382OBJDUMP=$lt_OBJDUMP
13383
13384# Method to check whether dependent libraries are shared objects.
13385deplibs_check_method=$lt_deplibs_check_method
13386
13387# Command to use when deplibs_check_method == "file_magic".
13388file_magic_cmd=$lt_file_magic_cmd
13389
13390# The archiver.
13391AR=$lt_AR
13392AR_FLAGS=$lt_AR_FLAGS
13393
13394# A symbol stripping program.
13395STRIP=$lt_STRIP
13396
13397# Commands used to install an old-style archive.
13398RANLIB=$lt_RANLIB
13399old_postinstall_cmds=$lt_old_postinstall_cmds
13400old_postuninstall_cmds=$lt_old_postuninstall_cmds
13401
13402# A C compiler.
13403LTCC=$lt_CC
13404
13405# LTCC compiler flags.
13406LTCFLAGS=$lt_CFLAGS
13407
13408# Take the output of nm and produce a listing of raw symbols and C names.
13409global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13410
13411# Transform the output of nm in a proper C declaration.
13412global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13413
13414# Transform the output of nm in a C name address pair.
13415global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13416
13417# Transform the output of nm in a C name address pair when lib prefix is needed.
13418global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13419
13420# The name of the directory that contains temporary libtool files.
13421objdir=$objdir
13422
13423# Shell to use when invoking shell scripts.
13424SHELL=$lt_SHELL
13425
13426# An echo program that does not interpret backslashes.
13427ECHO=$lt_ECHO
13428
13429# Used to examine libraries when file_magic_cmd begins with "file".
13430MAGIC_CMD=$MAGIC_CMD
13431
13432# Must we lock files when doing compilation?
13433need_locks=$lt_need_locks
13434
13435# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13436DSYMUTIL=$lt_DSYMUTIL
13437
13438# Tool to change global to local symbols on Mac OS X.
13439NMEDIT=$lt_NMEDIT
13440
13441# Tool to manipulate fat objects and archives on Mac OS X.
13442LIPO=$lt_LIPO
13443
13444# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13445OTOOL=$lt_OTOOL
13446
13447# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13448OTOOL64=$lt_OTOOL64
13449
13450# Old archive suffix (normally "a").
13451libext=$libext
13452
13453# Shared library suffix (normally ".so").
13454shrext_cmds=$lt_shrext_cmds
13455
13456# The commands to extract the exported symbol list from a shared archive.
13457extract_expsyms_cmds=$lt_extract_expsyms_cmds
13458
13459# Variables whose values should be saved in libtool wrapper scripts and
13460# restored at link time.
13461variables_saved_for_relink=$lt_variables_saved_for_relink
13462
13463# Do we need the "lib" prefix for modules?
13464need_lib_prefix=$need_lib_prefix
13465
13466# Do we need a version for libraries?
13467need_version=$need_version
13468
13469# Library versioning type.
13470version_type=$version_type
13471
13472# Shared library runtime path variable.
13473runpath_var=$runpath_var
13474
13475# Shared library path variable.
13476shlibpath_var=$shlibpath_var
13477
13478# Is shlibpath searched before the hard-coded library search path?
13479shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13480
13481# Format of library name prefix.
13482libname_spec=$lt_libname_spec
13483
13484# List of archive names. First name is the real one, the rest are links.
13485# The last name is the one that the linker finds with -lNAME
13486library_names_spec=$lt_library_names_spec
13487
13488# The coded name of the library, if different from the real name.
13489soname_spec=$lt_soname_spec
13490
13491# Command to use after installation of a shared archive.
13492postinstall_cmds=$lt_postinstall_cmds
13493
13494# Command to use after uninstallation of a shared archive.
13495postuninstall_cmds=$lt_postuninstall_cmds
13496
13497# Commands used to finish a libtool library installation in a directory.
13498finish_cmds=$lt_finish_cmds
13499
13500# As "finish_cmds", except a single script fragment to be evaled but
13501# not shown.
13502finish_eval=$lt_finish_eval
13503
13504# Whether we should hardcode library paths into libraries.
13505hardcode_into_libs=$hardcode_into_libs
13506
13507# Compile-time system search path for libraries.
13508sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13509
13510# Run-time system search path for libraries.
13511sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13512
13513# Whether dlopen is supported.
13514dlopen_support=$enable_dlopen
13515
13516# Whether dlopen of programs is supported.
13517dlopen_self=$enable_dlopen_self
13518
13519# Whether dlopen of statically linked programs is supported.
13520dlopen_self_static=$enable_dlopen_self_static
13521
13522# Commands to strip libraries.
13523old_striplib=$lt_old_striplib
13524striplib=$lt_striplib
13525
13526
13527# The linker used to build libraries.
13528LD=$lt_LD
13529
13530# Commands used to build an old-style archive.
13531old_archive_cmds=$lt_old_archive_cmds
13532
13533# A language specific compiler.
13534CC=$lt_compiler
13535
13536# Is the compiler the GNU compiler?
13537with_gcc=$GCC
13538
13539# Compiler flag to turn off builtin functions.
13540no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13541
13542# How to pass a linker flag through the compiler.
13543wl=$lt_lt_prog_compiler_wl
13544
13545# Additional compiler flags for building library objects.
13546pic_flag=$lt_lt_prog_compiler_pic
13547
13548# Compiler flag to prevent dynamic linking.
13549link_static_flag=$lt_lt_prog_compiler_static
13550
13551# Does compiler simultaneously support -c and -o options?
13552compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13553
13554# Whether or not to add -lc for building shared libraries.
13555build_libtool_need_lc=$archive_cmds_need_lc
13556
13557# Whether or not to disallow shared libs when runtime libs are static.
13558allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13559
13560# Compiler flag to allow reflexive dlopens.
13561export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13562
13563# Compiler flag to generate shared objects directly from archives.
13564whole_archive_flag_spec=$lt_whole_archive_flag_spec
13565
13566# Whether the compiler copes with passing no objects directly.
13567compiler_needs_object=$lt_compiler_needs_object
13568
13569# Create an old-style archive from a shared archive.
13570old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13571
13572# Create a temporary old-style archive to link instead of a shared archive.
13573old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13574
13575# Commands used to build a shared archive.
13576archive_cmds=$lt_archive_cmds
13577archive_expsym_cmds=$lt_archive_expsym_cmds
13578
13579# Commands used to build a loadable module if different from building
13580# a shared archive.
13581module_cmds=$lt_module_cmds
13582module_expsym_cmds=$lt_module_expsym_cmds
13583
13584# Whether we are building with GNU ld or not.
13585with_gnu_ld=$lt_with_gnu_ld
13586
13587# Flag that allows shared libraries with undefined symbols to be built.
13588allow_undefined_flag=$lt_allow_undefined_flag
13589
13590# Flag that enforces no undefined symbols.
13591no_undefined_flag=$lt_no_undefined_flag
13592
13593# Flag to hardcode \$libdir into a binary during linking.
13594# This must work even if \$libdir does not exist
13595hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13596
13597# If ld is used when linking, flag to hardcode \$libdir into a binary
13598# during linking. This must work even if \$libdir does not exist.
13599hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13600
13601# Whether we need a single "-rpath" flag with a separated argument.
13602hardcode_libdir_separator=$lt_hardcode_libdir_separator
13603
13604# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13605# DIR into the resulting binary.
13606hardcode_direct=$hardcode_direct
13607
13608# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13609# DIR into the resulting binary and the resulting library dependency is
13610# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13611# library is relocated.
13612hardcode_direct_absolute=$hardcode_direct_absolute
13613
13614# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13615# into the resulting binary.
13616hardcode_minus_L=$hardcode_minus_L
13617
13618# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13619# into the resulting binary.
13620hardcode_shlibpath_var=$hardcode_shlibpath_var
13621
13622# Set to "yes" if building a shared library automatically hardcodes DIR
13623# into the library and all subsequent libraries and executables linked
13624# against it.
13625hardcode_automatic=$hardcode_automatic
13626
13627# Set to yes if linker adds runtime paths of dependent libraries
13628# to runtime path list.
13629inherit_rpath=$inherit_rpath
13630
13631# Whether libtool must link a program against all its dependency libraries.
13632link_all_deplibs=$link_all_deplibs
13633
13634# Fix the shell variable \$srcfile for the compiler.
13635fix_srcfile_path=$lt_fix_srcfile_path
13636
13637# Set to "yes" if exported symbols are required.
13638always_export_symbols=$always_export_symbols
13639
13640# The commands to list exported symbols.
13641export_symbols_cmds=$lt_export_symbols_cmds
13642
13643# Symbols that should not be listed in the preloaded symbols.
13644exclude_expsyms=$lt_exclude_expsyms
13645
13646# Symbols that must always be exported.
13647include_expsyms=$lt_include_expsyms
13648
13649# Commands necessary for linking programs (against libraries) with templates.
13650prelink_cmds=$lt_prelink_cmds
13651
13652# Specify filename containing input files.
13653file_list_spec=$lt_file_list_spec
13654
13655# How to hardcode a shared library path into an executable.
13656hardcode_action=$hardcode_action
13657
13658# ### END LIBTOOL CONFIG
13659
13660_LT_EOF
13661
13662 case $host_os in
13663 aix3*)
13664 cat <<\_LT_EOF >> "$cfgfile"
13665# AIX sometimes has problems with the GCC collect2 program. For some
13666# reason, if we set the COLLECT_NAMES environment variable, the problems
13667# vanish in a puff of smoke.
13668if test "X${COLLECT_NAMES+set}" != Xset; then
13669 COLLECT_NAMES=
13670 export COLLECT_NAMES
13671fi
13672_LT_EOF
13673 ;;
13674 esac
13675
13676
13677ltmain="$ac_aux_dir/ltmain.sh"
13678
13679
13680 # We use sed instead of cat because bash on DJGPP gets confused if
13681 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13682 # text mode, it properly converts lines to CR/LF. This bash problem
13683 # is reportedly fixed, but why not run on old versions too?
13684 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13685 || (rm -f "$cfgfile"; exit 1)
13686
13687 case $xsi_shell in
13688 yes)
13689 cat << \_LT_EOF >> "$cfgfile"
13690
13691# func_dirname file append nondir_replacement
13692# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13693# otherwise set result to NONDIR_REPLACEMENT.
13694func_dirname ()
13695{
13696 case ${1} in
13697 */*) func_dirname_result="${1%/*}${2}" ;;
13698 * ) func_dirname_result="${3}" ;;
13699 esac
13700}
13701
13702# func_basename file
13703func_basename ()
13704{
13705 func_basename_result="${1##*/}"
13706}
13707
13708# func_dirname_and_basename file append nondir_replacement
13709# perform func_basename and func_dirname in a single function
13710# call:
13711# dirname: Compute the dirname of FILE. If nonempty,
13712# add APPEND to the result, otherwise set result
13713# to NONDIR_REPLACEMENT.
13714# value returned in "$func_dirname_result"
13715# basename: Compute filename of FILE.
13716# value retuned in "$func_basename_result"
13717# Implementation must be kept synchronized with func_dirname
13718# and func_basename. For efficiency, we do not delegate to
13719# those functions but instead duplicate the functionality here.
13720func_dirname_and_basename ()
13721{
13722 case ${1} in
13723 */*) func_dirname_result="${1%/*}${2}" ;;
13724 * ) func_dirname_result="${3}" ;;
13725 esac
13726 func_basename_result="${1##*/}"
13727}
13728
13729# func_stripname prefix suffix name
13730# strip PREFIX and SUFFIX off of NAME.
13731# PREFIX and SUFFIX must not contain globbing or regex special
13732# characters, hashes, percent signs, but SUFFIX may contain a leading
13733# dot (in which case that matches only a dot).
13734func_stripname ()
13735{
13736 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13737 # positional parameters, so assign one to ordinary parameter first.
13738 func_stripname_result=${3}
13739 func_stripname_result=${func_stripname_result#"${1}"}
13740 func_stripname_result=${func_stripname_result%"${2}"}
13741}
13742
13743# func_opt_split
13744func_opt_split ()
13745{
13746 func_opt_split_opt=${1%%=*}
13747 func_opt_split_arg=${1#*=}
13748}
13749
13750# func_lo2o object
13751func_lo2o ()
13752{
13753 case ${1} in
13754 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13755 *) func_lo2o_result=${1} ;;
13756 esac
13757}
13758
13759# func_xform libobj-or-source
13760func_xform ()
13761{
13762 func_xform_result=${1%.*}.lo
13763}
13764
13765# func_arith arithmetic-term...
13766func_arith ()
13767{
13768 func_arith_result=$(( $* ))
13769}
13770
13771# func_len string
13772# STRING may not start with a hyphen.
13773func_len ()
13774{
13775 func_len_result=${#1}
13776}
13777
13778_LT_EOF
13779 ;;
13780 *) # Bourne compatible functions.
13781 cat << \_LT_EOF >> "$cfgfile"
13782
13783# func_dirname file append nondir_replacement
13784# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13785# otherwise set result to NONDIR_REPLACEMENT.
13786func_dirname ()
13787{
13788 # Extract subdirectory from the argument.
13789 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13790 if test "X$func_dirname_result" = "X${1}"; then
13791 func_dirname_result="${3}"
13792 else
13793 func_dirname_result="$func_dirname_result${2}"
13794 fi
13795}
13796
13797# func_basename file
13798func_basename ()
13799{
13800 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13801}
13802
13803
13804# func_stripname prefix suffix name
13805# strip PREFIX and SUFFIX off of NAME.
13806# PREFIX and SUFFIX must not contain globbing or regex special
13807# characters, hashes, percent signs, but SUFFIX may contain a leading
13808# dot (in which case that matches only a dot).
13809# func_strip_suffix prefix name
13810func_stripname ()
13811{
13812 case ${2} in
13813 .*) func_stripname_result=`$ECHO "X${3}" \
13814 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13815 *) func_stripname_result=`$ECHO "X${3}" \
13816 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13817 esac
13818}
13819
13820# sed scripts:
13821my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13822my_sed_long_arg='1s/^-[^=]*=//'
13823
13824# func_opt_split
13825func_opt_split ()
13826{
13827 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13828 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13829}
13830
13831# func_lo2o object
13832func_lo2o ()
13833{
13834 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13835}
13836
13837# func_xform libobj-or-source
13838func_xform ()
13839{
13840 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13841}
13842
13843# func_arith arithmetic-term...
13844func_arith ()
13845{
13846 func_arith_result=`expr "$@"`
13847}
13848
13849# func_len string
13850# STRING may not start with a hyphen.
13851func_len ()
13852{
13853 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13854}
13855
13856_LT_EOF
13857esac
13858
13859case $lt_shell_append in
13860 yes)
13861 cat << \_LT_EOF >> "$cfgfile"
13862
13863# func_append var value
13864# Append VALUE to the end of shell variable VAR.
13865func_append ()
13866{
13867 eval "$1+=\$2"
13868}
13869_LT_EOF
13870 ;;
13871 *)
13872 cat << \_LT_EOF >> "$cfgfile"
13873
13874# func_append var value
13875# Append VALUE to the end of shell variable VAR.
13876func_append ()
13877{
13878 eval "$1=\$$1\$2"
13879}
13880
13881_LT_EOF
13882 ;;
13883 esac
13884
13885
13886 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13887 || (rm -f "$cfgfile"; exit 1)
13888
13889 mv -f "$cfgfile" "$ofile" ||
13890 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13891 chmod +x "$ofile"
13892
13893 ;;
13894
13895 esac
13896done # for ac_tag
13897
13898
13899{ (exit 0); exit 0; }
13900_ACEOF
13901chmod +x $CONFIG_STATUS
13902ac_clean_files=$ac_clean_files_save
13903
13904test $ac_write_fail = 0 ||
13905 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13906$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13907 { (exit 1); exit 1; }; }
13908
13909
13910# configure is writing to config.log, and then calls config.status.
13911# config.status does its own redirection, appending to config.log.
13912# Unfortunately, on DOS this fails, as config.log is still kept open
13913# by configure, so config.status won't be able to write to it; its
13914# output is simply discarded. So we exec the FD to /dev/null,
13915# effectively closing config.log, so it can be properly (re)opened and
13916# appended to by config.status. When coming back to configure, we
13917# need to make the FD available again.
13918if test "$no_create" != yes; then
13919 ac_cs_success=:
13920 ac_config_status_args=
13921 test "$silent" = yes &&
13922 ac_config_status_args="$ac_config_status_args --quiet"
13923 exec 5>/dev/null
13924 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13925 exec 5>>config.log
13926 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13927 # would make configure fail if this is the last instruction.
13928 $ac_cs_success || { (exit 1); exit 1; }
13929fi
13930if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13931 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13932$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13933fi
13934