]> andersk Git - libyaml.git/blob - configure
Merge commit 'upstream/0.1.2' into debian
[libyaml.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for yaml 0.1.2.
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
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo 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
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
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
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
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
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
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
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if 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'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$lt_ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 ECHO=${lt_ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $ECHO works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<_LT_EOF
584 $*
585 _LT_EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$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
605
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.
616
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
628     IFS="$lt_save_ifs"
629
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+"$@"}
645       else
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=:
670
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
678
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
688       fi
689     fi
690   fi
691 fi
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.
695 lt_ECHO=$ECHO
696 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698 fi
699
700
701
702
703 exec 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.
708 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
709
710 #
711 # Initializations.
712 #
713 ac_default_prefix=/usr/local
714 ac_clean_files=
715 ac_config_libobj_dir=.
716 LIBOBJS=
717 cross_compiling=no
718 subdirs=
719 MFLAGS=
720 MAKEFLAGS=
721 SHELL=${CONFIG_SHELL-/bin/sh}
722
723 # Identity of this package.
724 PACKAGE_NAME='yaml'
725 PACKAGE_TARNAME='yaml'
726 PACKAGE_VERSION='0.1.2'
727 PACKAGE_STRING='yaml 0.1.2'
728 PACKAGE_BUGREPORT='http://pyyaml.org/newticket?component=libyaml'
729
730 # Factoring default headers for most tests.
731 ac_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
766 ac_subst_vars='SHELL
767 PATH_SEPARATOR
768 PACKAGE_NAME
769 PACKAGE_TARNAME
770 PACKAGE_VERSION
771 PACKAGE_STRING
772 PACKAGE_BUGREPORT
773 exec_prefix
774 prefix
775 program_transform_name
776 bindir
777 sbindir
778 libexecdir
779 datarootdir
780 datadir
781 sysconfdir
782 sharedstatedir
783 localstatedir
784 includedir
785 oldincludedir
786 docdir
787 infodir
788 htmldir
789 dvidir
790 pdfdir
791 psdir
792 libdir
793 localedir
794 mandir
795 DEFS
796 ECHO_C
797 ECHO_N
798 ECHO_T
799 LIBS
800 build_alias
801 host_alias
802 target_alias
803 INSTALL_PROGRAM
804 INSTALL_SCRIPT
805 INSTALL_DATA
806 am__isrc
807 CYGPATH_W
808 PACKAGE
809 VERSION
810 ACLOCAL
811 AUTOCONF
812 AUTOMAKE
813 AUTOHEADER
814 MAKEINFO
815 install_sh
816 STRIP
817 INSTALL_STRIP_PROGRAM
818 mkdir_p
819 AWK
820 SET_MAKE
821 am__leading_dot
822 AMTAR
823 am__tar
824 am__untar
825 YAML_LT_RELEASE
826 YAML_LT_CURRENT
827 YAML_LT_REVISION
828 YAML_LT_AGE
829 CC
830 CFLAGS
831 LDFLAGS
832 CPPFLAGS
833 ac_ct_CC
834 EXEEXT
835 OBJEXT
836 DEPDIR
837 am__include
838 am__quote
839 AMDEP_TRUE
840 AMDEP_FALSE
841 AMDEPBACKSLASH
842 CCDEPMODE
843 am__fastdepCC_TRUE
844 am__fastdepCC_FALSE
845 CPP
846 LN_S
847 LIBTOOL
848 build
849 build_cpu
850 build_vendor
851 build_os
852 host
853 host_cpu
854 host_vendor
855 host_os
856 SED
857 GREP
858 EGREP
859 FGREP
860 LD
861 DUMPBIN
862 ac_ct_DUMPBIN
863 NM
864 AR
865 RANLIB
866 lt_ECHO
867 DSYMUTIL
868 NMEDIT
869 LIPO
870 OTOOL
871 OTOOL64
872 DOXYGEN
873 DOXYGEN_TRUE
874 DOXYGEN_FALSE
875 LIBOBJS
876 LTLIBOBJS'
877 ac_subst_files=''
878       ac_precious_vars='build_alias
879 host_alias
880 target_alias
881 CC
882 CFLAGS
883 LDFLAGS
884 LIBS
885 CPPFLAGS
886 CPP'
887
888
889 # Initialize some variables set by options.
890 ac_init_help=
891 ac_init_version=false
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
894 cache_file=/dev/null
895 exec_prefix=NONE
896 no_create=
897 no_recursion=
898 prefix=NONE
899 program_prefix=NONE
900 program_suffix=NONE
901 program_transform_name=s,x,x,
902 silent=
903 site=
904 srcdir=
905 verbose=
906 x_includes=NONE
907 x_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.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
926 infodir='${datarootdir}/info'
927 htmldir='${docdir}'
928 dvidir='${docdir}'
929 pdfdir='${docdir}'
930 psdir='${docdir}'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
934
935 ac_prev=
936 ac_dashdash=
937 for ac_option
938 do
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
1242 Try \`$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
1264 done
1265
1266 if 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; }; }
1270 fi
1271
1272 # Be sure to have absolute directory names.
1273 for 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
1277 do
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; }; }
1285 done
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.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1293
1294 # FIXME: To remove some day.
1295 if 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
1303 fi
1304
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308 test "$silent" = yes && exec 6>/dev/null
1309
1310
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314   { echo "$as_me: error: Working directory cannot be determined" >&2
1315    { (exit 1); exit 1; }; }
1316 test "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.
1322 if 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 ||
1330 echo 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
1352 else
1353   ac_srcdir_defaulted=no
1354 fi
1355 if 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; }; }
1359 fi
1360 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 ac_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=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1367   srcdir=.
1368 fi
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.
1372 case $srcdir in
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374 esac
1375 for 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}
1380 done
1381
1382 #
1383 # Report the --help message.
1384 #
1385 if 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
1389 \`configure' configures yaml 0.1.2 to adapt to many kinds of systems.
1390
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1392
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE.  See below for descriptions of some of the useful variables.
1395
1396 Defaults for the options are specified in brackets.
1397
1398 Configuration:
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
1409 Installation 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
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1419
1420 For better control, use the options below.
1421
1422 Fine 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
1446 Program 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
1451 System 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
1455 fi
1456
1457 if test -n "$ac_init_help"; then
1458   case $ac_init_help in
1459      short | recursive ) echo "Configuration of yaml 0.1.2:";;
1460    esac
1461   cat <<\_ACEOF
1462
1463 Optional 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
1474 Optional Packages:
1475   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1476   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1477   --with-pic              try to use only PIC/non-PIC objects [default=use
1478                           both]
1479   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1480
1481 Some 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
1490
1491 Use these variables to override the choices made by `configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1493
1494 Report bugs to <http://pyyaml.org/newticket?component=libyaml>.
1495 _ACEOF
1496 ac_status=$?
1497 fi
1498
1499 if 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
1505 case "$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 ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $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 ;;
1534 esac
1535 ac_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
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554   cat <<\_ACEOF
1555 yaml configure 0.1.2
1556 generated by GNU Autoconf 2.61
1557
1558 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1559 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563   exit
1564 fi
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1568
1569 It was created by yaml $as_me 0.1.2, which was
1570 generated by GNU Autoconf 2.61.  Invocation command line was
1571
1572   $ $0 $@
1573
1574 _ACEOF
1575 exec 5>>config.log
1576 {
1577 cat <<_ASUNAME
1578 ## --------- ##
1579 ## Platform. ##
1580 ## --------- ##
1581
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -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
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1603 do
1604   IFS=$as_save_IFS
1605   test -z "$as_dir" && as_dir=.
1606   echo "PATH: $as_dir"
1607 done
1608 IFS=$as_save_IFS
1609
1610 } >&5
1611
1612 cat >&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.
1627 ac_configure_args=
1628 ac_configure_args0=
1629 ac_configure_args1=
1630 ac_must_keep_next=false
1631 for ac_pass in 1 2
1632 do
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
1666 done
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.
1675 trap '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
1694 echo "$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
1769 for ac_signal in 1 2 13 15; do
1770   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1771 done
1772 ac_signal=0
1773
1774 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1775 rm -f -r conftest* confdefs.h
1776
1777 # Predefined preprocessor variables.
1778
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_NAME "$PACKAGE_NAME"
1781 _ACEOF
1782
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1786 _ACEOF
1787
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_STRING "$PACKAGE_STRING"
1796 _ACEOF
1797
1798
1799 cat >>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.
1806 if test -n "$CONFIG_SITE"; then
1807   set x "$CONFIG_SITE"
1808 elif test "x$prefix" != xNONE; then
1809   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1810 else
1811   set x "$ac_default_prefix/share/config.site" \
1812         "$ac_default_prefix/etc/config.site"
1813 fi
1814 shift
1815 for ac_site_file
1816 do
1817   if test -r "$ac_site_file"; then
1818     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819 echo "$as_me: loading site script $ac_site_file" >&6;}
1820     sed 's/^/| /' "$ac_site_file" >&5
1821     . "$ac_site_file"
1822   fi
1823 done
1824
1825 if 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
1830 echo "$as_me: loading cache $cache_file" >&6;}
1831     case $cache_file in
1832       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833       *)                      . "./$cache_file";;
1834     esac
1835   fi
1836 else
1837   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838 echo "$as_me: creating cache $cache_file" >&6;}
1839   >$cache_file
1840 fi
1841
1842 # Check that the precious variables saved in the cache have kept the same
1843 # value.
1844 ac_cache_corrupted=false
1845 for 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
1853 echo "$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
1857 echo "$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
1863 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1864         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1865 echo "$as_me:   former value:  $ac_old_val" >&2;}
1866         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1867 echo "$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
1882 done
1883 if $ac_cache_corrupted; then
1884   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1885 echo "$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
1887 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888    { (exit 1); exit 1; }; }
1889 fi
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
1915 ac_ext=c
1916 ac_cpp='$CPP $CPPFLAGS'
1917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1920
1921
1922 ac_aux_dir=
1923 for 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
1937 done
1938 if test -z "$ac_aux_dir"; then
1939   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1940 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1941    { (exit 1); exit 1; }; }
1942 fi
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.
1948 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1949 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1950 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1951
1952
1953 ac_config_headers="$ac_config_headers config.h"
1954
1955 am__api_version='1.10'
1956
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
1971 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1972 if test -z "$INSTALL"; then
1973 if test "${ac_cv_path_install+set}" = set; then
1974   echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 for as_dir in $PATH
1978 do
1979   IFS=$as_save_IFS
1980   test -z "$as_dir" && as_dir=.
1981   # Account for people who put trailing slashes in PATH elements.
1982 case $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     ;;
2010 esac
2011 done
2012 IFS=$as_save_IFS
2013
2014
2015 fi
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
2025 fi
2026 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2027 echo "${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.
2031 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2032
2033 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2034
2035 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2036
2037 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2038 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2039 # Just in case
2040 sleep 1
2041 echo 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).
2047 if (
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
2062 alias in your environment" >&5
2063 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2064 alias in your environment" >&2;}
2065    { (exit 1); exit 1; }; }
2066    fi
2067
2068    test "$2" = conftest.file
2069    )
2070 then
2071    # Ok.
2072    :
2073 else
2074    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2075 Check your system clock" >&5
2076 echo "$as_me: error: newly created file is older than distributed files!
2077 Check your system clock" >&2;}
2078    { (exit 1); exit 1; }; }
2079 fi
2080 { echo "$as_me:$LINENO: result: yes" >&5
2081 echo "${ECHO_T}yes" >&6; }
2082 test "$program_prefix" != NONE &&
2083   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2084 # Use a double $ so make ignores it.
2085 test "$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.
2089 cat <<\_ACEOF >conftest.sed
2090 s/[\\$]/&&/g;s/;s,x,x,$//
2091 _ACEOF
2092 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2093 rm -f conftest.sed
2094
2095 # expand $ac_aux_dir to an absolute path
2096 am_aux_dir=`cd $ac_aux_dir && pwd`
2097
2098 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2099 # Use eval to expand $SHELL
2100 if eval "$MISSING --run true"; then
2101   am_missing_run="$MISSING --run "
2102 else
2103   am_missing_run=
2104   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2105 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2106 fi
2107
2108 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2109 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2110 if test -z "$MKDIR_P"; then
2111   if test "${ac_cv_path_mkdir+set}" = set; then
2112   echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2116 do
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
2131 done
2132 IFS=$as_save_IFS
2133
2134 fi
2135
2136   if test "${ac_cv_path_mkdir+set}" = set; then
2137     MKDIR_P="$ac_cv_path_mkdir -p"
2138   else
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"
2145   fi
2146 fi
2147 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2148 echo "${ECHO_T}$MKDIR_P" >&6; }
2149
2150 mkdir_p="$MKDIR_P"
2151 case $mkdir_p in
2152   [\\/$]* | ?:[\\/]*) ;;
2153   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2154 esac
2155
2156 for ac_prog in gawk mawk nawk awk
2157 do
2158   # Extract the first word of "$ac_prog", so it can be a program name with args.
2159 set dummy $ac_prog; ac_word=$2
2160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2162 if test "${ac_cv_prog_AWK+set}" = set; then
2163   echo $ECHO_N "(cached) $ECHO_C" >&6
2164 else
2165   if test -n "$AWK"; then
2166   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2167 else
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 for as_dir in $PATH
2170 do
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
2179 done
2180 done
2181 IFS=$as_save_IFS
2182
2183 fi
2184 fi
2185 AWK=$ac_cv_prog_AWK
2186 if test -n "$AWK"; then
2187   { echo "$as_me:$LINENO: result: $AWK" >&5
2188 echo "${ECHO_T}$AWK" >&6; }
2189 else
2190   { echo "$as_me:$LINENO: result: no" >&5
2191 echo "${ECHO_T}no" >&6; }
2192 fi
2193
2194
2195   test -n "$AWK" && break
2196 done
2197
2198 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2199 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2200 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2201 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2202   echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204   cat >conftest.make <<\_ACEOF
2205 SHELL = /bin/sh
2206 all:
2207         @echo '@@@%%%=$(MAKE)=@@@%%%'
2208 _ACEOF
2209 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2210 case `${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;;
2215 esac
2216 rm -f conftest.make
2217 fi
2218 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2219   { echo "$as_me:$LINENO: result: yes" >&5
2220 echo "${ECHO_T}yes" >&6; }
2221   SET_MAKE=
2222 else
2223   { echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6; }
2225   SET_MAKE="MAKE=${MAKE-make}"
2226 fi
2227
2228 rm -rf .tst 2>/dev/null
2229 mkdir .tst 2>/dev/null
2230 if test -d .tst; then
2231   am__leading_dot=.
2232 else
2233   am__leading_dot=_
2234 fi
2235 rmdir .tst 2>/dev/null
2236
2237 if 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
2244 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2245    { (exit 1); exit 1; }; }
2246   fi
2247 fi
2248
2249 # test whether we have cygpath
2250 if 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
2256 fi
2257
2258
2259 # Define the identity of the package.
2260  PACKAGE='yaml'
2261  VERSION='0.1.2'
2262
2263
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE "$PACKAGE"
2266 _ACEOF
2267
2268
2269 cat >>confdefs.h <<_ACEOF
2270 #define VERSION "$VERSION"
2271 _ACEOF
2272
2273 # Some tools Automake needs.
2274
2275 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2276
2277
2278 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2279
2280
2281 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2282
2283
2284 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2285
2286
2287 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2288
2289 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
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.
2295 if 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.
2298 set dummy ${ac_tool_prefix}strip; ac_word=$2
2299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2301 if test "${ac_cv_prog_STRIP+set}" = set; then
2302   echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304   if test -n "$STRIP"; then
2305   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2306 else
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2309 do
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
2318 done
2319 done
2320 IFS=$as_save_IFS
2321
2322 fi
2323 fi
2324 STRIP=$ac_cv_prog_STRIP
2325 if test -n "$STRIP"; then
2326   { echo "$as_me:$LINENO: result: $STRIP" >&5
2327 echo "${ECHO_T}$STRIP" >&6; }
2328 else
2329   { echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6; }
2331 fi
2332
2333
2334 fi
2335 if 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.
2338 set dummy strip; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2342   echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344   if test -n "$ac_ct_STRIP"; then
2345   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
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
2358 done
2359 done
2360 IFS=$as_save_IFS
2361
2362 fi
2363 fi
2364 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2365 if test -n "$ac_ct_STRIP"; then
2366   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2367 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2368 else
2369   { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2371 fi
2372
2373   if test "x$ac_ct_STRIP" = x; then
2374     STRIP=":"
2375   else
2376     case $cross_compiling:$ac_tool_warned in
2377 yes:)
2378 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2379 whose name does not start with the host triplet.  If you think this
2380 configuration is useful to you, please write to autoconf@gnu.org." >&5
2381 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2382 whose name does not start with the host triplet.  If you think this
2383 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2384 ac_tool_warned=yes ;;
2385 esac
2386     STRIP=$ac_ct_STRIP
2387   fi
2388 else
2389   STRIP="$ac_cv_prog_STRIP"
2390 fi
2391
2392 fi
2393 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
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
2399 AMTAR=${AMTAR-"${am_missing_run}tar"}
2400
2401 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2402
2403
2404
2405
2406
2407
2408 # Define macro variables for the package version numbers.
2409
2410 cat >>confdefs.h <<\_ACEOF
2411 #define YAML_VERSION_MAJOR 0
2412 _ACEOF
2413
2414
2415 cat >>confdefs.h <<\_ACEOF
2416 #define YAML_VERSION_MINOR 1
2417 _ACEOF
2418
2419
2420 cat >>confdefs.h <<\_ACEOF
2421 #define YAML_VERSION_PATCH 2
2422 _ACEOF
2423
2424
2425 cat >>confdefs.h <<\_ACEOF
2426 #define YAML_VERSION_STRING "0.1.2"
2427 _ACEOF
2428
2429
2430 # Define substitutions for the libtool version numbers.
2431 YAML_LT_RELEASE=0
2432 YAML_LT_CURRENT=2
2433 YAML_LT_REVISION=0
2434 YAML_LT_AGE=1
2435
2436
2437
2438
2439
2440 # Note: in order to update checks, run `autoscan` and look through "configure.scan".
2441
2442 # Checks for programs.
2443 ac_ext=c
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2448 if 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.
2450 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2453 if test "${ac_cv_prog_CC+set}" = set; then
2454   echo $ECHO_N "(cached) $ECHO_C" >&6
2455 else
2456   if test -n "$CC"; then
2457   ac_cv_prog_CC="$CC" # Let the user override the test.
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2461 do
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
2470 done
2471 done
2472 IFS=$as_save_IFS
2473
2474 fi
2475 fi
2476 CC=$ac_cv_prog_CC
2477 if test -n "$CC"; then
2478   { echo "$as_me:$LINENO: result: $CC" >&5
2479 echo "${ECHO_T}$CC" >&6; }
2480 else
2481   { echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6; }
2483 fi
2484
2485
2486 fi
2487 if 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.
2490 set dummy gcc; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2494   echo $ECHO_N "(cached) $ECHO_C" >&6
2495 else
2496   if test -n "$ac_ct_CC"; then
2497   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2501 do
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
2510 done
2511 done
2512 IFS=$as_save_IFS
2513
2514 fi
2515 fi
2516 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2517 if test -n "$ac_ct_CC"; then
2518   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2519 echo "${ECHO_T}$ac_ct_CC" >&6; }
2520 else
2521   { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2523 fi
2524
2525   if test "x$ac_ct_CC" = x; then
2526     CC=""
2527   else
2528     case $cross_compiling:$ac_tool_warned in
2529 yes:)
2530 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2531 whose name does not start with the host triplet.  If you think this
2532 configuration is useful to you, please write to autoconf@gnu.org." >&5
2533 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2534 whose name does not start with the host triplet.  If you think this
2535 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2536 ac_tool_warned=yes ;;
2537 esac
2538     CC=$ac_ct_CC
2539   fi
2540 else
2541   CC="$ac_cv_prog_CC"
2542 fi
2543
2544 if 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.
2547 set dummy ${ac_tool_prefix}cc; ac_word=$2
2548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2550 if test "${ac_cv_prog_CC+set}" = set; then
2551   echo $ECHO_N "(cached) $ECHO_C" >&6
2552 else
2553   if test -n "$CC"; then
2554   ac_cv_prog_CC="$CC" # Let the user override the test.
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH
2558 do
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
2567 done
2568 done
2569 IFS=$as_save_IFS
2570
2571 fi
2572 fi
2573 CC=$ac_cv_prog_CC
2574 if test -n "$CC"; then
2575   { echo "$as_me:$LINENO: result: $CC" >&5
2576 echo "${ECHO_T}$CC" >&6; }
2577 else
2578   { echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6; }
2580 fi
2581
2582
2583   fi
2584 fi
2585 if test -z "$CC"; then
2586   # Extract the first word of "cc", so it can be a program name with args.
2587 set dummy cc; ac_word=$2
2588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2590 if test "${ac_cv_prog_CC+set}" = set; then
2591   echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593   if test -n "$CC"; then
2594   ac_cv_prog_CC="$CC" # Let the user override the test.
2595 else
2596   ac_prog_rejected=no
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
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
2612 done
2613 done
2614 IFS=$as_save_IFS
2615
2616 if 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
2627 fi
2628 fi
2629 fi
2630 CC=$ac_cv_prog_CC
2631 if test -n "$CC"; then
2632   { echo "$as_me:$LINENO: result: $CC" >&5
2633 echo "${ECHO_T}$CC" >&6; }
2634 else
2635   { echo "$as_me:$LINENO: result: no" >&5
2636 echo "${ECHO_T}no" >&6; }
2637 fi
2638
2639
2640 fi
2641 if 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.
2646 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2649 if test "${ac_cv_prog_CC+set}" = set; then
2650   echo $ECHO_N "(cached) $ECHO_C" >&6
2651 else
2652   if test -n "$CC"; then
2653   ac_cv_prog_CC="$CC" # Let the user override the test.
2654 else
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2657 do
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
2666 done
2667 done
2668 IFS=$as_save_IFS
2669
2670 fi
2671 fi
2672 CC=$ac_cv_prog_CC
2673 if test -n "$CC"; then
2674   { echo "$as_me:$LINENO: result: $CC" >&5
2675 echo "${ECHO_T}$CC" >&6; }
2676 else
2677   { echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6; }
2679 fi
2680
2681
2682     test -n "$CC" && break
2683   done
2684 fi
2685 if test -z "$CC"; then
2686   ac_ct_CC=$CC
2687   for ac_prog in cl.exe
2688 do
2689   # Extract the first word of "$ac_prog", so it can be a program name with args.
2690 set dummy $ac_prog; ac_word=$2
2691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2693 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2694   echo $ECHO_N "(cached) $ECHO_C" >&6
2695 else
2696   if test -n "$ac_ct_CC"; then
2697   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2698 else
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2701 do
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
2710 done
2711 done
2712 IFS=$as_save_IFS
2713
2714 fi
2715 fi
2716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2717 if test -n "$ac_ct_CC"; then
2718   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2719 echo "${ECHO_T}$ac_ct_CC" >&6; }
2720 else
2721   { echo "$as_me:$LINENO: result: no" >&5
2722 echo "${ECHO_T}no" >&6; }
2723 fi
2724
2725
2726   test -n "$ac_ct_CC" && break
2727 done
2728
2729   if test "x$ac_ct_CC" = x; then
2730     CC=""
2731   else
2732     case $cross_compiling:$ac_tool_warned in
2733 yes:)
2734 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2735 whose name does not start with the host triplet.  If you think this
2736 configuration is useful to you, please write to autoconf@gnu.org." >&5
2737 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2738 whose name does not start with the host triplet.  If you think this
2739 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2740 ac_tool_warned=yes ;;
2741 esac
2742     CC=$ac_ct_CC
2743   fi
2744 fi
2745
2746 fi
2747
2748
2749 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2750 See \`config.log' for more details." >&5
2751 echo "$as_me: error: no acceptable C compiler found in \$PATH
2752 See \`config.log' for more details." >&2;}
2753    { (exit 1); exit 1; }; }
2754
2755 # Provide some information about the compiler.
2756 echo "$as_me:$LINENO: checking for C compiler version" >&5
2757 ac_compiler=`set X $ac_compile; echo $2`
2758 { (ac_try="$ac_compiler --version >&5"
2759 case "(($ac_try" in
2760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761   *) ac_try_echo=$ac_try;;
2762 esac
2763 eval "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"
2769 case "(($ac_try" in
2770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771   *) ac_try_echo=$ac_try;;
2772 esac
2773 eval "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"
2779 case "(($ac_try" in
2780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781   *) ac_try_echo=$ac_try;;
2782 esac
2783 eval "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
2789 cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h.  */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h.  */
2795
2796 int
2797 main ()
2798 {
2799
2800   ;
2801   return 0;
2802 }
2803 _ACEOF
2804 ac_clean_files_save=$ac_clean_files
2805 ac_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
2810 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2811 ac_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.
2816 ac_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.
2821 ac_rmfiles=
2822 for ac_file in $ac_files
2823 do
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
2828 done
2829 rm -f $ac_rmfiles
2830
2831 if { (ac_try="$ac_link_default"
2832 case "(($ac_try" in
2833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834   *) ac_try_echo=$ac_try;;
2835 esac
2836 eval "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.
2846 for ac_file in $ac_files ''
2847 do
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
2870 done
2871 test "$ac_cv_exeext" = no && ac_cv_exeext=
2872
2873 else
2874   ac_file=''
2875 fi
2876
2877 { echo "$as_me:$LINENO: result: $ac_file" >&5
2878 echo "${ECHO_T}$ac_file" >&6; }
2879 if test -z "$ac_file"; then
2880   echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2882
2883 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2884 See \`config.log' for more details." >&5
2885 echo "$as_me: error: C compiler cannot create executables
2886 See \`config.log' for more details." >&2;}
2887    { (exit 77); exit 77; }; }
2888 fi
2889
2890 ac_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
2895 echo $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.
2898 if 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;;
2903 esac
2904 eval "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.
2915 If you meant to cross compile, use \`--host'.
2916 See \`config.log' for more details." >&5
2917 echo "$as_me: error: cannot run C compiled programs.
2918 If you meant to cross compile, use \`--host'.
2919 See \`config.log' for more details." >&2;}
2920    { (exit 1); exit 1; }; }
2921     fi
2922   fi
2923 fi
2924 { echo "$as_me:$LINENO: result: yes" >&5
2925 echo "${ECHO_T}yes" >&6; }
2926
2927 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2928 ac_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
2932 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2933 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2934 echo "${ECHO_T}$cross_compiling" >&6; }
2935
2936 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2937 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2938 if { (ac_try="$ac_link"
2939 case "(($ac_try" in
2940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941   *) ac_try_echo=$ac_try;;
2942 esac
2943 eval "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'.
2952 for 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
2960 done
2961 else
2962   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2963 See \`config.log' for more details." >&5
2964 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2965 See \`config.log' for more details." >&2;}
2966    { (exit 1); exit 1; }; }
2967 fi
2968
2969 rm -f conftest$ac_cv_exeext
2970 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2971 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2972
2973 rm -f conftest.$ac_ext
2974 EXEEXT=$ac_cv_exeext
2975 ac_exeext=$EXEEXT
2976 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2977 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2978 if test "${ac_cv_objext+set}" = set; then
2979   echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981   cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h.  */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h.  */
2987
2988 int
2989 main ()
2990 {
2991
2992   ;
2993   return 0;
2994 }
2995 _ACEOF
2996 rm -f conftest.o conftest.obj
2997 if { (ac_try="$ac_compile"
2998 case "(($ac_try" in
2999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000   *) ac_try_echo=$ac_try;;
3001 esac
3002 eval "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
3014 done
3015 else
3016   echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3018
3019 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3020 See \`config.log' for more details." >&5
3021 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3022 See \`config.log' for more details." >&2;}
3023    { (exit 1); exit 1; }; }
3024 fi
3025
3026 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3027 fi
3028 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3029 echo "${ECHO_T}$ac_cv_objext" >&6; }
3030 OBJEXT=$ac_cv_objext
3031 ac_objext=$OBJEXT
3032 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3033 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3034 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3035   echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037   cat >conftest.$ac_ext <<_ACEOF
3038 /* confdefs.h.  */
3039 _ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h.  */
3043
3044 int
3045 main ()
3046 {
3047 #ifndef __GNUC__
3048        choke me
3049 #endif
3050
3051   ;
3052   return 0;
3053 }
3054 _ACEOF
3055 rm -f conftest.$ac_objext
3056 if { (ac_try="$ac_compile"
3057 case "(($ac_try" in
3058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059   *) ac_try_echo=$ac_try;;
3060 esac
3061 eval "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
3073 else
3074   echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3076
3077         ac_compiler_gnu=no
3078 fi
3079
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3082
3083 fi
3084 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3085 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3086 GCC=`test $ac_compiler_gnu = yes && echo yes`
3087 ac_test_CFLAGS=${CFLAGS+set}
3088 ac_save_CFLAGS=$CFLAGS
3089 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3090 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3091 if test "${ac_cv_prog_cc_g+set}" = set; then
3092   echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
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
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h.  */
3104
3105 int
3106 main ()
3107 {
3108
3109   ;
3110   return 0;
3111 }
3112 _ACEOF
3113 rm -f conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3115 case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "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
3131 else
3132   echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135         CFLAGS=""
3136       cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h.  */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h.  */
3142
3143 int
3144 main ()
3145 {
3146
3147   ;
3148   return 0;
3149 }
3150 _ACEOF
3151 rm -f conftest.$ac_objext
3152 if { (ac_try="$ac_compile"
3153 case "(($ac_try" in
3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155   *) ac_try_echo=$ac_try;;
3156 esac
3157 eval "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   :
3169 else
3170   echo "$as_me: failed program was:" >&5
3171 sed '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
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h.  */
3181
3182 int
3183 main ()
3184 {
3185
3186   ;
3187   return 0;
3188 }
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "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
3208 else
3209   echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212
3213 fi
3214
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 fi
3217
3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 fi
3220
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222    ac_c_werror_flag=$ac_save_c_werror_flag
3223 fi
3224 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3225 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3226 if test "$ac_test_CFLAGS" = set; then
3227   CFLAGS=$ac_save_CFLAGS
3228 elif 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
3234 else
3235   if test "$GCC" = yes; then
3236     CFLAGS="-O2"
3237   else
3238     CFLAGS=
3239   fi
3240 fi
3241 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3242 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3243 if test "${ac_cv_prog_cc_c89+set}" = set; then
3244   echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246   ac_cv_prog_cc_c89=no
3247 ac_save_CC=$CC
3248 cat >conftest.$ac_ext <<_ACEOF
3249 /* confdefs.h.  */
3250 _ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>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.  */
3259 struct buf { int x; };
3260 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3261 static char *e (p, i)
3262      char **p;
3263      int i;
3264 {
3265   return p[i];
3266 }
3267 static 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.  */
3284 int 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'
3289 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3290
3291 int test (int i, double x);
3292 struct s1 {int (*f) (int a);};
3293 struct s2 {int (*f) (double a);};
3294 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3295 int argc;
3296 char **argv;
3297 int
3298 main ()
3299 {
3300 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3301   ;
3302   return 0;
3303 }
3304 _ACEOF
3305 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3306         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3307 do
3308   CC="$ac_save_CC $ac_arg"
3309   rm -f conftest.$ac_objext
3310 if { (ac_try="$ac_compile"
3311 case "(($ac_try" in
3312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313   *) ac_try_echo=$ac_try;;
3314 esac
3315 eval "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
3327 else
3328   echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331
3332 fi
3333
3334 rm -f core conftest.err conftest.$ac_objext
3335   test "x$ac_cv_prog_cc_c89" != "xno" && break
3336 done
3337 rm -f conftest.$ac_ext
3338 CC=$ac_save_CC
3339
3340 fi
3341 # AC_CACHE_VAL
3342 case "x$ac_cv_prog_cc_c89" in
3343   x)
3344     { echo "$as_me:$LINENO: result: none needed" >&5
3345 echo "${ECHO_T}none needed" >&6; } ;;
3346   xno)
3347     { echo "$as_me:$LINENO: result: unsupported" >&5
3348 echo "${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
3352 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3353 esac
3354
3355
3356 ac_ext=c
3357 ac_cpp='$CPP $CPPFLAGS'
3358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361 DEPDIR="${am__leading_dot}deps"
3362
3363 ac_config_commands="$ac_config_commands depfiles"
3364
3365
3366 am_make=${MAKE-make}
3367 cat > confinc << 'END'
3368 am__doit:
3369         @echo done
3370 .PHONY: am__doit
3371 END
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
3374 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3375 am__include="#"
3376 am__quote=
3377 _am_result=none
3378 # First try GNU make style include.
3379 echo "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'.
3385 if 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
3389 fi
3390 # Now try BSD make style include.
3391 if 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
3398 fi
3399
3400
3401 { echo "$as_me:$LINENO: result: $_am_result" >&5
3402 echo "${ECHO_T}$_am_result" >&6; }
3403 rm -f confinc confmf
3404
3405 # Check whether --enable-dependency-tracking was given.
3406 if test "${enable_dependency_tracking+set}" = set; then
3407   enableval=$enable_dependency_tracking;
3408 fi
3409
3410 if test "x$enable_dependency_tracking" != xno; then
3411   am_depcomp="$ac_aux_dir/depcomp"
3412   AMDEPBACKSLASH='\'
3413 fi
3414  if test "x$enable_dependency_tracking" != xno; then
3415   AMDEP_TRUE=
3416   AMDEP_FALSE='#'
3417 else
3418   AMDEP_TRUE='#'
3419   AMDEP_FALSE=
3420 fi
3421
3422
3423
3424 depcc="$CC"   am_compiler_list=
3425
3426 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3427 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3428 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3429   echo $ECHO_N "(cached) $ECHO_C" >&6
3430 else
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 &&
3491        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
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
3512 else
3513   am_cv_CC_dependencies_compiler_type=none
3514 fi
3515
3516 fi
3517 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3518 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3519 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3520
3521  if
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='#'
3526 else
3527   am__fastdepCC_TRUE='#'
3528   am__fastdepCC_FALSE=
3529 fi
3530
3531
3532 ac_ext=c
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3538 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3539 # On Suns, sometimes $CPP names a directory.
3540 if test -n "$CPP" && test -d "$CPP"; then
3541   CPP=
3542 fi
3543 if test -z "$CPP"; then
3544   if test "${ac_cv_prog_CPP+set}" = set; then
3545   echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
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
3551 for ac_c_preproc_warn_flag in '' yes
3552 do
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
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>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
3572 if { (ac_try="$ac_cpp conftest.$ac_ext"
3573 case "(($ac_try" in
3574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575   *) ac_try_echo=$ac_try;;
3576 esac
3577 eval "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   :
3589 else
3590   echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593   # Broken: fails on valid input.
3594 continue
3595 fi
3596
3597 rm -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
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h.  */
3607 #include <ac_nonexistent.h>
3608 _ACEOF
3609 if { (ac_try="$ac_cpp conftest.$ac_ext"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "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.
3626 continue
3627 else
3628   echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3630
3631   # Passes both tests.
3632 ac_preproc_ok=:
3633 break
3634 fi
3635
3636 rm -f conftest.err conftest.$ac_ext
3637
3638 done
3639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3640 rm -f conftest.err conftest.$ac_ext
3641 if $ac_preproc_ok; then
3642   break
3643 fi
3644
3645     done
3646     ac_cv_prog_CPP=$CPP
3647
3648 fi
3649   CPP=$ac_cv_prog_CPP
3650 else
3651   ac_cv_prog_CPP=$CPP
3652 fi
3653 { echo "$as_me:$LINENO: result: $CPP" >&5
3654 echo "${ECHO_T}$CPP" >&6; }
3655 ac_preproc_ok=false
3656 for ac_c_preproc_warn_flag in '' yes
3657 do
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
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>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
3677 if { (ac_try="$ac_cpp conftest.$ac_ext"
3678 case "(($ac_try" in
3679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680   *) ac_try_echo=$ac_try;;
3681 esac
3682 eval "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   :
3694 else
3695   echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3697
3698   # Broken: fails on valid input.
3699 continue
3700 fi
3701
3702 rm -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
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h.  */
3712 #include <ac_nonexistent.h>
3713 _ACEOF
3714 if { (ac_try="$ac_cpp conftest.$ac_ext"
3715 case "(($ac_try" in
3716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717   *) ac_try_echo=$ac_try;;
3718 esac
3719 eval "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.
3731 continue
3732 else
3733   echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3735
3736   # Passes both tests.
3737 ac_preproc_ok=:
3738 break
3739 fi
3740
3741 rm -f conftest.err conftest.$ac_ext
3742
3743 done
3744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3745 rm -f conftest.err conftest.$ac_ext
3746 if $ac_preproc_ok; then
3747   :
3748 else
3749   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3750 See \`config.log' for more details." >&5
3751 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3752 See \`config.log' for more details." >&2;}
3753    { (exit 1); exit 1; }; }
3754 fi
3755
3756 ac_ext=c
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_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
3776 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3777 if test -z "$INSTALL"; then
3778 if test "${ac_cv_path_install+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784   IFS=$as_save_IFS
3785   test -z "$as_dir" && as_dir=.
3786   # Account for people who put trailing slashes in PATH elements.
3787 case $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     ;;
3815 esac
3816 done
3817 IFS=$as_save_IFS
3818
3819
3820 fi
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
3830 fi
3831 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3832 echo "${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.
3836 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3837
3838 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3839
3840 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3841
3842 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3843 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3844 LN_S=$as_ln_s
3845 if test "$LN_S" = "ln -s"; then
3846   { echo "$as_me:$LINENO: result: yes" >&5
3847 echo "${ECHO_T}yes" >&6; }
3848 else
3849   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3850 echo "${ECHO_T}no, using $LN_S" >&6; }
3851 fi
3852
3853 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3854 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3855 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3856 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3857   echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859   cat >conftest.make <<\_ACEOF
3860 SHELL = /bin/sh
3861 all:
3862         @echo '@@@%%%=$(MAKE)=@@@%%%'
3863 _ACEOF
3864 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3865 case `${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;;
3870 esac
3871 rm -f conftest.make
3872 fi
3873 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3874   { echo "$as_me:$LINENO: result: yes" >&5
3875 echo "${ECHO_T}yes" >&6; }
3876   SET_MAKE=
3877 else
3878   { echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6; }
3880   SET_MAKE="MAKE=${MAKE-make}"
3881 fi
3882
3883 case `pwd` in
3884   *\ * | *\     *)
3885     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3886 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3887 esac
3888
3889
3890
3891 macro_version='2.2.4'
3892 macro_revision='1.2976'
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906 ltmain="$ac_aux_dir/ltmain.sh"
3907
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
3911 echo "$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
3915 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3916 if test "${ac_cv_build+set}" = set; then
3917   echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919   ac_build_alias=$build_alias
3920 test "x$ac_build_alias" = x &&
3921   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3922 test "x$ac_build_alias" = x &&
3923   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3924 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3925    { (exit 1); exit 1; }; }
3926 ac_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
3928 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3929    { (exit 1); exit 1; }; }
3930
3931 fi
3932 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3933 echo "${ECHO_T}$ac_cv_build" >&6; }
3934 case $ac_cv_build in
3935 *-*-*) ;;
3936 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3937 echo "$as_me: error: invalid value of canonical build" >&2;}
3938    { (exit 1); exit 1; }; };;
3939 esac
3940 build=$ac_cv_build
3941 ac_save_IFS=$IFS; IFS='-'
3942 set x $ac_cv_build
3943 shift
3944 build_cpu=$1
3945 build_vendor=$2
3946 shift; shift
3947 # Remember, the first character of IFS is used to create $*,
3948 # except with old shells:
3949 build_os=$*
3950 IFS=$ac_save_IFS
3951 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3952
3953
3954 { echo "$as_me:$LINENO: checking host system type" >&5
3955 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3956 if test "${ac_cv_host+set}" = set; then
3957   echo $ECHO_N "(cached) $ECHO_C" >&6
3958 else
3959   if test "x$host_alias" = x; then
3960   ac_cv_host=$ac_cv_build
3961 else
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
3964 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3965    { (exit 1); exit 1; }; }
3966 fi
3967
3968 fi
3969 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3970 echo "${ECHO_T}$ac_cv_host" >&6; }
3971 case $ac_cv_host in
3972 *-*-*) ;;
3973 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3974 echo "$as_me: error: invalid value of canonical host" >&2;}
3975    { (exit 1); exit 1; }; };;
3976 esac
3977 host=$ac_cv_host
3978 ac_save_IFS=$IFS; IFS='-'
3979 set x $ac_cv_host
3980 shift
3981 host_cpu=$1
3982 host_vendor=$2
3983 shift; shift
3984 # Remember, the first character of IFS is used to create $*,
3985 # except with old shells:
3986 host_os=$*
3987 IFS=$ac_save_IFS
3988 case $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
3992 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3993 if test "${ac_cv_path_SED+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
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
4003 if test -z "$SED"; then
4004 set dummy sed gsed; ac_prog_name=$2
4005 if test "${ac_cv_path_SED+set}" = set; then
4006   echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008   ac_path_SED_found=false
4009 # Loop through the user's path and test for each of PROGNAME-LIST
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH
4012 do
4013   IFS=$as_save_IFS
4014   test -z "$as_dir" && as_dir=.
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
4021 case `"$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
4040     fi
4041     # 10*(2^10) chars as input seems more than enough
4042     test $ac_count -gt 10 && break
4043   done
4044   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4045 esac
4046
4047
4048     $ac_path_SED_found && break 3
4049   done
4050 done
4051
4052 done
4053 IFS=$as_save_IFS
4054
4055
4056 fi
4057
4058 SED="$ac_cv_path_SED"
4059 if test -z "$SED"; then
4060   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4061 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4062    { (exit 1); exit 1; }; }
4063 fi
4064
4065 else
4066   ac_cv_path_SED=$SED
4067 fi
4068
4069 fi
4070 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4071 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4072  SED="$ac_cv_path_SED"
4073   rm -f conftest.sed
4074
4075 test -z "$SED" && SED=sed
4076 Xsed="$SED -e 1s/^X//"
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4089 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4090 if test "${ac_cv_path_GREP+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   # Extract the first word of "grep ggrep" to use in msg output
4094 if test -z "$GREP"; then
4095 set dummy grep ggrep; ac_prog_name=$2
4096 if test "${ac_cv_path_GREP+set}" = set; then
4097   echo $ECHO_N "(cached) $ECHO_C" >&6
4098 else
4099   ac_path_GREP_found=false
4100 # Loop through the user's path and test for each of PROGNAME-LIST
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4103 do
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
4112 case `"$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;;
4136 esac
4137
4138
4139     $ac_path_GREP_found && break 3
4140   done
4141 done
4142
4143 done
4144 IFS=$as_save_IFS
4145
4146
4147 fi
4148
4149 GREP="$ac_cv_path_GREP"
4150 if 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
4152 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4153    { (exit 1); exit 1; }; }
4154 fi
4155
4156 else
4157   ac_cv_path_GREP=$GREP
4158 fi
4159
4160
4161 fi
4162 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4163 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4164  GREP="$ac_cv_path_GREP"
4165
4166
4167 { echo "$as_me:$LINENO: checking for egrep" >&5
4168 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4169 if test "${ac_cv_path_EGREP+set}" = set; then
4170   echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
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
4176 if test -z "$EGREP"; then
4177 set dummy egrep; ac_prog_name=$2
4178 if test "${ac_cv_path_EGREP+set}" = set; then
4179   echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181   ac_path_EGREP_found=false
4182 # Loop through the user's path and test for each of PROGNAME-LIST
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4185 do
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
4194 case `"$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;;
4218 esac
4219
4220
4221     $ac_path_EGREP_found && break 3
4222   done
4223 done
4224
4225 done
4226 IFS=$as_save_IFS
4227
4228
4229 fi
4230
4231 EGREP="$ac_cv_path_EGREP"
4232 if 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
4234 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4235    { (exit 1); exit 1; }; }
4236 fi
4237
4238 else
4239   ac_cv_path_EGREP=$EGREP
4240 fi
4241
4242
4243    fi
4244 fi
4245 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4246 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4247  EGREP="$ac_cv_path_EGREP"
4248
4249
4250 { echo "$as_me:$LINENO: checking for fgrep" >&5
4251 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4252 if test "${ac_cv_path_FGREP+set}" = set; then
4253   echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
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
4259 if test -z "$FGREP"; then
4260 set dummy fgrep; ac_prog_name=$2
4261 if test "${ac_cv_path_FGREP+set}" = set; then
4262   echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264   ac_path_FGREP_found=false
4265 # Loop through the user's path and test for each of PROGNAME-LIST
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4268 do
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
4277 case `"$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;;
4301 esac
4302
4303
4304     $ac_path_FGREP_found && break 3
4305   done
4306 done
4307
4308 done
4309 IFS=$as_save_IFS
4310
4311
4312 fi
4313
4314 FGREP="$ac_cv_path_FGREP"
4315 if 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
4317 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4318    { (exit 1); exit 1; }; }
4319 fi
4320
4321 else
4322   ac_cv_path_FGREP=$FGREP
4323 fi
4324
4325
4326    fi
4327 fi
4328 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4329 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4330  FGREP="$ac_cv_path_FGREP"
4331
4332
4333 test -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.
4354 if test "${with_gnu_ld+set}" = set; then
4355   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4356 else
4357   with_gnu_ld=no
4358 fi
4359
4360 ac_prog=ld
4361 if test "$GCC" = yes; then
4362   # Check if gcc -print-prog-name=ld gives a path.
4363   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4364 echo $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
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%/%"`
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
4392 elif test "$with_gnu_ld" = yes; then
4393   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4394 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4395 else
4396   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4397 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4398 fi
4399 if test "${lt_cv_path_LD+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
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"
4423 else
4424   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4425 fi
4426 fi
4427
4428 LD="$lt_cv_path_LD"
4429 if test -n "$LD"; then
4430   { echo "$as_me:$LINENO: result: $LD" >&5
4431 echo "${ECHO_T}$LD" >&6; }
4432 else
4433   { echo "$as_me:$LINENO: result: no" >&5
4434 echo "${ECHO_T}no" >&6; }
4435 fi
4436 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4437 echo "$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
4440 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4441 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4445 case `$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   ;;
4452 esac
4453 fi
4454 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4455 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4456 with_gnu_ld=$lt_cv_prog_gnu_ld
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4467 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4468 if test "${lt_cv_path_NM+set}" = set; then
4469   echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471   if test -n "$NM"; then
4472   # Let the user override the test.
4473   lt_cv_path_NM="$NM"
4474 else
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
4512   : ${lt_cv_path_NM=no}
4513 fi
4514 fi
4515 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4516 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4517 if test "$lt_cv_path_NM" != "no"; then
4518   NM="$lt_cv_path_NM"
4519 else
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.
4525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4529   echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531   if test -n "$DUMPBIN"; then
4532   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4533 else
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4536 do
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
4545 done
4546 done
4547 IFS=$as_save_IFS
4548
4549 fi
4550 fi
4551 DUMPBIN=$ac_cv_prog_DUMPBIN
4552 if test -n "$DUMPBIN"; then
4553   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4554 echo "${ECHO_T}$DUMPBIN" >&6; }
4555 else
4556   { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4558 fi
4559
4560
4561     test -n "$DUMPBIN" && break
4562   done
4563 fi
4564 if test -z "$DUMPBIN"; then
4565   ac_ct_DUMPBIN=$DUMPBIN
4566   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4567 do
4568   # Extract the first word of "$ac_prog", so it can be a program name with args.
4569 set dummy $ac_prog; ac_word=$2
4570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4573   echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575   if test -n "$ac_ct_DUMPBIN"; then
4576   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4577 else
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4580 do
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
4589 done
4590 done
4591 IFS=$as_save_IFS
4592
4593 fi
4594 fi
4595 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4596 if test -n "$ac_ct_DUMPBIN"; then
4597   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4598 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4599 else
4600   { echo "$as_me:$LINENO: result: no" >&5
4601 echo "${ECHO_T}no" >&6; }
4602 fi
4603
4604
4605   test -n "$ac_ct_DUMPBIN" && break
4606 done
4607
4608   if test "x$ac_ct_DUMPBIN" = x; then
4609     DUMPBIN=":"
4610   else
4611     case $cross_compiling:$ac_tool_warned in
4612 yes:)
4613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4614 whose name does not start with the host triplet.  If you think this
4615 configuration is useful to you, please write to autoconf@gnu.org." >&5
4616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4617 whose name does not start with the host triplet.  If you think this
4618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4619 ac_tool_warned=yes ;;
4620 esac
4621     DUMPBIN=$ac_ct_DUMPBIN
4622   fi
4623 fi
4624
4625
4626   if test "$DUMPBIN" != ":"; then
4627     NM="$DUMPBIN"
4628   fi
4629 fi
4630 test -z "$NM" && NM=nm
4631
4632
4633
4634
4635
4636
4637 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4638 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4639 if test "${lt_cv_nm_interface+set}" = set; then
4640   echo $ECHO_N "(cached) $ECHO_C" >&6
4641 else
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"
4654   fi
4655   rm -f conftest*
4656 fi
4657 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4658 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4659
4660 # find the maximum length of command line arguments
4661 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4662 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4663 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4664   echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666     i=0
4667   teststring="ABCD"
4668
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     ;;
4677
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;
4683     ;;
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;
4694     ;;
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;
4700     ;;
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`
4714     ;;
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
4719     ;;
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
4775     ;;
4776   esac
4777
4778 fi
4779
4780 if test -n $lt_cv_sys_max_cmd_len ; then
4781   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4782 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4783 else
4784   { echo "$as_me:$LINENO: result: none" >&5
4785 echo "${ECHO_T}none" >&6; }
4786 fi
4787 max_cmd_len=$lt_cv_sys_max_cmd_len
4788
4789
4790
4791
4792
4793
4794 : ${CP="cp -f"}
4795 : ${MV="mv -f"}
4796 : ${RM="rm -f"}
4797
4798 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4799 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4800 # Try some XSI features
4801 xsi_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
4809 echo "${ECHO_T}$xsi_shell" >&6; }
4810
4811
4812 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4813 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4814 lt_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
4819 echo "${ECHO_T}$lt_shell_append" >&6; }
4820
4821
4822 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4823   lt_unset=unset
4824 else
4825   lt_unset=false
4826 fi
4827
4828
4829
4830
4831
4832 # test EBCDIC or ASCII
4833 case `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'
4838   ;;
4839  *) # EBCDIC based system
4840   lt_SP2NL='tr \100 \n'
4841   lt_NL2SP='tr \r\n \100\100'
4842   ;;
4843 esac
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4854 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4855 if test "${lt_cv_ld_reload_flag+set}" = set; then
4856   echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858   lt_cv_ld_reload_flag='-r'
4859 fi
4860 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4861 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4862 reload_flag=$lt_cv_ld_reload_flag
4863 case $reload_flag in
4864 "" | " "*) ;;
4865 *) reload_flag=" $reload_flag" ;;
4866 esac
4867 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4868 case $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     ;;
4876 esac
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4888 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4889 if test "${lt_cv_deplibs_check_method+set}" = set; then
4890   echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
4892   lt_cv_file_magic_cmd='$MAGIC_CMD'
4893 lt_cv_file_magic_test_file=
4894 lt_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.
4905
4906 case $host_os in
4907 aix[4-9]*)
4908   lt_cv_deplibs_check_method=pass_all
4909   ;;
4910
4911 beos*)
4912   lt_cv_deplibs_check_method=pass_all
4913   ;;
4914
4915 bsdi[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   ;;
4920
4921 cygwin*)
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   ;;
4926
4927 mingw* | 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   ;;
4939
4940 darwin* | rhapsody*)
4941   lt_cv_deplibs_check_method=pass_all
4942   ;;
4943
4944 freebsd* | 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   ;;
4959
4960 gnu*)
4961   lt_cv_deplibs_check_method=pass_all
4962   ;;
4963
4964 hpux10.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   ;;
4981
4982 interix[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   ;;
4986
4987 irix5* | 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   ;;
4996
4997 # This must be Linux ELF.
4998 linux* | k*bsd*-gnu)
4999   lt_cv_deplibs_check_method=pass_all
5000   ;;
5001
5002 netbsd* | 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   ;;
5009
5010 newos6*)
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   ;;
5015
5016 *nto* | *qnx*)
5017   lt_cv_deplibs_check_method=pass_all
5018   ;;
5019
5020 openbsd*)
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
5028 osf3* | osf4* | osf5*)
5029   lt_cv_deplibs_check_method=pass_all
5030   ;;
5031
5032 rdos*)
5033   lt_cv_deplibs_check_method=pass_all
5034   ;;
5035
5036 solaris*)
5037   lt_cv_deplibs_check_method=pass_all
5038   ;;
5039
5040 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5041   lt_cv_deplibs_check_method=pass_all
5042   ;;
5043
5044 sysv4 | 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
5071 tpf*)
5072   lt_cv_deplibs_check_method=pass_all
5073   ;;
5074 esac
5075
5076 fi
5077 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5078 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5079 file_magic_cmd=$lt_cv_file_magic_cmd
5080 deplibs_check_method=$lt_cv_deplibs_check_method
5081 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094 if 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.
5096 set dummy ${ac_tool_prefix}ar; ac_word=$2
5097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5099 if test "${ac_cv_prog_AR+set}" = set; then
5100   echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102   if test -n "$AR"; then
5103   ac_cv_prog_AR="$AR" # Let the user override the test.
5104 else
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5107 do
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
5116 done
5117 done
5118 IFS=$as_save_IFS
5119
5120 fi
5121 fi
5122 AR=$ac_cv_prog_AR
5123 if test -n "$AR"; then
5124   { echo "$as_me:$LINENO: result: $AR" >&5
5125 echo "${ECHO_T}$AR" >&6; }
5126 else
5127   { echo "$as_me:$LINENO: result: no" >&5
5128 echo "${ECHO_T}no" >&6; }
5129 fi
5130
5131
5132 fi
5133 if 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.
5136 set dummy ar; ac_word=$2
5137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5139 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5140   echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142   if test -n "$ac_ct_AR"; then
5143   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5147 do
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
5156 done
5157 done
5158 IFS=$as_save_IFS
5159
5160 fi
5161 fi
5162 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5163 if test -n "$ac_ct_AR"; then
5164   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5165 echo "${ECHO_T}$ac_ct_AR" >&6; }
5166 else
5167   { echo "$as_me:$LINENO: result: no" >&5
5168 echo "${ECHO_T}no" >&6; }
5169 fi
5170
5171   if test "x$ac_ct_AR" = x; then
5172     AR="false"
5173   else
5174     case $cross_compiling:$ac_tool_warned in
5175 yes:)
5176 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5177 whose name does not start with the host triplet.  If you think this
5178 configuration is useful to you, please write to autoconf@gnu.org." >&5
5179 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5180 whose name does not start with the host triplet.  If you think this
5181 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5182 ac_tool_warned=yes ;;
5183 esac
5184     AR=$ac_ct_AR
5185   fi
5186 else
5187   AR="$ac_cv_prog_AR"
5188 fi
5189
5190 test -z "$AR" && AR=ar
5191 test -z "$AR_FLAGS" && AR_FLAGS=cru
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203 if 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.
5205 set dummy ${ac_tool_prefix}strip; ac_word=$2
5206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5208 if test "${ac_cv_prog_STRIP+set}" = set; then
5209   echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211   if test -n "$STRIP"; then
5212   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5216 do
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
5221     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223     break 2
5224   fi
5225 done
5226 done
5227 IFS=$as_save_IFS
5228
5229 fi
5230 fi
5231 STRIP=$ac_cv_prog_STRIP
5232 if test -n "$STRIP"; then
5233   { echo "$as_me:$LINENO: result: $STRIP" >&5
5234 echo "${ECHO_T}$STRIP" >&6; }
5235 else
5236   { echo "$as_me:$LINENO: result: no" >&5
5237 echo "${ECHO_T}no" >&6; }
5238 fi
5239
5240
5241 fi
5242 if 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.
5245 set dummy strip; ac_word=$2
5246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5248 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5249   echo $ECHO_N "(cached) $ECHO_C" >&6
5250 else
5251   if test -n "$ac_ct_STRIP"; then
5252   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5253 else
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5256 do
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
5261     ac_cv_prog_ac_ct_STRIP="strip"
5262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263     break 2
5264   fi
5265 done
5266 done
5267 IFS=$as_save_IFS
5268
5269 fi
5270 fi
5271 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5272 if test -n "$ac_ct_STRIP"; then
5273   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5274 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5275 else
5276   { echo "$as_me:$LINENO: result: no" >&5
5277 echo "${ECHO_T}no" >&6; }
5278 fi
5279
5280   if test "x$ac_ct_STRIP" = x; then
5281     STRIP=":"
5282   else
5283     case $cross_compiling:$ac_tool_warned in
5284 yes:)
5285 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5286 whose name does not start with the host triplet.  If you think this
5287 configuration is useful to you, please write to autoconf@gnu.org." >&5
5288 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5289 whose name does not start with the host triplet.  If you think this
5290 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5291 ac_tool_warned=yes ;;
5292 esac
5293     STRIP=$ac_ct_STRIP
5294   fi
5295 else
5296   STRIP="$ac_cv_prog_STRIP"
5297 fi
5298
5299 test -z "$STRIP" && STRIP=:
5300
5301
5302
5303
5304
5305
5306 if 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.
5308 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5311 if test "${ac_cv_prog_RANLIB+set}" = set; then
5312   echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314   if test -n "$RANLIB"; then
5315   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5316 else
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5319 do
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
5328 done
5329 done
5330 IFS=$as_save_IFS
5331
5332 fi
5333 fi
5334 RANLIB=$ac_cv_prog_RANLIB
5335 if test -n "$RANLIB"; then
5336   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5337 echo "${ECHO_T}$RANLIB" >&6; }
5338 else
5339   { echo "$as_me:$LINENO: result: no" >&5
5340 echo "${ECHO_T}no" >&6; }
5341 fi
5342
5343
5344 fi
5345 if 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.
5348 set dummy ranlib; ac_word=$2
5349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5351 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5352   echo $ECHO_N "(cached) $ECHO_C" >&6
5353 else
5354   if test -n "$ac_ct_RANLIB"; then
5355   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5356 else
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH
5359 do
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
5368 done
5369 done
5370 IFS=$as_save_IFS
5371
5372 fi
5373 fi
5374 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5375 if test -n "$ac_ct_RANLIB"; then
5376   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5377 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5378 else
5379   { echo "$as_me:$LINENO: result: no" >&5
5380 echo "${ECHO_T}no" >&6; }
5381 fi
5382
5383   if test "x$ac_ct_RANLIB" = x; then
5384     RANLIB=":"
5385   else
5386     case $cross_compiling:$ac_tool_warned in
5387 yes:)
5388 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5389 whose name does not start with the host triplet.  If you think this
5390 configuration is useful to you, please write to autoconf@gnu.org." >&5
5391 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5392 whose name does not start with the host triplet.  If you think this
5393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5394 ac_tool_warned=yes ;;
5395 esac
5396     RANLIB=$ac_ct_RANLIB
5397   fi
5398 else
5399   RANLIB="$ac_cv_prog_RANLIB"
5400 fi
5401
5402 test -z "$RANLIB" && RANLIB=:
5403
5404
5405
5406
5407
5408
5409 # Determine commands to create old-style static archives.
5410 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5411 old_postinstall_cmds='chmod 644 $oldlib'
5412 old_postuninstall_cmds=
5413
5414 if 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"
5424 fi
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459 # If no C compiler was specified, use CC.
5460 LTCC=${LTCC-"$CC"}
5461
5462 # If no C compiler flags were specified, use CFLAGS.
5463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5464
5465 # Allow CC to be a program name with arguments.
5466 compiler=$CC
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
5471 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5472 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
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.
5480 symcode='[BCDEGRST]'
5481
5482 # Regexp to match symbols that can be accessed directly from C.
5483 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5484
5485 # Define system-specific variables.
5486 case $host_os in
5487 aix*)
5488   symcode='[BCDT]'
5489   ;;
5490 cygwin* | mingw* | pw32*)
5491   symcode='[ABCDGISTW]'
5492   ;;
5493 hpux*)
5494   if test "$host_cpu" = ia64; then
5495     symcode='[ABCDEGRST]'
5496   fi
5497   ;;
5498 irix* | nonstopux*)
5499   symcode='[BCDEGRST]'
5500   ;;
5501 osf*)
5502   symcode='[BCDEGQRST]'
5503   ;;
5504 solaris*)
5505   symcode='[BDRT]'
5506   ;;
5507 sco3.2v5*)
5508   symcode='[DT]'
5509   ;;
5510 sysv4.2uw2*)
5511   symcode='[DT]'
5512   ;;
5513 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5514   symcode='[ABDT]'
5515   ;;
5516 sysv4)
5517   symcode='[DFNSTU]'
5518   ;;
5519 esac
5520
5521 # If we're using GNU nm, then use its standard symbol codes.
5522 case `$NM -V 2>&1` in
5523 *GNU* | *'with BFD'*)
5524   symcode='[ABCDGIRSTW]' ;;
5525 esac
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.
5530 lt_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
5533 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5534 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5535
5536 # Handle CRLF in mingw tool chain
5537 opt_cr=
5538 case $build_os in
5539 mingw*)
5540   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5541   ;;
5542 esac
5543
5544 # Try without a prefix underscore, then with it.
5545 for 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.
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
5570
5571   # Check to see that the pipe works correctly.
5572   pipe_works=no
5573
5574   rm -f conftest*
5575   cat > conftest.$ac_ext <<_LT_EOF
5576 #ifdef __cplusplus
5577 extern "C" {
5578 #endif
5579 char nm_test_var;
5580 void nm_test_func(void);
5581 void nm_test_func(void){}
5582 #ifdef __cplusplus
5583 }
5584 #endif
5585 int main(){nm_test_var='a';nm_test_func();return(0);}
5586 _LT_EOF
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.
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
5611 #ifdef __cplusplus
5612 extern "C" {
5613 #endif
5614
5615 _LT_EOF
5616           # Now generate the symbol file.
5617           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5618
5619           cat <<_LT_EOF >> conftest.$ac_ext
5620
5621 /* The mapping between symbol names and symbols.  */
5622 const struct {
5623   const char *name;
5624   void       *address;
5625 }
5626 lt__PROGRAM__LTX_preloaded_symbols[] =
5627 {
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}
5633 };
5634
5635 /* This works around a problem in FreeBSD linker */
5636 #ifdef FREEBSD_WORKAROUND
5637 static const void *lt_preloaded_setup() {
5638   return lt__PROGRAM__LTX_preloaded_symbols;
5639 }
5640 #endif
5641
5642 #ifdef __cplusplus
5643 }
5644 #endif
5645 _LT_EOF
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
5674   rm -rf conftest* conftst*
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
5682 done
5683
5684 fi
5685
5686 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5687   lt_cv_sys_global_symbol_to_cdecl=
5688 fi
5689 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5690   { echo "$as_me:$LINENO: result: failed" >&5
5691 echo "${ECHO_T}failed" >&6; }
5692 else
5693   { echo "$as_me:$LINENO: result: ok" >&5
5694 echo "${ECHO_T}ok" >&6; }
5695 fi
5696
5697
5698
5699
5700
5701
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.
5720 if test "${enable_libtool_lock+set}" = set; then
5721   enableval=$enable_libtool_lock;
5722 fi
5723
5724 test "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.
5728 case $host in
5729 ia64-*-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
5781   fi
5782   rm -rf conftest*
5783   ;;
5784
5785 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5786 s390*-*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   ;;
5837
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
5843 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5844 if test "${lt_cv_cc_needs_belf+set}" = set; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   ac_ext=c
5848 ac_cpp='$CPP $CPPFLAGS'
5849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5852
5853      cat >conftest.$ac_ext <<_ACEOF
5854 /* confdefs.h.  */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h.  */
5859
5860 int
5861 main ()
5862 {
5863
5864   ;
5865   return 0;
5866 }
5867 _ACEOF
5868 rm -f conftest.$ac_objext conftest$ac_exeext
5869 if { (ac_try="$ac_link"
5870 case "(($ac_try" in
5871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872   *) ac_try_echo=$ac_try;;
5873 esac
5874 eval "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
5887 else
5888   echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5890
5891         lt_cv_cc_needs_belf=no
5892 fi
5893
5894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5895       conftest$ac_exeext conftest.$ac_ext
5896      ac_ext=c
5897 ac_cpp='$CPP $CPPFLAGS'
5898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5901
5902 fi
5903 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5904 echo "${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   ;;
5910 sparc*-*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   ;;
5933 esac
5934
5935 need_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.
5942 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5946   echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948   if test -n "$DSYMUTIL"; then
5949   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
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
5958     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960     break 2
5961   fi
5962 done
5963 done
5964 IFS=$as_save_IFS
5965
5966 fi
5967 fi
5968 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5969 if test -n "$DSYMUTIL"; then
5970   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5971 echo "${ECHO_T}$DSYMUTIL" >&6; }
5972 else
5973   { echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6; }
5975 fi
5976
5977
5978 fi
5979 if 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.
5982 set dummy dsymutil; ac_word=$2
5983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5985 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   if test -n "$ac_ct_DSYMUTIL"; then
5989   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5990 else
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 for as_dir in $PATH
5993 do
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
5998     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6000     break 2
6001   fi
6002 done
6003 done
6004 IFS=$as_save_IFS
6005
6006 fi
6007 fi
6008 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6009 if test -n "$ac_ct_DSYMUTIL"; then
6010   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6011 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6012 else
6013   { echo "$as_me:$LINENO: result: no" >&5
6014 echo "${ECHO_T}no" >&6; }
6015 fi
6016
6017   if test "x$ac_ct_DSYMUTIL" = x; then
6018     DSYMUTIL=":"
6019   else
6020     case $cross_compiling:$ac_tool_warned in
6021 yes:)
6022 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6023 whose name does not start with the host triplet.  If you think this
6024 configuration is useful to you, please write to autoconf@gnu.org." >&5
6025 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6026 whose name does not start with the host triplet.  If you think this
6027 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6028 ac_tool_warned=yes ;;
6029 esac
6030     DSYMUTIL=$ac_ct_DSYMUTIL
6031   fi
6032 else
6033   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6034 fi
6035
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.
6038 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6041 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6042   echo $ECHO_N "(cached) $ECHO_C" >&6
6043 else
6044   if test -n "$NMEDIT"; then
6045   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6046 else
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 for as_dir in $PATH
6049 do
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
6054     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6056     break 2
6057   fi
6058 done
6059 done
6060 IFS=$as_save_IFS
6061
6062 fi
6063 fi
6064 NMEDIT=$ac_cv_prog_NMEDIT
6065 if test -n "$NMEDIT"; then
6066   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6067 echo "${ECHO_T}$NMEDIT" >&6; }
6068 else
6069   { echo "$as_me:$LINENO: result: no" >&5
6070 echo "${ECHO_T}no" >&6; }
6071 fi
6072
6073
6074 fi
6075 if 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.
6078 set dummy nmedit; ac_word=$2
6079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6081 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6082   echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084   if test -n "$ac_ct_NMEDIT"; then
6085   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6086 else
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6089 do
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
6094     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6096     break 2
6097   fi
6098 done
6099 done
6100 IFS=$as_save_IFS
6101
6102 fi
6103 fi
6104 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6105 if test -n "$ac_ct_NMEDIT"; then
6106   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6107 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6108 else
6109   { echo "$as_me:$LINENO: result: no" >&5
6110 echo "${ECHO_T}no" >&6; }
6111 fi
6112
6113   if test "x$ac_ct_NMEDIT" = x; then
6114     NMEDIT=":"
6115   else
6116     case $cross_compiling:$ac_tool_warned in
6117 yes:)
6118 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6119 whose name does not start with the host triplet.  If you think this
6120 configuration is useful to you, please write to autoconf@gnu.org." >&5
6121 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6122 whose name does not start with the host triplet.  If you think this
6123 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6124 ac_tool_warned=yes ;;
6125 esac
6126     NMEDIT=$ac_ct_NMEDIT
6127   fi
6128 else
6129   NMEDIT="$ac_cv_prog_NMEDIT"
6130 fi
6131
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.
6134 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6137 if test "${ac_cv_prog_LIPO+set}" = set; then
6138   echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140   if test -n "$LIPO"; then
6141   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6142 else
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH
6145 do
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
6150     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152     break 2
6153   fi
6154 done
6155 done
6156 IFS=$as_save_IFS
6157
6158 fi
6159 fi
6160 LIPO=$ac_cv_prog_LIPO
6161 if test -n "$LIPO"; then
6162   { echo "$as_me:$LINENO: result: $LIPO" >&5
6163 echo "${ECHO_T}$LIPO" >&6; }
6164 else
6165   { echo "$as_me:$LINENO: result: no" >&5
6166 echo "${ECHO_T}no" >&6; }
6167 fi
6168
6169
6170 fi
6171 if 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.
6174 set dummy lipo; ac_word=$2
6175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6177 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6178   echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180   if test -n "$ac_ct_LIPO"; then
6181   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6182 else
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6185 do
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
6190     ac_cv_prog_ac_ct_LIPO="lipo"
6191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6192     break 2
6193   fi
6194 done
6195 done
6196 IFS=$as_save_IFS
6197
6198 fi
6199 fi
6200 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6201 if test -n "$ac_ct_LIPO"; then
6202   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6203 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
6204 else
6205   { echo "$as_me:$LINENO: result: no" >&5
6206 echo "${ECHO_T}no" >&6; }
6207 fi
6208
6209   if test "x$ac_ct_LIPO" = x; then
6210     LIPO=":"
6211   else
6212     case $cross_compiling:$ac_tool_warned in
6213 yes:)
6214 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6215 whose name does not start with the host triplet.  If you think this
6216 configuration is useful to you, please write to autoconf@gnu.org." >&5
6217 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6218 whose name does not start with the host triplet.  If you think this
6219 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6220 ac_tool_warned=yes ;;
6221 esac
6222     LIPO=$ac_ct_LIPO
6223   fi
6224 else
6225   LIPO="$ac_cv_prog_LIPO"
6226 fi
6227
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.
6230 set dummy ${ac_tool_prefix}otool; ac_word=$2
6231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6233 if test "${ac_cv_prog_OTOOL+set}" = set; then
6234   echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236   if test -n "$OTOOL"; then
6237   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6238 else
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH
6241 do
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
6250 done
6251 done
6252 IFS=$as_save_IFS
6253
6254 fi
6255 fi
6256 OTOOL=$ac_cv_prog_OTOOL
6257 if test -n "$OTOOL"; then
6258   { echo "$as_me:$LINENO: result: $OTOOL" >&5
6259 echo "${ECHO_T}$OTOOL" >&6; }
6260 else
6261   { echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6; }
6263 fi
6264
6265
6266 fi
6267 if 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.
6270 set dummy otool; ac_word=$2
6271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6273 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6274   echo $ECHO_N "(cached) $ECHO_C" >&6
6275 else
6276   if test -n "$ac_ct_OTOOL"; then
6277   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6278 else
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 for as_dir in $PATH
6281 do
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
6290 done
6291 done
6292 IFS=$as_save_IFS
6293
6294 fi
6295 fi
6296 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6297 if test -n "$ac_ct_OTOOL"; then
6298   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6299 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6300 else
6301   { echo "$as_me:$LINENO: result: no" >&5
6302 echo "${ECHO_T}no" >&6; }
6303 fi
6304
6305   if test "x$ac_ct_OTOOL" = x; then
6306     OTOOL=":"
6307   else
6308     case $cross_compiling:$ac_tool_warned in
6309 yes:)
6310 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6311 whose name does not start with the host triplet.  If you think this
6312 configuration is useful to you, please write to autoconf@gnu.org." >&5
6313 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6314 whose name does not start with the host triplet.  If you think this
6315 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6316 ac_tool_warned=yes ;;
6317 esac
6318     OTOOL=$ac_ct_OTOOL
6319   fi
6320 else
6321   OTOOL="$ac_cv_prog_OTOOL"
6322 fi
6323
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.
6326 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6329 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6330   echo $ECHO_N "(cached) $ECHO_C" >&6
6331 else
6332   if test -n "$OTOOL64"; then
6333   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6337 do
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
6346 done
6347 done
6348 IFS=$as_save_IFS
6349
6350 fi
6351 fi
6352 OTOOL64=$ac_cv_prog_OTOOL64
6353 if test -n "$OTOOL64"; then
6354   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6355 echo "${ECHO_T}$OTOOL64" >&6; }
6356 else
6357   { echo "$as_me:$LINENO: result: no" >&5
6358 echo "${ECHO_T}no" >&6; }
6359 fi
6360
6361
6362 fi
6363 if 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.
6366 set dummy otool64; ac_word=$2
6367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6369 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6370   echo $ECHO_N "(cached) $ECHO_C" >&6
6371 else
6372   if test -n "$ac_ct_OTOOL64"; then
6373   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6374 else
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6377 do
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
6386 done
6387 done
6388 IFS=$as_save_IFS
6389
6390 fi
6391 fi
6392 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6393 if test -n "$ac_ct_OTOOL64"; then
6394   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6395 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6396 else
6397   { echo "$as_me:$LINENO: result: no" >&5
6398 echo "${ECHO_T}no" >&6; }
6399 fi
6400
6401   if test "x$ac_ct_OTOOL64" = x; then
6402     OTOOL64=":"
6403   else
6404     case $cross_compiling:$ac_tool_warned in
6405 yes:)
6406 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6407 whose name does not start with the host triplet.  If you think this
6408 configuration is useful to you, please write to autoconf@gnu.org." >&5
6409 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6410 whose name does not start with the host triplet.  If you think this
6411 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6412 ac_tool_warned=yes ;;
6413 esac
6414     OTOOL64=$ac_ct_OTOOL64
6415   fi
6416 else
6417   OTOOL64="$ac_cv_prog_OTOOL64"
6418 fi
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6447 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6448 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6449   echo $ECHO_N "(cached) $ECHO_C" >&6
6450 else
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
6472 fi
6473 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6474 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6475     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6476 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6477 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6478   echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
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
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h.  */
6490
6491 int
6492 main ()
6493 {
6494
6495   ;
6496   return 0;
6497 }
6498 _ACEOF
6499 rm -f conftest.$ac_objext conftest$ac_exeext
6500 if { (ac_try="$ac_link"
6501 case "(($ac_try" in
6502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503   *) ac_try_echo=$ac_try;;
6504 esac
6505 eval "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
6518 else
6519   echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6521
6522         lt_cv_ld_exported_symbols_list=no
6523 fi
6524
6525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6526       conftest$ac_exeext conftest.$ac_ext
6527         LDFLAGS="$save_LDFLAGS"
6528
6529 fi
6530 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6531 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6532     case $host_os in
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' ;;
6548       esac
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
6566
6567
6568 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6569 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6570 if test "${ac_cv_header_stdc+set}" = set; then
6571   echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573   cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h.  */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h.  */
6579 #include <stdlib.h>
6580 #include <stdarg.h>
6581 #include <string.h>
6582 #include <float.h>
6583
6584 int
6585 main ()
6586 {
6587
6588   ;
6589   return 0;
6590 }
6591 _ACEOF
6592 rm -f conftest.$ac_objext
6593 if { (ac_try="$ac_compile"
6594 case "(($ac_try" in
6595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596   *) ac_try_echo=$ac_try;;
6597 esac
6598 eval "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
6610 else
6611   echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6613
6614         ac_cv_header_stdc=no
6615 fi
6616
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618
6619 if 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
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h.  */
6627 #include <string.h>
6628
6629 _ACEOF
6630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6631   $EGREP "memchr" >/dev/null 2>&1; then
6632   :
6633 else
6634   ac_cv_header_stdc=no
6635 fi
6636 rm -f conftest*
6637
6638 fi
6639
6640 if 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
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h.  */
6648 #include <stdlib.h>
6649
6650 _ACEOF
6651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6652   $EGREP "free" >/dev/null 2>&1; then
6653   :
6654 else
6655   ac_cv_header_stdc=no
6656 fi
6657 rm -f conftest*
6658
6659 fi
6660
6661 if 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   :
6665 else
6666   cat >conftest.$ac_ext <<_ACEOF
6667 /* confdefs.h.  */
6668 _ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>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
6684
6685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6686 int
6687 main ()
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
6697 rm -f conftest$ac_exeext
6698 if { (ac_try="$ac_link"
6699 case "(($ac_try" in
6700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701   *) ac_try_echo=$ac_try;;
6702 esac
6703 eval "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;;
6711 esac
6712 eval "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   :
6718 else
6719   echo "$as_me: program exited with status $ac_status" >&5
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6722
6723 ( exit $ac_status )
6724 ac_cv_header_stdc=no
6725 fi
6726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6727 fi
6728
6729
6730 fi
6731 fi
6732 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6733 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6734 if test $ac_cv_header_stdc = yes; then
6735
6736 cat >>confdefs.h <<\_ACEOF
6737 #define STDC_HEADERS 1
6738 _ACEOF
6739
6740 fi
6741
6742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6753                   inttypes.h stdint.h unistd.h
6754 do
6755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6759   echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761   cat >conftest.$ac_ext <<_ACEOF
6762 /* confdefs.h.  */
6763 _ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h.  */
6767 $ac_includes_default
6768
6769 #include <$ac_header>
6770 _ACEOF
6771 rm -f conftest.$ac_objext
6772 if { (ac_try="$ac_compile"
6773 case "(($ac_try" in
6774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6775   *) ac_try_echo=$ac_try;;
6776 esac
6777 eval "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"
6789 else
6790   echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.$ac_ext >&5
6792
6793         eval "$as_ac_Header=no"
6794 fi
6795
6796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 fi
6798 ac_res=`eval echo '${'$as_ac_Header'}'`
6799                { echo "$as_me:$LINENO: result: $ac_res" >&5
6800 echo "${ECHO_T}$ac_res" >&6; }
6801 if 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
6805
6806 fi
6807
6808 done
6809
6810
6811
6812 for ac_header in dlfcn.h
6813 do
6814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6818   echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820   cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h.  */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h.  */
6826 $ac_includes_default
6827
6828 #include <$ac_header>
6829 _ACEOF
6830 rm -f conftest.$ac_objext
6831 if { (ac_try="$ac_compile"
6832 case "(($ac_try" in
6833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6834   *) ac_try_echo=$ac_try;;
6835 esac
6836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6837   (eval "$ac_compile") 2>conftest.er1
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
6846        } && test -s conftest.$ac_objext; then
6847   eval "$as_ac_Header=yes"
6848 else
6849   echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6851
6852         eval "$as_ac_Header=no"
6853 fi
6854
6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856 fi
6857 ac_res=`eval echo '${'$as_ac_Header'}'`
6858                { echo "$as_me:$LINENO: result: $ac_res" >&5
6859 echo "${ECHO_T}$ac_res" >&6; }
6860 if 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
6864
6865 fi
6866
6867 done
6868
6869
6870
6871 # Set options
6872
6873
6874
6875         enable_dlopen=no
6876
6877
6878   enable_win32_dll=no
6879
6880
6881             # Check whether --enable-shared was given.
6882 if 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
6895         fi
6896       done
6897       IFS="$lt_save_ifs"
6898       ;;
6899     esac
6900 else
6901   enable_shared=yes
6902 fi
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912   # Check whether --enable-static was given.
6913 if 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"
6929       ;;
6930     esac
6931 else
6932   enable_static=yes
6933 fi
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944 # Check whether --with-pic was given.
6945 if test "${with_pic+set}" = set; then
6946   withval=$with_pic; pic_mode="$withval"
6947 else
6948   pic_mode=default
6949 fi
6950
6951
6952 test -z "$pic_mode" && pic_mode=default
6953
6954
6955
6956
6957
6958
6959
6960   # Check whether --enable-fast-install was given.
6961 if 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"
6977       ;;
6978     esac
6979 else
6980   enable_fast_install=yes
6981 fi
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993 # This can be used to rebuild libtool when needed
6994 LIBTOOL_DEPS="$ltmain"
6995
6996 # Always use our own libtool.
6997 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023 test -z "$LN_S" && LN_S="ln -s"
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038 if test -n "${ZSH_VERSION+set}" ; then
7039    setopt NO_GLOB_SUBST
7040 fi
7041
7042 { echo "$as_me:$LINENO: checking for objdir" >&5
7043 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7044 if test "${lt_cv_objdir+set}" = set; then
7045   echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047   rm -f .libs 2>/dev/null
7048 mkdir .libs 2>/dev/null
7049 if test -d .libs; then
7050   lt_cv_objdir=.libs
7051 else
7052   # MS-DOS does not allow filenames that begin with a dot.
7053   lt_cv_objdir=_libs
7054 fi
7055 rmdir .libs 2>/dev/null
7056 fi
7057 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7058 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7059 objdir=$lt_cv_objdir
7060
7061
7062
7063
7064
7065 cat >>confdefs.h <<_ACEOF
7066 #define LT_OBJDIR "$lt_cv_objdir/"
7067 _ACEOF
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085 case $host_os in
7086 aix3*)
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
7093   fi
7094   ;;
7095 esac
7096
7097 # Sed substitution that helps us do robust quoting.  It backslashifies
7098 # metacharacters that are still active within double-quoted strings.
7099 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7100
7101 # Same as above, but do not quote variable references.
7102 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7103
7104 # Sed substitution to delay expansion of an escaped shell variable in a
7105 # double_quote_subst'ed string.
7106 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7107
7108 # Sed substitution to delay expansion of an escaped single quote.
7109 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7110
7111 # Sed substitution to avoid accidental globbing in evaled expressions
7112 no_glob_subst='s/\*/\\\*/g'
7113
7114 # Global variables:
7115 ofile=libtool
7116 can_build_shared=yes
7117
7118 # All known linkers require a `.a' archive for static linking (except MSVC,
7119 # which needs '.lib').
7120 libext=a
7121
7122 with_gnu_ld="$lt_cv_prog_gnu_ld"
7123
7124 old_CC="$CC"
7125 old_CFLAGS="$CFLAGS"
7126
7127 # Set sane defaults for various variables
7128 test -z "$CC" && CC=cc
7129 test -z "$LTCC" && LTCC=$CC
7130 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7131 test -z "$LD" && LD=ld
7132 test -z "$ac_objext" && ac_objext=o
7133
7134 for 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
7141 done
7142 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7143
7144
7145 # Only perform the check for file, if the check method requires it
7146 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7147 case $deplibs_check_method in
7148 file_magic*)
7149   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7150     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7151 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7152 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7153   echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155   case $MAGIC_CMD in
7156 [\\/*] |  ?:[\\/]*)
7157   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7158   ;;
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
7178
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"
7197   ;;
7198 esac
7199 fi
7200
7201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7202 if test -n "$MAGIC_CMD"; then
7203   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7204 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7205 else
7206   { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7208 fi
7209
7210
7211
7212
7213
7214 if 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
7217 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7218 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7219   echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221   case $MAGIC_CMD in
7222 [\\/*] |  ?:[\\/]*)
7223   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7224   ;;
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
7244
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
7253
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"
7263   ;;
7264 esac
7265 fi
7266
7267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7268 if test -n "$MAGIC_CMD"; then
7269   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7270 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7271 else
7272   { echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6; }
7274 fi
7275
7276
7277   else
7278     MAGIC_CMD=:
7279   fi
7280 fi
7281
7282   fi
7283   ;;
7284 esac
7285
7286 # Use C for the default configuration in the libtool script
7287
7288 lt_save_CC="$CC"
7289 ac_ext=c
7290 ac_cpp='$CPP $CPPFLAGS'
7291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7294
7295
7296 # Source file extension for C test sources.
7297 ac_ext=c
7298
7299 # Object file extension for compiled C test sources.
7300 objext=o
7301 objext=$objext
7302
7303 # Code to be used in simple compile tests
7304 lt_simple_compile_test_code="int some_variable = 0;"
7305
7306 # Code to be used in simple link tests
7307 lt_simple_link_test_code='int main(){return(0);}'
7308
7309
7310
7311
7312
7313
7314
7315 # If no C compiler was specified, use CC.
7316 LTCC=${LTCC-"$CC"}
7317
7318 # If no C compiler flags were specified, use CFLAGS.
7319 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7320
7321 # Allow CC to be a program name with arguments.
7322 compiler=$CC
7323
7324 # Save the default compiler, since it gets overwritten when the other
7325 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7326 compiler_DEFAULT=$CC
7327
7328 # save warnings/boilerplate of simple test code
7329 ac_outfile=conftest.$ac_objext
7330 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7331 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7332 _lt_compiler_boilerplate=`cat conftest.err`
7333 $RM conftest*
7334
7335 ac_outfile=conftest.$ac_objext
7336 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7337 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7338 _lt_linker_boilerplate=`cat conftest.err`
7339 $RM -r conftest*
7340
7341
7342 if test -n "$compiler"; then
7343
7344 lt_prog_compiler_no_builtin_flag=
7345
7346 if 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
7350 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7351 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7352   echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
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*
7382
7383 fi
7384 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7385 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7386
7387 if 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"
7389 else
7390     :
7391 fi
7392
7393 fi
7394
7395
7396
7397
7398
7399
7400   lt_prog_compiler_wl=
7401 lt_prog_compiler_pic=
7402 lt_prog_compiler_static=
7403
7404 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7405 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7406
7407   if test "$GCC" = yes; then
7408     lt_prog_compiler_wl='-Wl,'
7409     lt_prog_compiler_static='-static'
7410
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       ;;
7419
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       ;;
7434
7435     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7436       # PIC is the default for these OSes.
7437       ;;
7438
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       ;;
7446
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       ;;
7452
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       ;;
7465
7466     interix[3-9]*)
7467       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7468       # Instead, we relocate shared libraries at runtime.
7469       ;;
7470
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       ;;
7477
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       ;;
7483
7484     sysv4*MP*)
7485       if test -d /usr/nec; then
7486         lt_prog_compiler_pic=-Kconform_pic
7487       fi
7488       ;;
7489
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       ;;
7506
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       ;;
7512
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       ;;
7528
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       ;;
7534
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       ;;
7578
7579     newsos6)
7580       lt_prog_compiler_pic='-KPIC'
7581       lt_prog_compiler_static='-Bstatic'
7582       ;;
7583
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       ;;
7589
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       ;;
7595
7596     rdos*)
7597       lt_prog_compiler_static='-non_shared'
7598       ;;
7599
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       ;;
7610
7611     sunos4*)
7612       lt_prog_compiler_wl='-Qoption ld '
7613       lt_prog_compiler_pic='-PIC'
7614       lt_prog_compiler_static='-Bstatic'
7615       ;;
7616
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       ;;
7622
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       ;;
7629
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       ;;
7635
7636     unicos*)
7637       lt_prog_compiler_wl='-Wl,'
7638       lt_prog_compiler_can_build_shared=no
7639       ;;
7640
7641     uts4*)
7642       lt_prog_compiler_pic='-pic'
7643       lt_prog_compiler_static='-Bstatic'
7644       ;;
7645
7646     *)
7647       lt_prog_compiler_can_build_shared=no
7648       ;;
7649     esac
7650   fi
7651
7652 case $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     ;;
7660 esac
7661 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7662 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7663
7664
7665
7666
7667
7668
7669 #
7670 # Check to make sure the PIC flag actually works.
7671 #
7672 if test -n "$lt_prog_compiler_pic"; then
7673   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7674 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7675 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7676   echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
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*
7706
7707 fi
7708 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7709 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7710
7711 if 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
7716 else
7717     lt_prog_compiler_pic=
7718      lt_prog_compiler_can_build_shared=no
7719 fi
7720
7721 fi
7722
7723
7724
7725
7726
7727
7728 #
7729 # Check to make sure the static flag actually works.
7730 #
7731 wl=$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
7733 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7734 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7735   echo $ECHO_N "(cached) $ECHO_C" >&6
7736 else
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"
7758
7759 fi
7760 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7761 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7762
7763 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7764     :
7765 else
7766     lt_prog_compiler_static=
7767 fi
7768
7769
7770
7771
7772
7773
7774
7775   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7776 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7777 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7778   echo $ECHO_N "(cached) $ECHO_C" >&6
7779 else
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
7786
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*
7820
7821 fi
7822 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7823 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7824
7825
7826
7827
7828
7829
7830   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7831 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7832 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7833   echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
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
7841
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*
7875
7876 fi
7877 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7878 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7879
7880
7881
7882
7883 hard_links="nottested"
7884 if 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
7887 echo $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
7895 echo "${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
7898 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7899     need_locks=warn
7900   fi
7901 else
7902   need_locks=no
7903 fi
7904
7905
7906
7907
7908
7909
7910   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7911 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7912
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=
7953
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
7971
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}'
7976
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
7997
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
8005
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.
8011
8012 _LT_EOF
8013       fi
8014       ;;
8015
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       ;;
8030
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       ;;
8041
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'
8050
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       ;;
8066
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       ;;
8081
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'
8121
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
8128
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       ;;
8148
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       ;;
8158
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
8163
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.
8170
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       ;;
8179
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
8185
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.
8192
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       ;;
8210
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       ;;
8217
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
8227
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       ;;
8250
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
8267
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
8280
8281         exp_sym_flag='-bexport'
8282         no_entry_flag='-bnoentry'
8283       fi
8284
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.
8290
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,'
8297
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
8339
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
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h.  */
8355
8356 int
8357 main ()
8358 {
8359
8360   ;
8361   return 0;
8362 }
8363 _ACEOF
8364 rm -f conftest.$ac_objext conftest$ac_exeext
8365 if { (ac_try="$ac_link"
8366 case "(($ac_try" in
8367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368   *) ac_try_echo=$ac_try;;
8369 esac
8370 eval "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
8382
8383 lt_aix_libpath_sed='
8384     /Import File Strings/,/^$/ {
8385         /^0/ {
8386             s/^0  *\(.*\)$/\1/
8387             p
8388         }
8389     }'
8390 aix_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.
8392 if test -z "$aix_libpath"; then
8393   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8394 fi
8395 else
8396   echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8398
8399
8400 fi
8401
8402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8403       conftest$ac_exeext conftest.$ac_ext
8404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8405
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
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h.  */
8422
8423 int
8424 main ()
8425 {
8426
8427   ;
8428   return 0;
8429 }
8430 _ACEOF
8431 rm -f conftest.$ac_objext conftest$ac_exeext
8432 if { (ac_try="$ac_link"
8433 case "(($ac_try" in
8434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435   *) ac_try_echo=$ac_try;;
8436 esac
8437 eval "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
8449
8450 lt_aix_libpath_sed='
8451     /Import File Strings/,/^$/ {
8452         /^0/ {
8453             s/^0  *\(.*\)$/\1/
8454             p
8455         }
8456     }'
8457 aix_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.
8459 if test -z "$aix_libpath"; then
8460   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8461 fi
8462 else
8463   echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8465
8466
8467 fi
8468
8469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8470       conftest$ac_exeext conftest.$ac_ext
8471 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8472
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       ;;
8486
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       ;;
8501
8502     bsdi[45]*)
8503       export_dynamic_flag_spec=-rdynamic
8504       ;;
8505
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       ;;
8526
8527     darwin* | rhapsody*)
8528
8529
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}"
8543
8544   else
8545   ld_shlibs=no
8546   fi
8547
8548       ;;
8549
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       ;;
8555
8556     freebsd1*)
8557       ld_shlibs=no
8558       ;;
8559
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       ;;
8570
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       ;;
8578
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       ;;
8586
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
8596
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       ;;
8602
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       ;;
8621
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=:
8651
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'
8661
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       ;;
8669
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
8679 int foo(void) {}
8680 _ACEOF
8681 rm -f conftest.$ac_objext conftest$ac_exeext
8682 if { (ac_try="$ac_link"
8683 case "(($ac_try" in
8684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685   *) ac_try_echo=$ac_try;;
8686 esac
8687 eval "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'
8700
8701 else
8702   echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8704
8705
8706 fi
8707
8708 rm -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       ;;
8721
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       ;;
8732
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       ;;
8740
8741     *nto* | *qnx*)
8742       ;;
8743
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       ;;
8770
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       ;;
8778
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       ;;
8791
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'
8802
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       ;;
8809
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       ;;
8851
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       ;;
8865
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       ;;
8887
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       ;;
8893
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       ;;
8903
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'
8909
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       ;;
8918
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'
8935
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       ;;
8944
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       ;;
8950
8951     *)
8952       ld_shlibs=no
8953       ;;
8954     esac
8955
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
8962     fi
8963   fi
8964
8965 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8966 echo "${ECHO_T}$ld_shlibs" >&6; }
8967 test "$ld_shlibs" = no && can_build_shared=no
8968
8969 with_gnu_ld=$with_gnu_ld
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985 #
8986 # Do we need to explicitly link libc?
8987 #
8988 case "x$archive_cmds_need_lc" in
8989 x|xyes)
8990   # Assume -lc should be added
8991   archive_cmds_need_lc=yes
8992
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.
8997       ;;
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
9003 echo $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
9006
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
9041 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9042       ;;
9043     esac
9044   fi
9045   ;;
9046 esac
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
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
9205 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9206
9207 if 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 '
9235 BEGIN {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`
9255 else
9256   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9257 fi
9258 library_names_spec=
9259 libname_spec='lib$name'
9260 soname_spec=
9261 shrext_cmds=".so"
9262 postinstall_cmds=
9263 postuninstall_cmds=
9264 finish_cmds=
9265 finish_eval=
9266 shlibpath_var=
9267 shlibpath_overrides_runpath=unknown
9268 version_type=none
9269 dynamic_linker="$host_os ld.so"
9270 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9271 need_lib_prefix=unknown
9272 hardcode_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
9276 need_version=unknown
9277
9278 case $host_os in
9279 aix3*)
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
9288 aix[4-9]*)
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 '
9307            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
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
9332 amigaos*)
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
9345   ;;
9346
9347 beos*)
9348   library_names_spec='${libname}${shared_ext}'
9349   dynamic_linker="$host_os ld.so"
9350   shlibpath_var=LIBRARY_PATH
9351   ;;
9352
9353 bsdi[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
9367 cygwin* | 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}`~
9378       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9379       dldir=$destdir/`dirname \$dlpath`~
9380       test -d \$dldir || mkdir -p \$dldir~
9381       $install_prog $dir/$dlname \$dldir/$dlname~
9382       chmod a+x \$dldir/$dlname~
9383       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9384         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9385       fi'
9386     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9387       dlpath=$dir/\$dldll~
9388        $RM \$dlpath'
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}'
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
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.
9408         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9409       else
9410         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
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
9429 darwin* | rhapsody*)
9430   dynamic_linker="$host_os dyld"
9431   version_type=darwin
9432   need_lib_prefix=no
9433   need_version=no
9434   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
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`'
9439
9440   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9441   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9442   ;;
9443
9444 dgux*)
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
9453 freebsd1*)
9454   dynamic_linker=no
9455   ;;
9456
9457 freebsd* | 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     ;;
9494   *) # from 4.6 on, and DragonFly
9495     shlibpath_overrides_runpath=yes
9496     hardcode_into_libs=yes
9497     ;;
9498   esac
9499   ;;
9500
9501 gnu*)
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
9511 hpux9* | 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     ;;
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   *)
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
9557 interix[3-9]*)
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
9569 irix5* | 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.
9607 linux*oldld* | linux*aout* | linux*coff*)
9608   dynamic_linker=no
9609   ;;
9610
9611 # This must be Linux ELF.
9612 linux* | 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
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
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h.  */
9632
9633 int
9634 main ()
9635 {
9636
9637   ;
9638   return 0;
9639 }
9640 _ACEOF
9641 rm -f conftest.$ac_objext conftest$ac_exeext
9642 if { (ac_try="$ac_link"
9643 case "(($ac_try" in
9644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645   *) ac_try_echo=$ac_try;;
9646 esac
9647 eval "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
9661 fi
9662
9663 else
9664   echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.$ac_ext >&5
9666
9667
9668 fi
9669
9670 rm -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
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
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' ' '`
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
9695 netbsdelf*-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
9707 netbsd*)
9708   version_type=sunos
9709   need_lib_prefix=no
9710   need_version=no
9711   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
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
9725 newsos6)
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
9732 *nto* | *qnx*)
9733   version_type=qnx
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
9739   shlibpath_overrides_runpath=no
9740   hardcode_into_libs=yes
9741   dynamic_linker='ldqnx.so'
9742   ;;
9743
9744 openbsd*)
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
9750     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9751     *)                          need_version=no  ;;
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
9756   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
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
9770 os2*)
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
9779 osf3* | 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
9790 rdos*)
9791   dynamic_linker=no
9792   ;;
9793
9794 solaris*)
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
9807 sunos4*)
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
9819 sysv4 | 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
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
9842 sysv4*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
9851 sysv5* | 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
9858   shlibpath_overrides_runpath=yes
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'
9862   else
9863     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
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
9873 tpf*)
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
9884 uts4*)
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   ;;
9894 esac
9895 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9896 echo "${ECHO_T}$dynamic_linker" >&6; }
9897 test "$dynamic_linker" = no && can_build_shared=no
9898
9899 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9900 if test "$GCC" = yes; then
9901   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9902 fi
9903
9904 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9905   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9906 fi
9907 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9908   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9909 fi
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9998 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9999 hardcode_action=
10000 if test -n "$hardcode_libdir_flag_spec" ||
10001    test -n "$runpath_var" ||
10002    test "X$hardcode_automatic" = "Xyes" ; then
10003
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
10017 else
10018   # We cannot hardcode anything, or else we can only hardcode existing
10019   # directories.
10020   hardcode_action=unsupported
10021 fi
10022 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10023 echo "${ECHO_T}$hardcode_action" >&6; }
10024
10025 if test "$hardcode_action" = relink ||
10026    test "$inherit_rpath" = yes; then
10027   # Fast installation is not supported
10028   enable_fast_install=no
10029 elif test "$shlibpath_overrides_runpath" = yes ||
10030      test "$enable_shared" = no; then
10031   # Fast installation is not necessary
10032   enable_fast_install=needless
10033 fi
10034
10035
10036
10037
10038
10039
10040   if test "x$enable_dlopen" != xyes; then
10041   enable_dlopen=unknown
10042   enable_dlopen_self=unknown
10043   enable_dlopen_self_static=unknown
10044 else
10045   lt_cv_dlopen=no
10046   lt_cv_dlopen_libs=
10047
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     ;;
10054
10055   mingw* | pw32*)
10056     lt_cv_dlopen="LoadLibrary"
10057     lt_cv_dlopen_libs=
10058     ;;
10059
10060   cygwin*)
10061     lt_cv_dlopen="dlopen"
10062     lt_cv_dlopen_libs=
10063     ;;
10064
10065   darwin*)
10066   # if libdl is installed we need to link against it
10067     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10068 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10069 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10070   echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072   ac_check_lib_save_LIBS=$LIBS
10073 LIBS="-ldl  $LIBS"
10074 cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h.  */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h.  */
10080
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
10085 extern "C"
10086 #endif
10087 char dlopen ();
10088 int
10089 main ()
10090 {
10091 return dlopen ();
10092   ;
10093   return 0;
10094 }
10095 _ACEOF
10096 rm -f conftest.$ac_objext conftest$ac_exeext
10097 if { (ac_try="$ac_link"
10098 case "(($ac_try" in
10099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100   *) ac_try_echo=$ac_try;;
10101 esac
10102 eval "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
10115 else
10116   echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10118
10119         ac_cv_lib_dl_dlopen=no
10120 fi
10121
10122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10123       conftest$ac_exeext conftest.$ac_ext
10124 LIBS=$ac_check_lib_save_LIBS
10125 fi
10126 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10127 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10128 if test $ac_cv_lib_dl_dlopen = yes; then
10129   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10130 else
10131
10132     lt_cv_dlopen="dyld"
10133     lt_cv_dlopen_libs=
10134     lt_cv_dlopen_self=yes
10135
10136 fi
10137
10138     ;;
10139
10140   *)
10141     { echo "$as_me:$LINENO: checking for shl_load" >&5
10142 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10143 if test "${ac_cv_func_shl_load+set}" = set; then
10144   echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146   cat >conftest.$ac_ext <<_ACEOF
10147 /* confdefs.h.  */
10148 _ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>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
10155
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.  */
10160
10161 #ifdef __STDC__
10162 # include <limits.h>
10163 #else
10164 # include <assert.h>
10165 #endif
10166
10167 #undef shl_load
10168
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
10173 extern "C"
10174 #endif
10175 char 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
10180 choke me
10181 #endif
10182
10183 int
10184 main ()
10185 {
10186 return shl_load ();
10187   ;
10188   return 0;
10189 }
10190 _ACEOF
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (ac_try="$ac_link"
10193 case "(($ac_try" in
10194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195   *) ac_try_echo=$ac_try;;
10196 esac
10197 eval "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
10210 else
10211   echo "$as_me: failed program was:" >&5
10212 sed 's/^/| /' conftest.$ac_ext >&5
10213
10214         ac_cv_func_shl_load=no
10215 fi
10216
10217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10218       conftest$ac_exeext conftest.$ac_ext
10219 fi
10220 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10221 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10222 if test $ac_cv_func_shl_load = yes; then
10223   lt_cv_dlopen="shl_load"
10224 else
10225   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10226 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10227 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10228   echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230   ac_check_lib_save_LIBS=$LIBS
10231 LIBS="-ldld  $LIBS"
10232 cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h.  */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h.  */
10238
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
10243 extern "C"
10244 #endif
10245 char shl_load ();
10246 int
10247 main ()
10248 {
10249 return shl_load ();
10250   ;
10251   return 0;
10252 }
10253 _ACEOF
10254 rm -f conftest.$ac_objext conftest$ac_exeext
10255 if { (ac_try="$ac_link"
10256 case "(($ac_try" in
10257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258   *) ac_try_echo=$ac_try;;
10259 esac
10260 eval "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
10273 else
10274   echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10276
10277         ac_cv_lib_dld_shl_load=no
10278 fi
10279
10280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10281       conftest$ac_exeext conftest.$ac_ext
10282 LIBS=$ac_check_lib_save_LIBS
10283 fi
10284 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10285 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10286 if test $ac_cv_lib_dld_shl_load = yes; then
10287   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10288 else
10289   { echo "$as_me:$LINENO: checking for dlopen" >&5
10290 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10291 if test "${ac_cv_func_dlopen+set}" = set; then
10292   echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294   cat >conftest.$ac_ext <<_ACEOF
10295 /* confdefs.h.  */
10296 _ACEOF
10297 cat confdefs.h >>conftest.$ac_ext
10298 cat >>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
10303
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.  */
10308
10309 #ifdef __STDC__
10310 # include <limits.h>
10311 #else
10312 # include <assert.h>
10313 #endif
10314
10315 #undef dlopen
10316
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
10321 extern "C"
10322 #endif
10323 char 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
10328 choke me
10329 #endif
10330
10331 int
10332 main ()
10333 {
10334 return dlopen ();
10335   ;
10336   return 0;
10337 }
10338 _ACEOF
10339 rm -f conftest.$ac_objext conftest$ac_exeext
10340 if { (ac_try="$ac_link"
10341 case "(($ac_try" in
10342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343   *) ac_try_echo=$ac_try;;
10344 esac
10345 eval "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
10358 else
10359   echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10361
10362         ac_cv_func_dlopen=no
10363 fi
10364
10365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10366       conftest$ac_exeext conftest.$ac_ext
10367 fi
10368 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10369 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10370 if test $ac_cv_func_dlopen = yes; then
10371   lt_cv_dlopen="dlopen"
10372 else
10373   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10374 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10375 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10376   echo $ECHO_N "(cached) $ECHO_C" >&6
10377 else
10378   ac_check_lib_save_LIBS=$LIBS
10379 LIBS="-ldl  $LIBS"
10380 cat >conftest.$ac_ext <<_ACEOF
10381 /* confdefs.h.  */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h.  */
10386
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
10391 extern "C"
10392 #endif
10393 char dlopen ();
10394 int
10395 main ()
10396 {
10397 return dlopen ();
10398   ;
10399   return 0;
10400 }
10401 _ACEOF
10402 rm -f conftest.$ac_objext conftest$ac_exeext
10403 if { (ac_try="$ac_link"
10404 case "(($ac_try" in
10405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406   *) ac_try_echo=$ac_try;;
10407 esac
10408 eval "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
10421 else
10422   echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10424
10425         ac_cv_lib_dl_dlopen=no
10426 fi
10427
10428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10429       conftest$ac_exeext conftest.$ac_ext
10430 LIBS=$ac_check_lib_save_LIBS
10431 fi
10432 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10433 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10434 if test $ac_cv_lib_dl_dlopen = yes; then
10435   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10436 else
10437   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10438 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10439 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10440   echo $ECHO_N "(cached) $ECHO_C" >&6
10441 else
10442   ac_check_lib_save_LIBS=$LIBS
10443 LIBS="-lsvld  $LIBS"
10444 cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h.  */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h.  */
10450
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
10455 extern "C"
10456 #endif
10457 char dlopen ();
10458 int
10459 main ()
10460 {
10461 return dlopen ();
10462   ;
10463   return 0;
10464 }
10465 _ACEOF
10466 rm -f conftest.$ac_objext conftest$ac_exeext
10467 if { (ac_try="$ac_link"
10468 case "(($ac_try" in
10469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470   *) ac_try_echo=$ac_try;;
10471 esac
10472 eval "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
10485 else
10486   echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10488
10489         ac_cv_lib_svld_dlopen=no
10490 fi
10491
10492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10493       conftest$ac_exeext conftest.$ac_ext
10494 LIBS=$ac_check_lib_save_LIBS
10495 fi
10496 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10497 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10498 if test $ac_cv_lib_svld_dlopen = yes; then
10499   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10500 else
10501   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10502 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10503 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10504   echo $ECHO_N "(cached) $ECHO_C" >&6
10505 else
10506   ac_check_lib_save_LIBS=$LIBS
10507 LIBS="-ldld  $LIBS"
10508 cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h.  */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h.  */
10514
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
10519 extern "C"
10520 #endif
10521 char dld_link ();
10522 int
10523 main ()
10524 {
10525 return dld_link ();
10526   ;
10527   return 0;
10528 }
10529 _ACEOF
10530 rm -f conftest.$ac_objext conftest$ac_exeext
10531 if { (ac_try="$ac_link"
10532 case "(($ac_try" in
10533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534   *) ac_try_echo=$ac_try;;
10535 esac
10536 eval "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
10549 else
10550   echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10552
10553         ac_cv_lib_dld_dld_link=no
10554 fi
10555
10556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10557       conftest$ac_exeext conftest.$ac_ext
10558 LIBS=$ac_check_lib_save_LIBS
10559 fi
10560 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10561 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10562 if test $ac_cv_lib_dld_dld_link = yes; then
10563   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10564 fi
10565
10566
10567 fi
10568
10569
10570 fi
10571
10572
10573 fi
10574
10575
10576 fi
10577
10578
10579 fi
10580
10581     ;;
10582   esac
10583
10584   if test "x$lt_cv_dlopen" != xno; then
10585     enable_dlopen=yes
10586   else
10587     enable_dlopen=no
10588   fi
10589
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\"
10597
10598     save_LIBS="$LIBS"
10599     LIBS="$lt_cv_dlopen_libs $LIBS"
10600
10601     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10602 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10603 if test "${lt_cv_dlopen_self+set}" = set; then
10604   echo $ECHO_N "(cached) $ECHO_C" >&6
10605 else
10606           if test "$cross_compiling" = yes; then :
10607   lt_cv_dlopen_self=cross
10608 else
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"
10614
10615 #if HAVE_DLFCN_H
10616 #include <dlfcn.h>
10617 #endif
10618
10619 #include <stdio.h>
10620
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
10630
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
10652
10653 #ifdef __cplusplus
10654 extern "C" void exit (int);
10655 #endif
10656
10657 void fnord() { int i=42;}
10658 int main ()
10659 {
10660   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10661   int status = $lt_dlunknown;
10662
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 ());
10671
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
10691 fi
10692 rm -fr conftest*
10693
10694
10695 fi
10696 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10697 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10698
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
10702 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10703 if test "${lt_cv_dlopen_self_static+set}" = set; then
10704   echo $ECHO_N "(cached) $ECHO_C" >&6
10705 else
10706           if test "$cross_compiling" = yes; then :
10707   lt_cv_dlopen_self_static=cross
10708 else
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"
10714
10715 #if HAVE_DLFCN_H
10716 #include <dlfcn.h>
10717 #endif
10718
10719 #include <stdio.h>
10720
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
10730
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
10754 extern "C" void exit (int);
10755 #endif
10756
10757 void fnord() { int i=42;}
10758 int 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 ;;
10786     esac
10787   else :
10788     # compilation failed
10789     lt_cv_dlopen_self_static=no
10790   fi
10791 fi
10792 rm -fr conftest*
10793
10794
10795 fi
10796 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10797 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10798     fi
10799
10800     CPPFLAGS="$save_CPPFLAGS"
10801     LDFLAGS="$save_LDFLAGS"
10802     LIBS="$save_LIBS"
10803     ;;
10804   esac
10805
10806   case $lt_cv_dlopen_self in
10807   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10808   *) enable_dlopen_self=unknown ;;
10809   esac
10810
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
10815 fi
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833 striplib=
10834 old_striplib=
10835 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10836 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10837 if 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
10841 echo "${ECHO_T}yes" >&6; }
10842 else
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
10850 echo "${ECHO_T}yes" >&6; }
10851     else
10852       { echo "$as_me:$LINENO: result: no" >&5
10853 echo "${ECHO_T}no" >&6; }
10854     fi
10855     ;;
10856   *)
10857     { echo "$as_me:$LINENO: result: no" >&5
10858 echo "${ECHO_T}no" >&6; }
10859     ;;
10860   esac
10861 fi
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874   # Report which library types will actually be built
10875   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10876 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10877   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10878 echo "${ECHO_T}$can_build_shared" >&6; }
10879
10880   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10881 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10882   test "$can_build_shared" = "no" && enable_shared=no
10883
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     ;;
10894
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
10902 echo "${ECHO_T}$enable_shared" >&6; }
10903
10904   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10905 echo $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
10909 echo "${ECHO_T}$enable_static" >&6; }
10910
10911
10912
10913
10914 fi
10915 ac_ext=c
10916 ac_cpp='$CPP $CPPFLAGS'
10917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10920
10921 CC="$lt_save_CC"
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935         ac_config_commands="$ac_config_commands libtool"
10936
10937
10938
10939
10940 # Only expand once:
10941
10942
10943
10944 # Extract the first word of "doxygen", so it can be a program name with args.
10945 set dummy doxygen; ac_word=$2
10946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10948 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
10949   echo $ECHO_N "(cached) $ECHO_C" >&6
10950 else
10951   if test -n "$DOXYGEN"; then
10952   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
10953 else
10954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955 for as_dir in $PATH
10956 do
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
10965 done
10966 done
10967 IFS=$as_save_IFS
10968
10969   test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="false"
10970 fi
10971 fi
10972 DOXYGEN=$ac_cv_prog_DOXYGEN
10973 if test -n "$DOXYGEN"; then
10974   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
10975 echo "${ECHO_T}$DOXYGEN" >&6; }
10976 else
10977   { echo "$as_me:$LINENO: result: no" >&5
10978 echo "${ECHO_T}no" >&6; }
10979 fi
10980
10981
10982  if test "$DOXYGEN" = true; then
10983   DOXYGEN_TRUE=
10984   DOXYGEN_FALSE='#'
10985 else
10986   DOXYGEN_TRUE='#'
10987   DOXYGEN_FALSE=
10988 fi
10989
10990
10991 # Checks for header files.
10992 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10993 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10994 if test "${ac_cv_header_stdc+set}" = set; then
10995   echo $ECHO_N "(cached) $ECHO_C" >&6
10996 else
10997   cat >conftest.$ac_ext <<_ACEOF
10998 /* confdefs.h.  */
10999 _ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h.  */
11003 #include <stdlib.h>
11004 #include <stdarg.h>
11005 #include <string.h>
11006 #include <float.h>
11007
11008 int
11009 main ()
11010 {
11011
11012   ;
11013   return 0;
11014 }
11015 _ACEOF
11016 rm -f conftest.$ac_objext
11017 if { (ac_try="$ac_compile"
11018 case "(($ac_try" in
11019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020   *) ac_try_echo=$ac_try;;
11021 esac
11022 eval "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
11034 else
11035   echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11037
11038         ac_cv_header_stdc=no
11039 fi
11040
11041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11042
11043 if 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
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h.  */
11051 #include <string.h>
11052
11053 _ACEOF
11054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11055   $EGREP "memchr" >/dev/null 2>&1; then
11056   :
11057 else
11058   ac_cv_header_stdc=no
11059 fi
11060 rm -f conftest*
11061
11062 fi
11063
11064 if 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
11069 cat confdefs.h >>conftest.$ac_ext
11070 cat >>conftest.$ac_ext <<_ACEOF
11071 /* end confdefs.h.  */
11072 #include <stdlib.h>
11073
11074 _ACEOF
11075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11076   $EGREP "free" >/dev/null 2>&1; then
11077   :
11078 else
11079   ac_cv_header_stdc=no
11080 fi
11081 rm -f conftest*
11082
11083 fi
11084
11085 if 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   :
11089 else
11090   cat >conftest.$ac_ext <<_ACEOF
11091 /* confdefs.h.  */
11092 _ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>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
11108
11109 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11110 int
11111 main ()
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
11121 rm -f conftest$ac_exeext
11122 if { (ac_try="$ac_link"
11123 case "(($ac_try" in
11124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125   *) ac_try_echo=$ac_try;;
11126 esac
11127 eval "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;;
11135 esac
11136 eval "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   :
11142 else
11143   echo "$as_me: program exited with status $ac_status" >&5
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11146
11147 ( exit $ac_status )
11148 ac_cv_header_stdc=no
11149 fi
11150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11151 fi
11152
11153
11154 fi
11155 fi
11156 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11157 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
11158 if test $ac_cv_header_stdc = yes; then
11159
11160 cat >>confdefs.h <<\_ACEOF
11161 #define STDC_HEADERS 1
11162 _ACEOF
11163
11164 fi
11165
11166
11167 for ac_header in stdlib.h
11168 do
11169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11171   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11174   echo $ECHO_N "(cached) $ECHO_C" >&6
11175 fi
11176 ac_res=`eval echo '${'$as_ac_Header'}'`
11177                { echo "$as_me:$LINENO: result: $ac_res" >&5
11178 echo "${ECHO_T}$ac_res" >&6; }
11179 else
11180   # Is the header compilable?
11181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11183 cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h.  */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h.  */
11189 $ac_includes_default
11190 #include <$ac_header>
11191 _ACEOF
11192 rm -f conftest.$ac_objext
11193 if { (ac_try="$ac_compile"
11194 case "(($ac_try" in
11195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196   *) ac_try_echo=$ac_try;;
11197 esac
11198 eval "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
11210 else
11211   echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11213
11214         ac_header_compiler=no
11215 fi
11216
11217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11219 echo "${ECHO_T}$ac_header_compiler" >&6; }
11220
11221 # Is the header present?
11222 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11224 cat >conftest.$ac_ext <<_ACEOF
11225 /* confdefs.h.  */
11226 _ACEOF
11227 cat confdefs.h >>conftest.$ac_ext
11228 cat >>conftest.$ac_ext <<_ACEOF
11229 /* end confdefs.h.  */
11230 #include <$ac_header>
11231 _ACEOF
11232 if { (ac_try="$ac_cpp conftest.$ac_ext"
11233 case "(($ac_try" in
11234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235   *) ac_try_echo=$ac_try;;
11236 esac
11237 eval "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
11249 else
11250   echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11252
11253   ac_header_preproc=no
11254 fi
11255
11256 rm -f conftest.err conftest.$ac_ext
11257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11258 echo "${ECHO_T}$ac_header_preproc" >&6; }
11259
11260 # So?  What about this header?
11261 case $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
11264 echo "$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
11266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11267     ac_header_preproc=yes
11268     ;;
11269   no:yes:* )
11270     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11271 echo "$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
11273 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11274     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11275 echo "$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
11277 echo "$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
11279 echo "$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
11281 echo "$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     ;;
11289 esac
11290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11293   echo $ECHO_N "(cached) $ECHO_C" >&6
11294 else
11295   eval "$as_ac_Header=\$ac_header_preproc"
11296 fi
11297 ac_res=`eval echo '${'$as_ac_Header'}'`
11298                { echo "$as_me:$LINENO: result: $ac_res" >&5
11299 echo "${ECHO_T}$ac_res" >&6; }
11300
11301 fi
11302 if 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
11306
11307 fi
11308
11309 done
11310
11311
11312 # Checks for typedefs, structures, and compiler characteristics.
11313 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11314 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11315 if test "${ac_cv_c_const+set}" = set; then
11316   echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318   cat >conftest.$ac_ext <<_ACEOF
11319 /* confdefs.h.  */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h.  */
11324
11325 int
11326 main ()
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;
11352
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
11377
11378   ;
11379   return 0;
11380 }
11381 _ACEOF
11382 rm -f conftest.$ac_objext
11383 if { (ac_try="$ac_compile"
11384 case "(($ac_try" in
11385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386   *) ac_try_echo=$ac_try;;
11387 esac
11388 eval "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
11400 else
11401   echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11403
11404         ac_cv_c_const=no
11405 fi
11406
11407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11408 fi
11409 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11410 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11411 if test $ac_cv_c_const = no; then
11412
11413 cat >>confdefs.h <<\_ACEOF
11414 #define const
11415 _ACEOF
11416
11417 fi
11418
11419 { echo "$as_me:$LINENO: checking for size_t" >&5
11420 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11421 if test "${ac_cv_type_size_t+set}" = set; then
11422   echo $ECHO_N "(cached) $ECHO_C" >&6
11423 else
11424   cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h.  */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h.  */
11430 $ac_includes_default
11431 typedef size_t ac__type_new_;
11432 int
11433 main ()
11434 {
11435 if ((ac__type_new_ *) 0)
11436   return 0;
11437 if (sizeof (ac__type_new_))
11438   return 0;
11439   ;
11440   return 0;
11441 }
11442 _ACEOF
11443 rm -f conftest.$ac_objext
11444 if { (ac_try="$ac_compile"
11445 case "(($ac_try" in
11446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447   *) ac_try_echo=$ac_try;;
11448 esac
11449 eval "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
11461 else
11462   echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11464
11465         ac_cv_type_size_t=no
11466 fi
11467
11468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11469 fi
11470 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11471 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11472 if test $ac_cv_type_size_t = yes; then
11473   :
11474 else
11475
11476 cat >>confdefs.h <<_ACEOF
11477 #define size_t unsigned int
11478 _ACEOF
11479
11480 fi
11481
11482
11483 # Define Makefiles.
11484 ac_config_files="$ac_config_files include/Makefile src/Makefile Makefile tests/Makefile win32/Makefile"
11485
11486
11487 # Generate the "configure" script.
11488 cat >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.
11501
11502 _ACEOF
11503
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
11516 echo "$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
11524
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
11549 if 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
11553 echo "$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
11557 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11558   fi
11559 fi
11560 rm -f confcache
11561
11562 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11563 # Let make expand exec_prefix.
11564 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11565
11566 DEFS=-DHAVE_CONFIG_H
11567
11568 ac_libobjs=
11569 ac_ltlibobjs=
11570 for 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'
11578 done
11579 LIBOBJS=$ac_libobjs
11580
11581 LTLIBOBJS=$ac_ltlibobjs
11582
11583
11584 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11585   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11586 Usually this means the macro was only invoked conditionally." >&5
11587 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11588 Usually this means the macro was only invoked conditionally." >&2;}
11589    { (exit 1); exit 1; }; }
11590 fi
11591 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11592   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11593 Usually this means the macro was only invoked conditionally." >&5
11594 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11595 Usually this means the macro was only invoked conditionally." >&2;}
11596    { (exit 1); exit 1; }; }
11597 fi
11598 if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
11599   { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
11600 Usually this means the macro was only invoked conditionally." >&5
11601 echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
11602 Usually this means the macro was only invoked conditionally." >&2;}
11603    { (exit 1); exit 1; }; }
11604 fi
11605
11606 : ${CONFIG_STATUS=./config.status}
11607 ac_clean_files_save=$ac_clean_files
11608 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11609 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11610 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11611 cat >$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.
11617
11618 debug=false
11619 ac_cs_recheck=false
11620 ac_cs_silent=false
11621 SHELL=\${CONFIG_SHELL-$SHELL}
11622 _ACEOF
11623
11624 cat >>$CONFIG_STATUS <<\_ACEOF
11625 ## --------------------- ##
11626 ## M4sh Initialization.  ##
11627 ## --------------------- ##
11628
11629 # Be more Bourne compatible
11630 DUALCASE=1; export DUALCASE # for MKS sh
11631 if 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
11638 else
11639   case `(set -o) 2>/dev/null` in
11640   *posix*) set -o posix ;;
11641 esac
11642
11643 fi
11644
11645
11646
11647
11648 # PATH needs CR
11649 # Avoid depending upon Character Ranges.
11650 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11651 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11652 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11653 as_cr_digits='0123456789'
11654 as_cr_alnum=$as_cr_Letters$as_cr_digits
11655
11656 # The user is always right.
11657 if 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
11667 fi
11668
11669 # Support unset when possible.
11670 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11671   as_unset=unset
11672 else
11673   as_unset=false
11674 fi
11675
11676
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.)
11682 as_nl='
11683 '
11684 IFS=" ""        $as_nl"
11685
11686 # Find who we are.  Look in the path if we contain no directory separator.
11687 case $0 in
11688   *[\\/]* ) as_myself=$0 ;;
11689   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11691 do
11692   IFS=$as_save_IFS
11693   test -z "$as_dir" && as_dir=.
11694   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11695 done
11696 IFS=$as_save_IFS
11697
11698      ;;
11699 esac
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.
11702 if test "x$as_myself" = x; then
11703   as_myself=$0
11704 fi
11705 if 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; }
11708 fi
11709
11710 # Work around bugs in pre-3.0 UWIN ksh.
11711 for as_var in ENV MAIL MAILPATH
11712 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11713 done
11714 PS1='$ '
11715 PS2='> '
11716 PS4='+ '
11717
11718 # NLS nuisances.
11719 for 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
11723 do
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
11729 done
11730
11731 # Required to use basename.
11732 if expr a : '\(a\)' >/dev/null 2>&1 &&
11733    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11734   as_expr=expr
11735 else
11736   as_expr=false
11737 fi
11738
11739 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11740   as_basename=basename
11741 else
11742   as_basename=false
11743 fi
11744
11745
11746 # Name of the executable.
11747 as_me=`$as_basename -- "$0" ||
11748 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11749          X"$0" : 'X\(//\)$' \| \
11750          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11751 echo 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'`
11765
11766 # CDPATH.
11767 $as_unset CDPATH
11768
11769
11770
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" || {
11775
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; }; }
11804
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 }
11812
11813
11814 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11815   as_dirname=dirname
11816 else
11817   as_dirname=false
11818 fi
11819
11820 ECHO_C= ECHO_N= ECHO_T=
11821 case `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';;
11829 esac
11830
11831 if expr a : '\(a\)' >/dev/null 2>&1 &&
11832    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11833   as_expr=expr
11834 else
11835   as_expr=false
11836 fi
11837
11838 rm -f conf$$ conf$$.exe conf$$.file
11839 if test -d conf$$.dir; then
11840   rm -f conf$$.dir/conf$$.file
11841 else
11842   rm -f conf$$.dir
11843   mkdir conf$$.dir
11844 fi
11845 echo >conf$$.file
11846 if 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'
11854 elif ln conf$$.file conf$$ 2>/dev/null; then
11855   as_ln_s=ln
11856 else
11857   as_ln_s='cp -p'
11858 fi
11859 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11860 rmdir conf$$.dir 2>/dev/null
11861
11862 if mkdir -p . 2>/dev/null; then
11863   as_mkdir_p=:
11864 else
11865   test -d ./-p && rmdir ./-p
11866   as_mkdir_p=false
11867 fi
11868
11869 if test -x / >/dev/null 2>&1; then
11870   as_test_x='test -x'
11871 else
11872   if ls -dL / >/dev/null 2>&1; then
11873     as_ls_L_option=L
11874   else
11875     as_ls_L_option=
11876   fi
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   '
11889 fi
11890 as_executable_p=$as_test_x
11891
11892 # Sed expression to map a string onto a valid CPP name.
11893 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11894
11895 # Sed expression to map a string onto a valid variable name.
11896 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11897
11898
11899 exec 6>&1
11900
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.
11904 ac_log="
11905 This file was extended by yaml $as_me 0.1.2, which was
11906 generated by GNU Autoconf 2.61.  Invocation command line was
11907
11908   CONFIG_FILES    = $CONFIG_FILES
11909   CONFIG_HEADERS  = $CONFIG_HEADERS
11910   CONFIG_LINKS    = $CONFIG_LINKS
11911   CONFIG_COMMANDS = $CONFIG_COMMANDS
11912   $ $0 $@
11913
11914 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11915 "
11916
11917 _ACEOF
11918
11919 cat >>$CONFIG_STATUS <<_ACEOF
11920 # Files that config.status was made for.
11921 config_files="$ac_config_files"
11922 config_headers="$ac_config_headers"
11923 config_commands="$ac_config_commands"
11924
11925 _ACEOF
11926
11927 cat >>$CONFIG_STATUS <<\_ACEOF
11928 ac_cs_usage="\
11929 \`$as_me' instantiates files from templates according to the
11930 current configuration.
11931
11932 Usage: $0 [OPTIONS] [FILE]...
11933
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
11943
11944 Configuration files:
11945 $config_files
11946
11947 Configuration headers:
11948 $config_headers
11949
11950 Configuration commands:
11951 $config_commands
11952
11953 Report bugs to <bug-autoconf@gnu.org>."
11954
11955 _ACEOF
11956 cat >>$CONFIG_STATUS <<_ACEOF
11957 ac_cs_version="\\
11958 yaml config.status 0.1.2
11959 configured by $0, generated by GNU Autoconf 2.61,
11960   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11961
11962 Copyright (C) 2006 Free Software Foundation, Inc.
11963 This config.status script is free software; the Free Software Foundation
11964 gives unlimited permission to copy, distribute and modify it."
11965
11966 ac_pwd='$ac_pwd'
11967 srcdir='$srcdir'
11968 INSTALL='$INSTALL'
11969 MKDIR_P='$MKDIR_P'
11970 _ACEOF
11971
11972 cat >>$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.
11975 ac_need_defaults=:
11976 while test $# != 0
11977 do
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
11990
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
12010 Try \`$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=: ;;
12017
12018   # This is an error.
12019   -*) { echo "$as_me: error: unrecognized option: $1
12020 Try \`$0 --help' for more information." >&2
12021    { (exit 1); exit 1; }; } ;;
12022
12023   *) ac_config_targets="$ac_config_targets $1"
12024      ac_need_defaults=false ;;
12025
12026   esac
12027   shift
12028 done
12029
12030 ac_configure_extra_args=
12031
12032 if $ac_cs_silent; then
12033   exec 6>/dev/null
12034   ac_configure_extra_args="$ac_configure_extra_args --silent"
12035 fi
12036
12037 _ACEOF
12038 cat >>$CONFIG_STATUS <<_ACEOF
12039 if \$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
12044 fi
12045
12046 _ACEOF
12047 cat >>$CONFIG_STATUS <<\_ACEOF
12048 exec 5>>config.log
12049 {
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
12056
12057 _ACEOF
12058 cat >>$CONFIG_STATUS <<_ACEOF
12059 #
12060 # INIT-COMMANDS
12061 #
12062 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12063
12064
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
12068
12069 sed_quote_subst='$sed_quote_subst'
12070 double_quote_subst='$double_quote_subst'
12071 delay_variable_subst='$delay_variable_subst'
12072 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12073 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12074 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12075 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12076 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12077 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12078 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12079 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12080 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12081 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12082 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12083 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12084 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12085 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12086 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12087 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12088 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12089 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12090 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12091 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12092 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12093 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12094 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12095 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12096 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12097 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12098 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12099 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12100 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12101 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12102 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12103 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12104 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12105 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12106 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12107 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12108 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12109 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12110 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12111 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12112 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12113 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12114 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12115 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12116 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12117 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12118 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12119 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12120 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12121 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12122 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12123 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12124 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12125 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12126 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12127 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12128 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12129 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12130 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12131 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12132 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12133 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12134 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12135 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12136 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12137 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12138 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12139 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12140 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12141 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12142 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12143 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12144 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12145 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12146 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12147 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12148 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12149 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12150 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12151 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12152 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12153 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12154 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12155 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12156 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12157 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12158 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12159 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12160 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12161 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12162 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12163 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12164 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12165 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12166 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12167 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12168 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12169 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12170 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12171 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12172 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12173 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12174 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12175 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12176 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12177 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12178 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12179 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12180 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12181 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12182 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12183 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12184 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12185 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12186 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12187 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12188 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12189
12190 LTCC='$LTCC'
12191 LTCFLAGS='$LTCFLAGS'
12192 compiler='$compiler_DEFAULT'
12193
12194 # Quote evaled strings.
12195 for var in SED \
12196 GREP \
12197 EGREP \
12198 FGREP \
12199 LD \
12200 NM \
12201 LN_S \
12202 lt_SP2NL \
12203 lt_NL2SP \
12204 reload_flag \
12205 deplibs_check_method \
12206 file_magic_cmd \
12207 AR \
12208 AR_FLAGS \
12209 STRIP \
12210 RANLIB \
12211 CC \
12212 CFLAGS \
12213 compiler \
12214 lt_cv_sys_global_symbol_pipe \
12215 lt_cv_sys_global_symbol_to_cdecl \
12216 lt_cv_sys_global_symbol_to_c_name_address \
12217 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12218 SHELL \
12219 ECHO \
12220 lt_prog_compiler_no_builtin_flag \
12221 lt_prog_compiler_wl \
12222 lt_prog_compiler_pic \
12223 lt_prog_compiler_static \
12224 lt_cv_prog_compiler_c_o \
12225 need_locks \
12226 DSYMUTIL \
12227 NMEDIT \
12228 LIPO \
12229 OTOOL \
12230 OTOOL64 \
12231 shrext_cmds \
12232 export_dynamic_flag_spec \
12233 whole_archive_flag_spec \
12234 compiler_needs_object \
12235 with_gnu_ld \
12236 allow_undefined_flag \
12237 no_undefined_flag \
12238 hardcode_libdir_flag_spec \
12239 hardcode_libdir_flag_spec_ld \
12240 hardcode_libdir_separator \
12241 fix_srcfile_path \
12242 exclude_expsyms \
12243 include_expsyms \
12244 file_list_spec \
12245 variables_saved_for_relink \
12246 libname_spec \
12247 library_names_spec \
12248 soname_spec \
12249 finish_eval \
12250 old_striplib \
12251 striplib; 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
12260 done
12261
12262 # Double-quote double-evaled strings.
12263 for var in reload_cmds \
12264 old_postinstall_cmds \
12265 old_postuninstall_cmds \
12266 old_archive_cmds \
12267 extract_expsyms_cmds \
12268 old_archive_from_new_cmds \
12269 old_archive_from_expsyms_cmds \
12270 archive_cmds \
12271 archive_expsym_cmds \
12272 module_cmds \
12273 module_expsym_cmds \
12274 export_symbols_cmds \
12275 prelink_cmds \
12276 postinstall_cmds \
12277 postuninstall_cmds \
12278 finish_cmds \
12279 sys_lib_search_path_spec \
12280 sys_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
12289 done
12290
12291 # Fix-up fallback echo if it was mangled by the above quoting rules.
12292 case \$lt_ECHO in
12293 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12294   ;;
12295 esac
12296
12297 ac_aux_dir='$ac_aux_dir'
12298 xsi_shell='$xsi_shell'
12299 lt_shell_append='$lt_shell_append'
12300
12301 # See if we are running on zsh, and set the options which allow our
12302 # commands through without removal of \ escapes INIT.
12303 if test -n "\${ZSH_VERSION+set}" ; then
12304    setopt NO_GLOB_SUBST
12305 fi
12306
12307
12308     PACKAGE='$PACKAGE'
12309     VERSION='$VERSION'
12310     TIMESTAMP='$TIMESTAMP'
12311     RM='$RM'
12312     ofile='$ofile'
12313
12314
12315
12316
12317 _ACEOF
12318
12319 cat >>$CONFIG_STATUS <<\_ACEOF
12320
12321 # Handling of arguments.
12322 for ac_config_target in $ac_config_targets
12323 do
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
12335 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12336    { (exit 1); exit 1; }; };;
12337   esac
12338 done
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.
12345 if $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
12349 fi
12350
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.
12366
12367 {
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; }
12378 }
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
12386 if test -n "$CONFIG_FILES"; then
12387
12388 _ACEOF
12389
12390
12391
12392 ac_delim='%!_!# '
12393 for ac_last_try in false false false false false :; do
12394   cat >conf$$subs.sed <<_ACEOF
12395 SHELL!$SHELL$ac_delim
12396 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12397 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12398 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12399 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12400 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12401 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12402 exec_prefix!$exec_prefix$ac_delim
12403 prefix!$prefix$ac_delim
12404 program_transform_name!$program_transform_name$ac_delim
12405 bindir!$bindir$ac_delim
12406 sbindir!$sbindir$ac_delim
12407 libexecdir!$libexecdir$ac_delim
12408 datarootdir!$datarootdir$ac_delim
12409 datadir!$datadir$ac_delim
12410 sysconfdir!$sysconfdir$ac_delim
12411 sharedstatedir!$sharedstatedir$ac_delim
12412 localstatedir!$localstatedir$ac_delim
12413 includedir!$includedir$ac_delim
12414 oldincludedir!$oldincludedir$ac_delim
12415 docdir!$docdir$ac_delim
12416 infodir!$infodir$ac_delim
12417 htmldir!$htmldir$ac_delim
12418 dvidir!$dvidir$ac_delim
12419 pdfdir!$pdfdir$ac_delim
12420 psdir!$psdir$ac_delim
12421 libdir!$libdir$ac_delim
12422 localedir!$localedir$ac_delim
12423 mandir!$mandir$ac_delim
12424 DEFS!$DEFS$ac_delim
12425 ECHO_C!$ECHO_C$ac_delim
12426 ECHO_N!$ECHO_N$ac_delim
12427 ECHO_T!$ECHO_T$ac_delim
12428 LIBS!$LIBS$ac_delim
12429 build_alias!$build_alias$ac_delim
12430 host_alias!$host_alias$ac_delim
12431 target_alias!$target_alias$ac_delim
12432 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12433 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12434 INSTALL_DATA!$INSTALL_DATA$ac_delim
12435 am__isrc!$am__isrc$ac_delim
12436 CYGPATH_W!$CYGPATH_W$ac_delim
12437 PACKAGE!$PACKAGE$ac_delim
12438 VERSION!$VERSION$ac_delim
12439 ACLOCAL!$ACLOCAL$ac_delim
12440 AUTOCONF!$AUTOCONF$ac_delim
12441 AUTOMAKE!$AUTOMAKE$ac_delim
12442 AUTOHEADER!$AUTOHEADER$ac_delim
12443 MAKEINFO!$MAKEINFO$ac_delim
12444 install_sh!$install_sh$ac_delim
12445 STRIP!$STRIP$ac_delim
12446 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
12447 mkdir_p!$mkdir_p$ac_delim
12448 AWK!$AWK$ac_delim
12449 SET_MAKE!$SET_MAKE$ac_delim
12450 am__leading_dot!$am__leading_dot$ac_delim
12451 AMTAR!$AMTAR$ac_delim
12452 am__tar!$am__tar$ac_delim
12453 am__untar!$am__untar$ac_delim
12454 YAML_LT_RELEASE!$YAML_LT_RELEASE$ac_delim
12455 YAML_LT_CURRENT!$YAML_LT_CURRENT$ac_delim
12456 YAML_LT_REVISION!$YAML_LT_REVISION$ac_delim
12457 YAML_LT_AGE!$YAML_LT_AGE$ac_delim
12458 CC!$CC$ac_delim
12459 CFLAGS!$CFLAGS$ac_delim
12460 LDFLAGS!$LDFLAGS$ac_delim
12461 CPPFLAGS!$CPPFLAGS$ac_delim
12462 ac_ct_CC!$ac_ct_CC$ac_delim
12463 EXEEXT!$EXEEXT$ac_delim
12464 OBJEXT!$OBJEXT$ac_delim
12465 DEPDIR!$DEPDIR$ac_delim
12466 am__include!$am__include$ac_delim
12467 am__quote!$am__quote$ac_delim
12468 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
12469 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
12470 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
12471 CCDEPMODE!$CCDEPMODE$ac_delim
12472 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
12473 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
12474 CPP!$CPP$ac_delim
12475 LN_S!$LN_S$ac_delim
12476 LIBTOOL!$LIBTOOL$ac_delim
12477 build!$build$ac_delim
12478 build_cpu!$build_cpu$ac_delim
12479 build_vendor!$build_vendor$ac_delim
12480 build_os!$build_os$ac_delim
12481 host!$host$ac_delim
12482 host_cpu!$host_cpu$ac_delim
12483 host_vendor!$host_vendor$ac_delim
12484 host_os!$host_os$ac_delim
12485 SED!$SED$ac_delim
12486 GREP!$GREP$ac_delim
12487 EGREP!$EGREP$ac_delim
12488 FGREP!$FGREP$ac_delim
12489 LD!$LD$ac_delim
12490 DUMPBIN!$DUMPBIN$ac_delim
12491 ac_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
12498 echo "$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
12503 done
12504
12505 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12506 if test -n "$ac_eof"; then
12507   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12508   ac_eof=`expr $ac_eof + 1`
12509 fi
12510
12511 cat >>$CONFIG_STATUS <<_ACEOF
12512 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12513 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12514 _ACEOF
12515 sed '
12516 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12517 s/^/s,@/; s/!/@,|#_!!_#|/
12518 :n
12519 t n
12520 s/'"$ac_delim"'$/,g/; t
12521 s/$/\\/; p
12522 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12523 ' >>$CONFIG_STATUS <conf$$subs.sed
12524 rm -f conf$$subs.sed
12525 cat >>$CONFIG_STATUS <<_ACEOF
12526 CEOF$ac_eof
12527 _ACEOF
12528
12529
12530 ac_delim='%!_!# '
12531 for ac_last_try in false false false false false :; do
12532   cat >conf$$subs.sed <<_ACEOF
12533 NM!$NM$ac_delim
12534 AR!$AR$ac_delim
12535 RANLIB!$RANLIB$ac_delim
12536 lt_ECHO!$lt_ECHO$ac_delim
12537 DSYMUTIL!$DSYMUTIL$ac_delim
12538 NMEDIT!$NMEDIT$ac_delim
12539 LIPO!$LIPO$ac_delim
12540 OTOOL!$OTOOL$ac_delim
12541 OTOOL64!$OTOOL64$ac_delim
12542 DOXYGEN!$DOXYGEN$ac_delim
12543 DOXYGEN_TRUE!$DOXYGEN_TRUE$ac_delim
12544 DOXYGEN_FALSE!$DOXYGEN_FALSE$ac_delim
12545 LIBOBJS!$LIBOBJS$ac_delim
12546 LTLIBOBJS!$LTLIBOBJS$ac_delim
12547 _ACEOF
12548
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
12553 echo "$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
12558 done
12559
12560 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12561 if test -n "$ac_eof"; then
12562   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12563   ac_eof=`expr $ac_eof + 1`
12564 fi
12565
12566 cat >>$CONFIG_STATUS <<_ACEOF
12567 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12568 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12569 _ACEOF
12570 sed '
12571 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12572 s/^/s,@/; s/!/@,|#_!!_#|/
12573 :n
12574 t n
12575 s/'"$ac_delim"'$/,g/; t
12576 s/$/\\/; p
12577 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12578 ' >>$CONFIG_STATUS <conf$$subs.sed
12579 rm -f conf$$subs.sed
12580 cat >>$CONFIG_STATUS <<_ACEOF
12581 :end
12582 s/|#_!!_#|//g
12583 CEOF$ac_eof
12584 _ACEOF
12585
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).
12591 if test "x$srcdir" = x.; then
12592   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12593 s/:*\$(srcdir):*/:/
12594 s/:*\${srcdir}:*/:/
12595 s/:*@srcdir@:*/:/
12596 s/^\([^=]*=[     ]*\):*/\1/
12597 s/:*$//
12598 s/^[^=]*=[       ]*$//
12599 }'
12600 fi
12601
12602 cat >>$CONFIG_STATUS <<\_ACEOF
12603 fi # test -n "$CONFIG_FILES"
12604
12605
12606 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
12607 do
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
12614 echo "$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
12644 echo "$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
12658 echo "$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 ||
12672 echo 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 ||
12707 echo 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
12729 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12730    { (exit 1); exit 1; }; }; }
12731   ac_builddir=.
12732
12733 case "$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 ;;
12743 esac
12744 ac_abs_top_builddir=$ac_pwd
12745 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12746 # for backward compatibility:
12747 ac_top_builddir=$ac_top_build_prefix
12748
12749 case $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 ;;
12762 esac
12763 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12764
12765
12766   case $ac_mode in
12767   :F)
12768   #
12769   # CONFIG_FILE
12770   #
12771
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
12782
12783 cat >>$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.
12786 ac_datarootdir_hack=; ac_datarootdir_seen=
12787
12788 case `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
12801 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12802 _ACEOF
12803 cat >>$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' ;;
12811 esac
12812 _ACEOF
12813
12814 # Neutralize VPATH when `$srcdir' = `.'.
12815 # Shell code in configure.ac might set extrasub.
12816 # FIXME: do we really want to maintain this feature?
12817 cat >>$CONFIG_STATUS <<_ACEOF
12818   sed "$ac_vpsub
12819 $extrasub
12820 _ACEOF
12821 cat >>$CONFIG_STATUS <<\_ACEOF
12822 :t
12823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12824 s&@configure_input@&$configure_input&;t t
12825 s&@top_builddir@&$ac_top_builddir_sub&;t t
12826 s&@srcdir@&$ac_srcdir&;t t
12827 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12828 s&@top_srcdir@&$ac_top_srcdir&;t t
12829 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12830 s&@builddir@&$ac_builddir&;t t
12831 s&@abs_builddir@&$ac_abs_builddir&;t t
12832 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12833 s&@INSTALL@&$ac_INSTALL&;t t
12834 s&@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
12837
12838 test -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'
12842 which seems to be undefined.  Please make sure it is defined." >&5
12843 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12844 which seems to be undefined.  Please make sure it is defined." >&2;}
12845
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   #
12856 _ACEOF
12857
12858 # Transform confdefs.h into a sed script `conftest.defines', that
12859 # substitutes the proper values into config.h.in to produce config.h.
12860 rm -f conftest.defines conftest.tail
12861 # First, append a space to every undef/define line, to ease matching.
12862 echo '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.
12868 ac_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.
12873 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
12874 ac_dB='\\)[      (].*,\\1define\\2'
12875 ac_dC=' '
12876 ac_dD=' ,'
12877
12878 uniq 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
12890
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.)
12896 echo 's/ $//
12897 s,^[     #]*u.*,/* & */,' >>conftest.defines
12898
12899 # Break up conftest.defines:
12900 ac_max_sed_lines=50
12901
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.
12906 ac_in='$ac_file_inputs'
12907 ac_out='"$tmp/out1"'
12908 ac_nxt='"$tmp/out2"'
12909
12910 while :
12911 do
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
12918 b
12919 :def
12920 _ACEOF
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
12929 done
12930 rm -f conftest.defines conftest.tail
12931
12932 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12933 cat >>$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
12939 echo "$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
12952 for _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
12959 done
12960 echo "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 ||
12965 echo 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  ;;
12984
12985   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12986 echo "$as_me: executing $ac_file commands" >&6;}
12987  ;;
12988   esac
12989
12990
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 ||
13008 echo 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 ||
13052 echo 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 ||
13087 echo 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
13109 echo "$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
13114 done
13115  ;;
13116     "libtool":C)
13117
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
13123
13124     cfgfile="${ofile}T"
13125     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13126     $RM "$cfgfile"
13127
13128     cat <<_LT_EOF >> "$cfgfile"
13129 #! $SHELL
13130
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.
13135 #
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
13139 #
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.
13162
13163
13164 # The names of the tagged configurations supported by this script.
13165 available_tags=""
13166
13167 # ### BEGIN LIBTOOL CONFIG
13168
13169 # Which release of libtool.m4 was used?
13170 macro_version=$macro_version
13171 macro_revision=$macro_revision
13172
13173 # Whether or not to build shared libraries.
13174 build_libtool_libs=$enable_shared
13175
13176 # Whether or not to build static libraries.
13177 build_old_libs=$enable_static
13178
13179 # What type of objects to build.
13180 pic_mode=$pic_mode
13181
13182 # Whether or not to optimize for fast installation.
13183 fast_install=$enable_fast_install
13184
13185 # The host system.
13186 host_alias=$host_alias
13187 host=$host
13188 host_os=$host_os
13189
13190 # The build system.
13191 build_alias=$build_alias
13192 build=$build
13193 build_os=$build_os
13194
13195 # A sed program that does not truncate output.
13196 SED=$lt_SED
13197
13198 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13199 Xsed="\$SED -e 1s/^X//"
13200
13201 # A grep program that handles long lines.
13202 GREP=$lt_GREP
13203
13204 # An ERE matcher.
13205 EGREP=$lt_EGREP
13206
13207 # A literal string matcher.
13208 FGREP=$lt_FGREP
13209
13210 # A BSD- or MS-compatible name lister.
13211 NM=$lt_NM
13212
13213 # Whether we need soft or hard links.
13214 LN_S=$lt_LN_S
13215
13216 # What is the maximum length of a command?
13217 max_cmd_len=$max_cmd_len
13218
13219 # Object file suffix (normally "o").
13220 objext=$ac_objext
13221
13222 # Executable file suffix (normally "").
13223 exeext=$exeext
13224
13225 # whether the shell understands "unset".
13226 lt_unset=$lt_unset
13227
13228 # turn spaces into newlines.
13229 SP2NL=$lt_lt_SP2NL
13230
13231 # turn newlines into spaces.
13232 NL2SP=$lt_lt_NL2SP
13233
13234 # How to create reloadable object files.
13235 reload_flag=$lt_reload_flag
13236 reload_cmds=$lt_reload_cmds
13237
13238 # Method to check whether dependent libraries are shared objects.
13239 deplibs_check_method=$lt_deplibs_check_method
13240
13241 # Command to use when deplibs_check_method == "file_magic".
13242 file_magic_cmd=$lt_file_magic_cmd
13243
13244 # The archiver.
13245 AR=$lt_AR
13246 AR_FLAGS=$lt_AR_FLAGS
13247
13248 # A symbol stripping program.
13249 STRIP=$lt_STRIP
13250
13251 # Commands used to install an old-style archive.
13252 RANLIB=$lt_RANLIB
13253 old_postinstall_cmds=$lt_old_postinstall_cmds
13254 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13255
13256 # A C compiler.
13257 LTCC=$lt_CC
13258
13259 # LTCC compiler flags.
13260 LTCFLAGS=$lt_CFLAGS
13261
13262 # Take the output of nm and produce a listing of raw symbols and C names.
13263 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13264
13265 # Transform the output of nm in a proper C declaration.
13266 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13267
13268 # Transform the output of nm in a C name address pair.
13269 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13270
13271 # Transform the output of nm in a C name address pair when lib prefix is needed.
13272 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13273
13274 # The name of the directory that contains temporary libtool files.
13275 objdir=$objdir
13276
13277 # Shell to use when invoking shell scripts.
13278 SHELL=$lt_SHELL
13279
13280 # An echo program that does not interpret backslashes.
13281 ECHO=$lt_ECHO
13282
13283 # Used to examine libraries when file_magic_cmd begins with "file".
13284 MAGIC_CMD=$MAGIC_CMD
13285
13286 # Must we lock files when doing compilation?
13287 need_locks=$lt_need_locks
13288
13289 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13290 DSYMUTIL=$lt_DSYMUTIL
13291
13292 # Tool to change global to local symbols on Mac OS X.
13293 NMEDIT=$lt_NMEDIT
13294
13295 # Tool to manipulate fat objects and archives on Mac OS X.
13296 LIPO=$lt_LIPO
13297
13298 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13299 OTOOL=$lt_OTOOL
13300
13301 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13302 OTOOL64=$lt_OTOOL64
13303
13304 # Old archive suffix (normally "a").
13305 libext=$libext
13306
13307 # Shared library suffix (normally ".so").
13308 shrext_cmds=$lt_shrext_cmds
13309
13310 # The commands to extract the exported symbol list from a shared archive.
13311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13312
13313 # Variables whose values should be saved in libtool wrapper scripts and
13314 # restored at link time.
13315 variables_saved_for_relink=$lt_variables_saved_for_relink
13316
13317 # Do we need the "lib" prefix for modules?
13318 need_lib_prefix=$need_lib_prefix
13319
13320 # Do we need a version for libraries?
13321 need_version=$need_version
13322
13323 # Library versioning type.
13324 version_type=$version_type
13325
13326 # Shared library runtime path variable.
13327 runpath_var=$runpath_var
13328
13329 # Shared library path variable.
13330 shlibpath_var=$shlibpath_var
13331
13332 # Is shlibpath searched before the hard-coded library search path?
13333 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13334
13335 # Format of library name prefix.
13336 libname_spec=$lt_libname_spec
13337
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
13340 library_names_spec=$lt_library_names_spec
13341
13342 # The coded name of the library, if different from the real name.
13343 soname_spec=$lt_soname_spec
13344
13345 # Command to use after installation of a shared archive.
13346 postinstall_cmds=$lt_postinstall_cmds
13347
13348 # Command to use after uninstallation of a shared archive.
13349 postuninstall_cmds=$lt_postuninstall_cmds
13350
13351 # Commands used to finish a libtool library installation in a directory.
13352 finish_cmds=$lt_finish_cmds
13353
13354 # As "finish_cmds", except a single script fragment to be evaled but
13355 # not shown.
13356 finish_eval=$lt_finish_eval
13357
13358 # Whether we should hardcode library paths into libraries.
13359 hardcode_into_libs=$hardcode_into_libs
13360
13361 # Compile-time system search path for libraries.
13362 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13363
13364 # Run-time system search path for libraries.
13365 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13366
13367 # Whether dlopen is supported.
13368 dlopen_support=$enable_dlopen
13369
13370 # Whether dlopen of programs is supported.
13371 dlopen_self=$enable_dlopen_self
13372
13373 # Whether dlopen of statically linked programs is supported.
13374 dlopen_self_static=$enable_dlopen_self_static
13375
13376 # Commands to strip libraries.
13377 old_striplib=$lt_old_striplib
13378 striplib=$lt_striplib
13379
13380
13381 # The linker used to build libraries.
13382 LD=$lt_LD
13383
13384 # Commands used to build an old-style archive.
13385 old_archive_cmds=$lt_old_archive_cmds
13386
13387 # A language specific compiler.
13388 CC=$lt_compiler
13389
13390 # Is the compiler the GNU compiler?
13391 with_gcc=$GCC
13392
13393 # Compiler flag to turn off builtin functions.
13394 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13395
13396 # How to pass a linker flag through the compiler.
13397 wl=$lt_lt_prog_compiler_wl
13398
13399 # Additional compiler flags for building library objects.
13400 pic_flag=$lt_lt_prog_compiler_pic
13401
13402 # Compiler flag to prevent dynamic linking.
13403 link_static_flag=$lt_lt_prog_compiler_static
13404
13405 # Does compiler simultaneously support -c and -o options?
13406 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13407
13408 # Whether or not to add -lc for building shared libraries.
13409 build_libtool_need_lc=$archive_cmds_need_lc
13410
13411 # Whether or not to disallow shared libs when runtime libs are static.
13412 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13413
13414 # Compiler flag to allow reflexive dlopens.
13415 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13416
13417 # Compiler flag to generate shared objects directly from archives.
13418 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13419
13420 # Whether the compiler copes with passing no objects directly.
13421 compiler_needs_object=$lt_compiler_needs_object
13422
13423 # Create an old-style archive from a shared archive.
13424 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13425
13426 # Create a temporary old-style archive to link instead of a shared archive.
13427 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13428
13429 # Commands used to build a shared archive.
13430 archive_cmds=$lt_archive_cmds
13431 archive_expsym_cmds=$lt_archive_expsym_cmds
13432
13433 # Commands used to build a loadable module if different from building
13434 # a shared archive.
13435 module_cmds=$lt_module_cmds
13436 module_expsym_cmds=$lt_module_expsym_cmds
13437
13438 # Whether we are building with GNU ld or not.
13439 with_gnu_ld=$lt_with_gnu_ld
13440
13441 # Flag that allows shared libraries with undefined symbols to be built.
13442 allow_undefined_flag=$lt_allow_undefined_flag
13443
13444 # Flag that enforces no undefined symbols.
13445 no_undefined_flag=$lt_no_undefined_flag
13446
13447 # Flag to hardcode \$libdir into a binary during linking.
13448 # This must work even if \$libdir does not exist
13449 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13450
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.
13453 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13454
13455 # Whether we need a single "-rpath" flag with a separated argument.
13456 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13457
13458 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13459 # DIR into the resulting binary.
13460 hardcode_direct=$hardcode_direct
13461
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.
13466 hardcode_direct_absolute=$hardcode_direct_absolute
13467
13468 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13469 # into the resulting binary.
13470 hardcode_minus_L=$hardcode_minus_L
13471
13472 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13473 # into the resulting binary.
13474 hardcode_shlibpath_var=$hardcode_shlibpath_var
13475
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.
13479 hardcode_automatic=$hardcode_automatic
13480
13481 # Set to yes if linker adds runtime paths of dependent libraries
13482 # to runtime path list.
13483 inherit_rpath=$inherit_rpath
13484
13485 # Whether libtool must link a program against all its dependency libraries.
13486 link_all_deplibs=$link_all_deplibs
13487
13488 # Fix the shell variable \$srcfile for the compiler.
13489 fix_srcfile_path=$lt_fix_srcfile_path
13490
13491 # Set to "yes" if exported symbols are required.
13492 always_export_symbols=$always_export_symbols
13493
13494 # The commands to list exported symbols.
13495 export_symbols_cmds=$lt_export_symbols_cmds
13496
13497 # Symbols that should not be listed in the preloaded symbols.
13498 exclude_expsyms=$lt_exclude_expsyms
13499
13500 # Symbols that must always be exported.
13501 include_expsyms=$lt_include_expsyms
13502
13503 # Commands necessary for linking programs (against libraries) with templates.
13504 prelink_cmds=$lt_prelink_cmds
13505
13506 # Specify filename containing input files.
13507 file_list_spec=$lt_file_list_spec
13508
13509 # How to hardcode a shared library path into an executable.
13510 hardcode_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.
13522 if test "X${COLLECT_NAMES+set}" != Xset; then
13523   COLLECT_NAMES=
13524   export COLLECT_NAMES
13525 fi
13526 _LT_EOF
13527     ;;
13528   esac
13529
13530
13531 ltmain="$ac_aux_dir/ltmain.sh"
13532
13533
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)
13540
13541   case $xsi_shell in
13542   yes)
13543     cat << \_LT_EOF >> "$cfgfile"
13544
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.
13548 func_dirname ()
13549 {
13550   case ${1} in
13551     */*) func_dirname_result="${1%/*}${2}" ;;
13552     *  ) func_dirname_result="${3}" ;;
13553   esac
13554 }
13555
13556 # func_basename file
13557 func_basename ()
13558 {
13559   func_basename_result="${1##*/}"
13560 }
13561
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.
13574 func_dirname_and_basename ()
13575 {
13576   case ${1} in
13577     */*) func_dirname_result="${1%/*}${2}" ;;
13578     *  ) func_dirname_result="${3}" ;;
13579   esac
13580   func_basename_result="${1##*/}"
13581 }
13582
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).
13588 func_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 }
13596
13597 # func_opt_split
13598 func_opt_split ()
13599 {
13600   func_opt_split_opt=${1%%=*}
13601   func_opt_split_arg=${1#*=}
13602 }
13603
13604 # func_lo2o object
13605 func_lo2o ()
13606 {
13607   case ${1} in
13608     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13609     *)    func_lo2o_result=${1} ;;
13610   esac
13611 }
13612
13613 # func_xform libobj-or-source
13614 func_xform ()
13615 {
13616   func_xform_result=${1%.*}.lo
13617 }
13618
13619 # func_arith arithmetic-term...
13620 func_arith ()
13621 {
13622   func_arith_result=$(( $* ))
13623 }
13624
13625 # func_len string
13626 # STRING may not start with a hyphen.
13627 func_len ()
13628 {
13629   func_len_result=${#1}
13630 }
13631
13632 _LT_EOF
13633     ;;
13634   *) # Bourne compatible functions.
13635     cat << \_LT_EOF >> "$cfgfile"
13636
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.
13640 func_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}"
13646   else
13647     func_dirname_result="$func_dirname_result${2}"
13648   fi
13649 }
13650
13651 # func_basename file
13652 func_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
13664 func_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}\$%%"`;;
13671   esac
13672 }
13673
13674 # sed scripts:
13675 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13676 my_sed_long_arg='1s/^-[^=]*=//'
13677
13678 # func_opt_split
13679 func_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
13686 func_lo2o ()
13687 {
13688   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13689 }
13690
13691 # func_xform libobj-or-source
13692 func_xform ()
13693 {
13694   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13695 }
13696
13697 # func_arith arithmetic-term...
13698 func_arith ()
13699 {
13700   func_arith_result=`expr "$@"`
13701 }
13702
13703 # func_len string
13704 # STRING may not start with a hyphen.
13705 func_len ()
13706 {
13707   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13708 }
13709
13710 _LT_EOF
13711 esac
13712
13713 case $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.
13719 func_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.
13730 func_append ()
13731 {
13732   eval "$1=\$$1\$2"
13733 }
13734
13735 _LT_EOF
13736     ;;
13737   esac
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
13747  ;;
13748
13749   esac
13750 done # for ac_tag
13751
13752
13753 { (exit 0); exit 0; }
13754 _ACEOF
13755 chmod +x $CONFIG_STATUS
13756 ac_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.
13767 if 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; }
13778 fi
13779
This page took 1.472038 seconds and 5 git commands to generate.