]> andersk Git - libyaml.git/blame - configure
Imported Upstream version 0.1.2
[libyaml.git] / configure
CommitLineData
b9668ba4
AK
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
5c706339 3# Generated by GNU Autoconf 2.61 for yaml 0.1.2.
b9668ba4
AK
4#
5# Report bugs to <http://pyyaml.org/newticket?component=libyaml>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121else
122 as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
161fi
162
163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
179
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
187
188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
5c706339 558case X$lt_ECHO in
b9668ba4
AK
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
5c706339 561 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
b9668ba4
AK
562 ;;
563esac
564
5c706339 565ECHO=${lt_ECHO-echo}
b9668ba4
AK
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
5c706339
AK
572elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $ECHO works!
b9668ba4
AK
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
5c706339 583 cat <<_LT_EOF
b9668ba4 584$*
5c706339 585_LT_EOF
b9668ba4
AK
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
5c706339
AK
593if test -z "$lt_ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
599 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
600 then
601 break
602 fi
603 done
604 fi
b9668ba4 605
5c706339
AK
606 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
609 :
610 else
611 # The Solaris, AIX, and Digital Unix default echo programs unquote
612 # backslashes. This makes it impossible to quote backslashes using
613 # echo "$something" | sed 's/\\/\\\\/g'
614 #
615 # So, first we look for a working echo in the user's PATH.
b9668ba4 616
5c706339
AK
617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618 for dir in $PATH /usr/ucb; do
619 IFS="$lt_save_ifs"
620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 ECHO="$dir/echo"
625 break
626 fi
627 done
b9668ba4 628 IFS="$lt_save_ifs"
b9668ba4 629
5c706339
AK
630 if test "X$ECHO" = Xecho; then
631 # We didn't find a better echo, so look for alternatives.
632 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # This shell has a builtin print -r that does the trick.
636 ECHO='print -r'
637 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
638 test "X$CONFIG_SHELL" != X/bin/ksh; then
639 # If we have ksh, try running configure again with it.
640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641 export ORIGINAL_CONFIG_SHELL
642 CONFIG_SHELL=/bin/ksh
643 export CONFIG_SHELL
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
b9668ba4 645 else
5c706339
AK
646 # Try using printf.
647 ECHO='printf %s\n'
648 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
649 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 # Cool, printf works
652 :
653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654 test "X$echo_testing_string" = 'X\t' &&
655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 export CONFIG_SHELL
659 SHELL="$CONFIG_SHELL"
660 export SHELL
661 ECHO="$CONFIG_SHELL $0 --fallback-echo"
662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 ECHO="$CONFIG_SHELL $0 --fallback-echo"
667 else
668 # maybe with a smaller string...
669 prev=:
b9668ba4 670
5c706339
AK
671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
673 then
674 break
675 fi
676 prev="$cmd"
677 done
b9668ba4 678
5c706339
AK
679 if test "$prev" != 'sed 50q "$0"'; then
680 echo_test_string=`eval $prev`
681 export echo_test_string
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 else
684 # Oops. We lost completely, so just stick with echo.
685 ECHO=echo
686 fi
687 fi
b9668ba4
AK
688 fi
689 fi
690 fi
691fi
b9668ba4
AK
692
693# Copy echo and quote the copy suitably for passing to libtool from
694# the Makefile, instead of quoting the original, which is used later.
5c706339
AK
695lt_ECHO=$ECHO
696if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
b9668ba4
AK
698fi
699
700
701
702
b9668ba4
AK
703exec 7<&0 </dev/null 6>&1
704
705# Name of the host.
706# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
707# so uname gets run too.
708ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
709
710#
711# Initializations.
712#
713ac_default_prefix=/usr/local
714ac_clean_files=
715ac_config_libobj_dir=.
716LIBOBJS=
717cross_compiling=no
718subdirs=
719MFLAGS=
720MAKEFLAGS=
721SHELL=${CONFIG_SHELL-/bin/sh}
722
723# Identity of this package.
724PACKAGE_NAME='yaml'
725PACKAGE_TARNAME='yaml'
5c706339
AK
726PACKAGE_VERSION='0.1.2'
727PACKAGE_STRING='yaml 0.1.2'
b9668ba4
AK
728PACKAGE_BUGREPORT='http://pyyaml.org/newticket?component=libyaml'
729
730# Factoring default headers for most tests.
731ac_includes_default="\
732#include <stdio.h>
733#ifdef HAVE_SYS_TYPES_H
734# include <sys/types.h>
735#endif
736#ifdef HAVE_SYS_STAT_H
737# include <sys/stat.h>
738#endif
739#ifdef STDC_HEADERS
740# include <stdlib.h>
741# include <stddef.h>
742#else
743# ifdef HAVE_STDLIB_H
744# include <stdlib.h>
745# endif
746#endif
747#ifdef HAVE_STRING_H
748# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
749# include <memory.h>
750# endif
751# include <string.h>
752#endif
753#ifdef HAVE_STRINGS_H
754# include <strings.h>
755#endif
756#ifdef HAVE_INTTYPES_H
757# include <inttypes.h>
758#endif
759#ifdef HAVE_STDINT_H
760# include <stdint.h>
761#endif
762#ifdef HAVE_UNISTD_H
763# include <unistd.h>
764#endif"
765
766ac_subst_vars='SHELL
767PATH_SEPARATOR
768PACKAGE_NAME
769PACKAGE_TARNAME
770PACKAGE_VERSION
771PACKAGE_STRING
772PACKAGE_BUGREPORT
773exec_prefix
774prefix
775program_transform_name
776bindir
777sbindir
778libexecdir
779datarootdir
780datadir
781sysconfdir
782sharedstatedir
783localstatedir
784includedir
785oldincludedir
786docdir
787infodir
788htmldir
789dvidir
790pdfdir
791psdir
792libdir
793localedir
794mandir
795DEFS
796ECHO_C
797ECHO_N
798ECHO_T
799LIBS
800build_alias
801host_alias
802target_alias
803INSTALL_PROGRAM
804INSTALL_SCRIPT
805INSTALL_DATA
5c706339 806am__isrc
b9668ba4
AK
807CYGPATH_W
808PACKAGE
809VERSION
810ACLOCAL
811AUTOCONF
812AUTOMAKE
813AUTOHEADER
814MAKEINFO
815install_sh
816STRIP
817INSTALL_STRIP_PROGRAM
818mkdir_p
819AWK
820SET_MAKE
821am__leading_dot
822AMTAR
823am__tar
824am__untar
825YAML_LT_RELEASE
826YAML_LT_CURRENT
827YAML_LT_REVISION
828YAML_LT_AGE
829CC
830CFLAGS
831LDFLAGS
832CPPFLAGS
833ac_ct_CC
834EXEEXT
835OBJEXT
836DEPDIR
837am__include
838am__quote
839AMDEP_TRUE
840AMDEP_FALSE
841AMDEPBACKSLASH
842CCDEPMODE
843am__fastdepCC_TRUE
844am__fastdepCC_FALSE
845CPP
846LN_S
5c706339 847LIBTOOL
b9668ba4
AK
848build
849build_cpu
850build_vendor
851build_os
852host
853host_cpu
854host_vendor
855host_os
5c706339 856SED
b9668ba4
AK
857GREP
858EGREP
5c706339
AK
859FGREP
860LD
861DUMPBIN
862ac_ct_DUMPBIN
863NM
b9668ba4
AK
864AR
865RANLIB
5c706339
AK
866lt_ECHO
867DSYMUTIL
868NMEDIT
869LIPO
870OTOOL
871OTOOL64
b9668ba4
AK
872DOXYGEN
873DOXYGEN_TRUE
874DOXYGEN_FALSE
875LIBOBJS
876LTLIBOBJS'
877ac_subst_files=''
878 ac_precious_vars='build_alias
879host_alias
880target_alias
881CC
882CFLAGS
883LDFLAGS
884LIBS
885CPPFLAGS
5c706339 886CPP'
b9668ba4
AK
887
888
889# Initialize some variables set by options.
890ac_init_help=
891ac_init_version=false
892# The variables have the same names as the options, with
893# dashes changed to underlines.
894cache_file=/dev/null
895exec_prefix=NONE
896no_create=
897no_recursion=
898prefix=NONE
899program_prefix=NONE
900program_suffix=NONE
901program_transform_name=s,x,x,
902silent=
903site=
904srcdir=
905verbose=
906x_includes=NONE
907x_libraries=NONE
908
909# Installation directory options.
910# These are left unexpanded so users can "make install exec_prefix=/foo"
911# and all the variables that are supposed to be based on exec_prefix
912# by default will actually change.
913# Use braces instead of parens because sh, perl, etc. also accept them.
914# (The list follows the same order as the GNU Coding Standards.)
915bindir='${exec_prefix}/bin'
916sbindir='${exec_prefix}/sbin'
917libexecdir='${exec_prefix}/libexec'
918datarootdir='${prefix}/share'
919datadir='${datarootdir}'
920sysconfdir='${prefix}/etc'
921sharedstatedir='${prefix}/com'
922localstatedir='${prefix}/var'
923includedir='${prefix}/include'
924oldincludedir='/usr/include'
925docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
926infodir='${datarootdir}/info'
927htmldir='${docdir}'
928dvidir='${docdir}'
929pdfdir='${docdir}'
930psdir='${docdir}'
931libdir='${exec_prefix}/lib'
932localedir='${datarootdir}/locale'
933mandir='${datarootdir}/man'
934
935ac_prev=
936ac_dashdash=
937for ac_option
938do
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\$ac_option
942 ac_prev=
943 continue
944 fi
945
946 case $ac_option in
947 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *) ac_optarg=yes ;;
949 esac
950
951 # Accept the important Cygnus configure options, so we can diagnose typos.
952
953 case $ac_dashdash$ac_option in
954 --)
955 ac_dashdash=yes ;;
956
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 ac_prev=bindir ;;
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960 bindir=$ac_optarg ;;
961
962 -build | --build | --buil | --bui | --bu)
963 ac_prev=build_alias ;;
964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965 build_alias=$ac_optarg ;;
966
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972 cache_file=$ac_optarg ;;
973
974 --config-cache | -C)
975 cache_file=config.cache ;;
976
977 -datadir | --datadir | --datadi | --datad)
978 ac_prev=datadir ;;
979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
980 datadir=$ac_optarg ;;
981
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
988
989 -disable-* | --disable-*)
990 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
993 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
994 { (exit 1); exit 1; }; }
995 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
996 eval enable_$ac_feature=no ;;
997
998 -docdir | --docdir | --docdi | --doc | --do)
999 ac_prev=docdir ;;
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1002
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004 ac_prev=dvidir ;;
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
1007
1008 -enable-* | --enable-*)
1009 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1012 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1013 { (exit 1); exit 1; }; }
1014 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1015 eval enable_$ac_feature=\$ac_optarg ;;
1016
1017 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1018 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1019 | --exec | --exe | --ex)
1020 ac_prev=exec_prefix ;;
1021 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1022 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1023 | --exec=* | --exe=* | --ex=*)
1024 exec_prefix=$ac_optarg ;;
1025
1026 -gas | --gas | --ga | --g)
1027 # Obsolete; use --with-gas.
1028 with_gas=yes ;;
1029
1030 -help | --help | --hel | --he | -h)
1031 ac_init_help=long ;;
1032 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1033 ac_init_help=recursive ;;
1034 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1035 ac_init_help=short ;;
1036
1037 -host | --host | --hos | --ho)
1038 ac_prev=host_alias ;;
1039 -host=* | --host=* | --hos=* | --ho=*)
1040 host_alias=$ac_optarg ;;
1041
1042 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1043 ac_prev=htmldir ;;
1044 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1045 | --ht=*)
1046 htmldir=$ac_optarg ;;
1047
1048 -includedir | --includedir | --includedi | --included | --include \
1049 | --includ | --inclu | --incl | --inc)
1050 ac_prev=includedir ;;
1051 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1052 | --includ=* | --inclu=* | --incl=* | --inc=*)
1053 includedir=$ac_optarg ;;
1054
1055 -infodir | --infodir | --infodi | --infod | --info | --inf)
1056 ac_prev=infodir ;;
1057 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1058 infodir=$ac_optarg ;;
1059
1060 -libdir | --libdir | --libdi | --libd)
1061 ac_prev=libdir ;;
1062 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1063 libdir=$ac_optarg ;;
1064
1065 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1066 | --libexe | --libex | --libe)
1067 ac_prev=libexecdir ;;
1068 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1069 | --libexe=* | --libex=* | --libe=*)
1070 libexecdir=$ac_optarg ;;
1071
1072 -localedir | --localedir | --localedi | --localed | --locale)
1073 ac_prev=localedir ;;
1074 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1075 localedir=$ac_optarg ;;
1076
1077 -localstatedir | --localstatedir | --localstatedi | --localstated \
1078 | --localstate | --localstat | --localsta | --localst | --locals)
1079 ac_prev=localstatedir ;;
1080 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1081 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1082 localstatedir=$ac_optarg ;;
1083
1084 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1085 ac_prev=mandir ;;
1086 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1087 mandir=$ac_optarg ;;
1088
1089 -nfp | --nfp | --nf)
1090 # Obsolete; use --without-fp.
1091 with_fp=no ;;
1092
1093 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1094 | --no-cr | --no-c | -n)
1095 no_create=yes ;;
1096
1097 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1098 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099 no_recursion=yes ;;
1100
1101 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1102 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1103 | --oldin | --oldi | --old | --ol | --o)
1104 ac_prev=oldincludedir ;;
1105 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1106 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1107 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1108 oldincludedir=$ac_optarg ;;
1109
1110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1111 ac_prev=prefix ;;
1112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1113 prefix=$ac_optarg ;;
1114
1115 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1116 | --program-pre | --program-pr | --program-p)
1117 ac_prev=program_prefix ;;
1118 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1119 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1120 program_prefix=$ac_optarg ;;
1121
1122 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1123 | --program-suf | --program-su | --program-s)
1124 ac_prev=program_suffix ;;
1125 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1126 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1127 program_suffix=$ac_optarg ;;
1128
1129 -program-transform-name | --program-transform-name \
1130 | --program-transform-nam | --program-transform-na \
1131 | --program-transform-n | --program-transform- \
1132 | --program-transform | --program-transfor \
1133 | --program-transfo | --program-transf \
1134 | --program-trans | --program-tran \
1135 | --progr-tra | --program-tr | --program-t)
1136 ac_prev=program_transform_name ;;
1137 -program-transform-name=* | --program-transform-name=* \
1138 | --program-transform-nam=* | --program-transform-na=* \
1139 | --program-transform-n=* | --program-transform-=* \
1140 | --program-transform=* | --program-transfor=* \
1141 | --program-transfo=* | --program-transf=* \
1142 | --program-trans=* | --program-tran=* \
1143 | --progr-tra=* | --program-tr=* | --program-t=*)
1144 program_transform_name=$ac_optarg ;;
1145
1146 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1147 ac_prev=pdfdir ;;
1148 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1149 pdfdir=$ac_optarg ;;
1150
1151 -psdir | --psdir | --psdi | --psd | --ps)
1152 ac_prev=psdir ;;
1153 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154 psdir=$ac_optarg ;;
1155
1156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157 | -silent | --silent | --silen | --sile | --sil)
1158 silent=yes ;;
1159
1160 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161 ac_prev=sbindir ;;
1162 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163 | --sbi=* | --sb=*)
1164 sbindir=$ac_optarg ;;
1165
1166 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168 | --sharedst | --shareds | --shared | --share | --shar \
1169 | --sha | --sh)
1170 ac_prev=sharedstatedir ;;
1171 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174 | --sha=* | --sh=*)
1175 sharedstatedir=$ac_optarg ;;
1176
1177 -site | --site | --sit)
1178 ac_prev=site ;;
1179 -site=* | --site=* | --sit=*)
1180 site=$ac_optarg ;;
1181
1182 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183 ac_prev=srcdir ;;
1184 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1185 srcdir=$ac_optarg ;;
1186
1187 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188 | --syscon | --sysco | --sysc | --sys | --sy)
1189 ac_prev=sysconfdir ;;
1190 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1192 sysconfdir=$ac_optarg ;;
1193
1194 -target | --target | --targe | --targ | --tar | --ta | --t)
1195 ac_prev=target_alias ;;
1196 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1197 target_alias=$ac_optarg ;;
1198
1199 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200 verbose=yes ;;
1201
1202 -version | --version | --versio | --versi | --vers | -V)
1203 ac_init_version=: ;;
1204
1205 -with-* | --with-*)
1206 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209 { echo "$as_me: error: invalid package name: $ac_package" >&2
1210 { (exit 1); exit 1; }; }
1211 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1212 eval with_$ac_package=\$ac_optarg ;;
1213
1214 -without-* | --without-*)
1215 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 { echo "$as_me: error: invalid package name: $ac_package" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1221 eval with_$ac_package=no ;;
1222
1223 --x)
1224 # Obsolete; use --with-x.
1225 with_x=yes ;;
1226
1227 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228 | --x-incl | --x-inc | --x-in | --x-i)
1229 ac_prev=x_includes ;;
1230 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232 x_includes=$ac_optarg ;;
1233
1234 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236 ac_prev=x_libraries ;;
1237 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239 x_libraries=$ac_optarg ;;
1240
1241 -*) { echo "$as_me: error: unrecognized option: $ac_option
1242Try \`$0 --help' for more information." >&2
1243 { (exit 1); exit 1; }; }
1244 ;;
1245
1246 *=*)
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1250 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1251 { (exit 1); exit 1; }; }
1252 eval $ac_envvar=\$ac_optarg
1253 export $ac_envvar ;;
1254
1255 *)
1256 # FIXME: should be removed in autoconf 3.0.
1257 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1261 ;;
1262
1263 esac
1264done
1265
1266if test -n "$ac_prev"; then
1267 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1268 { echo "$as_me: error: missing argument to $ac_option" >&2
1269 { (exit 1); exit 1; }; }
1270fi
1271
1272# Be sure to have absolute directory names.
1273for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274 datadir sysconfdir sharedstatedir localstatedir includedir \
1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276 libdir localedir mandir
1277do
1278 eval ac_val=\$$ac_var
1279 case $ac_val in
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282 esac
1283 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1284 { (exit 1); exit 1; }; }
1285done
1286
1287# There might be people who depend on the old broken behavior: `$host'
1288# used to hold the argument of --host etc.
1289# FIXME: To remove some day.
1290build=$build_alias
1291host=$host_alias
1292target=$target_alias
1293
1294# FIXME: To remove some day.
1295if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299 If a cross compiler is detected then cross compile mode will be used." >&2
1300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1302 fi
1303fi
1304
1305ac_tool_prefix=
1306test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308test "$silent" = yes && exec 6>/dev/null
1309
1310
1311ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312ac_ls_di=`ls -di .` &&
1313ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 { echo "$as_me: error: Working directory cannot be determined" >&2
1315 { (exit 1); exit 1; }; }
1316test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 { echo "$as_me: error: pwd does not report name of working directory" >&2
1318 { (exit 1); exit 1; }; }
1319
1320
1321# Find the source files, if location was not specified.
1322if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$0" ||
1326$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$0" : 'X\(//\)[^/]' \| \
1328 X"$0" : 'X\(//\)$' \| \
1329 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1330echo X"$0" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\).*/{
1344 s//\1/
1345 q
1346 }
1347 s/.*/./; q'`
1348 srcdir=$ac_confdir
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 srcdir=..
1351 fi
1352else
1353 ac_srcdir_defaulted=no
1354fi
1355if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1358 { (exit 1); exit 1; }; }
1359fi
1360ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361ac_abs_confdir=`(
1362 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1363 { (exit 1); exit 1; }; }
1364 pwd)`
1365# When building in place, set srcdir=.
1366if test "$ac_abs_confdir" = "$ac_pwd"; then
1367 srcdir=.
1368fi
1369# Remove unnecessary trailing slashes from srcdir.
1370# Double slashes in file names in object file debugging info
1371# mess up M-x gdb in Emacs.
1372case $srcdir in
1373*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374esac
1375for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380done
1381
1382#
1383# Report the --help message.
1384#
1385if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1388 cat <<_ACEOF
5c706339 1389\`configure' configures yaml 0.1.2 to adapt to many kinds of systems.
b9668ba4
AK
1390
1391Usage: $0 [OPTION]... [VAR=VALUE]...
1392
1393To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394VAR=VALUE. See below for descriptions of some of the useful variables.
1395
1396Defaults for the options are specified in brackets.
1397
1398Configuration:
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1408
1409Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1413 [PREFIX]
1414
1415By default, \`make install' will install all the files in
1416\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418for instance \`--prefix=\$HOME'.
1419
1420For better control, use the options below.
1421
1422Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/yaml]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1442_ACEOF
1443
1444 cat <<\_ACEOF
1445
1446Program names:
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1450
1451System types:
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1454_ACEOF
1455fi
1456
1457if test -n "$ac_init_help"; then
1458 case $ac_init_help in
5c706339 1459 short | recursive ) echo "Configuration of yaml 0.1.2:";;
b9668ba4
AK
1460 esac
1461 cat <<\_ACEOF
1462
1463Optional Features:
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1466 --disable-dependency-tracking speeds up one-time build
1467 --enable-dependency-tracking do not reject slow dependency extractors
1468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-static[=PKGS] build static libraries [default=yes]
1470 --enable-fast-install[=PKGS]
1471 optimize for fast installation [default=yes]
1472 --disable-libtool-lock avoid locking (might break parallel builds)
1473
1474Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b9668ba4
AK
1477 --with-pic try to use only PIC/non-PIC objects [default=use
1478 both]
5c706339 1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b9668ba4
AK
1480
1481Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 LIBS libraries to pass to the linker, e.g. -l<library>
1487 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
1489 CPP C preprocessor
b9668ba4
AK
1490
1491Use these variables to override the choices made by `configure' or to help
1492it to find libraries and programs with nonstandard names/locations.
1493
1494Report bugs to <http://pyyaml.org/newticket?component=libyaml>.
1495_ACEOF
1496ac_status=$?
1497fi
1498
1499if test "$ac_init_help" = "recursive"; then
1500 # If there are subdirs, report their specific --help.
1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502 test -d "$ac_dir" || continue
1503 ac_builddir=.
1504
1505case "$ac_dir" in
1506.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507*)
1508 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 esac ;;
1515esac
1516ac_abs_top_builddir=$ac_pwd
1517ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518# for backward compatibility:
1519ac_top_builddir=$ac_top_build_prefix
1520
1521case $srcdir in
1522 .) # We are building in place.
1523 ac_srcdir=.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1530 *) # Relative name.
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534esac
1535ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1545 else
1546 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 fi || ac_status=$?
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1549 done
1550fi
1551
1552test -n "$ac_init_help" && exit $ac_status
1553if $ac_init_version; then
1554 cat <<\_ACEOF
5c706339 1555yaml configure 0.1.2
b9668ba4
AK
1556generated by GNU Autoconf 2.61
1557
1558Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15592002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1560This configure script is free software; the Free Software Foundation
1561gives unlimited permission to copy, distribute and modify it.
1562_ACEOF
1563 exit
1564fi
1565cat >config.log <<_ACEOF
1566This file contains any messages produced by compilers while
1567running configure, to aid debugging if configure makes a mistake.
1568
5c706339 1569It was created by yaml $as_me 0.1.2, which was
b9668ba4
AK
1570generated by GNU Autoconf 2.61. Invocation command line was
1571
1572 $ $0 $@
1573
1574_ACEOF
1575exec 5>>config.log
1576{
1577cat <<_ASUNAME
1578## --------- ##
1579## Platform. ##
1580## --------- ##
1581
1582hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586uname -v = `(uname -v) 2>/dev/null || echo unknown`
1587
1588/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1590
1591/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1592/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1593/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1595/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1596/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1597/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1598
1599_ASUNAME
1600
1601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602for as_dir in $PATH
1603do
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 echo "PATH: $as_dir"
1607done
1608IFS=$as_save_IFS
1609
1610} >&5
1611
1612cat >&5 <<_ACEOF
1613
1614
1615## ----------- ##
1616## Core tests. ##
1617## ----------- ##
1618
1619_ACEOF
1620
1621
1622# Keep a trace of the command line.
1623# Strip out --no-create and --no-recursion so they do not pile up.
1624# Strip out --silent because we don't want to record it for future runs.
1625# Also quote any args containing shell meta-characters.
1626# Make two passes to allow for proper duplicate-argument suppression.
1627ac_configure_args=
1628ac_configure_args0=
1629ac_configure_args1=
1630ac_must_keep_next=false
1631for ac_pass in 1 2
1632do
1633 for ac_arg
1634 do
1635 case $ac_arg in
1636 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638 | -silent | --silent | --silen | --sile | --sil)
1639 continue ;;
1640 *\'*)
1641 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1642 esac
1643 case $ac_pass in
1644 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1645 2)
1646 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647 if test $ac_must_keep_next = true; then
1648 ac_must_keep_next=false # Got value, back to normal.
1649 else
1650 case $ac_arg in
1651 *=* | --config-cache | -C | -disable-* | --disable-* \
1652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654 | -with-* | --with-* | -without-* | --without-* | --x)
1655 case "$ac_configure_args0 " in
1656 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1657 esac
1658 ;;
1659 -* ) ac_must_keep_next=true ;;
1660 esac
1661 fi
1662 ac_configure_args="$ac_configure_args '$ac_arg'"
1663 ;;
1664 esac
1665 done
1666done
1667$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1669
1670# When interrupted or exit'd, cleanup temporary files, and complete
1671# config.log. We remove comments because anyway the quotes in there
1672# would cause problems or look ugly.
1673# WARNING: Use '\'' to represent an apostrophe within the trap.
1674# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675trap 'exit_status=$?
1676 # Save into config.log some information that might help in debugging.
1677 {
1678 echo
1679
1680 cat <<\_ASBOX
1681## ---------------- ##
1682## Cache variables. ##
1683## ---------------- ##
1684_ASBOX
1685 echo
1686 # The following way of writing the cache mishandles newlines in values,
1687(
1688 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689 eval ac_val=\$$ac_var
1690 case $ac_val in #(
1691 *${as_nl}*)
1692 case $ac_var in #(
1693 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1694echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1695 esac
1696 case $ac_var in #(
1697 _ | IFS | as_nl) ;; #(
1698 *) $as_unset $ac_var ;;
1699 esac ;;
1700 esac
1701 done
1702 (set) 2>&1 |
1703 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704 *${as_nl}ac_space=\ *)
1705 sed -n \
1706 "s/'\''/'\''\\\\'\'''\''/g;
1707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1708 ;; #(
1709 *)
1710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1711 ;;
1712 esac |
1713 sort
1714)
1715 echo
1716
1717 cat <<\_ASBOX
1718## ----------------- ##
1719## Output variables. ##
1720## ----------------- ##
1721_ASBOX
1722 echo
1723 for ac_var in $ac_subst_vars
1724 do
1725 eval ac_val=\$$ac_var
1726 case $ac_val in
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728 esac
1729 echo "$ac_var='\''$ac_val'\''"
1730 done | sort
1731 echo
1732
1733 if test -n "$ac_subst_files"; then
1734 cat <<\_ASBOX
1735## ------------------- ##
1736## File substitutions. ##
1737## ------------------- ##
1738_ASBOX
1739 echo
1740 for ac_var in $ac_subst_files
1741 do
1742 eval ac_val=\$$ac_var
1743 case $ac_val in
1744 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745 esac
1746 echo "$ac_var='\''$ac_val'\''"
1747 done | sort
1748 echo
1749 fi
1750
1751 if test -s confdefs.h; then
1752 cat <<\_ASBOX
1753## ----------- ##
1754## confdefs.h. ##
1755## ----------- ##
1756_ASBOX
1757 echo
1758 cat confdefs.h
1759 echo
1760 fi
1761 test "$ac_signal" != 0 &&
1762 echo "$as_me: caught signal $ac_signal"
1763 echo "$as_me: exit $exit_status"
1764 } >&5
1765 rm -f core *.core core.conftest.* &&
1766 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1767 exit $exit_status
1768' 0
1769for ac_signal in 1 2 13 15; do
1770 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1771done
1772ac_signal=0
1773
1774# confdefs.h avoids OS command line length limits that DEFS can exceed.
1775rm -f -r conftest* confdefs.h
1776
1777# Predefined preprocessor variables.
1778
1779cat >>confdefs.h <<_ACEOF
1780#define PACKAGE_NAME "$PACKAGE_NAME"
1781_ACEOF
1782
1783
1784cat >>confdefs.h <<_ACEOF
1785#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1786_ACEOF
1787
1788
1789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE_VERSION "$PACKAGE_VERSION"
1791_ACEOF
1792
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_STRING "$PACKAGE_STRING"
1796_ACEOF
1797
1798
1799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1801_ACEOF
1802
1803
1804# Let the site file select an alternate cache file if it wants to.
1805# Prefer explicitly selected file to automatically selected ones.
1806if test -n "$CONFIG_SITE"; then
1807 set x "$CONFIG_SITE"
1808elif test "x$prefix" != xNONE; then
1809 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1810else
1811 set x "$ac_default_prefix/share/config.site" \
1812 "$ac_default_prefix/etc/config.site"
1813fi
1814shift
1815for ac_site_file
1816do
1817 if test -r "$ac_site_file"; then
1818 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819echo "$as_me: loading site script $ac_site_file" >&6;}
1820 sed 's/^/| /' "$ac_site_file" >&5
1821 . "$ac_site_file"
1822 fi
1823done
1824
1825if test -r "$cache_file"; then
1826 # Some versions of bash will fail to source /dev/null (special
1827 # files actually), so we avoid doing that.
1828 if test -f "$cache_file"; then
1829 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830echo "$as_me: loading cache $cache_file" >&6;}
1831 case $cache_file in
1832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833 *) . "./$cache_file";;
1834 esac
1835 fi
1836else
1837 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838echo "$as_me: creating cache $cache_file" >&6;}
1839 >$cache_file
1840fi
1841
1842# Check that the precious variables saved in the cache have kept the same
1843# value.
1844ac_cache_corrupted=false
1845for ac_var in $ac_precious_vars; do
1846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847 eval ac_new_set=\$ac_env_${ac_var}_set
1848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849 eval ac_new_val=\$ac_env_${ac_var}_value
1850 case $ac_old_set,$ac_new_set in
1851 set,)
1852 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1854 ac_cache_corrupted=: ;;
1855 ,set)
1856 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1858 ac_cache_corrupted=: ;;
1859 ,);;
1860 *)
1861 if test "x$ac_old_val" != "x$ac_new_val"; then
1862 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1863echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1864 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1865echo "$as_me: former value: $ac_old_val" >&2;}
1866 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1867echo "$as_me: current value: $ac_new_val" >&2;}
1868 ac_cache_corrupted=:
1869 fi;;
1870 esac
1871 # Pass precious variables to config.status.
1872 if test "$ac_new_set" = set; then
1873 case $ac_new_val in
1874 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1875 *) ac_arg=$ac_var=$ac_new_val ;;
1876 esac
1877 case " $ac_configure_args " in
1878 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1879 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1880 esac
1881 fi
1882done
1883if $ac_cache_corrupted; then
1884 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1885echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1887echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888 { (exit 1); exit 1; }; }
1889fi
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915ac_ext=c
1916ac_cpp='$CPP $CPPFLAGS'
1917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919ac_compiler_gnu=$ac_cv_c_compiler_gnu
1920
1921
1922ac_aux_dir=
1923for ac_dir in config "$srcdir"/config; do
1924 if test -f "$ac_dir/install-sh"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/install-sh -c"
1927 break
1928 elif test -f "$ac_dir/install.sh"; then
1929 ac_aux_dir=$ac_dir
1930 ac_install_sh="$ac_aux_dir/install.sh -c"
1931 break
1932 elif test -f "$ac_dir/shtool"; then
1933 ac_aux_dir=$ac_dir
1934 ac_install_sh="$ac_aux_dir/shtool install -c"
1935 break
1936 fi
1937done
1938if test -z "$ac_aux_dir"; then
1939 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1940echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1941 { (exit 1); exit 1; }; }
1942fi
1943
1944# These three variables are undocumented and unsupported,
1945# and are intended to be withdrawn in a future Autoconf release.
1946# They can cause serious problems if a builder's source tree is in a directory
1947# whose full name contains unusual characters.
1948ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1949ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1950ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1951
1952
1953ac_config_headers="$ac_config_headers config.h"
1954
5c706339
AK
1955am__api_version='1.10'
1956
b9668ba4
AK
1957# Find a good install program. We prefer a C program (faster),
1958# so one script is as good as another. But avoid the broken or
1959# incompatible versions:
1960# SysV /etc/install, /usr/sbin/install
1961# SunOS /usr/etc/install
1962# IRIX /sbin/install
1963# AIX /bin/install
1964# AmigaOS /C/install, which installs bootblocks on floppy discs
1965# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1966# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1967# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1968# OS/2's system install, which has a completely different semantic
1969# ./install, which can be erroneously created by make from ./install.sh.
1970{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1971echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1972if test -z "$INSTALL"; then
1973if test "${ac_cv_path_install+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1975else
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979 IFS=$as_save_IFS
1980 test -z "$as_dir" && as_dir=.
1981 # Account for people who put trailing slashes in PATH elements.
1982case $as_dir/ in
1983 ./ | .// | /cC/* | \
1984 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1985 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1986 /usr/ucb/* ) ;;
1987 *)
1988 # OSF1 and SCO ODT 3.0 have their own names for install.
1989 # Don't use installbsd from OSF since it installs stuff as root
1990 # by default.
1991 for ac_prog in ginstall scoinst install; do
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1994 if test $ac_prog = install &&
1995 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1996 # AIX install. It has an incompatible calling convention.
1997 :
1998 elif test $ac_prog = install &&
1999 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2000 # program-specific install script used by HP pwplus--don't use.
2001 :
2002 else
2003 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2004 break 3
2005 fi
2006 fi
2007 done
2008 done
2009 ;;
2010esac
2011done
2012IFS=$as_save_IFS
2013
2014
2015fi
2016 if test "${ac_cv_path_install+set}" = set; then
2017 INSTALL=$ac_cv_path_install
2018 else
2019 # As a last resort, use the slow shell script. Don't cache a
2020 # value for INSTALL within a source directory, because that will
2021 # break other packages using the cache if that directory is
2022 # removed, or if the value is a relative name.
2023 INSTALL=$ac_install_sh
2024 fi
2025fi
2026{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2027echo "${ECHO_T}$INSTALL" >&6; }
2028
2029# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2030# It thinks the first close brace ends the variable substitution.
2031test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2032
2033test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2034
2035test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2036
2037{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2038echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2039# Just in case
2040sleep 1
2041echo timestamp > conftest.file
2042# Do `set' in a subshell so we don't clobber the current shell's
2043# arguments. Must try -L first in case configure is actually a
2044# symlink; some systems play weird games with the mod time of symlinks
2045# (eg FreeBSD returns the mod time of the symlink's containing
2046# directory).
2047if (
2048 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2049 if test "$*" = "X"; then
2050 # -L didn't work.
2051 set X `ls -t $srcdir/configure conftest.file`
2052 fi
2053 rm -f conftest.file
2054 if test "$*" != "X $srcdir/configure conftest.file" \
2055 && test "$*" != "X conftest.file $srcdir/configure"; then
2056
2057 # If neither matched, then we have a broken ls. This can happen
2058 # if, for instance, CONFIG_SHELL is bash and it inherits a
2059 # broken ls alias from the environment. This has actually
2060 # happened. Such a system could not be considered "sane".
2061 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2062alias in your environment" >&5
2063echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2064alias in your environment" >&2;}
2065 { (exit 1); exit 1; }; }
2066 fi
2067
2068 test "$2" = conftest.file
2069 )
2070then
2071 # Ok.
2072 :
2073else
2074 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2075Check your system clock" >&5
2076echo "$as_me: error: newly created file is older than distributed files!
2077Check your system clock" >&2;}
2078 { (exit 1); exit 1; }; }
2079fi
2080{ echo "$as_me:$LINENO: result: yes" >&5
2081echo "${ECHO_T}yes" >&6; }
2082test "$program_prefix" != NONE &&
2083 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2084# Use a double $ so make ignores it.
2085test "$program_suffix" != NONE &&
2086 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2087# Double any \ or $. echo might interpret backslashes.
2088# By default was `s,x,x', remove it if useless.
2089cat <<\_ACEOF >conftest.sed
2090s/[\\$]/&&/g;s/;s,x,x,$//
2091_ACEOF
2092program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2093rm -f conftest.sed
2094
2095# expand $ac_aux_dir to an absolute path
2096am_aux_dir=`cd $ac_aux_dir && pwd`
2097
2098test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2099# Use eval to expand $SHELL
2100if eval "$MISSING --run true"; then
2101 am_missing_run="$MISSING --run "
2102else
2103 am_missing_run=
2104 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2105echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2106fi
2107
5c706339
AK
2108{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2109echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2110if test -z "$MKDIR_P"; then
2111 if test "${ac_cv_path_mkdir+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113else
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2116do
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
2119 for ac_prog in mkdir gmkdir; do
2120 for ac_exec_ext in '' $ac_executable_extensions; do
2121 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2122 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2123 'mkdir (GNU coreutils) '* | \
2124 'mkdir (coreutils) '* | \
2125 'mkdir (fileutils) '4.1*)
2126 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2127 break 3;;
2128 esac
2129 done
2130 done
2131done
2132IFS=$as_save_IFS
2133
2134fi
2135
2136 if test "${ac_cv_path_mkdir+set}" = set; then
2137 MKDIR_P="$ac_cv_path_mkdir -p"
b9668ba4 2138 else
5c706339
AK
2139 # As a last resort, use the slow shell script. Don't cache a
2140 # value for MKDIR_P within a source directory, because that will
2141 # break other packages using the cache if that directory is
2142 # removed, or if the value is a relative name.
2143 test -d ./--version && rmdir ./--version
2144 MKDIR_P="$ac_install_sh -d"
b9668ba4
AK
2145 fi
2146fi
5c706339
AK
2147{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2148echo "${ECHO_T}$MKDIR_P" >&6; }
2149
2150mkdir_p="$MKDIR_P"
2151case $mkdir_p in
2152 [\\/$]* | ?:[\\/]*) ;;
2153 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2154esac
b9668ba4
AK
2155
2156for ac_prog in gawk mawk nawk awk
2157do
2158 # Extract the first word of "$ac_prog", so it can be a program name with args.
2159set dummy $ac_prog; ac_word=$2
2160{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2162if test "${ac_cv_prog_AWK+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2164else
2165 if test -n "$AWK"; then
2166 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2167else
2168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169for as_dir in $PATH
2170do
2171 IFS=$as_save_IFS
2172 test -z "$as_dir" && as_dir=.
2173 for ac_exec_ext in '' $ac_executable_extensions; do
2174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2175 ac_cv_prog_AWK="$ac_prog"
2176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177 break 2
2178 fi
2179done
2180done
2181IFS=$as_save_IFS
2182
2183fi
2184fi
2185AWK=$ac_cv_prog_AWK
2186if test -n "$AWK"; then
2187 { echo "$as_me:$LINENO: result: $AWK" >&5
2188echo "${ECHO_T}$AWK" >&6; }
2189else
2190 { echo "$as_me:$LINENO: result: no" >&5
2191echo "${ECHO_T}no" >&6; }
2192fi
2193
2194
2195 test -n "$AWK" && break
2196done
2197
2198{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2199echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2200set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2201if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203else
2204 cat >conftest.make <<\_ACEOF
2205SHELL = /bin/sh
2206all:
2207 @echo '@@@%%%=$(MAKE)=@@@%%%'
2208_ACEOF
2209# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2210case `${MAKE-make} -f conftest.make 2>/dev/null` in
2211 *@@@%%%=?*=@@@%%%*)
2212 eval ac_cv_prog_make_${ac_make}_set=yes;;
2213 *)
2214 eval ac_cv_prog_make_${ac_make}_set=no;;
2215esac
2216rm -f conftest.make
2217fi
2218if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2219 { echo "$as_me:$LINENO: result: yes" >&5
2220echo "${ECHO_T}yes" >&6; }
2221 SET_MAKE=
2222else
2223 { echo "$as_me:$LINENO: result: no" >&5
2224echo "${ECHO_T}no" >&6; }
2225 SET_MAKE="MAKE=${MAKE-make}"
2226fi
2227
2228rm -rf .tst 2>/dev/null
2229mkdir .tst 2>/dev/null
2230if test -d .tst; then
2231 am__leading_dot=.
2232else
2233 am__leading_dot=_
2234fi
2235rmdir .tst 2>/dev/null
2236
5c706339
AK
2237if test "`cd $srcdir && pwd`" != "`pwd`"; then
2238 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2239 # is not polluted with repeated "-I."
2240 am__isrc=' -I$(srcdir)'
2241 # test to see if srcdir already configured
2242 if test -f $srcdir/config.status; then
2243 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
b9668ba4
AK
2244echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2245 { (exit 1); exit 1; }; }
5c706339 2246 fi
b9668ba4
AK
2247fi
2248
2249# test whether we have cygpath
2250if test -z "$CYGPATH_W"; then
2251 if (cygpath --version) >/dev/null 2>/dev/null; then
2252 CYGPATH_W='cygpath -w'
2253 else
2254 CYGPATH_W=echo
2255 fi
2256fi
2257
2258
2259# Define the identity of the package.
2260 PACKAGE='yaml'
5c706339 2261 VERSION='0.1.2'
b9668ba4
AK
2262
2263
2264cat >>confdefs.h <<_ACEOF
2265#define PACKAGE "$PACKAGE"
2266_ACEOF
2267
2268
2269cat >>confdefs.h <<_ACEOF
2270#define VERSION "$VERSION"
2271_ACEOF
2272
2273# Some tools Automake needs.
2274
2275ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2276
2277
2278AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2279
2280
2281AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2282
2283
2284AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2285
2286
2287MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2288
5c706339 2289install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
b9668ba4
AK
2290
2291# Installed binaries are usually stripped using `strip' when the user
2292# run `make install-strip'. However `strip' might not be the right
2293# tool to use in cross-compilation environments, therefore Automake
2294# will honor the `STRIP' environment variable to overrule this program.
2295if test "$cross_compiling" != no; then
2296 if test -n "$ac_tool_prefix"; then
2297 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2298set dummy ${ac_tool_prefix}strip; ac_word=$2
2299{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2301if test "${ac_cv_prog_STRIP+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303else
2304 if test -n "$STRIP"; then
2305 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2306else
2307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308for as_dir in $PATH
2309do
2310 IFS=$as_save_IFS
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2314 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 break 2
2317 fi
2318done
2319done
2320IFS=$as_save_IFS
2321
2322fi
2323fi
2324STRIP=$ac_cv_prog_STRIP
2325if test -n "$STRIP"; then
2326 { echo "$as_me:$LINENO: result: $STRIP" >&5
2327echo "${ECHO_T}$STRIP" >&6; }
2328else
2329 { echo "$as_me:$LINENO: result: no" >&5
2330echo "${ECHO_T}no" >&6; }
2331fi
2332
2333
2334fi
2335if test -z "$ac_cv_prog_STRIP"; then
2336 ac_ct_STRIP=$STRIP
2337 # Extract the first word of "strip", so it can be a program name with args.
2338set dummy strip; ac_word=$2
2339{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2343else
2344 if test -n "$ac_ct_STRIP"; then
2345 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2346else
2347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348for as_dir in $PATH
2349do
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_ac_ct_STRIP="strip"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 break 2
2357 fi
2358done
2359done
2360IFS=$as_save_IFS
2361
2362fi
2363fi
2364ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2365if test -n "$ac_ct_STRIP"; then
2366 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2367echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2368else
2369 { echo "$as_me:$LINENO: result: no" >&5
2370echo "${ECHO_T}no" >&6; }
2371fi
2372
2373 if test "x$ac_ct_STRIP" = x; then
2374 STRIP=":"
2375 else
2376 case $cross_compiling:$ac_tool_warned in
2377yes:)
2378{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2379whose name does not start with the host triplet. If you think this
2380configuration is useful to you, please write to autoconf@gnu.org." >&5
2381echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2382whose name does not start with the host triplet. If you think this
2383configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2384ac_tool_warned=yes ;;
2385esac
2386 STRIP=$ac_ct_STRIP
2387 fi
2388else
2389 STRIP="$ac_cv_prog_STRIP"
2390fi
2391
2392fi
5c706339 2393INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
b9668ba4
AK
2394
2395# We need awk for the "check" target. The system "awk" is bad on
2396# some platforms.
2397# Always define AMTAR for backward compatibility.
2398
2399AMTAR=${AMTAR-"${am_missing_run}tar"}
2400
2401am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2402
2403
2404
2405
2406
2407
2408# Define macro variables for the package version numbers.
2409
2410cat >>confdefs.h <<\_ACEOF
2411#define YAML_VERSION_MAJOR 0
2412_ACEOF
2413
2414
2415cat >>confdefs.h <<\_ACEOF
2416#define YAML_VERSION_MINOR 1
2417_ACEOF
2418
2419
2420cat >>confdefs.h <<\_ACEOF
5c706339 2421#define YAML_VERSION_PATCH 2
b9668ba4
AK
2422_ACEOF
2423
2424
2425cat >>confdefs.h <<\_ACEOF
5c706339 2426#define YAML_VERSION_STRING "0.1.2"
b9668ba4
AK
2427_ACEOF
2428
2429
2430# Define substitutions for the libtool version numbers.
2431YAML_LT_RELEASE=0
5c706339 2432YAML_LT_CURRENT=2
b9668ba4 2433YAML_LT_REVISION=0
5c706339 2434YAML_LT_AGE=1
b9668ba4
AK
2435
2436
2437
2438
2439
2440# Note: in order to update checks, run `autoscan` and look through "configure.scan".
2441
2442# Checks for programs.
2443ac_ext=c
2444ac_cpp='$CPP $CPPFLAGS'
2445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447ac_compiler_gnu=$ac_cv_c_compiler_gnu
2448if test -n "$ac_tool_prefix"; then
2449 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2450set dummy ${ac_tool_prefix}gcc; ac_word=$2
2451{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2453if test "${ac_cv_prog_CC+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2455else
2456 if test -n "$CC"; then
2457 ac_cv_prog_CC="$CC" # Let the user override the test.
2458else
2459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460for as_dir in $PATH
2461do
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 break 2
2469 fi
2470done
2471done
2472IFS=$as_save_IFS
2473
2474fi
2475fi
2476CC=$ac_cv_prog_CC
2477if test -n "$CC"; then
2478 { echo "$as_me:$LINENO: result: $CC" >&5
2479echo "${ECHO_T}$CC" >&6; }
2480else
2481 { echo "$as_me:$LINENO: result: no" >&5
2482echo "${ECHO_T}no" >&6; }
2483fi
2484
2485
2486fi
2487if test -z "$ac_cv_prog_CC"; then
2488 ac_ct_CC=$CC
2489 # Extract the first word of "gcc", so it can be a program name with args.
2490set dummy gcc; ac_word=$2
2491{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2495else
2496 if test -n "$ac_ct_CC"; then
2497 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2498else
2499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500for as_dir in $PATH
2501do
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2506 ac_cv_prog_ac_ct_CC="gcc"
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 break 2
2509 fi
2510done
2511done
2512IFS=$as_save_IFS
2513
2514fi
2515fi
2516ac_ct_CC=$ac_cv_prog_ac_ct_CC
2517if test -n "$ac_ct_CC"; then
2518 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2519echo "${ECHO_T}$ac_ct_CC" >&6; }
2520else
2521 { echo "$as_me:$LINENO: result: no" >&5
2522echo "${ECHO_T}no" >&6; }
2523fi
2524
2525 if test "x$ac_ct_CC" = x; then
2526 CC=""
2527 else
2528 case $cross_compiling:$ac_tool_warned in
2529yes:)
2530{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2531whose name does not start with the host triplet. If you think this
2532configuration is useful to you, please write to autoconf@gnu.org." >&5
2533echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2534whose name does not start with the host triplet. If you think this
2535configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2536ac_tool_warned=yes ;;
2537esac
2538 CC=$ac_ct_CC
2539 fi
2540else
2541 CC="$ac_cv_prog_CC"
2542fi
2543
2544if test -z "$CC"; then
2545 if test -n "$ac_tool_prefix"; then
2546 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2547set dummy ${ac_tool_prefix}cc; ac_word=$2
2548{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2550if test "${ac_cv_prog_CC+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2552else
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2555else
2556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557for as_dir in $PATH
2558do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563 ac_cv_prog_CC="${ac_tool_prefix}cc"
2564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 break 2
2566 fi
2567done
2568done
2569IFS=$as_save_IFS
2570
2571fi
2572fi
2573CC=$ac_cv_prog_CC
2574if test -n "$CC"; then
2575 { echo "$as_me:$LINENO: result: $CC" >&5
2576echo "${ECHO_T}$CC" >&6; }
2577else
2578 { echo "$as_me:$LINENO: result: no" >&5
2579echo "${ECHO_T}no" >&6; }
2580fi
2581
2582
2583 fi
2584fi
2585if test -z "$CC"; then
2586 # Extract the first word of "cc", so it can be a program name with args.
2587set dummy cc; ac_word=$2
2588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2590if test "${ac_cv_prog_CC+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2592else
2593 if test -n "$CC"; then
2594 ac_cv_prog_CC="$CC" # Let the user override the test.
2595else
2596 ac_prog_rejected=no
2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2605 ac_prog_rejected=yes
2606 continue
2607 fi
2608 ac_cv_prog_CC="cc"
2609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 break 2
2611 fi
2612done
2613done
2614IFS=$as_save_IFS
2615
2616if test $ac_prog_rejected = yes; then
2617 # We found a bogon in the path, so make sure we never use it.
2618 set dummy $ac_cv_prog_CC
2619 shift
2620 if test $# != 0; then
2621 # We chose a different compiler from the bogus one.
2622 # However, it has the same basename, so the bogon will be chosen
2623 # first if we set CC to just the basename; use the full file name.
2624 shift
2625 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2626 fi
2627fi
2628fi
2629fi
2630CC=$ac_cv_prog_CC
2631if test -n "$CC"; then
2632 { echo "$as_me:$LINENO: result: $CC" >&5
2633echo "${ECHO_T}$CC" >&6; }
2634else
2635 { echo "$as_me:$LINENO: result: no" >&5
2636echo "${ECHO_T}no" >&6; }
2637fi
2638
2639
2640fi
2641if test -z "$CC"; then
2642 if test -n "$ac_tool_prefix"; then
2643 for ac_prog in cl.exe
2644 do
2645 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2646set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2649if test "${ac_cv_prog_CC+set}" = set; then
2650 echo $ECHO_N "(cached) $ECHO_C" >&6
2651else
2652 if test -n "$CC"; then
2653 ac_cv_prog_CC="$CC" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2665 fi
2666done
2667done
2668IFS=$as_save_IFS
2669
2670fi
2671fi
2672CC=$ac_cv_prog_CC
2673if test -n "$CC"; then
2674 { echo "$as_me:$LINENO: result: $CC" >&5
2675echo "${ECHO_T}$CC" >&6; }
2676else
2677 { echo "$as_me:$LINENO: result: no" >&5
2678echo "${ECHO_T}no" >&6; }
2679fi
2680
2681
2682 test -n "$CC" && break
2683 done
2684fi
2685if test -z "$CC"; then
2686 ac_ct_CC=$CC
2687 for ac_prog in cl.exe
2688do
2689 # Extract the first word of "$ac_prog", so it can be a program name with args.
2690set dummy $ac_prog; ac_word=$2
2691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2693if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2695else
2696 if test -n "$ac_ct_CC"; then
2697 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2698else
2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700for as_dir in $PATH
2701do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 ac_cv_prog_ac_ct_CC="$ac_prog"
2707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2709 fi
2710done
2711done
2712IFS=$as_save_IFS
2713
2714fi
2715fi
2716ac_ct_CC=$ac_cv_prog_ac_ct_CC
2717if test -n "$ac_ct_CC"; then
2718 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2719echo "${ECHO_T}$ac_ct_CC" >&6; }
2720else
2721 { echo "$as_me:$LINENO: result: no" >&5
2722echo "${ECHO_T}no" >&6; }
2723fi
2724
2725
2726 test -n "$ac_ct_CC" && break
2727done
2728
2729 if test "x$ac_ct_CC" = x; then
2730 CC=""
2731 else
2732 case $cross_compiling:$ac_tool_warned in
2733yes:)
2734{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2735whose name does not start with the host triplet. If you think this
2736configuration is useful to you, please write to autoconf@gnu.org." >&5
2737echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2738whose name does not start with the host triplet. If you think this
2739configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2740ac_tool_warned=yes ;;
2741esac
2742 CC=$ac_ct_CC
2743 fi
2744fi
2745
2746fi
2747
2748
2749test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2750See \`config.log' for more details." >&5
2751echo "$as_me: error: no acceptable C compiler found in \$PATH
2752See \`config.log' for more details." >&2;}
2753 { (exit 1); exit 1; }; }
2754
2755# Provide some information about the compiler.
2756echo "$as_me:$LINENO: checking for C compiler version" >&5
2757ac_compiler=`set X $ac_compile; echo $2`
2758{ (ac_try="$ac_compiler --version >&5"
2759case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762esac
2763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_compiler --version >&5") 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }
2768{ (ac_try="$ac_compiler -v >&5"
2769case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772esac
2773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774 (eval "$ac_compiler -v >&5") 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }
2778{ (ac_try="$ac_compiler -V >&5"
2779case "(($ac_try" in
2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2782esac
2783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2784 (eval "$ac_compiler -V >&5") 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }
2788
2789cat >conftest.$ac_ext <<_ACEOF
2790/* confdefs.h. */
2791_ACEOF
2792cat confdefs.h >>conftest.$ac_ext
2793cat >>conftest.$ac_ext <<_ACEOF
2794/* end confdefs.h. */
2795
2796int
2797main ()
2798{
2799
2800 ;
2801 return 0;
2802}
2803_ACEOF
2804ac_clean_files_save=$ac_clean_files
2805ac_clean_files="$ac_clean_files a.out a.exe b.out"
2806# Try to create an executable without -o first, disregard a.out.
2807# It will help us diagnose broken compilers, and finding out an intuition
2808# of exeext.
2809{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2810echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2811ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2812#
2813# List of possible output files, starting from the most likely.
2814# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2815# only as a last resort. b.out is created by i960 compilers.
2816ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2817#
2818# The IRIX 6 linker writes into existing files which may not be
2819# executable, retaining their permissions. Remove them first so a
2820# subsequent execution test works.
2821ac_rmfiles=
2822for ac_file in $ac_files
2823do
2824 case $ac_file in
2825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2826 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2827 esac
2828done
2829rm -f $ac_rmfiles
2830
2831if { (ac_try="$ac_link_default"
2832case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835esac
2836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_link_default") 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; then
2841 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2842# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2843# in a Makefile. We should not override ac_cv_exeext if it was cached,
2844# so that the user can short-circuit this test for compilers unknown to
2845# Autoconf.
2846for ac_file in $ac_files ''
2847do
2848 test -f "$ac_file" || continue
2849 case $ac_file in
2850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2851 ;;
2852 [ab].out )
2853 # We found the default executable, but exeext='' is most
2854 # certainly right.
2855 break;;
2856 *.* )
2857 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2858 then :; else
2859 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2860 fi
2861 # We set ac_cv_exeext here because the later test for it is not
2862 # safe: cross compilers may not add the suffix if given an `-o'
2863 # argument, so we may need to know it at that point already.
2864 # Even if this section looks crufty: it has the advantage of
2865 # actually working.
2866 break;;
2867 * )
2868 break;;
2869 esac
2870done
2871test "$ac_cv_exeext" = no && ac_cv_exeext=
2872
2873else
2874 ac_file=''
2875fi
2876
2877{ echo "$as_me:$LINENO: result: $ac_file" >&5
2878echo "${ECHO_T}$ac_file" >&6; }
2879if test -z "$ac_file"; then
2880 echo "$as_me: failed program was:" >&5
2881sed 's/^/| /' conftest.$ac_ext >&5
2882
2883{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2884See \`config.log' for more details." >&5
2885echo "$as_me: error: C compiler cannot create executables
2886See \`config.log' for more details." >&2;}
2887 { (exit 77); exit 77; }; }
2888fi
2889
2890ac_exeext=$ac_cv_exeext
2891
2892# Check that the compiler produces executables we can run. If not, either
2893# the compiler is broken, or we cross compile.
2894{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2895echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2896# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2897# If not cross compiling, check that we can run a simple program.
2898if test "$cross_compiling" != yes; then
2899 if { ac_try='./$ac_file'
2900 { (case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903esac
2904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_try") 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 cross_compiling=no
2910 else
2911 if test "$cross_compiling" = maybe; then
2912 cross_compiling=yes
2913 else
2914 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2915If you meant to cross compile, use \`--host'.
2916See \`config.log' for more details." >&5
2917echo "$as_me: error: cannot run C compiled programs.
2918If you meant to cross compile, use \`--host'.
2919See \`config.log' for more details." >&2;}
2920 { (exit 1); exit 1; }; }
2921 fi
2922 fi
2923fi
2924{ echo "$as_me:$LINENO: result: yes" >&5
2925echo "${ECHO_T}yes" >&6; }
2926
2927rm -f a.out a.exe conftest$ac_cv_exeext b.out
2928ac_clean_files=$ac_clean_files_save
2929# Check that the compiler produces executables we can run. If not, either
2930# the compiler is broken, or we cross compile.
2931{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2932echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2933{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2934echo "${ECHO_T}$cross_compiling" >&6; }
2935
2936{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2937echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2938if { (ac_try="$ac_link"
2939case "(($ac_try" in
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2942esac
2943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_link") 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; then
2948 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2949# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2950# work properly (i.e., refer to `conftest.exe'), while it won't with
2951# `rm'.
2952for ac_file in conftest.exe conftest conftest.*; do
2953 test -f "$ac_file" || continue
2954 case $ac_file in
2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2956 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2957 break;;
2958 * ) break;;
2959 esac
2960done
2961else
2962 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2963See \`config.log' for more details." >&5
2964echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2965See \`config.log' for more details." >&2;}
2966 { (exit 1); exit 1; }; }
2967fi
2968
2969rm -f conftest$ac_cv_exeext
2970{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2971echo "${ECHO_T}$ac_cv_exeext" >&6; }
2972
2973rm -f conftest.$ac_ext
2974EXEEXT=$ac_cv_exeext
2975ac_exeext=$EXEEXT
2976{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2977echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2978if test "${ac_cv_objext+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2980else
2981 cat >conftest.$ac_ext <<_ACEOF
2982/* confdefs.h. */
2983_ACEOF
2984cat confdefs.h >>conftest.$ac_ext
2985cat >>conftest.$ac_ext <<_ACEOF
2986/* end confdefs.h. */
2987
2988int
2989main ()
2990{
2991
2992 ;
2993 return 0;
2994}
2995_ACEOF
2996rm -f conftest.o conftest.obj
2997if { (ac_try="$ac_compile"
2998case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001esac
3002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003 (eval "$ac_compile") 2>&5
3004 ac_status=$?
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }; then
3007 for ac_file in conftest.o conftest.obj conftest.*; do
3008 test -f "$ac_file" || continue;
3009 case $ac_file in
3010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3011 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3012 break;;
3013 esac
3014done
3015else
3016 echo "$as_me: failed program was:" >&5
3017sed 's/^/| /' conftest.$ac_ext >&5
3018
3019{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3020See \`config.log' for more details." >&5
3021echo "$as_me: error: cannot compute suffix of object files: cannot compile
3022See \`config.log' for more details." >&2;}
3023 { (exit 1); exit 1; }; }
3024fi
3025
3026rm -f conftest.$ac_cv_objext conftest.$ac_ext
3027fi
3028{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3029echo "${ECHO_T}$ac_cv_objext" >&6; }
3030OBJEXT=$ac_cv_objext
3031ac_objext=$OBJEXT
3032{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3033echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3034if test "${ac_cv_c_compiler_gnu+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3036else
3037 cat >conftest.$ac_ext <<_ACEOF
3038/* confdefs.h. */
3039_ACEOF
3040cat confdefs.h >>conftest.$ac_ext
3041cat >>conftest.$ac_ext <<_ACEOF
3042/* end confdefs.h. */
3043
3044int
3045main ()
3046{
3047#ifndef __GNUC__
3048 choke me
3049#endif
3050
3051 ;
3052 return 0;
3053}
3054_ACEOF
3055rm -f conftest.$ac_objext
3056if { (ac_try="$ac_compile"
3057case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060esac
3061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_compile") 2>conftest.er1
3063 ac_status=$?
3064 grep -v '^ *+' conftest.er1 >conftest.err
3065 rm -f conftest.er1
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } && {
3069 test -z "$ac_c_werror_flag" ||
3070 test ! -s conftest.err
3071 } && test -s conftest.$ac_objext; then
3072 ac_compiler_gnu=yes
3073else
3074 echo "$as_me: failed program was:" >&5
3075sed 's/^/| /' conftest.$ac_ext >&5
3076
3077 ac_compiler_gnu=no
3078fi
3079
3080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081ac_cv_c_compiler_gnu=$ac_compiler_gnu
3082
3083fi
3084{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3085echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3086GCC=`test $ac_compiler_gnu = yes && echo yes`
3087ac_test_CFLAGS=${CFLAGS+set}
3088ac_save_CFLAGS=$CFLAGS
3089{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3090echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3091if test "${ac_cv_prog_cc_g+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093else
3094 ac_save_c_werror_flag=$ac_c_werror_flag
3095 ac_c_werror_flag=yes
3096 ac_cv_prog_cc_g=no
3097 CFLAGS="-g"
3098 cat >conftest.$ac_ext <<_ACEOF
3099/* confdefs.h. */
3100_ACEOF
3101cat confdefs.h >>conftest.$ac_ext
3102cat >>conftest.$ac_ext <<_ACEOF
3103/* end confdefs.h. */
3104
3105int
3106main ()
3107{
3108
3109 ;
3110 return 0;
3111}
3112_ACEOF
3113rm -f conftest.$ac_objext
3114if { (ac_try="$ac_compile"
3115case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118esac
3119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3121 ac_status=$?
3122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } && {
3127 test -z "$ac_c_werror_flag" ||
3128 test ! -s conftest.err
3129 } && test -s conftest.$ac_objext; then
3130 ac_cv_prog_cc_g=yes
3131else
3132 echo "$as_me: failed program was:" >&5
3133sed 's/^/| /' conftest.$ac_ext >&5
3134
3135 CFLAGS=""
3136 cat >conftest.$ac_ext <<_ACEOF
3137/* confdefs.h. */
3138_ACEOF
3139cat confdefs.h >>conftest.$ac_ext
3140cat >>conftest.$ac_ext <<_ACEOF
3141/* end confdefs.h. */
3142
3143int
3144main ()
3145{
3146
3147 ;
3148 return 0;
3149}
3150_ACEOF
3151rm -f conftest.$ac_objext
3152if { (ac_try="$ac_compile"
3153case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156esac
3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_compile") 2>conftest.er1
3159 ac_status=$?
3160 grep -v '^ *+' conftest.er1 >conftest.err
3161 rm -f conftest.er1
3162 cat conftest.err >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } && {
3165 test -z "$ac_c_werror_flag" ||
3166 test ! -s conftest.err
3167 } && test -s conftest.$ac_objext; then
3168 :
3169else
3170 echo "$as_me: failed program was:" >&5
3171sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 ac_c_werror_flag=$ac_save_c_werror_flag
3174 CFLAGS="-g"
3175 cat >conftest.$ac_ext <<_ACEOF
3176/* confdefs.h. */
3177_ACEOF
3178cat confdefs.h >>conftest.$ac_ext
3179cat >>conftest.$ac_ext <<_ACEOF
3180/* end confdefs.h. */
3181
3182int
3183main ()
3184{
3185
3186 ;
3187 return 0;
3188}
3189_ACEOF
3190rm -f conftest.$ac_objext
3191if { (ac_try="$ac_compile"
3192case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195esac
3196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compile") 2>conftest.er1
3198 ac_status=$?
3199 grep -v '^ *+' conftest.er1 >conftest.err
3200 rm -f conftest.er1
3201 cat conftest.err >&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } && {
3204 test -z "$ac_c_werror_flag" ||
3205 test ! -s conftest.err
3206 } && test -s conftest.$ac_objext; then
3207 ac_cv_prog_cc_g=yes
3208else
3209 echo "$as_me: failed program was:" >&5
3210sed 's/^/| /' conftest.$ac_ext >&5
3211
3212
3213fi
3214
3215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216fi
3217
3218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219fi
3220
3221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 ac_c_werror_flag=$ac_save_c_werror_flag
3223fi
3224{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3225echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3226if test "$ac_test_CFLAGS" = set; then
3227 CFLAGS=$ac_save_CFLAGS
3228elif test $ac_cv_prog_cc_g = yes; then
3229 if test "$GCC" = yes; then
3230 CFLAGS="-g -O2"
3231 else
3232 CFLAGS="-g"
3233 fi
3234else
3235 if test "$GCC" = yes; then
3236 CFLAGS="-O2"
3237 else
3238 CFLAGS=
3239 fi
3240fi
3241{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3242echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3243if test "${ac_cv_prog_cc_c89+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245else
3246 ac_cv_prog_cc_c89=no
3247ac_save_CC=$CC
3248cat >conftest.$ac_ext <<_ACEOF
3249/* confdefs.h. */
3250_ACEOF
3251cat confdefs.h >>conftest.$ac_ext
3252cat >>conftest.$ac_ext <<_ACEOF
3253/* end confdefs.h. */
3254#include <stdarg.h>
3255#include <stdio.h>
3256#include <sys/types.h>
3257#include <sys/stat.h>
3258/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3259struct buf { int x; };
3260FILE * (*rcsopen) (struct buf *, struct stat *, int);
3261static char *e (p, i)
3262 char **p;
3263 int i;
3264{
3265 return p[i];
3266}
3267static char *f (char * (*g) (char **, int), char **p, ...)
3268{
3269 char *s;
3270 va_list v;
3271 va_start (v,p);
3272 s = g (p, va_arg (v,int));
3273 va_end (v);
3274 return s;
3275}
3276
3277/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3278 function prototypes and stuff, but not '\xHH' hex character constants.
3279 These don't provoke an error unfortunately, instead are silently treated
3280 as 'x'. The following induces an error, until -std is added to get
3281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3282 array size at least. It's necessary to write '\x00'==0 to get something
3283 that's true only with -std. */
3284int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3285
3286/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3287 inside strings and character constants. */
3288#define FOO(x) 'x'
3289int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3290
3291int test (int i, double x);
3292struct s1 {int (*f) (int a);};
3293struct s2 {int (*f) (double a);};
3294int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3295int argc;
3296char **argv;
3297int
3298main ()
3299{
3300return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3301 ;
3302 return 0;
3303}
3304_ACEOF
3305for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3306 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3307do
3308 CC="$ac_save_CC $ac_arg"
3309 rm -f conftest.$ac_objext
3310if { (ac_try="$ac_compile"
3311case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314esac
3315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_compile") 2>conftest.er1
3317 ac_status=$?
3318 grep -v '^ *+' conftest.er1 >conftest.err
3319 rm -f conftest.er1
3320 cat conftest.err >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } && {
3323 test -z "$ac_c_werror_flag" ||
3324 test ! -s conftest.err
3325 } && test -s conftest.$ac_objext; then
3326 ac_cv_prog_cc_c89=$ac_arg
3327else
3328 echo "$as_me: failed program was:" >&5
3329sed 's/^/| /' conftest.$ac_ext >&5
3330
3331
3332fi
3333
3334rm -f core conftest.err conftest.$ac_objext
3335 test "x$ac_cv_prog_cc_c89" != "xno" && break
3336done
3337rm -f conftest.$ac_ext
3338CC=$ac_save_CC
3339
3340fi
3341# AC_CACHE_VAL
3342case "x$ac_cv_prog_cc_c89" in
3343 x)
3344 { echo "$as_me:$LINENO: result: none needed" >&5
3345echo "${ECHO_T}none needed" >&6; } ;;
3346 xno)
3347 { echo "$as_me:$LINENO: result: unsupported" >&5
3348echo "${ECHO_T}unsupported" >&6; } ;;
3349 *)
3350 CC="$CC $ac_cv_prog_cc_c89"
3351 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3352echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3353esac
3354
3355
3356ac_ext=c
3357ac_cpp='$CPP $CPPFLAGS'
3358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361DEPDIR="${am__leading_dot}deps"
3362
3363ac_config_commands="$ac_config_commands depfiles"
3364
3365
3366am_make=${MAKE-make}
3367cat > confinc << 'END'
3368am__doit:
3369 @echo done
3370.PHONY: am__doit
3371END
3372# If we don't find an include directive, just comment out the code.
3373{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3374echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3375am__include="#"
3376am__quote=
3377_am_result=none
3378# First try GNU make style include.
3379echo "include confinc" > confmf
3380# We grep out `Entering directory' and `Leaving directory'
3381# messages which can occur if `w' ends up in MAKEFLAGS.
3382# In particular we don't look at `^make:' because GNU make might
3383# be invoked under some other name (usually "gmake"), in which
3384# case it prints its new name instead of `make'.
3385if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3386 am__include=include
3387 am__quote=
3388 _am_result=GNU
3389fi
3390# Now try BSD make style include.
3391if test "$am__include" = "#"; then
3392 echo '.include "confinc"' > confmf
3393 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3394 am__include=.include
3395 am__quote="\""
3396 _am_result=BSD
3397 fi
3398fi
3399
3400
3401{ echo "$as_me:$LINENO: result: $_am_result" >&5
3402echo "${ECHO_T}$_am_result" >&6; }
3403rm -f confinc confmf
3404
3405# Check whether --enable-dependency-tracking was given.
3406if test "${enable_dependency_tracking+set}" = set; then
3407 enableval=$enable_dependency_tracking;
3408fi
3409
3410if test "x$enable_dependency_tracking" != xno; then
3411 am_depcomp="$ac_aux_dir/depcomp"
3412 AMDEPBACKSLASH='\'
3413fi
5c706339 3414 if test "x$enable_dependency_tracking" != xno; then
b9668ba4
AK
3415 AMDEP_TRUE=
3416 AMDEP_FALSE='#'
3417else
3418 AMDEP_TRUE='#'
3419 AMDEP_FALSE=
3420fi
3421
3422
3423
b9668ba4
AK
3424depcc="$CC" am_compiler_list=
3425
3426{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3427echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3428if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3430else
3431 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3432 # We make a subdir and do the tests there. Otherwise we can end up
3433 # making bogus files that we don't know about and never remove. For
3434 # instance it was reported that on HP-UX the gcc test will end up
3435 # making a dummy file named `D' -- because `-MD' means `put the output
3436 # in D'.
3437 mkdir conftest.dir
3438 # Copy depcomp to subdir because otherwise we won't find it if we're
3439 # using a relative directory.
3440 cp "$am_depcomp" conftest.dir
3441 cd conftest.dir
3442 # We will build objects and dependencies in a subdirectory because
3443 # it helps to detect inapplicable dependency modes. For instance
3444 # both Tru64's cc and ICC support -MD to output dependencies as a
3445 # side effect of compilation, but ICC will put the dependencies in
3446 # the current directory while Tru64 will put them in the object
3447 # directory.
3448 mkdir sub
3449
3450 am_cv_CC_dependencies_compiler_type=none
3451 if test "$am_compiler_list" = ""; then
3452 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3453 fi
3454 for depmode in $am_compiler_list; do
3455 # Setup a source with many dependencies, because some compilers
3456 # like to wrap large dependency lists on column 80 (with \), and
3457 # we should not choose a depcomp mode which is confused by this.
3458 #
3459 # We need to recreate these files for each test, as the compiler may
3460 # overwrite some of them when testing with obscure command lines.
3461 # This happens at least with the AIX C compiler.
3462 : > sub/conftest.c
3463 for i in 1 2 3 4 5 6; do
3464 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3465 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3466 # Solaris 8's {/usr,}/bin/sh.
3467 touch sub/conftst$i.h
3468 done
3469 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3470
3471 case $depmode in
3472 nosideeffect)
3473 # after this tag, mechanisms are not by side-effect, so they'll
3474 # only be used when explicitly requested
3475 if test "x$enable_dependency_tracking" = xyes; then
3476 continue
3477 else
3478 break
3479 fi
3480 ;;
3481 none) break ;;
3482 esac
3483 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3484 # mode. It turns out that the SunPro C++ compiler does not properly
3485 # handle `-M -o', and we need to detect this.
3486 if depmode=$depmode \
3487 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3488 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3489 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3490 >/dev/null 2>conftest.err &&
5c706339 3491 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
b9668ba4
AK
3492 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3493 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3494 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3495 # icc doesn't choke on unknown options, it will just issue warnings
3496 # or remarks (even with -Werror). So we grep stderr for any message
3497 # that says an option was ignored or not supported.
3498 # When given -MP, icc 7.0 and 7.1 complain thusly:
3499 # icc: Command line warning: ignoring option '-M'; no argument required
3500 # The diagnosis changed in icc 8.0:
3501 # icc: Command line remark: option '-MP' not supported
3502 if (grep 'ignoring option' conftest.err ||
3503 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3504 am_cv_CC_dependencies_compiler_type=$depmode
3505 break
3506 fi
3507 fi
3508 done
3509
3510 cd ..
3511 rm -rf conftest.dir
3512else
3513 am_cv_CC_dependencies_compiler_type=none
3514fi
3515
3516fi
3517{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3518echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3519CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3520
5c706339 3521 if
b9668ba4
AK
3522 test "x$enable_dependency_tracking" != xno \
3523 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3524 am__fastdepCC_TRUE=
3525 am__fastdepCC_FALSE='#'
3526else
3527 am__fastdepCC_TRUE='#'
3528 am__fastdepCC_FALSE=
3529fi
3530
3531
3532ac_ext=c
3533ac_cpp='$CPP $CPPFLAGS'
3534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3538echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3539# On Suns, sometimes $CPP names a directory.
3540if test -n "$CPP" && test -d "$CPP"; then
3541 CPP=
3542fi
3543if test -z "$CPP"; then
3544 if test "${ac_cv_prog_CPP+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546else
3547 # Double quotes because CPP needs to be expanded
3548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3549 do
3550 ac_preproc_ok=false
3551for ac_c_preproc_warn_flag in '' yes
3552do
3553 # Use a header file that comes with gcc, so configuring glibc
3554 # with a fresh cross-compiler works.
3555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3556 # <limits.h> exists even on freestanding compilers.
3557 # On the NeXT, cc -E runs the code through the compiler's parser,
3558 # not just through cpp. "Syntax error" is here to catch this case.
3559 cat >conftest.$ac_ext <<_ACEOF
3560/* confdefs.h. */
3561_ACEOF
3562cat confdefs.h >>conftest.$ac_ext
3563cat >>conftest.$ac_ext <<_ACEOF
3564/* end confdefs.h. */
3565#ifdef __STDC__
3566# include <limits.h>
3567#else
3568# include <assert.h>
3569#endif
3570 Syntax error
3571_ACEOF
3572if { (ac_try="$ac_cpp conftest.$ac_ext"
3573case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576esac
3577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3579 ac_status=$?
3580 grep -v '^ *+' conftest.er1 >conftest.err
3581 rm -f conftest.er1
3582 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } >/dev/null && {
3585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3586 test ! -s conftest.err
3587 }; then
3588 :
3589else
3590 echo "$as_me: failed program was:" >&5
3591sed 's/^/| /' conftest.$ac_ext >&5
3592
3593 # Broken: fails on valid input.
3594continue
3595fi
3596
3597rm -f conftest.err conftest.$ac_ext
3598
3599 # OK, works on sane cases. Now check whether nonexistent headers
3600 # can be detected and how.
3601 cat >conftest.$ac_ext <<_ACEOF
3602/* confdefs.h. */
3603_ACEOF
3604cat confdefs.h >>conftest.$ac_ext
3605cat >>conftest.$ac_ext <<_ACEOF
3606/* end confdefs.h. */
3607#include <ac_nonexistent.h>
3608_ACEOF
3609if { (ac_try="$ac_cpp conftest.$ac_ext"
3610case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613esac
3614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } >/dev/null && {
3622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3623 test ! -s conftest.err
3624 }; then
3625 # Broken: success on invalid input.
3626continue
3627else
3628 echo "$as_me: failed program was:" >&5
3629sed 's/^/| /' conftest.$ac_ext >&5
3630
3631 # Passes both tests.
3632ac_preproc_ok=:
3633break
3634fi
3635
3636rm -f conftest.err conftest.$ac_ext
3637
3638done
3639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3640rm -f conftest.err conftest.$ac_ext
3641if $ac_preproc_ok; then
3642 break
3643fi
3644
3645 done
3646 ac_cv_prog_CPP=$CPP
3647
3648fi
3649 CPP=$ac_cv_prog_CPP
3650else
3651 ac_cv_prog_CPP=$CPP
3652fi
3653{ echo "$as_me:$LINENO: result: $CPP" >&5
3654echo "${ECHO_T}$CPP" >&6; }
3655ac_preproc_ok=false
3656for ac_c_preproc_warn_flag in '' yes
3657do
3658 # Use a header file that comes with gcc, so configuring glibc
3659 # with a fresh cross-compiler works.
3660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3661 # <limits.h> exists even on freestanding compilers.
3662 # On the NeXT, cc -E runs the code through the compiler's parser,
3663 # not just through cpp. "Syntax error" is here to catch this case.
3664 cat >conftest.$ac_ext <<_ACEOF
3665/* confdefs.h. */
3666_ACEOF
3667cat confdefs.h >>conftest.$ac_ext
3668cat >>conftest.$ac_ext <<_ACEOF
3669/* end confdefs.h. */
3670#ifdef __STDC__
3671# include <limits.h>
3672#else
3673# include <assert.h>
3674#endif
3675 Syntax error
3676_ACEOF
3677if { (ac_try="$ac_cpp conftest.$ac_ext"
3678case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681esac
3682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3684 ac_status=$?
3685 grep -v '^ *+' conftest.er1 >conftest.err
3686 rm -f conftest.er1
3687 cat conftest.err >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } >/dev/null && {
3690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3691 test ! -s conftest.err
3692 }; then
3693 :
3694else
3695 echo "$as_me: failed program was:" >&5
3696sed 's/^/| /' conftest.$ac_ext >&5
3697
3698 # Broken: fails on valid input.
3699continue
3700fi
3701
3702rm -f conftest.err conftest.$ac_ext
3703
3704 # OK, works on sane cases. Now check whether nonexistent headers
3705 # can be detected and how.
3706 cat >conftest.$ac_ext <<_ACEOF
3707/* confdefs.h. */
3708_ACEOF
3709cat confdefs.h >>conftest.$ac_ext
3710cat >>conftest.$ac_ext <<_ACEOF
3711/* end confdefs.h. */
3712#include <ac_nonexistent.h>
3713_ACEOF
3714if { (ac_try="$ac_cpp conftest.$ac_ext"
3715case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718esac
3719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3721 ac_status=$?
3722 grep -v '^ *+' conftest.er1 >conftest.err
3723 rm -f conftest.er1
3724 cat conftest.err >&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); } >/dev/null && {
3727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3728 test ! -s conftest.err
3729 }; then
3730 # Broken: success on invalid input.
3731continue
3732else
3733 echo "$as_me: failed program was:" >&5
3734sed 's/^/| /' conftest.$ac_ext >&5
3735
3736 # Passes both tests.
3737ac_preproc_ok=:
3738break
3739fi
3740
3741rm -f conftest.err conftest.$ac_ext
3742
3743done
3744# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3745rm -f conftest.err conftest.$ac_ext
3746if $ac_preproc_ok; then
3747 :
3748else
3749 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3750See \`config.log' for more details." >&5
3751echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3752See \`config.log' for more details." >&2;}
3753 { (exit 1); exit 1; }; }
3754fi
3755
3756ac_ext=c
3757ac_cpp='$CPP $CPPFLAGS'
3758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761
3762# Find a good install program. We prefer a C program (faster),
3763# so one script is as good as another. But avoid the broken or
3764# incompatible versions:
3765# SysV /etc/install, /usr/sbin/install
3766# SunOS /usr/etc/install
3767# IRIX /sbin/install
3768# AIX /bin/install
3769# AmigaOS /C/install, which installs bootblocks on floppy discs
3770# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3771# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3772# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3773# OS/2's system install, which has a completely different semantic
3774# ./install, which can be erroneously created by make from ./install.sh.
3775{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3776echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3777if test -z "$INSTALL"; then
3778if test "${ac_cv_path_install+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782for as_dir in $PATH
3783do
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 # Account for people who put trailing slashes in PATH elements.
3787case $as_dir/ in
3788 ./ | .// | /cC/* | \
3789 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3790 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3791 /usr/ucb/* ) ;;
3792 *)
3793 # OSF1 and SCO ODT 3.0 have their own names for install.
3794 # Don't use installbsd from OSF since it installs stuff as root
3795 # by default.
3796 for ac_prog in ginstall scoinst install; do
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3799 if test $ac_prog = install &&
3800 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3801 # AIX install. It has an incompatible calling convention.
3802 :
3803 elif test $ac_prog = install &&
3804 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3805 # program-specific install script used by HP pwplus--don't use.
3806 :
3807 else
3808 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3809 break 3
3810 fi
3811 fi
3812 done
3813 done
3814 ;;
3815esac
3816done
3817IFS=$as_save_IFS
3818
3819
3820fi
3821 if test "${ac_cv_path_install+set}" = set; then
3822 INSTALL=$ac_cv_path_install
3823 else
3824 # As a last resort, use the slow shell script. Don't cache a
3825 # value for INSTALL within a source directory, because that will
3826 # break other packages using the cache if that directory is
3827 # removed, or if the value is a relative name.
3828 INSTALL=$ac_install_sh
3829 fi
3830fi
3831{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3832echo "${ECHO_T}$INSTALL" >&6; }
3833
3834# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3835# It thinks the first close brace ends the variable substitution.
3836test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3837
3838test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3839
3840test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3841
3842{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3843echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3844LN_S=$as_ln_s
3845if test "$LN_S" = "ln -s"; then
3846 { echo "$as_me:$LINENO: result: yes" >&5
3847echo "${ECHO_T}yes" >&6; }
3848else
3849 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3850echo "${ECHO_T}no, using $LN_S" >&6; }
3851fi
3852
3853{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3854echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3855set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3856if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858else
3859 cat >conftest.make <<\_ACEOF
3860SHELL = /bin/sh
3861all:
3862 @echo '@@@%%%=$(MAKE)=@@@%%%'
3863_ACEOF
3864# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3865case `${MAKE-make} -f conftest.make 2>/dev/null` in
3866 *@@@%%%=?*=@@@%%%*)
3867 eval ac_cv_prog_make_${ac_make}_set=yes;;
3868 *)
3869 eval ac_cv_prog_make_${ac_make}_set=no;;
3870esac
3871rm -f conftest.make
3872fi
3873if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3874 { echo "$as_me:$LINENO: result: yes" >&5
3875echo "${ECHO_T}yes" >&6; }
3876 SET_MAKE=
3877else
3878 { echo "$as_me:$LINENO: result: no" >&5
3879echo "${ECHO_T}no" >&6; }
3880 SET_MAKE="MAKE=${MAKE-make}"
3881fi
3882
5c706339
AK
3883case `pwd` in
3884 *\ * | *\ *)
3885 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3886echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3887esac
3888
3889
3890
3891macro_version='2.2.4'
3892macro_revision='1.2976'
3893
b9668ba4
AK
3894
3895
b9668ba4
AK
3896
3897
b9668ba4
AK
3898
3899
5c706339
AK
3900
3901
3902
3903
3904
3905
3906ltmain="$ac_aux_dir/ltmain.sh"
3907
b9668ba4
AK
3908# Make sure we can run config.sub.
3909$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3910 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3911echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3912 { (exit 1); exit 1; }; }
3913
3914{ echo "$as_me:$LINENO: checking build system type" >&5
3915echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3916if test "${ac_cv_build+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
3919 ac_build_alias=$build_alias
3920test "x$ac_build_alias" = x &&
3921 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3922test "x$ac_build_alias" = x &&
3923 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3924echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3925 { (exit 1); exit 1; }; }
3926ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3927 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3928echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3929 { (exit 1); exit 1; }; }
3930
3931fi
3932{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3933echo "${ECHO_T}$ac_cv_build" >&6; }
3934case $ac_cv_build in
3935*-*-*) ;;
3936*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3937echo "$as_me: error: invalid value of canonical build" >&2;}
3938 { (exit 1); exit 1; }; };;
3939esac
3940build=$ac_cv_build
3941ac_save_IFS=$IFS; IFS='-'
3942set x $ac_cv_build
3943shift
3944build_cpu=$1
3945build_vendor=$2
3946shift; shift
3947# Remember, the first character of IFS is used to create $*,
3948# except with old shells:
3949build_os=$*
3950IFS=$ac_save_IFS
3951case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3952
3953
3954{ echo "$as_me:$LINENO: checking host system type" >&5
3955echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3956if test "${ac_cv_host+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3958else
3959 if test "x$host_alias" = x; then
3960 ac_cv_host=$ac_cv_build
3961else
3962 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3963 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3964echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3965 { (exit 1); exit 1; }; }
3966fi
3967
3968fi
3969{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3970echo "${ECHO_T}$ac_cv_host" >&6; }
3971case $ac_cv_host in
3972*-*-*) ;;
3973*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3974echo "$as_me: error: invalid value of canonical host" >&2;}
3975 { (exit 1); exit 1; }; };;
3976esac
3977host=$ac_cv_host
3978ac_save_IFS=$IFS; IFS='-'
3979set x $ac_cv_host
3980shift
3981host_cpu=$1
3982host_vendor=$2
3983shift; shift
3984# Remember, the first character of IFS is used to create $*,
3985# except with old shells:
3986host_os=$*
3987IFS=$ac_save_IFS
3988case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3989
3990
3991{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3992echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5c706339 3993if test "${ac_cv_path_SED+set}" = set; then
b9668ba4
AK
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995else
5c706339
AK
3996 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3997 for ac_i in 1 2 3 4 5 6 7; do
3998 ac_script="$ac_script$as_nl$ac_script"
3999 done
4000 echo "$ac_script" | sed 99q >conftest.sed
4001 $as_unset ac_script || ac_script=
4002 # Extract the first word of "sed gsed" to use in msg output
4003if test -z "$SED"; then
4004set dummy sed gsed; ac_prog_name=$2
4005if test "${ac_cv_path_SED+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4007else
4008 ac_path_SED_found=false
4009# Loop through the user's path and test for each of PROGNAME-LIST
b9668ba4
AK
4010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011for as_dir in $PATH
4012do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
5c706339
AK
4015 for ac_prog in sed gsed; do
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4018 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4019 # Check for GNU ac_path_SED and select it if it is found.
4020 # Check for GNU $ac_path_SED
4021case `"$ac_path_SED" --version 2>&1` in
4022*GNU*)
4023 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4024*)
4025 ac_count=0
4026 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4027 while :
4028 do
4029 cat "conftest.in" "conftest.in" >"conftest.tmp"
4030 mv "conftest.tmp" "conftest.in"
4031 cp "conftest.in" "conftest.nl"
4032 echo '' >> "conftest.nl"
4033 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4035 ac_count=`expr $ac_count + 1`
4036 if test $ac_count -gt ${ac_path_SED_max-0}; then
4037 # Best one so far, save it but keep looking for a better one
4038 ac_cv_path_SED="$ac_path_SED"
4039 ac_path_SED_max=$ac_count
b9668ba4 4040 fi
5c706339
AK
4041 # 10*(2^10) chars as input seems more than enough
4042 test $ac_count -gt 10 && break
b9668ba4 4043 done
5c706339
AK
4044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4045esac
4046
4047
4048 $ac_path_SED_found && break 3
4049 done
4050done
4051
b9668ba4 4052done
5c706339
AK
4053IFS=$as_save_IFS
4054
4055
4056fi
4057
4058SED="$ac_cv_path_SED"
4059if test -z "$SED"; then
4060 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4061echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4062 { (exit 1); exit 1; }; }
4063fi
4064
4065else
4066 ac_cv_path_SED=$SED
4067fi
b9668ba4
AK
4068
4069fi
5c706339
AK
4070{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4071echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4072 SED="$ac_cv_path_SED"
4073 rm -f conftest.sed
4074
4075test -z "$SED" && SED=sed
4076Xsed="$SED -e 1s/^X//"
4077
4078
4079
4080
4081
4082
4083
4084
4085
b9668ba4 4086
b9668ba4
AK
4087
4088{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4089echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4090if test "${ac_cv_path_GREP+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4092else
4093 # Extract the first word of "grep ggrep" to use in msg output
4094if test -z "$GREP"; then
4095set dummy grep ggrep; ac_prog_name=$2
4096if test "${ac_cv_path_GREP+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4098else
4099 ac_path_GREP_found=false
4100# Loop through the user's path and test for each of PROGNAME-LIST
4101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4103do
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
4106 for ac_prog in grep ggrep; do
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4109 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4110 # Check for GNU ac_path_GREP and select it if it is found.
4111 # Check for GNU $ac_path_GREP
4112case `"$ac_path_GREP" --version 2>&1` in
4113*GNU*)
4114 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4115*)
4116 ac_count=0
4117 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4118 while :
4119 do
4120 cat "conftest.in" "conftest.in" >"conftest.tmp"
4121 mv "conftest.tmp" "conftest.in"
4122 cp "conftest.in" "conftest.nl"
4123 echo 'GREP' >> "conftest.nl"
4124 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4126 ac_count=`expr $ac_count + 1`
4127 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4128 # Best one so far, save it but keep looking for a better one
4129 ac_cv_path_GREP="$ac_path_GREP"
4130 ac_path_GREP_max=$ac_count
4131 fi
4132 # 10*(2^10) chars as input seems more than enough
4133 test $ac_count -gt 10 && break
4134 done
4135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4136esac
4137
4138
4139 $ac_path_GREP_found && break 3
4140 done
4141done
4142
4143done
4144IFS=$as_save_IFS
4145
4146
4147fi
4148
4149GREP="$ac_cv_path_GREP"
4150if test -z "$GREP"; then
4151 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4152echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4153 { (exit 1); exit 1; }; }
4154fi
4155
4156else
4157 ac_cv_path_GREP=$GREP
4158fi
4159
4160
4161fi
4162{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4163echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4164 GREP="$ac_cv_path_GREP"
4165
4166
4167{ echo "$as_me:$LINENO: checking for egrep" >&5
4168echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4169if test "${ac_cv_path_EGREP+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171else
4172 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4173 then ac_cv_path_EGREP="$GREP -E"
4174 else
4175 # Extract the first word of "egrep" to use in msg output
4176if test -z "$EGREP"; then
4177set dummy egrep; ac_prog_name=$2
4178if test "${ac_cv_path_EGREP+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180else
4181 ac_path_EGREP_found=false
4182# Loop through the user's path and test for each of PROGNAME-LIST
4183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4185do
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_prog in egrep; do
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4191 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4192 # Check for GNU ac_path_EGREP and select it if it is found.
4193 # Check for GNU $ac_path_EGREP
4194case `"$ac_path_EGREP" --version 2>&1` in
4195*GNU*)
4196 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4197*)
4198 ac_count=0
4199 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4200 while :
4201 do
4202 cat "conftest.in" "conftest.in" >"conftest.tmp"
4203 mv "conftest.tmp" "conftest.in"
4204 cp "conftest.in" "conftest.nl"
4205 echo 'EGREP' >> "conftest.nl"
4206 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4208 ac_count=`expr $ac_count + 1`
4209 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4210 # Best one so far, save it but keep looking for a better one
4211 ac_cv_path_EGREP="$ac_path_EGREP"
4212 ac_path_EGREP_max=$ac_count
4213 fi
4214 # 10*(2^10) chars as input seems more than enough
4215 test $ac_count -gt 10 && break
4216 done
4217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4218esac
4219
4220
4221 $ac_path_EGREP_found && break 3
4222 done
4223done
4224
4225done
4226IFS=$as_save_IFS
4227
4228
4229fi
4230
4231EGREP="$ac_cv_path_EGREP"
4232if test -z "$EGREP"; then
4233 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4234echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4235 { (exit 1); exit 1; }; }
4236fi
4237
4238else
4239 ac_cv_path_EGREP=$EGREP
4240fi
4241
4242
4243 fi
4244fi
4245{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4246echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4247 EGREP="$ac_cv_path_EGREP"
4248
4249
5c706339
AK
4250{ echo "$as_me:$LINENO: checking for fgrep" >&5
4251echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4252if test "${ac_cv_path_FGREP+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4254else
4255 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4256 then ac_cv_path_FGREP="$GREP -F"
4257 else
4258 # Extract the first word of "fgrep" to use in msg output
4259if test -z "$FGREP"; then
4260set dummy fgrep; ac_prog_name=$2
4261if test "${ac_cv_path_FGREP+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263else
4264 ac_path_FGREP_found=false
4265# Loop through the user's path and test for each of PROGNAME-LIST
4266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4268do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_prog in fgrep; do
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4274 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4275 # Check for GNU ac_path_FGREP and select it if it is found.
4276 # Check for GNU $ac_path_FGREP
4277case `"$ac_path_FGREP" --version 2>&1` in
4278*GNU*)
4279 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4280*)
4281 ac_count=0
4282 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4283 while :
4284 do
4285 cat "conftest.in" "conftest.in" >"conftest.tmp"
4286 mv "conftest.tmp" "conftest.in"
4287 cp "conftest.in" "conftest.nl"
4288 echo 'FGREP' >> "conftest.nl"
4289 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4291 ac_count=`expr $ac_count + 1`
4292 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4293 # Best one so far, save it but keep looking for a better one
4294 ac_cv_path_FGREP="$ac_path_FGREP"
4295 ac_path_FGREP_max=$ac_count
4296 fi
4297 # 10*(2^10) chars as input seems more than enough
4298 test $ac_count -gt 10 && break
4299 done
4300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4301esac
4302
4303
4304 $ac_path_FGREP_found && break 3
4305 done
4306done
4307
4308done
4309IFS=$as_save_IFS
4310
4311
4312fi
4313
4314FGREP="$ac_cv_path_FGREP"
4315if test -z "$FGREP"; then
4316 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4317echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4318 { (exit 1); exit 1; }; }
4319fi
b9668ba4 4320
b9668ba4 4321else
5c706339 4322 ac_cv_path_FGREP=$FGREP
b9668ba4
AK
4323fi
4324
5c706339
AK
4325
4326 fi
4327fi
4328{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4329echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4330 FGREP="$ac_cv_path_FGREP"
4331
4332
4333test -z "$GREP" && GREP=grep
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353# Check whether --with-gnu-ld was given.
4354if test "${with_gnu_ld+set}" = set; then
4355 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4356else
4357 with_gnu_ld=no
4358fi
4359
4360ac_prog=ld
4361if test "$GCC" = yes; then
b9668ba4
AK
4362 # Check if gcc -print-prog-name=ld gives a path.
4363 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4364echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4365 case $host in
4366 *-*-mingw*)
4367 # gcc leaves a trailing carriage return which upsets mingw
4368 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4369 *)
4370 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4371 esac
4372 case $ac_prog in
4373 # Accept absolute paths.
4374 [\\/]* | ?:[\\/]*)
4375 re_direlt='/[^/][^/]*/\.\./'
4376 # Canonicalize the pathname of ld
5c706339
AK
4377 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4378 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4379 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
b9668ba4
AK
4380 done
4381 test -z "$LD" && LD="$ac_prog"
4382 ;;
4383 "")
4384 # If it fails, then pretend we aren't using GCC.
4385 ac_prog=ld
4386 ;;
4387 *)
4388 # If it is relative, then search for the first ld in PATH.
4389 with_gnu_ld=unknown
4390 ;;
4391 esac
4392elif test "$with_gnu_ld" = yes; then
4393 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4394echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4395else
4396 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4397echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4398fi
4399if test "${lt_cv_path_LD+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401else
4402 if test -z "$LD"; then
4403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4404 for ac_dir in $PATH; do
4405 IFS="$lt_save_ifs"
4406 test -z "$ac_dir" && ac_dir=.
4407 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4408 lt_cv_path_LD="$ac_dir/$ac_prog"
4409 # Check to see if the program is GNU ld. I'd rather use --version,
4410 # but apparently some variants of GNU ld only accept -v.
4411 # Break only if it was the GNU/non-GNU ld that we prefer.
4412 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4413 *GNU* | *'with BFD'*)
4414 test "$with_gnu_ld" != no && break
4415 ;;
4416 *)
4417 test "$with_gnu_ld" != yes && break
4418 ;;
4419 esac
4420 fi
4421 done
4422 IFS="$lt_save_ifs"
4423else
4424 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4425fi
4426fi
4427
4428LD="$lt_cv_path_LD"
4429if test -n "$LD"; then
4430 { echo "$as_me:$LINENO: result: $LD" >&5
4431echo "${ECHO_T}$LD" >&6; }
4432else
4433 { echo "$as_me:$LINENO: result: no" >&5
4434echo "${ECHO_T}no" >&6; }
4435fi
4436test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4437echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4438 { (exit 1); exit 1; }; }
4439{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4440echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4441if test "${lt_cv_prog_gnu_ld+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443else
4444 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4445case `$LD -v 2>&1 </dev/null` in
4446*GNU* | *'with BFD'*)
4447 lt_cv_prog_gnu_ld=yes
4448 ;;
4449*)
4450 lt_cv_prog_gnu_ld=no
4451 ;;
4452esac
4453fi
4454{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4455echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4456with_gnu_ld=$lt_cv_prog_gnu_ld
4457
4458
b9668ba4 4459
5c706339
AK
4460
4461
4462
4463
4464
4465
4466{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4467echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
b9668ba4
AK
4468if test "${lt_cv_path_NM+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470else
4471 if test -n "$NM"; then
4472 # Let the user override the test.
4473 lt_cv_path_NM="$NM"
4474else
4475 lt_nm_to_check="${ac_tool_prefix}nm"
4476 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4477 lt_nm_to_check="$lt_nm_to_check nm"
4478 fi
4479 for lt_tmp_nm in $lt_nm_to_check; do
4480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4481 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4482 IFS="$lt_save_ifs"
4483 test -z "$ac_dir" && ac_dir=.
4484 tmp_nm="$ac_dir/$lt_tmp_nm"
4485 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4486 # Check to see if the nm accepts a BSD-compat flag.
4487 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4488 # nm: unknown option "B" ignored
4489 # Tru64's nm complains that /dev/null is an invalid object file
4490 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4491 */dev/null* | *'Invalid file or object type'*)
4492 lt_cv_path_NM="$tmp_nm -B"
4493 break
4494 ;;
4495 *)
4496 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4497 */dev/null*)
4498 lt_cv_path_NM="$tmp_nm -p"
4499 break
4500 ;;
4501 *)
4502 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4503 continue # so that we can try to find one that supports BSD flags
4504 ;;
4505 esac
4506 ;;
4507 esac
4508 fi
4509 done
4510 IFS="$lt_save_ifs"
4511 done
5c706339 4512 : ${lt_cv_path_NM=no}
b9668ba4
AK
4513fi
4514fi
4515{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4516echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5c706339
AK
4517if test "$lt_cv_path_NM" != "no"; then
4518 NM="$lt_cv_path_NM"
4519else
4520 # Didn't find any BSD compatible name lister, look for dumpbin.
4521 if test -n "$ac_tool_prefix"; then
4522 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4523 do
4524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4525set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4526{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528if test "${ac_cv_prog_DUMPBIN+set}" = set; then
b9668ba4
AK
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
5c706339
AK
4531 if test -n "$DUMPBIN"; then
4532 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4533else
4534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535for as_dir in $PATH
4536do
4537 IFS=$as_save_IFS
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4541 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 break 2
4544 fi
4545done
4546done
4547IFS=$as_save_IFS
b9668ba4 4548
5c706339
AK
4549fi
4550fi
4551DUMPBIN=$ac_cv_prog_DUMPBIN
4552if test -n "$DUMPBIN"; then
4553 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4554echo "${ECHO_T}$DUMPBIN" >&6; }
4555else
4556 { echo "$as_me:$LINENO: result: no" >&5
4557echo "${ECHO_T}no" >&6; }
4558fi
b9668ba4 4559
b9668ba4 4560
5c706339
AK
4561 test -n "$DUMPBIN" && break
4562 done
4563fi
4564if test -z "$DUMPBIN"; then
4565 ac_ct_DUMPBIN=$DUMPBIN
4566 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4567do
4568 # Extract the first word of "$ac_prog", so it can be a program name with args.
4569set dummy $ac_prog; ac_word=$2
4570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575 if test -n "$ac_ct_DUMPBIN"; then
4576 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4577else
4578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579for as_dir in $PATH
4580do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4588 fi
4589done
4590done
4591IFS=$as_save_IFS
b9668ba4 4592
5c706339
AK
4593fi
4594fi
4595ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4596if test -n "$ac_ct_DUMPBIN"; then
4597 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4598echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4599else
4600 { echo "$as_me:$LINENO: result: no" >&5
4601echo "${ECHO_T}no" >&6; }
4602fi
b9668ba4 4603
b9668ba4 4604
5c706339
AK
4605 test -n "$ac_ct_DUMPBIN" && break
4606done
b9668ba4 4607
5c706339
AK
4608 if test "x$ac_ct_DUMPBIN" = x; then
4609 DUMPBIN=":"
b9668ba4 4610 else
5c706339
AK
4611 case $cross_compiling:$ac_tool_warned in
4612yes:)
4613{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4614whose name does not start with the host triplet. If you think this
4615configuration is useful to you, please write to autoconf@gnu.org." >&5
4616echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4617whose name does not start with the host triplet. If you think this
4618configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4619ac_tool_warned=yes ;;
4620esac
4621 DUMPBIN=$ac_ct_DUMPBIN
b9668ba4 4622 fi
5c706339 4623fi
b9668ba4 4624
b9668ba4 4625
5c706339
AK
4626 if test "$DUMPBIN" != ":"; then
4627 NM="$DUMPBIN"
4628 fi
4629fi
4630test -z "$NM" && NM=nm
b9668ba4 4631
b9668ba4 4632
b9668ba4 4633
b9668ba4 4634
b9668ba4 4635
b9668ba4 4636
5c706339
AK
4637{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4638echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4639if test "${lt_cv_nm_interface+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4641else
4642 lt_cv_nm_interface="BSD nm"
4643 echo "int some_variable = 0;" > conftest.$ac_ext
4644 (eval echo "\"\$as_me:4644: $ac_compile\"" >&5)
4645 (eval "$ac_compile" 2>conftest.err)
4646 cat conftest.err >&5
4647 (eval echo "\"\$as_me:4647: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4648 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4649 cat conftest.err >&5
4650 (eval echo "\"\$as_me:4650: output\"" >&5)
4651 cat conftest.out >&5
4652 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4653 lt_cv_nm_interface="MS dumpbin"
b9668ba4 4654 fi
5c706339
AK
4655 rm -f conftest*
4656fi
4657{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4658echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
b9668ba4 4659
5c706339
AK
4660# find the maximum length of command line arguments
4661{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4662echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4663if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665else
4666 i=0
4667 teststring="ABCD"
b9668ba4 4668
5c706339
AK
4669 case $build_os in
4670 msdosdjgpp*)
4671 # On DJGPP, this test can blow up pretty badly due to problems in libc
4672 # (any single argument exceeding 2000 bytes causes a buffer overrun
4673 # during glob expansion). Even if it were fixed, the result of this
4674 # check would be larger than it should be.
4675 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4676 ;;
b9668ba4 4677
5c706339
AK
4678 gnu*)
4679 # Under GNU Hurd, this test is not required because there is
4680 # no limit to the length of command line arguments.
4681 # Libtool will interpret -1 as no limit whatsoever
4682 lt_cv_sys_max_cmd_len=-1;
b9668ba4 4683 ;;
5c706339
AK
4684
4685 cygwin* | mingw*)
4686 # On Win9x/ME, this test blows up -- it succeeds, but takes
4687 # about 5 minutes as the teststring grows exponentially.
4688 # Worse, since 9x/ME are not pre-emptively multitasking,
4689 # you end up with a "frozen" computer, even though with patience
4690 # the test eventually succeeds (with a max line length of 256k).
4691 # Instead, let's just punt: use the minimum linelength reported by
4692 # all of the supported platforms: 8192 (on NT/2K/XP).
4693 lt_cv_sys_max_cmd_len=8192;
b9668ba4 4694 ;;
5c706339
AK
4695
4696 amigaos*)
4697 # On AmigaOS with pdksh, this test takes hours, literally.
4698 # So we just punt and use a minimum line length of 8192.
4699 lt_cv_sys_max_cmd_len=8192;
b9668ba4 4700 ;;
5c706339
AK
4701
4702 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4703 # This has been around since 386BSD, at least. Likely further.
4704 if test -x /sbin/sysctl; then
4705 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4706 elif test -x /usr/sbin/sysctl; then
4707 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4708 else
4709 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4710 fi
4711 # And add a safety zone
4712 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4713 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
b9668ba4 4714 ;;
5c706339
AK
4715
4716 interix*)
4717 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4718 lt_cv_sys_max_cmd_len=196608
b9668ba4 4719 ;;
5c706339
AK
4720
4721 osf*)
4722 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4723 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4724 # nice to cause kernel panics so lets avoid the loop below.
4725 # First set a reasonable default.
4726 lt_cv_sys_max_cmd_len=16384
4727 #
4728 if test -x /sbin/sysconfig; then
4729 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4730 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4731 esac
4732 fi
4733 ;;
4734 sco3.2v5*)
4735 lt_cv_sys_max_cmd_len=102400
4736 ;;
4737 sysv5* | sco5v6* | sysv4.2uw2*)
4738 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4739 if test -n "$kargmax"; then
4740 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4741 else
4742 lt_cv_sys_max_cmd_len=32768
4743 fi
4744 ;;
4745 *)
4746 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4747 if test -n "$lt_cv_sys_max_cmd_len"; then
4748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4750 else
4751 # Make teststring a little bigger before we do anything with it.
4752 # a 1K string should be a reasonable start.
4753 for i in 1 2 3 4 5 6 7 8 ; do
4754 teststring=$teststring$teststring
4755 done
4756 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4757 # If test is not a shell built-in, we'll probably end up computing a
4758 # maximum length that is only half of the actual maximum length, but
4759 # we can't tell.
4760 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4761 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4762 test $i != 17 # 1/2 MB should be enough
4763 do
4764 i=`expr $i + 1`
4765 teststring=$teststring$teststring
4766 done
4767 # Only check the string length outside the loop.
4768 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4769 teststring=
4770 # Add a significant safety factor because C++ compilers can tack on
4771 # massive amounts of additional arguments before passing them to the
4772 # linker. It appears as though 1/2 is a usable value.
4773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4774 fi
b9668ba4
AK
4775 ;;
4776 esac
b9668ba4 4777
5c706339 4778fi
b9668ba4 4779
5c706339
AK
4780if test -n $lt_cv_sys_max_cmd_len ; then
4781 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4782echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4783else
4784 { echo "$as_me:$LINENO: result: none" >&5
4785echo "${ECHO_T}none" >&6; }
b9668ba4 4786fi
5c706339 4787max_cmd_len=$lt_cv_sys_max_cmd_len
b9668ba4
AK
4788
4789
4790
4791
b9668ba4 4792
b9668ba4 4793
5c706339
AK
4794: ${CP="cp -f"}
4795: ${MV="mv -f"}
4796: ${RM="rm -f"}
b9668ba4 4797
5c706339
AK
4798{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4799echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4800# Try some XSI features
4801xsi_shell=no
4802( _lt_dummy="a/b/c"
4803 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4804 = c,a/b,, \
4805 && eval 'test $(( 1 + 1 )) -eq 2 \
4806 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4807 && xsi_shell=yes
4808{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
4809echo "${ECHO_T}$xsi_shell" >&6; }
b9668ba4 4810
5c706339
AK
4811
4812{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4813echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4814lt_shell_append=no
4815( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4816 >/dev/null 2>&1 \
4817 && lt_shell_append=yes
4818{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4819echo "${ECHO_T}$lt_shell_append" >&6; }
4820
4821
4822if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4823 lt_unset=unset
4824else
4825 lt_unset=false
b9668ba4
AK
4826fi
4827
b9668ba4 4828
5c706339
AK
4829
4830
4831
4832# test EBCDIC or ASCII
4833case `echo X|tr X '\101'` in
4834 A) # ASCII based system
4835 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4836 lt_SP2NL='tr \040 \012'
4837 lt_NL2SP='tr \015\012 \040\040'
b9668ba4 4838 ;;
5c706339
AK
4839 *) # EBCDIC based system
4840 lt_SP2NL='tr \100 \n'
4841 lt_NL2SP='tr \r\n \100\100'
b9668ba4 4842 ;;
5c706339 4843esac
b9668ba4 4844
b9668ba4 4845
b9668ba4 4846
b9668ba4 4847
b9668ba4 4848
b9668ba4 4849
b9668ba4 4850
b9668ba4 4851
5c706339
AK
4852
4853{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4854echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4855if test "${lt_cv_ld_reload_flag+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857else
4858 lt_cv_ld_reload_flag='-r'
b9668ba4 4859fi
5c706339
AK
4860{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4861echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4862reload_flag=$lt_cv_ld_reload_flag
4863case $reload_flag in
4864"" | " "*) ;;
4865*) reload_flag=" $reload_flag" ;;
b9668ba4 4866esac
5c706339
AK
4867reload_cmds='$LD$reload_flag -o $output$reload_objs'
4868case $host_os in
4869 darwin*)
4870 if test "$GCC" = yes; then
4871 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4872 else
4873 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4874 fi
4875 ;;
b9668ba4 4876esac
b9668ba4 4877
b9668ba4 4878
b9668ba4 4879
b9668ba4 4880
b9668ba4 4881
b9668ba4 4882
b9668ba4 4883
b9668ba4 4884
b9668ba4 4885
b9668ba4 4886
5c706339
AK
4887{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4888echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4889if test "${lt_cv_deplibs_check_method+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
b9668ba4 4891else
5c706339
AK
4892 lt_cv_file_magic_cmd='$MAGIC_CMD'
4893lt_cv_file_magic_test_file=
4894lt_cv_deplibs_check_method='unknown'
4895# Need to set the preceding variable on all platforms that support
4896# interlibrary dependencies.
4897# 'none' -- dependencies not supported.
4898# `unknown' -- same as none, but documents that we really don't know.
4899# 'pass_all' -- all dependencies passed with no checks.
4900# 'test_compile' -- check by making test program.
4901# 'file_magic [[regex]]' -- check by looking for files in library path
4902# which responds to the $file_magic_cmd with a given extended regex.
4903# If you have `file' or equivalent on your system and you're not sure
4904# whether `pass_all' will *always* work, you probably want this one.
b9668ba4 4905
5c706339
AK
4906case $host_os in
4907aix[4-9]*)
4908 lt_cv_deplibs_check_method=pass_all
4909 ;;
b9668ba4 4910
5c706339
AK
4911beos*)
4912 lt_cv_deplibs_check_method=pass_all
4913 ;;
b9668ba4 4914
5c706339
AK
4915bsdi[45]*)
4916 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4917 lt_cv_file_magic_cmd='/usr/bin/file -L'
4918 lt_cv_file_magic_test_file=/shlib/libc.so
4919 ;;
b9668ba4 4920
5c706339
AK
4921cygwin*)
4922 # func_win32_libid is a shell function defined in ltmain.sh
4923 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4924 lt_cv_file_magic_cmd='func_win32_libid'
4925 ;;
b9668ba4 4926
5c706339
AK
4927mingw* | pw32*)
4928 # Base MSYS/MinGW do not provide the 'file' command needed by
4929 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4930 # unless we find 'file', for example because we are cross-compiling.
4931 if ( file / ) >/dev/null 2>&1; then
4932 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4933 lt_cv_file_magic_cmd='func_win32_libid'
4934 else
4935 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4936 lt_cv_file_magic_cmd='$OBJDUMP -f'
4937 fi
4938 ;;
b9668ba4 4939
5c706339
AK
4940darwin* | rhapsody*)
4941 lt_cv_deplibs_check_method=pass_all
4942 ;;
b9668ba4 4943
5c706339
AK
4944freebsd* | dragonfly*)
4945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4946 case $host_cpu in
4947 i*86 )
4948 # Not sure whether the presence of OpenBSD here was a mistake.
4949 # Let's accept both of them until this is cleared up.
4950 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4951 lt_cv_file_magic_cmd=/usr/bin/file
4952 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4953 ;;
4954 esac
4955 else
4956 lt_cv_deplibs_check_method=pass_all
4957 fi
4958 ;;
b9668ba4 4959
5c706339
AK
4960gnu*)
4961 lt_cv_deplibs_check_method=pass_all
4962 ;;
b9668ba4 4963
5c706339
AK
4964hpux10.20* | hpux11*)
4965 lt_cv_file_magic_cmd=/usr/bin/file
4966 case $host_cpu in
4967 ia64*)
4968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4969 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4970 ;;
4971 hppa*64*)
4972 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]'
4973 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4974 ;;
4975 *)
4976 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4977 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4978 ;;
4979 esac
4980 ;;
b9668ba4 4981
5c706339
AK
4982interix[3-9]*)
4983 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4984 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4985 ;;
b9668ba4 4986
5c706339
AK
4987irix5* | irix6* | nonstopux*)
4988 case $LD in
4989 *-32|*"-32 ") libmagic=32-bit;;
4990 *-n32|*"-n32 ") libmagic=N32;;
4991 *-64|*"-64 ") libmagic=64-bit;;
4992 *) libmagic=never-match;;
4993 esac
4994 lt_cv_deplibs_check_method=pass_all
4995 ;;
b9668ba4 4996
5c706339
AK
4997# This must be Linux ELF.
4998linux* | k*bsd*-gnu)
4999 lt_cv_deplibs_check_method=pass_all
5000 ;;
b9668ba4 5001
5c706339
AK
5002netbsd* | netbsdelf*-gnu)
5003 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5004 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5005 else
5006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5007 fi
5008 ;;
b9668ba4 5009
5c706339
AK
5010newos6*)
5011 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5012 lt_cv_file_magic_cmd=/usr/bin/file
5013 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5014 ;;
b9668ba4 5015
5c706339
AK
5016*nto* | *qnx*)
5017 lt_cv_deplibs_check_method=pass_all
5018 ;;
b9668ba4 5019
5c706339
AK
5020openbsd*)
5021 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5023 else
5024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5025 fi
5026 ;;
5027
5028osf3* | osf4* | osf5*)
5029 lt_cv_deplibs_check_method=pass_all
5030 ;;
5031
5032rdos*)
5033 lt_cv_deplibs_check_method=pass_all
5034 ;;
5035
5036solaris*)
5037 lt_cv_deplibs_check_method=pass_all
5038 ;;
5039
5040sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5041 lt_cv_deplibs_check_method=pass_all
5042 ;;
5043
5044sysv4 | sysv4.3*)
5045 case $host_vendor in
5046 motorola)
5047 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]'
5048 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5049 ;;
5050 ncr)
5051 lt_cv_deplibs_check_method=pass_all
5052 ;;
5053 sequent)
5054 lt_cv_file_magic_cmd='/bin/file'
5055 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5056 ;;
5057 sni)
5058 lt_cv_file_magic_cmd='/bin/file'
5059 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5060 lt_cv_file_magic_test_file=/lib/libc.so
5061 ;;
5062 siemens)
5063 lt_cv_deplibs_check_method=pass_all
5064 ;;
5065 pc)
5066 lt_cv_deplibs_check_method=pass_all
5067 ;;
5068 esac
5069 ;;
5070
5071tpf*)
5072 lt_cv_deplibs_check_method=pass_all
5073 ;;
b9668ba4 5074esac
b9668ba4 5075
b9668ba4 5076fi
5c706339
AK
5077{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5078echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5079file_magic_cmd=$lt_cv_file_magic_cmd
5080deplibs_check_method=$lt_cv_deplibs_check_method
5081test -z "$deplibs_check_method" && deplibs_check_method=unknown
b9668ba4 5082
b9668ba4 5083
b9668ba4 5084
b9668ba4
AK
5085
5086
5087
5c706339
AK
5088
5089
5090
5091
5092
5093
5094if test -n "$ac_tool_prefix"; then
5095 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5096set dummy ${ac_tool_prefix}ar; ac_word=$2
5097{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5099if test "${ac_cv_prog_AR+set}" = set; then
b9668ba4 5100 echo $ECHO_N "(cached) $ECHO_C" >&6
b9668ba4 5101else
5c706339
AK
5102 if test -n "$AR"; then
5103 ac_cv_prog_AR="$AR" # Let the user override the test.
b9668ba4 5104else
5c706339
AK
5105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106for as_dir in $PATH
5107do
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_prog_AR="${ac_tool_prefix}ar"
5113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5115 fi
5116done
5117done
5118IFS=$as_save_IFS
b9668ba4 5119
5c706339
AK
5120fi
5121fi
5122AR=$ac_cv_prog_AR
5123if test -n "$AR"; then
5124 { echo "$as_me:$LINENO: result: $AR" >&5
5125echo "${ECHO_T}$AR" >&6; }
5126else
5127 { echo "$as_me:$LINENO: result: no" >&5
5128echo "${ECHO_T}no" >&6; }
b9668ba4
AK
5129fi
5130
b9668ba4 5131
5c706339
AK
5132fi
5133if test -z "$ac_cv_prog_AR"; then
5134 ac_ct_AR=$AR
5135 # Extract the first word of "ar", so it can be a program name with args.
5136set dummy ar; ac_word=$2
5137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5139if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
b9668ba4 5141else
5c706339
AK
5142 if test -n "$ac_ct_AR"; then
5143 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5144else
5145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146for as_dir in $PATH
5147do
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_ac_ct_AR="ar"
5153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5155 fi
5156done
5157done
5158IFS=$as_save_IFS
b9668ba4 5159
5c706339
AK
5160fi
5161fi
5162ac_ct_AR=$ac_cv_prog_ac_ct_AR
5163if test -n "$ac_ct_AR"; then
5164 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5165echo "${ECHO_T}$ac_ct_AR" >&6; }
5166else
5167 { echo "$as_me:$LINENO: result: no" >&5
5168echo "${ECHO_T}no" >&6; }
b9668ba4
AK
5169fi
5170
5c706339
AK
5171 if test "x$ac_ct_AR" = x; then
5172 AR="false"
5173 else
5174 case $cross_compiling:$ac_tool_warned in
5175yes:)
5176{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5177whose name does not start with the host triplet. If you think this
5178configuration is useful to you, please write to autoconf@gnu.org." >&5
5179echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5180whose name does not start with the host triplet. If you think this
5181configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5182ac_tool_warned=yes ;;
b9668ba4 5183esac
5c706339
AK
5184 AR=$ac_ct_AR
5185 fi
b9668ba4 5186else
5c706339 5187 AR="$ac_cv_prog_AR"
b9668ba4 5188fi
b9668ba4 5189
5c706339
AK
5190test -z "$AR" && AR=ar
5191test -z "$AR_FLAGS" && AR_FLAGS=cru
b9668ba4 5192
b9668ba4 5193
b9668ba4 5194
5c706339
AK
5195
5196
5197
5198
5199
5200
5201
5202
5203if test -n "$ac_tool_prefix"; then
5204 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5205set dummy ${ac_tool_prefix}strip; ac_word=$2
b9668ba4
AK
5206{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5c706339 5208if test "${ac_cv_prog_STRIP+set}" = set; then
b9668ba4
AK
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210else
5c706339
AK
5211 if test -n "$STRIP"; then
5212 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
b9668ba4
AK
5213else
5214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH
5216do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5c706339 5221 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b9668ba4
AK
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5224 fi
5225done
5226done
5227IFS=$as_save_IFS
5228
5229fi
5230fi
5c706339
AK
5231STRIP=$ac_cv_prog_STRIP
5232if test -n "$STRIP"; then
5233 { echo "$as_me:$LINENO: result: $STRIP" >&5
5234echo "${ECHO_T}$STRIP" >&6; }
b9668ba4
AK
5235else
5236 { echo "$as_me:$LINENO: result: no" >&5
5237echo "${ECHO_T}no" >&6; }
5238fi
5239
5240
b9668ba4 5241fi
5c706339
AK
5242if test -z "$ac_cv_prog_STRIP"; then
5243 ac_ct_STRIP=$STRIP
5244 # Extract the first word of "strip", so it can be a program name with args.
5245set dummy strip; ac_word=$2
b9668ba4
AK
5246{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5c706339 5248if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
b9668ba4
AK
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5250else
5c706339
AK
5251 if test -n "$ac_ct_STRIP"; then
5252 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
b9668ba4
AK
5253else
5254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255for as_dir in $PATH
5256do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5c706339 5261 ac_cv_prog_ac_ct_STRIP="strip"
b9668ba4
AK
5262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5264 fi
5265done
5266done
5267IFS=$as_save_IFS
5268
5269fi
5270fi
5c706339
AK
5271ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5272if test -n "$ac_ct_STRIP"; then
5273 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5274echo "${ECHO_T}$ac_ct_STRIP" >&6; }
b9668ba4
AK
5275else
5276 { echo "$as_me:$LINENO: result: no" >&5
5277echo "${ECHO_T}no" >&6; }
5278fi
5279
5c706339
AK
5280 if test "x$ac_ct_STRIP" = x; then
5281 STRIP=":"
b9668ba4
AK
5282 else
5283 case $cross_compiling:$ac_tool_warned in
5284yes:)
5285{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5286whose name does not start with the host triplet. If you think this
5287configuration is useful to you, please write to autoconf@gnu.org." >&5
5288echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5289whose name does not start with the host triplet. If you think this
5290configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5291ac_tool_warned=yes ;;
5292esac
5c706339 5293 STRIP=$ac_ct_STRIP
b9668ba4 5294 fi
5c706339
AK
5295else
5296 STRIP="$ac_cv_prog_STRIP"
b9668ba4
AK
5297fi
5298
5c706339 5299test -z "$STRIP" && STRIP=:
b9668ba4 5300
b9668ba4 5301
b9668ba4 5302
b9668ba4 5303
b9668ba4 5304
b9668ba4 5305
5c706339
AK
5306if test -n "$ac_tool_prefix"; then
5307 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5308set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5311if test "${ac_cv_prog_RANLIB+set}" = set; then
b9668ba4
AK
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313else
5c706339
AK
5314 if test -n "$RANLIB"; then
5315 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
b9668ba4 5316else
5c706339
AK
5317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318for as_dir in $PATH
5319do
5320 IFS=$as_save_IFS
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5324 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 break 2
5327 fi
5328done
5329done
5330IFS=$as_save_IFS
b9668ba4 5331
5c706339
AK
5332fi
5333fi
5334RANLIB=$ac_cv_prog_RANLIB
5335if test -n "$RANLIB"; then
5336 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5337echo "${ECHO_T}$RANLIB" >&6; }
b9668ba4 5338else
5c706339
AK
5339 { echo "$as_me:$LINENO: result: no" >&5
5340echo "${ECHO_T}no" >&6; }
5341fi
b9668ba4 5342
b9668ba4 5343
5c706339
AK
5344fi
5345if test -z "$ac_cv_prog_RANLIB"; then
5346 ac_ct_RANLIB=$RANLIB
5347 # Extract the first word of "ranlib", so it can be a program name with args.
5348set dummy ranlib; ac_word=$2
5349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5351if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
b9668ba4 5353else
5c706339
AK
5354 if test -n "$ac_ct_RANLIB"; then
5355 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5356else
5357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358for as_dir in $PATH
5359do
5360 IFS=$as_save_IFS
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364 ac_cv_prog_ac_ct_RANLIB="ranlib"
5365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 break 2
5367 fi
5368done
5369done
5370IFS=$as_save_IFS
b9668ba4
AK
5371
5372fi
b9668ba4 5373fi
5c706339
AK
5374ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5375if test -n "$ac_ct_RANLIB"; then
5376 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5377echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5378else
5379 { echo "$as_me:$LINENO: result: no" >&5
5380echo "${ECHO_T}no" >&6; }
b9668ba4
AK
5381fi
5382
5c706339
AK
5383 if test "x$ac_ct_RANLIB" = x; then
5384 RANLIB=":"
b9668ba4 5385 else
5c706339
AK
5386 case $cross_compiling:$ac_tool_warned in
5387yes:)
5388{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5389whose name does not start with the host triplet. If you think this
5390configuration is useful to you, please write to autoconf@gnu.org." >&5
5391echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5392whose name does not start with the host triplet. If you think this
5393configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5394ac_tool_warned=yes ;;
5395esac
5396 RANLIB=$ac_ct_RANLIB
b9668ba4
AK
5397 fi
5398else
5c706339 5399 RANLIB="$ac_cv_prog_RANLIB"
b9668ba4 5400fi
b9668ba4 5401
5c706339 5402test -z "$RANLIB" && RANLIB=:
b9668ba4 5403
b9668ba4 5404
b9668ba4 5405
b9668ba4 5406
b9668ba4
AK
5407
5408
5c706339
AK
5409# Determine commands to create old-style static archives.
5410old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5411old_postinstall_cmds='chmod 644 $oldlib'
5412old_postuninstall_cmds=
b9668ba4 5413
5c706339
AK
5414if test -n "$RANLIB"; then
5415 case $host_os in
5416 openbsd*)
5417 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5418 ;;
5419 *)
5420 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5421 ;;
5422 esac
5423 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
b9668ba4
AK
5424fi
5425
5426
5427
5428
b9668ba4 5429
b9668ba4 5430
b9668ba4 5431
b9668ba4 5432
b9668ba4 5433
b9668ba4 5434
b9668ba4 5435
b9668ba4 5436
b9668ba4 5437
b9668ba4 5438
b9668ba4 5439
b9668ba4 5440
b9668ba4 5441
b9668ba4 5442
b9668ba4 5443
b9668ba4 5444
b9668ba4
AK
5445
5446
b9668ba4 5447
b9668ba4
AK
5448
5449
b9668ba4 5450
b9668ba4
AK
5451
5452
b9668ba4 5453
b9668ba4 5454
b9668ba4 5455
b9668ba4 5456
b9668ba4 5457
b9668ba4 5458
5c706339
AK
5459# If no C compiler was specified, use CC.
5460LTCC=${LTCC-"$CC"}
b9668ba4 5461
5c706339
AK
5462# If no C compiler flags were specified, use CFLAGS.
5463LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
b9668ba4 5464
5c706339
AK
5465# Allow CC to be a program name with arguments.
5466compiler=$CC
b9668ba4
AK
5467
5468
5469# Check for command to grab the raw symbol name followed by C symbol from nm.
5470{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5471echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5472if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474else
5475
5476# These are sane defaults that work on at least a few old systems.
5477# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5478
5479# Character class describing NM global symbol codes.
5480symcode='[BCDEGRST]'
5481
5482# Regexp to match symbols that can be accessed directly from C.
5483sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5484
b9668ba4
AK
5485# Define system-specific variables.
5486case $host_os in
5487aix*)
5488 symcode='[BCDT]'
5489 ;;
5490cygwin* | mingw* | pw32*)
5491 symcode='[ABCDGISTW]'
5492 ;;
5c706339 5493hpux*)
b9668ba4
AK
5494 if test "$host_cpu" = ia64; then
5495 symcode='[ABCDEGRST]'
5496 fi
b9668ba4
AK
5497 ;;
5498irix* | nonstopux*)
5499 symcode='[BCDEGRST]'
5500 ;;
5501osf*)
5502 symcode='[BCDEGQRST]'
5503 ;;
5504solaris*)
5505 symcode='[BDRT]'
5506 ;;
5507sco3.2v5*)
5508 symcode='[DT]'
5509 ;;
5510sysv4.2uw2*)
5511 symcode='[DT]'
5512 ;;
5513sysv5* | sco5v6* | unixware* | OpenUNIX*)
5514 symcode='[ABDT]'
5515 ;;
5516sysv4)
5517 symcode='[DFNSTU]'
5518 ;;
5519esac
5520
5c706339
AK
5521# If we're using GNU nm, then use its standard symbol codes.
5522case `$NM -V 2>&1` in
5523*GNU* | *'with BFD'*)
5524 symcode='[ABCDGIRSTW]' ;;
5525esac
5526
5527# Transform an extracted symbol line into a proper C declaration.
5528# Some systems (esp. on ia64) link data and code symbols differently,
5529# so use this general approach.
5530lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5531
5532# Transform an extracted symbol line into symbol name and symbol address
5533lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5534lt_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'"
5535
b9668ba4
AK
5536# Handle CRLF in mingw tool chain
5537opt_cr=
5538case $build_os in
5539mingw*)
5c706339 5540 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
b9668ba4
AK
5541 ;;
5542esac
5543
5c706339 5544# Try without a prefix underscore, then with it.
b9668ba4
AK
5545for ac_symprfx in "" "_"; do
5546
5547 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5548 symxfrm="\\1 $ac_symprfx\\2 \\2"
5549
5550 # Write the raw and C identifiers.
5c706339
AK
5551 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5552 # Fake it for dumpbin and say T for any non-static function
5553 # and D for any global variable.
5554 # Also find C++ and __fastcall symbols from MSVC++,
5555 # which start with @ or ?.
5556 lt_cv_sys_global_symbol_pipe="$AWK '"\
5557" {last_section=section; section=\$ 3};"\
5558" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5559" \$ 0!~/External *\|/{next};"\
5560" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5561" {if(hide[section]) next};"\
5562" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5563" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5564" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5565" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5566" ' prfx=^$ac_symprfx"
5567 else
5568 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5569 fi
b9668ba4
AK
5570
5571 # Check to see that the pipe works correctly.
5572 pipe_works=no
5573
5574 rm -f conftest*
5c706339 5575 cat > conftest.$ac_ext <<_LT_EOF
b9668ba4
AK
5576#ifdef __cplusplus
5577extern "C" {
5578#endif
5579char nm_test_var;
5c706339
AK
5580void nm_test_func(void);
5581void nm_test_func(void){}
b9668ba4
AK
5582#ifdef __cplusplus
5583}
5584#endif
5585int main(){nm_test_var='a';nm_test_func();return(0);}
5c706339 5586_LT_EOF
b9668ba4
AK
5587
5588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589 (eval $ac_compile) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; then
5593 # Now try to grab the symbols.
5594 nlist=conftest.nm
5595 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5596 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } && test -s "$nlist"; then
5600 # Try sorting and uniquifying the output.
5601 if sort "$nlist" | uniq > "$nlist"T; then
5602 mv -f "$nlist"T "$nlist"
5603 else
5604 rm -f "$nlist"T
5605 fi
5606
5607 # Make sure that we snagged all the symbols we need.
5c706339
AK
5608 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5609 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5610 cat <<_LT_EOF > conftest.$ac_ext
b9668ba4
AK
5611#ifdef __cplusplus
5612extern "C" {
5613#endif
5614
5c706339 5615_LT_EOF
b9668ba4 5616 # Now generate the symbol file.
5c706339 5617 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
b9668ba4 5618
5c706339 5619 cat <<_LT_EOF >> conftest.$ac_ext
b9668ba4 5620
5c706339 5621/* The mapping between symbol names and symbols. */
b9668ba4
AK
5622const struct {
5623 const char *name;
5c706339 5624 void *address;
b9668ba4 5625}
5c706339 5626lt__PROGRAM__LTX_preloaded_symbols[] =
b9668ba4 5627{
5c706339
AK
5628 { "@PROGRAM@", (void *) 0 },
5629_LT_EOF
5630 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5631 cat <<\_LT_EOF >> conftest.$ac_ext
5632 {0, (void *) 0}
b9668ba4
AK
5633};
5634
5c706339
AK
5635/* This works around a problem in FreeBSD linker */
5636#ifdef FREEBSD_WORKAROUND
5637static const void *lt_preloaded_setup() {
5638 return lt__PROGRAM__LTX_preloaded_symbols;
5639}
5640#endif
5641
b9668ba4
AK
5642#ifdef __cplusplus
5643}
5644#endif
5c706339 5645_LT_EOF
b9668ba4
AK
5646 # Now try linking the two files.
5647 mv conftest.$ac_objext conftstm.$ac_objext
5648 lt_save_LIBS="$LIBS"
5649 lt_save_CFLAGS="$CFLAGS"
5650 LIBS="conftstm.$ac_objext"
5651 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5653 (eval $ac_link) 2>&5
5654 ac_status=$?
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5657 pipe_works=yes
5658 fi
5659 LIBS="$lt_save_LIBS"
5660 CFLAGS="$lt_save_CFLAGS"
5661 else
5662 echo "cannot find nm_test_func in $nlist" >&5
5663 fi
5664 else
5665 echo "cannot find nm_test_var in $nlist" >&5
5666 fi
5667 else
5668 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5669 fi
5670 else
5671 echo "$progname: failed program was:" >&5
5672 cat conftest.$ac_ext >&5
5673 fi
5c706339 5674 rm -rf conftest* conftst*
b9668ba4
AK
5675
5676 # Do not use the global_symbol_pipe unless it works.
5677 if test "$pipe_works" = yes; then
5678 break
5679 else
5680 lt_cv_sys_global_symbol_pipe=
5681 fi
5682done
5683
5684fi
5685
5686if test -z "$lt_cv_sys_global_symbol_pipe"; then
5687 lt_cv_sys_global_symbol_to_cdecl=
5688fi
5689if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5690 { echo "$as_me:$LINENO: result: failed" >&5
5691echo "${ECHO_T}failed" >&6; }
5692else
5693 { echo "$as_me:$LINENO: result: ok" >&5
5694echo "${ECHO_T}ok" >&6; }
5695fi
5696
b9668ba4
AK
5697
5698
5699
5700
5701
5c706339
AK
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719# Check whether --enable-libtool-lock was given.
5720if test "${enable_libtool_lock+set}" = set; then
5721 enableval=$enable_libtool_lock;
5722fi
5723
5724test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5725
5726# Some flags need to be propagated to the compiler or linker for good
5727# libtool support.
5728case $host in
5729ia64-*-hpux*)
5730 # Find out which ABI we are using.
5731 echo 'int i;' > conftest.$ac_ext
5732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5733 (eval $ac_compile) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; then
5737 case `/usr/bin/file conftest.$ac_objext` in
5738 *ELF-32*)
5739 HPUX_IA64_MODE="32"
5740 ;;
5741 *ELF-64*)
5742 HPUX_IA64_MODE="64"
5743 ;;
5744 esac
5745 fi
5746 rm -rf conftest*
5747 ;;
5748*-*-irix6*)
5749 # Find out which ABI we are using.
5750 echo '#line 5750 "configure"' > conftest.$ac_ext
5751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5752 (eval $ac_compile) 2>&5
5753 ac_status=$?
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; then
5756 if test "$lt_cv_prog_gnu_ld" = yes; then
5757 case `/usr/bin/file conftest.$ac_objext` in
5758 *32-bit*)
5759 LD="${LD-ld} -melf32bsmip"
5760 ;;
5761 *N32*)
5762 LD="${LD-ld} -melf32bmipn32"
5763 ;;
5764 *64-bit*)
5765 LD="${LD-ld} -melf64bmip"
5766 ;;
5767 esac
5768 else
5769 case `/usr/bin/file conftest.$ac_objext` in
5770 *32-bit*)
5771 LD="${LD-ld} -32"
5772 ;;
5773 *N32*)
5774 LD="${LD-ld} -n32"
5775 ;;
5776 *64-bit*)
5777 LD="${LD-ld} -64"
5778 ;;
5779 esac
5780 fi
b9668ba4 5781 fi
5c706339 5782 rm -rf conftest*
b9668ba4 5783 ;;
b9668ba4 5784
5c706339
AK
5785x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5786s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5787 # Find out which ABI we are using.
5788 echo 'int i;' > conftest.$ac_ext
5789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5790 (eval $ac_compile) 2>&5
5791 ac_status=$?
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; then
5794 case `/usr/bin/file conftest.o` in
5795 *32-bit*)
5796 case $host in
5797 x86_64-*kfreebsd*-gnu)
5798 LD="${LD-ld} -m elf_i386_fbsd"
5799 ;;
5800 x86_64-*linux*)
5801 LD="${LD-ld} -m elf_i386"
5802 ;;
5803 ppc64-*linux*|powerpc64-*linux*)
5804 LD="${LD-ld} -m elf32ppclinux"
5805 ;;
5806 s390x-*linux*)
5807 LD="${LD-ld} -m elf_s390"
5808 ;;
5809 sparc64-*linux*)
5810 LD="${LD-ld} -m elf32_sparc"
5811 ;;
5812 esac
5813 ;;
5814 *64-bit*)
5815 case $host in
5816 x86_64-*kfreebsd*-gnu)
5817 LD="${LD-ld} -m elf_x86_64_fbsd"
5818 ;;
5819 x86_64-*linux*)
5820 LD="${LD-ld} -m elf_x86_64"
5821 ;;
5822 ppc*-*linux*|powerpc*-*linux*)
5823 LD="${LD-ld} -m elf64ppc"
5824 ;;
5825 s390*-*linux*|s390*-*tpf*)
5826 LD="${LD-ld} -m elf64_s390"
5827 ;;
5828 sparc*-*linux*)
5829 LD="${LD-ld} -m elf64_sparc"
5830 ;;
5831 esac
5832 ;;
5833 esac
5834 fi
5835 rm -rf conftest*
5836 ;;
b9668ba4 5837
5c706339
AK
5838*-*-sco3.2v5*)
5839 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5840 SAVE_CFLAGS="$CFLAGS"
5841 CFLAGS="$CFLAGS -belf"
5842 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5843echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5844if test "${lt_cv_cc_needs_belf+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846else
5847 ac_ext=c
5848ac_cpp='$CPP $CPPFLAGS'
5849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5851ac_compiler_gnu=$ac_cv_c_compiler_gnu
b9668ba4 5852
5c706339
AK
5853 cat >conftest.$ac_ext <<_ACEOF
5854/* confdefs.h. */
5855_ACEOF
5856cat confdefs.h >>conftest.$ac_ext
5857cat >>conftest.$ac_ext <<_ACEOF
5858/* end confdefs.h. */
b9668ba4 5859
5c706339
AK
5860int
5861main ()
5862{
b9668ba4 5863
5c706339
AK
5864 ;
5865 return 0;
5866}
5867_ACEOF
5868rm -f conftest.$ac_objext conftest$ac_exeext
5869if { (ac_try="$ac_link"
5870case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873esac
5874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_link") 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } && {
5882 test -z "$ac_c_werror_flag" ||
5883 test ! -s conftest.err
5884 } && test -s conftest$ac_exeext &&
5885 $as_test_x conftest$ac_exeext; then
5886 lt_cv_cc_needs_belf=yes
5887else
5888 echo "$as_me: failed program was:" >&5
5889sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 5890
5c706339
AK
5891 lt_cv_cc_needs_belf=no
5892fi
b9668ba4 5893
5c706339
AK
5894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5895 conftest$ac_exeext conftest.$ac_ext
5896 ac_ext=c
5897ac_cpp='$CPP $CPPFLAGS'
5898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5900ac_compiler_gnu=$ac_cv_c_compiler_gnu
b9668ba4 5901
5c706339
AK
5902fi
5903{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5904echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5905 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5906 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5907 CFLAGS="$SAVE_CFLAGS"
5908 fi
5909 ;;
5910sparc*-*solaris*)
5911 # Find out which ABI we are using.
5912 echo 'int i;' > conftest.$ac_ext
5913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5914 (eval $ac_compile) 2>&5
5915 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; then
5918 case `/usr/bin/file conftest.o` in
5919 *64-bit*)
5920 case $lt_cv_prog_gnu_ld in
5921 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5922 *)
5923 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5924 LD="${LD-ld} -64"
5925 fi
5926 ;;
5927 esac
5928 ;;
5929 esac
5930 fi
5931 rm -rf conftest*
5932 ;;
5933esac
5934
5935need_locks="$enable_libtool_lock"
5936
5937
5938 case $host_os in
5939 rhapsody* | darwin*)
5940 if test -n "$ac_tool_prefix"; then
5941 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5942set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
b9668ba4
AK
5943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5c706339 5945if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
b9668ba4
AK
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947else
5c706339
AK
5948 if test -n "$DSYMUTIL"; then
5949 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
b9668ba4
AK
5950else
5951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952for as_dir in $PATH
5953do
5954 IFS=$as_save_IFS
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5c706339 5958 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
b9668ba4
AK
5959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 break 2
5961 fi
5962done
5963done
5964IFS=$as_save_IFS
5965
5966fi
5967fi
5c706339
AK
5968DSYMUTIL=$ac_cv_prog_DSYMUTIL
5969if test -n "$DSYMUTIL"; then
5970 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5971echo "${ECHO_T}$DSYMUTIL" >&6; }
b9668ba4
AK
5972else
5973 { echo "$as_me:$LINENO: result: no" >&5
5974echo "${ECHO_T}no" >&6; }
5975fi
5976
5977
5978fi
5c706339
AK
5979if test -z "$ac_cv_prog_DSYMUTIL"; then
5980 ac_ct_DSYMUTIL=$DSYMUTIL
5981 # Extract the first word of "dsymutil", so it can be a program name with args.
5982set dummy dsymutil; ac_word=$2
b9668ba4
AK
5983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5c706339 5985if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
b9668ba4
AK
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5987else
5c706339
AK
5988 if test -n "$ac_ct_DSYMUTIL"; then
5989 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
b9668ba4
AK
5990else
5991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992for as_dir in $PATH
5993do
5994 IFS=$as_save_IFS
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5c706339 5998 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
b9668ba4
AK
5999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 break 2
6001 fi
6002done
6003done
6004IFS=$as_save_IFS
6005
6006fi
6007fi
5c706339
AK
6008ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6009if test -n "$ac_ct_DSYMUTIL"; then
6010 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6011echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
b9668ba4
AK
6012else
6013 { echo "$as_me:$LINENO: result: no" >&5
6014echo "${ECHO_T}no" >&6; }
6015fi
6016
5c706339
AK
6017 if test "x$ac_ct_DSYMUTIL" = x; then
6018 DSYMUTIL=":"
b9668ba4
AK
6019 else
6020 case $cross_compiling:$ac_tool_warned in
6021yes:)
6022{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6023whose name does not start with the host triplet. If you think this
6024configuration is useful to you, please write to autoconf@gnu.org." >&5
6025echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6026whose name does not start with the host triplet. If you think this
6027configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6028ac_tool_warned=yes ;;
6029esac
5c706339 6030 DSYMUTIL=$ac_ct_DSYMUTIL
b9668ba4
AK
6031 fi
6032else
5c706339 6033 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
b9668ba4
AK
6034fi
6035
5c706339
AK
6036 if test -n "$ac_tool_prefix"; then
6037 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6038set dummy ${ac_tool_prefix}nmedit; ac_word=$2
b9668ba4
AK
6039{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5c706339 6041if test "${ac_cv_prog_NMEDIT+set}" = set; then
b9668ba4
AK
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6043else
5c706339
AK
6044 if test -n "$NMEDIT"; then
6045 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
b9668ba4
AK
6046else
6047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048for as_dir in $PATH
6049do
6050 IFS=$as_save_IFS
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5c706339 6054 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
b9668ba4
AK
6055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6056 break 2
6057 fi
6058done
6059done
6060IFS=$as_save_IFS
6061
6062fi
6063fi
5c706339
AK
6064NMEDIT=$ac_cv_prog_NMEDIT
6065if test -n "$NMEDIT"; then
6066 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6067echo "${ECHO_T}$NMEDIT" >&6; }
b9668ba4
AK
6068else
6069 { echo "$as_me:$LINENO: result: no" >&5
6070echo "${ECHO_T}no" >&6; }
6071fi
6072
6073
6074fi
5c706339
AK
6075if test -z "$ac_cv_prog_NMEDIT"; then
6076 ac_ct_NMEDIT=$NMEDIT
6077 # Extract the first word of "nmedit", so it can be a program name with args.
6078set dummy nmedit; ac_word=$2
b9668ba4
AK
6079{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5c706339 6081if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
b9668ba4
AK
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083else
5c706339
AK
6084 if test -n "$ac_ct_NMEDIT"; then
6085 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
b9668ba4
AK
6086else
6087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088for as_dir in $PATH
6089do
6090 IFS=$as_save_IFS
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5c706339 6094 ac_cv_prog_ac_ct_NMEDIT="nmedit"
b9668ba4
AK
6095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 break 2
6097 fi
6098done
6099done
6100IFS=$as_save_IFS
6101
6102fi
6103fi
5c706339
AK
6104ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6105if test -n "$ac_ct_NMEDIT"; then
6106 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6107echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
b9668ba4
AK
6108else
6109 { echo "$as_me:$LINENO: result: no" >&5
6110echo "${ECHO_T}no" >&6; }
6111fi
6112
5c706339
AK
6113 if test "x$ac_ct_NMEDIT" = x; then
6114 NMEDIT=":"
b9668ba4
AK
6115 else
6116 case $cross_compiling:$ac_tool_warned in
6117yes:)
6118{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6119whose name does not start with the host triplet. If you think this
6120configuration is useful to you, please write to autoconf@gnu.org." >&5
6121echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6122whose name does not start with the host triplet. If you think this
6123configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6124ac_tool_warned=yes ;;
6125esac
5c706339 6126 NMEDIT=$ac_ct_NMEDIT
b9668ba4
AK
6127 fi
6128else
5c706339 6129 NMEDIT="$ac_cv_prog_NMEDIT"
b9668ba4
AK
6130fi
6131
5c706339
AK
6132 if test -n "$ac_tool_prefix"; then
6133 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6134set dummy ${ac_tool_prefix}lipo; ac_word=$2
b9668ba4
AK
6135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5c706339 6137if test "${ac_cv_prog_LIPO+set}" = set; then
b9668ba4
AK
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6139else
5c706339
AK
6140 if test -n "$LIPO"; then
6141 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
b9668ba4
AK
6142else
6143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144for as_dir in $PATH
6145do
6146 IFS=$as_save_IFS
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5c706339 6150 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
b9668ba4
AK
6151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 break 2
6153 fi
6154done
6155done
6156IFS=$as_save_IFS
6157
6158fi
6159fi
5c706339
AK
6160LIPO=$ac_cv_prog_LIPO
6161if test -n "$LIPO"; then
6162 { echo "$as_me:$LINENO: result: $LIPO" >&5
6163echo "${ECHO_T}$LIPO" >&6; }
b9668ba4
AK
6164else
6165 { echo "$as_me:$LINENO: result: no" >&5
6166echo "${ECHO_T}no" >&6; }
6167fi
6168
6169
6170fi
5c706339
AK
6171if test -z "$ac_cv_prog_LIPO"; then
6172 ac_ct_LIPO=$LIPO
6173 # Extract the first word of "lipo", so it can be a program name with args.
6174set dummy lipo; ac_word=$2
b9668ba4
AK
6175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5c706339 6177if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
b9668ba4
AK
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6179else
5c706339
AK
6180 if test -n "$ac_ct_LIPO"; then
6181 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
b9668ba4
AK
6182else
6183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184for as_dir in $PATH
6185do
6186 IFS=$as_save_IFS
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5c706339 6190 ac_cv_prog_ac_ct_LIPO="lipo"
b9668ba4
AK
6191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 break 2
6193 fi
6194done
6195done
6196IFS=$as_save_IFS
6197
6198fi
6199fi
5c706339
AK
6200ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6201if test -n "$ac_ct_LIPO"; then
6202 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6203echo "${ECHO_T}$ac_ct_LIPO" >&6; }
b9668ba4
AK
6204else
6205 { echo "$as_me:$LINENO: result: no" >&5
6206echo "${ECHO_T}no" >&6; }
6207fi
6208
5c706339
AK
6209 if test "x$ac_ct_LIPO" = x; then
6210 LIPO=":"
b9668ba4
AK
6211 else
6212 case $cross_compiling:$ac_tool_warned in
6213yes:)
6214{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6215whose name does not start with the host triplet. If you think this
6216configuration is useful to you, please write to autoconf@gnu.org." >&5
6217echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6218whose name does not start with the host triplet. If you think this
6219configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6220ac_tool_warned=yes ;;
6221esac
5c706339 6222 LIPO=$ac_ct_LIPO
b9668ba4
AK
6223 fi
6224else
5c706339 6225 LIPO="$ac_cv_prog_LIPO"
b9668ba4
AK
6226fi
6227
5c706339
AK
6228 if test -n "$ac_tool_prefix"; then
6229 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6230set dummy ${ac_tool_prefix}otool; ac_word=$2
6231{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6233if test "${ac_cv_prog_OTOOL+set}" = set; then
b9668ba4
AK
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6235else
5c706339
AK
6236 if test -n "$OTOOL"; then
6237 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6238else
6239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240for as_dir in $PATH
6241do
6242 IFS=$as_save_IFS
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6246 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 break 2
6249 fi
6250done
6251done
6252IFS=$as_save_IFS
b9668ba4 6253
b9668ba4 6254fi
5c706339
AK
6255fi
6256OTOOL=$ac_cv_prog_OTOOL
6257if test -n "$OTOOL"; then
6258 { echo "$as_me:$LINENO: result: $OTOOL" >&5
6259echo "${ECHO_T}$OTOOL" >&6; }
b9668ba4
AK
6260else
6261 { echo "$as_me:$LINENO: result: no" >&5
6262echo "${ECHO_T}no" >&6; }
6263fi
6264
5c706339
AK
6265
6266fi
6267if test -z "$ac_cv_prog_OTOOL"; then
6268 ac_ct_OTOOL=$OTOOL
6269 # Extract the first word of "otool", so it can be a program name with args.
6270set dummy otool; ac_word=$2
6271{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6273if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
b9668ba4
AK
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6275else
5c706339
AK
6276 if test -n "$ac_ct_OTOOL"; then
6277 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6278else
6279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280for as_dir in $PATH
6281do
6282 IFS=$as_save_IFS
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6286 ac_cv_prog_ac_ct_OTOOL="otool"
6287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6288 break 2
6289 fi
6290done
6291done
6292IFS=$as_save_IFS
b9668ba4 6293
b9668ba4 6294fi
5c706339
AK
6295fi
6296ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6297if test -n "$ac_ct_OTOOL"; then
6298 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6299echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
b9668ba4
AK
6300else
6301 { echo "$as_me:$LINENO: result: no" >&5
6302echo "${ECHO_T}no" >&6; }
6303fi
6304
5c706339
AK
6305 if test "x$ac_ct_OTOOL" = x; then
6306 OTOOL=":"
b9668ba4 6307 else
5c706339
AK
6308 case $cross_compiling:$ac_tool_warned in
6309yes:)
6310{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6311whose name does not start with the host triplet. If you think this
6312configuration is useful to you, please write to autoconf@gnu.org." >&5
6313echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6314whose name does not start with the host triplet. If you think this
6315configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6316ac_tool_warned=yes ;;
b9668ba4 6317esac
5c706339
AK
6318 OTOOL=$ac_ct_OTOOL
6319 fi
6320else
6321 OTOOL="$ac_cv_prog_OTOOL"
b9668ba4
AK
6322fi
6323
5c706339
AK
6324 if test -n "$ac_tool_prefix"; then
6325 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6326set dummy ${ac_tool_prefix}otool64; ac_word=$2
6327{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6329if test "${ac_cv_prog_OTOOL64+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6331else
6332 if test -n "$OTOOL64"; then
6333 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6334else
6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336for as_dir in $PATH
6337do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6342 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6345 fi
6346done
6347done
6348IFS=$as_save_IFS
b9668ba4 6349
5c706339
AK
6350fi
6351fi
6352OTOOL64=$ac_cv_prog_OTOOL64
6353if test -n "$OTOOL64"; then
6354 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6355echo "${ECHO_T}$OTOOL64" >&6; }
b9668ba4 6356else
5c706339
AK
6357 { echo "$as_me:$LINENO: result: no" >&5
6358echo "${ECHO_T}no" >&6; }
b9668ba4
AK
6359fi
6360
b9668ba4 6361
5c706339
AK
6362fi
6363if test -z "$ac_cv_prog_OTOOL64"; then
6364 ac_ct_OTOOL64=$OTOOL64
6365 # Extract the first word of "otool64", so it can be a program name with args.
6366set dummy otool64; ac_word=$2
6367{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6369if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6371else
6372 if test -n "$ac_ct_OTOOL64"; then
6373 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6374else
6375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376for as_dir in $PATH
6377do
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6382 ac_cv_prog_ac_ct_OTOOL64="otool64"
6383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 break 2
6385 fi
6386done
6387done
6388IFS=$as_save_IFS
b9668ba4 6389
5c706339
AK
6390fi
6391fi
6392ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6393if test -n "$ac_ct_OTOOL64"; then
6394 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6395echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6396else
6397 { echo "$as_me:$LINENO: result: no" >&5
6398echo "${ECHO_T}no" >&6; }
6399fi
b9668ba4 6400
5c706339
AK
6401 if test "x$ac_ct_OTOOL64" = x; then
6402 OTOOL64=":"
6403 else
6404 case $cross_compiling:$ac_tool_warned in
6405yes:)
6406{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6407whose name does not start with the host triplet. If you think this
6408configuration is useful to you, please write to autoconf@gnu.org." >&5
6409echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6410whose name does not start with the host triplet. If you think this
6411configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6412ac_tool_warned=yes ;;
6413esac
6414 OTOOL64=$ac_ct_OTOOL64
6415 fi
6416else
6417 OTOOL64="$ac_cv_prog_OTOOL64"
6418fi
b9668ba4 6419
b9668ba4 6420
b9668ba4 6421
b9668ba4
AK
6422
6423
b9668ba4 6424
b9668ba4 6425
b9668ba4
AK
6426
6427
b9668ba4 6428
b9668ba4
AK
6429
6430
6431
b9668ba4 6432
b9668ba4
AK
6433
6434
b9668ba4 6435
b9668ba4 6436
b9668ba4 6437
b9668ba4 6438
b9668ba4 6439
b9668ba4 6440
b9668ba4 6441
b9668ba4 6442
b9668ba4 6443
b9668ba4 6444
b9668ba4 6445
5c706339
AK
6446 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6447echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6448if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6450else
6451 lt_cv_apple_cc_single_mod=no
6452 if test -z "${LT_MULTI_MODULE}"; then
6453 # By default we will add the -single_module flag. You can override
6454 # by either setting the environment variable LT_MULTI_MODULE
6455 # non-empty at configure time, or by adding -multi_module to the
6456 # link flags.
6457 rm -rf libconftest.dylib*
6458 echo "int foo(void){return 1;}" > conftest.c
6459 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6460-dynamiclib -Wl,-single_module conftest.c" >&5
6461 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6462 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6463 _lt_result=$?
6464 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6465 lt_cv_apple_cc_single_mod=yes
6466 else
6467 cat conftest.err >&5
6468 fi
6469 rm -rf libconftest.dylib*
6470 rm -f conftest.*
6471 fi
6472fi
6473{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6474echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6475 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6476echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6477if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479else
6480 lt_cv_ld_exported_symbols_list=no
6481 save_LDFLAGS=$LDFLAGS
6482 echo "_main" > conftest.sym
6483 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6484 cat >conftest.$ac_ext <<_ACEOF
6485/* confdefs.h. */
6486_ACEOF
6487cat confdefs.h >>conftest.$ac_ext
6488cat >>conftest.$ac_ext <<_ACEOF
6489/* end confdefs.h. */
b9668ba4 6490
5c706339
AK
6491int
6492main ()
6493{
b9668ba4 6494
5c706339
AK
6495 ;
6496 return 0;
6497}
6498_ACEOF
6499rm -f conftest.$ac_objext conftest$ac_exeext
6500if { (ac_try="$ac_link"
6501case "(($ac_try" in
6502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503 *) ac_try_echo=$ac_try;;
6504esac
6505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6506 (eval "$ac_link") 2>conftest.er1
6507 ac_status=$?
6508 grep -v '^ *+' conftest.er1 >conftest.err
6509 rm -f conftest.er1
6510 cat conftest.err >&5
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); } && {
6513 test -z "$ac_c_werror_flag" ||
6514 test ! -s conftest.err
6515 } && test -s conftest$ac_exeext &&
6516 $as_test_x conftest$ac_exeext; then
6517 lt_cv_ld_exported_symbols_list=yes
6518else
6519 echo "$as_me: failed program was:" >&5
6520sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 6521
5c706339
AK
6522 lt_cv_ld_exported_symbols_list=no
6523fi
b9668ba4 6524
5c706339
AK
6525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6526 conftest$ac_exeext conftest.$ac_ext
6527 LDFLAGS="$save_LDFLAGS"
b9668ba4 6528
5c706339
AK
6529fi
6530{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6531echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
b9668ba4 6532 case $host_os in
5c706339
AK
6533 rhapsody* | darwin1.[012])
6534 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6535 darwin1.*)
6536 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6537 darwin*) # darwin 5.x on
6538 # if running on 10.5 or later, the deployment target defaults
6539 # to the OS version, if on x86, and 10.4, the deployment
6540 # target defaults to 10.4. Don't you love it?
6541 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6542 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6543 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6544 10.[012]*)
6545 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6546 10.*)
6547 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
b9668ba4 6548 esac
5c706339
AK
6549 ;;
6550 esac
6551 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6552 _lt_dar_single_mod='$single_module'
6553 fi
6554 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6555 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6556 else
6557 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6558 fi
6559 if test "$DSYMUTIL" != ":"; then
6560 _lt_dsymutil='~$DSYMUTIL $lib || :'
6561 else
6562 _lt_dsymutil=
6563 fi
6564 ;;
6565 esac
b9668ba4 6566
b9668ba4 6567
5c706339
AK
6568{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6569echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6570if test "${ac_cv_header_stdc+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572else
6573 cat >conftest.$ac_ext <<_ACEOF
6574/* confdefs.h. */
6575_ACEOF
6576cat confdefs.h >>conftest.$ac_ext
6577cat >>conftest.$ac_ext <<_ACEOF
6578/* end confdefs.h. */
6579#include <stdlib.h>
6580#include <stdarg.h>
6581#include <string.h>
6582#include <float.h>
b9668ba4 6583
5c706339
AK
6584int
6585main ()
6586{
b9668ba4 6587
5c706339
AK
6588 ;
6589 return 0;
6590}
6591_ACEOF
6592rm -f conftest.$ac_objext
6593if { (ac_try="$ac_compile"
6594case "(($ac_try" in
6595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6597esac
6598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_compile") 2>conftest.er1
6600 ac_status=$?
6601 grep -v '^ *+' conftest.er1 >conftest.err
6602 rm -f conftest.er1
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } && {
6606 test -z "$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6608 } && test -s conftest.$ac_objext; then
6609 ac_cv_header_stdc=yes
6610else
6611 echo "$as_me: failed program was:" >&5
6612sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 6613
5c706339
AK
6614 ac_cv_header_stdc=no
6615fi
b9668ba4 6616
5c706339 6617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b9668ba4 6618
5c706339
AK
6619if test $ac_cv_header_stdc = yes; then
6620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6621 cat >conftest.$ac_ext <<_ACEOF
6622/* confdefs.h. */
6623_ACEOF
6624cat confdefs.h >>conftest.$ac_ext
6625cat >>conftest.$ac_ext <<_ACEOF
6626/* end confdefs.h. */
6627#include <string.h>
b9668ba4 6628
5c706339
AK
6629_ACEOF
6630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6631 $EGREP "memchr" >/dev/null 2>&1; then
6632 :
b9668ba4 6633else
5c706339 6634 ac_cv_header_stdc=no
b9668ba4 6635fi
5c706339 6636rm -f conftest*
b9668ba4 6637
b9668ba4
AK
6638fi
6639
5c706339
AK
6640if test $ac_cv_header_stdc = yes; then
6641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6642 cat >conftest.$ac_ext <<_ACEOF
6643/* confdefs.h. */
6644_ACEOF
6645cat confdefs.h >>conftest.$ac_ext
6646cat >>conftest.$ac_ext <<_ACEOF
6647/* end confdefs.h. */
6648#include <stdlib.h>
b9668ba4 6649
5c706339
AK
6650_ACEOF
6651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6652 $EGREP "free" >/dev/null 2>&1; then
6653 :
b9668ba4 6654else
5c706339 6655 ac_cv_header_stdc=no
b9668ba4 6656fi
5c706339 6657rm -f conftest*
b9668ba4 6658
b9668ba4
AK
6659fi
6660
5c706339
AK
6661if test $ac_cv_header_stdc = yes; then
6662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6663 if test "$cross_compiling" = yes; then
6664 :
b9668ba4 6665else
5c706339
AK
6666 cat >conftest.$ac_ext <<_ACEOF
6667/* confdefs.h. */
6668_ACEOF
6669cat confdefs.h >>conftest.$ac_ext
6670cat >>conftest.$ac_ext <<_ACEOF
6671/* end confdefs.h. */
6672#include <ctype.h>
6673#include <stdlib.h>
6674#if ((' ' & 0x0FF) == 0x020)
6675# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6676# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6677#else
6678# define ISLOWER(c) \
6679 (('a' <= (c) && (c) <= 'i') \
6680 || ('j' <= (c) && (c) <= 'r') \
6681 || ('s' <= (c) && (c) <= 'z'))
6682# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6683#endif
b9668ba4 6684
5c706339
AK
6685#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6686int
6687main ()
6688{
6689 int i;
6690 for (i = 0; i < 256; i++)
6691 if (XOR (islower (i), ISLOWER (i))
6692 || toupper (i) != TOUPPER (i))
6693 return 2;
6694 return 0;
6695}
6696_ACEOF
6697rm -f conftest$ac_exeext
6698if { (ac_try="$ac_link"
6699case "(($ac_try" in
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6702esac
6703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_link") 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6708 { (case "(($ac_try" in
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6711esac
6712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6713 (eval "$ac_try") 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6717 :
6718else
6719 echo "$as_me: program exited with status $ac_status" >&5
6720echo "$as_me: failed program was:" >&5
6721sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 6722
5c706339
AK
6723( exit $ac_status )
6724ac_cv_header_stdc=no
6725fi
6726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b9668ba4 6727fi
b9668ba4
AK
6728
6729
b9668ba4 6730fi
5c706339
AK
6731fi
6732{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6733echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6734if test $ac_cv_header_stdc = yes; then
b9668ba4 6735
5c706339
AK
6736cat >>confdefs.h <<\_ACEOF
6737#define STDC_HEADERS 1
6738_ACEOF
b9668ba4 6739
5c706339 6740fi
b9668ba4 6741
5c706339 6742# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b9668ba4 6743
b9668ba4 6744
b9668ba4 6745
b9668ba4 6746
b9668ba4 6747
b9668ba4 6748
b9668ba4 6749
b9668ba4 6750
b9668ba4 6751
5c706339
AK
6752for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6753 inttypes.h stdint.h unistd.h
6754do
6755as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6756{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760else
6761 cat >conftest.$ac_ext <<_ACEOF
6762/* confdefs.h. */
6763_ACEOF
6764cat confdefs.h >>conftest.$ac_ext
6765cat >>conftest.$ac_ext <<_ACEOF
6766/* end confdefs.h. */
6767$ac_includes_default
b9668ba4 6768
5c706339
AK
6769#include <$ac_header>
6770_ACEOF
6771rm -f conftest.$ac_objext
6772if { (ac_try="$ac_compile"
6773case "(($ac_try" in
6774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6775 *) ac_try_echo=$ac_try;;
6776esac
6777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6778 (eval "$ac_compile") 2>conftest.er1
6779 ac_status=$?
6780 grep -v '^ *+' conftest.er1 >conftest.err
6781 rm -f conftest.er1
6782 cat conftest.err >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } && {
6785 test -z "$ac_c_werror_flag" ||
6786 test ! -s conftest.err
6787 } && test -s conftest.$ac_objext; then
6788 eval "$as_ac_Header=yes"
6789else
6790 echo "$as_me: failed program was:" >&5
6791sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 6792
5c706339
AK
6793 eval "$as_ac_Header=no"
6794fi
b9668ba4 6795
5c706339
AK
6796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797fi
6798ac_res=`eval echo '${'$as_ac_Header'}'`
6799 { echo "$as_me:$LINENO: result: $ac_res" >&5
6800echo "${ECHO_T}$ac_res" >&6; }
6801if test `eval echo '${'$as_ac_Header'}'` = yes; then
6802 cat >>confdefs.h <<_ACEOF
6803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6804_ACEOF
b9668ba4 6805
5c706339 6806fi
b9668ba4 6807
5c706339 6808done
b9668ba4 6809
b9668ba4 6810
b9668ba4 6811
5c706339
AK
6812for ac_header in dlfcn.h
6813do
6814as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6815{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819else
6820 cat >conftest.$ac_ext <<_ACEOF
b9668ba4
AK
6821/* confdefs.h. */
6822_ACEOF
6823cat confdefs.h >>conftest.$ac_ext
6824cat >>conftest.$ac_ext <<_ACEOF
6825/* end confdefs.h. */
5c706339 6826$ac_includes_default
b9668ba4 6827
5c706339 6828#include <$ac_header>
b9668ba4 6829_ACEOF
5c706339
AK
6830rm -f conftest.$ac_objext
6831if { (ac_try="$ac_compile"
b9668ba4
AK
6832case "(($ac_try" in
6833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6834 *) ac_try_echo=$ac_try;;
6835esac
6836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5c706339 6837 (eval "$ac_compile") 2>conftest.er1
b9668ba4
AK
6838 ac_status=$?
6839 grep -v '^ *+' conftest.er1 >conftest.err
6840 rm -f conftest.er1
6841 cat conftest.err >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } && {
6844 test -z "$ac_c_werror_flag" ||
6845 test ! -s conftest.err
5c706339
AK
6846 } && test -s conftest.$ac_objext; then
6847 eval "$as_ac_Header=yes"
b9668ba4
AK
6848else
6849 echo "$as_me: failed program was:" >&5
6850sed 's/^/| /' conftest.$ac_ext >&5
6851
5c706339
AK
6852 eval "$as_ac_Header=no"
6853fi
b9668ba4 6854
5c706339 6855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b9668ba4 6856fi
5c706339
AK
6857ac_res=`eval echo '${'$as_ac_Header'}'`
6858 { echo "$as_me:$LINENO: result: $ac_res" >&5
6859echo "${ECHO_T}$ac_res" >&6; }
6860if test `eval echo '${'$as_ac_Header'}'` = yes; then
6861 cat >>confdefs.h <<_ACEOF
6862#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6863_ACEOF
b9668ba4 6864
5c706339 6865fi
b9668ba4 6866
5c706339 6867done
b9668ba4 6868
b9668ba4 6869
b9668ba4 6870
5c706339 6871# Set options
b9668ba4
AK
6872
6873
b9668ba4 6874
5c706339 6875 enable_dlopen=no
b9668ba4 6876
5c706339
AK
6877
6878 enable_win32_dll=no
6879
6880
6881 # Check whether --enable-shared was given.
6882if test "${enable_shared+set}" = set; then
6883 enableval=$enable_shared; p=${PACKAGE-default}
6884 case $enableval in
6885 yes) enable_shared=yes ;;
6886 no) enable_shared=no ;;
6887 *)
6888 enable_shared=no
6889 # Look at the argument we got. We use all the common list separators.
6890 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6891 for pkg in $enableval; do
6892 IFS="$lt_save_ifs"
6893 if test "X$pkg" = "X$p"; then
6894 enable_shared=yes
b9668ba4 6895 fi
5c706339
AK
6896 done
6897 IFS="$lt_save_ifs"
b9668ba4 6898 ;;
5c706339
AK
6899 esac
6900else
6901 enable_shared=yes
6902fi
b9668ba4 6903
b9668ba4 6904
b9668ba4 6905
b9668ba4 6906
b9668ba4 6907
b9668ba4 6908
b9668ba4 6909
b9668ba4 6910
b9668ba4 6911
5c706339
AK
6912 # Check whether --enable-static was given.
6913if test "${enable_static+set}" = set; then
6914 enableval=$enable_static; p=${PACKAGE-default}
6915 case $enableval in
6916 yes) enable_static=yes ;;
6917 no) enable_static=no ;;
6918 *)
6919 enable_static=no
6920 # Look at the argument we got. We use all the common list separators.
6921 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6922 for pkg in $enableval; do
6923 IFS="$lt_save_ifs"
6924 if test "X$pkg" = "X$p"; then
6925 enable_static=yes
6926 fi
6927 done
6928 IFS="$lt_save_ifs"
b9668ba4 6929 ;;
5c706339
AK
6930 esac
6931else
6932 enable_static=yes
6933fi
b9668ba4 6934
b9668ba4 6935
b9668ba4 6936
b9668ba4 6937
b9668ba4 6938
b9668ba4 6939
b9668ba4 6940
b9668ba4 6941
b9668ba4 6942
b9668ba4 6943
5c706339
AK
6944# Check whether --with-pic was given.
6945if test "${with_pic+set}" = set; then
6946 withval=$with_pic; pic_mode="$withval"
6947else
6948 pic_mode=default
6949fi
b9668ba4 6950
b9668ba4 6951
5c706339 6952test -z "$pic_mode" && pic_mode=default
b9668ba4 6953
b9668ba4 6954
b9668ba4 6955
b9668ba4 6956
b9668ba4 6957
b9668ba4 6958
b9668ba4 6959
5c706339
AK
6960 # Check whether --enable-fast-install was given.
6961if test "${enable_fast_install+set}" = set; then
6962 enableval=$enable_fast_install; p=${PACKAGE-default}
6963 case $enableval in
6964 yes) enable_fast_install=yes ;;
6965 no) enable_fast_install=no ;;
6966 *)
6967 enable_fast_install=no
6968 # Look at the argument we got. We use all the common list separators.
6969 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6970 for pkg in $enableval; do
6971 IFS="$lt_save_ifs"
6972 if test "X$pkg" = "X$p"; then
6973 enable_fast_install=yes
6974 fi
6975 done
6976 IFS="$lt_save_ifs"
b9668ba4 6977 ;;
5c706339
AK
6978 esac
6979else
6980 enable_fast_install=yes
6981fi
b9668ba4 6982
b9668ba4 6983
b9668ba4 6984
b9668ba4 6985
b9668ba4 6986
b9668ba4 6987
b9668ba4 6988
b9668ba4 6989
b9668ba4 6990
b9668ba4 6991
b9668ba4 6992
5c706339
AK
6993# This can be used to rebuild libtool when needed
6994LIBTOOL_DEPS="$ltmain"
b9668ba4 6995
5c706339
AK
6996# Always use our own libtool.
6997LIBTOOL='$(SHELL) $(top_builddir)/libtool'
b9668ba4 6998
5c706339
AK
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023test -z "$LN_S" && LN_S="ln -s"
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038if test -n "${ZSH_VERSION+set}" ; then
7039 setopt NO_GLOB_SUBST
7040fi
7041
7042{ echo "$as_me:$LINENO: checking for objdir" >&5
7043echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7044if test "${lt_cv_objdir+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
b9668ba4 7046else
5c706339
AK
7047 rm -f .libs 2>/dev/null
7048mkdir .libs 2>/dev/null
7049if test -d .libs; then
7050 lt_cv_objdir=.libs
7051else
7052 # MS-DOS does not allow filenames that begin with a dot.
7053 lt_cv_objdir=_libs
b9668ba4 7054fi
5c706339
AK
7055rmdir .libs 2>/dev/null
7056fi
7057{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7058echo "${ECHO_T}$lt_cv_objdir" >&6; }
7059objdir=$lt_cv_objdir
b9668ba4 7060
b9668ba4 7061
b9668ba4 7062
b9668ba4 7063
b9668ba4 7064
5c706339
AK
7065cat >>confdefs.h <<_ACEOF
7066#define LT_OBJDIR "$lt_cv_objdir/"
7067_ACEOF
b9668ba4 7068
b9668ba4 7069
b9668ba4 7070
b9668ba4 7071
b9668ba4 7072
b9668ba4 7073
b9668ba4 7074
5c706339
AK
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085case $host_os in
7086aix3*)
7087 # AIX sometimes has problems with the GCC collect2 program. For some
7088 # reason, if we set the COLLECT_NAMES environment variable, the problems
7089 # vanish in a puff of smoke.
7090 if test "X${COLLECT_NAMES+set}" != Xset; then
7091 COLLECT_NAMES=
7092 export COLLECT_NAMES
b9668ba4 7093 fi
b9668ba4 7094 ;;
5c706339 7095esac
b9668ba4 7096
5c706339
AK
7097# Sed substitution that helps us do robust quoting. It backslashifies
7098# metacharacters that are still active within double-quoted strings.
7099sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
b9668ba4 7100
5c706339
AK
7101# Same as above, but do not quote variable references.
7102double_quote_subst='s/\(["`\\]\)/\\\1/g'
b9668ba4 7103
5c706339
AK
7104# Sed substitution to delay expansion of an escaped shell variable in a
7105# double_quote_subst'ed string.
7106delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
b9668ba4 7107
5c706339
AK
7108# Sed substitution to delay expansion of an escaped single quote.
7109delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
b9668ba4 7110
5c706339
AK
7111# Sed substitution to avoid accidental globbing in evaled expressions
7112no_glob_subst='s/\*/\\\*/g'
b9668ba4 7113
5c706339
AK
7114# Global variables:
7115ofile=libtool
7116can_build_shared=yes
b9668ba4 7117
5c706339
AK
7118# All known linkers require a `.a' archive for static linking (except MSVC,
7119# which needs '.lib').
7120libext=a
b9668ba4 7121
5c706339 7122with_gnu_ld="$lt_cv_prog_gnu_ld"
b9668ba4 7123
5c706339
AK
7124old_CC="$CC"
7125old_CFLAGS="$CFLAGS"
b9668ba4 7126
5c706339
AK
7127# Set sane defaults for various variables
7128test -z "$CC" && CC=cc
7129test -z "$LTCC" && LTCC=$CC
7130test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7131test -z "$LD" && LD=ld
7132test -z "$ac_objext" && ac_objext=o
b9668ba4 7133
5c706339
AK
7134for cc_temp in $compiler""; do
7135 case $cc_temp in
7136 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7137 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7138 \-*) ;;
7139 *) break;;
7140 esac
7141done
7142cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
b9668ba4 7143
b9668ba4 7144
5c706339
AK
7145# Only perform the check for file, if the check method requires it
7146test -z "$MAGIC_CMD" && MAGIC_CMD=file
7147case $deplibs_check_method in
7148file_magic*)
7149 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7150 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7151echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7152if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154else
7155 case $MAGIC_CMD in
7156[\\/*] | ?:[\\/]*)
7157 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
b9668ba4 7158 ;;
5c706339
AK
7159*)
7160 lt_save_MAGIC_CMD="$MAGIC_CMD"
7161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7162 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7163 for ac_dir in $ac_dummy; do
7164 IFS="$lt_save_ifs"
7165 test -z "$ac_dir" && ac_dir=.
7166 if test -f $ac_dir/${ac_tool_prefix}file; then
7167 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7168 if test -n "$file_magic_test_file"; then
7169 case $deplibs_check_method in
7170 "file_magic "*)
7171 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7173 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7174 $EGREP "$file_magic_regex" > /dev/null; then
7175 :
7176 else
7177 cat <<_LT_EOF 1>&2
b9668ba4 7178
5c706339
AK
7179*** Warning: the command libtool uses to detect shared libraries,
7180*** $file_magic_cmd, produces output that libtool cannot recognize.
7181*** The result is that libtool may fail to recognize shared libraries
7182*** as such. This will affect the creation of libtool libraries that
7183*** depend on shared libraries, but programs linked with such libtool
7184*** libraries will work regardless of this problem. Nevertheless, you
7185*** may want to report the problem to your system manager and/or to
7186*** bug-libtool@gnu.org
7187
7188_LT_EOF
7189 fi ;;
7190 esac
7191 fi
7192 break
7193 fi
7194 done
7195 IFS="$lt_save_ifs"
7196 MAGIC_CMD="$lt_save_MAGIC_CMD"
b9668ba4 7197 ;;
5c706339
AK
7198esac
7199fi
b9668ba4 7200
5c706339
AK
7201MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7202if test -n "$MAGIC_CMD"; then
7203 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7204echo "${ECHO_T}$MAGIC_CMD" >&6; }
7205else
7206 { echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6; }
7208fi
b9668ba4 7209
b9668ba4 7210
b9668ba4 7211
b9668ba4 7212
b9668ba4 7213
5c706339
AK
7214if test -z "$lt_cv_path_MAGIC_CMD"; then
7215 if test -n "$ac_tool_prefix"; then
7216 { echo "$as_me:$LINENO: checking for file" >&5
7217echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7218if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7220else
7221 case $MAGIC_CMD in
7222[\\/*] | ?:[\\/]*)
7223 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
b9668ba4 7224 ;;
5c706339
AK
7225*)
7226 lt_save_MAGIC_CMD="$MAGIC_CMD"
7227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7228 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7229 for ac_dir in $ac_dummy; do
7230 IFS="$lt_save_ifs"
7231 test -z "$ac_dir" && ac_dir=.
7232 if test -f $ac_dir/file; then
7233 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7234 if test -n "$file_magic_test_file"; then
7235 case $deplibs_check_method in
7236 "file_magic "*)
7237 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7238 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7239 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7240 $EGREP "$file_magic_regex" > /dev/null; then
7241 :
7242 else
7243 cat <<_LT_EOF 1>&2
b9668ba4 7244
5c706339
AK
7245*** Warning: the command libtool uses to detect shared libraries,
7246*** $file_magic_cmd, produces output that libtool cannot recognize.
7247*** The result is that libtool may fail to recognize shared libraries
7248*** as such. This will affect the creation of libtool libraries that
7249*** depend on shared libraries, but programs linked with such libtool
7250*** libraries will work regardless of this problem. Nevertheless, you
7251*** may want to report the problem to your system manager and/or to
7252*** bug-libtool@gnu.org
b9668ba4 7253
5c706339
AK
7254_LT_EOF
7255 fi ;;
7256 esac
7257 fi
7258 break
7259 fi
7260 done
7261 IFS="$lt_save_ifs"
7262 MAGIC_CMD="$lt_save_MAGIC_CMD"
b9668ba4
AK
7263 ;;
7264esac
5c706339 7265fi
b9668ba4 7266
5c706339
AK
7267MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7268if test -n "$MAGIC_CMD"; then
7269 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7270echo "${ECHO_T}$MAGIC_CMD" >&6; }
7271else
7272 { echo "$as_me:$LINENO: result: no" >&5
7273echo "${ECHO_T}no" >&6; }
b9668ba4
AK
7274fi
7275
b9668ba4 7276
b9668ba4 7277 else
5c706339 7278 MAGIC_CMD=:
b9668ba4 7279 fi
b9668ba4
AK
7280fi
7281
5c706339
AK
7282 fi
7283 ;;
7284esac
b9668ba4 7285
5c706339 7286# Use C for the default configuration in the libtool script
b9668ba4 7287
5c706339
AK
7288lt_save_CC="$CC"
7289ac_ext=c
7290ac_cpp='$CPP $CPPFLAGS'
7291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7293ac_compiler_gnu=$ac_cv_c_compiler_gnu
b9668ba4 7294
b9668ba4 7295
5c706339
AK
7296# Source file extension for C test sources.
7297ac_ext=c
b9668ba4 7298
5c706339
AK
7299# Object file extension for compiled C test sources.
7300objext=o
7301objext=$objext
b9668ba4 7302
5c706339
AK
7303# Code to be used in simple compile tests
7304lt_simple_compile_test_code="int some_variable = 0;"
b9668ba4 7305
5c706339
AK
7306# Code to be used in simple link tests
7307lt_simple_link_test_code='int main(){return(0);}'
b9668ba4 7308
b9668ba4 7309
b9668ba4 7310
b9668ba4 7311
b9668ba4 7312
b9668ba4 7313
b9668ba4 7314
5c706339
AK
7315# If no C compiler was specified, use CC.
7316LTCC=${LTCC-"$CC"}
b9668ba4 7317
5c706339
AK
7318# If no C compiler flags were specified, use CFLAGS.
7319LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
b9668ba4 7320
5c706339
AK
7321# Allow CC to be a program name with arguments.
7322compiler=$CC
b9668ba4 7323
5c706339
AK
7324# Save the default compiler, since it gets overwritten when the other
7325# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7326compiler_DEFAULT=$CC
b9668ba4 7327
5c706339
AK
7328# save warnings/boilerplate of simple test code
7329ac_outfile=conftest.$ac_objext
7330echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7331eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7332_lt_compiler_boilerplate=`cat conftest.err`
7333$RM conftest*
b9668ba4 7334
5c706339
AK
7335ac_outfile=conftest.$ac_objext
7336echo "$lt_simple_link_test_code" >conftest.$ac_ext
7337eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7338_lt_linker_boilerplate=`cat conftest.err`
7339$RM -r conftest*
b9668ba4 7340
b9668ba4 7341
5c706339 7342if test -n "$compiler"; then
b9668ba4 7343
5c706339
AK
7344lt_prog_compiler_no_builtin_flag=
7345
7346if test "$GCC" = yes; then
7347 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7348
7349 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7350echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7351if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
b9668ba4
AK
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353else
5c706339
AK
7354 lt_cv_prog_compiler_rtti_exceptions=no
7355 ac_outfile=conftest.$ac_objext
7356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7357 lt_compiler_flag="-fno-rtti -fno-exceptions"
7358 # Insert the option either (1) after the last *FLAGS variable, or
7359 # (2) before a word containing "conftest.", or (3) at the end.
7360 # Note that $ac_compile itself does not contain backslashes and begins
7361 # with a dollar sign (not a hyphen), so the echo should work correctly.
7362 # The option is referenced via a variable to avoid confusing sed.
7363 lt_compile=`echo "$ac_compile" | $SED \
7364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7366 -e 's:$: $lt_compiler_flag:'`
7367 (eval echo "\"\$as_me:7367: $lt_compile\"" >&5)
7368 (eval "$lt_compile" 2>conftest.err)
7369 ac_status=$?
7370 cat conftest.err >&5
7371 echo "$as_me:7371: \$? = $ac_status" >&5
7372 if (exit $ac_status) && test -s "$ac_outfile"; then
7373 # The compiler can only warn and ignore the option if not recognized
7374 # So say no if there are warnings other than the usual output.
7375 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7377 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7378 lt_cv_prog_compiler_rtti_exceptions=yes
7379 fi
7380 fi
7381 $RM conftest*
b9668ba4 7382
5c706339
AK
7383fi
7384{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7385echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
b9668ba4 7386
5c706339
AK
7387if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7388 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7389else
7390 :
7391fi
b9668ba4 7392
5c706339 7393fi
b9668ba4 7394
b9668ba4 7395
b9668ba4 7396
b9668ba4 7397
b9668ba4 7398
b9668ba4 7399
5c706339
AK
7400 lt_prog_compiler_wl=
7401lt_prog_compiler_pic=
7402lt_prog_compiler_static=
b9668ba4 7403
5c706339
AK
7404{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7405echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
b9668ba4 7406
5c706339
AK
7407 if test "$GCC" = yes; then
7408 lt_prog_compiler_wl='-Wl,'
7409 lt_prog_compiler_static='-static'
b9668ba4 7410
5c706339
AK
7411 case $host_os in
7412 aix*)
7413 # All AIX code is PIC.
7414 if test "$host_cpu" = ia64; then
7415 # AIX 5 now supports IA64 processor
7416 lt_prog_compiler_static='-Bstatic'
7417 fi
7418 ;;
b9668ba4 7419
5c706339
AK
7420 amigaos*)
7421 case $host_cpu in
7422 powerpc)
7423 # see comment about AmigaOS4 .so support
7424 lt_prog_compiler_pic='-fPIC'
7425 ;;
7426 m68k)
7427 # FIXME: we need at least 68020 code to build shared libraries, but
7428 # adding the `-m68020' flag to GCC prevents building anything better,
7429 # like `-m68040'.
7430 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7431 ;;
7432 esac
7433 ;;
b9668ba4 7434
5c706339
AK
7435 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7436 # PIC is the default for these OSes.
7437 ;;
b9668ba4 7438
5c706339
AK
7439 mingw* | cygwin* | pw32* | os2*)
7440 # This hack is so that the source file can tell whether it is being
7441 # built for inclusion in a dll (and should export symbols for example).
7442 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7443 # (--disable-auto-import) libraries
7444 lt_prog_compiler_pic='-DDLL_EXPORT'
7445 ;;
b9668ba4 7446
5c706339
AK
7447 darwin* | rhapsody*)
7448 # PIC is the default on this platform
7449 # Common symbols not allowed in MH_DYLIB files
7450 lt_prog_compiler_pic='-fno-common'
7451 ;;
b9668ba4 7452
5c706339
AK
7453 hpux*)
7454 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7455 # not for PA HP-UX.
7456 case $host_cpu in
7457 hppa*64*|ia64*)
7458 # +Z the default
7459 ;;
7460 *)
7461 lt_prog_compiler_pic='-fPIC'
7462 ;;
7463 esac
7464 ;;
b9668ba4 7465
5c706339
AK
7466 interix[3-9]*)
7467 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7468 # Instead, we relocate shared libraries at runtime.
7469 ;;
b9668ba4 7470
5c706339
AK
7471 msdosdjgpp*)
7472 # Just because we use GCC doesn't mean we suddenly get shared libraries
7473 # on systems that don't support them.
7474 lt_prog_compiler_can_build_shared=no
7475 enable_shared=no
7476 ;;
b9668ba4 7477
5c706339
AK
7478 *nto* | *qnx*)
7479 # QNX uses GNU C++, but need to define -shared option too, otherwise
7480 # it will coredump.
7481 lt_prog_compiler_pic='-fPIC -shared'
7482 ;;
b9668ba4 7483
5c706339
AK
7484 sysv4*MP*)
7485 if test -d /usr/nec; then
7486 lt_prog_compiler_pic=-Kconform_pic
7487 fi
7488 ;;
b9668ba4 7489
5c706339
AK
7490 *)
7491 lt_prog_compiler_pic='-fPIC'
7492 ;;
7493 esac
7494 else
7495 # PORTME Check for flag to pass linker flags through the system compiler.
7496 case $host_os in
7497 aix*)
7498 lt_prog_compiler_wl='-Wl,'
7499 if test "$host_cpu" = ia64; then
7500 # AIX 5 now supports IA64 processor
7501 lt_prog_compiler_static='-Bstatic'
7502 else
7503 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7504 fi
7505 ;;
b9668ba4 7506
5c706339
AK
7507 mingw* | cygwin* | pw32* | os2*)
7508 # This hack is so that the source file can tell whether it is being
7509 # built for inclusion in a dll (and should export symbols for example).
7510 lt_prog_compiler_pic='-DDLL_EXPORT'
7511 ;;
b9668ba4 7512
5c706339
AK
7513 hpux9* | hpux10* | hpux11*)
7514 lt_prog_compiler_wl='-Wl,'
7515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7516 # not for PA HP-UX.
7517 case $host_cpu in
7518 hppa*64*|ia64*)
7519 # +Z the default
7520 ;;
7521 *)
7522 lt_prog_compiler_pic='+Z'
7523 ;;
7524 esac
7525 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7526 lt_prog_compiler_static='${wl}-a ${wl}archive'
7527 ;;
b9668ba4 7528
5c706339
AK
7529 irix5* | irix6* | nonstopux*)
7530 lt_prog_compiler_wl='-Wl,'
7531 # PIC (with -KPIC) is the default.
7532 lt_prog_compiler_static='-non_shared'
7533 ;;
b9668ba4 7534
5c706339
AK
7535 linux* | k*bsd*-gnu)
7536 case $cc_basename in
7537 icc* | ecc* | ifort*)
7538 lt_prog_compiler_wl='-Wl,'
7539 lt_prog_compiler_pic='-KPIC'
7540 lt_prog_compiler_static='-static'
7541 ;;
7542 pgcc* | pgf77* | pgf90* | pgf95*)
7543 # Portland Group compilers (*not* the Pentium gcc compiler,
7544 # which looks to be a dead project)
7545 lt_prog_compiler_wl='-Wl,'
7546 lt_prog_compiler_pic='-fpic'
7547 lt_prog_compiler_static='-Bstatic'
7548 ;;
7549 ccc*)
7550 lt_prog_compiler_wl='-Wl,'
7551 # All Alpha code is PIC.
7552 lt_prog_compiler_static='-non_shared'
7553 ;;
7554 xl*)
7555 # IBM XL C 8.0/Fortran 10.1 on PPC
7556 lt_prog_compiler_wl='-Wl,'
7557 lt_prog_compiler_pic='-qpic'
7558 lt_prog_compiler_static='-qstaticlink'
7559 ;;
7560 *)
7561 case `$CC -V 2>&1 | sed 5q` in
7562 *Sun\ C*)
7563 # Sun C 5.9
7564 lt_prog_compiler_pic='-KPIC'
7565 lt_prog_compiler_static='-Bstatic'
7566 lt_prog_compiler_wl='-Wl,'
7567 ;;
7568 *Sun\ F*)
7569 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7570 lt_prog_compiler_pic='-KPIC'
7571 lt_prog_compiler_static='-Bstatic'
7572 lt_prog_compiler_wl=''
7573 ;;
7574 esac
7575 ;;
7576 esac
7577 ;;
b9668ba4 7578
5c706339
AK
7579 newsos6)
7580 lt_prog_compiler_pic='-KPIC'
7581 lt_prog_compiler_static='-Bstatic'
7582 ;;
b9668ba4 7583
5c706339
AK
7584 *nto* | *qnx*)
7585 # QNX uses GNU C++, but need to define -shared option too, otherwise
7586 # it will coredump.
7587 lt_prog_compiler_pic='-fPIC -shared'
7588 ;;
b9668ba4 7589
5c706339
AK
7590 osf3* | osf4* | osf5*)
7591 lt_prog_compiler_wl='-Wl,'
7592 # All OSF/1 code is PIC.
7593 lt_prog_compiler_static='-non_shared'
7594 ;;
b9668ba4 7595
5c706339
AK
7596 rdos*)
7597 lt_prog_compiler_static='-non_shared'
7598 ;;
b9668ba4 7599
5c706339
AK
7600 solaris*)
7601 lt_prog_compiler_pic='-KPIC'
7602 lt_prog_compiler_static='-Bstatic'
7603 case $cc_basename in
7604 f77* | f90* | f95*)
7605 lt_prog_compiler_wl='-Qoption ld ';;
7606 *)
7607 lt_prog_compiler_wl='-Wl,';;
7608 esac
7609 ;;
b9668ba4 7610
5c706339
AK
7611 sunos4*)
7612 lt_prog_compiler_wl='-Qoption ld '
7613 lt_prog_compiler_pic='-PIC'
7614 lt_prog_compiler_static='-Bstatic'
7615 ;;
b9668ba4 7616
5c706339
AK
7617 sysv4 | sysv4.2uw2* | sysv4.3*)
7618 lt_prog_compiler_wl='-Wl,'
7619 lt_prog_compiler_pic='-KPIC'
7620 lt_prog_compiler_static='-Bstatic'
7621 ;;
b9668ba4 7622
5c706339
AK
7623 sysv4*MP*)
7624 if test -d /usr/nec ;then
7625 lt_prog_compiler_pic='-Kconform_pic'
7626 lt_prog_compiler_static='-Bstatic'
7627 fi
7628 ;;
b9668ba4 7629
5c706339
AK
7630 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7631 lt_prog_compiler_wl='-Wl,'
7632 lt_prog_compiler_pic='-KPIC'
7633 lt_prog_compiler_static='-Bstatic'
7634 ;;
b9668ba4 7635
5c706339
AK
7636 unicos*)
7637 lt_prog_compiler_wl='-Wl,'
7638 lt_prog_compiler_can_build_shared=no
7639 ;;
b9668ba4 7640
5c706339
AK
7641 uts4*)
7642 lt_prog_compiler_pic='-pic'
7643 lt_prog_compiler_static='-Bstatic'
7644 ;;
b9668ba4 7645
5c706339
AK
7646 *)
7647 lt_prog_compiler_can_build_shared=no
7648 ;;
b9668ba4 7649 esac
b9668ba4 7650 fi
b9668ba4 7651
5c706339
AK
7652case $host_os in
7653 # For platforms which do not support PIC, -DPIC is meaningless:
7654 *djgpp*)
7655 lt_prog_compiler_pic=
7656 ;;
7657 *)
7658 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7659 ;;
7660esac
7661{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7662echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
b9668ba4 7663
b9668ba4 7664
b9668ba4 7665
b9668ba4 7666
b9668ba4 7667
b9668ba4 7668
5c706339
AK
7669#
7670# Check to make sure the PIC flag actually works.
7671#
7672if test -n "$lt_prog_compiler_pic"; then
7673 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7674echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7675if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7677else
7678 lt_cv_prog_compiler_pic_works=no
7679 ac_outfile=conftest.$ac_objext
7680 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7681 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7682 # Insert the option either (1) after the last *FLAGS variable, or
7683 # (2) before a word containing "conftest.", or (3) at the end.
7684 # Note that $ac_compile itself does not contain backslashes and begins
7685 # with a dollar sign (not a hyphen), so the echo should work correctly.
7686 # The option is referenced via a variable to avoid confusing sed.
7687 lt_compile=`echo "$ac_compile" | $SED \
7688 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7689 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7690 -e 's:$: $lt_compiler_flag:'`
7691 (eval echo "\"\$as_me:7691: $lt_compile\"" >&5)
7692 (eval "$lt_compile" 2>conftest.err)
7693 ac_status=$?
7694 cat conftest.err >&5
7695 echo "$as_me:7695: \$? = $ac_status" >&5
7696 if (exit $ac_status) && test -s "$ac_outfile"; then
7697 # The compiler can only warn and ignore the option if not recognized
7698 # So say no if there are warnings other than the usual output.
7699 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7700 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7701 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7702 lt_cv_prog_compiler_pic_works=yes
7703 fi
7704 fi
7705 $RM conftest*
b9668ba4 7706
b9668ba4 7707fi
5c706339
AK
7708{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7709echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
b9668ba4 7710
5c706339
AK
7711if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7712 case $lt_prog_compiler_pic in
7713 "" | " "*) ;;
7714 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7715 esac
7716else
7717 lt_prog_compiler_pic=
7718 lt_prog_compiler_can_build_shared=no
7719fi
b9668ba4
AK
7720
7721fi
b9668ba4 7722
b9668ba4 7723
b9668ba4 7724
b9668ba4
AK
7725
7726
b9668ba4 7727
5c706339
AK
7728#
7729# Check to make sure the static flag actually works.
7730#
7731wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7732{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7733echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7734if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7736else
7737 lt_cv_prog_compiler_static_works=no
7738 save_LDFLAGS="$LDFLAGS"
7739 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7740 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7741 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7742 # The linker can only warn and ignore the option if not recognized
7743 # So say no if there are warnings
7744 if test -s conftest.err; then
7745 # Append any errors to the config.log.
7746 cat conftest.err 1>&5
7747 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7749 if diff conftest.exp conftest.er2 >/dev/null; then
7750 lt_cv_prog_compiler_static_works=yes
7751 fi
7752 else
7753 lt_cv_prog_compiler_static_works=yes
7754 fi
7755 fi
7756 $RM -r conftest*
7757 LDFLAGS="$save_LDFLAGS"
b9668ba4 7758
5c706339
AK
7759fi
7760{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7761echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
b9668ba4 7762
5c706339
AK
7763if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7764 :
7765else
7766 lt_prog_compiler_static=
7767fi
b9668ba4 7768
b9668ba4 7769
b9668ba4 7770
b9668ba4 7771
b9668ba4 7772
b9668ba4 7773
b9668ba4 7774
5c706339
AK
7775 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7776echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7777if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7779else
7780 lt_cv_prog_compiler_c_o=no
7781 $RM -r conftest 2>/dev/null
7782 mkdir conftest
7783 cd conftest
7784 mkdir out
7785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
b9668ba4 7786
5c706339
AK
7787 lt_compiler_flag="-o out/conftest2.$ac_objext"
7788 # Insert the option either (1) after the last *FLAGS variable, or
7789 # (2) before a word containing "conftest.", or (3) at the end.
7790 # Note that $ac_compile itself does not contain backslashes and begins
7791 # with a dollar sign (not a hyphen), so the echo should work correctly.
7792 lt_compile=`echo "$ac_compile" | $SED \
7793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7795 -e 's:$: $lt_compiler_flag:'`
7796 (eval echo "\"\$as_me:7796: $lt_compile\"" >&5)
7797 (eval "$lt_compile" 2>out/conftest.err)
7798 ac_status=$?
7799 cat out/conftest.err >&5
7800 echo "$as_me:7800: \$? = $ac_status" >&5
7801 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7802 then
7803 # The compiler can only warn and ignore the option if not recognized
7804 # So say no if there are warnings
7805 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7806 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7807 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7808 lt_cv_prog_compiler_c_o=yes
7809 fi
7810 fi
7811 chmod u+w . 2>&5
7812 $RM conftest*
7813 # SGI C++ compiler will create directory out/ii_files/ for
7814 # template instantiation
7815 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7816 $RM out/* && rmdir out
7817 cd ..
7818 $RM -r conftest
7819 $RM conftest*
b9668ba4 7820
5c706339
AK
7821fi
7822{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7823echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
b9668ba4 7824
b9668ba4 7825
b9668ba4 7826
b9668ba4 7827
b9668ba4 7828
b9668ba4 7829
5c706339
AK
7830 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7831echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7832if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7834else
7835 lt_cv_prog_compiler_c_o=no
7836 $RM -r conftest 2>/dev/null
7837 mkdir conftest
7838 cd conftest
7839 mkdir out
7840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
b9668ba4 7841
5c706339
AK
7842 lt_compiler_flag="-o out/conftest2.$ac_objext"
7843 # Insert the option either (1) after the last *FLAGS variable, or
7844 # (2) before a word containing "conftest.", or (3) at the end.
7845 # Note that $ac_compile itself does not contain backslashes and begins
7846 # with a dollar sign (not a hyphen), so the echo should work correctly.
7847 lt_compile=`echo "$ac_compile" | $SED \
7848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7850 -e 's:$: $lt_compiler_flag:'`
7851 (eval echo "\"\$as_me:7851: $lt_compile\"" >&5)
7852 (eval "$lt_compile" 2>out/conftest.err)
7853 ac_status=$?
7854 cat out/conftest.err >&5
7855 echo "$as_me:7855: \$? = $ac_status" >&5
7856 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7857 then
7858 # The compiler can only warn and ignore the option if not recognized
7859 # So say no if there are warnings
7860 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7861 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7862 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7863 lt_cv_prog_compiler_c_o=yes
7864 fi
7865 fi
7866 chmod u+w . 2>&5
7867 $RM conftest*
7868 # SGI C++ compiler will create directory out/ii_files/ for
7869 # template instantiation
7870 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7871 $RM out/* && rmdir out
7872 cd ..
7873 $RM -r conftest
7874 $RM conftest*
b9668ba4 7875
5c706339
AK
7876fi
7877{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7878echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
b9668ba4 7879
b9668ba4 7880
b9668ba4 7881
b9668ba4 7882
5c706339
AK
7883hard_links="nottested"
7884if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7885 # do not overwrite the value of need_locks provided by the user
7886 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7887echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7888 hard_links=yes
7889 $RM conftest*
7890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7891 touch conftest.a
7892 ln conftest.a conftest.b 2>&5 || hard_links=no
7893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7894 { echo "$as_me:$LINENO: result: $hard_links" >&5
7895echo "${ECHO_T}$hard_links" >&6; }
7896 if test "$hard_links" = no; then
7897 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7898echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7899 need_locks=warn
7900 fi
7901else
7902 need_locks=no
7903fi
b9668ba4 7904
b9668ba4 7905
b9668ba4 7906
b9668ba4 7907
b9668ba4 7908
b9668ba4 7909
5c706339
AK
7910 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7911echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
b9668ba4 7912
5c706339
AK
7913 runpath_var=
7914 allow_undefined_flag=
7915 always_export_symbols=no
7916 archive_cmds=
7917 archive_expsym_cmds=
7918 compiler_needs_object=no
7919 enable_shared_with_static_runtimes=no
7920 export_dynamic_flag_spec=
7921 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7922 hardcode_automatic=no
7923 hardcode_direct=no
7924 hardcode_direct_absolute=no
7925 hardcode_libdir_flag_spec=
7926 hardcode_libdir_flag_spec_ld=
7927 hardcode_libdir_separator=
7928 hardcode_minus_L=no
7929 hardcode_shlibpath_var=unsupported
7930 inherit_rpath=no
7931 link_all_deplibs=unknown
7932 module_cmds=
7933 module_expsym_cmds=
7934 old_archive_from_new_cmds=
7935 old_archive_from_expsyms_cmds=
7936 thread_safe_flag_spec=
7937 whole_archive_flag_spec=
7938 # include_expsyms should be a list of space-separated symbols to be *always*
7939 # included in the symbol list
7940 include_expsyms=
7941 # exclude_expsyms can be an extended regexp of symbols to exclude
7942 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7943 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7944 # as well as any symbol that contains `d'.
7945 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7946 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7947 # platforms (ab)use it in PIC code, but their linkers get confused if
7948 # the symbol is explicitly referenced. Since portable code cannot
7949 # rely on this symbol name, it's probably fine to never include it in
7950 # preloaded symbol tables.
7951 # Exclude shared library initialization/finalization symbols.
7952 extract_expsyms_cmds=
b9668ba4 7953
5c706339
AK
7954 case $host_os in
7955 cygwin* | mingw* | pw32*)
7956 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7957 # When not using gcc, we currently assume that we are using
7958 # Microsoft Visual C++.
7959 if test "$GCC" != yes; then
7960 with_gnu_ld=no
7961 fi
7962 ;;
7963 interix*)
7964 # we just hope/assume this is gcc and not c89 (= MSVC++)
7965 with_gnu_ld=yes
7966 ;;
7967 openbsd*)
7968 with_gnu_ld=no
7969 ;;
7970 esac
b9668ba4 7971
5c706339
AK
7972 ld_shlibs=yes
7973 if test "$with_gnu_ld" = yes; then
7974 # If archive_cmds runs LD, not CC, wlarc should be empty
7975 wlarc='${wl}'
b9668ba4 7976
5c706339
AK
7977 # Set some defaults for GNU ld with shared library support. These
7978 # are reset later if shared libraries are not supported. Putting them
7979 # here allows them to be overridden if necessary.
7980 runpath_var=LD_RUN_PATH
7981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7982 export_dynamic_flag_spec='${wl}--export-dynamic'
7983 # ancient GNU ld didn't support --whole-archive et. al.
7984 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7985 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7986 else
7987 whole_archive_flag_spec=
7988 fi
7989 supports_anon_versioning=no
7990 case `$LD -v 2>&1` in
7991 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7992 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7993 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7994 *\ 2.11.*) ;; # other 2.11 versions
7995 *) supports_anon_versioning=yes ;;
7996 esac
b9668ba4 7997
5c706339
AK
7998 # See if GNU ld supports shared libraries.
7999 case $host_os in
8000 aix[3-9]*)
8001 # On AIX/PPC, the GNU linker is very broken
8002 if test "$host_cpu" != ia64; then
8003 ld_shlibs=no
8004 cat <<_LT_EOF 1>&2
b9668ba4 8005
5c706339
AK
8006*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8007*** to be unable to reliably create shared libraries on AIX.
8008*** Therefore, libtool is disabling shared libraries support. If you
8009*** really care for shared libraries, you may want to modify your PATH
8010*** so that a non-GNU linker is found, and then restart.
b9668ba4 8011
5c706339
AK
8012_LT_EOF
8013 fi
8014 ;;
b9668ba4 8015
5c706339
AK
8016 amigaos*)
8017 case $host_cpu in
8018 powerpc)
8019 # see comment about AmigaOS4 .so support
8020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8021 archive_expsym_cmds=''
8022 ;;
8023 m68k)
8024 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)'
8025 hardcode_libdir_flag_spec='-L$libdir'
8026 hardcode_minus_L=yes
8027 ;;
8028 esac
8029 ;;
b9668ba4 8030
5c706339
AK
8031 beos*)
8032 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8033 allow_undefined_flag=unsupported
8034 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8035 # support --undefined. This deserves some investigation. FIXME
8036 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8037 else
8038 ld_shlibs=no
8039 fi
8040 ;;
b9668ba4 8041
5c706339
AK
8042 cygwin* | mingw* | pw32*)
8043 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8044 # as there is no search path for DLLs.
8045 hardcode_libdir_flag_spec='-L$libdir'
8046 allow_undefined_flag=unsupported
8047 always_export_symbols=no
8048 enable_shared_with_static_runtimes=yes
8049 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
b9668ba4 8050
5c706339
AK
8051 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8053 # If the export-symbols file already is a .def file (1st line
8054 # is EXPORTS), use it as is; otherwise, prepend...
8055 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8056 cp $export_symbols $output_objdir/$soname.def;
8057 else
8058 echo EXPORTS > $output_objdir/$soname.def;
8059 cat $export_symbols >> $output_objdir/$soname.def;
8060 fi~
8061 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8062 else
8063 ld_shlibs=no
8064 fi
8065 ;;
b9668ba4 8066
5c706339
AK
8067 interix[3-9]*)
8068 hardcode_direct=no
8069 hardcode_shlibpath_var=no
8070 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8071 export_dynamic_flag_spec='${wl}-E'
8072 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8073 # Instead, shared libraries are loaded at an image base (0x10000000 by
8074 # default) and relocated if they conflict, which is a slow very memory
8075 # consuming and fragmenting process. To avoid this, we pick a random,
8076 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8077 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8078 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8079 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'
8080 ;;
b9668ba4 8081
5c706339
AK
8082 gnu* | linux* | tpf* | k*bsd*-gnu)
8083 tmp_diet=no
8084 if test "$host_os" = linux-dietlibc; then
8085 case $cc_basename in
8086 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8087 esac
8088 fi
8089 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8090 && test "$tmp_diet" = no
8091 then
8092 tmp_addflag=
8093 tmp_sharedflag='-shared'
8094 case $cc_basename,$host_cpu in
8095 pgcc*) # Portland Group C compiler
8096 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'
8097 tmp_addflag=' $pic_flag'
8098 ;;
8099 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8100 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'
8101 tmp_addflag=' $pic_flag -Mnomain' ;;
8102 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8103 tmp_addflag=' -i_dynamic' ;;
8104 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8105 tmp_addflag=' -i_dynamic -nofor_main' ;;
8106 ifc* | ifort*) # Intel Fortran compiler
8107 tmp_addflag=' -nofor_main' ;;
8108 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8109 tmp_sharedflag='-qmkshrobj'
8110 tmp_addflag= ;;
8111 esac
8112 case `$CC -V 2>&1 | sed 5q` in
8113 *Sun\ C*) # Sun C 5.9
8114 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'
8115 compiler_needs_object=yes
8116 tmp_sharedflag='-G' ;;
8117 *Sun\ F*) # Sun Fortran 8.3
8118 tmp_sharedflag='-G' ;;
8119 esac
8120 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
b9668ba4 8121
5c706339
AK
8122 if test "x$supports_anon_versioning" = xyes; then
8123 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8124 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8125 echo "local: *; };" >> $output_objdir/$libname.ver~
8126 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8127 fi
b9668ba4 8128
5c706339
AK
8129 case $cc_basename in
8130 xlf*)
8131 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8132 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8133 hardcode_libdir_flag_spec=
8134 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8135 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8136 if test "x$supports_anon_versioning" = xyes; then
8137 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8138 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8139 echo "local: *; };" >> $output_objdir/$libname.ver~
8140 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8141 fi
8142 ;;
8143 esac
8144 else
8145 ld_shlibs=no
8146 fi
8147 ;;
b9668ba4 8148
5c706339
AK
8149 netbsd* | netbsdelf*-gnu)
8150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8151 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8152 wlarc=
8153 else
8154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8156 fi
8157 ;;
b9668ba4 8158
5c706339
AK
8159 solaris*)
8160 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8161 ld_shlibs=no
8162 cat <<_LT_EOF 1>&2
b9668ba4 8163
5c706339
AK
8164*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8165*** create shared libraries on Solaris systems. Therefore, libtool
8166*** is disabling shared libraries support. We urge you to upgrade GNU
8167*** binutils to release 2.9.1 or newer. Another option is to modify
8168*** your PATH or compiler configuration so that the native linker is
8169*** used, and then restart.
b9668ba4 8170
5c706339
AK
8171_LT_EOF
8172 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8174 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8175 else
8176 ld_shlibs=no
8177 fi
8178 ;;
b9668ba4 8179
5c706339
AK
8180 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8181 case `$LD -v 2>&1` in
8182 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8183 ld_shlibs=no
8184 cat <<_LT_EOF 1>&2
b9668ba4 8185
5c706339
AK
8186*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8187*** reliably create shared libraries on SCO systems. Therefore, libtool
8188*** is disabling shared libraries support. We urge you to upgrade GNU
8189*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8190*** your PATH or compiler configuration so that the native linker is
8191*** used, and then restart.
b9668ba4 8192
5c706339
AK
8193_LT_EOF
8194 ;;
8195 *)
8196 # For security reasons, it is highly recommended that you always
8197 # use absolute paths for naming shared libraries, and exclude the
8198 # DT_RUNPATH tag from executables and libraries. But doing so
8199 # requires that you compile everything twice, which is a pain.
8200 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8201 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8203 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8204 else
8205 ld_shlibs=no
8206 fi
8207 ;;
8208 esac
8209 ;;
b9668ba4 8210
5c706339
AK
8211 sunos4*)
8212 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8213 wlarc=
8214 hardcode_direct=yes
8215 hardcode_shlibpath_var=no
8216 ;;
b9668ba4 8217
5c706339
AK
8218 *)
8219 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8221 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8222 else
8223 ld_shlibs=no
8224 fi
8225 ;;
8226 esac
b9668ba4 8227
5c706339
AK
8228 if test "$ld_shlibs" = no; then
8229 runpath_var=
8230 hardcode_libdir_flag_spec=
8231 export_dynamic_flag_spec=
8232 whole_archive_flag_spec=
8233 fi
8234 else
8235 # PORTME fill in a description of your system's linker (not GNU ld)
8236 case $host_os in
8237 aix3*)
8238 allow_undefined_flag=unsupported
8239 always_export_symbols=yes
8240 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'
8241 # Note: this linker hardcodes the directories in LIBPATH if there
8242 # are no directories specified by -L.
8243 hardcode_minus_L=yes
8244 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8245 # Neither direct hardcoding nor static linking is supported with a
8246 # broken collect2.
8247 hardcode_direct=unsupported
8248 fi
8249 ;;
b9668ba4 8250
5c706339
AK
8251 aix[4-9]*)
8252 if test "$host_cpu" = ia64; then
8253 # On IA64, the linker does run time linking by default, so we don't
8254 # have to do anything special.
8255 aix_use_runtimelinking=no
8256 exp_sym_flag='-Bexport'
8257 no_entry_flag=""
8258 else
8259 # If we're using GNU nm, then we don't want the "-C" option.
8260 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8261 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8262 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'
8263 else
8264 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'
8265 fi
8266 aix_use_runtimelinking=no
b9668ba4 8267
5c706339
AK
8268 # Test if we are trying to use run time linking or normal
8269 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8270 # need to do runtime linking.
8271 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8272 for ld_flag in $LDFLAGS; do
8273 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8274 aix_use_runtimelinking=yes
8275 break
8276 fi
8277 done
8278 ;;
8279 esac
b9668ba4 8280
5c706339
AK
8281 exp_sym_flag='-bexport'
8282 no_entry_flag='-bnoentry'
8283 fi
b9668ba4 8284
5c706339
AK
8285 # When large executables or shared objects are built, AIX ld can
8286 # have problems creating the table of contents. If linking a library
8287 # or program results in "error TOC overflow" add -mminimal-toc to
8288 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8289 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
b9668ba4 8290
5c706339
AK
8291 archive_cmds=''
8292 hardcode_direct=yes
8293 hardcode_direct_absolute=yes
8294 hardcode_libdir_separator=':'
8295 link_all_deplibs=yes
8296 file_list_spec='${wl}-f,'
b9668ba4 8297
5c706339
AK
8298 if test "$GCC" = yes; then
8299 case $host_os in aix4.[012]|aix4.[012].*)
8300 # We only want to do this on AIX 4.2 and lower, the check
8301 # below for broken collect2 doesn't work under 4.3+
8302 collect2name=`${CC} -print-prog-name=collect2`
8303 if test -f "$collect2name" &&
8304 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8305 then
8306 # We have reworked collect2
8307 :
8308 else
8309 # We have old collect2
8310 hardcode_direct=unsupported
8311 # It fails to find uninstalled libraries when the uninstalled
8312 # path is not listed in the libpath. Setting hardcode_minus_L
8313 # to unsupported forces relinking
8314 hardcode_minus_L=yes
8315 hardcode_libdir_flag_spec='-L$libdir'
8316 hardcode_libdir_separator=
8317 fi
8318 ;;
8319 esac
8320 shared_flag='-shared'
8321 if test "$aix_use_runtimelinking" = yes; then
8322 shared_flag="$shared_flag "'${wl}-G'
8323 fi
8324 link_all_deplibs=no
8325 else
8326 # not using gcc
8327 if test "$host_cpu" = ia64; then
8328 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8329 # chokes on -Wl,-G. The following line is correct:
8330 shared_flag='-G'
8331 else
8332 if test "$aix_use_runtimelinking" = yes; then
8333 shared_flag='${wl}-G'
8334 else
8335 shared_flag='${wl}-bM:SRE'
8336 fi
8337 fi
8338 fi
b9668ba4 8339
5c706339
AK
8340 # It seems that -bexpall does not export symbols beginning with
8341 # underscore (_), so it is better to generate a list of symbols to export.
8342 always_export_symbols=yes
8343 if test "$aix_use_runtimelinking" = yes; then
8344 # Warning - without using the other runtime loading flags (-brtl),
8345 # -berok will link without error, but may produce a broken library.
8346 allow_undefined_flag='-berok'
8347 # Determine the default libpath from the value encoded in an
8348 # empty executable.
8349 cat >conftest.$ac_ext <<_ACEOF
8350/* confdefs.h. */
8351_ACEOF
8352cat confdefs.h >>conftest.$ac_ext
8353cat >>conftest.$ac_ext <<_ACEOF
8354/* end confdefs.h. */
b9668ba4 8355
5c706339
AK
8356int
8357main ()
8358{
b9668ba4 8359
5c706339
AK
8360 ;
8361 return 0;
8362}
8363_ACEOF
8364rm -f conftest.$ac_objext conftest$ac_exeext
8365if { (ac_try="$ac_link"
8366case "(($ac_try" in
8367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368 *) ac_try_echo=$ac_try;;
8369esac
8370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371 (eval "$ac_link") 2>conftest.er1
8372 ac_status=$?
8373 grep -v '^ *+' conftest.er1 >conftest.err
8374 rm -f conftest.er1
8375 cat conftest.err >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } && {
8378 test -z "$ac_c_werror_flag" ||
8379 test ! -s conftest.err
8380 } && test -s conftest$ac_exeext &&
8381 $as_test_x conftest$ac_exeext; then
b9668ba4 8382
5c706339
AK
8383lt_aix_libpath_sed='
8384 /Import File Strings/,/^$/ {
8385 /^0/ {
8386 s/^0 *\(.*\)$/\1/
8387 p
8388 }
8389 }'
8390aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8391# Check for a 64-bit object if we didn't find anything.
8392if test -z "$aix_libpath"; then
8393 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8394fi
8395else
8396 echo "$as_me: failed program was:" >&5
8397sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 8398
b9668ba4 8399
5c706339 8400fi
b9668ba4 8401
5c706339
AK
8402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8403 conftest$ac_exeext conftest.$ac_ext
8404if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
b9668ba4 8405
5c706339
AK
8406 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8407 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"
8408 else
8409 if test "$host_cpu" = ia64; then
8410 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8411 allow_undefined_flag="-z nodefs"
8412 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"
8413 else
8414 # Determine the default libpath from the value encoded in an
8415 # empty executable.
8416 cat >conftest.$ac_ext <<_ACEOF
8417/* confdefs.h. */
8418_ACEOF
8419cat confdefs.h >>conftest.$ac_ext
8420cat >>conftest.$ac_ext <<_ACEOF
8421/* end confdefs.h. */
b9668ba4 8422
5c706339
AK
8423int
8424main ()
8425{
b9668ba4 8426
5c706339
AK
8427 ;
8428 return 0;
8429}
8430_ACEOF
8431rm -f conftest.$ac_objext conftest$ac_exeext
8432if { (ac_try="$ac_link"
8433case "(($ac_try" in
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8436esac
8437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_link") 2>conftest.er1
8439 ac_status=$?
8440 grep -v '^ *+' conftest.er1 >conftest.err
8441 rm -f conftest.er1
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } && {
8445 test -z "$ac_c_werror_flag" ||
8446 test ! -s conftest.err
8447 } && test -s conftest$ac_exeext &&
8448 $as_test_x conftest$ac_exeext; then
b9668ba4 8449
5c706339
AK
8450lt_aix_libpath_sed='
8451 /Import File Strings/,/^$/ {
8452 /^0/ {
8453 s/^0 *\(.*\)$/\1/
8454 p
8455 }
8456 }'
8457aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8458# Check for a 64-bit object if we didn't find anything.
8459if test -z "$aix_libpath"; then
8460 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8461fi
8462else
8463 echo "$as_me: failed program was:" >&5
8464sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 8465
b9668ba4 8466
5c706339 8467fi
b9668ba4 8468
5c706339
AK
8469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8470 conftest$ac_exeext conftest.$ac_ext
8471if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
b9668ba4 8472
5c706339
AK
8473 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8474 # Warning - without using the other run time loading flags,
8475 # -berok will link without error, but may produce a broken library.
8476 no_undefined_flag=' ${wl}-bernotok'
8477 allow_undefined_flag=' ${wl}-berok'
8478 # Exported symbols can be pulled into shared objects from archives
8479 whole_archive_flag_spec='$convenience'
8480 archive_cmds_need_lc=yes
8481 # This is similar to how AIX traditionally builds its shared libraries.
8482 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'
8483 fi
8484 fi
8485 ;;
b9668ba4 8486
5c706339
AK
8487 amigaos*)
8488 case $host_cpu in
8489 powerpc)
8490 # see comment about AmigaOS4 .so support
8491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8492 archive_expsym_cmds=''
8493 ;;
8494 m68k)
8495 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)'
8496 hardcode_libdir_flag_spec='-L$libdir'
8497 hardcode_minus_L=yes
8498 ;;
8499 esac
8500 ;;
b9668ba4 8501
5c706339
AK
8502 bsdi[45]*)
8503 export_dynamic_flag_spec=-rdynamic
8504 ;;
b9668ba4 8505
5c706339
AK
8506 cygwin* | mingw* | pw32*)
8507 # When not using gcc, we currently assume that we are using
8508 # Microsoft Visual C++.
8509 # hardcode_libdir_flag_spec is actually meaningless, as there is
8510 # no search path for DLLs.
8511 hardcode_libdir_flag_spec=' '
8512 allow_undefined_flag=unsupported
8513 # Tell ltmain to make .lib files, not .a files.
8514 libext=lib
8515 # Tell ltmain to make .dll files, not .so files.
8516 shrext_cmds=".dll"
8517 # FIXME: Setting linknames here is a bad hack.
8518 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8519 # The linker will automatically build a .lib file if we build a DLL.
8520 old_archive_from_new_cmds='true'
8521 # FIXME: Should let the user specify the lib program.
8522 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8523 fix_srcfile_path='`cygpath -w "$srcfile"`'
8524 enable_shared_with_static_runtimes=yes
8525 ;;
b9668ba4 8526
5c706339 8527 darwin* | rhapsody*)
b9668ba4 8528
b9668ba4 8529
5c706339
AK
8530 archive_cmds_need_lc=no
8531 hardcode_direct=no
8532 hardcode_automatic=yes
8533 hardcode_shlibpath_var=unsupported
8534 whole_archive_flag_spec=''
8535 link_all_deplibs=yes
8536 allow_undefined_flag="$_lt_dar_allow_undefined"
8537 if test "$GCC" = "yes"; then
8538 output_verbose_link_cmd=echo
8539 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8540 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8541 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}"
8542 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}"
b9668ba4 8543
5c706339
AK
8544 else
8545 ld_shlibs=no
8546 fi
b9668ba4 8547
5c706339 8548 ;;
b9668ba4 8549
5c706339
AK
8550 dgux*)
8551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8552 hardcode_libdir_flag_spec='-L$libdir'
8553 hardcode_shlibpath_var=no
8554 ;;
b9668ba4 8555
5c706339
AK
8556 freebsd1*)
8557 ld_shlibs=no
8558 ;;
b9668ba4 8559
5c706339
AK
8560 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8561 # support. Future versions do this automatically, but an explicit c++rt0.o
8562 # does not break anything, and helps significantly (at the cost of a little
8563 # extra space).
8564 freebsd2.2*)
8565 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8566 hardcode_libdir_flag_spec='-R$libdir'
8567 hardcode_direct=yes
8568 hardcode_shlibpath_var=no
8569 ;;
b9668ba4 8570
5c706339
AK
8571 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8572 freebsd2*)
8573 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8574 hardcode_direct=yes
8575 hardcode_minus_L=yes
8576 hardcode_shlibpath_var=no
8577 ;;
b9668ba4 8578
5c706339
AK
8579 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8580 freebsd* | dragonfly*)
8581 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8582 hardcode_libdir_flag_spec='-R$libdir'
8583 hardcode_direct=yes
8584 hardcode_shlibpath_var=no
8585 ;;
b9668ba4 8586
5c706339
AK
8587 hpux9*)
8588 if test "$GCC" = yes; then
8589 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'
8590 else
8591 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'
8592 fi
8593 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8594 hardcode_libdir_separator=:
8595 hardcode_direct=yes
b9668ba4 8596
5c706339
AK
8597 # hardcode_minus_L: Not really in the search PATH,
8598 # but as the default location of the library.
8599 hardcode_minus_L=yes
8600 export_dynamic_flag_spec='${wl}-E'
8601 ;;
b9668ba4 8602
5c706339
AK
8603 hpux10*)
8604 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8605 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8606 else
8607 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8608 fi
8609 if test "$with_gnu_ld" = no; then
8610 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8611 hardcode_libdir_flag_spec_ld='+b $libdir'
8612 hardcode_libdir_separator=:
8613 hardcode_direct=yes
8614 hardcode_direct_absolute=yes
8615 export_dynamic_flag_spec='${wl}-E'
8616 # hardcode_minus_L: Not really in the search PATH,
8617 # but as the default location of the library.
8618 hardcode_minus_L=yes
8619 fi
8620 ;;
b9668ba4 8621
5c706339
AK
8622 hpux11*)
8623 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8624 case $host_cpu in
8625 hppa*64*)
8626 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8627 ;;
8628 ia64*)
8629 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8630 ;;
8631 *)
8632 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8633 ;;
8634 esac
8635 else
8636 case $host_cpu in
8637 hppa*64*)
8638 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8639 ;;
8640 ia64*)
8641 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8642 ;;
8643 *)
8644 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8645 ;;
8646 esac
8647 fi
8648 if test "$with_gnu_ld" = no; then
8649 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8650 hardcode_libdir_separator=:
b9668ba4 8651
5c706339
AK
8652 case $host_cpu in
8653 hppa*64*|ia64*)
8654 hardcode_direct=no
8655 hardcode_shlibpath_var=no
8656 ;;
8657 *)
8658 hardcode_direct=yes
8659 hardcode_direct_absolute=yes
8660 export_dynamic_flag_spec='${wl}-E'
b9668ba4 8661
5c706339
AK
8662 # hardcode_minus_L: Not really in the search PATH,
8663 # but as the default location of the library.
8664 hardcode_minus_L=yes
8665 ;;
8666 esac
8667 fi
8668 ;;
b9668ba4 8669
5c706339
AK
8670 irix5* | irix6* | nonstopux*)
8671 if test "$GCC" = yes; then
8672 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'
8673 # Try to use the -exported_symbol ld option, if it does not
8674 # work, assume that -exports_file does not work either and
8675 # implicitly export all symbols.
8676 save_LDFLAGS="$LDFLAGS"
8677 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8678 cat >conftest.$ac_ext <<_ACEOF
8679int foo(void) {}
8680_ACEOF
8681rm -f conftest.$ac_objext conftest$ac_exeext
8682if { (ac_try="$ac_link"
8683case "(($ac_try" in
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8686esac
8687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8688 (eval "$ac_link") 2>conftest.er1
8689 ac_status=$?
8690 grep -v '^ *+' conftest.er1 >conftest.err
8691 rm -f conftest.er1
8692 cat conftest.err >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } && {
8695 test -z "$ac_c_werror_flag" ||
8696 test ! -s conftest.err
8697 } && test -s conftest$ac_exeext &&
8698 $as_test_x conftest$ac_exeext; then
8699 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'
b9668ba4 8700
5c706339
AK
8701else
8702 echo "$as_me: failed program was:" >&5
8703sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 8704
b9668ba4 8705
5c706339 8706fi
b9668ba4 8707
5c706339
AK
8708rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8709 conftest$ac_exeext conftest.$ac_ext
8710 LDFLAGS="$save_LDFLAGS"
8711 else
8712 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'
8713 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'
8714 fi
8715 archive_cmds_need_lc='no'
8716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8717 hardcode_libdir_separator=:
8718 inherit_rpath=yes
8719 link_all_deplibs=yes
8720 ;;
b9668ba4 8721
5c706339
AK
8722 netbsd* | netbsdelf*-gnu)
8723 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8725 else
8726 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8727 fi
8728 hardcode_libdir_flag_spec='-R$libdir'
8729 hardcode_direct=yes
8730 hardcode_shlibpath_var=no
8731 ;;
b9668ba4 8732
5c706339
AK
8733 newsos6)
8734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8735 hardcode_direct=yes
8736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8737 hardcode_libdir_separator=:
8738 hardcode_shlibpath_var=no
8739 ;;
b9668ba4 8740
5c706339
AK
8741 *nto* | *qnx*)
8742 ;;
b9668ba4 8743
5c706339
AK
8744 openbsd*)
8745 if test -f /usr/libexec/ld.so; then
8746 hardcode_direct=yes
8747 hardcode_shlibpath_var=no
8748 hardcode_direct_absolute=yes
8749 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8751 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8752 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8753 export_dynamic_flag_spec='${wl}-E'
8754 else
8755 case $host_os in
8756 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8758 hardcode_libdir_flag_spec='-R$libdir'
8759 ;;
8760 *)
8761 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8762 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8763 ;;
8764 esac
8765 fi
8766 else
8767 ld_shlibs=no
8768 fi
8769 ;;
b9668ba4 8770
5c706339
AK
8771 os2*)
8772 hardcode_libdir_flag_spec='-L$libdir'
8773 hardcode_minus_L=yes
8774 allow_undefined_flag=unsupported
8775 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'
8776 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8777 ;;
b9668ba4 8778
5c706339
AK
8779 osf3*)
8780 if test "$GCC" = yes; then
8781 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8782 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'
8783 else
8784 allow_undefined_flag=' -expect_unresolved \*'
8785 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'
8786 fi
8787 archive_cmds_need_lc='no'
8788 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8789 hardcode_libdir_separator=:
8790 ;;
b9668ba4 8791
5c706339
AK
8792 osf4* | osf5*) # as osf3* with the addition of -msym flag
8793 if test "$GCC" = yes; then
8794 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8795 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'
8796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8797 else
8798 allow_undefined_flag=' -expect_unresolved \*'
8799 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'
8800 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~
8801 $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'
b9668ba4 8802
5c706339
AK
8803 # Both c and cxx compiler support -rpath directly
8804 hardcode_libdir_flag_spec='-rpath $libdir'
8805 fi
8806 archive_cmds_need_lc='no'
8807 hardcode_libdir_separator=:
8808 ;;
b9668ba4 8809
5c706339
AK
8810 solaris*)
8811 no_undefined_flag=' -z defs'
8812 if test "$GCC" = yes; then
8813 wlarc='${wl}'
8814 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8815 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8816 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8817 else
8818 case `$CC -V 2>&1` in
8819 *"Compilers 5.0"*)
8820 wlarc=''
8821 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8823 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8824 ;;
8825 *)
8826 wlarc='${wl}'
8827 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8828 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8829 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8830 ;;
8831 esac
8832 fi
8833 hardcode_libdir_flag_spec='-R$libdir'
8834 hardcode_shlibpath_var=no
8835 case $host_os in
8836 solaris2.[0-5] | solaris2.[0-5].*) ;;
8837 *)
8838 # The compiler driver will combine and reorder linker options,
8839 # but understands `-z linker_flag'. GCC discards it without `$wl',
8840 # but is careful enough not to reorder.
8841 # Supported since Solaris 2.6 (maybe 2.5.1?)
8842 if test "$GCC" = yes; then
8843 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8844 else
8845 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8846 fi
8847 ;;
8848 esac
8849 link_all_deplibs=yes
8850 ;;
b9668ba4 8851
5c706339
AK
8852 sunos4*)
8853 if test "x$host_vendor" = xsequent; then
8854 # Use $CC to link under sequent, because it throws in some extra .o
8855 # files that make .init and .fini sections work.
8856 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8857 else
8858 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8859 fi
8860 hardcode_libdir_flag_spec='-L$libdir'
8861 hardcode_direct=yes
8862 hardcode_minus_L=yes
8863 hardcode_shlibpath_var=no
8864 ;;
b9668ba4 8865
5c706339
AK
8866 sysv4)
8867 case $host_vendor in
8868 sni)
8869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8870 hardcode_direct=yes # is this really true???
8871 ;;
8872 siemens)
8873 ## LD is ld it makes a PLAMLIB
8874 ## CC just makes a GrossModule.
8875 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8876 reload_cmds='$CC -r -o $output$reload_objs'
8877 hardcode_direct=no
8878 ;;
8879 motorola)
8880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8881 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8882 ;;
8883 esac
8884 runpath_var='LD_RUN_PATH'
8885 hardcode_shlibpath_var=no
8886 ;;
b9668ba4 8887
5c706339
AK
8888 sysv4.3*)
8889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8890 hardcode_shlibpath_var=no
8891 export_dynamic_flag_spec='-Bexport'
8892 ;;
b9668ba4 8893
5c706339
AK
8894 sysv4*MP*)
8895 if test -d /usr/nec; then
8896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8897 hardcode_shlibpath_var=no
8898 runpath_var=LD_RUN_PATH
8899 hardcode_runpath_var=yes
8900 ld_shlibs=yes
8901 fi
8902 ;;
b9668ba4 8903
5c706339
AK
8904 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8905 no_undefined_flag='${wl}-z,text'
8906 archive_cmds_need_lc=no
8907 hardcode_shlibpath_var=no
8908 runpath_var='LD_RUN_PATH'
b9668ba4 8909
5c706339
AK
8910 if test "$GCC" = yes; then
8911 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8912 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8913 else
8914 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8915 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8916 fi
8917 ;;
b9668ba4 8918
5c706339
AK
8919 sysv5* | sco3.2v5* | sco5v6*)
8920 # Note: We can NOT use -z defs as we might desire, because we do not
8921 # link with -lc, and that would cause any symbols used from libc to
8922 # always be unresolved, which means just about no library would
8923 # ever link correctly. If we're not using GNU ld we use -z text
8924 # though, which does catch some bad symbols but isn't as heavy-handed
8925 # as -z defs.
8926 no_undefined_flag='${wl}-z,text'
8927 allow_undefined_flag='${wl}-z,nodefs'
8928 archive_cmds_need_lc=no
8929 hardcode_shlibpath_var=no
8930 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8931 hardcode_libdir_separator=':'
8932 link_all_deplibs=yes
8933 export_dynamic_flag_spec='${wl}-Bexport'
8934 runpath_var='LD_RUN_PATH'
b9668ba4 8935
5c706339
AK
8936 if test "$GCC" = yes; then
8937 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8938 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8939 else
8940 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8941 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8942 fi
8943 ;;
b9668ba4 8944
5c706339
AK
8945 uts4*)
8946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8947 hardcode_libdir_flag_spec='-L$libdir'
8948 hardcode_shlibpath_var=no
8949 ;;
b9668ba4 8950
5c706339
AK
8951 *)
8952 ld_shlibs=no
8953 ;;
b9668ba4
AK
8954 esac
8955
5c706339
AK
8956 if test x$host_vendor = xsni; then
8957 case $host in
8958 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8959 export_dynamic_flag_spec='${wl}-Blargedynsym'
8960 ;;
8961 esac
b9668ba4 8962 fi
5c706339 8963 fi
b9668ba4 8964
5c706339
AK
8965{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8966echo "${ECHO_T}$ld_shlibs" >&6; }
8967test "$ld_shlibs" = no && can_build_shared=no
b9668ba4 8968
5c706339 8969with_gnu_ld=$with_gnu_ld
b9668ba4 8970
b9668ba4 8971
b9668ba4 8972
b9668ba4 8973
b9668ba4 8974
b9668ba4
AK
8975
8976
b9668ba4 8977
b9668ba4
AK
8978
8979
b9668ba4
AK
8980
8981
b9668ba4 8982
b9668ba4
AK
8983
8984
5c706339
AK
8985#
8986# Do we need to explicitly link libc?
8987#
8988case "x$archive_cmds_need_lc" in
8989x|xyes)
8990 # Assume -lc should be added
8991 archive_cmds_need_lc=yes
b9668ba4 8992
5c706339
AK
8993 if test "$enable_shared" = yes && test "$GCC" = yes; then
8994 case $archive_cmds in
8995 *'~'*)
8996 # FIXME: we may have to deal with multi-command sequences.
b9668ba4 8997 ;;
5c706339
AK
8998 '$CC '*)
8999 # Test whether the compiler implicitly links with -lc since on some
9000 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9001 # to ld, don't add -lc before -lgcc.
9002 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9003echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9004 $RM conftest*
9005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
b9668ba4 9006
5c706339
AK
9007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9008 (eval $ac_compile) 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } 2>conftest.err; then
9012 soname=conftest
9013 lib=conftest
9014 libobjs=conftest.$ac_objext
9015 deplibs=
9016 wl=$lt_prog_compiler_wl
9017 pic_flag=$lt_prog_compiler_pic
9018 compiler_flags=-v
9019 linker_flags=-v
9020 verstring=
9021 output_objdir=.
9022 libname=conftest
9023 lt_save_allow_undefined_flag=$allow_undefined_flag
9024 allow_undefined_flag=
9025 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9026 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9027 ac_status=$?
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }
9030 then
9031 archive_cmds_need_lc=no
9032 else
9033 archive_cmds_need_lc=yes
9034 fi
9035 allow_undefined_flag=$lt_save_allow_undefined_flag
9036 else
9037 cat conftest.err 1>&5
9038 fi
9039 $RM conftest*
9040 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9041echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9042 ;;
9043 esac
9044 fi
b9668ba4
AK
9045 ;;
9046esac
b9668ba4
AK
9047
9048
9049
b9668ba4 9050
b9668ba4 9051
b9668ba4 9052
b9668ba4 9053
b9668ba4 9054
b9668ba4 9055
b9668ba4 9056
b9668ba4 9057
b9668ba4 9058
b9668ba4 9059
b9668ba4 9060
b9668ba4 9061
b9668ba4
AK
9062
9063
b9668ba4 9064
b9668ba4 9065
b9668ba4 9066
b9668ba4 9067
b9668ba4 9068
b9668ba4 9069
b9668ba4
AK
9070
9071
b9668ba4 9072
b9668ba4 9073
b9668ba4 9074
b9668ba4 9075
b9668ba4 9076
b9668ba4 9077
b9668ba4 9078
b9668ba4 9079
b9668ba4 9080
b9668ba4 9081
b9668ba4 9082
b9668ba4 9083
b9668ba4 9084
b9668ba4 9085
b9668ba4 9086
b9668ba4 9087
b9668ba4 9088
b9668ba4 9089
b9668ba4 9090
b9668ba4 9091
b9668ba4 9092
b9668ba4 9093
b9668ba4 9094
b9668ba4 9095
b9668ba4
AK
9096
9097
b9668ba4 9098
b9668ba4 9099
b9668ba4 9100
b9668ba4 9101
b9668ba4 9102
b9668ba4 9103
b9668ba4 9104
b9668ba4 9105
b9668ba4 9106
b9668ba4
AK
9107
9108
b9668ba4 9109
b9668ba4 9110
b9668ba4 9111
b9668ba4 9112
b9668ba4 9113
b9668ba4 9114
b9668ba4 9115
b9668ba4 9116
b9668ba4 9117
b9668ba4 9118
b9668ba4 9119
b9668ba4 9120
b9668ba4 9121
b9668ba4
AK
9122
9123
b9668ba4 9124
b9668ba4 9125
b9668ba4
AK
9126
9127
b9668ba4 9128
b9668ba4 9129
b9668ba4 9130
b9668ba4 9131
b9668ba4 9132
b9668ba4 9133
b9668ba4 9134
5c706339
AK
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 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
b9668ba4 9205echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
5c706339
AK
9206
9207if test "$GCC" = yes; then
9208 case $host_os in
9209 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9210 *) lt_awk_arg="/^libraries:/" ;;
9211 esac
9212 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9213 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9214 # if the path contains ";" then we assume it to be the separator
9215 # otherwise default to the standard path separator (i.e. ":") - it is
9216 # assumed that no part of a normal pathname contains ";" but that should
9217 # okay in the real world where ";" in dirpaths is itself problematic.
9218 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9219 else
9220 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9221 fi
9222 # Ok, now we have the path, separated by spaces, we can step through it
9223 # and add multilib dir if necessary.
9224 lt_tmp_lt_search_path_spec=
9225 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9226 for lt_sys_path in $lt_search_path_spec; do
9227 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9228 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9229 else
9230 test -d "$lt_sys_path" && \
9231 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9232 fi
9233 done
9234 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9235BEGIN {RS=" "; FS="/|\n";} {
9236 lt_foo="";
9237 lt_count=0;
9238 for (lt_i = NF; lt_i > 0; lt_i--) {
9239 if ($lt_i != "" && $lt_i != ".") {
9240 if ($lt_i == "..") {
9241 lt_count++;
9242 } else {
9243 if (lt_count == 0) {
9244 lt_foo="/" $lt_i lt_foo;
9245 } else {
9246 lt_count--;
9247 }
9248 }
9249 }
9250 }
9251 if (lt_foo != "") { lt_freq[lt_foo]++; }
9252 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9253}'`
9254 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9255else
9256 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9257fi
b9668ba4
AK
9258library_names_spec=
9259libname_spec='lib$name'
9260soname_spec=
9261shrext_cmds=".so"
9262postinstall_cmds=
9263postuninstall_cmds=
9264finish_cmds=
9265finish_eval=
9266shlibpath_var=
9267shlibpath_overrides_runpath=unknown
9268version_type=none
9269dynamic_linker="$host_os ld.so"
9270sys_lib_dlsearch_path_spec="/lib /usr/lib"
b9668ba4
AK
9271need_lib_prefix=unknown
9272hardcode_into_libs=no
9273
9274# when you set need_version to no, make sure it does not cause -set_version
9275# flags to be left without arguments
9276need_version=unknown
9277
9278case $host_os in
9279aix3*)
9280 version_type=linux
9281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9282 shlibpath_var=LIBPATH
9283
9284 # AIX 3 has no versioning support, so we append a major version to the name.
9285 soname_spec='${libname}${release}${shared_ext}$major'
9286 ;;
9287
5c706339 9288aix[4-9]*)
b9668ba4
AK
9289 version_type=linux
9290 need_lib_prefix=no
9291 need_version=no
9292 hardcode_into_libs=yes
9293 if test "$host_cpu" = ia64; then
9294 # AIX 5 supports IA64
9295 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9296 shlibpath_var=LD_LIBRARY_PATH
9297 else
9298 # With GCC up to 2.95.x, collect2 would create an import file
9299 # for dependence libraries. The import file would start with
9300 # the line `#! .'. This would cause the generated library to
9301 # depend on `.', always an invalid library. This was fixed in
9302 # development snapshots of GCC prior to 3.0.
9303 case $host_os in
9304 aix4 | aix4.[01] | aix4.[01].*)
9305 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9306 echo ' yes '
5c706339 9307 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
b9668ba4
AK
9308 :
9309 else
9310 can_build_shared=no
9311 fi
9312 ;;
9313 esac
9314 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9315 # soname into executable. Probably we can add versioning support to
9316 # collect2, so additional links can be useful in future.
9317 if test "$aix_use_runtimelinking" = yes; then
9318 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9319 # instead of lib<name>.a to let people know that these are not
9320 # typical AIX shared libraries.
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322 else
9323 # We preserve .a as extension for shared libraries through AIX4.2
9324 # and later when we are not doing run time linking.
9325 library_names_spec='${libname}${release}.a $libname.a'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 fi
9328 shlibpath_var=LIBPATH
9329 fi
9330 ;;
9331
9332amigaos*)
5c706339
AK
9333 case $host_cpu in
9334 powerpc)
9335 # Since July 2007 AmigaOS4 officially supports .so libraries.
9336 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9338 ;;
9339 m68k)
9340 library_names_spec='$libname.ixlibrary $libname.a'
9341 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9342 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'
9343 ;;
9344 esac
b9668ba4
AK
9345 ;;
9346
9347beos*)
9348 library_names_spec='${libname}${shared_ext}'
9349 dynamic_linker="$host_os ld.so"
9350 shlibpath_var=LIBRARY_PATH
9351 ;;
9352
9353bsdi[45]*)
9354 version_type=linux
9355 need_version=no
9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357 soname_spec='${libname}${release}${shared_ext}$major'
9358 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9359 shlibpath_var=LD_LIBRARY_PATH
9360 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9361 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9362 # the default ld.so.conf also contains /usr/contrib/lib and
9363 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9364 # libtool to hard-code these into programs
9365 ;;
9366
9367cygwin* | mingw* | pw32*)
9368 version_type=windows
9369 shrext_cmds=".dll"
9370 need_version=no
9371 need_lib_prefix=no
9372
9373 case $GCC,$host_os in
9374 yes,cygwin* | yes,mingw* | yes,pw32*)
9375 library_names_spec='$libname.dll.a'
9376 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9377 postinstall_cmds='base_file=`basename \${file}`~
5c706339 9378 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
b9668ba4
AK
9379 dldir=$destdir/`dirname \$dlpath`~
9380 test -d \$dldir || mkdir -p \$dldir~
9381 $install_prog $dir/$dlname \$dldir/$dlname~
5c706339
AK
9382 chmod a+x \$dldir/$dlname~
9383 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9384 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9385 fi'
b9668ba4
AK
9386 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9387 dlpath=$dir/\$dldll~
5c706339 9388 $RM \$dlpath'
b9668ba4
AK
9389 shlibpath_overrides_runpath=yes
9390
9391 case $host_os in
9392 cygwin*)
9393 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9394 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9395 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9396 ;;
9397 mingw*)
9398 # MinGW DLLs use traditional 'lib' prefix
9399 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5c706339
AK
9400 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9401 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
b9668ba4
AK
9402 # It is most probably a Windows format PATH printed by
9403 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9404 # path with ; separators, and with drive letters. We can handle the
9405 # drive letters (cygwin fileutils understands them), so leave them,
9406 # especially as we might pass files found there to a mingw objdump,
9407 # which wouldn't understand a cygwinified path. Ahh.
5c706339 9408 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
b9668ba4 9409 else
5c706339 9410 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
b9668ba4
AK
9411 fi
9412 ;;
9413 pw32*)
9414 # pw32 DLLs use 'pw' prefix rather than 'lib'
9415 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9416 ;;
9417 esac
9418 ;;
9419
9420 *)
9421 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9422 ;;
9423 esac
9424 dynamic_linker='Win32 ld.exe'
9425 # FIXME: first we should search . and the directory the executable is in
9426 shlibpath_var=PATH
9427 ;;
9428
9429darwin* | rhapsody*)
9430 dynamic_linker="$host_os dyld"
9431 version_type=darwin
9432 need_lib_prefix=no
9433 need_version=no
5c706339 9434 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
b9668ba4
AK
9435 soname_spec='${libname}${release}${major}$shared_ext'
9436 shlibpath_overrides_runpath=yes
9437 shlibpath_var=DYLD_LIBRARY_PATH
9438 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
5c706339
AK
9439
9440 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
b9668ba4
AK
9441 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9442 ;;
9443
9444dgux*)
9445 version_type=linux
9446 need_lib_prefix=no
9447 need_version=no
9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9449 soname_spec='${libname}${release}${shared_ext}$major'
9450 shlibpath_var=LD_LIBRARY_PATH
9451 ;;
9452
9453freebsd1*)
9454 dynamic_linker=no
9455 ;;
9456
9457freebsd* | dragonfly*)
9458 # DragonFly does not have aout. When/if they implement a new
9459 # versioning mechanism, adjust this.
9460 if test -x /usr/bin/objformat; then
9461 objformat=`/usr/bin/objformat`
9462 else
9463 case $host_os in
9464 freebsd[123]*) objformat=aout ;;
9465 *) objformat=elf ;;
9466 esac
9467 fi
9468 version_type=freebsd-$objformat
9469 case $version_type in
9470 freebsd-elf*)
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9472 need_version=no
9473 need_lib_prefix=no
9474 ;;
9475 freebsd-*)
9476 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9477 need_version=yes
9478 ;;
9479 esac
9480 shlibpath_var=LD_LIBRARY_PATH
9481 case $host_os in
9482 freebsd2*)
9483 shlibpath_overrides_runpath=yes
9484 ;;
9485 freebsd3.[01]* | freebsdelf3.[01]*)
9486 shlibpath_overrides_runpath=yes
9487 hardcode_into_libs=yes
9488 ;;
9489 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9490 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9491 shlibpath_overrides_runpath=no
9492 hardcode_into_libs=yes
9493 ;;
5c706339 9494 *) # from 4.6 on, and DragonFly
b9668ba4
AK
9495 shlibpath_overrides_runpath=yes
9496 hardcode_into_libs=yes
9497 ;;
9498 esac
9499 ;;
9500
9501gnu*)
9502 version_type=linux
9503 need_lib_prefix=no
9504 need_version=no
9505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9506 soname_spec='${libname}${release}${shared_ext}$major'
9507 shlibpath_var=LD_LIBRARY_PATH
9508 hardcode_into_libs=yes
9509 ;;
9510
9511hpux9* | hpux10* | hpux11*)
9512 # Give a soname corresponding to the major version so that dld.sl refuses to
9513 # link against other versions.
9514 version_type=sunos
9515 need_lib_prefix=no
9516 need_version=no
9517 case $host_cpu in
9518 ia64*)
9519 shrext_cmds='.so'
9520 hardcode_into_libs=yes
9521 dynamic_linker="$host_os dld.so"
9522 shlibpath_var=LD_LIBRARY_PATH
9523 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525 soname_spec='${libname}${release}${shared_ext}$major'
9526 if test "X$HPUX_IA64_MODE" = X32; then
9527 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9528 else
9529 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9530 fi
9531 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9532 ;;
5c706339
AK
9533 hppa*64*)
9534 shrext_cmds='.sl'
9535 hardcode_into_libs=yes
9536 dynamic_linker="$host_os dld.sl"
9537 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540 soname_spec='${libname}${release}${shared_ext}$major'
9541 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9542 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9543 ;;
9544 *)
b9668ba4
AK
9545 shrext_cmds='.sl'
9546 dynamic_linker="$host_os dld.sl"
9547 shlibpath_var=SHLIB_PATH
9548 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9550 soname_spec='${libname}${release}${shared_ext}$major'
9551 ;;
9552 esac
9553 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9554 postinstall_cmds='chmod 555 $lib'
9555 ;;
9556
5c706339 9557interix[3-9]*)
b9668ba4
AK
9558 version_type=linux
9559 need_lib_prefix=no
9560 need_version=no
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9562 soname_spec='${libname}${release}${shared_ext}$major'
9563 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9564 shlibpath_var=LD_LIBRARY_PATH
9565 shlibpath_overrides_runpath=no
9566 hardcode_into_libs=yes
9567 ;;
9568
9569irix5* | irix6* | nonstopux*)
9570 case $host_os in
9571 nonstopux*) version_type=nonstopux ;;
9572 *)
9573 if test "$lt_cv_prog_gnu_ld" = yes; then
9574 version_type=linux
9575 else
9576 version_type=irix
9577 fi ;;
9578 esac
9579 need_lib_prefix=no
9580 need_version=no
9581 soname_spec='${libname}${release}${shared_ext}$major'
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9583 case $host_os in
9584 irix5* | nonstopux*)
9585 libsuff= shlibsuff=
9586 ;;
9587 *)
9588 case $LD in # libtool.m4 will add one of these switches to LD
9589 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9590 libsuff= shlibsuff= libmagic=32-bit;;
9591 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9592 libsuff=32 shlibsuff=N32 libmagic=N32;;
9593 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9594 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9595 *) libsuff= shlibsuff= libmagic=never-match;;
9596 esac
9597 ;;
9598 esac
9599 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9600 shlibpath_overrides_runpath=no
9601 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9602 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9603 hardcode_into_libs=yes
9604 ;;
9605
9606# No shared lib support for Linux oldld, aout, or coff.
9607linux*oldld* | linux*aout* | linux*coff*)
9608 dynamic_linker=no
9609 ;;
9610
9611# This must be Linux ELF.
9612linux* | k*bsd*-gnu)
9613 version_type=linux
9614 need_lib_prefix=no
9615 need_version=no
9616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9617 soname_spec='${libname}${release}${shared_ext}$major'
9618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9619 shlibpath_var=LD_LIBRARY_PATH
9620 shlibpath_overrides_runpath=no
5c706339
AK
9621 # Some binutils ld are patched to set DT_RUNPATH
9622 save_LDFLAGS=$LDFLAGS
9623 save_libdir=$libdir
9624 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9625 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9626 cat >conftest.$ac_ext <<_ACEOF
9627/* confdefs.h. */
9628_ACEOF
9629cat confdefs.h >>conftest.$ac_ext
9630cat >>conftest.$ac_ext <<_ACEOF
9631/* end confdefs.h. */
9632
9633int
9634main ()
9635{
9636
9637 ;
9638 return 0;
9639}
9640_ACEOF
9641rm -f conftest.$ac_objext conftest$ac_exeext
9642if { (ac_try="$ac_link"
9643case "(($ac_try" in
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9646esac
9647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_link") 2>conftest.er1
9649 ac_status=$?
9650 grep -v '^ *+' conftest.er1 >conftest.err
9651 rm -f conftest.er1
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } && {
9655 test -z "$ac_c_werror_flag" ||
9656 test ! -s conftest.err
9657 } && test -s conftest$ac_exeext &&
9658 $as_test_x conftest$ac_exeext; then
9659 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9660 shlibpath_overrides_runpath=yes
9661fi
9662
9663else
9664 echo "$as_me: failed program was:" >&5
9665sed 's/^/| /' conftest.$ac_ext >&5
9666
9667
9668fi
9669
9670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9671 conftest$ac_exeext conftest.$ac_ext
9672 LDFLAGS=$save_LDFLAGS
9673 libdir=$save_libdir
9674
b9668ba4
AK
9675 # This implies no fast_install, which is unacceptable.
9676 # Some rework will be needed to allow for fast_install
9677 # before this can be enabled.
9678 hardcode_into_libs=yes
9679
9680 # Append ld.so.conf contents to the search path
9681 if test -f /etc/ld.so.conf; then
5c706339 9682 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' ' '`
b9668ba4
AK
9683 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9684 fi
9685
9686 # We used to test for /lib/ld.so.1 and disable shared libraries on
9687 # powerpc, because MkLinux only supported shared libraries with the
9688 # GNU dynamic linker. Since this was broken with cross compilers,
9689 # most powerpc-linux boxes support dynamic linking these days and
9690 # people can always --disable-shared, the test was removed, and we
9691 # assume the GNU/Linux dynamic linker is in use.
9692 dynamic_linker='GNU/Linux ld.so'
9693 ;;
9694
9695netbsdelf*-gnu)
9696 version_type=linux
9697 need_lib_prefix=no
9698 need_version=no
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9700 soname_spec='${libname}${release}${shared_ext}$major'
9701 shlibpath_var=LD_LIBRARY_PATH
9702 shlibpath_overrides_runpath=no
9703 hardcode_into_libs=yes
9704 dynamic_linker='NetBSD ld.elf_so'
9705 ;;
9706
9707netbsd*)
9708 version_type=sunos
9709 need_lib_prefix=no
9710 need_version=no
5c706339 9711 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
b9668ba4
AK
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9714 dynamic_linker='NetBSD (a.out) ld.so'
9715 else
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9717 soname_spec='${libname}${release}${shared_ext}$major'
9718 dynamic_linker='NetBSD ld.elf_so'
9719 fi
9720 shlibpath_var=LD_LIBRARY_PATH
9721 shlibpath_overrides_runpath=yes
9722 hardcode_into_libs=yes
9723 ;;
9724
9725newsos6)
9726 version_type=linux
9727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728 shlibpath_var=LD_LIBRARY_PATH
9729 shlibpath_overrides_runpath=yes
9730 ;;
9731
5c706339
AK
9732*nto* | *qnx*)
9733 version_type=qnx
b9668ba4
AK
9734 need_lib_prefix=no
9735 need_version=no
9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9737 soname_spec='${libname}${release}${shared_ext}$major'
9738 shlibpath_var=LD_LIBRARY_PATH
5c706339
AK
9739 shlibpath_overrides_runpath=no
9740 hardcode_into_libs=yes
9741 dynamic_linker='ldqnx.so'
b9668ba4
AK
9742 ;;
9743
9744openbsd*)
9745 version_type=sunos
9746 sys_lib_dlsearch_path_spec="/usr/lib"
9747 need_lib_prefix=no
9748 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9749 case $host_os in
5c706339
AK
9750 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9751 *) need_version=no ;;
b9668ba4
AK
9752 esac
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9755 shlibpath_var=LD_LIBRARY_PATH
5c706339 9756 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
b9668ba4
AK
9757 case $host_os in
9758 openbsd2.[89] | openbsd2.[89].*)
9759 shlibpath_overrides_runpath=no
9760 ;;
9761 *)
9762 shlibpath_overrides_runpath=yes
9763 ;;
9764 esac
9765 else
9766 shlibpath_overrides_runpath=yes
9767 fi
9768 ;;
9769
9770os2*)
9771 libname_spec='$name'
9772 shrext_cmds=".dll"
9773 need_lib_prefix=no
9774 library_names_spec='$libname${shared_ext} $libname.a'
9775 dynamic_linker='OS/2 ld.exe'
9776 shlibpath_var=LIBPATH
9777 ;;
9778
9779osf3* | osf4* | osf5*)
9780 version_type=osf
9781 need_lib_prefix=no
9782 need_version=no
9783 soname_spec='${libname}${release}${shared_ext}$major'
9784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9785 shlibpath_var=LD_LIBRARY_PATH
9786 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9787 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9788 ;;
9789
5c706339
AK
9790rdos*)
9791 dynamic_linker=no
9792 ;;
9793
b9668ba4
AK
9794solaris*)
9795 version_type=linux
9796 need_lib_prefix=no
9797 need_version=no
9798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9799 soname_spec='${libname}${release}${shared_ext}$major'
9800 shlibpath_var=LD_LIBRARY_PATH
9801 shlibpath_overrides_runpath=yes
9802 hardcode_into_libs=yes
9803 # ldd complains unless libraries are executable
9804 postinstall_cmds='chmod +x $lib'
9805 ;;
9806
9807sunos4*)
9808 version_type=sunos
9809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9810 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9811 shlibpath_var=LD_LIBRARY_PATH
9812 shlibpath_overrides_runpath=yes
9813 if test "$with_gnu_ld" = yes; then
9814 need_lib_prefix=no
9815 fi
9816 need_version=yes
9817 ;;
9818
9819sysv4 | sysv4.3*)
9820 version_type=linux
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 shlibpath_var=LD_LIBRARY_PATH
9824 case $host_vendor in
9825 sni)
9826 shlibpath_overrides_runpath=no
9827 need_lib_prefix=no
b9668ba4
AK
9828 runpath_var=LD_RUN_PATH
9829 ;;
9830 siemens)
9831 need_lib_prefix=no
9832 ;;
9833 motorola)
9834 need_lib_prefix=no
9835 need_version=no
9836 shlibpath_overrides_runpath=no
9837 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9838 ;;
9839 esac
9840 ;;
9841
9842sysv4*MP*)
9843 if test -d /usr/nec ;then
9844 version_type=linux
9845 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9846 soname_spec='$libname${shared_ext}.$major'
9847 shlibpath_var=LD_LIBRARY_PATH
9848 fi
9849 ;;
9850
9851sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9852 version_type=freebsd-elf
9853 need_lib_prefix=no
9854 need_version=no
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9856 soname_spec='${libname}${release}${shared_ext}$major'
9857 shlibpath_var=LD_LIBRARY_PATH
5c706339 9858 shlibpath_overrides_runpath=yes
b9668ba4
AK
9859 hardcode_into_libs=yes
9860 if test "$with_gnu_ld" = yes; then
9861 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
b9668ba4
AK
9862 else
9863 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
b9668ba4
AK
9864 case $host_os in
9865 sco3.2v5*)
9866 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9867 ;;
9868 esac
9869 fi
9870 sys_lib_dlsearch_path_spec='/usr/lib'
9871 ;;
9872
5c706339
AK
9873tpf*)
9874 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9875 version_type=linux
9876 need_lib_prefix=no
9877 need_version=no
9878 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9879 shlibpath_var=LD_LIBRARY_PATH
9880 shlibpath_overrides_runpath=no
9881 hardcode_into_libs=yes
9882 ;;
9883
b9668ba4
AK
9884uts4*)
9885 version_type=linux
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9887 soname_spec='${libname}${release}${shared_ext}$major'
9888 shlibpath_var=LD_LIBRARY_PATH
9889 ;;
9890
9891*)
9892 dynamic_linker=no
9893 ;;
9894esac
9895{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9896echo "${ECHO_T}$dynamic_linker" >&6; }
9897test "$dynamic_linker" = no && can_build_shared=no
9898
9899variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9900if test "$GCC" = yes; then
9901 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9902fi
9903
5c706339
AK
9904if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9905 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
b9668ba4 9906fi
5c706339
AK
9907if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9908 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
b9668ba4
AK
9909fi
9910
9911
b9668ba4 9912
b9668ba4 9913
b9668ba4 9914
b9668ba4 9915
b9668ba4 9916
b9668ba4 9917
b9668ba4 9918
b9668ba4 9919
b9668ba4 9920
b9668ba4 9921
b9668ba4 9922
b9668ba4 9923
b9668ba4 9924
b9668ba4 9925
b9668ba4 9926
b9668ba4 9927
b9668ba4 9928
b9668ba4 9929
b9668ba4 9930
b9668ba4 9931
b9668ba4 9932
b9668ba4 9933
b9668ba4 9934
b9668ba4 9935
b9668ba4 9936
b9668ba4 9937
b9668ba4 9938
b9668ba4 9939
b9668ba4 9940
b9668ba4 9941
b9668ba4 9942
b9668ba4 9943
b9668ba4 9944
b9668ba4 9945
b9668ba4 9946
b9668ba4 9947
b9668ba4 9948
b9668ba4 9949
b9668ba4 9950
b9668ba4 9951
b9668ba4 9952
b9668ba4 9953
b9668ba4 9954
b9668ba4 9955
b9668ba4 9956
b9668ba4 9957
b9668ba4 9958
b9668ba4 9959
b9668ba4 9960
b9668ba4 9961
b9668ba4 9962
b9668ba4 9963
b9668ba4 9964
b9668ba4 9965
b9668ba4 9966
b9668ba4 9967
b9668ba4 9968
b9668ba4 9969
b9668ba4 9970
b9668ba4 9971
b9668ba4 9972
b9668ba4 9973
b9668ba4 9974
b9668ba4 9975
b9668ba4 9976
b9668ba4 9977
b9668ba4 9978
b9668ba4 9979
b9668ba4 9980
b9668ba4 9981
b9668ba4 9982
b9668ba4 9983
b9668ba4 9984
b9668ba4 9985
b9668ba4 9986
b9668ba4 9987
b9668ba4 9988
b9668ba4 9989
b9668ba4 9990
b9668ba4 9991
b9668ba4 9992
b9668ba4 9993
b9668ba4 9994
b9668ba4 9995
b9668ba4 9996
5c706339
AK
9997 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9998echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9999hardcode_action=
10000if test -n "$hardcode_libdir_flag_spec" ||
10001 test -n "$runpath_var" ||
10002 test "X$hardcode_automatic" = "Xyes" ; then
b9668ba4 10003
5c706339
AK
10004 # We can hardcode non-existent directories.
10005 if test "$hardcode_direct" != no &&
10006 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10007 # have to relink, otherwise we might link with an installed library
10008 # when we should be linking with a yet-to-be-installed one
10009 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10010 test "$hardcode_minus_L" != no; then
10011 # Linking always hardcodes the temporary library directory.
10012 hardcode_action=relink
10013 else
10014 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10015 hardcode_action=immediate
10016 fi
10017else
10018 # We cannot hardcode anything, or else we can only hardcode existing
10019 # directories.
10020 hardcode_action=unsupported
10021fi
10022{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10023echo "${ECHO_T}$hardcode_action" >&6; }
b9668ba4 10024
5c706339
AK
10025if test "$hardcode_action" = relink ||
10026 test "$inherit_rpath" = yes; then
10027 # Fast installation is not supported
10028 enable_fast_install=no
10029elif test "$shlibpath_overrides_runpath" = yes ||
10030 test "$enable_shared" = no; then
10031 # Fast installation is not necessary
10032 enable_fast_install=needless
10033fi
b9668ba4 10034
b9668ba4 10035
b9668ba4 10036
b9668ba4 10037
b9668ba4 10038
b9668ba4 10039
5c706339
AK
10040 if test "x$enable_dlopen" != xyes; then
10041 enable_dlopen=unknown
10042 enable_dlopen_self=unknown
10043 enable_dlopen_self_static=unknown
10044else
10045 lt_cv_dlopen=no
10046 lt_cv_dlopen_libs=
b9668ba4 10047
5c706339
AK
10048 case $host_os in
10049 beos*)
10050 lt_cv_dlopen="load_add_on"
10051 lt_cv_dlopen_libs=
10052 lt_cv_dlopen_self=yes
10053 ;;
b9668ba4 10054
5c706339
AK
10055 mingw* | pw32*)
10056 lt_cv_dlopen="LoadLibrary"
10057 lt_cv_dlopen_libs=
10058 ;;
b9668ba4 10059
5c706339
AK
10060 cygwin*)
10061 lt_cv_dlopen="dlopen"
10062 lt_cv_dlopen_libs=
10063 ;;
b9668ba4 10064
5c706339
AK
10065 darwin*)
10066 # if libdl is installed we need to link against it
10067 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10068echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10069if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10071else
10072 ac_check_lib_save_LIBS=$LIBS
10073LIBS="-ldl $LIBS"
10074cat >conftest.$ac_ext <<_ACEOF
10075/* confdefs.h. */
10076_ACEOF
10077cat confdefs.h >>conftest.$ac_ext
10078cat >>conftest.$ac_ext <<_ACEOF
10079/* end confdefs.h. */
b9668ba4 10080
5c706339
AK
10081/* Override any GCC internal prototype to avoid an error.
10082 Use char because int might match the return type of a GCC
10083 builtin and then its argument prototype would still apply. */
10084#ifdef __cplusplus
10085extern "C"
10086#endif
10087char dlopen ();
10088int
10089main ()
10090{
10091return dlopen ();
10092 ;
10093 return 0;
10094}
10095_ACEOF
10096rm -f conftest.$ac_objext conftest$ac_exeext
10097if { (ac_try="$ac_link"
10098case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10101esac
10102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_link") 2>conftest.er1
10104 ac_status=$?
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } && {
10110 test -z "$ac_c_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest$ac_exeext &&
10113 $as_test_x conftest$ac_exeext; then
10114 ac_cv_lib_dl_dlopen=yes
b9668ba4 10115else
5c706339
AK
10116 echo "$as_me: failed program was:" >&5
10117sed 's/^/| /' conftest.$ac_ext >&5
10118
10119 ac_cv_lib_dl_dlopen=no
b9668ba4
AK
10120fi
10121
5c706339
AK
10122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10123 conftest$ac_exeext conftest.$ac_ext
10124LIBS=$ac_check_lib_save_LIBS
10125fi
10126{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10127echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10128if test $ac_cv_lib_dl_dlopen = yes; then
10129 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10130else
b9668ba4 10131
5c706339
AK
10132 lt_cv_dlopen="dyld"
10133 lt_cv_dlopen_libs=
10134 lt_cv_dlopen_self=yes
b9668ba4 10135
5c706339 10136fi
b9668ba4 10137
5c706339 10138 ;;
b9668ba4 10139
5c706339
AK
10140 *)
10141 { echo "$as_me:$LINENO: checking for shl_load" >&5
10142echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10143if test "${ac_cv_func_shl_load+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10145else
10146 cat >conftest.$ac_ext <<_ACEOF
10147/* confdefs.h. */
10148_ACEOF
10149cat confdefs.h >>conftest.$ac_ext
10150cat >>conftest.$ac_ext <<_ACEOF
10151/* end confdefs.h. */
10152/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10154#define shl_load innocuous_shl_load
b9668ba4 10155
5c706339
AK
10156/* System header to define __stub macros and hopefully few prototypes,
10157 which can conflict with char shl_load (); below.
10158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10159 <limits.h> exists even on freestanding compilers. */
b9668ba4 10160
5c706339
AK
10161#ifdef __STDC__
10162# include <limits.h>
10163#else
10164# include <assert.h>
10165#endif
b9668ba4 10166
5c706339 10167#undef shl_load
b9668ba4 10168
5c706339
AK
10169/* Override any GCC internal prototype to avoid an error.
10170 Use char because int might match the return type of a GCC
10171 builtin and then its argument prototype would still apply. */
10172#ifdef __cplusplus
10173extern "C"
10174#endif
10175char shl_load ();
10176/* The GNU C library defines this for functions which it implements
10177 to always fail with ENOSYS. Some functions are actually named
10178 something starting with __ and the normal name is an alias. */
10179#if defined __stub_shl_load || defined __stub___shl_load
10180choke me
10181#endif
b9668ba4 10182
5c706339
AK
10183int
10184main ()
10185{
10186return shl_load ();
10187 ;
10188 return 0;
10189}
10190_ACEOF
10191rm -f conftest.$ac_objext conftest$ac_exeext
10192if { (ac_try="$ac_link"
10193case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10196esac
10197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_link") 2>conftest.er1
10199 ac_status=$?
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } && {
10205 test -z "$ac_c_werror_flag" ||
10206 test ! -s conftest.err
10207 } && test -s conftest$ac_exeext &&
10208 $as_test_x conftest$ac_exeext; then
10209 ac_cv_func_shl_load=yes
10210else
10211 echo "$as_me: failed program was:" >&5
10212sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 10213
5c706339
AK
10214 ac_cv_func_shl_load=no
10215fi
b9668ba4 10216
5c706339
AK
10217rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10218 conftest$ac_exeext conftest.$ac_ext
10219fi
10220{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10221echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10222if test $ac_cv_func_shl_load = yes; then
10223 lt_cv_dlopen="shl_load"
10224else
10225 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10226echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10227if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10229else
10230 ac_check_lib_save_LIBS=$LIBS
10231LIBS="-ldld $LIBS"
10232cat >conftest.$ac_ext <<_ACEOF
10233/* confdefs.h. */
10234_ACEOF
10235cat confdefs.h >>conftest.$ac_ext
10236cat >>conftest.$ac_ext <<_ACEOF
10237/* end confdefs.h. */
b9668ba4 10238
5c706339
AK
10239/* Override any GCC internal prototype to avoid an error.
10240 Use char because int might match the return type of a GCC
10241 builtin and then its argument prototype would still apply. */
10242#ifdef __cplusplus
10243extern "C"
10244#endif
10245char shl_load ();
10246int
10247main ()
10248{
10249return shl_load ();
10250 ;
10251 return 0;
10252}
10253_ACEOF
10254rm -f conftest.$ac_objext conftest$ac_exeext
10255if { (ac_try="$ac_link"
10256case "(($ac_try" in
10257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258 *) ac_try_echo=$ac_try;;
10259esac
10260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261 (eval "$ac_link") 2>conftest.er1
10262 ac_status=$?
10263 grep -v '^ *+' conftest.er1 >conftest.err
10264 rm -f conftest.er1
10265 cat conftest.err >&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } && {
10268 test -z "$ac_c_werror_flag" ||
10269 test ! -s conftest.err
10270 } && test -s conftest$ac_exeext &&
10271 $as_test_x conftest$ac_exeext; then
10272 ac_cv_lib_dld_shl_load=yes
10273else
10274 echo "$as_me: failed program was:" >&5
10275sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 10276
5c706339
AK
10277 ac_cv_lib_dld_shl_load=no
10278fi
b9668ba4 10279
5c706339
AK
10280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10281 conftest$ac_exeext conftest.$ac_ext
10282LIBS=$ac_check_lib_save_LIBS
10283fi
10284{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10285echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10286if test $ac_cv_lib_dld_shl_load = yes; then
10287 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10288else
10289 { echo "$as_me:$LINENO: checking for dlopen" >&5
10290echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10291if test "${ac_cv_func_dlopen+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10293else
10294 cat >conftest.$ac_ext <<_ACEOF
10295/* confdefs.h. */
10296_ACEOF
10297cat confdefs.h >>conftest.$ac_ext
10298cat >>conftest.$ac_ext <<_ACEOF
10299/* end confdefs.h. */
10300/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10302#define dlopen innocuous_dlopen
b9668ba4 10303
5c706339
AK
10304/* System header to define __stub macros and hopefully few prototypes,
10305 which can conflict with char dlopen (); below.
10306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10307 <limits.h> exists even on freestanding compilers. */
b9668ba4 10308
5c706339
AK
10309#ifdef __STDC__
10310# include <limits.h>
10311#else
10312# include <assert.h>
10313#endif
b9668ba4 10314
5c706339 10315#undef dlopen
b9668ba4 10316
5c706339
AK
10317/* Override any GCC internal prototype to avoid an error.
10318 Use char because int might match the return type of a GCC
10319 builtin and then its argument prototype would still apply. */
10320#ifdef __cplusplus
10321extern "C"
10322#endif
10323char dlopen ();
10324/* The GNU C library defines this for functions which it implements
10325 to always fail with ENOSYS. Some functions are actually named
10326 something starting with __ and the normal name is an alias. */
10327#if defined __stub_dlopen || defined __stub___dlopen
10328choke me
10329#endif
b9668ba4 10330
5c706339
AK
10331int
10332main ()
10333{
10334return dlopen ();
10335 ;
10336 return 0;
10337}
10338_ACEOF
10339rm -f conftest.$ac_objext conftest$ac_exeext
10340if { (ac_try="$ac_link"
10341case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
b9668ba4 10344esac
5c706339
AK
10345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_link") 2>conftest.er1
10347 ac_status=$?
10348 grep -v '^ *+' conftest.er1 >conftest.err
10349 rm -f conftest.er1
10350 cat conftest.err >&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } && {
10353 test -z "$ac_c_werror_flag" ||
10354 test ! -s conftest.err
10355 } && test -s conftest$ac_exeext &&
10356 $as_test_x conftest$ac_exeext; then
10357 ac_cv_func_dlopen=yes
10358else
10359 echo "$as_me: failed program was:" >&5
10360sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 10361
5c706339
AK
10362 ac_cv_func_dlopen=no
10363fi
b9668ba4 10364
5c706339
AK
10365rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10366 conftest$ac_exeext conftest.$ac_ext
10367fi
10368{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10369echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10370if test $ac_cv_func_dlopen = yes; then
10371 lt_cv_dlopen="dlopen"
10372else
10373 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10374echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10375if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10376 echo $ECHO_N "(cached) $ECHO_C" >&6
10377else
10378 ac_check_lib_save_LIBS=$LIBS
10379LIBS="-ldl $LIBS"
10380cat >conftest.$ac_ext <<_ACEOF
10381/* confdefs.h. */
10382_ACEOF
10383cat confdefs.h >>conftest.$ac_ext
10384cat >>conftest.$ac_ext <<_ACEOF
10385/* end confdefs.h. */
b9668ba4 10386
5c706339
AK
10387/* Override any GCC internal prototype to avoid an error.
10388 Use char because int might match the return type of a GCC
10389 builtin and then its argument prototype would still apply. */
10390#ifdef __cplusplus
10391extern "C"
10392#endif
10393char dlopen ();
10394int
10395main ()
10396{
10397return dlopen ();
10398 ;
10399 return 0;
10400}
10401_ACEOF
10402rm -f conftest.$ac_objext conftest$ac_exeext
10403if { (ac_try="$ac_link"
10404case "(($ac_try" in
10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10407esac
10408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_link") 2>conftest.er1
10410 ac_status=$?
10411 grep -v '^ *+' conftest.er1 >conftest.err
10412 rm -f conftest.er1
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } && {
10416 test -z "$ac_c_werror_flag" ||
10417 test ! -s conftest.err
10418 } && test -s conftest$ac_exeext &&
10419 $as_test_x conftest$ac_exeext; then
10420 ac_cv_lib_dl_dlopen=yes
10421else
10422 echo "$as_me: failed program was:" >&5
10423sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 10424
5c706339
AK
10425 ac_cv_lib_dl_dlopen=no
10426fi
b9668ba4 10427
5c706339
AK
10428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10429 conftest$ac_exeext conftest.$ac_ext
10430LIBS=$ac_check_lib_save_LIBS
10431fi
10432{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10433echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10434if test $ac_cv_lib_dl_dlopen = yes; then
10435 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10436else
10437 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10438echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10439if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10441else
10442 ac_check_lib_save_LIBS=$LIBS
10443LIBS="-lsvld $LIBS"
10444cat >conftest.$ac_ext <<_ACEOF
10445/* confdefs.h. */
10446_ACEOF
10447cat confdefs.h >>conftest.$ac_ext
10448cat >>conftest.$ac_ext <<_ACEOF
10449/* end confdefs.h. */
b9668ba4 10450
5c706339
AK
10451/* Override any GCC internal prototype to avoid an error.
10452 Use char because int might match the return type of a GCC
10453 builtin and then its argument prototype would still apply. */
10454#ifdef __cplusplus
10455extern "C"
10456#endif
10457char dlopen ();
10458int
10459main ()
10460{
10461return dlopen ();
10462 ;
10463 return 0;
10464}
10465_ACEOF
10466rm -f conftest.$ac_objext conftest$ac_exeext
10467if { (ac_try="$ac_link"
10468case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10471esac
10472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473 (eval "$ac_link") 2>conftest.er1
10474 ac_status=$?
10475 grep -v '^ *+' conftest.er1 >conftest.err
10476 rm -f conftest.er1
10477 cat conftest.err >&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } && {
10480 test -z "$ac_c_werror_flag" ||
10481 test ! -s conftest.err
10482 } && test -s conftest$ac_exeext &&
10483 $as_test_x conftest$ac_exeext; then
10484 ac_cv_lib_svld_dlopen=yes
10485else
10486 echo "$as_me: failed program was:" >&5
10487sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 10488
5c706339
AK
10489 ac_cv_lib_svld_dlopen=no
10490fi
b9668ba4 10491
5c706339
AK
10492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10493 conftest$ac_exeext conftest.$ac_ext
10494LIBS=$ac_check_lib_save_LIBS
10495fi
10496{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10497echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10498if test $ac_cv_lib_svld_dlopen = yes; then
10499 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10500else
10501 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10502echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10503if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10504 echo $ECHO_N "(cached) $ECHO_C" >&6
10505else
10506 ac_check_lib_save_LIBS=$LIBS
10507LIBS="-ldld $LIBS"
10508cat >conftest.$ac_ext <<_ACEOF
10509/* confdefs.h. */
10510_ACEOF
10511cat confdefs.h >>conftest.$ac_ext
10512cat >>conftest.$ac_ext <<_ACEOF
10513/* end confdefs.h. */
b9668ba4 10514
5c706339
AK
10515/* Override any GCC internal prototype to avoid an error.
10516 Use char because int might match the return type of a GCC
10517 builtin and then its argument prototype would still apply. */
10518#ifdef __cplusplus
10519extern "C"
10520#endif
10521char dld_link ();
10522int
10523main ()
10524{
10525return dld_link ();
10526 ;
10527 return 0;
10528}
10529_ACEOF
10530rm -f conftest.$ac_objext conftest$ac_exeext
10531if { (ac_try="$ac_link"
10532case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535esac
10536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_link") 2>conftest.er1
10538 ac_status=$?
10539 grep -v '^ *+' conftest.er1 >conftest.err
10540 rm -f conftest.er1
10541 cat conftest.err >&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } && {
10544 test -z "$ac_c_werror_flag" ||
10545 test ! -s conftest.err
10546 } && test -s conftest$ac_exeext &&
10547 $as_test_x conftest$ac_exeext; then
10548 ac_cv_lib_dld_dld_link=yes
10549else
10550 echo "$as_me: failed program was:" >&5
10551sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 10552
5c706339
AK
10553 ac_cv_lib_dld_dld_link=no
10554fi
b9668ba4 10555
5c706339
AK
10556rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10557 conftest$ac_exeext conftest.$ac_ext
10558LIBS=$ac_check_lib_save_LIBS
10559fi
10560{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10561echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10562if test $ac_cv_lib_dld_dld_link = yes; then
10563 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10564fi
b9668ba4 10565
b9668ba4 10566
5c706339 10567fi
b9668ba4 10568
b9668ba4 10569
5c706339 10570fi
b9668ba4 10571
b9668ba4 10572
5c706339 10573fi
b9668ba4 10574
b9668ba4 10575
5c706339 10576fi
b9668ba4 10577
b9668ba4 10578
5c706339 10579fi
b9668ba4 10580
5c706339
AK
10581 ;;
10582 esac
b9668ba4 10583
5c706339
AK
10584 if test "x$lt_cv_dlopen" != xno; then
10585 enable_dlopen=yes
10586 else
10587 enable_dlopen=no
b9668ba4
AK
10588 fi
10589
5c706339
AK
10590 case $lt_cv_dlopen in
10591 dlopen)
10592 save_CPPFLAGS="$CPPFLAGS"
10593 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10594
10595 save_LDFLAGS="$LDFLAGS"
10596 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
b9668ba4 10597
5c706339
AK
10598 save_LIBS="$LIBS"
10599 LIBS="$lt_cv_dlopen_libs $LIBS"
b9668ba4 10600
5c706339
AK
10601 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10602echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10603if test "${lt_cv_dlopen_self+set}" = set; then
b9668ba4
AK
10604 echo $ECHO_N "(cached) $ECHO_C" >&6
10605else
5c706339
AK
10606 if test "$cross_compiling" = yes; then :
10607 lt_cv_dlopen_self=cross
b9668ba4 10608else
5c706339
AK
10609 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10610 lt_status=$lt_dlunknown
10611 cat > conftest.$ac_ext <<_LT_EOF
10612#line 10612 "configure"
10613#include "confdefs.h"
b9668ba4 10614
5c706339
AK
10615#if HAVE_DLFCN_H
10616#include <dlfcn.h>
10617#endif
b9668ba4 10618
5c706339 10619#include <stdio.h>
b9668ba4 10620
5c706339
AK
10621#ifdef RTLD_GLOBAL
10622# define LT_DLGLOBAL RTLD_GLOBAL
10623#else
10624# ifdef DL_GLOBAL
10625# define LT_DLGLOBAL DL_GLOBAL
10626# else
10627# define LT_DLGLOBAL 0
10628# endif
10629#endif
b9668ba4 10630
5c706339
AK
10631/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10632 find out it does not work in some platform. */
10633#ifndef LT_DLLAZY_OR_NOW
10634# ifdef RTLD_LAZY
10635# define LT_DLLAZY_OR_NOW RTLD_LAZY
10636# else
10637# ifdef DL_LAZY
10638# define LT_DLLAZY_OR_NOW DL_LAZY
10639# else
10640# ifdef RTLD_NOW
10641# define LT_DLLAZY_OR_NOW RTLD_NOW
10642# else
10643# ifdef DL_NOW
10644# define LT_DLLAZY_OR_NOW DL_NOW
10645# else
10646# define LT_DLLAZY_OR_NOW 0
10647# endif
10648# endif
10649# endif
10650# endif
10651#endif
b9668ba4 10652
5c706339
AK
10653#ifdef __cplusplus
10654extern "C" void exit (int);
10655#endif
b9668ba4 10656
5c706339
AK
10657void fnord() { int i=42;}
10658int main ()
10659{
10660 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10661 int status = $lt_dlunknown;
b9668ba4 10662
5c706339
AK
10663 if (self)
10664 {
10665 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10666 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10667 /* dlclose (self); */
10668 }
10669 else
10670 puts (dlerror ());
b9668ba4 10671
5c706339
AK
10672 exit (status);
10673}
10674_LT_EOF
10675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676 (eval $ac_link) 2>&5
10677 ac_status=$?
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10680 (./conftest; exit; ) >&5 2>/dev/null
10681 lt_status=$?
10682 case x$lt_status in
10683 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10684 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10685 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10686 esac
10687 else :
10688 # compilation failed
10689 lt_cv_dlopen_self=no
10690 fi
b9668ba4 10691fi
5c706339 10692rm -fr conftest*
b9668ba4
AK
10693
10694
b9668ba4 10695fi
5c706339
AK
10696{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10697echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
b9668ba4 10698
5c706339
AK
10699 if test "x$lt_cv_dlopen_self" = xyes; then
10700 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10701 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10702echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10703if test "${lt_cv_dlopen_self_static+set}" = set; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10705else
10706 if test "$cross_compiling" = yes; then :
10707 lt_cv_dlopen_self_static=cross
10708else
10709 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10710 lt_status=$lt_dlunknown
10711 cat > conftest.$ac_ext <<_LT_EOF
10712#line 10712 "configure"
10713#include "confdefs.h"
b9668ba4 10714
5c706339
AK
10715#if HAVE_DLFCN_H
10716#include <dlfcn.h>
10717#endif
b9668ba4 10718
5c706339 10719#include <stdio.h>
b9668ba4 10720
5c706339
AK
10721#ifdef RTLD_GLOBAL
10722# define LT_DLGLOBAL RTLD_GLOBAL
10723#else
10724# ifdef DL_GLOBAL
10725# define LT_DLGLOBAL DL_GLOBAL
10726# else
10727# define LT_DLGLOBAL 0
10728# endif
10729#endif
b9668ba4 10730
5c706339
AK
10731/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10732 find out it does not work in some platform. */
10733#ifndef LT_DLLAZY_OR_NOW
10734# ifdef RTLD_LAZY
10735# define LT_DLLAZY_OR_NOW RTLD_LAZY
10736# else
10737# ifdef DL_LAZY
10738# define LT_DLLAZY_OR_NOW DL_LAZY
10739# else
10740# ifdef RTLD_NOW
10741# define LT_DLLAZY_OR_NOW RTLD_NOW
10742# else
10743# ifdef DL_NOW
10744# define LT_DLLAZY_OR_NOW DL_NOW
10745# else
10746# define LT_DLLAZY_OR_NOW 0
10747# endif
10748# endif
10749# endif
10750# endif
10751#endif
10752
10753#ifdef __cplusplus
10754extern "C" void exit (int);
10755#endif
10756
10757void fnord() { int i=42;}
10758int main ()
10759{
10760 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10761 int status = $lt_dlunknown;
10762
10763 if (self)
10764 {
10765 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10766 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10767 /* dlclose (self); */
10768 }
10769 else
10770 puts (dlerror ());
10771
10772 exit (status);
10773}
10774_LT_EOF
10775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10776 (eval $ac_link) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10780 (./conftest; exit; ) >&5 2>/dev/null
10781 lt_status=$?
10782 case x$lt_status in
10783 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10784 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10785 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
b9668ba4 10786 esac
5c706339
AK
10787 else :
10788 # compilation failed
10789 lt_cv_dlopen_self_static=no
10790 fi
10791fi
10792rm -fr conftest*
b9668ba4 10793
b9668ba4 10794
5c706339
AK
10795fi
10796{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10797echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10798 fi
b9668ba4 10799
5c706339
AK
10800 CPPFLAGS="$save_CPPFLAGS"
10801 LDFLAGS="$save_LDFLAGS"
10802 LIBS="$save_LIBS"
10803 ;;
10804 esac
b9668ba4 10805
5c706339
AK
10806 case $lt_cv_dlopen_self in
10807 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10808 *) enable_dlopen_self=unknown ;;
10809 esac
b9668ba4 10810
5c706339
AK
10811 case $lt_cv_dlopen_self_static in
10812 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10813 *) enable_dlopen_self_static=unknown ;;
10814 esac
10815fi
b9668ba4 10816
b9668ba4 10817
b9668ba4 10818
b9668ba4 10819
b9668ba4 10820
b9668ba4 10821
b9668ba4 10822
b9668ba4 10823
b9668ba4 10824
b9668ba4 10825
b9668ba4 10826
b9668ba4 10827
b9668ba4 10828
b9668ba4 10829
b9668ba4 10830
b9668ba4 10831
b9668ba4 10832
5c706339
AK
10833striplib=
10834old_striplib=
10835{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10836echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10837if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10838 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10839 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10840 { echo "$as_me:$LINENO: result: yes" >&5
10841echo "${ECHO_T}yes" >&6; }
10842else
10843# FIXME - insert some real tests, host_os isn't really good enough
10844 case $host_os in
10845 darwin*)
10846 if test -n "$STRIP" ; then
10847 striplib="$STRIP -x"
10848 old_striplib="$STRIP -S"
10849 { echo "$as_me:$LINENO: result: yes" >&5
10850echo "${ECHO_T}yes" >&6; }
10851 else
10852 { echo "$as_me:$LINENO: result: no" >&5
10853echo "${ECHO_T}no" >&6; }
10854 fi
10855 ;;
10856 *)
10857 { echo "$as_me:$LINENO: result: no" >&5
10858echo "${ECHO_T}no" >&6; }
10859 ;;
10860 esac
10861fi
b9668ba4 10862
b9668ba4 10863
b9668ba4 10864
b9668ba4 10865
b9668ba4 10866
b9668ba4 10867
b9668ba4
AK
10868
10869
b9668ba4 10870
b9668ba4 10871
b9668ba4 10872
b9668ba4 10873
5c706339
AK
10874 # Report which library types will actually be built
10875 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10876echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10877 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10878echo "${ECHO_T}$can_build_shared" >&6; }
b9668ba4 10879
5c706339
AK
10880 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10881echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10882 test "$can_build_shared" = "no" && enable_shared=no
b9668ba4 10883
5c706339
AK
10884 # On AIX, shared libraries and static libraries use the same namespace, and
10885 # are all built from PIC.
10886 case $host_os in
10887 aix3*)
10888 test "$enable_shared" = yes && enable_static=no
10889 if test -n "$RANLIB"; then
10890 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10891 postinstall_cmds='$RANLIB $lib'
10892 fi
10893 ;;
b9668ba4 10894
5c706339
AK
10895 aix[4-9]*)
10896 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10897 test "$enable_shared" = yes && enable_static=no
10898 fi
10899 ;;
10900 esac
10901 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10902echo "${ECHO_T}$enable_shared" >&6; }
b9668ba4 10903
5c706339
AK
10904 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10905echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10906 # Make sure either enable_shared or enable_static is yes.
10907 test "$enable_shared" = yes || enable_static=yes
10908 { echo "$as_me:$LINENO: result: $enable_static" >&5
10909echo "${ECHO_T}$enable_static" >&6; }
b9668ba4 10910
b9668ba4 10911
b9668ba4 10912
b9668ba4 10913
5c706339
AK
10914fi
10915ac_ext=c
10916ac_cpp='$CPP $CPPFLAGS'
10917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10919ac_compiler_gnu=$ac_cv_c_compiler_gnu
b9668ba4 10920
5c706339 10921CC="$lt_save_CC"
b9668ba4 10922
b9668ba4 10923
b9668ba4 10924
b9668ba4 10925
b9668ba4 10926
b9668ba4 10927
b9668ba4 10928
b9668ba4 10929
b9668ba4 10930
b9668ba4 10931
b9668ba4 10932
b9668ba4 10933
b9668ba4 10934
5c706339 10935 ac_config_commands="$ac_config_commands libtool"
b9668ba4 10936
b9668ba4 10937
b9668ba4 10938
b9668ba4 10939
5c706339 10940# Only expand once:
b9668ba4 10941
b9668ba4 10942
b9668ba4 10943
5c706339
AK
10944# Extract the first word of "doxygen", so it can be a program name with args.
10945set dummy doxygen; ac_word=$2
10946{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10948if test "${ac_cv_prog_DOXYGEN+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10950else
10951 if test -n "$DOXYGEN"; then
10952 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
10953else
10954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955for as_dir in $PATH
10956do
10957 IFS=$as_save_IFS
10958 test -z "$as_dir" && as_dir=.
10959 for ac_exec_ext in '' $ac_executable_extensions; do
10960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10961 ac_cv_prog_DOXYGEN="true"
10962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10963 break 2
10964 fi
10965done
10966done
10967IFS=$as_save_IFS
b9668ba4 10968
5c706339
AK
10969 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="false"
10970fi
10971fi
10972DOXYGEN=$ac_cv_prog_DOXYGEN
10973if test -n "$DOXYGEN"; then
10974 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
10975echo "${ECHO_T}$DOXYGEN" >&6; }
10976else
10977 { echo "$as_me:$LINENO: result: no" >&5
10978echo "${ECHO_T}no" >&6; }
10979fi
b9668ba4 10980
b9668ba4 10981
5c706339
AK
10982 if test "$DOXYGEN" = true; then
10983 DOXYGEN_TRUE=
10984 DOXYGEN_FALSE='#'
10985else
10986 DOXYGEN_TRUE='#'
10987 DOXYGEN_FALSE=
10988fi
b9668ba4 10989
b9668ba4 10990
5c706339
AK
10991# Checks for header files.
10992{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10993echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10994if test "${ac_cv_header_stdc+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10996else
10997 cat >conftest.$ac_ext <<_ACEOF
10998/* confdefs.h. */
10999_ACEOF
11000cat confdefs.h >>conftest.$ac_ext
11001cat >>conftest.$ac_ext <<_ACEOF
11002/* end confdefs.h. */
11003#include <stdlib.h>
11004#include <stdarg.h>
11005#include <string.h>
11006#include <float.h>
b9668ba4 11007
5c706339
AK
11008int
11009main ()
11010{
b9668ba4 11011
5c706339
AK
11012 ;
11013 return 0;
11014}
11015_ACEOF
11016rm -f conftest.$ac_objext
11017if { (ac_try="$ac_compile"
11018case "(($ac_try" in
11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11021esac
11022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023 (eval "$ac_compile") 2>conftest.er1
11024 ac_status=$?
11025 grep -v '^ *+' conftest.er1 >conftest.err
11026 rm -f conftest.er1
11027 cat conftest.err >&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } && {
11030 test -z "$ac_c_werror_flag" ||
11031 test ! -s conftest.err
11032 } && test -s conftest.$ac_objext; then
11033 ac_cv_header_stdc=yes
11034else
11035 echo "$as_me: failed program was:" >&5
11036sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 11037
5c706339
AK
11038 ac_cv_header_stdc=no
11039fi
b9668ba4 11040
5c706339 11041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b9668ba4 11042
5c706339
AK
11043if test $ac_cv_header_stdc = yes; then
11044 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11045 cat >conftest.$ac_ext <<_ACEOF
11046/* confdefs.h. */
11047_ACEOF
11048cat confdefs.h >>conftest.$ac_ext
11049cat >>conftest.$ac_ext <<_ACEOF
11050/* end confdefs.h. */
11051#include <string.h>
b9668ba4 11052
5c706339
AK
11053_ACEOF
11054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11055 $EGREP "memchr" >/dev/null 2>&1; then
11056 :
11057else
11058 ac_cv_header_stdc=no
11059fi
11060rm -f conftest*
b9668ba4 11061
5c706339 11062fi
b9668ba4 11063
5c706339
AK
11064if test $ac_cv_header_stdc = yes; then
11065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11066 cat >conftest.$ac_ext <<_ACEOF
11067/* confdefs.h. */
11068_ACEOF
11069cat confdefs.h >>conftest.$ac_ext
11070cat >>conftest.$ac_ext <<_ACEOF
11071/* end confdefs.h. */
11072#include <stdlib.h>
b9668ba4 11073
5c706339
AK
11074_ACEOF
11075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11076 $EGREP "free" >/dev/null 2>&1; then
11077 :
11078else
11079 ac_cv_header_stdc=no
11080fi
11081rm -f conftest*
b9668ba4 11082
5c706339 11083fi
b9668ba4 11084
5c706339
AK
11085if test $ac_cv_header_stdc = yes; then
11086 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11087 if test "$cross_compiling" = yes; then
11088 :
b9668ba4 11089else
5c706339
AK
11090 cat >conftest.$ac_ext <<_ACEOF
11091/* confdefs.h. */
11092_ACEOF
11093cat confdefs.h >>conftest.$ac_ext
11094cat >>conftest.$ac_ext <<_ACEOF
11095/* end confdefs.h. */
11096#include <ctype.h>
11097#include <stdlib.h>
11098#if ((' ' & 0x0FF) == 0x020)
11099# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11100# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11101#else
11102# define ISLOWER(c) \
11103 (('a' <= (c) && (c) <= 'i') \
11104 || ('j' <= (c) && (c) <= 'r') \
11105 || ('s' <= (c) && (c) <= 'z'))
11106# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11107#endif
b9668ba4 11108
5c706339
AK
11109#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11110int
11111main ()
11112{
11113 int i;
11114 for (i = 0; i < 256; i++)
11115 if (XOR (islower (i), ISLOWER (i))
11116 || toupper (i) != TOUPPER (i))
11117 return 2;
11118 return 0;
11119}
11120_ACEOF
11121rm -f conftest$ac_exeext
11122if { (ac_try="$ac_link"
11123case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11126esac
11127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_link") 2>&5
11129 ac_status=$?
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11132 { (case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11135esac
11136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_try") 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; }; then
11141 :
11142else
11143 echo "$as_me: program exited with status $ac_status" >&5
11144echo "$as_me: failed program was:" >&5
11145sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 11146
5c706339
AK
11147( exit $ac_status )
11148ac_cv_header_stdc=no
11149fi
11150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11151fi
b9668ba4 11152
b9668ba4 11153
5c706339
AK
11154fi
11155fi
11156{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11157echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
11158if test $ac_cv_header_stdc = yes; then
b9668ba4 11159
5c706339
AK
11160cat >>confdefs.h <<\_ACEOF
11161#define STDC_HEADERS 1
11162_ACEOF
b9668ba4 11163
5c706339 11164fi
b9668ba4 11165
b9668ba4 11166
5c706339
AK
11167for ac_header in stdlib.h
11168do
11169as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11175fi
11176ac_res=`eval echo '${'$as_ac_Header'}'`
11177 { echo "$as_me:$LINENO: result: $ac_res" >&5
11178echo "${ECHO_T}$ac_res" >&6; }
11179else
11180 # Is the header compilable?
11181{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11182echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11183cat >conftest.$ac_ext <<_ACEOF
11184/* confdefs.h. */
11185_ACEOF
11186cat confdefs.h >>conftest.$ac_ext
11187cat >>conftest.$ac_ext <<_ACEOF
11188/* end confdefs.h. */
11189$ac_includes_default
11190#include <$ac_header>
11191_ACEOF
11192rm -f conftest.$ac_objext
11193if { (ac_try="$ac_compile"
11194case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11197esac
11198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199 (eval "$ac_compile") 2>conftest.er1
11200 ac_status=$?
11201 grep -v '^ *+' conftest.er1 >conftest.err
11202 rm -f conftest.er1
11203 cat conftest.err >&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } && {
11206 test -z "$ac_c_werror_flag" ||
11207 test ! -s conftest.err
11208 } && test -s conftest.$ac_objext; then
11209 ac_header_compiler=yes
11210else
11211 echo "$as_me: failed program was:" >&5
11212sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 11213
5c706339
AK
11214 ac_header_compiler=no
11215fi
b9668ba4 11216
5c706339
AK
11217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11218{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11219echo "${ECHO_T}$ac_header_compiler" >&6; }
b9668ba4 11220
5c706339
AK
11221# Is the header present?
11222{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11224cat >conftest.$ac_ext <<_ACEOF
11225/* confdefs.h. */
11226_ACEOF
11227cat confdefs.h >>conftest.$ac_ext
11228cat >>conftest.$ac_ext <<_ACEOF
11229/* end confdefs.h. */
11230#include <$ac_header>
11231_ACEOF
11232if { (ac_try="$ac_cpp conftest.$ac_ext"
11233case "(($ac_try" in
11234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11236esac
11237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11239 ac_status=$?
11240 grep -v '^ *+' conftest.er1 >conftest.err
11241 rm -f conftest.er1
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } >/dev/null && {
11245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11246 test ! -s conftest.err
11247 }; then
11248 ac_header_preproc=yes
11249else
11250 echo "$as_me: failed program was:" >&5
11251sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 11252
5c706339
AK
11253 ac_header_preproc=no
11254fi
b9668ba4 11255
5c706339
AK
11256rm -f conftest.err conftest.$ac_ext
11257{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11258echo "${ECHO_T}$ac_header_preproc" >&6; }
b9668ba4 11259
5c706339
AK
11260# So? What about this header?
11261case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11262 yes:no: )
11263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11264echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11266echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11267 ac_header_preproc=yes
b9668ba4 11268 ;;
5c706339
AK
11269 no:yes:* )
11270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11271echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11273echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11275echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11277echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11279echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11281echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11282 ( cat <<\_ASBOX
11283## ------------------------------------------------------------ ##
11284## Report this to http://pyyaml.org/newticket?component=libyaml ##
11285## ------------------------------------------------------------ ##
11286_ASBOX
11287 ) | sed "s/^/$as_me: WARNING: /" >&2
11288 ;;
11289esac
11290{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11294else
11295 eval "$as_ac_Header=\$ac_header_preproc"
11296fi
11297ac_res=`eval echo '${'$as_ac_Header'}'`
11298 { echo "$as_me:$LINENO: result: $ac_res" >&5
11299echo "${ECHO_T}$ac_res" >&6; }
b9668ba4 11300
5c706339
AK
11301fi
11302if test `eval echo '${'$as_ac_Header'}'` = yes; then
11303 cat >>confdefs.h <<_ACEOF
11304#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11305_ACEOF
b9668ba4 11306
5c706339 11307fi
b9668ba4 11308
5c706339 11309done
b9668ba4 11310
b9668ba4 11311
5c706339
AK
11312# Checks for typedefs, structures, and compiler characteristics.
11313{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11314echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11315if test "${ac_cv_c_const+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11317else
11318 cat >conftest.$ac_ext <<_ACEOF
11319/* confdefs.h. */
11320_ACEOF
11321cat confdefs.h >>conftest.$ac_ext
11322cat >>conftest.$ac_ext <<_ACEOF
11323/* end confdefs.h. */
b9668ba4 11324
5c706339
AK
11325int
11326main ()
11327{
11328/* FIXME: Include the comments suggested by Paul. */
11329#ifndef __cplusplus
11330 /* Ultrix mips cc rejects this. */
11331 typedef int charset[2];
11332 const charset cs;
11333 /* SunOS 4.1.1 cc rejects this. */
11334 char const *const *pcpcc;
11335 char **ppc;
11336 /* NEC SVR4.0.2 mips cc rejects this. */
11337 struct point {int x, y;};
11338 static struct point const zero = {0,0};
11339 /* AIX XL C 1.02.0.0 rejects this.
11340 It does not let you subtract one const X* pointer from another in
11341 an arm of an if-expression whose if-part is not a constant
11342 expression */
11343 const char *g = "string";
11344 pcpcc = &g + (g ? g-g : 0);
11345 /* HPUX 7.0 cc rejects these. */
11346 ++pcpcc;
11347 ppc = (char**) pcpcc;
11348 pcpcc = (char const *const *) ppc;
11349 { /* SCO 3.2v4 cc rejects this. */
11350 char *t;
11351 char const *s = 0 ? (char *) 0 : (char const *) 0;
b9668ba4 11352
5c706339
AK
11353 *t++ = 0;
11354 if (s) return 0;
11355 }
11356 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11357 int x[] = {25, 17};
11358 const int *foo = &x[0];
11359 ++foo;
11360 }
11361 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11362 typedef const int *iptr;
11363 iptr p = 0;
11364 ++p;
11365 }
11366 { /* AIX XL C 1.02.0.0 rejects this saying
11367 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11368 struct s { int j; const int *ap[3]; };
11369 struct s *b; b->j = 5;
11370 }
11371 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11372 const int foo = 10;
11373 if (!foo) return 0;
11374 }
11375 return !cs[0] && !zero.x;
11376#endif
b9668ba4 11377
5c706339
AK
11378 ;
11379 return 0;
11380}
11381_ACEOF
11382rm -f conftest.$ac_objext
11383if { (ac_try="$ac_compile"
11384case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11387esac
11388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_compile") 2>conftest.er1
11390 ac_status=$?
11391 grep -v '^ *+' conftest.er1 >conftest.err
11392 rm -f conftest.er1
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } && {
11396 test -z "$ac_c_werror_flag" ||
11397 test ! -s conftest.err
11398 } && test -s conftest.$ac_objext; then
11399 ac_cv_c_const=yes
11400else
11401 echo "$as_me: failed program was:" >&5
11402sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 11403
5c706339
AK
11404 ac_cv_c_const=no
11405fi
b9668ba4 11406
5c706339
AK
11407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11408fi
11409{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11410echo "${ECHO_T}$ac_cv_c_const" >&6; }
11411if test $ac_cv_c_const = no; then
b9668ba4 11412
5c706339
AK
11413cat >>confdefs.h <<\_ACEOF
11414#define const
11415_ACEOF
b9668ba4 11416
5c706339 11417fi
b9668ba4 11418
5c706339
AK
11419{ echo "$as_me:$LINENO: checking for size_t" >&5
11420echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11421if test "${ac_cv_type_size_t+set}" = set; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
11423else
11424 cat >conftest.$ac_ext <<_ACEOF
11425/* confdefs.h. */
11426_ACEOF
11427cat confdefs.h >>conftest.$ac_ext
11428cat >>conftest.$ac_ext <<_ACEOF
11429/* end confdefs.h. */
11430$ac_includes_default
11431typedef size_t ac__type_new_;
11432int
11433main ()
11434{
11435if ((ac__type_new_ *) 0)
11436 return 0;
11437if (sizeof (ac__type_new_))
11438 return 0;
11439 ;
11440 return 0;
11441}
11442_ACEOF
11443rm -f conftest.$ac_objext
11444if { (ac_try="$ac_compile"
11445case "(($ac_try" in
11446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447 *) ac_try_echo=$ac_try;;
11448esac
11449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450 (eval "$ac_compile") 2>conftest.er1
11451 ac_status=$?
11452 grep -v '^ *+' conftest.er1 >conftest.err
11453 rm -f conftest.er1
11454 cat conftest.err >&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } && {
11457 test -z "$ac_c_werror_flag" ||
11458 test ! -s conftest.err
11459 } && test -s conftest.$ac_objext; then
11460 ac_cv_type_size_t=yes
11461else
11462 echo "$as_me: failed program was:" >&5
11463sed 's/^/| /' conftest.$ac_ext >&5
b9668ba4 11464
5c706339
AK
11465 ac_cv_type_size_t=no
11466fi
b9668ba4 11467
5c706339
AK
11468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11469fi
11470{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11471echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11472if test $ac_cv_type_size_t = yes; then
11473 :
11474else
b9668ba4 11475
5c706339
AK
11476cat >>confdefs.h <<_ACEOF
11477#define size_t unsigned int
11478_ACEOF
b9668ba4 11479
5c706339 11480fi
b9668ba4 11481
b9668ba4 11482
5c706339
AK
11483# Define Makefiles.
11484ac_config_files="$ac_config_files include/Makefile src/Makefile Makefile tests/Makefile win32/Makefile"
b9668ba4 11485
b9668ba4 11486
5c706339
AK
11487# Generate the "configure" script.
11488cat >confcache <<\_ACEOF
11489# This file is a shell script that caches the results of configure
11490# tests run on this system so they can be shared between configure
11491# scripts and configure runs, see configure's option --config-cache.
11492# It is not useful on other systems. If it contains results you don't
11493# want to keep, you may remove or edit it.
11494#
11495# config.status only pays attention to the cache file if you give it
11496# the --recheck option to rerun configure.
11497#
11498# `ac_cv_env_foo' variables (set or unset) will be overridden when
11499# loading this file, other *unset* `ac_cv_foo' will be assigned the
11500# following values.
b9668ba4 11501
5c706339 11502_ACEOF
b9668ba4 11503
5c706339
AK
11504# The following way of writing the cache mishandles newlines in values,
11505# but we know of no workaround that is simple, portable, and efficient.
11506# So, we kill variables containing newlines.
11507# Ultrix sh set writes to stderr and can't be redirected directly,
11508# and sets the high bit in the cache file unless we assign to the vars.
11509(
11510 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11511 eval ac_val=\$$ac_var
11512 case $ac_val in #(
11513 *${as_nl}*)
11514 case $ac_var in #(
11515 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11516echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11517 esac
11518 case $ac_var in #(
11519 _ | IFS | as_nl) ;; #(
11520 *) $as_unset $ac_var ;;
11521 esac ;;
11522 esac
11523 done
b9668ba4 11524
5c706339
AK
11525 (set) 2>&1 |
11526 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11527 *${as_nl}ac_space=\ *)
11528 # `set' does not quote correctly, so add quotes (double-quote
11529 # substitution turns \\\\ into \\, and sed turns \\ into \).
11530 sed -n \
11531 "s/'/'\\\\''/g;
11532 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11533 ;; #(
11534 *)
11535 # `set' quotes correctly as required by POSIX, so do not add quotes.
11536 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11537 ;;
11538 esac |
11539 sort
11540) |
11541 sed '
11542 /^ac_cv_env_/b end
11543 t clear
11544 :clear
11545 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11546 t end
11547 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11548 :end' >>confcache
11549if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11550 if test -w "$cache_file"; then
11551 test "x$cache_file" != "x/dev/null" &&
11552 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11553echo "$as_me: updating cache $cache_file" >&6;}
11554 cat confcache >$cache_file
11555 else
11556 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11557echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11558 fi
11559fi
11560rm -f confcache
b9668ba4 11561
5c706339
AK
11562test "x$prefix" = xNONE && prefix=$ac_default_prefix
11563# Let make expand exec_prefix.
11564test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
b9668ba4 11565
5c706339 11566DEFS=-DHAVE_CONFIG_H
b9668ba4 11567
5c706339
AK
11568ac_libobjs=
11569ac_ltlibobjs=
11570for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11571 # 1. Remove the extension, and $U if already installed.
11572 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11573 ac_i=`echo "$ac_i" | sed "$ac_script"`
11574 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11575 # will be set to the directory where LIBOBJS objects are built.
11576 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11577 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11578done
11579LIBOBJS=$ac_libobjs
b9668ba4 11580
5c706339 11581LTLIBOBJS=$ac_ltlibobjs
b9668ba4 11582
b9668ba4 11583
5c706339
AK
11584if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11585 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11586Usually this means the macro was only invoked conditionally." >&5
11587echo "$as_me: error: conditional \"AMDEP\" was never defined.
11588Usually this means the macro was only invoked conditionally." >&2;}
11589 { (exit 1); exit 1; }; }
11590fi
11591if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11592 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11593Usually this means the macro was only invoked conditionally." >&5
11594echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11595Usually this means the macro was only invoked conditionally." >&2;}
11596 { (exit 1); exit 1; }; }
11597fi
11598if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
11599 { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
11600Usually this means the macro was only invoked conditionally." >&5
11601echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
11602Usually this means the macro was only invoked conditionally." >&2;}
11603 { (exit 1); exit 1; }; }
11604fi
b9668ba4 11605
5c706339
AK
11606: ${CONFIG_STATUS=./config.status}
11607ac_clean_files_save=$ac_clean_files
11608ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11609{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11610echo "$as_me: creating $CONFIG_STATUS" >&6;}
11611cat >$CONFIG_STATUS <<_ACEOF
11612#! $SHELL
11613# Generated by $as_me.
11614# Run this file to recreate the current configuration.
11615# Compiler output produced by configure, useful for debugging
11616# configure, is in config.log if it exists.
b9668ba4 11617
5c706339
AK
11618debug=false
11619ac_cs_recheck=false
11620ac_cs_silent=false
11621SHELL=\${CONFIG_SHELL-$SHELL}
11622_ACEOF
b9668ba4 11623
5c706339
AK
11624cat >>$CONFIG_STATUS <<\_ACEOF
11625## --------------------- ##
11626## M4sh Initialization. ##
11627## --------------------- ##
b9668ba4 11628
5c706339
AK
11629# Be more Bourne compatible
11630DUALCASE=1; export DUALCASE # for MKS sh
11631if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11632 emulate sh
11633 NULLCMD=:
11634 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11635 # is contrary to our usage. Disable this feature.
11636 alias -g '${1+"$@"}'='"$@"'
11637 setopt NO_GLOB_SUBST
11638else
11639 case `(set -o) 2>/dev/null` in
11640 *posix*) set -o posix ;;
11641esac
b9668ba4 11642
5c706339 11643fi
b9668ba4 11644
b9668ba4 11645
b9668ba4 11646
b9668ba4 11647
5c706339
AK
11648# PATH needs CR
11649# Avoid depending upon Character Ranges.
11650as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11651as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11652as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11653as_cr_digits='0123456789'
11654as_cr_alnum=$as_cr_Letters$as_cr_digits
b9668ba4 11655
5c706339
AK
11656# The user is always right.
11657if test "${PATH_SEPARATOR+set}" != set; then
11658 echo "#! /bin/sh" >conf$$.sh
11659 echo "exit 0" >>conf$$.sh
11660 chmod +x conf$$.sh
11661 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11662 PATH_SEPARATOR=';'
11663 else
11664 PATH_SEPARATOR=:
11665 fi
11666 rm -f conf$$.sh
11667fi
b9668ba4 11668
5c706339
AK
11669# Support unset when possible.
11670if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11671 as_unset=unset
11672else
11673 as_unset=false
11674fi
b9668ba4 11675
b9668ba4 11676
5c706339
AK
11677# IFS
11678# We need space, tab and new line, in precisely that order. Quoting is
11679# there to prevent editors from complaining about space-tab.
11680# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11681# splitting by setting IFS to empty value.)
11682as_nl='
11683'
11684IFS=" "" $as_nl"
b9668ba4 11685
5c706339
AK
11686# Find who we are. Look in the path if we contain no directory separator.
11687case $0 in
11688 *[\\/]* ) as_myself=$0 ;;
11689 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690for as_dir in $PATH
11691do
11692 IFS=$as_save_IFS
11693 test -z "$as_dir" && as_dir=.
11694 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11695done
11696IFS=$as_save_IFS
b9668ba4 11697
5c706339
AK
11698 ;;
11699esac
11700# We did not find ourselves, most probably we were run as `sh COMMAND'
11701# in which case we are not to be found in the path.
11702if test "x$as_myself" = x; then
11703 as_myself=$0
11704fi
11705if test ! -f "$as_myself"; then
11706 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11707 { (exit 1); exit 1; }
11708fi
b9668ba4 11709
5c706339
AK
11710# Work around bugs in pre-3.0 UWIN ksh.
11711for as_var in ENV MAIL MAILPATH
11712do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11713done
11714PS1='$ '
11715PS2='> '
11716PS4='+ '
b9668ba4 11717
5c706339
AK
11718# NLS nuisances.
11719for as_var in \
11720 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11721 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11722 LC_TELEPHONE LC_TIME
11723do
11724 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11725 eval $as_var=C; export $as_var
11726 else
11727 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11728 fi
11729done
b9668ba4 11730
5c706339
AK
11731# Required to use basename.
11732if expr a : '\(a\)' >/dev/null 2>&1 &&
11733 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11734 as_expr=expr
11735else
11736 as_expr=false
11737fi
b9668ba4 11738
5c706339
AK
11739if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11740 as_basename=basename
11741else
11742 as_basename=false
11743fi
b9668ba4 11744
b9668ba4 11745
5c706339
AK
11746# Name of the executable.
11747as_me=`$as_basename -- "$0" ||
11748$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11749 X"$0" : 'X\(//\)$' \| \
11750 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11751echo X/"$0" |
11752 sed '/^.*\/\([^/][^/]*\)\/*$/{
11753 s//\1/
11754 q
11755 }
11756 /^X\/\(\/\/\)$/{
11757 s//\1/
11758 q
11759 }
11760 /^X\/\(\/\).*/{
11761 s//\1/
11762 q
11763 }
11764 s/.*/./; q'`
b9668ba4 11765
5c706339
AK
11766# CDPATH.
11767$as_unset CDPATH
b9668ba4 11768
b9668ba4 11769
b9668ba4 11770
5c706339
AK
11771 as_lineno_1=$LINENO
11772 as_lineno_2=$LINENO
11773 test "x$as_lineno_1" != "x$as_lineno_2" &&
11774 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b9668ba4 11775
5c706339
AK
11776 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11777 # uniformly replaced by the line number. The first 'sed' inserts a
11778 # line-number line after each line using $LINENO; the second 'sed'
11779 # does the real work. The second script uses 'N' to pair each
11780 # line-number line with the line containing $LINENO, and appends
11781 # trailing '-' during substitution so that $LINENO is not a special
11782 # case at line end.
11783 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11784 # scripts with optimization help from Paolo Bonzini. Blame Lee
11785 # E. McMahon (1931-1989) for sed's syntax. :-)
11786 sed -n '
11787 p
11788 /[$]LINENO/=
11789 ' <$as_myself |
11790 sed '
11791 s/[$]LINENO.*/&-/
11792 t lineno
11793 b
11794 :lineno
11795 N
11796 :loop
11797 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11798 t loop
11799 s/-\n.*//
11800 ' >$as_me.lineno &&
11801 chmod +x "$as_me.lineno" ||
11802 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11803 { (exit 1); exit 1; }; }
b9668ba4 11804
5c706339
AK
11805 # Don't try to exec as it changes $[0], causing all sort of problems
11806 # (the dirname of $[0] is not the place where we might find the
11807 # original and so on. Autoconf is especially sensitive to this).
11808 . "./$as_me.lineno"
11809 # Exit status is that of the last command.
11810 exit
11811}
b9668ba4
AK
11812
11813
5c706339
AK
11814if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11815 as_dirname=dirname
b9668ba4 11816else
5c706339 11817 as_dirname=false
b9668ba4
AK
11818fi
11819
5c706339
AK
11820ECHO_C= ECHO_N= ECHO_T=
11821case `echo -n x` in
11822-n*)
11823 case `echo 'x\c'` in
11824 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11825 *) ECHO_C='\c';;
11826 esac;;
11827*)
11828 ECHO_N='-n';;
11829esac
b9668ba4 11830
5c706339
AK
11831if expr a : '\(a\)' >/dev/null 2>&1 &&
11832 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11833 as_expr=expr
11834else
11835 as_expr=false
11836fi
b9668ba4 11837
5c706339
AK
11838rm -f conf$$ conf$$.exe conf$$.file
11839if test -d conf$$.dir; then
11840 rm -f conf$$.dir/conf$$.file
11841else
11842 rm -f conf$$.dir
11843 mkdir conf$$.dir
11844fi
11845echo >conf$$.file
11846if ln -s conf$$.file conf$$ 2>/dev/null; then
11847 as_ln_s='ln -s'
11848 # ... but there are two gotchas:
11849 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11850 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11851 # In both cases, we have to default to `cp -p'.
11852 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11853 as_ln_s='cp -p'
11854elif ln conf$$.file conf$$ 2>/dev/null; then
11855 as_ln_s=ln
11856else
11857 as_ln_s='cp -p'
11858fi
11859rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11860rmdir conf$$.dir 2>/dev/null
b9668ba4 11861
5c706339
AK
11862if mkdir -p . 2>/dev/null; then
11863 as_mkdir_p=:
11864else
11865 test -d ./-p && rmdir ./-p
11866 as_mkdir_p=false
11867fi
b9668ba4 11868
5c706339
AK
11869if test -x / >/dev/null 2>&1; then
11870 as_test_x='test -x'
11871else
11872 if ls -dL / >/dev/null 2>&1; then
11873 as_ls_L_option=L
b9668ba4 11874 else
5c706339 11875 as_ls_L_option=
b9668ba4 11876 fi
5c706339
AK
11877 as_test_x='
11878 eval sh -c '\''
11879 if test -d "$1"; then
11880 test -d "$1/.";
11881 else
11882 case $1 in
11883 -*)set "./$1";;
11884 esac;
11885 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11886 ???[sx]*):;;*)false;;esac;fi
11887 '\'' sh
11888 '
b9668ba4 11889fi
5c706339 11890as_executable_p=$as_test_x
b9668ba4 11891
5c706339
AK
11892# Sed expression to map a string onto a valid CPP name.
11893as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
b9668ba4 11894
5c706339
AK
11895# Sed expression to map a string onto a valid variable name.
11896as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
b9668ba4 11897
b9668ba4 11898
5c706339 11899exec 6>&1
b9668ba4 11900
5c706339
AK
11901# Save the log message, to keep $[0] and so on meaningful, and to
11902# report actual input values of CONFIG_FILES etc. instead of their
11903# values after options handling.
11904ac_log="
11905This file was extended by yaml $as_me 0.1.2, which was
11906generated by GNU Autoconf 2.61. Invocation command line was
b9668ba4 11907
5c706339
AK
11908 CONFIG_FILES = $CONFIG_FILES
11909 CONFIG_HEADERS = $CONFIG_HEADERS
11910 CONFIG_LINKS = $CONFIG_LINKS
11911 CONFIG_COMMANDS = $CONFIG_COMMANDS
11912 $ $0 $@
b9668ba4 11913
5c706339
AK
11914on `(hostname || uname -n) 2>/dev/null | sed 1q`
11915"
b9668ba4 11916
5c706339 11917_ACEOF
b9668ba4 11918
5c706339
AK
11919cat >>$CONFIG_STATUS <<_ACEOF
11920# Files that config.status was made for.
11921config_files="$ac_config_files"
11922config_headers="$ac_config_headers"
11923config_commands="$ac_config_commands"
b9668ba4 11924
5c706339 11925_ACEOF
b9668ba4 11926
5c706339
AK
11927cat >>$CONFIG_STATUS <<\_ACEOF
11928ac_cs_usage="\
11929\`$as_me' instantiates files from templates according to the
11930current configuration.
b9668ba4 11931
5c706339 11932Usage: $0 [OPTIONS] [FILE]...
b9668ba4 11933
5c706339
AK
11934 -h, --help print this help, then exit
11935 -V, --version print version number and configuration settings, then exit
11936 -q, --quiet do not print progress messages
11937 -d, --debug don't remove temporary files
11938 --recheck update $as_me by reconfiguring in the same conditions
11939 --file=FILE[:TEMPLATE]
11940 instantiate the configuration file FILE
11941 --header=FILE[:TEMPLATE]
11942 instantiate the configuration header FILE
b9668ba4 11943
5c706339
AK
11944Configuration files:
11945$config_files
b9668ba4 11946
5c706339
AK
11947Configuration headers:
11948$config_headers
b9668ba4 11949
5c706339
AK
11950Configuration commands:
11951$config_commands
b9668ba4 11952
5c706339 11953Report bugs to <bug-autoconf@gnu.org>."
b9668ba4 11954
5c706339
AK
11955_ACEOF
11956cat >>$CONFIG_STATUS <<_ACEOF
11957ac_cs_version="\\
11958yaml config.status 0.1.2
11959configured by $0, generated by GNU Autoconf 2.61,
11960 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b9668ba4 11961
5c706339
AK
11962Copyright (C) 2006 Free Software Foundation, Inc.
11963This config.status script is free software; the Free Software Foundation
11964gives unlimited permission to copy, distribute and modify it."
b9668ba4 11965
5c706339
AK
11966ac_pwd='$ac_pwd'
11967srcdir='$srcdir'
11968INSTALL='$INSTALL'
11969MKDIR_P='$MKDIR_P'
11970_ACEOF
b9668ba4 11971
5c706339
AK
11972cat >>$CONFIG_STATUS <<\_ACEOF
11973# If no file are specified by the user, then we need to provide default
11974# value. By we need to know if files were specified by the user.
11975ac_need_defaults=:
11976while test $# != 0
11977do
11978 case $1 in
11979 --*=*)
11980 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11981 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11982 ac_shift=:
11983 ;;
11984 *)
11985 ac_option=$1
11986 ac_optarg=$2
11987 ac_shift=shift
11988 ;;
11989 esac
b9668ba4 11990
5c706339
AK
11991 case $ac_option in
11992 # Handling of the options.
11993 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11994 ac_cs_recheck=: ;;
11995 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11996 echo "$ac_cs_version"; exit ;;
11997 --debug | --debu | --deb | --de | --d | -d )
11998 debug=: ;;
11999 --file | --fil | --fi | --f )
12000 $ac_shift
12001 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12002 ac_need_defaults=false;;
12003 --header | --heade | --head | --hea )
12004 $ac_shift
12005 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12006 ac_need_defaults=false;;
12007 --he | --h)
12008 # Conflict between --help and --header
12009 { echo "$as_me: error: ambiguous option: $1
12010Try \`$0 --help' for more information." >&2
12011 { (exit 1); exit 1; }; };;
12012 --help | --hel | -h )
12013 echo "$ac_cs_usage"; exit ;;
12014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12015 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12016 ac_cs_silent=: ;;
b9668ba4 12017
5c706339
AK
12018 # This is an error.
12019 -*) { echo "$as_me: error: unrecognized option: $1
12020Try \`$0 --help' for more information." >&2
12021 { (exit 1); exit 1; }; } ;;
b9668ba4 12022
5c706339
AK
12023 *) ac_config_targets="$ac_config_targets $1"
12024 ac_need_defaults=false ;;
b9668ba4 12025
5c706339
AK
12026 esac
12027 shift
b9668ba4 12028done
b9668ba4 12029
5c706339 12030ac_configure_extra_args=
b9668ba4 12031
5c706339
AK
12032if $ac_cs_silent; then
12033 exec 6>/dev/null
12034 ac_configure_extra_args="$ac_configure_extra_args --silent"
b9668ba4
AK
12035fi
12036
b9668ba4 12037_ACEOF
5c706339
AK
12038cat >>$CONFIG_STATUS <<_ACEOF
12039if \$ac_cs_recheck; then
12040 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12041 CONFIG_SHELL=$SHELL
12042 export CONFIG_SHELL
12043 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12044fi
b9668ba4 12045
5c706339
AK
12046_ACEOF
12047cat >>$CONFIG_STATUS <<\_ACEOF
12048exec 5>>config.log
b9668ba4 12049{
5c706339
AK
12050 echo
12051 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12052## Running $as_me. ##
12053_ASBOX
12054 echo "$ac_log"
12055} >&5
b9668ba4 12056
b9668ba4 12057_ACEOF
5c706339
AK
12058cat >>$CONFIG_STATUS <<_ACEOF
12059#
12060# INIT-COMMANDS
12061#
12062AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
b9668ba4 12063
b9668ba4 12064
5c706339
AK
12065# The HP-UX ksh and POSIX shell print the target directory to stdout
12066# if CDPATH is set.
12067(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
b9668ba4 12068
5c706339
AK
12069sed_quote_subst='$sed_quote_subst'
12070double_quote_subst='$double_quote_subst'
12071delay_variable_subst='$delay_variable_subst'
12072macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12073macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12074enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12075enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12076pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12077enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12078host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12079host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12080host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12081build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12082build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12083build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12084SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12085Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12086GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12087EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12088FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12089LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12090NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12091LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12092max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12093ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12094exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12095lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12096lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12097lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12098reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12099reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12100deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12101file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12102AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12103AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12104STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12105RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12106old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12107old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12108old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12109CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12110CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12111compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12112GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12113lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12114lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12115lt_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"`'
12116lt_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"`'
12117objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12118SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12119ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12120MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12121lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12122lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12123lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12124lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12125lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12126need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12127DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12128NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12129LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12130OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12131OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12132libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12133shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12134extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12135archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12136enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12137export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12138whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12139compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12140old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12141old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12142archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12143archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12144module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12145module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12146with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12147allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12148no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12149hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12150hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12151hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12152hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12153hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12154hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12155hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12156hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12157inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12158link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12159fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12160always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12161export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12162exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12163include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12164prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12165file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12166variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12167need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12168need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12169version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12170runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12171shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12172shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12173libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12174library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12175soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12176postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12177postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12178finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12179finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12180hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12181sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12182sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12183hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12184enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12185enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12186enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12187old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12188striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12189
12190LTCC='$LTCC'
12191LTCFLAGS='$LTCFLAGS'
12192compiler='$compiler_DEFAULT'
12193
12194# Quote evaled strings.
12195for var in SED \
12196GREP \
12197EGREP \
12198FGREP \
12199LD \
12200NM \
12201LN_S \
12202lt_SP2NL \
12203lt_NL2SP \
12204reload_flag \
12205deplibs_check_method \
12206file_magic_cmd \
12207AR \
12208AR_FLAGS \
12209STRIP \
12210RANLIB \
12211CC \
12212CFLAGS \
12213compiler \
12214lt_cv_sys_global_symbol_pipe \
12215lt_cv_sys_global_symbol_to_cdecl \
12216lt_cv_sys_global_symbol_to_c_name_address \
12217lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12218SHELL \
12219ECHO \
12220lt_prog_compiler_no_builtin_flag \
12221lt_prog_compiler_wl \
12222lt_prog_compiler_pic \
12223lt_prog_compiler_static \
12224lt_cv_prog_compiler_c_o \
12225need_locks \
12226DSYMUTIL \
12227NMEDIT \
12228LIPO \
12229OTOOL \
12230OTOOL64 \
12231shrext_cmds \
12232export_dynamic_flag_spec \
12233whole_archive_flag_spec \
12234compiler_needs_object \
12235with_gnu_ld \
12236allow_undefined_flag \
12237no_undefined_flag \
12238hardcode_libdir_flag_spec \
12239hardcode_libdir_flag_spec_ld \
12240hardcode_libdir_separator \
12241fix_srcfile_path \
12242exclude_expsyms \
12243include_expsyms \
12244file_list_spec \
12245variables_saved_for_relink \
12246libname_spec \
12247library_names_spec \
12248soname_spec \
12249finish_eval \
12250old_striplib \
12251striplib; do
12252 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12253 *[\\\\\\\`\\"\\\$]*)
12254 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12255 ;;
12256 *)
12257 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12258 ;;
12259 esac
12260done
12261
12262# Double-quote double-evaled strings.
12263for var in reload_cmds \
12264old_postinstall_cmds \
12265old_postuninstall_cmds \
12266old_archive_cmds \
12267extract_expsyms_cmds \
12268old_archive_from_new_cmds \
12269old_archive_from_expsyms_cmds \
12270archive_cmds \
12271archive_expsym_cmds \
12272module_cmds \
12273module_expsym_cmds \
12274export_symbols_cmds \
12275prelink_cmds \
12276postinstall_cmds \
12277postuninstall_cmds \
12278finish_cmds \
12279sys_lib_search_path_spec \
12280sys_lib_dlsearch_path_spec; do
12281 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12282 *[\\\\\\\`\\"\\\$]*)
12283 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12284 ;;
12285 *)
12286 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12287 ;;
12288 esac
12289done
12290
12291# Fix-up fallback echo if it was mangled by the above quoting rules.
12292case \$lt_ECHO in
12293*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12294 ;;
12295esac
b9668ba4 12296
5c706339
AK
12297ac_aux_dir='$ac_aux_dir'
12298xsi_shell='$xsi_shell'
12299lt_shell_append='$lt_shell_append'
b9668ba4 12300
5c706339
AK
12301# See if we are running on zsh, and set the options which allow our
12302# commands through without removal of \ escapes INIT.
12303if test -n "\${ZSH_VERSION+set}" ; then
12304 setopt NO_GLOB_SUBST
b9668ba4
AK
12305fi
12306
5c706339
AK
12307
12308 PACKAGE='$PACKAGE'
12309 VERSION='$VERSION'
12310 TIMESTAMP='$TIMESTAMP'
12311 RM='$RM'
12312 ofile='$ofile'
12313
12314
12315
b9668ba4
AK
12316
12317_ACEOF
b9668ba4 12318
5c706339
AK
12319cat >>$CONFIG_STATUS <<\_ACEOF
12320
12321# Handling of arguments.
12322for ac_config_target in $ac_config_targets
12323do
12324 case $ac_config_target in
12325 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12326 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12327 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12328 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12329 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12330 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12331 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12332 "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
12333
12334 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12335echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12336 { (exit 1); exit 1; }; };;
12337 esac
12338done
12339
12340
12341# If the user did not use the arguments to specify the items to instantiate,
12342# then the envvar interface is used. Set only those that are not.
12343# We use the long form for the default assignment because of an extremely
12344# bizarre bug on SunOS 4.1.3.
12345if $ac_need_defaults; then
12346 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12347 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12348 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b9668ba4
AK
12349fi
12350
5c706339
AK
12351# Have a temporary directory for convenience. Make it in the build tree
12352# simply because there is no reason against having it here, and in addition,
12353# creating and moving files from /tmp can sometimes cause problems.
12354# Hook for its removal unless debugging.
12355# Note that there is a small window in which the directory will not be cleaned:
12356# after its creation but before its name has been assigned to `$tmp'.
12357$debug ||
12358{
12359 tmp=
12360 trap 'exit_status=$?
12361 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12362' 0
12363 trap '{ (exit 1); exit 1; }' 1 2 13 15
12364}
12365# Create a (secure) tmp directory for tmp files.
b9668ba4 12366
b9668ba4 12367{
5c706339
AK
12368 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12369 test -n "$tmp" && test -d "$tmp"
12370} ||
12371{
12372 tmp=./conf$$-$RANDOM
12373 (umask 077 && mkdir "$tmp")
12374} ||
12375{
12376 echo "$me: cannot create a temporary directory in ." >&2
12377 { (exit 1); exit 1; }
b9668ba4 12378}
5c706339
AK
12379
12380#
12381# Set up the sed scripts for CONFIG_FILES section.
12382#
12383
12384# No need to generate the scripts if there are no CONFIG_FILES.
12385# This happens for instance when ./config.status config.h
12386if test -n "$CONFIG_FILES"; then
12387
b9668ba4 12388_ACEOF
b9668ba4 12389
5c706339
AK
12390
12391
12392ac_delim='%!_!# '
12393for ac_last_try in false false false false false :; do
12394 cat >conf$$subs.sed <<_ACEOF
12395SHELL!$SHELL$ac_delim
12396PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12397PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12398PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12399PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12400PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12401PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12402exec_prefix!$exec_prefix$ac_delim
12403prefix!$prefix$ac_delim
12404program_transform_name!$program_transform_name$ac_delim
12405bindir!$bindir$ac_delim
12406sbindir!$sbindir$ac_delim
12407libexecdir!$libexecdir$ac_delim
12408datarootdir!$datarootdir$ac_delim
12409datadir!$datadir$ac_delim
12410sysconfdir!$sysconfdir$ac_delim
12411sharedstatedir!$sharedstatedir$ac_delim
12412localstatedir!$localstatedir$ac_delim
12413includedir!$includedir$ac_delim
12414oldincludedir!$oldincludedir$ac_delim
12415docdir!$docdir$ac_delim
12416infodir!$infodir$ac_delim
12417htmldir!$htmldir$ac_delim
12418dvidir!$dvidir$ac_delim
12419pdfdir!$pdfdir$ac_delim
12420psdir!$psdir$ac_delim
12421libdir!$libdir$ac_delim
12422localedir!$localedir$ac_delim
12423mandir!$mandir$ac_delim
12424DEFS!$DEFS$ac_delim
12425ECHO_C!$ECHO_C$ac_delim
12426ECHO_N!$ECHO_N$ac_delim
12427ECHO_T!$ECHO_T$ac_delim
12428LIBS!$LIBS$ac_delim
12429build_alias!$build_alias$ac_delim
12430host_alias!$host_alias$ac_delim
12431target_alias!$target_alias$ac_delim
12432INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12433INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12434INSTALL_DATA!$INSTALL_DATA$ac_delim
12435am__isrc!$am__isrc$ac_delim
12436CYGPATH_W!$CYGPATH_W$ac_delim
12437PACKAGE!$PACKAGE$ac_delim
12438VERSION!$VERSION$ac_delim
12439ACLOCAL!$ACLOCAL$ac_delim
12440AUTOCONF!$AUTOCONF$ac_delim
12441AUTOMAKE!$AUTOMAKE$ac_delim
12442AUTOHEADER!$AUTOHEADER$ac_delim
12443MAKEINFO!$MAKEINFO$ac_delim
12444install_sh!$install_sh$ac_delim
12445STRIP!$STRIP$ac_delim
12446INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
12447mkdir_p!$mkdir_p$ac_delim
12448AWK!$AWK$ac_delim
12449SET_MAKE!$SET_MAKE$ac_delim
12450am__leading_dot!$am__leading_dot$ac_delim
12451AMTAR!$AMTAR$ac_delim
12452am__tar!$am__tar$ac_delim
12453am__untar!$am__untar$ac_delim
12454YAML_LT_RELEASE!$YAML_LT_RELEASE$ac_delim
12455YAML_LT_CURRENT!$YAML_LT_CURRENT$ac_delim
12456YAML_LT_REVISION!$YAML_LT_REVISION$ac_delim
12457YAML_LT_AGE!$YAML_LT_AGE$ac_delim
12458CC!$CC$ac_delim
12459CFLAGS!$CFLAGS$ac_delim
12460LDFLAGS!$LDFLAGS$ac_delim
12461CPPFLAGS!$CPPFLAGS$ac_delim
12462ac_ct_CC!$ac_ct_CC$ac_delim
12463EXEEXT!$EXEEXT$ac_delim
12464OBJEXT!$OBJEXT$ac_delim
12465DEPDIR!$DEPDIR$ac_delim
12466am__include!$am__include$ac_delim
12467am__quote!$am__quote$ac_delim
12468AMDEP_TRUE!$AMDEP_TRUE$ac_delim
12469AMDEP_FALSE!$AMDEP_FALSE$ac_delim
12470AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
12471CCDEPMODE!$CCDEPMODE$ac_delim
12472am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
12473am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
12474CPP!$CPP$ac_delim
12475LN_S!$LN_S$ac_delim
12476LIBTOOL!$LIBTOOL$ac_delim
12477build!$build$ac_delim
12478build_cpu!$build_cpu$ac_delim
12479build_vendor!$build_vendor$ac_delim
12480build_os!$build_os$ac_delim
12481host!$host$ac_delim
12482host_cpu!$host_cpu$ac_delim
12483host_vendor!$host_vendor$ac_delim
12484host_os!$host_os$ac_delim
12485SED!$SED$ac_delim
12486GREP!$GREP$ac_delim
12487EGREP!$EGREP$ac_delim
12488FGREP!$FGREP$ac_delim
12489LD!$LD$ac_delim
12490DUMPBIN!$DUMPBIN$ac_delim
12491ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
12492_ACEOF
12493
12494 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12495 break
12496 elif $ac_last_try; then
12497 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12498echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12499 { (exit 1); exit 1; }; }
12500 else
12501 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12502 fi
12503done
12504
12505ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12506if test -n "$ac_eof"; then
12507 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12508 ac_eof=`expr $ac_eof + 1`
b9668ba4
AK
12509fi
12510
5c706339
AK
12511cat >>$CONFIG_STATUS <<_ACEOF
12512cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12513/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12514_ACEOF
12515sed '
12516s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12517s/^/s,@/; s/!/@,|#_!!_#|/
12518:n
12519t n
12520s/'"$ac_delim"'$/,g/; t
12521s/$/\\/; p
12522N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12523' >>$CONFIG_STATUS <conf$$subs.sed
12524rm -f conf$$subs.sed
12525cat >>$CONFIG_STATUS <<_ACEOF
12526CEOF$ac_eof
12527_ACEOF
b9668ba4 12528
b9668ba4 12529
5c706339
AK
12530ac_delim='%!_!# '
12531for ac_last_try in false false false false false :; do
12532 cat >conf$$subs.sed <<_ACEOF
12533NM!$NM$ac_delim
12534AR!$AR$ac_delim
12535RANLIB!$RANLIB$ac_delim
12536lt_ECHO!$lt_ECHO$ac_delim
12537DSYMUTIL!$DSYMUTIL$ac_delim
12538NMEDIT!$NMEDIT$ac_delim
12539LIPO!$LIPO$ac_delim
12540OTOOL!$OTOOL$ac_delim
12541OTOOL64!$OTOOL64$ac_delim
12542DOXYGEN!$DOXYGEN$ac_delim
12543DOXYGEN_TRUE!$DOXYGEN_TRUE$ac_delim
12544DOXYGEN_FALSE!$DOXYGEN_FALSE$ac_delim
12545LIBOBJS!$LIBOBJS$ac_delim
12546LTLIBOBJS!$LTLIBOBJS$ac_delim
b9668ba4
AK
12547_ACEOF
12548
5c706339
AK
12549 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
12550 break
12551 elif $ac_last_try; then
12552 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12553echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12554 { (exit 1); exit 1; }; }
12555 else
12556 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12557 fi
12558done
b9668ba4 12559
5c706339
AK
12560ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12561if test -n "$ac_eof"; then
12562 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12563 ac_eof=`expr $ac_eof + 1`
b9668ba4 12564fi
5c706339
AK
12565
12566cat >>$CONFIG_STATUS <<_ACEOF
12567cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12568/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
b9668ba4 12569_ACEOF
5c706339
AK
12570sed '
12571s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12572s/^/s,@/; s/!/@,|#_!!_#|/
12573:n
12574t n
12575s/'"$ac_delim"'$/,g/; t
12576s/$/\\/; p
12577N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12578' >>$CONFIG_STATUS <conf$$subs.sed
12579rm -f conf$$subs.sed
12580cat >>$CONFIG_STATUS <<_ACEOF
12581:end
12582s/|#_!!_#|//g
12583CEOF$ac_eof
b9668ba4 12584_ACEOF
b9668ba4 12585
5c706339
AK
12586
12587# VPATH may cause trouble with some makes, so we remove $(srcdir),
12588# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12589# trailing colons and then remove the whole line if VPATH becomes empty
12590# (actually we leave an empty line to preserve line numbers).
12591if test "x$srcdir" = x.; then
12592 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12593s/:*\$(srcdir):*/:/
12594s/:*\${srcdir}:*/:/
12595s/:*@srcdir@:*/:/
12596s/^\([^=]*=[ ]*\):*/\1/
12597s/:*$//
12598s/^[^=]*=[ ]*$//
12599}'
b9668ba4
AK
12600fi
12601
5c706339
AK
12602cat >>$CONFIG_STATUS <<\_ACEOF
12603fi # test -n "$CONFIG_FILES"
12604
12605
12606for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
12607do
12608 case $ac_tag in
12609 :[FHLC]) ac_mode=$ac_tag; continue;;
12610 esac
12611 case $ac_mode$ac_tag in
12612 :[FHL]*:*);;
12613 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12614echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12615 { (exit 1); exit 1; }; };;
12616 :[FH]-) ac_tag=-:-;;
12617 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12618 esac
12619 ac_save_IFS=$IFS
12620 IFS=:
12621 set x $ac_tag
12622 IFS=$ac_save_IFS
12623 shift
12624 ac_file=$1
12625 shift
12626
12627 case $ac_mode in
12628 :L) ac_source=$1;;
12629 :[FH])
12630 ac_file_inputs=
12631 for ac_f
12632 do
12633 case $ac_f in
12634 -) ac_f="$tmp/stdin";;
12635 *) # Look for the file first in the build tree, then in the source tree
12636 # (if the path is not absolute). The absolute path cannot be DOS-style,
12637 # because $ac_f cannot contain `:'.
12638 test -f "$ac_f" ||
12639 case $ac_f in
12640 [\\/$]*) false;;
12641 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12642 esac ||
12643 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12644echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12645 { (exit 1); exit 1; }; };;
12646 esac
12647 ac_file_inputs="$ac_file_inputs $ac_f"
12648 done
12649
12650 # Let's still pretend it is `configure' which instantiates (i.e., don't
12651 # use $as_me), people would be surprised to read:
12652 # /* config.h. Generated by config.status. */
12653 configure_input="Generated from "`IFS=:
12654 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12655 if test x"$ac_file" != x-; then
12656 configure_input="$ac_file. $configure_input"
12657 { echo "$as_me:$LINENO: creating $ac_file" >&5
12658echo "$as_me: creating $ac_file" >&6;}
12659 fi
12660
12661 case $ac_tag in
12662 *:-:* | *:-) cat >"$tmp/stdin";;
12663 esac
12664 ;;
12665 esac
12666
12667 ac_dir=`$as_dirname -- "$ac_file" ||
12668$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12669 X"$ac_file" : 'X\(//\)[^/]' \| \
12670 X"$ac_file" : 'X\(//\)$' \| \
12671 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12672echo X"$ac_file" |
12673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12674 s//\1/
12675 q
12676 }
12677 /^X\(\/\/\)[^/].*/{
12678 s//\1/
12679 q
12680 }
12681 /^X\(\/\/\)$/{
12682 s//\1/
12683 q
12684 }
12685 /^X\(\/\).*/{
12686 s//\1/
12687 q
12688 }
12689 s/.*/./; q'`
12690 { as_dir="$ac_dir"
12691 case $as_dir in #(
12692 -*) as_dir=./$as_dir;;
12693 esac
12694 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12695 as_dirs=
12696 while :; do
12697 case $as_dir in #(
12698 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12699 *) as_qdir=$as_dir;;
12700 esac
12701 as_dirs="'$as_qdir' $as_dirs"
12702 as_dir=`$as_dirname -- "$as_dir" ||
12703$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12704 X"$as_dir" : 'X\(//\)[^/]' \| \
12705 X"$as_dir" : 'X\(//\)$' \| \
12706 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12707echo X"$as_dir" |
12708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12709 s//\1/
12710 q
12711 }
12712 /^X\(\/\/\)[^/].*/{
12713 s//\1/
12714 q
12715 }
12716 /^X\(\/\/\)$/{
12717 s//\1/
12718 q
12719 }
12720 /^X\(\/\).*/{
12721 s//\1/
12722 q
12723 }
12724 s/.*/./; q'`
12725 test -d "$as_dir" && break
12726 done
12727 test -z "$as_dirs" || eval "mkdir $as_dirs"
12728 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12729echo "$as_me: error: cannot create directory $as_dir" >&2;}
12730 { (exit 1); exit 1; }; }; }
12731 ac_builddir=.
b9668ba4 12732
5c706339
AK
12733case "$ac_dir" in
12734.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12735*)
12736 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12737 # A ".." for each directory in $ac_dir_suffix.
12738 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12739 case $ac_top_builddir_sub in
12740 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12741 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12742 esac ;;
b9668ba4 12743esac
5c706339
AK
12744ac_abs_top_builddir=$ac_pwd
12745ac_abs_builddir=$ac_pwd$ac_dir_suffix
12746# for backward compatibility:
12747ac_top_builddir=$ac_top_build_prefix
b9668ba4 12748
5c706339
AK
12749case $srcdir in
12750 .) # We are building in place.
12751 ac_srcdir=.
12752 ac_top_srcdir=$ac_top_builddir_sub
12753 ac_abs_top_srcdir=$ac_pwd ;;
12754 [\\/]* | ?:[\\/]* ) # Absolute name.
12755 ac_srcdir=$srcdir$ac_dir_suffix;
12756 ac_top_srcdir=$srcdir
12757 ac_abs_top_srcdir=$srcdir ;;
12758 *) # Relative name.
12759 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12760 ac_top_srcdir=$ac_top_build_prefix$srcdir
12761 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b9668ba4 12762esac
5c706339 12763ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b9668ba4 12764
b9668ba4 12765
5c706339
AK
12766 case $ac_mode in
12767 :F)
12768 #
12769 # CONFIG_FILE
12770 #
b9668ba4 12771
5c706339
AK
12772 case $INSTALL in
12773 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12774 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12775 esac
12776 ac_MKDIR_P=$MKDIR_P
12777 case $MKDIR_P in
12778 [\\/$]* | ?:[\\/]* ) ;;
12779 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12780 esac
12781_ACEOF
b9668ba4 12782
5c706339
AK
12783cat >>$CONFIG_STATUS <<\_ACEOF
12784# If the template does not know about datarootdir, expand it.
12785# FIXME: This hack should be removed a few years after 2.60.
12786ac_datarootdir_hack=; ac_datarootdir_seen=
b9668ba4 12787
5c706339
AK
12788case `sed -n '/datarootdir/ {
12789 p
12790 q
12791}
12792/@datadir@/p
12793/@docdir@/p
12794/@infodir@/p
12795/@localedir@/p
12796/@mandir@/p
12797' $ac_file_inputs` in
12798*datarootdir*) ac_datarootdir_seen=yes;;
12799*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12800 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12801echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12802_ACEOF
12803cat >>$CONFIG_STATUS <<_ACEOF
12804 ac_datarootdir_hack='
12805 s&@datadir@&$datadir&g
12806 s&@docdir@&$docdir&g
12807 s&@infodir@&$infodir&g
12808 s&@localedir@&$localedir&g
12809 s&@mandir@&$mandir&g
12810 s&\\\${datarootdir}&$datarootdir&g' ;;
12811esac
b9668ba4 12812_ACEOF
b9668ba4 12813
5c706339
AK
12814# Neutralize VPATH when `$srcdir' = `.'.
12815# Shell code in configure.ac might set extrasub.
12816# FIXME: do we really want to maintain this feature?
12817cat >>$CONFIG_STATUS <<_ACEOF
12818 sed "$ac_vpsub
12819$extrasub
12820_ACEOF
12821cat >>$CONFIG_STATUS <<\_ACEOF
12822:t
12823/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12824s&@configure_input@&$configure_input&;t t
12825s&@top_builddir@&$ac_top_builddir_sub&;t t
12826s&@srcdir@&$ac_srcdir&;t t
12827s&@abs_srcdir@&$ac_abs_srcdir&;t t
12828s&@top_srcdir@&$ac_top_srcdir&;t t
12829s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12830s&@builddir@&$ac_builddir&;t t
12831s&@abs_builddir@&$ac_abs_builddir&;t t
12832s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12833s&@INSTALL@&$ac_INSTALL&;t t
12834s&@MKDIR_P@&$ac_MKDIR_P&;t t
12835$ac_datarootdir_hack
12836" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
b9668ba4 12837
5c706339
AK
12838test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12839 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12840 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12841 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12842which seems to be undefined. Please make sure it is defined." >&5
12843echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12844which seems to be undefined. Please make sure it is defined." >&2;}
b9668ba4 12845
5c706339
AK
12846 rm -f "$tmp/stdin"
12847 case $ac_file in
12848 -) cat "$tmp/out"; rm -f "$tmp/out";;
12849 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12850 esac
12851 ;;
12852 :H)
12853 #
12854 # CONFIG_HEADER
12855 #
b9668ba4 12856_ACEOF
b9668ba4 12857
5c706339
AK
12858# Transform confdefs.h into a sed script `conftest.defines', that
12859# substitutes the proper values into config.h.in to produce config.h.
12860rm -f conftest.defines conftest.tail
12861# First, append a space to every undef/define line, to ease matching.
12862echo 's/$/ /' >conftest.defines
12863# Then, protect against being on the right side of a sed subst, or in
12864# an unquoted here document, in config.status. If some macros were
12865# called several times there might be several #defines for the same
12866# symbol, which is useless. But do not sort them, since the last
12867# AC_DEFINE must be honored.
12868ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12869# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12870# NAME is the cpp macro being defined, VALUE is the value it is being given.
12871# PARAMS is the parameter list in the macro definition--in most cases, it's
12872# just an empty string.
12873ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12874ac_dB='\\)[ (].*,\\1define\\2'
12875ac_dC=' '
12876ac_dD=' ,'
b9668ba4 12877
5c706339
AK
12878uniq confdefs.h |
12879 sed -n '
12880 t rset
12881 :rset
12882 s/^[ ]*#[ ]*define[ ][ ]*//
12883 t ok
12884 d
12885 :ok
12886 s/[\\&,]/\\&/g
12887 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12888 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12889 ' >>conftest.defines
b9668ba4 12890
5c706339
AK
12891# Remove the space that was appended to ease matching.
12892# Then replace #undef with comments. This is necessary, for
12893# example, in the case of _POSIX_SOURCE, which is predefined and required
12894# on some systems where configure will not decide to define it.
12895# (The regexp can be short, since the line contains either #define or #undef.)
12896echo 's/ $//
12897s,^[ #]*u.*,/* & */,' >>conftest.defines
b9668ba4 12898
5c706339
AK
12899# Break up conftest.defines:
12900ac_max_sed_lines=50
b9668ba4 12901
5c706339
AK
12902# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12903# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12904# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12905# et cetera.
12906ac_in='$ac_file_inputs'
12907ac_out='"$tmp/out1"'
12908ac_nxt='"$tmp/out2"'
12909
12910while :
12911do
12912 # Write a here document:
12913 cat >>$CONFIG_STATUS <<_ACEOF
12914 # First, check the format of the line:
12915 cat >"\$tmp/defines.sed" <<\\CEOF
12916/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12917/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12918b
12919:def
b9668ba4 12920_ACEOF
5c706339
AK
12921 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12922 echo 'CEOF
12923 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12924 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12925 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12926 grep . conftest.tail >/dev/null || break
12927 rm -f conftest.defines
12928 mv conftest.tail conftest.defines
12929done
12930rm -f conftest.defines conftest.tail
b9668ba4 12931
5c706339
AK
12932echo "ac_result=$ac_in" >>$CONFIG_STATUS
12933cat >>$CONFIG_STATUS <<\_ACEOF
12934 if test x"$ac_file" != x-; then
12935 echo "/* $configure_input */" >"$tmp/config.h"
12936 cat "$ac_result" >>"$tmp/config.h"
12937 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12938 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12939echo "$as_me: $ac_file is unchanged" >&6;}
12940 else
12941 rm -f $ac_file
12942 mv "$tmp/config.h" $ac_file
12943 fi
12944 else
12945 echo "/* $configure_input */"
12946 cat "$ac_result"
12947 fi
12948 rm -f "$tmp/out12"
12949# Compute $ac_file's index in $config_headers.
12950_am_arg=$ac_file
12951_am_stamp_count=1
12952for _am_header in $config_headers :; do
12953 case $_am_header in
12954 $_am_arg | $_am_arg:* )
12955 break ;;
12956 * )
12957 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12958 esac
12959done
12960echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12961$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12962 X"$_am_arg" : 'X\(//\)[^/]' \| \
12963 X"$_am_arg" : 'X\(//\)$' \| \
12964 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12965echo X"$_am_arg" |
12966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12967 s//\1/
12968 q
12969 }
12970 /^X\(\/\/\)[^/].*/{
12971 s//\1/
12972 q
12973 }
12974 /^X\(\/\/\)$/{
12975 s//\1/
12976 q
12977 }
12978 /^X\(\/\).*/{
12979 s//\1/
12980 q
12981 }
12982 s/.*/./; q'`/stamp-h$_am_stamp_count
12983 ;;
b9668ba4 12984
5c706339
AK
12985 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12986echo "$as_me: executing $ac_file commands" >&6;}
12987 ;;
12988 esac
b9668ba4 12989
b9668ba4 12990
5c706339
AK
12991 case $ac_file$ac_mode in
12992 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12993 # Strip MF so we end up with the name of the file.
12994 mf=`echo "$mf" | sed -e 's/:.*$//'`
12995 # Check whether this is an Automake generated Makefile or not.
12996 # We used to match only the files named `Makefile.in', but
12997 # some people rename them; so instead we look at the file content.
12998 # Grep'ing the first line is not enough: some people post-process
12999 # each Makefile.in and add a new line on top of each file to say so.
13000 # Grep'ing the whole file is not good either: AIX grep has a line
13001 # limit of 2048, but all sed's we know have understand at least 4000.
13002 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13003 dirpart=`$as_dirname -- "$mf" ||
13004$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13005 X"$mf" : 'X\(//\)[^/]' \| \
13006 X"$mf" : 'X\(//\)$' \| \
13007 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13008echo X"$mf" |
13009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13010 s//\1/
13011 q
13012 }
13013 /^X\(\/\/\)[^/].*/{
13014 s//\1/
13015 q
13016 }
13017 /^X\(\/\/\)$/{
13018 s//\1/
13019 q
13020 }
13021 /^X\(\/\).*/{
13022 s//\1/
13023 q
13024 }
13025 s/.*/./; q'`
13026 else
13027 continue
13028 fi
13029 # Extract the definition of DEPDIR, am__include, and am__quote
13030 # from the Makefile without running `make'.
13031 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13032 test -z "$DEPDIR" && continue
13033 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13034 test -z "am__include" && continue
13035 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13036 # When using ansi2knr, U may be empty or an underscore; expand it
13037 U=`sed -n 's/^U = //p' < "$mf"`
13038 # Find all dependency output files, they are included files with
13039 # $(DEPDIR) in their names. We invoke sed twice because it is the
13040 # simplest approach to changing $(DEPDIR) to its actual value in the
13041 # expansion.
13042 for file in `sed -n "
13043 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13044 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13045 # Make sure the directory exists.
13046 test -f "$dirpart/$file" && continue
13047 fdir=`$as_dirname -- "$file" ||
13048$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13049 X"$file" : 'X\(//\)[^/]' \| \
13050 X"$file" : 'X\(//\)$' \| \
13051 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13052echo X"$file" |
13053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13054 s//\1/
13055 q
13056 }
13057 /^X\(\/\/\)[^/].*/{
13058 s//\1/
13059 q
13060 }
13061 /^X\(\/\/\)$/{
13062 s//\1/
13063 q
13064 }
13065 /^X\(\/\).*/{
13066 s//\1/
13067 q
13068 }
13069 s/.*/./; q'`
13070 { as_dir=$dirpart/$fdir
13071 case $as_dir in #(
13072 -*) as_dir=./$as_dir;;
13073 esac
13074 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13075 as_dirs=
13076 while :; do
13077 case $as_dir in #(
13078 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13079 *) as_qdir=$as_dir;;
13080 esac
13081 as_dirs="'$as_qdir' $as_dirs"
13082 as_dir=`$as_dirname -- "$as_dir" ||
13083$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13084 X"$as_dir" : 'X\(//\)[^/]' \| \
13085 X"$as_dir" : 'X\(//\)$' \| \
13086 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13087echo X"$as_dir" |
13088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13089 s//\1/
13090 q
13091 }
13092 /^X\(\/\/\)[^/].*/{
13093 s//\1/
13094 q
13095 }
13096 /^X\(\/\/\)$/{
13097 s//\1/
13098 q
13099 }
13100 /^X\(\/\).*/{
13101 s//\1/
13102 q
13103 }
13104 s/.*/./; q'`
13105 test -d "$as_dir" && break
13106 done
13107 test -z "$as_dirs" || eval "mkdir $as_dirs"
13108 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13109echo "$as_me: error: cannot create directory $as_dir" >&2;}
13110 { (exit 1); exit 1; }; }; }
13111 # echo "creating $dirpart/$file"
13112 echo '# dummy' > "$dirpart/$file"
13113 done
13114done
13115 ;;
13116 "libtool":C)
b9668ba4 13117
5c706339
AK
13118 # See if we are running on zsh, and set the options which allow our
13119 # commands through without removal of \ escapes.
13120 if test -n "${ZSH_VERSION+set}" ; then
13121 setopt NO_GLOB_SUBST
13122 fi
b9668ba4 13123
5c706339
AK
13124 cfgfile="${ofile}T"
13125 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13126 $RM "$cfgfile"
b9668ba4 13127
5c706339
AK
13128 cat <<_LT_EOF >> "$cfgfile"
13129#! $SHELL
b9668ba4 13130
5c706339
AK
13131# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13132# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13133# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13134# NOTE: Changes made to this file will be lost: look at ltmain.sh.
b9668ba4 13135#
5c706339
AK
13136# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13137# 2006, 2007, 2008 Free Software Foundation, Inc.
13138# Written by Gordon Matzigkeit, 1996
b9668ba4 13139#
5c706339
AK
13140# This file is part of GNU Libtool.
13141#
13142# GNU Libtool is free software; you can redistribute it and/or
13143# modify it under the terms of the GNU General Public License as
13144# published by the Free Software Foundation; either version 2 of
13145# the License, or (at your option) any later version.
13146#
13147# As a special exception to the GNU General Public License,
13148# if you distribute this file as part of a program or library that
13149# is built using GNU Libtool, you may include this file under the
13150# same distribution terms that you use for the rest of that program.
13151#
13152# GNU Libtool is distributed in the hope that it will be useful,
13153# but WITHOUT ANY WARRANTY; without even the implied warranty of
13154# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13155# GNU General Public License for more details.
13156#
13157# You should have received a copy of the GNU General Public License
13158# along with GNU Libtool; see the file COPYING. If not, a copy
13159# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13160# obtained by writing to the Free Software Foundation, Inc.,
13161# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
b9668ba4 13162
b9668ba4 13163
5c706339
AK
13164# The names of the tagged configurations supported by this script.
13165available_tags=""
b9668ba4 13166
5c706339 13167# ### BEGIN LIBTOOL CONFIG
b9668ba4 13168
5c706339
AK
13169# Which release of libtool.m4 was used?
13170macro_version=$macro_version
13171macro_revision=$macro_revision
b9668ba4 13172
5c706339
AK
13173# Whether or not to build shared libraries.
13174build_libtool_libs=$enable_shared
b9668ba4 13175
5c706339
AK
13176# Whether or not to build static libraries.
13177build_old_libs=$enable_static
b9668ba4 13178
5c706339
AK
13179# What type of objects to build.
13180pic_mode=$pic_mode
b9668ba4 13181
5c706339
AK
13182# Whether or not to optimize for fast installation.
13183fast_install=$enable_fast_install
b9668ba4 13184
5c706339
AK
13185# The host system.
13186host_alias=$host_alias
13187host=$host
13188host_os=$host_os
b9668ba4 13189
5c706339
AK
13190# The build system.
13191build_alias=$build_alias
13192build=$build
13193build_os=$build_os
b9668ba4 13194
5c706339
AK
13195# A sed program that does not truncate output.
13196SED=$lt_SED
b9668ba4 13197
5c706339
AK
13198# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13199Xsed="\$SED -e 1s/^X//"
b9668ba4 13200
5c706339
AK
13201# A grep program that handles long lines.
13202GREP=$lt_GREP
13203
13204# An ERE matcher.
13205EGREP=$lt_EGREP
b9668ba4 13206
5c706339
AK
13207# A literal string matcher.
13208FGREP=$lt_FGREP
b9668ba4 13209
5c706339
AK
13210# A BSD- or MS-compatible name lister.
13211NM=$lt_NM
b9668ba4 13212
5c706339
AK
13213# Whether we need soft or hard links.
13214LN_S=$lt_LN_S
b9668ba4 13215
5c706339
AK
13216# What is the maximum length of a command?
13217max_cmd_len=$max_cmd_len
b9668ba4 13218
5c706339
AK
13219# Object file suffix (normally "o").
13220objext=$ac_objext
b9668ba4 13221
5c706339
AK
13222# Executable file suffix (normally "").
13223exeext=$exeext
b9668ba4 13224
5c706339
AK
13225# whether the shell understands "unset".
13226lt_unset=$lt_unset
b9668ba4 13227
5c706339
AK
13228# turn spaces into newlines.
13229SP2NL=$lt_lt_SP2NL
b9668ba4 13230
5c706339
AK
13231# turn newlines into spaces.
13232NL2SP=$lt_lt_NL2SP
b9668ba4 13233
5c706339
AK
13234# How to create reloadable object files.
13235reload_flag=$lt_reload_flag
13236reload_cmds=$lt_reload_cmds
b9668ba4 13237
5c706339
AK
13238# Method to check whether dependent libraries are shared objects.
13239deplibs_check_method=$lt_deplibs_check_method
b9668ba4 13240
5c706339
AK
13241# Command to use when deplibs_check_method == "file_magic".
13242file_magic_cmd=$lt_file_magic_cmd
b9668ba4 13243
5c706339
AK
13244# The archiver.
13245AR=$lt_AR
13246AR_FLAGS=$lt_AR_FLAGS
b9668ba4 13247
5c706339
AK
13248# A symbol stripping program.
13249STRIP=$lt_STRIP
b9668ba4 13250
5c706339
AK
13251# Commands used to install an old-style archive.
13252RANLIB=$lt_RANLIB
13253old_postinstall_cmds=$lt_old_postinstall_cmds
13254old_postuninstall_cmds=$lt_old_postuninstall_cmds
b9668ba4 13255
5c706339
AK
13256# A C compiler.
13257LTCC=$lt_CC
b9668ba4 13258
5c706339
AK
13259# LTCC compiler flags.
13260LTCFLAGS=$lt_CFLAGS
b9668ba4 13261
5c706339
AK
13262# Take the output of nm and produce a listing of raw symbols and C names.
13263global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
b9668ba4 13264
5c706339
AK
13265# Transform the output of nm in a proper C declaration.
13266global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
b9668ba4 13267
5c706339
AK
13268# Transform the output of nm in a C name address pair.
13269global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
b9668ba4 13270
5c706339
AK
13271# Transform the output of nm in a C name address pair when lib prefix is needed.
13272global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
b9668ba4 13273
5c706339
AK
13274# The name of the directory that contains temporary libtool files.
13275objdir=$objdir
b9668ba4 13276
5c706339
AK
13277# Shell to use when invoking shell scripts.
13278SHELL=$lt_SHELL
b9668ba4 13279
5c706339
AK
13280# An echo program that does not interpret backslashes.
13281ECHO=$lt_ECHO
b9668ba4 13282
5c706339
AK
13283# Used to examine libraries when file_magic_cmd begins with "file".
13284MAGIC_CMD=$MAGIC_CMD
b9668ba4 13285
5c706339
AK
13286# Must we lock files when doing compilation?
13287need_locks=$lt_need_locks
b9668ba4 13288
5c706339
AK
13289# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13290DSYMUTIL=$lt_DSYMUTIL
b9668ba4 13291
5c706339
AK
13292# Tool to change global to local symbols on Mac OS X.
13293NMEDIT=$lt_NMEDIT
b9668ba4 13294
5c706339
AK
13295# Tool to manipulate fat objects and archives on Mac OS X.
13296LIPO=$lt_LIPO
b9668ba4 13297
5c706339
AK
13298# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13299OTOOL=$lt_OTOOL
13300
13301# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13302OTOOL64=$lt_OTOOL64
13303
13304# Old archive suffix (normally "a").
13305libext=$libext
13306
13307# Shared library suffix (normally ".so").
13308shrext_cmds=$lt_shrext_cmds
b9668ba4 13309
5c706339
AK
13310# The commands to extract the exported symbol list from a shared archive.
13311extract_expsyms_cmds=$lt_extract_expsyms_cmds
b9668ba4 13312
5c706339
AK
13313# Variables whose values should be saved in libtool wrapper scripts and
13314# restored at link time.
13315variables_saved_for_relink=$lt_variables_saved_for_relink
b9668ba4 13316
5c706339
AK
13317# Do we need the "lib" prefix for modules?
13318need_lib_prefix=$need_lib_prefix
b9668ba4 13319
5c706339
AK
13320# Do we need a version for libraries?
13321need_version=$need_version
b9668ba4 13322
5c706339
AK
13323# Library versioning type.
13324version_type=$version_type
b9668ba4 13325
5c706339
AK
13326# Shared library runtime path variable.
13327runpath_var=$runpath_var
b9668ba4 13328
5c706339
AK
13329# Shared library path variable.
13330shlibpath_var=$shlibpath_var
b9668ba4 13331
5c706339
AK
13332# Is shlibpath searched before the hard-coded library search path?
13333shlibpath_overrides_runpath=$shlibpath_overrides_runpath
b9668ba4 13334
5c706339
AK
13335# Format of library name prefix.
13336libname_spec=$lt_libname_spec
b9668ba4 13337
5c706339
AK
13338# List of archive names. First name is the real one, the rest are links.
13339# The last name is the one that the linker finds with -lNAME
13340library_names_spec=$lt_library_names_spec
b9668ba4 13341
5c706339
AK
13342# The coded name of the library, if different from the real name.
13343soname_spec=$lt_soname_spec
b9668ba4 13344
5c706339
AK
13345# Command to use after installation of a shared archive.
13346postinstall_cmds=$lt_postinstall_cmds
b9668ba4 13347
5c706339
AK
13348# Command to use after uninstallation of a shared archive.
13349postuninstall_cmds=$lt_postuninstall_cmds
b9668ba4 13350
5c706339
AK
13351# Commands used to finish a libtool library installation in a directory.
13352finish_cmds=$lt_finish_cmds
b9668ba4 13353
5c706339
AK
13354# As "finish_cmds", except a single script fragment to be evaled but
13355# not shown.
13356finish_eval=$lt_finish_eval
b9668ba4 13357
5c706339
AK
13358# Whether we should hardcode library paths into libraries.
13359hardcode_into_libs=$hardcode_into_libs
b9668ba4 13360
5c706339
AK
13361# Compile-time system search path for libraries.
13362sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
b9668ba4 13363
5c706339
AK
13364# Run-time system search path for libraries.
13365sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
b9668ba4 13366
5c706339
AK
13367# Whether dlopen is supported.
13368dlopen_support=$enable_dlopen
b9668ba4 13369
5c706339
AK
13370# Whether dlopen of programs is supported.
13371dlopen_self=$enable_dlopen_self
b9668ba4 13372
5c706339
AK
13373# Whether dlopen of statically linked programs is supported.
13374dlopen_self_static=$enable_dlopen_self_static
b9668ba4 13375
5c706339
AK
13376# Commands to strip libraries.
13377old_striplib=$lt_old_striplib
13378striplib=$lt_striplib
b9668ba4 13379
b9668ba4 13380
5c706339
AK
13381# The linker used to build libraries.
13382LD=$lt_LD
b9668ba4 13383
5c706339
AK
13384# Commands used to build an old-style archive.
13385old_archive_cmds=$lt_old_archive_cmds
b9668ba4 13386
5c706339
AK
13387# A language specific compiler.
13388CC=$lt_compiler
b9668ba4 13389
5c706339
AK
13390# Is the compiler the GNU compiler?
13391with_gcc=$GCC
b9668ba4 13392
5c706339
AK
13393# Compiler flag to turn off builtin functions.
13394no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
b9668ba4 13395
5c706339
AK
13396# How to pass a linker flag through the compiler.
13397wl=$lt_lt_prog_compiler_wl
b9668ba4 13398
5c706339
AK
13399# Additional compiler flags for building library objects.
13400pic_flag=$lt_lt_prog_compiler_pic
b9668ba4 13401
5c706339
AK
13402# Compiler flag to prevent dynamic linking.
13403link_static_flag=$lt_lt_prog_compiler_static
b9668ba4 13404
5c706339
AK
13405# Does compiler simultaneously support -c and -o options?
13406compiler_c_o=$lt_lt_cv_prog_compiler_c_o
b9668ba4 13407
5c706339
AK
13408# Whether or not to add -lc for building shared libraries.
13409build_libtool_need_lc=$archive_cmds_need_lc
b9668ba4 13410
5c706339
AK
13411# Whether or not to disallow shared libs when runtime libs are static.
13412allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
b9668ba4 13413
5c706339
AK
13414# Compiler flag to allow reflexive dlopens.
13415export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
b9668ba4 13416
5c706339
AK
13417# Compiler flag to generate shared objects directly from archives.
13418whole_archive_flag_spec=$lt_whole_archive_flag_spec
b9668ba4 13419
5c706339
AK
13420# Whether the compiler copes with passing no objects directly.
13421compiler_needs_object=$lt_compiler_needs_object
b9668ba4 13422
5c706339
AK
13423# Create an old-style archive from a shared archive.
13424old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
b9668ba4 13425
5c706339
AK
13426# Create a temporary old-style archive to link instead of a shared archive.
13427old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
b9668ba4 13428
5c706339
AK
13429# Commands used to build a shared archive.
13430archive_cmds=$lt_archive_cmds
13431archive_expsym_cmds=$lt_archive_expsym_cmds
b9668ba4 13432
5c706339
AK
13433# Commands used to build a loadable module if different from building
13434# a shared archive.
13435module_cmds=$lt_module_cmds
13436module_expsym_cmds=$lt_module_expsym_cmds
b9668ba4 13437
5c706339
AK
13438# Whether we are building with GNU ld or not.
13439with_gnu_ld=$lt_with_gnu_ld
b9668ba4 13440
5c706339
AK
13441# Flag that allows shared libraries with undefined symbols to be built.
13442allow_undefined_flag=$lt_allow_undefined_flag
b9668ba4 13443
5c706339
AK
13444# Flag that enforces no undefined symbols.
13445no_undefined_flag=$lt_no_undefined_flag
b9668ba4 13446
5c706339
AK
13447# Flag to hardcode \$libdir into a binary during linking.
13448# This must work even if \$libdir does not exist
13449hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
b9668ba4 13450
5c706339
AK
13451# If ld is used when linking, flag to hardcode \$libdir into a binary
13452# during linking. This must work even if \$libdir does not exist.
13453hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
b9668ba4 13454
5c706339
AK
13455# Whether we need a single "-rpath" flag with a separated argument.
13456hardcode_libdir_separator=$lt_hardcode_libdir_separator
b9668ba4 13457
5c706339
AK
13458# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13459# DIR into the resulting binary.
13460hardcode_direct=$hardcode_direct
b9668ba4 13461
5c706339
AK
13462# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13463# DIR into the resulting binary and the resulting library dependency is
13464# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13465# library is relocated.
13466hardcode_direct_absolute=$hardcode_direct_absolute
b9668ba4 13467
5c706339
AK
13468# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13469# into the resulting binary.
13470hardcode_minus_L=$hardcode_minus_L
b9668ba4 13471
5c706339
AK
13472# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13473# into the resulting binary.
13474hardcode_shlibpath_var=$hardcode_shlibpath_var
b9668ba4 13475
5c706339
AK
13476# Set to "yes" if building a shared library automatically hardcodes DIR
13477# into the library and all subsequent libraries and executables linked
13478# against it.
13479hardcode_automatic=$hardcode_automatic
b9668ba4 13480
5c706339
AK
13481# Set to yes if linker adds runtime paths of dependent libraries
13482# to runtime path list.
13483inherit_rpath=$inherit_rpath
b9668ba4 13484
5c706339
AK
13485# Whether libtool must link a program against all its dependency libraries.
13486link_all_deplibs=$link_all_deplibs
b9668ba4 13487
5c706339
AK
13488# Fix the shell variable \$srcfile for the compiler.
13489fix_srcfile_path=$lt_fix_srcfile_path
b9668ba4 13490
5c706339
AK
13491# Set to "yes" if exported symbols are required.
13492always_export_symbols=$always_export_symbols
b9668ba4 13493
5c706339
AK
13494# The commands to list exported symbols.
13495export_symbols_cmds=$lt_export_symbols_cmds
b9668ba4 13496
5c706339
AK
13497# Symbols that should not be listed in the preloaded symbols.
13498exclude_expsyms=$lt_exclude_expsyms
b9668ba4 13499
5c706339
AK
13500# Symbols that must always be exported.
13501include_expsyms=$lt_include_expsyms
b9668ba4 13502
5c706339
AK
13503# Commands necessary for linking programs (against libraries) with templates.
13504prelink_cmds=$lt_prelink_cmds
13505
13506# Specify filename containing input files.
13507file_list_spec=$lt_file_list_spec
13508
13509# How to hardcode a shared library path into an executable.
13510hardcode_action=$hardcode_action
13511
13512# ### END LIBTOOL CONFIG
13513
13514_LT_EOF
13515
13516 case $host_os in
13517 aix3*)
13518 cat <<\_LT_EOF >> "$cfgfile"
13519# AIX sometimes has problems with the GCC collect2 program. For some
13520# reason, if we set the COLLECT_NAMES environment variable, the problems
13521# vanish in a puff of smoke.
13522if test "X${COLLECT_NAMES+set}" != Xset; then
13523 COLLECT_NAMES=
13524 export COLLECT_NAMES
13525fi
13526_LT_EOF
b9668ba4
AK
13527 ;;
13528 esac
13529
b9668ba4 13530
5c706339 13531ltmain="$ac_aux_dir/ltmain.sh"
b9668ba4 13532
b9668ba4 13533
5c706339
AK
13534 # We use sed instead of cat because bash on DJGPP gets confused if
13535 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13536 # text mode, it properly converts lines to CR/LF. This bash problem
13537 # is reportedly fixed, but why not run on old versions too?
13538 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13539 || (rm -f "$cfgfile"; exit 1)
b9668ba4 13540
5c706339
AK
13541 case $xsi_shell in
13542 yes)
13543 cat << \_LT_EOF >> "$cfgfile"
b9668ba4 13544
5c706339
AK
13545# func_dirname file append nondir_replacement
13546# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13547# otherwise set result to NONDIR_REPLACEMENT.
13548func_dirname ()
13549{
13550 case ${1} in
13551 */*) func_dirname_result="${1%/*}${2}" ;;
13552 * ) func_dirname_result="${3}" ;;
b9668ba4 13553 esac
b9668ba4 13554}
b9668ba4 13555
5c706339
AK
13556# func_basename file
13557func_basename ()
13558{
13559 func_basename_result="${1##*/}"
13560}
b9668ba4 13561
5c706339
AK
13562# func_dirname_and_basename file append nondir_replacement
13563# perform func_basename and func_dirname in a single function
13564# call:
13565# dirname: Compute the dirname of FILE. If nonempty,
13566# add APPEND to the result, otherwise set result
13567# to NONDIR_REPLACEMENT.
13568# value returned in "$func_dirname_result"
13569# basename: Compute filename of FILE.
13570# value retuned in "$func_basename_result"
13571# Implementation must be kept synchronized with func_dirname
13572# and func_basename. For efficiency, we do not delegate to
13573# those functions but instead duplicate the functionality here.
13574func_dirname_and_basename ()
13575{
13576 case ${1} in
13577 */*) func_dirname_result="${1%/*}${2}" ;;
13578 * ) func_dirname_result="${3}" ;;
b9668ba4 13579 esac
5c706339
AK
13580 func_basename_result="${1##*/}"
13581}
b9668ba4 13582
5c706339
AK
13583# func_stripname prefix suffix name
13584# strip PREFIX and SUFFIX off of NAME.
13585# PREFIX and SUFFIX must not contain globbing or regex special
13586# characters, hashes, percent signs, but SUFFIX may contain a leading
13587# dot (in which case that matches only a dot).
13588func_stripname ()
13589{
13590 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13591 # positional parameters, so assign one to ordinary parameter first.
13592 func_stripname_result=${3}
13593 func_stripname_result=${func_stripname_result#"${1}"}
13594 func_stripname_result=${func_stripname_result%"${2}"}
13595}
b9668ba4 13596
5c706339
AK
13597# func_opt_split
13598func_opt_split ()
13599{
13600 func_opt_split_opt=${1%%=*}
13601 func_opt_split_arg=${1#*=}
13602}
13603
13604# func_lo2o object
13605func_lo2o ()
13606{
13607 case ${1} in
13608 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13609 *) func_lo2o_result=${1} ;;
13610 esac
13611}
b9668ba4 13612
5c706339
AK
13613# func_xform libobj-or-source
13614func_xform ()
13615{
13616 func_xform_result=${1%.*}.lo
13617}
b9668ba4 13618
5c706339
AK
13619# func_arith arithmetic-term...
13620func_arith ()
13621{
13622 func_arith_result=$(( $* ))
13623}
b9668ba4 13624
5c706339
AK
13625# func_len string
13626# STRING may not start with a hyphen.
13627func_len ()
13628{
13629 func_len_result=${#1}
13630}
b9668ba4 13631
5c706339
AK
13632_LT_EOF
13633 ;;
13634 *) # Bourne compatible functions.
13635 cat << \_LT_EOF >> "$cfgfile"
b9668ba4 13636
5c706339
AK
13637# func_dirname file append nondir_replacement
13638# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13639# otherwise set result to NONDIR_REPLACEMENT.
13640func_dirname ()
13641{
13642 # Extract subdirectory from the argument.
13643 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13644 if test "X$func_dirname_result" = "X${1}"; then
13645 func_dirname_result="${3}"
b9668ba4 13646 else
5c706339 13647 func_dirname_result="$func_dirname_result${2}"
b9668ba4 13648 fi
5c706339 13649}
b9668ba4 13650
5c706339
AK
13651# func_basename file
13652func_basename ()
13653{
13654 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13655}
13656
13657
13658# func_stripname prefix suffix name
13659# strip PREFIX and SUFFIX off of NAME.
13660# PREFIX and SUFFIX must not contain globbing or regex special
13661# characters, hashes, percent signs, but SUFFIX may contain a leading
13662# dot (in which case that matches only a dot).
13663# func_strip_suffix prefix name
13664func_stripname ()
13665{
13666 case ${2} in
13667 .*) func_stripname_result=`$ECHO "X${3}" \
13668 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13669 *) func_stripname_result=`$ECHO "X${3}" \
13670 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
b9668ba4 13671 esac
5c706339 13672}
b9668ba4 13673
5c706339
AK
13674# sed scripts:
13675my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13676my_sed_long_arg='1s/^-[^=]*=//'
b9668ba4 13677
5c706339
AK
13678# func_opt_split
13679func_opt_split ()
13680{
13681 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13682 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13683}
13684
13685# func_lo2o object
13686func_lo2o ()
13687{
13688 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13689}
13690
13691# func_xform libobj-or-source
13692func_xform ()
13693{
13694 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13695}
13696
13697# func_arith arithmetic-term...
13698func_arith ()
13699{
13700 func_arith_result=`expr "$@"`
13701}
13702
13703# func_len string
13704# STRING may not start with a hyphen.
13705func_len ()
13706{
13707 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13708}
13709
13710_LT_EOF
13711esac
13712
13713case $lt_shell_append in
13714 yes)
13715 cat << \_LT_EOF >> "$cfgfile"
13716
13717# func_append var value
13718# Append VALUE to the end of shell variable VAR.
13719func_append ()
13720{
13721 eval "$1+=\$2"
13722}
13723_LT_EOF
13724 ;;
13725 *)
13726 cat << \_LT_EOF >> "$cfgfile"
13727
13728# func_append var value
13729# Append VALUE to the end of shell variable VAR.
13730func_append ()
13731{
13732 eval "$1=\$$1\$2"
13733}
13734
13735_LT_EOF
13736 ;;
b9668ba4 13737 esac
5c706339
AK
13738
13739
13740 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13741 || (rm -f "$cfgfile"; exit 1)
13742
13743 mv -f "$cfgfile" "$ofile" ||
13744 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13745 chmod +x "$ofile"
13746
b9668ba4
AK
13747 ;;
13748
13749 esac
13750done # for ac_tag
13751
13752
13753{ (exit 0); exit 0; }
13754_ACEOF
13755chmod +x $CONFIG_STATUS
13756ac_clean_files=$ac_clean_files_save
13757
13758
13759# configure is writing to config.log, and then calls config.status.
13760# config.status does its own redirection, appending to config.log.
13761# Unfortunately, on DOS this fails, as config.log is still kept open
13762# by configure, so config.status won't be able to write to it; its
13763# output is simply discarded. So we exec the FD to /dev/null,
13764# effectively closing config.log, so it can be properly (re)opened and
13765# appended to by config.status. When coming back to configure, we
13766# need to make the FD available again.
13767if test "$no_create" != yes; then
13768 ac_cs_success=:
13769 ac_config_status_args=
13770 test "$silent" = yes &&
13771 ac_config_status_args="$ac_config_status_args --quiet"
13772 exec 5>/dev/null
13773 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13774 exec 5>>config.log
13775 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13776 # would make configure fail if this is the last instruction.
13777 $ac_cs_success || { (exit 1); exit 1; }
13778fi
13779
This page took 2.322119 seconds and 5 git commands to generate.