]> andersk Git - libyaml.git/blob - configure
Imported Upstream version 0.1.1
[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.1.
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$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${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 <<EOF
584 $*
585 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 "$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        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='yaml'
730 PACKAGE_TARNAME='yaml'
731 PACKAGE_VERSION='0.1.1'
732 PACKAGE_STRING='yaml 0.1.1'
733 PACKAGE_BUGREPORT='http://pyyaml.org/newticket?component=libyaml'
734
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 #  include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 #  include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 INSTALL_PROGRAM
809 INSTALL_SCRIPT
810 INSTALL_DATA
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
823 AWK
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
829 YAML_LT_RELEASE
830 YAML_LT_CURRENT
831 YAML_LT_REVISION
832 YAML_LT_AGE
833 CC
834 CFLAGS
835 LDFLAGS
836 CPPFLAGS
837 ac_ct_CC
838 EXEEXT
839 OBJEXT
840 DEPDIR
841 am__include
842 am__quote
843 AMDEP_TRUE
844 AMDEP_FALSE
845 AMDEPBACKSLASH
846 CCDEPMODE
847 am__fastdepCC_TRUE
848 am__fastdepCC_FALSE
849 CPP
850 LN_S
851 build
852 build_cpu
853 build_vendor
854 build_os
855 host
856 host_cpu
857 host_vendor
858 host_os
859 GREP
860 EGREP
861 ECHO
862 AR
863 RANLIB
864 CXX
865 CXXFLAGS
866 ac_ct_CXX
867 CXXDEPMODE
868 am__fastdepCXX_TRUE
869 am__fastdepCXX_FALSE
870 CXXCPP
871 F77
872 FFLAGS
873 ac_ct_F77
874 LIBTOOL
875 DOXYGEN
876 DOXYGEN_TRUE
877 DOXYGEN_FALSE
878 LIBOBJS
879 LTLIBOBJS'
880 ac_subst_files=''
881       ac_precious_vars='build_alias
882 host_alias
883 target_alias
884 CC
885 CFLAGS
886 LDFLAGS
887 LIBS
888 CPPFLAGS
889 CPP
890 CXX
891 CXXFLAGS
892 CCC
893 CXXCPP
894 F77
895 FFLAGS'
896
897
898 # Initialize some variables set by options.
899 ac_init_help=
900 ac_init_version=false
901 # The variables have the same names as the options, with
902 # dashes changed to underlines.
903 cache_file=/dev/null
904 exec_prefix=NONE
905 no_create=
906 no_recursion=
907 prefix=NONE
908 program_prefix=NONE
909 program_suffix=NONE
910 program_transform_name=s,x,x,
911 silent=
912 site=
913 srcdir=
914 verbose=
915 x_includes=NONE
916 x_libraries=NONE
917
918 # Installation directory options.
919 # These are left unexpanded so users can "make install exec_prefix=/foo"
920 # and all the variables that are supposed to be based on exec_prefix
921 # by default will actually change.
922 # Use braces instead of parens because sh, perl, etc. also accept them.
923 # (The list follows the same order as the GNU Coding Standards.)
924 bindir='${exec_prefix}/bin'
925 sbindir='${exec_prefix}/sbin'
926 libexecdir='${exec_prefix}/libexec'
927 datarootdir='${prefix}/share'
928 datadir='${datarootdir}'
929 sysconfdir='${prefix}/etc'
930 sharedstatedir='${prefix}/com'
931 localstatedir='${prefix}/var'
932 includedir='${prefix}/include'
933 oldincludedir='/usr/include'
934 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
935 infodir='${datarootdir}/info'
936 htmldir='${docdir}'
937 dvidir='${docdir}'
938 pdfdir='${docdir}'
939 psdir='${docdir}'
940 libdir='${exec_prefix}/lib'
941 localedir='${datarootdir}/locale'
942 mandir='${datarootdir}/man'
943
944 ac_prev=
945 ac_dashdash=
946 for ac_option
947 do
948   # If the previous option needs an argument, assign it.
949   if test -n "$ac_prev"; then
950     eval $ac_prev=\$ac_option
951     ac_prev=
952     continue
953   fi
954
955   case $ac_option in
956   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957   *)    ac_optarg=yes ;;
958   esac
959
960   # Accept the important Cygnus configure options, so we can diagnose typos.
961
962   case $ac_dashdash$ac_option in
963   --)
964     ac_dashdash=yes ;;
965
966   -bindir | --bindir | --bindi | --bind | --bin | --bi)
967     ac_prev=bindir ;;
968   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969     bindir=$ac_optarg ;;
970
971   -build | --build | --buil | --bui | --bu)
972     ac_prev=build_alias ;;
973   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974     build_alias=$ac_optarg ;;
975
976   -cache-file | --cache-file | --cache-fil | --cache-fi \
977   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978     ac_prev=cache_file ;;
979   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981     cache_file=$ac_optarg ;;
982
983   --config-cache | -C)
984     cache_file=config.cache ;;
985
986   -datadir | --datadir | --datadi | --datad)
987     ac_prev=datadir ;;
988   -datadir=* | --datadir=* | --datadi=* | --datad=*)
989     datadir=$ac_optarg ;;
990
991   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992   | --dataroo | --dataro | --datar)
993     ac_prev=datarootdir ;;
994   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996     datarootdir=$ac_optarg ;;
997
998   -disable-* | --disable-*)
999     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000     # Reject names that are not valid shell variable names.
1001     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1002       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1003    { (exit 1); exit 1; }; }
1004     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1005     eval enable_$ac_feature=no ;;
1006
1007   -docdir | --docdir | --docdi | --doc | --do)
1008     ac_prev=docdir ;;
1009   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010     docdir=$ac_optarg ;;
1011
1012   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013     ac_prev=dvidir ;;
1014   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015     dvidir=$ac_optarg ;;
1016
1017   -enable-* | --enable-*)
1018     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019     # Reject names that are not valid shell variable names.
1020     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1022    { (exit 1); exit 1; }; }
1023     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1024     eval enable_$ac_feature=\$ac_optarg ;;
1025
1026   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028   | --exec | --exe | --ex)
1029     ac_prev=exec_prefix ;;
1030   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032   | --exec=* | --exe=* | --ex=*)
1033     exec_prefix=$ac_optarg ;;
1034
1035   -gas | --gas | --ga | --g)
1036     # Obsolete; use --with-gas.
1037     with_gas=yes ;;
1038
1039   -help | --help | --hel | --he | -h)
1040     ac_init_help=long ;;
1041   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042     ac_init_help=recursive ;;
1043   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044     ac_init_help=short ;;
1045
1046   -host | --host | --hos | --ho)
1047     ac_prev=host_alias ;;
1048   -host=* | --host=* | --hos=* | --ho=*)
1049     host_alias=$ac_optarg ;;
1050
1051   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052     ac_prev=htmldir ;;
1053   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054   | --ht=*)
1055     htmldir=$ac_optarg ;;
1056
1057   -includedir | --includedir | --includedi | --included | --include \
1058   | --includ | --inclu | --incl | --inc)
1059     ac_prev=includedir ;;
1060   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061   | --includ=* | --inclu=* | --incl=* | --inc=*)
1062     includedir=$ac_optarg ;;
1063
1064   -infodir | --infodir | --infodi | --infod | --info | --inf)
1065     ac_prev=infodir ;;
1066   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067     infodir=$ac_optarg ;;
1068
1069   -libdir | --libdir | --libdi | --libd)
1070     ac_prev=libdir ;;
1071   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072     libdir=$ac_optarg ;;
1073
1074   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075   | --libexe | --libex | --libe)
1076     ac_prev=libexecdir ;;
1077   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078   | --libexe=* | --libex=* | --libe=*)
1079     libexecdir=$ac_optarg ;;
1080
1081   -localedir | --localedir | --localedi | --localed | --locale)
1082     ac_prev=localedir ;;
1083   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084     localedir=$ac_optarg ;;
1085
1086   -localstatedir | --localstatedir | --localstatedi | --localstated \
1087   | --localstate | --localstat | --localsta | --localst | --locals)
1088     ac_prev=localstatedir ;;
1089   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091     localstatedir=$ac_optarg ;;
1092
1093   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094     ac_prev=mandir ;;
1095   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096     mandir=$ac_optarg ;;
1097
1098   -nfp | --nfp | --nf)
1099     # Obsolete; use --without-fp.
1100     with_fp=no ;;
1101
1102   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103   | --no-cr | --no-c | -n)
1104     no_create=yes ;;
1105
1106   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108     no_recursion=yes ;;
1109
1110   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112   | --oldin | --oldi | --old | --ol | --o)
1113     ac_prev=oldincludedir ;;
1114   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117     oldincludedir=$ac_optarg ;;
1118
1119   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120     ac_prev=prefix ;;
1121   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122     prefix=$ac_optarg ;;
1123
1124   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125   | --program-pre | --program-pr | --program-p)
1126     ac_prev=program_prefix ;;
1127   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129     program_prefix=$ac_optarg ;;
1130
1131   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132   | --program-suf | --program-su | --program-s)
1133     ac_prev=program_suffix ;;
1134   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136     program_suffix=$ac_optarg ;;
1137
1138   -program-transform-name | --program-transform-name \
1139   | --program-transform-nam | --program-transform-na \
1140   | --program-transform-n | --program-transform- \
1141   | --program-transform | --program-transfor \
1142   | --program-transfo | --program-transf \
1143   | --program-trans | --program-tran \
1144   | --progr-tra | --program-tr | --program-t)
1145     ac_prev=program_transform_name ;;
1146   -program-transform-name=* | --program-transform-name=* \
1147   | --program-transform-nam=* | --program-transform-na=* \
1148   | --program-transform-n=* | --program-transform-=* \
1149   | --program-transform=* | --program-transfor=* \
1150   | --program-transfo=* | --program-transf=* \
1151   | --program-trans=* | --program-tran=* \
1152   | --progr-tra=* | --program-tr=* | --program-t=*)
1153     program_transform_name=$ac_optarg ;;
1154
1155   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156     ac_prev=pdfdir ;;
1157   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158     pdfdir=$ac_optarg ;;
1159
1160   -psdir | --psdir | --psdi | --psd | --ps)
1161     ac_prev=psdir ;;
1162   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163     psdir=$ac_optarg ;;
1164
1165   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166   | -silent | --silent | --silen | --sile | --sil)
1167     silent=yes ;;
1168
1169   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170     ac_prev=sbindir ;;
1171   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172   | --sbi=* | --sb=*)
1173     sbindir=$ac_optarg ;;
1174
1175   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177   | --sharedst | --shareds | --shared | --share | --shar \
1178   | --sha | --sh)
1179     ac_prev=sharedstatedir ;;
1180   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183   | --sha=* | --sh=*)
1184     sharedstatedir=$ac_optarg ;;
1185
1186   -site | --site | --sit)
1187     ac_prev=site ;;
1188   -site=* | --site=* | --sit=*)
1189     site=$ac_optarg ;;
1190
1191   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192     ac_prev=srcdir ;;
1193   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194     srcdir=$ac_optarg ;;
1195
1196   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197   | --syscon | --sysco | --sysc | --sys | --sy)
1198     ac_prev=sysconfdir ;;
1199   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201     sysconfdir=$ac_optarg ;;
1202
1203   -target | --target | --targe | --targ | --tar | --ta | --t)
1204     ac_prev=target_alias ;;
1205   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206     target_alias=$ac_optarg ;;
1207
1208   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209     verbose=yes ;;
1210
1211   -version | --version | --versio | --versi | --vers | -V)
1212     ac_init_version=: ;;
1213
1214   -with-* | --with-*)
1215     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1222
1223   -without-* | --without-*)
1224     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225     # Reject names that are not valid shell variable names.
1226     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227       { echo "$as_me: error: invalid package name: $ac_package" >&2
1228    { (exit 1); exit 1; }; }
1229     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1230     eval with_$ac_package=no ;;
1231
1232   --x)
1233     # Obsolete; use --with-x.
1234     with_x=yes ;;
1235
1236   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237   | --x-incl | --x-inc | --x-in | --x-i)
1238     ac_prev=x_includes ;;
1239   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241     x_includes=$ac_optarg ;;
1242
1243   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245     ac_prev=x_libraries ;;
1246   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248     x_libraries=$ac_optarg ;;
1249
1250   -*) { echo "$as_me: error: unrecognized option: $ac_option
1251 Try \`$0 --help' for more information." >&2
1252    { (exit 1); exit 1; }; }
1253     ;;
1254
1255   *=*)
1256     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257     # Reject names that are not valid shell variable names.
1258     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1259       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1260    { (exit 1); exit 1; }; }
1261     eval $ac_envvar=\$ac_optarg
1262     export $ac_envvar ;;
1263
1264   *)
1265     # FIXME: should be removed in autoconf 3.0.
1266     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270     ;;
1271
1272   esac
1273 done
1274
1275 if test -n "$ac_prev"; then
1276   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277   { echo "$as_me: error: missing argument to $ac_option" >&2
1278    { (exit 1); exit 1; }; }
1279 fi
1280
1281 # Be sure to have absolute directory names.
1282 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283                 datadir sysconfdir sharedstatedir localstatedir includedir \
1284                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285                 libdir localedir mandir
1286 do
1287   eval ac_val=\$$ac_var
1288   case $ac_val in
1289     [\\/$]* | ?:[\\/]* )  continue;;
1290     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291   esac
1292   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1293    { (exit 1); exit 1; }; }
1294 done
1295
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1299 build=$build_alias
1300 host=$host_alias
1301 target=$target_alias
1302
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305   if test "x$build_alias" = x; then
1306     cross_compiling=maybe
1307     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1308     If a cross compiler is detected then cross compile mode will be used." >&2
1309   elif test "x$build_alias" != "x$host_alias"; then
1310     cross_compiling=yes
1311   fi
1312 fi
1313
1314 ac_tool_prefix=
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317 test "$silent" = yes && exec 6>/dev/null
1318
1319
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323   { echo "$as_me: error: Working directory cannot be determined" >&2
1324    { (exit 1); exit 1; }; }
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326   { echo "$as_me: error: pwd does not report name of working directory" >&2
1327    { (exit 1); exit 1; }; }
1328
1329
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332   ac_srcdir_defaulted=yes
1333   # Try the directory containing this script, then the parent directory.
1334   ac_confdir=`$as_dirname -- "$0" ||
1335 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336          X"$0" : 'X\(//\)[^/]' \| \
1337          X"$0" : 'X\(//\)$' \| \
1338          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1339 echo X"$0" |
1340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341             s//\1/
1342             q
1343           }
1344           /^X\(\/\/\)[^/].*/{
1345             s//\1/
1346             q
1347           }
1348           /^X\(\/\/\)$/{
1349             s//\1/
1350             q
1351           }
1352           /^X\(\/\).*/{
1353             s//\1/
1354             q
1355           }
1356           s/.*/./; q'`
1357   srcdir=$ac_confdir
1358   if test ! -r "$srcdir/$ac_unique_file"; then
1359     srcdir=..
1360   fi
1361 else
1362   ac_srcdir_defaulted=no
1363 fi
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1367    { (exit 1); exit 1; }; }
1368 fi
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1372    { (exit 1); exit 1; }; }
1373         pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376   srcdir=.
1377 fi
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386   eval ac_env_${ac_var}_value=\$${ac_var}
1387   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1390
1391 #
1392 # Report the --help message.
1393 #
1394 if test "$ac_init_help" = "long"; then
1395   # Omit some internal or obsolete options to make the list less imposing.
1396   # This message is too long to be a string in the A/UX 3.1 sh.
1397   cat <<_ACEOF
1398 \`configure' configures yaml 0.1.1 to adapt to many kinds of systems.
1399
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE.  See below for descriptions of some of the useful variables.
1404
1405 Defaults for the options are specified in brackets.
1406
1407 Configuration:
1408   -h, --help              display this help and exit
1409       --help=short        display options specific to this package
1410       --help=recursive    display the short help of all the included packages
1411   -V, --version           display version information and exit
1412   -q, --quiet, --silent   do not print \`checking...' messages
1413       --cache-file=FILE   cache test results in FILE [disabled]
1414   -C, --config-cache      alias for \`--cache-file=config.cache'
1415   -n, --no-create         do not create output files
1416       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1417
1418 Installation directories:
1419   --prefix=PREFIX         install architecture-independent files in PREFIX
1420                           [$ac_default_prefix]
1421   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1422                           [PREFIX]
1423
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1428
1429 For better control, use the options below.
1430
1431 Fine tuning of the installation directories:
1432   --bindir=DIR           user executables [EPREFIX/bin]
1433   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1434   --libexecdir=DIR       program executables [EPREFIX/libexec]
1435   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1436   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1437   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1438   --libdir=DIR           object code libraries [EPREFIX/lib]
1439   --includedir=DIR       C header files [PREFIX/include]
1440   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1441   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1442   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1443   --infodir=DIR          info documentation [DATAROOTDIR/info]
1444   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1445   --mandir=DIR           man documentation [DATAROOTDIR/man]
1446   --docdir=DIR           documentation root [DATAROOTDIR/doc/yaml]
1447   --htmldir=DIR          html documentation [DOCDIR]
1448   --dvidir=DIR           dvi documentation [DOCDIR]
1449   --pdfdir=DIR           pdf documentation [DOCDIR]
1450   --psdir=DIR            ps documentation [DOCDIR]
1451 _ACEOF
1452
1453   cat <<\_ACEOF
1454
1455 Program names:
1456   --program-prefix=PREFIX            prepend PREFIX to installed program names
1457   --program-suffix=SUFFIX            append SUFFIX to installed program names
1458   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1459
1460 System types:
1461   --build=BUILD     configure for building on BUILD [guessed]
1462   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1463 _ACEOF
1464 fi
1465
1466 if test -n "$ac_init_help"; then
1467   case $ac_init_help in
1468      short | recursive ) echo "Configuration of yaml 0.1.1:";;
1469    esac
1470   cat <<\_ACEOF
1471
1472 Optional Features:
1473   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1474   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1475   --disable-dependency-tracking  speeds up one-time build
1476   --enable-dependency-tracking   do not reject slow dependency extractors
1477   --enable-shared[=PKGS]  build shared libraries [default=yes]
1478   --enable-static[=PKGS]  build static libraries [default=yes]
1479   --enable-fast-install[=PKGS]
1480                           optimize for fast installation [default=yes]
1481   --disable-libtool-lock  avoid locking (might break parallel builds)
1482
1483 Optional Packages:
1484   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1485   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1486   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1487   --with-pic              try to use only PIC/non-PIC objects [default=use
1488                           both]
1489   --with-tags[=TAGS]      include additional configurations [automatic]
1490
1491 Some influential environment variables:
1492   CC          C compiler command
1493   CFLAGS      C compiler flags
1494   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1495               nonstandard directory <lib dir>
1496   LIBS        libraries to pass to the linker, e.g. -l<library>
1497   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498               you have headers in a nonstandard directory <include dir>
1499   CPP         C preprocessor
1500   CXX         C++ compiler command
1501   CXXFLAGS    C++ compiler flags
1502   CXXCPP      C++ preprocessor
1503   F77         Fortran 77 compiler command
1504   FFLAGS      Fortran 77 compiler flags
1505
1506 Use these variables to override the choices made by `configure' or to help
1507 it to find libraries and programs with nonstandard names/locations.
1508
1509 Report bugs to <http://pyyaml.org/newticket?component=libyaml>.
1510 _ACEOF
1511 ac_status=$?
1512 fi
1513
1514 if test "$ac_init_help" = "recursive"; then
1515   # If there are subdirs, report their specific --help.
1516   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517     test -d "$ac_dir" || continue
1518     ac_builddir=.
1519
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *)
1523   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1524   # A ".." for each directory in $ac_dir_suffix.
1525   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526   case $ac_top_builddir_sub in
1527   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529   esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1535
1536 case $srcdir in
1537   .)  # We are building in place.
1538     ac_srcdir=.
1539     ac_top_srcdir=$ac_top_builddir_sub
1540     ac_abs_top_srcdir=$ac_pwd ;;
1541   [\\/]* | ?:[\\/]* )  # Absolute name.
1542     ac_srcdir=$srcdir$ac_dir_suffix;
1543     ac_top_srcdir=$srcdir
1544     ac_abs_top_srcdir=$srcdir ;;
1545   *) # Relative name.
1546     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547     ac_top_srcdir=$ac_top_build_prefix$srcdir
1548     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552     cd "$ac_dir" || { ac_status=$?; continue; }
1553     # Check for guested configure.
1554     if test -f "$ac_srcdir/configure.gnu"; then
1555       echo &&
1556       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557     elif test -f "$ac_srcdir/configure"; then
1558       echo &&
1559       $SHELL "$ac_srcdir/configure" --help=recursive
1560     else
1561       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562     fi || ac_status=$?
1563     cd "$ac_pwd" || { ac_status=$?; break; }
1564   done
1565 fi
1566
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569   cat <<\_ACEOF
1570 yaml configure 0.1.1
1571 generated by GNU Autoconf 2.61
1572
1573 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1574 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1577 _ACEOF
1578   exit
1579 fi
1580 cat >config.log <<_ACEOF
1581 This file contains any messages produced by compilers while
1582 running configure, to aid debugging if configure makes a mistake.
1583
1584 It was created by yaml $as_me 0.1.1, which was
1585 generated by GNU Autoconf 2.61.  Invocation command line was
1586
1587   $ $0 $@
1588
1589 _ACEOF
1590 exec 5>>config.log
1591 {
1592 cat <<_ASUNAME
1593 ## --------- ##
1594 ## Platform. ##
1595 ## --------- ##
1596
1597 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1605
1606 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1607 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1608 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1610 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1611 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1612 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1613
1614 _ASUNAME
1615
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619   IFS=$as_save_IFS
1620   test -z "$as_dir" && as_dir=.
1621   echo "PATH: $as_dir"
1622 done
1623 IFS=$as_save_IFS
1624
1625 } >&5
1626
1627 cat >&5 <<_ACEOF
1628
1629
1630 ## ----------- ##
1631 ## Core tests. ##
1632 ## ----------- ##
1633
1634 _ACEOF
1635
1636
1637 # Keep a trace of the command line.
1638 # Strip out --no-create and --no-recursion so they do not pile up.
1639 # Strip out --silent because we don't want to record it for future runs.
1640 # Also quote any args containing shell meta-characters.
1641 # Make two passes to allow for proper duplicate-argument suppression.
1642 ac_configure_args=
1643 ac_configure_args0=
1644 ac_configure_args1=
1645 ac_must_keep_next=false
1646 for ac_pass in 1 2
1647 do
1648   for ac_arg
1649   do
1650     case $ac_arg in
1651     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653     | -silent | --silent | --silen | --sile | --sil)
1654       continue ;;
1655     *\'*)
1656       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657     esac
1658     case $ac_pass in
1659     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660     2)
1661       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662       if test $ac_must_keep_next = true; then
1663         ac_must_keep_next=false # Got value, back to normal.
1664       else
1665         case $ac_arg in
1666           *=* | --config-cache | -C | -disable-* | --disable-* \
1667           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669           | -with-* | --with-* | -without-* | --without-* | --x)
1670             case "$ac_configure_args0 " in
1671               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672             esac
1673             ;;
1674           -* ) ac_must_keep_next=true ;;
1675         esac
1676       fi
1677       ac_configure_args="$ac_configure_args '$ac_arg'"
1678       ;;
1679     esac
1680   done
1681 done
1682 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
1685 # When interrupted or exit'd, cleanup temporary files, and complete
1686 # config.log.  We remove comments because anyway the quotes in there
1687 # would cause problems or look ugly.
1688 # WARNING: Use '\'' to represent an apostrophe within the trap.
1689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690 trap 'exit_status=$?
1691   # Save into config.log some information that might help in debugging.
1692   {
1693     echo
1694
1695     cat <<\_ASBOX
1696 ## ---------------- ##
1697 ## Cache variables. ##
1698 ## ---------------- ##
1699 _ASBOX
1700     echo
1701     # The following way of writing the cache mishandles newlines in values,
1702 (
1703   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704     eval ac_val=\$$ac_var
1705     case $ac_val in #(
1706     *${as_nl}*)
1707       case $ac_var in #(
1708       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710       esac
1711       case $ac_var in #(
1712       _ | IFS | as_nl) ;; #(
1713       *) $as_unset $ac_var ;;
1714       esac ;;
1715     esac
1716   done
1717   (set) 2>&1 |
1718     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719     *${as_nl}ac_space=\ *)
1720       sed -n \
1721         "s/'\''/'\''\\\\'\'''\''/g;
1722           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723       ;; #(
1724     *)
1725       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1726       ;;
1727     esac |
1728     sort
1729 )
1730     echo
1731
1732     cat <<\_ASBOX
1733 ## ----------------- ##
1734 ## Output variables. ##
1735 ## ----------------- ##
1736 _ASBOX
1737     echo
1738     for ac_var in $ac_subst_vars
1739     do
1740       eval ac_val=\$$ac_var
1741       case $ac_val in
1742       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743       esac
1744       echo "$ac_var='\''$ac_val'\''"
1745     done | sort
1746     echo
1747
1748     if test -n "$ac_subst_files"; then
1749       cat <<\_ASBOX
1750 ## ------------------- ##
1751 ## File substitutions. ##
1752 ## ------------------- ##
1753 _ASBOX
1754       echo
1755       for ac_var in $ac_subst_files
1756       do
1757         eval ac_val=\$$ac_var
1758         case $ac_val in
1759         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760         esac
1761         echo "$ac_var='\''$ac_val'\''"
1762       done | sort
1763       echo
1764     fi
1765
1766     if test -s confdefs.h; then
1767       cat <<\_ASBOX
1768 ## ----------- ##
1769 ## confdefs.h. ##
1770 ## ----------- ##
1771 _ASBOX
1772       echo
1773       cat confdefs.h
1774       echo
1775     fi
1776     test "$ac_signal" != 0 &&
1777       echo "$as_me: caught signal $ac_signal"
1778     echo "$as_me: exit $exit_status"
1779   } >&5
1780   rm -f core *.core core.conftest.* &&
1781     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782     exit $exit_status
1783 ' 0
1784 for ac_signal in 1 2 13 15; do
1785   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786 done
1787 ac_signal=0
1788
1789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1790 rm -f -r conftest* confdefs.h
1791
1792 # Predefined preprocessor variables.
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_NAME "$PACKAGE_NAME"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816 _ACEOF
1817
1818
1819 # Let the site file select an alternate cache file if it wants to.
1820 # Prefer explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822   set x "$CONFIG_SITE"
1823 elif test "x$prefix" != xNONE; then
1824   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825 else
1826   set x "$ac_default_prefix/share/config.site" \
1827         "$ac_default_prefix/etc/config.site"
1828 fi
1829 shift
1830 for ac_site_file
1831 do
1832   if test -r "$ac_site_file"; then
1833     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834 echo "$as_me: loading site script $ac_site_file" >&6;}
1835     sed 's/^/| /' "$ac_site_file" >&5
1836     . "$ac_site_file"
1837   fi
1838 done
1839
1840 if test -r "$cache_file"; then
1841   # Some versions of bash will fail to source /dev/null (special
1842   # files actually), so we avoid doing that.
1843   if test -f "$cache_file"; then
1844     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845 echo "$as_me: loading cache $cache_file" >&6;}
1846     case $cache_file in
1847       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848       *)                      . "./$cache_file";;
1849     esac
1850   fi
1851 else
1852   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853 echo "$as_me: creating cache $cache_file" >&6;}
1854   >$cache_file
1855 fi
1856
1857 # Check that the precious variables saved in the cache have kept the same
1858 # value.
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862   eval ac_new_set=\$ac_env_${ac_var}_set
1863   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864   eval ac_new_val=\$ac_env_${ac_var}_value
1865   case $ac_old_set,$ac_new_set in
1866     set,)
1867       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869       ac_cache_corrupted=: ;;
1870     ,set)
1871       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873       ac_cache_corrupted=: ;;
1874     ,);;
1875     *)
1876       if test "x$ac_old_val" != "x$ac_new_val"; then
1877         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1880 echo "$as_me:   former value:  $ac_old_val" >&2;}
1881         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1882 echo "$as_me:   current value: $ac_new_val" >&2;}
1883         ac_cache_corrupted=:
1884       fi;;
1885   esac
1886   # Pass precious variables to config.status.
1887   if test "$ac_new_set" = set; then
1888     case $ac_new_val in
1889     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890     *) ac_arg=$ac_var=$ac_new_val ;;
1891     esac
1892     case " $ac_configure_args " in
1893       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1894       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895     esac
1896   fi
1897 done
1898 if $ac_cache_corrupted; then
1899   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903    { (exit 1); exit 1; }; }
1904 fi
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930 ac_ext=c
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935
1936
1937 ac_aux_dir=
1938 for ac_dir in config "$srcdir"/config; do
1939   if test -f "$ac_dir/install-sh"; then
1940     ac_aux_dir=$ac_dir
1941     ac_install_sh="$ac_aux_dir/install-sh -c"
1942     break
1943   elif test -f "$ac_dir/install.sh"; then
1944     ac_aux_dir=$ac_dir
1945     ac_install_sh="$ac_aux_dir/install.sh -c"
1946     break
1947   elif test -f "$ac_dir/shtool"; then
1948     ac_aux_dir=$ac_dir
1949     ac_install_sh="$ac_aux_dir/shtool install -c"
1950     break
1951   fi
1952 done
1953 if test -z "$ac_aux_dir"; then
1954   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1956    { (exit 1); exit 1; }; }
1957 fi
1958
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1965 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1966
1967
1968 ac_config_headers="$ac_config_headers config.h"
1969
1970 am__api_version="1.9"
1971 # Find a good install program.  We prefer a C program (faster),
1972 # so one script is as good as another.  But avoid the broken or
1973 # incompatible versions:
1974 # SysV /etc/install, /usr/sbin/install
1975 # SunOS /usr/etc/install
1976 # IRIX /sbin/install
1977 # AIX /bin/install
1978 # AmigaOS /C/install, which installs bootblocks on floppy discs
1979 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1980 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1981 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1982 # OS/2's system install, which has a completely different semantic
1983 # ./install, which can be erroneously created by make from ./install.sh.
1984 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1985 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1986 if test -z "$INSTALL"; then
1987 if test "${ac_cv_path_install+set}" = set; then
1988   echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 for as_dir in $PATH
1992 do
1993   IFS=$as_save_IFS
1994   test -z "$as_dir" && as_dir=.
1995   # Account for people who put trailing slashes in PATH elements.
1996 case $as_dir/ in
1997   ./ | .// | /cC/* | \
1998   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1999   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2000   /usr/ucb/* ) ;;
2001   *)
2002     # OSF1 and SCO ODT 3.0 have their own names for install.
2003     # Don't use installbsd from OSF since it installs stuff as root
2004     # by default.
2005     for ac_prog in ginstall scoinst install; do
2006       for ac_exec_ext in '' $ac_executable_extensions; do
2007         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2008           if test $ac_prog = install &&
2009             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2010             # AIX install.  It has an incompatible calling convention.
2011             :
2012           elif test $ac_prog = install &&
2013             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2014             # program-specific install script used by HP pwplus--don't use.
2015             :
2016           else
2017             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2018             break 3
2019           fi
2020         fi
2021       done
2022     done
2023     ;;
2024 esac
2025 done
2026 IFS=$as_save_IFS
2027
2028
2029 fi
2030   if test "${ac_cv_path_install+set}" = set; then
2031     INSTALL=$ac_cv_path_install
2032   else
2033     # As a last resort, use the slow shell script.  Don't cache a
2034     # value for INSTALL within a source directory, because that will
2035     # break other packages using the cache if that directory is
2036     # removed, or if the value is a relative name.
2037     INSTALL=$ac_install_sh
2038   fi
2039 fi
2040 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2041 echo "${ECHO_T}$INSTALL" >&6; }
2042
2043 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2044 # It thinks the first close brace ends the variable substitution.
2045 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2046
2047 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2048
2049 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2050
2051 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2052 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2053 # Just in case
2054 sleep 1
2055 echo timestamp > conftest.file
2056 # Do `set' in a subshell so we don't clobber the current shell's
2057 # arguments.  Must try -L first in case configure is actually a
2058 # symlink; some systems play weird games with the mod time of symlinks
2059 # (eg FreeBSD returns the mod time of the symlink's containing
2060 # directory).
2061 if (
2062    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2063    if test "$*" = "X"; then
2064       # -L didn't work.
2065       set X `ls -t $srcdir/configure conftest.file`
2066    fi
2067    rm -f conftest.file
2068    if test "$*" != "X $srcdir/configure conftest.file" \
2069       && test "$*" != "X conftest.file $srcdir/configure"; then
2070
2071       # If neither matched, then we have a broken ls.  This can happen
2072       # if, for instance, CONFIG_SHELL is bash and it inherits a
2073       # broken ls alias from the environment.  This has actually
2074       # happened.  Such a system could not be considered "sane".
2075       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2076 alias in your environment" >&5
2077 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2078 alias in your environment" >&2;}
2079    { (exit 1); exit 1; }; }
2080    fi
2081
2082    test "$2" = conftest.file
2083    )
2084 then
2085    # Ok.
2086    :
2087 else
2088    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2089 Check your system clock" >&5
2090 echo "$as_me: error: newly created file is older than distributed files!
2091 Check your system clock" >&2;}
2092    { (exit 1); exit 1; }; }
2093 fi
2094 { echo "$as_me:$LINENO: result: yes" >&5
2095 echo "${ECHO_T}yes" >&6; }
2096 test "$program_prefix" != NONE &&
2097   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2098 # Use a double $ so make ignores it.
2099 test "$program_suffix" != NONE &&
2100   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2101 # Double any \ or $.  echo might interpret backslashes.
2102 # By default was `s,x,x', remove it if useless.
2103 cat <<\_ACEOF >conftest.sed
2104 s/[\\$]/&&/g;s/;s,x,x,$//
2105 _ACEOF
2106 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2107 rm -f conftest.sed
2108
2109 # expand $ac_aux_dir to an absolute path
2110 am_aux_dir=`cd $ac_aux_dir && pwd`
2111
2112 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2113 # Use eval to expand $SHELL
2114 if eval "$MISSING --run true"; then
2115   am_missing_run="$MISSING --run "
2116 else
2117   am_missing_run=
2118   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2119 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2120 fi
2121
2122 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2123   # We used to keeping the `.' as first argument, in order to
2124   # allow $(mkdir_p) to be used without argument.  As in
2125   #   $(mkdir_p) $(somedir)
2126   # where $(somedir) is conditionally defined.  However this is wrong
2127   # for two reasons:
2128   #  1. if the package is installed by a user who cannot write `.'
2129   #     make install will fail,
2130   #  2. the above comment should most certainly read
2131   #     $(mkdir_p) $(DESTDIR)$(somedir)
2132   #     so it does not work when $(somedir) is undefined and
2133   #     $(DESTDIR) is not.
2134   #  To support the latter case, we have to write
2135   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2136   #  so the `.' trick is pointless.
2137   mkdir_p='mkdir -p --'
2138 else
2139   # On NextStep and OpenStep, the `mkdir' command does not
2140   # recognize any option.  It will interpret all options as
2141   # directories to create, and then abort because `.' already
2142   # exists.
2143   for d in ./-p ./--version;
2144   do
2145     test -d $d && rmdir $d
2146   done
2147   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2148   if test -f "$ac_aux_dir/mkinstalldirs"; then
2149     mkdir_p='$(mkinstalldirs)'
2150   else
2151     mkdir_p='$(install_sh) -d'
2152   fi
2153 fi
2154
2155 for ac_prog in gawk mawk nawk awk
2156 do
2157   # Extract the first word of "$ac_prog", so it can be a program name with args.
2158 set dummy $ac_prog; ac_word=$2
2159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2161 if test "${ac_cv_prog_AWK+set}" = set; then
2162   echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164   if test -n "$AWK"; then
2165   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2166 else
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 for as_dir in $PATH
2169 do
2170   IFS=$as_save_IFS
2171   test -z "$as_dir" && as_dir=.
2172   for ac_exec_ext in '' $ac_executable_extensions; do
2173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2174     ac_cv_prog_AWK="$ac_prog"
2175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176     break 2
2177   fi
2178 done
2179 done
2180 IFS=$as_save_IFS
2181
2182 fi
2183 fi
2184 AWK=$ac_cv_prog_AWK
2185 if test -n "$AWK"; then
2186   { echo "$as_me:$LINENO: result: $AWK" >&5
2187 echo "${ECHO_T}$AWK" >&6; }
2188 else
2189   { echo "$as_me:$LINENO: result: no" >&5
2190 echo "${ECHO_T}no" >&6; }
2191 fi
2192
2193
2194   test -n "$AWK" && break
2195 done
2196
2197 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2198 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2199 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2200 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2201   echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203   cat >conftest.make <<\_ACEOF
2204 SHELL = /bin/sh
2205 all:
2206         @echo '@@@%%%=$(MAKE)=@@@%%%'
2207 _ACEOF
2208 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2209 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2210   *@@@%%%=?*=@@@%%%*)
2211     eval ac_cv_prog_make_${ac_make}_set=yes;;
2212   *)
2213     eval ac_cv_prog_make_${ac_make}_set=no;;
2214 esac
2215 rm -f conftest.make
2216 fi
2217 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2218   { echo "$as_me:$LINENO: result: yes" >&5
2219 echo "${ECHO_T}yes" >&6; }
2220   SET_MAKE=
2221 else
2222   { echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6; }
2224   SET_MAKE="MAKE=${MAKE-make}"
2225 fi
2226
2227 rm -rf .tst 2>/dev/null
2228 mkdir .tst 2>/dev/null
2229 if test -d .tst; then
2230   am__leading_dot=.
2231 else
2232   am__leading_dot=_
2233 fi
2234 rmdir .tst 2>/dev/null
2235
2236 # test to see if srcdir already configured
2237 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2238    test -f $srcdir/config.status; then
2239   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2240 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2241    { (exit 1); exit 1; }; }
2242 fi
2243
2244 # test whether we have cygpath
2245 if test -z "$CYGPATH_W"; then
2246   if (cygpath --version) >/dev/null 2>/dev/null; then
2247     CYGPATH_W='cygpath -w'
2248   else
2249     CYGPATH_W=echo
2250   fi
2251 fi
2252
2253
2254 # Define the identity of the package.
2255  PACKAGE='yaml'
2256  VERSION='0.1.1'
2257
2258
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE "$PACKAGE"
2261 _ACEOF
2262
2263
2264 cat >>confdefs.h <<_ACEOF
2265 #define VERSION "$VERSION"
2266 _ACEOF
2267
2268 # Some tools Automake needs.
2269
2270 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2271
2272
2273 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2274
2275
2276 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2277
2278
2279 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2280
2281
2282 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2283
2284 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2285
2286 # Installed binaries are usually stripped using `strip' when the user
2287 # run `make install-strip'.  However `strip' might not be the right
2288 # tool to use in cross-compilation environments, therefore Automake
2289 # will honor the `STRIP' environment variable to overrule this program.
2290 if test "$cross_compiling" != no; then
2291   if test -n "$ac_tool_prefix"; then
2292   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2293 set dummy ${ac_tool_prefix}strip; ac_word=$2
2294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2296 if test "${ac_cv_prog_STRIP+set}" = set; then
2297   echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299   if test -n "$STRIP"; then
2300   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2301 else
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2304 do
2305   IFS=$as_save_IFS
2306   test -z "$as_dir" && as_dir=.
2307   for ac_exec_ext in '' $ac_executable_extensions; do
2308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2309     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311     break 2
2312   fi
2313 done
2314 done
2315 IFS=$as_save_IFS
2316
2317 fi
2318 fi
2319 STRIP=$ac_cv_prog_STRIP
2320 if test -n "$STRIP"; then
2321   { echo "$as_me:$LINENO: result: $STRIP" >&5
2322 echo "${ECHO_T}$STRIP" >&6; }
2323 else
2324   { echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6; }
2326 fi
2327
2328
2329 fi
2330 if test -z "$ac_cv_prog_STRIP"; then
2331   ac_ct_STRIP=$STRIP
2332   # Extract the first word of "strip", so it can be a program name with args.
2333 set dummy strip; ac_word=$2
2334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2337   echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339   if test -n "$ac_ct_STRIP"; then
2340   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345   IFS=$as_save_IFS
2346   test -z "$as_dir" && as_dir=.
2347   for ac_exec_ext in '' $ac_executable_extensions; do
2348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349     ac_cv_prog_ac_ct_STRIP="strip"
2350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351     break 2
2352   fi
2353 done
2354 done
2355 IFS=$as_save_IFS
2356
2357 fi
2358 fi
2359 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2360 if test -n "$ac_ct_STRIP"; then
2361   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2362 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2363 else
2364   { echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6; }
2366 fi
2367
2368   if test "x$ac_ct_STRIP" = x; then
2369     STRIP=":"
2370   else
2371     case $cross_compiling:$ac_tool_warned in
2372 yes:)
2373 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2374 whose name does not start with the host triplet.  If you think this
2375 configuration is useful to you, please write to autoconf@gnu.org." >&5
2376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2377 whose name does not start with the host triplet.  If you think this
2378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2379 ac_tool_warned=yes ;;
2380 esac
2381     STRIP=$ac_ct_STRIP
2382   fi
2383 else
2384   STRIP="$ac_cv_prog_STRIP"
2385 fi
2386
2387 fi
2388 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2389
2390 # We need awk for the "check" target.  The system "awk" is bad on
2391 # some platforms.
2392 # Always define AMTAR for backward compatibility.
2393
2394 AMTAR=${AMTAR-"${am_missing_run}tar"}
2395
2396 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2397
2398
2399
2400
2401
2402
2403 # Define macro variables for the package version numbers.
2404
2405 cat >>confdefs.h <<\_ACEOF
2406 #define YAML_VERSION_MAJOR 0
2407 _ACEOF
2408
2409
2410 cat >>confdefs.h <<\_ACEOF
2411 #define YAML_VERSION_MINOR 1
2412 _ACEOF
2413
2414
2415 cat >>confdefs.h <<\_ACEOF
2416 #define YAML_VERSION_PATCH 1
2417 _ACEOF
2418
2419
2420 cat >>confdefs.h <<\_ACEOF
2421 #define YAML_VERSION_STRING "0.1.1"
2422 _ACEOF
2423
2424
2425 # Define substitutions for the libtool version numbers.
2426 YAML_LT_RELEASE=0
2427 YAML_LT_CURRENT=1
2428 YAML_LT_REVISION=0
2429 YAML_LT_AGE=0
2430
2431
2432
2433
2434
2435 # Note: in order to update checks, run `autoscan` and look through "configure.scan".
2436
2437 # Checks for programs.
2438 ac_ext=c
2439 ac_cpp='$CPP $CPPFLAGS'
2440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2443 if test -n "$ac_tool_prefix"; then
2444   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2445 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448 if test "${ac_cv_prog_CC+set}" = set; then
2449   echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451   if test -n "$CC"; then
2452   ac_cv_prog_CC="$CC" # Let the user override the test.
2453 else
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2456 do
2457   IFS=$as_save_IFS
2458   test -z "$as_dir" && as_dir=.
2459   for ac_exec_ext in '' $ac_executable_extensions; do
2460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2461     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463     break 2
2464   fi
2465 done
2466 done
2467 IFS=$as_save_IFS
2468
2469 fi
2470 fi
2471 CC=$ac_cv_prog_CC
2472 if test -n "$CC"; then
2473   { echo "$as_me:$LINENO: result: $CC" >&5
2474 echo "${ECHO_T}$CC" >&6; }
2475 else
2476   { echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6; }
2478 fi
2479
2480
2481 fi
2482 if test -z "$ac_cv_prog_CC"; then
2483   ac_ct_CC=$CC
2484   # Extract the first word of "gcc", so it can be a program name with args.
2485 set dummy gcc; ac_word=$2
2486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2488 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   if test -n "$ac_ct_CC"; then
2492   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2496 do
2497   IFS=$as_save_IFS
2498   test -z "$as_dir" && as_dir=.
2499   for ac_exec_ext in '' $ac_executable_extensions; do
2500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2501     ac_cv_prog_ac_ct_CC="gcc"
2502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503     break 2
2504   fi
2505 done
2506 done
2507 IFS=$as_save_IFS
2508
2509 fi
2510 fi
2511 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2512 if test -n "$ac_ct_CC"; then
2513   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2514 echo "${ECHO_T}$ac_ct_CC" >&6; }
2515 else
2516   { echo "$as_me:$LINENO: result: no" >&5
2517 echo "${ECHO_T}no" >&6; }
2518 fi
2519
2520   if test "x$ac_ct_CC" = x; then
2521     CC=""
2522   else
2523     case $cross_compiling:$ac_tool_warned in
2524 yes:)
2525 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2526 whose name does not start with the host triplet.  If you think this
2527 configuration is useful to you, please write to autoconf@gnu.org." >&5
2528 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2529 whose name does not start with the host triplet.  If you think this
2530 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2531 ac_tool_warned=yes ;;
2532 esac
2533     CC=$ac_ct_CC
2534   fi
2535 else
2536   CC="$ac_cv_prog_CC"
2537 fi
2538
2539 if test -z "$CC"; then
2540           if test -n "$ac_tool_prefix"; then
2541     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2542 set dummy ${ac_tool_prefix}cc; ac_word=$2
2543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2545 if test "${ac_cv_prog_CC+set}" = set; then
2546   echo $ECHO_N "(cached) $ECHO_C" >&6
2547 else
2548   if test -n "$CC"; then
2549   ac_cv_prog_CC="$CC" # Let the user override the test.
2550 else
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2553 do
2554   IFS=$as_save_IFS
2555   test -z "$as_dir" && as_dir=.
2556   for ac_exec_ext in '' $ac_executable_extensions; do
2557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558     ac_cv_prog_CC="${ac_tool_prefix}cc"
2559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560     break 2
2561   fi
2562 done
2563 done
2564 IFS=$as_save_IFS
2565
2566 fi
2567 fi
2568 CC=$ac_cv_prog_CC
2569 if test -n "$CC"; then
2570   { echo "$as_me:$LINENO: result: $CC" >&5
2571 echo "${ECHO_T}$CC" >&6; }
2572 else
2573   { echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6; }
2575 fi
2576
2577
2578   fi
2579 fi
2580 if test -z "$CC"; then
2581   # Extract the first word of "cc", so it can be a program name with args.
2582 set dummy cc; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_CC+set}" = set; then
2586   echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588   if test -n "$CC"; then
2589   ac_cv_prog_CC="$CC" # Let the user override the test.
2590 else
2591   ac_prog_rejected=no
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595   IFS=$as_save_IFS
2596   test -z "$as_dir" && as_dir=.
2597   for ac_exec_ext in '' $ac_executable_extensions; do
2598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2600        ac_prog_rejected=yes
2601        continue
2602      fi
2603     ac_cv_prog_CC="cc"
2604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605     break 2
2606   fi
2607 done
2608 done
2609 IFS=$as_save_IFS
2610
2611 if test $ac_prog_rejected = yes; then
2612   # We found a bogon in the path, so make sure we never use it.
2613   set dummy $ac_cv_prog_CC
2614   shift
2615   if test $# != 0; then
2616     # We chose a different compiler from the bogus one.
2617     # However, it has the same basename, so the bogon will be chosen
2618     # first if we set CC to just the basename; use the full file name.
2619     shift
2620     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2621   fi
2622 fi
2623 fi
2624 fi
2625 CC=$ac_cv_prog_CC
2626 if test -n "$CC"; then
2627   { echo "$as_me:$LINENO: result: $CC" >&5
2628 echo "${ECHO_T}$CC" >&6; }
2629 else
2630   { echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6; }
2632 fi
2633
2634
2635 fi
2636 if test -z "$CC"; then
2637   if test -n "$ac_tool_prefix"; then
2638   for ac_prog in cl.exe
2639   do
2640     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2644 if test "${ac_cv_prog_CC+set}" = set; then
2645   echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647   if test -n "$CC"; then
2648   ac_cv_prog_CC="$CC" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655   for ac_exec_ext in '' $ac_executable_extensions; do
2656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659     break 2
2660   fi
2661 done
2662 done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 CC=$ac_cv_prog_CC
2668 if test -n "$CC"; then
2669   { echo "$as_me:$LINENO: result: $CC" >&5
2670 echo "${ECHO_T}$CC" >&6; }
2671 else
2672   { echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6; }
2674 fi
2675
2676
2677     test -n "$CC" && break
2678   done
2679 fi
2680 if test -z "$CC"; then
2681   ac_ct_CC=$CC
2682   for ac_prog in cl.exe
2683 do
2684   # Extract the first word of "$ac_prog", so it can be a program name with args.
2685 set dummy $ac_prog; ac_word=$2
2686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2689   echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691   if test -n "$ac_ct_CC"; then
2692   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697   IFS=$as_save_IFS
2698   test -z "$as_dir" && as_dir=.
2699   for ac_exec_ext in '' $ac_executable_extensions; do
2700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701     ac_cv_prog_ac_ct_CC="$ac_prog"
2702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703     break 2
2704   fi
2705 done
2706 done
2707 IFS=$as_save_IFS
2708
2709 fi
2710 fi
2711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2712 if test -n "$ac_ct_CC"; then
2713   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2714 echo "${ECHO_T}$ac_ct_CC" >&6; }
2715 else
2716   { echo "$as_me:$LINENO: result: no" >&5
2717 echo "${ECHO_T}no" >&6; }
2718 fi
2719
2720
2721   test -n "$ac_ct_CC" && break
2722 done
2723
2724   if test "x$ac_ct_CC" = x; then
2725     CC=""
2726   else
2727     case $cross_compiling:$ac_tool_warned in
2728 yes:)
2729 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2730 whose name does not start with the host triplet.  If you think this
2731 configuration is useful to you, please write to autoconf@gnu.org." >&5
2732 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2733 whose name does not start with the host triplet.  If you think this
2734 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2735 ac_tool_warned=yes ;;
2736 esac
2737     CC=$ac_ct_CC
2738   fi
2739 fi
2740
2741 fi
2742
2743
2744 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2745 See \`config.log' for more details." >&5
2746 echo "$as_me: error: no acceptable C compiler found in \$PATH
2747 See \`config.log' for more details." >&2;}
2748    { (exit 1); exit 1; }; }
2749
2750 # Provide some information about the compiler.
2751 echo "$as_me:$LINENO: checking for C compiler version" >&5
2752 ac_compiler=`set X $ac_compile; echo $2`
2753 { (ac_try="$ac_compiler --version >&5"
2754 case "(($ac_try" in
2755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756   *) ac_try_echo=$ac_try;;
2757 esac
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759   (eval "$ac_compiler --version >&5") 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }
2763 { (ac_try="$ac_compiler -v >&5"
2764 case "(($ac_try" in
2765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766   *) ac_try_echo=$ac_try;;
2767 esac
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769   (eval "$ac_compiler -v >&5") 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); }
2773 { (ac_try="$ac_compiler -V >&5"
2774 case "(($ac_try" in
2775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776   *) ac_try_echo=$ac_try;;
2777 esac
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779   (eval "$ac_compiler -V >&5") 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); }
2783
2784 cat >conftest.$ac_ext <<_ACEOF
2785 /* confdefs.h.  */
2786 _ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h.  */
2790
2791 int
2792 main ()
2793 {
2794
2795   ;
2796   return 0;
2797 }
2798 _ACEOF
2799 ac_clean_files_save=$ac_clean_files
2800 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2801 # Try to create an executable without -o first, disregard a.out.
2802 # It will help us diagnose broken compilers, and finding out an intuition
2803 # of exeext.
2804 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2805 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2806 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2807 #
2808 # List of possible output files, starting from the most likely.
2809 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2810 # only as a last resort.  b.out is created by i960 compilers.
2811 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2812 #
2813 # The IRIX 6 linker writes into existing files which may not be
2814 # executable, retaining their permissions.  Remove them first so a
2815 # subsequent execution test works.
2816 ac_rmfiles=
2817 for ac_file in $ac_files
2818 do
2819   case $ac_file in
2820     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2821     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2822   esac
2823 done
2824 rm -f $ac_rmfiles
2825
2826 if { (ac_try="$ac_link_default"
2827 case "(($ac_try" in
2828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829   *) ac_try_echo=$ac_try;;
2830 esac
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832   (eval "$ac_link_default") 2>&5
2833   ac_status=$?
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); }; then
2836   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2837 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2838 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2839 # so that the user can short-circuit this test for compilers unknown to
2840 # Autoconf.
2841 for ac_file in $ac_files ''
2842 do
2843   test -f "$ac_file" || continue
2844   case $ac_file in
2845     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2846         ;;
2847     [ab].out )
2848         # We found the default executable, but exeext='' is most
2849         # certainly right.
2850         break;;
2851     *.* )
2852         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2853         then :; else
2854            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2855         fi
2856         # We set ac_cv_exeext here because the later test for it is not
2857         # safe: cross compilers may not add the suffix if given an `-o'
2858         # argument, so we may need to know it at that point already.
2859         # Even if this section looks crufty: it has the advantage of
2860         # actually working.
2861         break;;
2862     * )
2863         break;;
2864   esac
2865 done
2866 test "$ac_cv_exeext" = no && ac_cv_exeext=
2867
2868 else
2869   ac_file=''
2870 fi
2871
2872 { echo "$as_me:$LINENO: result: $ac_file" >&5
2873 echo "${ECHO_T}$ac_file" >&6; }
2874 if test -z "$ac_file"; then
2875   echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.$ac_ext >&5
2877
2878 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2879 See \`config.log' for more details." >&5
2880 echo "$as_me: error: C compiler cannot create executables
2881 See \`config.log' for more details." >&2;}
2882    { (exit 77); exit 77; }; }
2883 fi
2884
2885 ac_exeext=$ac_cv_exeext
2886
2887 # Check that the compiler produces executables we can run.  If not, either
2888 # the compiler is broken, or we cross compile.
2889 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2890 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2891 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2892 # If not cross compiling, check that we can run a simple program.
2893 if test "$cross_compiling" != yes; then
2894   if { ac_try='./$ac_file'
2895   { (case "(($ac_try" in
2896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897   *) ac_try_echo=$ac_try;;
2898 esac
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900   (eval "$ac_try") 2>&5
2901   ac_status=$?
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); }; }; then
2904     cross_compiling=no
2905   else
2906     if test "$cross_compiling" = maybe; then
2907         cross_compiling=yes
2908     else
2909         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2910 If you meant to cross compile, use \`--host'.
2911 See \`config.log' for more details." >&5
2912 echo "$as_me: error: cannot run C compiled programs.
2913 If you meant to cross compile, use \`--host'.
2914 See \`config.log' for more details." >&2;}
2915    { (exit 1); exit 1; }; }
2916     fi
2917   fi
2918 fi
2919 { echo "$as_me:$LINENO: result: yes" >&5
2920 echo "${ECHO_T}yes" >&6; }
2921
2922 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2923 ac_clean_files=$ac_clean_files_save
2924 # Check that the compiler produces executables we can run.  If not, either
2925 # the compiler is broken, or we cross compile.
2926 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2927 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2928 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2929 echo "${ECHO_T}$cross_compiling" >&6; }
2930
2931 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2932 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2933 if { (ac_try="$ac_link"
2934 case "(($ac_try" in
2935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936   *) ac_try_echo=$ac_try;;
2937 esac
2938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939   (eval "$ac_link") 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); }; then
2943   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2944 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2945 # work properly (i.e., refer to `conftest.exe'), while it won't with
2946 # `rm'.
2947 for ac_file in conftest.exe conftest conftest.*; do
2948   test -f "$ac_file" || continue
2949   case $ac_file in
2950     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2951     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2952           break;;
2953     * ) break;;
2954   esac
2955 done
2956 else
2957   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2958 See \`config.log' for more details." >&5
2959 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2960 See \`config.log' for more details." >&2;}
2961    { (exit 1); exit 1; }; }
2962 fi
2963
2964 rm -f conftest$ac_cv_exeext
2965 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2966 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2967
2968 rm -f conftest.$ac_ext
2969 EXEEXT=$ac_cv_exeext
2970 ac_exeext=$EXEEXT
2971 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2972 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2973 if test "${ac_cv_objext+set}" = set; then
2974   echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976   cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h.  */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h.  */
2982
2983 int
2984 main ()
2985 {
2986
2987   ;
2988   return 0;
2989 }
2990 _ACEOF
2991 rm -f conftest.o conftest.obj
2992 if { (ac_try="$ac_compile"
2993 case "(($ac_try" in
2994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995   *) ac_try_echo=$ac_try;;
2996 esac
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998   (eval "$ac_compile") 2>&5
2999   ac_status=$?
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); }; then
3002   for ac_file in conftest.o conftest.obj conftest.*; do
3003   test -f "$ac_file" || continue;
3004   case $ac_file in
3005     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3006     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3007        break;;
3008   esac
3009 done
3010 else
3011   echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3013
3014 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3015 See \`config.log' for more details." >&5
3016 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3017 See \`config.log' for more details." >&2;}
3018    { (exit 1); exit 1; }; }
3019 fi
3020
3021 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3022 fi
3023 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3024 echo "${ECHO_T}$ac_cv_objext" >&6; }
3025 OBJEXT=$ac_cv_objext
3026 ac_objext=$OBJEXT
3027 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3028 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3029 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3030   echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032   cat >conftest.$ac_ext <<_ACEOF
3033 /* confdefs.h.  */
3034 _ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h.  */
3038
3039 int
3040 main ()
3041 {
3042 #ifndef __GNUC__
3043        choke me
3044 #endif
3045
3046   ;
3047   return 0;
3048 }
3049 _ACEOF
3050 rm -f conftest.$ac_objext
3051 if { (ac_try="$ac_compile"
3052 case "(($ac_try" in
3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054   *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057   (eval "$ac_compile") 2>conftest.er1
3058   ac_status=$?
3059   grep -v '^ *+' conftest.er1 >conftest.err
3060   rm -f conftest.er1
3061   cat conftest.err >&5
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); } && {
3064          test -z "$ac_c_werror_flag" ||
3065          test ! -s conftest.err
3066        } && test -s conftest.$ac_objext; then
3067   ac_compiler_gnu=yes
3068 else
3069   echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3071
3072         ac_compiler_gnu=no
3073 fi
3074
3075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3077
3078 fi
3079 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3080 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3081 GCC=`test $ac_compiler_gnu = yes && echo yes`
3082 ac_test_CFLAGS=${CFLAGS+set}
3083 ac_save_CFLAGS=$CFLAGS
3084 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3085 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3086 if test "${ac_cv_prog_cc_g+set}" = set; then
3087   echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089   ac_save_c_werror_flag=$ac_c_werror_flag
3090    ac_c_werror_flag=yes
3091    ac_cv_prog_cc_g=no
3092    CFLAGS="-g"
3093    cat >conftest.$ac_ext <<_ACEOF
3094 /* confdefs.h.  */
3095 _ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h.  */
3099
3100 int
3101 main ()
3102 {
3103
3104   ;
3105   return 0;
3106 }
3107 _ACEOF
3108 rm -f conftest.$ac_objext
3109 if { (ac_try="$ac_compile"
3110 case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115   (eval "$ac_compile") 2>conftest.er1
3116   ac_status=$?
3117   grep -v '^ *+' conftest.er1 >conftest.err
3118   rm -f conftest.er1
3119   cat conftest.err >&5
3120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); } && {
3122          test -z "$ac_c_werror_flag" ||
3123          test ! -s conftest.err
3124        } && test -s conftest.$ac_objext; then
3125   ac_cv_prog_cc_g=yes
3126 else
3127   echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3129
3130         CFLAGS=""
3131       cat >conftest.$ac_ext <<_ACEOF
3132 /* confdefs.h.  */
3133 _ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h.  */
3137
3138 int
3139 main ()
3140 {
3141
3142   ;
3143   return 0;
3144 }
3145 _ACEOF
3146 rm -f conftest.$ac_objext
3147 if { (ac_try="$ac_compile"
3148 case "(($ac_try" in
3149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150   *) ac_try_echo=$ac_try;;
3151 esac
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153   (eval "$ac_compile") 2>conftest.er1
3154   ac_status=$?
3155   grep -v '^ *+' conftest.er1 >conftest.err
3156   rm -f conftest.er1
3157   cat conftest.err >&5
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); } && {
3160          test -z "$ac_c_werror_flag" ||
3161          test ! -s conftest.err
3162        } && test -s conftest.$ac_objext; then
3163   :
3164 else
3165   echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3167
3168         ac_c_werror_flag=$ac_save_c_werror_flag
3169          CFLAGS="-g"
3170          cat >conftest.$ac_ext <<_ACEOF
3171 /* confdefs.h.  */
3172 _ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h.  */
3176
3177 int
3178 main ()
3179 {
3180
3181   ;
3182   return 0;
3183 }
3184 _ACEOF
3185 rm -f conftest.$ac_objext
3186 if { (ac_try="$ac_compile"
3187 case "(($ac_try" in
3188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189   *) ac_try_echo=$ac_try;;
3190 esac
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192   (eval "$ac_compile") 2>conftest.er1
3193   ac_status=$?
3194   grep -v '^ *+' conftest.er1 >conftest.err
3195   rm -f conftest.er1
3196   cat conftest.err >&5
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); } && {
3199          test -z "$ac_c_werror_flag" ||
3200          test ! -s conftest.err
3201        } && test -s conftest.$ac_objext; then
3202   ac_cv_prog_cc_g=yes
3203 else
3204   echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3206
3207
3208 fi
3209
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 fi
3212
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 fi
3215
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217    ac_c_werror_flag=$ac_save_c_werror_flag
3218 fi
3219 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3220 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3221 if test "$ac_test_CFLAGS" = set; then
3222   CFLAGS=$ac_save_CFLAGS
3223 elif test $ac_cv_prog_cc_g = yes; then
3224   if test "$GCC" = yes; then
3225     CFLAGS="-g -O2"
3226   else
3227     CFLAGS="-g"
3228   fi
3229 else
3230   if test "$GCC" = yes; then
3231     CFLAGS="-O2"
3232   else
3233     CFLAGS=
3234   fi
3235 fi
3236 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3237 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3238 if test "${ac_cv_prog_cc_c89+set}" = set; then
3239   echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241   ac_cv_prog_cc_c89=no
3242 ac_save_CC=$CC
3243 cat >conftest.$ac_ext <<_ACEOF
3244 /* confdefs.h.  */
3245 _ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h.  */
3249 #include <stdarg.h>
3250 #include <stdio.h>
3251 #include <sys/types.h>
3252 #include <sys/stat.h>
3253 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3254 struct buf { int x; };
3255 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3256 static char *e (p, i)
3257      char **p;
3258      int i;
3259 {
3260   return p[i];
3261 }
3262 static char *f (char * (*g) (char **, int), char **p, ...)
3263 {
3264   char *s;
3265   va_list v;
3266   va_start (v,p);
3267   s = g (p, va_arg (v,int));
3268   va_end (v);
3269   return s;
3270 }
3271
3272 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3273    function prototypes and stuff, but not '\xHH' hex character constants.
3274    These don't provoke an error unfortunately, instead are silently treated
3275    as 'x'.  The following induces an error, until -std is added to get
3276    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3277    array size at least.  It's necessary to write '\x00'==0 to get something
3278    that's true only with -std.  */
3279 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3280
3281 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3282    inside strings and character constants.  */
3283 #define FOO(x) 'x'
3284 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3285
3286 int test (int i, double x);
3287 struct s1 {int (*f) (int a);};
3288 struct s2 {int (*f) (double a);};
3289 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3290 int argc;
3291 char **argv;
3292 int
3293 main ()
3294 {
3295 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3296   ;
3297   return 0;
3298 }
3299 _ACEOF
3300 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3301         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3302 do
3303   CC="$ac_save_CC $ac_arg"
3304   rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3306 case "(($ac_try" in
3307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308   *) ac_try_echo=$ac_try;;
3309 esac
3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311   (eval "$ac_compile") 2>conftest.er1
3312   ac_status=$?
3313   grep -v '^ *+' conftest.er1 >conftest.err
3314   rm -f conftest.er1
3315   cat conftest.err >&5
3316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317   (exit $ac_status); } && {
3318          test -z "$ac_c_werror_flag" ||
3319          test ! -s conftest.err
3320        } && test -s conftest.$ac_objext; then
3321   ac_cv_prog_cc_c89=$ac_arg
3322 else
3323   echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326
3327 fi
3328
3329 rm -f core conftest.err conftest.$ac_objext
3330   test "x$ac_cv_prog_cc_c89" != "xno" && break
3331 done
3332 rm -f conftest.$ac_ext
3333 CC=$ac_save_CC
3334
3335 fi
3336 # AC_CACHE_VAL
3337 case "x$ac_cv_prog_cc_c89" in
3338   x)
3339     { echo "$as_me:$LINENO: result: none needed" >&5
3340 echo "${ECHO_T}none needed" >&6; } ;;
3341   xno)
3342     { echo "$as_me:$LINENO: result: unsupported" >&5
3343 echo "${ECHO_T}unsupported" >&6; } ;;
3344   *)
3345     CC="$CC $ac_cv_prog_cc_c89"
3346     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3347 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3348 esac
3349
3350
3351 ac_ext=c
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356 DEPDIR="${am__leading_dot}deps"
3357
3358 ac_config_commands="$ac_config_commands depfiles"
3359
3360
3361 am_make=${MAKE-make}
3362 cat > confinc << 'END'
3363 am__doit:
3364         @echo done
3365 .PHONY: am__doit
3366 END
3367 # If we don't find an include directive, just comment out the code.
3368 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3369 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3370 am__include="#"
3371 am__quote=
3372 _am_result=none
3373 # First try GNU make style include.
3374 echo "include confinc" > confmf
3375 # We grep out `Entering directory' and `Leaving directory'
3376 # messages which can occur if `w' ends up in MAKEFLAGS.
3377 # In particular we don't look at `^make:' because GNU make might
3378 # be invoked under some other name (usually "gmake"), in which
3379 # case it prints its new name instead of `make'.
3380 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3381    am__include=include
3382    am__quote=
3383    _am_result=GNU
3384 fi
3385 # Now try BSD make style include.
3386 if test "$am__include" = "#"; then
3387    echo '.include "confinc"' > confmf
3388    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3389       am__include=.include
3390       am__quote="\""
3391       _am_result=BSD
3392    fi
3393 fi
3394
3395
3396 { echo "$as_me:$LINENO: result: $_am_result" >&5
3397 echo "${ECHO_T}$_am_result" >&6; }
3398 rm -f confinc confmf
3399
3400 # Check whether --enable-dependency-tracking was given.
3401 if test "${enable_dependency_tracking+set}" = set; then
3402   enableval=$enable_dependency_tracking;
3403 fi
3404
3405 if test "x$enable_dependency_tracking" != xno; then
3406   am_depcomp="$ac_aux_dir/depcomp"
3407   AMDEPBACKSLASH='\'
3408 fi
3409
3410
3411 if test "x$enable_dependency_tracking" != xno; then
3412   AMDEP_TRUE=
3413   AMDEP_FALSE='#'
3414 else
3415   AMDEP_TRUE='#'
3416   AMDEP_FALSE=
3417 fi
3418
3419
3420
3421
3422 depcc="$CC"   am_compiler_list=
3423
3424 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3425 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3426 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3427   echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3430   # We make a subdir and do the tests there.  Otherwise we can end up
3431   # making bogus files that we don't know about and never remove.  For
3432   # instance it was reported that on HP-UX the gcc test will end up
3433   # making a dummy file named `D' -- because `-MD' means `put the output
3434   # in D'.
3435   mkdir conftest.dir
3436   # Copy depcomp to subdir because otherwise we won't find it if we're
3437   # using a relative directory.
3438   cp "$am_depcomp" conftest.dir
3439   cd conftest.dir
3440   # We will build objects and dependencies in a subdirectory because
3441   # it helps to detect inapplicable dependency modes.  For instance
3442   # both Tru64's cc and ICC support -MD to output dependencies as a
3443   # side effect of compilation, but ICC will put the dependencies in
3444   # the current directory while Tru64 will put them in the object
3445   # directory.
3446   mkdir sub
3447
3448   am_cv_CC_dependencies_compiler_type=none
3449   if test "$am_compiler_list" = ""; then
3450      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3451   fi
3452   for depmode in $am_compiler_list; do
3453     # Setup a source with many dependencies, because some compilers
3454     # like to wrap large dependency lists on column 80 (with \), and
3455     # we should not choose a depcomp mode which is confused by this.
3456     #
3457     # We need to recreate these files for each test, as the compiler may
3458     # overwrite some of them when testing with obscure command lines.
3459     # This happens at least with the AIX C compiler.
3460     : > sub/conftest.c
3461     for i in 1 2 3 4 5 6; do
3462       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3463       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3464       # Solaris 8's {/usr,}/bin/sh.
3465       touch sub/conftst$i.h
3466     done
3467     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3468
3469     case $depmode in
3470     nosideeffect)
3471       # after this tag, mechanisms are not by side-effect, so they'll
3472       # only be used when explicitly requested
3473       if test "x$enable_dependency_tracking" = xyes; then
3474         continue
3475       else
3476         break
3477       fi
3478       ;;
3479     none) break ;;
3480     esac
3481     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3482     # mode.  It turns out that the SunPro C++ compiler does not properly
3483     # handle `-M -o', and we need to detect this.
3484     if depmode=$depmode \
3485        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3486        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3487        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3488          >/dev/null 2>conftest.err &&
3489        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3490        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3491        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3492       # icc doesn't choke on unknown options, it will just issue warnings
3493       # or remarks (even with -Werror).  So we grep stderr for any message
3494       # that says an option was ignored or not supported.
3495       # When given -MP, icc 7.0 and 7.1 complain thusly:
3496       #   icc: Command line warning: ignoring option '-M'; no argument required
3497       # The diagnosis changed in icc 8.0:
3498       #   icc: Command line remark: option '-MP' not supported
3499       if (grep 'ignoring option' conftest.err ||
3500           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3501         am_cv_CC_dependencies_compiler_type=$depmode
3502         break
3503       fi
3504     fi
3505   done
3506
3507   cd ..
3508   rm -rf conftest.dir
3509 else
3510   am_cv_CC_dependencies_compiler_type=none
3511 fi
3512
3513 fi
3514 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3515 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3516 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3517
3518
3519
3520 if
3521   test "x$enable_dependency_tracking" != xno \
3522   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3523   am__fastdepCC_TRUE=
3524   am__fastdepCC_FALSE='#'
3525 else
3526   am__fastdepCC_TRUE='#'
3527   am__fastdepCC_FALSE=
3528 fi
3529
3530
3531 ac_ext=c
3532 ac_cpp='$CPP $CPPFLAGS'
3533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3537 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3538 # On Suns, sometimes $CPP names a directory.
3539 if test -n "$CPP" && test -d "$CPP"; then
3540   CPP=
3541 fi
3542 if test -z "$CPP"; then
3543   if test "${ac_cv_prog_CPP+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546       # Double quotes because CPP needs to be expanded
3547     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3548     do
3549       ac_preproc_ok=false
3550 for ac_c_preproc_warn_flag in '' yes
3551 do
3552   # Use a header file that comes with gcc, so configuring glibc
3553   # with a fresh cross-compiler works.
3554   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3555   # <limits.h> exists even on freestanding compilers.
3556   # On the NeXT, cc -E runs the code through the compiler's parser,
3557   # not just through cpp. "Syntax error" is here to catch this case.
3558   cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h.  */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h.  */
3564 #ifdef __STDC__
3565 # include <limits.h>
3566 #else
3567 # include <assert.h>
3568 #endif
3569                      Syntax error
3570 _ACEOF
3571 if { (ac_try="$ac_cpp conftest.$ac_ext"
3572 case "(($ac_try" in
3573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574   *) ac_try_echo=$ac_try;;
3575 esac
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3578   ac_status=$?
3579   grep -v '^ *+' conftest.er1 >conftest.err
3580   rm -f conftest.er1
3581   cat conftest.err >&5
3582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583   (exit $ac_status); } >/dev/null && {
3584          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3585          test ! -s conftest.err
3586        }; then
3587   :
3588 else
3589   echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3591
3592   # Broken: fails on valid input.
3593 continue
3594 fi
3595
3596 rm -f conftest.err conftest.$ac_ext
3597
3598   # OK, works on sane cases.  Now check whether nonexistent headers
3599   # can be detected and how.
3600   cat >conftest.$ac_ext <<_ACEOF
3601 /* confdefs.h.  */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h.  */
3606 #include <ac_nonexistent.h>
3607 _ACEOF
3608 if { (ac_try="$ac_cpp conftest.$ac_ext"
3609 case "(($ac_try" in
3610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611   *) ac_try_echo=$ac_try;;
3612 esac
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3615   ac_status=$?
3616   grep -v '^ *+' conftest.er1 >conftest.err
3617   rm -f conftest.er1
3618   cat conftest.err >&5
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); } >/dev/null && {
3621          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3622          test ! -s conftest.err
3623        }; then
3624   # Broken: success on invalid input.
3625 continue
3626 else
3627   echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3629
3630   # Passes both tests.
3631 ac_preproc_ok=:
3632 break
3633 fi
3634
3635 rm -f conftest.err conftest.$ac_ext
3636
3637 done
3638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3639 rm -f conftest.err conftest.$ac_ext
3640 if $ac_preproc_ok; then
3641   break
3642 fi
3643
3644     done
3645     ac_cv_prog_CPP=$CPP
3646
3647 fi
3648   CPP=$ac_cv_prog_CPP
3649 else
3650   ac_cv_prog_CPP=$CPP
3651 fi
3652 { echo "$as_me:$LINENO: result: $CPP" >&5
3653 echo "${ECHO_T}$CPP" >&6; }
3654 ac_preproc_ok=false
3655 for ac_c_preproc_warn_flag in '' yes
3656 do
3657   # Use a header file that comes with gcc, so configuring glibc
3658   # with a fresh cross-compiler works.
3659   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3660   # <limits.h> exists even on freestanding compilers.
3661   # On the NeXT, cc -E runs the code through the compiler's parser,
3662   # not just through cpp. "Syntax error" is here to catch this case.
3663   cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h.  */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h.  */
3669 #ifdef __STDC__
3670 # include <limits.h>
3671 #else
3672 # include <assert.h>
3673 #endif
3674                      Syntax error
3675 _ACEOF
3676 if { (ac_try="$ac_cpp conftest.$ac_ext"
3677 case "(($ac_try" in
3678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679   *) ac_try_echo=$ac_try;;
3680 esac
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3683   ac_status=$?
3684   grep -v '^ *+' conftest.er1 >conftest.err
3685   rm -f conftest.er1
3686   cat conftest.err >&5
3687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688   (exit $ac_status); } >/dev/null && {
3689          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3690          test ! -s conftest.err
3691        }; then
3692   :
3693 else
3694   echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697   # Broken: fails on valid input.
3698 continue
3699 fi
3700
3701 rm -f conftest.err conftest.$ac_ext
3702
3703   # OK, works on sane cases.  Now check whether nonexistent headers
3704   # can be detected and how.
3705   cat >conftest.$ac_ext <<_ACEOF
3706 /* confdefs.h.  */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h.  */
3711 #include <ac_nonexistent.h>
3712 _ACEOF
3713 if { (ac_try="$ac_cpp conftest.$ac_ext"
3714 case "(($ac_try" in
3715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716   *) ac_try_echo=$ac_try;;
3717 esac
3718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3719   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3720   ac_status=$?
3721   grep -v '^ *+' conftest.er1 >conftest.err
3722   rm -f conftest.er1
3723   cat conftest.err >&5
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); } >/dev/null && {
3726          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3727          test ! -s conftest.err
3728        }; then
3729   # Broken: success on invalid input.
3730 continue
3731 else
3732   echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3734
3735   # Passes both tests.
3736 ac_preproc_ok=:
3737 break
3738 fi
3739
3740 rm -f conftest.err conftest.$ac_ext
3741
3742 done
3743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3744 rm -f conftest.err conftest.$ac_ext
3745 if $ac_preproc_ok; then
3746   :
3747 else
3748   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3749 See \`config.log' for more details." >&5
3750 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3751 See \`config.log' for more details." >&2;}
3752    { (exit 1); exit 1; }; }
3753 fi
3754
3755 ac_ext=c
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760
3761 # Find a good install program.  We prefer a C program (faster),
3762 # so one script is as good as another.  But avoid the broken or
3763 # incompatible versions:
3764 # SysV /etc/install, /usr/sbin/install
3765 # SunOS /usr/etc/install
3766 # IRIX /sbin/install
3767 # AIX /bin/install
3768 # AmigaOS /C/install, which installs bootblocks on floppy discs
3769 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3770 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3771 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3772 # OS/2's system install, which has a completely different semantic
3773 # ./install, which can be erroneously created by make from ./install.sh.
3774 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3775 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3776 if test -z "$INSTALL"; then
3777 if test "${ac_cv_path_install+set}" = set; then
3778   echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 for as_dir in $PATH
3782 do
3783   IFS=$as_save_IFS
3784   test -z "$as_dir" && as_dir=.
3785   # Account for people who put trailing slashes in PATH elements.
3786 case $as_dir/ in
3787   ./ | .// | /cC/* | \
3788   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3789   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3790   /usr/ucb/* ) ;;
3791   *)
3792     # OSF1 and SCO ODT 3.0 have their own names for install.
3793     # Don't use installbsd from OSF since it installs stuff as root
3794     # by default.
3795     for ac_prog in ginstall scoinst install; do
3796       for ac_exec_ext in '' $ac_executable_extensions; do
3797         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3798           if test $ac_prog = install &&
3799             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3800             # AIX install.  It has an incompatible calling convention.
3801             :
3802           elif test $ac_prog = install &&
3803             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3804             # program-specific install script used by HP pwplus--don't use.
3805             :
3806           else
3807             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3808             break 3
3809           fi
3810         fi
3811       done
3812     done
3813     ;;
3814 esac
3815 done
3816 IFS=$as_save_IFS
3817
3818
3819 fi
3820   if test "${ac_cv_path_install+set}" = set; then
3821     INSTALL=$ac_cv_path_install
3822   else
3823     # As a last resort, use the slow shell script.  Don't cache a
3824     # value for INSTALL within a source directory, because that will
3825     # break other packages using the cache if that directory is
3826     # removed, or if the value is a relative name.
3827     INSTALL=$ac_install_sh
3828   fi
3829 fi
3830 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3831 echo "${ECHO_T}$INSTALL" >&6; }
3832
3833 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3834 # It thinks the first close brace ends the variable substitution.
3835 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3836
3837 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3838
3839 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3840
3841 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3842 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3843 LN_S=$as_ln_s
3844 if test "$LN_S" = "ln -s"; then
3845   { echo "$as_me:$LINENO: result: yes" >&5
3846 echo "${ECHO_T}yes" >&6; }
3847 else
3848   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3849 echo "${ECHO_T}no, using $LN_S" >&6; }
3850 fi
3851
3852 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3853 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3854 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3855 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3856   echo $ECHO_N "(cached) $ECHO_C" >&6
3857 else
3858   cat >conftest.make <<\_ACEOF
3859 SHELL = /bin/sh
3860 all:
3861         @echo '@@@%%%=$(MAKE)=@@@%%%'
3862 _ACEOF
3863 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3864 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3865   *@@@%%%=?*=@@@%%%*)
3866     eval ac_cv_prog_make_${ac_make}_set=yes;;
3867   *)
3868     eval ac_cv_prog_make_${ac_make}_set=no;;
3869 esac
3870 rm -f conftest.make
3871 fi
3872 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3873   { echo "$as_me:$LINENO: result: yes" >&5
3874 echo "${ECHO_T}yes" >&6; }
3875   SET_MAKE=
3876 else
3877   { echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6; }
3879   SET_MAKE="MAKE=${MAKE-make}"
3880 fi
3881
3882 # Check whether --enable-shared was given.
3883 if test "${enable_shared+set}" = set; then
3884   enableval=$enable_shared; p=${PACKAGE-default}
3885     case $enableval in
3886     yes) enable_shared=yes ;;
3887     no) enable_shared=no ;;
3888     *)
3889       enable_shared=no
3890       # Look at the argument we got.  We use all the common list separators.
3891       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3892       for pkg in $enableval; do
3893         IFS="$lt_save_ifs"
3894         if test "X$pkg" = "X$p"; then
3895           enable_shared=yes
3896         fi
3897       done
3898       IFS="$lt_save_ifs"
3899       ;;
3900     esac
3901 else
3902   enable_shared=yes
3903 fi
3904
3905
3906 # Check whether --enable-static was given.
3907 if test "${enable_static+set}" = set; then
3908   enableval=$enable_static; p=${PACKAGE-default}
3909     case $enableval in
3910     yes) enable_static=yes ;;
3911     no) enable_static=no ;;
3912     *)
3913      enable_static=no
3914       # Look at the argument we got.  We use all the common list separators.
3915       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3916       for pkg in $enableval; do
3917         IFS="$lt_save_ifs"
3918         if test "X$pkg" = "X$p"; then
3919           enable_static=yes
3920         fi
3921       done
3922       IFS="$lt_save_ifs"
3923       ;;
3924     esac
3925 else
3926   enable_static=yes
3927 fi
3928
3929
3930 # Check whether --enable-fast-install was given.
3931 if test "${enable_fast_install+set}" = set; then
3932   enableval=$enable_fast_install; p=${PACKAGE-default}
3933     case $enableval in
3934     yes) enable_fast_install=yes ;;
3935     no) enable_fast_install=no ;;
3936     *)
3937       enable_fast_install=no
3938       # Look at the argument we got.  We use all the common list separators.
3939       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3940       for pkg in $enableval; do
3941         IFS="$lt_save_ifs"
3942         if test "X$pkg" = "X$p"; then
3943           enable_fast_install=yes
3944         fi
3945       done
3946       IFS="$lt_save_ifs"
3947       ;;
3948     esac
3949 else
3950   enable_fast_install=yes
3951 fi
3952
3953
3954 # Make sure we can run config.sub.
3955 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3956   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3957 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3958    { (exit 1); exit 1; }; }
3959
3960 { echo "$as_me:$LINENO: checking build system type" >&5
3961 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3962 if test "${ac_cv_build+set}" = set; then
3963   echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965   ac_build_alias=$build_alias
3966 test "x$ac_build_alias" = x &&
3967   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3968 test "x$ac_build_alias" = x &&
3969   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3970 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3971    { (exit 1); exit 1; }; }
3972 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3973   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3974 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3975    { (exit 1); exit 1; }; }
3976
3977 fi
3978 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3979 echo "${ECHO_T}$ac_cv_build" >&6; }
3980 case $ac_cv_build in
3981 *-*-*) ;;
3982 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3983 echo "$as_me: error: invalid value of canonical build" >&2;}
3984    { (exit 1); exit 1; }; };;
3985 esac
3986 build=$ac_cv_build
3987 ac_save_IFS=$IFS; IFS='-'
3988 set x $ac_cv_build
3989 shift
3990 build_cpu=$1
3991 build_vendor=$2
3992 shift; shift
3993 # Remember, the first character of IFS is used to create $*,
3994 # except with old shells:
3995 build_os=$*
3996 IFS=$ac_save_IFS
3997 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3998
3999
4000 { echo "$as_me:$LINENO: checking host system type" >&5
4001 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4002 if test "${ac_cv_host+set}" = set; then
4003   echo $ECHO_N "(cached) $ECHO_C" >&6
4004 else
4005   if test "x$host_alias" = x; then
4006   ac_cv_host=$ac_cv_build
4007 else
4008   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4009     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4010 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4011    { (exit 1); exit 1; }; }
4012 fi
4013
4014 fi
4015 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4016 echo "${ECHO_T}$ac_cv_host" >&6; }
4017 case $ac_cv_host in
4018 *-*-*) ;;
4019 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4020 echo "$as_me: error: invalid value of canonical host" >&2;}
4021    { (exit 1); exit 1; }; };;
4022 esac
4023 host=$ac_cv_host
4024 ac_save_IFS=$IFS; IFS='-'
4025 set x $ac_cv_host
4026 shift
4027 host_cpu=$1
4028 host_vendor=$2
4029 shift; shift
4030 # Remember, the first character of IFS is used to create $*,
4031 # except with old shells:
4032 host_os=$*
4033 IFS=$ac_save_IFS
4034 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4035
4036
4037 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4038 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4039 if test "${lt_cv_path_SED+set}" = set; then
4040   echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042   # Loop through the user's path and test for sed and gsed.
4043 # Then use that list of sed's as ones to test for truncation.
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4046 do
4047   IFS=$as_save_IFS
4048   test -z "$as_dir" && as_dir=.
4049   for lt_ac_prog in sed gsed; do
4050     for ac_exec_ext in '' $ac_executable_extensions; do
4051       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4052         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4053       fi
4054     done
4055   done
4056 done
4057 lt_ac_max=0
4058 lt_ac_count=0
4059 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4060 # along with /bin/sed that truncates output.
4061 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4062   test ! -f $lt_ac_sed && continue
4063   cat /dev/null > conftest.in
4064   lt_ac_count=0
4065   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4066   # Check for GNU sed and select it if it is found.
4067   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4068     lt_cv_path_SED=$lt_ac_sed
4069     break
4070   fi
4071   while true; do
4072     cat conftest.in conftest.in >conftest.tmp
4073     mv conftest.tmp conftest.in
4074     cp conftest.in conftest.nl
4075     echo >>conftest.nl
4076     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4077     cmp -s conftest.out conftest.nl || break
4078     # 10000 chars as input seems more than enough
4079     test $lt_ac_count -gt 10 && break
4080     lt_ac_count=`expr $lt_ac_count + 1`
4081     if test $lt_ac_count -gt $lt_ac_max; then
4082       lt_ac_max=$lt_ac_count
4083       lt_cv_path_SED=$lt_ac_sed
4084     fi
4085   done
4086 done
4087
4088 fi
4089
4090 SED=$lt_cv_path_SED
4091 { echo "$as_me:$LINENO: result: $SED" >&5
4092 echo "${ECHO_T}$SED" >&6; }
4093
4094 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4095 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4096 if test "${ac_cv_path_GREP+set}" = set; then
4097   echo $ECHO_N "(cached) $ECHO_C" >&6
4098 else
4099   # Extract the first word of "grep ggrep" to use in msg output
4100 if test -z "$GREP"; then
4101 set dummy grep ggrep; ac_prog_name=$2
4102 if test "${ac_cv_path_GREP+set}" = set; then
4103   echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105   ac_path_GREP_found=false
4106 # Loop through the user's path and test for each of PROGNAME-LIST
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4109 do
4110   IFS=$as_save_IFS
4111   test -z "$as_dir" && as_dir=.
4112   for ac_prog in grep ggrep; do
4113   for ac_exec_ext in '' $ac_executable_extensions; do
4114     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4115     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4116     # Check for GNU ac_path_GREP and select it if it is found.
4117   # Check for GNU $ac_path_GREP
4118 case `"$ac_path_GREP" --version 2>&1` in
4119 *GNU*)
4120   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4121 *)
4122   ac_count=0
4123   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4124   while :
4125   do
4126     cat "conftest.in" "conftest.in" >"conftest.tmp"
4127     mv "conftest.tmp" "conftest.in"
4128     cp "conftest.in" "conftest.nl"
4129     echo 'GREP' >> "conftest.nl"
4130     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4131     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4132     ac_count=`expr $ac_count + 1`
4133     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4134       # Best one so far, save it but keep looking for a better one
4135       ac_cv_path_GREP="$ac_path_GREP"
4136       ac_path_GREP_max=$ac_count
4137     fi
4138     # 10*(2^10) chars as input seems more than enough
4139     test $ac_count -gt 10 && break
4140   done
4141   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4142 esac
4143
4144
4145     $ac_path_GREP_found && break 3
4146   done
4147 done
4148
4149 done
4150 IFS=$as_save_IFS
4151
4152
4153 fi
4154
4155 GREP="$ac_cv_path_GREP"
4156 if test -z "$GREP"; then
4157   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4158 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4159    { (exit 1); exit 1; }; }
4160 fi
4161
4162 else
4163   ac_cv_path_GREP=$GREP
4164 fi
4165
4166
4167 fi
4168 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4169 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4170  GREP="$ac_cv_path_GREP"
4171
4172
4173 { echo "$as_me:$LINENO: checking for egrep" >&5
4174 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4175 if test "${ac_cv_path_EGREP+set}" = set; then
4176   echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4179    then ac_cv_path_EGREP="$GREP -E"
4180    else
4181      # Extract the first word of "egrep" to use in msg output
4182 if test -z "$EGREP"; then
4183 set dummy egrep; ac_prog_name=$2
4184 if test "${ac_cv_path_EGREP+set}" = set; then
4185   echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187   ac_path_EGREP_found=false
4188 # Loop through the user's path and test for each of PROGNAME-LIST
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4191 do
4192   IFS=$as_save_IFS
4193   test -z "$as_dir" && as_dir=.
4194   for ac_prog in egrep; do
4195   for ac_exec_ext in '' $ac_executable_extensions; do
4196     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4197     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4198     # Check for GNU ac_path_EGREP and select it if it is found.
4199   # Check for GNU $ac_path_EGREP
4200 case `"$ac_path_EGREP" --version 2>&1` in
4201 *GNU*)
4202   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4203 *)
4204   ac_count=0
4205   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4206   while :
4207   do
4208     cat "conftest.in" "conftest.in" >"conftest.tmp"
4209     mv "conftest.tmp" "conftest.in"
4210     cp "conftest.in" "conftest.nl"
4211     echo 'EGREP' >> "conftest.nl"
4212     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4213     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4214     ac_count=`expr $ac_count + 1`
4215     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4216       # Best one so far, save it but keep looking for a better one
4217       ac_cv_path_EGREP="$ac_path_EGREP"
4218       ac_path_EGREP_max=$ac_count
4219     fi
4220     # 10*(2^10) chars as input seems more than enough
4221     test $ac_count -gt 10 && break
4222   done
4223   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4224 esac
4225
4226
4227     $ac_path_EGREP_found && break 3
4228   done
4229 done
4230
4231 done
4232 IFS=$as_save_IFS
4233
4234
4235 fi
4236
4237 EGREP="$ac_cv_path_EGREP"
4238 if test -z "$EGREP"; then
4239   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4240 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4241    { (exit 1); exit 1; }; }
4242 fi
4243
4244 else
4245   ac_cv_path_EGREP=$EGREP
4246 fi
4247
4248
4249    fi
4250 fi
4251 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4252 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4253  EGREP="$ac_cv_path_EGREP"
4254
4255
4256
4257 # Check whether --with-gnu-ld was given.
4258 if test "${with_gnu_ld+set}" = set; then
4259   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4260 else
4261   with_gnu_ld=no
4262 fi
4263
4264 ac_prog=ld
4265 if test "$GCC" = yes; then
4266   # Check if gcc -print-prog-name=ld gives a path.
4267   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4268 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4269   case $host in
4270   *-*-mingw*)
4271     # gcc leaves a trailing carriage return which upsets mingw
4272     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4273   *)
4274     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4275   esac
4276   case $ac_prog in
4277     # Accept absolute paths.
4278     [\\/]* | ?:[\\/]*)
4279       re_direlt='/[^/][^/]*/\.\./'
4280       # Canonicalize the pathname of ld
4281       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4282       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4283         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4284       done
4285       test -z "$LD" && LD="$ac_prog"
4286       ;;
4287   "")
4288     # If it fails, then pretend we aren't using GCC.
4289     ac_prog=ld
4290     ;;
4291   *)
4292     # If it is relative, then search for the first ld in PATH.
4293     with_gnu_ld=unknown
4294     ;;
4295   esac
4296 elif test "$with_gnu_ld" = yes; then
4297   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4298 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4299 else
4300   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4301 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4302 fi
4303 if test "${lt_cv_path_LD+set}" = set; then
4304   echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306   if test -z "$LD"; then
4307   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4308   for ac_dir in $PATH; do
4309     IFS="$lt_save_ifs"
4310     test -z "$ac_dir" && ac_dir=.
4311     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4312       lt_cv_path_LD="$ac_dir/$ac_prog"
4313       # Check to see if the program is GNU ld.  I'd rather use --version,
4314       # but apparently some variants of GNU ld only accept -v.
4315       # Break only if it was the GNU/non-GNU ld that we prefer.
4316       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4317       *GNU* | *'with BFD'*)
4318         test "$with_gnu_ld" != no && break
4319         ;;
4320       *)
4321         test "$with_gnu_ld" != yes && break
4322         ;;
4323       esac
4324     fi
4325   done
4326   IFS="$lt_save_ifs"
4327 else
4328   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4329 fi
4330 fi
4331
4332 LD="$lt_cv_path_LD"
4333 if test -n "$LD"; then
4334   { echo "$as_me:$LINENO: result: $LD" >&5
4335 echo "${ECHO_T}$LD" >&6; }
4336 else
4337   { echo "$as_me:$LINENO: result: no" >&5
4338 echo "${ECHO_T}no" >&6; }
4339 fi
4340 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4341 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4342    { (exit 1); exit 1; }; }
4343 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4344 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4345 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4346   echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4349 case `$LD -v 2>&1 </dev/null` in
4350 *GNU* | *'with BFD'*)
4351   lt_cv_prog_gnu_ld=yes
4352   ;;
4353 *)
4354   lt_cv_prog_gnu_ld=no
4355   ;;
4356 esac
4357 fi
4358 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4359 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4360 with_gnu_ld=$lt_cv_prog_gnu_ld
4361
4362
4363 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4364 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4365 if test "${lt_cv_ld_reload_flag+set}" = set; then
4366   echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368   lt_cv_ld_reload_flag='-r'
4369 fi
4370 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4371 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4372 reload_flag=$lt_cv_ld_reload_flag
4373 case $reload_flag in
4374 "" | " "*) ;;
4375 *) reload_flag=" $reload_flag" ;;
4376 esac
4377 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4378 case $host_os in
4379   darwin*)
4380     if test "$GCC" = yes; then
4381       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4382     else
4383       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4384     fi
4385     ;;
4386 esac
4387
4388 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4389 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4390 if test "${lt_cv_path_NM+set}" = set; then
4391   echo $ECHO_N "(cached) $ECHO_C" >&6
4392 else
4393   if test -n "$NM"; then
4394   # Let the user override the test.
4395   lt_cv_path_NM="$NM"
4396 else
4397   lt_nm_to_check="${ac_tool_prefix}nm"
4398   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4399     lt_nm_to_check="$lt_nm_to_check nm"
4400   fi
4401   for lt_tmp_nm in $lt_nm_to_check; do
4402     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4403     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4404       IFS="$lt_save_ifs"
4405       test -z "$ac_dir" && ac_dir=.
4406       tmp_nm="$ac_dir/$lt_tmp_nm"
4407       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4408         # Check to see if the nm accepts a BSD-compat flag.
4409         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4410         #   nm: unknown option "B" ignored
4411         # Tru64's nm complains that /dev/null is an invalid object file
4412         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4413         */dev/null* | *'Invalid file or object type'*)
4414           lt_cv_path_NM="$tmp_nm -B"
4415           break
4416           ;;
4417         *)
4418           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4419           */dev/null*)
4420             lt_cv_path_NM="$tmp_nm -p"
4421             break
4422             ;;
4423           *)
4424             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4425             continue # so that we can try to find one that supports BSD flags
4426             ;;
4427           esac
4428           ;;
4429         esac
4430       fi
4431     done
4432     IFS="$lt_save_ifs"
4433   done
4434   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4435 fi
4436 fi
4437 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4438 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4439 NM="$lt_cv_path_NM"
4440
4441 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4442 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4443 if test "${lt_cv_deplibs_check_method+set}" = set; then
4444   echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446   lt_cv_file_magic_cmd='$MAGIC_CMD'
4447 lt_cv_file_magic_test_file=
4448 lt_cv_deplibs_check_method='unknown'
4449 # Need to set the preceding variable on all platforms that support
4450 # interlibrary dependencies.
4451 # 'none' -- dependencies not supported.
4452 # `unknown' -- same as none, but documents that we really don't know.
4453 # 'pass_all' -- all dependencies passed with no checks.
4454 # 'test_compile' -- check by making test program.
4455 # 'file_magic [[regex]]' -- check by looking for files in library path
4456 # which responds to the $file_magic_cmd with a given extended regex.
4457 # If you have `file' or equivalent on your system and you're not sure
4458 # whether `pass_all' will *always* work, you probably want this one.
4459
4460 case $host_os in
4461 aix4* | aix5*)
4462   lt_cv_deplibs_check_method=pass_all
4463   ;;
4464
4465 beos*)
4466   lt_cv_deplibs_check_method=pass_all
4467   ;;
4468
4469 bsdi[45]*)
4470   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4471   lt_cv_file_magic_cmd='/usr/bin/file -L'
4472   lt_cv_file_magic_test_file=/shlib/libc.so
4473   ;;
4474
4475 cygwin*)
4476   # func_win32_libid is a shell function defined in ltmain.sh
4477   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4478   lt_cv_file_magic_cmd='func_win32_libid'
4479   ;;
4480
4481 mingw* | pw32*)
4482   # Base MSYS/MinGW do not provide the 'file' command needed by
4483   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4484   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4485   lt_cv_file_magic_cmd='$OBJDUMP -f'
4486   ;;
4487
4488 darwin* | rhapsody*)
4489   lt_cv_deplibs_check_method=pass_all
4490   ;;
4491
4492 freebsd* | dragonfly*)
4493   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4494     case $host_cpu in
4495     i*86 )
4496       # Not sure whether the presence of OpenBSD here was a mistake.
4497       # Let's accept both of them until this is cleared up.
4498       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4499       lt_cv_file_magic_cmd=/usr/bin/file
4500       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4501       ;;
4502     esac
4503   else
4504     lt_cv_deplibs_check_method=pass_all
4505   fi
4506   ;;
4507
4508 gnu*)
4509   lt_cv_deplibs_check_method=pass_all
4510   ;;
4511
4512 hpux10.20* | hpux11*)
4513   lt_cv_file_magic_cmd=/usr/bin/file
4514   case $host_cpu in
4515   ia64*)
4516     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4517     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4518     ;;
4519   hppa*64*)
4520     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]'
4521     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4522     ;;
4523   *)
4524     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4525     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4526     ;;
4527   esac
4528   ;;
4529
4530 interix3*)
4531   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4532   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4533   ;;
4534
4535 irix5* | irix6* | nonstopux*)
4536   case $LD in
4537   *-32|*"-32 ") libmagic=32-bit;;
4538   *-n32|*"-n32 ") libmagic=N32;;
4539   *-64|*"-64 ") libmagic=64-bit;;
4540   *) libmagic=never-match;;
4541   esac
4542   lt_cv_deplibs_check_method=pass_all
4543   ;;
4544
4545 # This must be Linux ELF.
4546 linux* | k*bsd*-gnu)
4547   lt_cv_deplibs_check_method=pass_all
4548   ;;
4549
4550 netbsd* | netbsdelf*-gnu)
4551   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4552     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4553   else
4554     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4555   fi
4556   ;;
4557
4558 newos6*)
4559   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4560   lt_cv_file_magic_cmd=/usr/bin/file
4561   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4562   ;;
4563
4564 nto-qnx*)
4565   lt_cv_deplibs_check_method=unknown
4566   ;;
4567
4568 openbsd*)
4569   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4570     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4571   else
4572     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4573   fi
4574   ;;
4575
4576 osf3* | osf4* | osf5*)
4577   lt_cv_deplibs_check_method=pass_all
4578   ;;
4579
4580 solaris*)
4581   lt_cv_deplibs_check_method=pass_all
4582   ;;
4583
4584 sysv4 | sysv4.3*)
4585   case $host_vendor in
4586   motorola)
4587     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]'
4588     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4589     ;;
4590   ncr)
4591     lt_cv_deplibs_check_method=pass_all
4592     ;;
4593   sequent)
4594     lt_cv_file_magic_cmd='/bin/file'
4595     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4596     ;;
4597   sni)
4598     lt_cv_file_magic_cmd='/bin/file'
4599     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4600     lt_cv_file_magic_test_file=/lib/libc.so
4601     ;;
4602   siemens)
4603     lt_cv_deplibs_check_method=pass_all
4604     ;;
4605   pc)
4606     lt_cv_deplibs_check_method=pass_all
4607     ;;
4608   esac
4609   ;;
4610
4611 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4612   lt_cv_deplibs_check_method=pass_all
4613   ;;
4614 esac
4615
4616 fi
4617 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4618 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4619 file_magic_cmd=$lt_cv_file_magic_cmd
4620 deplibs_check_method=$lt_cv_deplibs_check_method
4621 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4622
4623
4624
4625
4626 # If no C compiler was specified, use CC.
4627 LTCC=${LTCC-"$CC"}
4628
4629 # If no C compiler flags were specified, use CFLAGS.
4630 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4631
4632 # Allow CC to be a program name with arguments.
4633 compiler=$CC
4634
4635
4636 # Check whether --enable-libtool-lock was given.
4637 if test "${enable_libtool_lock+set}" = set; then
4638   enableval=$enable_libtool_lock;
4639 fi
4640
4641 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4642
4643 # Some flags need to be propagated to the compiler or linker for good
4644 # libtool support.
4645 case $host in
4646 ia64-*-hpux*)
4647   # Find out which ABI we are using.
4648   echo 'int i;' > conftest.$ac_ext
4649   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4650   (eval $ac_compile) 2>&5
4651   ac_status=$?
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); }; then
4654     case `/usr/bin/file conftest.$ac_objext` in
4655     *ELF-32*)
4656       HPUX_IA64_MODE="32"
4657       ;;
4658     *ELF-64*)
4659       HPUX_IA64_MODE="64"
4660       ;;
4661     esac
4662   fi
4663   rm -rf conftest*
4664   ;;
4665 *-*-irix6*)
4666   # Find out which ABI we are using.
4667   echo '#line 4667 "configure"' > conftest.$ac_ext
4668   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4669   (eval $ac_compile) 2>&5
4670   ac_status=$?
4671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672   (exit $ac_status); }; then
4673    if test "$lt_cv_prog_gnu_ld" = yes; then
4674     case `/usr/bin/file conftest.$ac_objext` in
4675     *32-bit*)
4676       LD="${LD-ld} -melf32bsmip"
4677       ;;
4678     *N32*)
4679       LD="${LD-ld} -melf32bmipn32"
4680       ;;
4681     *64-bit*)
4682       LD="${LD-ld} -melf64bmip"
4683       ;;
4684     esac
4685    else
4686     case `/usr/bin/file conftest.$ac_objext` in
4687     *32-bit*)
4688       LD="${LD-ld} -32"
4689       ;;
4690     *N32*)
4691       LD="${LD-ld} -n32"
4692       ;;
4693     *64-bit*)
4694       LD="${LD-ld} -64"
4695       ;;
4696     esac
4697    fi
4698   fi
4699   rm -rf conftest*
4700   ;;
4701
4702 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4703   # Find out which ABI we are using.
4704   echo 'int i;' > conftest.$ac_ext
4705   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4706   (eval $ac_compile) 2>&5
4707   ac_status=$?
4708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709   (exit $ac_status); }; then
4710     case `/usr/bin/file conftest.o` in
4711     *32-bit*)
4712       case $host in
4713         x86_64-*linux*)
4714           LD="${LD-ld} -m elf_i386"
4715           ;;
4716         ppc64-*linux*|powerpc64-*linux*)
4717           LD="${LD-ld} -m elf32ppclinux"
4718           ;;
4719         s390x-*linux*)
4720           LD="${LD-ld} -m elf_s390"
4721           ;;
4722         sparc64-*linux*)
4723           LD="${LD-ld} -m elf32_sparc"
4724           ;;
4725       esac
4726       ;;
4727     *64-bit*)
4728       case $host in
4729         x86_64-*linux*)
4730           LD="${LD-ld} -m elf_x86_64"
4731           ;;
4732         ppc*-*linux*|powerpc*-*linux*)
4733           LD="${LD-ld} -m elf64ppc"
4734           ;;
4735         s390*-*linux*)
4736           LD="${LD-ld} -m elf64_s390"
4737           ;;
4738         sparc*-*linux*)
4739           LD="${LD-ld} -m elf64_sparc"
4740           ;;
4741       esac
4742       ;;
4743     esac
4744   fi
4745   rm -rf conftest*
4746   ;;
4747
4748 *-*-sco3.2v5*)
4749   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4750   SAVE_CFLAGS="$CFLAGS"
4751   CFLAGS="$CFLAGS -belf"
4752   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4753 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4754 if test "${lt_cv_cc_needs_belf+set}" = set; then
4755   echo $ECHO_N "(cached) $ECHO_C" >&6
4756 else
4757   ac_ext=c
4758 ac_cpp='$CPP $CPPFLAGS'
4759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4762
4763      cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h.  */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h.  */
4769
4770 int
4771 main ()
4772 {
4773
4774   ;
4775   return 0;
4776 }
4777 _ACEOF
4778 rm -f conftest.$ac_objext conftest$ac_exeext
4779 if { (ac_try="$ac_link"
4780 case "(($ac_try" in
4781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782   *) ac_try_echo=$ac_try;;
4783 esac
4784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4785   (eval "$ac_link") 2>conftest.er1
4786   ac_status=$?
4787   grep -v '^ *+' conftest.er1 >conftest.err
4788   rm -f conftest.er1
4789   cat conftest.err >&5
4790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791   (exit $ac_status); } && {
4792          test -z "$ac_c_werror_flag" ||
4793          test ! -s conftest.err
4794        } && test -s conftest$ac_exeext &&
4795        $as_test_x conftest$ac_exeext; then
4796   lt_cv_cc_needs_belf=yes
4797 else
4798   echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4800
4801         lt_cv_cc_needs_belf=no
4802 fi
4803
4804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4805       conftest$ac_exeext conftest.$ac_ext
4806      ac_ext=c
4807 ac_cpp='$CPP $CPPFLAGS'
4808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811
4812 fi
4813 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4814 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4815   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4816     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4817     CFLAGS="$SAVE_CFLAGS"
4818   fi
4819   ;;
4820 sparc*-*solaris*)
4821   # Find out which ABI we are using.
4822   echo 'int i;' > conftest.$ac_ext
4823   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824   (eval $ac_compile) 2>&5
4825   ac_status=$?
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); }; then
4828     case `/usr/bin/file conftest.o` in
4829     *64-bit*)
4830       case $lt_cv_prog_gnu_ld in
4831       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4832       *)    LD="${LD-ld} -64" ;;
4833       esac
4834       ;;
4835     esac
4836   fi
4837   rm -rf conftest*
4838   ;;
4839
4840
4841 esac
4842
4843 need_locks="$enable_libtool_lock"
4844
4845
4846
4847 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4848 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4849 if test "${ac_cv_header_stdc+set}" = set; then
4850   echo $ECHO_N "(cached) $ECHO_C" >&6
4851 else
4852   cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h.  */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h.  */
4858 #include <stdlib.h>
4859 #include <stdarg.h>
4860 #include <string.h>
4861 #include <float.h>
4862
4863 int
4864 main ()
4865 {
4866
4867   ;
4868   return 0;
4869 }
4870 _ACEOF
4871 rm -f conftest.$ac_objext
4872 if { (ac_try="$ac_compile"
4873 case "(($ac_try" in
4874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875   *) ac_try_echo=$ac_try;;
4876 esac
4877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878   (eval "$ac_compile") 2>conftest.er1
4879   ac_status=$?
4880   grep -v '^ *+' conftest.er1 >conftest.err
4881   rm -f conftest.er1
4882   cat conftest.err >&5
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); } && {
4885          test -z "$ac_c_werror_flag" ||
4886          test ! -s conftest.err
4887        } && test -s conftest.$ac_objext; then
4888   ac_cv_header_stdc=yes
4889 else
4890   echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4892
4893         ac_cv_header_stdc=no
4894 fi
4895
4896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897
4898 if test $ac_cv_header_stdc = yes; then
4899   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4900   cat >conftest.$ac_ext <<_ACEOF
4901 /* confdefs.h.  */
4902 _ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h.  */
4906 #include <string.h>
4907
4908 _ACEOF
4909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4910   $EGREP "memchr" >/dev/null 2>&1; then
4911   :
4912 else
4913   ac_cv_header_stdc=no
4914 fi
4915 rm -f conftest*
4916
4917 fi
4918
4919 if test $ac_cv_header_stdc = yes; then
4920   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4921   cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h.  */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h.  */
4927 #include <stdlib.h>
4928
4929 _ACEOF
4930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4931   $EGREP "free" >/dev/null 2>&1; then
4932   :
4933 else
4934   ac_cv_header_stdc=no
4935 fi
4936 rm -f conftest*
4937
4938 fi
4939
4940 if test $ac_cv_header_stdc = yes; then
4941   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4942   if test "$cross_compiling" = yes; then
4943   :
4944 else
4945   cat >conftest.$ac_ext <<_ACEOF
4946 /* confdefs.h.  */
4947 _ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h.  */
4951 #include <ctype.h>
4952 #include <stdlib.h>
4953 #if ((' ' & 0x0FF) == 0x020)
4954 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4955 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4956 #else
4957 # define ISLOWER(c) \
4958                    (('a' <= (c) && (c) <= 'i') \
4959                      || ('j' <= (c) && (c) <= 'r') \
4960                      || ('s' <= (c) && (c) <= 'z'))
4961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4962 #endif
4963
4964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4965 int
4966 main ()
4967 {
4968   int i;
4969   for (i = 0; i < 256; i++)
4970     if (XOR (islower (i), ISLOWER (i))
4971         || toupper (i) != TOUPPER (i))
4972       return 2;
4973   return 0;
4974 }
4975 _ACEOF
4976 rm -f conftest$ac_exeext
4977 if { (ac_try="$ac_link"
4978 case "(($ac_try" in
4979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980   *) ac_try_echo=$ac_try;;
4981 esac
4982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4983   (eval "$ac_link") 2>&5
4984   ac_status=$?
4985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4987   { (case "(($ac_try" in
4988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989   *) ac_try_echo=$ac_try;;
4990 esac
4991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4992   (eval "$ac_try") 2>&5
4993   ac_status=$?
4994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995   (exit $ac_status); }; }; then
4996   :
4997 else
4998   echo "$as_me: program exited with status $ac_status" >&5
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5001
5002 ( exit $ac_status )
5003 ac_cv_header_stdc=no
5004 fi
5005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5006 fi
5007
5008
5009 fi
5010 fi
5011 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5012 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5013 if test $ac_cv_header_stdc = yes; then
5014
5015 cat >>confdefs.h <<\_ACEOF
5016 #define STDC_HEADERS 1
5017 _ACEOF
5018
5019 fi
5020
5021 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5032                   inttypes.h stdint.h unistd.h
5033 do
5034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5038   echo $ECHO_N "(cached) $ECHO_C" >&6
5039 else
5040   cat >conftest.$ac_ext <<_ACEOF
5041 /* confdefs.h.  */
5042 _ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h.  */
5046 $ac_includes_default
5047
5048 #include <$ac_header>
5049 _ACEOF
5050 rm -f conftest.$ac_objext
5051 if { (ac_try="$ac_compile"
5052 case "(($ac_try" in
5053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054   *) ac_try_echo=$ac_try;;
5055 esac
5056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057   (eval "$ac_compile") 2>conftest.er1
5058   ac_status=$?
5059   grep -v '^ *+' conftest.er1 >conftest.err
5060   rm -f conftest.er1
5061   cat conftest.err >&5
5062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063   (exit $ac_status); } && {
5064          test -z "$ac_c_werror_flag" ||
5065          test ! -s conftest.err
5066        } && test -s conftest.$ac_objext; then
5067   eval "$as_ac_Header=yes"
5068 else
5069   echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5071
5072         eval "$as_ac_Header=no"
5073 fi
5074
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076 fi
5077 ac_res=`eval echo '${'$as_ac_Header'}'`
5078                { echo "$as_me:$LINENO: result: $ac_res" >&5
5079 echo "${ECHO_T}$ac_res" >&6; }
5080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5081   cat >>confdefs.h <<_ACEOF
5082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5083 _ACEOF
5084
5085 fi
5086
5087 done
5088
5089
5090
5091 for ac_header in dlfcn.h
5092 do
5093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5095   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5098   echo $ECHO_N "(cached) $ECHO_C" >&6
5099 fi
5100 ac_res=`eval echo '${'$as_ac_Header'}'`
5101                { echo "$as_me:$LINENO: result: $ac_res" >&5
5102 echo "${ECHO_T}$ac_res" >&6; }
5103 else
5104   # Is the header compilable?
5105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5107 cat >conftest.$ac_ext <<_ACEOF
5108 /* confdefs.h.  */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h.  */
5113 $ac_includes_default
5114 #include <$ac_header>
5115 _ACEOF
5116 rm -f conftest.$ac_objext
5117 if { (ac_try="$ac_compile"
5118 case "(($ac_try" in
5119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120   *) ac_try_echo=$ac_try;;
5121 esac
5122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123   (eval "$ac_compile") 2>conftest.er1
5124   ac_status=$?
5125   grep -v '^ *+' conftest.er1 >conftest.err
5126   rm -f conftest.er1
5127   cat conftest.err >&5
5128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129   (exit $ac_status); } && {
5130          test -z "$ac_c_werror_flag" ||
5131          test ! -s conftest.err
5132        } && test -s conftest.$ac_objext; then
5133   ac_header_compiler=yes
5134 else
5135   echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5137
5138         ac_header_compiler=no
5139 fi
5140
5141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5143 echo "${ECHO_T}$ac_header_compiler" >&6; }
5144
5145 # Is the header present?
5146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5148 cat >conftest.$ac_ext <<_ACEOF
5149 /* confdefs.h.  */
5150 _ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h.  */
5154 #include <$ac_header>
5155 _ACEOF
5156 if { (ac_try="$ac_cpp conftest.$ac_ext"
5157 case "(($ac_try" in
5158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159   *) ac_try_echo=$ac_try;;
5160 esac
5161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5163   ac_status=$?
5164   grep -v '^ *+' conftest.er1 >conftest.err
5165   rm -f conftest.er1
5166   cat conftest.err >&5
5167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168   (exit $ac_status); } >/dev/null && {
5169          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5170          test ! -s conftest.err
5171        }; then
5172   ac_header_preproc=yes
5173 else
5174   echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5176
5177   ac_header_preproc=no
5178 fi
5179
5180 rm -f conftest.err conftest.$ac_ext
5181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5182 echo "${ECHO_T}$ac_header_preproc" >&6; }
5183
5184 # So?  What about this header?
5185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5186   yes:no: )
5187     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5191     ac_header_preproc=yes
5192     ;;
5193   no:yes:* )
5194     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5196     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5197 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5198     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5200     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5201 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5204     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5206     ( cat <<\_ASBOX
5207 ## ------------------------------------------------------------ ##
5208 ## Report this to http://pyyaml.org/newticket?component=libyaml ##
5209 ## ------------------------------------------------------------ ##
5210 _ASBOX
5211      ) | sed "s/^/$as_me: WARNING:     /" >&2
5212     ;;
5213 esac
5214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5217   echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219   eval "$as_ac_Header=\$ac_header_preproc"
5220 fi
5221 ac_res=`eval echo '${'$as_ac_Header'}'`
5222                { echo "$as_me:$LINENO: result: $ac_res" >&5
5223 echo "${ECHO_T}$ac_res" >&6; }
5224
5225 fi
5226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5227   cat >>confdefs.h <<_ACEOF
5228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5229 _ACEOF
5230
5231 fi
5232
5233 done
5234
5235 ac_ext=cpp
5236 ac_cpp='$CXXCPP $CPPFLAGS'
5237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5240 if test -z "$CXX"; then
5241   if test -n "$CCC"; then
5242     CXX=$CCC
5243   else
5244     if test -n "$ac_tool_prefix"; then
5245   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5246   do
5247     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5251 if test "${ac_cv_prog_CXX+set}" = set; then
5252   echo $ECHO_N "(cached) $ECHO_C" >&6
5253 else
5254   if test -n "$CXX"; then
5255   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5256 else
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5259 do
5260   IFS=$as_save_IFS
5261   test -z "$as_dir" && as_dir=.
5262   for ac_exec_ext in '' $ac_executable_extensions; do
5263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5266     break 2
5267   fi
5268 done
5269 done
5270 IFS=$as_save_IFS
5271
5272 fi
5273 fi
5274 CXX=$ac_cv_prog_CXX
5275 if test -n "$CXX"; then
5276   { echo "$as_me:$LINENO: result: $CXX" >&5
5277 echo "${ECHO_T}$CXX" >&6; }
5278 else
5279   { echo "$as_me:$LINENO: result: no" >&5
5280 echo "${ECHO_T}no" >&6; }
5281 fi
5282
5283
5284     test -n "$CXX" && break
5285   done
5286 fi
5287 if test -z "$CXX"; then
5288   ac_ct_CXX=$CXX
5289   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5290 do
5291   # Extract the first word of "$ac_prog", so it can be a program name with args.
5292 set dummy $ac_prog; ac_word=$2
5293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5295 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5296   echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298   if test -n "$ac_ct_CXX"; then
5299   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5303 do
5304   IFS=$as_save_IFS
5305   test -z "$as_dir" && as_dir=.
5306   for ac_exec_ext in '' $ac_executable_extensions; do
5307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308     ac_cv_prog_ac_ct_CXX="$ac_prog"
5309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310     break 2
5311   fi
5312 done
5313 done
5314 IFS=$as_save_IFS
5315
5316 fi
5317 fi
5318 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5319 if test -n "$ac_ct_CXX"; then
5320   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5321 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5322 else
5323   { echo "$as_me:$LINENO: result: no" >&5
5324 echo "${ECHO_T}no" >&6; }
5325 fi
5326
5327
5328   test -n "$ac_ct_CXX" && break
5329 done
5330
5331   if test "x$ac_ct_CXX" = x; then
5332     CXX="g++"
5333   else
5334     case $cross_compiling:$ac_tool_warned in
5335 yes:)
5336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5337 whose name does not start with the host triplet.  If you think this
5338 configuration is useful to you, please write to autoconf@gnu.org." >&5
5339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5340 whose name does not start with the host triplet.  If you think this
5341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5342 ac_tool_warned=yes ;;
5343 esac
5344     CXX=$ac_ct_CXX
5345   fi
5346 fi
5347
5348   fi
5349 fi
5350 # Provide some information about the compiler.
5351 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5352 ac_compiler=`set X $ac_compile; echo $2`
5353 { (ac_try="$ac_compiler --version >&5"
5354 case "(($ac_try" in
5355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356   *) ac_try_echo=$ac_try;;
5357 esac
5358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359   (eval "$ac_compiler --version >&5") 2>&5
5360   ac_status=$?
5361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362   (exit $ac_status); }
5363 { (ac_try="$ac_compiler -v >&5"
5364 case "(($ac_try" in
5365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366   *) ac_try_echo=$ac_try;;
5367 esac
5368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369   (eval "$ac_compiler -v >&5") 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); }
5373 { (ac_try="$ac_compiler -V >&5"
5374 case "(($ac_try" in
5375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376   *) ac_try_echo=$ac_try;;
5377 esac
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379   (eval "$ac_compiler -V >&5") 2>&5
5380   ac_status=$?
5381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382   (exit $ac_status); }
5383
5384 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5385 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5386 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5387   echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389   cat >conftest.$ac_ext <<_ACEOF
5390 /* confdefs.h.  */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h.  */
5395
5396 int
5397 main ()
5398 {
5399 #ifndef __GNUC__
5400        choke me
5401 #endif
5402
5403   ;
5404   return 0;
5405 }
5406 _ACEOF
5407 rm -f conftest.$ac_objext
5408 if { (ac_try="$ac_compile"
5409 case "(($ac_try" in
5410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411   *) ac_try_echo=$ac_try;;
5412 esac
5413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414   (eval "$ac_compile") 2>conftest.er1
5415   ac_status=$?
5416   grep -v '^ *+' conftest.er1 >conftest.err
5417   rm -f conftest.er1
5418   cat conftest.err >&5
5419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420   (exit $ac_status); } && {
5421          test -z "$ac_cxx_werror_flag" ||
5422          test ! -s conftest.err
5423        } && test -s conftest.$ac_objext; then
5424   ac_compiler_gnu=yes
5425 else
5426   echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5428
5429         ac_compiler_gnu=no
5430 fi
5431
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5434
5435 fi
5436 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5437 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5438 GXX=`test $ac_compiler_gnu = yes && echo yes`
5439 ac_test_CXXFLAGS=${CXXFLAGS+set}
5440 ac_save_CXXFLAGS=$CXXFLAGS
5441 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5442 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5443 if test "${ac_cv_prog_cxx_g+set}" = set; then
5444   echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5447    ac_cxx_werror_flag=yes
5448    ac_cv_prog_cxx_g=no
5449    CXXFLAGS="-g"
5450    cat >conftest.$ac_ext <<_ACEOF
5451 /* confdefs.h.  */
5452 _ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h.  */
5456
5457 int
5458 main ()
5459 {
5460
5461   ;
5462   return 0;
5463 }
5464 _ACEOF
5465 rm -f conftest.$ac_objext
5466 if { (ac_try="$ac_compile"
5467 case "(($ac_try" in
5468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469   *) ac_try_echo=$ac_try;;
5470 esac
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472   (eval "$ac_compile") 2>conftest.er1
5473   ac_status=$?
5474   grep -v '^ *+' conftest.er1 >conftest.err
5475   rm -f conftest.er1
5476   cat conftest.err >&5
5477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478   (exit $ac_status); } && {
5479          test -z "$ac_cxx_werror_flag" ||
5480          test ! -s conftest.err
5481        } && test -s conftest.$ac_objext; then
5482   ac_cv_prog_cxx_g=yes
5483 else
5484   echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5486
5487         CXXFLAGS=""
5488       cat >conftest.$ac_ext <<_ACEOF
5489 /* confdefs.h.  */
5490 _ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h.  */
5494
5495 int
5496 main ()
5497 {
5498
5499   ;
5500   return 0;
5501 }
5502 _ACEOF
5503 rm -f conftest.$ac_objext
5504 if { (ac_try="$ac_compile"
5505 case "(($ac_try" in
5506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507   *) ac_try_echo=$ac_try;;
5508 esac
5509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510   (eval "$ac_compile") 2>conftest.er1
5511   ac_status=$?
5512   grep -v '^ *+' conftest.er1 >conftest.err
5513   rm -f conftest.er1
5514   cat conftest.err >&5
5515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516   (exit $ac_status); } && {
5517          test -z "$ac_cxx_werror_flag" ||
5518          test ! -s conftest.err
5519        } && test -s conftest.$ac_objext; then
5520   :
5521 else
5522   echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.$ac_ext >&5
5524
5525         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5526          CXXFLAGS="-g"
5527          cat >conftest.$ac_ext <<_ACEOF
5528 /* confdefs.h.  */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h.  */
5533
5534 int
5535 main ()
5536 {
5537
5538   ;
5539   return 0;
5540 }
5541 _ACEOF
5542 rm -f conftest.$ac_objext
5543 if { (ac_try="$ac_compile"
5544 case "(($ac_try" in
5545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546   *) ac_try_echo=$ac_try;;
5547 esac
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549   (eval "$ac_compile") 2>conftest.er1
5550   ac_status=$?
5551   grep -v '^ *+' conftest.er1 >conftest.err
5552   rm -f conftest.er1
5553   cat conftest.err >&5
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); } && {
5556          test -z "$ac_cxx_werror_flag" ||
5557          test ! -s conftest.err
5558        } && test -s conftest.$ac_objext; then
5559   ac_cv_prog_cxx_g=yes
5560 else
5561   echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5563
5564
5565 fi
5566
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 fi
5569
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571 fi
5572
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5575 fi
5576 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5577 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5578 if test "$ac_test_CXXFLAGS" = set; then
5579   CXXFLAGS=$ac_save_CXXFLAGS
5580 elif test $ac_cv_prog_cxx_g = yes; then
5581   if test "$GXX" = yes; then
5582     CXXFLAGS="-g -O2"
5583   else
5584     CXXFLAGS="-g"
5585   fi
5586 else
5587   if test "$GXX" = yes; then
5588     CXXFLAGS="-O2"
5589   else
5590     CXXFLAGS=
5591   fi
5592 fi
5593 ac_ext=cpp
5594 ac_cpp='$CXXCPP $CPPFLAGS'
5595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5598
5599 depcc="$CXX"  am_compiler_list=
5600
5601 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5602 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5603 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5604   echo $ECHO_N "(cached) $ECHO_C" >&6
5605 else
5606   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5607   # We make a subdir and do the tests there.  Otherwise we can end up
5608   # making bogus files that we don't know about and never remove.  For
5609   # instance it was reported that on HP-UX the gcc test will end up
5610   # making a dummy file named `D' -- because `-MD' means `put the output
5611   # in D'.
5612   mkdir conftest.dir
5613   # Copy depcomp to subdir because otherwise we won't find it if we're
5614   # using a relative directory.
5615   cp "$am_depcomp" conftest.dir
5616   cd conftest.dir
5617   # We will build objects and dependencies in a subdirectory because
5618   # it helps to detect inapplicable dependency modes.  For instance
5619   # both Tru64's cc and ICC support -MD to output dependencies as a
5620   # side effect of compilation, but ICC will put the dependencies in
5621   # the current directory while Tru64 will put them in the object
5622   # directory.
5623   mkdir sub
5624
5625   am_cv_CXX_dependencies_compiler_type=none
5626   if test "$am_compiler_list" = ""; then
5627      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5628   fi
5629   for depmode in $am_compiler_list; do
5630     # Setup a source with many dependencies, because some compilers
5631     # like to wrap large dependency lists on column 80 (with \), and
5632     # we should not choose a depcomp mode which is confused by this.
5633     #
5634     # We need to recreate these files for each test, as the compiler may
5635     # overwrite some of them when testing with obscure command lines.
5636     # This happens at least with the AIX C compiler.
5637     : > sub/conftest.c
5638     for i in 1 2 3 4 5 6; do
5639       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5640       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5641       # Solaris 8's {/usr,}/bin/sh.
5642       touch sub/conftst$i.h
5643     done
5644     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5645
5646     case $depmode in
5647     nosideeffect)
5648       # after this tag, mechanisms are not by side-effect, so they'll
5649       # only be used when explicitly requested
5650       if test "x$enable_dependency_tracking" = xyes; then
5651         continue
5652       else
5653         break
5654       fi
5655       ;;
5656     none) break ;;
5657     esac
5658     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5659     # mode.  It turns out that the SunPro C++ compiler does not properly
5660     # handle `-M -o', and we need to detect this.
5661     if depmode=$depmode \
5662        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5663        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5664        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5665          >/dev/null 2>conftest.err &&
5666        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5667        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5668        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5669       # icc doesn't choke on unknown options, it will just issue warnings
5670       # or remarks (even with -Werror).  So we grep stderr for any message
5671       # that says an option was ignored or not supported.
5672       # When given -MP, icc 7.0 and 7.1 complain thusly:
5673       #   icc: Command line warning: ignoring option '-M'; no argument required
5674       # The diagnosis changed in icc 8.0:
5675       #   icc: Command line remark: option '-MP' not supported
5676       if (grep 'ignoring option' conftest.err ||
5677           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5678         am_cv_CXX_dependencies_compiler_type=$depmode
5679         break
5680       fi
5681     fi
5682   done
5683
5684   cd ..
5685   rm -rf conftest.dir
5686 else
5687   am_cv_CXX_dependencies_compiler_type=none
5688 fi
5689
5690 fi
5691 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5692 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5693 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5694
5695
5696
5697 if
5698   test "x$enable_dependency_tracking" != xno \
5699   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5700   am__fastdepCXX_TRUE=
5701   am__fastdepCXX_FALSE='#'
5702 else
5703   am__fastdepCXX_TRUE='#'
5704   am__fastdepCXX_FALSE=
5705 fi
5706
5707
5708
5709
5710 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5711     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5712     (test "X$CXX" != "Xg++"))) ; then
5713   ac_ext=cpp
5714 ac_cpp='$CXXCPP $CPPFLAGS'
5715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5718 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5719 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5720 if test -z "$CXXCPP"; then
5721   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5722   echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724       # Double quotes because CXXCPP needs to be expanded
5725     for CXXCPP in "$CXX -E" "/lib/cpp"
5726     do
5727       ac_preproc_ok=false
5728 for ac_cxx_preproc_warn_flag in '' yes
5729 do
5730   # Use a header file that comes with gcc, so configuring glibc
5731   # with a fresh cross-compiler works.
5732   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5733   # <limits.h> exists even on freestanding compilers.
5734   # On the NeXT, cc -E runs the code through the compiler's parser,
5735   # not just through cpp. "Syntax error" is here to catch this case.
5736   cat >conftest.$ac_ext <<_ACEOF
5737 /* confdefs.h.  */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h.  */
5742 #ifdef __STDC__
5743 # include <limits.h>
5744 #else
5745 # include <assert.h>
5746 #endif
5747                      Syntax error
5748 _ACEOF
5749 if { (ac_try="$ac_cpp conftest.$ac_ext"
5750 case "(($ac_try" in
5751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752   *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5756   ac_status=$?
5757   grep -v '^ *+' conftest.er1 >conftest.err
5758   rm -f conftest.er1
5759   cat conftest.err >&5
5760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761   (exit $ac_status); } >/dev/null && {
5762          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5763          test ! -s conftest.err
5764        }; then
5765   :
5766 else
5767   echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5769
5770   # Broken: fails on valid input.
5771 continue
5772 fi
5773
5774 rm -f conftest.err conftest.$ac_ext
5775
5776   # OK, works on sane cases.  Now check whether nonexistent headers
5777   # can be detected and how.
5778   cat >conftest.$ac_ext <<_ACEOF
5779 /* confdefs.h.  */
5780 _ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h.  */
5784 #include <ac_nonexistent.h>
5785 _ACEOF
5786 if { (ac_try="$ac_cpp conftest.$ac_ext"
5787 case "(($ac_try" in
5788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789   *) ac_try_echo=$ac_try;;
5790 esac
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5793   ac_status=$?
5794   grep -v '^ *+' conftest.er1 >conftest.err
5795   rm -f conftest.er1
5796   cat conftest.err >&5
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); } >/dev/null && {
5799          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5800          test ! -s conftest.err
5801        }; then
5802   # Broken: success on invalid input.
5803 continue
5804 else
5805   echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5807
5808   # Passes both tests.
5809 ac_preproc_ok=:
5810 break
5811 fi
5812
5813 rm -f conftest.err conftest.$ac_ext
5814
5815 done
5816 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5817 rm -f conftest.err conftest.$ac_ext
5818 if $ac_preproc_ok; then
5819   break
5820 fi
5821
5822     done
5823     ac_cv_prog_CXXCPP=$CXXCPP
5824
5825 fi
5826   CXXCPP=$ac_cv_prog_CXXCPP
5827 else
5828   ac_cv_prog_CXXCPP=$CXXCPP
5829 fi
5830 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5831 echo "${ECHO_T}$CXXCPP" >&6; }
5832 ac_preproc_ok=false
5833 for ac_cxx_preproc_warn_flag in '' yes
5834 do
5835   # Use a header file that comes with gcc, so configuring glibc
5836   # with a fresh cross-compiler works.
5837   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5838   # <limits.h> exists even on freestanding compilers.
5839   # On the NeXT, cc -E runs the code through the compiler's parser,
5840   # not just through cpp. "Syntax error" is here to catch this case.
5841   cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h.  */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h.  */
5847 #ifdef __STDC__
5848 # include <limits.h>
5849 #else
5850 # include <assert.h>
5851 #endif
5852                      Syntax error
5853 _ACEOF
5854 if { (ac_try="$ac_cpp conftest.$ac_ext"
5855 case "(($ac_try" in
5856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857   *) ac_try_echo=$ac_try;;
5858 esac
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5861   ac_status=$?
5862   grep -v '^ *+' conftest.er1 >conftest.err
5863   rm -f conftest.er1
5864   cat conftest.err >&5
5865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); } >/dev/null && {
5867          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5868          test ! -s conftest.err
5869        }; then
5870   :
5871 else
5872   echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5874
5875   # Broken: fails on valid input.
5876 continue
5877 fi
5878
5879 rm -f conftest.err conftest.$ac_ext
5880
5881   # OK, works on sane cases.  Now check whether nonexistent headers
5882   # can be detected and how.
5883   cat >conftest.$ac_ext <<_ACEOF
5884 /* confdefs.h.  */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h.  */
5889 #include <ac_nonexistent.h>
5890 _ACEOF
5891 if { (ac_try="$ac_cpp conftest.$ac_ext"
5892 case "(($ac_try" in
5893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894   *) ac_try_echo=$ac_try;;
5895 esac
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5898   ac_status=$?
5899   grep -v '^ *+' conftest.er1 >conftest.err
5900   rm -f conftest.er1
5901   cat conftest.err >&5
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); } >/dev/null && {
5904          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5905          test ! -s conftest.err
5906        }; then
5907   # Broken: success on invalid input.
5908 continue
5909 else
5910   echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5912
5913   # Passes both tests.
5914 ac_preproc_ok=:
5915 break
5916 fi
5917
5918 rm -f conftest.err conftest.$ac_ext
5919
5920 done
5921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5922 rm -f conftest.err conftest.$ac_ext
5923 if $ac_preproc_ok; then
5924   :
5925 else
5926   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5927 See \`config.log' for more details." >&5
5928 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5929 See \`config.log' for more details." >&2;}
5930    { (exit 1); exit 1; }; }
5931 fi
5932
5933 ac_ext=cpp
5934 ac_cpp='$CXXCPP $CPPFLAGS'
5935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5938
5939 fi
5940
5941
5942 ac_ext=f
5943 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5944 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5945 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5946 if test -n "$ac_tool_prefix"; then
5947   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5948   do
5949     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5953 if test "${ac_cv_prog_F77+set}" = set; then
5954   echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956   if test -n "$F77"; then
5957   ac_cv_prog_F77="$F77" # Let the user override the test.
5958 else
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH
5961 do
5962   IFS=$as_save_IFS
5963   test -z "$as_dir" && as_dir=.
5964   for ac_exec_ext in '' $ac_executable_extensions; do
5965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5966     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968     break 2
5969   fi
5970 done
5971 done
5972 IFS=$as_save_IFS
5973
5974 fi
5975 fi
5976 F77=$ac_cv_prog_F77
5977 if test -n "$F77"; then
5978   { echo "$as_me:$LINENO: result: $F77" >&5
5979 echo "${ECHO_T}$F77" >&6; }
5980 else
5981   { echo "$as_me:$LINENO: result: no" >&5
5982 echo "${ECHO_T}no" >&6; }
5983 fi
5984
5985
5986     test -n "$F77" && break
5987   done
5988 fi
5989 if test -z "$F77"; then
5990   ac_ct_F77=$F77
5991   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5992 do
5993   # Extract the first word of "$ac_prog", so it can be a program name with args.
5994 set dummy $ac_prog; ac_word=$2
5995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5997 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5998   echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000   if test -n "$ac_ct_F77"; then
6001   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6002 else
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 for as_dir in $PATH
6005 do
6006   IFS=$as_save_IFS
6007   test -z "$as_dir" && as_dir=.
6008   for ac_exec_ext in '' $ac_executable_extensions; do
6009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6010     ac_cv_prog_ac_ct_F77="$ac_prog"
6011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012     break 2
6013   fi
6014 done
6015 done
6016 IFS=$as_save_IFS
6017
6018 fi
6019 fi
6020 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6021 if test -n "$ac_ct_F77"; then
6022   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6023 echo "${ECHO_T}$ac_ct_F77" >&6; }
6024 else
6025   { echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6; }
6027 fi
6028
6029
6030   test -n "$ac_ct_F77" && break
6031 done
6032
6033   if test "x$ac_ct_F77" = x; then
6034     F77=""
6035   else
6036     case $cross_compiling:$ac_tool_warned in
6037 yes:)
6038 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6039 whose name does not start with the host triplet.  If you think this
6040 configuration is useful to you, please write to autoconf@gnu.org." >&5
6041 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6042 whose name does not start with the host triplet.  If you think this
6043 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6044 ac_tool_warned=yes ;;
6045 esac
6046     F77=$ac_ct_F77
6047   fi
6048 fi
6049
6050
6051 # Provide some information about the compiler.
6052 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6053 ac_compiler=`set X $ac_compile; echo $2`
6054 { (ac_try="$ac_compiler --version >&5"
6055 case "(($ac_try" in
6056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057   *) ac_try_echo=$ac_try;;
6058 esac
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060   (eval "$ac_compiler --version >&5") 2>&5
6061   ac_status=$?
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); }
6064 { (ac_try="$ac_compiler -v >&5"
6065 case "(($ac_try" in
6066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067   *) ac_try_echo=$ac_try;;
6068 esac
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070   (eval "$ac_compiler -v >&5") 2>&5
6071   ac_status=$?
6072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073   (exit $ac_status); }
6074 { (ac_try="$ac_compiler -V >&5"
6075 case "(($ac_try" in
6076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077   *) ac_try_echo=$ac_try;;
6078 esac
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080   (eval "$ac_compiler -V >&5") 2>&5
6081   ac_status=$?
6082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083   (exit $ac_status); }
6084 rm -f a.out
6085
6086 # If we don't use `.F' as extension, the preprocessor is not run on the
6087 # input file.  (Note that this only needs to work for GNU compilers.)
6088 ac_save_ext=$ac_ext
6089 ac_ext=F
6090 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6091 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6092 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6093   echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6095   cat >conftest.$ac_ext <<_ACEOF
6096       program main
6097 #ifndef __GNUC__
6098        choke me
6099 #endif
6100
6101       end
6102 _ACEOF
6103 rm -f conftest.$ac_objext
6104 if { (ac_try="$ac_compile"
6105 case "(($ac_try" in
6106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107   *) ac_try_echo=$ac_try;;
6108 esac
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110   (eval "$ac_compile") 2>conftest.er1
6111   ac_status=$?
6112   grep -v '^ *+' conftest.er1 >conftest.err
6113   rm -f conftest.er1
6114   cat conftest.err >&5
6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116   (exit $ac_status); } && {
6117          test -z "$ac_f77_werror_flag" ||
6118          test ! -s conftest.err
6119        } && test -s conftest.$ac_objext; then
6120   ac_compiler_gnu=yes
6121 else
6122   echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6124
6125         ac_compiler_gnu=no
6126 fi
6127
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6130
6131 fi
6132 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6133 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6134 ac_ext=$ac_save_ext
6135 ac_test_FFLAGS=${FFLAGS+set}
6136 ac_save_FFLAGS=$FFLAGS
6137 FFLAGS=
6138 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6139 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6140 if test "${ac_cv_prog_f77_g+set}" = set; then
6141   echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143   FFLAGS=-g
6144 cat >conftest.$ac_ext <<_ACEOF
6145       program main
6146
6147       end
6148 _ACEOF
6149 rm -f conftest.$ac_objext
6150 if { (ac_try="$ac_compile"
6151 case "(($ac_try" in
6152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153   *) ac_try_echo=$ac_try;;
6154 esac
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156   (eval "$ac_compile") 2>conftest.er1
6157   ac_status=$?
6158   grep -v '^ *+' conftest.er1 >conftest.err
6159   rm -f conftest.er1
6160   cat conftest.err >&5
6161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162   (exit $ac_status); } && {
6163          test -z "$ac_f77_werror_flag" ||
6164          test ! -s conftest.err
6165        } && test -s conftest.$ac_objext; then
6166   ac_cv_prog_f77_g=yes
6167 else
6168   echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6170
6171         ac_cv_prog_f77_g=no
6172 fi
6173
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175
6176 fi
6177 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6178 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6179 if test "$ac_test_FFLAGS" = set; then
6180   FFLAGS=$ac_save_FFLAGS
6181 elif test $ac_cv_prog_f77_g = yes; then
6182   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6183     FFLAGS="-g -O2"
6184   else
6185     FFLAGS="-g"
6186   fi
6187 else
6188   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6189     FFLAGS="-O2"
6190   else
6191     FFLAGS=
6192   fi
6193 fi
6194
6195 G77=`test $ac_compiler_gnu = yes && echo yes`
6196 ac_ext=c
6197 ac_cpp='$CPP $CPPFLAGS'
6198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6201
6202
6203
6204 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6205
6206 # find the maximum length of command line arguments
6207 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6208 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6209 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6210   echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212     i=0
6213   teststring="ABCD"
6214
6215   case $build_os in
6216   msdosdjgpp*)
6217     # On DJGPP, this test can blow up pretty badly due to problems in libc
6218     # (any single argument exceeding 2000 bytes causes a buffer overrun
6219     # during glob expansion).  Even if it were fixed, the result of this
6220     # check would be larger than it should be.
6221     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6222     ;;
6223
6224   gnu*)
6225     # Under GNU Hurd, this test is not required because there is
6226     # no limit to the length of command line arguments.
6227     # Libtool will interpret -1 as no limit whatsoever
6228     lt_cv_sys_max_cmd_len=-1;
6229     ;;
6230
6231   cygwin* | mingw*)
6232     # On Win9x/ME, this test blows up -- it succeeds, but takes
6233     # about 5 minutes as the teststring grows exponentially.
6234     # Worse, since 9x/ME are not pre-emptively multitasking,
6235     # you end up with a "frozen" computer, even though with patience
6236     # the test eventually succeeds (with a max line length of 256k).
6237     # Instead, let's just punt: use the minimum linelength reported by
6238     # all of the supported platforms: 8192 (on NT/2K/XP).
6239     lt_cv_sys_max_cmd_len=8192;
6240     ;;
6241
6242   amigaos*)
6243     # On AmigaOS with pdksh, this test takes hours, literally.
6244     # So we just punt and use a minimum line length of 8192.
6245     lt_cv_sys_max_cmd_len=8192;
6246     ;;
6247
6248   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6249     # This has been around since 386BSD, at least.  Likely further.
6250     if test -x /sbin/sysctl; then
6251       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6252     elif test -x /usr/sbin/sysctl; then
6253       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6254     else
6255       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6256     fi
6257     # And add a safety zone
6258     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6259     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6260     ;;
6261
6262   interix*)
6263     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6264     lt_cv_sys_max_cmd_len=196608
6265     ;;
6266
6267   osf*)
6268     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6269     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6270     # nice to cause kernel panics so lets avoid the loop below.
6271     # First set a reasonable default.
6272     lt_cv_sys_max_cmd_len=16384
6273     #
6274     if test -x /sbin/sysconfig; then
6275       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6276         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6277       esac
6278     fi
6279     ;;
6280   sco3.2v5*)
6281     lt_cv_sys_max_cmd_len=102400
6282     ;;
6283   sysv5* | sco5v6* | sysv4.2uw2*)
6284     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6285     if test -n "$kargmax"; then
6286       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6287     else
6288       lt_cv_sys_max_cmd_len=32768
6289     fi
6290     ;;
6291   *)
6292     # If test is not a shell built-in, we'll probably end up computing a
6293     # maximum length that is only half of the actual maximum length, but
6294     # we can't tell.
6295     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6296     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6297                = "XX$teststring") >/dev/null 2>&1 &&
6298             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6299             lt_cv_sys_max_cmd_len=$new_result &&
6300             test $i != 17 # 1/2 MB should be enough
6301     do
6302       i=`expr $i + 1`
6303       teststring=$teststring$teststring
6304     done
6305     teststring=
6306     # Add a significant safety factor because C++ compilers can tack on massive
6307     # amounts of additional arguments before passing them to the linker.
6308     # It appears as though 1/2 is a usable value.
6309     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6310     ;;
6311   esac
6312
6313 fi
6314
6315 if test -n $lt_cv_sys_max_cmd_len ; then
6316   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6317 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6318 else
6319   { echo "$as_me:$LINENO: result: none" >&5
6320 echo "${ECHO_T}none" >&6; }
6321 fi
6322
6323
6324
6325
6326 # Check for command to grab the raw symbol name followed by C symbol from nm.
6327 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6328 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6329 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6330   echo $ECHO_N "(cached) $ECHO_C" >&6
6331 else
6332
6333 # These are sane defaults that work on at least a few old systems.
6334 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6335
6336 # Character class describing NM global symbol codes.
6337 symcode='[BCDEGRST]'
6338
6339 # Regexp to match symbols that can be accessed directly from C.
6340 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6341
6342 # Transform an extracted symbol line into a proper C declaration
6343 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6344
6345 # Transform an extracted symbol line into symbol name and symbol address
6346 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6347
6348 # Define system-specific variables.
6349 case $host_os in
6350 aix*)
6351   symcode='[BCDT]'
6352   ;;
6353 cygwin* | mingw* | pw32*)
6354   symcode='[ABCDGISTW]'
6355   ;;
6356 hpux*) # Its linker distinguishes data from code symbols
6357   if test "$host_cpu" = ia64; then
6358     symcode='[ABCDEGRST]'
6359   fi
6360   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6361   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6362   ;;
6363 linux* | k*bsd*-gnu)
6364   if test "$host_cpu" = ia64; then
6365     symcode='[ABCDGIRSTW]'
6366     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6367     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6368   fi
6369   ;;
6370 irix* | nonstopux*)
6371   symcode='[BCDEGRST]'
6372   ;;
6373 osf*)
6374   symcode='[BCDEGQRST]'
6375   ;;
6376 solaris*)
6377   symcode='[BDRT]'
6378   ;;
6379 sco3.2v5*)
6380   symcode='[DT]'
6381   ;;
6382 sysv4.2uw2*)
6383   symcode='[DT]'
6384   ;;
6385 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6386   symcode='[ABDT]'
6387   ;;
6388 sysv4)
6389   symcode='[DFNSTU]'
6390   ;;
6391 esac
6392
6393 # Handle CRLF in mingw tool chain
6394 opt_cr=
6395 case $build_os in
6396 mingw*)
6397   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6398   ;;
6399 esac
6400
6401 # If we're using GNU nm, then use its standard symbol codes.
6402 case `$NM -V 2>&1` in
6403 *GNU* | *'with BFD'*)
6404   symcode='[ABCDGIRSTW]' ;;
6405 esac
6406
6407 # Try without a prefix undercore, then with it.
6408 for ac_symprfx in "" "_"; do
6409
6410   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6411   symxfrm="\\1 $ac_symprfx\\2 \\2"
6412
6413   # Write the raw and C identifiers.
6414   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6415
6416   # Check to see that the pipe works correctly.
6417   pipe_works=no
6418
6419   rm -f conftest*
6420   cat > conftest.$ac_ext <<EOF
6421 #ifdef __cplusplus
6422 extern "C" {
6423 #endif
6424 char nm_test_var;
6425 void nm_test_func(){}
6426 #ifdef __cplusplus
6427 }
6428 #endif
6429 int main(){nm_test_var='a';nm_test_func();return(0);}
6430 EOF
6431
6432   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6433   (eval $ac_compile) 2>&5
6434   ac_status=$?
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); }; then
6437     # Now try to grab the symbols.
6438     nlist=conftest.nm
6439     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6440   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6441   ac_status=$?
6442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443   (exit $ac_status); } && test -s "$nlist"; then
6444       # Try sorting and uniquifying the output.
6445       if sort "$nlist" | uniq > "$nlist"T; then
6446         mv -f "$nlist"T "$nlist"
6447       else
6448         rm -f "$nlist"T
6449       fi
6450
6451       # Make sure that we snagged all the symbols we need.
6452       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6453         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6454           cat <<EOF > conftest.$ac_ext
6455 #ifdef __cplusplus
6456 extern "C" {
6457 #endif
6458
6459 EOF
6460           # Now generate the symbol file.
6461           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6462
6463           cat <<EOF >> conftest.$ac_ext
6464 #if defined (__STDC__) && __STDC__
6465 # define lt_ptr_t void *
6466 #else
6467 # define lt_ptr_t char *
6468 # define const
6469 #endif
6470
6471 /* The mapping between symbol names and symbols. */
6472 const struct {
6473   const char *name;
6474   lt_ptr_t address;
6475 }
6476 lt_preloaded_symbols[] =
6477 {
6478 EOF
6479           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6480           cat <<\EOF >> conftest.$ac_ext
6481   {0, (lt_ptr_t) 0}
6482 };
6483
6484 #ifdef __cplusplus
6485 }
6486 #endif
6487 EOF
6488           # Now try linking the two files.
6489           mv conftest.$ac_objext conftstm.$ac_objext
6490           lt_save_LIBS="$LIBS"
6491           lt_save_CFLAGS="$CFLAGS"
6492           LIBS="conftstm.$ac_objext"
6493           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6494           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6495   (eval $ac_link) 2>&5
6496   ac_status=$?
6497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6499             pipe_works=yes
6500           fi
6501           LIBS="$lt_save_LIBS"
6502           CFLAGS="$lt_save_CFLAGS"
6503         else
6504           echo "cannot find nm_test_func in $nlist" >&5
6505         fi
6506       else
6507         echo "cannot find nm_test_var in $nlist" >&5
6508       fi
6509     else
6510       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6511     fi
6512   else
6513     echo "$progname: failed program was:" >&5
6514     cat conftest.$ac_ext >&5
6515   fi
6516   rm -f conftest* conftst*
6517
6518   # Do not use the global_symbol_pipe unless it works.
6519   if test "$pipe_works" = yes; then
6520     break
6521   else
6522     lt_cv_sys_global_symbol_pipe=
6523   fi
6524 done
6525
6526 fi
6527
6528 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6529   lt_cv_sys_global_symbol_to_cdecl=
6530 fi
6531 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6532   { echo "$as_me:$LINENO: result: failed" >&5
6533 echo "${ECHO_T}failed" >&6; }
6534 else
6535   { echo "$as_me:$LINENO: result: ok" >&5
6536 echo "${ECHO_T}ok" >&6; }
6537 fi
6538
6539 { echo "$as_me:$LINENO: checking for objdir" >&5
6540 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6541 if test "${lt_cv_objdir+set}" = set; then
6542   echo $ECHO_N "(cached) $ECHO_C" >&6
6543 else
6544   rm -f .libs 2>/dev/null
6545 mkdir .libs 2>/dev/null
6546 if test -d .libs; then
6547   lt_cv_objdir=.libs
6548 else
6549   # MS-DOS does not allow filenames that begin with a dot.
6550   lt_cv_objdir=_libs
6551 fi
6552 rmdir .libs 2>/dev/null
6553 fi
6554 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6555 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6556 objdir=$lt_cv_objdir
6557
6558
6559
6560
6561
6562 case $host_os in
6563 aix3*)
6564   # AIX sometimes has problems with the GCC collect2 program.  For some
6565   # reason, if we set the COLLECT_NAMES environment variable, the problems
6566   # vanish in a puff of smoke.
6567   if test "X${COLLECT_NAMES+set}" != Xset; then
6568     COLLECT_NAMES=
6569     export COLLECT_NAMES
6570   fi
6571   ;;
6572 esac
6573
6574 # Sed substitution that helps us do robust quoting.  It backslashifies
6575 # metacharacters that are still active within double-quoted strings.
6576 Xsed='sed -e 1s/^X//'
6577 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6578
6579 # Same as above, but do not quote variable references.
6580 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6581
6582 # Sed substitution to delay expansion of an escaped shell variable in a
6583 # double_quote_subst'ed string.
6584 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6585
6586 # Sed substitution to avoid accidental globbing in evaled expressions
6587 no_glob_subst='s/\*/\\\*/g'
6588
6589 # Constants:
6590 rm="rm -f"
6591
6592 # Global variables:
6593 default_ofile=libtool
6594 can_build_shared=yes
6595
6596 # All known linkers require a `.a' archive for static linking (except MSVC,
6597 # which needs '.lib').
6598 libext=a
6599 ltmain="$ac_aux_dir/ltmain.sh"
6600 ofile="$default_ofile"
6601 with_gnu_ld="$lt_cv_prog_gnu_ld"
6602
6603 if test -n "$ac_tool_prefix"; then
6604   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6605 set dummy ${ac_tool_prefix}ar; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_prog_AR+set}" = set; then
6609   echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611   if test -n "$AR"; then
6612   ac_cv_prog_AR="$AR" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617   IFS=$as_save_IFS
6618   test -z "$as_dir" && as_dir=.
6619   for ac_exec_ext in '' $ac_executable_extensions; do
6620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621     ac_cv_prog_AR="${ac_tool_prefix}ar"
6622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623     break 2
6624   fi
6625 done
6626 done
6627 IFS=$as_save_IFS
6628
6629 fi
6630 fi
6631 AR=$ac_cv_prog_AR
6632 if test -n "$AR"; then
6633   { echo "$as_me:$LINENO: result: $AR" >&5
6634 echo "${ECHO_T}$AR" >&6; }
6635 else
6636   { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6638 fi
6639
6640
6641 fi
6642 if test -z "$ac_cv_prog_AR"; then
6643   ac_ct_AR=$AR
6644   # Extract the first word of "ar", so it can be a program name with args.
6645 set dummy ar; ac_word=$2
6646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6648 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6649   echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651   if test -n "$ac_ct_AR"; then
6652   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6653 else
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 for as_dir in $PATH
6656 do
6657   IFS=$as_save_IFS
6658   test -z "$as_dir" && as_dir=.
6659   for ac_exec_ext in '' $ac_executable_extensions; do
6660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6661     ac_cv_prog_ac_ct_AR="ar"
6662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663     break 2
6664   fi
6665 done
6666 done
6667 IFS=$as_save_IFS
6668
6669 fi
6670 fi
6671 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6672 if test -n "$ac_ct_AR"; then
6673   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6674 echo "${ECHO_T}$ac_ct_AR" >&6; }
6675 else
6676   { echo "$as_me:$LINENO: result: no" >&5
6677 echo "${ECHO_T}no" >&6; }
6678 fi
6679
6680   if test "x$ac_ct_AR" = x; then
6681     AR="false"
6682   else
6683     case $cross_compiling:$ac_tool_warned in
6684 yes:)
6685 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6686 whose name does not start with the host triplet.  If you think this
6687 configuration is useful to you, please write to autoconf@gnu.org." >&5
6688 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6689 whose name does not start with the host triplet.  If you think this
6690 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6691 ac_tool_warned=yes ;;
6692 esac
6693     AR=$ac_ct_AR
6694   fi
6695 else
6696   AR="$ac_cv_prog_AR"
6697 fi
6698
6699 if test -n "$ac_tool_prefix"; then
6700   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6701 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6704 if test "${ac_cv_prog_RANLIB+set}" = set; then
6705   echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707   if test -n "$RANLIB"; then
6708   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6712 do
6713   IFS=$as_save_IFS
6714   test -z "$as_dir" && as_dir=.
6715   for ac_exec_ext in '' $ac_executable_extensions; do
6716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6717     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719     break 2
6720   fi
6721 done
6722 done
6723 IFS=$as_save_IFS
6724
6725 fi
6726 fi
6727 RANLIB=$ac_cv_prog_RANLIB
6728 if test -n "$RANLIB"; then
6729   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6730 echo "${ECHO_T}$RANLIB" >&6; }
6731 else
6732   { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6734 fi
6735
6736
6737 fi
6738 if test -z "$ac_cv_prog_RANLIB"; then
6739   ac_ct_RANLIB=$RANLIB
6740   # Extract the first word of "ranlib", so it can be a program name with args.
6741 set dummy ranlib; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6745   echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747   if test -n "$ac_ct_RANLIB"; then
6748   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6752 do
6753   IFS=$as_save_IFS
6754   test -z "$as_dir" && as_dir=.
6755   for ac_exec_ext in '' $ac_executable_extensions; do
6756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757     ac_cv_prog_ac_ct_RANLIB="ranlib"
6758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759     break 2
6760   fi
6761 done
6762 done
6763 IFS=$as_save_IFS
6764
6765 fi
6766 fi
6767 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6768 if test -n "$ac_ct_RANLIB"; then
6769   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6770 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6771 else
6772   { echo "$as_me:$LINENO: result: no" >&5
6773 echo "${ECHO_T}no" >&6; }
6774 fi
6775
6776   if test "x$ac_ct_RANLIB" = x; then
6777     RANLIB=":"
6778   else
6779     case $cross_compiling:$ac_tool_warned in
6780 yes:)
6781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6782 whose name does not start with the host triplet.  If you think this
6783 configuration is useful to you, please write to autoconf@gnu.org." >&5
6784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6785 whose name does not start with the host triplet.  If you think this
6786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6787 ac_tool_warned=yes ;;
6788 esac
6789     RANLIB=$ac_ct_RANLIB
6790   fi
6791 else
6792   RANLIB="$ac_cv_prog_RANLIB"
6793 fi
6794
6795 if test -n "$ac_tool_prefix"; then
6796   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6797 set dummy ${ac_tool_prefix}strip; ac_word=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_prog_STRIP+set}" = set; then
6801   echo $ECHO_N "(cached) $ECHO_C" >&6
6802 else
6803   if test -n "$STRIP"; then
6804   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809   IFS=$as_save_IFS
6810   test -z "$as_dir" && as_dir=.
6811   for ac_exec_ext in '' $ac_executable_extensions; do
6812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6813     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815     break 2
6816   fi
6817 done
6818 done
6819 IFS=$as_save_IFS
6820
6821 fi
6822 fi
6823 STRIP=$ac_cv_prog_STRIP
6824 if test -n "$STRIP"; then
6825   { echo "$as_me:$LINENO: result: $STRIP" >&5
6826 echo "${ECHO_T}$STRIP" >&6; }
6827 else
6828   { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6830 fi
6831
6832
6833 fi
6834 if test -z "$ac_cv_prog_STRIP"; then
6835   ac_ct_STRIP=$STRIP
6836   # Extract the first word of "strip", so it can be a program name with args.
6837 set dummy strip; ac_word=$2
6838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6840 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6841   echo $ECHO_N "(cached) $ECHO_C" >&6
6842 else
6843   if test -n "$ac_ct_STRIP"; then
6844   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849   IFS=$as_save_IFS
6850   test -z "$as_dir" && as_dir=.
6851   for ac_exec_ext in '' $ac_executable_extensions; do
6852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853     ac_cv_prog_ac_ct_STRIP="strip"
6854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855     break 2
6856   fi
6857 done
6858 done
6859 IFS=$as_save_IFS
6860
6861 fi
6862 fi
6863 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6864 if test -n "$ac_ct_STRIP"; then
6865   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6866 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6867 else
6868   { echo "$as_me:$LINENO: result: no" >&5
6869 echo "${ECHO_T}no" >&6; }
6870 fi
6871
6872   if test "x$ac_ct_STRIP" = x; then
6873     STRIP=":"
6874   else
6875     case $cross_compiling:$ac_tool_warned in
6876 yes:)
6877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6878 whose name does not start with the host triplet.  If you think this
6879 configuration is useful to you, please write to autoconf@gnu.org." >&5
6880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6881 whose name does not start with the host triplet.  If you think this
6882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6883 ac_tool_warned=yes ;;
6884 esac
6885     STRIP=$ac_ct_STRIP
6886   fi
6887 else
6888   STRIP="$ac_cv_prog_STRIP"
6889 fi
6890
6891
6892 old_CC="$CC"
6893 old_CFLAGS="$CFLAGS"
6894
6895 # Set sane defaults for various variables
6896 test -z "$AR" && AR=ar
6897 test -z "$AR_FLAGS" && AR_FLAGS=cru
6898 test -z "$AS" && AS=as
6899 test -z "$CC" && CC=cc
6900 test -z "$LTCC" && LTCC=$CC
6901 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6902 test -z "$DLLTOOL" && DLLTOOL=dlltool
6903 test -z "$LD" && LD=ld
6904 test -z "$LN_S" && LN_S="ln -s"
6905 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6906 test -z "$NM" && NM=nm
6907 test -z "$SED" && SED=sed
6908 test -z "$OBJDUMP" && OBJDUMP=objdump
6909 test -z "$RANLIB" && RANLIB=:
6910 test -z "$STRIP" && STRIP=:
6911 test -z "$ac_objext" && ac_objext=o
6912
6913 # Determine commands to create old-style static archives.
6914 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6915 old_postinstall_cmds='chmod 644 $oldlib'
6916 old_postuninstall_cmds=
6917
6918 if test -n "$RANLIB"; then
6919   case $host_os in
6920   openbsd*)
6921     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6922     ;;
6923   *)
6924     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6925     ;;
6926   esac
6927   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6928 fi
6929
6930 for cc_temp in $compiler""; do
6931   case $cc_temp in
6932     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6933     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6934     \-*) ;;
6935     *) break;;
6936   esac
6937 done
6938 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6939
6940
6941 # Only perform the check for file, if the check method requires it
6942 case $deplibs_check_method in
6943 file_magic*)
6944   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6945     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6946 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6947 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6948   echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950   case $MAGIC_CMD in
6951 [\\/*] |  ?:[\\/]*)
6952   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6953   ;;
6954 *)
6955   lt_save_MAGIC_CMD="$MAGIC_CMD"
6956   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6957   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6958   for ac_dir in $ac_dummy; do
6959     IFS="$lt_save_ifs"
6960     test -z "$ac_dir" && ac_dir=.
6961     if test -f $ac_dir/${ac_tool_prefix}file; then
6962       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6963       if test -n "$file_magic_test_file"; then
6964         case $deplibs_check_method in
6965         "file_magic "*)
6966           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6967           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6968           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6969             $EGREP "$file_magic_regex" > /dev/null; then
6970             :
6971           else
6972             cat <<EOF 1>&2
6973
6974 *** Warning: the command libtool uses to detect shared libraries,
6975 *** $file_magic_cmd, produces output that libtool cannot recognize.
6976 *** The result is that libtool may fail to recognize shared libraries
6977 *** as such.  This will affect the creation of libtool libraries that
6978 *** depend on shared libraries, but programs linked with such libtool
6979 *** libraries will work regardless of this problem.  Nevertheless, you
6980 *** may want to report the problem to your system manager and/or to
6981 *** bug-libtool@gnu.org
6982
6983 EOF
6984           fi ;;
6985         esac
6986       fi
6987       break
6988     fi
6989   done
6990   IFS="$lt_save_ifs"
6991   MAGIC_CMD="$lt_save_MAGIC_CMD"
6992   ;;
6993 esac
6994 fi
6995
6996 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6997 if test -n "$MAGIC_CMD"; then
6998   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6999 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7000 else
7001   { echo "$as_me:$LINENO: result: no" >&5
7002 echo "${ECHO_T}no" >&6; }
7003 fi
7004
7005 if test -z "$lt_cv_path_MAGIC_CMD"; then
7006   if test -n "$ac_tool_prefix"; then
7007     { echo "$as_me:$LINENO: checking for file" >&5
7008 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7009 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7010   echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012   case $MAGIC_CMD in
7013 [\\/*] |  ?:[\\/]*)
7014   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7015   ;;
7016 *)
7017   lt_save_MAGIC_CMD="$MAGIC_CMD"
7018   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7019   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7020   for ac_dir in $ac_dummy; do
7021     IFS="$lt_save_ifs"
7022     test -z "$ac_dir" && ac_dir=.
7023     if test -f $ac_dir/file; then
7024       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7025       if test -n "$file_magic_test_file"; then
7026         case $deplibs_check_method in
7027         "file_magic "*)
7028           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7029           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7030           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7031             $EGREP "$file_magic_regex" > /dev/null; then
7032             :
7033           else
7034             cat <<EOF 1>&2
7035
7036 *** Warning: the command libtool uses to detect shared libraries,
7037 *** $file_magic_cmd, produces output that libtool cannot recognize.
7038 *** The result is that libtool may fail to recognize shared libraries
7039 *** as such.  This will affect the creation of libtool libraries that
7040 *** depend on shared libraries, but programs linked with such libtool
7041 *** libraries will work regardless of this problem.  Nevertheless, you
7042 *** may want to report the problem to your system manager and/or to
7043 *** bug-libtool@gnu.org
7044
7045 EOF
7046           fi ;;
7047         esac
7048       fi
7049       break
7050     fi
7051   done
7052   IFS="$lt_save_ifs"
7053   MAGIC_CMD="$lt_save_MAGIC_CMD"
7054   ;;
7055 esac
7056 fi
7057
7058 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7059 if test -n "$MAGIC_CMD"; then
7060   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7061 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7062 else
7063   { echo "$as_me:$LINENO: result: no" >&5
7064 echo "${ECHO_T}no" >&6; }
7065 fi
7066
7067   else
7068     MAGIC_CMD=:
7069   fi
7070 fi
7071
7072   fi
7073   ;;
7074 esac
7075
7076 enable_dlopen=no
7077 enable_win32_dll=no
7078
7079 # Check whether --enable-libtool-lock was given.
7080 if test "${enable_libtool_lock+set}" = set; then
7081   enableval=$enable_libtool_lock;
7082 fi
7083
7084 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7085
7086
7087 # Check whether --with-pic was given.
7088 if test "${with_pic+set}" = set; then
7089   withval=$with_pic; pic_mode="$withval"
7090 else
7091   pic_mode=default
7092 fi
7093
7094 test -z "$pic_mode" && pic_mode=default
7095
7096 # Use C for the default configuration in the libtool script
7097 tagname=
7098 lt_save_CC="$CC"
7099 ac_ext=c
7100 ac_cpp='$CPP $CPPFLAGS'
7101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7104
7105
7106 # Source file extension for C test sources.
7107 ac_ext=c
7108
7109 # Object file extension for compiled C test sources.
7110 objext=o
7111 objext=$objext
7112
7113 # Code to be used in simple compile tests
7114 lt_simple_compile_test_code="int some_variable = 0;\n"
7115
7116 # Code to be used in simple link tests
7117 lt_simple_link_test_code='int main(){return(0);}\n'
7118
7119
7120 # If no C compiler was specified, use CC.
7121 LTCC=${LTCC-"$CC"}
7122
7123 # If no C compiler flags were specified, use CFLAGS.
7124 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7125
7126 # Allow CC to be a program name with arguments.
7127 compiler=$CC
7128
7129
7130 # save warnings/boilerplate of simple test code
7131 ac_outfile=conftest.$ac_objext
7132 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7133 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7134 _lt_compiler_boilerplate=`cat conftest.err`
7135 $rm conftest*
7136
7137 ac_outfile=conftest.$ac_objext
7138 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7139 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7140 _lt_linker_boilerplate=`cat conftest.err`
7141 $rm conftest*
7142
7143
7144
7145 lt_prog_compiler_no_builtin_flag=
7146
7147 if test "$GCC" = yes; then
7148   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7149
7150
7151 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7152 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7153 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7154   echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156   lt_cv_prog_compiler_rtti_exceptions=no
7157   ac_outfile=conftest.$ac_objext
7158    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7159    lt_compiler_flag="-fno-rtti -fno-exceptions"
7160    # Insert the option either (1) after the last *FLAGS variable, or
7161    # (2) before a word containing "conftest.", or (3) at the end.
7162    # Note that $ac_compile itself does not contain backslashes and begins
7163    # with a dollar sign (not a hyphen), so the echo should work correctly.
7164    # The option is referenced via a variable to avoid confusing sed.
7165    lt_compile=`echo "$ac_compile" | $SED \
7166    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7167    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7168    -e 's:$: $lt_compiler_flag:'`
7169    (eval echo "\"\$as_me:7169: $lt_compile\"" >&5)
7170    (eval "$lt_compile" 2>conftest.err)
7171    ac_status=$?
7172    cat conftest.err >&5
7173    echo "$as_me:7173: \$? = $ac_status" >&5
7174    if (exit $ac_status) && test -s "$ac_outfile"; then
7175      # The compiler can only warn and ignore the option if not recognized
7176      # So say no if there are warnings other than the usual output.
7177      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7178      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7179      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7180        lt_cv_prog_compiler_rtti_exceptions=yes
7181      fi
7182    fi
7183    $rm conftest*
7184
7185 fi
7186 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7187 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7188
7189 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7190     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7191 else
7192     :
7193 fi
7194
7195 fi
7196
7197 lt_prog_compiler_wl=
7198 lt_prog_compiler_pic=
7199 lt_prog_compiler_static=
7200
7201 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7202 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7203
7204   if test "$GCC" = yes; then
7205     lt_prog_compiler_wl='-Wl,'
7206     lt_prog_compiler_static='-static'
7207
7208     case $host_os in
7209       aix*)
7210       # All AIX code is PIC.
7211       if test "$host_cpu" = ia64; then
7212         # AIX 5 now supports IA64 processor
7213         lt_prog_compiler_static='-Bstatic'
7214       fi
7215       ;;
7216
7217     amigaos*)
7218       # FIXME: we need at least 68020 code to build shared libraries, but
7219       # adding the `-m68020' flag to GCC prevents building anything better,
7220       # like `-m68040'.
7221       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7222       ;;
7223
7224     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7225       # PIC is the default for these OSes.
7226       ;;
7227
7228     mingw* | pw32* | os2*)
7229       # This hack is so that the source file can tell whether it is being
7230       # built for inclusion in a dll (and should export symbols for example).
7231       lt_prog_compiler_pic='-DDLL_EXPORT'
7232       ;;
7233
7234     darwin* | rhapsody*)
7235       # PIC is the default on this platform
7236       # Common symbols not allowed in MH_DYLIB files
7237       lt_prog_compiler_pic='-fno-common'
7238       ;;
7239
7240     interix3*)
7241       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7242       # Instead, we relocate shared libraries at runtime.
7243       ;;
7244
7245     msdosdjgpp*)
7246       # Just because we use GCC doesn't mean we suddenly get shared libraries
7247       # on systems that don't support them.
7248       lt_prog_compiler_can_build_shared=no
7249       enable_shared=no
7250       ;;
7251
7252     sysv4*MP*)
7253       if test -d /usr/nec; then
7254         lt_prog_compiler_pic=-Kconform_pic
7255       fi
7256       ;;
7257
7258     hpux*)
7259       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7260       # not for PA HP-UX.
7261       case $host_cpu in
7262       hppa*64*|ia64*)
7263         # +Z the default
7264         ;;
7265       *)
7266         lt_prog_compiler_pic='-fPIC'
7267         ;;
7268       esac
7269       ;;
7270
7271     *)
7272       lt_prog_compiler_pic='-fPIC'
7273       ;;
7274     esac
7275   else
7276     # PORTME Check for flag to pass linker flags through the system compiler.
7277     case $host_os in
7278     aix*)
7279       lt_prog_compiler_wl='-Wl,'
7280       if test "$host_cpu" = ia64; then
7281         # AIX 5 now supports IA64 processor
7282         lt_prog_compiler_static='-Bstatic'
7283       else
7284         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7285       fi
7286       ;;
7287       darwin*)
7288         # PIC is the default on this platform
7289         # Common symbols not allowed in MH_DYLIB files
7290        case $cc_basename in
7291          xlc*)
7292          lt_prog_compiler_pic='-qnocommon'
7293          lt_prog_compiler_wl='-Wl,'
7294          ;;
7295        esac
7296        ;;
7297
7298     mingw* | pw32* | os2*)
7299       # This hack is so that the source file can tell whether it is being
7300       # built for inclusion in a dll (and should export symbols for example).
7301       lt_prog_compiler_pic='-DDLL_EXPORT'
7302       ;;
7303
7304     hpux9* | hpux10* | hpux11*)
7305       lt_prog_compiler_wl='-Wl,'
7306       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7307       # not for PA HP-UX.
7308       case $host_cpu in
7309       hppa*64*|ia64*)
7310         # +Z the default
7311         ;;
7312       *)
7313         lt_prog_compiler_pic='+Z'
7314         ;;
7315       esac
7316       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7317       lt_prog_compiler_static='${wl}-a ${wl}archive'
7318       ;;
7319
7320     irix5* | irix6* | nonstopux*)
7321       lt_prog_compiler_wl='-Wl,'
7322       # PIC (with -KPIC) is the default.
7323       lt_prog_compiler_static='-non_shared'
7324       ;;
7325
7326     newsos6)
7327       lt_prog_compiler_pic='-KPIC'
7328       lt_prog_compiler_static='-Bstatic'
7329       ;;
7330
7331     linux* | k*bsd*-gnu)
7332       case $cc_basename in
7333       icc* | ecc*)
7334         lt_prog_compiler_wl='-Wl,'
7335         lt_prog_compiler_pic='-KPIC'
7336         lt_prog_compiler_static='-static'
7337         ;;
7338       pgcc* | pgf77* | pgf90* | pgf95*)
7339         # Portland Group compilers (*not* the Pentium gcc compiler,
7340         # which looks to be a dead project)
7341         lt_prog_compiler_wl='-Wl,'
7342         lt_prog_compiler_pic='-fpic'
7343         lt_prog_compiler_static='-Bstatic'
7344         ;;
7345       ccc*)
7346         lt_prog_compiler_wl='-Wl,'
7347         # All Alpha code is PIC.
7348         lt_prog_compiler_static='-non_shared'
7349         ;;
7350       esac
7351       ;;
7352
7353     osf3* | osf4* | osf5*)
7354       lt_prog_compiler_wl='-Wl,'
7355       # All OSF/1 code is PIC.
7356       lt_prog_compiler_static='-non_shared'
7357       ;;
7358
7359     solaris*)
7360       lt_prog_compiler_pic='-KPIC'
7361       lt_prog_compiler_static='-Bstatic'
7362       case $cc_basename in
7363       f77* | f90* | f95*)
7364         lt_prog_compiler_wl='-Qoption ld ';;
7365       *)
7366         lt_prog_compiler_wl='-Wl,';;
7367       esac
7368       ;;
7369
7370     sunos4*)
7371       lt_prog_compiler_wl='-Qoption ld '
7372       lt_prog_compiler_pic='-PIC'
7373       lt_prog_compiler_static='-Bstatic'
7374       ;;
7375
7376     sysv4 | sysv4.2uw2* | sysv4.3*)
7377       lt_prog_compiler_wl='-Wl,'
7378       lt_prog_compiler_pic='-KPIC'
7379       lt_prog_compiler_static='-Bstatic'
7380       ;;
7381
7382     sysv4*MP*)
7383       if test -d /usr/nec ;then
7384         lt_prog_compiler_pic='-Kconform_pic'
7385         lt_prog_compiler_static='-Bstatic'
7386       fi
7387       ;;
7388
7389     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7390       lt_prog_compiler_wl='-Wl,'
7391       lt_prog_compiler_pic='-KPIC'
7392       lt_prog_compiler_static='-Bstatic'
7393       ;;
7394
7395     unicos*)
7396       lt_prog_compiler_wl='-Wl,'
7397       lt_prog_compiler_can_build_shared=no
7398       ;;
7399
7400     uts4*)
7401       lt_prog_compiler_pic='-pic'
7402       lt_prog_compiler_static='-Bstatic'
7403       ;;
7404
7405     *)
7406       lt_prog_compiler_can_build_shared=no
7407       ;;
7408     esac
7409   fi
7410
7411 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7412 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7413
7414 #
7415 # Check to make sure the PIC flag actually works.
7416 #
7417 if test -n "$lt_prog_compiler_pic"; then
7418
7419 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7420 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7421 if test "${lt_prog_compiler_pic_works+set}" = set; then
7422   echo $ECHO_N "(cached) $ECHO_C" >&6
7423 else
7424   lt_prog_compiler_pic_works=no
7425   ac_outfile=conftest.$ac_objext
7426    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7427    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7428    # Insert the option either (1) after the last *FLAGS variable, or
7429    # (2) before a word containing "conftest.", or (3) at the end.
7430    # Note that $ac_compile itself does not contain backslashes and begins
7431    # with a dollar sign (not a hyphen), so the echo should work correctly.
7432    # The option is referenced via a variable to avoid confusing sed.
7433    lt_compile=`echo "$ac_compile" | $SED \
7434    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7435    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7436    -e 's:$: $lt_compiler_flag:'`
7437    (eval echo "\"\$as_me:7437: $lt_compile\"" >&5)
7438    (eval "$lt_compile" 2>conftest.err)
7439    ac_status=$?
7440    cat conftest.err >&5
7441    echo "$as_me:7441: \$? = $ac_status" >&5
7442    if (exit $ac_status) && test -s "$ac_outfile"; then
7443      # The compiler can only warn and ignore the option if not recognized
7444      # So say no if there are warnings other than the usual output.
7445      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7446      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7447      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7448        lt_prog_compiler_pic_works=yes
7449      fi
7450    fi
7451    $rm conftest*
7452
7453 fi
7454 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7455 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7456
7457 if test x"$lt_prog_compiler_pic_works" = xyes; then
7458     case $lt_prog_compiler_pic in
7459      "" | " "*) ;;
7460      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7461      esac
7462 else
7463     lt_prog_compiler_pic=
7464      lt_prog_compiler_can_build_shared=no
7465 fi
7466
7467 fi
7468 case $host_os in
7469   # For platforms which do not support PIC, -DPIC is meaningless:
7470   *djgpp*)
7471     lt_prog_compiler_pic=
7472     ;;
7473   *)
7474     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7475     ;;
7476 esac
7477
7478 #
7479 # Check to make sure the static flag actually works.
7480 #
7481 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7482 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7483 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7484 if test "${lt_prog_compiler_static_works+set}" = set; then
7485   echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487   lt_prog_compiler_static_works=no
7488    save_LDFLAGS="$LDFLAGS"
7489    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7490    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7491    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7492      # The linker can only warn and ignore the option if not recognized
7493      # So say no if there are warnings
7494      if test -s conftest.err; then
7495        # Append any errors to the config.log.
7496        cat conftest.err 1>&5
7497        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7498        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7499        if diff conftest.exp conftest.er2 >/dev/null; then
7500          lt_prog_compiler_static_works=yes
7501        fi
7502      else
7503        lt_prog_compiler_static_works=yes
7504      fi
7505    fi
7506    $rm conftest*
7507    LDFLAGS="$save_LDFLAGS"
7508
7509 fi
7510 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7511 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7512
7513 if test x"$lt_prog_compiler_static_works" = xyes; then
7514     :
7515 else
7516     lt_prog_compiler_static=
7517 fi
7518
7519
7520 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7521 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7522 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7523   echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525   lt_cv_prog_compiler_c_o=no
7526    $rm -r conftest 2>/dev/null
7527    mkdir conftest
7528    cd conftest
7529    mkdir out
7530    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7531
7532    lt_compiler_flag="-o out/conftest2.$ac_objext"
7533    # Insert the option either (1) after the last *FLAGS variable, or
7534    # (2) before a word containing "conftest.", or (3) at the end.
7535    # Note that $ac_compile itself does not contain backslashes and begins
7536    # with a dollar sign (not a hyphen), so the echo should work correctly.
7537    lt_compile=`echo "$ac_compile" | $SED \
7538    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7539    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7540    -e 's:$: $lt_compiler_flag:'`
7541    (eval echo "\"\$as_me:7541: $lt_compile\"" >&5)
7542    (eval "$lt_compile" 2>out/conftest.err)
7543    ac_status=$?
7544    cat out/conftest.err >&5
7545    echo "$as_me:7545: \$? = $ac_status" >&5
7546    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7547    then
7548      # The compiler can only warn and ignore the option if not recognized
7549      # So say no if there are warnings
7550      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7551      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7552      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7553        lt_cv_prog_compiler_c_o=yes
7554      fi
7555    fi
7556    chmod u+w . 2>&5
7557    $rm conftest*
7558    # SGI C++ compiler will create directory out/ii_files/ for
7559    # template instantiation
7560    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7561    $rm out/* && rmdir out
7562    cd ..
7563    rmdir conftest
7564    $rm conftest*
7565
7566 fi
7567 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7568 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7569
7570
7571 hard_links="nottested"
7572 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7573   # do not overwrite the value of need_locks provided by the user
7574   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7575 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7576   hard_links=yes
7577   $rm conftest*
7578   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7579   touch conftest.a
7580   ln conftest.a conftest.b 2>&5 || hard_links=no
7581   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7582   { echo "$as_me:$LINENO: result: $hard_links" >&5
7583 echo "${ECHO_T}$hard_links" >&6; }
7584   if test "$hard_links" = no; then
7585     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7586 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7587     need_locks=warn
7588   fi
7589 else
7590   need_locks=no
7591 fi
7592
7593 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7594 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7595
7596   runpath_var=
7597   allow_undefined_flag=
7598   enable_shared_with_static_runtimes=no
7599   archive_cmds=
7600   archive_expsym_cmds=
7601   old_archive_From_new_cmds=
7602   old_archive_from_expsyms_cmds=
7603   export_dynamic_flag_spec=
7604   whole_archive_flag_spec=
7605   thread_safe_flag_spec=
7606   hardcode_libdir_flag_spec=
7607   hardcode_libdir_flag_spec_ld=
7608   hardcode_libdir_separator=
7609   hardcode_direct=no
7610   hardcode_minus_L=no
7611   hardcode_shlibpath_var=unsupported
7612   link_all_deplibs=unknown
7613   hardcode_automatic=no
7614   module_cmds=
7615   module_expsym_cmds=
7616   always_export_symbols=no
7617   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7618   # include_expsyms should be a list of space-separated symbols to be *always*
7619   # included in the symbol list
7620   include_expsyms=
7621   # exclude_expsyms can be an extended regexp of symbols to exclude
7622   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7623   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7624   # as well as any symbol that contains `d'.
7625   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7626   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7627   # platforms (ab)use it in PIC code, but their linkers get confused if
7628   # the symbol is explicitly referenced.  Since portable code cannot
7629   # rely on this symbol name, it's probably fine to never include it in
7630   # preloaded symbol tables.
7631   extract_expsyms_cmds=
7632   # Just being paranoid about ensuring that cc_basename is set.
7633   for cc_temp in $compiler""; do
7634   case $cc_temp in
7635     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7636     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7637     \-*) ;;
7638     *) break;;
7639   esac
7640 done
7641 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7642
7643   case $host_os in
7644   cygwin* | mingw* | pw32*)
7645     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7646     # When not using gcc, we currently assume that we are using
7647     # Microsoft Visual C++.
7648     if test "$GCC" != yes; then
7649       with_gnu_ld=no
7650     fi
7651     ;;
7652   interix*)
7653     # we just hope/assume this is gcc and not c89 (= MSVC++)
7654     with_gnu_ld=yes
7655     ;;
7656   openbsd*)
7657     with_gnu_ld=no
7658     ;;
7659   esac
7660
7661   ld_shlibs=yes
7662   if test "$with_gnu_ld" = yes; then
7663     # If archive_cmds runs LD, not CC, wlarc should be empty
7664     wlarc='${wl}'
7665
7666     # Set some defaults for GNU ld with shared library support. These
7667     # are reset later if shared libraries are not supported. Putting them
7668     # here allows them to be overridden if necessary.
7669     runpath_var=LD_RUN_PATH
7670     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7671     export_dynamic_flag_spec='${wl}--export-dynamic'
7672     # ancient GNU ld didn't support --whole-archive et. al.
7673     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7674         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7675       else
7676         whole_archive_flag_spec=
7677     fi
7678     supports_anon_versioning=no
7679     case `$LD -v 2>/dev/null` in
7680       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7681       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7682       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7683       *\ 2.11.*) ;; # other 2.11 versions
7684       *) supports_anon_versioning=yes ;;
7685     esac
7686
7687     # See if GNU ld supports shared libraries.
7688     case $host_os in
7689     aix3* | aix4* | aix5*)
7690       # On AIX/PPC, the GNU linker is very broken
7691       if test "$host_cpu" != ia64; then
7692         ld_shlibs=no
7693         cat <<EOF 1>&2
7694
7695 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7696 *** to be unable to reliably create shared libraries on AIX.
7697 *** Therefore, libtool is disabling shared libraries support.  If you
7698 *** really care for shared libraries, you may want to modify your PATH
7699 *** so that a non-GNU linker is found, and then restart.
7700
7701 EOF
7702       fi
7703       ;;
7704
7705     amigaos*)
7706       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)'
7707       hardcode_libdir_flag_spec='-L$libdir'
7708       hardcode_minus_L=yes
7709
7710       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7711       # that the semantics of dynamic libraries on AmigaOS, at least up
7712       # to version 4, is to share data among multiple programs linked
7713       # with the same dynamic library.  Since this doesn't match the
7714       # behavior of shared libraries on other platforms, we can't use
7715       # them.
7716       ld_shlibs=no
7717       ;;
7718
7719     beos*)
7720       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7721         allow_undefined_flag=unsupported
7722         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7723         # support --undefined.  This deserves some investigation.  FIXME
7724         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7725       else
7726         ld_shlibs=no
7727       fi
7728       ;;
7729
7730     cygwin* | mingw* | pw32*)
7731       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7732       # as there is no search path for DLLs.
7733       hardcode_libdir_flag_spec='-L$libdir'
7734       allow_undefined_flag=unsupported
7735       always_export_symbols=no
7736       enable_shared_with_static_runtimes=yes
7737       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7738
7739       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7740         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7741         # If the export-symbols file already is a .def file (1st line
7742         # is EXPORTS), use it as is; otherwise, prepend...
7743         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7744           cp $export_symbols $output_objdir/$soname.def;
7745         else
7746           echo EXPORTS > $output_objdir/$soname.def;
7747           cat $export_symbols >> $output_objdir/$soname.def;
7748         fi~
7749         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7750       else
7751         ld_shlibs=no
7752       fi
7753       ;;
7754
7755     interix3*)
7756       hardcode_direct=no
7757       hardcode_shlibpath_var=no
7758       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7759       export_dynamic_flag_spec='${wl}-E'
7760       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7761       # Instead, shared libraries are loaded at an image base (0x10000000 by
7762       # default) and relocated if they conflict, which is a slow very memory
7763       # consuming and fragmenting process.  To avoid this, we pick a random,
7764       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7765       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7766       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7767       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'
7768       ;;
7769
7770     linux* | k*bsd*-gnu)
7771       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7772         tmp_addflag=
7773         case $cc_basename,$host_cpu in
7774         pgcc*)                          # Portland Group C compiler
7775           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'
7776           tmp_addflag=' $pic_flag'
7777           ;;
7778         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7779           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'
7780           tmp_addflag=' $pic_flag -Mnomain' ;;
7781         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7782           tmp_addflag=' -i_dynamic' ;;
7783         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7784           tmp_addflag=' -i_dynamic -nofor_main' ;;
7785         ifc* | ifort*)                  # Intel Fortran compiler
7786           tmp_addflag=' -nofor_main' ;;
7787         esac
7788         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7789
7790         if test $supports_anon_versioning = yes; then
7791           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7792   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7793   $echo "local: *; };" >> $output_objdir/$libname.ver~
7794           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7795         fi
7796         link_all_deplibs=no
7797       else
7798         ld_shlibs=no
7799       fi
7800       ;;
7801
7802     netbsd* | netbsdelf*-gnu)
7803       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7804         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7805         wlarc=
7806       else
7807         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7808         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7809       fi
7810       ;;
7811
7812     solaris*)
7813       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7814         ld_shlibs=no
7815         cat <<EOF 1>&2
7816
7817 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7818 *** create shared libraries on Solaris systems.  Therefore, libtool
7819 *** is disabling shared libraries support.  We urge you to upgrade GNU
7820 *** binutils to release 2.9.1 or newer.  Another option is to modify
7821 *** your PATH or compiler configuration so that the native linker is
7822 *** used, and then restart.
7823
7824 EOF
7825       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7826         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7827         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7828       else
7829         ld_shlibs=no
7830       fi
7831       ;;
7832
7833     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7834       case `$LD -v 2>&1` in
7835         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7836         ld_shlibs=no
7837         cat <<_LT_EOF 1>&2
7838
7839 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7840 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7841 *** is disabling shared libraries support.  We urge you to upgrade GNU
7842 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7843 *** your PATH or compiler configuration so that the native linker is
7844 *** used, and then restart.
7845
7846 _LT_EOF
7847         ;;
7848         *)
7849           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7850             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7851             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7852             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7853           else
7854             ld_shlibs=no
7855           fi
7856         ;;
7857       esac
7858       ;;
7859
7860     sunos4*)
7861       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7862       wlarc=
7863       hardcode_direct=yes
7864       hardcode_shlibpath_var=no
7865       ;;
7866
7867     *)
7868       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7869         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7870         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7871       else
7872         ld_shlibs=no
7873       fi
7874       ;;
7875     esac
7876
7877     if test "$ld_shlibs" = no; then
7878       runpath_var=
7879       hardcode_libdir_flag_spec=
7880       export_dynamic_flag_spec=
7881       whole_archive_flag_spec=
7882     fi
7883   else
7884     # PORTME fill in a description of your system's linker (not GNU ld)
7885     case $host_os in
7886     aix3*)
7887       allow_undefined_flag=unsupported
7888       always_export_symbols=yes
7889       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'
7890       # Note: this linker hardcodes the directories in LIBPATH if there
7891       # are no directories specified by -L.
7892       hardcode_minus_L=yes
7893       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7894         # Neither direct hardcoding nor static linking is supported with a
7895         # broken collect2.
7896         hardcode_direct=unsupported
7897       fi
7898       ;;
7899
7900     aix4* | aix5*)
7901       if test "$host_cpu" = ia64; then
7902         # On IA64, the linker does run time linking by default, so we don't
7903         # have to do anything special.
7904         aix_use_runtimelinking=no
7905         exp_sym_flag='-Bexport'
7906         no_entry_flag=""
7907       else
7908         # If we're using GNU nm, then we don't want the "-C" option.
7909         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7910         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7911           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'
7912         else
7913           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'
7914         fi
7915         aix_use_runtimelinking=no
7916
7917         # Test if we are trying to use run time linking or normal
7918         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7919         # need to do runtime linking.
7920         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7921           for ld_flag in $LDFLAGS; do
7922           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7923             aix_use_runtimelinking=yes
7924             break
7925           fi
7926           done
7927           ;;
7928         esac
7929
7930         exp_sym_flag='-bexport'
7931         no_entry_flag='-bnoentry'
7932       fi
7933
7934       # When large executables or shared objects are built, AIX ld can
7935       # have problems creating the table of contents.  If linking a library
7936       # or program results in "error TOC overflow" add -mminimal-toc to
7937       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7938       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7939
7940       archive_cmds=''
7941       hardcode_direct=yes
7942       hardcode_libdir_separator=':'
7943       link_all_deplibs=yes
7944
7945       if test "$GCC" = yes; then
7946         case $host_os in aix4.[012]|aix4.[012].*)
7947         # We only want to do this on AIX 4.2 and lower, the check
7948         # below for broken collect2 doesn't work under 4.3+
7949           collect2name=`${CC} -print-prog-name=collect2`
7950           if test -f "$collect2name" && \
7951            strings "$collect2name" | grep resolve_lib_name >/dev/null
7952           then
7953           # We have reworked collect2
7954           hardcode_direct=yes
7955           else
7956           # We have old collect2
7957           hardcode_direct=unsupported
7958           # It fails to find uninstalled libraries when the uninstalled
7959           # path is not listed in the libpath.  Setting hardcode_minus_L
7960           # to unsupported forces relinking
7961           hardcode_minus_L=yes
7962           hardcode_libdir_flag_spec='-L$libdir'
7963           hardcode_libdir_separator=
7964           fi
7965           ;;
7966         esac
7967         shared_flag='-shared'
7968         if test "$aix_use_runtimelinking" = yes; then
7969           shared_flag="$shared_flag "'${wl}-G'
7970         fi
7971       else
7972         # not using gcc
7973         if test "$host_cpu" = ia64; then
7974         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7975         # chokes on -Wl,-G. The following line is correct:
7976           shared_flag='-G'
7977         else
7978           if test "$aix_use_runtimelinking" = yes; then
7979             shared_flag='${wl}-G'
7980           else
7981             shared_flag='${wl}-bM:SRE'
7982           fi
7983         fi
7984       fi
7985
7986       # It seems that -bexpall does not export symbols beginning with
7987       # underscore (_), so it is better to generate a list of symbols to export.
7988       always_export_symbols=yes
7989       if test "$aix_use_runtimelinking" = yes; then
7990         # Warning - without using the other runtime loading flags (-brtl),
7991         # -berok will link without error, but may produce a broken library.
7992         allow_undefined_flag='-berok'
7993        # Determine the default libpath from the value encoded in an empty executable.
7994        cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h.  */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h.  */
8000
8001 int
8002 main ()
8003 {
8004
8005   ;
8006   return 0;
8007 }
8008 _ACEOF
8009 rm -f conftest.$ac_objext conftest$ac_exeext
8010 if { (ac_try="$ac_link"
8011 case "(($ac_try" in
8012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013   *) ac_try_echo=$ac_try;;
8014 esac
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016   (eval "$ac_link") 2>conftest.er1
8017   ac_status=$?
8018   grep -v '^ *+' conftest.er1 >conftest.err
8019   rm -f conftest.er1
8020   cat conftest.err >&5
8021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022   (exit $ac_status); } && {
8023          test -z "$ac_c_werror_flag" ||
8024          test ! -s conftest.err
8025        } && test -s conftest$ac_exeext &&
8026        $as_test_x conftest$ac_exeext; then
8027
8028 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8029 }'`
8030 # Check for a 64-bit object if we didn't find anything.
8031 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8032 }'`; fi
8033 else
8034   echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8036
8037
8038 fi
8039
8040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8041       conftest$ac_exeext conftest.$ac_ext
8042 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8043
8044        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8045         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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8046        else
8047         if test "$host_cpu" = ia64; then
8048           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8049           allow_undefined_flag="-z nodefs"
8050           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"
8051         else
8052          # Determine the default libpath from the value encoded in an empty executable.
8053          cat >conftest.$ac_ext <<_ACEOF
8054 /* confdefs.h.  */
8055 _ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h.  */
8059
8060 int
8061 main ()
8062 {
8063
8064   ;
8065   return 0;
8066 }
8067 _ACEOF
8068 rm -f conftest.$ac_objext conftest$ac_exeext
8069 if { (ac_try="$ac_link"
8070 case "(($ac_try" in
8071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072   *) ac_try_echo=$ac_try;;
8073 esac
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075   (eval "$ac_link") 2>conftest.er1
8076   ac_status=$?
8077   grep -v '^ *+' conftest.er1 >conftest.err
8078   rm -f conftest.er1
8079   cat conftest.err >&5
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); } && {
8082          test -z "$ac_c_werror_flag" ||
8083          test ! -s conftest.err
8084        } && test -s conftest$ac_exeext &&
8085        $as_test_x conftest$ac_exeext; then
8086
8087 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8088 }'`
8089 # Check for a 64-bit object if we didn't find anything.
8090 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8091 }'`; fi
8092 else
8093   echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8095
8096
8097 fi
8098
8099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8100       conftest$ac_exeext conftest.$ac_ext
8101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8102
8103          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8104           # Warning - without using the other run time loading flags,
8105           # -berok will link without error, but may produce a broken library.
8106           no_undefined_flag=' ${wl}-bernotok'
8107           allow_undefined_flag=' ${wl}-berok'
8108           # Exported symbols can be pulled into shared objects from archives
8109           whole_archive_flag_spec='$convenience'
8110           archive_cmds_need_lc=yes
8111           # This is similar to how AIX traditionally builds its shared libraries.
8112           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'
8113         fi
8114       fi
8115       ;;
8116
8117     amigaos*)
8118       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)'
8119       hardcode_libdir_flag_spec='-L$libdir'
8120       hardcode_minus_L=yes
8121       # see comment about different semantics on the GNU ld section
8122       ld_shlibs=no
8123       ;;
8124
8125     bsdi[45]*)
8126       export_dynamic_flag_spec=-rdynamic
8127       ;;
8128
8129     cygwin* | mingw* | pw32*)
8130       # When not using gcc, we currently assume that we are using
8131       # Microsoft Visual C++.
8132       # hardcode_libdir_flag_spec is actually meaningless, as there is
8133       # no search path for DLLs.
8134       hardcode_libdir_flag_spec=' '
8135       allow_undefined_flag=unsupported
8136       # Tell ltmain to make .lib files, not .a files.
8137       libext=lib
8138       # Tell ltmain to make .dll files, not .so files.
8139       shrext_cmds=".dll"
8140       # FIXME: Setting linknames here is a bad hack.
8141       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8142       # The linker will automatically build a .lib file if we build a DLL.
8143       old_archive_From_new_cmds='true'
8144       # FIXME: Should let the user specify the lib program.
8145       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8146       fix_srcfile_path='`cygpath -w "$srcfile"`'
8147       enable_shared_with_static_runtimes=yes
8148       ;;
8149
8150     darwin* | rhapsody*)
8151       case $host_os in
8152         rhapsody* | darwin1.[012])
8153          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8154          ;;
8155        *) # Darwin 1.3 on
8156          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8157            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8158          else
8159            case ${MACOSX_DEPLOYMENT_TARGET} in
8160              10.[012])
8161                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8162                ;;
8163              10.*)
8164                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8165                ;;
8166            esac
8167          fi
8168          ;;
8169       esac
8170       archive_cmds_need_lc=no
8171       hardcode_direct=no
8172       hardcode_automatic=yes
8173       hardcode_shlibpath_var=unsupported
8174       whole_archive_flag_spec=''
8175       link_all_deplibs=yes
8176     if test "$GCC" = yes ; then
8177         output_verbose_link_cmd='echo'
8178         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8179       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8180       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8181       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8182       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8183     else
8184       case $cc_basename in
8185         xlc*)
8186          output_verbose_link_cmd='echo'
8187          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8188          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8189           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8190          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8191           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8192           ;;
8193        *)
8194          ld_shlibs=no
8195           ;;
8196       esac
8197     fi
8198       ;;
8199
8200     dgux*)
8201       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8202       hardcode_libdir_flag_spec='-L$libdir'
8203       hardcode_shlibpath_var=no
8204       ;;
8205
8206     freebsd1*)
8207       ld_shlibs=no
8208       ;;
8209
8210     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8211     # support.  Future versions do this automatically, but an explicit c++rt0.o
8212     # does not break anything, and helps significantly (at the cost of a little
8213     # extra space).
8214     freebsd2.2*)
8215       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8216       hardcode_libdir_flag_spec='-R$libdir'
8217       hardcode_direct=yes
8218       hardcode_shlibpath_var=no
8219       ;;
8220
8221     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8222     freebsd2*)
8223       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8224       hardcode_direct=yes
8225       hardcode_minus_L=yes
8226       hardcode_shlibpath_var=no
8227       ;;
8228
8229     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8230     freebsd* | dragonfly*)
8231       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8232       hardcode_libdir_flag_spec='-R$libdir'
8233       hardcode_direct=yes
8234       hardcode_shlibpath_var=no
8235       ;;
8236
8237     hpux9*)
8238       if test "$GCC" = yes; then
8239         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'
8240       else
8241         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'
8242       fi
8243       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8244       hardcode_libdir_separator=:
8245       hardcode_direct=yes
8246
8247       # hardcode_minus_L: Not really in the search PATH,
8248       # but as the default location of the library.
8249       hardcode_minus_L=yes
8250       export_dynamic_flag_spec='${wl}-E'
8251       ;;
8252
8253     hpux10*)
8254       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8255         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8256       else
8257         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8258       fi
8259       if test "$with_gnu_ld" = no; then
8260         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8261         hardcode_libdir_separator=:
8262
8263         hardcode_direct=yes
8264         export_dynamic_flag_spec='${wl}-E'
8265
8266         # hardcode_minus_L: Not really in the search PATH,
8267         # but as the default location of the library.
8268         hardcode_minus_L=yes
8269       fi
8270       ;;
8271
8272     hpux11*)
8273       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8274         case $host_cpu in
8275         hppa*64*)
8276           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8277           ;;
8278         ia64*)
8279           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8280           ;;
8281         *)
8282           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8283           ;;
8284         esac
8285       else
8286         case $host_cpu in
8287         hppa*64*)
8288           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8289           ;;
8290         ia64*)
8291           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8292           ;;
8293         *)
8294           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8295           ;;
8296         esac
8297       fi
8298       if test "$with_gnu_ld" = no; then
8299         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8300         hardcode_libdir_separator=:
8301
8302         case $host_cpu in
8303         hppa*64*|ia64*)
8304           hardcode_libdir_flag_spec_ld='+b $libdir'
8305           hardcode_direct=no
8306           hardcode_shlibpath_var=no
8307           ;;
8308         *)
8309           hardcode_direct=yes
8310           export_dynamic_flag_spec='${wl}-E'
8311
8312           # hardcode_minus_L: Not really in the search PATH,
8313           # but as the default location of the library.
8314           hardcode_minus_L=yes
8315           ;;
8316         esac
8317       fi
8318       ;;
8319
8320     irix5* | irix6* | nonstopux*)
8321       if test "$GCC" = yes; then
8322         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8323       else
8324         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8325         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8326       fi
8327       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8328       hardcode_libdir_separator=:
8329       link_all_deplibs=yes
8330       ;;
8331
8332     netbsd* | netbsdelf*-gnu)
8333       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8334         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8335       else
8336         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8337       fi
8338       hardcode_libdir_flag_spec='-R$libdir'
8339       hardcode_direct=yes
8340       hardcode_shlibpath_var=no
8341       ;;
8342
8343     newsos6)
8344       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8345       hardcode_direct=yes
8346       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8347       hardcode_libdir_separator=:
8348       hardcode_shlibpath_var=no
8349       ;;
8350
8351     openbsd*)
8352       hardcode_direct=yes
8353       hardcode_shlibpath_var=no
8354       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8355         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8356         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8357         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8358         export_dynamic_flag_spec='${wl}-E'
8359       else
8360        case $host_os in
8361          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8362            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8363            hardcode_libdir_flag_spec='-R$libdir'
8364            ;;
8365          *)
8366            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8367            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8368            ;;
8369        esac
8370       fi
8371       ;;
8372
8373     os2*)
8374       hardcode_libdir_flag_spec='-L$libdir'
8375       hardcode_minus_L=yes
8376       allow_undefined_flag=unsupported
8377       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'
8378       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8379       ;;
8380
8381     osf3*)
8382       if test "$GCC" = yes; then
8383         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8384         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8385       else
8386         allow_undefined_flag=' -expect_unresolved \*'
8387         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8388       fi
8389       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8390       hardcode_libdir_separator=:
8391       ;;
8392
8393     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8394       if test "$GCC" = yes; then
8395         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8396         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8397         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8398       else
8399         allow_undefined_flag=' -expect_unresolved \*'
8400         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8401         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8402         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8403
8404         # Both c and cxx compiler support -rpath directly
8405         hardcode_libdir_flag_spec='-rpath $libdir'
8406       fi
8407       hardcode_libdir_separator=:
8408       ;;
8409
8410     solaris*)
8411       no_undefined_flag=' -z text'
8412       if test "$GCC" = yes; then
8413         wlarc='${wl}'
8414         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8415         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8416           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8417       else
8418         wlarc=''
8419         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8420         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8421         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8422       fi
8423       hardcode_libdir_flag_spec='-R$libdir'
8424       hardcode_shlibpath_var=no
8425       case $host_os in
8426       solaris2.[0-5] | solaris2.[0-5].*) ;;
8427       *)
8428         # The compiler driver will combine linker options so we
8429         # cannot just pass the convience library names through
8430         # without $wl, iff we do not link with $LD.
8431         # Luckily, gcc supports the same syntax we need for Sun Studio.
8432         # Supported since Solaris 2.6 (maybe 2.5.1?)
8433         case $wlarc in
8434         '')
8435           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8436         *)
8437           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8438         esac ;;
8439       esac
8440       link_all_deplibs=yes
8441       ;;
8442
8443     sunos4*)
8444       if test "x$host_vendor" = xsequent; then
8445         # Use $CC to link under sequent, because it throws in some extra .o
8446         # files that make .init and .fini sections work.
8447         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8448       else
8449         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8450       fi
8451       hardcode_libdir_flag_spec='-L$libdir'
8452       hardcode_direct=yes
8453       hardcode_minus_L=yes
8454       hardcode_shlibpath_var=no
8455       ;;
8456
8457     sysv4)
8458       case $host_vendor in
8459         sni)
8460           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8461           hardcode_direct=yes # is this really true???
8462         ;;
8463         siemens)
8464           ## LD is ld it makes a PLAMLIB
8465           ## CC just makes a GrossModule.
8466           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8467           reload_cmds='$CC -r -o $output$reload_objs'
8468           hardcode_direct=no
8469         ;;
8470         motorola)
8471           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8472           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8473         ;;
8474       esac
8475       runpath_var='LD_RUN_PATH'
8476       hardcode_shlibpath_var=no
8477       ;;
8478
8479     sysv4.3*)
8480       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8481       hardcode_shlibpath_var=no
8482       export_dynamic_flag_spec='-Bexport'
8483       ;;
8484
8485     sysv4*MP*)
8486       if test -d /usr/nec; then
8487         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8488         hardcode_shlibpath_var=no
8489         runpath_var=LD_RUN_PATH
8490         hardcode_runpath_var=yes
8491         ld_shlibs=yes
8492       fi
8493       ;;
8494
8495     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8496       no_undefined_flag='${wl}-z,text'
8497       archive_cmds_need_lc=no
8498       hardcode_shlibpath_var=no
8499       runpath_var='LD_RUN_PATH'
8500
8501       if test "$GCC" = yes; then
8502         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8503         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8504       else
8505         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8506         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8507       fi
8508       ;;
8509
8510     sysv5* | sco3.2v5* | sco5v6*)
8511       # Note: We can NOT use -z defs as we might desire, because we do not
8512       # link with -lc, and that would cause any symbols used from libc to
8513       # always be unresolved, which means just about no library would
8514       # ever link correctly.  If we're not using GNU ld we use -z text
8515       # though, which does catch some bad symbols but isn't as heavy-handed
8516       # as -z defs.
8517       no_undefined_flag='${wl}-z,text'
8518       allow_undefined_flag='${wl}-z,nodefs'
8519       archive_cmds_need_lc=no
8520       hardcode_shlibpath_var=no
8521       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8522       hardcode_libdir_separator=':'
8523       link_all_deplibs=yes
8524       export_dynamic_flag_spec='${wl}-Bexport'
8525       runpath_var='LD_RUN_PATH'
8526
8527       if test "$GCC" = yes; then
8528         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8529         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8530       else
8531         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8532         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8533       fi
8534       ;;
8535
8536     uts4*)
8537       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8538       hardcode_libdir_flag_spec='-L$libdir'
8539       hardcode_shlibpath_var=no
8540       ;;
8541
8542     *)
8543       ld_shlibs=no
8544       ;;
8545     esac
8546   fi
8547
8548 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8549 echo "${ECHO_T}$ld_shlibs" >&6; }
8550 test "$ld_shlibs" = no && can_build_shared=no
8551
8552 #
8553 # Do we need to explicitly link libc?
8554 #
8555 case "x$archive_cmds_need_lc" in
8556 x|xyes)
8557   # Assume -lc should be added
8558   archive_cmds_need_lc=yes
8559
8560   if test "$enable_shared" = yes && test "$GCC" = yes; then
8561     case $archive_cmds in
8562     *'~'*)
8563       # FIXME: we may have to deal with multi-command sequences.
8564       ;;
8565     '$CC '*)
8566       # Test whether the compiler implicitly links with -lc since on some
8567       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8568       # to ld, don't add -lc before -lgcc.
8569       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8570 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8571       $rm conftest*
8572       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8573
8574       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8575   (eval $ac_compile) 2>&5
8576   ac_status=$?
8577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578   (exit $ac_status); } 2>conftest.err; then
8579         soname=conftest
8580         lib=conftest
8581         libobjs=conftest.$ac_objext
8582         deplibs=
8583         wl=$lt_prog_compiler_wl
8584         pic_flag=$lt_prog_compiler_pic
8585         compiler_flags=-v
8586         linker_flags=-v
8587         verstring=
8588         output_objdir=.
8589         libname=conftest
8590         lt_save_allow_undefined_flag=$allow_undefined_flag
8591         allow_undefined_flag=
8592         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8593   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8594   ac_status=$?
8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   (exit $ac_status); }
8597         then
8598           archive_cmds_need_lc=no
8599         else
8600           archive_cmds_need_lc=yes
8601         fi
8602         allow_undefined_flag=$lt_save_allow_undefined_flag
8603       else
8604         cat conftest.err 1>&5
8605       fi
8606       $rm conftest*
8607       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8608 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8609       ;;
8610     esac
8611   fi
8612   ;;
8613 esac
8614
8615 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8616 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8617 library_names_spec=
8618 libname_spec='lib$name'
8619 soname_spec=
8620 shrext_cmds=".so"
8621 postinstall_cmds=
8622 postuninstall_cmds=
8623 finish_cmds=
8624 finish_eval=
8625 shlibpath_var=
8626 shlibpath_overrides_runpath=unknown
8627 version_type=none
8628 dynamic_linker="$host_os ld.so"
8629 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8630 if test "$GCC" = yes; then
8631   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8632   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8633     # if the path contains ";" then we assume it to be the separator
8634     # otherwise default to the standard path separator (i.e. ":") - it is
8635     # assumed that no part of a normal pathname contains ";" but that should
8636     # okay in the real world where ";" in dirpaths is itself problematic.
8637     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8638   else
8639     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8640   fi
8641 else
8642   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8643 fi
8644 need_lib_prefix=unknown
8645 hardcode_into_libs=no
8646
8647 # when you set need_version to no, make sure it does not cause -set_version
8648 # flags to be left without arguments
8649 need_version=unknown
8650
8651 case $host_os in
8652 aix3*)
8653   version_type=linux
8654   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8655   shlibpath_var=LIBPATH
8656
8657   # AIX 3 has no versioning support, so we append a major version to the name.
8658   soname_spec='${libname}${release}${shared_ext}$major'
8659   ;;
8660
8661 aix4* | aix5*)
8662   version_type=linux
8663   need_lib_prefix=no
8664   need_version=no
8665   hardcode_into_libs=yes
8666   if test "$host_cpu" = ia64; then
8667     # AIX 5 supports IA64
8668     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8669     shlibpath_var=LD_LIBRARY_PATH
8670   else
8671     # With GCC up to 2.95.x, collect2 would create an import file
8672     # for dependence libraries.  The import file would start with
8673     # the line `#! .'.  This would cause the generated library to
8674     # depend on `.', always an invalid library.  This was fixed in
8675     # development snapshots of GCC prior to 3.0.
8676     case $host_os in
8677       aix4 | aix4.[01] | aix4.[01].*)
8678       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8679            echo ' yes '
8680            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8681         :
8682       else
8683         can_build_shared=no
8684       fi
8685       ;;
8686     esac
8687     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8688     # soname into executable. Probably we can add versioning support to
8689     # collect2, so additional links can be useful in future.
8690     if test "$aix_use_runtimelinking" = yes; then
8691       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8692       # instead of lib<name>.a to let people know that these are not
8693       # typical AIX shared libraries.
8694       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8695     else
8696       # We preserve .a as extension for shared libraries through AIX4.2
8697       # and later when we are not doing run time linking.
8698       library_names_spec='${libname}${release}.a $libname.a'
8699       soname_spec='${libname}${release}${shared_ext}$major'
8700     fi
8701     shlibpath_var=LIBPATH
8702   fi
8703   ;;
8704
8705 amigaos*)
8706   library_names_spec='$libname.ixlibrary $libname.a'
8707   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8708   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'
8709   ;;
8710
8711 beos*)
8712   library_names_spec='${libname}${shared_ext}'
8713   dynamic_linker="$host_os ld.so"
8714   shlibpath_var=LIBRARY_PATH
8715   ;;
8716
8717 bsdi[45]*)
8718   version_type=linux
8719   need_version=no
8720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8721   soname_spec='${libname}${release}${shared_ext}$major'
8722   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8723   shlibpath_var=LD_LIBRARY_PATH
8724   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8725   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8726   # the default ld.so.conf also contains /usr/contrib/lib and
8727   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8728   # libtool to hard-code these into programs
8729   ;;
8730
8731 cygwin* | mingw* | pw32*)
8732   version_type=windows
8733   shrext_cmds=".dll"
8734   need_version=no
8735   need_lib_prefix=no
8736
8737   case $GCC,$host_os in
8738   yes,cygwin* | yes,mingw* | yes,pw32*)
8739     library_names_spec='$libname.dll.a'
8740     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8741     postinstall_cmds='base_file=`basename \${file}`~
8742       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8743       dldir=$destdir/`dirname \$dlpath`~
8744       test -d \$dldir || mkdir -p \$dldir~
8745       $install_prog $dir/$dlname \$dldir/$dlname~
8746       chmod a+x \$dldir/$dlname'
8747     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8748       dlpath=$dir/\$dldll~
8749        $rm \$dlpath'
8750     shlibpath_overrides_runpath=yes
8751
8752     case $host_os in
8753     cygwin*)
8754       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8755       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8756       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8757       ;;
8758     mingw*)
8759       # MinGW DLLs use traditional 'lib' prefix
8760       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8761       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8762       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8763         # It is most probably a Windows format PATH printed by
8764         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8765         # path with ; separators, and with drive letters. We can handle the
8766         # drive letters (cygwin fileutils understands them), so leave them,
8767         # especially as we might pass files found there to a mingw objdump,
8768         # which wouldn't understand a cygwinified path. Ahh.
8769         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8770       else
8771         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8772       fi
8773       ;;
8774     pw32*)
8775       # pw32 DLLs use 'pw' prefix rather than 'lib'
8776       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8777       ;;
8778     esac
8779     ;;
8780
8781   *)
8782     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8783     ;;
8784   esac
8785   dynamic_linker='Win32 ld.exe'
8786   # FIXME: first we should search . and the directory the executable is in
8787   shlibpath_var=PATH
8788   ;;
8789
8790 darwin* | rhapsody*)
8791   dynamic_linker="$host_os dyld"
8792   version_type=darwin
8793   need_lib_prefix=no
8794   need_version=no
8795   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8796   soname_spec='${libname}${release}${major}$shared_ext'
8797   shlibpath_overrides_runpath=yes
8798   shlibpath_var=DYLD_LIBRARY_PATH
8799   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8800   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8801   if test "$GCC" = yes; then
8802     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8803   else
8804     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8805   fi
8806   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8807   ;;
8808
8809 dgux*)
8810   version_type=linux
8811   need_lib_prefix=no
8812   need_version=no
8813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8814   soname_spec='${libname}${release}${shared_ext}$major'
8815   shlibpath_var=LD_LIBRARY_PATH
8816   ;;
8817
8818 freebsd1*)
8819   dynamic_linker=no
8820   ;;
8821
8822 freebsd* | dragonfly*)
8823   # DragonFly does not have aout.  When/if they implement a new
8824   # versioning mechanism, adjust this.
8825   if test -x /usr/bin/objformat; then
8826     objformat=`/usr/bin/objformat`
8827   else
8828     case $host_os in
8829     freebsd[123]*) objformat=aout ;;
8830     *) objformat=elf ;;
8831     esac
8832   fi
8833   version_type=freebsd-$objformat
8834   case $version_type in
8835     freebsd-elf*)
8836       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8837       need_version=no
8838       need_lib_prefix=no
8839       ;;
8840     freebsd-*)
8841       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8842       need_version=yes
8843       ;;
8844   esac
8845   shlibpath_var=LD_LIBRARY_PATH
8846   case $host_os in
8847   freebsd2*)
8848     shlibpath_overrides_runpath=yes
8849     ;;
8850   freebsd3.[01]* | freebsdelf3.[01]*)
8851     shlibpath_overrides_runpath=yes
8852     hardcode_into_libs=yes
8853     ;;
8854   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8855   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8856     shlibpath_overrides_runpath=no
8857     hardcode_into_libs=yes
8858     ;;
8859   freebsd*) # from 4.6 on
8860     shlibpath_overrides_runpath=yes
8861     hardcode_into_libs=yes
8862     ;;
8863   esac
8864   ;;
8865
8866 gnu*)
8867   version_type=linux
8868   need_lib_prefix=no
8869   need_version=no
8870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8871   soname_spec='${libname}${release}${shared_ext}$major'
8872   shlibpath_var=LD_LIBRARY_PATH
8873   hardcode_into_libs=yes
8874   ;;
8875
8876 hpux9* | hpux10* | hpux11*)
8877   # Give a soname corresponding to the major version so that dld.sl refuses to
8878   # link against other versions.
8879   version_type=sunos
8880   need_lib_prefix=no
8881   need_version=no
8882   case $host_cpu in
8883   ia64*)
8884     shrext_cmds='.so'
8885     hardcode_into_libs=yes
8886     dynamic_linker="$host_os dld.so"
8887     shlibpath_var=LD_LIBRARY_PATH
8888     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890     soname_spec='${libname}${release}${shared_ext}$major'
8891     if test "X$HPUX_IA64_MODE" = X32; then
8892       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8893     else
8894       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8895     fi
8896     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8897     ;;
8898    hppa*64*)
8899      shrext_cmds='.sl'
8900      hardcode_into_libs=yes
8901      dynamic_linker="$host_os dld.sl"
8902      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8903      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8904      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905      soname_spec='${libname}${release}${shared_ext}$major'
8906      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8907      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8908      ;;
8909    *)
8910     shrext_cmds='.sl'
8911     dynamic_linker="$host_os dld.sl"
8912     shlibpath_var=SHLIB_PATH
8913     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8914     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8915     soname_spec='${libname}${release}${shared_ext}$major'
8916     ;;
8917   esac
8918   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8919   postinstall_cmds='chmod 555 $lib'
8920   ;;
8921
8922 interix3*)
8923   version_type=linux
8924   need_lib_prefix=no
8925   need_version=no
8926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8927   soname_spec='${libname}${release}${shared_ext}$major'
8928   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8929   shlibpath_var=LD_LIBRARY_PATH
8930   shlibpath_overrides_runpath=no
8931   hardcode_into_libs=yes
8932   ;;
8933
8934 irix5* | irix6* | nonstopux*)
8935   case $host_os in
8936     nonstopux*) version_type=nonstopux ;;
8937     *)
8938         if test "$lt_cv_prog_gnu_ld" = yes; then
8939                 version_type=linux
8940         else
8941                 version_type=irix
8942         fi ;;
8943   esac
8944   need_lib_prefix=no
8945   need_version=no
8946   soname_spec='${libname}${release}${shared_ext}$major'
8947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8948   case $host_os in
8949   irix5* | nonstopux*)
8950     libsuff= shlibsuff=
8951     ;;
8952   *)
8953     case $LD in # libtool.m4 will add one of these switches to LD
8954     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8955       libsuff= shlibsuff= libmagic=32-bit;;
8956     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8957       libsuff=32 shlibsuff=N32 libmagic=N32;;
8958     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8959       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8960     *) libsuff= shlibsuff= libmagic=never-match;;
8961     esac
8962     ;;
8963   esac
8964   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8965   shlibpath_overrides_runpath=no
8966   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8967   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8968   hardcode_into_libs=yes
8969   ;;
8970
8971 # No shared lib support for Linux oldld, aout, or coff.
8972 linux*oldld* | linux*aout* | linux*coff*)
8973   dynamic_linker=no
8974   ;;
8975
8976 # This must be Linux ELF.
8977 linux* | k*bsd*-gnu)
8978   version_type=linux
8979   need_lib_prefix=no
8980   need_version=no
8981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982   soname_spec='${libname}${release}${shared_ext}$major'
8983   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8984   shlibpath_var=LD_LIBRARY_PATH
8985   shlibpath_overrides_runpath=no
8986   # This implies no fast_install, which is unacceptable.
8987   # Some rework will be needed to allow for fast_install
8988   # before this can be enabled.
8989   hardcode_into_libs=yes
8990
8991   # Append ld.so.conf contents to the search path
8992   if test -f /etc/ld.so.conf; then
8993     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8994     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8995   fi
8996
8997   # We used to test for /lib/ld.so.1 and disable shared libraries on
8998   # powerpc, because MkLinux only supported shared libraries with the
8999   # GNU dynamic linker.  Since this was broken with cross compilers,
9000   # most powerpc-linux boxes support dynamic linking these days and
9001   # people can always --disable-shared, the test was removed, and we
9002   # assume the GNU/Linux dynamic linker is in use.
9003   dynamic_linker='GNU/Linux ld.so'
9004   ;;
9005
9006 netbsdelf*-gnu)
9007   version_type=linux
9008   need_lib_prefix=no
9009   need_version=no
9010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9011   soname_spec='${libname}${release}${shared_ext}$major'
9012   shlibpath_var=LD_LIBRARY_PATH
9013   shlibpath_overrides_runpath=no
9014   hardcode_into_libs=yes
9015   dynamic_linker='NetBSD ld.elf_so'
9016   ;;
9017
9018 netbsd*)
9019   version_type=sunos
9020   need_lib_prefix=no
9021   need_version=no
9022   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9023     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9024     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9025     dynamic_linker='NetBSD (a.out) ld.so'
9026   else
9027     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9028     soname_spec='${libname}${release}${shared_ext}$major'
9029     dynamic_linker='NetBSD ld.elf_so'
9030   fi
9031   shlibpath_var=LD_LIBRARY_PATH
9032   shlibpath_overrides_runpath=yes
9033   hardcode_into_libs=yes
9034   ;;
9035
9036 newsos6)
9037   version_type=linux
9038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039   shlibpath_var=LD_LIBRARY_PATH
9040   shlibpath_overrides_runpath=yes
9041   ;;
9042
9043 nto-qnx*)
9044   version_type=linux
9045   need_lib_prefix=no
9046   need_version=no
9047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9048   soname_spec='${libname}${release}${shared_ext}$major'
9049   shlibpath_var=LD_LIBRARY_PATH
9050   shlibpath_overrides_runpath=yes
9051   ;;
9052
9053 openbsd*)
9054   version_type=sunos
9055   sys_lib_dlsearch_path_spec="/usr/lib"
9056   need_lib_prefix=no
9057   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9058   case $host_os in
9059     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9060     *)                         need_version=no  ;;
9061   esac
9062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9063   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9064   shlibpath_var=LD_LIBRARY_PATH
9065   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9066     case $host_os in
9067       openbsd2.[89] | openbsd2.[89].*)
9068         shlibpath_overrides_runpath=no
9069         ;;
9070       *)
9071         shlibpath_overrides_runpath=yes
9072         ;;
9073       esac
9074   else
9075     shlibpath_overrides_runpath=yes
9076   fi
9077   ;;
9078
9079 os2*)
9080   libname_spec='$name'
9081   shrext_cmds=".dll"
9082   need_lib_prefix=no
9083   library_names_spec='$libname${shared_ext} $libname.a'
9084   dynamic_linker='OS/2 ld.exe'
9085   shlibpath_var=LIBPATH
9086   ;;
9087
9088 osf3* | osf4* | osf5*)
9089   version_type=osf
9090   need_lib_prefix=no
9091   need_version=no
9092   soname_spec='${libname}${release}${shared_ext}$major'
9093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094   shlibpath_var=LD_LIBRARY_PATH
9095   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9096   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9097   ;;
9098
9099 solaris*)
9100   version_type=linux
9101   need_lib_prefix=no
9102   need_version=no
9103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9104   soname_spec='${libname}${release}${shared_ext}$major'
9105   shlibpath_var=LD_LIBRARY_PATH
9106   shlibpath_overrides_runpath=yes
9107   hardcode_into_libs=yes
9108   # ldd complains unless libraries are executable
9109   postinstall_cmds='chmod +x $lib'
9110   ;;
9111
9112 sunos4*)
9113   version_type=sunos
9114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9115   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9116   shlibpath_var=LD_LIBRARY_PATH
9117   shlibpath_overrides_runpath=yes
9118   if test "$with_gnu_ld" = yes; then
9119     need_lib_prefix=no
9120   fi
9121   need_version=yes
9122   ;;
9123
9124 sysv4 | sysv4.3*)
9125   version_type=linux
9126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9127   soname_spec='${libname}${release}${shared_ext}$major'
9128   shlibpath_var=LD_LIBRARY_PATH
9129   case $host_vendor in
9130     sni)
9131       shlibpath_overrides_runpath=no
9132       need_lib_prefix=no
9133       export_dynamic_flag_spec='${wl}-Blargedynsym'
9134       runpath_var=LD_RUN_PATH
9135       ;;
9136     siemens)
9137       need_lib_prefix=no
9138       ;;
9139     motorola)
9140       need_lib_prefix=no
9141       need_version=no
9142       shlibpath_overrides_runpath=no
9143       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9144       ;;
9145   esac
9146   ;;
9147
9148 sysv4*MP*)
9149   if test -d /usr/nec ;then
9150     version_type=linux
9151     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9152     soname_spec='$libname${shared_ext}.$major'
9153     shlibpath_var=LD_LIBRARY_PATH
9154   fi
9155   ;;
9156
9157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9158   version_type=freebsd-elf
9159   need_lib_prefix=no
9160   need_version=no
9161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9162   soname_spec='${libname}${release}${shared_ext}$major'
9163   shlibpath_var=LD_LIBRARY_PATH
9164   hardcode_into_libs=yes
9165   if test "$with_gnu_ld" = yes; then
9166     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9167     shlibpath_overrides_runpath=no
9168   else
9169     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9170     shlibpath_overrides_runpath=yes
9171     case $host_os in
9172       sco3.2v5*)
9173         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9174         ;;
9175     esac
9176   fi
9177   sys_lib_dlsearch_path_spec='/usr/lib'
9178   ;;
9179
9180 uts4*)
9181   version_type=linux
9182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183   soname_spec='${libname}${release}${shared_ext}$major'
9184   shlibpath_var=LD_LIBRARY_PATH
9185   ;;
9186
9187 *)
9188   dynamic_linker=no
9189   ;;
9190 esac
9191 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9192 echo "${ECHO_T}$dynamic_linker" >&6; }
9193 test "$dynamic_linker" = no && can_build_shared=no
9194
9195 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9196 if test "$GCC" = yes; then
9197   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9198 fi
9199
9200 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9201 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9202 hardcode_action=
9203 if test -n "$hardcode_libdir_flag_spec" || \
9204    test -n "$runpath_var" || \
9205    test "X$hardcode_automatic" = "Xyes" ; then
9206
9207   # We can hardcode non-existant directories.
9208   if test "$hardcode_direct" != no &&
9209      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9210      # have to relink, otherwise we might link with an installed library
9211      # when we should be linking with a yet-to-be-installed one
9212      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9213      test "$hardcode_minus_L" != no; then
9214     # Linking always hardcodes the temporary library directory.
9215     hardcode_action=relink
9216   else
9217     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9218     hardcode_action=immediate
9219   fi
9220 else
9221   # We cannot hardcode anything, or else we can only hardcode existing
9222   # directories.
9223   hardcode_action=unsupported
9224 fi
9225 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9226 echo "${ECHO_T}$hardcode_action" >&6; }
9227
9228 if test "$hardcode_action" = relink; then
9229   # Fast installation is not supported
9230   enable_fast_install=no
9231 elif test "$shlibpath_overrides_runpath" = yes ||
9232      test "$enable_shared" = no; then
9233   # Fast installation is not necessary
9234   enable_fast_install=needless
9235 fi
9236
9237 striplib=
9238 old_striplib=
9239 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9240 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9241 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9242   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9243   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9244   { echo "$as_me:$LINENO: result: yes" >&5
9245 echo "${ECHO_T}yes" >&6; }
9246 else
9247 # FIXME - insert some real tests, host_os isn't really good enough
9248   case $host_os in
9249    darwin*)
9250        if test -n "$STRIP" ; then
9251          striplib="$STRIP -x"
9252          { echo "$as_me:$LINENO: result: yes" >&5
9253 echo "${ECHO_T}yes" >&6; }
9254        else
9255   { echo "$as_me:$LINENO: result: no" >&5
9256 echo "${ECHO_T}no" >&6; }
9257 fi
9258        ;;
9259    *)
9260   { echo "$as_me:$LINENO: result: no" >&5
9261 echo "${ECHO_T}no" >&6; }
9262     ;;
9263   esac
9264 fi
9265
9266 if test "x$enable_dlopen" != xyes; then
9267   enable_dlopen=unknown
9268   enable_dlopen_self=unknown
9269   enable_dlopen_self_static=unknown
9270 else
9271   lt_cv_dlopen=no
9272   lt_cv_dlopen_libs=
9273
9274   case $host_os in
9275   beos*)
9276     lt_cv_dlopen="load_add_on"
9277     lt_cv_dlopen_libs=
9278     lt_cv_dlopen_self=yes
9279     ;;
9280
9281   mingw* | pw32*)
9282     lt_cv_dlopen="LoadLibrary"
9283     lt_cv_dlopen_libs=
9284    ;;
9285
9286   cygwin*)
9287     lt_cv_dlopen="dlopen"
9288     lt_cv_dlopen_libs=
9289    ;;
9290
9291   darwin*)
9292   # if libdl is installed we need to link against it
9293     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9294 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9295 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9296   echo $ECHO_N "(cached) $ECHO_C" >&6
9297 else
9298   ac_check_lib_save_LIBS=$LIBS
9299 LIBS="-ldl  $LIBS"
9300 cat >conftest.$ac_ext <<_ACEOF
9301 /* confdefs.h.  */
9302 _ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h.  */
9306
9307 /* Override any GCC internal prototype to avoid an error.
9308    Use char because int might match the return type of a GCC
9309    builtin and then its argument prototype would still apply.  */
9310 #ifdef __cplusplus
9311 extern "C"
9312 #endif
9313 char dlopen ();
9314 int
9315 main ()
9316 {
9317 return dlopen ();
9318   ;
9319   return 0;
9320 }
9321 _ACEOF
9322 rm -f conftest.$ac_objext conftest$ac_exeext
9323 if { (ac_try="$ac_link"
9324 case "(($ac_try" in
9325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9326   *) ac_try_echo=$ac_try;;
9327 esac
9328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9329   (eval "$ac_link") 2>conftest.er1
9330   ac_status=$?
9331   grep -v '^ *+' conftest.er1 >conftest.err
9332   rm -f conftest.er1
9333   cat conftest.err >&5
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); } && {
9336          test -z "$ac_c_werror_flag" ||
9337          test ! -s conftest.err
9338        } && test -s conftest$ac_exeext &&
9339        $as_test_x conftest$ac_exeext; then
9340   ac_cv_lib_dl_dlopen=yes
9341 else
9342   echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9344
9345         ac_cv_lib_dl_dlopen=no
9346 fi
9347
9348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9349       conftest$ac_exeext conftest.$ac_ext
9350 LIBS=$ac_check_lib_save_LIBS
9351 fi
9352 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9353 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9354 if test $ac_cv_lib_dl_dlopen = yes; then
9355   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9356 else
9357
9358     lt_cv_dlopen="dyld"
9359     lt_cv_dlopen_libs=
9360     lt_cv_dlopen_self=yes
9361
9362 fi
9363
9364    ;;
9365
9366   *)
9367     { echo "$as_me:$LINENO: checking for shl_load" >&5
9368 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9369 if test "${ac_cv_func_shl_load+set}" = set; then
9370   echo $ECHO_N "(cached) $ECHO_C" >&6
9371 else
9372   cat >conftest.$ac_ext <<_ACEOF
9373 /* confdefs.h.  */
9374 _ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h.  */
9378 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9380 #define shl_load innocuous_shl_load
9381
9382 /* System header to define __stub macros and hopefully few prototypes,
9383     which can conflict with char shl_load (); below.
9384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9385     <limits.h> exists even on freestanding compilers.  */
9386
9387 #ifdef __STDC__
9388 # include <limits.h>
9389 #else
9390 # include <assert.h>
9391 #endif
9392
9393 #undef shl_load
9394
9395 /* Override any GCC internal prototype to avoid an error.
9396    Use char because int might match the return type of a GCC
9397    builtin and then its argument prototype would still apply.  */
9398 #ifdef __cplusplus
9399 extern "C"
9400 #endif
9401 char shl_load ();
9402 /* The GNU C library defines this for functions which it implements
9403     to always fail with ENOSYS.  Some functions are actually named
9404     something starting with __ and the normal name is an alias.  */
9405 #if defined __stub_shl_load || defined __stub___shl_load
9406 choke me
9407 #endif
9408
9409 int
9410 main ()
9411 {
9412 return shl_load ();
9413   ;
9414   return 0;
9415 }
9416 _ACEOF
9417 rm -f conftest.$ac_objext conftest$ac_exeext
9418 if { (ac_try="$ac_link"
9419 case "(($ac_try" in
9420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9421   *) ac_try_echo=$ac_try;;
9422 esac
9423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424   (eval "$ac_link") 2>conftest.er1
9425   ac_status=$?
9426   grep -v '^ *+' conftest.er1 >conftest.err
9427   rm -f conftest.er1
9428   cat conftest.err >&5
9429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430   (exit $ac_status); } && {
9431          test -z "$ac_c_werror_flag" ||
9432          test ! -s conftest.err
9433        } && test -s conftest$ac_exeext &&
9434        $as_test_x conftest$ac_exeext; then
9435   ac_cv_func_shl_load=yes
9436 else
9437   echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9439
9440         ac_cv_func_shl_load=no
9441 fi
9442
9443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9444       conftest$ac_exeext conftest.$ac_ext
9445 fi
9446 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9447 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9448 if test $ac_cv_func_shl_load = yes; then
9449   lt_cv_dlopen="shl_load"
9450 else
9451   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9452 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9453 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9454   echo $ECHO_N "(cached) $ECHO_C" >&6
9455 else
9456   ac_check_lib_save_LIBS=$LIBS
9457 LIBS="-ldld  $LIBS"
9458 cat >conftest.$ac_ext <<_ACEOF
9459 /* confdefs.h.  */
9460 _ACEOF
9461 cat confdefs.h >>conftest.$ac_ext
9462 cat >>conftest.$ac_ext <<_ACEOF
9463 /* end confdefs.h.  */
9464
9465 /* Override any GCC internal prototype to avoid an error.
9466    Use char because int might match the return type of a GCC
9467    builtin and then its argument prototype would still apply.  */
9468 #ifdef __cplusplus
9469 extern "C"
9470 #endif
9471 char shl_load ();
9472 int
9473 main ()
9474 {
9475 return shl_load ();
9476   ;
9477   return 0;
9478 }
9479 _ACEOF
9480 rm -f conftest.$ac_objext conftest$ac_exeext
9481 if { (ac_try="$ac_link"
9482 case "(($ac_try" in
9483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9484   *) ac_try_echo=$ac_try;;
9485 esac
9486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9487   (eval "$ac_link") 2>conftest.er1
9488   ac_status=$?
9489   grep -v '^ *+' conftest.er1 >conftest.err
9490   rm -f conftest.er1
9491   cat conftest.err >&5
9492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493   (exit $ac_status); } && {
9494          test -z "$ac_c_werror_flag" ||
9495          test ! -s conftest.err
9496        } && test -s conftest$ac_exeext &&
9497        $as_test_x conftest$ac_exeext; then
9498   ac_cv_lib_dld_shl_load=yes
9499 else
9500   echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9502
9503         ac_cv_lib_dld_shl_load=no
9504 fi
9505
9506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9507       conftest$ac_exeext conftest.$ac_ext
9508 LIBS=$ac_check_lib_save_LIBS
9509 fi
9510 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9511 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9512 if test $ac_cv_lib_dld_shl_load = yes; then
9513   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9514 else
9515   { echo "$as_me:$LINENO: checking for dlopen" >&5
9516 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9517 if test "${ac_cv_func_dlopen+set}" = set; then
9518   echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520   cat >conftest.$ac_ext <<_ACEOF
9521 /* confdefs.h.  */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h.  */
9526 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9528 #define dlopen innocuous_dlopen
9529
9530 /* System header to define __stub macros and hopefully few prototypes,
9531     which can conflict with char dlopen (); below.
9532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9533     <limits.h> exists even on freestanding compilers.  */
9534
9535 #ifdef __STDC__
9536 # include <limits.h>
9537 #else
9538 # include <assert.h>
9539 #endif
9540
9541 #undef dlopen
9542
9543 /* Override any GCC internal prototype to avoid an error.
9544    Use char because int might match the return type of a GCC
9545    builtin and then its argument prototype would still apply.  */
9546 #ifdef __cplusplus
9547 extern "C"
9548 #endif
9549 char dlopen ();
9550 /* The GNU C library defines this for functions which it implements
9551     to always fail with ENOSYS.  Some functions are actually named
9552     something starting with __ and the normal name is an alias.  */
9553 #if defined __stub_dlopen || defined __stub___dlopen
9554 choke me
9555 #endif
9556
9557 int
9558 main ()
9559 {
9560 return dlopen ();
9561   ;
9562   return 0;
9563 }
9564 _ACEOF
9565 rm -f conftest.$ac_objext conftest$ac_exeext
9566 if { (ac_try="$ac_link"
9567 case "(($ac_try" in
9568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569   *) ac_try_echo=$ac_try;;
9570 esac
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572   (eval "$ac_link") 2>conftest.er1
9573   ac_status=$?
9574   grep -v '^ *+' conftest.er1 >conftest.err
9575   rm -f conftest.er1
9576   cat conftest.err >&5
9577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578   (exit $ac_status); } && {
9579          test -z "$ac_c_werror_flag" ||
9580          test ! -s conftest.err
9581        } && test -s conftest$ac_exeext &&
9582        $as_test_x conftest$ac_exeext; then
9583   ac_cv_func_dlopen=yes
9584 else
9585   echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9587
9588         ac_cv_func_dlopen=no
9589 fi
9590
9591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9592       conftest$ac_exeext conftest.$ac_ext
9593 fi
9594 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9595 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9596 if test $ac_cv_func_dlopen = yes; then
9597   lt_cv_dlopen="dlopen"
9598 else
9599   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9600 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9601 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9602   echo $ECHO_N "(cached) $ECHO_C" >&6
9603 else
9604   ac_check_lib_save_LIBS=$LIBS
9605 LIBS="-ldl  $LIBS"
9606 cat >conftest.$ac_ext <<_ACEOF
9607 /* confdefs.h.  */
9608 _ACEOF
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h.  */
9612
9613 /* Override any GCC internal prototype to avoid an error.
9614    Use char because int might match the return type of a GCC
9615    builtin and then its argument prototype would still apply.  */
9616 #ifdef __cplusplus
9617 extern "C"
9618 #endif
9619 char dlopen ();
9620 int
9621 main ()
9622 {
9623 return dlopen ();
9624   ;
9625   return 0;
9626 }
9627 _ACEOF
9628 rm -f conftest.$ac_objext conftest$ac_exeext
9629 if { (ac_try="$ac_link"
9630 case "(($ac_try" in
9631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632   *) ac_try_echo=$ac_try;;
9633 esac
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635   (eval "$ac_link") 2>conftest.er1
9636   ac_status=$?
9637   grep -v '^ *+' conftest.er1 >conftest.err
9638   rm -f conftest.er1
9639   cat conftest.err >&5
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); } && {
9642          test -z "$ac_c_werror_flag" ||
9643          test ! -s conftest.err
9644        } && test -s conftest$ac_exeext &&
9645        $as_test_x conftest$ac_exeext; then
9646   ac_cv_lib_dl_dlopen=yes
9647 else
9648   echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9650
9651         ac_cv_lib_dl_dlopen=no
9652 fi
9653
9654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9655       conftest$ac_exeext conftest.$ac_ext
9656 LIBS=$ac_check_lib_save_LIBS
9657 fi
9658 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9659 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9660 if test $ac_cv_lib_dl_dlopen = yes; then
9661   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9662 else
9663   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9664 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9665 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9666   echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668   ac_check_lib_save_LIBS=$LIBS
9669 LIBS="-lsvld  $LIBS"
9670 cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h.  */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h.  */
9676
9677 /* Override any GCC internal prototype to avoid an error.
9678    Use char because int might match the return type of a GCC
9679    builtin and then its argument prototype would still apply.  */
9680 #ifdef __cplusplus
9681 extern "C"
9682 #endif
9683 char dlopen ();
9684 int
9685 main ()
9686 {
9687 return dlopen ();
9688   ;
9689   return 0;
9690 }
9691 _ACEOF
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (ac_try="$ac_link"
9694 case "(($ac_try" in
9695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696   *) ac_try_echo=$ac_try;;
9697 esac
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699   (eval "$ac_link") 2>conftest.er1
9700   ac_status=$?
9701   grep -v '^ *+' conftest.er1 >conftest.err
9702   rm -f conftest.er1
9703   cat conftest.err >&5
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); } && {
9706          test -z "$ac_c_werror_flag" ||
9707          test ! -s conftest.err
9708        } && test -s conftest$ac_exeext &&
9709        $as_test_x conftest$ac_exeext; then
9710   ac_cv_lib_svld_dlopen=yes
9711 else
9712   echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9714
9715         ac_cv_lib_svld_dlopen=no
9716 fi
9717
9718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9719       conftest$ac_exeext conftest.$ac_ext
9720 LIBS=$ac_check_lib_save_LIBS
9721 fi
9722 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9723 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9724 if test $ac_cv_lib_svld_dlopen = yes; then
9725   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9726 else
9727   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9728 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9729 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9730   echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732   ac_check_lib_save_LIBS=$LIBS
9733 LIBS="-ldld  $LIBS"
9734 cat >conftest.$ac_ext <<_ACEOF
9735 /* confdefs.h.  */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h.  */
9740
9741 /* Override any GCC internal prototype to avoid an error.
9742    Use char because int might match the return type of a GCC
9743    builtin and then its argument prototype would still apply.  */
9744 #ifdef __cplusplus
9745 extern "C"
9746 #endif
9747 char dld_link ();
9748 int
9749 main ()
9750 {
9751 return dld_link ();
9752   ;
9753   return 0;
9754 }
9755 _ACEOF
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (ac_try="$ac_link"
9758 case "(($ac_try" in
9759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760   *) ac_try_echo=$ac_try;;
9761 esac
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763   (eval "$ac_link") 2>conftest.er1
9764   ac_status=$?
9765   grep -v '^ *+' conftest.er1 >conftest.err
9766   rm -f conftest.er1
9767   cat conftest.err >&5
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); } && {
9770          test -z "$ac_c_werror_flag" ||
9771          test ! -s conftest.err
9772        } && test -s conftest$ac_exeext &&
9773        $as_test_x conftest$ac_exeext; then
9774   ac_cv_lib_dld_dld_link=yes
9775 else
9776   echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9778
9779         ac_cv_lib_dld_dld_link=no
9780 fi
9781
9782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9783       conftest$ac_exeext conftest.$ac_ext
9784 LIBS=$ac_check_lib_save_LIBS
9785 fi
9786 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9787 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9788 if test $ac_cv_lib_dld_dld_link = yes; then
9789   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9790 fi
9791
9792
9793 fi
9794
9795
9796 fi
9797
9798
9799 fi
9800
9801
9802 fi
9803
9804
9805 fi
9806
9807     ;;
9808   esac
9809
9810   if test "x$lt_cv_dlopen" != xno; then
9811     enable_dlopen=yes
9812   else
9813     enable_dlopen=no
9814   fi
9815
9816   case $lt_cv_dlopen in
9817   dlopen)
9818     save_CPPFLAGS="$CPPFLAGS"
9819     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9820
9821     save_LDFLAGS="$LDFLAGS"
9822     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9823
9824     save_LIBS="$LIBS"
9825     LIBS="$lt_cv_dlopen_libs $LIBS"
9826
9827     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9828 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9829 if test "${lt_cv_dlopen_self+set}" = set; then
9830   echo $ECHO_N "(cached) $ECHO_C" >&6
9831 else
9832           if test "$cross_compiling" = yes; then :
9833   lt_cv_dlopen_self=cross
9834 else
9835   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9836   lt_status=$lt_dlunknown
9837   cat > conftest.$ac_ext <<EOF
9838 #line 9838 "configure"
9839 #include "confdefs.h"
9840
9841 #if HAVE_DLFCN_H
9842 #include <dlfcn.h>
9843 #endif
9844
9845 #include <stdio.h>
9846
9847 #ifdef RTLD_GLOBAL
9848 #  define LT_DLGLOBAL           RTLD_GLOBAL
9849 #else
9850 #  ifdef DL_GLOBAL
9851 #    define LT_DLGLOBAL         DL_GLOBAL
9852 #  else
9853 #    define LT_DLGLOBAL         0
9854 #  endif
9855 #endif
9856
9857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9858    find out it does not work in some platform. */
9859 #ifndef LT_DLLAZY_OR_NOW
9860 #  ifdef RTLD_LAZY
9861 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9862 #  else
9863 #    ifdef DL_LAZY
9864 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9865 #    else
9866 #      ifdef RTLD_NOW
9867 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9868 #      else
9869 #        ifdef DL_NOW
9870 #          define LT_DLLAZY_OR_NOW      DL_NOW
9871 #        else
9872 #          define LT_DLLAZY_OR_NOW      0
9873 #        endif
9874 #      endif
9875 #    endif
9876 #  endif
9877 #endif
9878
9879 #ifdef __cplusplus
9880 extern "C" void exit (int);
9881 #endif
9882
9883 void fnord() { int i=42;}
9884 int main ()
9885 {
9886   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9887   int status = $lt_dlunknown;
9888
9889   if (self)
9890     {
9891       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9892       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9893       /* dlclose (self); */
9894     }
9895   else
9896     puts (dlerror ());
9897
9898     exit (status);
9899 }
9900 EOF
9901   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9902   (eval $ac_link) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9906     (./conftest; exit; ) >&5 2>/dev/null
9907     lt_status=$?
9908     case x$lt_status in
9909       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9910       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9911       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9912     esac
9913   else :
9914     # compilation failed
9915     lt_cv_dlopen_self=no
9916   fi
9917 fi
9918 rm -fr conftest*
9919
9920
9921 fi
9922 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9923 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9924
9925     if test "x$lt_cv_dlopen_self" = xyes; then
9926       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9927       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9928 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9929 if test "${lt_cv_dlopen_self_static+set}" = set; then
9930   echo $ECHO_N "(cached) $ECHO_C" >&6
9931 else
9932           if test "$cross_compiling" = yes; then :
9933   lt_cv_dlopen_self_static=cross
9934 else
9935   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9936   lt_status=$lt_dlunknown
9937   cat > conftest.$ac_ext <<EOF
9938 #line 9938 "configure"
9939 #include "confdefs.h"
9940
9941 #if HAVE_DLFCN_H
9942 #include <dlfcn.h>
9943 #endif
9944
9945 #include <stdio.h>
9946
9947 #ifdef RTLD_GLOBAL
9948 #  define LT_DLGLOBAL           RTLD_GLOBAL
9949 #else
9950 #  ifdef DL_GLOBAL
9951 #    define LT_DLGLOBAL         DL_GLOBAL
9952 #  else
9953 #    define LT_DLGLOBAL         0
9954 #  endif
9955 #endif
9956
9957 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9958    find out it does not work in some platform. */
9959 #ifndef LT_DLLAZY_OR_NOW
9960 #  ifdef RTLD_LAZY
9961 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9962 #  else
9963 #    ifdef DL_LAZY
9964 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9965 #    else
9966 #      ifdef RTLD_NOW
9967 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9968 #      else
9969 #        ifdef DL_NOW
9970 #          define LT_DLLAZY_OR_NOW      DL_NOW
9971 #        else
9972 #          define LT_DLLAZY_OR_NOW      0
9973 #        endif
9974 #      endif
9975 #    endif
9976 #  endif
9977 #endif
9978
9979 #ifdef __cplusplus
9980 extern "C" void exit (int);
9981 #endif
9982
9983 void fnord() { int i=42;}
9984 int main ()
9985 {
9986   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9987   int status = $lt_dlunknown;
9988
9989   if (self)
9990     {
9991       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9992       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9993       /* dlclose (self); */
9994     }
9995   else
9996     puts (dlerror ());
9997
9998     exit (status);
9999 }
10000 EOF
10001   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10002   (eval $ac_link) 2>&5
10003   ac_status=$?
10004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10006     (./conftest; exit; ) >&5 2>/dev/null
10007     lt_status=$?
10008     case x$lt_status in
10009       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10010       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10011       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10012     esac
10013   else :
10014     # compilation failed
10015     lt_cv_dlopen_self_static=no
10016   fi
10017 fi
10018 rm -fr conftest*
10019
10020
10021 fi
10022 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10023 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10024     fi
10025
10026     CPPFLAGS="$save_CPPFLAGS"
10027     LDFLAGS="$save_LDFLAGS"
10028     LIBS="$save_LIBS"
10029     ;;
10030   esac
10031
10032   case $lt_cv_dlopen_self in
10033   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10034   *) enable_dlopen_self=unknown ;;
10035   esac
10036
10037   case $lt_cv_dlopen_self_static in
10038   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10039   *) enable_dlopen_self_static=unknown ;;
10040   esac
10041 fi
10042
10043
10044 # Report which library types will actually be built
10045 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10046 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10047 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10048 echo "${ECHO_T}$can_build_shared" >&6; }
10049
10050 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10051 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10052 test "$can_build_shared" = "no" && enable_shared=no
10053
10054 # On AIX, shared libraries and static libraries use the same namespace, and
10055 # are all built from PIC.
10056 case $host_os in
10057 aix3*)
10058   test "$enable_shared" = yes && enable_static=no
10059   if test -n "$RANLIB"; then
10060     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10061     postinstall_cmds='$RANLIB $lib'
10062   fi
10063   ;;
10064
10065 aix4* | aix5*)
10066   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10067     test "$enable_shared" = yes && enable_static=no
10068   fi
10069     ;;
10070 esac
10071 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10072 echo "${ECHO_T}$enable_shared" >&6; }
10073
10074 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10075 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10076 # Make sure either enable_shared or enable_static is yes.
10077 test "$enable_shared" = yes || enable_static=yes
10078 { echo "$as_me:$LINENO: result: $enable_static" >&5
10079 echo "${ECHO_T}$enable_static" >&6; }
10080
10081 # The else clause should only fire when bootstrapping the
10082 # libtool distribution, otherwise you forgot to ship ltmain.sh
10083 # with your package, and you will get complaints that there are
10084 # no rules to generate ltmain.sh.
10085 if test -f "$ltmain"; then
10086   # See if we are running on zsh, and set the options which allow our commands through
10087   # without removal of \ escapes.
10088   if test -n "${ZSH_VERSION+set}" ; then
10089     setopt NO_GLOB_SUBST
10090   fi
10091   # Now quote all the things that may contain metacharacters while being
10092   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10093   # variables and quote the copies for generation of the libtool script.
10094   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10095     SED SHELL STRIP \
10096     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10097     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10098     deplibs_check_method reload_flag reload_cmds need_locks \
10099     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10100     lt_cv_sys_global_symbol_to_c_name_address \
10101     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10102     old_postinstall_cmds old_postuninstall_cmds \
10103     compiler \
10104     CC \
10105     LD \
10106     lt_prog_compiler_wl \
10107     lt_prog_compiler_pic \
10108     lt_prog_compiler_static \
10109     lt_prog_compiler_no_builtin_flag \
10110     export_dynamic_flag_spec \
10111     thread_safe_flag_spec \
10112     whole_archive_flag_spec \
10113     enable_shared_with_static_runtimes \
10114     old_archive_cmds \
10115     old_archive_from_new_cmds \
10116     predep_objects \
10117     postdep_objects \
10118     predeps \
10119     postdeps \
10120     compiler_lib_search_path \
10121     archive_cmds \
10122     archive_expsym_cmds \
10123     postinstall_cmds \
10124     postuninstall_cmds \
10125     old_archive_from_expsyms_cmds \
10126     allow_undefined_flag \
10127     no_undefined_flag \
10128     export_symbols_cmds \
10129     hardcode_libdir_flag_spec \
10130     hardcode_libdir_flag_spec_ld \
10131     hardcode_libdir_separator \
10132     hardcode_automatic \
10133     module_cmds \
10134     module_expsym_cmds \
10135     lt_cv_prog_compiler_c_o \
10136     exclude_expsyms \
10137     include_expsyms; do
10138
10139     case $var in
10140     old_archive_cmds | \
10141     old_archive_from_new_cmds | \
10142     archive_cmds | \
10143     archive_expsym_cmds | \
10144     module_cmds | \
10145     module_expsym_cmds | \
10146     old_archive_from_expsyms_cmds | \
10147     export_symbols_cmds | \
10148     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10149     postinstall_cmds | postuninstall_cmds | \
10150     old_postinstall_cmds | old_postuninstall_cmds | \
10151     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10152       # Double-quote double-evaled strings.
10153       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10154       ;;
10155     *)
10156       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10157       ;;
10158     esac
10159   done
10160
10161   case $lt_echo in
10162   *'\$0 --fallback-echo"')
10163     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10164     ;;
10165   esac
10166
10167 cfgfile="${ofile}T"
10168   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10169   $rm -f "$cfgfile"
10170   { echo "$as_me:$LINENO: creating $ofile" >&5
10171 echo "$as_me: creating $ofile" >&6;}
10172
10173   cat <<__EOF__ >> "$cfgfile"
10174 #! $SHELL
10175
10176 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10177 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10178 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10179 #
10180 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10181 # Free Software Foundation, Inc.
10182 #
10183 # This file is part of GNU Libtool:
10184 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10185 #
10186 # This program is free software; you can redistribute it and/or modify
10187 # it under the terms of the GNU General Public License as published by
10188 # the Free Software Foundation; either version 2 of the License, or
10189 # (at your option) any later version.
10190 #
10191 # This program is distributed in the hope that it will be useful, but
10192 # WITHOUT ANY WARRANTY; without even the implied warranty of
10193 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10194 # General Public License for more details.
10195 #
10196 # You should have received a copy of the GNU General Public License
10197 # along with this program; if not, write to the Free Software
10198 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10199 #
10200 # As a special exception to the GNU General Public License, if you
10201 # distribute this file as part of a program that contains a
10202 # configuration script generated by Autoconf, you may include it under
10203 # the same distribution terms that you use for the rest of that program.
10204
10205 # A sed program that does not truncate output.
10206 SED=$lt_SED
10207
10208 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10209 Xsed="$SED -e 1s/^X//"
10210
10211 # The HP-UX ksh and POSIX shell print the target directory to stdout
10212 # if CDPATH is set.
10213 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10214
10215 # The names of the tagged configurations supported by this script.
10216 available_tags=
10217
10218 # ### BEGIN LIBTOOL CONFIG
10219
10220 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10221
10222 # Shell to use when invoking shell scripts.
10223 SHELL=$lt_SHELL
10224
10225 # Whether or not to build shared libraries.
10226 build_libtool_libs=$enable_shared
10227
10228 # Whether or not to build static libraries.
10229 build_old_libs=$enable_static
10230
10231 # Whether or not to add -lc for building shared libraries.
10232 build_libtool_need_lc=$archive_cmds_need_lc
10233
10234 # Whether or not to disallow shared libs when runtime libs are static
10235 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10236
10237 # Whether or not to optimize for fast installation.
10238 fast_install=$enable_fast_install
10239
10240 # The host system.
10241 host_alias=$host_alias
10242 host=$host
10243 host_os=$host_os
10244
10245 # The build system.
10246 build_alias=$build_alias
10247 build=$build
10248 build_os=$build_os
10249
10250 # An echo program that does not interpret backslashes.
10251 echo=$lt_echo
10252
10253 # The archiver.
10254 AR=$lt_AR
10255 AR_FLAGS=$lt_AR_FLAGS
10256
10257 # A C compiler.
10258 LTCC=$lt_LTCC
10259
10260 # LTCC compiler flags.
10261 LTCFLAGS=$lt_LTCFLAGS
10262
10263 # A language-specific compiler.
10264 CC=$lt_compiler
10265
10266 # Is the compiler the GNU C compiler?
10267 with_gcc=$GCC
10268
10269 # An ERE matcher.
10270 EGREP=$lt_EGREP
10271
10272 # The linker used to build libraries.
10273 LD=$lt_LD
10274
10275 # Whether we need hard or soft links.
10276 LN_S=$lt_LN_S
10277
10278 # A BSD-compatible nm program.
10279 NM=$lt_NM
10280
10281 # A symbol stripping program
10282 STRIP=$lt_STRIP
10283
10284 # Used to examine libraries when file_magic_cmd begins "file"
10285 MAGIC_CMD=$MAGIC_CMD
10286
10287 # Used on cygwin: DLL creation program.
10288 DLLTOOL="$DLLTOOL"
10289
10290 # Used on cygwin: object dumper.
10291 OBJDUMP="$OBJDUMP"
10292
10293 # Used on cygwin: assembler.
10294 AS="$AS"
10295
10296 # The name of the directory that contains temporary libtool files.
10297 objdir=$objdir
10298
10299 # How to create reloadable object files.
10300 reload_flag=$lt_reload_flag
10301 reload_cmds=$lt_reload_cmds
10302
10303 # How to pass a linker flag through the compiler.
10304 wl=$lt_lt_prog_compiler_wl
10305
10306 # Object file suffix (normally "o").
10307 objext="$ac_objext"
10308
10309 # Old archive suffix (normally "a").
10310 libext="$libext"
10311
10312 # Shared library suffix (normally ".so").
10313 shrext_cmds='$shrext_cmds'
10314
10315 # Executable file suffix (normally "").
10316 exeext="$exeext"
10317
10318 # Additional compiler flags for building library objects.
10319 pic_flag=$lt_lt_prog_compiler_pic
10320 pic_mode=$pic_mode
10321
10322 # What is the maximum length of a command?
10323 max_cmd_len=$lt_cv_sys_max_cmd_len
10324
10325 # Does compiler simultaneously support -c and -o options?
10326 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10327
10328 # Must we lock files when doing compilation?
10329 need_locks=$lt_need_locks
10330
10331 # Do we need the lib prefix for modules?
10332 need_lib_prefix=$need_lib_prefix
10333
10334 # Do we need a version for libraries?
10335 need_version=$need_version
10336
10337 # Whether dlopen is supported.
10338 dlopen_support=$enable_dlopen
10339
10340 # Whether dlopen of programs is supported.
10341 dlopen_self=$enable_dlopen_self
10342
10343 # Whether dlopen of statically linked programs is supported.
10344 dlopen_self_static=$enable_dlopen_self_static
10345
10346 # Compiler flag to prevent dynamic linking.
10347 link_static_flag=$lt_lt_prog_compiler_static
10348
10349 # Compiler flag to turn off builtin functions.
10350 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10351
10352 # Compiler flag to allow reflexive dlopens.
10353 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10354
10355 # Compiler flag to generate shared objects directly from archives.
10356 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10357
10358 # Compiler flag to generate thread-safe objects.
10359 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10360
10361 # Library versioning type.
10362 version_type=$version_type
10363
10364 # Format of library name prefix.
10365 libname_spec=$lt_libname_spec
10366
10367 # List of archive names.  First name is the real one, the rest are links.
10368 # The last name is the one that the linker finds with -lNAME.
10369 library_names_spec=$lt_library_names_spec
10370
10371 # The coded name of the library, if different from the real name.
10372 soname_spec=$lt_soname_spec
10373
10374 # Commands used to build and install an old-style archive.
10375 RANLIB=$lt_RANLIB
10376 old_archive_cmds=$lt_old_archive_cmds
10377 old_postinstall_cmds=$lt_old_postinstall_cmds
10378 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10379
10380 # Create an old-style archive from a shared archive.
10381 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10382
10383 # Create a temporary old-style archive to link instead of a shared archive.
10384 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10385
10386 # Commands used to build and install a shared archive.
10387 archive_cmds=$lt_archive_cmds
10388 archive_expsym_cmds=$lt_archive_expsym_cmds
10389 postinstall_cmds=$lt_postinstall_cmds
10390 postuninstall_cmds=$lt_postuninstall_cmds
10391
10392 # Commands used to build a loadable module (assumed same as above if empty)
10393 module_cmds=$lt_module_cmds
10394 module_expsym_cmds=$lt_module_expsym_cmds
10395
10396 # Commands to strip libraries.
10397 old_striplib=$lt_old_striplib
10398 striplib=$lt_striplib
10399
10400 # Dependencies to place before the objects being linked to create a
10401 # shared library.
10402 predep_objects=$lt_predep_objects
10403
10404 # Dependencies to place after the objects being linked to create a
10405 # shared library.
10406 postdep_objects=$lt_postdep_objects
10407
10408 # Dependencies to place before the objects being linked to create a
10409 # shared library.
10410 predeps=$lt_predeps
10411
10412 # Dependencies to place after the objects being linked to create a
10413 # shared library.
10414 postdeps=$lt_postdeps
10415
10416 # The library search path used internally by the compiler when linking
10417 # a shared library.
10418 compiler_lib_search_path=$lt_compiler_lib_search_path
10419
10420 # Method to check whether dependent libraries are shared objects.
10421 deplibs_check_method=$lt_deplibs_check_method
10422
10423 # Command to use when deplibs_check_method == file_magic.
10424 file_magic_cmd=$lt_file_magic_cmd
10425
10426 # Flag that allows shared libraries with undefined symbols to be built.
10427 allow_undefined_flag=$lt_allow_undefined_flag
10428
10429 # Flag that forces no undefined symbols.
10430 no_undefined_flag=$lt_no_undefined_flag
10431
10432 # Commands used to finish a libtool library installation in a directory.
10433 finish_cmds=$lt_finish_cmds
10434
10435 # Same as above, but a single script fragment to be evaled but not shown.
10436 finish_eval=$lt_finish_eval
10437
10438 # Take the output of nm and produce a listing of raw symbols and C names.
10439 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10440
10441 # Transform the output of nm in a proper C declaration
10442 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10443
10444 # Transform the output of nm in a C name address pair
10445 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10446
10447 # This is the shared library runtime path variable.
10448 runpath_var=$runpath_var
10449
10450 # This is the shared library path variable.
10451 shlibpath_var=$shlibpath_var
10452
10453 # Is shlibpath searched before the hard-coded library search path?
10454 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10455
10456 # How to hardcode a shared library path into an executable.
10457 hardcode_action=$hardcode_action
10458
10459 # Whether we should hardcode library paths into libraries.
10460 hardcode_into_libs=$hardcode_into_libs
10461
10462 # Flag to hardcode \$libdir into a binary during linking.
10463 # This must work even if \$libdir does not exist.
10464 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10465
10466 # If ld is used when linking, flag to hardcode \$libdir into
10467 # a binary during linking. This must work even if \$libdir does
10468 # not exist.
10469 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10470
10471 # Whether we need a single -rpath flag with a separated argument.
10472 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10473
10474 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10475 # resulting binary.
10476 hardcode_direct=$hardcode_direct
10477
10478 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10479 # resulting binary.
10480 hardcode_minus_L=$hardcode_minus_L
10481
10482 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10483 # the resulting binary.
10484 hardcode_shlibpath_var=$hardcode_shlibpath_var
10485
10486 # Set to yes if building a shared library automatically hardcodes DIR into the library
10487 # and all subsequent libraries and executables linked against it.
10488 hardcode_automatic=$hardcode_automatic
10489
10490 # Variables whose values should be saved in libtool wrapper scripts and
10491 # restored at relink time.
10492 variables_saved_for_relink="$variables_saved_for_relink"
10493
10494 # Whether libtool must link a program against all its dependency libraries.
10495 link_all_deplibs=$link_all_deplibs
10496
10497 # Compile-time system search path for libraries
10498 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10499
10500 # Run-time system search path for libraries
10501 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10502
10503 # Fix the shell variable \$srcfile for the compiler.
10504 fix_srcfile_path="$fix_srcfile_path"
10505
10506 # Set to yes if exported symbols are required.
10507 always_export_symbols=$always_export_symbols
10508
10509 # The commands to list exported symbols.
10510 export_symbols_cmds=$lt_export_symbols_cmds
10511
10512 # The commands to extract the exported symbol list from a shared archive.
10513 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10514
10515 # Symbols that should not be listed in the preloaded symbols.
10516 exclude_expsyms=$lt_exclude_expsyms
10517
10518 # Symbols that must always be exported.
10519 include_expsyms=$lt_include_expsyms
10520
10521 # ### END LIBTOOL CONFIG
10522
10523 __EOF__
10524
10525
10526   case $host_os in
10527   aix3*)
10528     cat <<\EOF >> "$cfgfile"
10529
10530 # AIX sometimes has problems with the GCC collect2 program.  For some
10531 # reason, if we set the COLLECT_NAMES environment variable, the problems
10532 # vanish in a puff of smoke.
10533 if test "X${COLLECT_NAMES+set}" != Xset; then
10534   COLLECT_NAMES=
10535   export COLLECT_NAMES
10536 fi
10537 EOF
10538     ;;
10539   esac
10540
10541   # We use sed instead of cat because bash on DJGPP gets confused if
10542   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10543   # text mode, it properly converts lines to CR/LF.  This bash problem
10544   # is reportedly fixed, but why not run on old versions too?
10545   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10546
10547   mv -f "$cfgfile" "$ofile" || \
10548     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10549   chmod +x "$ofile"
10550
10551 else
10552   # If there is no Makefile yet, we rely on a make rule to execute
10553   # `config.status --recheck' to rerun these tests and create the
10554   # libtool script then.
10555   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10556   if test -f "$ltmain_in"; then
10557     test -f Makefile && make "$ltmain"
10558   fi
10559 fi
10560
10561
10562 ac_ext=c
10563 ac_cpp='$CPP $CPPFLAGS'
10564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10567
10568 CC="$lt_save_CC"
10569
10570
10571 # Check whether --with-tags was given.
10572 if test "${with_tags+set}" = set; then
10573   withval=$with_tags; tagnames="$withval"
10574 fi
10575
10576
10577 if test -f "$ltmain" && test -n "$tagnames"; then
10578   if test ! -f "${ofile}"; then
10579     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10580 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10581   fi
10582
10583   if test -z "$LTCC"; then
10584     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10585     if test -z "$LTCC"; then
10586       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10587 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10588     else
10589       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10590 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10591     fi
10592   fi
10593   if test -z "$LTCFLAGS"; then
10594     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10595   fi
10596
10597   # Extract list of available tagged configurations in $ofile.
10598   # Note that this assumes the entire list is on one line.
10599   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10600
10601   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10602   for tagname in $tagnames; do
10603     IFS="$lt_save_ifs"
10604     # Check whether tagname contains only valid characters
10605     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10606     "") ;;
10607     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10608 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10609    { (exit 1); exit 1; }; }
10610         ;;
10611     esac
10612
10613     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10614     then
10615       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10616 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10617    { (exit 1); exit 1; }; }
10618     fi
10619
10620     # Update the list of available tags.
10621     if test -n "$tagname"; then
10622       echo appending configuration tag \"$tagname\" to $ofile
10623
10624       case $tagname in
10625       CXX)
10626         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10627             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10628             (test "X$CXX" != "Xg++"))) ; then
10629           ac_ext=cpp
10630 ac_cpp='$CXXCPP $CPPFLAGS'
10631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10634
10635
10636
10637
10638 archive_cmds_need_lc_CXX=no
10639 allow_undefined_flag_CXX=
10640 always_export_symbols_CXX=no
10641 archive_expsym_cmds_CXX=
10642 export_dynamic_flag_spec_CXX=
10643 hardcode_direct_CXX=no
10644 hardcode_libdir_flag_spec_CXX=
10645 hardcode_libdir_flag_spec_ld_CXX=
10646 hardcode_libdir_separator_CXX=
10647 hardcode_minus_L_CXX=no
10648 hardcode_shlibpath_var_CXX=unsupported
10649 hardcode_automatic_CXX=no
10650 module_cmds_CXX=
10651 module_expsym_cmds_CXX=
10652 link_all_deplibs_CXX=unknown
10653 old_archive_cmds_CXX=$old_archive_cmds
10654 no_undefined_flag_CXX=
10655 whole_archive_flag_spec_CXX=
10656 enable_shared_with_static_runtimes_CXX=no
10657
10658 # Dependencies to place before and after the object being linked:
10659 predep_objects_CXX=
10660 postdep_objects_CXX=
10661 predeps_CXX=
10662 postdeps_CXX=
10663 compiler_lib_search_path_CXX=
10664
10665 # Source file extension for C++ test sources.
10666 ac_ext=cpp
10667
10668 # Object file extension for compiled C++ test sources.
10669 objext=o
10670 objext_CXX=$objext
10671
10672 # Code to be used in simple compile tests
10673 lt_simple_compile_test_code="int some_variable = 0;\n"
10674
10675 # Code to be used in simple link tests
10676 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10677
10678 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10679
10680 # If no C compiler was specified, use CC.
10681 LTCC=${LTCC-"$CC"}
10682
10683 # If no C compiler flags were specified, use CFLAGS.
10684 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10685
10686 # Allow CC to be a program name with arguments.
10687 compiler=$CC
10688
10689
10690 # save warnings/boilerplate of simple test code
10691 ac_outfile=conftest.$ac_objext
10692 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10693 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10694 _lt_compiler_boilerplate=`cat conftest.err`
10695 $rm conftest*
10696
10697 ac_outfile=conftest.$ac_objext
10698 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10699 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10700 _lt_linker_boilerplate=`cat conftest.err`
10701 $rm conftest*
10702
10703
10704 # Allow CC to be a program name with arguments.
10705 lt_save_CC=$CC
10706 lt_save_LD=$LD
10707 lt_save_GCC=$GCC
10708 GCC=$GXX
10709 lt_save_with_gnu_ld=$with_gnu_ld
10710 lt_save_path_LD=$lt_cv_path_LD
10711 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10712   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10713 else
10714   $as_unset lt_cv_prog_gnu_ld
10715 fi
10716 if test -n "${lt_cv_path_LDCXX+set}"; then
10717   lt_cv_path_LD=$lt_cv_path_LDCXX
10718 else
10719   $as_unset lt_cv_path_LD
10720 fi
10721 test -z "${LDCXX+set}" || LD=$LDCXX
10722 CC=${CXX-"c++"}
10723 compiler=$CC
10724 compiler_CXX=$CC
10725 for cc_temp in $compiler""; do
10726   case $cc_temp in
10727     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10728     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10729     \-*) ;;
10730     *) break;;
10731   esac
10732 done
10733 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10734
10735
10736 # We don't want -fno-exception wen compiling C++ code, so set the
10737 # no_builtin_flag separately
10738 if test "$GXX" = yes; then
10739   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10740 else
10741   lt_prog_compiler_no_builtin_flag_CXX=
10742 fi
10743
10744 if test "$GXX" = yes; then
10745   # Set up default GNU C++ configuration
10746
10747
10748 # Check whether --with-gnu-ld was given.
10749 if test "${with_gnu_ld+set}" = set; then
10750   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10751 else
10752   with_gnu_ld=no
10753 fi
10754
10755 ac_prog=ld
10756 if test "$GCC" = yes; then
10757   # Check if gcc -print-prog-name=ld gives a path.
10758   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10759 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10760   case $host in
10761   *-*-mingw*)
10762     # gcc leaves a trailing carriage return which upsets mingw
10763     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10764   *)
10765     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10766   esac
10767   case $ac_prog in
10768     # Accept absolute paths.
10769     [\\/]* | ?:[\\/]*)
10770       re_direlt='/[^/][^/]*/\.\./'
10771       # Canonicalize the pathname of ld
10772       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10773       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10774         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10775       done
10776       test -z "$LD" && LD="$ac_prog"
10777       ;;
10778   "")
10779     # If it fails, then pretend we aren't using GCC.
10780     ac_prog=ld
10781     ;;
10782   *)
10783     # If it is relative, then search for the first ld in PATH.
10784     with_gnu_ld=unknown
10785     ;;
10786   esac
10787 elif test "$with_gnu_ld" = yes; then
10788   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10789 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10790 else
10791   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10792 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10793 fi
10794 if test "${lt_cv_path_LD+set}" = set; then
10795   echo $ECHO_N "(cached) $ECHO_C" >&6
10796 else
10797   if test -z "$LD"; then
10798   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10799   for ac_dir in $PATH; do
10800     IFS="$lt_save_ifs"
10801     test -z "$ac_dir" && ac_dir=.
10802     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10803       lt_cv_path_LD="$ac_dir/$ac_prog"
10804       # Check to see if the program is GNU ld.  I'd rather use --version,
10805       # but apparently some variants of GNU ld only accept -v.
10806       # Break only if it was the GNU/non-GNU ld that we prefer.
10807       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10808       *GNU* | *'with BFD'*)
10809         test "$with_gnu_ld" != no && break
10810         ;;
10811       *)
10812         test "$with_gnu_ld" != yes && break
10813         ;;
10814       esac
10815     fi
10816   done
10817   IFS="$lt_save_ifs"
10818 else
10819   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10820 fi
10821 fi
10822
10823 LD="$lt_cv_path_LD"
10824 if test -n "$LD"; then
10825   { echo "$as_me:$LINENO: result: $LD" >&5
10826 echo "${ECHO_T}$LD" >&6; }
10827 else
10828   { echo "$as_me:$LINENO: result: no" >&5
10829 echo "${ECHO_T}no" >&6; }
10830 fi
10831 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10832 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10833    { (exit 1); exit 1; }; }
10834 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10835 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10836 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10837   echo $ECHO_N "(cached) $ECHO_C" >&6
10838 else
10839   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10840 case `$LD -v 2>&1 </dev/null` in
10841 *GNU* | *'with BFD'*)
10842   lt_cv_prog_gnu_ld=yes
10843   ;;
10844 *)
10845   lt_cv_prog_gnu_ld=no
10846   ;;
10847 esac
10848 fi
10849 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10850 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10851 with_gnu_ld=$lt_cv_prog_gnu_ld
10852
10853
10854
10855   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10856   # archiving commands below assume that GNU ld is being used.
10857   if test "$with_gnu_ld" = yes; then
10858     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10859     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10860
10861     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10862     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10863
10864     # If archive_cmds runs LD, not CC, wlarc should be empty
10865     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10866     #     investigate it a little bit more. (MM)
10867     wlarc='${wl}'
10868
10869     # ancient GNU ld didn't support --whole-archive et. al.
10870     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10871         grep 'no-whole-archive' > /dev/null; then
10872       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10873     else
10874       whole_archive_flag_spec_CXX=
10875     fi
10876   else
10877     with_gnu_ld=no
10878     wlarc=
10879
10880     # A generic and very simple default shared library creation
10881     # command for GNU C++ for the case where it uses the native
10882     # linker, instead of GNU ld.  If possible, this setting should
10883     # overridden to take advantage of the native linker features on
10884     # the platform it is being used on.
10885     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10886   fi
10887
10888   # Commands to make compiler produce verbose output that lists
10889   # what "hidden" libraries, object files and flags are used when
10890   # linking a shared library.
10891   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10892
10893 else
10894   GXX=no
10895   with_gnu_ld=no
10896   wlarc=
10897 fi
10898
10899 # PORTME: fill in a description of your system's C++ link characteristics
10900 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10901 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10902 ld_shlibs_CXX=yes
10903 case $host_os in
10904   aix3*)
10905     # FIXME: insert proper C++ library support
10906     ld_shlibs_CXX=no
10907     ;;
10908   aix4* | aix5*)
10909     if test "$host_cpu" = ia64; then
10910       # On IA64, the linker does run time linking by default, so we don't
10911       # have to do anything special.
10912       aix_use_runtimelinking=no
10913       exp_sym_flag='-Bexport'
10914       no_entry_flag=""
10915     else
10916       aix_use_runtimelinking=no
10917
10918       # Test if we are trying to use run time linking or normal
10919       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10920       # need to do runtime linking.
10921       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10922         for ld_flag in $LDFLAGS; do
10923           case $ld_flag in
10924           *-brtl*)
10925             aix_use_runtimelinking=yes
10926             break
10927             ;;
10928           esac
10929         done
10930         ;;
10931       esac
10932
10933       exp_sym_flag='-bexport'
10934       no_entry_flag='-bnoentry'
10935     fi
10936
10937     # When large executables or shared objects are built, AIX ld can
10938     # have problems creating the table of contents.  If linking a library
10939     # or program results in "error TOC overflow" add -mminimal-toc to
10940     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10941     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10942
10943     archive_cmds_CXX=''
10944     hardcode_direct_CXX=yes
10945     hardcode_libdir_separator_CXX=':'
10946     link_all_deplibs_CXX=yes
10947
10948     if test "$GXX" = yes; then
10949       case $host_os in aix4.[012]|aix4.[012].*)
10950       # We only want to do this on AIX 4.2 and lower, the check
10951       # below for broken collect2 doesn't work under 4.3+
10952         collect2name=`${CC} -print-prog-name=collect2`
10953         if test -f "$collect2name" && \
10954            strings "$collect2name" | grep resolve_lib_name >/dev/null
10955         then
10956           # We have reworked collect2
10957           hardcode_direct_CXX=yes
10958         else
10959           # We have old collect2
10960           hardcode_direct_CXX=unsupported
10961           # It fails to find uninstalled libraries when the uninstalled
10962           # path is not listed in the libpath.  Setting hardcode_minus_L
10963           # to unsupported forces relinking
10964           hardcode_minus_L_CXX=yes
10965           hardcode_libdir_flag_spec_CXX='-L$libdir'
10966           hardcode_libdir_separator_CXX=
10967         fi
10968         ;;
10969       esac
10970       shared_flag='-shared'
10971       if test "$aix_use_runtimelinking" = yes; then
10972         shared_flag="$shared_flag "'${wl}-G'
10973       fi
10974     else
10975       # not using gcc
10976       if test "$host_cpu" = ia64; then
10977         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10978         # chokes on -Wl,-G. The following line is correct:
10979         shared_flag='-G'
10980       else
10981         if test "$aix_use_runtimelinking" = yes; then
10982           shared_flag='${wl}-G'
10983         else
10984           shared_flag='${wl}-bM:SRE'
10985         fi
10986       fi
10987     fi
10988
10989     # It seems that -bexpall does not export symbols beginning with
10990     # underscore (_), so it is better to generate a list of symbols to export.
10991     always_export_symbols_CXX=yes
10992     if test "$aix_use_runtimelinking" = yes; then
10993       # Warning - without using the other runtime loading flags (-brtl),
10994       # -berok will link without error, but may produce a broken library.
10995       allow_undefined_flag_CXX='-berok'
10996       # Determine the default libpath from the value encoded in an empty executable.
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
11004 int
11005 main ()
11006 {
11007
11008   ;
11009   return 0;
11010 }
11011 _ACEOF
11012 rm -f conftest.$ac_objext conftest$ac_exeext
11013 if { (ac_try="$ac_link"
11014 case "(($ac_try" in
11015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016   *) ac_try_echo=$ac_try;;
11017 esac
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019   (eval "$ac_link") 2>conftest.er1
11020   ac_status=$?
11021   grep -v '^ *+' conftest.er1 >conftest.err
11022   rm -f conftest.er1
11023   cat conftest.err >&5
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); } && {
11026          test -z "$ac_cxx_werror_flag" ||
11027          test ! -s conftest.err
11028        } && test -s conftest$ac_exeext &&
11029        $as_test_x conftest$ac_exeext; then
11030
11031 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11032 }'`
11033 # Check for a 64-bit object if we didn't find anything.
11034 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11035 }'`; fi
11036 else
11037   echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11039
11040
11041 fi
11042
11043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11044       conftest$ac_exeext conftest.$ac_ext
11045 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11046
11047       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11048
11049       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11050      else
11051       if test "$host_cpu" = ia64; then
11052         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11053         allow_undefined_flag_CXX="-z nodefs"
11054         archive_expsym_cmds_CXX="\$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"
11055       else
11056         # Determine the default libpath from the value encoded in an empty executable.
11057         cat >conftest.$ac_ext <<_ACEOF
11058 /* confdefs.h.  */
11059 _ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h.  */
11063
11064 int
11065 main ()
11066 {
11067
11068   ;
11069   return 0;
11070 }
11071 _ACEOF
11072 rm -f conftest.$ac_objext conftest$ac_exeext
11073 if { (ac_try="$ac_link"
11074 case "(($ac_try" in
11075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076   *) ac_try_echo=$ac_try;;
11077 esac
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079   (eval "$ac_link") 2>conftest.er1
11080   ac_status=$?
11081   grep -v '^ *+' conftest.er1 >conftest.err
11082   rm -f conftest.er1
11083   cat conftest.err >&5
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); } && {
11086          test -z "$ac_cxx_werror_flag" ||
11087          test ! -s conftest.err
11088        } && test -s conftest$ac_exeext &&
11089        $as_test_x conftest$ac_exeext; then
11090
11091 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11092 }'`
11093 # Check for a 64-bit object if we didn't find anything.
11094 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11095 }'`; fi
11096 else
11097   echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100
11101 fi
11102
11103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11104       conftest$ac_exeext conftest.$ac_ext
11105 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11106
11107         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11108         # Warning - without using the other run time loading flags,
11109         # -berok will link without error, but may produce a broken library.
11110         no_undefined_flag_CXX=' ${wl}-bernotok'
11111         allow_undefined_flag_CXX=' ${wl}-berok'
11112         # Exported symbols can be pulled into shared objects from archives
11113         whole_archive_flag_spec_CXX='$convenience'
11114         archive_cmds_need_lc_CXX=yes
11115         # This is similar to how AIX traditionally builds its shared libraries.
11116         archive_expsym_cmds_CXX="\$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'
11117       fi
11118     fi
11119     ;;
11120
11121   beos*)
11122     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11123       allow_undefined_flag_CXX=unsupported
11124       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11125       # support --undefined.  This deserves some investigation.  FIXME
11126       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11127     else
11128       ld_shlibs_CXX=no
11129     fi
11130     ;;
11131
11132   chorus*)
11133     case $cc_basename in
11134       *)
11135         # FIXME: insert proper C++ library support
11136         ld_shlibs_CXX=no
11137         ;;
11138     esac
11139     ;;
11140
11141   cygwin* | mingw* | pw32*)
11142     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11143     # as there is no search path for DLLs.
11144     hardcode_libdir_flag_spec_CXX='-L$libdir'
11145     allow_undefined_flag_CXX=unsupported
11146     always_export_symbols_CXX=no
11147     enable_shared_with_static_runtimes_CXX=yes
11148
11149     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11150       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11151       # If the export-symbols file already is a .def file (1st line
11152       # is EXPORTS), use it as is; otherwise, prepend...
11153       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11154         cp $export_symbols $output_objdir/$soname.def;
11155       else
11156         echo EXPORTS > $output_objdir/$soname.def;
11157         cat $export_symbols >> $output_objdir/$soname.def;
11158       fi~
11159       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11160     else
11161       ld_shlibs_CXX=no
11162     fi
11163   ;;
11164       darwin* | rhapsody*)
11165         case $host_os in
11166         rhapsody* | darwin1.[012])
11167          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11168          ;;
11169        *) # Darwin 1.3 on
11170          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11171            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11172          else
11173            case ${MACOSX_DEPLOYMENT_TARGET} in
11174              10.[012])
11175                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11176                ;;
11177              10.*)
11178                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11179                ;;
11180            esac
11181          fi
11182          ;;
11183         esac
11184       archive_cmds_need_lc_CXX=no
11185       hardcode_direct_CXX=no
11186       hardcode_automatic_CXX=yes
11187       hardcode_shlibpath_var_CXX=unsupported
11188       whole_archive_flag_spec_CXX=''
11189       link_all_deplibs_CXX=yes
11190
11191     if test "$GXX" = yes ; then
11192       lt_int_apple_cc_single_mod=no
11193       output_verbose_link_cmd='echo'
11194       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11195        lt_int_apple_cc_single_mod=yes
11196       fi
11197       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11198        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11199       else
11200           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11201         fi
11202         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11203         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11204           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11205             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11206           else
11207             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11208           fi
11209             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11210       else
11211       case $cc_basename in
11212         xlc*)
11213          output_verbose_link_cmd='echo'
11214           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11215           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11216           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11217           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11218           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11219           ;;
11220        *)
11221          ld_shlibs_CXX=no
11222           ;;
11223       esac
11224       fi
11225         ;;
11226
11227   dgux*)
11228     case $cc_basename in
11229       ec++*)
11230         # FIXME: insert proper C++ library support
11231         ld_shlibs_CXX=no
11232         ;;
11233       ghcx*)
11234         # Green Hills C++ Compiler
11235         # FIXME: insert proper C++ library support
11236         ld_shlibs_CXX=no
11237         ;;
11238       *)
11239         # FIXME: insert proper C++ library support
11240         ld_shlibs_CXX=no
11241         ;;
11242     esac
11243     ;;
11244   freebsd[12]*)
11245     # C++ shared libraries reported to be fairly broken before switch to ELF
11246     ld_shlibs_CXX=no
11247     ;;
11248   freebsd-elf*)
11249     archive_cmds_need_lc_CXX=no
11250     ;;
11251   freebsd* | dragonfly*)
11252     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11253     # conventions
11254     ld_shlibs_CXX=yes
11255     ;;
11256   gnu*)
11257     ;;
11258   hpux9*)
11259     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11260     hardcode_libdir_separator_CXX=:
11261     export_dynamic_flag_spec_CXX='${wl}-E'
11262     hardcode_direct_CXX=yes
11263     hardcode_minus_L_CXX=yes # Not in the search PATH,
11264                                 # but as the default
11265                                 # location of the library.
11266
11267     case $cc_basename in
11268     CC*)
11269       # FIXME: insert proper C++ library support
11270       ld_shlibs_CXX=no
11271       ;;
11272     aCC*)
11273       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11274       # Commands to make compiler produce verbose output that lists
11275       # what "hidden" libraries, object files and flags are used when
11276       # linking a shared library.
11277       #
11278       # There doesn't appear to be a way to prevent this compiler from
11279       # explicitly linking system object files so we need to strip them
11280       # from the output so that they don't get included in the library
11281       # dependencies.
11282       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11283       ;;
11284     *)
11285       if test "$GXX" = yes; then
11286         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11287       else
11288         # FIXME: insert proper C++ library support
11289         ld_shlibs_CXX=no
11290       fi
11291       ;;
11292     esac
11293     ;;
11294   hpux10*|hpux11*)
11295     if test $with_gnu_ld = no; then
11296       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11297       hardcode_libdir_separator_CXX=:
11298
11299       case $host_cpu in
11300       hppa*64*|ia64*)
11301         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11302         ;;
11303       *)
11304         export_dynamic_flag_spec_CXX='${wl}-E'
11305         ;;
11306       esac
11307     fi
11308     case $host_cpu in
11309     hppa*64*|ia64*)
11310       hardcode_direct_CXX=no
11311       hardcode_shlibpath_var_CXX=no
11312       ;;
11313     *)
11314       hardcode_direct_CXX=yes
11315       hardcode_minus_L_CXX=yes # Not in the search PATH,
11316                                               # but as the default
11317                                               # location of the library.
11318       ;;
11319     esac
11320
11321     case $cc_basename in
11322       CC*)
11323         # FIXME: insert proper C++ library support
11324         ld_shlibs_CXX=no
11325         ;;
11326       aCC*)
11327         case $host_cpu in
11328         hppa*64*)
11329           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11330           ;;
11331         ia64*)
11332           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11333           ;;
11334         *)
11335           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11336           ;;
11337         esac
11338         # Commands to make compiler produce verbose output that lists
11339         # what "hidden" libraries, object files and flags are used when
11340         # linking a shared library.
11341         #
11342         # There doesn't appear to be a way to prevent this compiler from
11343         # explicitly linking system object files so we need to strip them
11344         # from the output so that they don't get included in the library
11345         # dependencies.
11346         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11347         ;;
11348       *)
11349         if test "$GXX" = yes; then
11350           if test $with_gnu_ld = no; then
11351             case $host_cpu in
11352             hppa*64*)
11353               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11354               ;;
11355             ia64*)
11356               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11357               ;;
11358             *)
11359               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11360               ;;
11361             esac
11362           fi
11363         else
11364           # FIXME: insert proper C++ library support
11365           ld_shlibs_CXX=no
11366         fi
11367         ;;
11368     esac
11369     ;;
11370   interix3*)
11371     hardcode_direct_CXX=no
11372     hardcode_shlibpath_var_CXX=no
11373     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11374     export_dynamic_flag_spec_CXX='${wl}-E'
11375     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11376     # Instead, shared libraries are loaded at an image base (0x10000000 by
11377     # default) and relocated if they conflict, which is a slow very memory
11378     # consuming and fragmenting process.  To avoid this, we pick a random,
11379     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11380     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11381     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11382     archive_expsym_cmds_CXX='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'
11383     ;;
11384   irix5* | irix6*)
11385     case $cc_basename in
11386       CC*)
11387         # SGI C++
11388         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11389
11390         # Archives containing C++ object files must be created using
11391         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11392         # necessary to make sure instantiated templates are included
11393         # in the archive.
11394         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11395         ;;
11396       *)
11397         if test "$GXX" = yes; then
11398           if test "$with_gnu_ld" = no; then
11399             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11400           else
11401             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11402           fi
11403         fi
11404         link_all_deplibs_CXX=yes
11405         ;;
11406     esac
11407     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11408     hardcode_libdir_separator_CXX=:
11409     ;;
11410   linux* | k*bsd*-gnu)
11411     case $cc_basename in
11412       KCC*)
11413         # Kuck and Associates, Inc. (KAI) C++ Compiler
11414
11415         # KCC will only create a shared library if the output file
11416         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11417         # to its proper name (with version) after linking.
11418         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11419         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11420         # Commands to make compiler produce verbose output that lists
11421         # what "hidden" libraries, object files and flags are used when
11422         # linking a shared library.
11423         #
11424         # There doesn't appear to be a way to prevent this compiler from
11425         # explicitly linking system object files so we need to strip them
11426         # from the output so that they don't get included in the library
11427         # dependencies.
11428         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11429
11430         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11431         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11432
11433         # Archives containing C++ object files must be created using
11434         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11435         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11436         ;;
11437       icpc*)
11438         # Intel C++
11439         with_gnu_ld=yes
11440         # version 8.0 and above of icpc choke on multiply defined symbols
11441         # if we add $predep_objects and $postdep_objects, however 7.1 and
11442         # earlier do not add the objects themselves.
11443         case `$CC -V 2>&1` in
11444         *"Version 7."*)
11445           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11446           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11447           ;;
11448         *)  # Version 8.0 or newer
11449           tmp_idyn=
11450           case $host_cpu in
11451             ia64*) tmp_idyn=' -i_dynamic';;
11452           esac
11453           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11454           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11455           ;;
11456         esac
11457         archive_cmds_need_lc_CXX=no
11458         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11459         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11460         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11461         ;;
11462       pgCC*)
11463         # Portland Group C++ compiler
11464         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11465         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11466
11467         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11468         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11469         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11470         ;;
11471       cxx*)
11472         # Compaq C++
11473         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11474         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11475
11476         runpath_var=LD_RUN_PATH
11477         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11478         hardcode_libdir_separator_CXX=:
11479
11480         # Commands to make compiler produce verbose output that lists
11481         # what "hidden" libraries, object files and flags are used when
11482         # linking a shared library.
11483         #
11484         # There doesn't appear to be a way to prevent this compiler from
11485         # explicitly linking system object files so we need to strip them
11486         # from the output so that they don't get included in the library
11487         # dependencies.
11488         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11489         ;;
11490     esac
11491     ;;
11492   lynxos*)
11493     # FIXME: insert proper C++ library support
11494     ld_shlibs_CXX=no
11495     ;;
11496   m88k*)
11497     # FIXME: insert proper C++ library support
11498     ld_shlibs_CXX=no
11499     ;;
11500   mvs*)
11501     case $cc_basename in
11502       cxx*)
11503         # FIXME: insert proper C++ library support
11504         ld_shlibs_CXX=no
11505         ;;
11506       *)
11507         # FIXME: insert proper C++ library support
11508         ld_shlibs_CXX=no
11509         ;;
11510     esac
11511     ;;
11512   netbsd* | netbsdelf*-gnu)
11513     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11514       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11515       wlarc=
11516       hardcode_libdir_flag_spec_CXX='-R$libdir'
11517       hardcode_direct_CXX=yes
11518       hardcode_shlibpath_var_CXX=no
11519     fi
11520     # Workaround some broken pre-1.5 toolchains
11521     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11522     ;;
11523   openbsd2*)
11524     # C++ shared libraries are fairly broken
11525     ld_shlibs_CXX=no
11526     ;;
11527   openbsd*)
11528     hardcode_direct_CXX=yes
11529     hardcode_shlibpath_var_CXX=no
11530     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11531     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11532     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11533       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11534       export_dynamic_flag_spec_CXX='${wl}-E'
11535       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11536     fi
11537     output_verbose_link_cmd='echo'
11538     ;;
11539   osf3*)
11540     case $cc_basename in
11541       KCC*)
11542         # Kuck and Associates, Inc. (KAI) C++ Compiler
11543
11544         # KCC will only create a shared library if the output file
11545         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11546         # to its proper name (with version) after linking.
11547         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11548
11549         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11550         hardcode_libdir_separator_CXX=:
11551
11552         # Archives containing C++ object files must be created using
11553         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11554         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11555
11556         ;;
11557       RCC*)
11558         # Rational C++ 2.4.1
11559         # FIXME: insert proper C++ library support
11560         ld_shlibs_CXX=no
11561         ;;
11562       cxx*)
11563         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11564         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11565
11566         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11567         hardcode_libdir_separator_CXX=:
11568
11569         # Commands to make compiler produce verbose output that lists
11570         # what "hidden" libraries, object files and flags are used when
11571         # linking a shared library.
11572         #
11573         # There doesn't appear to be a way to prevent this compiler from
11574         # explicitly linking system object files so we need to strip them
11575         # from the output so that they don't get included in the library
11576         # dependencies.
11577         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11578         ;;
11579       *)
11580         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11581           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11582           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11583
11584           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11585           hardcode_libdir_separator_CXX=:
11586
11587           # Commands to make compiler produce verbose output that lists
11588           # what "hidden" libraries, object files and flags are used when
11589           # linking a shared library.
11590           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11591
11592         else
11593           # FIXME: insert proper C++ library support
11594           ld_shlibs_CXX=no
11595         fi
11596         ;;
11597     esac
11598     ;;
11599   osf4* | osf5*)
11600     case $cc_basename in
11601       KCC*)
11602         # Kuck and Associates, Inc. (KAI) C++ Compiler
11603
11604         # KCC will only create a shared library if the output file
11605         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11606         # to its proper name (with version) after linking.
11607         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11608
11609         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11610         hardcode_libdir_separator_CXX=:
11611
11612         # Archives containing C++ object files must be created using
11613         # the KAI C++ compiler.
11614         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11615         ;;
11616       RCC*)
11617         # Rational C++ 2.4.1
11618         # FIXME: insert proper C++ library support
11619         ld_shlibs_CXX=no
11620         ;;
11621       cxx*)
11622         allow_undefined_flag_CXX=' -expect_unresolved \*'
11623         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11624         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11625           echo "-hidden">> $lib.exp~
11626           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11627           $rm $lib.exp'
11628
11629         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11630         hardcode_libdir_separator_CXX=:
11631
11632         # Commands to make compiler produce verbose output that lists
11633         # what "hidden" libraries, object files and flags are used when
11634         # linking a shared library.
11635         #
11636         # There doesn't appear to be a way to prevent this compiler from
11637         # explicitly linking system object files so we need to strip them
11638         # from the output so that they don't get included in the library
11639         # dependencies.
11640         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11641         ;;
11642       *)
11643         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11644           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11645          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11646
11647           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11648           hardcode_libdir_separator_CXX=:
11649
11650           # Commands to make compiler produce verbose output that lists
11651           # what "hidden" libraries, object files and flags are used when
11652           # linking a shared library.
11653           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11654
11655         else
11656           # FIXME: insert proper C++ library support
11657           ld_shlibs_CXX=no
11658         fi
11659         ;;
11660     esac
11661     ;;
11662   psos*)
11663     # FIXME: insert proper C++ library support
11664     ld_shlibs_CXX=no
11665     ;;
11666   sunos4*)
11667     case $cc_basename in
11668       CC*)
11669         # Sun C++ 4.x
11670         # FIXME: insert proper C++ library support
11671         ld_shlibs_CXX=no
11672         ;;
11673       lcc*)
11674         # Lucid
11675         # FIXME: insert proper C++ library support
11676         ld_shlibs_CXX=no
11677         ;;
11678       *)
11679         # FIXME: insert proper C++ library support
11680         ld_shlibs_CXX=no
11681         ;;
11682     esac
11683     ;;
11684   solaris*)
11685     case $cc_basename in
11686       CC*)
11687         # Sun C++ 4.2, 5.x and Centerline C++
11688         archive_cmds_need_lc_CXX=yes
11689         no_undefined_flag_CXX=' -zdefs'
11690         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11691         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11692         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11693
11694         hardcode_libdir_flag_spec_CXX='-R$libdir'
11695         hardcode_shlibpath_var_CXX=no
11696         case $host_os in
11697           solaris2.[0-5] | solaris2.[0-5].*) ;;
11698           *)
11699             # The C++ compiler is used as linker so we must use $wl
11700             # flag to pass the commands to the underlying system
11701             # linker. We must also pass each convience library through
11702             # to the system linker between allextract/defaultextract.
11703             # The C++ compiler will combine linker options so we
11704             # cannot just pass the convience library names through
11705             # without $wl.
11706             # Supported since Solaris 2.6 (maybe 2.5.1?)
11707             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11708             ;;
11709         esac
11710         link_all_deplibs_CXX=yes
11711
11712         output_verbose_link_cmd='echo'
11713
11714         # Archives containing C++ object files must be created using
11715         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11716         # necessary to make sure instantiated templates are included
11717         # in the archive.
11718         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11719         ;;
11720       gcx*)
11721         # Green Hills C++ Compiler
11722         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11723
11724         # The C++ compiler must be used to create the archive.
11725         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11726         ;;
11727       *)
11728         # GNU C++ compiler with Solaris linker
11729         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11730           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11731           if $CC --version | grep -v '^2\.7' > /dev/null; then
11732             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11733             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11734                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11735
11736             # Commands to make compiler produce verbose output that lists
11737             # what "hidden" libraries, object files and flags are used when
11738             # linking a shared library.
11739             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11740           else
11741             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11742             # platform.
11743             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11744             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11745                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11746
11747             # Commands to make compiler produce verbose output that lists
11748             # what "hidden" libraries, object files and flags are used when
11749             # linking a shared library.
11750             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11751           fi
11752
11753           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11754         fi
11755         ;;
11756     esac
11757     ;;
11758   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11759     no_undefined_flag_CXX='${wl}-z,text'
11760     archive_cmds_need_lc_CXX=no
11761     hardcode_shlibpath_var_CXX=no
11762     runpath_var='LD_RUN_PATH'
11763
11764     case $cc_basename in
11765       CC*)
11766         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11767         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11768         ;;
11769       *)
11770         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11771         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11772         ;;
11773     esac
11774     ;;
11775   sysv5* | sco3.2v5* | sco5v6*)
11776     # Note: We can NOT use -z defs as we might desire, because we do not
11777     # link with -lc, and that would cause any symbols used from libc to
11778     # always be unresolved, which means just about no library would
11779     # ever link correctly.  If we're not using GNU ld we use -z text
11780     # though, which does catch some bad symbols but isn't as heavy-handed
11781     # as -z defs.
11782     # For security reasons, it is highly recommended that you always
11783     # use absolute paths for naming shared libraries, and exclude the
11784     # DT_RUNPATH tag from executables and libraries.  But doing so
11785     # requires that you compile everything twice, which is a pain.
11786     # So that behaviour is only enabled if SCOABSPATH is set to a
11787     # non-empty value in the environment.  Most likely only useful for
11788     # creating official distributions of packages.
11789     # This is a hack until libtool officially supports absolute path
11790     # names for shared libraries.
11791     no_undefined_flag_CXX='${wl}-z,text'
11792     allow_undefined_flag_CXX='${wl}-z,nodefs'
11793     archive_cmds_need_lc_CXX=no
11794     hardcode_shlibpath_var_CXX=no
11795     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11796     hardcode_libdir_separator_CXX=':'
11797     link_all_deplibs_CXX=yes
11798     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11799     runpath_var='LD_RUN_PATH'
11800
11801     case $cc_basename in
11802       CC*)
11803         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11804         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11805         ;;
11806       *)
11807         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11808         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11809         ;;
11810     esac
11811     ;;
11812   tandem*)
11813     case $cc_basename in
11814       NCC*)
11815         # NonStop-UX NCC 3.20
11816         # FIXME: insert proper C++ library support
11817         ld_shlibs_CXX=no
11818         ;;
11819       *)
11820         # FIXME: insert proper C++ library support
11821         ld_shlibs_CXX=no
11822         ;;
11823     esac
11824     ;;
11825   vxworks*)
11826     # FIXME: insert proper C++ library support
11827     ld_shlibs_CXX=no
11828     ;;
11829   *)
11830     # FIXME: insert proper C++ library support
11831     ld_shlibs_CXX=no
11832     ;;
11833 esac
11834 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11835 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11836 test "$ld_shlibs_CXX" = no && can_build_shared=no
11837
11838 GCC_CXX="$GXX"
11839 LD_CXX="$LD"
11840
11841
11842 cat > conftest.$ac_ext <<EOF
11843 class Foo
11844 {
11845 public:
11846   Foo (void) { a = 0; }
11847 private:
11848   int a;
11849 };
11850 EOF
11851
11852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11853   (eval $ac_compile) 2>&5
11854   ac_status=$?
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); }; then
11857   # Parse the compiler output and extract the necessary
11858   # objects, libraries and library flags.
11859
11860   # Sentinel used to keep track of whether or not we are before
11861   # the conftest object file.
11862   pre_test_object_deps_done=no
11863
11864   # The `*' in the case matches for architectures that use `case' in
11865   # $output_verbose_cmd can trigger glob expansion during the loop
11866   # eval without this substitution.
11867   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11868
11869   for p in `eval $output_verbose_link_cmd`; do
11870     case $p in
11871
11872     -L* | -R* | -l*)
11873        # Some compilers place space between "-{L,R}" and the path.
11874        # Remove the space.
11875        if test $p = "-L" \
11876           || test $p = "-R"; then
11877          prev=$p
11878          continue
11879        else
11880          prev=
11881        fi
11882
11883        if test "$pre_test_object_deps_done" = no; then
11884          case $p in
11885          -L* | -R*)
11886            # Internal compiler library paths should come after those
11887            # provided the user.  The postdeps already come after the
11888            # user supplied libs so there is no need to process them.
11889            if test -z "$compiler_lib_search_path_CXX"; then
11890              compiler_lib_search_path_CXX="${prev}${p}"
11891            else
11892              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11893            fi
11894            ;;
11895          # The "-l" case would never come before the object being
11896          # linked, so don't bother handling this case.
11897          esac
11898        else
11899          if test -z "$postdeps_CXX"; then
11900            postdeps_CXX="${prev}${p}"
11901          else
11902            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11903          fi
11904        fi
11905        ;;
11906
11907     *.$objext)
11908        # This assumes that the test object file only shows up
11909        # once in the compiler output.
11910        if test "$p" = "conftest.$objext"; then
11911          pre_test_object_deps_done=yes
11912          continue
11913        fi
11914
11915        if test "$pre_test_object_deps_done" = no; then
11916          if test -z "$predep_objects_CXX"; then
11917            predep_objects_CXX="$p"
11918          else
11919            predep_objects_CXX="$predep_objects_CXX $p"
11920          fi
11921        else
11922          if test -z "$postdep_objects_CXX"; then
11923            postdep_objects_CXX="$p"
11924          else
11925            postdep_objects_CXX="$postdep_objects_CXX $p"
11926          fi
11927        fi
11928        ;;
11929
11930     *) ;; # Ignore the rest.
11931
11932     esac
11933   done
11934
11935   # Clean up.
11936   rm -f a.out a.exe
11937 else
11938   echo "libtool.m4: error: problem compiling CXX test program"
11939 fi
11940
11941 $rm -f confest.$objext
11942
11943 # PORTME: override above test on systems where it is broken
11944 case $host_os in
11945 interix3*)
11946   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11947   # hack all around it, let's just trust "g++" to DTRT.
11948   predep_objects_CXX=
11949   postdep_objects_CXX=
11950   postdeps_CXX=
11951   ;;
11952
11953 solaris*)
11954   case $cc_basename in
11955   CC*)
11956     # Adding this requires a known-good setup of shared libraries for
11957     # Sun compiler versions before 5.6, else PIC objects from an old
11958     # archive will be linked into the output, leading to subtle bugs.
11959     postdeps_CXX='-lCstd -lCrun'
11960     ;;
11961   esac
11962   ;;
11963 esac
11964
11965
11966 case " $postdeps_CXX " in
11967 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11968 esac
11969
11970 lt_prog_compiler_wl_CXX=
11971 lt_prog_compiler_pic_CXX=
11972 lt_prog_compiler_static_CXX=
11973
11974 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11975 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11976
11977   # C++ specific cases for pic, static, wl, etc.
11978   if test "$GXX" = yes; then
11979     lt_prog_compiler_wl_CXX='-Wl,'
11980     lt_prog_compiler_static_CXX='-static'
11981
11982     case $host_os in
11983     aix*)
11984       # All AIX code is PIC.
11985       if test "$host_cpu" = ia64; then
11986         # AIX 5 now supports IA64 processor
11987         lt_prog_compiler_static_CXX='-Bstatic'
11988       fi
11989       ;;
11990     amigaos*)
11991       # FIXME: we need at least 68020 code to build shared libraries, but
11992       # adding the `-m68020' flag to GCC prevents building anything better,
11993       # like `-m68040'.
11994       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11995       ;;
11996     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11997       # PIC is the default for these OSes.
11998       ;;
11999     mingw* | os2* | pw32*)
12000       # This hack is so that the source file can tell whether it is being
12001       # built for inclusion in a dll (and should export symbols for example).
12002       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12003       ;;
12004     darwin* | rhapsody*)
12005       # PIC is the default on this platform
12006       # Common symbols not allowed in MH_DYLIB files
12007       lt_prog_compiler_pic_CXX='-fno-common'
12008       ;;
12009     *djgpp*)
12010       # DJGPP does not support shared libraries at all
12011       lt_prog_compiler_pic_CXX=
12012       ;;
12013     interix3*)
12014       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12015       # Instead, we relocate shared libraries at runtime.
12016       ;;
12017     sysv4*MP*)
12018       if test -d /usr/nec; then
12019         lt_prog_compiler_pic_CXX=-Kconform_pic
12020       fi
12021       ;;
12022     hpux*)
12023       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12024       # not for PA HP-UX.
12025       case $host_cpu in
12026       hppa*64*|ia64*)
12027         ;;
12028       *)
12029         lt_prog_compiler_pic_CXX='-fPIC'
12030         ;;
12031       esac
12032       ;;
12033     *)
12034       lt_prog_compiler_pic_CXX='-fPIC'
12035       ;;
12036     esac
12037   else
12038     case $host_os in
12039       aix4* | aix5*)
12040         # All AIX code is PIC.
12041         if test "$host_cpu" = ia64; then
12042           # AIX 5 now supports IA64 processor
12043           lt_prog_compiler_static_CXX='-Bstatic'
12044         else
12045           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12046         fi
12047         ;;
12048       chorus*)
12049         case $cc_basename in
12050         cxch68*)
12051           # Green Hills C++ Compiler
12052           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12053           ;;
12054         esac
12055         ;;
12056        darwin*)
12057          # PIC is the default on this platform
12058          # Common symbols not allowed in MH_DYLIB files
12059          case $cc_basename in
12060            xlc*)
12061            lt_prog_compiler_pic_CXX='-qnocommon'
12062            lt_prog_compiler_wl_CXX='-Wl,'
12063            ;;
12064          esac
12065        ;;
12066       dgux*)
12067         case $cc_basename in
12068           ec++*)
12069             lt_prog_compiler_pic_CXX='-KPIC'
12070             ;;
12071           ghcx*)
12072             # Green Hills C++ Compiler
12073             lt_prog_compiler_pic_CXX='-pic'
12074             ;;
12075           *)
12076             ;;
12077         esac
12078         ;;
12079       freebsd* | dragonfly*)
12080         # FreeBSD uses GNU C++
12081         ;;
12082       hpux9* | hpux10* | hpux11*)
12083         case $cc_basename in
12084           CC*)
12085             lt_prog_compiler_wl_CXX='-Wl,'
12086             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12087             if test "$host_cpu" != ia64; then
12088               lt_prog_compiler_pic_CXX='+Z'
12089             fi
12090             ;;
12091           aCC*)
12092             lt_prog_compiler_wl_CXX='-Wl,'
12093             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12094             case $host_cpu in
12095             hppa*64*|ia64*)
12096               # +Z the default
12097               ;;
12098             *)
12099               lt_prog_compiler_pic_CXX='+Z'
12100               ;;
12101             esac
12102             ;;
12103           *)
12104             ;;
12105         esac
12106         ;;
12107       interix*)
12108         # This is c89, which is MS Visual C++ (no shared libs)
12109         # Anyone wants to do a port?
12110         ;;
12111       irix5* | irix6* | nonstopux*)
12112         case $cc_basename in
12113           CC*)
12114             lt_prog_compiler_wl_CXX='-Wl,'
12115             lt_prog_compiler_static_CXX='-non_shared'
12116             # CC pic flag -KPIC is the default.
12117             ;;
12118           *)
12119             ;;
12120         esac
12121         ;;
12122       linux* | k*bsd*-gnu)
12123         case $cc_basename in
12124           KCC*)
12125             # KAI C++ Compiler
12126             lt_prog_compiler_wl_CXX='--backend -Wl,'
12127             lt_prog_compiler_pic_CXX='-fPIC'
12128             ;;
12129           icpc* | ecpc*)
12130             # Intel C++
12131             lt_prog_compiler_wl_CXX='-Wl,'
12132             lt_prog_compiler_pic_CXX='-KPIC'
12133             lt_prog_compiler_static_CXX='-static'
12134             ;;
12135           pgCC*)
12136             # Portland Group C++ compiler.
12137             lt_prog_compiler_wl_CXX='-Wl,'
12138             lt_prog_compiler_pic_CXX='-fpic'
12139             lt_prog_compiler_static_CXX='-Bstatic'
12140             ;;
12141           cxx*)
12142             # Compaq C++
12143             # Make sure the PIC flag is empty.  It appears that all Alpha
12144             # Linux and Compaq Tru64 Unix objects are PIC.
12145             lt_prog_compiler_pic_CXX=
12146             lt_prog_compiler_static_CXX='-non_shared'
12147             ;;
12148           *)
12149             ;;
12150         esac
12151         ;;
12152       lynxos*)
12153         ;;
12154       m88k*)
12155         ;;
12156       mvs*)
12157         case $cc_basename in
12158           cxx*)
12159             lt_prog_compiler_pic_CXX='-W c,exportall'
12160             ;;
12161           *)
12162             ;;
12163         esac
12164         ;;
12165       netbsd* | netbsdelf*-gnu)
12166         ;;
12167       osf3* | osf4* | osf5*)
12168         case $cc_basename in
12169           KCC*)
12170             lt_prog_compiler_wl_CXX='--backend -Wl,'
12171             ;;
12172           RCC*)
12173             # Rational C++ 2.4.1
12174             lt_prog_compiler_pic_CXX='-pic'
12175             ;;
12176           cxx*)
12177             # Digital/Compaq C++
12178             lt_prog_compiler_wl_CXX='-Wl,'
12179             # Make sure the PIC flag is empty.  It appears that all Alpha
12180             # Linux and Compaq Tru64 Unix objects are PIC.
12181             lt_prog_compiler_pic_CXX=
12182             lt_prog_compiler_static_CXX='-non_shared'
12183             ;;
12184           *)
12185             ;;
12186         esac
12187         ;;
12188       psos*)
12189         ;;
12190       solaris*)
12191         case $cc_basename in
12192           CC*)
12193             # Sun C++ 4.2, 5.x and Centerline C++
12194             lt_prog_compiler_pic_CXX='-KPIC'
12195             lt_prog_compiler_static_CXX='-Bstatic'
12196             lt_prog_compiler_wl_CXX='-Qoption ld '
12197             ;;
12198           gcx*)
12199             # Green Hills C++ Compiler
12200             lt_prog_compiler_pic_CXX='-PIC'
12201             ;;
12202           *)
12203             ;;
12204         esac
12205         ;;
12206       sunos4*)
12207         case $cc_basename in
12208           CC*)
12209             # Sun C++ 4.x
12210             lt_prog_compiler_pic_CXX='-pic'
12211             lt_prog_compiler_static_CXX='-Bstatic'
12212             ;;
12213           lcc*)
12214             # Lucid
12215             lt_prog_compiler_pic_CXX='-pic'
12216             ;;
12217           *)
12218             ;;
12219         esac
12220         ;;
12221       tandem*)
12222         case $cc_basename in
12223           NCC*)
12224             # NonStop-UX NCC 3.20
12225             lt_prog_compiler_pic_CXX='-KPIC'
12226             ;;
12227           *)
12228             ;;
12229         esac
12230         ;;
12231       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12232         case $cc_basename in
12233           CC*)
12234             lt_prog_compiler_wl_CXX='-Wl,'
12235             lt_prog_compiler_pic_CXX='-KPIC'
12236             lt_prog_compiler_static_CXX='-Bstatic'
12237             ;;
12238         esac
12239         ;;
12240       vxworks*)
12241         ;;
12242       *)
12243         lt_prog_compiler_can_build_shared_CXX=no
12244         ;;
12245     esac
12246   fi
12247
12248 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12249 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12250
12251 #
12252 # Check to make sure the PIC flag actually works.
12253 #
12254 if test -n "$lt_prog_compiler_pic_CXX"; then
12255
12256 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12257 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12258 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12259   echo $ECHO_N "(cached) $ECHO_C" >&6
12260 else
12261   lt_prog_compiler_pic_works_CXX=no
12262   ac_outfile=conftest.$ac_objext
12263    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12264    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12265    # Insert the option either (1) after the last *FLAGS variable, or
12266    # (2) before a word containing "conftest.", or (3) at the end.
12267    # Note that $ac_compile itself does not contain backslashes and begins
12268    # with a dollar sign (not a hyphen), so the echo should work correctly.
12269    # The option is referenced via a variable to avoid confusing sed.
12270    lt_compile=`echo "$ac_compile" | $SED \
12271    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12272    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12273    -e 's:$: $lt_compiler_flag:'`
12274    (eval echo "\"\$as_me:12274: $lt_compile\"" >&5)
12275    (eval "$lt_compile" 2>conftest.err)
12276    ac_status=$?
12277    cat conftest.err >&5
12278    echo "$as_me:12278: \$? = $ac_status" >&5
12279    if (exit $ac_status) && test -s "$ac_outfile"; then
12280      # The compiler can only warn and ignore the option if not recognized
12281      # So say no if there are warnings other than the usual output.
12282      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12283      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12284      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12285        lt_prog_compiler_pic_works_CXX=yes
12286      fi
12287    fi
12288    $rm conftest*
12289
12290 fi
12291 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12292 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12293
12294 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12295     case $lt_prog_compiler_pic_CXX in
12296      "" | " "*) ;;
12297      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12298      esac
12299 else
12300     lt_prog_compiler_pic_CXX=
12301      lt_prog_compiler_can_build_shared_CXX=no
12302 fi
12303
12304 fi
12305 case $host_os in
12306   # For platforms which do not support PIC, -DPIC is meaningless:
12307   *djgpp*)
12308     lt_prog_compiler_pic_CXX=
12309     ;;
12310   *)
12311     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12312     ;;
12313 esac
12314
12315 #
12316 # Check to make sure the static flag actually works.
12317 #
12318 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12319 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12320 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12321 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12322   echo $ECHO_N "(cached) $ECHO_C" >&6
12323 else
12324   lt_prog_compiler_static_works_CXX=no
12325    save_LDFLAGS="$LDFLAGS"
12326    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12327    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12328    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12329      # The linker can only warn and ignore the option if not recognized
12330      # So say no if there are warnings
12331      if test -s conftest.err; then
12332        # Append any errors to the config.log.
12333        cat conftest.err 1>&5
12334        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12335        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12336        if diff conftest.exp conftest.er2 >/dev/null; then
12337          lt_prog_compiler_static_works_CXX=yes
12338        fi
12339      else
12340        lt_prog_compiler_static_works_CXX=yes
12341      fi
12342    fi
12343    $rm conftest*
12344    LDFLAGS="$save_LDFLAGS"
12345
12346 fi
12347 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12348 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12349
12350 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12351     :
12352 else
12353     lt_prog_compiler_static_CXX=
12354 fi
12355
12356
12357 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12358 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12359 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12360   echo $ECHO_N "(cached) $ECHO_C" >&6
12361 else
12362   lt_cv_prog_compiler_c_o_CXX=no
12363    $rm -r conftest 2>/dev/null
12364    mkdir conftest
12365    cd conftest
12366    mkdir out
12367    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12368
12369    lt_compiler_flag="-o out/conftest2.$ac_objext"
12370    # Insert the option either (1) after the last *FLAGS variable, or
12371    # (2) before a word containing "conftest.", or (3) at the end.
12372    # Note that $ac_compile itself does not contain backslashes and begins
12373    # with a dollar sign (not a hyphen), so the echo should work correctly.
12374    lt_compile=`echo "$ac_compile" | $SED \
12375    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12376    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12377    -e 's:$: $lt_compiler_flag:'`
12378    (eval echo "\"\$as_me:12378: $lt_compile\"" >&5)
12379    (eval "$lt_compile" 2>out/conftest.err)
12380    ac_status=$?
12381    cat out/conftest.err >&5
12382    echo "$as_me:12382: \$? = $ac_status" >&5
12383    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12384    then
12385      # The compiler can only warn and ignore the option if not recognized
12386      # So say no if there are warnings
12387      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12388      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12389      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12390        lt_cv_prog_compiler_c_o_CXX=yes
12391      fi
12392    fi
12393    chmod u+w . 2>&5
12394    $rm conftest*
12395    # SGI C++ compiler will create directory out/ii_files/ for
12396    # template instantiation
12397    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12398    $rm out/* && rmdir out
12399    cd ..
12400    rmdir conftest
12401    $rm conftest*
12402
12403 fi
12404 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12405 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12406
12407
12408 hard_links="nottested"
12409 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12410   # do not overwrite the value of need_locks provided by the user
12411   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12412 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12413   hard_links=yes
12414   $rm conftest*
12415   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12416   touch conftest.a
12417   ln conftest.a conftest.b 2>&5 || hard_links=no
12418   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12419   { echo "$as_me:$LINENO: result: $hard_links" >&5
12420 echo "${ECHO_T}$hard_links" >&6; }
12421   if test "$hard_links" = no; then
12422     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12423 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12424     need_locks=warn
12425   fi
12426 else
12427   need_locks=no
12428 fi
12429
12430 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12431 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12432
12433   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12434   case $host_os in
12435   aix4* | aix5*)
12436     # If we're using GNU nm, then we don't want the "-C" option.
12437     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12438     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12439       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12440     else
12441       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12442     fi
12443     ;;
12444   pw32*)
12445     export_symbols_cmds_CXX="$ltdll_cmds"
12446   ;;
12447   cygwin* | mingw*)
12448     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12449   ;;
12450   linux* | k*bsd*-gnu)
12451     link_all_deplibs_CXX=no
12452   ;;
12453   *)
12454     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12455   ;;
12456   esac
12457
12458 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12459 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12460 test "$ld_shlibs_CXX" = no && can_build_shared=no
12461
12462 #
12463 # Do we need to explicitly link libc?
12464 #
12465 case "x$archive_cmds_need_lc_CXX" in
12466 x|xyes)
12467   # Assume -lc should be added
12468   archive_cmds_need_lc_CXX=yes
12469
12470   if test "$enable_shared" = yes && test "$GCC" = yes; then
12471     case $archive_cmds_CXX in
12472     *'~'*)
12473       # FIXME: we may have to deal with multi-command sequences.
12474       ;;
12475     '$CC '*)
12476       # Test whether the compiler implicitly links with -lc since on some
12477       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12478       # to ld, don't add -lc before -lgcc.
12479       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12480 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12481       $rm conftest*
12482       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12483
12484       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485   (eval $ac_compile) 2>&5
12486   ac_status=$?
12487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); } 2>conftest.err; then
12489         soname=conftest
12490         lib=conftest
12491         libobjs=conftest.$ac_objext
12492         deplibs=
12493         wl=$lt_prog_compiler_wl_CXX
12494         pic_flag=$lt_prog_compiler_pic_CXX
12495         compiler_flags=-v
12496         linker_flags=-v
12497         verstring=
12498         output_objdir=.
12499         libname=conftest
12500         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12501         allow_undefined_flag_CXX=
12502         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12503   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12504   ac_status=$?
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); }
12507         then
12508           archive_cmds_need_lc_CXX=no
12509         else
12510           archive_cmds_need_lc_CXX=yes
12511         fi
12512         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12513       else
12514         cat conftest.err 1>&5
12515       fi
12516       $rm conftest*
12517       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12518 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12519       ;;
12520     esac
12521   fi
12522   ;;
12523 esac
12524
12525 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12526 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12527 library_names_spec=
12528 libname_spec='lib$name'
12529 soname_spec=
12530 shrext_cmds=".so"
12531 postinstall_cmds=
12532 postuninstall_cmds=
12533 finish_cmds=
12534 finish_eval=
12535 shlibpath_var=
12536 shlibpath_overrides_runpath=unknown
12537 version_type=none
12538 dynamic_linker="$host_os ld.so"
12539 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12540 if test "$GCC" = yes; then
12541   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12542   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12543     # if the path contains ";" then we assume it to be the separator
12544     # otherwise default to the standard path separator (i.e. ":") - it is
12545     # assumed that no part of a normal pathname contains ";" but that should
12546     # okay in the real world where ";" in dirpaths is itself problematic.
12547     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12548   else
12549     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12550   fi
12551 else
12552   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12553 fi
12554 need_lib_prefix=unknown
12555 hardcode_into_libs=no
12556
12557 # when you set need_version to no, make sure it does not cause -set_version
12558 # flags to be left without arguments
12559 need_version=unknown
12560
12561 case $host_os in
12562 aix3*)
12563   version_type=linux
12564   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12565   shlibpath_var=LIBPATH
12566
12567   # AIX 3 has no versioning support, so we append a major version to the name.
12568   soname_spec='${libname}${release}${shared_ext}$major'
12569   ;;
12570
12571 aix4* | aix5*)
12572   version_type=linux
12573   need_lib_prefix=no
12574   need_version=no
12575   hardcode_into_libs=yes
12576   if test "$host_cpu" = ia64; then
12577     # AIX 5 supports IA64
12578     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12579     shlibpath_var=LD_LIBRARY_PATH
12580   else
12581     # With GCC up to 2.95.x, collect2 would create an import file
12582     # for dependence libraries.  The import file would start with
12583     # the line `#! .'.  This would cause the generated library to
12584     # depend on `.', always an invalid library.  This was fixed in
12585     # development snapshots of GCC prior to 3.0.
12586     case $host_os in
12587       aix4 | aix4.[01] | aix4.[01].*)
12588       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12589            echo ' yes '
12590            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12591         :
12592       else
12593         can_build_shared=no
12594       fi
12595       ;;
12596     esac
12597     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12598     # soname into executable. Probably we can add versioning support to
12599     # collect2, so additional links can be useful in future.
12600     if test "$aix_use_runtimelinking" = yes; then
12601       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12602       # instead of lib<name>.a to let people know that these are not
12603       # typical AIX shared libraries.
12604       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12605     else
12606       # We preserve .a as extension for shared libraries through AIX4.2
12607       # and later when we are not doing run time linking.
12608       library_names_spec='${libname}${release}.a $libname.a'
12609       soname_spec='${libname}${release}${shared_ext}$major'
12610     fi
12611     shlibpath_var=LIBPATH
12612   fi
12613   ;;
12614
12615 amigaos*)
12616   library_names_spec='$libname.ixlibrary $libname.a'
12617   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12618   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'
12619   ;;
12620
12621 beos*)
12622   library_names_spec='${libname}${shared_ext}'
12623   dynamic_linker="$host_os ld.so"
12624   shlibpath_var=LIBRARY_PATH
12625   ;;
12626
12627 bsdi[45]*)
12628   version_type=linux
12629   need_version=no
12630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12631   soname_spec='${libname}${release}${shared_ext}$major'
12632   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12633   shlibpath_var=LD_LIBRARY_PATH
12634   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12635   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12636   # the default ld.so.conf also contains /usr/contrib/lib and
12637   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12638   # libtool to hard-code these into programs
12639   ;;
12640
12641 cygwin* | mingw* | pw32*)
12642   version_type=windows
12643   shrext_cmds=".dll"
12644   need_version=no
12645   need_lib_prefix=no
12646
12647   case $GCC,$host_os in
12648   yes,cygwin* | yes,mingw* | yes,pw32*)
12649     library_names_spec='$libname.dll.a'
12650     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12651     postinstall_cmds='base_file=`basename \${file}`~
12652       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12653       dldir=$destdir/`dirname \$dlpath`~
12654       test -d \$dldir || mkdir -p \$dldir~
12655       $install_prog $dir/$dlname \$dldir/$dlname~
12656       chmod a+x \$dldir/$dlname'
12657     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12658       dlpath=$dir/\$dldll~
12659        $rm \$dlpath'
12660     shlibpath_overrides_runpath=yes
12661
12662     case $host_os in
12663     cygwin*)
12664       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12665       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12666       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12667       ;;
12668     mingw*)
12669       # MinGW DLLs use traditional 'lib' prefix
12670       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12671       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12672       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12673         # It is most probably a Windows format PATH printed by
12674         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12675         # path with ; separators, and with drive letters. We can handle the
12676         # drive letters (cygwin fileutils understands them), so leave them,
12677         # especially as we might pass files found there to a mingw objdump,
12678         # which wouldn't understand a cygwinified path. Ahh.
12679         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12680       else
12681         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12682       fi
12683       ;;
12684     pw32*)
12685       # pw32 DLLs use 'pw' prefix rather than 'lib'
12686       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12687       ;;
12688     esac
12689     ;;
12690
12691   *)
12692     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12693     ;;
12694   esac
12695   dynamic_linker='Win32 ld.exe'
12696   # FIXME: first we should search . and the directory the executable is in
12697   shlibpath_var=PATH
12698   ;;
12699
12700 darwin* | rhapsody*)
12701   dynamic_linker="$host_os dyld"
12702   version_type=darwin
12703   need_lib_prefix=no
12704   need_version=no
12705   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12706   soname_spec='${libname}${release}${major}$shared_ext'
12707   shlibpath_overrides_runpath=yes
12708   shlibpath_var=DYLD_LIBRARY_PATH
12709   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12710   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12711   if test "$GCC" = yes; then
12712     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12713   else
12714     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12715   fi
12716   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12717   ;;
12718
12719 dgux*)
12720   version_type=linux
12721   need_lib_prefix=no
12722   need_version=no
12723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12724   soname_spec='${libname}${release}${shared_ext}$major'
12725   shlibpath_var=LD_LIBRARY_PATH
12726   ;;
12727
12728 freebsd1*)
12729   dynamic_linker=no
12730   ;;
12731
12732 freebsd* | dragonfly*)
12733   # DragonFly does not have aout.  When/if they implement a new
12734   # versioning mechanism, adjust this.
12735   if test -x /usr/bin/objformat; then
12736     objformat=`/usr/bin/objformat`
12737   else
12738     case $host_os in
12739     freebsd[123]*) objformat=aout ;;
12740     *) objformat=elf ;;
12741     esac
12742   fi
12743   version_type=freebsd-$objformat
12744   case $version_type in
12745     freebsd-elf*)
12746       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12747       need_version=no
12748       need_lib_prefix=no
12749       ;;
12750     freebsd-*)
12751       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12752       need_version=yes
12753       ;;
12754   esac
12755   shlibpath_var=LD_LIBRARY_PATH
12756   case $host_os in
12757   freebsd2*)
12758     shlibpath_overrides_runpath=yes
12759     ;;
12760   freebsd3.[01]* | freebsdelf3.[01]*)
12761     shlibpath_overrides_runpath=yes
12762     hardcode_into_libs=yes
12763     ;;
12764   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12765   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12766     shlibpath_overrides_runpath=no
12767     hardcode_into_libs=yes
12768     ;;
12769   freebsd*) # from 4.6 on
12770     shlibpath_overrides_runpath=yes
12771     hardcode_into_libs=yes
12772     ;;
12773   esac
12774   ;;
12775
12776 gnu*)
12777   version_type=linux
12778   need_lib_prefix=no
12779   need_version=no
12780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12781   soname_spec='${libname}${release}${shared_ext}$major'
12782   shlibpath_var=LD_LIBRARY_PATH
12783   hardcode_into_libs=yes
12784   ;;
12785
12786 hpux9* | hpux10* | hpux11*)
12787   # Give a soname corresponding to the major version so that dld.sl refuses to
12788   # link against other versions.
12789   version_type=sunos
12790   need_lib_prefix=no
12791   need_version=no
12792   case $host_cpu in
12793   ia64*)
12794     shrext_cmds='.so'
12795     hardcode_into_libs=yes
12796     dynamic_linker="$host_os dld.so"
12797     shlibpath_var=LD_LIBRARY_PATH
12798     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12799     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12800     soname_spec='${libname}${release}${shared_ext}$major'
12801     if test "X$HPUX_IA64_MODE" = X32; then
12802       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12803     else
12804       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12805     fi
12806     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12807     ;;
12808    hppa*64*)
12809      shrext_cmds='.sl'
12810      hardcode_into_libs=yes
12811      dynamic_linker="$host_os dld.sl"
12812      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12813      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12814      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12815      soname_spec='${libname}${release}${shared_ext}$major'
12816      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12817      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12818      ;;
12819    *)
12820     shrext_cmds='.sl'
12821     dynamic_linker="$host_os dld.sl"
12822     shlibpath_var=SHLIB_PATH
12823     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12824     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12825     soname_spec='${libname}${release}${shared_ext}$major'
12826     ;;
12827   esac
12828   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12829   postinstall_cmds='chmod 555 $lib'
12830   ;;
12831
12832 interix3*)
12833   version_type=linux
12834   need_lib_prefix=no
12835   need_version=no
12836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12837   soname_spec='${libname}${release}${shared_ext}$major'
12838   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12839   shlibpath_var=LD_LIBRARY_PATH
12840   shlibpath_overrides_runpath=no
12841   hardcode_into_libs=yes
12842   ;;
12843
12844 irix5* | irix6* | nonstopux*)
12845   case $host_os in
12846     nonstopux*) version_type=nonstopux ;;
12847     *)
12848         if test "$lt_cv_prog_gnu_ld" = yes; then
12849                 version_type=linux
12850         else
12851                 version_type=irix
12852         fi ;;
12853   esac
12854   need_lib_prefix=no
12855   need_version=no
12856   soname_spec='${libname}${release}${shared_ext}$major'
12857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12858   case $host_os in
12859   irix5* | nonstopux*)
12860     libsuff= shlibsuff=
12861     ;;
12862   *)
12863     case $LD in # libtool.m4 will add one of these switches to LD
12864     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12865       libsuff= shlibsuff= libmagic=32-bit;;
12866     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12867       libsuff=32 shlibsuff=N32 libmagic=N32;;
12868     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12869       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12870     *) libsuff= shlibsuff= libmagic=never-match;;
12871     esac
12872     ;;
12873   esac
12874   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12875   shlibpath_overrides_runpath=no
12876   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12877   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12878   hardcode_into_libs=yes
12879   ;;
12880
12881 # No shared lib support for Linux oldld, aout, or coff.
12882 linux*oldld* | linux*aout* | linux*coff*)
12883   dynamic_linker=no
12884   ;;
12885
12886 # This must be Linux ELF.
12887 linux* | k*bsd*-gnu)
12888   version_type=linux
12889   need_lib_prefix=no
12890   need_version=no
12891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12892   soname_spec='${libname}${release}${shared_ext}$major'
12893   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12894   shlibpath_var=LD_LIBRARY_PATH
12895   shlibpath_overrides_runpath=no
12896   # This implies no fast_install, which is unacceptable.
12897   # Some rework will be needed to allow for fast_install
12898   # before this can be enabled.
12899   hardcode_into_libs=yes
12900
12901   # Append ld.so.conf contents to the search path
12902   if test -f /etc/ld.so.conf; then
12903     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12904     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12905   fi
12906
12907   # We used to test for /lib/ld.so.1 and disable shared libraries on
12908   # powerpc, because MkLinux only supported shared libraries with the
12909   # GNU dynamic linker.  Since this was broken with cross compilers,
12910   # most powerpc-linux boxes support dynamic linking these days and
12911   # people can always --disable-shared, the test was removed, and we
12912   # assume the GNU/Linux dynamic linker is in use.
12913   dynamic_linker='GNU/Linux ld.so'
12914   ;;
12915
12916 netbsdelf*-gnu)
12917   version_type=linux
12918   need_lib_prefix=no
12919   need_version=no
12920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12921   soname_spec='${libname}${release}${shared_ext}$major'
12922   shlibpath_var=LD_LIBRARY_PATH
12923   shlibpath_overrides_runpath=no
12924   hardcode_into_libs=yes
12925   dynamic_linker='NetBSD ld.elf_so'
12926   ;;
12927
12928 netbsd*)
12929   version_type=sunos
12930   need_lib_prefix=no
12931   need_version=no
12932   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12933     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12934     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12935     dynamic_linker='NetBSD (a.out) ld.so'
12936   else
12937     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12938     soname_spec='${libname}${release}${shared_ext}$major'
12939     dynamic_linker='NetBSD ld.elf_so'
12940   fi
12941   shlibpath_var=LD_LIBRARY_PATH
12942   shlibpath_overrides_runpath=yes
12943   hardcode_into_libs=yes
12944   ;;
12945
12946 newsos6)
12947   version_type=linux
12948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12949   shlibpath_var=LD_LIBRARY_PATH
12950   shlibpath_overrides_runpath=yes
12951   ;;
12952
12953 nto-qnx*)
12954   version_type=linux
12955   need_lib_prefix=no
12956   need_version=no
12957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12958   soname_spec='${libname}${release}${shared_ext}$major'
12959   shlibpath_var=LD_LIBRARY_PATH
12960   shlibpath_overrides_runpath=yes
12961   ;;
12962
12963 openbsd*)
12964   version_type=sunos
12965   sys_lib_dlsearch_path_spec="/usr/lib"
12966   need_lib_prefix=no
12967   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12968   case $host_os in
12969     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12970     *)                         need_version=no  ;;
12971   esac
12972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12973   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12974   shlibpath_var=LD_LIBRARY_PATH
12975   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12976     case $host_os in
12977       openbsd2.[89] | openbsd2.[89].*)
12978         shlibpath_overrides_runpath=no
12979         ;;
12980       *)
12981         shlibpath_overrides_runpath=yes
12982         ;;
12983       esac
12984   else
12985     shlibpath_overrides_runpath=yes
12986   fi
12987   ;;
12988
12989 os2*)
12990   libname_spec='$name'
12991   shrext_cmds=".dll"
12992   need_lib_prefix=no
12993   library_names_spec='$libname${shared_ext} $libname.a'
12994   dynamic_linker='OS/2 ld.exe'
12995   shlibpath_var=LIBPATH
12996   ;;
12997
12998 osf3* | osf4* | osf5*)
12999   version_type=osf
13000   need_lib_prefix=no
13001   need_version=no
13002   soname_spec='${libname}${release}${shared_ext}$major'
13003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13004   shlibpath_var=LD_LIBRARY_PATH
13005   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13006   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13007   ;;
13008
13009 solaris*)
13010   version_type=linux
13011   need_lib_prefix=no
13012   need_version=no
13013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13014   soname_spec='${libname}${release}${shared_ext}$major'
13015   shlibpath_var=LD_LIBRARY_PATH
13016   shlibpath_overrides_runpath=yes
13017   hardcode_into_libs=yes
13018   # ldd complains unless libraries are executable
13019   postinstall_cmds='chmod +x $lib'
13020   ;;
13021
13022 sunos4*)
13023   version_type=sunos
13024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13025   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13026   shlibpath_var=LD_LIBRARY_PATH
13027   shlibpath_overrides_runpath=yes
13028   if test "$with_gnu_ld" = yes; then
13029     need_lib_prefix=no
13030   fi
13031   need_version=yes
13032   ;;
13033
13034 sysv4 | sysv4.3*)
13035   version_type=linux
13036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13037   soname_spec='${libname}${release}${shared_ext}$major'
13038   shlibpath_var=LD_LIBRARY_PATH
13039   case $host_vendor in
13040     sni)
13041       shlibpath_overrides_runpath=no
13042       need_lib_prefix=no
13043       export_dynamic_flag_spec='${wl}-Blargedynsym'
13044       runpath_var=LD_RUN_PATH
13045       ;;
13046     siemens)
13047       need_lib_prefix=no
13048       ;;
13049     motorola)
13050       need_lib_prefix=no
13051       need_version=no
13052       shlibpath_overrides_runpath=no
13053       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13054       ;;
13055   esac
13056   ;;
13057
13058 sysv4*MP*)
13059   if test -d /usr/nec ;then
13060     version_type=linux
13061     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13062     soname_spec='$libname${shared_ext}.$major'
13063     shlibpath_var=LD_LIBRARY_PATH
13064   fi
13065   ;;
13066
13067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13068   version_type=freebsd-elf
13069   need_lib_prefix=no
13070   need_version=no
13071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13072   soname_spec='${libname}${release}${shared_ext}$major'
13073   shlibpath_var=LD_LIBRARY_PATH
13074   hardcode_into_libs=yes
13075   if test "$with_gnu_ld" = yes; then
13076     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13077     shlibpath_overrides_runpath=no
13078   else
13079     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13080     shlibpath_overrides_runpath=yes
13081     case $host_os in
13082       sco3.2v5*)
13083         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13084         ;;
13085     esac
13086   fi
13087   sys_lib_dlsearch_path_spec='/usr/lib'
13088   ;;
13089
13090 uts4*)
13091   version_type=linux
13092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13093   soname_spec='${libname}${release}${shared_ext}$major'
13094   shlibpath_var=LD_LIBRARY_PATH
13095   ;;
13096
13097 *)
13098   dynamic_linker=no
13099   ;;
13100 esac
13101 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13102 echo "${ECHO_T}$dynamic_linker" >&6; }
13103 test "$dynamic_linker" = no && can_build_shared=no
13104
13105 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13106 if test "$GCC" = yes; then
13107   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13108 fi
13109
13110 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13111 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13112 hardcode_action_CXX=
13113 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13114    test -n "$runpath_var_CXX" || \
13115    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13116
13117   # We can hardcode non-existant directories.
13118   if test "$hardcode_direct_CXX" != no &&
13119      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13120      # have to relink, otherwise we might link with an installed library
13121      # when we should be linking with a yet-to-be-installed one
13122      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13123      test "$hardcode_minus_L_CXX" != no; then
13124     # Linking always hardcodes the temporary library directory.
13125     hardcode_action_CXX=relink
13126   else
13127     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13128     hardcode_action_CXX=immediate
13129   fi
13130 else
13131   # We cannot hardcode anything, or else we can only hardcode existing
13132   # directories.
13133   hardcode_action_CXX=unsupported
13134 fi
13135 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13136 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13137
13138 if test "$hardcode_action_CXX" = relink; then
13139   # Fast installation is not supported
13140   enable_fast_install=no
13141 elif test "$shlibpath_overrides_runpath" = yes ||
13142      test "$enable_shared" = no; then
13143   # Fast installation is not necessary
13144   enable_fast_install=needless
13145 fi
13146
13147
13148 # The else clause should only fire when bootstrapping the
13149 # libtool distribution, otherwise you forgot to ship ltmain.sh
13150 # with your package, and you will get complaints that there are
13151 # no rules to generate ltmain.sh.
13152 if test -f "$ltmain"; then
13153   # See if we are running on zsh, and set the options which allow our commands through
13154   # without removal of \ escapes.
13155   if test -n "${ZSH_VERSION+set}" ; then
13156     setopt NO_GLOB_SUBST
13157   fi
13158   # Now quote all the things that may contain metacharacters while being
13159   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13160   # variables and quote the copies for generation of the libtool script.
13161   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13162     SED SHELL STRIP \
13163     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13164     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13165     deplibs_check_method reload_flag reload_cmds need_locks \
13166     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13167     lt_cv_sys_global_symbol_to_c_name_address \
13168     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13169     old_postinstall_cmds old_postuninstall_cmds \
13170     compiler_CXX \
13171     CC_CXX \
13172     LD_CXX \
13173     lt_prog_compiler_wl_CXX \
13174     lt_prog_compiler_pic_CXX \
13175     lt_prog_compiler_static_CXX \
13176     lt_prog_compiler_no_builtin_flag_CXX \
13177     export_dynamic_flag_spec_CXX \
13178     thread_safe_flag_spec_CXX \
13179     whole_archive_flag_spec_CXX \
13180     enable_shared_with_static_runtimes_CXX \
13181     old_archive_cmds_CXX \
13182     old_archive_from_new_cmds_CXX \
13183     predep_objects_CXX \
13184     postdep_objects_CXX \
13185     predeps_CXX \
13186     postdeps_CXX \
13187     compiler_lib_search_path_CXX \
13188     archive_cmds_CXX \
13189     archive_expsym_cmds_CXX \
13190     postinstall_cmds_CXX \
13191     postuninstall_cmds_CXX \
13192     old_archive_from_expsyms_cmds_CXX \
13193     allow_undefined_flag_CXX \
13194     no_undefined_flag_CXX \
13195     export_symbols_cmds_CXX \
13196     hardcode_libdir_flag_spec_CXX \
13197     hardcode_libdir_flag_spec_ld_CXX \
13198     hardcode_libdir_separator_CXX \
13199     hardcode_automatic_CXX \
13200     module_cmds_CXX \
13201     module_expsym_cmds_CXX \
13202     lt_cv_prog_compiler_c_o_CXX \
13203     exclude_expsyms_CXX \
13204     include_expsyms_CXX; do
13205
13206     case $var in
13207     old_archive_cmds_CXX | \
13208     old_archive_from_new_cmds_CXX | \
13209     archive_cmds_CXX | \
13210     archive_expsym_cmds_CXX | \
13211     module_cmds_CXX | \
13212     module_expsym_cmds_CXX | \
13213     old_archive_from_expsyms_cmds_CXX | \
13214     export_symbols_cmds_CXX | \
13215     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13216     postinstall_cmds | postuninstall_cmds | \
13217     old_postinstall_cmds | old_postuninstall_cmds | \
13218     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13219       # Double-quote double-evaled strings.
13220       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13221       ;;
13222     *)
13223       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13224       ;;
13225     esac
13226   done
13227
13228   case $lt_echo in
13229   *'\$0 --fallback-echo"')
13230     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13231     ;;
13232   esac
13233
13234 cfgfile="$ofile"
13235
13236   cat <<__EOF__ >> "$cfgfile"
13237 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13238
13239 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13240
13241 # Shell to use when invoking shell scripts.
13242 SHELL=$lt_SHELL
13243
13244 # Whether or not to build shared libraries.
13245 build_libtool_libs=$enable_shared
13246
13247 # Whether or not to build static libraries.
13248 build_old_libs=$enable_static
13249
13250 # Whether or not to add -lc for building shared libraries.
13251 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13252
13253 # Whether or not to disallow shared libs when runtime libs are static
13254 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13255
13256 # Whether or not to optimize for fast installation.
13257 fast_install=$enable_fast_install
13258
13259 # The host system.
13260 host_alias=$host_alias
13261 host=$host
13262 host_os=$host_os
13263
13264 # The build system.
13265 build_alias=$build_alias
13266 build=$build
13267 build_os=$build_os
13268
13269 # An echo program that does not interpret backslashes.
13270 echo=$lt_echo
13271
13272 # The archiver.
13273 AR=$lt_AR
13274 AR_FLAGS=$lt_AR_FLAGS
13275
13276 # A C compiler.
13277 LTCC=$lt_LTCC
13278
13279 # LTCC compiler flags.
13280 LTCFLAGS=$lt_LTCFLAGS
13281
13282 # A language-specific compiler.
13283 CC=$lt_compiler_CXX
13284
13285 # Is the compiler the GNU C compiler?
13286 with_gcc=$GCC_CXX
13287
13288 # An ERE matcher.
13289 EGREP=$lt_EGREP
13290
13291 # The linker used to build libraries.
13292 LD=$lt_LD_CXX
13293
13294 # Whether we need hard or soft links.
13295 LN_S=$lt_LN_S
13296
13297 # A BSD-compatible nm program.
13298 NM=$lt_NM
13299
13300 # A symbol stripping program
13301 STRIP=$lt_STRIP
13302
13303 # Used to examine libraries when file_magic_cmd begins "file"
13304 MAGIC_CMD=$MAGIC_CMD
13305
13306 # Used on cygwin: DLL creation program.
13307 DLLTOOL="$DLLTOOL"
13308
13309 # Used on cygwin: object dumper.
13310 OBJDUMP="$OBJDUMP"
13311
13312 # Used on cygwin: assembler.
13313 AS="$AS"
13314
13315 # The name of the directory that contains temporary libtool files.
13316 objdir=$objdir
13317
13318 # How to create reloadable object files.
13319 reload_flag=$lt_reload_flag
13320 reload_cmds=$lt_reload_cmds
13321
13322 # How to pass a linker flag through the compiler.
13323 wl=$lt_lt_prog_compiler_wl_CXX
13324
13325 # Object file suffix (normally "o").
13326 objext="$ac_objext"
13327
13328 # Old archive suffix (normally "a").
13329 libext="$libext"
13330
13331 # Shared library suffix (normally ".so").
13332 shrext_cmds='$shrext_cmds'
13333
13334 # Executable file suffix (normally "").
13335 exeext="$exeext"
13336
13337 # Additional compiler flags for building library objects.
13338 pic_flag=$lt_lt_prog_compiler_pic_CXX
13339 pic_mode=$pic_mode
13340
13341 # What is the maximum length of a command?
13342 max_cmd_len=$lt_cv_sys_max_cmd_len
13343
13344 # Does compiler simultaneously support -c and -o options?
13345 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13346
13347 # Must we lock files when doing compilation?
13348 need_locks=$lt_need_locks
13349
13350 # Do we need the lib prefix for modules?
13351 need_lib_prefix=$need_lib_prefix
13352
13353 # Do we need a version for libraries?
13354 need_version=$need_version
13355
13356 # Whether dlopen is supported.
13357 dlopen_support=$enable_dlopen
13358
13359 # Whether dlopen of programs is supported.
13360 dlopen_self=$enable_dlopen_self
13361
13362 # Whether dlopen of statically linked programs is supported.
13363 dlopen_self_static=$enable_dlopen_self_static
13364
13365 # Compiler flag to prevent dynamic linking.
13366 link_static_flag=$lt_lt_prog_compiler_static_CXX
13367
13368 # Compiler flag to turn off builtin functions.
13369 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13370
13371 # Compiler flag to allow reflexive dlopens.
13372 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13373
13374 # Compiler flag to generate shared objects directly from archives.
13375 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13376
13377 # Compiler flag to generate thread-safe objects.
13378 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13379
13380 # Library versioning type.
13381 version_type=$version_type
13382
13383 # Format of library name prefix.
13384 libname_spec=$lt_libname_spec
13385
13386 # List of archive names.  First name is the real one, the rest are links.
13387 # The last name is the one that the linker finds with -lNAME.
13388 library_names_spec=$lt_library_names_spec
13389
13390 # The coded name of the library, if different from the real name.
13391 soname_spec=$lt_soname_spec
13392
13393 # Commands used to build and install an old-style archive.
13394 RANLIB=$lt_RANLIB
13395 old_archive_cmds=$lt_old_archive_cmds_CXX
13396 old_postinstall_cmds=$lt_old_postinstall_cmds
13397 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13398
13399 # Create an old-style archive from a shared archive.
13400 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13401
13402 # Create a temporary old-style archive to link instead of a shared archive.
13403 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13404
13405 # Commands used to build and install a shared archive.
13406 archive_cmds=$lt_archive_cmds_CXX
13407 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13408 postinstall_cmds=$lt_postinstall_cmds
13409 postuninstall_cmds=$lt_postuninstall_cmds
13410
13411 # Commands used to build a loadable module (assumed same as above if empty)
13412 module_cmds=$lt_module_cmds_CXX
13413 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13414
13415 # Commands to strip libraries.
13416 old_striplib=$lt_old_striplib
13417 striplib=$lt_striplib
13418
13419 # Dependencies to place before the objects being linked to create a
13420 # shared library.
13421 predep_objects=$lt_predep_objects_CXX
13422
13423 # Dependencies to place after the objects being linked to create a
13424 # shared library.
13425 postdep_objects=$lt_postdep_objects_CXX
13426
13427 # Dependencies to place before the objects being linked to create a
13428 # shared library.
13429 predeps=$lt_predeps_CXX
13430
13431 # Dependencies to place after the objects being linked to create a
13432 # shared library.
13433 postdeps=$lt_postdeps_CXX
13434
13435 # The library search path used internally by the compiler when linking
13436 # a shared library.
13437 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13438
13439 # Method to check whether dependent libraries are shared objects.
13440 deplibs_check_method=$lt_deplibs_check_method
13441
13442 # Command to use when deplibs_check_method == file_magic.
13443 file_magic_cmd=$lt_file_magic_cmd
13444
13445 # Flag that allows shared libraries with undefined symbols to be built.
13446 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13447
13448 # Flag that forces no undefined symbols.
13449 no_undefined_flag=$lt_no_undefined_flag_CXX
13450
13451 # Commands used to finish a libtool library installation in a directory.
13452 finish_cmds=$lt_finish_cmds
13453
13454 # Same as above, but a single script fragment to be evaled but not shown.
13455 finish_eval=$lt_finish_eval
13456
13457 # Take the output of nm and produce a listing of raw symbols and C names.
13458 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13459
13460 # Transform the output of nm in a proper C declaration
13461 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13462
13463 # Transform the output of nm in a C name address pair
13464 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13465
13466 # This is the shared library runtime path variable.
13467 runpath_var=$runpath_var
13468
13469 # This is the shared library path variable.
13470 shlibpath_var=$shlibpath_var
13471
13472 # Is shlibpath searched before the hard-coded library search path?
13473 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13474
13475 # How to hardcode a shared library path into an executable.
13476 hardcode_action=$hardcode_action_CXX
13477
13478 # Whether we should hardcode library paths into libraries.
13479 hardcode_into_libs=$hardcode_into_libs
13480
13481 # Flag to hardcode \$libdir into a binary during linking.
13482 # This must work even if \$libdir does not exist.
13483 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13484
13485 # If ld is used when linking, flag to hardcode \$libdir into
13486 # a binary during linking. This must work even if \$libdir does
13487 # not exist.
13488 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13489
13490 # Whether we need a single -rpath flag with a separated argument.
13491 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13492
13493 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13494 # resulting binary.
13495 hardcode_direct=$hardcode_direct_CXX
13496
13497 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13498 # resulting binary.
13499 hardcode_minus_L=$hardcode_minus_L_CXX
13500
13501 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13502 # the resulting binary.
13503 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13504
13505 # Set to yes if building a shared library automatically hardcodes DIR into the library
13506 # and all subsequent libraries and executables linked against it.
13507 hardcode_automatic=$hardcode_automatic_CXX
13508
13509 # Variables whose values should be saved in libtool wrapper scripts and
13510 # restored at relink time.
13511 variables_saved_for_relink="$variables_saved_for_relink"
13512
13513 # Whether libtool must link a program against all its dependency libraries.
13514 link_all_deplibs=$link_all_deplibs_CXX
13515
13516 # Compile-time system search path for libraries
13517 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13518
13519 # Run-time system search path for libraries
13520 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13521
13522 # Fix the shell variable \$srcfile for the compiler.
13523 fix_srcfile_path="$fix_srcfile_path_CXX"
13524
13525 # Set to yes if exported symbols are required.
13526 always_export_symbols=$always_export_symbols_CXX
13527
13528 # The commands to list exported symbols.
13529 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13530
13531 # The commands to extract the exported symbol list from a shared archive.
13532 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13533
13534 # Symbols that should not be listed in the preloaded symbols.
13535 exclude_expsyms=$lt_exclude_expsyms_CXX
13536
13537 # Symbols that must always be exported.
13538 include_expsyms=$lt_include_expsyms_CXX
13539
13540 # ### END LIBTOOL TAG CONFIG: $tagname
13541
13542 __EOF__
13543
13544
13545 else
13546   # If there is no Makefile yet, we rely on a make rule to execute
13547   # `config.status --recheck' to rerun these tests and create the
13548   # libtool script then.
13549   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13550   if test -f "$ltmain_in"; then
13551     test -f Makefile && make "$ltmain"
13552   fi
13553 fi
13554
13555
13556 ac_ext=c
13557 ac_cpp='$CPP $CPPFLAGS'
13558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13561
13562 CC=$lt_save_CC
13563 LDCXX=$LD
13564 LD=$lt_save_LD
13565 GCC=$lt_save_GCC
13566 with_gnu_ldcxx=$with_gnu_ld
13567 with_gnu_ld=$lt_save_with_gnu_ld
13568 lt_cv_path_LDCXX=$lt_cv_path_LD
13569 lt_cv_path_LD=$lt_save_path_LD
13570 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13571 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13572
13573         else
13574           tagname=""
13575         fi
13576         ;;
13577
13578       F77)
13579         if test -n "$F77" && test "X$F77" != "Xno"; then
13580
13581 ac_ext=f
13582 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13583 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13584 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13585
13586
13587 archive_cmds_need_lc_F77=no
13588 allow_undefined_flag_F77=
13589 always_export_symbols_F77=no
13590 archive_expsym_cmds_F77=
13591 export_dynamic_flag_spec_F77=
13592 hardcode_direct_F77=no
13593 hardcode_libdir_flag_spec_F77=
13594 hardcode_libdir_flag_spec_ld_F77=
13595 hardcode_libdir_separator_F77=
13596 hardcode_minus_L_F77=no
13597 hardcode_automatic_F77=no
13598 module_cmds_F77=
13599 module_expsym_cmds_F77=
13600 link_all_deplibs_F77=unknown
13601 old_archive_cmds_F77=$old_archive_cmds
13602 no_undefined_flag_F77=
13603 whole_archive_flag_spec_F77=
13604 enable_shared_with_static_runtimes_F77=no
13605
13606 # Source file extension for f77 test sources.
13607 ac_ext=f
13608
13609 # Object file extension for compiled f77 test sources.
13610 objext=o
13611 objext_F77=$objext
13612
13613 # Code to be used in simple compile tests
13614 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13615
13616 # Code to be used in simple link tests
13617 lt_simple_link_test_code="      program t\n      end\n"
13618
13619 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13620
13621 # If no C compiler was specified, use CC.
13622 LTCC=${LTCC-"$CC"}
13623
13624 # If no C compiler flags were specified, use CFLAGS.
13625 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13626
13627 # Allow CC to be a program name with arguments.
13628 compiler=$CC
13629
13630
13631 # save warnings/boilerplate of simple test code
13632 ac_outfile=conftest.$ac_objext
13633 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13634 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13635 _lt_compiler_boilerplate=`cat conftest.err`
13636 $rm conftest*
13637
13638 ac_outfile=conftest.$ac_objext
13639 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13640 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13641 _lt_linker_boilerplate=`cat conftest.err`
13642 $rm conftest*
13643
13644
13645 # Allow CC to be a program name with arguments.
13646 lt_save_CC="$CC"
13647 CC=${F77-"f77"}
13648 compiler=$CC
13649 compiler_F77=$CC
13650 for cc_temp in $compiler""; do
13651   case $cc_temp in
13652     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13653     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13654     \-*) ;;
13655     *) break;;
13656   esac
13657 done
13658 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13659
13660
13661 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13662 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13663 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13664 echo "${ECHO_T}$can_build_shared" >&6; }
13665
13666 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13667 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13668 test "$can_build_shared" = "no" && enable_shared=no
13669
13670 # On AIX, shared libraries and static libraries use the same namespace, and
13671 # are all built from PIC.
13672 case $host_os in
13673 aix3*)
13674   test "$enable_shared" = yes && enable_static=no
13675   if test -n "$RANLIB"; then
13676     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13677     postinstall_cmds='$RANLIB $lib'
13678   fi
13679   ;;
13680 aix4* | aix5*)
13681   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13682     test "$enable_shared" = yes && enable_static=no
13683   fi
13684   ;;
13685 esac
13686 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13687 echo "${ECHO_T}$enable_shared" >&6; }
13688
13689 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13690 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13691 # Make sure either enable_shared or enable_static is yes.
13692 test "$enable_shared" = yes || enable_static=yes
13693 { echo "$as_me:$LINENO: result: $enable_static" >&5
13694 echo "${ECHO_T}$enable_static" >&6; }
13695
13696 GCC_F77="$G77"
13697 LD_F77="$LD"
13698
13699 lt_prog_compiler_wl_F77=
13700 lt_prog_compiler_pic_F77=
13701 lt_prog_compiler_static_F77=
13702
13703 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13704 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13705
13706   if test "$GCC" = yes; then
13707     lt_prog_compiler_wl_F77='-Wl,'
13708     lt_prog_compiler_static_F77='-static'
13709
13710     case $host_os in
13711       aix*)
13712       # All AIX code is PIC.
13713       if test "$host_cpu" = ia64; then
13714         # AIX 5 now supports IA64 processor
13715         lt_prog_compiler_static_F77='-Bstatic'
13716       fi
13717       ;;
13718
13719     amigaos*)
13720       # FIXME: we need at least 68020 code to build shared libraries, but
13721       # adding the `-m68020' flag to GCC prevents building anything better,
13722       # like `-m68040'.
13723       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13724       ;;
13725
13726     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13727       # PIC is the default for these OSes.
13728       ;;
13729
13730     mingw* | pw32* | os2*)
13731       # This hack is so that the source file can tell whether it is being
13732       # built for inclusion in a dll (and should export symbols for example).
13733       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13734       ;;
13735
13736     darwin* | rhapsody*)
13737       # PIC is the default on this platform
13738       # Common symbols not allowed in MH_DYLIB files
13739       lt_prog_compiler_pic_F77='-fno-common'
13740       ;;
13741
13742     interix3*)
13743       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13744       # Instead, we relocate shared libraries at runtime.
13745       ;;
13746
13747     msdosdjgpp*)
13748       # Just because we use GCC doesn't mean we suddenly get shared libraries
13749       # on systems that don't support them.
13750       lt_prog_compiler_can_build_shared_F77=no
13751       enable_shared=no
13752       ;;
13753
13754     sysv4*MP*)
13755       if test -d /usr/nec; then
13756         lt_prog_compiler_pic_F77=-Kconform_pic
13757       fi
13758       ;;
13759
13760     hpux*)
13761       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13762       # not for PA HP-UX.
13763       case $host_cpu in
13764       hppa*64*|ia64*)
13765         # +Z the default
13766         ;;
13767       *)
13768         lt_prog_compiler_pic_F77='-fPIC'
13769         ;;
13770       esac
13771       ;;
13772
13773     *)
13774       lt_prog_compiler_pic_F77='-fPIC'
13775       ;;
13776     esac
13777   else
13778     # PORTME Check for flag to pass linker flags through the system compiler.
13779     case $host_os in
13780     aix*)
13781       lt_prog_compiler_wl_F77='-Wl,'
13782       if test "$host_cpu" = ia64; then
13783         # AIX 5 now supports IA64 processor
13784         lt_prog_compiler_static_F77='-Bstatic'
13785       else
13786         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13787       fi
13788       ;;
13789       darwin*)
13790         # PIC is the default on this platform
13791         # Common symbols not allowed in MH_DYLIB files
13792        case $cc_basename in
13793          xlc*)
13794          lt_prog_compiler_pic_F77='-qnocommon'
13795          lt_prog_compiler_wl_F77='-Wl,'
13796          ;;
13797        esac
13798        ;;
13799
13800     mingw* | pw32* | os2*)
13801       # This hack is so that the source file can tell whether it is being
13802       # built for inclusion in a dll (and should export symbols for example).
13803       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13804       ;;
13805
13806     hpux9* | hpux10* | hpux11*)
13807       lt_prog_compiler_wl_F77='-Wl,'
13808       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13809       # not for PA HP-UX.
13810       case $host_cpu in
13811       hppa*64*|ia64*)
13812         # +Z the default
13813         ;;
13814       *)
13815         lt_prog_compiler_pic_F77='+Z'
13816         ;;
13817       esac
13818       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13819       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13820       ;;
13821
13822     irix5* | irix6* | nonstopux*)
13823       lt_prog_compiler_wl_F77='-Wl,'
13824       # PIC (with -KPIC) is the default.
13825       lt_prog_compiler_static_F77='-non_shared'
13826       ;;
13827
13828     newsos6)
13829       lt_prog_compiler_pic_F77='-KPIC'
13830       lt_prog_compiler_static_F77='-Bstatic'
13831       ;;
13832
13833     linux* | k*bsd*-gnu)
13834       case $cc_basename in
13835       icc* | ecc*)
13836         lt_prog_compiler_wl_F77='-Wl,'
13837         lt_prog_compiler_pic_F77='-KPIC'
13838         lt_prog_compiler_static_F77='-static'
13839         ;;
13840       pgcc* | pgf77* | pgf90* | pgf95*)
13841         # Portland Group compilers (*not* the Pentium gcc compiler,
13842         # which looks to be a dead project)
13843         lt_prog_compiler_wl_F77='-Wl,'
13844         lt_prog_compiler_pic_F77='-fpic'
13845         lt_prog_compiler_static_F77='-Bstatic'
13846         ;;
13847       ccc*)
13848         lt_prog_compiler_wl_F77='-Wl,'
13849         # All Alpha code is PIC.
13850         lt_prog_compiler_static_F77='-non_shared'
13851         ;;
13852       esac
13853       ;;
13854
13855     osf3* | osf4* | osf5*)
13856       lt_prog_compiler_wl_F77='-Wl,'
13857       # All OSF/1 code is PIC.
13858       lt_prog_compiler_static_F77='-non_shared'
13859       ;;
13860
13861     solaris*)
13862       lt_prog_compiler_pic_F77='-KPIC'
13863       lt_prog_compiler_static_F77='-Bstatic'
13864       case $cc_basename in
13865       f77* | f90* | f95*)
13866         lt_prog_compiler_wl_F77='-Qoption ld ';;
13867       *)
13868         lt_prog_compiler_wl_F77='-Wl,';;
13869       esac
13870       ;;
13871
13872     sunos4*)
13873       lt_prog_compiler_wl_F77='-Qoption ld '
13874       lt_prog_compiler_pic_F77='-PIC'
13875       lt_prog_compiler_static_F77='-Bstatic'
13876       ;;
13877
13878     sysv4 | sysv4.2uw2* | sysv4.3*)
13879       lt_prog_compiler_wl_F77='-Wl,'
13880       lt_prog_compiler_pic_F77='-KPIC'
13881       lt_prog_compiler_static_F77='-Bstatic'
13882       ;;
13883
13884     sysv4*MP*)
13885       if test -d /usr/nec ;then
13886         lt_prog_compiler_pic_F77='-Kconform_pic'
13887         lt_prog_compiler_static_F77='-Bstatic'
13888       fi
13889       ;;
13890
13891     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13892       lt_prog_compiler_wl_F77='-Wl,'
13893       lt_prog_compiler_pic_F77='-KPIC'
13894       lt_prog_compiler_static_F77='-Bstatic'
13895       ;;
13896
13897     unicos*)
13898       lt_prog_compiler_wl_F77='-Wl,'
13899       lt_prog_compiler_can_build_shared_F77=no
13900       ;;
13901
13902     uts4*)
13903       lt_prog_compiler_pic_F77='-pic'
13904       lt_prog_compiler_static_F77='-Bstatic'
13905       ;;
13906
13907     *)
13908       lt_prog_compiler_can_build_shared_F77=no
13909       ;;
13910     esac
13911   fi
13912
13913 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13914 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13915
13916 #
13917 # Check to make sure the PIC flag actually works.
13918 #
13919 if test -n "$lt_prog_compiler_pic_F77"; then
13920
13921 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13922 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13923 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13924   echo $ECHO_N "(cached) $ECHO_C" >&6
13925 else
13926   lt_prog_compiler_pic_works_F77=no
13927   ac_outfile=conftest.$ac_objext
13928    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13929    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13930    # Insert the option either (1) after the last *FLAGS variable, or
13931    # (2) before a word containing "conftest.", or (3) at the end.
13932    # Note that $ac_compile itself does not contain backslashes and begins
13933    # with a dollar sign (not a hyphen), so the echo should work correctly.
13934    # The option is referenced via a variable to avoid confusing sed.
13935    lt_compile=`echo "$ac_compile" | $SED \
13936    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13937    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13938    -e 's:$: $lt_compiler_flag:'`
13939    (eval echo "\"\$as_me:13939: $lt_compile\"" >&5)
13940    (eval "$lt_compile" 2>conftest.err)
13941    ac_status=$?
13942    cat conftest.err >&5
13943    echo "$as_me:13943: \$? = $ac_status" >&5
13944    if (exit $ac_status) && test -s "$ac_outfile"; then
13945      # The compiler can only warn and ignore the option if not recognized
13946      # So say no if there are warnings other than the usual output.
13947      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13948      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13949      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13950        lt_prog_compiler_pic_works_F77=yes
13951      fi
13952    fi
13953    $rm conftest*
13954
13955 fi
13956 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13957 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13958
13959 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13960     case $lt_prog_compiler_pic_F77 in
13961      "" | " "*) ;;
13962      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13963      esac
13964 else
13965     lt_prog_compiler_pic_F77=
13966      lt_prog_compiler_can_build_shared_F77=no
13967 fi
13968
13969 fi
13970 case $host_os in
13971   # For platforms which do not support PIC, -DPIC is meaningless:
13972   *djgpp*)
13973     lt_prog_compiler_pic_F77=
13974     ;;
13975   *)
13976     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13977     ;;
13978 esac
13979
13980 #
13981 # Check to make sure the static flag actually works.
13982 #
13983 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13984 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13985 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13986 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13987   echo $ECHO_N "(cached) $ECHO_C" >&6
13988 else
13989   lt_prog_compiler_static_works_F77=no
13990    save_LDFLAGS="$LDFLAGS"
13991    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13992    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13993    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13994      # The linker can only warn and ignore the option if not recognized
13995      # So say no if there are warnings
13996      if test -s conftest.err; then
13997        # Append any errors to the config.log.
13998        cat conftest.err 1>&5
13999        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14000        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14001        if diff conftest.exp conftest.er2 >/dev/null; then
14002          lt_prog_compiler_static_works_F77=yes
14003        fi
14004      else
14005        lt_prog_compiler_static_works_F77=yes
14006      fi
14007    fi
14008    $rm conftest*
14009    LDFLAGS="$save_LDFLAGS"
14010
14011 fi
14012 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14013 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14014
14015 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14016     :
14017 else
14018     lt_prog_compiler_static_F77=
14019 fi
14020
14021
14022 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14023 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14024 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14025   echo $ECHO_N "(cached) $ECHO_C" >&6
14026 else
14027   lt_cv_prog_compiler_c_o_F77=no
14028    $rm -r conftest 2>/dev/null
14029    mkdir conftest
14030    cd conftest
14031    mkdir out
14032    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14033
14034    lt_compiler_flag="-o out/conftest2.$ac_objext"
14035    # Insert the option either (1) after the last *FLAGS variable, or
14036    # (2) before a word containing "conftest.", or (3) at the end.
14037    # Note that $ac_compile itself does not contain backslashes and begins
14038    # with a dollar sign (not a hyphen), so the echo should work correctly.
14039    lt_compile=`echo "$ac_compile" | $SED \
14040    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14041    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14042    -e 's:$: $lt_compiler_flag:'`
14043    (eval echo "\"\$as_me:14043: $lt_compile\"" >&5)
14044    (eval "$lt_compile" 2>out/conftest.err)
14045    ac_status=$?
14046    cat out/conftest.err >&5
14047    echo "$as_me:14047: \$? = $ac_status" >&5
14048    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14049    then
14050      # The compiler can only warn and ignore the option if not recognized
14051      # So say no if there are warnings
14052      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14053      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14054      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14055        lt_cv_prog_compiler_c_o_F77=yes
14056      fi
14057    fi
14058    chmod u+w . 2>&5
14059    $rm conftest*
14060    # SGI C++ compiler will create directory out/ii_files/ for
14061    # template instantiation
14062    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14063    $rm out/* && rmdir out
14064    cd ..
14065    rmdir conftest
14066    $rm conftest*
14067
14068 fi
14069 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14070 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14071
14072
14073 hard_links="nottested"
14074 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14075   # do not overwrite the value of need_locks provided by the user
14076   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14077 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14078   hard_links=yes
14079   $rm conftest*
14080   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14081   touch conftest.a
14082   ln conftest.a conftest.b 2>&5 || hard_links=no
14083   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14084   { echo "$as_me:$LINENO: result: $hard_links" >&5
14085 echo "${ECHO_T}$hard_links" >&6; }
14086   if test "$hard_links" = no; then
14087     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14088 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14089     need_locks=warn
14090   fi
14091 else
14092   need_locks=no
14093 fi
14094
14095 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14096 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14097
14098   runpath_var=
14099   allow_undefined_flag_F77=
14100   enable_shared_with_static_runtimes_F77=no
14101   archive_cmds_F77=
14102   archive_expsym_cmds_F77=
14103   old_archive_From_new_cmds_F77=
14104   old_archive_from_expsyms_cmds_F77=
14105   export_dynamic_flag_spec_F77=
14106   whole_archive_flag_spec_F77=
14107   thread_safe_flag_spec_F77=
14108   hardcode_libdir_flag_spec_F77=
14109   hardcode_libdir_flag_spec_ld_F77=
14110   hardcode_libdir_separator_F77=
14111   hardcode_direct_F77=no
14112   hardcode_minus_L_F77=no
14113   hardcode_shlibpath_var_F77=unsupported
14114   link_all_deplibs_F77=unknown
14115   hardcode_automatic_F77=no
14116   module_cmds_F77=
14117   module_expsym_cmds_F77=
14118   always_export_symbols_F77=no
14119   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14120   # include_expsyms should be a list of space-separated symbols to be *always*
14121   # included in the symbol list
14122   include_expsyms_F77=
14123   # exclude_expsyms can be an extended regexp of symbols to exclude
14124   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14125   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14126   # as well as any symbol that contains `d'.
14127   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14128   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14129   # platforms (ab)use it in PIC code, but their linkers get confused if
14130   # the symbol is explicitly referenced.  Since portable code cannot
14131   # rely on this symbol name, it's probably fine to never include it in
14132   # preloaded symbol tables.
14133   extract_expsyms_cmds=
14134   # Just being paranoid about ensuring that cc_basename is set.
14135   for cc_temp in $compiler""; do
14136   case $cc_temp in
14137     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14138     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14139     \-*) ;;
14140     *) break;;
14141   esac
14142 done
14143 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14144
14145   case $host_os in
14146   cygwin* | mingw* | pw32*)
14147     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14148     # When not using gcc, we currently assume that we are using
14149     # Microsoft Visual C++.
14150     if test "$GCC" != yes; then
14151       with_gnu_ld=no
14152     fi
14153     ;;
14154   interix*)
14155     # we just hope/assume this is gcc and not c89 (= MSVC++)
14156     with_gnu_ld=yes
14157     ;;
14158   openbsd*)
14159     with_gnu_ld=no
14160     ;;
14161   esac
14162
14163   ld_shlibs_F77=yes
14164   if test "$with_gnu_ld" = yes; then
14165     # If archive_cmds runs LD, not CC, wlarc should be empty
14166     wlarc='${wl}'
14167
14168     # Set some defaults for GNU ld with shared library support. These
14169     # are reset later if shared libraries are not supported. Putting them
14170     # here allows them to be overridden if necessary.
14171     runpath_var=LD_RUN_PATH
14172     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14173     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14174     # ancient GNU ld didn't support --whole-archive et. al.
14175     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14176         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14177       else
14178         whole_archive_flag_spec_F77=
14179     fi
14180     supports_anon_versioning=no
14181     case `$LD -v 2>/dev/null` in
14182       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14183       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14184       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14185       *\ 2.11.*) ;; # other 2.11 versions
14186       *) supports_anon_versioning=yes ;;
14187     esac
14188
14189     # See if GNU ld supports shared libraries.
14190     case $host_os in
14191     aix3* | aix4* | aix5*)
14192       # On AIX/PPC, the GNU linker is very broken
14193       if test "$host_cpu" != ia64; then
14194         ld_shlibs_F77=no
14195         cat <<EOF 1>&2
14196
14197 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14198 *** to be unable to reliably create shared libraries on AIX.
14199 *** Therefore, libtool is disabling shared libraries support.  If you
14200 *** really care for shared libraries, you may want to modify your PATH
14201 *** so that a non-GNU linker is found, and then restart.
14202
14203 EOF
14204       fi
14205       ;;
14206
14207     amigaos*)
14208       archive_cmds_F77='$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)'
14209       hardcode_libdir_flag_spec_F77='-L$libdir'
14210       hardcode_minus_L_F77=yes
14211
14212       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14213       # that the semantics of dynamic libraries on AmigaOS, at least up
14214       # to version 4, is to share data among multiple programs linked
14215       # with the same dynamic library.  Since this doesn't match the
14216       # behavior of shared libraries on other platforms, we can't use
14217       # them.
14218       ld_shlibs_F77=no
14219       ;;
14220
14221     beos*)
14222       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14223         allow_undefined_flag_F77=unsupported
14224         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14225         # support --undefined.  This deserves some investigation.  FIXME
14226         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14227       else
14228         ld_shlibs_F77=no
14229       fi
14230       ;;
14231
14232     cygwin* | mingw* | pw32*)
14233       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14234       # as there is no search path for DLLs.
14235       hardcode_libdir_flag_spec_F77='-L$libdir'
14236       allow_undefined_flag_F77=unsupported
14237       always_export_symbols_F77=no
14238       enable_shared_with_static_runtimes_F77=yes
14239       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14240
14241       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14242         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14243         # If the export-symbols file already is a .def file (1st line
14244         # is EXPORTS), use it as is; otherwise, prepend...
14245         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14246           cp $export_symbols $output_objdir/$soname.def;
14247         else
14248           echo EXPORTS > $output_objdir/$soname.def;
14249           cat $export_symbols >> $output_objdir/$soname.def;
14250         fi~
14251         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14252       else
14253         ld_shlibs_F77=no
14254       fi
14255       ;;
14256
14257     interix3*)
14258       hardcode_direct_F77=no
14259       hardcode_shlibpath_var_F77=no
14260       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14261       export_dynamic_flag_spec_F77='${wl}-E'
14262       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14263       # Instead, shared libraries are loaded at an image base (0x10000000 by
14264       # default) and relocated if they conflict, which is a slow very memory
14265       # consuming and fragmenting process.  To avoid this, we pick a random,
14266       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14267       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14268       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14269       archive_expsym_cmds_F77='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'
14270       ;;
14271
14272     linux* | k*bsd*-gnu)
14273       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14274         tmp_addflag=
14275         case $cc_basename,$host_cpu in
14276         pgcc*)                          # Portland Group C compiler
14277           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14278           tmp_addflag=' $pic_flag'
14279           ;;
14280         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14281           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14282           tmp_addflag=' $pic_flag -Mnomain' ;;
14283         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14284           tmp_addflag=' -i_dynamic' ;;
14285         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14286           tmp_addflag=' -i_dynamic -nofor_main' ;;
14287         ifc* | ifort*)                  # Intel Fortran compiler
14288           tmp_addflag=' -nofor_main' ;;
14289         esac
14290         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14291
14292         if test $supports_anon_versioning = yes; then
14293           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14294   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14295   $echo "local: *; };" >> $output_objdir/$libname.ver~
14296           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14297         fi
14298         link_all_deplibs_F77=no
14299       else
14300         ld_shlibs_F77=no
14301       fi
14302       ;;
14303
14304     netbsd* | netbsdelf*-gnu)
14305       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14306         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14307         wlarc=
14308       else
14309         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14310         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14311       fi
14312       ;;
14313
14314     solaris*)
14315       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14316         ld_shlibs_F77=no
14317         cat <<EOF 1>&2
14318
14319 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14320 *** create shared libraries on Solaris systems.  Therefore, libtool
14321 *** is disabling shared libraries support.  We urge you to upgrade GNU
14322 *** binutils to release 2.9.1 or newer.  Another option is to modify
14323 *** your PATH or compiler configuration so that the native linker is
14324 *** used, and then restart.
14325
14326 EOF
14327       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14328         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14329         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14330       else
14331         ld_shlibs_F77=no
14332       fi
14333       ;;
14334
14335     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14336       case `$LD -v 2>&1` in
14337         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14338         ld_shlibs_F77=no
14339         cat <<_LT_EOF 1>&2
14340
14341 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14342 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14343 *** is disabling shared libraries support.  We urge you to upgrade GNU
14344 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14345 *** your PATH or compiler configuration so that the native linker is
14346 *** used, and then restart.
14347
14348 _LT_EOF
14349         ;;
14350         *)
14351           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14352             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14353             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14354             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14355           else
14356             ld_shlibs_F77=no
14357           fi
14358         ;;
14359       esac
14360       ;;
14361
14362     sunos4*)
14363       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14364       wlarc=
14365       hardcode_direct_F77=yes
14366       hardcode_shlibpath_var_F77=no
14367       ;;
14368
14369     *)
14370       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14371         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14372         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14373       else
14374         ld_shlibs_F77=no
14375       fi
14376       ;;
14377     esac
14378
14379     if test "$ld_shlibs_F77" = no; then
14380       runpath_var=
14381       hardcode_libdir_flag_spec_F77=
14382       export_dynamic_flag_spec_F77=
14383       whole_archive_flag_spec_F77=
14384     fi
14385   else
14386     # PORTME fill in a description of your system's linker (not GNU ld)
14387     case $host_os in
14388     aix3*)
14389       allow_undefined_flag_F77=unsupported
14390       always_export_symbols_F77=yes
14391       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14392       # Note: this linker hardcodes the directories in LIBPATH if there
14393       # are no directories specified by -L.
14394       hardcode_minus_L_F77=yes
14395       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14396         # Neither direct hardcoding nor static linking is supported with a
14397         # broken collect2.
14398         hardcode_direct_F77=unsupported
14399       fi
14400       ;;
14401
14402     aix4* | aix5*)
14403       if test "$host_cpu" = ia64; then
14404         # On IA64, the linker does run time linking by default, so we don't
14405         # have to do anything special.
14406         aix_use_runtimelinking=no
14407         exp_sym_flag='-Bexport'
14408         no_entry_flag=""
14409       else
14410         # If we're using GNU nm, then we don't want the "-C" option.
14411         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14412         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14413           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14414         else
14415           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14416         fi
14417         aix_use_runtimelinking=no
14418
14419         # Test if we are trying to use run time linking or normal
14420         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14421         # need to do runtime linking.
14422         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14423           for ld_flag in $LDFLAGS; do
14424           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14425             aix_use_runtimelinking=yes
14426             break
14427           fi
14428           done
14429           ;;
14430         esac
14431
14432         exp_sym_flag='-bexport'
14433         no_entry_flag='-bnoentry'
14434       fi
14435
14436       # When large executables or shared objects are built, AIX ld can
14437       # have problems creating the table of contents.  If linking a library
14438       # or program results in "error TOC overflow" add -mminimal-toc to
14439       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14440       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14441
14442       archive_cmds_F77=''
14443       hardcode_direct_F77=yes
14444       hardcode_libdir_separator_F77=':'
14445       link_all_deplibs_F77=yes
14446
14447       if test "$GCC" = yes; then
14448         case $host_os in aix4.[012]|aix4.[012].*)
14449         # We only want to do this on AIX 4.2 and lower, the check
14450         # below for broken collect2 doesn't work under 4.3+
14451           collect2name=`${CC} -print-prog-name=collect2`
14452           if test -f "$collect2name" && \
14453            strings "$collect2name" | grep resolve_lib_name >/dev/null
14454           then
14455           # We have reworked collect2
14456           hardcode_direct_F77=yes
14457           else
14458           # We have old collect2
14459           hardcode_direct_F77=unsupported
14460           # It fails to find uninstalled libraries when the uninstalled
14461           # path is not listed in the libpath.  Setting hardcode_minus_L
14462           # to unsupported forces relinking
14463           hardcode_minus_L_F77=yes
14464           hardcode_libdir_flag_spec_F77='-L$libdir'
14465           hardcode_libdir_separator_F77=
14466           fi
14467           ;;
14468         esac
14469         shared_flag='-shared'
14470         if test "$aix_use_runtimelinking" = yes; then
14471           shared_flag="$shared_flag "'${wl}-G'
14472         fi
14473       else
14474         # not using gcc
14475         if test "$host_cpu" = ia64; then
14476         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14477         # chokes on -Wl,-G. The following line is correct:
14478           shared_flag='-G'
14479         else
14480           if test "$aix_use_runtimelinking" = yes; then
14481             shared_flag='${wl}-G'
14482           else
14483             shared_flag='${wl}-bM:SRE'
14484           fi
14485         fi
14486       fi
14487
14488       # It seems that -bexpall does not export symbols beginning with
14489       # underscore (_), so it is better to generate a list of symbols to export.
14490       always_export_symbols_F77=yes
14491       if test "$aix_use_runtimelinking" = yes; then
14492         # Warning - without using the other runtime loading flags (-brtl),
14493         # -berok will link without error, but may produce a broken library.
14494         allow_undefined_flag_F77='-berok'
14495        # Determine the default libpath from the value encoded in an empty executable.
14496        cat >conftest.$ac_ext <<_ACEOF
14497       program main
14498
14499       end
14500 _ACEOF
14501 rm -f conftest.$ac_objext conftest$ac_exeext
14502 if { (ac_try="$ac_link"
14503 case "(($ac_try" in
14504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14505   *) ac_try_echo=$ac_try;;
14506 esac
14507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14508   (eval "$ac_link") 2>conftest.er1
14509   ac_status=$?
14510   grep -v '^ *+' conftest.er1 >conftest.err
14511   rm -f conftest.er1
14512   cat conftest.err >&5
14513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514   (exit $ac_status); } && {
14515          test -z "$ac_f77_werror_flag" ||
14516          test ! -s conftest.err
14517        } && test -s conftest$ac_exeext &&
14518        $as_test_x conftest$ac_exeext; then
14519
14520 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14521 }'`
14522 # Check for a 64-bit object if we didn't find anything.
14523 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14524 }'`; fi
14525 else
14526   echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14528
14529
14530 fi
14531
14532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14533       conftest$ac_exeext conftest.$ac_ext
14534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14535
14536        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14537         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14538        else
14539         if test "$host_cpu" = ia64; then
14540           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14541           allow_undefined_flag_F77="-z nodefs"
14542           archive_expsym_cmds_F77="\$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"
14543         else
14544          # Determine the default libpath from the value encoded in an empty executable.
14545          cat >conftest.$ac_ext <<_ACEOF
14546       program main
14547
14548       end
14549 _ACEOF
14550 rm -f conftest.$ac_objext conftest$ac_exeext
14551 if { (ac_try="$ac_link"
14552 case "(($ac_try" in
14553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554   *) ac_try_echo=$ac_try;;
14555 esac
14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557   (eval "$ac_link") 2>conftest.er1
14558   ac_status=$?
14559   grep -v '^ *+' conftest.er1 >conftest.err
14560   rm -f conftest.er1
14561   cat conftest.err >&5
14562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563   (exit $ac_status); } && {
14564          test -z "$ac_f77_werror_flag" ||
14565          test ! -s conftest.err
14566        } && test -s conftest$ac_exeext &&
14567        $as_test_x conftest$ac_exeext; then
14568
14569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14570 }'`
14571 # Check for a 64-bit object if we didn't find anything.
14572 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14573 }'`; fi
14574 else
14575   echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14577
14578
14579 fi
14580
14581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14582       conftest$ac_exeext conftest.$ac_ext
14583 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14584
14585          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14586           # Warning - without using the other run time loading flags,
14587           # -berok will link without error, but may produce a broken library.
14588           no_undefined_flag_F77=' ${wl}-bernotok'
14589           allow_undefined_flag_F77=' ${wl}-berok'
14590           # Exported symbols can be pulled into shared objects from archives
14591           whole_archive_flag_spec_F77='$convenience'
14592           archive_cmds_need_lc_F77=yes
14593           # This is similar to how AIX traditionally builds its shared libraries.
14594           archive_expsym_cmds_F77="\$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'
14595         fi
14596       fi
14597       ;;
14598
14599     amigaos*)
14600       archive_cmds_F77='$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)'
14601       hardcode_libdir_flag_spec_F77='-L$libdir'
14602       hardcode_minus_L_F77=yes
14603       # see comment about different semantics on the GNU ld section
14604       ld_shlibs_F77=no
14605       ;;
14606
14607     bsdi[45]*)
14608       export_dynamic_flag_spec_F77=-rdynamic
14609       ;;
14610
14611     cygwin* | mingw* | pw32*)
14612       # When not using gcc, we currently assume that we are using
14613       # Microsoft Visual C++.
14614       # hardcode_libdir_flag_spec is actually meaningless, as there is
14615       # no search path for DLLs.
14616       hardcode_libdir_flag_spec_F77=' '
14617       allow_undefined_flag_F77=unsupported
14618       # Tell ltmain to make .lib files, not .a files.
14619       libext=lib
14620       # Tell ltmain to make .dll files, not .so files.
14621       shrext_cmds=".dll"
14622       # FIXME: Setting linknames here is a bad hack.
14623       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14624       # The linker will automatically build a .lib file if we build a DLL.
14625       old_archive_From_new_cmds_F77='true'
14626       # FIXME: Should let the user specify the lib program.
14627       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14628       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14629       enable_shared_with_static_runtimes_F77=yes
14630       ;;
14631
14632     darwin* | rhapsody*)
14633       case $host_os in
14634         rhapsody* | darwin1.[012])
14635          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14636          ;;
14637        *) # Darwin 1.3 on
14638          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14639            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14640          else
14641            case ${MACOSX_DEPLOYMENT_TARGET} in
14642              10.[012])
14643                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14644                ;;
14645              10.*)
14646                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14647                ;;
14648            esac
14649          fi
14650          ;;
14651       esac
14652       archive_cmds_need_lc_F77=no
14653       hardcode_direct_F77=no
14654       hardcode_automatic_F77=yes
14655       hardcode_shlibpath_var_F77=unsupported
14656       whole_archive_flag_spec_F77=''
14657       link_all_deplibs_F77=yes
14658     if test "$GCC" = yes ; then
14659         output_verbose_link_cmd='echo'
14660         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14661       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14662       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14663       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14664       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14665     else
14666       case $cc_basename in
14667         xlc*)
14668          output_verbose_link_cmd='echo'
14669          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14670          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14671           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14672          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14673           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14674           ;;
14675        *)
14676          ld_shlibs_F77=no
14677           ;;
14678       esac
14679     fi
14680       ;;
14681
14682     dgux*)
14683       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14684       hardcode_libdir_flag_spec_F77='-L$libdir'
14685       hardcode_shlibpath_var_F77=no
14686       ;;
14687
14688     freebsd1*)
14689       ld_shlibs_F77=no
14690       ;;
14691
14692     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14693     # support.  Future versions do this automatically, but an explicit c++rt0.o
14694     # does not break anything, and helps significantly (at the cost of a little
14695     # extra space).
14696     freebsd2.2*)
14697       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14698       hardcode_libdir_flag_spec_F77='-R$libdir'
14699       hardcode_direct_F77=yes
14700       hardcode_shlibpath_var_F77=no
14701       ;;
14702
14703     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14704     freebsd2*)
14705       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14706       hardcode_direct_F77=yes
14707       hardcode_minus_L_F77=yes
14708       hardcode_shlibpath_var_F77=no
14709       ;;
14710
14711     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14712     freebsd* | dragonfly*)
14713       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14714       hardcode_libdir_flag_spec_F77='-R$libdir'
14715       hardcode_direct_F77=yes
14716       hardcode_shlibpath_var_F77=no
14717       ;;
14718
14719     hpux9*)
14720       if test "$GCC" = yes; then
14721         archive_cmds_F77='$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'
14722       else
14723         archive_cmds_F77='$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'
14724       fi
14725       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14726       hardcode_libdir_separator_F77=:
14727       hardcode_direct_F77=yes
14728
14729       # hardcode_minus_L: Not really in the search PATH,
14730       # but as the default location of the library.
14731       hardcode_minus_L_F77=yes
14732       export_dynamic_flag_spec_F77='${wl}-E'
14733       ;;
14734
14735     hpux10*)
14736       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14737         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14738       else
14739         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14740       fi
14741       if test "$with_gnu_ld" = no; then
14742         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14743         hardcode_libdir_separator_F77=:
14744
14745         hardcode_direct_F77=yes
14746         export_dynamic_flag_spec_F77='${wl}-E'
14747
14748         # hardcode_minus_L: Not really in the search PATH,
14749         # but as the default location of the library.
14750         hardcode_minus_L_F77=yes
14751       fi
14752       ;;
14753
14754     hpux11*)
14755       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14756         case $host_cpu in
14757         hppa*64*)
14758           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14759           ;;
14760         ia64*)
14761           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14762           ;;
14763         *)
14764           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14765           ;;
14766         esac
14767       else
14768         case $host_cpu in
14769         hppa*64*)
14770           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14771           ;;
14772         ia64*)
14773           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14774           ;;
14775         *)
14776           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14777           ;;
14778         esac
14779       fi
14780       if test "$with_gnu_ld" = no; then
14781         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14782         hardcode_libdir_separator_F77=:
14783
14784         case $host_cpu in
14785         hppa*64*|ia64*)
14786           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14787           hardcode_direct_F77=no
14788           hardcode_shlibpath_var_F77=no
14789           ;;
14790         *)
14791           hardcode_direct_F77=yes
14792           export_dynamic_flag_spec_F77='${wl}-E'
14793
14794           # hardcode_minus_L: Not really in the search PATH,
14795           # but as the default location of the library.
14796           hardcode_minus_L_F77=yes
14797           ;;
14798         esac
14799       fi
14800       ;;
14801
14802     irix5* | irix6* | nonstopux*)
14803       if test "$GCC" = yes; then
14804         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14805       else
14806         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14807         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14808       fi
14809       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14810       hardcode_libdir_separator_F77=:
14811       link_all_deplibs_F77=yes
14812       ;;
14813
14814     netbsd* | netbsdelf*-gnu)
14815       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14816         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14817       else
14818         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14819       fi
14820       hardcode_libdir_flag_spec_F77='-R$libdir'
14821       hardcode_direct_F77=yes
14822       hardcode_shlibpath_var_F77=no
14823       ;;
14824
14825     newsos6)
14826       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14827       hardcode_direct_F77=yes
14828       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14829       hardcode_libdir_separator_F77=:
14830       hardcode_shlibpath_var_F77=no
14831       ;;
14832
14833     openbsd*)
14834       hardcode_direct_F77=yes
14835       hardcode_shlibpath_var_F77=no
14836       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14837         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14838         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14839         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14840         export_dynamic_flag_spec_F77='${wl}-E'
14841       else
14842        case $host_os in
14843          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14844            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14845            hardcode_libdir_flag_spec_F77='-R$libdir'
14846            ;;
14847          *)
14848            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14849            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14850            ;;
14851        esac
14852       fi
14853       ;;
14854
14855     os2*)
14856       hardcode_libdir_flag_spec_F77='-L$libdir'
14857       hardcode_minus_L_F77=yes
14858       allow_undefined_flag_F77=unsupported
14859       archive_cmds_F77='$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'
14860       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14861       ;;
14862
14863     osf3*)
14864       if test "$GCC" = yes; then
14865         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14866         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14867       else
14868         allow_undefined_flag_F77=' -expect_unresolved \*'
14869         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14870       fi
14871       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14872       hardcode_libdir_separator_F77=:
14873       ;;
14874
14875     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14876       if test "$GCC" = yes; then
14877         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14878         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14879         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14880       else
14881         allow_undefined_flag_F77=' -expect_unresolved \*'
14882         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14883         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14884         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14885
14886         # Both c and cxx compiler support -rpath directly
14887         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14888       fi
14889       hardcode_libdir_separator_F77=:
14890       ;;
14891
14892     solaris*)
14893       no_undefined_flag_F77=' -z text'
14894       if test "$GCC" = yes; then
14895         wlarc='${wl}'
14896         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14897         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14898           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14899       else
14900         wlarc=''
14901         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14902         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14903         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14904       fi
14905       hardcode_libdir_flag_spec_F77='-R$libdir'
14906       hardcode_shlibpath_var_F77=no
14907       case $host_os in
14908       solaris2.[0-5] | solaris2.[0-5].*) ;;
14909       *)
14910         # The compiler driver will combine linker options so we
14911         # cannot just pass the convience library names through
14912         # without $wl, iff we do not link with $LD.
14913         # Luckily, gcc supports the same syntax we need for Sun Studio.
14914         # Supported since Solaris 2.6 (maybe 2.5.1?)
14915         case $wlarc in
14916         '')
14917           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14918         *)
14919           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14920         esac ;;
14921       esac
14922       link_all_deplibs_F77=yes
14923       ;;
14924
14925     sunos4*)
14926       if test "x$host_vendor" = xsequent; then
14927         # Use $CC to link under sequent, because it throws in some extra .o
14928         # files that make .init and .fini sections work.
14929         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14930       else
14931         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14932       fi
14933       hardcode_libdir_flag_spec_F77='-L$libdir'
14934       hardcode_direct_F77=yes
14935       hardcode_minus_L_F77=yes
14936       hardcode_shlibpath_var_F77=no
14937       ;;
14938
14939     sysv4)
14940       case $host_vendor in
14941         sni)
14942           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14943           hardcode_direct_F77=yes # is this really true???
14944         ;;
14945         siemens)
14946           ## LD is ld it makes a PLAMLIB
14947           ## CC just makes a GrossModule.
14948           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14949           reload_cmds_F77='$CC -r -o $output$reload_objs'
14950           hardcode_direct_F77=no
14951         ;;
14952         motorola)
14953           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14954           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14955         ;;
14956       esac
14957       runpath_var='LD_RUN_PATH'
14958       hardcode_shlibpath_var_F77=no
14959       ;;
14960
14961     sysv4.3*)
14962       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14963       hardcode_shlibpath_var_F77=no
14964       export_dynamic_flag_spec_F77='-Bexport'
14965       ;;
14966
14967     sysv4*MP*)
14968       if test -d /usr/nec; then
14969         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14970         hardcode_shlibpath_var_F77=no
14971         runpath_var=LD_RUN_PATH
14972         hardcode_runpath_var=yes
14973         ld_shlibs_F77=yes
14974       fi
14975       ;;
14976
14977     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14978       no_undefined_flag_F77='${wl}-z,text'
14979       archive_cmds_need_lc_F77=no
14980       hardcode_shlibpath_var_F77=no
14981       runpath_var='LD_RUN_PATH'
14982
14983       if test "$GCC" = yes; then
14984         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14985         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14986       else
14987         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14988         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14989       fi
14990       ;;
14991
14992     sysv5* | sco3.2v5* | sco5v6*)
14993       # Note: We can NOT use -z defs as we might desire, because we do not
14994       # link with -lc, and that would cause any symbols used from libc to
14995       # always be unresolved, which means just about no library would
14996       # ever link correctly.  If we're not using GNU ld we use -z text
14997       # though, which does catch some bad symbols but isn't as heavy-handed
14998       # as -z defs.
14999       no_undefined_flag_F77='${wl}-z,text'
15000       allow_undefined_flag_F77='${wl}-z,nodefs'
15001       archive_cmds_need_lc_F77=no
15002       hardcode_shlibpath_var_F77=no
15003       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15004       hardcode_libdir_separator_F77=':'
15005       link_all_deplibs_F77=yes
15006       export_dynamic_flag_spec_F77='${wl}-Bexport'
15007       runpath_var='LD_RUN_PATH'
15008
15009       if test "$GCC" = yes; then
15010         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15011         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15012       else
15013         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15014         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15015       fi
15016       ;;
15017
15018     uts4*)
15019       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15020       hardcode_libdir_flag_spec_F77='-L$libdir'
15021       hardcode_shlibpath_var_F77=no
15022       ;;
15023
15024     *)
15025       ld_shlibs_F77=no
15026       ;;
15027     esac
15028   fi
15029
15030 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15031 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15032 test "$ld_shlibs_F77" = no && can_build_shared=no
15033
15034 #
15035 # Do we need to explicitly link libc?
15036 #
15037 case "x$archive_cmds_need_lc_F77" in
15038 x|xyes)
15039   # Assume -lc should be added
15040   archive_cmds_need_lc_F77=yes
15041
15042   if test "$enable_shared" = yes && test "$GCC" = yes; then
15043     case $archive_cmds_F77 in
15044     *'~'*)
15045       # FIXME: we may have to deal with multi-command sequences.
15046       ;;
15047     '$CC '*)
15048       # Test whether the compiler implicitly links with -lc since on some
15049       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15050       # to ld, don't add -lc before -lgcc.
15051       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15052 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15053       $rm conftest*
15054       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15055
15056       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15057   (eval $ac_compile) 2>&5
15058   ac_status=$?
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); } 2>conftest.err; then
15061         soname=conftest
15062         lib=conftest
15063         libobjs=conftest.$ac_objext
15064         deplibs=
15065         wl=$lt_prog_compiler_wl_F77
15066         pic_flag=$lt_prog_compiler_pic_F77
15067         compiler_flags=-v
15068         linker_flags=-v
15069         verstring=
15070         output_objdir=.
15071         libname=conftest
15072         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15073         allow_undefined_flag_F77=
15074         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15075   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15076   ac_status=$?
15077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078   (exit $ac_status); }
15079         then
15080           archive_cmds_need_lc_F77=no
15081         else
15082           archive_cmds_need_lc_F77=yes
15083         fi
15084         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15085       else
15086         cat conftest.err 1>&5
15087       fi
15088       $rm conftest*
15089       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15090 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15091       ;;
15092     esac
15093   fi
15094   ;;
15095 esac
15096
15097 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15098 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15099 library_names_spec=
15100 libname_spec='lib$name'
15101 soname_spec=
15102 shrext_cmds=".so"
15103 postinstall_cmds=
15104 postuninstall_cmds=
15105 finish_cmds=
15106 finish_eval=
15107 shlibpath_var=
15108 shlibpath_overrides_runpath=unknown
15109 version_type=none
15110 dynamic_linker="$host_os ld.so"
15111 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15112 if test "$GCC" = yes; then
15113   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15114   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15115     # if the path contains ";" then we assume it to be the separator
15116     # otherwise default to the standard path separator (i.e. ":") - it is
15117     # assumed that no part of a normal pathname contains ";" but that should
15118     # okay in the real world where ";" in dirpaths is itself problematic.
15119     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15120   else
15121     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15122   fi
15123 else
15124   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15125 fi
15126 need_lib_prefix=unknown
15127 hardcode_into_libs=no
15128
15129 # when you set need_version to no, make sure it does not cause -set_version
15130 # flags to be left without arguments
15131 need_version=unknown
15132
15133 case $host_os in
15134 aix3*)
15135   version_type=linux
15136   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15137   shlibpath_var=LIBPATH
15138
15139   # AIX 3 has no versioning support, so we append a major version to the name.
15140   soname_spec='${libname}${release}${shared_ext}$major'
15141   ;;
15142
15143 aix4* | aix5*)
15144   version_type=linux
15145   need_lib_prefix=no
15146   need_version=no
15147   hardcode_into_libs=yes
15148   if test "$host_cpu" = ia64; then
15149     # AIX 5 supports IA64
15150     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15151     shlibpath_var=LD_LIBRARY_PATH
15152   else
15153     # With GCC up to 2.95.x, collect2 would create an import file
15154     # for dependence libraries.  The import file would start with
15155     # the line `#! .'.  This would cause the generated library to
15156     # depend on `.', always an invalid library.  This was fixed in
15157     # development snapshots of GCC prior to 3.0.
15158     case $host_os in
15159       aix4 | aix4.[01] | aix4.[01].*)
15160       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15161            echo ' yes '
15162            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15163         :
15164       else
15165         can_build_shared=no
15166       fi
15167       ;;
15168     esac
15169     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15170     # soname into executable. Probably we can add versioning support to
15171     # collect2, so additional links can be useful in future.
15172     if test "$aix_use_runtimelinking" = yes; then
15173       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15174       # instead of lib<name>.a to let people know that these are not
15175       # typical AIX shared libraries.
15176       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15177     else
15178       # We preserve .a as extension for shared libraries through AIX4.2
15179       # and later when we are not doing run time linking.
15180       library_names_spec='${libname}${release}.a $libname.a'
15181       soname_spec='${libname}${release}${shared_ext}$major'
15182     fi
15183     shlibpath_var=LIBPATH
15184   fi
15185   ;;
15186
15187 amigaos*)
15188   library_names_spec='$libname.ixlibrary $libname.a'
15189   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15190   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'
15191   ;;
15192
15193 beos*)
15194   library_names_spec='${libname}${shared_ext}'
15195   dynamic_linker="$host_os ld.so"
15196   shlibpath_var=LIBRARY_PATH
15197   ;;
15198
15199 bsdi[45]*)
15200   version_type=linux
15201   need_version=no
15202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203   soname_spec='${libname}${release}${shared_ext}$major'
15204   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15205   shlibpath_var=LD_LIBRARY_PATH
15206   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15207   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15208   # the default ld.so.conf also contains /usr/contrib/lib and
15209   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15210   # libtool to hard-code these into programs
15211   ;;
15212
15213 cygwin* | mingw* | pw32*)
15214   version_type=windows
15215   shrext_cmds=".dll"
15216   need_version=no
15217   need_lib_prefix=no
15218
15219   case $GCC,$host_os in
15220   yes,cygwin* | yes,mingw* | yes,pw32*)
15221     library_names_spec='$libname.dll.a'
15222     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15223     postinstall_cmds='base_file=`basename \${file}`~
15224       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15225       dldir=$destdir/`dirname \$dlpath`~
15226       test -d \$dldir || mkdir -p \$dldir~
15227       $install_prog $dir/$dlname \$dldir/$dlname~
15228       chmod a+x \$dldir/$dlname'
15229     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15230       dlpath=$dir/\$dldll~
15231        $rm \$dlpath'
15232     shlibpath_overrides_runpath=yes
15233
15234     case $host_os in
15235     cygwin*)
15236       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15237       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15238       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15239       ;;
15240     mingw*)
15241       # MinGW DLLs use traditional 'lib' prefix
15242       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15243       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15244       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15245         # It is most probably a Windows format PATH printed by
15246         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15247         # path with ; separators, and with drive letters. We can handle the
15248         # drive letters (cygwin fileutils understands them), so leave them,
15249         # especially as we might pass files found there to a mingw objdump,
15250         # which wouldn't understand a cygwinified path. Ahh.
15251         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15252       else
15253         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15254       fi
15255       ;;
15256     pw32*)
15257       # pw32 DLLs use 'pw' prefix rather than 'lib'
15258       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15259       ;;
15260     esac
15261     ;;
15262
15263   *)
15264     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15265     ;;
15266   esac
15267   dynamic_linker='Win32 ld.exe'
15268   # FIXME: first we should search . and the directory the executable is in
15269   shlibpath_var=PATH
15270   ;;
15271
15272 darwin* | rhapsody*)
15273   dynamic_linker="$host_os dyld"
15274   version_type=darwin
15275   need_lib_prefix=no
15276   need_version=no
15277   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15278   soname_spec='${libname}${release}${major}$shared_ext'
15279   shlibpath_overrides_runpath=yes
15280   shlibpath_var=DYLD_LIBRARY_PATH
15281   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15282   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15283   if test "$GCC" = yes; then
15284     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15285   else
15286     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15287   fi
15288   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15289   ;;
15290
15291 dgux*)
15292   version_type=linux
15293   need_lib_prefix=no
15294   need_version=no
15295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15296   soname_spec='${libname}${release}${shared_ext}$major'
15297   shlibpath_var=LD_LIBRARY_PATH
15298   ;;
15299
15300 freebsd1*)
15301   dynamic_linker=no
15302   ;;
15303
15304 freebsd* | dragonfly*)
15305   # DragonFly does not have aout.  When/if they implement a new
15306   # versioning mechanism, adjust this.
15307   if test -x /usr/bin/objformat; then
15308     objformat=`/usr/bin/objformat`
15309   else
15310     case $host_os in
15311     freebsd[123]*) objformat=aout ;;
15312     *) objformat=elf ;;
15313     esac
15314   fi
15315   version_type=freebsd-$objformat
15316   case $version_type in
15317     freebsd-elf*)
15318       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15319       need_version=no
15320       need_lib_prefix=no
15321       ;;
15322     freebsd-*)
15323       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15324       need_version=yes
15325       ;;
15326   esac
15327   shlibpath_var=LD_LIBRARY_PATH
15328   case $host_os in
15329   freebsd2*)
15330     shlibpath_overrides_runpath=yes
15331     ;;
15332   freebsd3.[01]* | freebsdelf3.[01]*)
15333     shlibpath_overrides_runpath=yes
15334     hardcode_into_libs=yes
15335     ;;
15336   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15337   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15338     shlibpath_overrides_runpath=no
15339     hardcode_into_libs=yes
15340     ;;
15341   freebsd*) # from 4.6 on
15342     shlibpath_overrides_runpath=yes
15343     hardcode_into_libs=yes
15344     ;;
15345   esac
15346   ;;
15347
15348 gnu*)
15349   version_type=linux
15350   need_lib_prefix=no
15351   need_version=no
15352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15353   soname_spec='${libname}${release}${shared_ext}$major'
15354   shlibpath_var=LD_LIBRARY_PATH
15355   hardcode_into_libs=yes
15356   ;;
15357
15358 hpux9* | hpux10* | hpux11*)
15359   # Give a soname corresponding to the major version so that dld.sl refuses to
15360   # link against other versions.
15361   version_type=sunos
15362   need_lib_prefix=no
15363   need_version=no
15364   case $host_cpu in
15365   ia64*)
15366     shrext_cmds='.so'
15367     hardcode_into_libs=yes
15368     dynamic_linker="$host_os dld.so"
15369     shlibpath_var=LD_LIBRARY_PATH
15370     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15371     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15372     soname_spec='${libname}${release}${shared_ext}$major'
15373     if test "X$HPUX_IA64_MODE" = X32; then
15374       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15375     else
15376       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15377     fi
15378     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15379     ;;
15380    hppa*64*)
15381      shrext_cmds='.sl'
15382      hardcode_into_libs=yes
15383      dynamic_linker="$host_os dld.sl"
15384      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15385      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15386      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15387      soname_spec='${libname}${release}${shared_ext}$major'
15388      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15389      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15390      ;;
15391    *)
15392     shrext_cmds='.sl'
15393     dynamic_linker="$host_os dld.sl"
15394     shlibpath_var=SHLIB_PATH
15395     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15396     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15397     soname_spec='${libname}${release}${shared_ext}$major'
15398     ;;
15399   esac
15400   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15401   postinstall_cmds='chmod 555 $lib'
15402   ;;
15403
15404 interix3*)
15405   version_type=linux
15406   need_lib_prefix=no
15407   need_version=no
15408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15409   soname_spec='${libname}${release}${shared_ext}$major'
15410   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15411   shlibpath_var=LD_LIBRARY_PATH
15412   shlibpath_overrides_runpath=no
15413   hardcode_into_libs=yes
15414   ;;
15415
15416 irix5* | irix6* | nonstopux*)
15417   case $host_os in
15418     nonstopux*) version_type=nonstopux ;;
15419     *)
15420         if test "$lt_cv_prog_gnu_ld" = yes; then
15421                 version_type=linux
15422         else
15423                 version_type=irix
15424         fi ;;
15425   esac
15426   need_lib_prefix=no
15427   need_version=no
15428   soname_spec='${libname}${release}${shared_ext}$major'
15429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15430   case $host_os in
15431   irix5* | nonstopux*)
15432     libsuff= shlibsuff=
15433     ;;
15434   *)
15435     case $LD in # libtool.m4 will add one of these switches to LD
15436     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15437       libsuff= shlibsuff= libmagic=32-bit;;
15438     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15439       libsuff=32 shlibsuff=N32 libmagic=N32;;
15440     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15441       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15442     *) libsuff= shlibsuff= libmagic=never-match;;
15443     esac
15444     ;;
15445   esac
15446   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15447   shlibpath_overrides_runpath=no
15448   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15449   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15450   hardcode_into_libs=yes
15451   ;;
15452
15453 # No shared lib support for Linux oldld, aout, or coff.
15454 linux*oldld* | linux*aout* | linux*coff*)
15455   dynamic_linker=no
15456   ;;
15457
15458 # This must be Linux ELF.
15459 linux* | k*bsd*-gnu)
15460   version_type=linux
15461   need_lib_prefix=no
15462   need_version=no
15463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464   soname_spec='${libname}${release}${shared_ext}$major'
15465   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15466   shlibpath_var=LD_LIBRARY_PATH
15467   shlibpath_overrides_runpath=no
15468   # This implies no fast_install, which is unacceptable.
15469   # Some rework will be needed to allow for fast_install
15470   # before this can be enabled.
15471   hardcode_into_libs=yes
15472
15473   # Append ld.so.conf contents to the search path
15474   if test -f /etc/ld.so.conf; then
15475     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15476     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15477   fi
15478
15479   # We used to test for /lib/ld.so.1 and disable shared libraries on
15480   # powerpc, because MkLinux only supported shared libraries with the
15481   # GNU dynamic linker.  Since this was broken with cross compilers,
15482   # most powerpc-linux boxes support dynamic linking these days and
15483   # people can always --disable-shared, the test was removed, and we
15484   # assume the GNU/Linux dynamic linker is in use.
15485   dynamic_linker='GNU/Linux ld.so'
15486   ;;
15487
15488 netbsdelf*-gnu)
15489   version_type=linux
15490   need_lib_prefix=no
15491   need_version=no
15492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15493   soname_spec='${libname}${release}${shared_ext}$major'
15494   shlibpath_var=LD_LIBRARY_PATH
15495   shlibpath_overrides_runpath=no
15496   hardcode_into_libs=yes
15497   dynamic_linker='NetBSD ld.elf_so'
15498   ;;
15499
15500 netbsd*)
15501   version_type=sunos
15502   need_lib_prefix=no
15503   need_version=no
15504   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15505     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15506     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15507     dynamic_linker='NetBSD (a.out) ld.so'
15508   else
15509     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15510     soname_spec='${libname}${release}${shared_ext}$major'
15511     dynamic_linker='NetBSD ld.elf_so'
15512   fi
15513   shlibpath_var=LD_LIBRARY_PATH
15514   shlibpath_overrides_runpath=yes
15515   hardcode_into_libs=yes
15516   ;;
15517
15518 newsos6)
15519   version_type=linux
15520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15521   shlibpath_var=LD_LIBRARY_PATH
15522   shlibpath_overrides_runpath=yes
15523   ;;
15524
15525 nto-qnx*)
15526   version_type=linux
15527   need_lib_prefix=no
15528   need_version=no
15529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15530   soname_spec='${libname}${release}${shared_ext}$major'
15531   shlibpath_var=LD_LIBRARY_PATH
15532   shlibpath_overrides_runpath=yes
15533   ;;
15534
15535 openbsd*)
15536   version_type=sunos
15537   sys_lib_dlsearch_path_spec="/usr/lib"
15538   need_lib_prefix=no
15539   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15540   case $host_os in
15541     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15542     *)                         need_version=no  ;;
15543   esac
15544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15545   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15546   shlibpath_var=LD_LIBRARY_PATH
15547   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15548     case $host_os in
15549       openbsd2.[89] | openbsd2.[89].*)
15550         shlibpath_overrides_runpath=no
15551         ;;
15552       *)
15553         shlibpath_overrides_runpath=yes
15554         ;;
15555       esac
15556   else
15557     shlibpath_overrides_runpath=yes
15558   fi
15559   ;;
15560
15561 os2*)
15562   libname_spec='$name'
15563   shrext_cmds=".dll"
15564   need_lib_prefix=no
15565   library_names_spec='$libname${shared_ext} $libname.a'
15566   dynamic_linker='OS/2 ld.exe'
15567   shlibpath_var=LIBPATH
15568   ;;
15569
15570 osf3* | osf4* | osf5*)
15571   version_type=osf
15572   need_lib_prefix=no
15573   need_version=no
15574   soname_spec='${libname}${release}${shared_ext}$major'
15575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15576   shlibpath_var=LD_LIBRARY_PATH
15577   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15578   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15579   ;;
15580
15581 solaris*)
15582   version_type=linux
15583   need_lib_prefix=no
15584   need_version=no
15585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15586   soname_spec='${libname}${release}${shared_ext}$major'
15587   shlibpath_var=LD_LIBRARY_PATH
15588   shlibpath_overrides_runpath=yes
15589   hardcode_into_libs=yes
15590   # ldd complains unless libraries are executable
15591   postinstall_cmds='chmod +x $lib'
15592   ;;
15593
15594 sunos4*)
15595   version_type=sunos
15596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15597   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15598   shlibpath_var=LD_LIBRARY_PATH
15599   shlibpath_overrides_runpath=yes
15600   if test "$with_gnu_ld" = yes; then
15601     need_lib_prefix=no
15602   fi
15603   need_version=yes
15604   ;;
15605
15606 sysv4 | sysv4.3*)
15607   version_type=linux
15608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15609   soname_spec='${libname}${release}${shared_ext}$major'
15610   shlibpath_var=LD_LIBRARY_PATH
15611   case $host_vendor in
15612     sni)
15613       shlibpath_overrides_runpath=no
15614       need_lib_prefix=no
15615       export_dynamic_flag_spec='${wl}-Blargedynsym'
15616       runpath_var=LD_RUN_PATH
15617       ;;
15618     siemens)
15619       need_lib_prefix=no
15620       ;;
15621     motorola)
15622       need_lib_prefix=no
15623       need_version=no
15624       shlibpath_overrides_runpath=no
15625       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15626       ;;
15627   esac
15628   ;;
15629
15630 sysv4*MP*)
15631   if test -d /usr/nec ;then
15632     version_type=linux
15633     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15634     soname_spec='$libname${shared_ext}.$major'
15635     shlibpath_var=LD_LIBRARY_PATH
15636   fi
15637   ;;
15638
15639 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15640   version_type=freebsd-elf
15641   need_lib_prefix=no
15642   need_version=no
15643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15644   soname_spec='${libname}${release}${shared_ext}$major'
15645   shlibpath_var=LD_LIBRARY_PATH
15646   hardcode_into_libs=yes
15647   if test "$with_gnu_ld" = yes; then
15648     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15649     shlibpath_overrides_runpath=no
15650   else
15651     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15652     shlibpath_overrides_runpath=yes
15653     case $host_os in
15654       sco3.2v5*)
15655         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15656         ;;
15657     esac
15658   fi
15659   sys_lib_dlsearch_path_spec='/usr/lib'
15660   ;;
15661
15662 uts4*)
15663   version_type=linux
15664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15665   soname_spec='${libname}${release}${shared_ext}$major'
15666   shlibpath_var=LD_LIBRARY_PATH
15667   ;;
15668
15669 *)
15670   dynamic_linker=no
15671   ;;
15672 esac
15673 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15674 echo "${ECHO_T}$dynamic_linker" >&6; }
15675 test "$dynamic_linker" = no && can_build_shared=no
15676
15677 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15678 if test "$GCC" = yes; then
15679   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15680 fi
15681
15682 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15683 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15684 hardcode_action_F77=
15685 if test -n "$hardcode_libdir_flag_spec_F77" || \
15686    test -n "$runpath_var_F77" || \
15687    test "X$hardcode_automatic_F77" = "Xyes" ; then
15688
15689   # We can hardcode non-existant directories.
15690   if test "$hardcode_direct_F77" != no &&
15691      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15692      # have to relink, otherwise we might link with an installed library
15693      # when we should be linking with a yet-to-be-installed one
15694      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15695      test "$hardcode_minus_L_F77" != no; then
15696     # Linking always hardcodes the temporary library directory.
15697     hardcode_action_F77=relink
15698   else
15699     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15700     hardcode_action_F77=immediate
15701   fi
15702 else
15703   # We cannot hardcode anything, or else we can only hardcode existing
15704   # directories.
15705   hardcode_action_F77=unsupported
15706 fi
15707 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15708 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15709
15710 if test "$hardcode_action_F77" = relink; then
15711   # Fast installation is not supported
15712   enable_fast_install=no
15713 elif test "$shlibpath_overrides_runpath" = yes ||
15714      test "$enable_shared" = no; then
15715   # Fast installation is not necessary
15716   enable_fast_install=needless
15717 fi
15718
15719
15720 # The else clause should only fire when bootstrapping the
15721 # libtool distribution, otherwise you forgot to ship ltmain.sh
15722 # with your package, and you will get complaints that there are
15723 # no rules to generate ltmain.sh.
15724 if test -f "$ltmain"; then
15725   # See if we are running on zsh, and set the options which allow our commands through
15726   # without removal of \ escapes.
15727   if test -n "${ZSH_VERSION+set}" ; then
15728     setopt NO_GLOB_SUBST
15729   fi
15730   # Now quote all the things that may contain metacharacters while being
15731   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15732   # variables and quote the copies for generation of the libtool script.
15733   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15734     SED SHELL STRIP \
15735     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15736     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15737     deplibs_check_method reload_flag reload_cmds need_locks \
15738     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15739     lt_cv_sys_global_symbol_to_c_name_address \
15740     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15741     old_postinstall_cmds old_postuninstall_cmds \
15742     compiler_F77 \
15743     CC_F77 \
15744     LD_F77 \
15745     lt_prog_compiler_wl_F77 \
15746     lt_prog_compiler_pic_F77 \
15747     lt_prog_compiler_static_F77 \
15748     lt_prog_compiler_no_builtin_flag_F77 \
15749     export_dynamic_flag_spec_F77 \
15750     thread_safe_flag_spec_F77 \
15751     whole_archive_flag_spec_F77 \
15752     enable_shared_with_static_runtimes_F77 \
15753     old_archive_cmds_F77 \
15754     old_archive_from_new_cmds_F77 \
15755     predep_objects_F77 \
15756     postdep_objects_F77 \
15757     predeps_F77 \
15758     postdeps_F77 \
15759     compiler_lib_search_path_F77 \
15760     archive_cmds_F77 \
15761     archive_expsym_cmds_F77 \
15762     postinstall_cmds_F77 \
15763     postuninstall_cmds_F77 \
15764     old_archive_from_expsyms_cmds_F77 \
15765     allow_undefined_flag_F77 \
15766     no_undefined_flag_F77 \
15767     export_symbols_cmds_F77 \
15768     hardcode_libdir_flag_spec_F77 \
15769     hardcode_libdir_flag_spec_ld_F77 \
15770     hardcode_libdir_separator_F77 \
15771     hardcode_automatic_F77 \
15772     module_cmds_F77 \
15773     module_expsym_cmds_F77 \
15774     lt_cv_prog_compiler_c_o_F77 \
15775     exclude_expsyms_F77 \
15776     include_expsyms_F77; do
15777
15778     case $var in
15779     old_archive_cmds_F77 | \
15780     old_archive_from_new_cmds_F77 | \
15781     archive_cmds_F77 | \
15782     archive_expsym_cmds_F77 | \
15783     module_cmds_F77 | \
15784     module_expsym_cmds_F77 | \
15785     old_archive_from_expsyms_cmds_F77 | \
15786     export_symbols_cmds_F77 | \
15787     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15788     postinstall_cmds | postuninstall_cmds | \
15789     old_postinstall_cmds | old_postuninstall_cmds | \
15790     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15791       # Double-quote double-evaled strings.
15792       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15793       ;;
15794     *)
15795       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15796       ;;
15797     esac
15798   done
15799
15800   case $lt_echo in
15801   *'\$0 --fallback-echo"')
15802     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15803     ;;
15804   esac
15805
15806 cfgfile="$ofile"
15807
15808   cat <<__EOF__ >> "$cfgfile"
15809 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15810
15811 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15812
15813 # Shell to use when invoking shell scripts.
15814 SHELL=$lt_SHELL
15815
15816 # Whether or not to build shared libraries.
15817 build_libtool_libs=$enable_shared
15818
15819 # Whether or not to build static libraries.
15820 build_old_libs=$enable_static
15821
15822 # Whether or not to add -lc for building shared libraries.
15823 build_libtool_need_lc=$archive_cmds_need_lc_F77
15824
15825 # Whether or not to disallow shared libs when runtime libs are static
15826 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15827
15828 # Whether or not to optimize for fast installation.
15829 fast_install=$enable_fast_install
15830
15831 # The host system.
15832 host_alias=$host_alias
15833 host=$host
15834 host_os=$host_os
15835
15836 # The build system.
15837 build_alias=$build_alias
15838 build=$build
15839 build_os=$build_os
15840
15841 # An echo program that does not interpret backslashes.
15842 echo=$lt_echo
15843
15844 # The archiver.
15845 AR=$lt_AR
15846 AR_FLAGS=$lt_AR_FLAGS
15847
15848 # A C compiler.
15849 LTCC=$lt_LTCC
15850
15851 # LTCC compiler flags.
15852 LTCFLAGS=$lt_LTCFLAGS
15853
15854 # A language-specific compiler.
15855 CC=$lt_compiler_F77
15856
15857 # Is the compiler the GNU C compiler?
15858 with_gcc=$GCC_F77
15859
15860 # An ERE matcher.
15861 EGREP=$lt_EGREP
15862
15863 # The linker used to build libraries.
15864 LD=$lt_LD_F77
15865
15866 # Whether we need hard or soft links.
15867 LN_S=$lt_LN_S
15868
15869 # A BSD-compatible nm program.
15870 NM=$lt_NM
15871
15872 # A symbol stripping program
15873 STRIP=$lt_STRIP
15874
15875 # Used to examine libraries when file_magic_cmd begins "file"
15876 MAGIC_CMD=$MAGIC_CMD
15877
15878 # Used on cygwin: DLL creation program.
15879 DLLTOOL="$DLLTOOL"
15880
15881 # Used on cygwin: object dumper.
15882 OBJDUMP="$OBJDUMP"
15883
15884 # Used on cygwin: assembler.
15885 AS="$AS"
15886
15887 # The name of the directory that contains temporary libtool files.
15888 objdir=$objdir
15889
15890 # How to create reloadable object files.
15891 reload_flag=$lt_reload_flag
15892 reload_cmds=$lt_reload_cmds
15893
15894 # How to pass a linker flag through the compiler.
15895 wl=$lt_lt_prog_compiler_wl_F77
15896
15897 # Object file suffix (normally "o").
15898 objext="$ac_objext"
15899
15900 # Old archive suffix (normally "a").
15901 libext="$libext"
15902
15903 # Shared library suffix (normally ".so").
15904 shrext_cmds='$shrext_cmds'
15905
15906 # Executable file suffix (normally "").
15907 exeext="$exeext"
15908
15909 # Additional compiler flags for building library objects.
15910 pic_flag=$lt_lt_prog_compiler_pic_F77
15911 pic_mode=$pic_mode
15912
15913 # What is the maximum length of a command?
15914 max_cmd_len=$lt_cv_sys_max_cmd_len
15915
15916 # Does compiler simultaneously support -c and -o options?
15917 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15918
15919 # Must we lock files when doing compilation?
15920 need_locks=$lt_need_locks
15921
15922 # Do we need the lib prefix for modules?
15923 need_lib_prefix=$need_lib_prefix
15924
15925 # Do we need a version for libraries?
15926 need_version=$need_version
15927
15928 # Whether dlopen is supported.
15929 dlopen_support=$enable_dlopen
15930
15931 # Whether dlopen of programs is supported.
15932 dlopen_self=$enable_dlopen_self
15933
15934 # Whether dlopen of statically linked programs is supported.
15935 dlopen_self_static=$enable_dlopen_self_static
15936
15937 # Compiler flag to prevent dynamic linking.
15938 link_static_flag=$lt_lt_prog_compiler_static_F77
15939
15940 # Compiler flag to turn off builtin functions.
15941 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15942
15943 # Compiler flag to allow reflexive dlopens.
15944 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15945
15946 # Compiler flag to generate shared objects directly from archives.
15947 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15948
15949 # Compiler flag to generate thread-safe objects.
15950 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15951
15952 # Library versioning type.
15953 version_type=$version_type
15954
15955 # Format of library name prefix.
15956 libname_spec=$lt_libname_spec
15957
15958 # List of archive names.  First name is the real one, the rest are links.
15959 # The last name is the one that the linker finds with -lNAME.
15960 library_names_spec=$lt_library_names_spec
15961
15962 # The coded name of the library, if different from the real name.
15963 soname_spec=$lt_soname_spec
15964
15965 # Commands used to build and install an old-style archive.
15966 RANLIB=$lt_RANLIB
15967 old_archive_cmds=$lt_old_archive_cmds_F77
15968 old_postinstall_cmds=$lt_old_postinstall_cmds
15969 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15970
15971 # Create an old-style archive from a shared archive.
15972 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15973
15974 # Create a temporary old-style archive to link instead of a shared archive.
15975 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15976
15977 # Commands used to build and install a shared archive.
15978 archive_cmds=$lt_archive_cmds_F77
15979 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15980 postinstall_cmds=$lt_postinstall_cmds
15981 postuninstall_cmds=$lt_postuninstall_cmds
15982
15983 # Commands used to build a loadable module (assumed same as above if empty)
15984 module_cmds=$lt_module_cmds_F77
15985 module_expsym_cmds=$lt_module_expsym_cmds_F77
15986
15987 # Commands to strip libraries.
15988 old_striplib=$lt_old_striplib
15989 striplib=$lt_striplib
15990
15991 # Dependencies to place before the objects being linked to create a
15992 # shared library.
15993 predep_objects=$lt_predep_objects_F77
15994
15995 # Dependencies to place after the objects being linked to create a
15996 # shared library.
15997 postdep_objects=$lt_postdep_objects_F77
15998
15999 # Dependencies to place before the objects being linked to create a
16000 # shared library.
16001 predeps=$lt_predeps_F77
16002
16003 # Dependencies to place after the objects being linked to create a
16004 # shared library.
16005 postdeps=$lt_postdeps_F77
16006
16007 # The library search path used internally by the compiler when linking
16008 # a shared library.
16009 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16010
16011 # Method to check whether dependent libraries are shared objects.
16012 deplibs_check_method=$lt_deplibs_check_method
16013
16014 # Command to use when deplibs_check_method == file_magic.
16015 file_magic_cmd=$lt_file_magic_cmd
16016
16017 # Flag that allows shared libraries with undefined symbols to be built.
16018 allow_undefined_flag=$lt_allow_undefined_flag_F77
16019
16020 # Flag that forces no undefined symbols.
16021 no_undefined_flag=$lt_no_undefined_flag_F77
16022
16023 # Commands used to finish a libtool library installation in a directory.
16024 finish_cmds=$lt_finish_cmds
16025
16026 # Same as above, but a single script fragment to be evaled but not shown.
16027 finish_eval=$lt_finish_eval
16028
16029 # Take the output of nm and produce a listing of raw symbols and C names.
16030 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16031
16032 # Transform the output of nm in a proper C declaration
16033 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16034
16035 # Transform the output of nm in a C name address pair
16036 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16037
16038 # This is the shared library runtime path variable.
16039 runpath_var=$runpath_var
16040
16041 # This is the shared library path variable.
16042 shlibpath_var=$shlibpath_var
16043
16044 # Is shlibpath searched before the hard-coded library search path?
16045 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16046
16047 # How to hardcode a shared library path into an executable.
16048 hardcode_action=$hardcode_action_F77
16049
16050 # Whether we should hardcode library paths into libraries.
16051 hardcode_into_libs=$hardcode_into_libs
16052
16053 # Flag to hardcode \$libdir into a binary during linking.
16054 # This must work even if \$libdir does not exist.
16055 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16056
16057 # If ld is used when linking, flag to hardcode \$libdir into
16058 # a binary during linking. This must work even if \$libdir does
16059 # not exist.
16060 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16061
16062 # Whether we need a single -rpath flag with a separated argument.
16063 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16064
16065 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16066 # resulting binary.
16067 hardcode_direct=$hardcode_direct_F77
16068
16069 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16070 # resulting binary.
16071 hardcode_minus_L=$hardcode_minus_L_F77
16072
16073 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16074 # the resulting binary.
16075 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16076
16077 # Set to yes if building a shared library automatically hardcodes DIR into the library
16078 # and all subsequent libraries and executables linked against it.
16079 hardcode_automatic=$hardcode_automatic_F77
16080
16081 # Variables whose values should be saved in libtool wrapper scripts and
16082 # restored at relink time.
16083 variables_saved_for_relink="$variables_saved_for_relink"
16084
16085 # Whether libtool must link a program against all its dependency libraries.
16086 link_all_deplibs=$link_all_deplibs_F77
16087
16088 # Compile-time system search path for libraries
16089 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16090
16091 # Run-time system search path for libraries
16092 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16093
16094 # Fix the shell variable \$srcfile for the compiler.
16095 fix_srcfile_path="$fix_srcfile_path_F77"
16096
16097 # Set to yes if exported symbols are required.
16098 always_export_symbols=$always_export_symbols_F77
16099
16100 # The commands to list exported symbols.
16101 export_symbols_cmds=$lt_export_symbols_cmds_F77
16102
16103 # The commands to extract the exported symbol list from a shared archive.
16104 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16105
16106 # Symbols that should not be listed in the preloaded symbols.
16107 exclude_expsyms=$lt_exclude_expsyms_F77
16108
16109 # Symbols that must always be exported.
16110 include_expsyms=$lt_include_expsyms_F77
16111
16112 # ### END LIBTOOL TAG CONFIG: $tagname
16113
16114 __EOF__
16115
16116
16117 else
16118   # If there is no Makefile yet, we rely on a make rule to execute
16119   # `config.status --recheck' to rerun these tests and create the
16120   # libtool script then.
16121   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16122   if test -f "$ltmain_in"; then
16123     test -f Makefile && make "$ltmain"
16124   fi
16125 fi
16126
16127
16128 ac_ext=c
16129 ac_cpp='$CPP $CPPFLAGS'
16130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16133
16134 CC="$lt_save_CC"
16135
16136         else
16137           tagname=""
16138         fi
16139         ;;
16140
16141       GCJ)
16142         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16143
16144
16145 # Source file extension for Java test sources.
16146 ac_ext=java
16147
16148 # Object file extension for compiled Java test sources.
16149 objext=o
16150 objext_GCJ=$objext
16151
16152 # Code to be used in simple compile tests
16153 lt_simple_compile_test_code="class foo {}\n"
16154
16155 # Code to be used in simple link tests
16156 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16157
16158 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16159
16160 # If no C compiler was specified, use CC.
16161 LTCC=${LTCC-"$CC"}
16162
16163 # If no C compiler flags were specified, use CFLAGS.
16164 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16165
16166 # Allow CC to be a program name with arguments.
16167 compiler=$CC
16168
16169
16170 # save warnings/boilerplate of simple test code
16171 ac_outfile=conftest.$ac_objext
16172 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16173 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16174 _lt_compiler_boilerplate=`cat conftest.err`
16175 $rm conftest*
16176
16177 ac_outfile=conftest.$ac_objext
16178 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16179 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16180 _lt_linker_boilerplate=`cat conftest.err`
16181 $rm conftest*
16182
16183
16184 # Allow CC to be a program name with arguments.
16185 lt_save_CC="$CC"
16186 CC=${GCJ-"gcj"}
16187 compiler=$CC
16188 compiler_GCJ=$CC
16189 for cc_temp in $compiler""; do
16190   case $cc_temp in
16191     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16192     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16193     \-*) ;;
16194     *) break;;
16195   esac
16196 done
16197 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16198
16199
16200 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16201 archive_cmds_need_lc_GCJ=no
16202
16203 old_archive_cmds_GCJ=$old_archive_cmds
16204
16205
16206 lt_prog_compiler_no_builtin_flag_GCJ=
16207
16208 if test "$GCC" = yes; then
16209   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16210
16211
16212 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16213 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16214 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16215   echo $ECHO_N "(cached) $ECHO_C" >&6
16216 else
16217   lt_cv_prog_compiler_rtti_exceptions=no
16218   ac_outfile=conftest.$ac_objext
16219    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16220    lt_compiler_flag="-fno-rtti -fno-exceptions"
16221    # Insert the option either (1) after the last *FLAGS variable, or
16222    # (2) before a word containing "conftest.", or (3) at the end.
16223    # Note that $ac_compile itself does not contain backslashes and begins
16224    # with a dollar sign (not a hyphen), so the echo should work correctly.
16225    # The option is referenced via a variable to avoid confusing sed.
16226    lt_compile=`echo "$ac_compile" | $SED \
16227    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16228    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16229    -e 's:$: $lt_compiler_flag:'`
16230    (eval echo "\"\$as_me:16230: $lt_compile\"" >&5)
16231    (eval "$lt_compile" 2>conftest.err)
16232    ac_status=$?
16233    cat conftest.err >&5
16234    echo "$as_me:16234: \$? = $ac_status" >&5
16235    if (exit $ac_status) && test -s "$ac_outfile"; then
16236      # The compiler can only warn and ignore the option if not recognized
16237      # So say no if there are warnings other than the usual output.
16238      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16239      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16240      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16241        lt_cv_prog_compiler_rtti_exceptions=yes
16242      fi
16243    fi
16244    $rm conftest*
16245
16246 fi
16247 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16248 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16249
16250 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16251     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16252 else
16253     :
16254 fi
16255
16256 fi
16257
16258 lt_prog_compiler_wl_GCJ=
16259 lt_prog_compiler_pic_GCJ=
16260 lt_prog_compiler_static_GCJ=
16261
16262 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16263 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16264
16265   if test "$GCC" = yes; then
16266     lt_prog_compiler_wl_GCJ='-Wl,'
16267     lt_prog_compiler_static_GCJ='-static'
16268
16269     case $host_os in
16270       aix*)
16271       # All AIX code is PIC.
16272       if test "$host_cpu" = ia64; then
16273         # AIX 5 now supports IA64 processor
16274         lt_prog_compiler_static_GCJ='-Bstatic'
16275       fi
16276       ;;
16277
16278     amigaos*)
16279       # FIXME: we need at least 68020 code to build shared libraries, but
16280       # adding the `-m68020' flag to GCC prevents building anything better,
16281       # like `-m68040'.
16282       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16283       ;;
16284
16285     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16286       # PIC is the default for these OSes.
16287       ;;
16288
16289     mingw* | pw32* | os2*)
16290       # This hack is so that the source file can tell whether it is being
16291       # built for inclusion in a dll (and should export symbols for example).
16292       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16293       ;;
16294
16295     darwin* | rhapsody*)
16296       # PIC is the default on this platform
16297       # Common symbols not allowed in MH_DYLIB files
16298       lt_prog_compiler_pic_GCJ='-fno-common'
16299       ;;
16300
16301     interix3*)
16302       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16303       # Instead, we relocate shared libraries at runtime.
16304       ;;
16305
16306     msdosdjgpp*)
16307       # Just because we use GCC doesn't mean we suddenly get shared libraries
16308       # on systems that don't support them.
16309       lt_prog_compiler_can_build_shared_GCJ=no
16310       enable_shared=no
16311       ;;
16312
16313     sysv4*MP*)
16314       if test -d /usr/nec; then
16315         lt_prog_compiler_pic_GCJ=-Kconform_pic
16316       fi
16317       ;;
16318
16319     hpux*)
16320       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16321       # not for PA HP-UX.
16322       case $host_cpu in
16323       hppa*64*|ia64*)
16324         # +Z the default
16325         ;;
16326       *)
16327         lt_prog_compiler_pic_GCJ='-fPIC'
16328         ;;
16329       esac
16330       ;;
16331
16332     *)
16333       lt_prog_compiler_pic_GCJ='-fPIC'
16334       ;;
16335     esac
16336   else
16337     # PORTME Check for flag to pass linker flags through the system compiler.
16338     case $host_os in
16339     aix*)
16340       lt_prog_compiler_wl_GCJ='-Wl,'
16341       if test "$host_cpu" = ia64; then
16342         # AIX 5 now supports IA64 processor
16343         lt_prog_compiler_static_GCJ='-Bstatic'
16344       else
16345         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16346       fi
16347       ;;
16348       darwin*)
16349         # PIC is the default on this platform
16350         # Common symbols not allowed in MH_DYLIB files
16351        case $cc_basename in
16352          xlc*)
16353          lt_prog_compiler_pic_GCJ='-qnocommon'
16354          lt_prog_compiler_wl_GCJ='-Wl,'
16355          ;;
16356        esac
16357        ;;
16358
16359     mingw* | pw32* | os2*)
16360       # This hack is so that the source file can tell whether it is being
16361       # built for inclusion in a dll (and should export symbols for example).
16362       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16363       ;;
16364
16365     hpux9* | hpux10* | hpux11*)
16366       lt_prog_compiler_wl_GCJ='-Wl,'
16367       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16368       # not for PA HP-UX.
16369       case $host_cpu in
16370       hppa*64*|ia64*)
16371         # +Z the default
16372         ;;
16373       *)
16374         lt_prog_compiler_pic_GCJ='+Z'
16375         ;;
16376       esac
16377       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16378       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16379       ;;
16380
16381     irix5* | irix6* | nonstopux*)
16382       lt_prog_compiler_wl_GCJ='-Wl,'
16383       # PIC (with -KPIC) is the default.
16384       lt_prog_compiler_static_GCJ='-non_shared'
16385       ;;
16386
16387     newsos6)
16388       lt_prog_compiler_pic_GCJ='-KPIC'
16389       lt_prog_compiler_static_GCJ='-Bstatic'
16390       ;;
16391
16392     linux* | k*bsd*-gnu)
16393       case $cc_basename in
16394       icc* | ecc*)
16395         lt_prog_compiler_wl_GCJ='-Wl,'
16396         lt_prog_compiler_pic_GCJ='-KPIC'
16397         lt_prog_compiler_static_GCJ='-static'
16398         ;;
16399       pgcc* | pgf77* | pgf90* | pgf95*)
16400         # Portland Group compilers (*not* the Pentium gcc compiler,
16401         # which looks to be a dead project)
16402         lt_prog_compiler_wl_GCJ='-Wl,'
16403         lt_prog_compiler_pic_GCJ='-fpic'
16404         lt_prog_compiler_static_GCJ='-Bstatic'
16405         ;;
16406       ccc*)
16407         lt_prog_compiler_wl_GCJ='-Wl,'
16408         # All Alpha code is PIC.
16409         lt_prog_compiler_static_GCJ='-non_shared'
16410         ;;
16411       esac
16412       ;;
16413
16414     osf3* | osf4* | osf5*)
16415       lt_prog_compiler_wl_GCJ='-Wl,'
16416       # All OSF/1 code is PIC.
16417       lt_prog_compiler_static_GCJ='-non_shared'
16418       ;;
16419
16420     solaris*)
16421       lt_prog_compiler_pic_GCJ='-KPIC'
16422       lt_prog_compiler_static_GCJ='-Bstatic'
16423       case $cc_basename in
16424       f77* | f90* | f95*)
16425         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16426       *)
16427         lt_prog_compiler_wl_GCJ='-Wl,';;
16428       esac
16429       ;;
16430
16431     sunos4*)
16432       lt_prog_compiler_wl_GCJ='-Qoption ld '
16433       lt_prog_compiler_pic_GCJ='-PIC'
16434       lt_prog_compiler_static_GCJ='-Bstatic'
16435       ;;
16436
16437     sysv4 | sysv4.2uw2* | sysv4.3*)
16438       lt_prog_compiler_wl_GCJ='-Wl,'
16439       lt_prog_compiler_pic_GCJ='-KPIC'
16440       lt_prog_compiler_static_GCJ='-Bstatic'
16441       ;;
16442
16443     sysv4*MP*)
16444       if test -d /usr/nec ;then
16445         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16446         lt_prog_compiler_static_GCJ='-Bstatic'
16447       fi
16448       ;;
16449
16450     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16451       lt_prog_compiler_wl_GCJ='-Wl,'
16452       lt_prog_compiler_pic_GCJ='-KPIC'
16453       lt_prog_compiler_static_GCJ='-Bstatic'
16454       ;;
16455
16456     unicos*)
16457       lt_prog_compiler_wl_GCJ='-Wl,'
16458       lt_prog_compiler_can_build_shared_GCJ=no
16459       ;;
16460
16461     uts4*)
16462       lt_prog_compiler_pic_GCJ='-pic'
16463       lt_prog_compiler_static_GCJ='-Bstatic'
16464       ;;
16465
16466     *)
16467       lt_prog_compiler_can_build_shared_GCJ=no
16468       ;;
16469     esac
16470   fi
16471
16472 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16473 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16474
16475 #
16476 # Check to make sure the PIC flag actually works.
16477 #
16478 if test -n "$lt_prog_compiler_pic_GCJ"; then
16479
16480 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16481 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16482 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16483   echo $ECHO_N "(cached) $ECHO_C" >&6
16484 else
16485   lt_prog_compiler_pic_works_GCJ=no
16486   ac_outfile=conftest.$ac_objext
16487    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16488    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16489    # Insert the option either (1) after the last *FLAGS variable, or
16490    # (2) before a word containing "conftest.", or (3) at the end.
16491    # Note that $ac_compile itself does not contain backslashes and begins
16492    # with a dollar sign (not a hyphen), so the echo should work correctly.
16493    # The option is referenced via a variable to avoid confusing sed.
16494    lt_compile=`echo "$ac_compile" | $SED \
16495    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16496    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16497    -e 's:$: $lt_compiler_flag:'`
16498    (eval echo "\"\$as_me:16498: $lt_compile\"" >&5)
16499    (eval "$lt_compile" 2>conftest.err)
16500    ac_status=$?
16501    cat conftest.err >&5
16502    echo "$as_me:16502: \$? = $ac_status" >&5
16503    if (exit $ac_status) && test -s "$ac_outfile"; then
16504      # The compiler can only warn and ignore the option if not recognized
16505      # So say no if there are warnings other than the usual output.
16506      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16507      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16508      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16509        lt_prog_compiler_pic_works_GCJ=yes
16510      fi
16511    fi
16512    $rm conftest*
16513
16514 fi
16515 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16516 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16517
16518 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16519     case $lt_prog_compiler_pic_GCJ in
16520      "" | " "*) ;;
16521      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16522      esac
16523 else
16524     lt_prog_compiler_pic_GCJ=
16525      lt_prog_compiler_can_build_shared_GCJ=no
16526 fi
16527
16528 fi
16529 case $host_os in
16530   # For platforms which do not support PIC, -DPIC is meaningless:
16531   *djgpp*)
16532     lt_prog_compiler_pic_GCJ=
16533     ;;
16534   *)
16535     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16536     ;;
16537 esac
16538
16539 #
16540 # Check to make sure the static flag actually works.
16541 #
16542 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16543 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16544 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16545 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16546   echo $ECHO_N "(cached) $ECHO_C" >&6
16547 else
16548   lt_prog_compiler_static_works_GCJ=no
16549    save_LDFLAGS="$LDFLAGS"
16550    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16551    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16552    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16553      # The linker can only warn and ignore the option if not recognized
16554      # So say no if there are warnings
16555      if test -s conftest.err; then
16556        # Append any errors to the config.log.
16557        cat conftest.err 1>&5
16558        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16559        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16560        if diff conftest.exp conftest.er2 >/dev/null; then
16561          lt_prog_compiler_static_works_GCJ=yes
16562        fi
16563      else
16564        lt_prog_compiler_static_works_GCJ=yes
16565      fi
16566    fi
16567    $rm conftest*
16568    LDFLAGS="$save_LDFLAGS"
16569
16570 fi
16571 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16572 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16573
16574 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16575     :
16576 else
16577     lt_prog_compiler_static_GCJ=
16578 fi
16579
16580
16581 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16582 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16583 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16584   echo $ECHO_N "(cached) $ECHO_C" >&6
16585 else
16586   lt_cv_prog_compiler_c_o_GCJ=no
16587    $rm -r conftest 2>/dev/null
16588    mkdir conftest
16589    cd conftest
16590    mkdir out
16591    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16592
16593    lt_compiler_flag="-o out/conftest2.$ac_objext"
16594    # Insert the option either (1) after the last *FLAGS variable, or
16595    # (2) before a word containing "conftest.", or (3) at the end.
16596    # Note that $ac_compile itself does not contain backslashes and begins
16597    # with a dollar sign (not a hyphen), so the echo should work correctly.
16598    lt_compile=`echo "$ac_compile" | $SED \
16599    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16600    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16601    -e 's:$: $lt_compiler_flag:'`
16602    (eval echo "\"\$as_me:16602: $lt_compile\"" >&5)
16603    (eval "$lt_compile" 2>out/conftest.err)
16604    ac_status=$?
16605    cat out/conftest.err >&5
16606    echo "$as_me:16606: \$? = $ac_status" >&5
16607    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16608    then
16609      # The compiler can only warn and ignore the option if not recognized
16610      # So say no if there are warnings
16611      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16612      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16613      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16614        lt_cv_prog_compiler_c_o_GCJ=yes
16615      fi
16616    fi
16617    chmod u+w . 2>&5
16618    $rm conftest*
16619    # SGI C++ compiler will create directory out/ii_files/ for
16620    # template instantiation
16621    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16622    $rm out/* && rmdir out
16623    cd ..
16624    rmdir conftest
16625    $rm conftest*
16626
16627 fi
16628 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16629 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16630
16631
16632 hard_links="nottested"
16633 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16634   # do not overwrite the value of need_locks provided by the user
16635   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16636 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16637   hard_links=yes
16638   $rm conftest*
16639   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16640   touch conftest.a
16641   ln conftest.a conftest.b 2>&5 || hard_links=no
16642   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16643   { echo "$as_me:$LINENO: result: $hard_links" >&5
16644 echo "${ECHO_T}$hard_links" >&6; }
16645   if test "$hard_links" = no; then
16646     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16647 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16648     need_locks=warn
16649   fi
16650 else
16651   need_locks=no
16652 fi
16653
16654 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16655 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16656
16657   runpath_var=
16658   allow_undefined_flag_GCJ=
16659   enable_shared_with_static_runtimes_GCJ=no
16660   archive_cmds_GCJ=
16661   archive_expsym_cmds_GCJ=
16662   old_archive_From_new_cmds_GCJ=
16663   old_archive_from_expsyms_cmds_GCJ=
16664   export_dynamic_flag_spec_GCJ=
16665   whole_archive_flag_spec_GCJ=
16666   thread_safe_flag_spec_GCJ=
16667   hardcode_libdir_flag_spec_GCJ=
16668   hardcode_libdir_flag_spec_ld_GCJ=
16669   hardcode_libdir_separator_GCJ=
16670   hardcode_direct_GCJ=no
16671   hardcode_minus_L_GCJ=no
16672   hardcode_shlibpath_var_GCJ=unsupported
16673   link_all_deplibs_GCJ=unknown
16674   hardcode_automatic_GCJ=no
16675   module_cmds_GCJ=
16676   module_expsym_cmds_GCJ=
16677   always_export_symbols_GCJ=no
16678   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16679   # include_expsyms should be a list of space-separated symbols to be *always*
16680   # included in the symbol list
16681   include_expsyms_GCJ=
16682   # exclude_expsyms can be an extended regexp of symbols to exclude
16683   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16684   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16685   # as well as any symbol that contains `d'.
16686   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16687   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16688   # platforms (ab)use it in PIC code, but their linkers get confused if
16689   # the symbol is explicitly referenced.  Since portable code cannot
16690   # rely on this symbol name, it's probably fine to never include it in
16691   # preloaded symbol tables.
16692   extract_expsyms_cmds=
16693   # Just being paranoid about ensuring that cc_basename is set.
16694   for cc_temp in $compiler""; do
16695   case $cc_temp in
16696     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16697     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16698     \-*) ;;
16699     *) break;;
16700   esac
16701 done
16702 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16703
16704   case $host_os in
16705   cygwin* | mingw* | pw32*)
16706     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16707     # When not using gcc, we currently assume that we are using
16708     # Microsoft Visual C++.
16709     if test "$GCC" != yes; then
16710       with_gnu_ld=no
16711     fi
16712     ;;
16713   interix*)
16714     # we just hope/assume this is gcc and not c89 (= MSVC++)
16715     with_gnu_ld=yes
16716     ;;
16717   openbsd*)
16718     with_gnu_ld=no
16719     ;;
16720   esac
16721
16722   ld_shlibs_GCJ=yes
16723   if test "$with_gnu_ld" = yes; then
16724     # If archive_cmds runs LD, not CC, wlarc should be empty
16725     wlarc='${wl}'
16726
16727     # Set some defaults for GNU ld with shared library support. These
16728     # are reset later if shared libraries are not supported. Putting them
16729     # here allows them to be overridden if necessary.
16730     runpath_var=LD_RUN_PATH
16731     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16732     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16733     # ancient GNU ld didn't support --whole-archive et. al.
16734     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16735         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16736       else
16737         whole_archive_flag_spec_GCJ=
16738     fi
16739     supports_anon_versioning=no
16740     case `$LD -v 2>/dev/null` in
16741       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16742       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16743       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16744       *\ 2.11.*) ;; # other 2.11 versions
16745       *) supports_anon_versioning=yes ;;
16746     esac
16747
16748     # See if GNU ld supports shared libraries.
16749     case $host_os in
16750     aix3* | aix4* | aix5*)
16751       # On AIX/PPC, the GNU linker is very broken
16752       if test "$host_cpu" != ia64; then
16753         ld_shlibs_GCJ=no
16754         cat <<EOF 1>&2
16755
16756 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16757 *** to be unable to reliably create shared libraries on AIX.
16758 *** Therefore, libtool is disabling shared libraries support.  If you
16759 *** really care for shared libraries, you may want to modify your PATH
16760 *** so that a non-GNU linker is found, and then restart.
16761
16762 EOF
16763       fi
16764       ;;
16765
16766     amigaos*)
16767       archive_cmds_GCJ='$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)'
16768       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16769       hardcode_minus_L_GCJ=yes
16770
16771       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16772       # that the semantics of dynamic libraries on AmigaOS, at least up
16773       # to version 4, is to share data among multiple programs linked
16774       # with the same dynamic library.  Since this doesn't match the
16775       # behavior of shared libraries on other platforms, we can't use
16776       # them.
16777       ld_shlibs_GCJ=no
16778       ;;
16779
16780     beos*)
16781       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16782         allow_undefined_flag_GCJ=unsupported
16783         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16784         # support --undefined.  This deserves some investigation.  FIXME
16785         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16786       else
16787         ld_shlibs_GCJ=no
16788       fi
16789       ;;
16790
16791     cygwin* | mingw* | pw32*)
16792       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16793       # as there is no search path for DLLs.
16794       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16795       allow_undefined_flag_GCJ=unsupported
16796       always_export_symbols_GCJ=no
16797       enable_shared_with_static_runtimes_GCJ=yes
16798       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16799
16800       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16801         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16802         # If the export-symbols file already is a .def file (1st line
16803         # is EXPORTS), use it as is; otherwise, prepend...
16804         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16805           cp $export_symbols $output_objdir/$soname.def;
16806         else
16807           echo EXPORTS > $output_objdir/$soname.def;
16808           cat $export_symbols >> $output_objdir/$soname.def;
16809         fi~
16810         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16811       else
16812         ld_shlibs_GCJ=no
16813       fi
16814       ;;
16815
16816     interix3*)
16817       hardcode_direct_GCJ=no
16818       hardcode_shlibpath_var_GCJ=no
16819       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16820       export_dynamic_flag_spec_GCJ='${wl}-E'
16821       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16822       # Instead, shared libraries are loaded at an image base (0x10000000 by
16823       # default) and relocated if they conflict, which is a slow very memory
16824       # consuming and fragmenting process.  To avoid this, we pick a random,
16825       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16826       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16827       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16828       archive_expsym_cmds_GCJ='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'
16829       ;;
16830
16831     linux* | k*bsd*-gnu)
16832       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16833         tmp_addflag=
16834         case $cc_basename,$host_cpu in
16835         pgcc*)                          # Portland Group C compiler
16836           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16837           tmp_addflag=' $pic_flag'
16838           ;;
16839         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16840           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16841           tmp_addflag=' $pic_flag -Mnomain' ;;
16842         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16843           tmp_addflag=' -i_dynamic' ;;
16844         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16845           tmp_addflag=' -i_dynamic -nofor_main' ;;
16846         ifc* | ifort*)                  # Intel Fortran compiler
16847           tmp_addflag=' -nofor_main' ;;
16848         esac
16849         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16850
16851         if test $supports_anon_versioning = yes; then
16852           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16853   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16854   $echo "local: *; };" >> $output_objdir/$libname.ver~
16855           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16856         fi
16857         link_all_deplibs_GCJ=no
16858       else
16859         ld_shlibs_GCJ=no
16860       fi
16861       ;;
16862
16863     netbsd* | netbsdelf*-gnu)
16864       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16865         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16866         wlarc=
16867       else
16868         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16869         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16870       fi
16871       ;;
16872
16873     solaris*)
16874       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16875         ld_shlibs_GCJ=no
16876         cat <<EOF 1>&2
16877
16878 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16879 *** create shared libraries on Solaris systems.  Therefore, libtool
16880 *** is disabling shared libraries support.  We urge you to upgrade GNU
16881 *** binutils to release 2.9.1 or newer.  Another option is to modify
16882 *** your PATH or compiler configuration so that the native linker is
16883 *** used, and then restart.
16884
16885 EOF
16886       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16887         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16888         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16889       else
16890         ld_shlibs_GCJ=no
16891       fi
16892       ;;
16893
16894     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16895       case `$LD -v 2>&1` in
16896         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16897         ld_shlibs_GCJ=no
16898         cat <<_LT_EOF 1>&2
16899
16900 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16901 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16902 *** is disabling shared libraries support.  We urge you to upgrade GNU
16903 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16904 *** your PATH or compiler configuration so that the native linker is
16905 *** used, and then restart.
16906
16907 _LT_EOF
16908         ;;
16909         *)
16910           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16911             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16912             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16913             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16914           else
16915             ld_shlibs_GCJ=no
16916           fi
16917         ;;
16918       esac
16919       ;;
16920
16921     sunos4*)
16922       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16923       wlarc=
16924       hardcode_direct_GCJ=yes
16925       hardcode_shlibpath_var_GCJ=no
16926       ;;
16927
16928     *)
16929       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16930         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16931         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16932       else
16933         ld_shlibs_GCJ=no
16934       fi
16935       ;;
16936     esac
16937
16938     if test "$ld_shlibs_GCJ" = no; then
16939       runpath_var=
16940       hardcode_libdir_flag_spec_GCJ=
16941       export_dynamic_flag_spec_GCJ=
16942       whole_archive_flag_spec_GCJ=
16943     fi
16944   else
16945     # PORTME fill in a description of your system's linker (not GNU ld)
16946     case $host_os in
16947     aix3*)
16948       allow_undefined_flag_GCJ=unsupported
16949       always_export_symbols_GCJ=yes
16950       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16951       # Note: this linker hardcodes the directories in LIBPATH if there
16952       # are no directories specified by -L.
16953       hardcode_minus_L_GCJ=yes
16954       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16955         # Neither direct hardcoding nor static linking is supported with a
16956         # broken collect2.
16957         hardcode_direct_GCJ=unsupported
16958       fi
16959       ;;
16960
16961     aix4* | aix5*)
16962       if test "$host_cpu" = ia64; then
16963         # On IA64, the linker does run time linking by default, so we don't
16964         # have to do anything special.
16965         aix_use_runtimelinking=no
16966         exp_sym_flag='-Bexport'
16967         no_entry_flag=""
16968       else
16969         # If we're using GNU nm, then we don't want the "-C" option.
16970         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16971         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16972           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16973         else
16974           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16975         fi
16976         aix_use_runtimelinking=no
16977
16978         # Test if we are trying to use run time linking or normal
16979         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16980         # need to do runtime linking.
16981         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16982           for ld_flag in $LDFLAGS; do
16983           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16984             aix_use_runtimelinking=yes
16985             break
16986           fi
16987           done
16988           ;;
16989         esac
16990
16991         exp_sym_flag='-bexport'
16992         no_entry_flag='-bnoentry'
16993       fi
16994
16995       # When large executables or shared objects are built, AIX ld can
16996       # have problems creating the table of contents.  If linking a library
16997       # or program results in "error TOC overflow" add -mminimal-toc to
16998       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16999       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17000
17001       archive_cmds_GCJ=''
17002       hardcode_direct_GCJ=yes
17003       hardcode_libdir_separator_GCJ=':'
17004       link_all_deplibs_GCJ=yes
17005
17006       if test "$GCC" = yes; then
17007         case $host_os in aix4.[012]|aix4.[012].*)
17008         # We only want to do this on AIX 4.2 and lower, the check
17009         # below for broken collect2 doesn't work under 4.3+
17010           collect2name=`${CC} -print-prog-name=collect2`
17011           if test -f "$collect2name" && \
17012            strings "$collect2name" | grep resolve_lib_name >/dev/null
17013           then
17014           # We have reworked collect2
17015           hardcode_direct_GCJ=yes
17016           else
17017           # We have old collect2
17018           hardcode_direct_GCJ=unsupported
17019           # It fails to find uninstalled libraries when the uninstalled
17020           # path is not listed in the libpath.  Setting hardcode_minus_L
17021           # to unsupported forces relinking
17022           hardcode_minus_L_GCJ=yes
17023           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17024           hardcode_libdir_separator_GCJ=
17025           fi
17026           ;;
17027         esac
17028         shared_flag='-shared'
17029         if test "$aix_use_runtimelinking" = yes; then
17030           shared_flag="$shared_flag "'${wl}-G'
17031         fi
17032       else
17033         # not using gcc
17034         if test "$host_cpu" = ia64; then
17035         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17036         # chokes on -Wl,-G. The following line is correct:
17037           shared_flag='-G'
17038         else
17039           if test "$aix_use_runtimelinking" = yes; then
17040             shared_flag='${wl}-G'
17041           else
17042             shared_flag='${wl}-bM:SRE'
17043           fi
17044         fi
17045       fi
17046
17047       # It seems that -bexpall does not export symbols beginning with
17048       # underscore (_), so it is better to generate a list of symbols to export.
17049       always_export_symbols_GCJ=yes
17050       if test "$aix_use_runtimelinking" = yes; then
17051         # Warning - without using the other runtime loading flags (-brtl),
17052         # -berok will link without error, but may produce a broken library.
17053         allow_undefined_flag_GCJ='-berok'
17054        # Determine the default libpath from the value encoded in an empty executable.
17055        cat >conftest.$ac_ext <<_ACEOF
17056 /* confdefs.h.  */
17057 _ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h.  */
17061
17062 int
17063 main ()
17064 {
17065
17066   ;
17067   return 0;
17068 }
17069 _ACEOF
17070 rm -f conftest.$ac_objext conftest$ac_exeext
17071 if { (ac_try="$ac_link"
17072 case "(($ac_try" in
17073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074   *) ac_try_echo=$ac_try;;
17075 esac
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077   (eval "$ac_link") 2>conftest.er1
17078   ac_status=$?
17079   grep -v '^ *+' conftest.er1 >conftest.err
17080   rm -f conftest.er1
17081   cat conftest.err >&5
17082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083   (exit $ac_status); } && {
17084          test -z "$ac_c_werror_flag" ||
17085          test ! -s conftest.err
17086        } && test -s conftest$ac_exeext &&
17087        $as_test_x conftest$ac_exeext; then
17088
17089 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17090 }'`
17091 # Check for a 64-bit object if we didn't find anything.
17092 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17093 }'`; fi
17094 else
17095   echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17097
17098
17099 fi
17100
17101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17102       conftest$ac_exeext conftest.$ac_ext
17103 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17104
17105        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17106         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17107        else
17108         if test "$host_cpu" = ia64; then
17109           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17110           allow_undefined_flag_GCJ="-z nodefs"
17111           archive_expsym_cmds_GCJ="\$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"
17112         else
17113          # Determine the default libpath from the value encoded in an empty executable.
17114          cat >conftest.$ac_ext <<_ACEOF
17115 /* confdefs.h.  */
17116 _ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h.  */
17120
17121 int
17122 main ()
17123 {
17124
17125   ;
17126   return 0;
17127 }
17128 _ACEOF
17129 rm -f conftest.$ac_objext conftest$ac_exeext
17130 if { (ac_try="$ac_link"
17131 case "(($ac_try" in
17132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133   *) ac_try_echo=$ac_try;;
17134 esac
17135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136   (eval "$ac_link") 2>conftest.er1
17137   ac_status=$?
17138   grep -v '^ *+' conftest.er1 >conftest.err
17139   rm -f conftest.er1
17140   cat conftest.err >&5
17141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142   (exit $ac_status); } && {
17143          test -z "$ac_c_werror_flag" ||
17144          test ! -s conftest.err
17145        } && test -s conftest$ac_exeext &&
17146        $as_test_x conftest$ac_exeext; then
17147
17148 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17149 }'`
17150 # Check for a 64-bit object if we didn't find anything.
17151 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17152 }'`; fi
17153 else
17154   echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17156
17157
17158 fi
17159
17160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17161       conftest$ac_exeext conftest.$ac_ext
17162 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17163
17164          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17165           # Warning - without using the other run time loading flags,
17166           # -berok will link without error, but may produce a broken library.
17167           no_undefined_flag_GCJ=' ${wl}-bernotok'
17168           allow_undefined_flag_GCJ=' ${wl}-berok'
17169           # Exported symbols can be pulled into shared objects from archives
17170           whole_archive_flag_spec_GCJ='$convenience'
17171           archive_cmds_need_lc_GCJ=yes
17172           # This is similar to how AIX traditionally builds its shared libraries.
17173           archive_expsym_cmds_GCJ="\$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'
17174         fi
17175       fi
17176       ;;
17177
17178     amigaos*)
17179       archive_cmds_GCJ='$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)'
17180       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17181       hardcode_minus_L_GCJ=yes
17182       # see comment about different semantics on the GNU ld section
17183       ld_shlibs_GCJ=no
17184       ;;
17185
17186     bsdi[45]*)
17187       export_dynamic_flag_spec_GCJ=-rdynamic
17188       ;;
17189
17190     cygwin* | mingw* | pw32*)
17191       # When not using gcc, we currently assume that we are using
17192       # Microsoft Visual C++.
17193       # hardcode_libdir_flag_spec is actually meaningless, as there is
17194       # no search path for DLLs.
17195       hardcode_libdir_flag_spec_GCJ=' '
17196       allow_undefined_flag_GCJ=unsupported
17197       # Tell ltmain to make .lib files, not .a files.
17198       libext=lib
17199       # Tell ltmain to make .dll files, not .so files.
17200       shrext_cmds=".dll"
17201       # FIXME: Setting linknames here is a bad hack.
17202       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17203       # The linker will automatically build a .lib file if we build a DLL.
17204       old_archive_From_new_cmds_GCJ='true'
17205       # FIXME: Should let the user specify the lib program.
17206       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17207       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17208       enable_shared_with_static_runtimes_GCJ=yes
17209       ;;
17210
17211     darwin* | rhapsody*)
17212       case $host_os in
17213         rhapsody* | darwin1.[012])
17214          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17215          ;;
17216        *) # Darwin 1.3 on
17217          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17218            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17219          else
17220            case ${MACOSX_DEPLOYMENT_TARGET} in
17221              10.[012])
17222                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17223                ;;
17224              10.*)
17225                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17226                ;;
17227            esac
17228          fi
17229          ;;
17230       esac
17231       archive_cmds_need_lc_GCJ=no
17232       hardcode_direct_GCJ=no
17233       hardcode_automatic_GCJ=yes
17234       hardcode_shlibpath_var_GCJ=unsupported
17235       whole_archive_flag_spec_GCJ=''
17236       link_all_deplibs_GCJ=yes
17237     if test "$GCC" = yes ; then
17238         output_verbose_link_cmd='echo'
17239         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17240       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17241       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17242       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17243       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17244     else
17245       case $cc_basename in
17246         xlc*)
17247          output_verbose_link_cmd='echo'
17248          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17249          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17250           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17251          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17252           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17253           ;;
17254        *)
17255          ld_shlibs_GCJ=no
17256           ;;
17257       esac
17258     fi
17259       ;;
17260
17261     dgux*)
17262       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17263       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17264       hardcode_shlibpath_var_GCJ=no
17265       ;;
17266
17267     freebsd1*)
17268       ld_shlibs_GCJ=no
17269       ;;
17270
17271     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17272     # support.  Future versions do this automatically, but an explicit c++rt0.o
17273     # does not break anything, and helps significantly (at the cost of a little
17274     # extra space).
17275     freebsd2.2*)
17276       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17277       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17278       hardcode_direct_GCJ=yes
17279       hardcode_shlibpath_var_GCJ=no
17280       ;;
17281
17282     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17283     freebsd2*)
17284       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17285       hardcode_direct_GCJ=yes
17286       hardcode_minus_L_GCJ=yes
17287       hardcode_shlibpath_var_GCJ=no
17288       ;;
17289
17290     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17291     freebsd* | dragonfly*)
17292       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17293       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17294       hardcode_direct_GCJ=yes
17295       hardcode_shlibpath_var_GCJ=no
17296       ;;
17297
17298     hpux9*)
17299       if test "$GCC" = yes; then
17300         archive_cmds_GCJ='$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'
17301       else
17302         archive_cmds_GCJ='$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'
17303       fi
17304       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17305       hardcode_libdir_separator_GCJ=:
17306       hardcode_direct_GCJ=yes
17307
17308       # hardcode_minus_L: Not really in the search PATH,
17309       # but as the default location of the library.
17310       hardcode_minus_L_GCJ=yes
17311       export_dynamic_flag_spec_GCJ='${wl}-E'
17312       ;;
17313
17314     hpux10*)
17315       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17316         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17317       else
17318         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17319       fi
17320       if test "$with_gnu_ld" = no; then
17321         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17322         hardcode_libdir_separator_GCJ=:
17323
17324         hardcode_direct_GCJ=yes
17325         export_dynamic_flag_spec_GCJ='${wl}-E'
17326
17327         # hardcode_minus_L: Not really in the search PATH,
17328         # but as the default location of the library.
17329         hardcode_minus_L_GCJ=yes
17330       fi
17331       ;;
17332
17333     hpux11*)
17334       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17335         case $host_cpu in
17336         hppa*64*)
17337           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17338           ;;
17339         ia64*)
17340           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17341           ;;
17342         *)
17343           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17344           ;;
17345         esac
17346       else
17347         case $host_cpu in
17348         hppa*64*)
17349           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17350           ;;
17351         ia64*)
17352           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17353           ;;
17354         *)
17355           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17356           ;;
17357         esac
17358       fi
17359       if test "$with_gnu_ld" = no; then
17360         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17361         hardcode_libdir_separator_GCJ=:
17362
17363         case $host_cpu in
17364         hppa*64*|ia64*)
17365           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17366           hardcode_direct_GCJ=no
17367           hardcode_shlibpath_var_GCJ=no
17368           ;;
17369         *)
17370           hardcode_direct_GCJ=yes
17371           export_dynamic_flag_spec_GCJ='${wl}-E'
17372
17373           # hardcode_minus_L: Not really in the search PATH,
17374           # but as the default location of the library.
17375           hardcode_minus_L_GCJ=yes
17376           ;;
17377         esac
17378       fi
17379       ;;
17380
17381     irix5* | irix6* | nonstopux*)
17382       if test "$GCC" = yes; then
17383         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17384       else
17385         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17386         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17387       fi
17388       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17389       hardcode_libdir_separator_GCJ=:
17390       link_all_deplibs_GCJ=yes
17391       ;;
17392
17393     netbsd* | netbsdelf*-gnu)
17394       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17395         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17396       else
17397         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17398       fi
17399       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17400       hardcode_direct_GCJ=yes
17401       hardcode_shlibpath_var_GCJ=no
17402       ;;
17403
17404     newsos6)
17405       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17406       hardcode_direct_GCJ=yes
17407       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17408       hardcode_libdir_separator_GCJ=:
17409       hardcode_shlibpath_var_GCJ=no
17410       ;;
17411
17412     openbsd*)
17413       hardcode_direct_GCJ=yes
17414       hardcode_shlibpath_var_GCJ=no
17415       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17416         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17417         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17418         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17419         export_dynamic_flag_spec_GCJ='${wl}-E'
17420       else
17421        case $host_os in
17422          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17423            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17424            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17425            ;;
17426          *)
17427            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17428            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17429            ;;
17430        esac
17431       fi
17432       ;;
17433
17434     os2*)
17435       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17436       hardcode_minus_L_GCJ=yes
17437       allow_undefined_flag_GCJ=unsupported
17438       archive_cmds_GCJ='$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'
17439       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17440       ;;
17441
17442     osf3*)
17443       if test "$GCC" = yes; then
17444         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17445         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17446       else
17447         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17448         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17449       fi
17450       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17451       hardcode_libdir_separator_GCJ=:
17452       ;;
17453
17454     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17455       if test "$GCC" = yes; then
17456         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17457         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17458         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17459       else
17460         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17461         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17462         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17463         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17464
17465         # Both c and cxx compiler support -rpath directly
17466         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17467       fi
17468       hardcode_libdir_separator_GCJ=:
17469       ;;
17470
17471     solaris*)
17472       no_undefined_flag_GCJ=' -z text'
17473       if test "$GCC" = yes; then
17474         wlarc='${wl}'
17475         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17476         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17477           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17478       else
17479         wlarc=''
17480         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17481         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17482         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17483       fi
17484       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17485       hardcode_shlibpath_var_GCJ=no
17486       case $host_os in
17487       solaris2.[0-5] | solaris2.[0-5].*) ;;
17488       *)
17489         # The compiler driver will combine linker options so we
17490         # cannot just pass the convience library names through
17491         # without $wl, iff we do not link with $LD.
17492         # Luckily, gcc supports the same syntax we need for Sun Studio.
17493         # Supported since Solaris 2.6 (maybe 2.5.1?)
17494         case $wlarc in
17495         '')
17496           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17497         *)
17498           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17499         esac ;;
17500       esac
17501       link_all_deplibs_GCJ=yes
17502       ;;
17503
17504     sunos4*)
17505       if test "x$host_vendor" = xsequent; then
17506         # Use $CC to link under sequent, because it throws in some extra .o
17507         # files that make .init and .fini sections work.
17508         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17509       else
17510         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17511       fi
17512       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17513       hardcode_direct_GCJ=yes
17514       hardcode_minus_L_GCJ=yes
17515       hardcode_shlibpath_var_GCJ=no
17516       ;;
17517
17518     sysv4)
17519       case $host_vendor in
17520         sni)
17521           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17522           hardcode_direct_GCJ=yes # is this really true???
17523         ;;
17524         siemens)
17525           ## LD is ld it makes a PLAMLIB
17526           ## CC just makes a GrossModule.
17527           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17528           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17529           hardcode_direct_GCJ=no
17530         ;;
17531         motorola)
17532           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17533           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17534         ;;
17535       esac
17536       runpath_var='LD_RUN_PATH'
17537       hardcode_shlibpath_var_GCJ=no
17538       ;;
17539
17540     sysv4.3*)
17541       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17542       hardcode_shlibpath_var_GCJ=no
17543       export_dynamic_flag_spec_GCJ='-Bexport'
17544       ;;
17545
17546     sysv4*MP*)
17547       if test -d /usr/nec; then
17548         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17549         hardcode_shlibpath_var_GCJ=no
17550         runpath_var=LD_RUN_PATH
17551         hardcode_runpath_var=yes
17552         ld_shlibs_GCJ=yes
17553       fi
17554       ;;
17555
17556     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17557       no_undefined_flag_GCJ='${wl}-z,text'
17558       archive_cmds_need_lc_GCJ=no
17559       hardcode_shlibpath_var_GCJ=no
17560       runpath_var='LD_RUN_PATH'
17561
17562       if test "$GCC" = yes; then
17563         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17564         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17565       else
17566         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17567         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17568       fi
17569       ;;
17570
17571     sysv5* | sco3.2v5* | sco5v6*)
17572       # Note: We can NOT use -z defs as we might desire, because we do not
17573       # link with -lc, and that would cause any symbols used from libc to
17574       # always be unresolved, which means just about no library would
17575       # ever link correctly.  If we're not using GNU ld we use -z text
17576       # though, which does catch some bad symbols but isn't as heavy-handed
17577       # as -z defs.
17578       no_undefined_flag_GCJ='${wl}-z,text'
17579       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17580       archive_cmds_need_lc_GCJ=no
17581       hardcode_shlibpath_var_GCJ=no
17582       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17583       hardcode_libdir_separator_GCJ=':'
17584       link_all_deplibs_GCJ=yes
17585       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17586       runpath_var='LD_RUN_PATH'
17587
17588       if test "$GCC" = yes; then
17589         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17590         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17591       else
17592         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17593         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17594       fi
17595       ;;
17596
17597     uts4*)
17598       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17599       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17600       hardcode_shlibpath_var_GCJ=no
17601       ;;
17602
17603     *)
17604       ld_shlibs_GCJ=no
17605       ;;
17606     esac
17607   fi
17608
17609 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17610 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17611 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17612
17613 #
17614 # Do we need to explicitly link libc?
17615 #
17616 case "x$archive_cmds_need_lc_GCJ" in
17617 x|xyes)
17618   # Assume -lc should be added
17619   archive_cmds_need_lc_GCJ=yes
17620
17621   if test "$enable_shared" = yes && test "$GCC" = yes; then
17622     case $archive_cmds_GCJ in
17623     *'~'*)
17624       # FIXME: we may have to deal with multi-command sequences.
17625       ;;
17626     '$CC '*)
17627       # Test whether the compiler implicitly links with -lc since on some
17628       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17629       # to ld, don't add -lc before -lgcc.
17630       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17631 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17632       $rm conftest*
17633       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17634
17635       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17636   (eval $ac_compile) 2>&5
17637   ac_status=$?
17638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639   (exit $ac_status); } 2>conftest.err; then
17640         soname=conftest
17641         lib=conftest
17642         libobjs=conftest.$ac_objext
17643         deplibs=
17644         wl=$lt_prog_compiler_wl_GCJ
17645         pic_flag=$lt_prog_compiler_pic_GCJ
17646         compiler_flags=-v
17647         linker_flags=-v
17648         verstring=
17649         output_objdir=.
17650         libname=conftest
17651         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17652         allow_undefined_flag_GCJ=
17653         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17654   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17655   ac_status=$?
17656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657   (exit $ac_status); }
17658         then
17659           archive_cmds_need_lc_GCJ=no
17660         else
17661           archive_cmds_need_lc_GCJ=yes
17662         fi
17663         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17664       else
17665         cat conftest.err 1>&5
17666       fi
17667       $rm conftest*
17668       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17669 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17670       ;;
17671     esac
17672   fi
17673   ;;
17674 esac
17675
17676 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17677 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17678 library_names_spec=
17679 libname_spec='lib$name'
17680 soname_spec=
17681 shrext_cmds=".so"
17682 postinstall_cmds=
17683 postuninstall_cmds=
17684 finish_cmds=
17685 finish_eval=
17686 shlibpath_var=
17687 shlibpath_overrides_runpath=unknown
17688 version_type=none
17689 dynamic_linker="$host_os ld.so"
17690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17691 if test "$GCC" = yes; then
17692   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17693   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17694     # if the path contains ";" then we assume it to be the separator
17695     # otherwise default to the standard path separator (i.e. ":") - it is
17696     # assumed that no part of a normal pathname contains ";" but that should
17697     # okay in the real world where ";" in dirpaths is itself problematic.
17698     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17699   else
17700     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17701   fi
17702 else
17703   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17704 fi
17705 need_lib_prefix=unknown
17706 hardcode_into_libs=no
17707
17708 # when you set need_version to no, make sure it does not cause -set_version
17709 # flags to be left without arguments
17710 need_version=unknown
17711
17712 case $host_os in
17713 aix3*)
17714   version_type=linux
17715   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17716   shlibpath_var=LIBPATH
17717
17718   # AIX 3 has no versioning support, so we append a major version to the name.
17719   soname_spec='${libname}${release}${shared_ext}$major'
17720   ;;
17721
17722 aix4* | aix5*)
17723   version_type=linux
17724   need_lib_prefix=no
17725   need_version=no
17726   hardcode_into_libs=yes
17727   if test "$host_cpu" = ia64; then
17728     # AIX 5 supports IA64
17729     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17730     shlibpath_var=LD_LIBRARY_PATH
17731   else
17732     # With GCC up to 2.95.x, collect2 would create an import file
17733     # for dependence libraries.  The import file would start with
17734     # the line `#! .'.  This would cause the generated library to
17735     # depend on `.', always an invalid library.  This was fixed in
17736     # development snapshots of GCC prior to 3.0.
17737     case $host_os in
17738       aix4 | aix4.[01] | aix4.[01].*)
17739       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17740            echo ' yes '
17741            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17742         :
17743       else
17744         can_build_shared=no
17745       fi
17746       ;;
17747     esac
17748     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17749     # soname into executable. Probably we can add versioning support to
17750     # collect2, so additional links can be useful in future.
17751     if test "$aix_use_runtimelinking" = yes; then
17752       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17753       # instead of lib<name>.a to let people know that these are not
17754       # typical AIX shared libraries.
17755       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17756     else
17757       # We preserve .a as extension for shared libraries through AIX4.2
17758       # and later when we are not doing run time linking.
17759       library_names_spec='${libname}${release}.a $libname.a'
17760       soname_spec='${libname}${release}${shared_ext}$major'
17761     fi
17762     shlibpath_var=LIBPATH
17763   fi
17764   ;;
17765
17766 amigaos*)
17767   library_names_spec='$libname.ixlibrary $libname.a'
17768   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17769   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'
17770   ;;
17771
17772 beos*)
17773   library_names_spec='${libname}${shared_ext}'
17774   dynamic_linker="$host_os ld.so"
17775   shlibpath_var=LIBRARY_PATH
17776   ;;
17777
17778 bsdi[45]*)
17779   version_type=linux
17780   need_version=no
17781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17782   soname_spec='${libname}${release}${shared_ext}$major'
17783   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17784   shlibpath_var=LD_LIBRARY_PATH
17785   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17786   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17787   # the default ld.so.conf also contains /usr/contrib/lib and
17788   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17789   # libtool to hard-code these into programs
17790   ;;
17791
17792 cygwin* | mingw* | pw32*)
17793   version_type=windows
17794   shrext_cmds=".dll"
17795   need_version=no
17796   need_lib_prefix=no
17797
17798   case $GCC,$host_os in
17799   yes,cygwin* | yes,mingw* | yes,pw32*)
17800     library_names_spec='$libname.dll.a'
17801     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17802     postinstall_cmds='base_file=`basename \${file}`~
17803       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17804       dldir=$destdir/`dirname \$dlpath`~
17805       test -d \$dldir || mkdir -p \$dldir~
17806       $install_prog $dir/$dlname \$dldir/$dlname~
17807       chmod a+x \$dldir/$dlname'
17808     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17809       dlpath=$dir/\$dldll~
17810        $rm \$dlpath'
17811     shlibpath_overrides_runpath=yes
17812
17813     case $host_os in
17814     cygwin*)
17815       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17816       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17817       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17818       ;;
17819     mingw*)
17820       # MinGW DLLs use traditional 'lib' prefix
17821       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17822       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17823       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17824         # It is most probably a Windows format PATH printed by
17825         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17826         # path with ; separators, and with drive letters. We can handle the
17827         # drive letters (cygwin fileutils understands them), so leave them,
17828         # especially as we might pass files found there to a mingw objdump,
17829         # which wouldn't understand a cygwinified path. Ahh.
17830         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17831       else
17832         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17833       fi
17834       ;;
17835     pw32*)
17836       # pw32 DLLs use 'pw' prefix rather than 'lib'
17837       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17838       ;;
17839     esac
17840     ;;
17841
17842   *)
17843     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17844     ;;
17845   esac
17846   dynamic_linker='Win32 ld.exe'
17847   # FIXME: first we should search . and the directory the executable is in
17848   shlibpath_var=PATH
17849   ;;
17850
17851 darwin* | rhapsody*)
17852   dynamic_linker="$host_os dyld"
17853   version_type=darwin
17854   need_lib_prefix=no
17855   need_version=no
17856   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17857   soname_spec='${libname}${release}${major}$shared_ext'
17858   shlibpath_overrides_runpath=yes
17859   shlibpath_var=DYLD_LIBRARY_PATH
17860   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17861   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17862   if test "$GCC" = yes; then
17863     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17864   else
17865     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17866   fi
17867   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17868   ;;
17869
17870 dgux*)
17871   version_type=linux
17872   need_lib_prefix=no
17873   need_version=no
17874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17875   soname_spec='${libname}${release}${shared_ext}$major'
17876   shlibpath_var=LD_LIBRARY_PATH
17877   ;;
17878
17879 freebsd1*)
17880   dynamic_linker=no
17881   ;;
17882
17883 freebsd* | dragonfly*)
17884   # DragonFly does not have aout.  When/if they implement a new
17885   # versioning mechanism, adjust this.
17886   if test -x /usr/bin/objformat; then
17887     objformat=`/usr/bin/objformat`
17888   else
17889     case $host_os in
17890     freebsd[123]*) objformat=aout ;;
17891     *) objformat=elf ;;
17892     esac
17893   fi
17894   version_type=freebsd-$objformat
17895   case $version_type in
17896     freebsd-elf*)
17897       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17898       need_version=no
17899       need_lib_prefix=no
17900       ;;
17901     freebsd-*)
17902       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17903       need_version=yes
17904       ;;
17905   esac
17906   shlibpath_var=LD_LIBRARY_PATH
17907   case $host_os in
17908   freebsd2*)
17909     shlibpath_overrides_runpath=yes
17910     ;;
17911   freebsd3.[01]* | freebsdelf3.[01]*)
17912     shlibpath_overrides_runpath=yes
17913     hardcode_into_libs=yes
17914     ;;
17915   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17916   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17917     shlibpath_overrides_runpath=no
17918     hardcode_into_libs=yes
17919     ;;
17920   freebsd*) # from 4.6 on
17921     shlibpath_overrides_runpath=yes
17922     hardcode_into_libs=yes
17923     ;;
17924   esac
17925   ;;
17926
17927 gnu*)
17928   version_type=linux
17929   need_lib_prefix=no
17930   need_version=no
17931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17932   soname_spec='${libname}${release}${shared_ext}$major'
17933   shlibpath_var=LD_LIBRARY_PATH
17934   hardcode_into_libs=yes
17935   ;;
17936
17937 hpux9* | hpux10* | hpux11*)
17938   # Give a soname corresponding to the major version so that dld.sl refuses to
17939   # link against other versions.
17940   version_type=sunos
17941   need_lib_prefix=no
17942   need_version=no
17943   case $host_cpu in
17944   ia64*)
17945     shrext_cmds='.so'
17946     hardcode_into_libs=yes
17947     dynamic_linker="$host_os dld.so"
17948     shlibpath_var=LD_LIBRARY_PATH
17949     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17950     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17951     soname_spec='${libname}${release}${shared_ext}$major'
17952     if test "X$HPUX_IA64_MODE" = X32; then
17953       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17954     else
17955       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17956     fi
17957     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17958     ;;
17959    hppa*64*)
17960      shrext_cmds='.sl'
17961      hardcode_into_libs=yes
17962      dynamic_linker="$host_os dld.sl"
17963      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17964      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17965      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17966      soname_spec='${libname}${release}${shared_ext}$major'
17967      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17968      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17969      ;;
17970    *)
17971     shrext_cmds='.sl'
17972     dynamic_linker="$host_os dld.sl"
17973     shlibpath_var=SHLIB_PATH
17974     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17975     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17976     soname_spec='${libname}${release}${shared_ext}$major'
17977     ;;
17978   esac
17979   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17980   postinstall_cmds='chmod 555 $lib'
17981   ;;
17982
17983 interix3*)
17984   version_type=linux
17985   need_lib_prefix=no
17986   need_version=no
17987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17988   soname_spec='${libname}${release}${shared_ext}$major'
17989   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17990   shlibpath_var=LD_LIBRARY_PATH
17991   shlibpath_overrides_runpath=no
17992   hardcode_into_libs=yes
17993   ;;
17994
17995 irix5* | irix6* | nonstopux*)
17996   case $host_os in
17997     nonstopux*) version_type=nonstopux ;;
17998     *)
17999         if test "$lt_cv_prog_gnu_ld" = yes; then
18000                 version_type=linux
18001         else
18002                 version_type=irix
18003         fi ;;
18004   esac
18005   need_lib_prefix=no
18006   need_version=no
18007   soname_spec='${libname}${release}${shared_ext}$major'
18008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18009   case $host_os in
18010   irix5* | nonstopux*)
18011     libsuff= shlibsuff=
18012     ;;
18013   *)
18014     case $LD in # libtool.m4 will add one of these switches to LD
18015     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18016       libsuff= shlibsuff= libmagic=32-bit;;
18017     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18018       libsuff=32 shlibsuff=N32 libmagic=N32;;
18019     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18020       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18021     *) libsuff= shlibsuff= libmagic=never-match;;
18022     esac
18023     ;;
18024   esac
18025   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18026   shlibpath_overrides_runpath=no
18027   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18028   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18029   hardcode_into_libs=yes
18030   ;;
18031
18032 # No shared lib support for Linux oldld, aout, or coff.
18033 linux*oldld* | linux*aout* | linux*coff*)
18034   dynamic_linker=no
18035   ;;
18036
18037 # This must be Linux ELF.
18038 linux* | k*bsd*-gnu)
18039   version_type=linux
18040   need_lib_prefix=no
18041   need_version=no
18042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18043   soname_spec='${libname}${release}${shared_ext}$major'
18044   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18045   shlibpath_var=LD_LIBRARY_PATH
18046   shlibpath_overrides_runpath=no
18047   # This implies no fast_install, which is unacceptable.
18048   # Some rework will be needed to allow for fast_install
18049   # before this can be enabled.
18050   hardcode_into_libs=yes
18051
18052   # Append ld.so.conf contents to the search path
18053   if test -f /etc/ld.so.conf; then
18054     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18055     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18056   fi
18057
18058   # We used to test for /lib/ld.so.1 and disable shared libraries on
18059   # powerpc, because MkLinux only supported shared libraries with the
18060   # GNU dynamic linker.  Since this was broken with cross compilers,
18061   # most powerpc-linux boxes support dynamic linking these days and
18062   # people can always --disable-shared, the test was removed, and we
18063   # assume the GNU/Linux dynamic linker is in use.
18064   dynamic_linker='GNU/Linux ld.so'
18065   ;;
18066
18067 netbsdelf*-gnu)
18068   version_type=linux
18069   need_lib_prefix=no
18070   need_version=no
18071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18072   soname_spec='${libname}${release}${shared_ext}$major'
18073   shlibpath_var=LD_LIBRARY_PATH
18074   shlibpath_overrides_runpath=no
18075   hardcode_into_libs=yes
18076   dynamic_linker='NetBSD ld.elf_so'
18077   ;;
18078
18079 netbsd*)
18080   version_type=sunos
18081   need_lib_prefix=no
18082   need_version=no
18083   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18084     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18085     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18086     dynamic_linker='NetBSD (a.out) ld.so'
18087   else
18088     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18089     soname_spec='${libname}${release}${shared_ext}$major'
18090     dynamic_linker='NetBSD ld.elf_so'
18091   fi
18092   shlibpath_var=LD_LIBRARY_PATH
18093   shlibpath_overrides_runpath=yes
18094   hardcode_into_libs=yes
18095   ;;
18096
18097 newsos6)
18098   version_type=linux
18099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18100   shlibpath_var=LD_LIBRARY_PATH
18101   shlibpath_overrides_runpath=yes
18102   ;;
18103
18104 nto-qnx*)
18105   version_type=linux
18106   need_lib_prefix=no
18107   need_version=no
18108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18109   soname_spec='${libname}${release}${shared_ext}$major'
18110   shlibpath_var=LD_LIBRARY_PATH
18111   shlibpath_overrides_runpath=yes
18112   ;;
18113
18114 openbsd*)
18115   version_type=sunos
18116   sys_lib_dlsearch_path_spec="/usr/lib"
18117   need_lib_prefix=no
18118   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18119   case $host_os in
18120     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18121     *)                         need_version=no  ;;
18122   esac
18123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18124   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18125   shlibpath_var=LD_LIBRARY_PATH
18126   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18127     case $host_os in
18128       openbsd2.[89] | openbsd2.[89].*)
18129         shlibpath_overrides_runpath=no
18130         ;;
18131       *)
18132         shlibpath_overrides_runpath=yes
18133         ;;
18134       esac
18135   else
18136     shlibpath_overrides_runpath=yes
18137   fi
18138   ;;
18139
18140 os2*)
18141   libname_spec='$name'
18142   shrext_cmds=".dll"
18143   need_lib_prefix=no
18144   library_names_spec='$libname${shared_ext} $libname.a'
18145   dynamic_linker='OS/2 ld.exe'
18146   shlibpath_var=LIBPATH
18147   ;;
18148
18149 osf3* | osf4* | osf5*)
18150   version_type=osf
18151   need_lib_prefix=no
18152   need_version=no
18153   soname_spec='${libname}${release}${shared_ext}$major'
18154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18155   shlibpath_var=LD_LIBRARY_PATH
18156   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18157   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18158   ;;
18159
18160 solaris*)
18161   version_type=linux
18162   need_lib_prefix=no
18163   need_version=no
18164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18165   soname_spec='${libname}${release}${shared_ext}$major'
18166   shlibpath_var=LD_LIBRARY_PATH
18167   shlibpath_overrides_runpath=yes
18168   hardcode_into_libs=yes
18169   # ldd complains unless libraries are executable
18170   postinstall_cmds='chmod +x $lib'
18171   ;;
18172
18173 sunos4*)
18174   version_type=sunos
18175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18176   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18177   shlibpath_var=LD_LIBRARY_PATH
18178   shlibpath_overrides_runpath=yes
18179   if test "$with_gnu_ld" = yes; then
18180     need_lib_prefix=no
18181   fi
18182   need_version=yes
18183   ;;
18184
18185 sysv4 | sysv4.3*)
18186   version_type=linux
18187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18188   soname_spec='${libname}${release}${shared_ext}$major'
18189   shlibpath_var=LD_LIBRARY_PATH
18190   case $host_vendor in
18191     sni)
18192       shlibpath_overrides_runpath=no
18193       need_lib_prefix=no
18194       export_dynamic_flag_spec='${wl}-Blargedynsym'
18195       runpath_var=LD_RUN_PATH
18196       ;;
18197     siemens)
18198       need_lib_prefix=no
18199       ;;
18200     motorola)
18201       need_lib_prefix=no
18202       need_version=no
18203       shlibpath_overrides_runpath=no
18204       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18205       ;;
18206   esac
18207   ;;
18208
18209 sysv4*MP*)
18210   if test -d /usr/nec ;then
18211     version_type=linux
18212     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18213     soname_spec='$libname${shared_ext}.$major'
18214     shlibpath_var=LD_LIBRARY_PATH
18215   fi
18216   ;;
18217
18218 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18219   version_type=freebsd-elf
18220   need_lib_prefix=no
18221   need_version=no
18222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18223   soname_spec='${libname}${release}${shared_ext}$major'
18224   shlibpath_var=LD_LIBRARY_PATH
18225   hardcode_into_libs=yes
18226   if test "$with_gnu_ld" = yes; then
18227     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18228     shlibpath_overrides_runpath=no
18229   else
18230     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18231     shlibpath_overrides_runpath=yes
18232     case $host_os in
18233       sco3.2v5*)
18234         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18235         ;;
18236     esac
18237   fi
18238   sys_lib_dlsearch_path_spec='/usr/lib'
18239   ;;
18240
18241 uts4*)
18242   version_type=linux
18243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18244   soname_spec='${libname}${release}${shared_ext}$major'
18245   shlibpath_var=LD_LIBRARY_PATH
18246   ;;
18247
18248 *)
18249   dynamic_linker=no
18250   ;;
18251 esac
18252 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18253 echo "${ECHO_T}$dynamic_linker" >&6; }
18254 test "$dynamic_linker" = no && can_build_shared=no
18255
18256 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18257 if test "$GCC" = yes; then
18258   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18259 fi
18260
18261 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18262 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18263 hardcode_action_GCJ=
18264 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18265    test -n "$runpath_var_GCJ" || \
18266    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18267
18268   # We can hardcode non-existant directories.
18269   if test "$hardcode_direct_GCJ" != no &&
18270      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18271      # have to relink, otherwise we might link with an installed library
18272      # when we should be linking with a yet-to-be-installed one
18273      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18274      test "$hardcode_minus_L_GCJ" != no; then
18275     # Linking always hardcodes the temporary library directory.
18276     hardcode_action_GCJ=relink
18277   else
18278     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18279     hardcode_action_GCJ=immediate
18280   fi
18281 else
18282   # We cannot hardcode anything, or else we can only hardcode existing
18283   # directories.
18284   hardcode_action_GCJ=unsupported
18285 fi
18286 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18287 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18288
18289 if test "$hardcode_action_GCJ" = relink; then
18290   # Fast installation is not supported
18291   enable_fast_install=no
18292 elif test "$shlibpath_overrides_runpath" = yes ||
18293      test "$enable_shared" = no; then
18294   # Fast installation is not necessary
18295   enable_fast_install=needless
18296 fi
18297
18298
18299 # The else clause should only fire when bootstrapping the
18300 # libtool distribution, otherwise you forgot to ship ltmain.sh
18301 # with your package, and you will get complaints that there are
18302 # no rules to generate ltmain.sh.
18303 if test -f "$ltmain"; then
18304   # See if we are running on zsh, and set the options which allow our commands through
18305   # without removal of \ escapes.
18306   if test -n "${ZSH_VERSION+set}" ; then
18307     setopt NO_GLOB_SUBST
18308   fi
18309   # Now quote all the things that may contain metacharacters while being
18310   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18311   # variables and quote the copies for generation of the libtool script.
18312   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18313     SED SHELL STRIP \
18314     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18315     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18316     deplibs_check_method reload_flag reload_cmds need_locks \
18317     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18318     lt_cv_sys_global_symbol_to_c_name_address \
18319     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18320     old_postinstall_cmds old_postuninstall_cmds \
18321     compiler_GCJ \
18322     CC_GCJ \
18323     LD_GCJ \
18324     lt_prog_compiler_wl_GCJ \
18325     lt_prog_compiler_pic_GCJ \
18326     lt_prog_compiler_static_GCJ \
18327     lt_prog_compiler_no_builtin_flag_GCJ \
18328     export_dynamic_flag_spec_GCJ \
18329     thread_safe_flag_spec_GCJ \
18330     whole_archive_flag_spec_GCJ \
18331     enable_shared_with_static_runtimes_GCJ \
18332     old_archive_cmds_GCJ \
18333     old_archive_from_new_cmds_GCJ \
18334     predep_objects_GCJ \
18335     postdep_objects_GCJ \
18336     predeps_GCJ \
18337     postdeps_GCJ \
18338     compiler_lib_search_path_GCJ \
18339     archive_cmds_GCJ \
18340     archive_expsym_cmds_GCJ \
18341     postinstall_cmds_GCJ \
18342     postuninstall_cmds_GCJ \
18343     old_archive_from_expsyms_cmds_GCJ \
18344     allow_undefined_flag_GCJ \
18345     no_undefined_flag_GCJ \
18346     export_symbols_cmds_GCJ \
18347     hardcode_libdir_flag_spec_GCJ \
18348     hardcode_libdir_flag_spec_ld_GCJ \
18349     hardcode_libdir_separator_GCJ \
18350     hardcode_automatic_GCJ \
18351     module_cmds_GCJ \
18352     module_expsym_cmds_GCJ \
18353     lt_cv_prog_compiler_c_o_GCJ \
18354     exclude_expsyms_GCJ \
18355     include_expsyms_GCJ; do
18356
18357     case $var in
18358     old_archive_cmds_GCJ | \
18359     old_archive_from_new_cmds_GCJ | \
18360     archive_cmds_GCJ | \
18361     archive_expsym_cmds_GCJ | \
18362     module_cmds_GCJ | \
18363     module_expsym_cmds_GCJ | \
18364     old_archive_from_expsyms_cmds_GCJ | \
18365     export_symbols_cmds_GCJ | \
18366     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18367     postinstall_cmds | postuninstall_cmds | \
18368     old_postinstall_cmds | old_postuninstall_cmds | \
18369     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18370       # Double-quote double-evaled strings.
18371       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18372       ;;
18373     *)
18374       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18375       ;;
18376     esac
18377   done
18378
18379   case $lt_echo in
18380   *'\$0 --fallback-echo"')
18381     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18382     ;;
18383   esac
18384
18385 cfgfile="$ofile"
18386
18387   cat <<__EOF__ >> "$cfgfile"
18388 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18389
18390 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18391
18392 # Shell to use when invoking shell scripts.
18393 SHELL=$lt_SHELL
18394
18395 # Whether or not to build shared libraries.
18396 build_libtool_libs=$enable_shared
18397
18398 # Whether or not to build static libraries.
18399 build_old_libs=$enable_static
18400
18401 # Whether or not to add -lc for building shared libraries.
18402 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18403
18404 # Whether or not to disallow shared libs when runtime libs are static
18405 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18406
18407 # Whether or not to optimize for fast installation.
18408 fast_install=$enable_fast_install
18409
18410 # The host system.
18411 host_alias=$host_alias
18412 host=$host
18413 host_os=$host_os
18414
18415 # The build system.
18416 build_alias=$build_alias
18417 build=$build
18418 build_os=$build_os
18419
18420 # An echo program that does not interpret backslashes.
18421 echo=$lt_echo
18422
18423 # The archiver.
18424 AR=$lt_AR
18425 AR_FLAGS=$lt_AR_FLAGS
18426
18427 # A C compiler.
18428 LTCC=$lt_LTCC
18429
18430 # LTCC compiler flags.
18431 LTCFLAGS=$lt_LTCFLAGS
18432
18433 # A language-specific compiler.
18434 CC=$lt_compiler_GCJ
18435
18436 # Is the compiler the GNU C compiler?
18437 with_gcc=$GCC_GCJ
18438
18439 # An ERE matcher.
18440 EGREP=$lt_EGREP
18441
18442 # The linker used to build libraries.
18443 LD=$lt_LD_GCJ
18444
18445 # Whether we need hard or soft links.
18446 LN_S=$lt_LN_S
18447
18448 # A BSD-compatible nm program.
18449 NM=$lt_NM
18450
18451 # A symbol stripping program
18452 STRIP=$lt_STRIP
18453
18454 # Used to examine libraries when file_magic_cmd begins "file"
18455 MAGIC_CMD=$MAGIC_CMD
18456
18457 # Used on cygwin: DLL creation program.
18458 DLLTOOL="$DLLTOOL"
18459
18460 # Used on cygwin: object dumper.
18461 OBJDUMP="$OBJDUMP"
18462
18463 # Used on cygwin: assembler.
18464 AS="$AS"
18465
18466 # The name of the directory that contains temporary libtool files.
18467 objdir=$objdir
18468
18469 # How to create reloadable object files.
18470 reload_flag=$lt_reload_flag
18471 reload_cmds=$lt_reload_cmds
18472
18473 # How to pass a linker flag through the compiler.
18474 wl=$lt_lt_prog_compiler_wl_GCJ
18475
18476 # Object file suffix (normally "o").
18477 objext="$ac_objext"
18478
18479 # Old archive suffix (normally "a").
18480 libext="$libext"
18481
18482 # Shared library suffix (normally ".so").
18483 shrext_cmds='$shrext_cmds'
18484
18485 # Executable file suffix (normally "").
18486 exeext="$exeext"
18487
18488 # Additional compiler flags for building library objects.
18489 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18490 pic_mode=$pic_mode
18491
18492 # What is the maximum length of a command?
18493 max_cmd_len=$lt_cv_sys_max_cmd_len
18494
18495 # Does compiler simultaneously support -c and -o options?
18496 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18497
18498 # Must we lock files when doing compilation?
18499 need_locks=$lt_need_locks
18500
18501 # Do we need the lib prefix for modules?
18502 need_lib_prefix=$need_lib_prefix
18503
18504 # Do we need a version for libraries?
18505 need_version=$need_version
18506
18507 # Whether dlopen is supported.
18508 dlopen_support=$enable_dlopen
18509
18510 # Whether dlopen of programs is supported.
18511 dlopen_self=$enable_dlopen_self
18512
18513 # Whether dlopen of statically linked programs is supported.
18514 dlopen_self_static=$enable_dlopen_self_static
18515
18516 # Compiler flag to prevent dynamic linking.
18517 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18518
18519 # Compiler flag to turn off builtin functions.
18520 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18521
18522 # Compiler flag to allow reflexive dlopens.
18523 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18524
18525 # Compiler flag to generate shared objects directly from archives.
18526 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18527
18528 # Compiler flag to generate thread-safe objects.
18529 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18530
18531 # Library versioning type.
18532 version_type=$version_type
18533
18534 # Format of library name prefix.
18535 libname_spec=$lt_libname_spec
18536
18537 # List of archive names.  First name is the real one, the rest are links.
18538 # The last name is the one that the linker finds with -lNAME.
18539 library_names_spec=$lt_library_names_spec
18540
18541 # The coded name of the library, if different from the real name.
18542 soname_spec=$lt_soname_spec
18543
18544 # Commands used to build and install an old-style archive.
18545 RANLIB=$lt_RANLIB
18546 old_archive_cmds=$lt_old_archive_cmds_GCJ
18547 old_postinstall_cmds=$lt_old_postinstall_cmds
18548 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18549
18550 # Create an old-style archive from a shared archive.
18551 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18552
18553 # Create a temporary old-style archive to link instead of a shared archive.
18554 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18555
18556 # Commands used to build and install a shared archive.
18557 archive_cmds=$lt_archive_cmds_GCJ
18558 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18559 postinstall_cmds=$lt_postinstall_cmds
18560 postuninstall_cmds=$lt_postuninstall_cmds
18561
18562 # Commands used to build a loadable module (assumed same as above if empty)
18563 module_cmds=$lt_module_cmds_GCJ
18564 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18565
18566 # Commands to strip libraries.
18567 old_striplib=$lt_old_striplib
18568 striplib=$lt_striplib
18569
18570 # Dependencies to place before the objects being linked to create a
18571 # shared library.
18572 predep_objects=$lt_predep_objects_GCJ
18573
18574 # Dependencies to place after the objects being linked to create a
18575 # shared library.
18576 postdep_objects=$lt_postdep_objects_GCJ
18577
18578 # Dependencies to place before the objects being linked to create a
18579 # shared library.
18580 predeps=$lt_predeps_GCJ
18581
18582 # Dependencies to place after the objects being linked to create a
18583 # shared library.
18584 postdeps=$lt_postdeps_GCJ
18585
18586 # The library search path used internally by the compiler when linking
18587 # a shared library.
18588 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18589
18590 # Method to check whether dependent libraries are shared objects.
18591 deplibs_check_method=$lt_deplibs_check_method
18592
18593 # Command to use when deplibs_check_method == file_magic.
18594 file_magic_cmd=$lt_file_magic_cmd
18595
18596 # Flag that allows shared libraries with undefined symbols to be built.
18597 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18598
18599 # Flag that forces no undefined symbols.
18600 no_undefined_flag=$lt_no_undefined_flag_GCJ
18601
18602 # Commands used to finish a libtool library installation in a directory.
18603 finish_cmds=$lt_finish_cmds
18604
18605 # Same as above, but a single script fragment to be evaled but not shown.
18606 finish_eval=$lt_finish_eval
18607
18608 # Take the output of nm and produce a listing of raw symbols and C names.
18609 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18610
18611 # Transform the output of nm in a proper C declaration
18612 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18613
18614 # Transform the output of nm in a C name address pair
18615 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18616
18617 # This is the shared library runtime path variable.
18618 runpath_var=$runpath_var
18619
18620 # This is the shared library path variable.
18621 shlibpath_var=$shlibpath_var
18622
18623 # Is shlibpath searched before the hard-coded library search path?
18624 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18625
18626 # How to hardcode a shared library path into an executable.
18627 hardcode_action=$hardcode_action_GCJ
18628
18629 # Whether we should hardcode library paths into libraries.
18630 hardcode_into_libs=$hardcode_into_libs
18631
18632 # Flag to hardcode \$libdir into a binary during linking.
18633 # This must work even if \$libdir does not exist.
18634 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18635
18636 # If ld is used when linking, flag to hardcode \$libdir into
18637 # a binary during linking. This must work even if \$libdir does
18638 # not exist.
18639 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18640
18641 # Whether we need a single -rpath flag with a separated argument.
18642 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18643
18644 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18645 # resulting binary.
18646 hardcode_direct=$hardcode_direct_GCJ
18647
18648 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18649 # resulting binary.
18650 hardcode_minus_L=$hardcode_minus_L_GCJ
18651
18652 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18653 # the resulting binary.
18654 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18655
18656 # Set to yes if building a shared library automatically hardcodes DIR into the library
18657 # and all subsequent libraries and executables linked against it.
18658 hardcode_automatic=$hardcode_automatic_GCJ
18659
18660 # Variables whose values should be saved in libtool wrapper scripts and
18661 # restored at relink time.
18662 variables_saved_for_relink="$variables_saved_for_relink"
18663
18664 # Whether libtool must link a program against all its dependency libraries.
18665 link_all_deplibs=$link_all_deplibs_GCJ
18666
18667 # Compile-time system search path for libraries
18668 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18669
18670 # Run-time system search path for libraries
18671 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18672
18673 # Fix the shell variable \$srcfile for the compiler.
18674 fix_srcfile_path="$fix_srcfile_path_GCJ"
18675
18676 # Set to yes if exported symbols are required.
18677 always_export_symbols=$always_export_symbols_GCJ
18678
18679 # The commands to list exported symbols.
18680 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18681
18682 # The commands to extract the exported symbol list from a shared archive.
18683 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18684
18685 # Symbols that should not be listed in the preloaded symbols.
18686 exclude_expsyms=$lt_exclude_expsyms_GCJ
18687
18688 # Symbols that must always be exported.
18689 include_expsyms=$lt_include_expsyms_GCJ
18690
18691 # ### END LIBTOOL TAG CONFIG: $tagname
18692
18693 __EOF__
18694
18695
18696 else
18697   # If there is no Makefile yet, we rely on a make rule to execute
18698   # `config.status --recheck' to rerun these tests and create the
18699   # libtool script then.
18700   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18701   if test -f "$ltmain_in"; then
18702     test -f Makefile && make "$ltmain"
18703   fi
18704 fi
18705
18706
18707 ac_ext=c
18708 ac_cpp='$CPP $CPPFLAGS'
18709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18712
18713 CC="$lt_save_CC"
18714
18715         else
18716           tagname=""
18717         fi
18718         ;;
18719
18720       RC)
18721
18722
18723 # Source file extension for RC test sources.
18724 ac_ext=rc
18725
18726 # Object file extension for compiled RC test sources.
18727 objext=o
18728 objext_RC=$objext
18729
18730 # Code to be used in simple compile tests
18731 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18732
18733 # Code to be used in simple link tests
18734 lt_simple_link_test_code="$lt_simple_compile_test_code"
18735
18736 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18737
18738 # If no C compiler was specified, use CC.
18739 LTCC=${LTCC-"$CC"}
18740
18741 # If no C compiler flags were specified, use CFLAGS.
18742 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18743
18744 # Allow CC to be a program name with arguments.
18745 compiler=$CC
18746
18747
18748 # save warnings/boilerplate of simple test code
18749 ac_outfile=conftest.$ac_objext
18750 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18751 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18752 _lt_compiler_boilerplate=`cat conftest.err`
18753 $rm conftest*
18754
18755 ac_outfile=conftest.$ac_objext
18756 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18757 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18758 _lt_linker_boilerplate=`cat conftest.err`
18759 $rm conftest*
18760
18761
18762 # Allow CC to be a program name with arguments.
18763 lt_save_CC="$CC"
18764 CC=${RC-"windres"}
18765 compiler=$CC
18766 compiler_RC=$CC
18767 for cc_temp in $compiler""; do
18768   case $cc_temp in
18769     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18770     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18771     \-*) ;;
18772     *) break;;
18773   esac
18774 done
18775 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18776
18777 lt_cv_prog_compiler_c_o_RC=yes
18778
18779 # The else clause should only fire when bootstrapping the
18780 # libtool distribution, otherwise you forgot to ship ltmain.sh
18781 # with your package, and you will get complaints that there are
18782 # no rules to generate ltmain.sh.
18783 if test -f "$ltmain"; then
18784   # See if we are running on zsh, and set the options which allow our commands through
18785   # without removal of \ escapes.
18786   if test -n "${ZSH_VERSION+set}" ; then
18787     setopt NO_GLOB_SUBST
18788   fi
18789   # Now quote all the things that may contain metacharacters while being
18790   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18791   # variables and quote the copies for generation of the libtool script.
18792   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18793     SED SHELL STRIP \
18794     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18795     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18796     deplibs_check_method reload_flag reload_cmds need_locks \
18797     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18798     lt_cv_sys_global_symbol_to_c_name_address \
18799     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18800     old_postinstall_cmds old_postuninstall_cmds \
18801     compiler_RC \
18802     CC_RC \
18803     LD_RC \
18804     lt_prog_compiler_wl_RC \
18805     lt_prog_compiler_pic_RC \
18806     lt_prog_compiler_static_RC \
18807     lt_prog_compiler_no_builtin_flag_RC \
18808     export_dynamic_flag_spec_RC \
18809     thread_safe_flag_spec_RC \
18810     whole_archive_flag_spec_RC \
18811     enable_shared_with_static_runtimes_RC \
18812     old_archive_cmds_RC \
18813     old_archive_from_new_cmds_RC \
18814     predep_objects_RC \
18815     postdep_objects_RC \
18816     predeps_RC \
18817     postdeps_RC \
18818     compiler_lib_search_path_RC \
18819     archive_cmds_RC \
18820     archive_expsym_cmds_RC \
18821     postinstall_cmds_RC \
18822     postuninstall_cmds_RC \
18823     old_archive_from_expsyms_cmds_RC \
18824     allow_undefined_flag_RC \
18825     no_undefined_flag_RC \
18826     export_symbols_cmds_RC \
18827     hardcode_libdir_flag_spec_RC \
18828     hardcode_libdir_flag_spec_ld_RC \
18829     hardcode_libdir_separator_RC \
18830     hardcode_automatic_RC \
18831     module_cmds_RC \
18832     module_expsym_cmds_RC \
18833     lt_cv_prog_compiler_c_o_RC \
18834     exclude_expsyms_RC \
18835     include_expsyms_RC; do
18836
18837     case $var in
18838     old_archive_cmds_RC | \
18839     old_archive_from_new_cmds_RC | \
18840     archive_cmds_RC | \
18841     archive_expsym_cmds_RC | \
18842     module_cmds_RC | \
18843     module_expsym_cmds_RC | \
18844     old_archive_from_expsyms_cmds_RC | \
18845     export_symbols_cmds_RC | \
18846     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18847     postinstall_cmds | postuninstall_cmds | \
18848     old_postinstall_cmds | old_postuninstall_cmds | \
18849     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18850       # Double-quote double-evaled strings.
18851       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18852       ;;
18853     *)
18854       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18855       ;;
18856     esac
18857   done
18858
18859   case $lt_echo in
18860   *'\$0 --fallback-echo"')
18861     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18862     ;;
18863   esac
18864
18865 cfgfile="$ofile"
18866
18867   cat <<__EOF__ >> "$cfgfile"
18868 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18869
18870 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18871
18872 # Shell to use when invoking shell scripts.
18873 SHELL=$lt_SHELL
18874
18875 # Whether or not to build shared libraries.
18876 build_libtool_libs=$enable_shared
18877
18878 # Whether or not to build static libraries.
18879 build_old_libs=$enable_static
18880
18881 # Whether or not to add -lc for building shared libraries.
18882 build_libtool_need_lc=$archive_cmds_need_lc_RC
18883
18884 # Whether or not to disallow shared libs when runtime libs are static
18885 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18886
18887 # Whether or not to optimize for fast installation.
18888 fast_install=$enable_fast_install
18889
18890 # The host system.
18891 host_alias=$host_alias
18892 host=$host
18893 host_os=$host_os
18894
18895 # The build system.
18896 build_alias=$build_alias
18897 build=$build
18898 build_os=$build_os
18899
18900 # An echo program that does not interpret backslashes.
18901 echo=$lt_echo
18902
18903 # The archiver.
18904 AR=$lt_AR
18905 AR_FLAGS=$lt_AR_FLAGS
18906
18907 # A C compiler.
18908 LTCC=$lt_LTCC
18909
18910 # LTCC compiler flags.
18911 LTCFLAGS=$lt_LTCFLAGS
18912
18913 # A language-specific compiler.
18914 CC=$lt_compiler_RC
18915
18916 # Is the compiler the GNU C compiler?
18917 with_gcc=$GCC_RC
18918
18919 # An ERE matcher.
18920 EGREP=$lt_EGREP
18921
18922 # The linker used to build libraries.
18923 LD=$lt_LD_RC
18924
18925 # Whether we need hard or soft links.
18926 LN_S=$lt_LN_S
18927
18928 # A BSD-compatible nm program.
18929 NM=$lt_NM
18930
18931 # A symbol stripping program
18932 STRIP=$lt_STRIP
18933
18934 # Used to examine libraries when file_magic_cmd begins "file"
18935 MAGIC_CMD=$MAGIC_CMD
18936
18937 # Used on cygwin: DLL creation program.
18938 DLLTOOL="$DLLTOOL"
18939
18940 # Used on cygwin: object dumper.
18941 OBJDUMP="$OBJDUMP"
18942
18943 # Used on cygwin: assembler.
18944 AS="$AS"
18945
18946 # The name of the directory that contains temporary libtool files.
18947 objdir=$objdir
18948
18949 # How to create reloadable object files.
18950 reload_flag=$lt_reload_flag
18951 reload_cmds=$lt_reload_cmds
18952
18953 # How to pass a linker flag through the compiler.
18954 wl=$lt_lt_prog_compiler_wl_RC
18955
18956 # Object file suffix (normally "o").
18957 objext="$ac_objext"
18958
18959 # Old archive suffix (normally "a").
18960 libext="$libext"
18961
18962 # Shared library suffix (normally ".so").
18963 shrext_cmds='$shrext_cmds'
18964
18965 # Executable file suffix (normally "").
18966 exeext="$exeext"
18967
18968 # Additional compiler flags for building library objects.
18969 pic_flag=$lt_lt_prog_compiler_pic_RC
18970 pic_mode=$pic_mode
18971
18972 # What is the maximum length of a command?
18973 max_cmd_len=$lt_cv_sys_max_cmd_len
18974
18975 # Does compiler simultaneously support -c and -o options?
18976 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18977
18978 # Must we lock files when doing compilation?
18979 need_locks=$lt_need_locks
18980
18981 # Do we need the lib prefix for modules?
18982 need_lib_prefix=$need_lib_prefix
18983
18984 # Do we need a version for libraries?
18985 need_version=$need_version
18986
18987 # Whether dlopen is supported.
18988 dlopen_support=$enable_dlopen
18989
18990 # Whether dlopen of programs is supported.
18991 dlopen_self=$enable_dlopen_self
18992
18993 # Whether dlopen of statically linked programs is supported.
18994 dlopen_self_static=$enable_dlopen_self_static
18995
18996 # Compiler flag to prevent dynamic linking.
18997 link_static_flag=$lt_lt_prog_compiler_static_RC
18998
18999 # Compiler flag to turn off builtin functions.
19000 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19001
19002 # Compiler flag to allow reflexive dlopens.
19003 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19004
19005 # Compiler flag to generate shared objects directly from archives.
19006 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19007
19008 # Compiler flag to generate thread-safe objects.
19009 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19010
19011 # Library versioning type.
19012 version_type=$version_type
19013
19014 # Format of library name prefix.
19015 libname_spec=$lt_libname_spec
19016
19017 # List of archive names.  First name is the real one, the rest are links.
19018 # The last name is the one that the linker finds with -lNAME.
19019 library_names_spec=$lt_library_names_spec
19020
19021 # The coded name of the library, if different from the real name.
19022 soname_spec=$lt_soname_spec
19023
19024 # Commands used to build and install an old-style archive.
19025 RANLIB=$lt_RANLIB
19026 old_archive_cmds=$lt_old_archive_cmds_RC
19027 old_postinstall_cmds=$lt_old_postinstall_cmds
19028 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19029
19030 # Create an old-style archive from a shared archive.
19031 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19032
19033 # Create a temporary old-style archive to link instead of a shared archive.
19034 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19035
19036 # Commands used to build and install a shared archive.
19037 archive_cmds=$lt_archive_cmds_RC
19038 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19039 postinstall_cmds=$lt_postinstall_cmds
19040 postuninstall_cmds=$lt_postuninstall_cmds
19041
19042 # Commands used to build a loadable module (assumed same as above if empty)
19043 module_cmds=$lt_module_cmds_RC
19044 module_expsym_cmds=$lt_module_expsym_cmds_RC
19045
19046 # Commands to strip libraries.
19047 old_striplib=$lt_old_striplib
19048 striplib=$lt_striplib
19049
19050 # Dependencies to place before the objects being linked to create a
19051 # shared library.
19052 predep_objects=$lt_predep_objects_RC
19053
19054 # Dependencies to place after the objects being linked to create a
19055 # shared library.
19056 postdep_objects=$lt_postdep_objects_RC
19057
19058 # Dependencies to place before the objects being linked to create a
19059 # shared library.
19060 predeps=$lt_predeps_RC
19061
19062 # Dependencies to place after the objects being linked to create a
19063 # shared library.
19064 postdeps=$lt_postdeps_RC
19065
19066 # The library search path used internally by the compiler when linking
19067 # a shared library.
19068 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19069
19070 # Method to check whether dependent libraries are shared objects.
19071 deplibs_check_method=$lt_deplibs_check_method
19072
19073 # Command to use when deplibs_check_method == file_magic.
19074 file_magic_cmd=$lt_file_magic_cmd
19075
19076 # Flag that allows shared libraries with undefined symbols to be built.
19077 allow_undefined_flag=$lt_allow_undefined_flag_RC
19078
19079 # Flag that forces no undefined symbols.
19080 no_undefined_flag=$lt_no_undefined_flag_RC
19081
19082 # Commands used to finish a libtool library installation in a directory.
19083 finish_cmds=$lt_finish_cmds
19084
19085 # Same as above, but a single script fragment to be evaled but not shown.
19086 finish_eval=$lt_finish_eval
19087
19088 # Take the output of nm and produce a listing of raw symbols and C names.
19089 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19090
19091 # Transform the output of nm in a proper C declaration
19092 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19093
19094 # Transform the output of nm in a C name address pair
19095 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19096
19097 # This is the shared library runtime path variable.
19098 runpath_var=$runpath_var
19099
19100 # This is the shared library path variable.
19101 shlibpath_var=$shlibpath_var
19102
19103 # Is shlibpath searched before the hard-coded library search path?
19104 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19105
19106 # How to hardcode a shared library path into an executable.
19107 hardcode_action=$hardcode_action_RC
19108
19109 # Whether we should hardcode library paths into libraries.
19110 hardcode_into_libs=$hardcode_into_libs
19111
19112 # Flag to hardcode \$libdir into a binary during linking.
19113 # This must work even if \$libdir does not exist.
19114 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19115
19116 # If ld is used when linking, flag to hardcode \$libdir into
19117 # a binary during linking. This must work even if \$libdir does
19118 # not exist.
19119 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19120
19121 # Whether we need a single -rpath flag with a separated argument.
19122 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19123
19124 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19125 # resulting binary.
19126 hardcode_direct=$hardcode_direct_RC
19127
19128 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19129 # resulting binary.
19130 hardcode_minus_L=$hardcode_minus_L_RC
19131
19132 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19133 # the resulting binary.
19134 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19135
19136 # Set to yes if building a shared library automatically hardcodes DIR into the library
19137 # and all subsequent libraries and executables linked against it.
19138 hardcode_automatic=$hardcode_automatic_RC
19139
19140 # Variables whose values should be saved in libtool wrapper scripts and
19141 # restored at relink time.
19142 variables_saved_for_relink="$variables_saved_for_relink"
19143
19144 # Whether libtool must link a program against all its dependency libraries.
19145 link_all_deplibs=$link_all_deplibs_RC
19146
19147 # Compile-time system search path for libraries
19148 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19149
19150 # Run-time system search path for libraries
19151 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19152
19153 # Fix the shell variable \$srcfile for the compiler.
19154 fix_srcfile_path="$fix_srcfile_path_RC"
19155
19156 # Set to yes if exported symbols are required.
19157 always_export_symbols=$always_export_symbols_RC
19158
19159 # The commands to list exported symbols.
19160 export_symbols_cmds=$lt_export_symbols_cmds_RC
19161
19162 # The commands to extract the exported symbol list from a shared archive.
19163 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19164
19165 # Symbols that should not be listed in the preloaded symbols.
19166 exclude_expsyms=$lt_exclude_expsyms_RC
19167
19168 # Symbols that must always be exported.
19169 include_expsyms=$lt_include_expsyms_RC
19170
19171 # ### END LIBTOOL TAG CONFIG: $tagname
19172
19173 __EOF__
19174
19175
19176 else
19177   # If there is no Makefile yet, we rely on a make rule to execute
19178   # `config.status --recheck' to rerun these tests and create the
19179   # libtool script then.
19180   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19181   if test -f "$ltmain_in"; then
19182     test -f Makefile && make "$ltmain"
19183   fi
19184 fi
19185
19186
19187 ac_ext=c
19188 ac_cpp='$CPP $CPPFLAGS'
19189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19192
19193 CC="$lt_save_CC"
19194
19195         ;;
19196
19197       *)
19198         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19199 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19200    { (exit 1); exit 1; }; }
19201         ;;
19202       esac
19203
19204       # Append the new tag name to the list of available tags.
19205       if test -n "$tagname" ; then
19206       available_tags="$available_tags $tagname"
19207     fi
19208     fi
19209   done
19210   IFS="$lt_save_ifs"
19211
19212   # Now substitute the updated list of available tags.
19213   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19214     mv "${ofile}T" "$ofile"
19215     chmod +x "$ofile"
19216   else
19217     rm -f "${ofile}T"
19218     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19219 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19220    { (exit 1); exit 1; }; }
19221   fi
19222 fi
19223
19224
19225
19226 # This can be used to rebuild libtool when needed
19227 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19228
19229 # Always use our own libtool.
19230 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19231
19232 # Prevent multiple expansion
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254 # Extract the first word of "doxygen", so it can be a program name with args.
19255 set dummy doxygen; ac_word=$2
19256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19258 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
19259   echo $ECHO_N "(cached) $ECHO_C" >&6
19260 else
19261   if test -n "$DOXYGEN"; then
19262   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
19263 else
19264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19265 for as_dir in $PATH
19266 do
19267   IFS=$as_save_IFS
19268   test -z "$as_dir" && as_dir=.
19269   for ac_exec_ext in '' $ac_executable_extensions; do
19270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19271     ac_cv_prog_DOXYGEN="true"
19272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19273     break 2
19274   fi
19275 done
19276 done
19277 IFS=$as_save_IFS
19278
19279   test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="false"
19280 fi
19281 fi
19282 DOXYGEN=$ac_cv_prog_DOXYGEN
19283 if test -n "$DOXYGEN"; then
19284   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
19285 echo "${ECHO_T}$DOXYGEN" >&6; }
19286 else
19287   { echo "$as_me:$LINENO: result: no" >&5
19288 echo "${ECHO_T}no" >&6; }
19289 fi
19290
19291
19292
19293
19294 if test "$DOXYGEN" = true; then
19295   DOXYGEN_TRUE=
19296   DOXYGEN_FALSE='#'
19297 else
19298   DOXYGEN_TRUE='#'
19299   DOXYGEN_FALSE=
19300 fi
19301
19302
19303 # Checks for header files.
19304 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19305 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19306 if test "${ac_cv_header_stdc+set}" = set; then
19307   echo $ECHO_N "(cached) $ECHO_C" >&6
19308 else
19309   cat >conftest.$ac_ext <<_ACEOF
19310 /* confdefs.h.  */
19311 _ACEOF
19312 cat confdefs.h >>conftest.$ac_ext
19313 cat >>conftest.$ac_ext <<_ACEOF
19314 /* end confdefs.h.  */
19315 #include <stdlib.h>
19316 #include <stdarg.h>
19317 #include <string.h>
19318 #include <float.h>
19319
19320 int
19321 main ()
19322 {
19323
19324   ;
19325   return 0;
19326 }
19327 _ACEOF
19328 rm -f conftest.$ac_objext
19329 if { (ac_try="$ac_compile"
19330 case "(($ac_try" in
19331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19332   *) ac_try_echo=$ac_try;;
19333 esac
19334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19335   (eval "$ac_compile") 2>conftest.er1
19336   ac_status=$?
19337   grep -v '^ *+' conftest.er1 >conftest.err
19338   rm -f conftest.er1
19339   cat conftest.err >&5
19340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341   (exit $ac_status); } && {
19342          test -z "$ac_c_werror_flag" ||
19343          test ! -s conftest.err
19344        } && test -s conftest.$ac_objext; then
19345   ac_cv_header_stdc=yes
19346 else
19347   echo "$as_me: failed program was:" >&5
19348 sed 's/^/| /' conftest.$ac_ext >&5
19349
19350         ac_cv_header_stdc=no
19351 fi
19352
19353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19354
19355 if test $ac_cv_header_stdc = yes; then
19356   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19357   cat >conftest.$ac_ext <<_ACEOF
19358 /* confdefs.h.  */
19359 _ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h.  */
19363 #include <string.h>
19364
19365 _ACEOF
19366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19367   $EGREP "memchr" >/dev/null 2>&1; then
19368   :
19369 else
19370   ac_cv_header_stdc=no
19371 fi
19372 rm -f conftest*
19373
19374 fi
19375
19376 if test $ac_cv_header_stdc = yes; then
19377   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19378   cat >conftest.$ac_ext <<_ACEOF
19379 /* confdefs.h.  */
19380 _ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h.  */
19384 #include <stdlib.h>
19385
19386 _ACEOF
19387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19388   $EGREP "free" >/dev/null 2>&1; then
19389   :
19390 else
19391   ac_cv_header_stdc=no
19392 fi
19393 rm -f conftest*
19394
19395 fi
19396
19397 if test $ac_cv_header_stdc = yes; then
19398   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19399   if test "$cross_compiling" = yes; then
19400   :
19401 else
19402   cat >conftest.$ac_ext <<_ACEOF
19403 /* confdefs.h.  */
19404 _ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h.  */
19408 #include <ctype.h>
19409 #include <stdlib.h>
19410 #if ((' ' & 0x0FF) == 0x020)
19411 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19412 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19413 #else
19414 # define ISLOWER(c) \
19415                    (('a' <= (c) && (c) <= 'i') \
19416                      || ('j' <= (c) && (c) <= 'r') \
19417                      || ('s' <= (c) && (c) <= 'z'))
19418 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19419 #endif
19420
19421 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19422 int
19423 main ()
19424 {
19425   int i;
19426   for (i = 0; i < 256; i++)
19427     if (XOR (islower (i), ISLOWER (i))
19428         || toupper (i) != TOUPPER (i))
19429       return 2;
19430   return 0;
19431 }
19432 _ACEOF
19433 rm -f conftest$ac_exeext
19434 if { (ac_try="$ac_link"
19435 case "(($ac_try" in
19436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437   *) ac_try_echo=$ac_try;;
19438 esac
19439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19440   (eval "$ac_link") 2>&5
19441   ac_status=$?
19442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19444   { (case "(($ac_try" in
19445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19446   *) ac_try_echo=$ac_try;;
19447 esac
19448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19449   (eval "$ac_try") 2>&5
19450   ac_status=$?
19451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); }; }; then
19453   :
19454 else
19455   echo "$as_me: program exited with status $ac_status" >&5
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19458
19459 ( exit $ac_status )
19460 ac_cv_header_stdc=no
19461 fi
19462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19463 fi
19464
19465
19466 fi
19467 fi
19468 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19469 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19470 if test $ac_cv_header_stdc = yes; then
19471
19472 cat >>confdefs.h <<\_ACEOF
19473 #define STDC_HEADERS 1
19474 _ACEOF
19475
19476 fi
19477
19478
19479 for ac_header in stdlib.h
19480 do
19481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19483   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19486   echo $ECHO_N "(cached) $ECHO_C" >&6
19487 fi
19488 ac_res=`eval echo '${'$as_ac_Header'}'`
19489                { echo "$as_me:$LINENO: result: $ac_res" >&5
19490 echo "${ECHO_T}$ac_res" >&6; }
19491 else
19492   # Is the header compilable?
19493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19495 cat >conftest.$ac_ext <<_ACEOF
19496 /* confdefs.h.  */
19497 _ACEOF
19498 cat confdefs.h >>conftest.$ac_ext
19499 cat >>conftest.$ac_ext <<_ACEOF
19500 /* end confdefs.h.  */
19501 $ac_includes_default
19502 #include <$ac_header>
19503 _ACEOF
19504 rm -f conftest.$ac_objext
19505 if { (ac_try="$ac_compile"
19506 case "(($ac_try" in
19507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508   *) ac_try_echo=$ac_try;;
19509 esac
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511   (eval "$ac_compile") 2>conftest.er1
19512   ac_status=$?
19513   grep -v '^ *+' conftest.er1 >conftest.err
19514   rm -f conftest.er1
19515   cat conftest.err >&5
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); } && {
19518          test -z "$ac_c_werror_flag" ||
19519          test ! -s conftest.err
19520        } && test -s conftest.$ac_objext; then
19521   ac_header_compiler=yes
19522 else
19523   echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19525
19526         ac_header_compiler=no
19527 fi
19528
19529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19531 echo "${ECHO_T}$ac_header_compiler" >&6; }
19532
19533 # Is the header present?
19534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19536 cat >conftest.$ac_ext <<_ACEOF
19537 /* confdefs.h.  */
19538 _ACEOF
19539 cat confdefs.h >>conftest.$ac_ext
19540 cat >>conftest.$ac_ext <<_ACEOF
19541 /* end confdefs.h.  */
19542 #include <$ac_header>
19543 _ACEOF
19544 if { (ac_try="$ac_cpp conftest.$ac_ext"
19545 case "(($ac_try" in
19546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547   *) ac_try_echo=$ac_try;;
19548 esac
19549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19551   ac_status=$?
19552   grep -v '^ *+' conftest.er1 >conftest.err
19553   rm -f conftest.er1
19554   cat conftest.err >&5
19555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556   (exit $ac_status); } >/dev/null && {
19557          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19558          test ! -s conftest.err
19559        }; then
19560   ac_header_preproc=yes
19561 else
19562   echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19564
19565   ac_header_preproc=no
19566 fi
19567
19568 rm -f conftest.err conftest.$ac_ext
19569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19570 echo "${ECHO_T}$ac_header_preproc" >&6; }
19571
19572 # So?  What about this header?
19573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19574   yes:no: )
19575     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19579     ac_header_preproc=yes
19580     ;;
19581   no:yes:* )
19582     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19584     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19585 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19586     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19588     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19589 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19592     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19594     ( cat <<\_ASBOX
19595 ## ------------------------------------------------------------ ##
19596 ## Report this to http://pyyaml.org/newticket?component=libyaml ##
19597 ## ------------------------------------------------------------ ##
19598 _ASBOX
19599      ) | sed "s/^/$as_me: WARNING:     /" >&2
19600     ;;
19601 esac
19602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19605   echo $ECHO_N "(cached) $ECHO_C" >&6
19606 else
19607   eval "$as_ac_Header=\$ac_header_preproc"
19608 fi
19609 ac_res=`eval echo '${'$as_ac_Header'}'`
19610                { echo "$as_me:$LINENO: result: $ac_res" >&5
19611 echo "${ECHO_T}$ac_res" >&6; }
19612
19613 fi
19614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19615   cat >>confdefs.h <<_ACEOF
19616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19617 _ACEOF
19618
19619 fi
19620
19621 done
19622
19623
19624 # Checks for typedefs, structures, and compiler characteristics.
19625 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19626 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19627 if test "${ac_cv_c_const+set}" = set; then
19628   echo $ECHO_N "(cached) $ECHO_C" >&6
19629 else
19630   cat >conftest.$ac_ext <<_ACEOF
19631 /* confdefs.h.  */
19632 _ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h.  */
19636
19637 int
19638 main ()
19639 {
19640 /* FIXME: Include the comments suggested by Paul. */
19641 #ifndef __cplusplus
19642   /* Ultrix mips cc rejects this.  */
19643   typedef int charset[2];
19644   const charset cs;
19645   /* SunOS 4.1.1 cc rejects this.  */
19646   char const *const *pcpcc;
19647   char **ppc;
19648   /* NEC SVR4.0.2 mips cc rejects this.  */
19649   struct point {int x, y;};
19650   static struct point const zero = {0,0};
19651   /* AIX XL C 1.02.0.0 rejects this.
19652      It does not let you subtract one const X* pointer from another in
19653      an arm of an if-expression whose if-part is not a constant
19654      expression */
19655   const char *g = "string";
19656   pcpcc = &g + (g ? g-g : 0);
19657   /* HPUX 7.0 cc rejects these. */
19658   ++pcpcc;
19659   ppc = (char**) pcpcc;
19660   pcpcc = (char const *const *) ppc;
19661   { /* SCO 3.2v4 cc rejects this.  */
19662     char *t;
19663     char const *s = 0 ? (char *) 0 : (char const *) 0;
19664
19665     *t++ = 0;
19666     if (s) return 0;
19667   }
19668   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19669     int x[] = {25, 17};
19670     const int *foo = &x[0];
19671     ++foo;
19672   }
19673   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19674     typedef const int *iptr;
19675     iptr p = 0;
19676     ++p;
19677   }
19678   { /* AIX XL C 1.02.0.0 rejects this saying
19679        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19680     struct s { int j; const int *ap[3]; };
19681     struct s *b; b->j = 5;
19682   }
19683   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19684     const int foo = 10;
19685     if (!foo) return 0;
19686   }
19687   return !cs[0] && !zero.x;
19688 #endif
19689
19690   ;
19691   return 0;
19692 }
19693 _ACEOF
19694 rm -f conftest.$ac_objext
19695 if { (ac_try="$ac_compile"
19696 case "(($ac_try" in
19697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698   *) ac_try_echo=$ac_try;;
19699 esac
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701   (eval "$ac_compile") 2>conftest.er1
19702   ac_status=$?
19703   grep -v '^ *+' conftest.er1 >conftest.err
19704   rm -f conftest.er1
19705   cat conftest.err >&5
19706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707   (exit $ac_status); } && {
19708          test -z "$ac_c_werror_flag" ||
19709          test ! -s conftest.err
19710        } && test -s conftest.$ac_objext; then
19711   ac_cv_c_const=yes
19712 else
19713   echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19715
19716         ac_cv_c_const=no
19717 fi
19718
19719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19720 fi
19721 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19722 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19723 if test $ac_cv_c_const = no; then
19724
19725 cat >>confdefs.h <<\_ACEOF
19726 #define const
19727 _ACEOF
19728
19729 fi
19730
19731 { echo "$as_me:$LINENO: checking for size_t" >&5
19732 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
19733 if test "${ac_cv_type_size_t+set}" = set; then
19734   echo $ECHO_N "(cached) $ECHO_C" >&6
19735 else
19736   cat >conftest.$ac_ext <<_ACEOF
19737 /* confdefs.h.  */
19738 _ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h.  */
19742 $ac_includes_default
19743 typedef size_t ac__type_new_;
19744 int
19745 main ()
19746 {
19747 if ((ac__type_new_ *) 0)
19748   return 0;
19749 if (sizeof (ac__type_new_))
19750   return 0;
19751   ;
19752   return 0;
19753 }
19754 _ACEOF
19755 rm -f conftest.$ac_objext
19756 if { (ac_try="$ac_compile"
19757 case "(($ac_try" in
19758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19759   *) ac_try_echo=$ac_try;;
19760 esac
19761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19762   (eval "$ac_compile") 2>conftest.er1
19763   ac_status=$?
19764   grep -v '^ *+' conftest.er1 >conftest.err
19765   rm -f conftest.er1
19766   cat conftest.err >&5
19767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768   (exit $ac_status); } && {
19769          test -z "$ac_c_werror_flag" ||
19770          test ! -s conftest.err
19771        } && test -s conftest.$ac_objext; then
19772   ac_cv_type_size_t=yes
19773 else
19774   echo "$as_me: failed program was:" >&5
19775 sed 's/^/| /' conftest.$ac_ext >&5
19776
19777         ac_cv_type_size_t=no
19778 fi
19779
19780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19781 fi
19782 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19783 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19784 if test $ac_cv_type_size_t = yes; then
19785   :
19786 else
19787
19788 cat >>confdefs.h <<_ACEOF
19789 #define size_t unsigned int
19790 _ACEOF
19791
19792 fi
19793
19794
19795 # Define Makefiles.
19796 ac_config_files="$ac_config_files include/Makefile src/Makefile Makefile tests/Makefile"
19797
19798
19799 # Generate the "configure" script.
19800 cat >confcache <<\_ACEOF
19801 # This file is a shell script that caches the results of configure
19802 # tests run on this system so they can be shared between configure
19803 # scripts and configure runs, see configure's option --config-cache.
19804 # It is not useful on other systems.  If it contains results you don't
19805 # want to keep, you may remove or edit it.
19806 #
19807 # config.status only pays attention to the cache file if you give it
19808 # the --recheck option to rerun configure.
19809 #
19810 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19811 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19812 # following values.
19813
19814 _ACEOF
19815
19816 # The following way of writing the cache mishandles newlines in values,
19817 # but we know of no workaround that is simple, portable, and efficient.
19818 # So, we kill variables containing newlines.
19819 # Ultrix sh set writes to stderr and can't be redirected directly,
19820 # and sets the high bit in the cache file unless we assign to the vars.
19821 (
19822   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19823     eval ac_val=\$$ac_var
19824     case $ac_val in #(
19825     *${as_nl}*)
19826       case $ac_var in #(
19827       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19828 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19829       esac
19830       case $ac_var in #(
19831       _ | IFS | as_nl) ;; #(
19832       *) $as_unset $ac_var ;;
19833       esac ;;
19834     esac
19835   done
19836
19837   (set) 2>&1 |
19838     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19839     *${as_nl}ac_space=\ *)
19840       # `set' does not quote correctly, so add quotes (double-quote
19841       # substitution turns \\\\ into \\, and sed turns \\ into \).
19842       sed -n \
19843         "s/'/'\\\\''/g;
19844           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19845       ;; #(
19846     *)
19847       # `set' quotes correctly as required by POSIX, so do not add quotes.
19848       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19849       ;;
19850     esac |
19851     sort
19852 ) |
19853   sed '
19854      /^ac_cv_env_/b end
19855      t clear
19856      :clear
19857      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19858      t end
19859      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19860      :end' >>confcache
19861 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19862   if test -w "$cache_file"; then
19863     test "x$cache_file" != "x/dev/null" &&
19864       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19865 echo "$as_me: updating cache $cache_file" >&6;}
19866     cat confcache >$cache_file
19867   else
19868     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19869 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19870   fi
19871 fi
19872 rm -f confcache
19873
19874 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19875 # Let make expand exec_prefix.
19876 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19877
19878 DEFS=-DHAVE_CONFIG_H
19879
19880 ac_libobjs=
19881 ac_ltlibobjs=
19882 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19883   # 1. Remove the extension, and $U if already installed.
19884   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19885   ac_i=`echo "$ac_i" | sed "$ac_script"`
19886   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19887   #    will be set to the directory where LIBOBJS objects are built.
19888   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19889   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19890 done
19891 LIBOBJS=$ac_libobjs
19892
19893 LTLIBOBJS=$ac_ltlibobjs
19894
19895
19896 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19897   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19898 Usually this means the macro was only invoked conditionally." >&5
19899 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19900 Usually this means the macro was only invoked conditionally." >&2;}
19901    { (exit 1); exit 1; }; }
19902 fi
19903 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19904   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19905 Usually this means the macro was only invoked conditionally." >&5
19906 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19907 Usually this means the macro was only invoked conditionally." >&2;}
19908    { (exit 1); exit 1; }; }
19909 fi
19910 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19911   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19912 Usually this means the macro was only invoked conditionally." >&5
19913 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19914 Usually this means the macro was only invoked conditionally." >&2;}
19915    { (exit 1); exit 1; }; }
19916 fi
19917 if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
19918   { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
19919 Usually this means the macro was only invoked conditionally." >&5
19920 echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
19921 Usually this means the macro was only invoked conditionally." >&2;}
19922    { (exit 1); exit 1; }; }
19923 fi
19924
19925 : ${CONFIG_STATUS=./config.status}
19926 ac_clean_files_save=$ac_clean_files
19927 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19928 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19929 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19930 cat >$CONFIG_STATUS <<_ACEOF
19931 #! $SHELL
19932 # Generated by $as_me.
19933 # Run this file to recreate the current configuration.
19934 # Compiler output produced by configure, useful for debugging
19935 # configure, is in config.log if it exists.
19936
19937 debug=false
19938 ac_cs_recheck=false
19939 ac_cs_silent=false
19940 SHELL=\${CONFIG_SHELL-$SHELL}
19941 _ACEOF
19942
19943 cat >>$CONFIG_STATUS <<\_ACEOF
19944 ## --------------------- ##
19945 ## M4sh Initialization.  ##
19946 ## --------------------- ##
19947
19948 # Be more Bourne compatible
19949 DUALCASE=1; export DUALCASE # for MKS sh
19950 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19951   emulate sh
19952   NULLCMD=:
19953   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19954   # is contrary to our usage.  Disable this feature.
19955   alias -g '${1+"$@"}'='"$@"'
19956   setopt NO_GLOB_SUBST
19957 else
19958   case `(set -o) 2>/dev/null` in
19959   *posix*) set -o posix ;;
19960 esac
19961
19962 fi
19963
19964
19965
19966
19967 # PATH needs CR
19968 # Avoid depending upon Character Ranges.
19969 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19970 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19971 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19972 as_cr_digits='0123456789'
19973 as_cr_alnum=$as_cr_Letters$as_cr_digits
19974
19975 # The user is always right.
19976 if test "${PATH_SEPARATOR+set}" != set; then
19977   echo "#! /bin/sh" >conf$$.sh
19978   echo  "exit 0"   >>conf$$.sh
19979   chmod +x conf$$.sh
19980   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19981     PATH_SEPARATOR=';'
19982   else
19983     PATH_SEPARATOR=:
19984   fi
19985   rm -f conf$$.sh
19986 fi
19987
19988 # Support unset when possible.
19989 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19990   as_unset=unset
19991 else
19992   as_unset=false
19993 fi
19994
19995
19996 # IFS
19997 # We need space, tab and new line, in precisely that order.  Quoting is
19998 # there to prevent editors from complaining about space-tab.
19999 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20000 # splitting by setting IFS to empty value.)
20001 as_nl='
20002 '
20003 IFS=" ""        $as_nl"
20004
20005 # Find who we are.  Look in the path if we contain no directory separator.
20006 case $0 in
20007   *[\\/]* ) as_myself=$0 ;;
20008   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20009 for as_dir in $PATH
20010 do
20011   IFS=$as_save_IFS
20012   test -z "$as_dir" && as_dir=.
20013   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20014 done
20015 IFS=$as_save_IFS
20016
20017      ;;
20018 esac
20019 # We did not find ourselves, most probably we were run as `sh COMMAND'
20020 # in which case we are not to be found in the path.
20021 if test "x$as_myself" = x; then
20022   as_myself=$0
20023 fi
20024 if test ! -f "$as_myself"; then
20025   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20026   { (exit 1); exit 1; }
20027 fi
20028
20029 # Work around bugs in pre-3.0 UWIN ksh.
20030 for as_var in ENV MAIL MAILPATH
20031 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20032 done
20033 PS1='$ '
20034 PS2='> '
20035 PS4='+ '
20036
20037 # NLS nuisances.
20038 for as_var in \
20039   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20040   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20041   LC_TELEPHONE LC_TIME
20042 do
20043   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20044     eval $as_var=C; export $as_var
20045   else
20046     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20047   fi
20048 done
20049
20050 # Required to use basename.
20051 if expr a : '\(a\)' >/dev/null 2>&1 &&
20052    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20053   as_expr=expr
20054 else
20055   as_expr=false
20056 fi
20057
20058 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20059   as_basename=basename
20060 else
20061   as_basename=false
20062 fi
20063
20064
20065 # Name of the executable.
20066 as_me=`$as_basename -- "$0" ||
20067 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20068          X"$0" : 'X\(//\)$' \| \
20069          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20070 echo X/"$0" |
20071     sed '/^.*\/\([^/][^/]*\)\/*$/{
20072             s//\1/
20073             q
20074           }
20075           /^X\/\(\/\/\)$/{
20076             s//\1/
20077             q
20078           }
20079           /^X\/\(\/\).*/{
20080             s//\1/
20081             q
20082           }
20083           s/.*/./; q'`
20084
20085 # CDPATH.
20086 $as_unset CDPATH
20087
20088
20089
20090   as_lineno_1=$LINENO
20091   as_lineno_2=$LINENO
20092   test "x$as_lineno_1" != "x$as_lineno_2" &&
20093   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20094
20095   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20096   # uniformly replaced by the line number.  The first 'sed' inserts a
20097   # line-number line after each line using $LINENO; the second 'sed'
20098   # does the real work.  The second script uses 'N' to pair each
20099   # line-number line with the line containing $LINENO, and appends
20100   # trailing '-' during substitution so that $LINENO is not a special
20101   # case at line end.
20102   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20103   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20104   # E. McMahon (1931-1989) for sed's syntax.  :-)
20105   sed -n '
20106     p
20107     /[$]LINENO/=
20108   ' <$as_myself |
20109     sed '
20110       s/[$]LINENO.*/&-/
20111       t lineno
20112       b
20113       :lineno
20114       N
20115       :loop
20116       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20117       t loop
20118       s/-\n.*//
20119     ' >$as_me.lineno &&
20120   chmod +x "$as_me.lineno" ||
20121     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20122    { (exit 1); exit 1; }; }
20123
20124   # Don't try to exec as it changes $[0], causing all sort of problems
20125   # (the dirname of $[0] is not the place where we might find the
20126   # original and so on.  Autoconf is especially sensitive to this).
20127   . "./$as_me.lineno"
20128   # Exit status is that of the last command.
20129   exit
20130 }
20131
20132
20133 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20134   as_dirname=dirname
20135 else
20136   as_dirname=false
20137 fi
20138
20139 ECHO_C= ECHO_N= ECHO_T=
20140 case `echo -n x` in
20141 -n*)
20142   case `echo 'x\c'` in
20143   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20144   *)   ECHO_C='\c';;
20145   esac;;
20146 *)
20147   ECHO_N='-n';;
20148 esac
20149
20150 if expr a : '\(a\)' >/dev/null 2>&1 &&
20151    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20152   as_expr=expr
20153 else
20154   as_expr=false
20155 fi
20156
20157 rm -f conf$$ conf$$.exe conf$$.file
20158 if test -d conf$$.dir; then
20159   rm -f conf$$.dir/conf$$.file
20160 else
20161   rm -f conf$$.dir
20162   mkdir conf$$.dir
20163 fi
20164 echo >conf$$.file
20165 if ln -s conf$$.file conf$$ 2>/dev/null; then
20166   as_ln_s='ln -s'
20167   # ... but there are two gotchas:
20168   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20169   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20170   # In both cases, we have to default to `cp -p'.
20171   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20172     as_ln_s='cp -p'
20173 elif ln conf$$.file conf$$ 2>/dev/null; then
20174   as_ln_s=ln
20175 else
20176   as_ln_s='cp -p'
20177 fi
20178 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20179 rmdir conf$$.dir 2>/dev/null
20180
20181 if mkdir -p . 2>/dev/null; then
20182   as_mkdir_p=:
20183 else
20184   test -d ./-p && rmdir ./-p
20185   as_mkdir_p=false
20186 fi
20187
20188 if test -x / >/dev/null 2>&1; then
20189   as_test_x='test -x'
20190 else
20191   if ls -dL / >/dev/null 2>&1; then
20192     as_ls_L_option=L
20193   else
20194     as_ls_L_option=
20195   fi
20196   as_test_x='
20197     eval sh -c '\''
20198       if test -d "$1"; then
20199         test -d "$1/.";
20200       else
20201         case $1 in
20202         -*)set "./$1";;
20203         esac;
20204         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20205         ???[sx]*):;;*)false;;esac;fi
20206     '\'' sh
20207   '
20208 fi
20209 as_executable_p=$as_test_x
20210
20211 # Sed expression to map a string onto a valid CPP name.
20212 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20213
20214 # Sed expression to map a string onto a valid variable name.
20215 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20216
20217
20218 exec 6>&1
20219
20220 # Save the log message, to keep $[0] and so on meaningful, and to
20221 # report actual input values of CONFIG_FILES etc. instead of their
20222 # values after options handling.
20223 ac_log="
20224 This file was extended by yaml $as_me 0.1.1, which was
20225 generated by GNU Autoconf 2.61.  Invocation command line was
20226
20227   CONFIG_FILES    = $CONFIG_FILES
20228   CONFIG_HEADERS  = $CONFIG_HEADERS
20229   CONFIG_LINKS    = $CONFIG_LINKS
20230   CONFIG_COMMANDS = $CONFIG_COMMANDS
20231   $ $0 $@
20232
20233 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20234 "
20235
20236 _ACEOF
20237
20238 cat >>$CONFIG_STATUS <<_ACEOF
20239 # Files that config.status was made for.
20240 config_files="$ac_config_files"
20241 config_headers="$ac_config_headers"
20242 config_commands="$ac_config_commands"
20243
20244 _ACEOF
20245
20246 cat >>$CONFIG_STATUS <<\_ACEOF
20247 ac_cs_usage="\
20248 \`$as_me' instantiates files from templates according to the
20249 current configuration.
20250
20251 Usage: $0 [OPTIONS] [FILE]...
20252
20253   -h, --help       print this help, then exit
20254   -V, --version    print version number and configuration settings, then exit
20255   -q, --quiet      do not print progress messages
20256   -d, --debug      don't remove temporary files
20257       --recheck    update $as_me by reconfiguring in the same conditions
20258   --file=FILE[:TEMPLATE]
20259                    instantiate the configuration file FILE
20260   --header=FILE[:TEMPLATE]
20261                    instantiate the configuration header FILE
20262
20263 Configuration files:
20264 $config_files
20265
20266 Configuration headers:
20267 $config_headers
20268
20269 Configuration commands:
20270 $config_commands
20271
20272 Report bugs to <bug-autoconf@gnu.org>."
20273
20274 _ACEOF
20275 cat >>$CONFIG_STATUS <<_ACEOF
20276 ac_cs_version="\\
20277 yaml config.status 0.1.1
20278 configured by $0, generated by GNU Autoconf 2.61,
20279   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20280
20281 Copyright (C) 2006 Free Software Foundation, Inc.
20282 This config.status script is free software; the Free Software Foundation
20283 gives unlimited permission to copy, distribute and modify it."
20284
20285 ac_pwd='$ac_pwd'
20286 srcdir='$srcdir'
20287 INSTALL='$INSTALL'
20288 _ACEOF
20289
20290 cat >>$CONFIG_STATUS <<\_ACEOF
20291 # If no file are specified by the user, then we need to provide default
20292 # value.  By we need to know if files were specified by the user.
20293 ac_need_defaults=:
20294 while test $# != 0
20295 do
20296   case $1 in
20297   --*=*)
20298     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20299     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20300     ac_shift=:
20301     ;;
20302   *)
20303     ac_option=$1
20304     ac_optarg=$2
20305     ac_shift=shift
20306     ;;
20307   esac
20308
20309   case $ac_option in
20310   # Handling of the options.
20311   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20312     ac_cs_recheck=: ;;
20313   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20314     echo "$ac_cs_version"; exit ;;
20315   --debug | --debu | --deb | --de | --d | -d )
20316     debug=: ;;
20317   --file | --fil | --fi | --f )
20318     $ac_shift
20319     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20320     ac_need_defaults=false;;
20321   --header | --heade | --head | --hea )
20322     $ac_shift
20323     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20324     ac_need_defaults=false;;
20325   --he | --h)
20326     # Conflict between --help and --header
20327     { echo "$as_me: error: ambiguous option: $1
20328 Try \`$0 --help' for more information." >&2
20329    { (exit 1); exit 1; }; };;
20330   --help | --hel | -h )
20331     echo "$ac_cs_usage"; exit ;;
20332   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20333   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20334     ac_cs_silent=: ;;
20335
20336   # This is an error.
20337   -*) { echo "$as_me: error: unrecognized option: $1
20338 Try \`$0 --help' for more information." >&2
20339    { (exit 1); exit 1; }; } ;;
20340
20341   *) ac_config_targets="$ac_config_targets $1"
20342      ac_need_defaults=false ;;
20343
20344   esac
20345   shift
20346 done
20347
20348 ac_configure_extra_args=
20349
20350 if $ac_cs_silent; then
20351   exec 6>/dev/null
20352   ac_configure_extra_args="$ac_configure_extra_args --silent"
20353 fi
20354
20355 _ACEOF
20356 cat >>$CONFIG_STATUS <<_ACEOF
20357 if \$ac_cs_recheck; then
20358   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20359   CONFIG_SHELL=$SHELL
20360   export CONFIG_SHELL
20361   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20362 fi
20363
20364 _ACEOF
20365 cat >>$CONFIG_STATUS <<\_ACEOF
20366 exec 5>>config.log
20367 {
20368   echo
20369   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20370 ## Running $as_me. ##
20371 _ASBOX
20372   echo "$ac_log"
20373 } >&5
20374
20375 _ACEOF
20376 cat >>$CONFIG_STATUS <<_ACEOF
20377 #
20378 # INIT-COMMANDS
20379 #
20380 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20381
20382 _ACEOF
20383
20384 cat >>$CONFIG_STATUS <<\_ACEOF
20385
20386 # Handling of arguments.
20387 for ac_config_target in $ac_config_targets
20388 do
20389   case $ac_config_target in
20390     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20391     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20392     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20393     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20394     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20395     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20396
20397   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20398 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20399    { (exit 1); exit 1; }; };;
20400   esac
20401 done
20402
20403
20404 # If the user did not use the arguments to specify the items to instantiate,
20405 # then the envvar interface is used.  Set only those that are not.
20406 # We use the long form for the default assignment because of an extremely
20407 # bizarre bug on SunOS 4.1.3.
20408 if $ac_need_defaults; then
20409   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20410   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20411   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20412 fi
20413
20414 # Have a temporary directory for convenience.  Make it in the build tree
20415 # simply because there is no reason against having it here, and in addition,
20416 # creating and moving files from /tmp can sometimes cause problems.
20417 # Hook for its removal unless debugging.
20418 # Note that there is a small window in which the directory will not be cleaned:
20419 # after its creation but before its name has been assigned to `$tmp'.
20420 $debug ||
20421 {
20422   tmp=
20423   trap 'exit_status=$?
20424   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20425 ' 0
20426   trap '{ (exit 1); exit 1; }' 1 2 13 15
20427 }
20428 # Create a (secure) tmp directory for tmp files.
20429
20430 {
20431   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20432   test -n "$tmp" && test -d "$tmp"
20433 }  ||
20434 {
20435   tmp=./conf$$-$RANDOM
20436   (umask 077 && mkdir "$tmp")
20437 } ||
20438 {
20439    echo "$me: cannot create a temporary directory in ." >&2
20440    { (exit 1); exit 1; }
20441 }
20442
20443 #
20444 # Set up the sed scripts for CONFIG_FILES section.
20445 #
20446
20447 # No need to generate the scripts if there are no CONFIG_FILES.
20448 # This happens for instance when ./config.status config.h
20449 if test -n "$CONFIG_FILES"; then
20450
20451 _ACEOF
20452
20453
20454
20455 ac_delim='%!_!# '
20456 for ac_last_try in false false false false false :; do
20457   cat >conf$$subs.sed <<_ACEOF
20458 SHELL!$SHELL$ac_delim
20459 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20460 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20461 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20462 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20463 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20464 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20465 exec_prefix!$exec_prefix$ac_delim
20466 prefix!$prefix$ac_delim
20467 program_transform_name!$program_transform_name$ac_delim
20468 bindir!$bindir$ac_delim
20469 sbindir!$sbindir$ac_delim
20470 libexecdir!$libexecdir$ac_delim
20471 datarootdir!$datarootdir$ac_delim
20472 datadir!$datadir$ac_delim
20473 sysconfdir!$sysconfdir$ac_delim
20474 sharedstatedir!$sharedstatedir$ac_delim
20475 localstatedir!$localstatedir$ac_delim
20476 includedir!$includedir$ac_delim
20477 oldincludedir!$oldincludedir$ac_delim
20478 docdir!$docdir$ac_delim
20479 infodir!$infodir$ac_delim
20480 htmldir!$htmldir$ac_delim
20481 dvidir!$dvidir$ac_delim
20482 pdfdir!$pdfdir$ac_delim
20483 psdir!$psdir$ac_delim
20484 libdir!$libdir$ac_delim
20485 localedir!$localedir$ac_delim
20486 mandir!$mandir$ac_delim
20487 DEFS!$DEFS$ac_delim
20488 ECHO_C!$ECHO_C$ac_delim
20489 ECHO_N!$ECHO_N$ac_delim
20490 ECHO_T!$ECHO_T$ac_delim
20491 LIBS!$LIBS$ac_delim
20492 build_alias!$build_alias$ac_delim
20493 host_alias!$host_alias$ac_delim
20494 target_alias!$target_alias$ac_delim
20495 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20496 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20497 INSTALL_DATA!$INSTALL_DATA$ac_delim
20498 CYGPATH_W!$CYGPATH_W$ac_delim
20499 PACKAGE!$PACKAGE$ac_delim
20500 VERSION!$VERSION$ac_delim
20501 ACLOCAL!$ACLOCAL$ac_delim
20502 AUTOCONF!$AUTOCONF$ac_delim
20503 AUTOMAKE!$AUTOMAKE$ac_delim
20504 AUTOHEADER!$AUTOHEADER$ac_delim
20505 MAKEINFO!$MAKEINFO$ac_delim
20506 install_sh!$install_sh$ac_delim
20507 STRIP!$STRIP$ac_delim
20508 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20509 mkdir_p!$mkdir_p$ac_delim
20510 AWK!$AWK$ac_delim
20511 SET_MAKE!$SET_MAKE$ac_delim
20512 am__leading_dot!$am__leading_dot$ac_delim
20513 AMTAR!$AMTAR$ac_delim
20514 am__tar!$am__tar$ac_delim
20515 am__untar!$am__untar$ac_delim
20516 YAML_LT_RELEASE!$YAML_LT_RELEASE$ac_delim
20517 YAML_LT_CURRENT!$YAML_LT_CURRENT$ac_delim
20518 YAML_LT_REVISION!$YAML_LT_REVISION$ac_delim
20519 YAML_LT_AGE!$YAML_LT_AGE$ac_delim
20520 CC!$CC$ac_delim
20521 CFLAGS!$CFLAGS$ac_delim
20522 LDFLAGS!$LDFLAGS$ac_delim
20523 CPPFLAGS!$CPPFLAGS$ac_delim
20524 ac_ct_CC!$ac_ct_CC$ac_delim
20525 EXEEXT!$EXEEXT$ac_delim
20526 OBJEXT!$OBJEXT$ac_delim
20527 DEPDIR!$DEPDIR$ac_delim
20528 am__include!$am__include$ac_delim
20529 am__quote!$am__quote$ac_delim
20530 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20531 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20532 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20533 CCDEPMODE!$CCDEPMODE$ac_delim
20534 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20535 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20536 CPP!$CPP$ac_delim
20537 LN_S!$LN_S$ac_delim
20538 build!$build$ac_delim
20539 build_cpu!$build_cpu$ac_delim
20540 build_vendor!$build_vendor$ac_delim
20541 build_os!$build_os$ac_delim
20542 host!$host$ac_delim
20543 host_cpu!$host_cpu$ac_delim
20544 host_vendor!$host_vendor$ac_delim
20545 host_os!$host_os$ac_delim
20546 GREP!$GREP$ac_delim
20547 EGREP!$EGREP$ac_delim
20548 ECHO!$ECHO$ac_delim
20549 AR!$AR$ac_delim
20550 RANLIB!$RANLIB$ac_delim
20551 CXX!$CXX$ac_delim
20552 CXXFLAGS!$CXXFLAGS$ac_delim
20553 ac_ct_CXX!$ac_ct_CXX$ac_delim
20554 CXXDEPMODE!$CXXDEPMODE$ac_delim
20555 _ACEOF
20556
20557   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20558     break
20559   elif $ac_last_try; then
20560     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20561 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20562    { (exit 1); exit 1; }; }
20563   else
20564     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20565   fi
20566 done
20567
20568 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20569 if test -n "$ac_eof"; then
20570   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20571   ac_eof=`expr $ac_eof + 1`
20572 fi
20573
20574 cat >>$CONFIG_STATUS <<_ACEOF
20575 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20576 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20577 _ACEOF
20578 sed '
20579 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20580 s/^/s,@/; s/!/@,|#_!!_#|/
20581 :n
20582 t n
20583 s/'"$ac_delim"'$/,g/; t
20584 s/$/\\/; p
20585 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20586 ' >>$CONFIG_STATUS <conf$$subs.sed
20587 rm -f conf$$subs.sed
20588 cat >>$CONFIG_STATUS <<_ACEOF
20589 CEOF$ac_eof
20590 _ACEOF
20591
20592
20593 ac_delim='%!_!# '
20594 for ac_last_try in false false false false false :; do
20595   cat >conf$$subs.sed <<_ACEOF
20596 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20597 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20598 CXXCPP!$CXXCPP$ac_delim
20599 F77!$F77$ac_delim
20600 FFLAGS!$FFLAGS$ac_delim
20601 ac_ct_F77!$ac_ct_F77$ac_delim
20602 LIBTOOL!$LIBTOOL$ac_delim
20603 DOXYGEN!$DOXYGEN$ac_delim
20604 DOXYGEN_TRUE!$DOXYGEN_TRUE$ac_delim
20605 DOXYGEN_FALSE!$DOXYGEN_FALSE$ac_delim
20606 LIBOBJS!$LIBOBJS$ac_delim
20607 LTLIBOBJS!$LTLIBOBJS$ac_delim
20608 _ACEOF
20609
20610   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
20611     break
20612   elif $ac_last_try; then
20613     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20614 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20615    { (exit 1); exit 1; }; }
20616   else
20617     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20618   fi
20619 done
20620
20621 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20622 if test -n "$ac_eof"; then
20623   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20624   ac_eof=`expr $ac_eof + 1`
20625 fi
20626
20627 cat >>$CONFIG_STATUS <<_ACEOF
20628 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20629 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20630 _ACEOF
20631 sed '
20632 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20633 s/^/s,@/; s/!/@,|#_!!_#|/
20634 :n
20635 t n
20636 s/'"$ac_delim"'$/,g/; t
20637 s/$/\\/; p
20638 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20639 ' >>$CONFIG_STATUS <conf$$subs.sed
20640 rm -f conf$$subs.sed
20641 cat >>$CONFIG_STATUS <<_ACEOF
20642 :end
20643 s/|#_!!_#|//g
20644 CEOF$ac_eof
20645 _ACEOF
20646
20647
20648 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20649 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20650 # trailing colons and then remove the whole line if VPATH becomes empty
20651 # (actually we leave an empty line to preserve line numbers).
20652 if test "x$srcdir" = x.; then
20653   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20654 s/:*\$(srcdir):*/:/
20655 s/:*\${srcdir}:*/:/
20656 s/:*@srcdir@:*/:/
20657 s/^\([^=]*=[     ]*\):*/\1/
20658 s/:*$//
20659 s/^[^=]*=[       ]*$//
20660 }'
20661 fi
20662
20663 cat >>$CONFIG_STATUS <<\_ACEOF
20664 fi # test -n "$CONFIG_FILES"
20665
20666
20667 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20668 do
20669   case $ac_tag in
20670   :[FHLC]) ac_mode=$ac_tag; continue;;
20671   esac
20672   case $ac_mode$ac_tag in
20673   :[FHL]*:*);;
20674   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20675 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20676    { (exit 1); exit 1; }; };;
20677   :[FH]-) ac_tag=-:-;;
20678   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20679   esac
20680   ac_save_IFS=$IFS
20681   IFS=:
20682   set x $ac_tag
20683   IFS=$ac_save_IFS
20684   shift
20685   ac_file=$1
20686   shift
20687
20688   case $ac_mode in
20689   :L) ac_source=$1;;
20690   :[FH])
20691     ac_file_inputs=
20692     for ac_f
20693     do
20694       case $ac_f in
20695       -) ac_f="$tmp/stdin";;
20696       *) # Look for the file first in the build tree, then in the source tree
20697          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20698          # because $ac_f cannot contain `:'.
20699          test -f "$ac_f" ||
20700            case $ac_f in
20701            [\\/$]*) false;;
20702            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20703            esac ||
20704            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20705 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20706    { (exit 1); exit 1; }; };;
20707       esac
20708       ac_file_inputs="$ac_file_inputs $ac_f"
20709     done
20710
20711     # Let's still pretend it is `configure' which instantiates (i.e., don't
20712     # use $as_me), people would be surprised to read:
20713     #    /* config.h.  Generated by config.status.  */
20714     configure_input="Generated from "`IFS=:
20715           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20716     if test x"$ac_file" != x-; then
20717       configure_input="$ac_file.  $configure_input"
20718       { echo "$as_me:$LINENO: creating $ac_file" >&5
20719 echo "$as_me: creating $ac_file" >&6;}
20720     fi
20721
20722     case $ac_tag in
20723     *:-:* | *:-) cat >"$tmp/stdin";;
20724     esac
20725     ;;
20726   esac
20727
20728   ac_dir=`$as_dirname -- "$ac_file" ||
20729 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20730          X"$ac_file" : 'X\(//\)[^/]' \| \
20731          X"$ac_file" : 'X\(//\)$' \| \
20732          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20733 echo X"$ac_file" |
20734     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20735             s//\1/
20736             q
20737           }
20738           /^X\(\/\/\)[^/].*/{
20739             s//\1/
20740             q
20741           }
20742           /^X\(\/\/\)$/{
20743             s//\1/
20744             q
20745           }
20746           /^X\(\/\).*/{
20747             s//\1/
20748             q
20749           }
20750           s/.*/./; q'`
20751   { as_dir="$ac_dir"
20752   case $as_dir in #(
20753   -*) as_dir=./$as_dir;;
20754   esac
20755   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20756     as_dirs=
20757     while :; do
20758       case $as_dir in #(
20759       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20760       *) as_qdir=$as_dir;;
20761       esac
20762       as_dirs="'$as_qdir' $as_dirs"
20763       as_dir=`$as_dirname -- "$as_dir" ||
20764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20765          X"$as_dir" : 'X\(//\)[^/]' \| \
20766          X"$as_dir" : 'X\(//\)$' \| \
20767          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20768 echo X"$as_dir" |
20769     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20770             s//\1/
20771             q
20772           }
20773           /^X\(\/\/\)[^/].*/{
20774             s//\1/
20775             q
20776           }
20777           /^X\(\/\/\)$/{
20778             s//\1/
20779             q
20780           }
20781           /^X\(\/\).*/{
20782             s//\1/
20783             q
20784           }
20785           s/.*/./; q'`
20786       test -d "$as_dir" && break
20787     done
20788     test -z "$as_dirs" || eval "mkdir $as_dirs"
20789   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20790 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20791    { (exit 1); exit 1; }; }; }
20792   ac_builddir=.
20793
20794 case "$ac_dir" in
20795 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20796 *)
20797   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20798   # A ".." for each directory in $ac_dir_suffix.
20799   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20800   case $ac_top_builddir_sub in
20801   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20802   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20803   esac ;;
20804 esac
20805 ac_abs_top_builddir=$ac_pwd
20806 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20807 # for backward compatibility:
20808 ac_top_builddir=$ac_top_build_prefix
20809
20810 case $srcdir in
20811   .)  # We are building in place.
20812     ac_srcdir=.
20813     ac_top_srcdir=$ac_top_builddir_sub
20814     ac_abs_top_srcdir=$ac_pwd ;;
20815   [\\/]* | ?:[\\/]* )  # Absolute name.
20816     ac_srcdir=$srcdir$ac_dir_suffix;
20817     ac_top_srcdir=$srcdir
20818     ac_abs_top_srcdir=$srcdir ;;
20819   *) # Relative name.
20820     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20821     ac_top_srcdir=$ac_top_build_prefix$srcdir
20822     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20823 esac
20824 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20825
20826
20827   case $ac_mode in
20828   :F)
20829   #
20830   # CONFIG_FILE
20831   #
20832
20833   case $INSTALL in
20834   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20835   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20836   esac
20837 _ACEOF
20838
20839 cat >>$CONFIG_STATUS <<\_ACEOF
20840 # If the template does not know about datarootdir, expand it.
20841 # FIXME: This hack should be removed a few years after 2.60.
20842 ac_datarootdir_hack=; ac_datarootdir_seen=
20843
20844 case `sed -n '/datarootdir/ {
20845   p
20846   q
20847 }
20848 /@datadir@/p
20849 /@docdir@/p
20850 /@infodir@/p
20851 /@localedir@/p
20852 /@mandir@/p
20853 ' $ac_file_inputs` in
20854 *datarootdir*) ac_datarootdir_seen=yes;;
20855 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20856   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20857 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20858 _ACEOF
20859 cat >>$CONFIG_STATUS <<_ACEOF
20860   ac_datarootdir_hack='
20861   s&@datadir@&$datadir&g
20862   s&@docdir@&$docdir&g
20863   s&@infodir@&$infodir&g
20864   s&@localedir@&$localedir&g
20865   s&@mandir@&$mandir&g
20866     s&\\\${datarootdir}&$datarootdir&g' ;;
20867 esac
20868 _ACEOF
20869
20870 # Neutralize VPATH when `$srcdir' = `.'.
20871 # Shell code in configure.ac might set extrasub.
20872 # FIXME: do we really want to maintain this feature?
20873 cat >>$CONFIG_STATUS <<_ACEOF
20874   sed "$ac_vpsub
20875 $extrasub
20876 _ACEOF
20877 cat >>$CONFIG_STATUS <<\_ACEOF
20878 :t
20879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20880 s&@configure_input@&$configure_input&;t t
20881 s&@top_builddir@&$ac_top_builddir_sub&;t t
20882 s&@srcdir@&$ac_srcdir&;t t
20883 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20884 s&@top_srcdir@&$ac_top_srcdir&;t t
20885 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20886 s&@builddir@&$ac_builddir&;t t
20887 s&@abs_builddir@&$ac_abs_builddir&;t t
20888 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20889 s&@INSTALL@&$ac_INSTALL&;t t
20890 $ac_datarootdir_hack
20891 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20892
20893 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20894   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20895   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20896   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20897 which seems to be undefined.  Please make sure it is defined." >&5
20898 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20899 which seems to be undefined.  Please make sure it is defined." >&2;}
20900
20901   rm -f "$tmp/stdin"
20902   case $ac_file in
20903   -) cat "$tmp/out"; rm -f "$tmp/out";;
20904   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20905   esac
20906  ;;
20907   :H)
20908   #
20909   # CONFIG_HEADER
20910   #
20911 _ACEOF
20912
20913 # Transform confdefs.h into a sed script `conftest.defines', that
20914 # substitutes the proper values into config.h.in to produce config.h.
20915 rm -f conftest.defines conftest.tail
20916 # First, append a space to every undef/define line, to ease matching.
20917 echo 's/$/ /' >conftest.defines
20918 # Then, protect against being on the right side of a sed subst, or in
20919 # an unquoted here document, in config.status.  If some macros were
20920 # called several times there might be several #defines for the same
20921 # symbol, which is useless.  But do not sort them, since the last
20922 # AC_DEFINE must be honored.
20923 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20924 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20925 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20926 # PARAMS is the parameter list in the macro definition--in most cases, it's
20927 # just an empty string.
20928 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
20929 ac_dB='\\)[      (].*,\\1define\\2'
20930 ac_dC=' '
20931 ac_dD=' ,'
20932
20933 uniq confdefs.h |
20934   sed -n '
20935         t rset
20936         :rset
20937         s/^[     ]*#[    ]*define[       ][      ]*//
20938         t ok
20939         d
20940         :ok
20941         s/[\\&,]/\\&/g
20942         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20943         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20944   ' >>conftest.defines
20945
20946 # Remove the space that was appended to ease matching.
20947 # Then replace #undef with comments.  This is necessary, for
20948 # example, in the case of _POSIX_SOURCE, which is predefined and required
20949 # on some systems where configure will not decide to define it.
20950 # (The regexp can be short, since the line contains either #define or #undef.)
20951 echo 's/ $//
20952 s,^[     #]*u.*,/* & */,' >>conftest.defines
20953
20954 # Break up conftest.defines:
20955 ac_max_sed_lines=50
20956
20957 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20958 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20959 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20960 # et cetera.
20961 ac_in='$ac_file_inputs'
20962 ac_out='"$tmp/out1"'
20963 ac_nxt='"$tmp/out2"'
20964
20965 while :
20966 do
20967   # Write a here document:
20968     cat >>$CONFIG_STATUS <<_ACEOF
20969     # First, check the format of the line:
20970     cat >"\$tmp/defines.sed" <<\\CEOF
20971 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
20972 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
20973 b
20974 :def
20975 _ACEOF
20976   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20977   echo 'CEOF
20978     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20979   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20980   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20981   grep . conftest.tail >/dev/null || break
20982   rm -f conftest.defines
20983   mv conftest.tail conftest.defines
20984 done
20985 rm -f conftest.defines conftest.tail
20986
20987 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20988 cat >>$CONFIG_STATUS <<\_ACEOF
20989   if test x"$ac_file" != x-; then
20990     echo "/* $configure_input  */" >"$tmp/config.h"
20991     cat "$ac_result" >>"$tmp/config.h"
20992     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20993       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20994 echo "$as_me: $ac_file is unchanged" >&6;}
20995     else
20996       rm -f $ac_file
20997       mv "$tmp/config.h" $ac_file
20998     fi
20999   else
21000     echo "/* $configure_input  */"
21001     cat "$ac_result"
21002   fi
21003   rm -f "$tmp/out12"
21004 # Compute $ac_file's index in $config_headers.
21005 _am_stamp_count=1
21006 for _am_header in $config_headers :; do
21007   case $_am_header in
21008     $ac_file | $ac_file:* )
21009       break ;;
21010     * )
21011       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21012   esac
21013 done
21014 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21015 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21016          X$ac_file : 'X\(//\)[^/]' \| \
21017          X$ac_file : 'X\(//\)$' \| \
21018          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21019 echo X$ac_file |
21020     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21021             s//\1/
21022             q
21023           }
21024           /^X\(\/\/\)[^/].*/{
21025             s//\1/
21026             q
21027           }
21028           /^X\(\/\/\)$/{
21029             s//\1/
21030             q
21031           }
21032           /^X\(\/\).*/{
21033             s//\1/
21034             q
21035           }
21036           s/.*/./; q'`/stamp-h$_am_stamp_count
21037  ;;
21038
21039   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21040 echo "$as_me: executing $ac_file commands" >&6;}
21041  ;;
21042   esac
21043
21044
21045   case $ac_file$ac_mode in
21046     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21047   # Strip MF so we end up with the name of the file.
21048   mf=`echo "$mf" | sed -e 's/:.*$//'`
21049   # Check whether this is an Automake generated Makefile or not.
21050   # We used to match only the files named `Makefile.in', but
21051   # some people rename them; so instead we look at the file content.
21052   # Grep'ing the first line is not enough: some people post-process
21053   # each Makefile.in and add a new line on top of each file to say so.
21054   # So let's grep whole file.
21055   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21056     dirpart=`$as_dirname -- "$mf" ||
21057 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21058          X"$mf" : 'X\(//\)[^/]' \| \
21059          X"$mf" : 'X\(//\)$' \| \
21060          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21061 echo X"$mf" |
21062     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21063             s//\1/
21064             q
21065           }
21066           /^X\(\/\/\)[^/].*/{
21067             s//\1/
21068             q
21069           }
21070           /^X\(\/\/\)$/{
21071             s//\1/
21072             q
21073           }
21074           /^X\(\/\).*/{
21075             s//\1/
21076             q
21077           }
21078           s/.*/./; q'`
21079   else
21080     continue
21081   fi
21082   # Extract the definition of DEPDIR, am__include, and am__quote
21083   # from the Makefile without running `make'.
21084   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21085   test -z "$DEPDIR" && continue
21086   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21087   test -z "am__include" && continue
21088   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21089   # When using ansi2knr, U may be empty or an underscore; expand it
21090   U=`sed -n 's/^U = //p' < "$mf"`
21091   # Find all dependency output files, they are included files with
21092   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21093   # simplest approach to changing $(DEPDIR) to its actual value in the
21094   # expansion.
21095   for file in `sed -n "
21096     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21097        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21098     # Make sure the directory exists.
21099     test -f "$dirpart/$file" && continue
21100     fdir=`$as_dirname -- "$file" ||
21101 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21102          X"$file" : 'X\(//\)[^/]' \| \
21103          X"$file" : 'X\(//\)$' \| \
21104          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21105 echo X"$file" |
21106     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21107             s//\1/
21108             q
21109           }
21110           /^X\(\/\/\)[^/].*/{
21111             s//\1/
21112             q
21113           }
21114           /^X\(\/\/\)$/{
21115             s//\1/
21116             q
21117           }
21118           /^X\(\/\).*/{
21119             s//\1/
21120             q
21121           }
21122           s/.*/./; q'`
21123     { as_dir=$dirpart/$fdir
21124   case $as_dir in #(
21125   -*) as_dir=./$as_dir;;
21126   esac
21127   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21128     as_dirs=
21129     while :; do
21130       case $as_dir in #(
21131       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21132       *) as_qdir=$as_dir;;
21133       esac
21134       as_dirs="'$as_qdir' $as_dirs"
21135       as_dir=`$as_dirname -- "$as_dir" ||
21136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21137          X"$as_dir" : 'X\(//\)[^/]' \| \
21138          X"$as_dir" : 'X\(//\)$' \| \
21139          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21140 echo X"$as_dir" |
21141     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21142             s//\1/
21143             q
21144           }
21145           /^X\(\/\/\)[^/].*/{
21146             s//\1/
21147             q
21148           }
21149           /^X\(\/\/\)$/{
21150             s//\1/
21151             q
21152           }
21153           /^X\(\/\).*/{
21154             s//\1/
21155             q
21156           }
21157           s/.*/./; q'`
21158       test -d "$as_dir" && break
21159     done
21160     test -z "$as_dirs" || eval "mkdir $as_dirs"
21161   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21162 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21163    { (exit 1); exit 1; }; }; }
21164     # echo "creating $dirpart/$file"
21165     echo '# dummy' > "$dirpart/$file"
21166   done
21167 done
21168  ;;
21169
21170   esac
21171 done # for ac_tag
21172
21173
21174 { (exit 0); exit 0; }
21175 _ACEOF
21176 chmod +x $CONFIG_STATUS
21177 ac_clean_files=$ac_clean_files_save
21178
21179
21180 # configure is writing to config.log, and then calls config.status.
21181 # config.status does its own redirection, appending to config.log.
21182 # Unfortunately, on DOS this fails, as config.log is still kept open
21183 # by configure, so config.status won't be able to write to it; its
21184 # output is simply discarded.  So we exec the FD to /dev/null,
21185 # effectively closing config.log, so it can be properly (re)opened and
21186 # appended to by config.status.  When coming back to configure, we
21187 # need to make the FD available again.
21188 if test "$no_create" != yes; then
21189   ac_cs_success=:
21190   ac_config_status_args=
21191   test "$silent" = yes &&
21192     ac_config_status_args="$ac_config_status_args --quiet"
21193   exec 5>/dev/null
21194   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21195   exec 5>>config.log
21196   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21197   # would make configure fail if this is the last instruction.
21198   $ac_cs_success || { (exit 1); exit 1; }
21199 fi
21200
This page took 1.739597 seconds and 5 git commands to generate.