configure should test for sys/time.h and sys/timeb.h
[mplib] / src / texk / web2c / mpdir / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20   setopt NO_GLOB_SUBST
21 else
22   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38   echo "#! /bin/sh" >conf$$.sh
39   echo  "exit 0"   >>conf$$.sh
40   chmod +x conf$$.sh
41   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42     PATH_SEPARATOR=';'
43   else
44     PATH_SEPARATOR=:
45   fi
46   rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51   as_unset=unset
52 else
53   as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order.  Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" ""        $as_nl"
65
66 # Find who we are.  Look in the path if we contain no directory separator.
67 case $0 in
68   *[\\/]* ) as_myself=$0 ;;
69   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72   IFS=$as_save_IFS
73   test -z "$as_dir" && as_dir=.
74   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78      ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83   as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87   { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102   LC_TELEPHONE LC_TIME
103 do
104   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105     eval $as_var=C; export $as_var
106   else
107     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108   fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113    test "X`expr 00001 : '.*\(...\)'`" = X001; then
114   as_expr=expr
115 else
116   as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120   as_basename=basename
121 else
122   as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129          X"$0" : 'X\(//\)$' \| \
130          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132     sed '/^.*\/\([^/][^/]*\)\/*$/{
133             s//\1/
134             q
135           }
136           /^X\/\(\/\/\)$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\).*/{
141             s//\1/
142             q
143           }
144           s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151   if (eval ":") 2>/dev/null; then
152   as_have_required=yes
153 else
154   as_have_required=no
155 fi
156
157   if test $as_have_required = yes &&     (eval ":
158 (as_func_return () {
159   (exit \$1)
160 }
161 as_func_success () {
162   as_func_return 0
163 }
164 as_func_failure () {
165   as_func_return 1
166 }
167 as_func_ret_success () {
168   return 0
169 }
170 as_func_ret_failure () {
171   return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176   :
177 else
178   exitcode=1
179   echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183   exitcode=1
184   echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188   :
189 else
190   exitcode=1
191   echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195   exitcode=1
196   echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200   :
201 else
202   exitcode=1
203   echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209   as_lineno_1=\$LINENO
210   as_lineno_2=\$LINENO
211   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214   :
215 else
216   as_candidate_shells=
217     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   case $as_dir in
223          /*)
224            for as_base in sh bash ksh sh5; do
225              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226            done;;
227        esac
228 done
229 IFS=$as_save_IFS
230
231
232       for as_shell in $as_candidate_shells $SHELL; do
233          # Try only shells that exist, to save several forks.
234          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235                 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238   emulate sh
239   NULLCMD=:
240   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241   # is contrary to our usage.  Disable this feature.
242   alias -g '${1+"$@"}'='"$@"'
243   setopt NO_GLOB_SUBST
244 else
245   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253   CONFIG_SHELL=$as_shell
254                as_have_required=yes
255                if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258   emulate sh
259   NULLCMD=:
260   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261   # is contrary to our usage.  Disable this feature.
262   alias -g '${1+"$@"}'='"$@"'
263   setopt NO_GLOB_SUBST
264 else
265   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272   (exit $1)
273 }
274 as_func_success () {
275   as_func_return 0
276 }
277 as_func_failure () {
278   as_func_return 1
279 }
280 as_func_ret_success () {
281   return 0
282 }
283 as_func_ret_failure () {
284   return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289   :
290 else
291   exitcode=1
292   echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296   exitcode=1
297   echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301   :
302 else
303   exitcode=1
304   echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308   exitcode=1
309   echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313   :
314 else
315   exitcode=1
316   echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322   as_lineno_1=$LINENO
323   as_lineno_2=$LINENO
324   test "x$as_lineno_1" != "x$as_lineno_2" &&
325   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329   break
330 fi
331
332 fi
333
334       done
335
336       if test "x$CONFIG_SHELL" != x; then
337   for as_var in BASH_ENV ENV
338         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339         done
340         export CONFIG_SHELL
341         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345     if test $as_have_required = no; then
346   echo This script requires a shell more modern than all the
347       echo shells that I found on your system.  Please install a
348       echo modern shell, or manually run the script under such a
349       echo shell if you do have one.
350       { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361   (exit \$1)
362 }
363 as_func_success () {
364   as_func_return 0
365 }
366 as_func_failure () {
367   as_func_return 1
368 }
369 as_func_ret_success () {
370   return 0
371 }
372 as_func_ret_failure () {
373   return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378   :
379 else
380   exitcode=1
381   echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385   exitcode=1
386   echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390   :
391 else
392   exitcode=1
393   echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397   exitcode=1
398   echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402   :
403 else
404   exitcode=1
405   echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409   echo No shell found that supports shell functions.
410   echo Please tell autoconf@gnu.org about your system,
411   echo including any error possibly output before this
412   echo message
413 }
414
415
416
417   as_lineno_1=$LINENO
418   as_lineno_2=$LINENO
419   test "x$as_lineno_1" != "x$as_lineno_2" &&
420   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423   # uniformly replaced by the line number.  The first 'sed' inserts a
424   # line-number line after each line using $LINENO; the second 'sed'
425   # does the real work.  The second script uses 'N' to pair each
426   # line-number line with the line containing $LINENO, and appends
427   # trailing '-' during substitution so that $LINENO is not a special
428   # case at line end.
429   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430   # scripts with optimization help from Paolo Bonzini.  Blame Lee
431   # E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449    { (exit 1); exit 1; }; }
450
451   # Don't try to exec as it changes $[0], causing all sort of problems
452   # (the dirname of $[0] is not the place where we might find the
453   # original and so on.  Autoconf is especially sensitive to this).
454   . "./$as_me.lineno"
455   # Exit status is that of the last command.
456   exit
457 }
458
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461   as_dirname=dirname
462 else
463   as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469   case `echo 'x\c'` in
470   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
471   *)   ECHO_C='\c';;
472   esac;;
473 *)
474   ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478    test "X`expr 00001 : '.*\(...\)'`" = X001; then
479   as_expr=expr
480 else
481   as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493   as_ln_s='ln -s'
494   # ... but there are two gotchas:
495   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497   # In both cases, we have to default to `cp -p'.
498   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499     as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s=ln
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p=:
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523   as_executable_p="test -x"
524 else
525   as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541 case X$ECHO in
542 X*--fallback-echo)
543   # Remove one level of quotation (which was required for Make).
544   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
545   ;;
546 esac
547
548 echo=${ECHO-echo}
549 if test "X$1" = X--no-reexec; then
550   # Discard the --no-reexec flag, and continue.
551   shift
552 elif test "X$1" = X--fallback-echo; then
553   # Avoid inline document here, it may be left over
554   :
555 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556   # Yippee, $echo works!
557   :
558 else
559   # Restart under the correct shell.
560   exec $SHELL "$0" --no-reexec ${1+"$@"}
561 fi
562
563 if test "X$1" = X--fallback-echo; then
564   # used as fallback echo
565   shift
566   cat <<EOF
567 $*
568 EOF
569   exit 0
570 fi
571
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 # if CDPATH is set.
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575
576 if test -z "$ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582        echo_test_string=`eval $cmd` &&
583        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
584     then
585       break
586     fi
587   done
588 fi
589
590 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592    test "X$echo_testing_string" = "X$echo_test_string"; then
593   :
594 else
595   # The Solaris, AIX, and Digital Unix default echo programs unquote
596   # backslashes.  This makes it impossible to quote backslashes using
597   #   echo "$something" | sed 's/\\/\\\\/g'
598   #
599   # So, first we look for a working echo in the user's PATH.
600
601   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602   for dir in $PATH /usr/ucb; do
603     IFS="$lt_save_ifs"
604     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607        test "X$echo_testing_string" = "X$echo_test_string"; then
608       echo="$dir/echo"
609       break
610     fi
611   done
612   IFS="$lt_save_ifs"
613
614   if test "X$echo" = Xecho; then
615     # We didn't find a better echo, so look for alternatives.
616     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618        test "X$echo_testing_string" = "X$echo_test_string"; then
619       # This shell has a builtin print -r that does the trick.
620       echo='print -r'
621     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622          test "X$CONFIG_SHELL" != X/bin/ksh; then
623       # If we have ksh, try running configure again with it.
624       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625       export ORIGINAL_CONFIG_SHELL
626       CONFIG_SHELL=/bin/ksh
627       export CONFIG_SHELL
628       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
629     else
630       # Try using printf.
631       echo='printf %s\n'
632       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634          test "X$echo_testing_string" = "X$echo_test_string"; then
635         # Cool, printf works
636         :
637       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638            test "X$echo_testing_string" = 'X\t' &&
639            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640            test "X$echo_testing_string" = "X$echo_test_string"; then
641         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642         export CONFIG_SHELL
643         SHELL="$CONFIG_SHELL"
644         export SHELL
645         echo="$CONFIG_SHELL $0 --fallback-echo"
646       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647            test "X$echo_testing_string" = 'X\t' &&
648            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649            test "X$echo_testing_string" = "X$echo_test_string"; then
650         echo="$CONFIG_SHELL $0 --fallback-echo"
651       else
652         # maybe with a smaller string...
653         prev=:
654
655         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
657           then
658             break
659           fi
660           prev="$cmd"
661         done
662
663         if test "$prev" != 'sed 50q "$0"'; then
664           echo_test_string=`eval $prev`
665           export echo_test_string
666           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667         else
668           # Oops.  We lost completely, so just stick with echo.
669           echo=echo
670         fi
671       fi
672     fi
673   fi
674 fi
675 fi
676
677 # Copy echo and quote the copy suitably for passing to libtool from
678 # the Makefile, instead of quoting the original, which is used later.
679 ECHO=$echo
680 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
682 fi
683
684
685
686
687 tagnames=${tagnames+${tagnames},}CXX
688
689 tagnames=${tagnames+${tagnames},}F77
690
691 exec 7<&0 </dev/null 6>&1
692
693 # Name of the host.
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
697
698 #
699 # Initializations.
700 #
701 ac_default_prefix=/usr/local
702 ac_clean_files=
703 ac_config_libobj_dir=.
704 LIBOBJS=
705 cross_compiling=no
706 subdirs=
707 MFLAGS=
708 MAKEFLAGS=
709 SHELL=${CONFIG_SHELL-/bin/sh}
710
711 # Identity of this package.
712 PACKAGE_NAME=
713 PACKAGE_TARNAME=
714 PACKAGE_VERSION=
715 PACKAGE_STRING=
716 PACKAGE_BUGREPORT=
717
718 ac_unique_file="mp.w"
719 # Factoring default headers for most tests.
720 ac_includes_default="\
721 #include <stdio.h>
722 #if HAVE_SYS_TYPES_H
723 # include <sys/types.h>
724 #endif
725 #if HAVE_SYS_STAT_H
726 # include <sys/stat.h>
727 #endif
728 #if STDC_HEADERS
729 # include <stdlib.h>
730 # include <stddef.h>
731 #else
732 # if HAVE_STDLIB_H
733 #  include <stdlib.h>
734 # endif
735 #endif
736 #if HAVE_STRING_H
737 # if !STDC_HEADERS && HAVE_MEMORY_H
738 #  include <memory.h>
739 # endif
740 # include <string.h>
741 #endif
742 #if HAVE_STRINGS_H
743 # include <strings.h>
744 #endif
745 #if HAVE_INTTYPES_H
746 # include <inttypes.h>
747 #endif
748 #if HAVE_STDINT_H
749 # include <stdint.h>
750 #endif
751 #if HAVE_UNISTD_H
752 # include <unistd.h>
753 #endif"
754
755 ac_subst_vars='SHELL
756 PATH_SEPARATOR
757 PACKAGE_NAME
758 PACKAGE_TARNAME
759 PACKAGE_VERSION
760 PACKAGE_STRING
761 PACKAGE_BUGREPORT
762 exec_prefix
763 prefix
764 program_transform_name
765 bindir
766 sbindir
767 libexecdir
768 datarootdir
769 datadir
770 sysconfdir
771 sharedstatedir
772 localstatedir
773 includedir
774 oldincludedir
775 docdir
776 infodir
777 htmldir
778 dvidir
779 pdfdir
780 psdir
781 libdir
782 localedir
783 mandir
784 DEFS
785 ECHO_C
786 ECHO_N
787 ECHO_T
788 LIBS
789 build_alias
790 host_alias
791 target_alias
792 INSTALL_PROGRAM
793 INSTALL_SCRIPT
794 INSTALL_DATA
795 am__isrc
796 CYGPATH_W
797 PACKAGE
798 VERSION
799 ACLOCAL
800 AUTOCONF
801 AUTOMAKE
802 AUTOHEADER
803 MAKEINFO
804 install_sh
805 STRIP
806 INSTALL_STRIP_PROGRAM
807 mkdir_p
808 AWK
809 SET_MAKE
810 am__leading_dot
811 AMTAR
812 am__tar
813 am__untar
814 build
815 build_cpu
816 build_vendor
817 build_os
818 host
819 host_cpu
820 host_vendor
821 host_os
822 CC
823 CFLAGS
824 LDFLAGS
825 CPPFLAGS
826 ac_ct_CC
827 EXEEXT
828 OBJEXT
829 DEPDIR
830 am__include
831 am__quote
832 AMDEP_TRUE
833 AMDEP_FALSE
834 AMDEPBACKSLASH
835 CCDEPMODE
836 am__fastdepCC_TRUE
837 am__fastdepCC_FALSE
838 SED
839 GREP
840 EGREP
841 LN_S
842 ECHO
843 AR
844 RANLIB
845 CPP
846 CXX
847 CXXFLAGS
848 ac_ct_CXX
849 CXXDEPMODE
850 am__fastdepCXX_TRUE
851 am__fastdepCXX_FALSE
852 CXXCPP
853 F77
854 FFLAGS
855 ac_ct_F77
856 LIBTOOL
857 WITH_LUA_TRUE
858 WITH_LUA_FALSE
859 LIBOBJS
860 LTLIBOBJS'
861 ac_subst_files=''
862       ac_precious_vars='build_alias
863 host_alias
864 target_alias
865 CC
866 CFLAGS
867 LDFLAGS
868 CPPFLAGS
869 CPP
870 CXX
871 CXXFLAGS
872 CCC
873 CXXCPP
874 F77
875 FFLAGS'
876
877
878 # Initialize some variables set by options.
879 ac_init_help=
880 ac_init_version=false
881 # The variables have the same names as the options, with
882 # dashes changed to underlines.
883 cache_file=/dev/null
884 exec_prefix=NONE
885 no_create=
886 no_recursion=
887 prefix=NONE
888 program_prefix=NONE
889 program_suffix=NONE
890 program_transform_name=s,x,x,
891 silent=
892 site=
893 srcdir=
894 verbose=
895 x_includes=NONE
896 x_libraries=NONE
897
898 # Installation directory options.
899 # These are left unexpanded so users can "make install exec_prefix=/foo"
900 # and all the variables that are supposed to be based on exec_prefix
901 # by default will actually change.
902 # Use braces instead of parens because sh, perl, etc. also accept them.
903 # (The list follows the same order as the GNU Coding Standards.)
904 bindir='${exec_prefix}/bin'
905 sbindir='${exec_prefix}/sbin'
906 libexecdir='${exec_prefix}/libexec'
907 datarootdir='${prefix}/share'
908 datadir='${datarootdir}'
909 sysconfdir='${prefix}/etc'
910 sharedstatedir='${prefix}/com'
911 localstatedir='${prefix}/var'
912 includedir='${prefix}/include'
913 oldincludedir='/usr/include'
914 docdir='${datarootdir}/doc/${PACKAGE}'
915 infodir='${datarootdir}/info'
916 htmldir='${docdir}'
917 dvidir='${docdir}'
918 pdfdir='${docdir}'
919 psdir='${docdir}'
920 libdir='${exec_prefix}/lib'
921 localedir='${datarootdir}/locale'
922 mandir='${datarootdir}/man'
923
924 ac_prev=
925 ac_dashdash=
926 for ac_option
927 do
928   # If the previous option needs an argument, assign it.
929   if test -n "$ac_prev"; then
930     eval $ac_prev=\$ac_option
931     ac_prev=
932     continue
933   fi
934
935   case $ac_option in
936   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
937   *)    ac_optarg=yes ;;
938   esac
939
940   # Accept the important Cygnus configure options, so we can diagnose typos.
941
942   case $ac_dashdash$ac_option in
943   --)
944     ac_dashdash=yes ;;
945
946   -bindir | --bindir | --bindi | --bind | --bin | --bi)
947     ac_prev=bindir ;;
948   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
949     bindir=$ac_optarg ;;
950
951   -build | --build | --buil | --bui | --bu)
952     ac_prev=build_alias ;;
953   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954     build_alias=$ac_optarg ;;
955
956   -cache-file | --cache-file | --cache-fil | --cache-fi \
957   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958     ac_prev=cache_file ;;
959   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961     cache_file=$ac_optarg ;;
962
963   --config-cache | -C)
964     cache_file=config.cache ;;
965
966   -datadir | --datadir | --datadi | --datad)
967     ac_prev=datadir ;;
968   -datadir=* | --datadir=* | --datadi=* | --datad=*)
969     datadir=$ac_optarg ;;
970
971   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972   | --dataroo | --dataro | --datar)
973     ac_prev=datarootdir ;;
974   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976     datarootdir=$ac_optarg ;;
977
978   -disable-* | --disable-*)
979     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980     # Reject names that are not valid shell variable names.
981     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
982       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
983    { (exit 1); exit 1; }; }
984     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
985     eval enable_$ac_feature=no ;;
986
987   -docdir | --docdir | --docdi | --doc | --do)
988     ac_prev=docdir ;;
989   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990     docdir=$ac_optarg ;;
991
992   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993     ac_prev=dvidir ;;
994   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995     dvidir=$ac_optarg ;;
996
997   -enable-* | --enable-*)
998     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1001       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002    { (exit 1); exit 1; }; }
1003     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1004     eval enable_$ac_feature=\$ac_optarg ;;
1005
1006   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008   | --exec | --exe | --ex)
1009     ac_prev=exec_prefix ;;
1010   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012   | --exec=* | --exe=* | --ex=*)
1013     exec_prefix=$ac_optarg ;;
1014
1015   -gas | --gas | --ga | --g)
1016     # Obsolete; use --with-gas.
1017     with_gas=yes ;;
1018
1019   -help | --help | --hel | --he | -h)
1020     ac_init_help=long ;;
1021   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022     ac_init_help=recursive ;;
1023   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024     ac_init_help=short ;;
1025
1026   -host | --host | --hos | --ho)
1027     ac_prev=host_alias ;;
1028   -host=* | --host=* | --hos=* | --ho=*)
1029     host_alias=$ac_optarg ;;
1030
1031   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032     ac_prev=htmldir ;;
1033   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034   | --ht=*)
1035     htmldir=$ac_optarg ;;
1036
1037   -includedir | --includedir | --includedi | --included | --include \
1038   | --includ | --inclu | --incl | --inc)
1039     ac_prev=includedir ;;
1040   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041   | --includ=* | --inclu=* | --incl=* | --inc=*)
1042     includedir=$ac_optarg ;;
1043
1044   -infodir | --infodir | --infodi | --infod | --info | --inf)
1045     ac_prev=infodir ;;
1046   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047     infodir=$ac_optarg ;;
1048
1049   -libdir | --libdir | --libdi | --libd)
1050     ac_prev=libdir ;;
1051   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052     libdir=$ac_optarg ;;
1053
1054   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055   | --libexe | --libex | --libe)
1056     ac_prev=libexecdir ;;
1057   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058   | --libexe=* | --libex=* | --libe=*)
1059     libexecdir=$ac_optarg ;;
1060
1061   -localedir | --localedir | --localedi | --localed | --locale)
1062     ac_prev=localedir ;;
1063   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064     localedir=$ac_optarg ;;
1065
1066   -localstatedir | --localstatedir | --localstatedi | --localstated \
1067   | --localstate | --localstat | --localsta | --localst | --locals)
1068     ac_prev=localstatedir ;;
1069   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071     localstatedir=$ac_optarg ;;
1072
1073   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074     ac_prev=mandir ;;
1075   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076     mandir=$ac_optarg ;;
1077
1078   -nfp | --nfp | --nf)
1079     # Obsolete; use --without-fp.
1080     with_fp=no ;;
1081
1082   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083   | --no-cr | --no-c | -n)
1084     no_create=yes ;;
1085
1086   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088     no_recursion=yes ;;
1089
1090   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092   | --oldin | --oldi | --old | --ol | --o)
1093     ac_prev=oldincludedir ;;
1094   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097     oldincludedir=$ac_optarg ;;
1098
1099   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100     ac_prev=prefix ;;
1101   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102     prefix=$ac_optarg ;;
1103
1104   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105   | --program-pre | --program-pr | --program-p)
1106     ac_prev=program_prefix ;;
1107   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109     program_prefix=$ac_optarg ;;
1110
1111   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112   | --program-suf | --program-su | --program-s)
1113     ac_prev=program_suffix ;;
1114   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116     program_suffix=$ac_optarg ;;
1117
1118   -program-transform-name | --program-transform-name \
1119   | --program-transform-nam | --program-transform-na \
1120   | --program-transform-n | --program-transform- \
1121   | --program-transform | --program-transfor \
1122   | --program-transfo | --program-transf \
1123   | --program-trans | --program-tran \
1124   | --progr-tra | --program-tr | --program-t)
1125     ac_prev=program_transform_name ;;
1126   -program-transform-name=* | --program-transform-name=* \
1127   | --program-transform-nam=* | --program-transform-na=* \
1128   | --program-transform-n=* | --program-transform-=* \
1129   | --program-transform=* | --program-transfor=* \
1130   | --program-transfo=* | --program-transf=* \
1131   | --program-trans=* | --program-tran=* \
1132   | --progr-tra=* | --program-tr=* | --program-t=*)
1133     program_transform_name=$ac_optarg ;;
1134
1135   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136     ac_prev=pdfdir ;;
1137   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138     pdfdir=$ac_optarg ;;
1139
1140   -psdir | --psdir | --psdi | --psd | --ps)
1141     ac_prev=psdir ;;
1142   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143     psdir=$ac_optarg ;;
1144
1145   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146   | -silent | --silent | --silen | --sile | --sil)
1147     silent=yes ;;
1148
1149   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150     ac_prev=sbindir ;;
1151   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152   | --sbi=* | --sb=*)
1153     sbindir=$ac_optarg ;;
1154
1155   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157   | --sharedst | --shareds | --shared | --share | --shar \
1158   | --sha | --sh)
1159     ac_prev=sharedstatedir ;;
1160   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163   | --sha=* | --sh=*)
1164     sharedstatedir=$ac_optarg ;;
1165
1166   -site | --site | --sit)
1167     ac_prev=site ;;
1168   -site=* | --site=* | --sit=*)
1169     site=$ac_optarg ;;
1170
1171   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172     ac_prev=srcdir ;;
1173   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174     srcdir=$ac_optarg ;;
1175
1176   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177   | --syscon | --sysco | --sysc | --sys | --sy)
1178     ac_prev=sysconfdir ;;
1179   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181     sysconfdir=$ac_optarg ;;
1182
1183   -target | --target | --targe | --targ | --tar | --ta | --t)
1184     ac_prev=target_alias ;;
1185   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186     target_alias=$ac_optarg ;;
1187
1188   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189     verbose=yes ;;
1190
1191   -version | --version | --versio | --versi | --vers | -V)
1192     ac_init_version=: ;;
1193
1194   -with-* | --with-*)
1195     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196     # Reject names that are not valid shell variable names.
1197     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1198       { echo "$as_me: error: invalid package name: $ac_package" >&2
1199    { (exit 1); exit 1; }; }
1200     ac_package=`echo $ac_package| sed 's/-/_/g'`
1201     eval with_$ac_package=\$ac_optarg ;;
1202
1203   -without-* | --without-*)
1204     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205     # Reject names that are not valid shell variable names.
1206     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1207       { echo "$as_me: error: invalid package name: $ac_package" >&2
1208    { (exit 1); exit 1; }; }
1209     ac_package=`echo $ac_package | sed 's/-/_/g'`
1210     eval with_$ac_package=no ;;
1211
1212   --x)
1213     # Obsolete; use --with-x.
1214     with_x=yes ;;
1215
1216   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217   | --x-incl | --x-inc | --x-in | --x-i)
1218     ac_prev=x_includes ;;
1219   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221     x_includes=$ac_optarg ;;
1222
1223   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225     ac_prev=x_libraries ;;
1226   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228     x_libraries=$ac_optarg ;;
1229
1230   -*) { echo "$as_me: error: unrecognized option: $ac_option
1231 Try \`$0 --help' for more information." >&2
1232    { (exit 1); exit 1; }; }
1233     ;;
1234
1235   *=*)
1236     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237     # Reject names that are not valid shell variable names.
1238     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1239       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1240    { (exit 1); exit 1; }; }
1241     eval $ac_envvar=\$ac_optarg
1242     export $ac_envvar ;;
1243
1244   *)
1245     # FIXME: should be removed in autoconf 3.0.
1246     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250     ;;
1251
1252   esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257   { echo "$as_me: error: missing argument to $ac_option" >&2
1258    { (exit 1); exit 1; }; }
1259 fi
1260
1261 # Be sure to have absolute directory names.
1262 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263                 datadir sysconfdir sharedstatedir localstatedir includedir \
1264                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265                 libdir localedir mandir
1266 do
1267   eval ac_val=\$$ac_var
1268   case $ac_val in
1269     [\\/$]* | ?:[\\/]* )  continue;;
1270     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271   esac
1272   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1273    { (exit 1); exit 1; }; }
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285   if test "x$build_alias" = x; then
1286     cross_compiling=maybe
1287     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288     If a cross compiler is detected then cross compile mode will be used." >&2
1289   elif test "x$build_alias" != "x$host_alias"; then
1290     cross_compiling=yes
1291   fi
1292 fi
1293
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297 test "$silent" = yes && exec 6>/dev/null
1298
1299
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303   { echo "$as_me: error: Working directory cannot be determined" >&2
1304    { (exit 1); exit 1; }; }
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306   { echo "$as_me: error: pwd does not report name of working directory" >&2
1307    { (exit 1); exit 1; }; }
1308
1309
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312   ac_srcdir_defaulted=yes
1313   # Try the directory containing this script, then the parent directory.
1314   ac_confdir=`$as_dirname -- "$0" ||
1315 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316          X"$0" : 'X\(//\)[^/]' \| \
1317          X"$0" : 'X\(//\)$' \| \
1318          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1319 echo X"$0" |
1320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321             s//\1/
1322             q
1323           }
1324           /^X\(\/\/\)[^/].*/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\/\)$/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\).*/{
1333             s//\1/
1334             q
1335           }
1336           s/.*/./; q'`
1337   srcdir=$ac_confdir
1338   if test ! -r "$srcdir/$ac_unique_file"; then
1339     srcdir=..
1340   fi
1341 else
1342   ac_srcdir_defaulted=no
1343 fi
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1347    { (exit 1); exit 1; }; }
1348 fi
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1352    { (exit 1); exit 1; }; }
1353         pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356   srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_env_${ac_var}_value=\$${ac_var}
1367   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375   # Omit some internal or obsolete options to make the list less imposing.
1376   # This message is too long to be a string in the A/UX 3.1 sh.
1377   cat <<_ACEOF
1378 \`configure' configures this package to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE.  See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388   -h, --help              display this help and exit
1389       --help=short        display options specific to this package
1390       --help=recursive    display the short help of all the included packages
1391   -V, --version           display version information and exit
1392   -q, --quiet, --silent   do not print \`checking...' messages
1393       --cache-file=FILE   cache test results in FILE [disabled]
1394   -C, --config-cache      alias for \`--cache-file=config.cache'
1395   -n, --no-create         do not create output files
1396       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399   --prefix=PREFIX         install architecture-independent files in PREFIX
1400                           [$ac_default_prefix]
1401   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1402                           [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412   --bindir=DIR           user executables [EPREFIX/bin]
1413   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1414   --libexecdir=DIR       program executables [EPREFIX/libexec]
1415   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1416   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1417   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1418   --libdir=DIR           object code libraries [EPREFIX/lib]
1419   --includedir=DIR       C header files [PREFIX/include]
1420   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1421   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1422   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1423   --infodir=DIR          info documentation [DATAROOTDIR/info]
1424   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1425   --mandir=DIR           man documentation [DATAROOTDIR/man]
1426   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1427   --htmldir=DIR          html documentation [DOCDIR]
1428   --dvidir=DIR           dvi documentation [DOCDIR]
1429   --pdfdir=DIR           pdf documentation [DOCDIR]
1430   --psdir=DIR            ps documentation [DOCDIR]
1431 _ACEOF
1432
1433   cat <<\_ACEOF
1434
1435 Program names:
1436   --program-prefix=PREFIX            prepend PREFIX to installed program names
1437   --program-suffix=SUFFIX            append SUFFIX to installed program names
1438   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1439
1440 System types:
1441   --build=BUILD     configure for building on BUILD [guessed]
1442   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1443 _ACEOF
1444 fi
1445
1446 if test -n "$ac_init_help"; then
1447
1448   cat <<\_ACEOF
1449
1450 Optional Features:
1451   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453   --enable-shared[=PKGS]  build shared libraries [default=yes]
1454   --enable-static[=PKGS]  build static libraries [default=yes]
1455   --enable-fast-install[=PKGS]
1456                           optimize for fast installation [default=yes]
1457   --disable-dependency-tracking  speeds up one-time build
1458   --enable-dependency-tracking   do not reject slow dependency extractors
1459   --disable-libtool-lock  avoid locking (might break parallel builds)
1460   --enable-lua            build lua module (default is no)
1461
1462 Optional Packages:
1463   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1464   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1465   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1466   --with-pic              try to use only PIC/non-PIC objects [default=use
1467                           both]
1468   --with-tags[=TAGS]      include additional configurations [automatic]
1469
1470 Some influential environment variables:
1471   CC          C compiler command
1472   CFLAGS      C compiler flags
1473   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1474               nonstandard directory <lib dir>
1475   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1476               you have headers in a nonstandard directory <include dir>
1477   CPP         C preprocessor
1478   CXX         C++ compiler command
1479   CXXFLAGS    C++ compiler flags
1480   CXXCPP      C++ preprocessor
1481   F77         Fortran 77 compiler command
1482   FFLAGS      Fortran 77 compiler flags
1483
1484 Use these variables to override the choices made by `configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1486
1487 _ACEOF
1488 ac_status=$?
1489 fi
1490
1491 if test "$ac_init_help" = "recursive"; then
1492   # If there are subdirs, report their specific --help.
1493   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494     test -d "$ac_dir" || continue
1495     ac_builddir=.
1496
1497 case "$ac_dir" in
1498 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *)
1500   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1501   # A ".." for each directory in $ac_dir_suffix.
1502   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1503   case $ac_top_builddir_sub in
1504   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1506   esac ;;
1507 esac
1508 ac_abs_top_builddir=$ac_pwd
1509 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1510 # for backward compatibility:
1511 ac_top_builddir=$ac_top_build_prefix
1512
1513 case $srcdir in
1514   .)  # We are building in place.
1515     ac_srcdir=.
1516     ac_top_srcdir=$ac_top_builddir_sub
1517     ac_abs_top_srcdir=$ac_pwd ;;
1518   [\\/]* | ?:[\\/]* )  # Absolute name.
1519     ac_srcdir=$srcdir$ac_dir_suffix;
1520     ac_top_srcdir=$srcdir
1521     ac_abs_top_srcdir=$srcdir ;;
1522   *) # Relative name.
1523     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1524     ac_top_srcdir=$ac_top_build_prefix$srcdir
1525     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1526 esac
1527 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528
1529     cd "$ac_dir" || { ac_status=$?; continue; }
1530     # Check for guested configure.
1531     if test -f "$ac_srcdir/configure.gnu"; then
1532       echo &&
1533       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534     elif test -f "$ac_srcdir/configure"; then
1535       echo &&
1536       $SHELL "$ac_srcdir/configure" --help=recursive
1537     else
1538       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539     fi || ac_status=$?
1540     cd "$ac_pwd" || { ac_status=$?; break; }
1541   done
1542 fi
1543
1544 test -n "$ac_init_help" && exit $ac_status
1545 if $ac_init_version; then
1546   cat <<\_ACEOF
1547 configure
1548 generated by GNU Autoconf 2.60
1549
1550 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1551 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1552 This configure script is free software; the Free Software Foundation
1553 gives unlimited permission to copy, distribute and modify it.
1554 _ACEOF
1555   exit
1556 fi
1557 cat >config.log <<_ACEOF
1558 This file contains any messages produced by compilers while
1559 running configure, to aid debugging if configure makes a mistake.
1560
1561 It was created by $as_me, which was
1562 generated by GNU Autoconf 2.60.  Invocation command line was
1563
1564   $ $0 $@
1565
1566 _ACEOF
1567 exec 5>>config.log
1568 {
1569 cat <<_ASUNAME
1570 ## --------- ##
1571 ## Platform. ##
1572 ## --------- ##
1573
1574 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1575 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1576 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1577 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1578 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1579
1580 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1581 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1582
1583 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1584 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1585 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1586 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1587 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1588 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1589 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1590
1591 _ASUNAME
1592
1593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594 for as_dir in $PATH
1595 do
1596   IFS=$as_save_IFS
1597   test -z "$as_dir" && as_dir=.
1598   echo "PATH: $as_dir"
1599 done
1600 IFS=$as_save_IFS
1601
1602 } >&5
1603
1604 cat >&5 <<_ACEOF
1605
1606
1607 ## ----------- ##
1608 ## Core tests. ##
1609 ## ----------- ##
1610
1611 _ACEOF
1612
1613
1614 # Keep a trace of the command line.
1615 # Strip out --no-create and --no-recursion so they do not pile up.
1616 # Strip out --silent because we don't want to record it for future runs.
1617 # Also quote any args containing shell meta-characters.
1618 # Make two passes to allow for proper duplicate-argument suppression.
1619 ac_configure_args=
1620 ac_configure_args0=
1621 ac_configure_args1=
1622 ac_must_keep_next=false
1623 for ac_pass in 1 2
1624 do
1625   for ac_arg
1626   do
1627     case $ac_arg in
1628     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1629     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1630     | -silent | --silent | --silen | --sile | --sil)
1631       continue ;;
1632     *\'*)
1633       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1634     esac
1635     case $ac_pass in
1636     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1637     2)
1638       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1639       if test $ac_must_keep_next = true; then
1640         ac_must_keep_next=false # Got value, back to normal.
1641       else
1642         case $ac_arg in
1643           *=* | --config-cache | -C | -disable-* | --disable-* \
1644           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1645           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1646           | -with-* | --with-* | -without-* | --without-* | --x)
1647             case "$ac_configure_args0 " in
1648               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1649             esac
1650             ;;
1651           -* ) ac_must_keep_next=true ;;
1652         esac
1653       fi
1654       ac_configure_args="$ac_configure_args '$ac_arg'"
1655       ;;
1656     esac
1657   done
1658 done
1659 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1660 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1661
1662 # When interrupted or exit'd, cleanup temporary files, and complete
1663 # config.log.  We remove comments because anyway the quotes in there
1664 # would cause problems or look ugly.
1665 # WARNING: Use '\'' to represent an apostrophe within the trap.
1666 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1667 trap 'exit_status=$?
1668   # Save into config.log some information that might help in debugging.
1669   {
1670     echo
1671
1672     cat <<\_ASBOX
1673 ## ---------------- ##
1674 ## Cache variables. ##
1675 ## ---------------- ##
1676 _ASBOX
1677     echo
1678     # The following way of writing the cache mishandles newlines in values,
1679 (
1680   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1681     eval ac_val=\$$ac_var
1682     case $ac_val in #(
1683     *${as_nl}*)
1684       case $ac_var in #(
1685       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1686 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1687       esac
1688       case $ac_var in #(
1689       _ | IFS | as_nl) ;; #(
1690       *) $as_unset $ac_var ;;
1691       esac ;;
1692     esac
1693   done
1694   (set) 2>&1 |
1695     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1696     *${as_nl}ac_space=\ *)
1697       sed -n \
1698         "s/'\''/'\''\\\\'\'''\''/g;
1699           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1700       ;; #(
1701     *)
1702       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1703       ;;
1704     esac |
1705     sort
1706 )
1707     echo
1708
1709     cat <<\_ASBOX
1710 ## ----------------- ##
1711 ## Output variables. ##
1712 ## ----------------- ##
1713 _ASBOX
1714     echo
1715     for ac_var in $ac_subst_vars
1716     do
1717       eval ac_val=\$$ac_var
1718       case $ac_val in
1719       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1720       esac
1721       echo "$ac_var='\''$ac_val'\''"
1722     done | sort
1723     echo
1724
1725     if test -n "$ac_subst_files"; then
1726       cat <<\_ASBOX
1727 ## ------------------- ##
1728 ## File substitutions. ##
1729 ## ------------------- ##
1730 _ASBOX
1731       echo
1732       for ac_var in $ac_subst_files
1733       do
1734         eval ac_val=\$$ac_var
1735         case $ac_val in
1736         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737         esac
1738         echo "$ac_var='\''$ac_val'\''"
1739       done | sort
1740       echo
1741     fi
1742
1743     if test -s confdefs.h; then
1744       cat <<\_ASBOX
1745 ## ----------- ##
1746 ## confdefs.h. ##
1747 ## ----------- ##
1748 _ASBOX
1749       echo
1750       cat confdefs.h
1751       echo
1752     fi
1753     test "$ac_signal" != 0 &&
1754       echo "$as_me: caught signal $ac_signal"
1755     echo "$as_me: exit $exit_status"
1756   } >&5
1757   rm -f core *.core core.conftest.* &&
1758     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1759     exit $exit_status
1760 ' 0
1761 for ac_signal in 1 2 13 15; do
1762   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1763 done
1764 ac_signal=0
1765
1766 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1767 rm -f -r conftest* confdefs.h
1768
1769 # Predefined preprocessor variables.
1770
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_NAME "$PACKAGE_NAME"
1773 _ACEOF
1774
1775
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1778 _ACEOF
1779
1780
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1783 _ACEOF
1784
1785
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_STRING "$PACKAGE_STRING"
1788 _ACEOF
1789
1790
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1793 _ACEOF
1794
1795
1796 # Let the site file select an alternate cache file if it wants to.
1797 # Prefer explicitly selected file to automatically selected ones.
1798 if test -n "$CONFIG_SITE"; then
1799   set x "$CONFIG_SITE"
1800 elif test "x$prefix" != xNONE; then
1801   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1802 else
1803   set x "$ac_default_prefix/share/config.site" \
1804         "$ac_default_prefix/etc/config.site"
1805 fi
1806 shift
1807 for ac_site_file
1808 do
1809   if test -r "$ac_site_file"; then
1810     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1811 echo "$as_me: loading site script $ac_site_file" >&6;}
1812     sed 's/^/| /' "$ac_site_file" >&5
1813     . "$ac_site_file"
1814   fi
1815 done
1816
1817 if test -r "$cache_file"; then
1818   # Some versions of bash will fail to source /dev/null (special
1819   # files actually), so we avoid doing that.
1820   if test -f "$cache_file"; then
1821     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1822 echo "$as_me: loading cache $cache_file" >&6;}
1823     case $cache_file in
1824       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1825       *)                      . "./$cache_file";;
1826     esac
1827   fi
1828 else
1829   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1830 echo "$as_me: creating cache $cache_file" >&6;}
1831   >$cache_file
1832 fi
1833
1834 # Check that the precious variables saved in the cache have kept the same
1835 # value.
1836 ac_cache_corrupted=false
1837 for ac_var in $ac_precious_vars; do
1838   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1839   eval ac_new_set=\$ac_env_${ac_var}_set
1840   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1841   eval ac_new_val=\$ac_env_${ac_var}_value
1842   case $ac_old_set,$ac_new_set in
1843     set,)
1844       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1845 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1846       ac_cache_corrupted=: ;;
1847     ,set)
1848       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1849 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1850       ac_cache_corrupted=: ;;
1851     ,);;
1852     *)
1853       if test "x$ac_old_val" != "x$ac_new_val"; then
1854         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1855 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1856         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1857 echo "$as_me:   former value:  $ac_old_val" >&2;}
1858         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1859 echo "$as_me:   current value: $ac_new_val" >&2;}
1860         ac_cache_corrupted=:
1861       fi;;
1862   esac
1863   # Pass precious variables to config.status.
1864   if test "$ac_new_set" = set; then
1865     case $ac_new_val in
1866     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1867     *) ac_arg=$ac_var=$ac_new_val ;;
1868     esac
1869     case " $ac_configure_args " in
1870       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1871       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1872     esac
1873   fi
1874 done
1875 if $ac_cache_corrupted; then
1876   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1877 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1878   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1879 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1880    { (exit 1); exit 1; }; }
1881 fi
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899 ac_ext=c
1900 ac_cpp='$CPP $CPPFLAGS'
1901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904
1905
1906 am__api_version='1.10'
1907
1908 ac_aux_dir=
1909 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1910   if test -f "$ac_dir/install-sh"; then
1911     ac_aux_dir=$ac_dir
1912     ac_install_sh="$ac_aux_dir/install-sh -c"
1913     break
1914   elif test -f "$ac_dir/install.sh"; then
1915     ac_aux_dir=$ac_dir
1916     ac_install_sh="$ac_aux_dir/install.sh -c"
1917     break
1918   elif test -f "$ac_dir/shtool"; then
1919     ac_aux_dir=$ac_dir
1920     ac_install_sh="$ac_aux_dir/shtool install -c"
1921     break
1922   fi
1923 done
1924 if test -z "$ac_aux_dir"; then
1925   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1926 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1927    { (exit 1); exit 1; }; }
1928 fi
1929
1930 # These three variables are undocumented and unsupported,
1931 # and are intended to be withdrawn in a future Autoconf release.
1932 # They can cause serious problems if a builder's source tree is in a directory
1933 # whose full name contains unusual characters.
1934 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1935 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1936 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1937
1938
1939 # Find a good install program.  We prefer a C program (faster),
1940 # so one script is as good as another.  But avoid the broken or
1941 # incompatible versions:
1942 # SysV /etc/install, /usr/sbin/install
1943 # SunOS /usr/etc/install
1944 # IRIX /sbin/install
1945 # AIX /bin/install
1946 # AmigaOS /C/install, which installs bootblocks on floppy discs
1947 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1950 # OS/2's system install, which has a completely different semantic
1951 # ./install, which can be erroneously created by make from ./install.sh.
1952 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1953 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1954 if test -z "$INSTALL"; then
1955 if test "${ac_cv_path_install+set}" = set; then
1956   echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 for as_dir in $PATH
1960 do
1961   IFS=$as_save_IFS
1962   test -z "$as_dir" && as_dir=.
1963   # Account for people who put trailing slashes in PATH elements.
1964 case $as_dir/ in
1965   ./ | .// | /cC/* | \
1966   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1967   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1968   /usr/ucb/* ) ;;
1969   *)
1970     # OSF1 and SCO ODT 3.0 have their own names for install.
1971     # Don't use installbsd from OSF since it installs stuff as root
1972     # by default.
1973     for ac_prog in ginstall scoinst install; do
1974       for ac_exec_ext in '' $ac_executable_extensions; do
1975         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1976           if test $ac_prog = install &&
1977             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1978             # AIX install.  It has an incompatible calling convention.
1979             :
1980           elif test $ac_prog = install &&
1981             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1982             # program-specific install script used by HP pwplus--don't use.
1983             :
1984           else
1985             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1986             break 3
1987           fi
1988         fi
1989       done
1990     done
1991     ;;
1992 esac
1993 done
1994 IFS=$as_save_IFS
1995
1996
1997 fi
1998   if test "${ac_cv_path_install+set}" = set; then
1999     INSTALL=$ac_cv_path_install
2000   else
2001     # As a last resort, use the slow shell script.  Don't cache a
2002     # value for INSTALL within a source directory, because that will
2003     # break other packages using the cache if that directory is
2004     # removed, or if the value is a relative name.
2005     INSTALL=$ac_install_sh
2006   fi
2007 fi
2008 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2009 echo "${ECHO_T}$INSTALL" >&6; }
2010
2011 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2012 # It thinks the first close brace ends the variable substitution.
2013 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2014
2015 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2016
2017 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2018
2019 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2020 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2021 # Just in case
2022 sleep 1
2023 echo timestamp > conftest.file
2024 # Do `set' in a subshell so we don't clobber the current shell's
2025 # arguments.  Must try -L first in case configure is actually a
2026 # symlink; some systems play weird games with the mod time of symlinks
2027 # (eg FreeBSD returns the mod time of the symlink's containing
2028 # directory).
2029 if (
2030    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2031    if test "$*" = "X"; then
2032       # -L didn't work.
2033       set X `ls -t $srcdir/configure conftest.file`
2034    fi
2035    rm -f conftest.file
2036    if test "$*" != "X $srcdir/configure conftest.file" \
2037       && test "$*" != "X conftest.file $srcdir/configure"; then
2038
2039       # If neither matched, then we have a broken ls.  This can happen
2040       # if, for instance, CONFIG_SHELL is bash and it inherits a
2041       # broken ls alias from the environment.  This has actually
2042       # happened.  Such a system could not be considered "sane".
2043       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2044 alias in your environment" >&5
2045 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2046 alias in your environment" >&2;}
2047    { (exit 1); exit 1; }; }
2048    fi
2049
2050    test "$2" = conftest.file
2051    )
2052 then
2053    # Ok.
2054    :
2055 else
2056    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2057 Check your system clock" >&5
2058 echo "$as_me: error: newly created file is older than distributed files!
2059 Check your system clock" >&2;}
2060    { (exit 1); exit 1; }; }
2061 fi
2062 { echo "$as_me:$LINENO: result: yes" >&5
2063 echo "${ECHO_T}yes" >&6; }
2064 test "$program_prefix" != NONE &&
2065   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2066 # Use a double $ so make ignores it.
2067 test "$program_suffix" != NONE &&
2068   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2069 # Double any \ or $.  echo might interpret backslashes.
2070 # By default was `s,x,x', remove it if useless.
2071 cat <<\_ACEOF >conftest.sed
2072 s/[\\$]/&&/g;s/;s,x,x,$//
2073 _ACEOF
2074 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2075 rm -f conftest.sed
2076
2077 # expand $ac_aux_dir to an absolute path
2078 am_aux_dir=`cd $ac_aux_dir && pwd`
2079
2080 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2081 # Use eval to expand $SHELL
2082 if eval "$MISSING --run true"; then
2083   am_missing_run="$MISSING --run "
2084 else
2085   am_missing_run=
2086   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2087 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2088 fi
2089
2090 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2091 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2092 if test -z "$MKDIR_P"; then
2093   if test "${ac_cv_path_mkdir+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2098 do
2099   IFS=$as_save_IFS
2100   test -z "$as_dir" && as_dir=.
2101   for ac_prog in mkdir gmkdir; do
2102          for ac_exec_ext in '' $ac_executable_extensions; do
2103            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2104            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2105              'mkdir (GNU coreutils) '* | \
2106              'mkdir (coreutils) '* | \
2107              'mkdir (fileutils) '4.1*)
2108                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2109                break 3;;
2110            esac
2111          done
2112        done
2113 done
2114 IFS=$as_save_IFS
2115
2116 fi
2117
2118   if test "${ac_cv_path_mkdir+set}" = set; then
2119     MKDIR_P="$ac_cv_path_mkdir -p"
2120   else
2121     # As a last resort, use the slow shell script.  Don't cache a
2122     # value for MKDIR_P within a source directory, because that will
2123     # break other packages using the cache if that directory is
2124     # removed, or if the value is a relative name.
2125     test -d ./--version && rmdir ./--version
2126     MKDIR_P="$ac_install_sh -d"
2127   fi
2128 fi
2129 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2130 echo "${ECHO_T}$MKDIR_P" >&6; }
2131
2132 mkdir_p="$MKDIR_P"
2133 case $mkdir_p in
2134   [\\/$]* | ?:[\\/]*) ;;
2135   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2136 esac
2137
2138 for ac_prog in gawk mawk nawk awk
2139 do
2140   # Extract the first word of "$ac_prog", so it can be a program name with args.
2141 set dummy $ac_prog; ac_word=$2
2142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2144 if test "${ac_cv_prog_AWK+set}" = set; then
2145   echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147   if test -n "$AWK"; then
2148   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153   IFS=$as_save_IFS
2154   test -z "$as_dir" && as_dir=.
2155   for ac_exec_ext in '' $ac_executable_extensions; do
2156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2157     ac_cv_prog_AWK="$ac_prog"
2158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159     break 2
2160   fi
2161 done
2162 done
2163 IFS=$as_save_IFS
2164
2165 fi
2166 fi
2167 AWK=$ac_cv_prog_AWK
2168 if test -n "$AWK"; then
2169   { echo "$as_me:$LINENO: result: $AWK" >&5
2170 echo "${ECHO_T}$AWK" >&6; }
2171 else
2172   { echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6; }
2174 fi
2175
2176
2177   test -n "$AWK" && break
2178 done
2179
2180 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2181 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2182 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2183 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2184   echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186   cat >conftest.make <<\_ACEOF
2187 SHELL = /bin/sh
2188 all:
2189         @echo '@@@%%%=$(MAKE)=@@@%%%'
2190 _ACEOF
2191 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2192 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2193   *@@@%%%=?*=@@@%%%*)
2194     eval ac_cv_prog_make_${ac_make}_set=yes;;
2195   *)
2196     eval ac_cv_prog_make_${ac_make}_set=no;;
2197 esac
2198 rm -f conftest.make
2199 fi
2200 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2201   { echo "$as_me:$LINENO: result: yes" >&5
2202 echo "${ECHO_T}yes" >&6; }
2203   SET_MAKE=
2204 else
2205   { echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6; }
2207   SET_MAKE="MAKE=${MAKE-make}"
2208 fi
2209
2210 rm -rf .tst 2>/dev/null
2211 mkdir .tst 2>/dev/null
2212 if test -d .tst; then
2213   am__leading_dot=.
2214 else
2215   am__leading_dot=_
2216 fi
2217 rmdir .tst 2>/dev/null
2218
2219 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2220   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2221   # is not polluted with repeated "-I."
2222   am__isrc=' -I$(srcdir)'
2223   # test to see if srcdir already configured
2224   if test -f $srcdir/config.status; then
2225     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2226 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2227    { (exit 1); exit 1; }; }
2228   fi
2229 fi
2230
2231 # test whether we have cygpath
2232 if test -z "$CYGPATH_W"; then
2233   if (cygpath --version) >/dev/null 2>/dev/null; then
2234     CYGPATH_W='cygpath -w'
2235   else
2236     CYGPATH_W=echo
2237   fi
2238 fi
2239
2240
2241 # Define the identity of the package.
2242  PACKAGE=libmplib
2243  VERSION=0.1.0
2244
2245
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE "$PACKAGE"
2248 _ACEOF
2249
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define VERSION "$VERSION"
2253 _ACEOF
2254
2255 # Some tools Automake needs.
2256
2257 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2258
2259
2260 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2261
2262
2263 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2264
2265
2266 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2267
2268
2269 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2270
2271 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2272
2273 # Installed binaries are usually stripped using `strip' when the user
2274 # run `make install-strip'.  However `strip' might not be the right
2275 # tool to use in cross-compilation environments, therefore Automake
2276 # will honor the `STRIP' environment variable to overrule this program.
2277 if test "$cross_compiling" != no; then
2278   if test -n "$ac_tool_prefix"; then
2279   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2280 set dummy ${ac_tool_prefix}strip; ac_word=$2
2281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2283 if test "${ac_cv_prog_STRIP+set}" = set; then
2284   echo $ECHO_N "(cached) $ECHO_C" >&6
2285 else
2286   if test -n "$STRIP"; then
2287   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2288 else
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2291 do
2292   IFS=$as_save_IFS
2293   test -z "$as_dir" && as_dir=.
2294   for ac_exec_ext in '' $ac_executable_extensions; do
2295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2296     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298     break 2
2299   fi
2300 done
2301 done
2302 IFS=$as_save_IFS
2303
2304 fi
2305 fi
2306 STRIP=$ac_cv_prog_STRIP
2307 if test -n "$STRIP"; then
2308   { echo "$as_me:$LINENO: result: $STRIP" >&5
2309 echo "${ECHO_T}$STRIP" >&6; }
2310 else
2311   { echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6; }
2313 fi
2314
2315
2316 fi
2317 if test -z "$ac_cv_prog_STRIP"; then
2318   ac_ct_STRIP=$STRIP
2319   # Extract the first word of "strip", so it can be a program name with args.
2320 set dummy strip; ac_word=$2
2321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2323 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2324   echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326   if test -n "$ac_ct_STRIP"; then
2327   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332   IFS=$as_save_IFS
2333   test -z "$as_dir" && as_dir=.
2334   for ac_exec_ext in '' $ac_executable_extensions; do
2335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2336     ac_cv_prog_ac_ct_STRIP="strip"
2337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338     break 2
2339   fi
2340 done
2341 done
2342 IFS=$as_save_IFS
2343
2344 fi
2345 fi
2346 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2347 if test -n "$ac_ct_STRIP"; then
2348   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2349 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2350 else
2351   { echo "$as_me:$LINENO: result: no" >&5
2352 echo "${ECHO_T}no" >&6; }
2353 fi
2354
2355   if test "x$ac_ct_STRIP" = x; then
2356     STRIP=":"
2357   else
2358     case $cross_compiling:$ac_tool_warned in
2359 yes:)
2360 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2361 whose name does not start with the host triplet.  If you think this
2362 configuration is useful to you, please write to autoconf@gnu.org." >&5
2363 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2364 whose name does not start with the host triplet.  If you think this
2365 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2366 ac_tool_warned=yes ;;
2367 esac
2368     STRIP=$ac_ct_STRIP
2369   fi
2370 else
2371   STRIP="$ac_cv_prog_STRIP"
2372 fi
2373
2374 fi
2375 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2376
2377 # We need awk for the "check" target.  The system "awk" is bad on
2378 # some platforms.
2379 # Always define AMTAR for backward compatibility.
2380
2381 AMTAR=${AMTAR-"${am_missing_run}tar"}
2382
2383 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2384
2385
2386
2387
2388
2389 ac_config_headers="$ac_config_headers config.h"
2390
2391 # Check whether --enable-shared was given.
2392 if test "${enable_shared+set}" = set; then
2393   enableval=$enable_shared; p=${PACKAGE-default}
2394     case $enableval in
2395     yes) enable_shared=yes ;;
2396     no) enable_shared=no ;;
2397     *)
2398       enable_shared=no
2399       # Look at the argument we got.  We use all the common list separators.
2400       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2401       for pkg in $enableval; do
2402         IFS="$lt_save_ifs"
2403         if test "X$pkg" = "X$p"; then
2404           enable_shared=yes
2405         fi
2406       done
2407       IFS="$lt_save_ifs"
2408       ;;
2409     esac
2410 else
2411   enable_shared=yes
2412 fi
2413
2414
2415 # Check whether --enable-static was given.
2416 if test "${enable_static+set}" = set; then
2417   enableval=$enable_static; p=${PACKAGE-default}
2418     case $enableval in
2419     yes) enable_static=yes ;;
2420     no) enable_static=no ;;
2421     *)
2422      enable_static=no
2423       # Look at the argument we got.  We use all the common list separators.
2424       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2425       for pkg in $enableval; do
2426         IFS="$lt_save_ifs"
2427         if test "X$pkg" = "X$p"; then
2428           enable_static=yes
2429         fi
2430       done
2431       IFS="$lt_save_ifs"
2432       ;;
2433     esac
2434 else
2435   enable_static=yes
2436 fi
2437
2438
2439 # Check whether --enable-fast-install was given.
2440 if test "${enable_fast_install+set}" = set; then
2441   enableval=$enable_fast_install; p=${PACKAGE-default}
2442     case $enableval in
2443     yes) enable_fast_install=yes ;;
2444     no) enable_fast_install=no ;;
2445     *)
2446       enable_fast_install=no
2447       # Look at the argument we got.  We use all the common list separators.
2448       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2449       for pkg in $enableval; do
2450         IFS="$lt_save_ifs"
2451         if test "X$pkg" = "X$p"; then
2452           enable_fast_install=yes
2453         fi
2454       done
2455       IFS="$lt_save_ifs"
2456       ;;
2457     esac
2458 else
2459   enable_fast_install=yes
2460 fi
2461
2462
2463 # Make sure we can run config.sub.
2464 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2465   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2466 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2467    { (exit 1); exit 1; }; }
2468
2469 { echo "$as_me:$LINENO: checking build system type" >&5
2470 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2471 if test "${ac_cv_build+set}" = set; then
2472   echo $ECHO_N "(cached) $ECHO_C" >&6
2473 else
2474   ac_build_alias=$build_alias
2475 test "x$ac_build_alias" = x &&
2476   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2477 test "x$ac_build_alias" = x &&
2478   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2479 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2480    { (exit 1); exit 1; }; }
2481 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2482   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2483 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2484    { (exit 1); exit 1; }; }
2485
2486 fi
2487 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2488 echo "${ECHO_T}$ac_cv_build" >&6; }
2489 case $ac_cv_build in
2490 *-*-*) ;;
2491 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2492 echo "$as_me: error: invalid value of canonical build" >&2;}
2493    { (exit 1); exit 1; }; };;
2494 esac
2495 build=$ac_cv_build
2496 ac_save_IFS=$IFS; IFS='-'
2497 set x $ac_cv_build
2498 shift
2499 build_cpu=$1
2500 build_vendor=$2
2501 shift; shift
2502 # Remember, the first character of IFS is used to create $*,
2503 # except with old shells:
2504 build_os=$*
2505 IFS=$ac_save_IFS
2506 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2507
2508
2509 { echo "$as_me:$LINENO: checking host system type" >&5
2510 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2511 if test "${ac_cv_host+set}" = set; then
2512   echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514   if test "x$host_alias" = x; then
2515   ac_cv_host=$ac_cv_build
2516 else
2517   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2518     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2519 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2520    { (exit 1); exit 1; }; }
2521 fi
2522
2523 fi
2524 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2525 echo "${ECHO_T}$ac_cv_host" >&6; }
2526 case $ac_cv_host in
2527 *-*-*) ;;
2528 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2529 echo "$as_me: error: invalid value of canonical host" >&2;}
2530    { (exit 1); exit 1; }; };;
2531 esac
2532 host=$ac_cv_host
2533 ac_save_IFS=$IFS; IFS='-'
2534 set x $ac_cv_host
2535 shift
2536 host_cpu=$1
2537 host_vendor=$2
2538 shift; shift
2539 # Remember, the first character of IFS is used to create $*,
2540 # except with old shells:
2541 host_os=$*
2542 IFS=$ac_save_IFS
2543 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2544
2545
2546 DEPDIR="${am__leading_dot}deps"
2547
2548 ac_config_commands="$ac_config_commands depfiles"
2549
2550
2551 am_make=${MAKE-make}
2552 cat > confinc << 'END'
2553 am__doit:
2554         @echo done
2555 .PHONY: am__doit
2556 END
2557 # If we don't find an include directive, just comment out the code.
2558 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2559 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2560 am__include="#"
2561 am__quote=
2562 _am_result=none
2563 # First try GNU make style include.
2564 echo "include confinc" > confmf
2565 # We grep out `Entering directory' and `Leaving directory'
2566 # messages which can occur if `w' ends up in MAKEFLAGS.
2567 # In particular we don't look at `^make:' because GNU make might
2568 # be invoked under some other name (usually "gmake"), in which
2569 # case it prints its new name instead of `make'.
2570 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2571    am__include=include
2572    am__quote=
2573    _am_result=GNU
2574 fi
2575 # Now try BSD make style include.
2576 if test "$am__include" = "#"; then
2577    echo '.include "confinc"' > confmf
2578    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2579       am__include=.include
2580       am__quote="\""
2581       _am_result=BSD
2582    fi
2583 fi
2584
2585
2586 { echo "$as_me:$LINENO: result: $_am_result" >&5
2587 echo "${ECHO_T}$_am_result" >&6; }
2588 rm -f confinc confmf
2589
2590 # Check whether --enable-dependency-tracking was given.
2591 if test "${enable_dependency_tracking+set}" = set; then
2592   enableval=$enable_dependency_tracking;
2593 fi
2594
2595 if test "x$enable_dependency_tracking" != xno; then
2596   am_depcomp="$ac_aux_dir/depcomp"
2597   AMDEPBACKSLASH='\'
2598 fi
2599  if test "x$enable_dependency_tracking" != xno; then
2600   AMDEP_TRUE=
2601   AMDEP_FALSE='#'
2602 else
2603   AMDEP_TRUE='#'
2604   AMDEP_FALSE=
2605 fi
2606
2607
2608 ac_ext=c
2609 ac_cpp='$CPP $CPPFLAGS'
2610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2613 if test -n "$ac_tool_prefix"; then
2614   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2615 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2618 if test "${ac_cv_prog_CC+set}" = set; then
2619   echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621   if test -n "$CC"; then
2622   ac_cv_prog_CC="$CC" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2626 do
2627   IFS=$as_save_IFS
2628   test -z "$as_dir" && as_dir=.
2629   for ac_exec_ext in '' $ac_executable_extensions; do
2630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2631     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633     break 2
2634   fi
2635 done
2636 done
2637 IFS=$as_save_IFS
2638
2639 fi
2640 fi
2641 CC=$ac_cv_prog_CC
2642 if test -n "$CC"; then
2643   { echo "$as_me:$LINENO: result: $CC" >&5
2644 echo "${ECHO_T}$CC" >&6; }
2645 else
2646   { echo "$as_me:$LINENO: result: no" >&5
2647 echo "${ECHO_T}no" >&6; }
2648 fi
2649
2650
2651 fi
2652 if test -z "$ac_cv_prog_CC"; then
2653   ac_ct_CC=$CC
2654   # Extract the first word of "gcc", so it can be a program name with args.
2655 set dummy gcc; ac_word=$2
2656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2659   echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661   if test -n "$ac_ct_CC"; then
2662   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667   IFS=$as_save_IFS
2668   test -z "$as_dir" && as_dir=.
2669   for ac_exec_ext in '' $ac_executable_extensions; do
2670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2671     ac_cv_prog_ac_ct_CC="gcc"
2672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673     break 2
2674   fi
2675 done
2676 done
2677 IFS=$as_save_IFS
2678
2679 fi
2680 fi
2681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2682 if test -n "$ac_ct_CC"; then
2683   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2684 echo "${ECHO_T}$ac_ct_CC" >&6; }
2685 else
2686   { echo "$as_me:$LINENO: result: no" >&5
2687 echo "${ECHO_T}no" >&6; }
2688 fi
2689
2690   if test "x$ac_ct_CC" = x; then
2691     CC=""
2692   else
2693     case $cross_compiling:$ac_tool_warned in
2694 yes:)
2695 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2696 whose name does not start with the host triplet.  If you think this
2697 configuration is useful to you, please write to autoconf@gnu.org." >&5
2698 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2699 whose name does not start with the host triplet.  If you think this
2700 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2701 ac_tool_warned=yes ;;
2702 esac
2703     CC=$ac_ct_CC
2704   fi
2705 else
2706   CC="$ac_cv_prog_CC"
2707 fi
2708
2709 if test -z "$CC"; then
2710           if test -n "$ac_tool_prefix"; then
2711     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2712 set dummy ${ac_tool_prefix}cc; ac_word=$2
2713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2715 if test "${ac_cv_prog_CC+set}" = set; then
2716   echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718   if test -n "$CC"; then
2719   ac_cv_prog_CC="$CC" # Let the user override the test.
2720 else
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH
2723 do
2724   IFS=$as_save_IFS
2725   test -z "$as_dir" && as_dir=.
2726   for ac_exec_ext in '' $ac_executable_extensions; do
2727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2728     ac_cv_prog_CC="${ac_tool_prefix}cc"
2729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730     break 2
2731   fi
2732 done
2733 done
2734 IFS=$as_save_IFS
2735
2736 fi
2737 fi
2738 CC=$ac_cv_prog_CC
2739 if test -n "$CC"; then
2740   { echo "$as_me:$LINENO: result: $CC" >&5
2741 echo "${ECHO_T}$CC" >&6; }
2742 else
2743   { echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6; }
2745 fi
2746
2747
2748   fi
2749 fi
2750 if test -z "$CC"; then
2751   # Extract the first word of "cc", so it can be a program name with args.
2752 set dummy cc; ac_word=$2
2753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2755 if test "${ac_cv_prog_CC+set}" = set; then
2756   echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758   if test -n "$CC"; then
2759   ac_cv_prog_CC="$CC" # Let the user override the test.
2760 else
2761   ac_prog_rejected=no
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2764 do
2765   IFS=$as_save_IFS
2766   test -z "$as_dir" && as_dir=.
2767   for ac_exec_ext in '' $ac_executable_extensions; do
2768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2769     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2770        ac_prog_rejected=yes
2771        continue
2772      fi
2773     ac_cv_prog_CC="cc"
2774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775     break 2
2776   fi
2777 done
2778 done
2779 IFS=$as_save_IFS
2780
2781 if test $ac_prog_rejected = yes; then
2782   # We found a bogon in the path, so make sure we never use it.
2783   set dummy $ac_cv_prog_CC
2784   shift
2785   if test $# != 0; then
2786     # We chose a different compiler from the bogus one.
2787     # However, it has the same basename, so the bogon will be chosen
2788     # first if we set CC to just the basename; use the full file name.
2789     shift
2790     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2791   fi
2792 fi
2793 fi
2794 fi
2795 CC=$ac_cv_prog_CC
2796 if test -n "$CC"; then
2797   { echo "$as_me:$LINENO: result: $CC" >&5
2798 echo "${ECHO_T}$CC" >&6; }
2799 else
2800   { echo "$as_me:$LINENO: result: no" >&5
2801 echo "${ECHO_T}no" >&6; }
2802 fi
2803
2804
2805 fi
2806 if test -z "$CC"; then
2807   if test -n "$ac_tool_prefix"; then
2808   for ac_prog in cl.exe
2809   do
2810     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814 if test "${ac_cv_prog_CC+set}" = set; then
2815   echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817   if test -n "$CC"; then
2818   ac_cv_prog_CC="$CC" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823   IFS=$as_save_IFS
2824   test -z "$as_dir" && as_dir=.
2825   for ac_exec_ext in '' $ac_executable_extensions; do
2826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2827     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829     break 2
2830   fi
2831 done
2832 done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 CC=$ac_cv_prog_CC
2838 if test -n "$CC"; then
2839   { echo "$as_me:$LINENO: result: $CC" >&5
2840 echo "${ECHO_T}$CC" >&6; }
2841 else
2842   { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2844 fi
2845
2846
2847     test -n "$CC" && break
2848   done
2849 fi
2850 if test -z "$CC"; then
2851   ac_ct_CC=$CC
2852   for ac_prog in cl.exe
2853 do
2854   # Extract the first word of "$ac_prog", so it can be a program name with args.
2855 set dummy $ac_prog; ac_word=$2
2856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2859   echo $ECHO_N "(cached) $ECHO_C" >&6
2860 else
2861   if test -n "$ac_ct_CC"; then
2862   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2866 do
2867   IFS=$as_save_IFS
2868   test -z "$as_dir" && as_dir=.
2869   for ac_exec_ext in '' $ac_executable_extensions; do
2870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2871     ac_cv_prog_ac_ct_CC="$ac_prog"
2872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873     break 2
2874   fi
2875 done
2876 done
2877 IFS=$as_save_IFS
2878
2879 fi
2880 fi
2881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2882 if test -n "$ac_ct_CC"; then
2883   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2884 echo "${ECHO_T}$ac_ct_CC" >&6; }
2885 else
2886   { echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6; }
2888 fi
2889
2890
2891   test -n "$ac_ct_CC" && break
2892 done
2893
2894   if test "x$ac_ct_CC" = x; then
2895     CC=""
2896   else
2897     case $cross_compiling:$ac_tool_warned in
2898 yes:)
2899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2900 whose name does not start with the host triplet.  If you think this
2901 configuration is useful to you, please write to autoconf@gnu.org." >&5
2902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2903 whose name does not start with the host triplet.  If you think this
2904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2905 ac_tool_warned=yes ;;
2906 esac
2907     CC=$ac_ct_CC
2908   fi
2909 fi
2910
2911 fi
2912
2913
2914 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2915 See \`config.log' for more details." >&5
2916 echo "$as_me: error: no acceptable C compiler found in \$PATH
2917 See \`config.log' for more details." >&2;}
2918    { (exit 1); exit 1; }; }
2919
2920 # Provide some information about the compiler.
2921 echo "$as_me:$LINENO: checking for C compiler version" >&5
2922 ac_compiler=`set X $ac_compile; echo $2`
2923 { (ac_try="$ac_compiler --version >&5"
2924 case "(($ac_try" in
2925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926   *) ac_try_echo=$ac_try;;
2927 esac
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929   (eval "$ac_compiler --version >&5") 2>&5
2930   ac_status=$?
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); }
2933 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); }
2943 { (ac_try="$ac_compiler -V >&5"
2944 case "(($ac_try" in
2945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946   *) ac_try_echo=$ac_try;;
2947 esac
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949   (eval "$ac_compiler -V >&5") 2>&5
2950   ac_status=$?
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); }
2953
2954 cat >conftest.$ac_ext <<_ACEOF
2955 /* confdefs.h.  */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h.  */
2960
2961 int
2962 main ()
2963 {
2964
2965   ;
2966   return 0;
2967 }
2968 _ACEOF
2969 ac_clean_files_save=$ac_clean_files
2970 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2971 # Try to create an executable without -o first, disregard a.out.
2972 # It will help us diagnose broken compilers, and finding out an intuition
2973 # of exeext.
2974 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2975 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2976 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2977 #
2978 # List of possible output files, starting from the most likely.
2979 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2980 # only as a last resort.  b.out is created by i960 compilers.
2981 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2982 #
2983 # The IRIX 6 linker writes into existing files which may not be
2984 # executable, retaining their permissions.  Remove them first so a
2985 # subsequent execution test works.
2986 ac_rmfiles=
2987 for ac_file in $ac_files
2988 do
2989   case $ac_file in
2990     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2991     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2992   esac
2993 done
2994 rm -f $ac_rmfiles
2995
2996 if { (ac_try="$ac_link_default"
2997 case "(($ac_try" in
2998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999   *) ac_try_echo=$ac_try;;
3000 esac
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002   (eval "$ac_link_default") 2>&5
3003   ac_status=$?
3004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005   (exit $ac_status); }; then
3006   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3007 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3008 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3009 # so that the user can short-circuit this test for compilers unknown to
3010 # Autoconf.
3011 for ac_file in $ac_files
3012 do
3013   test -f "$ac_file" || continue
3014   case $ac_file in
3015     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3016         ;;
3017     [ab].out )
3018         # We found the default executable, but exeext='' is most
3019         # certainly right.
3020         break;;
3021     *.* )
3022         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3023         then :; else
3024            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3025         fi
3026         # We set ac_cv_exeext here because the later test for it is not
3027         # safe: cross compilers may not add the suffix if given an `-o'
3028         # argument, so we may need to know it at that point already.
3029         # Even if this section looks crufty: it has the advantage of
3030         # actually working.
3031         break;;
3032     * )
3033         break;;
3034   esac
3035 done
3036 test "$ac_cv_exeext" = no && ac_cv_exeext=
3037
3038 else
3039   echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3041
3042 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3043 See \`config.log' for more details." >&5
3044 echo "$as_me: error: C compiler cannot create executables
3045 See \`config.log' for more details." >&2;}
3046    { (exit 77); exit 77; }; }
3047 fi
3048
3049 ac_exeext=$ac_cv_exeext
3050 { echo "$as_me:$LINENO: result: $ac_file" >&5
3051 echo "${ECHO_T}$ac_file" >&6; }
3052
3053 # Check that the compiler produces executables we can run.  If not, either
3054 # the compiler is broken, or we cross compile.
3055 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3056 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3057 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3058 # If not cross compiling, check that we can run a simple program.
3059 if test "$cross_compiling" != yes; then
3060   if { ac_try='./$ac_file'
3061   { (case "(($ac_try" in
3062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063   *) ac_try_echo=$ac_try;;
3064 esac
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066   (eval "$ac_try") 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); }; }; then
3070     cross_compiling=no
3071   else
3072     if test "$cross_compiling" = maybe; then
3073         cross_compiling=yes
3074     else
3075         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3076 If you meant to cross compile, use \`--host'.
3077 See \`config.log' for more details." >&5
3078 echo "$as_me: error: cannot run C compiled programs.
3079 If you meant to cross compile, use \`--host'.
3080 See \`config.log' for more details." >&2;}
3081    { (exit 1); exit 1; }; }
3082     fi
3083   fi
3084 fi
3085 { echo "$as_me:$LINENO: result: yes" >&5
3086 echo "${ECHO_T}yes" >&6; }
3087
3088 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3089 ac_clean_files=$ac_clean_files_save
3090 # Check that the compiler produces executables we can run.  If not, either
3091 # the compiler is broken, or we cross compile.
3092 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3093 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3094 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3095 echo "${ECHO_T}$cross_compiling" >&6; }
3096
3097 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3098 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3099 if { (ac_try="$ac_link"
3100 case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105   (eval "$ac_link") 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); }; then
3109   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3110 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3111 # work properly (i.e., refer to `conftest.exe'), while it won't with
3112 # `rm'.
3113 for ac_file in conftest.exe conftest conftest.*; do
3114   test -f "$ac_file" || continue
3115   case $ac_file in
3116     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3117     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3118           break;;
3119     * ) break;;
3120   esac
3121 done
3122 else
3123   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3124 See \`config.log' for more details." >&5
3125 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3126 See \`config.log' for more details." >&2;}
3127    { (exit 1); exit 1; }; }
3128 fi
3129
3130 rm -f conftest$ac_cv_exeext
3131 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3132 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3133
3134 rm -f conftest.$ac_ext
3135 EXEEXT=$ac_cv_exeext
3136 ac_exeext=$EXEEXT
3137 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3138 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3139 if test "${ac_cv_objext+set}" = set; then
3140   echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142   cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h.  */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h.  */
3148
3149 int
3150 main ()
3151 {
3152
3153   ;
3154   return 0;
3155 }
3156 _ACEOF
3157 rm -f conftest.o conftest.obj
3158 if { (ac_try="$ac_compile"
3159 case "(($ac_try" in
3160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161   *) ac_try_echo=$ac_try;;
3162 esac
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164   (eval "$ac_compile") 2>&5
3165   ac_status=$?
3166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167   (exit $ac_status); }; then
3168   for ac_file in conftest.o conftest.obj conftest.*; do
3169   test -f "$ac_file" || continue;
3170   case $ac_file in
3171     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3172     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173        break;;
3174   esac
3175 done
3176 else
3177   echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3181 See \`config.log' for more details." >&5
3182 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details." >&2;}
3184    { (exit 1); exit 1; }; }
3185 fi
3186
3187 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3188 fi
3189 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3190 echo "${ECHO_T}$ac_cv_objext" >&6; }
3191 OBJEXT=$ac_cv_objext
3192 ac_objext=$OBJEXT
3193 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3194 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3195 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3196   echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198   cat >conftest.$ac_ext <<_ACEOF
3199 /* confdefs.h.  */
3200 _ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h.  */
3204
3205 int
3206 main ()
3207 {
3208 #ifndef __GNUC__
3209        choke me
3210 #endif
3211
3212   ;
3213   return 0;
3214 }
3215 _ACEOF
3216 rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
3218 case "(($ac_try" in
3219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220   *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223   (eval "$ac_compile") 2>conftest.er1
3224   ac_status=$?
3225   grep -v '^ *+' conftest.er1 >conftest.err
3226   rm -f conftest.er1
3227   cat conftest.err >&5
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); } &&
3230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3231   { (case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236   (eval "$ac_try") 2>&5
3237   ac_status=$?
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); }; } &&
3240          { ac_try='test -s conftest.$ac_objext'
3241   { (case "(($ac_try" in
3242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243   *) ac_try_echo=$ac_try;;
3244 esac
3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246   (eval "$ac_try") 2>&5
3247   ac_status=$?
3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); }; }; then
3250   ac_compiler_gnu=yes
3251 else
3252   echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255         ac_compiler_gnu=no
3256 fi
3257
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3260
3261 fi
3262 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3263 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3264 GCC=`test $ac_compiler_gnu = yes && echo yes`
3265 ac_test_CFLAGS=${CFLAGS+set}
3266 ac_save_CFLAGS=$CFLAGS
3267 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3268 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3269 if test "${ac_cv_prog_cc_g+set}" = set; then
3270   echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272   ac_save_c_werror_flag=$ac_c_werror_flag
3273    ac_c_werror_flag=yes
3274    ac_cv_prog_cc_g=no
3275    CFLAGS="-g"
3276    cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h.  */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h.  */
3282
3283 int
3284 main ()
3285 {
3286
3287   ;
3288   return 0;
3289 }
3290 _ACEOF
3291 rm -f conftest.$ac_objext
3292 if { (ac_try="$ac_compile"
3293 case "(($ac_try" in
3294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295   *) ac_try_echo=$ac_try;;
3296 esac
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298   (eval "$ac_compile") 2>conftest.er1
3299   ac_status=$?
3300   grep -v '^ *+' conftest.er1 >conftest.err
3301   rm -f conftest.er1
3302   cat conftest.err >&5
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); } &&
3305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
3312   ac_status=$?
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); }; } &&
3315          { ac_try='test -s conftest.$ac_objext'
3316   { (case "(($ac_try" in
3317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318   *) ac_try_echo=$ac_try;;
3319 esac
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321   (eval "$ac_try") 2>&5
3322   ac_status=$?
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); }; }; then
3325   ac_cv_prog_cc_g=yes
3326 else
3327   echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3329
3330         CFLAGS=""
3331       cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h.  */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h.  */
3337
3338 int
3339 main ()
3340 {
3341
3342   ;
3343   return 0;
3344 }
3345 _ACEOF
3346 rm -f conftest.$ac_objext
3347 if { (ac_try="$ac_compile"
3348 case "(($ac_try" in
3349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350   *) ac_try_echo=$ac_try;;
3351 esac
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353   (eval "$ac_compile") 2>conftest.er1
3354   ac_status=$?
3355   grep -v '^ *+' conftest.er1 >conftest.err
3356   rm -f conftest.er1
3357   cat conftest.err >&5
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); } &&
3360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3361   { (case "(($ac_try" in
3362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363   *) ac_try_echo=$ac_try;;
3364 esac
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366   (eval "$ac_try") 2>&5
3367   ac_status=$?
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); }; } &&
3370          { ac_try='test -s conftest.$ac_objext'
3371   { (case "(($ac_try" in
3372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373   *) ac_try_echo=$ac_try;;
3374 esac
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376   (eval "$ac_try") 2>&5
3377   ac_status=$?
3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379   (exit $ac_status); }; }; then
3380   :
3381 else
3382   echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385         ac_c_werror_flag=$ac_save_c_werror_flag
3386          CFLAGS="-g"
3387          cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h.  */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h.  */
3393
3394 int
3395 main ()
3396 {
3397
3398   ;
3399   return 0;
3400 }
3401 _ACEOF
3402 rm -f conftest.$ac_objext
3403 if { (ac_try="$ac_compile"
3404 case "(($ac_try" in
3405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406   *) ac_try_echo=$ac_try;;
3407 esac
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409   (eval "$ac_compile") 2>conftest.er1
3410   ac_status=$?
3411   grep -v '^ *+' conftest.er1 >conftest.err
3412   rm -f conftest.er1
3413   cat conftest.err >&5
3414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415   (exit $ac_status); } &&
3416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3417   { (case "(($ac_try" in
3418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419   *) ac_try_echo=$ac_try;;
3420 esac
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422   (eval "$ac_try") 2>&5
3423   ac_status=$?
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); }; } &&
3426          { ac_try='test -s conftest.$ac_objext'
3427   { (case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432   (eval "$ac_try") 2>&5
3433   ac_status=$?
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); }; }; then
3436   ac_cv_prog_cc_g=yes
3437 else
3438   echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3440
3441
3442 fi
3443
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 fi
3446
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 fi
3449
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451    ac_c_werror_flag=$ac_save_c_werror_flag
3452 fi
3453 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3454 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3455 if test "$ac_test_CFLAGS" = set; then
3456   CFLAGS=$ac_save_CFLAGS
3457 elif test $ac_cv_prog_cc_g = yes; then
3458   if test "$GCC" = yes; then
3459     CFLAGS="-g -O2"
3460   else
3461     CFLAGS="-g"
3462   fi
3463 else
3464   if test "$GCC" = yes; then
3465     CFLAGS="-O2"
3466   else
3467     CFLAGS=
3468   fi
3469 fi
3470 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3471 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3472 if test "${ac_cv_prog_cc_c89+set}" = set; then
3473   echo $ECHO_N "(cached) $ECHO_C" >&6
3474 else
3475   ac_cv_prog_cc_c89=no
3476 ac_save_CC=$CC
3477 cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h.  */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h.  */
3483 #include <stdarg.h>
3484 #include <stdio.h>
3485 #include <sys/types.h>
3486 #include <sys/stat.h>
3487 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3488 struct buf { int x; };
3489 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3490 static char *e (p, i)
3491      char **p;
3492      int i;
3493 {
3494   return p[i];
3495 }
3496 static char *f (char * (*g) (char **, int), char **p, ...)
3497 {
3498   char *s;
3499   va_list v;
3500   va_start (v,p);
3501   s = g (p, va_arg (v,int));
3502   va_end (v);
3503   return s;
3504 }
3505
3506 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3507    function prototypes and stuff, but not '\xHH' hex character constants.
3508    These don't provoke an error unfortunately, instead are silently treated
3509    as 'x'.  The following induces an error, until -std is added to get
3510    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3511    array size at least.  It's necessary to write '\x00'==0 to get something
3512    that's true only with -std.  */
3513 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3514
3515 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3516    inside strings and character constants.  */
3517 #define FOO(x) 'x'
3518 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3519
3520 int test (int i, double x);
3521 struct s1 {int (*f) (int a);};
3522 struct s2 {int (*f) (double a);};
3523 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3524 int argc;
3525 char **argv;
3526 int
3527 main ()
3528 {
3529 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3530   ;
3531   return 0;
3532 }
3533 _ACEOF
3534 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3535         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3536 do
3537   CC="$ac_save_CC $ac_arg"
3538   rm -f conftest.$ac_objext
3539 if { (ac_try="$ac_compile"
3540 case "(($ac_try" in
3541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542   *) ac_try_echo=$ac_try;;
3543 esac
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545   (eval "$ac_compile") 2>conftest.er1
3546   ac_status=$?
3547   grep -v '^ *+' conftest.er1 >conftest.err
3548   rm -f conftest.er1
3549   cat conftest.err >&5
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); } &&
3552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3553   { (case "(($ac_try" in
3554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555   *) ac_try_echo=$ac_try;;
3556 esac
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558   (eval "$ac_try") 2>&5
3559   ac_status=$?
3560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561   (exit $ac_status); }; } &&
3562          { ac_try='test -s conftest.$ac_objext'
3563   { (case "(($ac_try" in
3564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565   *) ac_try_echo=$ac_try;;
3566 esac
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568   (eval "$ac_try") 2>&5
3569   ac_status=$?
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); }; }; then
3572   ac_cv_prog_cc_c89=$ac_arg
3573 else
3574   echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577
3578 fi
3579
3580 rm -f core conftest.err conftest.$ac_objext
3581   test "x$ac_cv_prog_cc_c89" != "xno" && break
3582 done
3583 rm -f conftest.$ac_ext
3584 CC=$ac_save_CC
3585
3586 fi
3587 # AC_CACHE_VAL
3588 case "x$ac_cv_prog_cc_c89" in
3589   x)
3590     { echo "$as_me:$LINENO: result: none needed" >&5
3591 echo "${ECHO_T}none needed" >&6; } ;;
3592   xno)
3593     { echo "$as_me:$LINENO: result: unsupported" >&5
3594 echo "${ECHO_T}unsupported" >&6; } ;;
3595   *)
3596     CC="$CC $ac_cv_prog_cc_c89"
3597     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3598 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3599 esac
3600
3601
3602 ac_ext=c
3603 ac_cpp='$CPP $CPPFLAGS'
3604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607
3608 depcc="$CC"   am_compiler_list=
3609
3610 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3611 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3612 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3613   echo $ECHO_N "(cached) $ECHO_C" >&6
3614 else
3615   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3616   # We make a subdir and do the tests there.  Otherwise we can end up
3617   # making bogus files that we don't know about and never remove.  For
3618   # instance it was reported that on HP-UX the gcc test will end up
3619   # making a dummy file named `D' -- because `-MD' means `put the output
3620   # in D'.
3621   mkdir conftest.dir
3622   # Copy depcomp to subdir because otherwise we won't find it if we're
3623   # using a relative directory.
3624   cp "$am_depcomp" conftest.dir
3625   cd conftest.dir
3626   # We will build objects and dependencies in a subdirectory because
3627   # it helps to detect inapplicable dependency modes.  For instance
3628   # both Tru64's cc and ICC support -MD to output dependencies as a
3629   # side effect of compilation, but ICC will put the dependencies in
3630   # the current directory while Tru64 will put them in the object
3631   # directory.
3632   mkdir sub
3633
3634   am_cv_CC_dependencies_compiler_type=none
3635   if test "$am_compiler_list" = ""; then
3636      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3637   fi
3638   for depmode in $am_compiler_list; do
3639     # Setup a source with many dependencies, because some compilers
3640     # like to wrap large dependency lists on column 80 (with \), and
3641     # we should not choose a depcomp mode which is confused by this.
3642     #
3643     # We need to recreate these files for each test, as the compiler may
3644     # overwrite some of them when testing with obscure command lines.
3645     # This happens at least with the AIX C compiler.
3646     : > sub/conftest.c
3647     for i in 1 2 3 4 5 6; do
3648       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3649       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3650       # Solaris 8's {/usr,}/bin/sh.
3651       touch sub/conftst$i.h
3652     done
3653     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3654
3655     case $depmode in
3656     nosideeffect)
3657       # after this tag, mechanisms are not by side-effect, so they'll
3658       # only be used when explicitly requested
3659       if test "x$enable_dependency_tracking" = xyes; then
3660         continue
3661       else
3662         break
3663       fi
3664       ;;
3665     none) break ;;
3666     esac
3667     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3668     # mode.  It turns out that the SunPro C++ compiler does not properly
3669     # handle `-M -o', and we need to detect this.
3670     if depmode=$depmode \
3671        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3672        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3673        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3674          >/dev/null 2>conftest.err &&
3675        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3676        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3677        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3678        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3679       # icc doesn't choke on unknown options, it will just issue warnings
3680       # or remarks (even with -Werror).  So we grep stderr for any message
3681       # that says an option was ignored or not supported.
3682       # When given -MP, icc 7.0 and 7.1 complain thusly:
3683       #   icc: Command line warning: ignoring option '-M'; no argument required
3684       # The diagnosis changed in icc 8.0:
3685       #   icc: Command line remark: option '-MP' not supported
3686       if (grep 'ignoring option' conftest.err ||
3687           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3688         am_cv_CC_dependencies_compiler_type=$depmode
3689         break
3690       fi
3691     fi
3692   done
3693
3694   cd ..
3695   rm -rf conftest.dir
3696 else
3697   am_cv_CC_dependencies_compiler_type=none
3698 fi
3699
3700 fi
3701 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3702 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3703 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3704
3705  if
3706   test "x$enable_dependency_tracking" != xno \
3707   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3708   am__fastdepCC_TRUE=
3709   am__fastdepCC_FALSE='#'
3710 else
3711   am__fastdepCC_TRUE='#'
3712   am__fastdepCC_FALSE=
3713 fi
3714
3715
3716 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3717 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3718 if test "${lt_cv_path_SED+set}" = set; then
3719   echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721   # Loop through the user's path and test for sed and gsed.
3722 # Then use that list of sed's as ones to test for truncation.
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3725 do
3726   IFS=$as_save_IFS
3727   test -z "$as_dir" && as_dir=.
3728   for lt_ac_prog in sed gsed; do
3729     for ac_exec_ext in '' $ac_executable_extensions; do
3730       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3731         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3732       fi
3733     done
3734   done
3735 done
3736 IFS=$as_save_IFS
3737 lt_ac_max=0
3738 lt_ac_count=0
3739 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3740 # along with /bin/sed that truncates output.
3741 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3742   test ! -f $lt_ac_sed && continue
3743   cat /dev/null > conftest.in
3744   lt_ac_count=0
3745   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3746   # Check for GNU sed and select it if it is found.
3747   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3748     lt_cv_path_SED=$lt_ac_sed
3749     break
3750   fi
3751   while true; do
3752     cat conftest.in conftest.in >conftest.tmp
3753     mv conftest.tmp conftest.in
3754     cp conftest.in conftest.nl
3755     echo >>conftest.nl
3756     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3757     cmp -s conftest.out conftest.nl || break
3758     # 10000 chars as input seems more than enough
3759     test $lt_ac_count -gt 10 && break
3760     lt_ac_count=`expr $lt_ac_count + 1`
3761     if test $lt_ac_count -gt $lt_ac_max; then
3762       lt_ac_max=$lt_ac_count
3763       lt_cv_path_SED=$lt_ac_sed
3764     fi
3765   done
3766 done
3767
3768 fi
3769
3770 SED=$lt_cv_path_SED
3771
3772 { echo "$as_me:$LINENO: result: $SED" >&5
3773 echo "${ECHO_T}$SED" >&6; }
3774
3775 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3776 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3777 if test "${ac_cv_path_GREP+set}" = set; then
3778   echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780   # Extract the first word of "grep ggrep" to use in msg output
3781 if test -z "$GREP"; then
3782 set dummy grep ggrep; ac_prog_name=$2
3783 if test "${ac_cv_path_GREP+set}" = set; then
3784   echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786   ac_path_GREP_found=false
3787 # Loop through the user's path and test for each of PROGNAME-LIST
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3790 do
3791   IFS=$as_save_IFS
3792   test -z "$as_dir" && as_dir=.
3793   for ac_prog in grep ggrep; do
3794   for ac_exec_ext in '' $ac_executable_extensions; do
3795     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3796     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3797     # Check for GNU ac_path_GREP and select it if it is found.
3798   # Check for GNU $ac_path_GREP
3799 case `"$ac_path_GREP" --version 2>&1` in
3800 *GNU*)
3801   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3802 *)
3803   ac_count=0
3804   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3805   while :
3806   do
3807     cat "conftest.in" "conftest.in" >"conftest.tmp"
3808     mv "conftest.tmp" "conftest.in"
3809     cp "conftest.in" "conftest.nl"
3810     echo 'GREP' >> "conftest.nl"
3811     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3812     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3813     ac_count=`expr $ac_count + 1`
3814     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3815       # Best one so far, save it but keep looking for a better one
3816       ac_cv_path_GREP="$ac_path_GREP"
3817       ac_path_GREP_max=$ac_count
3818     fi
3819     # 10*(2^10) chars as input seems more than enough
3820     test $ac_count -gt 10 && break
3821   done
3822   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3823 esac
3824
3825
3826     $ac_path_GREP_found && break 3
3827   done
3828 done
3829
3830 done
3831 IFS=$as_save_IFS
3832
3833
3834 fi
3835
3836 GREP="$ac_cv_path_GREP"
3837 if test -z "$GREP"; then
3838   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3839 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3840    { (exit 1); exit 1; }; }
3841 fi
3842
3843 else
3844   ac_cv_path_GREP=$GREP
3845 fi
3846
3847
3848 fi
3849 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3850 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3851  GREP="$ac_cv_path_GREP"
3852
3853
3854 { echo "$as_me:$LINENO: checking for egrep" >&5
3855 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3856 if test "${ac_cv_path_EGREP+set}" = set; then
3857   echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3860    then ac_cv_path_EGREP="$GREP -E"
3861    else
3862      # Extract the first word of "egrep" to use in msg output
3863 if test -z "$EGREP"; then
3864 set dummy egrep; ac_prog_name=$2
3865 if test "${ac_cv_path_EGREP+set}" = set; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868   ac_path_EGREP_found=false
3869 # Loop through the user's path and test for each of PROGNAME-LIST
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3872 do
3873   IFS=$as_save_IFS
3874   test -z "$as_dir" && as_dir=.
3875   for ac_prog in egrep; do
3876   for ac_exec_ext in '' $ac_executable_extensions; do
3877     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3878     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3879     # Check for GNU ac_path_EGREP and select it if it is found.
3880   # Check for GNU $ac_path_EGREP
3881 case `"$ac_path_EGREP" --version 2>&1` in
3882 *GNU*)
3883   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3884 *)
3885   ac_count=0
3886   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3887   while :
3888   do
3889     cat "conftest.in" "conftest.in" >"conftest.tmp"
3890     mv "conftest.tmp" "conftest.in"
3891     cp "conftest.in" "conftest.nl"
3892     echo 'EGREP' >> "conftest.nl"
3893     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3894     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3895     ac_count=`expr $ac_count + 1`
3896     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3897       # Best one so far, save it but keep looking for a better one
3898       ac_cv_path_EGREP="$ac_path_EGREP"
3899       ac_path_EGREP_max=$ac_count
3900     fi
3901     # 10*(2^10) chars as input seems more than enough
3902     test $ac_count -gt 10 && break
3903   done
3904   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3905 esac
3906
3907
3908     $ac_path_EGREP_found && break 3
3909   done
3910 done
3911
3912 done
3913 IFS=$as_save_IFS
3914
3915
3916 fi
3917
3918 EGREP="$ac_cv_path_EGREP"
3919 if test -z "$EGREP"; then
3920   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3921 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3922    { (exit 1); exit 1; }; }
3923 fi
3924
3925 else
3926   ac_cv_path_EGREP=$EGREP
3927 fi
3928
3929
3930    fi
3931 fi
3932 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3933 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3934  EGREP="$ac_cv_path_EGREP"
3935
3936
3937
3938 # Check whether --with-gnu-ld was given.
3939 if test "${with_gnu_ld+set}" = set; then
3940   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3941 else
3942   with_gnu_ld=no
3943 fi
3944
3945 ac_prog=ld
3946 if test "$GCC" = yes; then
3947   # Check if gcc -print-prog-name=ld gives a path.
3948   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3949 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3950   case $host in
3951   *-*-mingw*)
3952     # gcc leaves a trailing carriage return which upsets mingw
3953     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3954   *)
3955     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3956   esac
3957   case $ac_prog in
3958     # Accept absolute paths.
3959     [\\/]* | ?:[\\/]*)
3960       re_direlt='/[^/][^/]*/\.\./'
3961       # Canonicalize the pathname of ld
3962       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3963       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3964         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3965       done
3966       test -z "$LD" && LD="$ac_prog"
3967       ;;
3968   "")
3969     # If it fails, then pretend we aren't using GCC.
3970     ac_prog=ld
3971     ;;
3972   *)
3973     # If it is relative, then search for the first ld in PATH.
3974     with_gnu_ld=unknown
3975     ;;
3976   esac
3977 elif test "$with_gnu_ld" = yes; then
3978   { echo "$as_me:$LINENO: checking for GNU ld" >&5
3979 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3980 else
3981   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3982 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3983 fi
3984 if test "${lt_cv_path_LD+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   if test -z "$LD"; then
3988   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3989   for ac_dir in $PATH; do
3990     IFS="$lt_save_ifs"
3991     test -z "$ac_dir" && ac_dir=.
3992     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3993       lt_cv_path_LD="$ac_dir/$ac_prog"
3994       # Check to see if the program is GNU ld.  I'd rather use --version,
3995       # but apparently some variants of GNU ld only accept -v.
3996       # Break only if it was the GNU/non-GNU ld that we prefer.
3997       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3998       *GNU* | *'with BFD'*)
3999         test "$with_gnu_ld" != no && break
4000         ;;
4001       *)
4002         test "$with_gnu_ld" != yes && break
4003         ;;
4004       esac
4005     fi
4006   done
4007   IFS="$lt_save_ifs"
4008 else
4009   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4010 fi
4011 fi
4012
4013 LD="$lt_cv_path_LD"
4014 if test -n "$LD"; then
4015   { echo "$as_me:$LINENO: result: $LD" >&5
4016 echo "${ECHO_T}$LD" >&6; }
4017 else
4018   { echo "$as_me:$LINENO: result: no" >&5
4019 echo "${ECHO_T}no" >&6; }
4020 fi
4021 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4022 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4023    { (exit 1); exit 1; }; }
4024 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4025 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4026 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4027   echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4030 case `$LD -v 2>&1 </dev/null` in
4031 *GNU* | *'with BFD'*)
4032   lt_cv_prog_gnu_ld=yes
4033   ;;
4034 *)
4035   lt_cv_prog_gnu_ld=no
4036   ;;
4037 esac
4038 fi
4039 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4040 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4041 with_gnu_ld=$lt_cv_prog_gnu_ld
4042
4043
4044 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4045 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4046 if test "${lt_cv_ld_reload_flag+set}" = set; then
4047   echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049   lt_cv_ld_reload_flag='-r'
4050 fi
4051 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4052 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4053 reload_flag=$lt_cv_ld_reload_flag
4054 case $reload_flag in
4055 "" | " "*) ;;
4056 *) reload_flag=" $reload_flag" ;;
4057 esac
4058 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4059 case $host_os in
4060   darwin*)
4061     if test "$GCC" = yes; then
4062       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4063     else
4064       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4065     fi
4066     ;;
4067 esac
4068
4069 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4070 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4071 if test "${lt_cv_path_NM+set}" = set; then
4072   echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074   if test -n "$NM"; then
4075   # Let the user override the test.
4076   lt_cv_path_NM="$NM"
4077 else
4078   lt_nm_to_check="${ac_tool_prefix}nm"
4079   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4080     lt_nm_to_check="$lt_nm_to_check nm"
4081   fi
4082   for lt_tmp_nm in $lt_nm_to_check; do
4083     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4084     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4085       IFS="$lt_save_ifs"
4086       test -z "$ac_dir" && ac_dir=.
4087       tmp_nm="$ac_dir/$lt_tmp_nm"
4088       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4089         # Check to see if the nm accepts a BSD-compat flag.
4090         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4091         #   nm: unknown option "B" ignored
4092         # Tru64's nm complains that /dev/null is an invalid object file
4093         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4094         */dev/null* | *'Invalid file or object type'*)
4095           lt_cv_path_NM="$tmp_nm -B"
4096           break
4097           ;;
4098         *)
4099           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4100           */dev/null*)
4101             lt_cv_path_NM="$tmp_nm -p"
4102             break
4103             ;;
4104           *)
4105             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4106             continue # so that we can try to find one that supports BSD flags
4107             ;;
4108           esac
4109           ;;
4110         esac
4111       fi
4112     done
4113     IFS="$lt_save_ifs"
4114   done
4115   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4116 fi
4117 fi
4118 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4119 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4120 NM="$lt_cv_path_NM"
4121
4122 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4123 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4124 LN_S=$as_ln_s
4125 if test "$LN_S" = "ln -s"; then
4126   { echo "$as_me:$LINENO: result: yes" >&5
4127 echo "${ECHO_T}yes" >&6; }
4128 else
4129   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4130 echo "${ECHO_T}no, using $LN_S" >&6; }
4131 fi
4132
4133 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4134 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4135 if test "${lt_cv_deplibs_check_method+set}" = set; then
4136   echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138   lt_cv_file_magic_cmd='$MAGIC_CMD'
4139 lt_cv_file_magic_test_file=
4140 lt_cv_deplibs_check_method='unknown'
4141 # Need to set the preceding variable on all platforms that support
4142 # interlibrary dependencies.
4143 # 'none' -- dependencies not supported.
4144 # `unknown' -- same as none, but documents that we really don't know.
4145 # 'pass_all' -- all dependencies passed with no checks.
4146 # 'test_compile' -- check by making test program.
4147 # 'file_magic [[regex]]' -- check by looking for files in library path
4148 # which responds to the $file_magic_cmd with a given extended regex.
4149 # If you have `file' or equivalent on your system and you're not sure
4150 # whether `pass_all' will *always* work, you probably want this one.
4151
4152 case $host_os in
4153 aix4* | aix5*)
4154   lt_cv_deplibs_check_method=pass_all
4155   ;;
4156
4157 beos*)
4158   lt_cv_deplibs_check_method=pass_all
4159   ;;
4160
4161 bsdi[45]*)
4162   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4163   lt_cv_file_magic_cmd='/usr/bin/file -L'
4164   lt_cv_file_magic_test_file=/shlib/libc.so
4165   ;;
4166
4167 cygwin*)
4168   # func_win32_libid is a shell function defined in ltmain.sh
4169   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4170   lt_cv_file_magic_cmd='func_win32_libid'
4171   ;;
4172
4173 mingw* | pw32*)
4174   # Base MSYS/MinGW do not provide the 'file' command needed by
4175   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4176   # unless we find 'file', for example because we are cross-compiling.
4177   if ( file / ) >/dev/null 2>&1; then
4178     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4179     lt_cv_file_magic_cmd='func_win32_libid'
4180   else
4181     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4182     lt_cv_file_magic_cmd='$OBJDUMP -f'
4183   fi
4184   ;;
4185
4186 darwin* | rhapsody*)
4187   lt_cv_deplibs_check_method=pass_all
4188   ;;
4189
4190 freebsd* | dragonfly*)
4191   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4192     case $host_cpu in
4193     i*86 )
4194       # Not sure whether the presence of OpenBSD here was a mistake.
4195       # Let's accept both of them until this is cleared up.
4196       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4197       lt_cv_file_magic_cmd=/usr/bin/file
4198       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4199       ;;
4200     esac
4201   else
4202     lt_cv_deplibs_check_method=pass_all
4203   fi
4204   ;;
4205
4206 gnu*)
4207   lt_cv_deplibs_check_method=pass_all
4208   ;;
4209
4210 hpux10.20* | hpux11*)
4211   lt_cv_file_magic_cmd=/usr/bin/file
4212   case $host_cpu in
4213   ia64*)
4214     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4215     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4216     ;;
4217   hppa*64*)
4218     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]'
4219     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4220     ;;
4221   *)
4222     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4223     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4224     ;;
4225   esac
4226   ;;
4227
4228 interix[3-9]*)
4229   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4230   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4231   ;;
4232
4233 irix5* | irix6* | nonstopux*)
4234   case $LD in
4235   *-32|*"-32 ") libmagic=32-bit;;
4236   *-n32|*"-n32 ") libmagic=N32;;
4237   *-64|*"-64 ") libmagic=64-bit;;
4238   *) libmagic=never-match;;
4239   esac
4240   lt_cv_deplibs_check_method=pass_all
4241   ;;
4242
4243 # This must be Linux ELF.
4244 linux* | k*bsd*-gnu)
4245   lt_cv_deplibs_check_method=pass_all
4246   ;;
4247
4248 netbsd*)
4249   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4250     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4251   else
4252     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4253   fi
4254   ;;
4255
4256 newos6*)
4257   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4258   lt_cv_file_magic_cmd=/usr/bin/file
4259   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4260   ;;
4261
4262 nto-qnx*)
4263   lt_cv_deplibs_check_method=unknown
4264   ;;
4265
4266 openbsd*)
4267   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4268     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4269   else
4270     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4271   fi
4272   ;;
4273
4274 osf3* | osf4* | osf5*)
4275   lt_cv_deplibs_check_method=pass_all
4276   ;;
4277
4278 rdos*)
4279   lt_cv_deplibs_check_method=pass_all
4280   ;;
4281
4282 solaris*)
4283   lt_cv_deplibs_check_method=pass_all
4284   ;;
4285
4286 sysv4 | sysv4.3*)
4287   case $host_vendor in
4288   motorola)
4289     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]'
4290     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4291     ;;
4292   ncr)
4293     lt_cv_deplibs_check_method=pass_all
4294     ;;
4295   sequent)
4296     lt_cv_file_magic_cmd='/bin/file'
4297     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4298     ;;
4299   sni)
4300     lt_cv_file_magic_cmd='/bin/file'
4301     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4302     lt_cv_file_magic_test_file=/lib/libc.so
4303     ;;
4304   siemens)
4305     lt_cv_deplibs_check_method=pass_all
4306     ;;
4307   pc)
4308     lt_cv_deplibs_check_method=pass_all
4309     ;;
4310   esac
4311   ;;
4312
4313 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4314   lt_cv_deplibs_check_method=pass_all
4315   ;;
4316 esac
4317
4318 fi
4319 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4320 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4321 file_magic_cmd=$lt_cv_file_magic_cmd
4322 deplibs_check_method=$lt_cv_deplibs_check_method
4323 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4324
4325
4326
4327
4328 # If no C compiler was specified, use CC.
4329 LTCC=${LTCC-"$CC"}
4330
4331 # If no C compiler flags were specified, use CFLAGS.
4332 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4333
4334 # Allow CC to be a program name with arguments.
4335 compiler=$CC
4336
4337
4338 # Check whether --enable-libtool-lock was given.
4339 if test "${enable_libtool_lock+set}" = set; then
4340   enableval=$enable_libtool_lock;
4341 fi
4342
4343 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4344
4345 # Some flags need to be propagated to the compiler or linker for good
4346 # libtool support.
4347 case $host in
4348 ia64-*-hpux*)
4349   # Find out which ABI we are using.
4350   echo 'int i;' > conftest.$ac_ext
4351   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4352   (eval $ac_compile) 2>&5
4353   ac_status=$?
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); }; then
4356     case `/usr/bin/file conftest.$ac_objext` in
4357     *ELF-32*)
4358       HPUX_IA64_MODE="32"
4359       ;;
4360     *ELF-64*)
4361       HPUX_IA64_MODE="64"
4362       ;;
4363     esac
4364   fi
4365   rm -rf conftest*
4366   ;;
4367 *-*-irix6*)
4368   # Find out which ABI we are using.
4369   echo '#line 4369 "configure"' > conftest.$ac_ext
4370   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4371   (eval $ac_compile) 2>&5
4372   ac_status=$?
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); }; then
4375    if test "$lt_cv_prog_gnu_ld" = yes; then
4376     case `/usr/bin/file conftest.$ac_objext` in
4377     *32-bit*)
4378       LD="${LD-ld} -melf32bsmip"
4379       ;;
4380     *N32*)
4381       LD="${LD-ld} -melf32bmipn32"
4382       ;;
4383     *64-bit*)
4384       LD="${LD-ld} -melf64bmip"
4385       ;;
4386     esac
4387    else
4388     case `/usr/bin/file conftest.$ac_objext` in
4389     *32-bit*)
4390       LD="${LD-ld} -32"
4391       ;;
4392     *N32*)
4393       LD="${LD-ld} -n32"
4394       ;;
4395     *64-bit*)
4396       LD="${LD-ld} -64"
4397       ;;
4398     esac
4399    fi
4400   fi
4401   rm -rf conftest*
4402   ;;
4403
4404 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4405 s390*-*linux*|sparc*-*linux*)
4406   # Find out which ABI we are using.
4407   echo 'int i;' > conftest.$ac_ext
4408   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409   (eval $ac_compile) 2>&5
4410   ac_status=$?
4411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412   (exit $ac_status); }; then
4413     case `/usr/bin/file conftest.o` in
4414     *32-bit*)
4415       case $host in
4416         x86_64-*kfreebsd*-gnu)
4417           LD="${LD-ld} -m elf_i386_fbsd"
4418           ;;
4419         x86_64-*linux*)
4420           LD="${LD-ld} -m elf_i386"
4421           ;;
4422         ppc64-*linux*|powerpc64-*linux*)
4423           LD="${LD-ld} -m elf32ppclinux"
4424           ;;
4425         s390x-*linux*)
4426           LD="${LD-ld} -m elf_s390"
4427           ;;
4428         sparc64-*linux*)
4429           LD="${LD-ld} -m elf32_sparc"
4430           ;;
4431       esac
4432       ;;
4433     *64-bit*)
4434       case $host in
4435         x86_64-*kfreebsd*-gnu)
4436           LD="${LD-ld} -m elf_x86_64_fbsd"
4437           ;;
4438         x86_64-*linux*)
4439           LD="${LD-ld} -m elf_x86_64"
4440           ;;
4441         ppc*-*linux*|powerpc*-*linux*)
4442           LD="${LD-ld} -m elf64ppc"
4443           ;;
4444         s390*-*linux*)
4445           LD="${LD-ld} -m elf64_s390"
4446           ;;
4447         sparc*-*linux*)
4448           LD="${LD-ld} -m elf64_sparc"
4449           ;;
4450       esac
4451       ;;
4452     esac
4453   fi
4454   rm -rf conftest*
4455   ;;
4456
4457 *-*-sco3.2v5*)
4458   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4459   SAVE_CFLAGS="$CFLAGS"
4460   CFLAGS="$CFLAGS -belf"
4461   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4462 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4463 if test "${lt_cv_cc_needs_belf+set}" = set; then
4464   echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466   ac_ext=c
4467 ac_cpp='$CPP $CPPFLAGS'
4468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4471
4472      cat >conftest.$ac_ext <<_ACEOF
4473 /* confdefs.h.  */
4474 _ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h.  */
4478
4479 int
4480 main ()
4481 {
4482
4483   ;
4484   return 0;
4485 }
4486 _ACEOF
4487 rm -f conftest.$ac_objext conftest$ac_exeext
4488 if { (ac_try="$ac_link"
4489 case "(($ac_try" in
4490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491   *) ac_try_echo=$ac_try;;
4492 esac
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494   (eval "$ac_link") 2>conftest.er1
4495   ac_status=$?
4496   grep -v '^ *+' conftest.er1 >conftest.err
4497   rm -f conftest.er1
4498   cat conftest.err >&5
4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500   (exit $ac_status); } &&
4501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4502   { (case "(($ac_try" in
4503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504   *) ac_try_echo=$ac_try;;
4505 esac
4506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507   (eval "$ac_try") 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); }; } &&
4511          { ac_try='test -s conftest$ac_exeext'
4512   { (case "(($ac_try" in
4513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514   *) ac_try_echo=$ac_try;;
4515 esac
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517   (eval "$ac_try") 2>&5
4518   ac_status=$?
4519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); }; }; then
4521   lt_cv_cc_needs_belf=yes
4522 else
4523   echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4525
4526         lt_cv_cc_needs_belf=no
4527 fi
4528
4529 rm -f core conftest.err conftest.$ac_objext \
4530       conftest$ac_exeext conftest.$ac_ext
4531      ac_ext=c
4532 ac_cpp='$CPP $CPPFLAGS'
4533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536
4537 fi
4538 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4539 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4540   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4541     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4542     CFLAGS="$SAVE_CFLAGS"
4543   fi
4544   ;;
4545 sparc*-*solaris*)
4546   # Find out which ABI we are using.
4547   echo 'int i;' > conftest.$ac_ext
4548   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4549   (eval $ac_compile) 2>&5
4550   ac_status=$?
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); }; then
4553     case `/usr/bin/file conftest.o` in
4554     *64-bit*)
4555       case $lt_cv_prog_gnu_ld in
4556       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4557       *)    LD="${LD-ld} -64" ;;
4558       esac
4559       ;;
4560     esac
4561   fi
4562   rm -rf conftest*
4563   ;;
4564
4565
4566 esac
4567
4568 need_locks="$enable_libtool_lock"
4569
4570
4571 ac_ext=c
4572 ac_cpp='$CPP $CPPFLAGS'
4573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4577 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4578 # On Suns, sometimes $CPP names a directory.
4579 if test -n "$CPP" && test -d "$CPP"; then
4580   CPP=
4581 fi
4582 if test -z "$CPP"; then
4583   if test "${ac_cv_prog_CPP+set}" = set; then
4584   echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else
4586       # Double quotes because CPP needs to be expanded
4587     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4588     do
4589       ac_preproc_ok=false
4590 for ac_c_preproc_warn_flag in '' yes
4591 do
4592   # Use a header file that comes with gcc, so configuring glibc
4593   # with a fresh cross-compiler works.
4594   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4595   # <limits.h> exists even on freestanding compilers.
4596   # On the NeXT, cc -E runs the code through the compiler's parser,
4597   # not just through cpp. "Syntax error" is here to catch this case.
4598   cat >conftest.$ac_ext <<_ACEOF
4599 /* confdefs.h.  */
4600 _ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h.  */
4604 #ifdef __STDC__
4605 # include <limits.h>
4606 #else
4607 # include <assert.h>
4608 #endif
4609                      Syntax error
4610 _ACEOF
4611 if { (ac_try="$ac_cpp conftest.$ac_ext"
4612 case "(($ac_try" in
4613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614   *) ac_try_echo=$ac_try;;
4615 esac
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4618   ac_status=$?
4619   grep -v '^ *+' conftest.er1 >conftest.err
4620   rm -f conftest.er1
4621   cat conftest.err >&5
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); } >/dev/null; then
4624   if test -s conftest.err; then
4625     ac_cpp_err=$ac_c_preproc_warn_flag
4626     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4627   else
4628     ac_cpp_err=
4629   fi
4630 else
4631   ac_cpp_err=yes
4632 fi
4633 if test -z "$ac_cpp_err"; then
4634   :
4635 else
4636   echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4638
4639   # Broken: fails on valid input.
4640 continue
4641 fi
4642
4643 rm -f conftest.err conftest.$ac_ext
4644
4645   # OK, works on sane cases.  Now check whether nonexistent headers
4646   # can be detected and how.
4647   cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h.  */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h.  */
4653 #include <ac_nonexistent.h>
4654 _ACEOF
4655 if { (ac_try="$ac_cpp conftest.$ac_ext"
4656 case "(($ac_try" in
4657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658   *) ac_try_echo=$ac_try;;
4659 esac
4660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4662   ac_status=$?
4663   grep -v '^ *+' conftest.er1 >conftest.err
4664   rm -f conftest.er1
4665   cat conftest.err >&5
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); } >/dev/null; then
4668   if test -s conftest.err; then
4669     ac_cpp_err=$ac_c_preproc_warn_flag
4670     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4671   else
4672     ac_cpp_err=
4673   fi
4674 else
4675   ac_cpp_err=yes
4676 fi
4677 if test -z "$ac_cpp_err"; then
4678   # Broken: success on invalid input.
4679 continue
4680 else
4681   echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4683
4684   # Passes both tests.
4685 ac_preproc_ok=:
4686 break
4687 fi
4688
4689 rm -f conftest.err conftest.$ac_ext
4690
4691 done
4692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4693 rm -f conftest.err conftest.$ac_ext
4694 if $ac_preproc_ok; then
4695   break
4696 fi
4697
4698     done
4699     ac_cv_prog_CPP=$CPP
4700
4701 fi
4702   CPP=$ac_cv_prog_CPP
4703 else
4704   ac_cv_prog_CPP=$CPP
4705 fi
4706 { echo "$as_me:$LINENO: result: $CPP" >&5
4707 echo "${ECHO_T}$CPP" >&6; }
4708 ac_preproc_ok=false
4709 for ac_c_preproc_warn_flag in '' yes
4710 do
4711   # Use a header file that comes with gcc, so configuring glibc
4712   # with a fresh cross-compiler works.
4713   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4714   # <limits.h> exists even on freestanding compilers.
4715   # On the NeXT, cc -E runs the code through the compiler's parser,
4716   # not just through cpp. "Syntax error" is here to catch this case.
4717   cat >conftest.$ac_ext <<_ACEOF
4718 /* confdefs.h.  */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h.  */
4723 #ifdef __STDC__
4724 # include <limits.h>
4725 #else
4726 # include <assert.h>
4727 #endif
4728                      Syntax error
4729 _ACEOF
4730 if { (ac_try="$ac_cpp conftest.$ac_ext"
4731 case "(($ac_try" in
4732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733   *) ac_try_echo=$ac_try;;
4734 esac
4735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4737   ac_status=$?
4738   grep -v '^ *+' conftest.er1 >conftest.err
4739   rm -f conftest.er1
4740   cat conftest.err >&5
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); } >/dev/null; then
4743   if test -s conftest.err; then
4744     ac_cpp_err=$ac_c_preproc_warn_flag
4745     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4746   else
4747     ac_cpp_err=
4748   fi
4749 else
4750   ac_cpp_err=yes
4751 fi
4752 if test -z "$ac_cpp_err"; then
4753   :
4754 else
4755   echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4757
4758   # Broken: fails on valid input.
4759 continue
4760 fi
4761
4762 rm -f conftest.err conftest.$ac_ext
4763
4764   # OK, works on sane cases.  Now check whether nonexistent headers
4765   # can be detected and how.
4766   cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h.  */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h.  */
4772 #include <ac_nonexistent.h>
4773 _ACEOF
4774 if { (ac_try="$ac_cpp conftest.$ac_ext"
4775 case "(($ac_try" in
4776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777   *) ac_try_echo=$ac_try;;
4778 esac
4779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4781   ac_status=$?
4782   grep -v '^ *+' conftest.er1 >conftest.err
4783   rm -f conftest.er1
4784   cat conftest.err >&5
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); } >/dev/null; then
4787   if test -s conftest.err; then
4788     ac_cpp_err=$ac_c_preproc_warn_flag
4789     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4790   else
4791     ac_cpp_err=
4792   fi
4793 else
4794   ac_cpp_err=yes
4795 fi
4796 if test -z "$ac_cpp_err"; then
4797   # Broken: success on invalid input.
4798 continue
4799 else
4800   echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4802
4803   # Passes both tests.
4804 ac_preproc_ok=:
4805 break
4806 fi
4807
4808 rm -f conftest.err conftest.$ac_ext
4809
4810 done
4811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4812 rm -f conftest.err conftest.$ac_ext
4813 if $ac_preproc_ok; then
4814   :
4815 else
4816   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4817 See \`config.log' for more details." >&5
4818 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4819 See \`config.log' for more details." >&2;}
4820    { (exit 1); exit 1; }; }
4821 fi
4822
4823 ac_ext=c
4824 ac_cpp='$CPP $CPPFLAGS'
4825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4828
4829
4830 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4831 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4832 if test "${ac_cv_header_stdc+set}" = set; then
4833   echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835   cat >conftest.$ac_ext <<_ACEOF
4836 /* confdefs.h.  */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h.  */
4841 #include <stdlib.h>
4842 #include <stdarg.h>
4843 #include <string.h>
4844 #include <float.h>
4845
4846 int
4847 main ()
4848 {
4849
4850   ;
4851   return 0;
4852 }
4853 _ACEOF
4854 rm -f conftest.$ac_objext
4855 if { (ac_try="$ac_compile"
4856 case "(($ac_try" in
4857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858   *) ac_try_echo=$ac_try;;
4859 esac
4860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4861   (eval "$ac_compile") 2>conftest.er1
4862   ac_status=$?
4863   grep -v '^ *+' conftest.er1 >conftest.err
4864   rm -f conftest.er1
4865   cat conftest.err >&5
4866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); } &&
4868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4869   { (case "(($ac_try" in
4870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871   *) ac_try_echo=$ac_try;;
4872 esac
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874   (eval "$ac_try") 2>&5
4875   ac_status=$?
4876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); }; } &&
4878          { ac_try='test -s conftest.$ac_objext'
4879   { (case "(($ac_try" in
4880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881   *) ac_try_echo=$ac_try;;
4882 esac
4883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884   (eval "$ac_try") 2>&5
4885   ac_status=$?
4886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); }; }; 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          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5065   { (case "(($ac_try" in
5066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067   *) ac_try_echo=$ac_try;;
5068 esac
5069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5070   (eval "$ac_try") 2>&5
5071   ac_status=$?
5072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073   (exit $ac_status); }; } &&
5074          { ac_try='test -s conftest.$ac_objext'
5075   { (case "(($ac_try" in
5076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077   *) ac_try_echo=$ac_try;;
5078 esac
5079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080   (eval "$ac_try") 2>&5
5081   ac_status=$?
5082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083   (exit $ac_status); }; }; then
5084   eval "$as_ac_Header=yes"
5085 else
5086   echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5088
5089         eval "$as_ac_Header=no"
5090 fi
5091
5092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5093 fi
5094 ac_res=`eval echo '${'$as_ac_Header'}'`
5095                { echo "$as_me:$LINENO: result: $ac_res" >&5
5096 echo "${ECHO_T}$ac_res" >&6; }
5097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5098   cat >>confdefs.h <<_ACEOF
5099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5100 _ACEOF
5101
5102 fi
5103
5104 done
5105
5106
5107
5108 for ac_header in dlfcn.h
5109 do
5110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5112   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5115   echo $ECHO_N "(cached) $ECHO_C" >&6
5116 fi
5117 ac_res=`eval echo '${'$as_ac_Header'}'`
5118                { echo "$as_me:$LINENO: result: $ac_res" >&5
5119 echo "${ECHO_T}$ac_res" >&6; }
5120 else
5121   # Is the header compilable?
5122 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5124 cat >conftest.$ac_ext <<_ACEOF
5125 /* confdefs.h.  */
5126 _ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h.  */
5130 $ac_includes_default
5131 #include <$ac_header>
5132 _ACEOF
5133 rm -f conftest.$ac_objext
5134 if { (ac_try="$ac_compile"
5135 case "(($ac_try" in
5136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137   *) ac_try_echo=$ac_try;;
5138 esac
5139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5140   (eval "$ac_compile") 2>conftest.er1
5141   ac_status=$?
5142   grep -v '^ *+' conftest.er1 >conftest.err
5143   rm -f conftest.er1
5144   cat conftest.err >&5
5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); } &&
5147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5148   { (case "(($ac_try" in
5149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150   *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153   (eval "$ac_try") 2>&5
5154   ac_status=$?
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); }; } &&
5157          { ac_try='test -s conftest.$ac_objext'
5158   { (case "(($ac_try" in
5159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160   *) ac_try_echo=$ac_try;;
5161 esac
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163   (eval "$ac_try") 2>&5
5164   ac_status=$?
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); }; }; then
5167   ac_header_compiler=yes
5168 else
5169   echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5171
5172         ac_header_compiler=no
5173 fi
5174
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5177 echo "${ECHO_T}$ac_header_compiler" >&6; }
5178
5179 # Is the header present?
5180 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5182 cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h.  */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h.  */
5188 #include <$ac_header>
5189 _ACEOF
5190 if { (ac_try="$ac_cpp conftest.$ac_ext"
5191 case "(($ac_try" in
5192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193   *) ac_try_echo=$ac_try;;
5194 esac
5195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5197   ac_status=$?
5198   grep -v '^ *+' conftest.er1 >conftest.err
5199   rm -f conftest.er1
5200   cat conftest.err >&5
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); } >/dev/null; then
5203   if test -s conftest.err; then
5204     ac_cpp_err=$ac_c_preproc_warn_flag
5205     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5206   else
5207     ac_cpp_err=
5208   fi
5209 else
5210   ac_cpp_err=yes
5211 fi
5212 if test -z "$ac_cpp_err"; then
5213   ac_header_preproc=yes
5214 else
5215   echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5217
5218   ac_header_preproc=no
5219 fi
5220
5221 rm -f conftest.err conftest.$ac_ext
5222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5223 echo "${ECHO_T}$ac_header_preproc" >&6; }
5224
5225 # So?  What about this header?
5226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5227   yes:no: )
5228     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5229 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5230     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5231 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5232     ac_header_preproc=yes
5233     ;;
5234   no:yes:* )
5235     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5236 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5237     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5238 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5239     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5240 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5241     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5242 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5243     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5245     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5246 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5247
5248     ;;
5249 esac
5250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5253   echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255   eval "$as_ac_Header=\$ac_header_preproc"
5256 fi
5257 ac_res=`eval echo '${'$as_ac_Header'}'`
5258                { echo "$as_me:$LINENO: result: $ac_res" >&5
5259 echo "${ECHO_T}$ac_res" >&6; }
5260
5261 fi
5262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5263   cat >>confdefs.h <<_ACEOF
5264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5265 _ACEOF
5266
5267 fi
5268
5269 done
5270
5271 ac_ext=cpp
5272 ac_cpp='$CXXCPP $CPPFLAGS'
5273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5276 if test -z "$CXX"; then
5277   if test -n "$CCC"; then
5278     CXX=$CCC
5279   else
5280     if test -n "$ac_tool_prefix"; then
5281   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5282   do
5283     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5287 if test "${ac_cv_prog_CXX+set}" = set; then
5288   echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290   if test -n "$CXX"; then
5291   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5295 do
5296   IFS=$as_save_IFS
5297   test -z "$as_dir" && as_dir=.
5298   for ac_exec_ext in '' $ac_executable_extensions; do
5299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5300     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302     break 2
5303   fi
5304 done
5305 done
5306 IFS=$as_save_IFS
5307
5308 fi
5309 fi
5310 CXX=$ac_cv_prog_CXX
5311 if test -n "$CXX"; then
5312   { echo "$as_me:$LINENO: result: $CXX" >&5
5313 echo "${ECHO_T}$CXX" >&6; }
5314 else
5315   { echo "$as_me:$LINENO: result: no" >&5
5316 echo "${ECHO_T}no" >&6; }
5317 fi
5318
5319
5320     test -n "$CXX" && break
5321   done
5322 fi
5323 if test -z "$CXX"; then
5324   ac_ct_CXX=$CXX
5325   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5326 do
5327   # Extract the first word of "$ac_prog", so it can be a program name with args.
5328 set dummy $ac_prog; ac_word=$2
5329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5331 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5332   echo $ECHO_N "(cached) $ECHO_C" >&6
5333 else
5334   if test -n "$ac_ct_CXX"; then
5335   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5339 do
5340   IFS=$as_save_IFS
5341   test -z "$as_dir" && as_dir=.
5342   for ac_exec_ext in '' $ac_executable_extensions; do
5343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5344     ac_cv_prog_ac_ct_CXX="$ac_prog"
5345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346     break 2
5347   fi
5348 done
5349 done
5350 IFS=$as_save_IFS
5351
5352 fi
5353 fi
5354 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5355 if test -n "$ac_ct_CXX"; then
5356   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5357 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5358 else
5359   { echo "$as_me:$LINENO: result: no" >&5
5360 echo "${ECHO_T}no" >&6; }
5361 fi
5362
5363
5364   test -n "$ac_ct_CXX" && break
5365 done
5366
5367   if test "x$ac_ct_CXX" = x; then
5368     CXX="g++"
5369   else
5370     case $cross_compiling:$ac_tool_warned in
5371 yes:)
5372 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5373 whose name does not start with the host triplet.  If you think this
5374 configuration is useful to you, please write to autoconf@gnu.org." >&5
5375 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5376 whose name does not start with the host triplet.  If you think this
5377 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5378 ac_tool_warned=yes ;;
5379 esac
5380     CXX=$ac_ct_CXX
5381   fi
5382 fi
5383
5384   fi
5385 fi
5386 # Provide some information about the compiler.
5387 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5388 ac_compiler=`set X $ac_compile; echo $2`
5389 { (ac_try="$ac_compiler --version >&5"
5390 case "(($ac_try" in
5391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392   *) ac_try_echo=$ac_try;;
5393 esac
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395   (eval "$ac_compiler --version >&5") 2>&5
5396   ac_status=$?
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); }
5399 { (ac_try="$ac_compiler -v >&5"
5400 case "(($ac_try" in
5401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402   *) ac_try_echo=$ac_try;;
5403 esac
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405   (eval "$ac_compiler -v >&5") 2>&5
5406   ac_status=$?
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); }
5409 { (ac_try="$ac_compiler -V >&5"
5410 case "(($ac_try" in
5411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412   *) ac_try_echo=$ac_try;;
5413 esac
5414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5415   (eval "$ac_compiler -V >&5") 2>&5
5416   ac_status=$?
5417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418   (exit $ac_status); }
5419
5420 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5421 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5422 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5423   echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425   cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h.  */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h.  */
5431
5432 int
5433 main ()
5434 {
5435 #ifndef __GNUC__
5436        choke me
5437 #endif
5438
5439   ;
5440   return 0;
5441 }
5442 _ACEOF
5443 rm -f conftest.$ac_objext
5444 if { (ac_try="$ac_compile"
5445 case "(($ac_try" in
5446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447   *) ac_try_echo=$ac_try;;
5448 esac
5449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450   (eval "$ac_compile") 2>conftest.er1
5451   ac_status=$?
5452   grep -v '^ *+' conftest.er1 >conftest.err
5453   rm -f conftest.er1
5454   cat conftest.err >&5
5455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); } &&
5457          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5458   { (case "(($ac_try" in
5459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460   *) ac_try_echo=$ac_try;;
5461 esac
5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463   (eval "$ac_try") 2>&5
5464   ac_status=$?
5465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466   (exit $ac_status); }; } &&
5467          { ac_try='test -s conftest.$ac_objext'
5468   { (case "(($ac_try" in
5469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470   *) ac_try_echo=$ac_try;;
5471 esac
5472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473   (eval "$ac_try") 2>&5
5474   ac_status=$?
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); }; }; then
5477   ac_compiler_gnu=yes
5478 else
5479   echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5481
5482         ac_compiler_gnu=no
5483 fi
5484
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5487
5488 fi
5489 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5490 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5491 GXX=`test $ac_compiler_gnu = yes && echo yes`
5492 ac_test_CXXFLAGS=${CXXFLAGS+set}
5493 ac_save_CXXFLAGS=$CXXFLAGS
5494 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5495 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5496 if test "${ac_cv_prog_cxx_g+set}" = set; then
5497   echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5500    ac_cxx_werror_flag=yes
5501    ac_cv_prog_cxx_g=no
5502    CXXFLAGS="-g"
5503    cat >conftest.$ac_ext <<_ACEOF
5504 /* confdefs.h.  */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h.  */
5509
5510 int
5511 main ()
5512 {
5513
5514   ;
5515   return 0;
5516 }
5517 _ACEOF
5518 rm -f conftest.$ac_objext
5519 if { (ac_try="$ac_compile"
5520 case "(($ac_try" in
5521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522   *) ac_try_echo=$ac_try;;
5523 esac
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525   (eval "$ac_compile") 2>conftest.er1
5526   ac_status=$?
5527   grep -v '^ *+' conftest.er1 >conftest.err
5528   rm -f conftest.er1
5529   cat conftest.err >&5
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); } &&
5532          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5533   { (case "(($ac_try" in
5534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535   *) ac_try_echo=$ac_try;;
5536 esac
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538   (eval "$ac_try") 2>&5
5539   ac_status=$?
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); }; } &&
5542          { ac_try='test -s conftest.$ac_objext'
5543   { (case "(($ac_try" in
5544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545   *) ac_try_echo=$ac_try;;
5546 esac
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548   (eval "$ac_try") 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); }; }; then
5552   ac_cv_prog_cxx_g=yes
5553 else
5554   echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5556
5557         CXXFLAGS=""
5558       cat >conftest.$ac_ext <<_ACEOF
5559 /* confdefs.h.  */
5560 _ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h.  */
5564
5565 int
5566 main ()
5567 {
5568
5569   ;
5570   return 0;
5571 }
5572 _ACEOF
5573 rm -f conftest.$ac_objext
5574 if { (ac_try="$ac_compile"
5575 case "(($ac_try" in
5576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577   *) ac_try_echo=$ac_try;;
5578 esac
5579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580   (eval "$ac_compile") 2>conftest.er1
5581   ac_status=$?
5582   grep -v '^ *+' conftest.er1 >conftest.err
5583   rm -f conftest.er1
5584   cat conftest.err >&5
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); } &&
5587          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5588   { (case "(($ac_try" in
5589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590   *) ac_try_echo=$ac_try;;
5591 esac
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593   (eval "$ac_try") 2>&5
5594   ac_status=$?
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); }; } &&
5597          { ac_try='test -s conftest.$ac_objext'
5598   { (case "(($ac_try" in
5599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600   *) ac_try_echo=$ac_try;;
5601 esac
5602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603   (eval "$ac_try") 2>&5
5604   ac_status=$?
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); }; }; then
5607   :
5608 else
5609   echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5611
5612         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5613          CXXFLAGS="-g"
5614          cat >conftest.$ac_ext <<_ACEOF
5615 /* confdefs.h.  */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h.  */
5620
5621 int
5622 main ()
5623 {
5624
5625   ;
5626   return 0;
5627 }
5628 _ACEOF
5629 rm -f conftest.$ac_objext
5630 if { (ac_try="$ac_compile"
5631 case "(($ac_try" in
5632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633   *) ac_try_echo=$ac_try;;
5634 esac
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636   (eval "$ac_compile") 2>conftest.er1
5637   ac_status=$?
5638   grep -v '^ *+' conftest.er1 >conftest.err
5639   rm -f conftest.er1
5640   cat conftest.err >&5
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); } &&
5643          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5644   { (case "(($ac_try" in
5645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646   *) ac_try_echo=$ac_try;;
5647 esac
5648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649   (eval "$ac_try") 2>&5
5650   ac_status=$?
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); }; } &&
5653          { ac_try='test -s conftest.$ac_objext'
5654   { (case "(($ac_try" in
5655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656   *) ac_try_echo=$ac_try;;
5657 esac
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659   (eval "$ac_try") 2>&5
5660   ac_status=$?
5661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662   (exit $ac_status); }; }; then
5663   ac_cv_prog_cxx_g=yes
5664 else
5665   echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5667
5668
5669 fi
5670
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672 fi
5673
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 fi
5676
5677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5679 fi
5680 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5681 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5682 if test "$ac_test_CXXFLAGS" = set; then
5683   CXXFLAGS=$ac_save_CXXFLAGS
5684 elif test $ac_cv_prog_cxx_g = yes; then
5685   if test "$GXX" = yes; then
5686     CXXFLAGS="-g -O2"
5687   else
5688     CXXFLAGS="-g"
5689   fi
5690 else
5691   if test "$GXX" = yes; then
5692     CXXFLAGS="-O2"
5693   else
5694     CXXFLAGS=
5695   fi
5696 fi
5697 ac_ext=cpp
5698 ac_cpp='$CXXCPP $CPPFLAGS'
5699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5702
5703 depcc="$CXX"  am_compiler_list=
5704
5705 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5706 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5707 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5708   echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5711   # We make a subdir and do the tests there.  Otherwise we can end up
5712   # making bogus files that we don't know about and never remove.  For
5713   # instance it was reported that on HP-UX the gcc test will end up
5714   # making a dummy file named `D' -- because `-MD' means `put the output
5715   # in D'.
5716   mkdir conftest.dir
5717   # Copy depcomp to subdir because otherwise we won't find it if we're
5718   # using a relative directory.
5719   cp "$am_depcomp" conftest.dir
5720   cd conftest.dir
5721   # We will build objects and dependencies in a subdirectory because
5722   # it helps to detect inapplicable dependency modes.  For instance
5723   # both Tru64's cc and ICC support -MD to output dependencies as a
5724   # side effect of compilation, but ICC will put the dependencies in
5725   # the current directory while Tru64 will put them in the object
5726   # directory.
5727   mkdir sub
5728
5729   am_cv_CXX_dependencies_compiler_type=none
5730   if test "$am_compiler_list" = ""; then
5731      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5732   fi
5733   for depmode in $am_compiler_list; do
5734     # Setup a source with many dependencies, because some compilers
5735     # like to wrap large dependency lists on column 80 (with \), and
5736     # we should not choose a depcomp mode which is confused by this.
5737     #
5738     # We need to recreate these files for each test, as the compiler may
5739     # overwrite some of them when testing with obscure command lines.
5740     # This happens at least with the AIX C compiler.
5741     : > sub/conftest.c
5742     for i in 1 2 3 4 5 6; do
5743       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5744       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5745       # Solaris 8's {/usr,}/bin/sh.
5746       touch sub/conftst$i.h
5747     done
5748     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5749
5750     case $depmode in
5751     nosideeffect)
5752       # after this tag, mechanisms are not by side-effect, so they'll
5753       # only be used when explicitly requested
5754       if test "x$enable_dependency_tracking" = xyes; then
5755         continue
5756       else
5757         break
5758       fi
5759       ;;
5760     none) break ;;
5761     esac
5762     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5763     # mode.  It turns out that the SunPro C++ compiler does not properly
5764     # handle `-M -o', and we need to detect this.
5765     if depmode=$depmode \
5766        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5767        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5768        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5769          >/dev/null 2>conftest.err &&
5770        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5771        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5772        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5773        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5774       # icc doesn't choke on unknown options, it will just issue warnings
5775       # or remarks (even with -Werror).  So we grep stderr for any message
5776       # that says an option was ignored or not supported.
5777       # When given -MP, icc 7.0 and 7.1 complain thusly:
5778       #   icc: Command line warning: ignoring option '-M'; no argument required
5779       # The diagnosis changed in icc 8.0:
5780       #   icc: Command line remark: option '-MP' not supported
5781       if (grep 'ignoring option' conftest.err ||
5782           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5783         am_cv_CXX_dependencies_compiler_type=$depmode
5784         break
5785       fi
5786     fi
5787   done
5788
5789   cd ..
5790   rm -rf conftest.dir
5791 else
5792   am_cv_CXX_dependencies_compiler_type=none
5793 fi
5794
5795 fi
5796 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5797 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5798 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5799
5800  if
5801   test "x$enable_dependency_tracking" != xno \
5802   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5803   am__fastdepCXX_TRUE=
5804   am__fastdepCXX_FALSE='#'
5805 else
5806   am__fastdepCXX_TRUE='#'
5807   am__fastdepCXX_FALSE=
5808 fi
5809
5810
5811
5812
5813 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5814     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5815     (test "X$CXX" != "Xg++"))) ; then
5816   ac_ext=cpp
5817 ac_cpp='$CXXCPP $CPPFLAGS'
5818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5821 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5822 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5823 if test -z "$CXXCPP"; then
5824   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5825   echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827       # Double quotes because CXXCPP needs to be expanded
5828     for CXXCPP in "$CXX -E" "/lib/cpp"
5829     do
5830       ac_preproc_ok=false
5831 for ac_cxx_preproc_warn_flag in '' yes
5832 do
5833   # Use a header file that comes with gcc, so configuring glibc
5834   # with a fresh cross-compiler works.
5835   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5836   # <limits.h> exists even on freestanding compilers.
5837   # On the NeXT, cc -E runs the code through the compiler's parser,
5838   # not just through cpp. "Syntax error" is here to catch this case.
5839   cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h.  */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h.  */
5845 #ifdef __STDC__
5846 # include <limits.h>
5847 #else
5848 # include <assert.h>
5849 #endif
5850                      Syntax error
5851 _ACEOF
5852 if { (ac_try="$ac_cpp conftest.$ac_ext"
5853 case "(($ac_try" in
5854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855   *) ac_try_echo=$ac_try;;
5856 esac
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5859   ac_status=$?
5860   grep -v '^ *+' conftest.er1 >conftest.err
5861   rm -f conftest.er1
5862   cat conftest.err >&5
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); } >/dev/null; then
5865   if test -s conftest.err; then
5866     ac_cpp_err=$ac_cxx_preproc_warn_flag
5867     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5868   else
5869     ac_cpp_err=
5870   fi
5871 else
5872   ac_cpp_err=yes
5873 fi
5874 if test -z "$ac_cpp_err"; then
5875   :
5876 else
5877   echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5879
5880   # Broken: fails on valid input.
5881 continue
5882 fi
5883
5884 rm -f conftest.err conftest.$ac_ext
5885
5886   # OK, works on sane cases.  Now check whether nonexistent headers
5887   # can be detected and how.
5888   cat >conftest.$ac_ext <<_ACEOF
5889 /* confdefs.h.  */
5890 _ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h.  */
5894 #include <ac_nonexistent.h>
5895 _ACEOF
5896 if { (ac_try="$ac_cpp conftest.$ac_ext"
5897 case "(($ac_try" in
5898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899   *) ac_try_echo=$ac_try;;
5900 esac
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5903   ac_status=$?
5904   grep -v '^ *+' conftest.er1 >conftest.err
5905   rm -f conftest.er1
5906   cat conftest.err >&5
5907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); } >/dev/null; then
5909   if test -s conftest.err; then
5910     ac_cpp_err=$ac_cxx_preproc_warn_flag
5911     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5912   else
5913     ac_cpp_err=
5914   fi
5915 else
5916   ac_cpp_err=yes
5917 fi
5918 if test -z "$ac_cpp_err"; then
5919   # Broken: success on invalid input.
5920 continue
5921 else
5922   echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5924
5925   # Passes both tests.
5926 ac_preproc_ok=:
5927 break
5928 fi
5929
5930 rm -f conftest.err conftest.$ac_ext
5931
5932 done
5933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5934 rm -f conftest.err conftest.$ac_ext
5935 if $ac_preproc_ok; then
5936   break
5937 fi
5938
5939     done
5940     ac_cv_prog_CXXCPP=$CXXCPP
5941
5942 fi
5943   CXXCPP=$ac_cv_prog_CXXCPP
5944 else
5945   ac_cv_prog_CXXCPP=$CXXCPP
5946 fi
5947 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5948 echo "${ECHO_T}$CXXCPP" >&6; }
5949 ac_preproc_ok=false
5950 for ac_cxx_preproc_warn_flag in '' yes
5951 do
5952   # Use a header file that comes with gcc, so configuring glibc
5953   # with a fresh cross-compiler works.
5954   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5955   # <limits.h> exists even on freestanding compilers.
5956   # On the NeXT, cc -E runs the code through the compiler's parser,
5957   # not just through cpp. "Syntax error" is here to catch this case.
5958   cat >conftest.$ac_ext <<_ACEOF
5959 /* confdefs.h.  */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h.  */
5964 #ifdef __STDC__
5965 # include <limits.h>
5966 #else
5967 # include <assert.h>
5968 #endif
5969                      Syntax error
5970 _ACEOF
5971 if { (ac_try="$ac_cpp conftest.$ac_ext"
5972 case "(($ac_try" in
5973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974   *) ac_try_echo=$ac_try;;
5975 esac
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5978   ac_status=$?
5979   grep -v '^ *+' conftest.er1 >conftest.err
5980   rm -f conftest.er1
5981   cat conftest.err >&5
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); } >/dev/null; then
5984   if test -s conftest.err; then
5985     ac_cpp_err=$ac_cxx_preproc_warn_flag
5986     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5987   else
5988     ac_cpp_err=
5989   fi
5990 else
5991   ac_cpp_err=yes
5992 fi
5993 if test -z "$ac_cpp_err"; then
5994   :
5995 else
5996   echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5998
5999   # Broken: fails on valid input.
6000 continue
6001 fi
6002
6003 rm -f conftest.err conftest.$ac_ext
6004
6005   # OK, works on sane cases.  Now check whether nonexistent headers
6006   # can be detected and how.
6007   cat >conftest.$ac_ext <<_ACEOF
6008 /* confdefs.h.  */
6009 _ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h.  */
6013 #include <ac_nonexistent.h>
6014 _ACEOF
6015 if { (ac_try="$ac_cpp conftest.$ac_ext"
6016 case "(($ac_try" in
6017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018   *) ac_try_echo=$ac_try;;
6019 esac
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6022   ac_status=$?
6023   grep -v '^ *+' conftest.er1 >conftest.err
6024   rm -f conftest.er1
6025   cat conftest.err >&5
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); } >/dev/null; then
6028   if test -s conftest.err; then
6029     ac_cpp_err=$ac_cxx_preproc_warn_flag
6030     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6031   else
6032     ac_cpp_err=
6033   fi
6034 else
6035   ac_cpp_err=yes
6036 fi
6037 if test -z "$ac_cpp_err"; then
6038   # Broken: success on invalid input.
6039 continue
6040 else
6041   echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6043
6044   # Passes both tests.
6045 ac_preproc_ok=:
6046 break
6047 fi
6048
6049 rm -f conftest.err conftest.$ac_ext
6050
6051 done
6052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6053 rm -f conftest.err conftest.$ac_ext
6054 if $ac_preproc_ok; then
6055   :
6056 else
6057   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6058 See \`config.log' for more details." >&5
6059 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6060 See \`config.log' for more details." >&2;}
6061    { (exit 1); exit 1; }; }
6062 fi
6063
6064 ac_ext=cpp
6065 ac_cpp='$CXXCPP $CPPFLAGS'
6066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6069
6070 fi
6071
6072
6073 ac_ext=f
6074 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6075 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6077 if test -n "$ac_tool_prefix"; then
6078   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6079   do
6080     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6084 if test "${ac_cv_prog_F77+set}" = set; then
6085   echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087   if test -n "$F77"; then
6088   ac_cv_prog_F77="$F77" # Let the user override the test.
6089 else
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 for as_dir in $PATH
6092 do
6093   IFS=$as_save_IFS
6094   test -z "$as_dir" && as_dir=.
6095   for ac_exec_ext in '' $ac_executable_extensions; do
6096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6097     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099     break 2
6100   fi
6101 done
6102 done
6103 IFS=$as_save_IFS
6104
6105 fi
6106 fi
6107 F77=$ac_cv_prog_F77
6108 if test -n "$F77"; then
6109   { echo "$as_me:$LINENO: result: $F77" >&5
6110 echo "${ECHO_T}$F77" >&6; }
6111 else
6112   { echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6; }
6114 fi
6115
6116
6117     test -n "$F77" && break
6118   done
6119 fi
6120 if test -z "$F77"; then
6121   ac_ct_F77=$F77
6122   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6123 do
6124   # Extract the first word of "$ac_prog", so it can be a program name with args.
6125 set dummy $ac_prog; ac_word=$2
6126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6128 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6129   echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131   if test -n "$ac_ct_F77"; then
6132   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137   IFS=$as_save_IFS
6138   test -z "$as_dir" && as_dir=.
6139   for ac_exec_ext in '' $ac_executable_extensions; do
6140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6141     ac_cv_prog_ac_ct_F77="$ac_prog"
6142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143     break 2
6144   fi
6145 done
6146 done
6147 IFS=$as_save_IFS
6148
6149 fi
6150 fi
6151 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6152 if test -n "$ac_ct_F77"; then
6153   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6154 echo "${ECHO_T}$ac_ct_F77" >&6; }
6155 else
6156   { echo "$as_me:$LINENO: result: no" >&5
6157 echo "${ECHO_T}no" >&6; }
6158 fi
6159
6160
6161   test -n "$ac_ct_F77" && break
6162 done
6163
6164   if test "x$ac_ct_F77" = x; then
6165     F77=""
6166   else
6167     case $cross_compiling:$ac_tool_warned in
6168 yes:)
6169 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6170 whose name does not start with the host triplet.  If you think this
6171 configuration is useful to you, please write to autoconf@gnu.org." >&5
6172 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6173 whose name does not start with the host triplet.  If you think this
6174 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6175 ac_tool_warned=yes ;;
6176 esac
6177     F77=$ac_ct_F77
6178   fi
6179 fi
6180
6181
6182 # Provide some information about the compiler.
6183 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6184 ac_compiler=`set X $ac_compile; echo $2`
6185 { (ac_try="$ac_compiler --version >&5"
6186 case "(($ac_try" in
6187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188   *) ac_try_echo=$ac_try;;
6189 esac
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191   (eval "$ac_compiler --version >&5") 2>&5
6192   ac_status=$?
6193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194   (exit $ac_status); }
6195 { (ac_try="$ac_compiler -v >&5"
6196 case "(($ac_try" in
6197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198   *) ac_try_echo=$ac_try;;
6199 esac
6200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201   (eval "$ac_compiler -v >&5") 2>&5
6202   ac_status=$?
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); }
6205 { (ac_try="$ac_compiler -V >&5"
6206 case "(($ac_try" in
6207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208   *) ac_try_echo=$ac_try;;
6209 esac
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211   (eval "$ac_compiler -V >&5") 2>&5
6212   ac_status=$?
6213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214   (exit $ac_status); }
6215 rm -f a.out
6216
6217 # If we don't use `.F' as extension, the preprocessor is not run on the
6218 # input file.  (Note that this only needs to work for GNU compilers.)
6219 ac_save_ext=$ac_ext
6220 ac_ext=F
6221 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6222 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6223 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6224   echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226   cat >conftest.$ac_ext <<_ACEOF
6227       program main
6228 #ifndef __GNUC__
6229        choke me
6230 #endif
6231
6232       end
6233 _ACEOF
6234 rm -f conftest.$ac_objext
6235 if { (ac_try="$ac_compile"
6236 case "(($ac_try" in
6237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238   *) ac_try_echo=$ac_try;;
6239 esac
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241   (eval "$ac_compile") 2>conftest.er1
6242   ac_status=$?
6243   grep -v '^ *+' conftest.er1 >conftest.err
6244   rm -f conftest.er1
6245   cat conftest.err >&5
6246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); } &&
6248          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6249   { (case "(($ac_try" in
6250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251   *) ac_try_echo=$ac_try;;
6252 esac
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254   (eval "$ac_try") 2>&5
6255   ac_status=$?
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); }; } &&
6258          { ac_try='test -s conftest.$ac_objext'
6259   { (case "(($ac_try" in
6260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261   *) ac_try_echo=$ac_try;;
6262 esac
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264   (eval "$ac_try") 2>&5
6265   ac_status=$?
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); }; }; then
6268   ac_compiler_gnu=yes
6269 else
6270   echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6272
6273         ac_compiler_gnu=no
6274 fi
6275
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6278
6279 fi
6280 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6281 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6282 ac_ext=$ac_save_ext
6283 ac_test_FFLAGS=${FFLAGS+set}
6284 ac_save_FFLAGS=$FFLAGS
6285 FFLAGS=
6286 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6287 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6288 if test "${ac_cv_prog_f77_g+set}" = set; then
6289   echo $ECHO_N "(cached) $ECHO_C" >&6
6290 else
6291   FFLAGS=-g
6292 cat >conftest.$ac_ext <<_ACEOF
6293       program main
6294
6295       end
6296 _ACEOF
6297 rm -f conftest.$ac_objext
6298 if { (ac_try="$ac_compile"
6299 case "(($ac_try" in
6300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301   *) ac_try_echo=$ac_try;;
6302 esac
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304   (eval "$ac_compile") 2>conftest.er1
6305   ac_status=$?
6306   grep -v '^ *+' conftest.er1 >conftest.err
6307   rm -f conftest.er1
6308   cat conftest.err >&5
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); } &&
6311          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6312   { (case "(($ac_try" in
6313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314   *) ac_try_echo=$ac_try;;
6315 esac
6316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317   (eval "$ac_try") 2>&5
6318   ac_status=$?
6319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); }; } &&
6321          { ac_try='test -s conftest.$ac_objext'
6322   { (case "(($ac_try" in
6323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324   *) ac_try_echo=$ac_try;;
6325 esac
6326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327   (eval "$ac_try") 2>&5
6328   ac_status=$?
6329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330   (exit $ac_status); }; }; then
6331   ac_cv_prog_f77_g=yes
6332 else
6333   echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6335
6336         ac_cv_prog_f77_g=no
6337 fi
6338
6339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340
6341 fi
6342 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6343 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6344 if test "$ac_test_FFLAGS" = set; then
6345   FFLAGS=$ac_save_FFLAGS
6346 elif test $ac_cv_prog_f77_g = yes; then
6347   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6348     FFLAGS="-g -O2"
6349   else
6350     FFLAGS="-g"
6351   fi
6352 else
6353   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6354     FFLAGS="-O2"
6355   else
6356     FFLAGS=
6357   fi
6358 fi
6359
6360 G77=`test $ac_compiler_gnu = yes && echo yes`
6361 ac_ext=c
6362 ac_cpp='$CPP $CPPFLAGS'
6363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6366
6367
6368
6369 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6370
6371 # find the maximum length of command line arguments
6372 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6373 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6374 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6375   echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377     i=0
6378   teststring="ABCD"
6379
6380   case $build_os in
6381   msdosdjgpp*)
6382     # On DJGPP, this test can blow up pretty badly due to problems in libc
6383     # (any single argument exceeding 2000 bytes causes a buffer overrun
6384     # during glob expansion).  Even if it were fixed, the result of this
6385     # check would be larger than it should be.
6386     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6387     ;;
6388
6389   gnu*)
6390     # Under GNU Hurd, this test is not required because there is
6391     # no limit to the length of command line arguments.
6392     # Libtool will interpret -1 as no limit whatsoever
6393     lt_cv_sys_max_cmd_len=-1;
6394     ;;
6395
6396   cygwin* | mingw*)
6397     # On Win9x/ME, this test blows up -- it succeeds, but takes
6398     # about 5 minutes as the teststring grows exponentially.
6399     # Worse, since 9x/ME are not pre-emptively multitasking,
6400     # you end up with a "frozen" computer, even though with patience
6401     # the test eventually succeeds (with a max line length of 256k).
6402     # Instead, let's just punt: use the minimum linelength reported by
6403     # all of the supported platforms: 8192 (on NT/2K/XP).
6404     lt_cv_sys_max_cmd_len=8192;
6405     ;;
6406
6407   amigaos*)
6408     # On AmigaOS with pdksh, this test takes hours, literally.
6409     # So we just punt and use a minimum line length of 8192.
6410     lt_cv_sys_max_cmd_len=8192;
6411     ;;
6412
6413   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6414     # This has been around since 386BSD, at least.  Likely further.
6415     if test -x /sbin/sysctl; then
6416       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6417     elif test -x /usr/sbin/sysctl; then
6418       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6419     else
6420       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6421     fi
6422     # And add a safety zone
6423     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6424     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6425     ;;
6426
6427   interix*)
6428     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6429     lt_cv_sys_max_cmd_len=196608
6430     ;;
6431
6432   osf*)
6433     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6434     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6435     # nice to cause kernel panics so lets avoid the loop below.
6436     # First set a reasonable default.
6437     lt_cv_sys_max_cmd_len=16384
6438     #
6439     if test -x /sbin/sysconfig; then
6440       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6441         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6442       esac
6443     fi
6444     ;;
6445   sco3.2v5*)
6446     lt_cv_sys_max_cmd_len=102400
6447     ;;
6448   sysv5* | sco5v6* | sysv4.2uw2*)
6449     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6450     if test -n "$kargmax"; then
6451       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6452     else
6453       lt_cv_sys_max_cmd_len=32768
6454     fi
6455     ;;
6456   *)
6457     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6458     if test -n "$lt_cv_sys_max_cmd_len"; then
6459       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6460       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6461     else
6462       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6463       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6464                = "XX$teststring") >/dev/null 2>&1 &&
6465               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6466               lt_cv_sys_max_cmd_len=$new_result &&
6467               test $i != 17 # 1/2 MB should be enough
6468       do
6469         i=`expr $i + 1`
6470         teststring=$teststring$teststring
6471       done
6472       teststring=
6473       # Add a significant safety factor because C++ compilers can tack on massive
6474       # amounts of additional arguments before passing them to the linker.
6475       # It appears as though 1/2 is a usable value.
6476       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6477     fi
6478     ;;
6479   esac
6480
6481 fi
6482
6483 if test -n $lt_cv_sys_max_cmd_len ; then
6484   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6485 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6486 else
6487   { echo "$as_me:$LINENO: result: none" >&5
6488 echo "${ECHO_T}none" >&6; }
6489 fi
6490
6491
6492
6493
6494
6495 # Check for command to grab the raw symbol name followed by C symbol from nm.
6496 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6497 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6498 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6499   echo $ECHO_N "(cached) $ECHO_C" >&6
6500 else
6501
6502 # These are sane defaults that work on at least a few old systems.
6503 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6504
6505 # Character class describing NM global symbol codes.
6506 symcode='[BCDEGRST]'
6507
6508 # Regexp to match symbols that can be accessed directly from C.
6509 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6510
6511 # Transform an extracted symbol line into a proper C declaration
6512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6513
6514 # Transform an extracted symbol line into symbol name and symbol address
6515 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'"
6516
6517 # Define system-specific variables.
6518 case $host_os in
6519 aix*)
6520   symcode='[BCDT]'
6521   ;;
6522 cygwin* | mingw* | pw32*)
6523   symcode='[ABCDGISTW]'
6524   ;;
6525 hpux*) # Its linker distinguishes data from code symbols
6526   if test "$host_cpu" = ia64; then
6527     symcode='[ABCDEGRST]'
6528   fi
6529   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6530   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'"
6531   ;;
6532 linux* | k*bsd*-gnu)
6533   if test "$host_cpu" = ia64; then
6534     symcode='[ABCDGIRSTW]'
6535     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6536     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'"
6537   fi
6538   ;;
6539 irix* | nonstopux*)
6540   symcode='[BCDEGRST]'
6541   ;;
6542 osf*)
6543   symcode='[BCDEGQRST]'
6544   ;;
6545 solaris*)
6546   symcode='[BDRT]'
6547   ;;
6548 sco3.2v5*)
6549   symcode='[DT]'
6550   ;;
6551 sysv4.2uw2*)
6552   symcode='[DT]'
6553   ;;
6554 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6555   symcode='[ABDT]'
6556   ;;
6557 sysv4)
6558   symcode='[DFNSTU]'
6559   ;;
6560 esac
6561
6562 # Handle CRLF in mingw tool chain
6563 opt_cr=
6564 case $build_os in
6565 mingw*)
6566   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6567   ;;
6568 esac
6569
6570 # If we're using GNU nm, then use its standard symbol codes.
6571 case `$NM -V 2>&1` in
6572 *GNU* | *'with BFD'*)
6573   symcode='[ABCDGIRSTW]' ;;
6574 esac
6575
6576 # Try without a prefix undercore, then with it.
6577 for ac_symprfx in "" "_"; do
6578
6579   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6580   symxfrm="\\1 $ac_symprfx\\2 \\2"
6581
6582   # Write the raw and C identifiers.
6583   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6584
6585   # Check to see that the pipe works correctly.
6586   pipe_works=no
6587
6588   rm -f conftest*
6589   cat > conftest.$ac_ext <<EOF
6590 #ifdef __cplusplus
6591 extern "C" {
6592 #endif
6593 char nm_test_var;
6594 void nm_test_func(){}
6595 #ifdef __cplusplus
6596 }
6597 #endif
6598 int main(){nm_test_var='a';nm_test_func();return(0);}
6599 EOF
6600
6601   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6602   (eval $ac_compile) 2>&5
6603   ac_status=$?
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); }; then
6606     # Now try to grab the symbols.
6607     nlist=conftest.nm
6608     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6609   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6610   ac_status=$?
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); } && test -s "$nlist"; then
6613       # Try sorting and uniquifying the output.
6614       if sort "$nlist" | uniq > "$nlist"T; then
6615         mv -f "$nlist"T "$nlist"
6616       else
6617         rm -f "$nlist"T
6618       fi
6619
6620       # Make sure that we snagged all the symbols we need.
6621       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6622         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6623           cat <<EOF > conftest.$ac_ext
6624 #ifdef __cplusplus
6625 extern "C" {
6626 #endif
6627
6628 EOF
6629           # Now generate the symbol file.
6630           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6631
6632           cat <<EOF >> conftest.$ac_ext
6633 #if defined (__STDC__) && __STDC__
6634 # define lt_ptr_t void *
6635 #else
6636 # define lt_ptr_t char *
6637 # define const
6638 #endif
6639
6640 /* The mapping between symbol names and symbols. */
6641 const struct {
6642   const char *name;
6643   lt_ptr_t address;
6644 }
6645 lt_preloaded_symbols[] =
6646 {
6647 EOF
6648           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6649           cat <<\EOF >> conftest.$ac_ext
6650   {0, (lt_ptr_t) 0}
6651 };
6652
6653 #ifdef __cplusplus
6654 }
6655 #endif
6656 EOF
6657           # Now try linking the two files.
6658           mv conftest.$ac_objext conftstm.$ac_objext
6659           lt_save_LIBS="$LIBS"
6660           lt_save_CFLAGS="$CFLAGS"
6661           LIBS="conftstm.$ac_objext"
6662           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6663           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6664   (eval $ac_link) 2>&5
6665   ac_status=$?
6666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6668             pipe_works=yes
6669           fi
6670           LIBS="$lt_save_LIBS"
6671           CFLAGS="$lt_save_CFLAGS"
6672         else
6673           echo "cannot find nm_test_func in $nlist" >&5
6674         fi
6675       else
6676         echo "cannot find nm_test_var in $nlist" >&5
6677       fi
6678     else
6679       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6680     fi
6681   else
6682     echo "$progname: failed program was:" >&5
6683     cat conftest.$ac_ext >&5
6684   fi
6685   rm -f conftest* conftst*
6686
6687   # Do not use the global_symbol_pipe unless it works.
6688   if test "$pipe_works" = yes; then
6689     break
6690   else
6691     lt_cv_sys_global_symbol_pipe=
6692   fi
6693 done
6694
6695 fi
6696
6697 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6698   lt_cv_sys_global_symbol_to_cdecl=
6699 fi
6700 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6701   { echo "$as_me:$LINENO: result: failed" >&5
6702 echo "${ECHO_T}failed" >&6; }
6703 else
6704   { echo "$as_me:$LINENO: result: ok" >&5
6705 echo "${ECHO_T}ok" >&6; }
6706 fi
6707
6708 { echo "$as_me:$LINENO: checking for objdir" >&5
6709 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6710 if test "${lt_cv_objdir+set}" = set; then
6711   echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713   rm -f .libs 2>/dev/null
6714 mkdir .libs 2>/dev/null
6715 if test -d .libs; then
6716   lt_cv_objdir=.libs
6717 else
6718   # MS-DOS does not allow filenames that begin with a dot.
6719   lt_cv_objdir=_libs
6720 fi
6721 rmdir .libs 2>/dev/null
6722 fi
6723 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6724 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6725 objdir=$lt_cv_objdir
6726
6727
6728
6729
6730
6731 case $host_os in
6732 aix3*)
6733   # AIX sometimes has problems with the GCC collect2 program.  For some
6734   # reason, if we set the COLLECT_NAMES environment variable, the problems
6735   # vanish in a puff of smoke.
6736   if test "X${COLLECT_NAMES+set}" != Xset; then
6737     COLLECT_NAMES=
6738     export COLLECT_NAMES
6739   fi
6740   ;;
6741 esac
6742
6743 # Sed substitution that helps us do robust quoting.  It backslashifies
6744 # metacharacters that are still active within double-quoted strings.
6745 Xsed='sed -e 1s/^X//'
6746 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6747
6748 # Same as above, but do not quote variable references.
6749 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6750
6751 # Sed substitution to delay expansion of an escaped shell variable in a
6752 # double_quote_subst'ed string.
6753 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6754
6755 # Sed substitution to avoid accidental globbing in evaled expressions
6756 no_glob_subst='s/\*/\\\*/g'
6757
6758 # Constants:
6759 rm="rm -f"
6760
6761 # Global variables:
6762 default_ofile=libtool
6763 can_build_shared=yes
6764
6765 # All known linkers require a `.a' archive for static linking (except MSVC,
6766 # which needs '.lib').
6767 libext=a
6768 ltmain="$ac_aux_dir/ltmain.sh"
6769 ofile="$default_ofile"
6770 with_gnu_ld="$lt_cv_prog_gnu_ld"
6771
6772 if test -n "$ac_tool_prefix"; then
6773   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6774 set dummy ${ac_tool_prefix}ar; ac_word=$2
6775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6777 if test "${ac_cv_prog_AR+set}" = set; then
6778   echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780   if test -n "$AR"; then
6781   ac_cv_prog_AR="$AR" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   test -z "$as_dir" && as_dir=.
6788   for ac_exec_ext in '' $ac_executable_extensions; do
6789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6790     ac_cv_prog_AR="${ac_tool_prefix}ar"
6791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792     break 2
6793   fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798 fi
6799 fi
6800 AR=$ac_cv_prog_AR
6801 if test -n "$AR"; then
6802   { echo "$as_me:$LINENO: result: $AR" >&5
6803 echo "${ECHO_T}$AR" >&6; }
6804 else
6805   { echo "$as_me:$LINENO: result: no" >&5
6806 echo "${ECHO_T}no" >&6; }
6807 fi
6808
6809
6810 fi
6811 if test -z "$ac_cv_prog_AR"; then
6812   ac_ct_AR=$AR
6813   # Extract the first word of "ar", so it can be a program name with args.
6814 set dummy ar; ac_word=$2
6815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6817 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6818   echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820   if test -n "$ac_ct_AR"; then
6821   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826   IFS=$as_save_IFS
6827   test -z "$as_dir" && as_dir=.
6828   for ac_exec_ext in '' $ac_executable_extensions; do
6829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6830     ac_cv_prog_ac_ct_AR="ar"
6831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832     break 2
6833   fi
6834 done
6835 done
6836 IFS=$as_save_IFS
6837
6838 fi
6839 fi
6840 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6841 if test -n "$ac_ct_AR"; then
6842   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6843 echo "${ECHO_T}$ac_ct_AR" >&6; }
6844 else
6845   { echo "$as_me:$LINENO: result: no" >&5
6846 echo "${ECHO_T}no" >&6; }
6847 fi
6848
6849   if test "x$ac_ct_AR" = x; then
6850     AR="false"
6851   else
6852     case $cross_compiling:$ac_tool_warned in
6853 yes:)
6854 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6855 whose name does not start with the host triplet.  If you think this
6856 configuration is useful to you, please write to autoconf@gnu.org." >&5
6857 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6858 whose name does not start with the host triplet.  If you think this
6859 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6860 ac_tool_warned=yes ;;
6861 esac
6862     AR=$ac_ct_AR
6863   fi
6864 else
6865   AR="$ac_cv_prog_AR"
6866 fi
6867
6868 if test -n "$ac_tool_prefix"; then
6869   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6870 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6873 if test "${ac_cv_prog_RANLIB+set}" = set; then
6874   echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876   if test -n "$RANLIB"; then
6877   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6878 else
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6881 do
6882   IFS=$as_save_IFS
6883   test -z "$as_dir" && as_dir=.
6884   for ac_exec_ext in '' $ac_executable_extensions; do
6885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6886     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6888     break 2
6889   fi
6890 done
6891 done
6892 IFS=$as_save_IFS
6893
6894 fi
6895 fi
6896 RANLIB=$ac_cv_prog_RANLIB
6897 if test -n "$RANLIB"; then
6898   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6899 echo "${ECHO_T}$RANLIB" >&6; }
6900 else
6901   { echo "$as_me:$LINENO: result: no" >&5
6902 echo "${ECHO_T}no" >&6; }
6903 fi
6904
6905
6906 fi
6907 if test -z "$ac_cv_prog_RANLIB"; then
6908   ac_ct_RANLIB=$RANLIB
6909   # Extract the first word of "ranlib", so it can be a program name with args.
6910 set dummy ranlib; ac_word=$2
6911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6914   echo $ECHO_N "(cached) $ECHO_C" >&6
6915 else
6916   if test -n "$ac_ct_RANLIB"; then
6917   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6921 do
6922   IFS=$as_save_IFS
6923   test -z "$as_dir" && as_dir=.
6924   for ac_exec_ext in '' $ac_executable_extensions; do
6925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6926     ac_cv_prog_ac_ct_RANLIB="ranlib"
6927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928     break 2
6929   fi
6930 done
6931 done
6932 IFS=$as_save_IFS
6933
6934 fi
6935 fi
6936 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6937 if test -n "$ac_ct_RANLIB"; then
6938   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6939 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6940 else
6941   { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6943 fi
6944
6945   if test "x$ac_ct_RANLIB" = x; then
6946     RANLIB=":"
6947   else
6948     case $cross_compiling:$ac_tool_warned in
6949 yes:)
6950 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6951 whose name does not start with the host triplet.  If you think this
6952 configuration is useful to you, please write to autoconf@gnu.org." >&5
6953 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6954 whose name does not start with the host triplet.  If you think this
6955 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6956 ac_tool_warned=yes ;;
6957 esac
6958     RANLIB=$ac_ct_RANLIB
6959   fi
6960 else
6961   RANLIB="$ac_cv_prog_RANLIB"
6962 fi
6963
6964 if test -n "$ac_tool_prefix"; then
6965   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6966 set dummy ${ac_tool_prefix}strip; ac_word=$2
6967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6969 if test "${ac_cv_prog_STRIP+set}" = set; then
6970   echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972   if test -n "$STRIP"; then
6973   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6974 else
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978   IFS=$as_save_IFS
6979   test -z "$as_dir" && as_dir=.
6980   for ac_exec_ext in '' $ac_executable_extensions; do
6981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6982     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984     break 2
6985   fi
6986 done
6987 done
6988 IFS=$as_save_IFS
6989
6990 fi
6991 fi
6992 STRIP=$ac_cv_prog_STRIP
6993 if test -n "$STRIP"; then
6994   { echo "$as_me:$LINENO: result: $STRIP" >&5
6995 echo "${ECHO_T}$STRIP" >&6; }
6996 else
6997   { echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6; }
6999 fi
7000
7001
7002 fi
7003 if test -z "$ac_cv_prog_STRIP"; then
7004   ac_ct_STRIP=$STRIP
7005   # Extract the first word of "strip", so it can be a program name with args.
7006 set dummy strip; ac_word=$2
7007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7010   echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012   if test -n "$ac_ct_STRIP"; then
7013   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018   IFS=$as_save_IFS
7019   test -z "$as_dir" && as_dir=.
7020   for ac_exec_ext in '' $ac_executable_extensions; do
7021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7022     ac_cv_prog_ac_ct_STRIP="strip"
7023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7024     break 2
7025   fi
7026 done
7027 done
7028 IFS=$as_save_IFS
7029
7030 fi
7031 fi
7032 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7033 if test -n "$ac_ct_STRIP"; then
7034   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7035 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7036 else
7037   { echo "$as_me:$LINENO: result: no" >&5
7038 echo "${ECHO_T}no" >&6; }
7039 fi
7040
7041   if test "x$ac_ct_STRIP" = x; then
7042     STRIP=":"
7043   else
7044     case $cross_compiling:$ac_tool_warned in
7045 yes:)
7046 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7047 whose name does not start with the host triplet.  If you think this
7048 configuration is useful to you, please write to autoconf@gnu.org." >&5
7049 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7050 whose name does not start with the host triplet.  If you think this
7051 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7052 ac_tool_warned=yes ;;
7053 esac
7054     STRIP=$ac_ct_STRIP
7055   fi
7056 else
7057   STRIP="$ac_cv_prog_STRIP"
7058 fi
7059
7060
7061 old_CC="$CC"
7062 old_CFLAGS="$CFLAGS"
7063
7064 # Set sane defaults for various variables
7065 test -z "$AR" && AR=ar
7066 test -z "$AR_FLAGS" && AR_FLAGS=cru
7067 test -z "$AS" && AS=as
7068 test -z "$CC" && CC=cc
7069 test -z "$LTCC" && LTCC=$CC
7070 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7071 test -z "$DLLTOOL" && DLLTOOL=dlltool
7072 test -z "$LD" && LD=ld
7073 test -z "$LN_S" && LN_S="ln -s"
7074 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7075 test -z "$NM" && NM=nm
7076 test -z "$SED" && SED=sed
7077 test -z "$OBJDUMP" && OBJDUMP=objdump
7078 test -z "$RANLIB" && RANLIB=:
7079 test -z "$STRIP" && STRIP=:
7080 test -z "$ac_objext" && ac_objext=o
7081
7082 # Determine commands to create old-style static archives.
7083 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7084 old_postinstall_cmds='chmod 644 $oldlib'
7085 old_postuninstall_cmds=
7086
7087 if test -n "$RANLIB"; then
7088   case $host_os in
7089   openbsd*)
7090     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7091     ;;
7092   *)
7093     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7094     ;;
7095   esac
7096   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7097 fi
7098
7099 for cc_temp in $compiler""; do
7100   case $cc_temp in
7101     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7102     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7103     \-*) ;;
7104     *) break;;
7105   esac
7106 done
7107 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7108
7109
7110 # Only perform the check for file, if the check method requires it
7111 case $deplibs_check_method in
7112 file_magic*)
7113   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7114     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7115 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7116 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7117   echo $ECHO_N "(cached) $ECHO_C" >&6
7118 else
7119   case $MAGIC_CMD in
7120 [\\/*] |  ?:[\\/]*)
7121   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7122   ;;
7123 *)
7124   lt_save_MAGIC_CMD="$MAGIC_CMD"
7125   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7126   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7127   for ac_dir in $ac_dummy; do
7128     IFS="$lt_save_ifs"
7129     test -z "$ac_dir" && ac_dir=.
7130     if test -f $ac_dir/${ac_tool_prefix}file; then
7131       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7132       if test -n "$file_magic_test_file"; then
7133         case $deplibs_check_method in
7134         "file_magic "*)
7135           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7136           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7137           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7138             $EGREP "$file_magic_regex" > /dev/null; then
7139             :
7140           else
7141             cat <<EOF 1>&2
7142
7143 *** Warning: the command libtool uses to detect shared libraries,
7144 *** $file_magic_cmd, produces output that libtool cannot recognize.
7145 *** The result is that libtool may fail to recognize shared libraries
7146 *** as such.  This will affect the creation of libtool libraries that
7147 *** depend on shared libraries, but programs linked with such libtool
7148 *** libraries will work regardless of this problem.  Nevertheless, you
7149 *** may want to report the problem to your system manager and/or to
7150 *** bug-libtool@gnu.org
7151
7152 EOF
7153           fi ;;
7154         esac
7155       fi
7156       break
7157     fi
7158   done
7159   IFS="$lt_save_ifs"
7160   MAGIC_CMD="$lt_save_MAGIC_CMD"
7161   ;;
7162 esac
7163 fi
7164
7165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7166 if test -n "$MAGIC_CMD"; then
7167   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7168 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7169 else
7170   { echo "$as_me:$LINENO: result: no" >&5
7171 echo "${ECHO_T}no" >&6; }
7172 fi
7173
7174 if test -z "$lt_cv_path_MAGIC_CMD"; then
7175   if test -n "$ac_tool_prefix"; then
7176     { echo "$as_me:$LINENO: checking for file" >&5
7177 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7178 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7179   echo $ECHO_N "(cached) $ECHO_C" >&6
7180 else
7181   case $MAGIC_CMD in
7182 [\\/*] |  ?:[\\/]*)
7183   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7184   ;;
7185 *)
7186   lt_save_MAGIC_CMD="$MAGIC_CMD"
7187   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7188   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7189   for ac_dir in $ac_dummy; do
7190     IFS="$lt_save_ifs"
7191     test -z "$ac_dir" && ac_dir=.
7192     if test -f $ac_dir/file; then
7193       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7194       if test -n "$file_magic_test_file"; then
7195         case $deplibs_check_method in
7196         "file_magic "*)
7197           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7198           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7199           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7200             $EGREP "$file_magic_regex" > /dev/null; then
7201             :
7202           else
7203             cat <<EOF 1>&2
7204
7205 *** Warning: the command libtool uses to detect shared libraries,
7206 *** $file_magic_cmd, produces output that libtool cannot recognize.
7207 *** The result is that libtool may fail to recognize shared libraries
7208 *** as such.  This will affect the creation of libtool libraries that
7209 *** depend on shared libraries, but programs linked with such libtool
7210 *** libraries will work regardless of this problem.  Nevertheless, you
7211 *** may want to report the problem to your system manager and/or to
7212 *** bug-libtool@gnu.org
7213
7214 EOF
7215           fi ;;
7216         esac
7217       fi
7218       break
7219     fi
7220   done
7221   IFS="$lt_save_ifs"
7222   MAGIC_CMD="$lt_save_MAGIC_CMD"
7223   ;;
7224 esac
7225 fi
7226
7227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7228 if test -n "$MAGIC_CMD"; then
7229   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7230 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7231 else
7232   { echo "$as_me:$LINENO: result: no" >&5
7233 echo "${ECHO_T}no" >&6; }
7234 fi
7235
7236   else
7237     MAGIC_CMD=:
7238   fi
7239 fi
7240
7241   fi
7242   ;;
7243 esac
7244
7245 enable_dlopen=no
7246 enable_win32_dll=no
7247
7248 # Check whether --enable-libtool-lock was given.
7249 if test "${enable_libtool_lock+set}" = set; then
7250   enableval=$enable_libtool_lock;
7251 fi
7252
7253 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7254
7255
7256 # Check whether --with-pic was given.
7257 if test "${with_pic+set}" = set; then
7258   withval=$with_pic; pic_mode="$withval"
7259 else
7260   pic_mode=default
7261 fi
7262
7263 test -z "$pic_mode" && pic_mode=default
7264
7265 # Use C for the default configuration in the libtool script
7266 tagname=
7267 lt_save_CC="$CC"
7268 ac_ext=c
7269 ac_cpp='$CPP $CPPFLAGS'
7270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7273
7274
7275 # Source file extension for C test sources.
7276 ac_ext=c
7277
7278 # Object file extension for compiled C test sources.
7279 objext=o
7280 objext=$objext
7281
7282 # Code to be used in simple compile tests
7283 lt_simple_compile_test_code="int some_variable = 0;"
7284
7285 # Code to be used in simple link tests
7286 lt_simple_link_test_code='int main(){return(0);}'
7287
7288
7289 # If no C compiler was specified, use CC.
7290 LTCC=${LTCC-"$CC"}
7291
7292 # If no C compiler flags were specified, use CFLAGS.
7293 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7294
7295 # Allow CC to be a program name with arguments.
7296 compiler=$CC
7297
7298
7299 # save warnings/boilerplate of simple test code
7300 ac_outfile=conftest.$ac_objext
7301 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7302 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7303 _lt_compiler_boilerplate=`cat conftest.err`
7304 $rm conftest*
7305
7306 ac_outfile=conftest.$ac_objext
7307 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7308 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7309 _lt_linker_boilerplate=`cat conftest.err`
7310 $rm conftest*
7311
7312
7313
7314 lt_prog_compiler_no_builtin_flag=
7315
7316 if test "$GCC" = yes; then
7317   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7318
7319
7320 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7321 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7322 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7323   echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325   lt_cv_prog_compiler_rtti_exceptions=no
7326   ac_outfile=conftest.$ac_objext
7327    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7328    lt_compiler_flag="-fno-rtti -fno-exceptions"
7329    # Insert the option either (1) after the last *FLAGS variable, or
7330    # (2) before a word containing "conftest.", or (3) at the end.
7331    # Note that $ac_compile itself does not contain backslashes and begins
7332    # with a dollar sign (not a hyphen), so the echo should work correctly.
7333    # The option is referenced via a variable to avoid confusing sed.
7334    lt_compile=`echo "$ac_compile" | $SED \
7335    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7336    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7337    -e 's:$: $lt_compiler_flag:'`
7338    (eval echo "\"\$as_me:7338: $lt_compile\"" >&5)
7339    (eval "$lt_compile" 2>conftest.err)
7340    ac_status=$?
7341    cat conftest.err >&5
7342    echo "$as_me:7342: \$? = $ac_status" >&5
7343    if (exit $ac_status) && test -s "$ac_outfile"; then
7344      # The compiler can only warn and ignore the option if not recognized
7345      # So say no if there are warnings other than the usual output.
7346      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7347      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7348      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7349        lt_cv_prog_compiler_rtti_exceptions=yes
7350      fi
7351    fi
7352    $rm conftest*
7353
7354 fi
7355 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7356 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7357
7358 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7359     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7360 else
7361     :
7362 fi
7363
7364 fi
7365
7366 lt_prog_compiler_wl=
7367 lt_prog_compiler_pic=
7368 lt_prog_compiler_static=
7369
7370 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7371 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7372
7373   if test "$GCC" = yes; then
7374     lt_prog_compiler_wl='-Wl,'
7375     lt_prog_compiler_static='-static'
7376
7377     case $host_os in
7378       aix*)
7379       # All AIX code is PIC.
7380       if test "$host_cpu" = ia64; then
7381         # AIX 5 now supports IA64 processor
7382         lt_prog_compiler_static='-Bstatic'
7383       fi
7384       ;;
7385
7386     amigaos*)
7387       # FIXME: we need at least 68020 code to build shared libraries, but
7388       # adding the `-m68020' flag to GCC prevents building anything better,
7389       # like `-m68040'.
7390       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7391       ;;
7392
7393     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7394       # PIC is the default for these OSes.
7395       ;;
7396
7397     mingw* | cygwin* | pw32* | os2*)
7398       # This hack is so that the source file can tell whether it is being
7399       # built for inclusion in a dll (and should export symbols for example).
7400       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7401       # (--disable-auto-import) libraries
7402       lt_prog_compiler_pic='-DDLL_EXPORT'
7403       ;;
7404
7405     darwin* | rhapsody*)
7406       # PIC is the default on this platform
7407       # Common symbols not allowed in MH_DYLIB files
7408       lt_prog_compiler_pic='-fno-common'
7409       ;;
7410
7411     interix[3-9]*)
7412       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7413       # Instead, we relocate shared libraries at runtime.
7414       ;;
7415
7416     msdosdjgpp*)
7417       # Just because we use GCC doesn't mean we suddenly get shared libraries
7418       # on systems that don't support them.
7419       lt_prog_compiler_can_build_shared=no
7420       enable_shared=no
7421       ;;
7422
7423     sysv4*MP*)
7424       if test -d /usr/nec; then
7425         lt_prog_compiler_pic=-Kconform_pic
7426       fi
7427       ;;
7428
7429     hpux*)
7430       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7431       # not for PA HP-UX.
7432       case $host_cpu in
7433       hppa*64*|ia64*)
7434         # +Z the default
7435         ;;
7436       *)
7437         lt_prog_compiler_pic='-fPIC'
7438         ;;
7439       esac
7440       ;;
7441
7442     *)
7443       lt_prog_compiler_pic='-fPIC'
7444       ;;
7445     esac
7446   else
7447     # PORTME Check for flag to pass linker flags through the system compiler.
7448     case $host_os in
7449     aix*)
7450       lt_prog_compiler_wl='-Wl,'
7451       if test "$host_cpu" = ia64; then
7452         # AIX 5 now supports IA64 processor
7453         lt_prog_compiler_static='-Bstatic'
7454       else
7455         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7456       fi
7457       ;;
7458       darwin*)
7459         # PIC is the default on this platform
7460         # Common symbols not allowed in MH_DYLIB files
7461        case $cc_basename in
7462          xlc*)
7463          lt_prog_compiler_pic='-qnocommon'
7464          lt_prog_compiler_wl='-Wl,'
7465          ;;
7466        esac
7467        ;;
7468
7469     mingw* | cygwin* | pw32* | os2*)
7470       # This hack is so that the source file can tell whether it is being
7471       # built for inclusion in a dll (and should export symbols for example).
7472       lt_prog_compiler_pic='-DDLL_EXPORT'
7473       ;;
7474
7475     hpux9* | hpux10* | hpux11*)
7476       lt_prog_compiler_wl='-Wl,'
7477       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7478       # not for PA HP-UX.
7479       case $host_cpu in
7480       hppa*64*|ia64*)
7481         # +Z the default
7482         ;;
7483       *)
7484         lt_prog_compiler_pic='+Z'
7485         ;;
7486       esac
7487       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7488       lt_prog_compiler_static='${wl}-a ${wl}archive'
7489       ;;
7490
7491     irix5* | irix6* | nonstopux*)
7492       lt_prog_compiler_wl='-Wl,'
7493       # PIC (with -KPIC) is the default.
7494       lt_prog_compiler_static='-non_shared'
7495       ;;
7496
7497     newsos6)
7498       lt_prog_compiler_pic='-KPIC'
7499       lt_prog_compiler_static='-Bstatic'
7500       ;;
7501
7502     linux* | k*bsd*-gnu)
7503       case $cc_basename in
7504       icc* | ecc*)
7505         lt_prog_compiler_wl='-Wl,'
7506         lt_prog_compiler_pic='-KPIC'
7507         lt_prog_compiler_static='-static'
7508         ;;
7509       pgcc* | pgf77* | pgf90* | pgf95*)
7510         # Portland Group compilers (*not* the Pentium gcc compiler,
7511         # which looks to be a dead project)
7512         lt_prog_compiler_wl='-Wl,'
7513         lt_prog_compiler_pic='-fpic'
7514         lt_prog_compiler_static='-Bstatic'
7515         ;;
7516       ccc*)
7517         lt_prog_compiler_wl='-Wl,'
7518         # All Alpha code is PIC.
7519         lt_prog_compiler_static='-non_shared'
7520         ;;
7521       *)
7522         case `$CC -V 2>&1 | sed 5q` in
7523         *Sun\ C*)
7524           # Sun C 5.9
7525           lt_prog_compiler_pic='-KPIC'
7526           lt_prog_compiler_static='-Bstatic'
7527           lt_prog_compiler_wl='-Wl,'
7528           ;;
7529         *Sun\ F*)
7530           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7531           lt_prog_compiler_pic='-KPIC'
7532           lt_prog_compiler_static='-Bstatic'
7533           lt_prog_compiler_wl=''
7534           ;;
7535         esac
7536         ;;
7537       esac
7538       ;;
7539
7540     osf3* | osf4* | osf5*)
7541       lt_prog_compiler_wl='-Wl,'
7542       # All OSF/1 code is PIC.
7543       lt_prog_compiler_static='-non_shared'
7544       ;;
7545
7546     rdos*)
7547       lt_prog_compiler_static='-non_shared'
7548       ;;
7549
7550     solaris*)
7551       lt_prog_compiler_pic='-KPIC'
7552       lt_prog_compiler_static='-Bstatic'
7553       case $cc_basename in
7554       f77* | f90* | f95*)
7555         lt_prog_compiler_wl='-Qoption ld ';;
7556       *)
7557         lt_prog_compiler_wl='-Wl,';;
7558       esac
7559       ;;
7560
7561     sunos4*)
7562       lt_prog_compiler_wl='-Qoption ld '
7563       lt_prog_compiler_pic='-PIC'
7564       lt_prog_compiler_static='-Bstatic'
7565       ;;
7566
7567     sysv4 | sysv4.2uw2* | sysv4.3*)
7568       lt_prog_compiler_wl='-Wl,'
7569       lt_prog_compiler_pic='-KPIC'
7570       lt_prog_compiler_static='-Bstatic'
7571       ;;
7572
7573     sysv4*MP*)
7574       if test -d /usr/nec ;then
7575         lt_prog_compiler_pic='-Kconform_pic'
7576         lt_prog_compiler_static='-Bstatic'
7577       fi
7578       ;;
7579
7580     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7581       lt_prog_compiler_wl='-Wl,'
7582       lt_prog_compiler_pic='-KPIC'
7583       lt_prog_compiler_static='-Bstatic'
7584       ;;
7585
7586     unicos*)
7587       lt_prog_compiler_wl='-Wl,'
7588       lt_prog_compiler_can_build_shared=no
7589       ;;
7590
7591     uts4*)
7592       lt_prog_compiler_pic='-pic'
7593       lt_prog_compiler_static='-Bstatic'
7594       ;;
7595
7596     *)
7597       lt_prog_compiler_can_build_shared=no
7598       ;;
7599     esac
7600   fi
7601
7602 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7603 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7604
7605 #
7606 # Check to make sure the PIC flag actually works.
7607 #
7608 if test -n "$lt_prog_compiler_pic"; then
7609
7610 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7611 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7612 if test "${lt_prog_compiler_pic_works+set}" = set; then
7613   echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615   lt_prog_compiler_pic_works=no
7616   ac_outfile=conftest.$ac_objext
7617    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7618    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7619    # Insert the option either (1) after the last *FLAGS variable, or
7620    # (2) before a word containing "conftest.", or (3) at the end.
7621    # Note that $ac_compile itself does not contain backslashes and begins
7622    # with a dollar sign (not a hyphen), so the echo should work correctly.
7623    # The option is referenced via a variable to avoid confusing sed.
7624    lt_compile=`echo "$ac_compile" | $SED \
7625    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7626    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7627    -e 's:$: $lt_compiler_flag:'`
7628    (eval echo "\"\$as_me:7628: $lt_compile\"" >&5)
7629    (eval "$lt_compile" 2>conftest.err)
7630    ac_status=$?
7631    cat conftest.err >&5
7632    echo "$as_me:7632: \$? = $ac_status" >&5
7633    if (exit $ac_status) && test -s "$ac_outfile"; then
7634      # The compiler can only warn and ignore the option if not recognized
7635      # So say no if there are warnings other than the usual output.
7636      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7637      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7638      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7639        lt_prog_compiler_pic_works=yes
7640      fi
7641    fi
7642    $rm conftest*
7643
7644 fi
7645 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7646 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7647
7648 if test x"$lt_prog_compiler_pic_works" = xyes; then
7649     case $lt_prog_compiler_pic in
7650      "" | " "*) ;;
7651      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7652      esac
7653 else
7654     lt_prog_compiler_pic=
7655      lt_prog_compiler_can_build_shared=no
7656 fi
7657
7658 fi
7659 case $host_os in
7660   # For platforms which do not support PIC, -DPIC is meaningless:
7661   *djgpp*)
7662     lt_prog_compiler_pic=
7663     ;;
7664   *)
7665     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7666     ;;
7667 esac
7668
7669 #
7670 # Check to make sure the static flag actually works.
7671 #
7672 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7673 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7674 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7675 if test "${lt_prog_compiler_static_works+set}" = set; then
7676   echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
7678   lt_prog_compiler_static_works=no
7679    save_LDFLAGS="$LDFLAGS"
7680    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7681    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7682    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7683      # The linker can only warn and ignore the option if not recognized
7684      # So say no if there are warnings
7685      if test -s conftest.err; then
7686        # Append any errors to the config.log.
7687        cat conftest.err 1>&5
7688        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7689        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7690        if diff conftest.exp conftest.er2 >/dev/null; then
7691          lt_prog_compiler_static_works=yes
7692        fi
7693      else
7694        lt_prog_compiler_static_works=yes
7695      fi
7696    fi
7697    $rm conftest*
7698    LDFLAGS="$save_LDFLAGS"
7699
7700 fi
7701 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7702 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7703
7704 if test x"$lt_prog_compiler_static_works" = xyes; then
7705     :
7706 else
7707     lt_prog_compiler_static=
7708 fi
7709
7710
7711 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7712 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7713 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7714   echo $ECHO_N "(cached) $ECHO_C" >&6
7715 else
7716   lt_cv_prog_compiler_c_o=no
7717    $rm -r conftest 2>/dev/null
7718    mkdir conftest
7719    cd conftest
7720    mkdir out
7721    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7722
7723    lt_compiler_flag="-o out/conftest2.$ac_objext"
7724    # Insert the option either (1) after the last *FLAGS variable, or
7725    # (2) before a word containing "conftest.", or (3) at the end.
7726    # Note that $ac_compile itself does not contain backslashes and begins
7727    # with a dollar sign (not a hyphen), so the echo should work correctly.
7728    lt_compile=`echo "$ac_compile" | $SED \
7729    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7730    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7731    -e 's:$: $lt_compiler_flag:'`
7732    (eval echo "\"\$as_me:7732: $lt_compile\"" >&5)
7733    (eval "$lt_compile" 2>out/conftest.err)
7734    ac_status=$?
7735    cat out/conftest.err >&5
7736    echo "$as_me:7736: \$? = $ac_status" >&5
7737    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7738    then
7739      # The compiler can only warn and ignore the option if not recognized
7740      # So say no if there are warnings
7741      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7742      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7743      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7744        lt_cv_prog_compiler_c_o=yes
7745      fi
7746    fi
7747    chmod u+w . 2>&5
7748    $rm conftest*
7749    # SGI C++ compiler will create directory out/ii_files/ for
7750    # template instantiation
7751    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7752    $rm out/* && rmdir out
7753    cd ..
7754    rmdir conftest
7755    $rm conftest*
7756
7757 fi
7758 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7759 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7760
7761
7762 hard_links="nottested"
7763 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7764   # do not overwrite the value of need_locks provided by the user
7765   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7766 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7767   hard_links=yes
7768   $rm conftest*
7769   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7770   touch conftest.a
7771   ln conftest.a conftest.b 2>&5 || hard_links=no
7772   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7773   { echo "$as_me:$LINENO: result: $hard_links" >&5
7774 echo "${ECHO_T}$hard_links" >&6; }
7775   if test "$hard_links" = no; then
7776     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7777 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7778     need_locks=warn
7779   fi
7780 else
7781   need_locks=no
7782 fi
7783
7784 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7785 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7786
7787   runpath_var=
7788   allow_undefined_flag=
7789   enable_shared_with_static_runtimes=no
7790   archive_cmds=
7791   archive_expsym_cmds=
7792   old_archive_From_new_cmds=
7793   old_archive_from_expsyms_cmds=
7794   export_dynamic_flag_spec=
7795   whole_archive_flag_spec=
7796   thread_safe_flag_spec=
7797   hardcode_libdir_flag_spec=
7798   hardcode_libdir_flag_spec_ld=
7799   hardcode_libdir_separator=
7800   hardcode_direct=no
7801   hardcode_minus_L=no
7802   hardcode_shlibpath_var=unsupported
7803   link_all_deplibs=unknown
7804   hardcode_automatic=no
7805   module_cmds=
7806   module_expsym_cmds=
7807   always_export_symbols=no
7808   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7809   # include_expsyms should be a list of space-separated symbols to be *always*
7810   # included in the symbol list
7811   include_expsyms=
7812   # exclude_expsyms can be an extended regexp of symbols to exclude
7813   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7814   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7815   # as well as any symbol that contains `d'.
7816   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7817   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7818   # platforms (ab)use it in PIC code, but their linkers get confused if
7819   # the symbol is explicitly referenced.  Since portable code cannot
7820   # rely on this symbol name, it's probably fine to never include it in
7821   # preloaded symbol tables.
7822   extract_expsyms_cmds=
7823   # Just being paranoid about ensuring that cc_basename is set.
7824   for cc_temp in $compiler""; do
7825   case $cc_temp in
7826     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7827     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7828     \-*) ;;
7829     *) break;;
7830   esac
7831 done
7832 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7833
7834   case $host_os in
7835   cygwin* | mingw* | pw32*)
7836     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7837     # When not using gcc, we currently assume that we are using
7838     # Microsoft Visual C++.
7839     if test "$GCC" != yes; then
7840       with_gnu_ld=no
7841     fi
7842     ;;
7843   interix*)
7844     # we just hope/assume this is gcc and not c89 (= MSVC++)
7845     with_gnu_ld=yes
7846     ;;
7847   openbsd*)
7848     with_gnu_ld=no
7849     ;;
7850   esac
7851
7852   ld_shlibs=yes
7853   if test "$with_gnu_ld" = yes; then
7854     # If archive_cmds runs LD, not CC, wlarc should be empty
7855     wlarc='${wl}'
7856
7857     # Set some defaults for GNU ld with shared library support. These
7858     # are reset later if shared libraries are not supported. Putting them
7859     # here allows them to be overridden if necessary.
7860     runpath_var=LD_RUN_PATH
7861     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7862     export_dynamic_flag_spec='${wl}--export-dynamic'
7863     # ancient GNU ld didn't support --whole-archive et. al.
7864     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7865         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7866       else
7867         whole_archive_flag_spec=
7868     fi
7869     supports_anon_versioning=no
7870     case `$LD -v 2>/dev/null` in
7871       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7872       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7873       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7874       *\ 2.11.*) ;; # other 2.11 versions
7875       *) supports_anon_versioning=yes ;;
7876     esac
7877
7878     # See if GNU ld supports shared libraries.
7879     case $host_os in
7880     aix3* | aix4* | aix5*)
7881       # On AIX/PPC, the GNU linker is very broken
7882       if test "$host_cpu" != ia64; then
7883         ld_shlibs=no
7884         cat <<EOF 1>&2
7885
7886 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7887 *** to be unable to reliably create shared libraries on AIX.
7888 *** Therefore, libtool is disabling shared libraries support.  If you
7889 *** really care for shared libraries, you may want to modify your PATH
7890 *** so that a non-GNU linker is found, and then restart.
7891
7892 EOF
7893       fi
7894       ;;
7895
7896     amigaos*)
7897       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)'
7898       hardcode_libdir_flag_spec='-L$libdir'
7899       hardcode_minus_L=yes
7900
7901       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7902       # that the semantics of dynamic libraries on AmigaOS, at least up
7903       # to version 4, is to share data among multiple programs linked
7904       # with the same dynamic library.  Since this doesn't match the
7905       # behavior of shared libraries on other platforms, we can't use
7906       # them.
7907       ld_shlibs=no
7908       ;;
7909
7910     beos*)
7911       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7912         allow_undefined_flag=unsupported
7913         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7914         # support --undefined.  This deserves some investigation.  FIXME
7915         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7916       else
7917         ld_shlibs=no
7918       fi
7919       ;;
7920
7921     cygwin* | mingw* | pw32*)
7922       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7923       # as there is no search path for DLLs.
7924       hardcode_libdir_flag_spec='-L$libdir'
7925       allow_undefined_flag=unsupported
7926       always_export_symbols=no
7927       enable_shared_with_static_runtimes=yes
7928       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7929
7930       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7931         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7932         # If the export-symbols file already is a .def file (1st line
7933         # is EXPORTS), use it as is; otherwise, prepend...
7934         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7935           cp $export_symbols $output_objdir/$soname.def;
7936         else
7937           echo EXPORTS > $output_objdir/$soname.def;
7938           cat $export_symbols >> $output_objdir/$soname.def;
7939         fi~
7940         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7941       else
7942         ld_shlibs=no
7943       fi
7944       ;;
7945
7946     interix[3-9]*)
7947       hardcode_direct=no
7948       hardcode_shlibpath_var=no
7949       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7950       export_dynamic_flag_spec='${wl}-E'
7951       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7952       # Instead, shared libraries are loaded at an image base (0x10000000 by
7953       # default) and relocated if they conflict, which is a slow very memory
7954       # consuming and fragmenting process.  To avoid this, we pick a random,
7955       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7956       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7957       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7958       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'
7959       ;;
7960
7961     gnu* | linux* | k*bsd*-gnu)
7962       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7963         tmp_addflag=
7964         case $cc_basename,$host_cpu in
7965         pgcc*)                          # Portland Group C compiler
7966           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'
7967           tmp_addflag=' $pic_flag'
7968           ;;
7969         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7970           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'
7971           tmp_addflag=' $pic_flag -Mnomain' ;;
7972         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7973           tmp_addflag=' -i_dynamic' ;;
7974         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7975           tmp_addflag=' -i_dynamic -nofor_main' ;;
7976         ifc* | ifort*)                  # Intel Fortran compiler
7977           tmp_addflag=' -nofor_main' ;;
7978         esac
7979         case `$CC -V 2>&1 | sed 5q` in
7980         *Sun\ C*)                       # Sun C 5.9
7981           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7982           tmp_sharedflag='-G' ;;
7983         *Sun\ F*)                       # Sun Fortran 8.3
7984           tmp_sharedflag='-G' ;;
7985         *)
7986           tmp_sharedflag='-shared' ;;
7987         esac
7988         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7989
7990         if test $supports_anon_versioning = yes; then
7991           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7992   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7993   $echo "local: *; };" >> $output_objdir/$libname.ver~
7994           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7995         fi
7996       else
7997         ld_shlibs=no
7998       fi
7999       ;;
8000
8001     netbsd*)
8002       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8003         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8004         wlarc=
8005       else
8006         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8007         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8008       fi
8009       ;;
8010
8011     solaris*)
8012       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8013         ld_shlibs=no
8014         cat <<EOF 1>&2
8015
8016 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8017 *** create shared libraries on Solaris systems.  Therefore, libtool
8018 *** is disabling shared libraries support.  We urge you to upgrade GNU
8019 *** binutils to release 2.9.1 or newer.  Another option is to modify
8020 *** your PATH or compiler configuration so that the native linker is
8021 *** used, and then restart.
8022
8023 EOF
8024       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8025         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8026         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8027       else
8028         ld_shlibs=no
8029       fi
8030       ;;
8031
8032     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8033       case `$LD -v 2>&1` in
8034         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8035         ld_shlibs=no
8036         cat <<_LT_EOF 1>&2
8037
8038 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8039 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8040 *** is disabling shared libraries support.  We urge you to upgrade GNU
8041 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8042 *** your PATH or compiler configuration so that the native linker is
8043 *** used, and then restart.
8044
8045 _LT_EOF
8046         ;;
8047         *)
8048           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8049             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8050             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8051             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8052           else
8053             ld_shlibs=no
8054           fi
8055         ;;
8056       esac
8057       ;;
8058
8059     sunos4*)
8060       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8061       wlarc=
8062       hardcode_direct=yes
8063       hardcode_shlibpath_var=no
8064       ;;
8065
8066     *)
8067       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8068         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8069         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8070       else
8071         ld_shlibs=no
8072       fi
8073       ;;
8074     esac
8075
8076     if test "$ld_shlibs" = no; then
8077       runpath_var=
8078       hardcode_libdir_flag_spec=
8079       export_dynamic_flag_spec=
8080       whole_archive_flag_spec=
8081     fi
8082   else
8083     # PORTME fill in a description of your system's linker (not GNU ld)
8084     case $host_os in
8085     aix3*)
8086       allow_undefined_flag=unsupported
8087       always_export_symbols=yes
8088       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'
8089       # Note: this linker hardcodes the directories in LIBPATH if there
8090       # are no directories specified by -L.
8091       hardcode_minus_L=yes
8092       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8093         # Neither direct hardcoding nor static linking is supported with a
8094         # broken collect2.
8095         hardcode_direct=unsupported
8096       fi
8097       ;;
8098
8099     aix4* | aix5*)
8100       if test "$host_cpu" = ia64; then
8101         # On IA64, the linker does run time linking by default, so we don't
8102         # have to do anything special.
8103         aix_use_runtimelinking=no
8104         exp_sym_flag='-Bexport'
8105         no_entry_flag=""
8106       else
8107         # If we're using GNU nm, then we don't want the "-C" option.
8108         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8109         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8110           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'
8111         else
8112           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'
8113         fi
8114         aix_use_runtimelinking=no
8115
8116         # Test if we are trying to use run time linking or normal
8117         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8118         # need to do runtime linking.
8119         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8120           for ld_flag in $LDFLAGS; do
8121           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8122             aix_use_runtimelinking=yes
8123             break
8124           fi
8125           done
8126           ;;
8127         esac
8128
8129         exp_sym_flag='-bexport'
8130         no_entry_flag='-bnoentry'
8131       fi
8132
8133       # When large executables or shared objects are built, AIX ld can
8134       # have problems creating the table of contents.  If linking a library
8135       # or program results in "error TOC overflow" add -mminimal-toc to
8136       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8137       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8138
8139       archive_cmds=''
8140       hardcode_direct=yes
8141       hardcode_libdir_separator=':'
8142       link_all_deplibs=yes
8143
8144       if test "$GCC" = yes; then
8145         case $host_os in aix4.[012]|aix4.[012].*)
8146         # We only want to do this on AIX 4.2 and lower, the check
8147         # below for broken collect2 doesn't work under 4.3+
8148           collect2name=`${CC} -print-prog-name=collect2`
8149           if test -f "$collect2name" && \
8150            strings "$collect2name" | grep resolve_lib_name >/dev/null
8151           then
8152           # We have reworked collect2
8153           :
8154           else
8155           # We have old collect2
8156           hardcode_direct=unsupported
8157           # It fails to find uninstalled libraries when the uninstalled
8158           # path is not listed in the libpath.  Setting hardcode_minus_L
8159           # to unsupported forces relinking
8160           hardcode_minus_L=yes
8161           hardcode_libdir_flag_spec='-L$libdir'
8162           hardcode_libdir_separator=
8163           fi
8164           ;;
8165         esac
8166         shared_flag='-shared'
8167         if test "$aix_use_runtimelinking" = yes; then
8168           shared_flag="$shared_flag "'${wl}-G'
8169         fi
8170       else
8171         # not using gcc
8172         if test "$host_cpu" = ia64; then
8173         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8174         # chokes on -Wl,-G. The following line is correct:
8175           shared_flag='-G'
8176         else
8177           if test "$aix_use_runtimelinking" = yes; then
8178             shared_flag='${wl}-G'
8179           else
8180             shared_flag='${wl}-bM:SRE'
8181           fi
8182         fi
8183       fi
8184
8185       # It seems that -bexpall does not export symbols beginning with
8186       # underscore (_), so it is better to generate a list of symbols to export.
8187       always_export_symbols=yes
8188       if test "$aix_use_runtimelinking" = yes; then
8189         # Warning - without using the other runtime loading flags (-brtl),
8190         # -berok will link without error, but may produce a broken library.
8191         allow_undefined_flag='-berok'
8192        # Determine the default libpath from the value encoded in an empty executable.
8193        cat >conftest.$ac_ext <<_ACEOF
8194 /* confdefs.h.  */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h.  */
8199
8200 int
8201 main ()
8202 {
8203
8204   ;
8205   return 0;
8206 }
8207 _ACEOF
8208 rm -f conftest.$ac_objext conftest$ac_exeext
8209 if { (ac_try="$ac_link"
8210 case "(($ac_try" in
8211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212   *) ac_try_echo=$ac_try;;
8213 esac
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215   (eval "$ac_link") 2>conftest.er1
8216   ac_status=$?
8217   grep -v '^ *+' conftest.er1 >conftest.err
8218   rm -f conftest.er1
8219   cat conftest.err >&5
8220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221   (exit $ac_status); } &&
8222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8223   { (case "(($ac_try" in
8224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225   *) ac_try_echo=$ac_try;;
8226 esac
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228   (eval "$ac_try") 2>&5
8229   ac_status=$?
8230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   (exit $ac_status); }; } &&
8232          { ac_try='test -s conftest$ac_exeext'
8233   { (case "(($ac_try" in
8234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235   *) ac_try_echo=$ac_try;;
8236 esac
8237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238   (eval "$ac_try") 2>&5
8239   ac_status=$?
8240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241   (exit $ac_status); }; }; then
8242
8243 lt_aix_libpath_sed='
8244     /Import File Strings/,/^$/ {
8245         /^0/ {
8246             s/^0  *\(.*\)$/\1/
8247             p
8248         }
8249     }'
8250 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8251 # Check for a 64-bit object if we didn't find anything.
8252 if test -z "$aix_libpath"; then
8253   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8254 fi
8255 else
8256   echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8258
8259
8260 fi
8261
8262 rm -f core conftest.err conftest.$ac_objext \
8263       conftest$ac_exeext conftest.$ac_ext
8264 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8265
8266        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8267         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"
8268        else
8269         if test "$host_cpu" = ia64; then
8270           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8271           allow_undefined_flag="-z nodefs"
8272           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"
8273         else
8274          # Determine the default libpath from the value encoded in an empty executable.
8275          cat >conftest.$ac_ext <<_ACEOF
8276 /* confdefs.h.  */
8277 _ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h.  */
8281
8282 int
8283 main ()
8284 {
8285
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 rm -f conftest.$ac_objext conftest$ac_exeext
8291 if { (ac_try="$ac_link"
8292 case "(($ac_try" in
8293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294   *) ac_try_echo=$ac_try;;
8295 esac
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297   (eval "$ac_link") 2>conftest.er1
8298   ac_status=$?
8299   grep -v '^ *+' conftest.er1 >conftest.err
8300   rm -f conftest.er1
8301   cat conftest.err >&5
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); } &&
8304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8305   { (case "(($ac_try" in
8306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307   *) ac_try_echo=$ac_try;;
8308 esac
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310   (eval "$ac_try") 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); }; } &&
8314          { ac_try='test -s conftest$ac_exeext'
8315   { (case "(($ac_try" in
8316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317   *) ac_try_echo=$ac_try;;
8318 esac
8319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320   (eval "$ac_try") 2>&5
8321   ac_status=$?
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); }; }; then
8324
8325 lt_aix_libpath_sed='
8326     /Import File Strings/,/^$/ {
8327         /^0/ {
8328             s/^0  *\(.*\)$/\1/
8329             p
8330         }
8331     }'
8332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8333 # Check for a 64-bit object if we didn't find anything.
8334 if test -z "$aix_libpath"; then
8335   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8336 fi
8337 else
8338   echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8340
8341
8342 fi
8343
8344 rm -f core conftest.err conftest.$ac_objext \
8345       conftest$ac_exeext conftest.$ac_ext
8346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8347
8348          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8349           # Warning - without using the other run time loading flags,
8350           # -berok will link without error, but may produce a broken library.
8351           no_undefined_flag=' ${wl}-bernotok'
8352           allow_undefined_flag=' ${wl}-berok'
8353           # Exported symbols can be pulled into shared objects from archives
8354           whole_archive_flag_spec='$convenience'
8355           archive_cmds_need_lc=yes
8356           # This is similar to how AIX traditionally builds its shared libraries.
8357           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'
8358         fi
8359       fi
8360       ;;
8361
8362     amigaos*)
8363       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)'
8364       hardcode_libdir_flag_spec='-L$libdir'
8365       hardcode_minus_L=yes
8366       # see comment about different semantics on the GNU ld section
8367       ld_shlibs=no
8368       ;;
8369
8370     bsdi[45]*)
8371       export_dynamic_flag_spec=-rdynamic
8372       ;;
8373
8374     cygwin* | mingw* | pw32*)
8375       # When not using gcc, we currently assume that we are using
8376       # Microsoft Visual C++.
8377       # hardcode_libdir_flag_spec is actually meaningless, as there is
8378       # no search path for DLLs.
8379       hardcode_libdir_flag_spec=' '
8380       allow_undefined_flag=unsupported
8381       # Tell ltmain to make .lib files, not .a files.
8382       libext=lib
8383       # Tell ltmain to make .dll files, not .so files.
8384       shrext_cmds=".dll"
8385       # FIXME: Setting linknames here is a bad hack.
8386       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8387       # The linker will automatically build a .lib file if we build a DLL.
8388       old_archive_From_new_cmds='true'
8389       # FIXME: Should let the user specify the lib program.
8390       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8391       fix_srcfile_path='`cygpath -w "$srcfile"`'
8392       enable_shared_with_static_runtimes=yes
8393       ;;
8394
8395     darwin* | rhapsody*)
8396       case $host_os in
8397         rhapsody* | darwin1.[012])
8398          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8399          ;;
8400        *) # Darwin 1.3 on
8401          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8402            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8403          else
8404            case ${MACOSX_DEPLOYMENT_TARGET} in
8405              10.[012])
8406                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8407                ;;
8408              10.*)
8409                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8410                ;;
8411            esac
8412          fi
8413          ;;
8414       esac
8415       archive_cmds_need_lc=no
8416       hardcode_direct=no
8417       hardcode_automatic=yes
8418       hardcode_shlibpath_var=unsupported
8419       whole_archive_flag_spec=''
8420       link_all_deplibs=yes
8421     if test "$GCC" = yes ; then
8422         output_verbose_link_cmd='echo'
8423         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8424       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8425       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8426       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}'
8427       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}'
8428     else
8429       case $cc_basename in
8430         xlc*)
8431          output_verbose_link_cmd='echo'
8432          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8433          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8434           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8435          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8436           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}'
8437           ;;
8438        *)
8439          ld_shlibs=no
8440           ;;
8441       esac
8442     fi
8443       ;;
8444
8445     dgux*)
8446       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8447       hardcode_libdir_flag_spec='-L$libdir'
8448       hardcode_shlibpath_var=no
8449       ;;
8450
8451     freebsd1*)
8452       ld_shlibs=no
8453       ;;
8454
8455     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8456     # support.  Future versions do this automatically, but an explicit c++rt0.o
8457     # does not break anything, and helps significantly (at the cost of a little
8458     # extra space).
8459     freebsd2.2*)
8460       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8461       hardcode_libdir_flag_spec='-R$libdir'
8462       hardcode_direct=yes
8463       hardcode_shlibpath_var=no
8464       ;;
8465
8466     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8467     freebsd2*)
8468       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8469       hardcode_direct=yes
8470       hardcode_minus_L=yes
8471       hardcode_shlibpath_var=no
8472       ;;
8473
8474     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8475     freebsd* | dragonfly*)
8476       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8477       hardcode_libdir_flag_spec='-R$libdir'
8478       hardcode_direct=yes
8479       hardcode_shlibpath_var=no
8480       ;;
8481
8482     hpux9*)
8483       if test "$GCC" = yes; then
8484         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'
8485       else
8486         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'
8487       fi
8488       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8489       hardcode_libdir_separator=:
8490       hardcode_direct=yes
8491
8492       # hardcode_minus_L: Not really in the search PATH,
8493       # but as the default location of the library.
8494       hardcode_minus_L=yes
8495       export_dynamic_flag_spec='${wl}-E'
8496       ;;
8497
8498     hpux10*)
8499       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8500         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8501       else
8502         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8503       fi
8504       if test "$with_gnu_ld" = no; then
8505         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8506         hardcode_libdir_separator=:
8507
8508         hardcode_direct=yes
8509         export_dynamic_flag_spec='${wl}-E'
8510
8511         # hardcode_minus_L: Not really in the search PATH,
8512         # but as the default location of the library.
8513         hardcode_minus_L=yes
8514       fi
8515       ;;
8516
8517     hpux11*)
8518       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8519         case $host_cpu in
8520         hppa*64*)
8521           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8522           ;;
8523         ia64*)
8524           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8525           ;;
8526         *)
8527           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8528           ;;
8529         esac
8530       else
8531         case $host_cpu in
8532         hppa*64*)
8533           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8534           ;;
8535         ia64*)
8536           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8537           ;;
8538         *)
8539           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8540           ;;
8541         esac
8542       fi
8543       if test "$with_gnu_ld" = no; then
8544         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8545         hardcode_libdir_separator=:
8546
8547         case $host_cpu in
8548         hppa*64*|ia64*)
8549           hardcode_libdir_flag_spec_ld='+b $libdir'
8550           hardcode_direct=no
8551           hardcode_shlibpath_var=no
8552           ;;
8553         *)
8554           hardcode_direct=yes
8555           export_dynamic_flag_spec='${wl}-E'
8556
8557           # hardcode_minus_L: Not really in the search PATH,
8558           # but as the default location of the library.
8559           hardcode_minus_L=yes
8560           ;;
8561         esac
8562       fi
8563       ;;
8564
8565     irix5* | irix6* | nonstopux*)
8566       if test "$GCC" = yes; then
8567         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'
8568       else
8569         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'
8570         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8571       fi
8572       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8573       hardcode_libdir_separator=:
8574       link_all_deplibs=yes
8575       ;;
8576
8577     netbsd*)
8578       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8579         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8580       else
8581         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8582       fi
8583       hardcode_libdir_flag_spec='-R$libdir'
8584       hardcode_direct=yes
8585       hardcode_shlibpath_var=no
8586       ;;
8587
8588     newsos6)
8589       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8590       hardcode_direct=yes
8591       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8592       hardcode_libdir_separator=:
8593       hardcode_shlibpath_var=no
8594       ;;
8595
8596     openbsd*)
8597       if test -f /usr/libexec/ld.so; then
8598         hardcode_direct=yes
8599         hardcode_shlibpath_var=no
8600         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8601           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8602           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8603           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8604           export_dynamic_flag_spec='${wl}-E'
8605         else
8606           case $host_os in
8607            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8608              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8609              hardcode_libdir_flag_spec='-R$libdir'
8610              ;;
8611            *)
8612              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8613              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8614              ;;
8615           esac
8616         fi
8617       else
8618         ld_shlibs=no
8619       fi
8620       ;;
8621
8622     os2*)
8623       hardcode_libdir_flag_spec='-L$libdir'
8624       hardcode_minus_L=yes
8625       allow_undefined_flag=unsupported
8626       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'
8627       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8628       ;;
8629
8630     osf3*)
8631       if test "$GCC" = yes; then
8632         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8633         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'
8634       else
8635         allow_undefined_flag=' -expect_unresolved \*'
8636         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'
8637       fi
8638       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8639       hardcode_libdir_separator=:
8640       ;;
8641
8642     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8643       if test "$GCC" = yes; then
8644         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8645         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'
8646         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8647       else
8648         allow_undefined_flag=' -expect_unresolved \*'
8649         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'
8650         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8651         $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'
8652
8653         # Both c and cxx compiler support -rpath directly
8654         hardcode_libdir_flag_spec='-rpath $libdir'
8655       fi
8656       hardcode_libdir_separator=:
8657       ;;
8658
8659     solaris*)
8660       no_undefined_flag=' -z text'
8661       if test "$GCC" = yes; then
8662         wlarc='${wl}'
8663         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8664         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8665           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8666       else
8667         wlarc=''
8668         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8669         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8670         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8671       fi
8672       hardcode_libdir_flag_spec='-R$libdir'
8673       hardcode_shlibpath_var=no
8674       case $host_os in
8675       solaris2.[0-5] | solaris2.[0-5].*) ;;
8676       *)
8677         # The compiler driver will combine and reorder linker options,
8678         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8679         # but is careful enough not to reorder.
8680         # Supported since Solaris 2.6 (maybe 2.5.1?)
8681         if test "$GCC" = yes; then
8682           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8683         else
8684           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8685         fi
8686         ;;
8687       esac
8688       link_all_deplibs=yes
8689       ;;
8690
8691     sunos4*)
8692       if test "x$host_vendor" = xsequent; then
8693         # Use $CC to link under sequent, because it throws in some extra .o
8694         # files that make .init and .fini sections work.
8695         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8696       else
8697         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8698       fi
8699       hardcode_libdir_flag_spec='-L$libdir'
8700       hardcode_direct=yes
8701       hardcode_minus_L=yes
8702       hardcode_shlibpath_var=no
8703       ;;
8704
8705     sysv4)
8706       case $host_vendor in
8707         sni)
8708           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8709           hardcode_direct=yes # is this really true???
8710         ;;
8711         siemens)
8712           ## LD is ld it makes a PLAMLIB
8713           ## CC just makes a GrossModule.
8714           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8715           reload_cmds='$CC -r -o $output$reload_objs'
8716           hardcode_direct=no
8717         ;;
8718         motorola)
8719           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8720           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8721         ;;
8722       esac
8723       runpath_var='LD_RUN_PATH'
8724       hardcode_shlibpath_var=no
8725       ;;
8726
8727     sysv4.3*)
8728       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8729       hardcode_shlibpath_var=no
8730       export_dynamic_flag_spec='-Bexport'
8731       ;;
8732
8733     sysv4*MP*)
8734       if test -d /usr/nec; then
8735         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8736         hardcode_shlibpath_var=no
8737         runpath_var=LD_RUN_PATH
8738         hardcode_runpath_var=yes
8739         ld_shlibs=yes
8740       fi
8741       ;;
8742
8743     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8744       no_undefined_flag='${wl}-z,text'
8745       archive_cmds_need_lc=no
8746       hardcode_shlibpath_var=no
8747       runpath_var='LD_RUN_PATH'
8748
8749       if test "$GCC" = yes; then
8750         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8751         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8752       else
8753         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8754         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8755       fi
8756       ;;
8757
8758     sysv5* | sco3.2v5* | sco5v6*)
8759       # Note: We can NOT use -z defs as we might desire, because we do not
8760       # link with -lc, and that would cause any symbols used from libc to
8761       # always be unresolved, which means just about no library would
8762       # ever link correctly.  If we're not using GNU ld we use -z text
8763       # though, which does catch some bad symbols but isn't as heavy-handed
8764       # as -z defs.
8765       no_undefined_flag='${wl}-z,text'
8766       allow_undefined_flag='${wl}-z,nodefs'
8767       archive_cmds_need_lc=no
8768       hardcode_shlibpath_var=no
8769       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8770       hardcode_libdir_separator=':'
8771       link_all_deplibs=yes
8772       export_dynamic_flag_spec='${wl}-Bexport'
8773       runpath_var='LD_RUN_PATH'
8774
8775       if test "$GCC" = yes; then
8776         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8777         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8778       else
8779         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8780         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8781       fi
8782       ;;
8783
8784     uts4*)
8785       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8786       hardcode_libdir_flag_spec='-L$libdir'
8787       hardcode_shlibpath_var=no
8788       ;;
8789
8790     *)
8791       ld_shlibs=no
8792       ;;
8793     esac
8794   fi
8795
8796 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8797 echo "${ECHO_T}$ld_shlibs" >&6; }
8798 test "$ld_shlibs" = no && can_build_shared=no
8799
8800 #
8801 # Do we need to explicitly link libc?
8802 #
8803 case "x$archive_cmds_need_lc" in
8804 x|xyes)
8805   # Assume -lc should be added
8806   archive_cmds_need_lc=yes
8807
8808   if test "$enable_shared" = yes && test "$GCC" = yes; then
8809     case $archive_cmds in
8810     *'~'*)
8811       # FIXME: we may have to deal with multi-command sequences.
8812       ;;
8813     '$CC '*)
8814       # Test whether the compiler implicitly links with -lc since on some
8815       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8816       # to ld, don't add -lc before -lgcc.
8817       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8818 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8819       $rm conftest*
8820       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8821
8822       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8823   (eval $ac_compile) 2>&5
8824   ac_status=$?
8825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   (exit $ac_status); } 2>conftest.err; then
8827         soname=conftest
8828         lib=conftest
8829         libobjs=conftest.$ac_objext
8830         deplibs=
8831         wl=$lt_prog_compiler_wl
8832         pic_flag=$lt_prog_compiler_pic
8833         compiler_flags=-v
8834         linker_flags=-v
8835         verstring=
8836         output_objdir=.
8837         libname=conftest
8838         lt_save_allow_undefined_flag=$allow_undefined_flag
8839         allow_undefined_flag=
8840         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8841   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8842   ac_status=$?
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); }
8845         then
8846           archive_cmds_need_lc=no
8847         else
8848           archive_cmds_need_lc=yes
8849         fi
8850         allow_undefined_flag=$lt_save_allow_undefined_flag
8851       else
8852         cat conftest.err 1>&5
8853       fi
8854       $rm conftest*
8855       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8856 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8857       ;;
8858     esac
8859   fi
8860   ;;
8861 esac
8862
8863 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8864 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8865 library_names_spec=
8866 libname_spec='lib$name'
8867 soname_spec=
8868 shrext_cmds=".so"
8869 postinstall_cmds=
8870 postuninstall_cmds=
8871 finish_cmds=
8872 finish_eval=
8873 shlibpath_var=
8874 shlibpath_overrides_runpath=unknown
8875 version_type=none
8876 dynamic_linker="$host_os ld.so"
8877 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8878
8879 if test "$GCC" = yes; then
8880   case $host_os in
8881     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8882     *) lt_awk_arg="/^libraries:/" ;;
8883   esac
8884   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8885   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8886     # if the path contains ";" then we assume it to be the separator
8887     # otherwise default to the standard path separator (i.e. ":") - it is
8888     # assumed that no part of a normal pathname contains ";" but that should
8889     # okay in the real world where ";" in dirpaths is itself problematic.
8890     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8891   else
8892     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8893   fi
8894   # Ok, now we have the path, separated by spaces, we can step through it
8895   # and add multilib dir if necessary.
8896   lt_tmp_lt_search_path_spec=
8897   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8898   for lt_sys_path in $lt_search_path_spec; do
8899     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8900       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8901     else
8902       test -d "$lt_sys_path" && \
8903         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8904     fi
8905   done
8906   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8907 BEGIN {RS=" "; FS="/|\n";} {
8908   lt_foo="";
8909   lt_count=0;
8910   for (lt_i = NF; lt_i > 0; lt_i--) {
8911     if ($lt_i != "" && $lt_i != ".") {
8912       if ($lt_i == "..") {
8913         lt_count++;
8914       } else {
8915         if (lt_count == 0) {
8916           lt_foo="/" $lt_i lt_foo;
8917         } else {
8918           lt_count--;
8919         }
8920       }
8921     }
8922   }
8923   if (lt_foo != "") { lt_freq[lt_foo]++; }
8924   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8925 }'`
8926   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8927 else
8928   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8929 fi
8930 need_lib_prefix=unknown
8931 hardcode_into_libs=no
8932
8933 # when you set need_version to no, make sure it does not cause -set_version
8934 # flags to be left without arguments
8935 need_version=unknown
8936
8937 case $host_os in
8938 aix3*)
8939   version_type=linux
8940   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8941   shlibpath_var=LIBPATH
8942
8943   # AIX 3 has no versioning support, so we append a major version to the name.
8944   soname_spec='${libname}${release}${shared_ext}$major'
8945   ;;
8946
8947 aix4* | aix5*)
8948   version_type=linux
8949   need_lib_prefix=no
8950   need_version=no
8951   hardcode_into_libs=yes
8952   if test "$host_cpu" = ia64; then
8953     # AIX 5 supports IA64
8954     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8955     shlibpath_var=LD_LIBRARY_PATH
8956   else
8957     # With GCC up to 2.95.x, collect2 would create an import file
8958     # for dependence libraries.  The import file would start with
8959     # the line `#! .'.  This would cause the generated library to
8960     # depend on `.', always an invalid library.  This was fixed in
8961     # development snapshots of GCC prior to 3.0.
8962     case $host_os in
8963       aix4 | aix4.[01] | aix4.[01].*)
8964       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8965            echo ' yes '
8966            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8967         :
8968       else
8969         can_build_shared=no
8970       fi
8971       ;;
8972     esac
8973     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8974     # soname into executable. Probably we can add versioning support to
8975     # collect2, so additional links can be useful in future.
8976     if test "$aix_use_runtimelinking" = yes; then
8977       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8978       # instead of lib<name>.a to let people know that these are not
8979       # typical AIX shared libraries.
8980       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8981     else
8982       # We preserve .a as extension for shared libraries through AIX4.2
8983       # and later when we are not doing run time linking.
8984       library_names_spec='${libname}${release}.a $libname.a'
8985       soname_spec='${libname}${release}${shared_ext}$major'
8986     fi
8987     shlibpath_var=LIBPATH
8988   fi
8989   ;;
8990
8991 amigaos*)
8992   library_names_spec='$libname.ixlibrary $libname.a'
8993   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8994   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'
8995   ;;
8996
8997 beos*)
8998   library_names_spec='${libname}${shared_ext}'
8999   dynamic_linker="$host_os ld.so"
9000   shlibpath_var=LIBRARY_PATH
9001   ;;
9002
9003 bsdi[45]*)
9004   version_type=linux
9005   need_version=no
9006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007   soname_spec='${libname}${release}${shared_ext}$major'
9008   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9009   shlibpath_var=LD_LIBRARY_PATH
9010   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9011   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9012   # the default ld.so.conf also contains /usr/contrib/lib and
9013   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9014   # libtool to hard-code these into programs
9015   ;;
9016
9017 cygwin* | mingw* | pw32*)
9018   version_type=windows
9019   shrext_cmds=".dll"
9020   need_version=no
9021   need_lib_prefix=no
9022
9023   case $GCC,$host_os in
9024   yes,cygwin* | yes,mingw* | yes,pw32*)
9025     library_names_spec='$libname.dll.a'
9026     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9027     postinstall_cmds='base_file=`basename \${file}`~
9028       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9029       dldir=$destdir/`dirname \$dlpath`~
9030       test -d \$dldir || mkdir -p \$dldir~
9031       $install_prog $dir/$dlname \$dldir/$dlname~
9032       chmod a+x \$dldir/$dlname'
9033     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9034       dlpath=$dir/\$dldll~
9035        $rm \$dlpath'
9036     shlibpath_overrides_runpath=yes
9037
9038     case $host_os in
9039     cygwin*)
9040       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9041       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9042       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9043       ;;
9044     mingw*)
9045       # MinGW DLLs use traditional 'lib' prefix
9046       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9047       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9048       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9049         # It is most probably a Windows format PATH printed by
9050         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9051         # path with ; separators, and with drive letters. We can handle the
9052         # drive letters (cygwin fileutils understands them), so leave them,
9053         # especially as we might pass files found there to a mingw objdump,
9054         # which wouldn't understand a cygwinified path. Ahh.
9055         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9056       else
9057         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9058       fi
9059       ;;
9060     pw32*)
9061       # pw32 DLLs use 'pw' prefix rather than 'lib'
9062       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9063       ;;
9064     esac
9065     ;;
9066
9067   *)
9068     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9069     ;;
9070   esac
9071   dynamic_linker='Win32 ld.exe'
9072   # FIXME: first we should search . and the directory the executable is in
9073   shlibpath_var=PATH
9074   ;;
9075
9076 darwin* | rhapsody*)
9077   dynamic_linker="$host_os dyld"
9078   version_type=darwin
9079   need_lib_prefix=no
9080   need_version=no
9081   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9082   soname_spec='${libname}${release}${major}$shared_ext'
9083   shlibpath_overrides_runpath=yes
9084   shlibpath_var=DYLD_LIBRARY_PATH
9085   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9086
9087   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9088   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9089   ;;
9090
9091 dgux*)
9092   version_type=linux
9093   need_lib_prefix=no
9094   need_version=no
9095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9096   soname_spec='${libname}${release}${shared_ext}$major'
9097   shlibpath_var=LD_LIBRARY_PATH
9098   ;;
9099
9100 freebsd1*)
9101   dynamic_linker=no
9102   ;;
9103
9104 freebsd* | dragonfly*)
9105   # DragonFly does not have aout.  When/if they implement a new
9106   # versioning mechanism, adjust this.
9107   if test -x /usr/bin/objformat; then
9108     objformat=`/usr/bin/objformat`
9109   else
9110     case $host_os in
9111     freebsd[123]*) objformat=aout ;;
9112     *) objformat=elf ;;
9113     esac
9114   fi
9115   version_type=freebsd-$objformat
9116   case $version_type in
9117     freebsd-elf*)
9118       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9119       need_version=no
9120       need_lib_prefix=no
9121       ;;
9122     freebsd-*)
9123       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9124       need_version=yes
9125       ;;
9126   esac
9127   shlibpath_var=LD_LIBRARY_PATH
9128   case $host_os in
9129   freebsd2*)
9130     shlibpath_overrides_runpath=yes
9131     ;;
9132   freebsd3.[01]* | freebsdelf3.[01]*)
9133     shlibpath_overrides_runpath=yes
9134     hardcode_into_libs=yes
9135     ;;
9136   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9137   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9138     shlibpath_overrides_runpath=no
9139     hardcode_into_libs=yes
9140     ;;
9141   *) # from 4.6 on, and DragonFly
9142     shlibpath_overrides_runpath=yes
9143     hardcode_into_libs=yes
9144     ;;
9145   esac
9146   ;;
9147
9148 gnu*)
9149   version_type=linux
9150   need_lib_prefix=no
9151   need_version=no
9152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9153   soname_spec='${libname}${release}${shared_ext}$major'
9154   shlibpath_var=LD_LIBRARY_PATH
9155   hardcode_into_libs=yes
9156   ;;
9157
9158 hpux9* | hpux10* | hpux11*)
9159   # Give a soname corresponding to the major version so that dld.sl refuses to
9160   # link against other versions.
9161   version_type=sunos
9162   need_lib_prefix=no
9163   need_version=no
9164   case $host_cpu in
9165   ia64*)
9166     shrext_cmds='.so'
9167     hardcode_into_libs=yes
9168     dynamic_linker="$host_os dld.so"
9169     shlibpath_var=LD_LIBRARY_PATH
9170     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9171     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9172     soname_spec='${libname}${release}${shared_ext}$major'
9173     if test "X$HPUX_IA64_MODE" = X32; then
9174       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9175     else
9176       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9177     fi
9178     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9179     ;;
9180    hppa*64*)
9181      shrext_cmds='.sl'
9182      hardcode_into_libs=yes
9183      dynamic_linker="$host_os dld.sl"
9184      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9185      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9186      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187      soname_spec='${libname}${release}${shared_ext}$major'
9188      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9189      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9190      ;;
9191    *)
9192     shrext_cmds='.sl'
9193     dynamic_linker="$host_os dld.sl"
9194     shlibpath_var=SHLIB_PATH
9195     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9196     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9197     soname_spec='${libname}${release}${shared_ext}$major'
9198     ;;
9199   esac
9200   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9201   postinstall_cmds='chmod 555 $lib'
9202   ;;
9203
9204 interix[3-9]*)
9205   version_type=linux
9206   need_lib_prefix=no
9207   need_version=no
9208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9209   soname_spec='${libname}${release}${shared_ext}$major'
9210   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9211   shlibpath_var=LD_LIBRARY_PATH
9212   shlibpath_overrides_runpath=no
9213   hardcode_into_libs=yes
9214   ;;
9215
9216 irix5* | irix6* | nonstopux*)
9217   case $host_os in
9218     nonstopux*) version_type=nonstopux ;;
9219     *)
9220         if test "$lt_cv_prog_gnu_ld" = yes; then
9221                 version_type=linux
9222         else
9223                 version_type=irix
9224         fi ;;
9225   esac
9226   need_lib_prefix=no
9227   need_version=no
9228   soname_spec='${libname}${release}${shared_ext}$major'
9229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9230   case $host_os in
9231   irix5* | nonstopux*)
9232     libsuff= shlibsuff=
9233     ;;
9234   *)
9235     case $LD in # libtool.m4 will add one of these switches to LD
9236     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9237       libsuff= shlibsuff= libmagic=32-bit;;
9238     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9239       libsuff=32 shlibsuff=N32 libmagic=N32;;
9240     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9241       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9242     *) libsuff= shlibsuff= libmagic=never-match;;
9243     esac
9244     ;;
9245   esac
9246   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9247   shlibpath_overrides_runpath=no
9248   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9249   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9250   hardcode_into_libs=yes
9251   ;;
9252
9253 # No shared lib support for Linux oldld, aout, or coff.
9254 linux*oldld* | linux*aout* | linux*coff*)
9255   dynamic_linker=no
9256   ;;
9257
9258 # This must be Linux ELF.
9259 linux* | k*bsd*-gnu)
9260   version_type=linux
9261   need_lib_prefix=no
9262   need_version=no
9263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264   soname_spec='${libname}${release}${shared_ext}$major'
9265   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9266   shlibpath_var=LD_LIBRARY_PATH
9267   shlibpath_overrides_runpath=no
9268   # This implies no fast_install, which is unacceptable.
9269   # Some rework will be needed to allow for fast_install
9270   # before this can be enabled.
9271   hardcode_into_libs=yes
9272
9273   # find out which ABI we are using
9274   libsuff=
9275   case "$host_cpu" in
9276   x86_64*|s390x*|powerpc64*)
9277     echo '#line 9277 "configure"' > conftest.$ac_ext
9278     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9279   (eval $ac_compile) 2>&5
9280   ac_status=$?
9281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282   (exit $ac_status); }; then
9283       case `/usr/bin/file conftest.$ac_objext` in
9284       *64-bit*)
9285         libsuff=64
9286         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9287         ;;
9288       esac
9289     fi
9290     rm -rf conftest*
9291     ;;
9292   esac
9293
9294   # Append ld.so.conf contents to the search path
9295   if test -f /etc/ld.so.conf; then
9296     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9297     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9298   fi
9299
9300   # We used to test for /lib/ld.so.1 and disable shared libraries on
9301   # powerpc, because MkLinux only supported shared libraries with the
9302   # GNU dynamic linker.  Since this was broken with cross compilers,
9303   # most powerpc-linux boxes support dynamic linking these days and
9304   # people can always --disable-shared, the test was removed, and we
9305   # assume the GNU/Linux dynamic linker is in use.
9306   dynamic_linker='GNU/Linux ld.so'
9307   ;;
9308
9309 netbsd*)
9310   version_type=sunos
9311   need_lib_prefix=no
9312   need_version=no
9313   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9314     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9315     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9316     dynamic_linker='NetBSD (a.out) ld.so'
9317   else
9318     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9319     soname_spec='${libname}${release}${shared_ext}$major'
9320     dynamic_linker='NetBSD ld.elf_so'
9321   fi
9322   shlibpath_var=LD_LIBRARY_PATH
9323   shlibpath_overrides_runpath=yes
9324   hardcode_into_libs=yes
9325   ;;
9326
9327 newsos6)
9328   version_type=linux
9329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330   shlibpath_var=LD_LIBRARY_PATH
9331   shlibpath_overrides_runpath=yes
9332   ;;
9333
9334 nto-qnx*)
9335   version_type=linux
9336   need_lib_prefix=no
9337   need_version=no
9338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339   soname_spec='${libname}${release}${shared_ext}$major'
9340   shlibpath_var=LD_LIBRARY_PATH
9341   shlibpath_overrides_runpath=yes
9342   ;;
9343
9344 openbsd*)
9345   version_type=sunos
9346   sys_lib_dlsearch_path_spec="/usr/lib"
9347   need_lib_prefix=no
9348   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9349   case $host_os in
9350     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9351     *)                         need_version=no  ;;
9352   esac
9353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9354   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9355   shlibpath_var=LD_LIBRARY_PATH
9356   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9357     case $host_os in
9358       openbsd2.[89] | openbsd2.[89].*)
9359         shlibpath_overrides_runpath=no
9360         ;;
9361       *)
9362         shlibpath_overrides_runpath=yes
9363         ;;
9364       esac
9365   else
9366     shlibpath_overrides_runpath=yes
9367   fi
9368   ;;
9369
9370 os2*)
9371   libname_spec='$name'
9372   shrext_cmds=".dll"
9373   need_lib_prefix=no
9374   library_names_spec='$libname${shared_ext} $libname.a'
9375   dynamic_linker='OS/2 ld.exe'
9376   shlibpath_var=LIBPATH
9377   ;;
9378
9379 osf3* | osf4* | osf5*)
9380   version_type=osf
9381   need_lib_prefix=no
9382   need_version=no
9383   soname_spec='${libname}${release}${shared_ext}$major'
9384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385   shlibpath_var=LD_LIBRARY_PATH
9386   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9387   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9388   ;;
9389
9390 rdos*)
9391   dynamic_linker=no
9392   ;;
9393
9394 solaris*)
9395   version_type=linux
9396   need_lib_prefix=no
9397   need_version=no
9398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399   soname_spec='${libname}${release}${shared_ext}$major'
9400   shlibpath_var=LD_LIBRARY_PATH
9401   shlibpath_overrides_runpath=yes
9402   hardcode_into_libs=yes
9403   # ldd complains unless libraries are executable
9404   postinstall_cmds='chmod +x $lib'
9405   ;;
9406
9407 sunos4*)
9408   version_type=sunos
9409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9410   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9411   shlibpath_var=LD_LIBRARY_PATH
9412   shlibpath_overrides_runpath=yes
9413   if test "$with_gnu_ld" = yes; then
9414     need_lib_prefix=no
9415   fi
9416   need_version=yes
9417   ;;
9418
9419 sysv4 | sysv4.3*)
9420   version_type=linux
9421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9422   soname_spec='${libname}${release}${shared_ext}$major'
9423   shlibpath_var=LD_LIBRARY_PATH
9424   case $host_vendor in
9425     sni)
9426       shlibpath_overrides_runpath=no
9427       need_lib_prefix=no
9428       export_dynamic_flag_spec='${wl}-Blargedynsym'
9429       runpath_var=LD_RUN_PATH
9430       ;;
9431     siemens)
9432       need_lib_prefix=no
9433       ;;
9434     motorola)
9435       need_lib_prefix=no
9436       need_version=no
9437       shlibpath_overrides_runpath=no
9438       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9439       ;;
9440   esac
9441   ;;
9442
9443 sysv4*MP*)
9444   if test -d /usr/nec ;then
9445     version_type=linux
9446     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9447     soname_spec='$libname${shared_ext}.$major'
9448     shlibpath_var=LD_LIBRARY_PATH
9449   fi
9450   ;;
9451
9452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9453   version_type=freebsd-elf
9454   need_lib_prefix=no
9455   need_version=no
9456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9457   soname_spec='${libname}${release}${shared_ext}$major'
9458   shlibpath_var=LD_LIBRARY_PATH
9459   hardcode_into_libs=yes
9460   if test "$with_gnu_ld" = yes; then
9461     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9462     shlibpath_overrides_runpath=no
9463   else
9464     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9465     shlibpath_overrides_runpath=yes
9466     case $host_os in
9467       sco3.2v5*)
9468         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9469         ;;
9470     esac
9471   fi
9472   sys_lib_dlsearch_path_spec='/usr/lib'
9473   ;;
9474
9475 uts4*)
9476   version_type=linux
9477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478   soname_spec='${libname}${release}${shared_ext}$major'
9479   shlibpath_var=LD_LIBRARY_PATH
9480   ;;
9481
9482 *)
9483   dynamic_linker=no
9484   ;;
9485 esac
9486 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9487 echo "${ECHO_T}$dynamic_linker" >&6; }
9488 test "$dynamic_linker" = no && can_build_shared=no
9489
9490 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9491 if test "$GCC" = yes; then
9492   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9493 fi
9494
9495 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9496 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9497 hardcode_action=
9498 if test -n "$hardcode_libdir_flag_spec" || \
9499    test -n "$runpath_var" || \
9500    test "X$hardcode_automatic" = "Xyes" ; then
9501
9502   # We can hardcode non-existant directories.
9503   if test "$hardcode_direct" != no &&
9504      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9505      # have to relink, otherwise we might link with an installed library
9506      # when we should be linking with a yet-to-be-installed one
9507      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9508      test "$hardcode_minus_L" != no; then
9509     # Linking always hardcodes the temporary library directory.
9510     hardcode_action=relink
9511   else
9512     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9513     hardcode_action=immediate
9514   fi
9515 else
9516   # We cannot hardcode anything, or else we can only hardcode existing
9517   # directories.
9518   hardcode_action=unsupported
9519 fi
9520 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9521 echo "${ECHO_T}$hardcode_action" >&6; }
9522
9523 if test "$hardcode_action" = relink; then
9524   # Fast installation is not supported
9525   enable_fast_install=no
9526 elif test "$shlibpath_overrides_runpath" = yes ||
9527      test "$enable_shared" = no; then
9528   # Fast installation is not necessary
9529   enable_fast_install=needless
9530 fi
9531
9532 striplib=
9533 old_striplib=
9534 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9535 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9536 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9537   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9538   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9539   { echo "$as_me:$LINENO: result: yes" >&5
9540 echo "${ECHO_T}yes" >&6; }
9541 else
9542 # FIXME - insert some real tests, host_os isn't really good enough
9543   case $host_os in
9544    darwin*)
9545        if test -n "$STRIP" ; then
9546          striplib="$STRIP -x"
9547          old_striplib="$STRIP -S"
9548          { echo "$as_me:$LINENO: result: yes" >&5
9549 echo "${ECHO_T}yes" >&6; }
9550        else
9551   { echo "$as_me:$LINENO: result: no" >&5
9552 echo "${ECHO_T}no" >&6; }
9553 fi
9554        ;;
9555    *)
9556   { echo "$as_me:$LINENO: result: no" >&5
9557 echo "${ECHO_T}no" >&6; }
9558     ;;
9559   esac
9560 fi
9561
9562 if test "x$enable_dlopen" != xyes; then
9563   enable_dlopen=unknown
9564   enable_dlopen_self=unknown
9565   enable_dlopen_self_static=unknown
9566 else
9567   lt_cv_dlopen=no
9568   lt_cv_dlopen_libs=
9569
9570   case $host_os in
9571   beos*)
9572     lt_cv_dlopen="load_add_on"
9573     lt_cv_dlopen_libs=
9574     lt_cv_dlopen_self=yes
9575     ;;
9576
9577   mingw* | pw32*)
9578     lt_cv_dlopen="LoadLibrary"
9579     lt_cv_dlopen_libs=
9580    ;;
9581
9582   cygwin*)
9583     lt_cv_dlopen="dlopen"
9584     lt_cv_dlopen_libs=
9585    ;;
9586
9587   darwin*)
9588   # if libdl is installed we need to link against it
9589     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9590 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9591 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9592   echo $ECHO_N "(cached) $ECHO_C" >&6
9593 else
9594   ac_check_lib_save_LIBS=$LIBS
9595 LIBS="-ldl  $LIBS"
9596 cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h.  */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h.  */
9602
9603 /* Override any GCC internal prototype to avoid an error.
9604    Use char because int might match the return type of a GCC
9605    builtin and then its argument prototype would still apply.  */
9606 #ifdef __cplusplus
9607 extern "C"
9608 #endif
9609 char dlopen ();
9610 int
9611 main ()
9612 {
9613 return dlopen ();
9614   ;
9615   return 0;
9616 }
9617 _ACEOF
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (ac_try="$ac_link"
9620 case "(($ac_try" in
9621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622   *) ac_try_echo=$ac_try;;
9623 esac
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625   (eval "$ac_link") 2>conftest.er1
9626   ac_status=$?
9627   grep -v '^ *+' conftest.er1 >conftest.err
9628   rm -f conftest.er1
9629   cat conftest.err >&5
9630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631   (exit $ac_status); } &&
9632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9633   { (case "(($ac_try" in
9634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635   *) ac_try_echo=$ac_try;;
9636 esac
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638   (eval "$ac_try") 2>&5
9639   ac_status=$?
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); }; } &&
9642          { ac_try='test -s conftest$ac_exeext'
9643   { (case "(($ac_try" in
9644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645   *) ac_try_echo=$ac_try;;
9646 esac
9647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648   (eval "$ac_try") 2>&5
9649   ac_status=$?
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); }; }; then
9652   ac_cv_lib_dl_dlopen=yes
9653 else
9654   echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9656
9657         ac_cv_lib_dl_dlopen=no
9658 fi
9659
9660 rm -f core conftest.err conftest.$ac_objext \
9661       conftest$ac_exeext conftest.$ac_ext
9662 LIBS=$ac_check_lib_save_LIBS
9663 fi
9664 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9665 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9666 if test $ac_cv_lib_dl_dlopen = yes; then
9667   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9668 else
9669
9670     lt_cv_dlopen="dyld"
9671     lt_cv_dlopen_libs=
9672     lt_cv_dlopen_self=yes
9673
9674 fi
9675
9676    ;;
9677
9678   *)
9679     { echo "$as_me:$LINENO: checking for shl_load" >&5
9680 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9681 if test "${ac_cv_func_shl_load+set}" = set; then
9682   echo $ECHO_N "(cached) $ECHO_C" >&6
9683 else
9684   cat >conftest.$ac_ext <<_ACEOF
9685 /* confdefs.h.  */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h.  */
9690 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9692 #define shl_load innocuous_shl_load
9693
9694 /* System header to define __stub macros and hopefully few prototypes,
9695     which can conflict with char shl_load (); below.
9696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9697     <limits.h> exists even on freestanding compilers.  */
9698
9699 #ifdef __STDC__
9700 # include <limits.h>
9701 #else
9702 # include <assert.h>
9703 #endif
9704
9705 #undef shl_load
9706
9707 /* Override any GCC internal prototype to avoid an error.
9708    Use char because int might match the return type of a GCC
9709    builtin and then its argument prototype would still apply.  */
9710 #ifdef __cplusplus
9711 extern "C"
9712 #endif
9713 char shl_load ();
9714 /* The GNU C library defines this for functions which it implements
9715     to always fail with ENOSYS.  Some functions are actually named
9716     something starting with __ and the normal name is an alias.  */
9717 #if defined __stub_shl_load || defined __stub___shl_load
9718 choke me
9719 #endif
9720
9721 int
9722 main ()
9723 {
9724 return shl_load ();
9725   ;
9726   return 0;
9727 }
9728 _ACEOF
9729 rm -f conftest.$ac_objext conftest$ac_exeext
9730 if { (ac_try="$ac_link"
9731 case "(($ac_try" in
9732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733   *) ac_try_echo=$ac_try;;
9734 esac
9735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736   (eval "$ac_link") 2>conftest.er1
9737   ac_status=$?
9738   grep -v '^ *+' conftest.er1 >conftest.err
9739   rm -f conftest.er1
9740   cat conftest.err >&5
9741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742   (exit $ac_status); } &&
9743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9744   { (case "(($ac_try" in
9745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746   *) ac_try_echo=$ac_try;;
9747 esac
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749   (eval "$ac_try") 2>&5
9750   ac_status=$?
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); }; } &&
9753          { ac_try='test -s conftest$ac_exeext'
9754   { (case "(($ac_try" in
9755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756   *) ac_try_echo=$ac_try;;
9757 esac
9758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759   (eval "$ac_try") 2>&5
9760   ac_status=$?
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); }; }; then
9763   ac_cv_func_shl_load=yes
9764 else
9765   echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9767
9768         ac_cv_func_shl_load=no
9769 fi
9770
9771 rm -f core conftest.err conftest.$ac_objext \
9772       conftest$ac_exeext conftest.$ac_ext
9773 fi
9774 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9775 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9776 if test $ac_cv_func_shl_load = yes; then
9777   lt_cv_dlopen="shl_load"
9778 else
9779   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9780 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9781 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9782   echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784   ac_check_lib_save_LIBS=$LIBS
9785 LIBS="-ldld  $LIBS"
9786 cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792
9793 /* Override any GCC internal prototype to avoid an error.
9794    Use char because int might match the return type of a GCC
9795    builtin and then its argument prototype would still apply.  */
9796 #ifdef __cplusplus
9797 extern "C"
9798 #endif
9799 char shl_load ();
9800 int
9801 main ()
9802 {
9803 return shl_load ();
9804   ;
9805   return 0;
9806 }
9807 _ACEOF
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (ac_try="$ac_link"
9810 case "(($ac_try" in
9811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812   *) ac_try_echo=$ac_try;;
9813 esac
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815   (eval "$ac_link") 2>conftest.er1
9816   ac_status=$?
9817   grep -v '^ *+' conftest.er1 >conftest.err
9818   rm -f conftest.er1
9819   cat conftest.err >&5
9820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821   (exit $ac_status); } &&
9822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9823   { (case "(($ac_try" in
9824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825   *) ac_try_echo=$ac_try;;
9826 esac
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828   (eval "$ac_try") 2>&5
9829   ac_status=$?
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); }; } &&
9832          { ac_try='test -s conftest$ac_exeext'
9833   { (case "(($ac_try" in
9834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835   *) ac_try_echo=$ac_try;;
9836 esac
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838   (eval "$ac_try") 2>&5
9839   ac_status=$?
9840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841   (exit $ac_status); }; }; then
9842   ac_cv_lib_dld_shl_load=yes
9843 else
9844   echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9846
9847         ac_cv_lib_dld_shl_load=no
9848 fi
9849
9850 rm -f core conftest.err conftest.$ac_objext \
9851       conftest$ac_exeext conftest.$ac_ext
9852 LIBS=$ac_check_lib_save_LIBS
9853 fi
9854 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9855 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9856 if test $ac_cv_lib_dld_shl_load = yes; then
9857   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9858 else
9859   { echo "$as_me:$LINENO: checking for dlopen" >&5
9860 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9861 if test "${ac_cv_func_dlopen+set}" = set; then
9862   echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864   cat >conftest.$ac_ext <<_ACEOF
9865 /* confdefs.h.  */
9866 _ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h.  */
9870 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9871    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9872 #define dlopen innocuous_dlopen
9873
9874 /* System header to define __stub macros and hopefully few prototypes,
9875     which can conflict with char dlopen (); below.
9876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9877     <limits.h> exists even on freestanding compilers.  */
9878
9879 #ifdef __STDC__
9880 # include <limits.h>
9881 #else
9882 # include <assert.h>
9883 #endif
9884
9885 #undef dlopen
9886
9887 /* Override any GCC internal prototype to avoid an error.
9888    Use char because int might match the return type of a GCC
9889    builtin and then its argument prototype would still apply.  */
9890 #ifdef __cplusplus
9891 extern "C"
9892 #endif
9893 char dlopen ();
9894 /* The GNU C library defines this for functions which it implements
9895     to always fail with ENOSYS.  Some functions are actually named
9896     something starting with __ and the normal name is an alias.  */
9897 #if defined __stub_dlopen || defined __stub___dlopen
9898 choke me
9899 #endif
9900
9901 int
9902 main ()
9903 {
9904 return dlopen ();
9905   ;
9906   return 0;
9907 }
9908 _ACEOF
9909 rm -f conftest.$ac_objext conftest$ac_exeext
9910 if { (ac_try="$ac_link"
9911 case "(($ac_try" in
9912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913   *) ac_try_echo=$ac_try;;
9914 esac
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916   (eval "$ac_link") 2>conftest.er1
9917   ac_status=$?
9918   grep -v '^ *+' conftest.er1 >conftest.err
9919   rm -f conftest.er1
9920   cat conftest.err >&5
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); } &&
9923          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9924   { (case "(($ac_try" in
9925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926   *) ac_try_echo=$ac_try;;
9927 esac
9928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9929   (eval "$ac_try") 2>&5
9930   ac_status=$?
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); }; } &&
9933          { ac_try='test -s conftest$ac_exeext'
9934   { (case "(($ac_try" in
9935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936   *) ac_try_echo=$ac_try;;
9937 esac
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939   (eval "$ac_try") 2>&5
9940   ac_status=$?
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); }; }; then
9943   ac_cv_func_dlopen=yes
9944 else
9945   echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948         ac_cv_func_dlopen=no
9949 fi
9950
9951 rm -f core conftest.err conftest.$ac_objext \
9952       conftest$ac_exeext conftest.$ac_ext
9953 fi
9954 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9955 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9956 if test $ac_cv_func_dlopen = yes; then
9957   lt_cv_dlopen="dlopen"
9958 else
9959   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9960 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9961 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9962   echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964   ac_check_lib_save_LIBS=$LIBS
9965 LIBS="-ldl  $LIBS"
9966 cat >conftest.$ac_ext <<_ACEOF
9967 /* confdefs.h.  */
9968 _ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h.  */
9972
9973 /* Override any GCC internal prototype to avoid an error.
9974    Use char because int might match the return type of a GCC
9975    builtin and then its argument prototype would still apply.  */
9976 #ifdef __cplusplus
9977 extern "C"
9978 #endif
9979 char dlopen ();
9980 int
9981 main ()
9982 {
9983 return dlopen ();
9984   ;
9985   return 0;
9986 }
9987 _ACEOF
9988 rm -f conftest.$ac_objext conftest$ac_exeext
9989 if { (ac_try="$ac_link"
9990 case "(($ac_try" in
9991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992   *) ac_try_echo=$ac_try;;
9993 esac
9994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9995   (eval "$ac_link") 2>conftest.er1
9996   ac_status=$?
9997   grep -v '^ *+' conftest.er1 >conftest.err
9998   rm -f conftest.er1
9999   cat conftest.err >&5
10000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); } &&
10002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10003   { (case "(($ac_try" in
10004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005   *) ac_try_echo=$ac_try;;
10006 esac
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008   (eval "$ac_try") 2>&5
10009   ac_status=$?
10010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011   (exit $ac_status); }; } &&
10012          { ac_try='test -s conftest$ac_exeext'
10013   { (case "(($ac_try" in
10014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015   *) ac_try_echo=$ac_try;;
10016 esac
10017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018   (eval "$ac_try") 2>&5
10019   ac_status=$?
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); }; }; then
10022   ac_cv_lib_dl_dlopen=yes
10023 else
10024   echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10026
10027         ac_cv_lib_dl_dlopen=no
10028 fi
10029
10030 rm -f core conftest.err conftest.$ac_objext \
10031       conftest$ac_exeext conftest.$ac_ext
10032 LIBS=$ac_check_lib_save_LIBS
10033 fi
10034 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10035 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10036 if test $ac_cv_lib_dl_dlopen = yes; then
10037   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10038 else
10039   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10040 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10041 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10042   echo $ECHO_N "(cached) $ECHO_C" >&6
10043 else
10044   ac_check_lib_save_LIBS=$LIBS
10045 LIBS="-lsvld  $LIBS"
10046 cat >conftest.$ac_ext <<_ACEOF
10047 /* confdefs.h.  */
10048 _ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h.  */
10052
10053 /* Override any GCC internal prototype to avoid an error.
10054    Use char because int might match the return type of a GCC
10055    builtin and then its argument prototype would still apply.  */
10056 #ifdef __cplusplus
10057 extern "C"
10058 #endif
10059 char dlopen ();
10060 int
10061 main ()
10062 {
10063 return dlopen ();
10064   ;
10065   return 0;
10066 }
10067 _ACEOF
10068 rm -f conftest.$ac_objext conftest$ac_exeext
10069 if { (ac_try="$ac_link"
10070 case "(($ac_try" in
10071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072   *) ac_try_echo=$ac_try;;
10073 esac
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075   (eval "$ac_link") 2>conftest.er1
10076   ac_status=$?
10077   grep -v '^ *+' conftest.er1 >conftest.err
10078   rm -f conftest.er1
10079   cat conftest.err >&5
10080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081   (exit $ac_status); } &&
10082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10083   { (case "(($ac_try" in
10084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085   *) ac_try_echo=$ac_try;;
10086 esac
10087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10088   (eval "$ac_try") 2>&5
10089   ac_status=$?
10090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091   (exit $ac_status); }; } &&
10092          { ac_try='test -s conftest$ac_exeext'
10093   { (case "(($ac_try" in
10094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095   *) ac_try_echo=$ac_try;;
10096 esac
10097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098   (eval "$ac_try") 2>&5
10099   ac_status=$?
10100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); }; }; then
10102   ac_cv_lib_svld_dlopen=yes
10103 else
10104   echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10106
10107         ac_cv_lib_svld_dlopen=no
10108 fi
10109
10110 rm -f core conftest.err conftest.$ac_objext \
10111       conftest$ac_exeext conftest.$ac_ext
10112 LIBS=$ac_check_lib_save_LIBS
10113 fi
10114 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10115 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10116 if test $ac_cv_lib_svld_dlopen = yes; then
10117   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10118 else
10119   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10120 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10121 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10122   echo $ECHO_N "(cached) $ECHO_C" >&6
10123 else
10124   ac_check_lib_save_LIBS=$LIBS
10125 LIBS="-ldld  $LIBS"
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h.  */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h.  */
10132
10133 /* Override any GCC internal prototype to avoid an error.
10134    Use char because int might match the return type of a GCC
10135    builtin and then its argument prototype would still apply.  */
10136 #ifdef __cplusplus
10137 extern "C"
10138 #endif
10139 char dld_link ();
10140 int
10141 main ()
10142 {
10143 return dld_link ();
10144   ;
10145   return 0;
10146 }
10147 _ACEOF
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (ac_try="$ac_link"
10150 case "(($ac_try" in
10151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152   *) ac_try_echo=$ac_try;;
10153 esac
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155   (eval "$ac_link") 2>conftest.er1
10156   ac_status=$?
10157   grep -v '^ *+' conftest.er1 >conftest.err
10158   rm -f conftest.er1
10159   cat conftest.err >&5
10160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); } &&
10162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10163   { (case "(($ac_try" in
10164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165   *) ac_try_echo=$ac_try;;
10166 esac
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168   (eval "$ac_try") 2>&5
10169   ac_status=$?
10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); }; } &&
10172          { ac_try='test -s conftest$ac_exeext'
10173   { (case "(($ac_try" in
10174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175   *) ac_try_echo=$ac_try;;
10176 esac
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178   (eval "$ac_try") 2>&5
10179   ac_status=$?
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); }; }; then
10182   ac_cv_lib_dld_dld_link=yes
10183 else
10184   echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10186
10187         ac_cv_lib_dld_dld_link=no
10188 fi
10189
10190 rm -f core conftest.err conftest.$ac_objext \
10191       conftest$ac_exeext conftest.$ac_ext
10192 LIBS=$ac_check_lib_save_LIBS
10193 fi
10194 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10195 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10196 if test $ac_cv_lib_dld_dld_link = yes; then
10197   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10198 fi
10199
10200
10201 fi
10202
10203
10204 fi
10205
10206
10207 fi
10208
10209
10210 fi
10211
10212
10213 fi
10214
10215     ;;
10216   esac
10217
10218   if test "x$lt_cv_dlopen" != xno; then
10219     enable_dlopen=yes
10220   else
10221     enable_dlopen=no
10222   fi
10223
10224   case $lt_cv_dlopen in
10225   dlopen)
10226     save_CPPFLAGS="$CPPFLAGS"
10227     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10228
10229     save_LDFLAGS="$LDFLAGS"
10230     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10231
10232     save_LIBS="$LIBS"
10233     LIBS="$lt_cv_dlopen_libs $LIBS"
10234
10235     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10236 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10237 if test "${lt_cv_dlopen_self+set}" = set; then
10238   echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240           if test "$cross_compiling" = yes; then :
10241   lt_cv_dlopen_self=cross
10242 else
10243   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10244   lt_status=$lt_dlunknown
10245   cat > conftest.$ac_ext <<EOF
10246 #line 10246 "configure"
10247 #include "confdefs.h"
10248
10249 #if HAVE_DLFCN_H
10250 #include <dlfcn.h>
10251 #endif
10252
10253 #include <stdio.h>
10254
10255 #ifdef RTLD_GLOBAL
10256 #  define LT_DLGLOBAL           RTLD_GLOBAL
10257 #else
10258 #  ifdef DL_GLOBAL
10259 #    define LT_DLGLOBAL         DL_GLOBAL
10260 #  else
10261 #    define LT_DLGLOBAL         0
10262 #  endif
10263 #endif
10264
10265 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10266    find out it does not work in some platform. */
10267 #ifndef LT_DLLAZY_OR_NOW
10268 #  ifdef RTLD_LAZY
10269 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10270 #  else
10271 #    ifdef DL_LAZY
10272 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10273 #    else
10274 #      ifdef RTLD_NOW
10275 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10276 #      else
10277 #        ifdef DL_NOW
10278 #          define LT_DLLAZY_OR_NOW      DL_NOW
10279 #        else
10280 #          define LT_DLLAZY_OR_NOW      0
10281 #        endif
10282 #      endif
10283 #    endif
10284 #  endif
10285 #endif
10286
10287 #ifdef __cplusplus
10288 extern "C" void exit (int);
10289 #endif
10290
10291 void fnord() { int i=42;}
10292 int main ()
10293 {
10294   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10295   int status = $lt_dlunknown;
10296
10297   if (self)
10298     {
10299       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10300       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10301       /* dlclose (self); */
10302     }
10303   else
10304     puts (dlerror ());
10305
10306     exit (status);
10307 }
10308 EOF
10309   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10310   (eval $ac_link) 2>&5
10311   ac_status=$?
10312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10314     (./conftest; exit; ) >&5 2>/dev/null
10315     lt_status=$?
10316     case x$lt_status in
10317       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10318       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10319       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10320     esac
10321   else :
10322     # compilation failed
10323     lt_cv_dlopen_self=no
10324   fi
10325 fi
10326 rm -fr conftest*
10327
10328
10329 fi
10330 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10331 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10332
10333     if test "x$lt_cv_dlopen_self" = xyes; then
10334       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10335       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10336 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10337 if test "${lt_cv_dlopen_self_static+set}" = set; then
10338   echo $ECHO_N "(cached) $ECHO_C" >&6
10339 else
10340           if test "$cross_compiling" = yes; then :
10341   lt_cv_dlopen_self_static=cross
10342 else
10343   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10344   lt_status=$lt_dlunknown
10345   cat > conftest.$ac_ext <<EOF
10346 #line 10346 "configure"
10347 #include "confdefs.h"
10348
10349 #if HAVE_DLFCN_H
10350 #include <dlfcn.h>
10351 #endif
10352
10353 #include <stdio.h>
10354
10355 #ifdef RTLD_GLOBAL
10356 #  define LT_DLGLOBAL           RTLD_GLOBAL
10357 #else
10358 #  ifdef DL_GLOBAL
10359 #    define LT_DLGLOBAL         DL_GLOBAL
10360 #  else
10361 #    define LT_DLGLOBAL         0
10362 #  endif
10363 #endif
10364
10365 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10366    find out it does not work in some platform. */
10367 #ifndef LT_DLLAZY_OR_NOW
10368 #  ifdef RTLD_LAZY
10369 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10370 #  else
10371 #    ifdef DL_LAZY
10372 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10373 #    else
10374 #      ifdef RTLD_NOW
10375 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10376 #      else
10377 #        ifdef DL_NOW
10378 #          define LT_DLLAZY_OR_NOW      DL_NOW
10379 #        else
10380 #          define LT_DLLAZY_OR_NOW      0
10381 #        endif
10382 #      endif
10383 #    endif
10384 #  endif
10385 #endif
10386
10387 #ifdef __cplusplus
10388 extern "C" void exit (int);
10389 #endif
10390
10391 void fnord() { int i=42;}
10392 int main ()
10393 {
10394   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10395   int status = $lt_dlunknown;
10396
10397   if (self)
10398     {
10399       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10400       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10401       /* dlclose (self); */
10402     }
10403   else
10404     puts (dlerror ());
10405
10406     exit (status);
10407 }
10408 EOF
10409   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10410   (eval $ac_link) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10414     (./conftest; exit; ) >&5 2>/dev/null
10415     lt_status=$?
10416     case x$lt_status in
10417       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10418       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10419       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10420     esac
10421   else :
10422     # compilation failed
10423     lt_cv_dlopen_self_static=no
10424   fi
10425 fi
10426 rm -fr conftest*
10427
10428
10429 fi
10430 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10431 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10432     fi
10433
10434     CPPFLAGS="$save_CPPFLAGS"
10435     LDFLAGS="$save_LDFLAGS"
10436     LIBS="$save_LIBS"
10437     ;;
10438   esac
10439
10440   case $lt_cv_dlopen_self in
10441   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10442   *) enable_dlopen_self=unknown ;;
10443   esac
10444
10445   case $lt_cv_dlopen_self_static in
10446   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10447   *) enable_dlopen_self_static=unknown ;;
10448   esac
10449 fi
10450
10451
10452 # Report which library types will actually be built
10453 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10454 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10455 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10456 echo "${ECHO_T}$can_build_shared" >&6; }
10457
10458 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10459 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10460 test "$can_build_shared" = "no" && enable_shared=no
10461
10462 # On AIX, shared libraries and static libraries use the same namespace, and
10463 # are all built from PIC.
10464 case $host_os in
10465 aix3*)
10466   test "$enable_shared" = yes && enable_static=no
10467   if test -n "$RANLIB"; then
10468     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10469     postinstall_cmds='$RANLIB $lib'
10470   fi
10471   ;;
10472
10473 aix4* | aix5*)
10474   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10475     test "$enable_shared" = yes && enable_static=no
10476   fi
10477     ;;
10478 esac
10479 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10480 echo "${ECHO_T}$enable_shared" >&6; }
10481
10482 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10483 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10484 # Make sure either enable_shared or enable_static is yes.
10485 test "$enable_shared" = yes || enable_static=yes
10486 { echo "$as_me:$LINENO: result: $enable_static" >&5
10487 echo "${ECHO_T}$enable_static" >&6; }
10488
10489 # The else clause should only fire when bootstrapping the
10490 # libtool distribution, otherwise you forgot to ship ltmain.sh
10491 # with your package, and you will get complaints that there are
10492 # no rules to generate ltmain.sh.
10493 if test -f "$ltmain"; then
10494   # See if we are running on zsh, and set the options which allow our commands through
10495   # without removal of \ escapes.
10496   if test -n "${ZSH_VERSION+set}" ; then
10497     setopt NO_GLOB_SUBST
10498   fi
10499   # Now quote all the things that may contain metacharacters while being
10500   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10501   # variables and quote the copies for generation of the libtool script.
10502   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10503     SED SHELL STRIP \
10504     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10505     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10506     deplibs_check_method reload_flag reload_cmds need_locks \
10507     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10508     lt_cv_sys_global_symbol_to_c_name_address \
10509     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10510     old_postinstall_cmds old_postuninstall_cmds \
10511     compiler \
10512     CC \
10513     LD \
10514     lt_prog_compiler_wl \
10515     lt_prog_compiler_pic \
10516     lt_prog_compiler_static \
10517     lt_prog_compiler_no_builtin_flag \
10518     export_dynamic_flag_spec \
10519     thread_safe_flag_spec \
10520     whole_archive_flag_spec \
10521     enable_shared_with_static_runtimes \
10522     old_archive_cmds \
10523     old_archive_from_new_cmds \
10524     predep_objects \
10525     postdep_objects \
10526     predeps \
10527     postdeps \
10528     compiler_lib_search_path \
10529     archive_cmds \
10530     archive_expsym_cmds \
10531     postinstall_cmds \
10532     postuninstall_cmds \
10533     old_archive_from_expsyms_cmds \
10534     allow_undefined_flag \
10535     no_undefined_flag \
10536     export_symbols_cmds \
10537     hardcode_libdir_flag_spec \
10538     hardcode_libdir_flag_spec_ld \
10539     hardcode_libdir_separator \
10540     hardcode_automatic \
10541     module_cmds \
10542     module_expsym_cmds \
10543     lt_cv_prog_compiler_c_o \
10544     fix_srcfile_path \
10545     exclude_expsyms \
10546     include_expsyms; do
10547
10548     case $var in
10549     old_archive_cmds | \
10550     old_archive_from_new_cmds | \
10551     archive_cmds | \
10552     archive_expsym_cmds | \
10553     module_cmds | \
10554     module_expsym_cmds | \
10555     old_archive_from_expsyms_cmds | \
10556     export_symbols_cmds | \
10557     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10558     postinstall_cmds | postuninstall_cmds | \
10559     old_postinstall_cmds | old_postuninstall_cmds | \
10560     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10561       # Double-quote double-evaled strings.
10562       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10563       ;;
10564     *)
10565       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10566       ;;
10567     esac
10568   done
10569
10570   case $lt_echo in
10571   *'\$0 --fallback-echo"')
10572     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10573     ;;
10574   esac
10575
10576 cfgfile="${ofile}T"
10577   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10578   $rm -f "$cfgfile"
10579   { echo "$as_me:$LINENO: creating $ofile" >&5
10580 echo "$as_me: creating $ofile" >&6;}
10581
10582   cat <<__EOF__ >> "$cfgfile"
10583 #! $SHELL
10584
10585 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10586 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10587 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10588 #
10589 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10590 # Free Software Foundation, Inc.
10591 #
10592 # This file is part of GNU Libtool:
10593 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10594 #
10595 # This program is free software; you can redistribute it and/or modify
10596 # it under the terms of the GNU General Public License as published by
10597 # the Free Software Foundation; either version 2 of the License, or
10598 # (at your option) any later version.
10599 #
10600 # This program is distributed in the hope that it will be useful, but
10601 # WITHOUT ANY WARRANTY; without even the implied warranty of
10602 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10603 # General Public License for more details.
10604 #
10605 # You should have received a copy of the GNU General Public License
10606 # along with this program; if not, write to the Free Software
10607 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10608 #
10609 # As a special exception to the GNU General Public License, if you
10610 # distribute this file as part of a program that contains a
10611 # configuration script generated by Autoconf, you may include it under
10612 # the same distribution terms that you use for the rest of that program.
10613
10614 # A sed program that does not truncate output.
10615 SED=$lt_SED
10616
10617 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10618 Xsed="$SED -e 1s/^X//"
10619
10620 # The HP-UX ksh and POSIX shell print the target directory to stdout
10621 # if CDPATH is set.
10622 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10623
10624 # The names of the tagged configurations supported by this script.
10625 available_tags=
10626
10627 # ### BEGIN LIBTOOL CONFIG
10628
10629 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10630
10631 # Shell to use when invoking shell scripts.
10632 SHELL=$lt_SHELL
10633
10634 # Whether or not to build shared libraries.
10635 build_libtool_libs=$enable_shared
10636
10637 # Whether or not to build static libraries.
10638 build_old_libs=$enable_static
10639
10640 # Whether or not to add -lc for building shared libraries.
10641 build_libtool_need_lc=$archive_cmds_need_lc
10642
10643 # Whether or not to disallow shared libs when runtime libs are static
10644 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10645
10646 # Whether or not to optimize for fast installation.
10647 fast_install=$enable_fast_install
10648
10649 # The host system.
10650 host_alias=$host_alias
10651 host=$host
10652 host_os=$host_os
10653
10654 # The build system.
10655 build_alias=$build_alias
10656 build=$build
10657 build_os=$build_os
10658
10659 # An echo program that does not interpret backslashes.
10660 echo=$lt_echo
10661
10662 # The archiver.
10663 AR=$lt_AR
10664 AR_FLAGS=$lt_AR_FLAGS
10665
10666 # A C compiler.
10667 LTCC=$lt_LTCC
10668
10669 # LTCC compiler flags.
10670 LTCFLAGS=$lt_LTCFLAGS
10671
10672 # A language-specific compiler.
10673 CC=$lt_compiler
10674
10675 # Is the compiler the GNU C compiler?
10676 with_gcc=$GCC
10677
10678 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10679 gcc_ver=\`gcc -dumpversion\`
10680
10681 # An ERE matcher.
10682 EGREP=$lt_EGREP
10683
10684 # The linker used to build libraries.
10685 LD=$lt_LD
10686
10687 # Whether we need hard or soft links.
10688 LN_S=$lt_LN_S
10689
10690 # A BSD-compatible nm program.
10691 NM=$lt_NM
10692
10693 # A symbol stripping program
10694 STRIP=$lt_STRIP
10695
10696 # Used to examine libraries when file_magic_cmd begins "file"
10697 MAGIC_CMD=$MAGIC_CMD
10698
10699 # Used on cygwin: DLL creation program.
10700 DLLTOOL="$DLLTOOL"
10701
10702 # Used on cygwin: object dumper.
10703 OBJDUMP="$OBJDUMP"
10704
10705 # Used on cygwin: assembler.
10706 AS="$AS"
10707
10708 # The name of the directory that contains temporary libtool files.
10709 objdir=$objdir
10710
10711 # How to create reloadable object files.
10712 reload_flag=$lt_reload_flag
10713 reload_cmds=$lt_reload_cmds
10714
10715 # How to pass a linker flag through the compiler.
10716 wl=$lt_lt_prog_compiler_wl
10717
10718 # Object file suffix (normally "o").
10719 objext="$ac_objext"
10720
10721 # Old archive suffix (normally "a").
10722 libext="$libext"
10723
10724 # Shared library suffix (normally ".so").
10725 shrext_cmds='$shrext_cmds'
10726
10727 # Executable file suffix (normally "").
10728 exeext="$exeext"
10729
10730 # Additional compiler flags for building library objects.
10731 pic_flag=$lt_lt_prog_compiler_pic
10732 pic_mode=$pic_mode
10733
10734 # What is the maximum length of a command?
10735 max_cmd_len=$lt_cv_sys_max_cmd_len
10736
10737 # Does compiler simultaneously support -c and -o options?
10738 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10739
10740 # Must we lock files when doing compilation?
10741 need_locks=$lt_need_locks
10742
10743 # Do we need the lib prefix for modules?
10744 need_lib_prefix=$need_lib_prefix
10745
10746 # Do we need a version for libraries?
10747 need_version=$need_version
10748
10749 # Whether dlopen is supported.
10750 dlopen_support=$enable_dlopen
10751
10752 # Whether dlopen of programs is supported.
10753 dlopen_self=$enable_dlopen_self
10754
10755 # Whether dlopen of statically linked programs is supported.
10756 dlopen_self_static=$enable_dlopen_self_static
10757
10758 # Compiler flag to prevent dynamic linking.
10759 link_static_flag=$lt_lt_prog_compiler_static
10760
10761 # Compiler flag to turn off builtin functions.
10762 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10763
10764 # Compiler flag to allow reflexive dlopens.
10765 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10766
10767 # Compiler flag to generate shared objects directly from archives.
10768 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10769
10770 # Compiler flag to generate thread-safe objects.
10771 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10772
10773 # Library versioning type.
10774 version_type=$version_type
10775
10776 # Format of library name prefix.
10777 libname_spec=$lt_libname_spec
10778
10779 # List of archive names.  First name is the real one, the rest are links.
10780 # The last name is the one that the linker finds with -lNAME.
10781 library_names_spec=$lt_library_names_spec
10782
10783 # The coded name of the library, if different from the real name.
10784 soname_spec=$lt_soname_spec
10785
10786 # Commands used to build and install an old-style archive.
10787 RANLIB=$lt_RANLIB
10788 old_archive_cmds=$lt_old_archive_cmds
10789 old_postinstall_cmds=$lt_old_postinstall_cmds
10790 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10791
10792 # Create an old-style archive from a shared archive.
10793 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10794
10795 # Create a temporary old-style archive to link instead of a shared archive.
10796 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10797
10798 # Commands used to build and install a shared archive.
10799 archive_cmds=$lt_archive_cmds
10800 archive_expsym_cmds=$lt_archive_expsym_cmds
10801 postinstall_cmds=$lt_postinstall_cmds
10802 postuninstall_cmds=$lt_postuninstall_cmds
10803
10804 # Commands used to build a loadable module (assumed same as above if empty)
10805 module_cmds=$lt_module_cmds
10806 module_expsym_cmds=$lt_module_expsym_cmds
10807
10808 # Commands to strip libraries.
10809 old_striplib=$lt_old_striplib
10810 striplib=$lt_striplib
10811
10812 # Dependencies to place before the objects being linked to create a
10813 # shared library.
10814 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10815
10816 # Dependencies to place after the objects being linked to create a
10817 # shared library.
10818 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10819
10820 # Dependencies to place before the objects being linked to create a
10821 # shared library.
10822 predeps=$lt_predeps
10823
10824 # Dependencies to place after the objects being linked to create a
10825 # shared library.
10826 postdeps=$lt_postdeps
10827
10828 # The library search path used internally by the compiler when linking
10829 # a shared library.
10830 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10831
10832 # Method to check whether dependent libraries are shared objects.
10833 deplibs_check_method=$lt_deplibs_check_method
10834
10835 # Command to use when deplibs_check_method == file_magic.
10836 file_magic_cmd=$lt_file_magic_cmd
10837
10838 # Flag that allows shared libraries with undefined symbols to be built.
10839 allow_undefined_flag=$lt_allow_undefined_flag
10840
10841 # Flag that forces no undefined symbols.
10842 no_undefined_flag=$lt_no_undefined_flag
10843
10844 # Commands used to finish a libtool library installation in a directory.
10845 finish_cmds=$lt_finish_cmds
10846
10847 # Same as above, but a single script fragment to be evaled but not shown.
10848 finish_eval=$lt_finish_eval
10849
10850 # Take the output of nm and produce a listing of raw symbols and C names.
10851 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10852
10853 # Transform the output of nm in a proper C declaration
10854 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10855
10856 # Transform the output of nm in a C name address pair
10857 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10858
10859 # This is the shared library runtime path variable.
10860 runpath_var=$runpath_var
10861
10862 # This is the shared library path variable.
10863 shlibpath_var=$shlibpath_var
10864
10865 # Is shlibpath searched before the hard-coded library search path?
10866 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10867
10868 # How to hardcode a shared library path into an executable.
10869 hardcode_action=$hardcode_action
10870
10871 # Whether we should hardcode library paths into libraries.
10872 hardcode_into_libs=$hardcode_into_libs
10873
10874 # Flag to hardcode \$libdir into a binary during linking.
10875 # This must work even if \$libdir does not exist.
10876 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10877
10878 # If ld is used when linking, flag to hardcode \$libdir into
10879 # a binary during linking. This must work even if \$libdir does
10880 # not exist.
10881 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10882
10883 # Whether we need a single -rpath flag with a separated argument.
10884 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10885
10886 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10887 # resulting binary.
10888 hardcode_direct=$hardcode_direct
10889
10890 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10891 # resulting binary.
10892 hardcode_minus_L=$hardcode_minus_L
10893
10894 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10895 # the resulting binary.
10896 hardcode_shlibpath_var=$hardcode_shlibpath_var
10897
10898 # Set to yes if building a shared library automatically hardcodes DIR into the library
10899 # and all subsequent libraries and executables linked against it.
10900 hardcode_automatic=$hardcode_automatic
10901
10902 # Variables whose values should be saved in libtool wrapper scripts and
10903 # restored at relink time.
10904 variables_saved_for_relink="$variables_saved_for_relink"
10905
10906 # Whether libtool must link a program against all its dependency libraries.
10907 link_all_deplibs=$link_all_deplibs
10908
10909 # Compile-time system search path for libraries
10910 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10911
10912 # Run-time system search path for libraries
10913 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10914
10915 # Fix the shell variable \$srcfile for the compiler.
10916 fix_srcfile_path=$lt_fix_srcfile_path
10917
10918 # Set to yes if exported symbols are required.
10919 always_export_symbols=$always_export_symbols
10920
10921 # The commands to list exported symbols.
10922 export_symbols_cmds=$lt_export_symbols_cmds
10923
10924 # The commands to extract the exported symbol list from a shared archive.
10925 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10926
10927 # Symbols that should not be listed in the preloaded symbols.
10928 exclude_expsyms=$lt_exclude_expsyms
10929
10930 # Symbols that must always be exported.
10931 include_expsyms=$lt_include_expsyms
10932
10933 # ### END LIBTOOL CONFIG
10934
10935 __EOF__
10936
10937
10938   case $host_os in
10939   aix3*)
10940     cat <<\EOF >> "$cfgfile"
10941
10942 # AIX sometimes has problems with the GCC collect2 program.  For some
10943 # reason, if we set the COLLECT_NAMES environment variable, the problems
10944 # vanish in a puff of smoke.
10945 if test "X${COLLECT_NAMES+set}" != Xset; then
10946   COLLECT_NAMES=
10947   export COLLECT_NAMES
10948 fi
10949 EOF
10950     ;;
10951   esac
10952
10953   # We use sed instead of cat because bash on DJGPP gets confused if
10954   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10955   # text mode, it properly converts lines to CR/LF.  This bash problem
10956   # is reportedly fixed, but why not run on old versions too?
10957   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10958
10959   mv -f "$cfgfile" "$ofile" || \
10960     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10961   chmod +x "$ofile"
10962
10963 else
10964   # If there is no Makefile yet, we rely on a make rule to execute
10965   # `config.status --recheck' to rerun these tests and create the
10966   # libtool script then.
10967   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10968   if test -f "$ltmain_in"; then
10969     test -f Makefile && make "$ltmain"
10970   fi
10971 fi
10972
10973
10974 ac_ext=c
10975 ac_cpp='$CPP $CPPFLAGS'
10976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10979
10980 CC="$lt_save_CC"
10981
10982
10983 # Check whether --with-tags was given.
10984 if test "${with_tags+set}" = set; then
10985   withval=$with_tags; tagnames="$withval"
10986 fi
10987
10988
10989 if test -f "$ltmain" && test -n "$tagnames"; then
10990   if test ! -f "${ofile}"; then
10991     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10992 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10993   fi
10994
10995   if test -z "$LTCC"; then
10996     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10997     if test -z "$LTCC"; then
10998       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10999 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11000     else
11001       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11002 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11003     fi
11004   fi
11005   if test -z "$LTCFLAGS"; then
11006     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11007   fi
11008
11009   # Extract list of available tagged configurations in $ofile.
11010   # Note that this assumes the entire list is on one line.
11011   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11012
11013   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11014   for tagname in $tagnames; do
11015     IFS="$lt_save_ifs"
11016     # Check whether tagname contains only valid characters
11017     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11018     "") ;;
11019     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11020 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11021    { (exit 1); exit 1; }; }
11022         ;;
11023     esac
11024
11025     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11026     then
11027       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11028 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11029    { (exit 1); exit 1; }; }
11030     fi
11031
11032     # Update the list of available tags.
11033     if test -n "$tagname"; then
11034       echo appending configuration tag \"$tagname\" to $ofile
11035
11036       case $tagname in
11037       CXX)
11038         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11039             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11040             (test "X$CXX" != "Xg++"))) ; then
11041           ac_ext=cpp
11042 ac_cpp='$CXXCPP $CPPFLAGS'
11043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11046
11047
11048
11049
11050 archive_cmds_need_lc_CXX=no
11051 allow_undefined_flag_CXX=
11052 always_export_symbols_CXX=no
11053 archive_expsym_cmds_CXX=
11054 export_dynamic_flag_spec_CXX=
11055 hardcode_direct_CXX=no
11056 hardcode_libdir_flag_spec_CXX=
11057 hardcode_libdir_flag_spec_ld_CXX=
11058 hardcode_libdir_separator_CXX=
11059 hardcode_minus_L_CXX=no
11060 hardcode_shlibpath_var_CXX=unsupported
11061 hardcode_automatic_CXX=no
11062 module_cmds_CXX=
11063 module_expsym_cmds_CXX=
11064 link_all_deplibs_CXX=unknown
11065 old_archive_cmds_CXX=$old_archive_cmds
11066 no_undefined_flag_CXX=
11067 whole_archive_flag_spec_CXX=
11068 enable_shared_with_static_runtimes_CXX=no
11069
11070 # Dependencies to place before and after the object being linked:
11071 predep_objects_CXX=
11072 postdep_objects_CXX=
11073 predeps_CXX=
11074 postdeps_CXX=
11075 compiler_lib_search_path_CXX=
11076
11077 # Source file extension for C++ test sources.
11078 ac_ext=cpp
11079
11080 # Object file extension for compiled C++ test sources.
11081 objext=o
11082 objext_CXX=$objext
11083
11084 # Code to be used in simple compile tests
11085 lt_simple_compile_test_code="int some_variable = 0;"
11086
11087 # Code to be used in simple link tests
11088 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11089
11090 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11091
11092 # If no C compiler was specified, use CC.
11093 LTCC=${LTCC-"$CC"}
11094
11095 # If no C compiler flags were specified, use CFLAGS.
11096 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11097
11098 # Allow CC to be a program name with arguments.
11099 compiler=$CC
11100
11101
11102 # save warnings/boilerplate of simple test code
11103 ac_outfile=conftest.$ac_objext
11104 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11105 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11106 _lt_compiler_boilerplate=`cat conftest.err`
11107 $rm conftest*
11108
11109 ac_outfile=conftest.$ac_objext
11110 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11111 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11112 _lt_linker_boilerplate=`cat conftest.err`
11113 $rm conftest*
11114
11115
11116 # Allow CC to be a program name with arguments.
11117 lt_save_CC=$CC
11118 lt_save_LD=$LD
11119 lt_save_GCC=$GCC
11120 GCC=$GXX
11121 lt_save_with_gnu_ld=$with_gnu_ld
11122 lt_save_path_LD=$lt_cv_path_LD
11123 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11124   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11125 else
11126   $as_unset lt_cv_prog_gnu_ld
11127 fi
11128 if test -n "${lt_cv_path_LDCXX+set}"; then
11129   lt_cv_path_LD=$lt_cv_path_LDCXX
11130 else
11131   $as_unset lt_cv_path_LD
11132 fi
11133 test -z "${LDCXX+set}" || LD=$LDCXX
11134 CC=${CXX-"c++"}
11135 compiler=$CC
11136 compiler_CXX=$CC
11137 for cc_temp in $compiler""; do
11138   case $cc_temp in
11139     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11140     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11141     \-*) ;;
11142     *) break;;
11143   esac
11144 done
11145 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11146
11147
11148 # We don't want -fno-exception wen compiling C++ code, so set the
11149 # no_builtin_flag separately
11150 if test "$GXX" = yes; then
11151   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11152 else
11153   lt_prog_compiler_no_builtin_flag_CXX=
11154 fi
11155
11156 if test "$GXX" = yes; then
11157   # Set up default GNU C++ configuration
11158
11159
11160 # Check whether --with-gnu-ld was given.
11161 if test "${with_gnu_ld+set}" = set; then
11162   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11163 else
11164   with_gnu_ld=no
11165 fi
11166
11167 ac_prog=ld
11168 if test "$GCC" = yes; then
11169   # Check if gcc -print-prog-name=ld gives a path.
11170   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11171 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11172   case $host in
11173   *-*-mingw*)
11174     # gcc leaves a trailing carriage return which upsets mingw
11175     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11176   *)
11177     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11178   esac
11179   case $ac_prog in
11180     # Accept absolute paths.
11181     [\\/]* | ?:[\\/]*)
11182       re_direlt='/[^/][^/]*/\.\./'
11183       # Canonicalize the pathname of ld
11184       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11185       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11186         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11187       done
11188       test -z "$LD" && LD="$ac_prog"
11189       ;;
11190   "")
11191     # If it fails, then pretend we aren't using GCC.
11192     ac_prog=ld
11193     ;;
11194   *)
11195     # If it is relative, then search for the first ld in PATH.
11196     with_gnu_ld=unknown
11197     ;;
11198   esac
11199 elif test "$with_gnu_ld" = yes; then
11200   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11201 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11202 else
11203   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11204 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11205 fi
11206 if test "${lt_cv_path_LD+set}" = set; then
11207   echo $ECHO_N "(cached) $ECHO_C" >&6
11208 else
11209   if test -z "$LD"; then
11210   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11211   for ac_dir in $PATH; do
11212     IFS="$lt_save_ifs"
11213     test -z "$ac_dir" && ac_dir=.
11214     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11215       lt_cv_path_LD="$ac_dir/$ac_prog"
11216       # Check to see if the program is GNU ld.  I'd rather use --version,
11217       # but apparently some variants of GNU ld only accept -v.
11218       # Break only if it was the GNU/non-GNU ld that we prefer.
11219       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11220       *GNU* | *'with BFD'*)
11221         test "$with_gnu_ld" != no && break
11222         ;;
11223       *)
11224         test "$with_gnu_ld" != yes && break
11225         ;;
11226       esac
11227     fi
11228   done
11229   IFS="$lt_save_ifs"
11230 else
11231   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11232 fi
11233 fi
11234
11235 LD="$lt_cv_path_LD"
11236 if test -n "$LD"; then
11237   { echo "$as_me:$LINENO: result: $LD" >&5
11238 echo "${ECHO_T}$LD" >&6; }
11239 else
11240   { echo "$as_me:$LINENO: result: no" >&5
11241 echo "${ECHO_T}no" >&6; }
11242 fi
11243 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11244 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11245    { (exit 1); exit 1; }; }
11246 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11247 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11248 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11249   echo $ECHO_N "(cached) $ECHO_C" >&6
11250 else
11251   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11252 case `$LD -v 2>&1 </dev/null` in
11253 *GNU* | *'with BFD'*)
11254   lt_cv_prog_gnu_ld=yes
11255   ;;
11256 *)
11257   lt_cv_prog_gnu_ld=no
11258   ;;
11259 esac
11260 fi
11261 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11262 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11263 with_gnu_ld=$lt_cv_prog_gnu_ld
11264
11265
11266
11267   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11268   # archiving commands below assume that GNU ld is being used.
11269   if test "$with_gnu_ld" = yes; then
11270     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11271     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'
11272
11273     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11274     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11275
11276     # If archive_cmds runs LD, not CC, wlarc should be empty
11277     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11278     #     investigate it a little bit more. (MM)
11279     wlarc='${wl}'
11280
11281     # ancient GNU ld didn't support --whole-archive et. al.
11282     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11283         grep 'no-whole-archive' > /dev/null; then
11284       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11285     else
11286       whole_archive_flag_spec_CXX=
11287     fi
11288   else
11289     with_gnu_ld=no
11290     wlarc=
11291
11292     # A generic and very simple default shared library creation
11293     # command for GNU C++ for the case where it uses the native
11294     # linker, instead of GNU ld.  If possible, this setting should
11295     # overridden to take advantage of the native linker features on
11296     # the platform it is being used on.
11297     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11298   fi
11299
11300   # Commands to make compiler produce verbose output that lists
11301   # what "hidden" libraries, object files and flags are used when
11302   # linking a shared library.
11303   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11304
11305 else
11306   GXX=no
11307   with_gnu_ld=no
11308   wlarc=
11309 fi
11310
11311 # PORTME: fill in a description of your system's C++ link characteristics
11312 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11313 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11314 ld_shlibs_CXX=yes
11315 case $host_os in
11316   aix3*)
11317     # FIXME: insert proper C++ library support
11318     ld_shlibs_CXX=no
11319     ;;
11320   aix4* | aix5*)
11321     if test "$host_cpu" = ia64; then
11322       # On IA64, the linker does run time linking by default, so we don't
11323       # have to do anything special.
11324       aix_use_runtimelinking=no
11325       exp_sym_flag='-Bexport'
11326       no_entry_flag=""
11327     else
11328       aix_use_runtimelinking=no
11329
11330       # Test if we are trying to use run time linking or normal
11331       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11332       # need to do runtime linking.
11333       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11334         for ld_flag in $LDFLAGS; do
11335           case $ld_flag in
11336           *-brtl*)
11337             aix_use_runtimelinking=yes
11338             break
11339             ;;
11340           esac
11341         done
11342         ;;
11343       esac
11344
11345       exp_sym_flag='-bexport'
11346       no_entry_flag='-bnoentry'
11347     fi
11348
11349     # When large executables or shared objects are built, AIX ld can
11350     # have problems creating the table of contents.  If linking a library
11351     # or program results in "error TOC overflow" add -mminimal-toc to
11352     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11353     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11354
11355     archive_cmds_CXX=''
11356     hardcode_direct_CXX=yes
11357     hardcode_libdir_separator_CXX=':'
11358     link_all_deplibs_CXX=yes
11359
11360     if test "$GXX" = yes; then
11361       case $host_os in aix4.[012]|aix4.[012].*)
11362       # We only want to do this on AIX 4.2 and lower, the check
11363       # below for broken collect2 doesn't work under 4.3+
11364         collect2name=`${CC} -print-prog-name=collect2`
11365         if test -f "$collect2name" && \
11366            strings "$collect2name" | grep resolve_lib_name >/dev/null
11367         then
11368           # We have reworked collect2
11369           :
11370         else
11371           # We have old collect2
11372           hardcode_direct_CXX=unsupported
11373           # It fails to find uninstalled libraries when the uninstalled
11374           # path is not listed in the libpath.  Setting hardcode_minus_L
11375           # to unsupported forces relinking
11376           hardcode_minus_L_CXX=yes
11377           hardcode_libdir_flag_spec_CXX='-L$libdir'
11378           hardcode_libdir_separator_CXX=
11379         fi
11380         ;;
11381       esac
11382       shared_flag='-shared'
11383       if test "$aix_use_runtimelinking" = yes; then
11384         shared_flag="$shared_flag "'${wl}-G'
11385       fi
11386     else
11387       # not using gcc
11388       if test "$host_cpu" = ia64; then
11389         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11390         # chokes on -Wl,-G. The following line is correct:
11391         shared_flag='-G'
11392       else
11393         if test "$aix_use_runtimelinking" = yes; then
11394           shared_flag='${wl}-G'
11395         else
11396           shared_flag='${wl}-bM:SRE'
11397         fi
11398       fi
11399     fi
11400
11401     # It seems that -bexpall does not export symbols beginning with
11402     # underscore (_), so it is better to generate a list of symbols to export.
11403     always_export_symbols_CXX=yes
11404     if test "$aix_use_runtimelinking" = yes; then
11405       # Warning - without using the other runtime loading flags (-brtl),
11406       # -berok will link without error, but may produce a broken library.
11407       allow_undefined_flag_CXX='-berok'
11408       # Determine the default libpath from the value encoded in an empty executable.
11409       cat >conftest.$ac_ext <<_ACEOF
11410 /* confdefs.h.  */
11411 _ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h.  */
11415
11416 int
11417 main ()
11418 {
11419
11420   ;
11421   return 0;
11422 }
11423 _ACEOF
11424 rm -f conftest.$ac_objext conftest$ac_exeext
11425 if { (ac_try="$ac_link"
11426 case "(($ac_try" in
11427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428   *) ac_try_echo=$ac_try;;
11429 esac
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431   (eval "$ac_link") 2>conftest.er1
11432   ac_status=$?
11433   grep -v '^ *+' conftest.er1 >conftest.err
11434   rm -f conftest.er1
11435   cat conftest.err >&5
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); } &&
11438          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11439   { (case "(($ac_try" in
11440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441   *) ac_try_echo=$ac_try;;
11442 esac
11443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444   (eval "$ac_try") 2>&5
11445   ac_status=$?
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); }; } &&
11448          { ac_try='test -s conftest$ac_exeext'
11449   { (case "(($ac_try" in
11450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451   *) ac_try_echo=$ac_try;;
11452 esac
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454   (eval "$ac_try") 2>&5
11455   ac_status=$?
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); }; }; then
11458
11459 lt_aix_libpath_sed='
11460     /Import File Strings/,/^$/ {
11461         /^0/ {
11462             s/^0  *\(.*\)$/\1/
11463             p
11464         }
11465     }'
11466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11467 # Check for a 64-bit object if we didn't find anything.
11468 if test -z "$aix_libpath"; then
11469   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11470 fi
11471 else
11472   echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11474
11475
11476 fi
11477
11478 rm -f core conftest.err conftest.$ac_objext \
11479       conftest$ac_exeext conftest.$ac_ext
11480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11481
11482       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11483
11484       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"
11485      else
11486       if test "$host_cpu" = ia64; then
11487         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11488         allow_undefined_flag_CXX="-z nodefs"
11489         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"
11490       else
11491         # Determine the default libpath from the value encoded in an empty executable.
11492         cat >conftest.$ac_ext <<_ACEOF
11493 /* confdefs.h.  */
11494 _ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h.  */
11498
11499 int
11500 main ()
11501 {
11502
11503   ;
11504   return 0;
11505 }
11506 _ACEOF
11507 rm -f conftest.$ac_objext conftest$ac_exeext
11508 if { (ac_try="$ac_link"
11509 case "(($ac_try" in
11510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511   *) ac_try_echo=$ac_try;;
11512 esac
11513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514   (eval "$ac_link") 2>conftest.er1
11515   ac_status=$?
11516   grep -v '^ *+' conftest.er1 >conftest.err
11517   rm -f conftest.er1
11518   cat conftest.err >&5
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); } &&
11521          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11522   { (case "(($ac_try" in
11523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524   *) ac_try_echo=$ac_try;;
11525 esac
11526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11527   (eval "$ac_try") 2>&5
11528   ac_status=$?
11529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530   (exit $ac_status); }; } &&
11531          { ac_try='test -s conftest$ac_exeext'
11532   { (case "(($ac_try" in
11533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534   *) ac_try_echo=$ac_try;;
11535 esac
11536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11537   (eval "$ac_try") 2>&5
11538   ac_status=$?
11539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540   (exit $ac_status); }; }; then
11541
11542 lt_aix_libpath_sed='
11543     /Import File Strings/,/^$/ {
11544         /^0/ {
11545             s/^0  *\(.*\)$/\1/
11546             p
11547         }
11548     }'
11549 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11550 # Check for a 64-bit object if we didn't find anything.
11551 if test -z "$aix_libpath"; then
11552   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11553 fi
11554 else
11555   echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11557
11558
11559 fi
11560
11561 rm -f core conftest.err conftest.$ac_objext \
11562       conftest$ac_exeext conftest.$ac_ext
11563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11564
11565         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11566         # Warning - without using the other run time loading flags,
11567         # -berok will link without error, but may produce a broken library.
11568         no_undefined_flag_CXX=' ${wl}-bernotok'
11569         allow_undefined_flag_CXX=' ${wl}-berok'
11570         # Exported symbols can be pulled into shared objects from archives
11571         whole_archive_flag_spec_CXX='$convenience'
11572         archive_cmds_need_lc_CXX=yes
11573         # This is similar to how AIX traditionally builds its shared libraries.
11574         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'
11575       fi
11576     fi
11577     ;;
11578
11579   beos*)
11580     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11581       allow_undefined_flag_CXX=unsupported
11582       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11583       # support --undefined.  This deserves some investigation.  FIXME
11584       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11585     else
11586       ld_shlibs_CXX=no
11587     fi
11588     ;;
11589
11590   chorus*)
11591     case $cc_basename in
11592       *)
11593         # FIXME: insert proper C++ library support
11594         ld_shlibs_CXX=no
11595         ;;
11596     esac
11597     ;;
11598
11599   cygwin* | mingw* | pw32*)
11600     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11601     # as there is no search path for DLLs.
11602     hardcode_libdir_flag_spec_CXX='-L$libdir'
11603     allow_undefined_flag_CXX=unsupported
11604     always_export_symbols_CXX=no
11605     enable_shared_with_static_runtimes_CXX=yes
11606
11607     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11608       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'
11609       # If the export-symbols file already is a .def file (1st line
11610       # is EXPORTS), use it as is; otherwise, prepend...
11611       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11612         cp $export_symbols $output_objdir/$soname.def;
11613       else
11614         echo EXPORTS > $output_objdir/$soname.def;
11615         cat $export_symbols >> $output_objdir/$soname.def;
11616       fi~
11617       $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'
11618     else
11619       ld_shlibs_CXX=no
11620     fi
11621   ;;
11622       darwin* | rhapsody*)
11623         case $host_os in
11624         rhapsody* | darwin1.[012])
11625          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11626          ;;
11627        *) # Darwin 1.3 on
11628          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11629            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11630          else
11631            case ${MACOSX_DEPLOYMENT_TARGET} in
11632              10.[012])
11633                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11634                ;;
11635              10.*)
11636                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11637                ;;
11638            esac
11639          fi
11640          ;;
11641         esac
11642       archive_cmds_need_lc_CXX=no
11643       hardcode_direct_CXX=no
11644       hardcode_automatic_CXX=yes
11645       hardcode_shlibpath_var_CXX=unsupported
11646       whole_archive_flag_spec_CXX=''
11647       link_all_deplibs_CXX=yes
11648
11649     if test "$GXX" = yes ; then
11650       lt_int_apple_cc_single_mod=no
11651       output_verbose_link_cmd='echo'
11652       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11653        lt_int_apple_cc_single_mod=yes
11654       fi
11655       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11656        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11657       else
11658           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'
11659         fi
11660         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11661         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11662           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11663             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}'
11664           else
11665             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}'
11666           fi
11667             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}'
11668       else
11669       case $cc_basename in
11670         xlc*)
11671          output_verbose_link_cmd='echo'
11672           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11673           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11674           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11675           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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11676           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}'
11677           ;;
11678        *)
11679          ld_shlibs_CXX=no
11680           ;;
11681       esac
11682       fi
11683         ;;
11684
11685   dgux*)
11686     case $cc_basename in
11687       ec++*)
11688         # FIXME: insert proper C++ library support
11689         ld_shlibs_CXX=no
11690         ;;
11691       ghcx*)
11692         # Green Hills C++ Compiler
11693         # FIXME: insert proper C++ library support
11694         ld_shlibs_CXX=no
11695         ;;
11696       *)
11697         # FIXME: insert proper C++ library support
11698         ld_shlibs_CXX=no
11699         ;;
11700     esac
11701     ;;
11702   freebsd[12]*)
11703     # C++ shared libraries reported to be fairly broken before switch to ELF
11704     ld_shlibs_CXX=no
11705     ;;
11706   freebsd-elf*)
11707     archive_cmds_need_lc_CXX=no
11708     ;;
11709   freebsd* | dragonfly*)
11710     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11711     # conventions
11712     ld_shlibs_CXX=yes
11713     ;;
11714   gnu*)
11715     ;;
11716   hpux9*)
11717     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11718     hardcode_libdir_separator_CXX=:
11719     export_dynamic_flag_spec_CXX='${wl}-E'
11720     hardcode_direct_CXX=yes
11721     hardcode_minus_L_CXX=yes # Not in the search PATH,
11722                                 # but as the default
11723                                 # location of the library.
11724
11725     case $cc_basename in
11726     CC*)
11727       # FIXME: insert proper C++ library support
11728       ld_shlibs_CXX=no
11729       ;;
11730     aCC*)
11731       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'
11732       # Commands to make compiler produce verbose output that lists
11733       # what "hidden" libraries, object files and flags are used when
11734       # linking a shared library.
11735       #
11736       # There doesn't appear to be a way to prevent this compiler from
11737       # explicitly linking system object files so we need to strip them
11738       # from the output so that they don't get included in the library
11739       # dependencies.
11740       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'
11741       ;;
11742     *)
11743       if test "$GXX" = yes; then
11744         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'
11745       else
11746         # FIXME: insert proper C++ library support
11747         ld_shlibs_CXX=no
11748       fi
11749       ;;
11750     esac
11751     ;;
11752   hpux10*|hpux11*)
11753     if test $with_gnu_ld = no; then
11754       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11755       hardcode_libdir_separator_CXX=:
11756
11757       case $host_cpu in
11758       hppa*64*|ia64*) ;;
11759       *)
11760         export_dynamic_flag_spec_CXX='${wl}-E'
11761         ;;
11762       esac
11763     fi
11764     case $host_cpu in
11765     hppa*64*|ia64*)
11766       hardcode_direct_CXX=no
11767       hardcode_shlibpath_var_CXX=no
11768       ;;
11769     *)
11770       hardcode_direct_CXX=yes
11771       hardcode_minus_L_CXX=yes # Not in the search PATH,
11772                                               # but as the default
11773                                               # location of the library.
11774       ;;
11775     esac
11776
11777     case $cc_basename in
11778       CC*)
11779         # FIXME: insert proper C++ library support
11780         ld_shlibs_CXX=no
11781         ;;
11782       aCC*)
11783         case $host_cpu in
11784         hppa*64*)
11785           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11786           ;;
11787         ia64*)
11788           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11789           ;;
11790         *)
11791           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11792           ;;
11793         esac
11794         # Commands to make compiler produce verbose output that lists
11795         # what "hidden" libraries, object files and flags are used when
11796         # linking a shared library.
11797         #
11798         # There doesn't appear to be a way to prevent this compiler from
11799         # explicitly linking system object files so we need to strip them
11800         # from the output so that they don't get included in the library
11801         # dependencies.
11802         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'
11803         ;;
11804       *)
11805         if test "$GXX" = yes; then
11806           if test $with_gnu_ld = no; then
11807             case $host_cpu in
11808             hppa*64*)
11809               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11810               ;;
11811             ia64*)
11812               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11813               ;;
11814             *)
11815               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'
11816               ;;
11817             esac
11818           fi
11819         else
11820           # FIXME: insert proper C++ library support
11821           ld_shlibs_CXX=no
11822         fi
11823         ;;
11824     esac
11825     ;;
11826   interix[3-9]*)
11827     hardcode_direct_CXX=no
11828     hardcode_shlibpath_var_CXX=no
11829     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11830     export_dynamic_flag_spec_CXX='${wl}-E'
11831     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11832     # Instead, shared libraries are loaded at an image base (0x10000000 by
11833     # default) and relocated if they conflict, which is a slow very memory
11834     # consuming and fragmenting process.  To avoid this, we pick a random,
11835     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11836     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11837     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'
11838     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'
11839     ;;
11840   irix5* | irix6*)
11841     case $cc_basename in
11842       CC*)
11843         # SGI C++
11844         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'
11845
11846         # Archives containing C++ object files must be created using
11847         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11848         # necessary to make sure instantiated templates are included
11849         # in the archive.
11850         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11851         ;;
11852       *)
11853         if test "$GXX" = yes; then
11854           if test "$with_gnu_ld" = no; then
11855             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'
11856           else
11857             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'
11858           fi
11859         fi
11860         link_all_deplibs_CXX=yes
11861         ;;
11862     esac
11863     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11864     hardcode_libdir_separator_CXX=:
11865     ;;
11866   linux* | k*bsd*-gnu)
11867     case $cc_basename in
11868       KCC*)
11869         # Kuck and Associates, Inc. (KAI) C++ Compiler
11870
11871         # KCC will only create a shared library if the output file
11872         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11873         # to its proper name (with version) after linking.
11874         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'
11875         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'
11876         # Commands to make compiler produce verbose output that lists
11877         # what "hidden" libraries, object files and flags are used when
11878         # linking a shared library.
11879         #
11880         # There doesn't appear to be a way to prevent this compiler from
11881         # explicitly linking system object files so we need to strip them
11882         # from the output so that they don't get included in the library
11883         # dependencies.
11884         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'
11885
11886         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11887         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11888
11889         # Archives containing C++ object files must be created using
11890         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11891         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11892         ;;
11893       icpc*)
11894         # Intel C++
11895         with_gnu_ld=yes
11896         # version 8.0 and above of icpc choke on multiply defined symbols
11897         # if we add $predep_objects and $postdep_objects, however 7.1 and
11898         # earlier do not add the objects themselves.
11899         case `$CC -V 2>&1` in
11900         *"Version 7."*)
11901           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11902           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'
11903           ;;
11904         *)  # Version 8.0 or newer
11905           tmp_idyn=
11906           case $host_cpu in
11907             ia64*) tmp_idyn=' -i_dynamic';;
11908           esac
11909           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11910           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'
11911           ;;
11912         esac
11913         archive_cmds_need_lc_CXX=no
11914         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11915         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11916         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11917         ;;
11918       pgCC*)
11919         # Portland Group C++ compiler
11920         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11921         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'
11922
11923         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11924         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11925         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'
11926         ;;
11927       cxx*)
11928         # Compaq C++
11929         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11930         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'
11931
11932         runpath_var=LD_RUN_PATH
11933         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11934         hardcode_libdir_separator_CXX=:
11935
11936         # Commands to make compiler produce verbose output that lists
11937         # what "hidden" libraries, object files and flags are used when
11938         # linking a shared library.
11939         #
11940         # There doesn't appear to be a way to prevent this compiler from
11941         # explicitly linking system object files so we need to strip them
11942         # from the output so that they don't get included in the library
11943         # dependencies.
11944         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'
11945         ;;
11946       *)
11947         case `$CC -V 2>&1 | sed 5q` in
11948         *Sun\ C*)
11949           # Sun C++ 5.9
11950           no_undefined_flag_CXX=' -zdefs'
11951           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11952           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11953           hardcode_libdir_flag_spec_CXX='-R$libdir'
11954           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11955
11956           # Not sure whether something based on
11957           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11958           # would be better.
11959           output_verbose_link_cmd='echo'
11960
11961           # Archives containing C++ object files must be created using
11962           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11963           # necessary to make sure instantiated templates are included
11964           # in the archive.
11965           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11966           ;;
11967         esac
11968         ;;
11969     esac
11970     ;;
11971   lynxos*)
11972     # FIXME: insert proper C++ library support
11973     ld_shlibs_CXX=no
11974     ;;
11975   m88k*)
11976     # FIXME: insert proper C++ library support
11977     ld_shlibs_CXX=no
11978     ;;
11979   mvs*)
11980     case $cc_basename in
11981       cxx*)
11982         # FIXME: insert proper C++ library support
11983         ld_shlibs_CXX=no
11984         ;;
11985       *)
11986         # FIXME: insert proper C++ library support
11987         ld_shlibs_CXX=no
11988         ;;
11989     esac
11990     ;;
11991   netbsd*)
11992     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11993       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11994       wlarc=
11995       hardcode_libdir_flag_spec_CXX='-R$libdir'
11996       hardcode_direct_CXX=yes
11997       hardcode_shlibpath_var_CXX=no
11998     fi
11999     # Workaround some broken pre-1.5 toolchains
12000     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12001     ;;
12002   openbsd2*)
12003     # C++ shared libraries are fairly broken
12004     ld_shlibs_CXX=no
12005     ;;
12006   openbsd*)
12007     if test -f /usr/libexec/ld.so; then
12008       hardcode_direct_CXX=yes
12009       hardcode_shlibpath_var_CXX=no
12010       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12011       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12012       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12013         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12014         export_dynamic_flag_spec_CXX='${wl}-E'
12015         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12016       fi
12017       output_verbose_link_cmd='echo'
12018     else
12019       ld_shlibs_CXX=no
12020     fi
12021     ;;
12022   osf3*)
12023     case $cc_basename in
12024       KCC*)
12025         # Kuck and Associates, Inc. (KAI) C++ Compiler
12026
12027         # KCC will only create a shared library if the output file
12028         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12029         # to its proper name (with version) after linking.
12030         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'
12031
12032         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12033         hardcode_libdir_separator_CXX=:
12034
12035         # Archives containing C++ object files must be created using
12036         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12037         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12038
12039         ;;
12040       RCC*)
12041         # Rational C++ 2.4.1
12042         # FIXME: insert proper C++ library support
12043         ld_shlibs_CXX=no
12044         ;;
12045       cxx*)
12046         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12047         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'
12048
12049         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12050         hardcode_libdir_separator_CXX=:
12051
12052         # Commands to make compiler produce verbose output that lists
12053         # what "hidden" libraries, object files and flags are used when
12054         # linking a shared library.
12055         #
12056         # There doesn't appear to be a way to prevent this compiler from
12057         # explicitly linking system object files so we need to strip them
12058         # from the output so that they don't get included in the library
12059         # dependencies.
12060         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'
12061         ;;
12062       *)
12063         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12064           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12065           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'
12066
12067           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12068           hardcode_libdir_separator_CXX=:
12069
12070           # Commands to make compiler produce verbose output that lists
12071           # what "hidden" libraries, object files and flags are used when
12072           # linking a shared library.
12073           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12074
12075         else
12076           # FIXME: insert proper C++ library support
12077           ld_shlibs_CXX=no
12078         fi
12079         ;;
12080     esac
12081     ;;
12082   osf4* | osf5*)
12083     case $cc_basename in
12084       KCC*)
12085         # Kuck and Associates, Inc. (KAI) C++ Compiler
12086
12087         # KCC will only create a shared library if the output file
12088         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12089         # to its proper name (with version) after linking.
12090         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'
12091
12092         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12093         hardcode_libdir_separator_CXX=:
12094
12095         # Archives containing C++ object files must be created using
12096         # the KAI C++ compiler.
12097         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12098         ;;
12099       RCC*)
12100         # Rational C++ 2.4.1
12101         # FIXME: insert proper C++ library support
12102         ld_shlibs_CXX=no
12103         ;;
12104       cxx*)
12105         allow_undefined_flag_CXX=' -expect_unresolved \*'
12106         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'
12107         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12108           echo "-hidden">> $lib.exp~
12109           $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~
12110           $rm $lib.exp'
12111
12112         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12113         hardcode_libdir_separator_CXX=:
12114
12115         # Commands to make compiler produce verbose output that lists
12116         # what "hidden" libraries, object files and flags are used when
12117         # linking a shared library.
12118         #
12119         # There doesn't appear to be a way to prevent this compiler from
12120         # explicitly linking system object files so we need to strip them
12121         # from the output so that they don't get included in the library
12122         # dependencies.
12123         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'
12124         ;;
12125       *)
12126         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12127           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12128          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'
12129
12130           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12131           hardcode_libdir_separator_CXX=:
12132
12133           # Commands to make compiler produce verbose output that lists
12134           # what "hidden" libraries, object files and flags are used when
12135           # linking a shared library.
12136           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12137
12138         else
12139           # FIXME: insert proper C++ library support
12140           ld_shlibs_CXX=no
12141         fi
12142         ;;
12143     esac
12144     ;;
12145   psos*)
12146     # FIXME: insert proper C++ library support
12147     ld_shlibs_CXX=no
12148     ;;
12149   sunos4*)
12150     case $cc_basename in
12151       CC*)
12152         # Sun C++ 4.x
12153         # FIXME: insert proper C++ library support
12154         ld_shlibs_CXX=no
12155         ;;
12156       lcc*)
12157         # Lucid
12158         # FIXME: insert proper C++ library support
12159         ld_shlibs_CXX=no
12160         ;;
12161       *)
12162         # FIXME: insert proper C++ library support
12163         ld_shlibs_CXX=no
12164         ;;
12165     esac
12166     ;;
12167   solaris*)
12168     case $cc_basename in
12169       CC*)
12170         # Sun C++ 4.2, 5.x and Centerline C++
12171         archive_cmds_need_lc_CXX=yes
12172         no_undefined_flag_CXX=' -zdefs'
12173         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12174         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12175         $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'
12176
12177         hardcode_libdir_flag_spec_CXX='-R$libdir'
12178         hardcode_shlibpath_var_CXX=no
12179         case $host_os in
12180           solaris2.[0-5] | solaris2.[0-5].*) ;;
12181           *)
12182             # The compiler driver will combine and reorder linker options,
12183             # but understands `-z linker_flag'.
12184             # Supported since Solaris 2.6 (maybe 2.5.1?)
12185             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12186             ;;
12187         esac
12188         link_all_deplibs_CXX=yes
12189
12190         output_verbose_link_cmd='echo'
12191
12192         # Archives containing C++ object files must be created using
12193         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12194         # necessary to make sure instantiated templates are included
12195         # in the archive.
12196         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12197         ;;
12198       gcx*)
12199         # Green Hills C++ Compiler
12200         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12201
12202         # The C++ compiler must be used to create the archive.
12203         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12204         ;;
12205       *)
12206         # GNU C++ compiler with Solaris linker
12207         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12208           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12209           if $CC --version | grep -v '^2\.7' > /dev/null; then
12210             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12211             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12212                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12213
12214             # Commands to make compiler produce verbose output that lists
12215             # what "hidden" libraries, object files and flags are used when
12216             # linking a shared library.
12217             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12218           else
12219             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12220             # platform.
12221             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12222             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12223                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12224
12225             # Commands to make compiler produce verbose output that lists
12226             # what "hidden" libraries, object files and flags are used when
12227             # linking a shared library.
12228             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12229           fi
12230
12231           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12232           case $host_os in
12233           solaris2.[0-5] | solaris2.[0-5].*) ;;
12234           *)
12235             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12236             ;;
12237           esac
12238         fi
12239         ;;
12240     esac
12241     ;;
12242   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12243     no_undefined_flag_CXX='${wl}-z,text'
12244     archive_cmds_need_lc_CXX=no
12245     hardcode_shlibpath_var_CXX=no
12246     runpath_var='LD_RUN_PATH'
12247
12248     case $cc_basename in
12249       CC*)
12250         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12251         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12252         ;;
12253       *)
12254         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12255         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12256         ;;
12257     esac
12258     ;;
12259   sysv5* | sco3.2v5* | sco5v6*)
12260     # Note: We can NOT use -z defs as we might desire, because we do not
12261     # link with -lc, and that would cause any symbols used from libc to
12262     # always be unresolved, which means just about no library would
12263     # ever link correctly.  If we're not using GNU ld we use -z text
12264     # though, which does catch some bad symbols but isn't as heavy-handed
12265     # as -z defs.
12266     # For security reasons, it is highly recommended that you always
12267     # use absolute paths for naming shared libraries, and exclude the
12268     # DT_RUNPATH tag from executables and libraries.  But doing so
12269     # requires that you compile everything twice, which is a pain.
12270     # So that behaviour is only enabled if SCOABSPATH is set to a
12271     # non-empty value in the environment.  Most likely only useful for
12272     # creating official distributions of packages.
12273     # This is a hack until libtool officially supports absolute path
12274     # names for shared libraries.
12275     no_undefined_flag_CXX='${wl}-z,text'
12276     allow_undefined_flag_CXX='${wl}-z,nodefs'
12277     archive_cmds_need_lc_CXX=no
12278     hardcode_shlibpath_var_CXX=no
12279     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12280     hardcode_libdir_separator_CXX=':'
12281     link_all_deplibs_CXX=yes
12282     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12283     runpath_var='LD_RUN_PATH'
12284
12285     case $cc_basename in
12286       CC*)
12287         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12288         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12289         ;;
12290       *)
12291         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12292         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12293         ;;
12294     esac
12295     ;;
12296   tandem*)
12297     case $cc_basename in
12298       NCC*)
12299         # NonStop-UX NCC 3.20
12300         # FIXME: insert proper C++ library support
12301         ld_shlibs_CXX=no
12302         ;;
12303       *)
12304         # FIXME: insert proper C++ library support
12305         ld_shlibs_CXX=no
12306         ;;
12307     esac
12308     ;;
12309   vxworks*)
12310     # FIXME: insert proper C++ library support
12311     ld_shlibs_CXX=no
12312     ;;
12313   *)
12314     # FIXME: insert proper C++ library support
12315     ld_shlibs_CXX=no
12316     ;;
12317 esac
12318 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12319 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12320 test "$ld_shlibs_CXX" = no && can_build_shared=no
12321
12322 GCC_CXX="$GXX"
12323 LD_CXX="$LD"
12324
12325
12326 cat > conftest.$ac_ext <<EOF
12327 class Foo
12328 {
12329 public:
12330   Foo (void) { a = 0; }
12331 private:
12332   int a;
12333 };
12334 EOF
12335
12336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12337   (eval $ac_compile) 2>&5
12338   ac_status=$?
12339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340   (exit $ac_status); }; then
12341   # Parse the compiler output and extract the necessary
12342   # objects, libraries and library flags.
12343
12344   # Sentinel used to keep track of whether or not we are before
12345   # the conftest object file.
12346   pre_test_object_deps_done=no
12347
12348   # The `*' in the case matches for architectures that use `case' in
12349   # $output_verbose_cmd can trigger glob expansion during the loop
12350   # eval without this substitution.
12351   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12352
12353   for p in `eval $output_verbose_link_cmd`; do
12354     case $p in
12355
12356     -L* | -R* | -l*)
12357        # Some compilers place space between "-{L,R}" and the path.
12358        # Remove the space.
12359        if test $p = "-L" \
12360           || test $p = "-R"; then
12361          prev=$p
12362          continue
12363        else
12364          prev=
12365        fi
12366
12367        if test "$pre_test_object_deps_done" = no; then
12368          case $p in
12369          -L* | -R*)
12370            # Internal compiler library paths should come after those
12371            # provided the user.  The postdeps already come after the
12372            # user supplied libs so there is no need to process them.
12373            if test -z "$compiler_lib_search_path_CXX"; then
12374              compiler_lib_search_path_CXX="${prev}${p}"
12375            else
12376              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12377            fi
12378            ;;
12379          # The "-l" case would never come before the object being
12380          # linked, so don't bother handling this case.
12381          esac
12382        else
12383          if test -z "$postdeps_CXX"; then
12384            postdeps_CXX="${prev}${p}"
12385          else
12386            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12387          fi
12388        fi
12389        ;;
12390
12391     *.$objext)
12392        # This assumes that the test object file only shows up
12393        # once in the compiler output.
12394        if test "$p" = "conftest.$objext"; then
12395          pre_test_object_deps_done=yes
12396          continue
12397        fi
12398
12399        if test "$pre_test_object_deps_done" = no; then
12400          if test -z "$predep_objects_CXX"; then
12401            predep_objects_CXX="$p"
12402          else
12403            predep_objects_CXX="$predep_objects_CXX $p"
12404          fi
12405        else
12406          if test -z "$postdep_objects_CXX"; then
12407            postdep_objects_CXX="$p"
12408          else
12409            postdep_objects_CXX="$postdep_objects_CXX $p"
12410          fi
12411        fi
12412        ;;
12413
12414     *) ;; # Ignore the rest.
12415
12416     esac
12417   done
12418
12419   # Clean up.
12420   rm -f a.out a.exe
12421 else
12422   echo "libtool.m4: error: problem compiling CXX test program"
12423 fi
12424
12425 $rm -f confest.$objext
12426
12427 # PORTME: override above test on systems where it is broken
12428 case $host_os in
12429 interix[3-9]*)
12430   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12431   # hack all around it, let's just trust "g++" to DTRT.
12432   predep_objects_CXX=
12433   postdep_objects_CXX=
12434   postdeps_CXX=
12435   ;;
12436
12437 linux*)
12438   case `$CC -V 2>&1 | sed 5q` in
12439   *Sun\ C*)
12440     # Sun C++ 5.9
12441     #
12442     # The more standards-conforming stlport4 library is
12443     # incompatible with the Cstd library. Avoid specifying
12444     # it if it's in CXXFLAGS. Ignore libCrun as
12445     # -library=stlport4 depends on it.
12446     case " $CXX $CXXFLAGS " in
12447     *" -library=stlport4 "*)
12448       solaris_use_stlport4=yes
12449       ;;
12450     esac
12451     if test "$solaris_use_stlport4" != yes; then
12452       postdeps_CXX='-library=Cstd -library=Crun'
12453     fi
12454     ;;
12455   esac
12456   ;;
12457
12458 solaris*)
12459   case $cc_basename in
12460   CC*)
12461     # The more standards-conforming stlport4 library is
12462     # incompatible with the Cstd library. Avoid specifying
12463     # it if it's in CXXFLAGS. Ignore libCrun as
12464     # -library=stlport4 depends on it.
12465     case " $CXX $CXXFLAGS " in
12466     *" -library=stlport4 "*)
12467       solaris_use_stlport4=yes
12468       ;;
12469     esac
12470
12471     # Adding this requires a known-good setup of shared libraries for
12472     # Sun compiler versions before 5.6, else PIC objects from an old
12473     # archive will be linked into the output, leading to subtle bugs.
12474     if test "$solaris_use_stlport4" != yes; then
12475       postdeps_CXX='-library=Cstd -library=Crun'
12476     fi
12477     ;;
12478   esac
12479   ;;
12480 esac
12481
12482
12483 case " $postdeps_CXX " in
12484 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12485 esac
12486
12487 lt_prog_compiler_wl_CXX=
12488 lt_prog_compiler_pic_CXX=
12489 lt_prog_compiler_static_CXX=
12490
12491 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12492 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12493
12494   # C++ specific cases for pic, static, wl, etc.
12495   if test "$GXX" = yes; then
12496     lt_prog_compiler_wl_CXX='-Wl,'
12497     lt_prog_compiler_static_CXX='-static'
12498
12499     case $host_os in
12500     aix*)
12501       # All AIX code is PIC.
12502       if test "$host_cpu" = ia64; then
12503         # AIX 5 now supports IA64 processor
12504         lt_prog_compiler_static_CXX='-Bstatic'
12505       fi
12506       ;;
12507     amigaos*)
12508       # FIXME: we need at least 68020 code to build shared libraries, but
12509       # adding the `-m68020' flag to GCC prevents building anything better,
12510       # like `-m68040'.
12511       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12512       ;;
12513     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12514       # PIC is the default for these OSes.
12515       ;;
12516     mingw* | cygwin* | os2* | pw32*)
12517       # This hack is so that the source file can tell whether it is being
12518       # built for inclusion in a dll (and should export symbols for example).
12519       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12520       # (--disable-auto-import) libraries
12521       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12522       ;;
12523     darwin* | rhapsody*)
12524       # PIC is the default on this platform
12525       # Common symbols not allowed in MH_DYLIB files
12526       lt_prog_compiler_pic_CXX='-fno-common'
12527       ;;
12528     *djgpp*)
12529       # DJGPP does not support shared libraries at all
12530       lt_prog_compiler_pic_CXX=
12531       ;;
12532     interix[3-9]*)
12533       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12534       # Instead, we relocate shared libraries at runtime.
12535       ;;
12536     sysv4*MP*)
12537       if test -d /usr/nec; then
12538         lt_prog_compiler_pic_CXX=-Kconform_pic
12539       fi
12540       ;;
12541     hpux*)
12542       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12543       # not for PA HP-UX.
12544       case $host_cpu in
12545       hppa*64*|ia64*)
12546         ;;
12547       *)
12548         lt_prog_compiler_pic_CXX='-fPIC'
12549         ;;
12550       esac
12551       ;;
12552     *)
12553       lt_prog_compiler_pic_CXX='-fPIC'
12554       ;;
12555     esac
12556   else
12557     case $host_os in
12558       aix4* | aix5*)
12559         # All AIX code is PIC.
12560         if test "$host_cpu" = ia64; then
12561           # AIX 5 now supports IA64 processor
12562           lt_prog_compiler_static_CXX='-Bstatic'
12563         else
12564           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12565         fi
12566         ;;
12567       chorus*)
12568         case $cc_basename in
12569         cxch68*)
12570           # Green Hills C++ Compiler
12571           # _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"
12572           ;;
12573         esac
12574         ;;
12575        darwin*)
12576          # PIC is the default on this platform
12577          # Common symbols not allowed in MH_DYLIB files
12578          case $cc_basename in
12579            xlc*)
12580            lt_prog_compiler_pic_CXX='-qnocommon'
12581            lt_prog_compiler_wl_CXX='-Wl,'
12582            ;;
12583          esac
12584        ;;
12585       dgux*)
12586         case $cc_basename in
12587           ec++*)
12588             lt_prog_compiler_pic_CXX='-KPIC'
12589             ;;
12590           ghcx*)
12591             # Green Hills C++ Compiler
12592             lt_prog_compiler_pic_CXX='-pic'
12593             ;;
12594           *)
12595             ;;
12596         esac
12597         ;;
12598       freebsd* | dragonfly*)
12599         # FreeBSD uses GNU C++
12600         ;;
12601       hpux9* | hpux10* | hpux11*)
12602         case $cc_basename in
12603           CC*)
12604             lt_prog_compiler_wl_CXX='-Wl,'
12605             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12606             if test "$host_cpu" != ia64; then
12607               lt_prog_compiler_pic_CXX='+Z'
12608             fi
12609             ;;
12610           aCC*)
12611             lt_prog_compiler_wl_CXX='-Wl,'
12612             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12613             case $host_cpu in
12614             hppa*64*|ia64*)
12615               # +Z the default
12616               ;;
12617             *)
12618               lt_prog_compiler_pic_CXX='+Z'
12619               ;;
12620             esac
12621             ;;
12622           *)
12623             ;;
12624         esac
12625         ;;
12626       interix*)
12627         # This is c89, which is MS Visual C++ (no shared libs)
12628         # Anyone wants to do a port?
12629         ;;
12630       irix5* | irix6* | nonstopux*)
12631         case $cc_basename in
12632           CC*)
12633             lt_prog_compiler_wl_CXX='-Wl,'
12634             lt_prog_compiler_static_CXX='-non_shared'
12635             # CC pic flag -KPIC is the default.
12636             ;;
12637           *)
12638             ;;
12639         esac
12640         ;;
12641       linux* | k*bsd*-gnu)
12642         case $cc_basename in
12643           KCC*)
12644             # KAI C++ Compiler
12645             lt_prog_compiler_wl_CXX='--backend -Wl,'
12646             lt_prog_compiler_pic_CXX='-fPIC'
12647             ;;
12648           icpc* | ecpc*)
12649             # Intel C++
12650             lt_prog_compiler_wl_CXX='-Wl,'
12651             lt_prog_compiler_pic_CXX='-KPIC'
12652             lt_prog_compiler_static_CXX='-static'
12653             ;;
12654           pgCC*)
12655             # Portland Group C++ compiler.
12656             lt_prog_compiler_wl_CXX='-Wl,'
12657             lt_prog_compiler_pic_CXX='-fpic'
12658             lt_prog_compiler_static_CXX='-Bstatic'
12659             ;;
12660           cxx*)
12661             # Compaq C++
12662             # Make sure the PIC flag is empty.  It appears that all Alpha
12663             # Linux and Compaq Tru64 Unix objects are PIC.
12664             lt_prog_compiler_pic_CXX=
12665             lt_prog_compiler_static_CXX='-non_shared'
12666             ;;
12667           *)
12668             case `$CC -V 2>&1 | sed 5q` in
12669             *Sun\ C*)
12670               # Sun C++ 5.9
12671               lt_prog_compiler_pic_CXX='-KPIC'
12672               lt_prog_compiler_static_CXX='-Bstatic'
12673               lt_prog_compiler_wl_CXX='-Qoption ld '
12674               ;;
12675             esac
12676             ;;
12677         esac
12678         ;;
12679       lynxos*)
12680         ;;
12681       m88k*)
12682         ;;
12683       mvs*)
12684         case $cc_basename in
12685           cxx*)
12686             lt_prog_compiler_pic_CXX='-W c,exportall'
12687             ;;
12688           *)
12689             ;;
12690         esac
12691         ;;
12692       netbsd*)
12693         ;;
12694       osf3* | osf4* | osf5*)
12695         case $cc_basename in
12696           KCC*)
12697             lt_prog_compiler_wl_CXX='--backend -Wl,'
12698             ;;
12699           RCC*)
12700             # Rational C++ 2.4.1
12701             lt_prog_compiler_pic_CXX='-pic'
12702             ;;
12703           cxx*)
12704             # Digital/Compaq C++
12705             lt_prog_compiler_wl_CXX='-Wl,'
12706             # Make sure the PIC flag is empty.  It appears that all Alpha
12707             # Linux and Compaq Tru64 Unix objects are PIC.
12708             lt_prog_compiler_pic_CXX=
12709             lt_prog_compiler_static_CXX='-non_shared'
12710             ;;
12711           *)
12712             ;;
12713         esac
12714         ;;
12715       psos*)
12716         ;;
12717       solaris*)
12718         case $cc_basename in
12719           CC*)
12720             # Sun C++ 4.2, 5.x and Centerline C++
12721             lt_prog_compiler_pic_CXX='-KPIC'
12722             lt_prog_compiler_static_CXX='-Bstatic'
12723             lt_prog_compiler_wl_CXX='-Qoption ld '
12724             ;;
12725           gcx*)
12726             # Green Hills C++ Compiler
12727             lt_prog_compiler_pic_CXX='-PIC'
12728             ;;
12729           *)
12730             ;;
12731         esac
12732         ;;
12733       sunos4*)
12734         case $cc_basename in
12735           CC*)
12736             # Sun C++ 4.x
12737             lt_prog_compiler_pic_CXX='-pic'
12738             lt_prog_compiler_static_CXX='-Bstatic'
12739             ;;
12740           lcc*)
12741             # Lucid
12742             lt_prog_compiler_pic_CXX='-pic'
12743             ;;
12744           *)
12745             ;;
12746         esac
12747         ;;
12748       tandem*)
12749         case $cc_basename in
12750           NCC*)
12751             # NonStop-UX NCC 3.20
12752             lt_prog_compiler_pic_CXX='-KPIC'
12753             ;;
12754           *)
12755             ;;
12756         esac
12757         ;;
12758       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12759         case $cc_basename in
12760           CC*)
12761             lt_prog_compiler_wl_CXX='-Wl,'
12762             lt_prog_compiler_pic_CXX='-KPIC'
12763             lt_prog_compiler_static_CXX='-Bstatic'
12764             ;;
12765         esac
12766         ;;
12767       vxworks*)
12768         ;;
12769       *)
12770         lt_prog_compiler_can_build_shared_CXX=no
12771         ;;
12772     esac
12773   fi
12774
12775 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12776 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12777
12778 #
12779 # Check to make sure the PIC flag actually works.
12780 #
12781 if test -n "$lt_prog_compiler_pic_CXX"; then
12782
12783 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12784 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12785 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12786   echo $ECHO_N "(cached) $ECHO_C" >&6
12787 else
12788   lt_prog_compiler_pic_works_CXX=no
12789   ac_outfile=conftest.$ac_objext
12790    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12791    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12792    # Insert the option either (1) after the last *FLAGS variable, or
12793    # (2) before a word containing "conftest.", or (3) at the end.
12794    # Note that $ac_compile itself does not contain backslashes and begins
12795    # with a dollar sign (not a hyphen), so the echo should work correctly.
12796    # The option is referenced via a variable to avoid confusing sed.
12797    lt_compile=`echo "$ac_compile" | $SED \
12798    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12799    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12800    -e 's:$: $lt_compiler_flag:'`
12801    (eval echo "\"\$as_me:12801: $lt_compile\"" >&5)
12802    (eval "$lt_compile" 2>conftest.err)
12803    ac_status=$?
12804    cat conftest.err >&5
12805    echo "$as_me:12805: \$? = $ac_status" >&5
12806    if (exit $ac_status) && test -s "$ac_outfile"; then
12807      # The compiler can only warn and ignore the option if not recognized
12808      # So say no if there are warnings other than the usual output.
12809      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12810      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12811      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12812        lt_prog_compiler_pic_works_CXX=yes
12813      fi
12814    fi
12815    $rm conftest*
12816
12817 fi
12818 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12819 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12820
12821 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12822     case $lt_prog_compiler_pic_CXX in
12823      "" | " "*) ;;
12824      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12825      esac
12826 else
12827     lt_prog_compiler_pic_CXX=
12828      lt_prog_compiler_can_build_shared_CXX=no
12829 fi
12830
12831 fi
12832 case $host_os in
12833   # For platforms which do not support PIC, -DPIC is meaningless:
12834   *djgpp*)
12835     lt_prog_compiler_pic_CXX=
12836     ;;
12837   *)
12838     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12839     ;;
12840 esac
12841
12842 #
12843 # Check to make sure the static flag actually works.
12844 #
12845 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12846 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12847 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12848 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12849   echo $ECHO_N "(cached) $ECHO_C" >&6
12850 else
12851   lt_prog_compiler_static_works_CXX=no
12852    save_LDFLAGS="$LDFLAGS"
12853    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12854    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12855    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12856      # The linker can only warn and ignore the option if not recognized
12857      # So say no if there are warnings
12858      if test -s conftest.err; then
12859        # Append any errors to the config.log.
12860        cat conftest.err 1>&5
12861        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12862        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12863        if diff conftest.exp conftest.er2 >/dev/null; then
12864          lt_prog_compiler_static_works_CXX=yes
12865        fi
12866      else
12867        lt_prog_compiler_static_works_CXX=yes
12868      fi
12869    fi
12870    $rm conftest*
12871    LDFLAGS="$save_LDFLAGS"
12872
12873 fi
12874 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12875 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12876
12877 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12878     :
12879 else
12880     lt_prog_compiler_static_CXX=
12881 fi
12882
12883
12884 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12885 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12886 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12887   echo $ECHO_N "(cached) $ECHO_C" >&6
12888 else
12889   lt_cv_prog_compiler_c_o_CXX=no
12890    $rm -r conftest 2>/dev/null
12891    mkdir conftest
12892    cd conftest
12893    mkdir out
12894    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12895
12896    lt_compiler_flag="-o out/conftest2.$ac_objext"
12897    # Insert the option either (1) after the last *FLAGS variable, or
12898    # (2) before a word containing "conftest.", or (3) at the end.
12899    # Note that $ac_compile itself does not contain backslashes and begins
12900    # with a dollar sign (not a hyphen), so the echo should work correctly.
12901    lt_compile=`echo "$ac_compile" | $SED \
12902    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12903    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12904    -e 's:$: $lt_compiler_flag:'`
12905    (eval echo "\"\$as_me:12905: $lt_compile\"" >&5)
12906    (eval "$lt_compile" 2>out/conftest.err)
12907    ac_status=$?
12908    cat out/conftest.err >&5
12909    echo "$as_me:12909: \$? = $ac_status" >&5
12910    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12911    then
12912      # The compiler can only warn and ignore the option if not recognized
12913      # So say no if there are warnings
12914      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12915      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12916      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12917        lt_cv_prog_compiler_c_o_CXX=yes
12918      fi
12919    fi
12920    chmod u+w . 2>&5
12921    $rm conftest*
12922    # SGI C++ compiler will create directory out/ii_files/ for
12923    # template instantiation
12924    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12925    $rm out/* && rmdir out
12926    cd ..
12927    rmdir conftest
12928    $rm conftest*
12929
12930 fi
12931 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12932 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12933
12934
12935 hard_links="nottested"
12936 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12937   # do not overwrite the value of need_locks provided by the user
12938   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12939 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12940   hard_links=yes
12941   $rm conftest*
12942   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12943   touch conftest.a
12944   ln conftest.a conftest.b 2>&5 || hard_links=no
12945   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12946   { echo "$as_me:$LINENO: result: $hard_links" >&5
12947 echo "${ECHO_T}$hard_links" >&6; }
12948   if test "$hard_links" = no; then
12949     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12950 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12951     need_locks=warn
12952   fi
12953 else
12954   need_locks=no
12955 fi
12956
12957 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12958 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12959
12960   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12961   case $host_os in
12962   aix4* | aix5*)
12963     # If we're using GNU nm, then we don't want the "-C" option.
12964     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12965     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12966       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'
12967     else
12968       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'
12969     fi
12970     ;;
12971   pw32*)
12972     export_symbols_cmds_CXX="$ltdll_cmds"
12973   ;;
12974   cygwin* | mingw*)
12975     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'
12976   ;;
12977   *)
12978     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12979   ;;
12980   esac
12981
12982 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12983 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12984 test "$ld_shlibs_CXX" = no && can_build_shared=no
12985
12986 #
12987 # Do we need to explicitly link libc?
12988 #
12989 case "x$archive_cmds_need_lc_CXX" in
12990 x|xyes)
12991   # Assume -lc should be added
12992   archive_cmds_need_lc_CXX=yes
12993
12994   if test "$enable_shared" = yes && test "$GCC" = yes; then
12995     case $archive_cmds_CXX in
12996     *'~'*)
12997       # FIXME: we may have to deal with multi-command sequences.
12998       ;;
12999     '$CC '*)
13000       # Test whether the compiler implicitly links with -lc since on some
13001       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13002       # to ld, don't add -lc before -lgcc.
13003       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13004 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13005       $rm conftest*
13006       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13007
13008       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13009   (eval $ac_compile) 2>&5
13010   ac_status=$?
13011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012   (exit $ac_status); } 2>conftest.err; then
13013         soname=conftest
13014         lib=conftest
13015         libobjs=conftest.$ac_objext
13016         deplibs=
13017         wl=$lt_prog_compiler_wl_CXX
13018         pic_flag=$lt_prog_compiler_pic_CXX
13019         compiler_flags=-v
13020         linker_flags=-v
13021         verstring=
13022         output_objdir=.
13023         libname=conftest
13024         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13025         allow_undefined_flag_CXX=
13026         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13027   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13028   ac_status=$?
13029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030   (exit $ac_status); }
13031         then
13032           archive_cmds_need_lc_CXX=no
13033         else
13034           archive_cmds_need_lc_CXX=yes
13035         fi
13036         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13037       else
13038         cat conftest.err 1>&5
13039       fi
13040       $rm conftest*
13041       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13042 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13043       ;;
13044     esac
13045   fi
13046   ;;
13047 esac
13048
13049 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13050 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13051 library_names_spec=
13052 libname_spec='lib$name'
13053 soname_spec=
13054 shrext_cmds=".so"
13055 postinstall_cmds=
13056 postuninstall_cmds=
13057 finish_cmds=
13058 finish_eval=
13059 shlibpath_var=
13060 shlibpath_overrides_runpath=unknown
13061 version_type=none
13062 dynamic_linker="$host_os ld.so"
13063 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13064
13065 need_lib_prefix=unknown
13066 hardcode_into_libs=no
13067
13068 # when you set need_version to no, make sure it does not cause -set_version
13069 # flags to be left without arguments
13070 need_version=unknown
13071
13072 case $host_os in
13073 aix3*)
13074   version_type=linux
13075   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13076   shlibpath_var=LIBPATH
13077
13078   # AIX 3 has no versioning support, so we append a major version to the name.
13079   soname_spec='${libname}${release}${shared_ext}$major'
13080   ;;
13081
13082 aix4* | aix5*)
13083   version_type=linux
13084   need_lib_prefix=no
13085   need_version=no
13086   hardcode_into_libs=yes
13087   if test "$host_cpu" = ia64; then
13088     # AIX 5 supports IA64
13089     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13090     shlibpath_var=LD_LIBRARY_PATH
13091   else
13092     # With GCC up to 2.95.x, collect2 would create an import file
13093     # for dependence libraries.  The import file would start with
13094     # the line `#! .'.  This would cause the generated library to
13095     # depend on `.', always an invalid library.  This was fixed in
13096     # development snapshots of GCC prior to 3.0.
13097     case $host_os in
13098       aix4 | aix4.[01] | aix4.[01].*)
13099       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13100            echo ' yes '
13101            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13102         :
13103       else
13104         can_build_shared=no
13105       fi
13106       ;;
13107     esac
13108     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13109     # soname into executable. Probably we can add versioning support to
13110     # collect2, so additional links can be useful in future.
13111     if test "$aix_use_runtimelinking" = yes; then
13112       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13113       # instead of lib<name>.a to let people know that these are not
13114       # typical AIX shared libraries.
13115       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13116     else
13117       # We preserve .a as extension for shared libraries through AIX4.2
13118       # and later when we are not doing run time linking.
13119       library_names_spec='${libname}${release}.a $libname.a'
13120       soname_spec='${libname}${release}${shared_ext}$major'
13121     fi
13122     shlibpath_var=LIBPATH
13123   fi
13124   ;;
13125
13126 amigaos*)
13127   library_names_spec='$libname.ixlibrary $libname.a'
13128   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13129   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'
13130   ;;
13131
13132 beos*)
13133   library_names_spec='${libname}${shared_ext}'
13134   dynamic_linker="$host_os ld.so"
13135   shlibpath_var=LIBRARY_PATH
13136   ;;
13137
13138 bsdi[45]*)
13139   version_type=linux
13140   need_version=no
13141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13142   soname_spec='${libname}${release}${shared_ext}$major'
13143   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13144   shlibpath_var=LD_LIBRARY_PATH
13145   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13146   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13147   # the default ld.so.conf also contains /usr/contrib/lib and
13148   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13149   # libtool to hard-code these into programs
13150   ;;
13151
13152 cygwin* | mingw* | pw32*)
13153   version_type=windows
13154   shrext_cmds=".dll"
13155   need_version=no
13156   need_lib_prefix=no
13157
13158   case $GCC,$host_os in
13159   yes,cygwin* | yes,mingw* | yes,pw32*)
13160     library_names_spec='$libname.dll.a'
13161     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13162     postinstall_cmds='base_file=`basename \${file}`~
13163       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13164       dldir=$destdir/`dirname \$dlpath`~
13165       test -d \$dldir || mkdir -p \$dldir~
13166       $install_prog $dir/$dlname \$dldir/$dlname~
13167       chmod a+x \$dldir/$dlname'
13168     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13169       dlpath=$dir/\$dldll~
13170        $rm \$dlpath'
13171     shlibpath_overrides_runpath=yes
13172
13173     case $host_os in
13174     cygwin*)
13175       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13176       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13177       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13178       ;;
13179     mingw*)
13180       # MinGW DLLs use traditional 'lib' prefix
13181       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13182       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13183       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13184         # It is most probably a Windows format PATH printed by
13185         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13186         # path with ; separators, and with drive letters. We can handle the
13187         # drive letters (cygwin fileutils understands them), so leave them,
13188         # especially as we might pass files found there to a mingw objdump,
13189         # which wouldn't understand a cygwinified path. Ahh.
13190         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13191       else
13192         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13193       fi
13194       ;;
13195     pw32*)
13196       # pw32 DLLs use 'pw' prefix rather than 'lib'
13197       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13198       ;;
13199     esac
13200     ;;
13201
13202   *)
13203     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13204     ;;
13205   esac
13206   dynamic_linker='Win32 ld.exe'
13207   # FIXME: first we should search . and the directory the executable is in
13208   shlibpath_var=PATH
13209   ;;
13210
13211 darwin* | rhapsody*)
13212   dynamic_linker="$host_os dyld"
13213   version_type=darwin
13214   need_lib_prefix=no
13215   need_version=no
13216   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13217   soname_spec='${libname}${release}${major}$shared_ext'
13218   shlibpath_overrides_runpath=yes
13219   shlibpath_var=DYLD_LIBRARY_PATH
13220   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13221
13222   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13223   ;;
13224
13225 dgux*)
13226   version_type=linux
13227   need_lib_prefix=no
13228   need_version=no
13229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13230   soname_spec='${libname}${release}${shared_ext}$major'
13231   shlibpath_var=LD_LIBRARY_PATH
13232   ;;
13233
13234 freebsd1*)
13235   dynamic_linker=no
13236   ;;
13237
13238 freebsd* | dragonfly*)
13239   # DragonFly does not have aout.  When/if they implement a new
13240   # versioning mechanism, adjust this.
13241   if test -x /usr/bin/objformat; then
13242     objformat=`/usr/bin/objformat`
13243   else
13244     case $host_os in
13245     freebsd[123]*) objformat=aout ;;
13246     *) objformat=elf ;;
13247     esac
13248   fi
13249   version_type=freebsd-$objformat
13250   case $version_type in
13251     freebsd-elf*)
13252       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13253       need_version=no
13254       need_lib_prefix=no
13255       ;;
13256     freebsd-*)
13257       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13258       need_version=yes
13259       ;;
13260   esac
13261   shlibpath_var=LD_LIBRARY_PATH
13262   case $host_os in
13263   freebsd2*)
13264     shlibpath_overrides_runpath=yes
13265     ;;
13266   freebsd3.[01]* | freebsdelf3.[01]*)
13267     shlibpath_overrides_runpath=yes
13268     hardcode_into_libs=yes
13269     ;;
13270   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13271   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13272     shlibpath_overrides_runpath=no
13273     hardcode_into_libs=yes
13274     ;;
13275   *) # from 4.6 on, and DragonFly
13276     shlibpath_overrides_runpath=yes
13277     hardcode_into_libs=yes
13278     ;;
13279   esac
13280   ;;
13281
13282 gnu*)
13283   version_type=linux
13284   need_lib_prefix=no
13285   need_version=no
13286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13287   soname_spec='${libname}${release}${shared_ext}$major'
13288   shlibpath_var=LD_LIBRARY_PATH
13289   hardcode_into_libs=yes
13290   ;;
13291
13292 hpux9* | hpux10* | hpux11*)
13293   # Give a soname corresponding to the major version so that dld.sl refuses to
13294   # link against other versions.
13295   version_type=sunos
13296   need_lib_prefix=no
13297   need_version=no
13298   case $host_cpu in
13299   ia64*)
13300     shrext_cmds='.so'
13301     hardcode_into_libs=yes
13302     dynamic_linker="$host_os dld.so"
13303     shlibpath_var=LD_LIBRARY_PATH
13304     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13305     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13306     soname_spec='${libname}${release}${shared_ext}$major'
13307     if test "X$HPUX_IA64_MODE" = X32; then
13308       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13309     else
13310       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13311     fi
13312     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13313     ;;
13314    hppa*64*)
13315      shrext_cmds='.sl'
13316      hardcode_into_libs=yes
13317      dynamic_linker="$host_os dld.sl"
13318      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13319      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13320      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13321      soname_spec='${libname}${release}${shared_ext}$major'
13322      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13323      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13324      ;;
13325    *)
13326     shrext_cmds='.sl'
13327     dynamic_linker="$host_os dld.sl"
13328     shlibpath_var=SHLIB_PATH
13329     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13330     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13331     soname_spec='${libname}${release}${shared_ext}$major'
13332     ;;
13333   esac
13334   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13335   postinstall_cmds='chmod 555 $lib'
13336   ;;
13337
13338 interix[3-9]*)
13339   version_type=linux
13340   need_lib_prefix=no
13341   need_version=no
13342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13343   soname_spec='${libname}${release}${shared_ext}$major'
13344   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13345   shlibpath_var=LD_LIBRARY_PATH
13346   shlibpath_overrides_runpath=no
13347   hardcode_into_libs=yes
13348   ;;
13349
13350 irix5* | irix6* | nonstopux*)
13351   case $host_os in
13352     nonstopux*) version_type=nonstopux ;;
13353     *)
13354         if test "$lt_cv_prog_gnu_ld" = yes; then
13355                 version_type=linux
13356         else
13357                 version_type=irix
13358         fi ;;
13359   esac
13360   need_lib_prefix=no
13361   need_version=no
13362   soname_spec='${libname}${release}${shared_ext}$major'
13363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13364   case $host_os in
13365   irix5* | nonstopux*)
13366     libsuff= shlibsuff=
13367     ;;
13368   *)
13369     case $LD in # libtool.m4 will add one of these switches to LD
13370     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13371       libsuff= shlibsuff= libmagic=32-bit;;
13372     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13373       libsuff=32 shlibsuff=N32 libmagic=N32;;
13374     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13375       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13376     *) libsuff= shlibsuff= libmagic=never-match;;
13377     esac
13378     ;;
13379   esac
13380   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13381   shlibpath_overrides_runpath=no
13382   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13383   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13384   hardcode_into_libs=yes
13385   ;;
13386
13387 # No shared lib support for Linux oldld, aout, or coff.
13388 linux*oldld* | linux*aout* | linux*coff*)
13389   dynamic_linker=no
13390   ;;
13391
13392 # This must be Linux ELF.
13393 linux* | k*bsd*-gnu)
13394   version_type=linux
13395   need_lib_prefix=no
13396   need_version=no
13397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13398   soname_spec='${libname}${release}${shared_ext}$major'
13399   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13400   shlibpath_var=LD_LIBRARY_PATH
13401   shlibpath_overrides_runpath=no
13402   # This implies no fast_install, which is unacceptable.
13403   # Some rework will be needed to allow for fast_install
13404   # before this can be enabled.
13405   hardcode_into_libs=yes
13406
13407   # find out which ABI we are using
13408   libsuff=
13409   case "$host_cpu" in
13410   x86_64*|s390x*|powerpc64*)
13411     echo '#line 13411 "configure"' > conftest.$ac_ext
13412     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13413   (eval $ac_compile) 2>&5
13414   ac_status=$?
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); }; then
13417       case `/usr/bin/file conftest.$ac_objext` in
13418       *64-bit*)
13419         libsuff=64
13420         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13421         ;;
13422       esac
13423     fi
13424     rm -rf conftest*
13425     ;;
13426   esac
13427
13428   # Append ld.so.conf contents to the search path
13429   if test -f /etc/ld.so.conf; then
13430     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13431     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13432   fi
13433
13434   # We used to test for /lib/ld.so.1 and disable shared libraries on
13435   # powerpc, because MkLinux only supported shared libraries with the
13436   # GNU dynamic linker.  Since this was broken with cross compilers,
13437   # most powerpc-linux boxes support dynamic linking these days and
13438   # people can always --disable-shared, the test was removed, and we
13439   # assume the GNU/Linux dynamic linker is in use.
13440   dynamic_linker='GNU/Linux ld.so'
13441   ;;
13442
13443 netbsd*)
13444   version_type=sunos
13445   need_lib_prefix=no
13446   need_version=no
13447   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13448     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13449     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13450     dynamic_linker='NetBSD (a.out) ld.so'
13451   else
13452     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13453     soname_spec='${libname}${release}${shared_ext}$major'
13454     dynamic_linker='NetBSD ld.elf_so'
13455   fi
13456   shlibpath_var=LD_LIBRARY_PATH
13457   shlibpath_overrides_runpath=yes
13458   hardcode_into_libs=yes
13459   ;;
13460
13461 newsos6)
13462   version_type=linux
13463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13464   shlibpath_var=LD_LIBRARY_PATH
13465   shlibpath_overrides_runpath=yes
13466   ;;
13467
13468 nto-qnx*)
13469   version_type=linux
13470   need_lib_prefix=no
13471   need_version=no
13472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13473   soname_spec='${libname}${release}${shared_ext}$major'
13474   shlibpath_var=LD_LIBRARY_PATH
13475   shlibpath_overrides_runpath=yes
13476   ;;
13477
13478 openbsd*)
13479   version_type=sunos
13480   sys_lib_dlsearch_path_spec="/usr/lib"
13481   need_lib_prefix=no
13482   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13483   case $host_os in
13484     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13485     *)                         need_version=no  ;;
13486   esac
13487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13488   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13489   shlibpath_var=LD_LIBRARY_PATH
13490   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13491     case $host_os in
13492       openbsd2.[89] | openbsd2.[89].*)
13493         shlibpath_overrides_runpath=no
13494         ;;
13495       *)
13496         shlibpath_overrides_runpath=yes
13497         ;;
13498       esac
13499   else
13500     shlibpath_overrides_runpath=yes
13501   fi
13502   ;;
13503
13504 os2*)
13505   libname_spec='$name'
13506   shrext_cmds=".dll"
13507   need_lib_prefix=no
13508   library_names_spec='$libname${shared_ext} $libname.a'
13509   dynamic_linker='OS/2 ld.exe'
13510   shlibpath_var=LIBPATH
13511   ;;
13512
13513 osf3* | osf4* | osf5*)
13514   version_type=osf
13515   need_lib_prefix=no
13516   need_version=no
13517   soname_spec='${libname}${release}${shared_ext}$major'
13518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13519   shlibpath_var=LD_LIBRARY_PATH
13520   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13521   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13522   ;;
13523
13524 rdos*)
13525   dynamic_linker=no
13526   ;;
13527
13528 solaris*)
13529   version_type=linux
13530   need_lib_prefix=no
13531   need_version=no
13532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13533   soname_spec='${libname}${release}${shared_ext}$major'
13534   shlibpath_var=LD_LIBRARY_PATH
13535   shlibpath_overrides_runpath=yes
13536   hardcode_into_libs=yes
13537   # ldd complains unless libraries are executable
13538   postinstall_cmds='chmod +x $lib'
13539   ;;
13540
13541 sunos4*)
13542   version_type=sunos
13543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13544   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13545   shlibpath_var=LD_LIBRARY_PATH
13546   shlibpath_overrides_runpath=yes
13547   if test "$with_gnu_ld" = yes; then
13548     need_lib_prefix=no
13549   fi
13550   need_version=yes
13551   ;;
13552
13553 sysv4 | sysv4.3*)
13554   version_type=linux
13555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13556   soname_spec='${libname}${release}${shared_ext}$major'
13557   shlibpath_var=LD_LIBRARY_PATH
13558   case $host_vendor in
13559     sni)
13560       shlibpath_overrides_runpath=no
13561       need_lib_prefix=no
13562       export_dynamic_flag_spec='${wl}-Blargedynsym'
13563       runpath_var=LD_RUN_PATH
13564       ;;
13565     siemens)
13566       need_lib_prefix=no
13567       ;;
13568     motorola)
13569       need_lib_prefix=no
13570       need_version=no
13571       shlibpath_overrides_runpath=no
13572       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13573       ;;
13574   esac
13575   ;;
13576
13577 sysv4*MP*)
13578   if test -d /usr/nec ;then
13579     version_type=linux
13580     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13581     soname_spec='$libname${shared_ext}.$major'
13582     shlibpath_var=LD_LIBRARY_PATH
13583   fi
13584   ;;
13585
13586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13587   version_type=freebsd-elf
13588   need_lib_prefix=no
13589   need_version=no
13590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13591   soname_spec='${libname}${release}${shared_ext}$major'
13592   shlibpath_var=LD_LIBRARY_PATH
13593   hardcode_into_libs=yes
13594   if test "$with_gnu_ld" = yes; then
13595     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13596     shlibpath_overrides_runpath=no
13597   else
13598     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13599     shlibpath_overrides_runpath=yes
13600     case $host_os in
13601       sco3.2v5*)
13602         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13603         ;;
13604     esac
13605   fi
13606   sys_lib_dlsearch_path_spec='/usr/lib'
13607   ;;
13608
13609 uts4*)
13610   version_type=linux
13611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13612   soname_spec='${libname}${release}${shared_ext}$major'
13613   shlibpath_var=LD_LIBRARY_PATH
13614   ;;
13615
13616 *)
13617   dynamic_linker=no
13618   ;;
13619 esac
13620 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13621 echo "${ECHO_T}$dynamic_linker" >&6; }
13622 test "$dynamic_linker" = no && can_build_shared=no
13623
13624 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13625 if test "$GCC" = yes; then
13626   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13627 fi
13628
13629 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13630 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13631 hardcode_action_CXX=
13632 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13633    test -n "$runpath_var_CXX" || \
13634    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13635
13636   # We can hardcode non-existant directories.
13637   if test "$hardcode_direct_CXX" != no &&
13638      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13639      # have to relink, otherwise we might link with an installed library
13640      # when we should be linking with a yet-to-be-installed one
13641      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13642      test "$hardcode_minus_L_CXX" != no; then
13643     # Linking always hardcodes the temporary library directory.
13644     hardcode_action_CXX=relink
13645   else
13646     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13647     hardcode_action_CXX=immediate
13648   fi
13649 else
13650   # We cannot hardcode anything, or else we can only hardcode existing
13651   # directories.
13652   hardcode_action_CXX=unsupported
13653 fi
13654 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13655 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13656
13657 if test "$hardcode_action_CXX" = relink; then
13658   # Fast installation is not supported
13659   enable_fast_install=no
13660 elif test "$shlibpath_overrides_runpath" = yes ||
13661      test "$enable_shared" = no; then
13662   # Fast installation is not necessary
13663   enable_fast_install=needless
13664 fi
13665
13666
13667 # The else clause should only fire when bootstrapping the
13668 # libtool distribution, otherwise you forgot to ship ltmain.sh
13669 # with your package, and you will get complaints that there are
13670 # no rules to generate ltmain.sh.
13671 if test -f "$ltmain"; then
13672   # See if we are running on zsh, and set the options which allow our commands through
13673   # without removal of \ escapes.
13674   if test -n "${ZSH_VERSION+set}" ; then
13675     setopt NO_GLOB_SUBST
13676   fi
13677   # Now quote all the things that may contain metacharacters while being
13678   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13679   # variables and quote the copies for generation of the libtool script.
13680   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13681     SED SHELL STRIP \
13682     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13683     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13684     deplibs_check_method reload_flag reload_cmds need_locks \
13685     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13686     lt_cv_sys_global_symbol_to_c_name_address \
13687     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13688     old_postinstall_cmds old_postuninstall_cmds \
13689     compiler_CXX \
13690     CC_CXX \
13691     LD_CXX \
13692     lt_prog_compiler_wl_CXX \
13693     lt_prog_compiler_pic_CXX \
13694     lt_prog_compiler_static_CXX \
13695     lt_prog_compiler_no_builtin_flag_CXX \
13696     export_dynamic_flag_spec_CXX \
13697     thread_safe_flag_spec_CXX \
13698     whole_archive_flag_spec_CXX \
13699     enable_shared_with_static_runtimes_CXX \
13700     old_archive_cmds_CXX \
13701     old_archive_from_new_cmds_CXX \
13702     predep_objects_CXX \
13703     postdep_objects_CXX \
13704     predeps_CXX \
13705     postdeps_CXX \
13706     compiler_lib_search_path_CXX \
13707     archive_cmds_CXX \
13708     archive_expsym_cmds_CXX \
13709     postinstall_cmds_CXX \
13710     postuninstall_cmds_CXX \
13711     old_archive_from_expsyms_cmds_CXX \
13712     allow_undefined_flag_CXX \
13713     no_undefined_flag_CXX \
13714     export_symbols_cmds_CXX \
13715     hardcode_libdir_flag_spec_CXX \
13716     hardcode_libdir_flag_spec_ld_CXX \
13717     hardcode_libdir_separator_CXX \
13718     hardcode_automatic_CXX \
13719     module_cmds_CXX \
13720     module_expsym_cmds_CXX \
13721     lt_cv_prog_compiler_c_o_CXX \
13722     fix_srcfile_path_CXX \
13723     exclude_expsyms_CXX \
13724     include_expsyms_CXX; do
13725
13726     case $var in
13727     old_archive_cmds_CXX | \
13728     old_archive_from_new_cmds_CXX | \
13729     archive_cmds_CXX | \
13730     archive_expsym_cmds_CXX | \
13731     module_cmds_CXX | \
13732     module_expsym_cmds_CXX | \
13733     old_archive_from_expsyms_cmds_CXX | \
13734     export_symbols_cmds_CXX | \
13735     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13736     postinstall_cmds | postuninstall_cmds | \
13737     old_postinstall_cmds | old_postuninstall_cmds | \
13738     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13739       # Double-quote double-evaled strings.
13740       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13741       ;;
13742     *)
13743       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13744       ;;
13745     esac
13746   done
13747
13748   case $lt_echo in
13749   *'\$0 --fallback-echo"')
13750     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13751     ;;
13752   esac
13753
13754 cfgfile="$ofile"
13755
13756   cat <<__EOF__ >> "$cfgfile"
13757 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13758
13759 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13760
13761 # Shell to use when invoking shell scripts.
13762 SHELL=$lt_SHELL
13763
13764 # Whether or not to build shared libraries.
13765 build_libtool_libs=$enable_shared
13766
13767 # Whether or not to build static libraries.
13768 build_old_libs=$enable_static
13769
13770 # Whether or not to add -lc for building shared libraries.
13771 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13772
13773 # Whether or not to disallow shared libs when runtime libs are static
13774 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13775
13776 # Whether or not to optimize for fast installation.
13777 fast_install=$enable_fast_install
13778
13779 # The host system.
13780 host_alias=$host_alias
13781 host=$host
13782 host_os=$host_os
13783
13784 # The build system.
13785 build_alias=$build_alias
13786 build=$build
13787 build_os=$build_os
13788
13789 # An echo program that does not interpret backslashes.
13790 echo=$lt_echo
13791
13792 # The archiver.
13793 AR=$lt_AR
13794 AR_FLAGS=$lt_AR_FLAGS
13795
13796 # A C compiler.
13797 LTCC=$lt_LTCC
13798
13799 # LTCC compiler flags.
13800 LTCFLAGS=$lt_LTCFLAGS
13801
13802 # A language-specific compiler.
13803 CC=$lt_compiler_CXX
13804
13805 # Is the compiler the GNU C compiler?
13806 with_gcc=$GCC_CXX
13807
13808 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13809 gcc_ver=\`gcc -dumpversion\`
13810
13811 # An ERE matcher.
13812 EGREP=$lt_EGREP
13813
13814 # The linker used to build libraries.
13815 LD=$lt_LD_CXX
13816
13817 # Whether we need hard or soft links.
13818 LN_S=$lt_LN_S
13819
13820 # A BSD-compatible nm program.
13821 NM=$lt_NM
13822
13823 # A symbol stripping program
13824 STRIP=$lt_STRIP
13825
13826 # Used to examine libraries when file_magic_cmd begins "file"
13827 MAGIC_CMD=$MAGIC_CMD
13828
13829 # Used on cygwin: DLL creation program.
13830 DLLTOOL="$DLLTOOL"
13831
13832 # Used on cygwin: object dumper.
13833 OBJDUMP="$OBJDUMP"
13834
13835 # Used on cygwin: assembler.
13836 AS="$AS"
13837
13838 # The name of the directory that contains temporary libtool files.
13839 objdir=$objdir
13840
13841 # How to create reloadable object files.
13842 reload_flag=$lt_reload_flag
13843 reload_cmds=$lt_reload_cmds
13844
13845 # How to pass a linker flag through the compiler.
13846 wl=$lt_lt_prog_compiler_wl_CXX
13847
13848 # Object file suffix (normally "o").
13849 objext="$ac_objext"
13850
13851 # Old archive suffix (normally "a").
13852 libext="$libext"
13853
13854 # Shared library suffix (normally ".so").
13855 shrext_cmds='$shrext_cmds'
13856
13857 # Executable file suffix (normally "").
13858 exeext="$exeext"
13859
13860 # Additional compiler flags for building library objects.
13861 pic_flag=$lt_lt_prog_compiler_pic_CXX
13862 pic_mode=$pic_mode
13863
13864 # What is the maximum length of a command?
13865 max_cmd_len=$lt_cv_sys_max_cmd_len
13866
13867 # Does compiler simultaneously support -c and -o options?
13868 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13869
13870 # Must we lock files when doing compilation?
13871 need_locks=$lt_need_locks
13872
13873 # Do we need the lib prefix for modules?
13874 need_lib_prefix=$need_lib_prefix
13875
13876 # Do we need a version for libraries?
13877 need_version=$need_version
13878
13879 # Whether dlopen is supported.
13880 dlopen_support=$enable_dlopen
13881
13882 # Whether dlopen of programs is supported.
13883 dlopen_self=$enable_dlopen_self
13884
13885 # Whether dlopen of statically linked programs is supported.
13886 dlopen_self_static=$enable_dlopen_self_static
13887
13888 # Compiler flag to prevent dynamic linking.
13889 link_static_flag=$lt_lt_prog_compiler_static_CXX
13890
13891 # Compiler flag to turn off builtin functions.
13892 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13893
13894 # Compiler flag to allow reflexive dlopens.
13895 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13896
13897 # Compiler flag to generate shared objects directly from archives.
13898 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13899
13900 # Compiler flag to generate thread-safe objects.
13901 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13902
13903 # Library versioning type.
13904 version_type=$version_type
13905
13906 # Format of library name prefix.
13907 libname_spec=$lt_libname_spec
13908
13909 # List of archive names.  First name is the real one, the rest are links.
13910 # The last name is the one that the linker finds with -lNAME.
13911 library_names_spec=$lt_library_names_spec
13912
13913 # The coded name of the library, if different from the real name.
13914 soname_spec=$lt_soname_spec
13915
13916 # Commands used to build and install an old-style archive.
13917 RANLIB=$lt_RANLIB
13918 old_archive_cmds=$lt_old_archive_cmds_CXX
13919 old_postinstall_cmds=$lt_old_postinstall_cmds
13920 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13921
13922 # Create an old-style archive from a shared archive.
13923 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13924
13925 # Create a temporary old-style archive to link instead of a shared archive.
13926 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13927
13928 # Commands used to build and install a shared archive.
13929 archive_cmds=$lt_archive_cmds_CXX
13930 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13931 postinstall_cmds=$lt_postinstall_cmds
13932 postuninstall_cmds=$lt_postuninstall_cmds
13933
13934 # Commands used to build a loadable module (assumed same as above if empty)
13935 module_cmds=$lt_module_cmds_CXX
13936 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13937
13938 # Commands to strip libraries.
13939 old_striplib=$lt_old_striplib
13940 striplib=$lt_striplib
13941
13942 # Dependencies to place before the objects being linked to create a
13943 # shared library.
13944 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13945
13946 # Dependencies to place after the objects being linked to create a
13947 # shared library.
13948 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13949
13950 # Dependencies to place before the objects being linked to create a
13951 # shared library.
13952 predeps=$lt_predeps_CXX
13953
13954 # Dependencies to place after the objects being linked to create a
13955 # shared library.
13956 postdeps=$lt_postdeps_CXX
13957
13958 # The library search path used internally by the compiler when linking
13959 # a shared library.
13960 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13961
13962 # Method to check whether dependent libraries are shared objects.
13963 deplibs_check_method=$lt_deplibs_check_method
13964
13965 # Command to use when deplibs_check_method == file_magic.
13966 file_magic_cmd=$lt_file_magic_cmd
13967
13968 # Flag that allows shared libraries with undefined symbols to be built.
13969 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13970
13971 # Flag that forces no undefined symbols.
13972 no_undefined_flag=$lt_no_undefined_flag_CXX
13973
13974 # Commands used to finish a libtool library installation in a directory.
13975 finish_cmds=$lt_finish_cmds
13976
13977 # Same as above, but a single script fragment to be evaled but not shown.
13978 finish_eval=$lt_finish_eval
13979
13980 # Take the output of nm and produce a listing of raw symbols and C names.
13981 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13982
13983 # Transform the output of nm in a proper C declaration
13984 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13985
13986 # Transform the output of nm in a C name address pair
13987 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13988
13989 # This is the shared library runtime path variable.
13990 runpath_var=$runpath_var
13991
13992 # This is the shared library path variable.
13993 shlibpath_var=$shlibpath_var
13994
13995 # Is shlibpath searched before the hard-coded library search path?
13996 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13997
13998 # How to hardcode a shared library path into an executable.
13999 hardcode_action=$hardcode_action_CXX
14000
14001 # Whether we should hardcode library paths into libraries.
14002 hardcode_into_libs=$hardcode_into_libs
14003
14004 # Flag to hardcode \$libdir into a binary during linking.
14005 # This must work even if \$libdir does not exist.
14006 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14007
14008 # If ld is used when linking, flag to hardcode \$libdir into
14009 # a binary during linking. This must work even if \$libdir does
14010 # not exist.
14011 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14012
14013 # Whether we need a single -rpath flag with a separated argument.
14014 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14015
14016 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14017 # resulting binary.
14018 hardcode_direct=$hardcode_direct_CXX
14019
14020 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14021 # resulting binary.
14022 hardcode_minus_L=$hardcode_minus_L_CXX
14023
14024 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14025 # the resulting binary.
14026 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14027
14028 # Set to yes if building a shared library automatically hardcodes DIR into the library
14029 # and all subsequent libraries and executables linked against it.
14030 hardcode_automatic=$hardcode_automatic_CXX
14031
14032 # Variables whose values should be saved in libtool wrapper scripts and
14033 # restored at relink time.
14034 variables_saved_for_relink="$variables_saved_for_relink"
14035
14036 # Whether libtool must link a program against all its dependency libraries.
14037 link_all_deplibs=$link_all_deplibs_CXX
14038
14039 # Compile-time system search path for libraries
14040 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
14041
14042 # Run-time system search path for libraries
14043 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14044
14045 # Fix the shell variable \$srcfile for the compiler.
14046 fix_srcfile_path=$lt_fix_srcfile_path
14047
14048 # Set to yes if exported symbols are required.
14049 always_export_symbols=$always_export_symbols_CXX
14050
14051 # The commands to list exported symbols.
14052 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14053
14054 # The commands to extract the exported symbol list from a shared archive.
14055 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14056
14057 # Symbols that should not be listed in the preloaded symbols.
14058 exclude_expsyms=$lt_exclude_expsyms_CXX
14059
14060 # Symbols that must always be exported.
14061 include_expsyms=$lt_include_expsyms_CXX
14062
14063 # ### END LIBTOOL TAG CONFIG: $tagname
14064
14065 __EOF__
14066
14067
14068 else
14069   # If there is no Makefile yet, we rely on a make rule to execute
14070   # `config.status --recheck' to rerun these tests and create the
14071   # libtool script then.
14072   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14073   if test -f "$ltmain_in"; then
14074     test -f Makefile && make "$ltmain"
14075   fi
14076 fi
14077
14078
14079 ac_ext=c
14080 ac_cpp='$CPP $CPPFLAGS'
14081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14084
14085 CC=$lt_save_CC
14086 LDCXX=$LD
14087 LD=$lt_save_LD
14088 GCC=$lt_save_GCC
14089 with_gnu_ldcxx=$with_gnu_ld
14090 with_gnu_ld=$lt_save_with_gnu_ld
14091 lt_cv_path_LDCXX=$lt_cv_path_LD
14092 lt_cv_path_LD=$lt_save_path_LD
14093 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14094 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14095
14096         else
14097           tagname=""
14098         fi
14099         ;;
14100
14101       F77)
14102         if test -n "$F77" && test "X$F77" != "Xno"; then
14103
14104 ac_ext=f
14105 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14106 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14107 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14108
14109
14110 archive_cmds_need_lc_F77=no
14111 allow_undefined_flag_F77=
14112 always_export_symbols_F77=no
14113 archive_expsym_cmds_F77=
14114 export_dynamic_flag_spec_F77=
14115 hardcode_direct_F77=no
14116 hardcode_libdir_flag_spec_F77=
14117 hardcode_libdir_flag_spec_ld_F77=
14118 hardcode_libdir_separator_F77=
14119 hardcode_minus_L_F77=no
14120 hardcode_automatic_F77=no
14121 module_cmds_F77=
14122 module_expsym_cmds_F77=
14123 link_all_deplibs_F77=unknown
14124 old_archive_cmds_F77=$old_archive_cmds
14125 no_undefined_flag_F77=
14126 whole_archive_flag_spec_F77=
14127 enable_shared_with_static_runtimes_F77=no
14128
14129 # Source file extension for f77 test sources.
14130 ac_ext=f
14131
14132 # Object file extension for compiled f77 test sources.
14133 objext=o
14134 objext_F77=$objext
14135
14136 # Code to be used in simple compile tests
14137 lt_simple_compile_test_code="\
14138       subroutine t
14139       return
14140       end
14141 "
14142
14143 # Code to be used in simple link tests
14144 lt_simple_link_test_code="\
14145       program t
14146       end
14147 "
14148
14149 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14150
14151 # If no C compiler was specified, use CC.
14152 LTCC=${LTCC-"$CC"}
14153
14154 # If no C compiler flags were specified, use CFLAGS.
14155 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14156
14157 # Allow CC to be a program name with arguments.
14158 compiler=$CC
14159
14160
14161 # save warnings/boilerplate of simple test code
14162 ac_outfile=conftest.$ac_objext
14163 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14164 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14165 _lt_compiler_boilerplate=`cat conftest.err`
14166 $rm conftest*
14167
14168 ac_outfile=conftest.$ac_objext
14169 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14170 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14171 _lt_linker_boilerplate=`cat conftest.err`
14172 $rm conftest*
14173
14174
14175 # Allow CC to be a program name with arguments.
14176 lt_save_CC="$CC"
14177 CC=${F77-"f77"}
14178 compiler=$CC
14179 compiler_F77=$CC
14180 for cc_temp in $compiler""; do
14181   case $cc_temp in
14182     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14183     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14184     \-*) ;;
14185     *) break;;
14186   esac
14187 done
14188 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14189
14190
14191 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14192 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14193 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14194 echo "${ECHO_T}$can_build_shared" >&6; }
14195
14196 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14197 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14198 test "$can_build_shared" = "no" && enable_shared=no
14199
14200 # On AIX, shared libraries and static libraries use the same namespace, and
14201 # are all built from PIC.
14202 case $host_os in
14203 aix3*)
14204   test "$enable_shared" = yes && enable_static=no
14205   if test -n "$RANLIB"; then
14206     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14207     postinstall_cmds='$RANLIB $lib'
14208   fi
14209   ;;
14210 aix4* | aix5*)
14211   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14212     test "$enable_shared" = yes && enable_static=no
14213   fi
14214   ;;
14215 esac
14216 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14217 echo "${ECHO_T}$enable_shared" >&6; }
14218
14219 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14220 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14221 # Make sure either enable_shared or enable_static is yes.
14222 test "$enable_shared" = yes || enable_static=yes
14223 { echo "$as_me:$LINENO: result: $enable_static" >&5
14224 echo "${ECHO_T}$enable_static" >&6; }
14225
14226 GCC_F77="$G77"
14227 LD_F77="$LD"
14228
14229 lt_prog_compiler_wl_F77=
14230 lt_prog_compiler_pic_F77=
14231 lt_prog_compiler_static_F77=
14232
14233 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14234 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14235
14236   if test "$GCC" = yes; then
14237     lt_prog_compiler_wl_F77='-Wl,'
14238     lt_prog_compiler_static_F77='-static'
14239
14240     case $host_os in
14241       aix*)
14242       # All AIX code is PIC.
14243       if test "$host_cpu" = ia64; then
14244         # AIX 5 now supports IA64 processor
14245         lt_prog_compiler_static_F77='-Bstatic'
14246       fi
14247       ;;
14248
14249     amigaos*)
14250       # FIXME: we need at least 68020 code to build shared libraries, but
14251       # adding the `-m68020' flag to GCC prevents building anything better,
14252       # like `-m68040'.
14253       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14254       ;;
14255
14256     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14257       # PIC is the default for these OSes.
14258       ;;
14259
14260     mingw* | cygwin* | pw32* | os2*)
14261       # This hack is so that the source file can tell whether it is being
14262       # built for inclusion in a dll (and should export symbols for example).
14263       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14264       # (--disable-auto-import) libraries
14265       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14266       ;;
14267
14268     darwin* | rhapsody*)
14269       # PIC is the default on this platform
14270       # Common symbols not allowed in MH_DYLIB files
14271       lt_prog_compiler_pic_F77='-fno-common'
14272       ;;
14273
14274     interix[3-9]*)
14275       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14276       # Instead, we relocate shared libraries at runtime.
14277       ;;
14278
14279     msdosdjgpp*)
14280       # Just because we use GCC doesn't mean we suddenly get shared libraries
14281       # on systems that don't support them.
14282       lt_prog_compiler_can_build_shared_F77=no
14283       enable_shared=no
14284       ;;
14285
14286     sysv4*MP*)
14287       if test -d /usr/nec; then
14288         lt_prog_compiler_pic_F77=-Kconform_pic
14289       fi
14290       ;;
14291
14292     hpux*)
14293       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14294       # not for PA HP-UX.
14295       case $host_cpu in
14296       hppa*64*|ia64*)
14297         # +Z the default
14298         ;;
14299       *)
14300         lt_prog_compiler_pic_F77='-fPIC'
14301         ;;
14302       esac
14303       ;;
14304
14305     *)
14306       lt_prog_compiler_pic_F77='-fPIC'
14307       ;;
14308     esac
14309   else
14310     # PORTME Check for flag to pass linker flags through the system compiler.
14311     case $host_os in
14312     aix*)
14313       lt_prog_compiler_wl_F77='-Wl,'
14314       if test "$host_cpu" = ia64; then
14315         # AIX 5 now supports IA64 processor
14316         lt_prog_compiler_static_F77='-Bstatic'
14317       else
14318         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14319       fi
14320       ;;
14321       darwin*)
14322         # PIC is the default on this platform
14323         # Common symbols not allowed in MH_DYLIB files
14324        case $cc_basename in
14325          xlc*)
14326          lt_prog_compiler_pic_F77='-qnocommon'
14327          lt_prog_compiler_wl_F77='-Wl,'
14328          ;;
14329        esac
14330        ;;
14331
14332     mingw* | cygwin* | pw32* | os2*)
14333       # This hack is so that the source file can tell whether it is being
14334       # built for inclusion in a dll (and should export symbols for example).
14335       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14336       ;;
14337
14338     hpux9* | hpux10* | hpux11*)
14339       lt_prog_compiler_wl_F77='-Wl,'
14340       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14341       # not for PA HP-UX.
14342       case $host_cpu in
14343       hppa*64*|ia64*)
14344         # +Z the default
14345         ;;
14346       *)
14347         lt_prog_compiler_pic_F77='+Z'
14348         ;;
14349       esac
14350       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14351       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14352       ;;
14353
14354     irix5* | irix6* | nonstopux*)
14355       lt_prog_compiler_wl_F77='-Wl,'
14356       # PIC (with -KPIC) is the default.
14357       lt_prog_compiler_static_F77='-non_shared'
14358       ;;
14359
14360     newsos6)
14361       lt_prog_compiler_pic_F77='-KPIC'
14362       lt_prog_compiler_static_F77='-Bstatic'
14363       ;;
14364
14365     linux* | k*bsd*-gnu)
14366       case $cc_basename in
14367       icc* | ecc*)
14368         lt_prog_compiler_wl_F77='-Wl,'
14369         lt_prog_compiler_pic_F77='-KPIC'
14370         lt_prog_compiler_static_F77='-static'
14371         ;;
14372       pgcc* | pgf77* | pgf90* | pgf95*)
14373         # Portland Group compilers (*not* the Pentium gcc compiler,
14374         # which looks to be a dead project)
14375         lt_prog_compiler_wl_F77='-Wl,'
14376         lt_prog_compiler_pic_F77='-fpic'
14377         lt_prog_compiler_static_F77='-Bstatic'
14378         ;;
14379       ccc*)
14380         lt_prog_compiler_wl_F77='-Wl,'
14381         # All Alpha code is PIC.
14382         lt_prog_compiler_static_F77='-non_shared'
14383         ;;
14384       *)
14385         case `$CC -V 2>&1 | sed 5q` in
14386         *Sun\ C*)
14387           # Sun C 5.9
14388           lt_prog_compiler_pic_F77='-KPIC'
14389           lt_prog_compiler_static_F77='-Bstatic'
14390           lt_prog_compiler_wl_F77='-Wl,'
14391           ;;
14392         *Sun\ F*)
14393           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14394           lt_prog_compiler_pic_F77='-KPIC'
14395           lt_prog_compiler_static_F77='-Bstatic'
14396           lt_prog_compiler_wl_F77=''
14397           ;;
14398         esac
14399         ;;
14400       esac
14401       ;;
14402
14403     osf3* | osf4* | osf5*)
14404       lt_prog_compiler_wl_F77='-Wl,'
14405       # All OSF/1 code is PIC.
14406       lt_prog_compiler_static_F77='-non_shared'
14407       ;;
14408
14409     rdos*)
14410       lt_prog_compiler_static_F77='-non_shared'
14411       ;;
14412
14413     solaris*)
14414       lt_prog_compiler_pic_F77='-KPIC'
14415       lt_prog_compiler_static_F77='-Bstatic'
14416       case $cc_basename in
14417       f77* | f90* | f95*)
14418         lt_prog_compiler_wl_F77='-Qoption ld ';;
14419       *)
14420         lt_prog_compiler_wl_F77='-Wl,';;
14421       esac
14422       ;;
14423
14424     sunos4*)
14425       lt_prog_compiler_wl_F77='-Qoption ld '
14426       lt_prog_compiler_pic_F77='-PIC'
14427       lt_prog_compiler_static_F77='-Bstatic'
14428       ;;
14429
14430     sysv4 | sysv4.2uw2* | sysv4.3*)
14431       lt_prog_compiler_wl_F77='-Wl,'
14432       lt_prog_compiler_pic_F77='-KPIC'
14433       lt_prog_compiler_static_F77='-Bstatic'
14434       ;;
14435
14436     sysv4*MP*)
14437       if test -d /usr/nec ;then
14438         lt_prog_compiler_pic_F77='-Kconform_pic'
14439         lt_prog_compiler_static_F77='-Bstatic'
14440       fi
14441       ;;
14442
14443     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14444       lt_prog_compiler_wl_F77='-Wl,'
14445       lt_prog_compiler_pic_F77='-KPIC'
14446       lt_prog_compiler_static_F77='-Bstatic'
14447       ;;
14448
14449     unicos*)
14450       lt_prog_compiler_wl_F77='-Wl,'
14451       lt_prog_compiler_can_build_shared_F77=no
14452       ;;
14453
14454     uts4*)
14455       lt_prog_compiler_pic_F77='-pic'
14456       lt_prog_compiler_static_F77='-Bstatic'
14457       ;;
14458
14459     *)
14460       lt_prog_compiler_can_build_shared_F77=no
14461       ;;
14462     esac
14463   fi
14464
14465 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14466 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14467
14468 #
14469 # Check to make sure the PIC flag actually works.
14470 #
14471 if test -n "$lt_prog_compiler_pic_F77"; then
14472
14473 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14474 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14475 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14476   echo $ECHO_N "(cached) $ECHO_C" >&6
14477 else
14478   lt_prog_compiler_pic_works_F77=no
14479   ac_outfile=conftest.$ac_objext
14480    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14481    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14482    # Insert the option either (1) after the last *FLAGS variable, or
14483    # (2) before a word containing "conftest.", or (3) at the end.
14484    # Note that $ac_compile itself does not contain backslashes and begins
14485    # with a dollar sign (not a hyphen), so the echo should work correctly.
14486    # The option is referenced via a variable to avoid confusing sed.
14487    lt_compile=`echo "$ac_compile" | $SED \
14488    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14489    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14490    -e 's:$: $lt_compiler_flag:'`
14491    (eval echo "\"\$as_me:14491: $lt_compile\"" >&5)
14492    (eval "$lt_compile" 2>conftest.err)
14493    ac_status=$?
14494    cat conftest.err >&5
14495    echo "$as_me:14495: \$? = $ac_status" >&5
14496    if (exit $ac_status) && test -s "$ac_outfile"; then
14497      # The compiler can only warn and ignore the option if not recognized
14498      # So say no if there are warnings other than the usual output.
14499      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14500      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14501      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14502        lt_prog_compiler_pic_works_F77=yes
14503      fi
14504    fi
14505    $rm conftest*
14506
14507 fi
14508 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14509 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14510
14511 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14512     case $lt_prog_compiler_pic_F77 in
14513      "" | " "*) ;;
14514      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14515      esac
14516 else
14517     lt_prog_compiler_pic_F77=
14518      lt_prog_compiler_can_build_shared_F77=no
14519 fi
14520
14521 fi
14522 case $host_os in
14523   # For platforms which do not support PIC, -DPIC is meaningless:
14524   *djgpp*)
14525     lt_prog_compiler_pic_F77=
14526     ;;
14527   *)
14528     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14529     ;;
14530 esac
14531
14532 #
14533 # Check to make sure the static flag actually works.
14534 #
14535 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14536 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14537 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14538 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14539   echo $ECHO_N "(cached) $ECHO_C" >&6
14540 else
14541   lt_prog_compiler_static_works_F77=no
14542    save_LDFLAGS="$LDFLAGS"
14543    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14544    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14545    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14546      # The linker can only warn and ignore the option if not recognized
14547      # So say no if there are warnings
14548      if test -s conftest.err; then
14549        # Append any errors to the config.log.
14550        cat conftest.err 1>&5
14551        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14552        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14553        if diff conftest.exp conftest.er2 >/dev/null; then
14554          lt_prog_compiler_static_works_F77=yes
14555        fi
14556      else
14557        lt_prog_compiler_static_works_F77=yes
14558      fi
14559    fi
14560    $rm conftest*
14561    LDFLAGS="$save_LDFLAGS"
14562
14563 fi
14564 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14565 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14566
14567 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14568     :
14569 else
14570     lt_prog_compiler_static_F77=
14571 fi
14572
14573
14574 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14575 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14576 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14577   echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579   lt_cv_prog_compiler_c_o_F77=no
14580    $rm -r conftest 2>/dev/null
14581    mkdir conftest
14582    cd conftest
14583    mkdir out
14584    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14585
14586    lt_compiler_flag="-o out/conftest2.$ac_objext"
14587    # Insert the option either (1) after the last *FLAGS variable, or
14588    # (2) before a word containing "conftest.", or (3) at the end.
14589    # Note that $ac_compile itself does not contain backslashes and begins
14590    # with a dollar sign (not a hyphen), so the echo should work correctly.
14591    lt_compile=`echo "$ac_compile" | $SED \
14592    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14593    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14594    -e 's:$: $lt_compiler_flag:'`
14595    (eval echo "\"\$as_me:14595: $lt_compile\"" >&5)
14596    (eval "$lt_compile" 2>out/conftest.err)
14597    ac_status=$?
14598    cat out/conftest.err >&5
14599    echo "$as_me:14599: \$? = $ac_status" >&5
14600    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14601    then
14602      # The compiler can only warn and ignore the option if not recognized
14603      # So say no if there are warnings
14604      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14605      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14606      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14607        lt_cv_prog_compiler_c_o_F77=yes
14608      fi
14609    fi
14610    chmod u+w . 2>&5
14611    $rm conftest*
14612    # SGI C++ compiler will create directory out/ii_files/ for
14613    # template instantiation
14614    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14615    $rm out/* && rmdir out
14616    cd ..
14617    rmdir conftest
14618    $rm conftest*
14619
14620 fi
14621 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14622 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14623
14624
14625 hard_links="nottested"
14626 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14627   # do not overwrite the value of need_locks provided by the user
14628   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14629 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14630   hard_links=yes
14631   $rm conftest*
14632   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14633   touch conftest.a
14634   ln conftest.a conftest.b 2>&5 || hard_links=no
14635   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14636   { echo "$as_me:$LINENO: result: $hard_links" >&5
14637 echo "${ECHO_T}$hard_links" >&6; }
14638   if test "$hard_links" = no; then
14639     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14640 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14641     need_locks=warn
14642   fi
14643 else
14644   need_locks=no
14645 fi
14646
14647 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14648 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14649
14650   runpath_var=
14651   allow_undefined_flag_F77=
14652   enable_shared_with_static_runtimes_F77=no
14653   archive_cmds_F77=
14654   archive_expsym_cmds_F77=
14655   old_archive_From_new_cmds_F77=
14656   old_archive_from_expsyms_cmds_F77=
14657   export_dynamic_flag_spec_F77=
14658   whole_archive_flag_spec_F77=
14659   thread_safe_flag_spec_F77=
14660   hardcode_libdir_flag_spec_F77=
14661   hardcode_libdir_flag_spec_ld_F77=
14662   hardcode_libdir_separator_F77=
14663   hardcode_direct_F77=no
14664   hardcode_minus_L_F77=no
14665   hardcode_shlibpath_var_F77=unsupported
14666   link_all_deplibs_F77=unknown
14667   hardcode_automatic_F77=no
14668   module_cmds_F77=
14669   module_expsym_cmds_F77=
14670   always_export_symbols_F77=no
14671   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14672   # include_expsyms should be a list of space-separated symbols to be *always*
14673   # included in the symbol list
14674   include_expsyms_F77=
14675   # exclude_expsyms can be an extended regexp of symbols to exclude
14676   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14677   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14678   # as well as any symbol that contains `d'.
14679   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14680   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14681   # platforms (ab)use it in PIC code, but their linkers get confused if
14682   # the symbol is explicitly referenced.  Since portable code cannot
14683   # rely on this symbol name, it's probably fine to never include it in
14684   # preloaded symbol tables.
14685   extract_expsyms_cmds=
14686   # Just being paranoid about ensuring that cc_basename is set.
14687   for cc_temp in $compiler""; do
14688   case $cc_temp in
14689     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14690     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14691     \-*) ;;
14692     *) break;;
14693   esac
14694 done
14695 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14696
14697   case $host_os in
14698   cygwin* | mingw* | pw32*)
14699     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14700     # When not using gcc, we currently assume that we are using
14701     # Microsoft Visual C++.
14702     if test "$GCC" != yes; then
14703       with_gnu_ld=no
14704     fi
14705     ;;
14706   interix*)
14707     # we just hope/assume this is gcc and not c89 (= MSVC++)
14708     with_gnu_ld=yes
14709     ;;
14710   openbsd*)
14711     with_gnu_ld=no
14712     ;;
14713   esac
14714
14715   ld_shlibs_F77=yes
14716   if test "$with_gnu_ld" = yes; then
14717     # If archive_cmds runs LD, not CC, wlarc should be empty
14718     wlarc='${wl}'
14719
14720     # Set some defaults for GNU ld with shared library support. These
14721     # are reset later if shared libraries are not supported. Putting them
14722     # here allows them to be overridden if necessary.
14723     runpath_var=LD_RUN_PATH
14724     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14725     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14726     # ancient GNU ld didn't support --whole-archive et. al.
14727     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14728         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14729       else
14730         whole_archive_flag_spec_F77=
14731     fi
14732     supports_anon_versioning=no
14733     case `$LD -v 2>/dev/null` in
14734       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14735       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14736       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14737       *\ 2.11.*) ;; # other 2.11 versions
14738       *) supports_anon_versioning=yes ;;
14739     esac
14740
14741     # See if GNU ld supports shared libraries.
14742     case $host_os in
14743     aix3* | aix4* | aix5*)
14744       # On AIX/PPC, the GNU linker is very broken
14745       if test "$host_cpu" != ia64; then
14746         ld_shlibs_F77=no
14747         cat <<EOF 1>&2
14748
14749 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14750 *** to be unable to reliably create shared libraries on AIX.
14751 *** Therefore, libtool is disabling shared libraries support.  If you
14752 *** really care for shared libraries, you may want to modify your PATH
14753 *** so that a non-GNU linker is found, and then restart.
14754
14755 EOF
14756       fi
14757       ;;
14758
14759     amigaos*)
14760       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)'
14761       hardcode_libdir_flag_spec_F77='-L$libdir'
14762       hardcode_minus_L_F77=yes
14763
14764       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14765       # that the semantics of dynamic libraries on AmigaOS, at least up
14766       # to version 4, is to share data among multiple programs linked
14767       # with the same dynamic library.  Since this doesn't match the
14768       # behavior of shared libraries on other platforms, we can't use
14769       # them.
14770       ld_shlibs_F77=no
14771       ;;
14772
14773     beos*)
14774       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14775         allow_undefined_flag_F77=unsupported
14776         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14777         # support --undefined.  This deserves some investigation.  FIXME
14778         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14779       else
14780         ld_shlibs_F77=no
14781       fi
14782       ;;
14783
14784     cygwin* | mingw* | pw32*)
14785       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14786       # as there is no search path for DLLs.
14787       hardcode_libdir_flag_spec_F77='-L$libdir'
14788       allow_undefined_flag_F77=unsupported
14789       always_export_symbols_F77=no
14790       enable_shared_with_static_runtimes_F77=yes
14791       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14792
14793       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14794         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14795         # If the export-symbols file already is a .def file (1st line
14796         # is EXPORTS), use it as is; otherwise, prepend...
14797         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14798           cp $export_symbols $output_objdir/$soname.def;
14799         else
14800           echo EXPORTS > $output_objdir/$soname.def;
14801           cat $export_symbols >> $output_objdir/$soname.def;
14802         fi~
14803         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14804       else
14805         ld_shlibs_F77=no
14806       fi
14807       ;;
14808
14809     interix[3-9]*)
14810       hardcode_direct_F77=no
14811       hardcode_shlibpath_var_F77=no
14812       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14813       export_dynamic_flag_spec_F77='${wl}-E'
14814       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14815       # Instead, shared libraries are loaded at an image base (0x10000000 by
14816       # default) and relocated if they conflict, which is a slow very memory
14817       # consuming and fragmenting process.  To avoid this, we pick a random,
14818       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14819       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14820       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'
14821       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'
14822       ;;
14823
14824     gnu* | linux* | k*bsd*-gnu)
14825       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14826         tmp_addflag=
14827         case $cc_basename,$host_cpu in
14828         pgcc*)                          # Portland Group C compiler
14829           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'
14830           tmp_addflag=' $pic_flag'
14831           ;;
14832         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14833           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'
14834           tmp_addflag=' $pic_flag -Mnomain' ;;
14835         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14836           tmp_addflag=' -i_dynamic' ;;
14837         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14838           tmp_addflag=' -i_dynamic -nofor_main' ;;
14839         ifc* | ifort*)                  # Intel Fortran compiler
14840           tmp_addflag=' -nofor_main' ;;
14841         esac
14842         case `$CC -V 2>&1 | sed 5q` in
14843         *Sun\ C*)                       # Sun C 5.9
14844           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14845           tmp_sharedflag='-G' ;;
14846         *Sun\ F*)                       # Sun Fortran 8.3
14847           tmp_sharedflag='-G' ;;
14848         *)
14849           tmp_sharedflag='-shared' ;;
14850         esac
14851         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14852
14853         if test $supports_anon_versioning = yes; then
14854           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14855   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14856   $echo "local: *; };" >> $output_objdir/$libname.ver~
14857           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14858         fi
14859       else
14860         ld_shlibs_F77=no
14861       fi
14862       ;;
14863
14864     netbsd*)
14865       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14866         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14867         wlarc=
14868       else
14869         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14870         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14871       fi
14872       ;;
14873
14874     solaris*)
14875       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14876         ld_shlibs_F77=no
14877         cat <<EOF 1>&2
14878
14879 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14880 *** create shared libraries on Solaris systems.  Therefore, libtool
14881 *** is disabling shared libraries support.  We urge you to upgrade GNU
14882 *** binutils to release 2.9.1 or newer.  Another option is to modify
14883 *** your PATH or compiler configuration so that the native linker is
14884 *** used, and then restart.
14885
14886 EOF
14887       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14888         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14889         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14890       else
14891         ld_shlibs_F77=no
14892       fi
14893       ;;
14894
14895     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14896       case `$LD -v 2>&1` in
14897         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14898         ld_shlibs_F77=no
14899         cat <<_LT_EOF 1>&2
14900
14901 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14902 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14903 *** is disabling shared libraries support.  We urge you to upgrade GNU
14904 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14905 *** your PATH or compiler configuration so that the native linker is
14906 *** used, and then restart.
14907
14908 _LT_EOF
14909         ;;
14910         *)
14911           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14912             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14913             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14914             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14915           else
14916             ld_shlibs_F77=no
14917           fi
14918         ;;
14919       esac
14920       ;;
14921
14922     sunos4*)
14923       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14924       wlarc=
14925       hardcode_direct_F77=yes
14926       hardcode_shlibpath_var_F77=no
14927       ;;
14928
14929     *)
14930       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14931         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14932         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14933       else
14934         ld_shlibs_F77=no
14935       fi
14936       ;;
14937     esac
14938
14939     if test "$ld_shlibs_F77" = no; then
14940       runpath_var=
14941       hardcode_libdir_flag_spec_F77=
14942       export_dynamic_flag_spec_F77=
14943       whole_archive_flag_spec_F77=
14944     fi
14945   else
14946     # PORTME fill in a description of your system's linker (not GNU ld)
14947     case $host_os in
14948     aix3*)
14949       allow_undefined_flag_F77=unsupported
14950       always_export_symbols_F77=yes
14951       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'
14952       # Note: this linker hardcodes the directories in LIBPATH if there
14953       # are no directories specified by -L.
14954       hardcode_minus_L_F77=yes
14955       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14956         # Neither direct hardcoding nor static linking is supported with a
14957         # broken collect2.
14958         hardcode_direct_F77=unsupported
14959       fi
14960       ;;
14961
14962     aix4* | aix5*)
14963       if test "$host_cpu" = ia64; then
14964         # On IA64, the linker does run time linking by default, so we don't
14965         # have to do anything special.
14966         aix_use_runtimelinking=no
14967         exp_sym_flag='-Bexport'
14968         no_entry_flag=""
14969       else
14970         # If we're using GNU nm, then we don't want the "-C" option.
14971         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14972         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14973           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'
14974         else
14975           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'
14976         fi
14977         aix_use_runtimelinking=no
14978
14979         # Test if we are trying to use run time linking or normal
14980         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14981         # need to do runtime linking.
14982         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14983           for ld_flag in $LDFLAGS; do
14984           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14985             aix_use_runtimelinking=yes
14986             break
14987           fi
14988           done
14989           ;;
14990         esac
14991
14992         exp_sym_flag='-bexport'
14993         no_entry_flag='-bnoentry'
14994       fi
14995
14996       # When large executables or shared objects are built, AIX ld can
14997       # have problems creating the table of contents.  If linking a library
14998       # or program results in "error TOC overflow" add -mminimal-toc to
14999       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15000       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15001
15002       archive_cmds_F77=''
15003       hardcode_direct_F77=yes
15004       hardcode_libdir_separator_F77=':'
15005       link_all_deplibs_F77=yes
15006
15007       if test "$GCC" = yes; then
15008         case $host_os in aix4.[012]|aix4.[012].*)
15009         # We only want to do this on AIX 4.2 and lower, the check
15010         # below for broken collect2 doesn't work under 4.3+
15011           collect2name=`${CC} -print-prog-name=collect2`
15012           if test -f "$collect2name" && \
15013            strings "$collect2name" | grep resolve_lib_name >/dev/null
15014           then
15015           # We have reworked collect2
15016           :
15017           else
15018           # We have old collect2
15019           hardcode_direct_F77=unsupported
15020           # It fails to find uninstalled libraries when the uninstalled
15021           # path is not listed in the libpath.  Setting hardcode_minus_L
15022           # to unsupported forces relinking
15023           hardcode_minus_L_F77=yes
15024           hardcode_libdir_flag_spec_F77='-L$libdir'
15025           hardcode_libdir_separator_F77=
15026           fi
15027           ;;
15028         esac
15029         shared_flag='-shared'
15030         if test "$aix_use_runtimelinking" = yes; then
15031           shared_flag="$shared_flag "'${wl}-G'
15032         fi
15033       else
15034         # not using gcc
15035         if test "$host_cpu" = ia64; then
15036         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15037         # chokes on -Wl,-G. The following line is correct:
15038           shared_flag='-G'
15039         else
15040           if test "$aix_use_runtimelinking" = yes; then
15041             shared_flag='${wl}-G'
15042           else
15043             shared_flag='${wl}-bM:SRE'
15044           fi
15045         fi
15046       fi
15047
15048       # It seems that -bexpall does not export symbols beginning with
15049       # underscore (_), so it is better to generate a list of symbols to export.
15050       always_export_symbols_F77=yes
15051       if test "$aix_use_runtimelinking" = yes; then
15052         # Warning - without using the other runtime loading flags (-brtl),
15053         # -berok will link without error, but may produce a broken library.
15054         allow_undefined_flag_F77='-berok'
15055        # Determine the default libpath from the value encoded in an empty executable.
15056        cat >conftest.$ac_ext <<_ACEOF
15057       program main
15058
15059       end
15060 _ACEOF
15061 rm -f conftest.$ac_objext conftest$ac_exeext
15062 if { (ac_try="$ac_link"
15063 case "(($ac_try" in
15064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065   *) ac_try_echo=$ac_try;;
15066 esac
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068   (eval "$ac_link") 2>conftest.er1
15069   ac_status=$?
15070   grep -v '^ *+' conftest.er1 >conftest.err
15071   rm -f conftest.er1
15072   cat conftest.err >&5
15073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074   (exit $ac_status); } &&
15075          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15076   { (case "(($ac_try" in
15077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078   *) ac_try_echo=$ac_try;;
15079 esac
15080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081   (eval "$ac_try") 2>&5
15082   ac_status=$?
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); }; } &&
15085          { ac_try='test -s conftest$ac_exeext'
15086   { (case "(($ac_try" in
15087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088   *) ac_try_echo=$ac_try;;
15089 esac
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091   (eval "$ac_try") 2>&5
15092   ac_status=$?
15093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094   (exit $ac_status); }; }; then
15095
15096 lt_aix_libpath_sed='
15097     /Import File Strings/,/^$/ {
15098         /^0/ {
15099             s/^0  *\(.*\)$/\1/
15100             p
15101         }
15102     }'
15103 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15104 # Check for a 64-bit object if we didn't find anything.
15105 if test -z "$aix_libpath"; then
15106   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15107 fi
15108 else
15109   echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15111
15112
15113 fi
15114
15115 rm -f core conftest.err conftest.$ac_objext \
15116       conftest$ac_exeext conftest.$ac_ext
15117 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15118
15119        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15120         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"
15121        else
15122         if test "$host_cpu" = ia64; then
15123           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15124           allow_undefined_flag_F77="-z nodefs"
15125           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"
15126         else
15127          # Determine the default libpath from the value encoded in an empty executable.
15128          cat >conftest.$ac_ext <<_ACEOF
15129       program main
15130
15131       end
15132 _ACEOF
15133 rm -f conftest.$ac_objext conftest$ac_exeext
15134 if { (ac_try="$ac_link"
15135 case "(($ac_try" in
15136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137   *) ac_try_echo=$ac_try;;
15138 esac
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140   (eval "$ac_link") 2>conftest.er1
15141   ac_status=$?
15142   grep -v '^ *+' conftest.er1 >conftest.err
15143   rm -f conftest.er1
15144   cat conftest.err >&5
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); } &&
15147          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15148   { (case "(($ac_try" in
15149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150   *) ac_try_echo=$ac_try;;
15151 esac
15152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153   (eval "$ac_try") 2>&5
15154   ac_status=$?
15155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156   (exit $ac_status); }; } &&
15157          { ac_try='test -s conftest$ac_exeext'
15158   { (case "(($ac_try" in
15159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160   *) ac_try_echo=$ac_try;;
15161 esac
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163   (eval "$ac_try") 2>&5
15164   ac_status=$?
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); }; }; then
15167
15168 lt_aix_libpath_sed='
15169     /Import File Strings/,/^$/ {
15170         /^0/ {
15171             s/^0  *\(.*\)$/\1/
15172             p
15173         }
15174     }'
15175 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15176 # Check for a 64-bit object if we didn't find anything.
15177 if test -z "$aix_libpath"; then
15178   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15179 fi
15180 else
15181   echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15183
15184
15185 fi
15186
15187 rm -f core conftest.err conftest.$ac_objext \
15188       conftest$ac_exeext conftest.$ac_ext
15189 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15190
15191          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15192           # Warning - without using the other run time loading flags,
15193           # -berok will link without error, but may produce a broken library.
15194           no_undefined_flag_F77=' ${wl}-bernotok'
15195           allow_undefined_flag_F77=' ${wl}-berok'
15196           # Exported symbols can be pulled into shared objects from archives
15197           whole_archive_flag_spec_F77='$convenience'
15198           archive_cmds_need_lc_F77=yes
15199           # This is similar to how AIX traditionally builds its shared libraries.
15200           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'
15201         fi
15202       fi
15203       ;;
15204
15205     amigaos*)
15206       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)'
15207       hardcode_libdir_flag_spec_F77='-L$libdir'
15208       hardcode_minus_L_F77=yes
15209       # see comment about different semantics on the GNU ld section
15210       ld_shlibs_F77=no
15211       ;;
15212
15213     bsdi[45]*)
15214       export_dynamic_flag_spec_F77=-rdynamic
15215       ;;
15216
15217     cygwin* | mingw* | pw32*)
15218       # When not using gcc, we currently assume that we are using
15219       # Microsoft Visual C++.
15220       # hardcode_libdir_flag_spec is actually meaningless, as there is
15221       # no search path for DLLs.
15222       hardcode_libdir_flag_spec_F77=' '
15223       allow_undefined_flag_F77=unsupported
15224       # Tell ltmain to make .lib files, not .a files.
15225       libext=lib
15226       # Tell ltmain to make .dll files, not .so files.
15227       shrext_cmds=".dll"
15228       # FIXME: Setting linknames here is a bad hack.
15229       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15230       # The linker will automatically build a .lib file if we build a DLL.
15231       old_archive_From_new_cmds_F77='true'
15232       # FIXME: Should let the user specify the lib program.
15233       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15234       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15235       enable_shared_with_static_runtimes_F77=yes
15236       ;;
15237
15238     darwin* | rhapsody*)
15239       case $host_os in
15240         rhapsody* | darwin1.[012])
15241          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15242          ;;
15243        *) # Darwin 1.3 on
15244          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15245            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15246          else
15247            case ${MACOSX_DEPLOYMENT_TARGET} in
15248              10.[012])
15249                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15250                ;;
15251              10.*)
15252                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15253                ;;
15254            esac
15255          fi
15256          ;;
15257       esac
15258       archive_cmds_need_lc_F77=no
15259       hardcode_direct_F77=no
15260       hardcode_automatic_F77=yes
15261       hardcode_shlibpath_var_F77=unsupported
15262       whole_archive_flag_spec_F77=''
15263       link_all_deplibs_F77=yes
15264     if test "$GCC" = yes ; then
15265         output_verbose_link_cmd='echo'
15266         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15267       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15268       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15269       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}'
15270       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}'
15271     else
15272       case $cc_basename in
15273         xlc*)
15274          output_verbose_link_cmd='echo'
15275          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15276          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15277           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15278          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15279           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}'
15280           ;;
15281        *)
15282          ld_shlibs_F77=no
15283           ;;
15284       esac
15285     fi
15286       ;;
15287
15288     dgux*)
15289       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15290       hardcode_libdir_flag_spec_F77='-L$libdir'
15291       hardcode_shlibpath_var_F77=no
15292       ;;
15293
15294     freebsd1*)
15295       ld_shlibs_F77=no
15296       ;;
15297
15298     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15299     # support.  Future versions do this automatically, but an explicit c++rt0.o
15300     # does not break anything, and helps significantly (at the cost of a little
15301     # extra space).
15302     freebsd2.2*)
15303       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15304       hardcode_libdir_flag_spec_F77='-R$libdir'
15305       hardcode_direct_F77=yes
15306       hardcode_shlibpath_var_F77=no
15307       ;;
15308
15309     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15310     freebsd2*)
15311       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15312       hardcode_direct_F77=yes
15313       hardcode_minus_L_F77=yes
15314       hardcode_shlibpath_var_F77=no
15315       ;;
15316
15317     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15318     freebsd* | dragonfly*)
15319       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15320       hardcode_libdir_flag_spec_F77='-R$libdir'
15321       hardcode_direct_F77=yes
15322       hardcode_shlibpath_var_F77=no
15323       ;;
15324
15325     hpux9*)
15326       if test "$GCC" = yes; then
15327         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'
15328       else
15329         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'
15330       fi
15331       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15332       hardcode_libdir_separator_F77=:
15333       hardcode_direct_F77=yes
15334
15335       # hardcode_minus_L: Not really in the search PATH,
15336       # but as the default location of the library.
15337       hardcode_minus_L_F77=yes
15338       export_dynamic_flag_spec_F77='${wl}-E'
15339       ;;
15340
15341     hpux10*)
15342       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15343         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15344       else
15345         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15346       fi
15347       if test "$with_gnu_ld" = no; then
15348         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15349         hardcode_libdir_separator_F77=:
15350
15351         hardcode_direct_F77=yes
15352         export_dynamic_flag_spec_F77='${wl}-E'
15353
15354         # hardcode_minus_L: Not really in the search PATH,
15355         # but as the default location of the library.
15356         hardcode_minus_L_F77=yes
15357       fi
15358       ;;
15359
15360     hpux11*)
15361       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15362         case $host_cpu in
15363         hppa*64*)
15364           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15365           ;;
15366         ia64*)
15367           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15368           ;;
15369         *)
15370           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15371           ;;
15372         esac
15373       else
15374         case $host_cpu in
15375         hppa*64*)
15376           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15377           ;;
15378         ia64*)
15379           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15380           ;;
15381         *)
15382           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15383           ;;
15384         esac
15385       fi
15386       if test "$with_gnu_ld" = no; then
15387         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15388         hardcode_libdir_separator_F77=:
15389
15390         case $host_cpu in
15391         hppa*64*|ia64*)
15392           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15393           hardcode_direct_F77=no
15394           hardcode_shlibpath_var_F77=no
15395           ;;
15396         *)
15397           hardcode_direct_F77=yes
15398           export_dynamic_flag_spec_F77='${wl}-E'
15399
15400           # hardcode_minus_L: Not really in the search PATH,
15401           # but as the default location of the library.
15402           hardcode_minus_L_F77=yes
15403           ;;
15404         esac
15405       fi
15406       ;;
15407
15408     irix5* | irix6* | nonstopux*)
15409       if test "$GCC" = yes; then
15410         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'
15411       else
15412         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'
15413         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15414       fi
15415       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15416       hardcode_libdir_separator_F77=:
15417       link_all_deplibs_F77=yes
15418       ;;
15419
15420     netbsd*)
15421       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15422         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15423       else
15424         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15425       fi
15426       hardcode_libdir_flag_spec_F77='-R$libdir'
15427       hardcode_direct_F77=yes
15428       hardcode_shlibpath_var_F77=no
15429       ;;
15430
15431     newsos6)
15432       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15433       hardcode_direct_F77=yes
15434       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15435       hardcode_libdir_separator_F77=:
15436       hardcode_shlibpath_var_F77=no
15437       ;;
15438
15439     openbsd*)
15440       if test -f /usr/libexec/ld.so; then
15441         hardcode_direct_F77=yes
15442         hardcode_shlibpath_var_F77=no
15443         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15444           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15445           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15446           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15447           export_dynamic_flag_spec_F77='${wl}-E'
15448         else
15449           case $host_os in
15450            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15451              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15452              hardcode_libdir_flag_spec_F77='-R$libdir'
15453              ;;
15454            *)
15455              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15456              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15457              ;;
15458           esac
15459         fi
15460       else
15461         ld_shlibs_F77=no
15462       fi
15463       ;;
15464
15465     os2*)
15466       hardcode_libdir_flag_spec_F77='-L$libdir'
15467       hardcode_minus_L_F77=yes
15468       allow_undefined_flag_F77=unsupported
15469       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'
15470       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15471       ;;
15472
15473     osf3*)
15474       if test "$GCC" = yes; then
15475         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15476         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'
15477       else
15478         allow_undefined_flag_F77=' -expect_unresolved \*'
15479         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'
15480       fi
15481       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15482       hardcode_libdir_separator_F77=:
15483       ;;
15484
15485     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15486       if test "$GCC" = yes; then
15487         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15488         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'
15489         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15490       else
15491         allow_undefined_flag_F77=' -expect_unresolved \*'
15492         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'
15493         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~
15494         $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'
15495
15496         # Both c and cxx compiler support -rpath directly
15497         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15498       fi
15499       hardcode_libdir_separator_F77=:
15500       ;;
15501
15502     solaris*)
15503       no_undefined_flag_F77=' -z text'
15504       if test "$GCC" = yes; then
15505         wlarc='${wl}'
15506         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15507         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15508           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15509       else
15510         wlarc=''
15511         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15512         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15513         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15514       fi
15515       hardcode_libdir_flag_spec_F77='-R$libdir'
15516       hardcode_shlibpath_var_F77=no
15517       case $host_os in
15518       solaris2.[0-5] | solaris2.[0-5].*) ;;
15519       *)
15520         # The compiler driver will combine and reorder linker options,
15521         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15522         # but is careful enough not to reorder.
15523         # Supported since Solaris 2.6 (maybe 2.5.1?)
15524         if test "$GCC" = yes; then
15525           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15526         else
15527           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15528         fi
15529         ;;
15530       esac
15531       link_all_deplibs_F77=yes
15532       ;;
15533
15534     sunos4*)
15535       if test "x$host_vendor" = xsequent; then
15536         # Use $CC to link under sequent, because it throws in some extra .o
15537         # files that make .init and .fini sections work.
15538         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15539       else
15540         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15541       fi
15542       hardcode_libdir_flag_spec_F77='-L$libdir'
15543       hardcode_direct_F77=yes
15544       hardcode_minus_L_F77=yes
15545       hardcode_shlibpath_var_F77=no
15546       ;;
15547
15548     sysv4)
15549       case $host_vendor in
15550         sni)
15551           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15552           hardcode_direct_F77=yes # is this really true???
15553         ;;
15554         siemens)
15555           ## LD is ld it makes a PLAMLIB
15556           ## CC just makes a GrossModule.
15557           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15558           reload_cmds_F77='$CC -r -o $output$reload_objs'
15559           hardcode_direct_F77=no
15560         ;;
15561         motorola)
15562           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15563           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15564         ;;
15565       esac
15566       runpath_var='LD_RUN_PATH'
15567       hardcode_shlibpath_var_F77=no
15568       ;;
15569
15570     sysv4.3*)
15571       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15572       hardcode_shlibpath_var_F77=no
15573       export_dynamic_flag_spec_F77='-Bexport'
15574       ;;
15575
15576     sysv4*MP*)
15577       if test -d /usr/nec; then
15578         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15579         hardcode_shlibpath_var_F77=no
15580         runpath_var=LD_RUN_PATH
15581         hardcode_runpath_var=yes
15582         ld_shlibs_F77=yes
15583       fi
15584       ;;
15585
15586     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15587       no_undefined_flag_F77='${wl}-z,text'
15588       archive_cmds_need_lc_F77=no
15589       hardcode_shlibpath_var_F77=no
15590       runpath_var='LD_RUN_PATH'
15591
15592       if test "$GCC" = yes; then
15593         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15594         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15595       else
15596         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15597         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15598       fi
15599       ;;
15600
15601     sysv5* | sco3.2v5* | sco5v6*)
15602       # Note: We can NOT use -z defs as we might desire, because we do not
15603       # link with -lc, and that would cause any symbols used from libc to
15604       # always be unresolved, which means just about no library would
15605       # ever link correctly.  If we're not using GNU ld we use -z text
15606       # though, which does catch some bad symbols but isn't as heavy-handed
15607       # as -z defs.
15608       no_undefined_flag_F77='${wl}-z,text'
15609       allow_undefined_flag_F77='${wl}-z,nodefs'
15610       archive_cmds_need_lc_F77=no
15611       hardcode_shlibpath_var_F77=no
15612       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15613       hardcode_libdir_separator_F77=':'
15614       link_all_deplibs_F77=yes
15615       export_dynamic_flag_spec_F77='${wl}-Bexport'
15616       runpath_var='LD_RUN_PATH'
15617
15618       if test "$GCC" = yes; then
15619         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15620         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15621       else
15622         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15623         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15624       fi
15625       ;;
15626
15627     uts4*)
15628       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15629       hardcode_libdir_flag_spec_F77='-L$libdir'
15630       hardcode_shlibpath_var_F77=no
15631       ;;
15632
15633     *)
15634       ld_shlibs_F77=no
15635       ;;
15636     esac
15637   fi
15638
15639 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15640 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15641 test "$ld_shlibs_F77" = no && can_build_shared=no
15642
15643 #
15644 # Do we need to explicitly link libc?
15645 #
15646 case "x$archive_cmds_need_lc_F77" in
15647 x|xyes)
15648   # Assume -lc should be added
15649   archive_cmds_need_lc_F77=yes
15650
15651   if test "$enable_shared" = yes && test "$GCC" = yes; then
15652     case $archive_cmds_F77 in
15653     *'~'*)
15654       # FIXME: we may have to deal with multi-command sequences.
15655       ;;
15656     '$CC '*)
15657       # Test whether the compiler implicitly links with -lc since on some
15658       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15659       # to ld, don't add -lc before -lgcc.
15660       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15661 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15662       $rm conftest*
15663       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15664
15665       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15666   (eval $ac_compile) 2>&5
15667   ac_status=$?
15668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669   (exit $ac_status); } 2>conftest.err; then
15670         soname=conftest
15671         lib=conftest
15672         libobjs=conftest.$ac_objext
15673         deplibs=
15674         wl=$lt_prog_compiler_wl_F77
15675         pic_flag=$lt_prog_compiler_pic_F77
15676         compiler_flags=-v
15677         linker_flags=-v
15678         verstring=
15679         output_objdir=.
15680         libname=conftest
15681         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15682         allow_undefined_flag_F77=
15683         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15684   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15685   ac_status=$?
15686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687   (exit $ac_status); }
15688         then
15689           archive_cmds_need_lc_F77=no
15690         else
15691           archive_cmds_need_lc_F77=yes
15692         fi
15693         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15694       else
15695         cat conftest.err 1>&5
15696       fi
15697       $rm conftest*
15698       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15699 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15700       ;;
15701     esac
15702   fi
15703   ;;
15704 esac
15705
15706 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15707 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15708 library_names_spec=
15709 libname_spec='lib$name'
15710 soname_spec=
15711 shrext_cmds=".so"
15712 postinstall_cmds=
15713 postuninstall_cmds=
15714 finish_cmds=
15715 finish_eval=
15716 shlibpath_var=
15717 shlibpath_overrides_runpath=unknown
15718 version_type=none
15719 dynamic_linker="$host_os ld.so"
15720 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15721
15722 need_lib_prefix=unknown
15723 hardcode_into_libs=no
15724
15725 # when you set need_version to no, make sure it does not cause -set_version
15726 # flags to be left without arguments
15727 need_version=unknown
15728
15729 case $host_os in
15730 aix3*)
15731   version_type=linux
15732   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15733   shlibpath_var=LIBPATH
15734
15735   # AIX 3 has no versioning support, so we append a major version to the name.
15736   soname_spec='${libname}${release}${shared_ext}$major'
15737   ;;
15738
15739 aix4* | aix5*)
15740   version_type=linux
15741   need_lib_prefix=no
15742   need_version=no
15743   hardcode_into_libs=yes
15744   if test "$host_cpu" = ia64; then
15745     # AIX 5 supports IA64
15746     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15747     shlibpath_var=LD_LIBRARY_PATH
15748   else
15749     # With GCC up to 2.95.x, collect2 would create an import file
15750     # for dependence libraries.  The import file would start with
15751     # the line `#! .'.  This would cause the generated library to
15752     # depend on `.', always an invalid library.  This was fixed in
15753     # development snapshots of GCC prior to 3.0.
15754     case $host_os in
15755       aix4 | aix4.[01] | aix4.[01].*)
15756       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15757            echo ' yes '
15758            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15759         :
15760       else
15761         can_build_shared=no
15762       fi
15763       ;;
15764     esac
15765     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15766     # soname into executable. Probably we can add versioning support to
15767     # collect2, so additional links can be useful in future.
15768     if test "$aix_use_runtimelinking" = yes; then
15769       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15770       # instead of lib<name>.a to let people know that these are not
15771       # typical AIX shared libraries.
15772       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15773     else
15774       # We preserve .a as extension for shared libraries through AIX4.2
15775       # and later when we are not doing run time linking.
15776       library_names_spec='${libname}${release}.a $libname.a'
15777       soname_spec='${libname}${release}${shared_ext}$major'
15778     fi
15779     shlibpath_var=LIBPATH
15780   fi
15781   ;;
15782
15783 amigaos*)
15784   library_names_spec='$libname.ixlibrary $libname.a'
15785   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15786   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'
15787   ;;
15788
15789 beos*)
15790   library_names_spec='${libname}${shared_ext}'
15791   dynamic_linker="$host_os ld.so"
15792   shlibpath_var=LIBRARY_PATH
15793   ;;
15794
15795 bsdi[45]*)
15796   version_type=linux
15797   need_version=no
15798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15799   soname_spec='${libname}${release}${shared_ext}$major'
15800   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15801   shlibpath_var=LD_LIBRARY_PATH
15802   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15803   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15804   # the default ld.so.conf also contains /usr/contrib/lib and
15805   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15806   # libtool to hard-code these into programs
15807   ;;
15808
15809 cygwin* | mingw* | pw32*)
15810   version_type=windows
15811   shrext_cmds=".dll"
15812   need_version=no
15813   need_lib_prefix=no
15814
15815   case $GCC,$host_os in
15816   yes,cygwin* | yes,mingw* | yes,pw32*)
15817     library_names_spec='$libname.dll.a'
15818     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15819     postinstall_cmds='base_file=`basename \${file}`~
15820       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15821       dldir=$destdir/`dirname \$dlpath`~
15822       test -d \$dldir || mkdir -p \$dldir~
15823       $install_prog $dir/$dlname \$dldir/$dlname~
15824       chmod a+x \$dldir/$dlname'
15825     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15826       dlpath=$dir/\$dldll~
15827        $rm \$dlpath'
15828     shlibpath_overrides_runpath=yes
15829
15830     case $host_os in
15831     cygwin*)
15832       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15833       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15834       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15835       ;;
15836     mingw*)
15837       # MinGW DLLs use traditional 'lib' prefix
15838       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15839       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15840       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15841         # It is most probably a Windows format PATH printed by
15842         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15843         # path with ; separators, and with drive letters. We can handle the
15844         # drive letters (cygwin fileutils understands them), so leave them,
15845         # especially as we might pass files found there to a mingw objdump,
15846         # which wouldn't understand a cygwinified path. Ahh.
15847         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15848       else
15849         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15850       fi
15851       ;;
15852     pw32*)
15853       # pw32 DLLs use 'pw' prefix rather than 'lib'
15854       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15855       ;;
15856     esac
15857     ;;
15858
15859   *)
15860     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15861     ;;
15862   esac
15863   dynamic_linker='Win32 ld.exe'
15864   # FIXME: first we should search . and the directory the executable is in
15865   shlibpath_var=PATH
15866   ;;
15867
15868 darwin* | rhapsody*)
15869   dynamic_linker="$host_os dyld"
15870   version_type=darwin
15871   need_lib_prefix=no
15872   need_version=no
15873   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15874   soname_spec='${libname}${release}${major}$shared_ext'
15875   shlibpath_overrides_runpath=yes
15876   shlibpath_var=DYLD_LIBRARY_PATH
15877   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15878
15879   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15880   ;;
15881
15882 dgux*)
15883   version_type=linux
15884   need_lib_prefix=no
15885   need_version=no
15886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15887   soname_spec='${libname}${release}${shared_ext}$major'
15888   shlibpath_var=LD_LIBRARY_PATH
15889   ;;
15890
15891 freebsd1*)
15892   dynamic_linker=no
15893   ;;
15894
15895 freebsd* | dragonfly*)
15896   # DragonFly does not have aout.  When/if they implement a new
15897   # versioning mechanism, adjust this.
15898   if test -x /usr/bin/objformat; then
15899     objformat=`/usr/bin/objformat`
15900   else
15901     case $host_os in
15902     freebsd[123]*) objformat=aout ;;
15903     *) objformat=elf ;;
15904     esac
15905   fi
15906   version_type=freebsd-$objformat
15907   case $version_type in
15908     freebsd-elf*)
15909       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15910       need_version=no
15911       need_lib_prefix=no
15912       ;;
15913     freebsd-*)
15914       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15915       need_version=yes
15916       ;;
15917   esac
15918   shlibpath_var=LD_LIBRARY_PATH
15919   case $host_os in
15920   freebsd2*)
15921     shlibpath_overrides_runpath=yes
15922     ;;
15923   freebsd3.[01]* | freebsdelf3.[01]*)
15924     shlibpath_overrides_runpath=yes
15925     hardcode_into_libs=yes
15926     ;;
15927   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15928   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15929     shlibpath_overrides_runpath=no
15930     hardcode_into_libs=yes
15931     ;;
15932   *) # from 4.6 on, and DragonFly
15933     shlibpath_overrides_runpath=yes
15934     hardcode_into_libs=yes
15935     ;;
15936   esac
15937   ;;
15938
15939 gnu*)
15940   version_type=linux
15941   need_lib_prefix=no
15942   need_version=no
15943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15944   soname_spec='${libname}${release}${shared_ext}$major'
15945   shlibpath_var=LD_LIBRARY_PATH
15946   hardcode_into_libs=yes
15947   ;;
15948
15949 hpux9* | hpux10* | hpux11*)
15950   # Give a soname corresponding to the major version so that dld.sl refuses to
15951   # link against other versions.
15952   version_type=sunos
15953   need_lib_prefix=no
15954   need_version=no
15955   case $host_cpu in
15956   ia64*)
15957     shrext_cmds='.so'
15958     hardcode_into_libs=yes
15959     dynamic_linker="$host_os dld.so"
15960     shlibpath_var=LD_LIBRARY_PATH
15961     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15963     soname_spec='${libname}${release}${shared_ext}$major'
15964     if test "X$HPUX_IA64_MODE" = X32; then
15965       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15966     else
15967       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15968     fi
15969     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15970     ;;
15971    hppa*64*)
15972      shrext_cmds='.sl'
15973      hardcode_into_libs=yes
15974      dynamic_linker="$host_os dld.sl"
15975      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15976      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15977      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15978      soname_spec='${libname}${release}${shared_ext}$major'
15979      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15980      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15981      ;;
15982    *)
15983     shrext_cmds='.sl'
15984     dynamic_linker="$host_os dld.sl"
15985     shlibpath_var=SHLIB_PATH
15986     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15987     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15988     soname_spec='${libname}${release}${shared_ext}$major'
15989     ;;
15990   esac
15991   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15992   postinstall_cmds='chmod 555 $lib'
15993   ;;
15994
15995 interix[3-9]*)
15996   version_type=linux
15997   need_lib_prefix=no
15998   need_version=no
15999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16000   soname_spec='${libname}${release}${shared_ext}$major'
16001   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16002   shlibpath_var=LD_LIBRARY_PATH
16003   shlibpath_overrides_runpath=no
16004   hardcode_into_libs=yes
16005   ;;
16006
16007 irix5* | irix6* | nonstopux*)
16008   case $host_os in
16009     nonstopux*) version_type=nonstopux ;;
16010     *)
16011         if test "$lt_cv_prog_gnu_ld" = yes; then
16012                 version_type=linux
16013         else
16014                 version_type=irix
16015         fi ;;
16016   esac
16017   need_lib_prefix=no
16018   need_version=no
16019   soname_spec='${libname}${release}${shared_ext}$major'
16020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16021   case $host_os in
16022   irix5* | nonstopux*)
16023     libsuff= shlibsuff=
16024     ;;
16025   *)
16026     case $LD in # libtool.m4 will add one of these switches to LD
16027     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16028       libsuff= shlibsuff= libmagic=32-bit;;
16029     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16030       libsuff=32 shlibsuff=N32 libmagic=N32;;
16031     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16032       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16033     *) libsuff= shlibsuff= libmagic=never-match;;
16034     esac
16035     ;;
16036   esac
16037   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16038   shlibpath_overrides_runpath=no
16039   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16040   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16041   hardcode_into_libs=yes
16042   ;;
16043
16044 # No shared lib support for Linux oldld, aout, or coff.
16045 linux*oldld* | linux*aout* | linux*coff*)
16046   dynamic_linker=no
16047   ;;
16048
16049 # This must be Linux ELF.
16050 linux* | k*bsd*-gnu)
16051   version_type=linux
16052   need_lib_prefix=no
16053   need_version=no
16054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16055   soname_spec='${libname}${release}${shared_ext}$major'
16056   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16057   shlibpath_var=LD_LIBRARY_PATH
16058   shlibpath_overrides_runpath=no
16059   # This implies no fast_install, which is unacceptable.
16060   # Some rework will be needed to allow for fast_install
16061   # before this can be enabled.
16062   hardcode_into_libs=yes
16063
16064   # find out which ABI we are using
16065   libsuff=
16066   case "$host_cpu" in
16067   x86_64*|s390x*|powerpc64*)
16068     echo '#line 16068 "configure"' > conftest.$ac_ext
16069     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16070   (eval $ac_compile) 2>&5
16071   ac_status=$?
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); }; then
16074       case `/usr/bin/file conftest.$ac_objext` in
16075       *64-bit*)
16076         libsuff=64
16077         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16078         ;;
16079       esac
16080     fi
16081     rm -rf conftest*
16082     ;;
16083   esac
16084
16085   # Append ld.so.conf contents to the search path
16086   if test -f /etc/ld.so.conf; then
16087     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16088     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16089   fi
16090
16091   # We used to test for /lib/ld.so.1 and disable shared libraries on
16092   # powerpc, because MkLinux only supported shared libraries with the
16093   # GNU dynamic linker.  Since this was broken with cross compilers,
16094   # most powerpc-linux boxes support dynamic linking these days and
16095   # people can always --disable-shared, the test was removed, and we
16096   # assume the GNU/Linux dynamic linker is in use.
16097   dynamic_linker='GNU/Linux ld.so'
16098   ;;
16099
16100 netbsd*)
16101   version_type=sunos
16102   need_lib_prefix=no
16103   need_version=no
16104   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16105     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16106     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16107     dynamic_linker='NetBSD (a.out) ld.so'
16108   else
16109     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16110     soname_spec='${libname}${release}${shared_ext}$major'
16111     dynamic_linker='NetBSD ld.elf_so'
16112   fi
16113   shlibpath_var=LD_LIBRARY_PATH
16114   shlibpath_overrides_runpath=yes
16115   hardcode_into_libs=yes
16116   ;;
16117
16118 newsos6)
16119   version_type=linux
16120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16121   shlibpath_var=LD_LIBRARY_PATH
16122   shlibpath_overrides_runpath=yes
16123   ;;
16124
16125 nto-qnx*)
16126   version_type=linux
16127   need_lib_prefix=no
16128   need_version=no
16129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16130   soname_spec='${libname}${release}${shared_ext}$major'
16131   shlibpath_var=LD_LIBRARY_PATH
16132   shlibpath_overrides_runpath=yes
16133   ;;
16134
16135 openbsd*)
16136   version_type=sunos
16137   sys_lib_dlsearch_path_spec="/usr/lib"
16138   need_lib_prefix=no
16139   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16140   case $host_os in
16141     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16142     *)                         need_version=no  ;;
16143   esac
16144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16145   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16146   shlibpath_var=LD_LIBRARY_PATH
16147   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16148     case $host_os in
16149       openbsd2.[89] | openbsd2.[89].*)
16150         shlibpath_overrides_runpath=no
16151         ;;
16152       *)
16153         shlibpath_overrides_runpath=yes
16154         ;;
16155       esac
16156   else
16157     shlibpath_overrides_runpath=yes
16158   fi
16159   ;;
16160
16161 os2*)
16162   libname_spec='$name'
16163   shrext_cmds=".dll"
16164   need_lib_prefix=no
16165   library_names_spec='$libname${shared_ext} $libname.a'
16166   dynamic_linker='OS/2 ld.exe'
16167   shlibpath_var=LIBPATH
16168   ;;
16169
16170 osf3* | osf4* | osf5*)
16171   version_type=osf
16172   need_lib_prefix=no
16173   need_version=no
16174   soname_spec='${libname}${release}${shared_ext}$major'
16175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16176   shlibpath_var=LD_LIBRARY_PATH
16177   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16178   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16179   ;;
16180
16181 rdos*)
16182   dynamic_linker=no
16183   ;;
16184
16185 solaris*)
16186   version_type=linux
16187   need_lib_prefix=no
16188   need_version=no
16189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16190   soname_spec='${libname}${release}${shared_ext}$major'
16191   shlibpath_var=LD_LIBRARY_PATH
16192   shlibpath_overrides_runpath=yes
16193   hardcode_into_libs=yes
16194   # ldd complains unless libraries are executable
16195   postinstall_cmds='chmod +x $lib'
16196   ;;
16197
16198 sunos4*)
16199   version_type=sunos
16200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16201   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16202   shlibpath_var=LD_LIBRARY_PATH
16203   shlibpath_overrides_runpath=yes
16204   if test "$with_gnu_ld" = yes; then
16205     need_lib_prefix=no
16206   fi
16207   need_version=yes
16208   ;;
16209
16210 sysv4 | sysv4.3*)
16211   version_type=linux
16212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16213   soname_spec='${libname}${release}${shared_ext}$major'
16214   shlibpath_var=LD_LIBRARY_PATH
16215   case $host_vendor in
16216     sni)
16217       shlibpath_overrides_runpath=no
16218       need_lib_prefix=no
16219       export_dynamic_flag_spec='${wl}-Blargedynsym'
16220       runpath_var=LD_RUN_PATH
16221       ;;
16222     siemens)
16223       need_lib_prefix=no
16224       ;;
16225     motorola)
16226       need_lib_prefix=no
16227       need_version=no
16228       shlibpath_overrides_runpath=no
16229       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16230       ;;
16231   esac
16232   ;;
16233
16234 sysv4*MP*)
16235   if test -d /usr/nec ;then
16236     version_type=linux
16237     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16238     soname_spec='$libname${shared_ext}.$major'
16239     shlibpath_var=LD_LIBRARY_PATH
16240   fi
16241   ;;
16242
16243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16244   version_type=freebsd-elf
16245   need_lib_prefix=no
16246   need_version=no
16247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16248   soname_spec='${libname}${release}${shared_ext}$major'
16249   shlibpath_var=LD_LIBRARY_PATH
16250   hardcode_into_libs=yes
16251   if test "$with_gnu_ld" = yes; then
16252     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16253     shlibpath_overrides_runpath=no
16254   else
16255     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16256     shlibpath_overrides_runpath=yes
16257     case $host_os in
16258       sco3.2v5*)
16259         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16260         ;;
16261     esac
16262   fi
16263   sys_lib_dlsearch_path_spec='/usr/lib'
16264   ;;
16265
16266 uts4*)
16267   version_type=linux
16268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16269   soname_spec='${libname}${release}${shared_ext}$major'
16270   shlibpath_var=LD_LIBRARY_PATH
16271   ;;
16272
16273 *)
16274   dynamic_linker=no
16275   ;;
16276 esac
16277 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16278 echo "${ECHO_T}$dynamic_linker" >&6; }
16279 test "$dynamic_linker" = no && can_build_shared=no
16280
16281 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16282 if test "$GCC" = yes; then
16283   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16284 fi
16285
16286 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16287 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16288 hardcode_action_F77=
16289 if test -n "$hardcode_libdir_flag_spec_F77" || \
16290    test -n "$runpath_var_F77" || \
16291    test "X$hardcode_automatic_F77" = "Xyes" ; then
16292
16293   # We can hardcode non-existant directories.
16294   if test "$hardcode_direct_F77" != no &&
16295      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16296      # have to relink, otherwise we might link with an installed library
16297      # when we should be linking with a yet-to-be-installed one
16298      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16299      test "$hardcode_minus_L_F77" != no; then
16300     # Linking always hardcodes the temporary library directory.
16301     hardcode_action_F77=relink
16302   else
16303     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16304     hardcode_action_F77=immediate
16305   fi
16306 else
16307   # We cannot hardcode anything, or else we can only hardcode existing
16308   # directories.
16309   hardcode_action_F77=unsupported
16310 fi
16311 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16312 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16313
16314 if test "$hardcode_action_F77" = relink; then
16315   # Fast installation is not supported
16316   enable_fast_install=no
16317 elif test "$shlibpath_overrides_runpath" = yes ||
16318      test "$enable_shared" = no; then
16319   # Fast installation is not necessary
16320   enable_fast_install=needless
16321 fi
16322
16323
16324 # The else clause should only fire when bootstrapping the
16325 # libtool distribution, otherwise you forgot to ship ltmain.sh
16326 # with your package, and you will get complaints that there are
16327 # no rules to generate ltmain.sh.
16328 if test -f "$ltmain"; then
16329   # See if we are running on zsh, and set the options which allow our commands through
16330   # without removal of \ escapes.
16331   if test -n "${ZSH_VERSION+set}" ; then
16332     setopt NO_GLOB_SUBST
16333   fi
16334   # Now quote all the things that may contain metacharacters while being
16335   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16336   # variables and quote the copies for generation of the libtool script.
16337   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16338     SED SHELL STRIP \
16339     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16340     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16341     deplibs_check_method reload_flag reload_cmds need_locks \
16342     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16343     lt_cv_sys_global_symbol_to_c_name_address \
16344     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16345     old_postinstall_cmds old_postuninstall_cmds \
16346     compiler_F77 \
16347     CC_F77 \
16348     LD_F77 \
16349     lt_prog_compiler_wl_F77 \
16350     lt_prog_compiler_pic_F77 \
16351     lt_prog_compiler_static_F77 \
16352     lt_prog_compiler_no_builtin_flag_F77 \
16353     export_dynamic_flag_spec_F77 \
16354     thread_safe_flag_spec_F77 \
16355     whole_archive_flag_spec_F77 \
16356     enable_shared_with_static_runtimes_F77 \
16357     old_archive_cmds_F77 \
16358     old_archive_from_new_cmds_F77 \
16359     predep_objects_F77 \
16360     postdep_objects_F77 \
16361     predeps_F77 \
16362     postdeps_F77 \
16363     compiler_lib_search_path_F77 \
16364     archive_cmds_F77 \
16365     archive_expsym_cmds_F77 \
16366     postinstall_cmds_F77 \
16367     postuninstall_cmds_F77 \
16368     old_archive_from_expsyms_cmds_F77 \
16369     allow_undefined_flag_F77 \
16370     no_undefined_flag_F77 \
16371     export_symbols_cmds_F77 \
16372     hardcode_libdir_flag_spec_F77 \
16373     hardcode_libdir_flag_spec_ld_F77 \
16374     hardcode_libdir_separator_F77 \
16375     hardcode_automatic_F77 \
16376     module_cmds_F77 \
16377     module_expsym_cmds_F77 \
16378     lt_cv_prog_compiler_c_o_F77 \
16379     fix_srcfile_path_F77 \
16380     exclude_expsyms_F77 \
16381     include_expsyms_F77; do
16382
16383     case $var in
16384     old_archive_cmds_F77 | \
16385     old_archive_from_new_cmds_F77 | \
16386     archive_cmds_F77 | \
16387     archive_expsym_cmds_F77 | \
16388     module_cmds_F77 | \
16389     module_expsym_cmds_F77 | \
16390     old_archive_from_expsyms_cmds_F77 | \
16391     export_symbols_cmds_F77 | \
16392     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16393     postinstall_cmds | postuninstall_cmds | \
16394     old_postinstall_cmds | old_postuninstall_cmds | \
16395     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16396       # Double-quote double-evaled strings.
16397       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16398       ;;
16399     *)
16400       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16401       ;;
16402     esac
16403   done
16404
16405   case $lt_echo in
16406   *'\$0 --fallback-echo"')
16407     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16408     ;;
16409   esac
16410
16411 cfgfile="$ofile"
16412
16413   cat <<__EOF__ >> "$cfgfile"
16414 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16415
16416 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16417
16418 # Shell to use when invoking shell scripts.
16419 SHELL=$lt_SHELL
16420
16421 # Whether or not to build shared libraries.
16422 build_libtool_libs=$enable_shared
16423
16424 # Whether or not to build static libraries.
16425 build_old_libs=$enable_static
16426
16427 # Whether or not to add -lc for building shared libraries.
16428 build_libtool_need_lc=$archive_cmds_need_lc_F77
16429
16430 # Whether or not to disallow shared libs when runtime libs are static
16431 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16432
16433 # Whether or not to optimize for fast installation.
16434 fast_install=$enable_fast_install
16435
16436 # The host system.
16437 host_alias=$host_alias
16438 host=$host
16439 host_os=$host_os
16440
16441 # The build system.
16442 build_alias=$build_alias
16443 build=$build
16444 build_os=$build_os
16445
16446 # An echo program that does not interpret backslashes.
16447 echo=$lt_echo
16448
16449 # The archiver.
16450 AR=$lt_AR
16451 AR_FLAGS=$lt_AR_FLAGS
16452
16453 # A C compiler.
16454 LTCC=$lt_LTCC
16455
16456 # LTCC compiler flags.
16457 LTCFLAGS=$lt_LTCFLAGS
16458
16459 # A language-specific compiler.
16460 CC=$lt_compiler_F77
16461
16462 # Is the compiler the GNU C compiler?
16463 with_gcc=$GCC_F77
16464
16465 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
16466 gcc_ver=\`gcc -dumpversion\`
16467
16468 # An ERE matcher.
16469 EGREP=$lt_EGREP
16470
16471 # The linker used to build libraries.
16472 LD=$lt_LD_F77
16473
16474 # Whether we need hard or soft links.
16475 LN_S=$lt_LN_S
16476
16477 # A BSD-compatible nm program.
16478 NM=$lt_NM
16479
16480 # A symbol stripping program
16481 STRIP=$lt_STRIP
16482
16483 # Used to examine libraries when file_magic_cmd begins "file"
16484 MAGIC_CMD=$MAGIC_CMD
16485
16486 # Used on cygwin: DLL creation program.
16487 DLLTOOL="$DLLTOOL"
16488
16489 # Used on cygwin: object dumper.
16490 OBJDUMP="$OBJDUMP"
16491
16492 # Used on cygwin: assembler.
16493 AS="$AS"
16494
16495 # The name of the directory that contains temporary libtool files.
16496 objdir=$objdir
16497
16498 # How to create reloadable object files.
16499 reload_flag=$lt_reload_flag
16500 reload_cmds=$lt_reload_cmds
16501
16502 # How to pass a linker flag through the compiler.
16503 wl=$lt_lt_prog_compiler_wl_F77
16504
16505 # Object file suffix (normally "o").
16506 objext="$ac_objext"
16507
16508 # Old archive suffix (normally "a").
16509 libext="$libext"
16510
16511 # Shared library suffix (normally ".so").
16512 shrext_cmds='$shrext_cmds'
16513
16514 # Executable file suffix (normally "").
16515 exeext="$exeext"
16516
16517 # Additional compiler flags for building library objects.
16518 pic_flag=$lt_lt_prog_compiler_pic_F77
16519 pic_mode=$pic_mode
16520
16521 # What is the maximum length of a command?
16522 max_cmd_len=$lt_cv_sys_max_cmd_len
16523
16524 # Does compiler simultaneously support -c and -o options?
16525 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16526
16527 # Must we lock files when doing compilation?
16528 need_locks=$lt_need_locks
16529
16530 # Do we need the lib prefix for modules?
16531 need_lib_prefix=$need_lib_prefix
16532
16533 # Do we need a version for libraries?
16534 need_version=$need_version
16535
16536 # Whether dlopen is supported.
16537 dlopen_support=$enable_dlopen
16538
16539 # Whether dlopen of programs is supported.
16540 dlopen_self=$enable_dlopen_self
16541
16542 # Whether dlopen of statically linked programs is supported.
16543 dlopen_self_static=$enable_dlopen_self_static
16544
16545 # Compiler flag to prevent dynamic linking.
16546 link_static_flag=$lt_lt_prog_compiler_static_F77
16547
16548 # Compiler flag to turn off builtin functions.
16549 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16550
16551 # Compiler flag to allow reflexive dlopens.
16552 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16553
16554 # Compiler flag to generate shared objects directly from archives.
16555 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16556
16557 # Compiler flag to generate thread-safe objects.
16558 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16559
16560 # Library versioning type.
16561 version_type=$version_type
16562
16563 # Format of library name prefix.
16564 libname_spec=$lt_libname_spec
16565
16566 # List of archive names.  First name is the real one, the rest are links.
16567 # The last name is the one that the linker finds with -lNAME.
16568 library_names_spec=$lt_library_names_spec
16569
16570 # The coded name of the library, if different from the real name.
16571 soname_spec=$lt_soname_spec
16572
16573 # Commands used to build and install an old-style archive.
16574 RANLIB=$lt_RANLIB
16575 old_archive_cmds=$lt_old_archive_cmds_F77
16576 old_postinstall_cmds=$lt_old_postinstall_cmds
16577 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16578
16579 # Create an old-style archive from a shared archive.
16580 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16581
16582 # Create a temporary old-style archive to link instead of a shared archive.
16583 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16584
16585 # Commands used to build and install a shared archive.
16586 archive_cmds=$lt_archive_cmds_F77
16587 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16588 postinstall_cmds=$lt_postinstall_cmds
16589 postuninstall_cmds=$lt_postuninstall_cmds
16590
16591 # Commands used to build a loadable module (assumed same as above if empty)
16592 module_cmds=$lt_module_cmds_F77
16593 module_expsym_cmds=$lt_module_expsym_cmds_F77
16594
16595 # Commands to strip libraries.
16596 old_striplib=$lt_old_striplib
16597 striplib=$lt_striplib
16598
16599 # Dependencies to place before the objects being linked to create a
16600 # shared library.
16601 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16602
16603 # Dependencies to place after the objects being linked to create a
16604 # shared library.
16605 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16606
16607 # Dependencies to place before the objects being linked to create a
16608 # shared library.
16609 predeps=$lt_predeps_F77
16610
16611 # Dependencies to place after the objects being linked to create a
16612 # shared library.
16613 postdeps=$lt_postdeps_F77
16614
16615 # The library search path used internally by the compiler when linking
16616 # a shared library.
16617 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16618
16619 # Method to check whether dependent libraries are shared objects.
16620 deplibs_check_method=$lt_deplibs_check_method
16621
16622 # Command to use when deplibs_check_method == file_magic.
16623 file_magic_cmd=$lt_file_magic_cmd
16624
16625 # Flag that allows shared libraries with undefined symbols to be built.
16626 allow_undefined_flag=$lt_allow_undefined_flag_F77
16627
16628 # Flag that forces no undefined symbols.
16629 no_undefined_flag=$lt_no_undefined_flag_F77
16630
16631 # Commands used to finish a libtool library installation in a directory.
16632 finish_cmds=$lt_finish_cmds
16633
16634 # Same as above, but a single script fragment to be evaled but not shown.
16635 finish_eval=$lt_finish_eval
16636
16637 # Take the output of nm and produce a listing of raw symbols and C names.
16638 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16639
16640 # Transform the output of nm in a proper C declaration
16641 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16642
16643 # Transform the output of nm in a C name address pair
16644 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16645
16646 # This is the shared library runtime path variable.
16647 runpath_var=$runpath_var
16648
16649 # This is the shared library path variable.
16650 shlibpath_var=$shlibpath_var
16651
16652 # Is shlibpath searched before the hard-coded library search path?
16653 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16654
16655 # How to hardcode a shared library path into an executable.
16656 hardcode_action=$hardcode_action_F77
16657
16658 # Whether we should hardcode library paths into libraries.
16659 hardcode_into_libs=$hardcode_into_libs
16660
16661 # Flag to hardcode \$libdir into a binary during linking.
16662 # This must work even if \$libdir does not exist.
16663 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16664
16665 # If ld is used when linking, flag to hardcode \$libdir into
16666 # a binary during linking. This must work even if \$libdir does
16667 # not exist.
16668 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16669
16670 # Whether we need a single -rpath flag with a separated argument.
16671 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16672
16673 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16674 # resulting binary.
16675 hardcode_direct=$hardcode_direct_F77
16676
16677 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16678 # resulting binary.
16679 hardcode_minus_L=$hardcode_minus_L_F77
16680
16681 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16682 # the resulting binary.
16683 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16684
16685 # Set to yes if building a shared library automatically hardcodes DIR into the library
16686 # and all subsequent libraries and executables linked against it.
16687 hardcode_automatic=$hardcode_automatic_F77
16688
16689 # Variables whose values should be saved in libtool wrapper scripts and
16690 # restored at relink time.
16691 variables_saved_for_relink="$variables_saved_for_relink"
16692
16693 # Whether libtool must link a program against all its dependency libraries.
16694 link_all_deplibs=$link_all_deplibs_F77
16695
16696 # Compile-time system search path for libraries
16697 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16698
16699 # Run-time system search path for libraries
16700 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16701
16702 # Fix the shell variable \$srcfile for the compiler.
16703 fix_srcfile_path=$lt_fix_srcfile_path
16704
16705 # Set to yes if exported symbols are required.
16706 always_export_symbols=$always_export_symbols_F77
16707
16708 # The commands to list exported symbols.
16709 export_symbols_cmds=$lt_export_symbols_cmds_F77
16710
16711 # The commands to extract the exported symbol list from a shared archive.
16712 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16713
16714 # Symbols that should not be listed in the preloaded symbols.
16715 exclude_expsyms=$lt_exclude_expsyms_F77
16716
16717 # Symbols that must always be exported.
16718 include_expsyms=$lt_include_expsyms_F77
16719
16720 # ### END LIBTOOL TAG CONFIG: $tagname
16721
16722 __EOF__
16723
16724
16725 else
16726   # If there is no Makefile yet, we rely on a make rule to execute
16727   # `config.status --recheck' to rerun these tests and create the
16728   # libtool script then.
16729   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16730   if test -f "$ltmain_in"; then
16731     test -f Makefile && make "$ltmain"
16732   fi
16733 fi
16734
16735
16736 ac_ext=c
16737 ac_cpp='$CPP $CPPFLAGS'
16738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16741
16742 CC="$lt_save_CC"
16743
16744         else
16745           tagname=""
16746         fi
16747         ;;
16748
16749       GCJ)
16750         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16751
16752
16753 # Source file extension for Java test sources.
16754 ac_ext=java
16755
16756 # Object file extension for compiled Java test sources.
16757 objext=o
16758 objext_GCJ=$objext
16759
16760 # Code to be used in simple compile tests
16761 lt_simple_compile_test_code="class foo {}"
16762
16763 # Code to be used in simple link tests
16764 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16765
16766 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16767
16768 # If no C compiler was specified, use CC.
16769 LTCC=${LTCC-"$CC"}
16770
16771 # If no C compiler flags were specified, use CFLAGS.
16772 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16773
16774 # Allow CC to be a program name with arguments.
16775 compiler=$CC
16776
16777
16778 # save warnings/boilerplate of simple test code
16779 ac_outfile=conftest.$ac_objext
16780 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16781 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16782 _lt_compiler_boilerplate=`cat conftest.err`
16783 $rm conftest*
16784
16785 ac_outfile=conftest.$ac_objext
16786 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16787 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16788 _lt_linker_boilerplate=`cat conftest.err`
16789 $rm conftest*
16790
16791
16792 # Allow CC to be a program name with arguments.
16793 lt_save_CC="$CC"
16794 CC=${GCJ-"gcj"}
16795 compiler=$CC
16796 compiler_GCJ=$CC
16797 for cc_temp in $compiler""; do
16798   case $cc_temp in
16799     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16800     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16801     \-*) ;;
16802     *) break;;
16803   esac
16804 done
16805 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16806
16807 LD_GCJ="$LD"
16808
16809 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16810 archive_cmds_need_lc_GCJ=no
16811
16812 old_archive_cmds_GCJ=$old_archive_cmds
16813
16814
16815 lt_prog_compiler_no_builtin_flag_GCJ=
16816
16817 if test "$GCC" = yes; then
16818   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16819
16820
16821 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16822 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16823 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16824   echo $ECHO_N "(cached) $ECHO_C" >&6
16825 else
16826   lt_cv_prog_compiler_rtti_exceptions=no
16827   ac_outfile=conftest.$ac_objext
16828    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16829    lt_compiler_flag="-fno-rtti -fno-exceptions"
16830    # Insert the option either (1) after the last *FLAGS variable, or
16831    # (2) before a word containing "conftest.", or (3) at the end.
16832    # Note that $ac_compile itself does not contain backslashes and begins
16833    # with a dollar sign (not a hyphen), so the echo should work correctly.
16834    # The option is referenced via a variable to avoid confusing sed.
16835    lt_compile=`echo "$ac_compile" | $SED \
16836    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16837    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16838    -e 's:$: $lt_compiler_flag:'`
16839    (eval echo "\"\$as_me:16839: $lt_compile\"" >&5)
16840    (eval "$lt_compile" 2>conftest.err)
16841    ac_status=$?
16842    cat conftest.err >&5
16843    echo "$as_me:16843: \$? = $ac_status" >&5
16844    if (exit $ac_status) && test -s "$ac_outfile"; then
16845      # The compiler can only warn and ignore the option if not recognized
16846      # So say no if there are warnings other than the usual output.
16847      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16848      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16849      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16850        lt_cv_prog_compiler_rtti_exceptions=yes
16851      fi
16852    fi
16853    $rm conftest*
16854
16855 fi
16856 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16857 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16858
16859 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16860     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16861 else
16862     :
16863 fi
16864
16865 fi
16866
16867 lt_prog_compiler_wl_GCJ=
16868 lt_prog_compiler_pic_GCJ=
16869 lt_prog_compiler_static_GCJ=
16870
16871 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16872 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16873
16874   if test "$GCC" = yes; then
16875     lt_prog_compiler_wl_GCJ='-Wl,'
16876     lt_prog_compiler_static_GCJ='-static'
16877
16878     case $host_os in
16879       aix*)
16880       # All AIX code is PIC.
16881       if test "$host_cpu" = ia64; then
16882         # AIX 5 now supports IA64 processor
16883         lt_prog_compiler_static_GCJ='-Bstatic'
16884       fi
16885       ;;
16886
16887     amigaos*)
16888       # FIXME: we need at least 68020 code to build shared libraries, but
16889       # adding the `-m68020' flag to GCC prevents building anything better,
16890       # like `-m68040'.
16891       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16892       ;;
16893
16894     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16895       # PIC is the default for these OSes.
16896       ;;
16897
16898     mingw* | cygwin* | pw32* | os2*)
16899       # This hack is so that the source file can tell whether it is being
16900       # built for inclusion in a dll (and should export symbols for example).
16901       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16902       # (--disable-auto-import) libraries
16903       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16904       ;;
16905
16906     darwin* | rhapsody*)
16907       # PIC is the default on this platform
16908       # Common symbols not allowed in MH_DYLIB files
16909       lt_prog_compiler_pic_GCJ='-fno-common'
16910       ;;
16911
16912     interix[3-9]*)
16913       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16914       # Instead, we relocate shared libraries at runtime.
16915       ;;
16916
16917     msdosdjgpp*)
16918       # Just because we use GCC doesn't mean we suddenly get shared libraries
16919       # on systems that don't support them.
16920       lt_prog_compiler_can_build_shared_GCJ=no
16921       enable_shared=no
16922       ;;
16923
16924     sysv4*MP*)
16925       if test -d /usr/nec; then
16926         lt_prog_compiler_pic_GCJ=-Kconform_pic
16927       fi
16928       ;;
16929
16930     hpux*)
16931       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16932       # not for PA HP-UX.
16933       case $host_cpu in
16934       hppa*64*|ia64*)
16935         # +Z the default
16936         ;;
16937       *)
16938         lt_prog_compiler_pic_GCJ='-fPIC'
16939         ;;
16940       esac
16941       ;;
16942
16943     *)
16944       lt_prog_compiler_pic_GCJ='-fPIC'
16945       ;;
16946     esac
16947   else
16948     # PORTME Check for flag to pass linker flags through the system compiler.
16949     case $host_os in
16950     aix*)
16951       lt_prog_compiler_wl_GCJ='-Wl,'
16952       if test "$host_cpu" = ia64; then
16953         # AIX 5 now supports IA64 processor
16954         lt_prog_compiler_static_GCJ='-Bstatic'
16955       else
16956         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16957       fi
16958       ;;
16959       darwin*)
16960         # PIC is the default on this platform
16961         # Common symbols not allowed in MH_DYLIB files
16962        case $cc_basename in
16963          xlc*)
16964          lt_prog_compiler_pic_GCJ='-qnocommon'
16965          lt_prog_compiler_wl_GCJ='-Wl,'
16966          ;;
16967        esac
16968        ;;
16969
16970     mingw* | cygwin* | pw32* | os2*)
16971       # This hack is so that the source file can tell whether it is being
16972       # built for inclusion in a dll (and should export symbols for example).
16973       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16974       ;;
16975
16976     hpux9* | hpux10* | hpux11*)
16977       lt_prog_compiler_wl_GCJ='-Wl,'
16978       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16979       # not for PA HP-UX.
16980       case $host_cpu in
16981       hppa*64*|ia64*)
16982         # +Z the default
16983         ;;
16984       *)
16985         lt_prog_compiler_pic_GCJ='+Z'
16986         ;;
16987       esac
16988       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16989       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16990       ;;
16991
16992     irix5* | irix6* | nonstopux*)
16993       lt_prog_compiler_wl_GCJ='-Wl,'
16994       # PIC (with -KPIC) is the default.
16995       lt_prog_compiler_static_GCJ='-non_shared'
16996       ;;
16997
16998     newsos6)
16999       lt_prog_compiler_pic_GCJ='-KPIC'
17000       lt_prog_compiler_static_GCJ='-Bstatic'
17001       ;;
17002
17003     linux* | k*bsd*-gnu)
17004       case $cc_basename in
17005       icc* | ecc*)
17006         lt_prog_compiler_wl_GCJ='-Wl,'
17007         lt_prog_compiler_pic_GCJ='-KPIC'
17008         lt_prog_compiler_static_GCJ='-static'
17009         ;;
17010       pgcc* | pgf77* | pgf90* | pgf95*)
17011         # Portland Group compilers (*not* the Pentium gcc compiler,
17012         # which looks to be a dead project)
17013         lt_prog_compiler_wl_GCJ='-Wl,'
17014         lt_prog_compiler_pic_GCJ='-fpic'
17015         lt_prog_compiler_static_GCJ='-Bstatic'
17016         ;;
17017       ccc*)
17018         lt_prog_compiler_wl_GCJ='-Wl,'
17019         # All Alpha code is PIC.
17020         lt_prog_compiler_static_GCJ='-non_shared'
17021         ;;
17022       *)
17023         case `$CC -V 2>&1 | sed 5q` in
17024         *Sun\ C*)
17025           # Sun C 5.9
17026           lt_prog_compiler_pic_GCJ='-KPIC'
17027           lt_prog_compiler_static_GCJ='-Bstatic'
17028           lt_prog_compiler_wl_GCJ='-Wl,'
17029           ;;
17030         *Sun\ F*)
17031           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17032           lt_prog_compiler_pic_GCJ='-KPIC'
17033           lt_prog_compiler_static_GCJ='-Bstatic'
17034           lt_prog_compiler_wl_GCJ=''
17035           ;;
17036         esac
17037         ;;
17038       esac
17039       ;;
17040
17041     osf3* | osf4* | osf5*)
17042       lt_prog_compiler_wl_GCJ='-Wl,'
17043       # All OSF/1 code is PIC.
17044       lt_prog_compiler_static_GCJ='-non_shared'
17045       ;;
17046
17047     rdos*)
17048       lt_prog_compiler_static_GCJ='-non_shared'
17049       ;;
17050
17051     solaris*)
17052       lt_prog_compiler_pic_GCJ='-KPIC'
17053       lt_prog_compiler_static_GCJ='-Bstatic'
17054       case $cc_basename in
17055       f77* | f90* | f95*)
17056         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17057       *)
17058         lt_prog_compiler_wl_GCJ='-Wl,';;
17059       esac
17060       ;;
17061
17062     sunos4*)
17063       lt_prog_compiler_wl_GCJ='-Qoption ld '
17064       lt_prog_compiler_pic_GCJ='-PIC'
17065       lt_prog_compiler_static_GCJ='-Bstatic'
17066       ;;
17067
17068     sysv4 | sysv4.2uw2* | sysv4.3*)
17069       lt_prog_compiler_wl_GCJ='-Wl,'
17070       lt_prog_compiler_pic_GCJ='-KPIC'
17071       lt_prog_compiler_static_GCJ='-Bstatic'
17072       ;;
17073
17074     sysv4*MP*)
17075       if test -d /usr/nec ;then
17076         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17077         lt_prog_compiler_static_GCJ='-Bstatic'
17078       fi
17079       ;;
17080
17081     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17082       lt_prog_compiler_wl_GCJ='-Wl,'
17083       lt_prog_compiler_pic_GCJ='-KPIC'
17084       lt_prog_compiler_static_GCJ='-Bstatic'
17085       ;;
17086
17087     unicos*)
17088       lt_prog_compiler_wl_GCJ='-Wl,'
17089       lt_prog_compiler_can_build_shared_GCJ=no
17090       ;;
17091
17092     uts4*)
17093       lt_prog_compiler_pic_GCJ='-pic'
17094       lt_prog_compiler_static_GCJ='-Bstatic'
17095       ;;
17096
17097     *)
17098       lt_prog_compiler_can_build_shared_GCJ=no
17099       ;;
17100     esac
17101   fi
17102
17103 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17104 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17105
17106 #
17107 # Check to make sure the PIC flag actually works.
17108 #
17109 if test -n "$lt_prog_compiler_pic_GCJ"; then
17110
17111 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17112 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17113 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17114   echo $ECHO_N "(cached) $ECHO_C" >&6
17115 else
17116   lt_prog_compiler_pic_works_GCJ=no
17117   ac_outfile=conftest.$ac_objext
17118    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17119    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17120    # Insert the option either (1) after the last *FLAGS variable, or
17121    # (2) before a word containing "conftest.", or (3) at the end.
17122    # Note that $ac_compile itself does not contain backslashes and begins
17123    # with a dollar sign (not a hyphen), so the echo should work correctly.
17124    # The option is referenced via a variable to avoid confusing sed.
17125    lt_compile=`echo "$ac_compile" | $SED \
17126    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17127    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17128    -e 's:$: $lt_compiler_flag:'`
17129    (eval echo "\"\$as_me:17129: $lt_compile\"" >&5)
17130    (eval "$lt_compile" 2>conftest.err)
17131    ac_status=$?
17132    cat conftest.err >&5
17133    echo "$as_me:17133: \$? = $ac_status" >&5
17134    if (exit $ac_status) && test -s "$ac_outfile"; then
17135      # The compiler can only warn and ignore the option if not recognized
17136      # So say no if there are warnings other than the usual output.
17137      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17138      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17139      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17140        lt_prog_compiler_pic_works_GCJ=yes
17141      fi
17142    fi
17143    $rm conftest*
17144
17145 fi
17146 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17147 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17148
17149 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17150     case $lt_prog_compiler_pic_GCJ in
17151      "" | " "*) ;;
17152      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17153      esac
17154 else
17155     lt_prog_compiler_pic_GCJ=
17156      lt_prog_compiler_can_build_shared_GCJ=no
17157 fi
17158
17159 fi
17160 case $host_os in
17161   # For platforms which do not support PIC, -DPIC is meaningless:
17162   *djgpp*)
17163     lt_prog_compiler_pic_GCJ=
17164     ;;
17165   *)
17166     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17167     ;;
17168 esac
17169
17170 #
17171 # Check to make sure the static flag actually works.
17172 #
17173 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17174 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17175 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17176 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17177   echo $ECHO_N "(cached) $ECHO_C" >&6
17178 else
17179   lt_prog_compiler_static_works_GCJ=no
17180    save_LDFLAGS="$LDFLAGS"
17181    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17182    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17183    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17184      # The linker can only warn and ignore the option if not recognized
17185      # So say no if there are warnings
17186      if test -s conftest.err; then
17187        # Append any errors to the config.log.
17188        cat conftest.err 1>&5
17189        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17190        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17191        if diff conftest.exp conftest.er2 >/dev/null; then
17192          lt_prog_compiler_static_works_GCJ=yes
17193        fi
17194      else
17195        lt_prog_compiler_static_works_GCJ=yes
17196      fi
17197    fi
17198    $rm conftest*
17199    LDFLAGS="$save_LDFLAGS"
17200
17201 fi
17202 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17203 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17204
17205 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17206     :
17207 else
17208     lt_prog_compiler_static_GCJ=
17209 fi
17210
17211
17212 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17213 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17214 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17215   echo $ECHO_N "(cached) $ECHO_C" >&6
17216 else
17217   lt_cv_prog_compiler_c_o_GCJ=no
17218    $rm -r conftest 2>/dev/null
17219    mkdir conftest
17220    cd conftest
17221    mkdir out
17222    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17223
17224    lt_compiler_flag="-o out/conftest2.$ac_objext"
17225    # Insert the option either (1) after the last *FLAGS variable, or
17226    # (2) before a word containing "conftest.", or (3) at the end.
17227    # Note that $ac_compile itself does not contain backslashes and begins
17228    # with a dollar sign (not a hyphen), so the echo should work correctly.
17229    lt_compile=`echo "$ac_compile" | $SED \
17230    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17231    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17232    -e 's:$: $lt_compiler_flag:'`
17233    (eval echo "\"\$as_me:17233: $lt_compile\"" >&5)
17234    (eval "$lt_compile" 2>out/conftest.err)
17235    ac_status=$?
17236    cat out/conftest.err >&5
17237    echo "$as_me:17237: \$? = $ac_status" >&5
17238    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17239    then
17240      # The compiler can only warn and ignore the option if not recognized
17241      # So say no if there are warnings
17242      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17243      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17244      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17245        lt_cv_prog_compiler_c_o_GCJ=yes
17246      fi
17247    fi
17248    chmod u+w . 2>&5
17249    $rm conftest*
17250    # SGI C++ compiler will create directory out/ii_files/ for
17251    # template instantiation
17252    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17253    $rm out/* && rmdir out
17254    cd ..
17255    rmdir conftest
17256    $rm conftest*
17257
17258 fi
17259 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17260 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17261
17262
17263 hard_links="nottested"
17264 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17265   # do not overwrite the value of need_locks provided by the user
17266   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17267 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17268   hard_links=yes
17269   $rm conftest*
17270   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17271   touch conftest.a
17272   ln conftest.a conftest.b 2>&5 || hard_links=no
17273   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17274   { echo "$as_me:$LINENO: result: $hard_links" >&5
17275 echo "${ECHO_T}$hard_links" >&6; }
17276   if test "$hard_links" = no; then
17277     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17278 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17279     need_locks=warn
17280   fi
17281 else
17282   need_locks=no
17283 fi
17284
17285 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17286 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17287
17288   runpath_var=
17289   allow_undefined_flag_GCJ=
17290   enable_shared_with_static_runtimes_GCJ=no
17291   archive_cmds_GCJ=
17292   archive_expsym_cmds_GCJ=
17293   old_archive_From_new_cmds_GCJ=
17294   old_archive_from_expsyms_cmds_GCJ=
17295   export_dynamic_flag_spec_GCJ=
17296   whole_archive_flag_spec_GCJ=
17297   thread_safe_flag_spec_GCJ=
17298   hardcode_libdir_flag_spec_GCJ=
17299   hardcode_libdir_flag_spec_ld_GCJ=
17300   hardcode_libdir_separator_GCJ=
17301   hardcode_direct_GCJ=no
17302   hardcode_minus_L_GCJ=no
17303   hardcode_shlibpath_var_GCJ=unsupported
17304   link_all_deplibs_GCJ=unknown
17305   hardcode_automatic_GCJ=no
17306   module_cmds_GCJ=
17307   module_expsym_cmds_GCJ=
17308   always_export_symbols_GCJ=no
17309   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17310   # include_expsyms should be a list of space-separated symbols to be *always*
17311   # included in the symbol list
17312   include_expsyms_GCJ=
17313   # exclude_expsyms can be an extended regexp of symbols to exclude
17314   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17315   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17316   # as well as any symbol that contains `d'.
17317   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17318   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17319   # platforms (ab)use it in PIC code, but their linkers get confused if
17320   # the symbol is explicitly referenced.  Since portable code cannot
17321   # rely on this symbol name, it's probably fine to never include it in
17322   # preloaded symbol tables.
17323   extract_expsyms_cmds=
17324   # Just being paranoid about ensuring that cc_basename is set.
17325   for cc_temp in $compiler""; do
17326   case $cc_temp in
17327     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17328     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17329     \-*) ;;
17330     *) break;;
17331   esac
17332 done
17333 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17334
17335   case $host_os in
17336   cygwin* | mingw* | pw32*)
17337     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17338     # When not using gcc, we currently assume that we are using
17339     # Microsoft Visual C++.
17340     if test "$GCC" != yes; then
17341       with_gnu_ld=no
17342     fi
17343     ;;
17344   interix*)
17345     # we just hope/assume this is gcc and not c89 (= MSVC++)
17346     with_gnu_ld=yes
17347     ;;
17348   openbsd*)
17349     with_gnu_ld=no
17350     ;;
17351   esac
17352
17353   ld_shlibs_GCJ=yes
17354   if test "$with_gnu_ld" = yes; then
17355     # If archive_cmds runs LD, not CC, wlarc should be empty
17356     wlarc='${wl}'
17357
17358     # Set some defaults for GNU ld with shared library support. These
17359     # are reset later if shared libraries are not supported. Putting them
17360     # here allows them to be overridden if necessary.
17361     runpath_var=LD_RUN_PATH
17362     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17363     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17364     # ancient GNU ld didn't support --whole-archive et. al.
17365     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17366         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17367       else
17368         whole_archive_flag_spec_GCJ=
17369     fi
17370     supports_anon_versioning=no
17371     case `$LD -v 2>/dev/null` in
17372       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17373       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17374       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17375       *\ 2.11.*) ;; # other 2.11 versions
17376       *) supports_anon_versioning=yes ;;
17377     esac
17378
17379     # See if GNU ld supports shared libraries.
17380     case $host_os in
17381     aix3* | aix4* | aix5*)
17382       # On AIX/PPC, the GNU linker is very broken
17383       if test "$host_cpu" != ia64; then
17384         ld_shlibs_GCJ=no
17385         cat <<EOF 1>&2
17386
17387 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17388 *** to be unable to reliably create shared libraries on AIX.
17389 *** Therefore, libtool is disabling shared libraries support.  If you
17390 *** really care for shared libraries, you may want to modify your PATH
17391 *** so that a non-GNU linker is found, and then restart.
17392
17393 EOF
17394       fi
17395       ;;
17396
17397     amigaos*)
17398       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)'
17399       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17400       hardcode_minus_L_GCJ=yes
17401
17402       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17403       # that the semantics of dynamic libraries on AmigaOS, at least up
17404       # to version 4, is to share data among multiple programs linked
17405       # with the same dynamic library.  Since this doesn't match the
17406       # behavior of shared libraries on other platforms, we can't use
17407       # them.
17408       ld_shlibs_GCJ=no
17409       ;;
17410
17411     beos*)
17412       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17413         allow_undefined_flag_GCJ=unsupported
17414         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17415         # support --undefined.  This deserves some investigation.  FIXME
17416         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17417       else
17418         ld_shlibs_GCJ=no
17419       fi
17420       ;;
17421
17422     cygwin* | mingw* | pw32*)
17423       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17424       # as there is no search path for DLLs.
17425       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17426       allow_undefined_flag_GCJ=unsupported
17427       always_export_symbols_GCJ=no
17428       enable_shared_with_static_runtimes_GCJ=yes
17429       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17430
17431       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17432         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17433         # If the export-symbols file already is a .def file (1st line
17434         # is EXPORTS), use it as is; otherwise, prepend...
17435         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17436           cp $export_symbols $output_objdir/$soname.def;
17437         else
17438           echo EXPORTS > $output_objdir/$soname.def;
17439           cat $export_symbols >> $output_objdir/$soname.def;
17440         fi~
17441         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17442       else
17443         ld_shlibs_GCJ=no
17444       fi
17445       ;;
17446
17447     interix[3-9]*)
17448       hardcode_direct_GCJ=no
17449       hardcode_shlibpath_var_GCJ=no
17450       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17451       export_dynamic_flag_spec_GCJ='${wl}-E'
17452       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17453       # Instead, shared libraries are loaded at an image base (0x10000000 by
17454       # default) and relocated if they conflict, which is a slow very memory
17455       # consuming and fragmenting process.  To avoid this, we pick a random,
17456       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17457       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17458       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'
17459       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'
17460       ;;
17461
17462     gnu* | linux* | k*bsd*-gnu)
17463       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17464         tmp_addflag=
17465         case $cc_basename,$host_cpu in
17466         pgcc*)                          # Portland Group C compiler
17467           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'
17468           tmp_addflag=' $pic_flag'
17469           ;;
17470         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17471           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'
17472           tmp_addflag=' $pic_flag -Mnomain' ;;
17473         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17474           tmp_addflag=' -i_dynamic' ;;
17475         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17476           tmp_addflag=' -i_dynamic -nofor_main' ;;
17477         ifc* | ifort*)                  # Intel Fortran compiler
17478           tmp_addflag=' -nofor_main' ;;
17479         esac
17480         case `$CC -V 2>&1 | sed 5q` in
17481         *Sun\ C*)                       # Sun C 5.9
17482           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17483           tmp_sharedflag='-G' ;;
17484         *Sun\ F*)                       # Sun Fortran 8.3
17485           tmp_sharedflag='-G' ;;
17486         *)
17487           tmp_sharedflag='-shared' ;;
17488         esac
17489         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17490
17491         if test $supports_anon_versioning = yes; then
17492           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17493   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17494   $echo "local: *; };" >> $output_objdir/$libname.ver~
17495           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17496         fi
17497       else
17498         ld_shlibs_GCJ=no
17499       fi
17500       ;;
17501
17502     netbsd*)
17503       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17504         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17505         wlarc=
17506       else
17507         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17508         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17509       fi
17510       ;;
17511
17512     solaris*)
17513       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17514         ld_shlibs_GCJ=no
17515         cat <<EOF 1>&2
17516
17517 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17518 *** create shared libraries on Solaris systems.  Therefore, libtool
17519 *** is disabling shared libraries support.  We urge you to upgrade GNU
17520 *** binutils to release 2.9.1 or newer.  Another option is to modify
17521 *** your PATH or compiler configuration so that the native linker is
17522 *** used, and then restart.
17523
17524 EOF
17525       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17526         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17527         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17528       else
17529         ld_shlibs_GCJ=no
17530       fi
17531       ;;
17532
17533     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17534       case `$LD -v 2>&1` in
17535         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17536         ld_shlibs_GCJ=no
17537         cat <<_LT_EOF 1>&2
17538
17539 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17540 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17541 *** is disabling shared libraries support.  We urge you to upgrade GNU
17542 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17543 *** your PATH or compiler configuration so that the native linker is
17544 *** used, and then restart.
17545
17546 _LT_EOF
17547         ;;
17548         *)
17549           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17550             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17551             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17552             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17553           else
17554             ld_shlibs_GCJ=no
17555           fi
17556         ;;
17557       esac
17558       ;;
17559
17560     sunos4*)
17561       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17562       wlarc=
17563       hardcode_direct_GCJ=yes
17564       hardcode_shlibpath_var_GCJ=no
17565       ;;
17566
17567     *)
17568       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17569         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17570         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17571       else
17572         ld_shlibs_GCJ=no
17573       fi
17574       ;;
17575     esac
17576
17577     if test "$ld_shlibs_GCJ" = no; then
17578       runpath_var=
17579       hardcode_libdir_flag_spec_GCJ=
17580       export_dynamic_flag_spec_GCJ=
17581       whole_archive_flag_spec_GCJ=
17582     fi
17583   else
17584     # PORTME fill in a description of your system's linker (not GNU ld)
17585     case $host_os in
17586     aix3*)
17587       allow_undefined_flag_GCJ=unsupported
17588       always_export_symbols_GCJ=yes
17589       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'
17590       # Note: this linker hardcodes the directories in LIBPATH if there
17591       # are no directories specified by -L.
17592       hardcode_minus_L_GCJ=yes
17593       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17594         # Neither direct hardcoding nor static linking is supported with a
17595         # broken collect2.
17596         hardcode_direct_GCJ=unsupported
17597       fi
17598       ;;
17599
17600     aix4* | aix5*)
17601       if test "$host_cpu" = ia64; then
17602         # On IA64, the linker does run time linking by default, so we don't
17603         # have to do anything special.
17604         aix_use_runtimelinking=no
17605         exp_sym_flag='-Bexport'
17606         no_entry_flag=""
17607       else
17608         # If we're using GNU nm, then we don't want the "-C" option.
17609         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17610         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17611           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'
17612         else
17613           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'
17614         fi
17615         aix_use_runtimelinking=no
17616
17617         # Test if we are trying to use run time linking or normal
17618         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17619         # need to do runtime linking.
17620         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17621           for ld_flag in $LDFLAGS; do
17622           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17623             aix_use_runtimelinking=yes
17624             break
17625           fi
17626           done
17627           ;;
17628         esac
17629
17630         exp_sym_flag='-bexport'
17631         no_entry_flag='-bnoentry'
17632       fi
17633
17634       # When large executables or shared objects are built, AIX ld can
17635       # have problems creating the table of contents.  If linking a library
17636       # or program results in "error TOC overflow" add -mminimal-toc to
17637       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17638       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17639
17640       archive_cmds_GCJ=''
17641       hardcode_direct_GCJ=yes
17642       hardcode_libdir_separator_GCJ=':'
17643       link_all_deplibs_GCJ=yes
17644
17645       if test "$GCC" = yes; then
17646         case $host_os in aix4.[012]|aix4.[012].*)
17647         # We only want to do this on AIX 4.2 and lower, the check
17648         # below for broken collect2 doesn't work under 4.3+
17649           collect2name=`${CC} -print-prog-name=collect2`
17650           if test -f "$collect2name" && \
17651            strings "$collect2name" | grep resolve_lib_name >/dev/null
17652           then
17653           # We have reworked collect2
17654           :
17655           else
17656           # We have old collect2
17657           hardcode_direct_GCJ=unsupported
17658           # It fails to find uninstalled libraries when the uninstalled
17659           # path is not listed in the libpath.  Setting hardcode_minus_L
17660           # to unsupported forces relinking
17661           hardcode_minus_L_GCJ=yes
17662           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17663           hardcode_libdir_separator_GCJ=
17664           fi
17665           ;;
17666         esac
17667         shared_flag='-shared'
17668         if test "$aix_use_runtimelinking" = yes; then
17669           shared_flag="$shared_flag "'${wl}-G'
17670         fi
17671       else
17672         # not using gcc
17673         if test "$host_cpu" = ia64; then
17674         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17675         # chokes on -Wl,-G. The following line is correct:
17676           shared_flag='-G'
17677         else
17678           if test "$aix_use_runtimelinking" = yes; then
17679             shared_flag='${wl}-G'
17680           else
17681             shared_flag='${wl}-bM:SRE'
17682           fi
17683         fi
17684       fi
17685
17686       # It seems that -bexpall does not export symbols beginning with
17687       # underscore (_), so it is better to generate a list of symbols to export.
17688       always_export_symbols_GCJ=yes
17689       if test "$aix_use_runtimelinking" = yes; then
17690         # Warning - without using the other runtime loading flags (-brtl),
17691         # -berok will link without error, but may produce a broken library.
17692         allow_undefined_flag_GCJ='-berok'
17693        # Determine the default libpath from the value encoded in an empty executable.
17694        cat >conftest.$ac_ext <<_ACEOF
17695 /* confdefs.h.  */
17696 _ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h.  */
17700
17701 int
17702 main ()
17703 {
17704
17705   ;
17706   return 0;
17707 }
17708 _ACEOF
17709 rm -f conftest.$ac_objext conftest$ac_exeext
17710 if { (ac_try="$ac_link"
17711 case "(($ac_try" in
17712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713   *) ac_try_echo=$ac_try;;
17714 esac
17715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716   (eval "$ac_link") 2>conftest.er1
17717   ac_status=$?
17718   grep -v '^ *+' conftest.er1 >conftest.err
17719   rm -f conftest.er1
17720   cat conftest.err >&5
17721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722   (exit $ac_status); } &&
17723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17724   { (case "(($ac_try" in
17725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726   *) ac_try_echo=$ac_try;;
17727 esac
17728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17729   (eval "$ac_try") 2>&5
17730   ac_status=$?
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); }; } &&
17733          { ac_try='test -s conftest$ac_exeext'
17734   { (case "(($ac_try" in
17735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736   *) ac_try_echo=$ac_try;;
17737 esac
17738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17739   (eval "$ac_try") 2>&5
17740   ac_status=$?
17741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742   (exit $ac_status); }; }; then
17743
17744 lt_aix_libpath_sed='
17745     /Import File Strings/,/^$/ {
17746         /^0/ {
17747             s/^0  *\(.*\)$/\1/
17748             p
17749         }
17750     }'
17751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17752 # Check for a 64-bit object if we didn't find anything.
17753 if test -z "$aix_libpath"; then
17754   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17755 fi
17756 else
17757   echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17759
17760
17761 fi
17762
17763 rm -f core conftest.err conftest.$ac_objext \
17764       conftest$ac_exeext conftest.$ac_ext
17765 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17766
17767        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17768         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"
17769        else
17770         if test "$host_cpu" = ia64; then
17771           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17772           allow_undefined_flag_GCJ="-z nodefs"
17773           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"
17774         else
17775          # Determine the default libpath from the value encoded in an empty executable.
17776          cat >conftest.$ac_ext <<_ACEOF
17777 /* confdefs.h.  */
17778 _ACEOF
17779 cat confdefs.h >>conftest.$ac_ext
17780 cat >>conftest.$ac_ext <<_ACEOF
17781 /* end confdefs.h.  */
17782
17783 int
17784 main ()
17785 {
17786
17787   ;
17788   return 0;
17789 }
17790 _ACEOF
17791 rm -f conftest.$ac_objext conftest$ac_exeext
17792 if { (ac_try="$ac_link"
17793 case "(($ac_try" in
17794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795   *) ac_try_echo=$ac_try;;
17796 esac
17797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17798   (eval "$ac_link") 2>conftest.er1
17799   ac_status=$?
17800   grep -v '^ *+' conftest.er1 >conftest.err
17801   rm -f conftest.er1
17802   cat conftest.err >&5
17803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804   (exit $ac_status); } &&
17805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17806   { (case "(($ac_try" in
17807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808   *) ac_try_echo=$ac_try;;
17809 esac
17810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811   (eval "$ac_try") 2>&5
17812   ac_status=$?
17813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814   (exit $ac_status); }; } &&
17815          { ac_try='test -s conftest$ac_exeext'
17816   { (case "(($ac_try" in
17817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818   *) ac_try_echo=$ac_try;;
17819 esac
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821   (eval "$ac_try") 2>&5
17822   ac_status=$?
17823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824   (exit $ac_status); }; }; then
17825
17826 lt_aix_libpath_sed='
17827     /Import File Strings/,/^$/ {
17828         /^0/ {
17829             s/^0  *\(.*\)$/\1/
17830             p
17831         }
17832     }'
17833 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17834 # Check for a 64-bit object if we didn't find anything.
17835 if test -z "$aix_libpath"; then
17836   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17837 fi
17838 else
17839   echo "$as_me: failed program was:" >&5
17840 sed 's/^/| /' conftest.$ac_ext >&5
17841
17842
17843 fi
17844
17845 rm -f core conftest.err conftest.$ac_objext \
17846       conftest$ac_exeext conftest.$ac_ext
17847 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17848
17849          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17850           # Warning - without using the other run time loading flags,
17851           # -berok will link without error, but may produce a broken library.
17852           no_undefined_flag_GCJ=' ${wl}-bernotok'
17853           allow_undefined_flag_GCJ=' ${wl}-berok'
17854           # Exported symbols can be pulled into shared objects from archives
17855           whole_archive_flag_spec_GCJ='$convenience'
17856           archive_cmds_need_lc_GCJ=yes
17857           # This is similar to how AIX traditionally builds its shared libraries.
17858           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'
17859         fi
17860       fi
17861       ;;
17862
17863     amigaos*)
17864       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)'
17865       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17866       hardcode_minus_L_GCJ=yes
17867       # see comment about different semantics on the GNU ld section
17868       ld_shlibs_GCJ=no
17869       ;;
17870
17871     bsdi[45]*)
17872       export_dynamic_flag_spec_GCJ=-rdynamic
17873       ;;
17874
17875     cygwin* | mingw* | pw32*)
17876       # When not using gcc, we currently assume that we are using
17877       # Microsoft Visual C++.
17878       # hardcode_libdir_flag_spec is actually meaningless, as there is
17879       # no search path for DLLs.
17880       hardcode_libdir_flag_spec_GCJ=' '
17881       allow_undefined_flag_GCJ=unsupported
17882       # Tell ltmain to make .lib files, not .a files.
17883       libext=lib
17884       # Tell ltmain to make .dll files, not .so files.
17885       shrext_cmds=".dll"
17886       # FIXME: Setting linknames here is a bad hack.
17887       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17888       # The linker will automatically build a .lib file if we build a DLL.
17889       old_archive_From_new_cmds_GCJ='true'
17890       # FIXME: Should let the user specify the lib program.
17891       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17892       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17893       enable_shared_with_static_runtimes_GCJ=yes
17894       ;;
17895
17896     darwin* | rhapsody*)
17897       case $host_os in
17898         rhapsody* | darwin1.[012])
17899          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17900          ;;
17901        *) # Darwin 1.3 on
17902          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17903            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17904          else
17905            case ${MACOSX_DEPLOYMENT_TARGET} in
17906              10.[012])
17907                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17908                ;;
17909              10.*)
17910                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17911                ;;
17912            esac
17913          fi
17914          ;;
17915       esac
17916       archive_cmds_need_lc_GCJ=no
17917       hardcode_direct_GCJ=no
17918       hardcode_automatic_GCJ=yes
17919       hardcode_shlibpath_var_GCJ=unsupported
17920       whole_archive_flag_spec_GCJ=''
17921       link_all_deplibs_GCJ=yes
17922     if test "$GCC" = yes ; then
17923         output_verbose_link_cmd='echo'
17924         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17925       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17926       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17927       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}'
17928       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}'
17929     else
17930       case $cc_basename in
17931         xlc*)
17932          output_verbose_link_cmd='echo'
17933          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17934          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17935           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17936          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17937           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}'
17938           ;;
17939        *)
17940          ld_shlibs_GCJ=no
17941           ;;
17942       esac
17943     fi
17944       ;;
17945
17946     dgux*)
17947       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17948       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17949       hardcode_shlibpath_var_GCJ=no
17950       ;;
17951
17952     freebsd1*)
17953       ld_shlibs_GCJ=no
17954       ;;
17955
17956     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17957     # support.  Future versions do this automatically, but an explicit c++rt0.o
17958     # does not break anything, and helps significantly (at the cost of a little
17959     # extra space).
17960     freebsd2.2*)
17961       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17962       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17963       hardcode_direct_GCJ=yes
17964       hardcode_shlibpath_var_GCJ=no
17965       ;;
17966
17967     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17968     freebsd2*)
17969       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17970       hardcode_direct_GCJ=yes
17971       hardcode_minus_L_GCJ=yes
17972       hardcode_shlibpath_var_GCJ=no
17973       ;;
17974
17975     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17976     freebsd* | dragonfly*)
17977       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17978       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17979       hardcode_direct_GCJ=yes
17980       hardcode_shlibpath_var_GCJ=no
17981       ;;
17982
17983     hpux9*)
17984       if test "$GCC" = yes; then
17985         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'
17986       else
17987         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'
17988       fi
17989       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17990       hardcode_libdir_separator_GCJ=:
17991       hardcode_direct_GCJ=yes
17992
17993       # hardcode_minus_L: Not really in the search PATH,
17994       # but as the default location of the library.
17995       hardcode_minus_L_GCJ=yes
17996       export_dynamic_flag_spec_GCJ='${wl}-E'
17997       ;;
17998
17999     hpux10*)
18000       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18001         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18002       else
18003         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18004       fi
18005       if test "$with_gnu_ld" = no; then
18006         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18007         hardcode_libdir_separator_GCJ=:
18008
18009         hardcode_direct_GCJ=yes
18010         export_dynamic_flag_spec_GCJ='${wl}-E'
18011
18012         # hardcode_minus_L: Not really in the search PATH,
18013         # but as the default location of the library.
18014         hardcode_minus_L_GCJ=yes
18015       fi
18016       ;;
18017
18018     hpux11*)
18019       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18020         case $host_cpu in
18021         hppa*64*)
18022           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18023           ;;
18024         ia64*)
18025           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18026           ;;
18027         *)
18028           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18029           ;;
18030         esac
18031       else
18032         case $host_cpu in
18033         hppa*64*)
18034           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18035           ;;
18036         ia64*)
18037           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18038           ;;
18039         *)
18040           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18041           ;;
18042         esac
18043       fi
18044       if test "$with_gnu_ld" = no; then
18045         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18046         hardcode_libdir_separator_GCJ=:
18047
18048         case $host_cpu in
18049         hppa*64*|ia64*)
18050           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18051           hardcode_direct_GCJ=no
18052           hardcode_shlibpath_var_GCJ=no
18053           ;;
18054         *)
18055           hardcode_direct_GCJ=yes
18056           export_dynamic_flag_spec_GCJ='${wl}-E'
18057
18058           # hardcode_minus_L: Not really in the search PATH,
18059           # but as the default location of the library.
18060           hardcode_minus_L_GCJ=yes
18061           ;;
18062         esac
18063       fi
18064       ;;
18065
18066     irix5* | irix6* | nonstopux*)
18067       if test "$GCC" = yes; then
18068         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'
18069       else
18070         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'
18071         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18072       fi
18073       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18074       hardcode_libdir_separator_GCJ=:
18075       link_all_deplibs_GCJ=yes
18076       ;;
18077
18078     netbsd*)
18079       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18080         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18081       else
18082         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18083       fi
18084       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18085       hardcode_direct_GCJ=yes
18086       hardcode_shlibpath_var_GCJ=no
18087       ;;
18088
18089     newsos6)
18090       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18091       hardcode_direct_GCJ=yes
18092       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18093       hardcode_libdir_separator_GCJ=:
18094       hardcode_shlibpath_var_GCJ=no
18095       ;;
18096
18097     openbsd*)
18098       if test -f /usr/libexec/ld.so; then
18099         hardcode_direct_GCJ=yes
18100         hardcode_shlibpath_var_GCJ=no
18101         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18102           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18103           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18104           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18105           export_dynamic_flag_spec_GCJ='${wl}-E'
18106         else
18107           case $host_os in
18108            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18109              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18110              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18111              ;;
18112            *)
18113              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18114              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18115              ;;
18116           esac
18117         fi
18118       else
18119         ld_shlibs_GCJ=no
18120       fi
18121       ;;
18122
18123     os2*)
18124       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18125       hardcode_minus_L_GCJ=yes
18126       allow_undefined_flag_GCJ=unsupported
18127       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'
18128       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18129       ;;
18130
18131     osf3*)
18132       if test "$GCC" = yes; then
18133         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18134         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'
18135       else
18136         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18137         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'
18138       fi
18139       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18140       hardcode_libdir_separator_GCJ=:
18141       ;;
18142
18143     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18144       if test "$GCC" = yes; then
18145         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18146         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'
18147         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18148       else
18149         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18150         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'
18151         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~
18152         $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'
18153
18154         # Both c and cxx compiler support -rpath directly
18155         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18156       fi
18157       hardcode_libdir_separator_GCJ=:
18158       ;;
18159
18160     solaris*)
18161       no_undefined_flag_GCJ=' -z text'
18162       if test "$GCC" = yes; then
18163         wlarc='${wl}'
18164         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18165         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18166           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18167       else
18168         wlarc=''
18169         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18170         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18171         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18172       fi
18173       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18174       hardcode_shlibpath_var_GCJ=no
18175       case $host_os in
18176       solaris2.[0-5] | solaris2.[0-5].*) ;;
18177       *)
18178         # The compiler driver will combine and reorder linker options,
18179         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18180         # but is careful enough not to reorder.
18181         # Supported since Solaris 2.6 (maybe 2.5.1?)
18182         if test "$GCC" = yes; then
18183           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18184         else
18185           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18186         fi
18187         ;;
18188       esac
18189       link_all_deplibs_GCJ=yes
18190       ;;
18191
18192     sunos4*)
18193       if test "x$host_vendor" = xsequent; then
18194         # Use $CC to link under sequent, because it throws in some extra .o
18195         # files that make .init and .fini sections work.
18196         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18197       else
18198         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18199       fi
18200       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18201       hardcode_direct_GCJ=yes
18202       hardcode_minus_L_GCJ=yes
18203       hardcode_shlibpath_var_GCJ=no
18204       ;;
18205
18206     sysv4)
18207       case $host_vendor in
18208         sni)
18209           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18210           hardcode_direct_GCJ=yes # is this really true???
18211         ;;
18212         siemens)
18213           ## LD is ld it makes a PLAMLIB
18214           ## CC just makes a GrossModule.
18215           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18216           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18217           hardcode_direct_GCJ=no
18218         ;;
18219         motorola)
18220           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18221           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18222         ;;
18223       esac
18224       runpath_var='LD_RUN_PATH'
18225       hardcode_shlibpath_var_GCJ=no
18226       ;;
18227
18228     sysv4.3*)
18229       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18230       hardcode_shlibpath_var_GCJ=no
18231       export_dynamic_flag_spec_GCJ='-Bexport'
18232       ;;
18233
18234     sysv4*MP*)
18235       if test -d /usr/nec; then
18236         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18237         hardcode_shlibpath_var_GCJ=no
18238         runpath_var=LD_RUN_PATH
18239         hardcode_runpath_var=yes
18240         ld_shlibs_GCJ=yes
18241       fi
18242       ;;
18243
18244     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18245       no_undefined_flag_GCJ='${wl}-z,text'
18246       archive_cmds_need_lc_GCJ=no
18247       hardcode_shlibpath_var_GCJ=no
18248       runpath_var='LD_RUN_PATH'
18249
18250       if test "$GCC" = yes; then
18251         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18252         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18253       else
18254         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18255         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18256       fi
18257       ;;
18258
18259     sysv5* | sco3.2v5* | sco5v6*)
18260       # Note: We can NOT use -z defs as we might desire, because we do not
18261       # link with -lc, and that would cause any symbols used from libc to
18262       # always be unresolved, which means just about no library would
18263       # ever link correctly.  If we're not using GNU ld we use -z text
18264       # though, which does catch some bad symbols but isn't as heavy-handed
18265       # as -z defs.
18266       no_undefined_flag_GCJ='${wl}-z,text'
18267       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18268       archive_cmds_need_lc_GCJ=no
18269       hardcode_shlibpath_var_GCJ=no
18270       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18271       hardcode_libdir_separator_GCJ=':'
18272       link_all_deplibs_GCJ=yes
18273       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18274       runpath_var='LD_RUN_PATH'
18275
18276       if test "$GCC" = yes; then
18277         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18278         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18279       else
18280         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18281         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18282       fi
18283       ;;
18284
18285     uts4*)
18286       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18287       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18288       hardcode_shlibpath_var_GCJ=no
18289       ;;
18290
18291     *)
18292       ld_shlibs_GCJ=no
18293       ;;
18294     esac
18295   fi
18296
18297 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18298 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18299 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18300
18301 #
18302 # Do we need to explicitly link libc?
18303 #
18304 case "x$archive_cmds_need_lc_GCJ" in
18305 x|xyes)
18306   # Assume -lc should be added
18307   archive_cmds_need_lc_GCJ=yes
18308
18309   if test "$enable_shared" = yes && test "$GCC" = yes; then
18310     case $archive_cmds_GCJ in
18311     *'~'*)
18312       # FIXME: we may have to deal with multi-command sequences.
18313       ;;
18314     '$CC '*)
18315       # Test whether the compiler implicitly links with -lc since on some
18316       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18317       # to ld, don't add -lc before -lgcc.
18318       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18319 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18320       $rm conftest*
18321       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18322
18323       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18324   (eval $ac_compile) 2>&5
18325   ac_status=$?
18326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327   (exit $ac_status); } 2>conftest.err; then
18328         soname=conftest
18329         lib=conftest
18330         libobjs=conftest.$ac_objext
18331         deplibs=
18332         wl=$lt_prog_compiler_wl_GCJ
18333         pic_flag=$lt_prog_compiler_pic_GCJ
18334         compiler_flags=-v
18335         linker_flags=-v
18336         verstring=
18337         output_objdir=.
18338         libname=conftest
18339         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18340         allow_undefined_flag_GCJ=
18341         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18342   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18343   ac_status=$?
18344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345   (exit $ac_status); }
18346         then
18347           archive_cmds_need_lc_GCJ=no
18348         else
18349           archive_cmds_need_lc_GCJ=yes
18350         fi
18351         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18352       else
18353         cat conftest.err 1>&5
18354       fi
18355       $rm conftest*
18356       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18357 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18358       ;;
18359     esac
18360   fi
18361   ;;
18362 esac
18363
18364 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18365 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18366 library_names_spec=
18367 libname_spec='lib$name'
18368 soname_spec=
18369 shrext_cmds=".so"
18370 postinstall_cmds=
18371 postuninstall_cmds=
18372 finish_cmds=
18373 finish_eval=
18374 shlibpath_var=
18375 shlibpath_overrides_runpath=unknown
18376 version_type=none
18377 dynamic_linker="$host_os ld.so"
18378 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18379
18380 need_lib_prefix=unknown
18381 hardcode_into_libs=no
18382
18383 # when you set need_version to no, make sure it does not cause -set_version
18384 # flags to be left without arguments
18385 need_version=unknown
18386
18387 case $host_os in
18388 aix3*)
18389   version_type=linux
18390   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18391   shlibpath_var=LIBPATH
18392
18393   # AIX 3 has no versioning support, so we append a major version to the name.
18394   soname_spec='${libname}${release}${shared_ext}$major'
18395   ;;
18396
18397 aix4* | aix5*)
18398   version_type=linux
18399   need_lib_prefix=no
18400   need_version=no
18401   hardcode_into_libs=yes
18402   if test "$host_cpu" = ia64; then
18403     # AIX 5 supports IA64
18404     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18405     shlibpath_var=LD_LIBRARY_PATH
18406   else
18407     # With GCC up to 2.95.x, collect2 would create an import file
18408     # for dependence libraries.  The import file would start with
18409     # the line `#! .'.  This would cause the generated library to
18410     # depend on `.', always an invalid library.  This was fixed in
18411     # development snapshots of GCC prior to 3.0.
18412     case $host_os in
18413       aix4 | aix4.[01] | aix4.[01].*)
18414       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18415            echo ' yes '
18416            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18417         :
18418       else
18419         can_build_shared=no
18420       fi
18421       ;;
18422     esac
18423     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18424     # soname into executable. Probably we can add versioning support to
18425     # collect2, so additional links can be useful in future.
18426     if test "$aix_use_runtimelinking" = yes; then
18427       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18428       # instead of lib<name>.a to let people know that these are not
18429       # typical AIX shared libraries.
18430       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18431     else
18432       # We preserve .a as extension for shared libraries through AIX4.2
18433       # and later when we are not doing run time linking.
18434       library_names_spec='${libname}${release}.a $libname.a'
18435       soname_spec='${libname}${release}${shared_ext}$major'
18436     fi
18437     shlibpath_var=LIBPATH
18438   fi
18439   ;;
18440
18441 amigaos*)
18442   library_names_spec='$libname.ixlibrary $libname.a'
18443   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18444   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'
18445   ;;
18446
18447 beos*)
18448   library_names_spec='${libname}${shared_ext}'
18449   dynamic_linker="$host_os ld.so"
18450   shlibpath_var=LIBRARY_PATH
18451   ;;
18452
18453 bsdi[45]*)
18454   version_type=linux
18455   need_version=no
18456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18457   soname_spec='${libname}${release}${shared_ext}$major'
18458   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18459   shlibpath_var=LD_LIBRARY_PATH
18460   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18461   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18462   # the default ld.so.conf also contains /usr/contrib/lib and
18463   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18464   # libtool to hard-code these into programs
18465   ;;
18466
18467 cygwin* | mingw* | pw32*)
18468   version_type=windows
18469   shrext_cmds=".dll"
18470   need_version=no
18471   need_lib_prefix=no
18472
18473   case $GCC,$host_os in
18474   yes,cygwin* | yes,mingw* | yes,pw32*)
18475     library_names_spec='$libname.dll.a'
18476     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18477     postinstall_cmds='base_file=`basename \${file}`~
18478       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18479       dldir=$destdir/`dirname \$dlpath`~
18480       test -d \$dldir || mkdir -p \$dldir~
18481       $install_prog $dir/$dlname \$dldir/$dlname~
18482       chmod a+x \$dldir/$dlname'
18483     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18484       dlpath=$dir/\$dldll~
18485        $rm \$dlpath'
18486     shlibpath_overrides_runpath=yes
18487
18488     case $host_os in
18489     cygwin*)
18490       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18491       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18492       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18493       ;;
18494     mingw*)
18495       # MinGW DLLs use traditional 'lib' prefix
18496       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18497       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18498       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18499         # It is most probably a Windows format PATH printed by
18500         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18501         # path with ; separators, and with drive letters. We can handle the
18502         # drive letters (cygwin fileutils understands them), so leave them,
18503         # especially as we might pass files found there to a mingw objdump,
18504         # which wouldn't understand a cygwinified path. Ahh.
18505         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18506       else
18507         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18508       fi
18509       ;;
18510     pw32*)
18511       # pw32 DLLs use 'pw' prefix rather than 'lib'
18512       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18513       ;;
18514     esac
18515     ;;
18516
18517   *)
18518     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18519     ;;
18520   esac
18521   dynamic_linker='Win32 ld.exe'
18522   # FIXME: first we should search . and the directory the executable is in
18523   shlibpath_var=PATH
18524   ;;
18525
18526 darwin* | rhapsody*)
18527   dynamic_linker="$host_os dyld"
18528   version_type=darwin
18529   need_lib_prefix=no
18530   need_version=no
18531   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18532   soname_spec='${libname}${release}${major}$shared_ext'
18533   shlibpath_overrides_runpath=yes
18534   shlibpath_var=DYLD_LIBRARY_PATH
18535   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18536
18537   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18538   ;;
18539
18540 dgux*)
18541   version_type=linux
18542   need_lib_prefix=no
18543   need_version=no
18544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18545   soname_spec='${libname}${release}${shared_ext}$major'
18546   shlibpath_var=LD_LIBRARY_PATH
18547   ;;
18548
18549 freebsd1*)
18550   dynamic_linker=no
18551   ;;
18552
18553 freebsd* | dragonfly*)
18554   # DragonFly does not have aout.  When/if they implement a new
18555   # versioning mechanism, adjust this.
18556   if test -x /usr/bin/objformat; then
18557     objformat=`/usr/bin/objformat`
18558   else
18559     case $host_os in
18560     freebsd[123]*) objformat=aout ;;
18561     *) objformat=elf ;;
18562     esac
18563   fi
18564   version_type=freebsd-$objformat
18565   case $version_type in
18566     freebsd-elf*)
18567       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18568       need_version=no
18569       need_lib_prefix=no
18570       ;;
18571     freebsd-*)
18572       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18573       need_version=yes
18574       ;;
18575   esac
18576   shlibpath_var=LD_LIBRARY_PATH
18577   case $host_os in
18578   freebsd2*)
18579     shlibpath_overrides_runpath=yes
18580     ;;
18581   freebsd3.[01]* | freebsdelf3.[01]*)
18582     shlibpath_overrides_runpath=yes
18583     hardcode_into_libs=yes
18584     ;;
18585   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18586   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18587     shlibpath_overrides_runpath=no
18588     hardcode_into_libs=yes
18589     ;;
18590   *) # from 4.6 on, and DragonFly
18591     shlibpath_overrides_runpath=yes
18592     hardcode_into_libs=yes
18593     ;;
18594   esac
18595   ;;
18596
18597 gnu*)
18598   version_type=linux
18599   need_lib_prefix=no
18600   need_version=no
18601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18602   soname_spec='${libname}${release}${shared_ext}$major'
18603   shlibpath_var=LD_LIBRARY_PATH
18604   hardcode_into_libs=yes
18605   ;;
18606
18607 hpux9* | hpux10* | hpux11*)
18608   # Give a soname corresponding to the major version so that dld.sl refuses to
18609   # link against other versions.
18610   version_type=sunos
18611   need_lib_prefix=no
18612   need_version=no
18613   case $host_cpu in
18614   ia64*)
18615     shrext_cmds='.so'
18616     hardcode_into_libs=yes
18617     dynamic_linker="$host_os dld.so"
18618     shlibpath_var=LD_LIBRARY_PATH
18619     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18621     soname_spec='${libname}${release}${shared_ext}$major'
18622     if test "X$HPUX_IA64_MODE" = X32; then
18623       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18624     else
18625       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18626     fi
18627     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18628     ;;
18629    hppa*64*)
18630      shrext_cmds='.sl'
18631      hardcode_into_libs=yes
18632      dynamic_linker="$host_os dld.sl"
18633      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18634      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18635      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18636      soname_spec='${libname}${release}${shared_ext}$major'
18637      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18638      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18639      ;;
18640    *)
18641     shrext_cmds='.sl'
18642     dynamic_linker="$host_os dld.sl"
18643     shlibpath_var=SHLIB_PATH
18644     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18645     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18646     soname_spec='${libname}${release}${shared_ext}$major'
18647     ;;
18648   esac
18649   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18650   postinstall_cmds='chmod 555 $lib'
18651   ;;
18652
18653 interix[3-9]*)
18654   version_type=linux
18655   need_lib_prefix=no
18656   need_version=no
18657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18658   soname_spec='${libname}${release}${shared_ext}$major'
18659   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18660   shlibpath_var=LD_LIBRARY_PATH
18661   shlibpath_overrides_runpath=no
18662   hardcode_into_libs=yes
18663   ;;
18664
18665 irix5* | irix6* | nonstopux*)
18666   case $host_os in
18667     nonstopux*) version_type=nonstopux ;;
18668     *)
18669         if test "$lt_cv_prog_gnu_ld" = yes; then
18670                 version_type=linux
18671         else
18672                 version_type=irix
18673         fi ;;
18674   esac
18675   need_lib_prefix=no
18676   need_version=no
18677   soname_spec='${libname}${release}${shared_ext}$major'
18678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18679   case $host_os in
18680   irix5* | nonstopux*)
18681     libsuff= shlibsuff=
18682     ;;
18683   *)
18684     case $LD in # libtool.m4 will add one of these switches to LD
18685     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18686       libsuff= shlibsuff= libmagic=32-bit;;
18687     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18688       libsuff=32 shlibsuff=N32 libmagic=N32;;
18689     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18690       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18691     *) libsuff= shlibsuff= libmagic=never-match;;
18692     esac
18693     ;;
18694   esac
18695   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18696   shlibpath_overrides_runpath=no
18697   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18698   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18699   hardcode_into_libs=yes
18700   ;;
18701
18702 # No shared lib support for Linux oldld, aout, or coff.
18703 linux*oldld* | linux*aout* | linux*coff*)
18704   dynamic_linker=no
18705   ;;
18706
18707 # This must be Linux ELF.
18708 linux* | k*bsd*-gnu)
18709   version_type=linux
18710   need_lib_prefix=no
18711   need_version=no
18712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18713   soname_spec='${libname}${release}${shared_ext}$major'
18714   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18715   shlibpath_var=LD_LIBRARY_PATH
18716   shlibpath_overrides_runpath=no
18717   # This implies no fast_install, which is unacceptable.
18718   # Some rework will be needed to allow for fast_install
18719   # before this can be enabled.
18720   hardcode_into_libs=yes
18721
18722   # find out which ABI we are using
18723   libsuff=
18724   case "$host_cpu" in
18725   x86_64*|s390x*|powerpc64*)
18726     echo '#line 18726 "configure"' > conftest.$ac_ext
18727     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18728   (eval $ac_compile) 2>&5
18729   ac_status=$?
18730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731   (exit $ac_status); }; then
18732       case `/usr/bin/file conftest.$ac_objext` in
18733       *64-bit*)
18734         libsuff=64
18735         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18736         ;;
18737       esac
18738     fi
18739     rm -rf conftest*
18740     ;;
18741   esac
18742
18743   # Append ld.so.conf contents to the search path
18744   if test -f /etc/ld.so.conf; then
18745     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18746     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18747   fi
18748
18749   # We used to test for /lib/ld.so.1 and disable shared libraries on
18750   # powerpc, because MkLinux only supported shared libraries with the
18751   # GNU dynamic linker.  Since this was broken with cross compilers,
18752   # most powerpc-linux boxes support dynamic linking these days and
18753   # people can always --disable-shared, the test was removed, and we
18754   # assume the GNU/Linux dynamic linker is in use.
18755   dynamic_linker='GNU/Linux ld.so'
18756   ;;
18757
18758 netbsd*)
18759   version_type=sunos
18760   need_lib_prefix=no
18761   need_version=no
18762   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18763     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18764     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18765     dynamic_linker='NetBSD (a.out) ld.so'
18766   else
18767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18768     soname_spec='${libname}${release}${shared_ext}$major'
18769     dynamic_linker='NetBSD ld.elf_so'
18770   fi
18771   shlibpath_var=LD_LIBRARY_PATH
18772   shlibpath_overrides_runpath=yes
18773   hardcode_into_libs=yes
18774   ;;
18775
18776 newsos6)
18777   version_type=linux
18778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18779   shlibpath_var=LD_LIBRARY_PATH
18780   shlibpath_overrides_runpath=yes
18781   ;;
18782
18783 nto-qnx*)
18784   version_type=linux
18785   need_lib_prefix=no
18786   need_version=no
18787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18788   soname_spec='${libname}${release}${shared_ext}$major'
18789   shlibpath_var=LD_LIBRARY_PATH
18790   shlibpath_overrides_runpath=yes
18791   ;;
18792
18793 openbsd*)
18794   version_type=sunos
18795   sys_lib_dlsearch_path_spec="/usr/lib"
18796   need_lib_prefix=no
18797   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18798   case $host_os in
18799     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18800     *)                         need_version=no  ;;
18801   esac
18802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18803   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18804   shlibpath_var=LD_LIBRARY_PATH
18805   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18806     case $host_os in
18807       openbsd2.[89] | openbsd2.[89].*)
18808         shlibpath_overrides_runpath=no
18809         ;;
18810       *)
18811         shlibpath_overrides_runpath=yes
18812         ;;
18813       esac
18814   else
18815     shlibpath_overrides_runpath=yes
18816   fi
18817   ;;
18818
18819 os2*)
18820   libname_spec='$name'
18821   shrext_cmds=".dll"
18822   need_lib_prefix=no
18823   library_names_spec='$libname${shared_ext} $libname.a'
18824   dynamic_linker='OS/2 ld.exe'
18825   shlibpath_var=LIBPATH
18826   ;;
18827
18828 osf3* | osf4* | osf5*)
18829   version_type=osf
18830   need_lib_prefix=no
18831   need_version=no
18832   soname_spec='${libname}${release}${shared_ext}$major'
18833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18834   shlibpath_var=LD_LIBRARY_PATH
18835   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18836   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18837   ;;
18838
18839 rdos*)
18840   dynamic_linker=no
18841   ;;
18842
18843 solaris*)
18844   version_type=linux
18845   need_lib_prefix=no
18846   need_version=no
18847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18848   soname_spec='${libname}${release}${shared_ext}$major'
18849   shlibpath_var=LD_LIBRARY_PATH
18850   shlibpath_overrides_runpath=yes
18851   hardcode_into_libs=yes
18852   # ldd complains unless libraries are executable
18853   postinstall_cmds='chmod +x $lib'
18854   ;;
18855
18856 sunos4*)
18857   version_type=sunos
18858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18859   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18860   shlibpath_var=LD_LIBRARY_PATH
18861   shlibpath_overrides_runpath=yes
18862   if test "$with_gnu_ld" = yes; then
18863     need_lib_prefix=no
18864   fi
18865   need_version=yes
18866   ;;
18867
18868 sysv4 | sysv4.3*)
18869   version_type=linux
18870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18871   soname_spec='${libname}${release}${shared_ext}$major'
18872   shlibpath_var=LD_LIBRARY_PATH
18873   case $host_vendor in
18874     sni)
18875       shlibpath_overrides_runpath=no
18876       need_lib_prefix=no
18877       export_dynamic_flag_spec='${wl}-Blargedynsym'
18878       runpath_var=LD_RUN_PATH
18879       ;;
18880     siemens)
18881       need_lib_prefix=no
18882       ;;
18883     motorola)
18884       need_lib_prefix=no
18885       need_version=no
18886       shlibpath_overrides_runpath=no
18887       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18888       ;;
18889   esac
18890   ;;
18891
18892 sysv4*MP*)
18893   if test -d /usr/nec ;then
18894     version_type=linux
18895     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18896     soname_spec='$libname${shared_ext}.$major'
18897     shlibpath_var=LD_LIBRARY_PATH
18898   fi
18899   ;;
18900
18901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18902   version_type=freebsd-elf
18903   need_lib_prefix=no
18904   need_version=no
18905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18906   soname_spec='${libname}${release}${shared_ext}$major'
18907   shlibpath_var=LD_LIBRARY_PATH
18908   hardcode_into_libs=yes
18909   if test "$with_gnu_ld" = yes; then
18910     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18911     shlibpath_overrides_runpath=no
18912   else
18913     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18914     shlibpath_overrides_runpath=yes
18915     case $host_os in
18916       sco3.2v5*)
18917         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18918         ;;
18919     esac
18920   fi
18921   sys_lib_dlsearch_path_spec='/usr/lib'
18922   ;;
18923
18924 uts4*)
18925   version_type=linux
18926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18927   soname_spec='${libname}${release}${shared_ext}$major'
18928   shlibpath_var=LD_LIBRARY_PATH
18929   ;;
18930
18931 *)
18932   dynamic_linker=no
18933   ;;
18934 esac
18935 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18936 echo "${ECHO_T}$dynamic_linker" >&6; }
18937 test "$dynamic_linker" = no && can_build_shared=no
18938
18939 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18940 if test "$GCC" = yes; then
18941   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18942 fi
18943
18944 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18945 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18946 hardcode_action_GCJ=
18947 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18948    test -n "$runpath_var_GCJ" || \
18949    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18950
18951   # We can hardcode non-existant directories.
18952   if test "$hardcode_direct_GCJ" != no &&
18953      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18954      # have to relink, otherwise we might link with an installed library
18955      # when we should be linking with a yet-to-be-installed one
18956      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18957      test "$hardcode_minus_L_GCJ" != no; then
18958     # Linking always hardcodes the temporary library directory.
18959     hardcode_action_GCJ=relink
18960   else
18961     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18962     hardcode_action_GCJ=immediate
18963   fi
18964 else
18965   # We cannot hardcode anything, or else we can only hardcode existing
18966   # directories.
18967   hardcode_action_GCJ=unsupported
18968 fi
18969 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18970 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18971
18972 if test "$hardcode_action_GCJ" = relink; then
18973   # Fast installation is not supported
18974   enable_fast_install=no
18975 elif test "$shlibpath_overrides_runpath" = yes ||
18976      test "$enable_shared" = no; then
18977   # Fast installation is not necessary
18978   enable_fast_install=needless
18979 fi
18980
18981
18982 # The else clause should only fire when bootstrapping the
18983 # libtool distribution, otherwise you forgot to ship ltmain.sh
18984 # with your package, and you will get complaints that there are
18985 # no rules to generate ltmain.sh.
18986 if test -f "$ltmain"; then
18987   # See if we are running on zsh, and set the options which allow our commands through
18988   # without removal of \ escapes.
18989   if test -n "${ZSH_VERSION+set}" ; then
18990     setopt NO_GLOB_SUBST
18991   fi
18992   # Now quote all the things that may contain metacharacters while being
18993   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18994   # variables and quote the copies for generation of the libtool script.
18995   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18996     SED SHELL STRIP \
18997     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18998     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18999     deplibs_check_method reload_flag reload_cmds need_locks \
19000     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19001     lt_cv_sys_global_symbol_to_c_name_address \
19002     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19003     old_postinstall_cmds old_postuninstall_cmds \
19004     compiler_GCJ \
19005     CC_GCJ \
19006     LD_GCJ \
19007     lt_prog_compiler_wl_GCJ \
19008     lt_prog_compiler_pic_GCJ \
19009     lt_prog_compiler_static_GCJ \
19010     lt_prog_compiler_no_builtin_flag_GCJ \
19011     export_dynamic_flag_spec_GCJ \
19012     thread_safe_flag_spec_GCJ \
19013     whole_archive_flag_spec_GCJ \
19014     enable_shared_with_static_runtimes_GCJ \
19015     old_archive_cmds_GCJ \
19016     old_archive_from_new_cmds_GCJ \
19017     predep_objects_GCJ \
19018     postdep_objects_GCJ \
19019     predeps_GCJ \
19020     postdeps_GCJ \
19021     compiler_lib_search_path_GCJ \
19022     archive_cmds_GCJ \
19023     archive_expsym_cmds_GCJ \
19024     postinstall_cmds_GCJ \
19025     postuninstall_cmds_GCJ \
19026     old_archive_from_expsyms_cmds_GCJ \
19027     allow_undefined_flag_GCJ \
19028     no_undefined_flag_GCJ \
19029     export_symbols_cmds_GCJ \
19030     hardcode_libdir_flag_spec_GCJ \
19031     hardcode_libdir_flag_spec_ld_GCJ \
19032     hardcode_libdir_separator_GCJ \
19033     hardcode_automatic_GCJ \
19034     module_cmds_GCJ \
19035     module_expsym_cmds_GCJ \
19036     lt_cv_prog_compiler_c_o_GCJ \
19037     fix_srcfile_path_GCJ \
19038     exclude_expsyms_GCJ \
19039     include_expsyms_GCJ; do
19040
19041     case $var in
19042     old_archive_cmds_GCJ | \
19043     old_archive_from_new_cmds_GCJ | \
19044     archive_cmds_GCJ | \
19045     archive_expsym_cmds_GCJ | \
19046     module_cmds_GCJ | \
19047     module_expsym_cmds_GCJ | \
19048     old_archive_from_expsyms_cmds_GCJ | \
19049     export_symbols_cmds_GCJ | \
19050     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19051     postinstall_cmds | postuninstall_cmds | \
19052     old_postinstall_cmds | old_postuninstall_cmds | \
19053     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19054       # Double-quote double-evaled strings.
19055       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19056       ;;
19057     *)
19058       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19059       ;;
19060     esac
19061   done
19062
19063   case $lt_echo in
19064   *'\$0 --fallback-echo"')
19065     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19066     ;;
19067   esac
19068
19069 cfgfile="$ofile"
19070
19071   cat <<__EOF__ >> "$cfgfile"
19072 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19073
19074 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19075
19076 # Shell to use when invoking shell scripts.
19077 SHELL=$lt_SHELL
19078
19079 # Whether or not to build shared libraries.
19080 build_libtool_libs=$enable_shared
19081
19082 # Whether or not to build static libraries.
19083 build_old_libs=$enable_static
19084
19085 # Whether or not to add -lc for building shared libraries.
19086 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19087
19088 # Whether or not to disallow shared libs when runtime libs are static
19089 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19090
19091 # Whether or not to optimize for fast installation.
19092 fast_install=$enable_fast_install
19093
19094 # The host system.
19095 host_alias=$host_alias
19096 host=$host
19097 host_os=$host_os
19098
19099 # The build system.
19100 build_alias=$build_alias
19101 build=$build
19102 build_os=$build_os
19103
19104 # An echo program that does not interpret backslashes.
19105 echo=$lt_echo
19106
19107 # The archiver.
19108 AR=$lt_AR
19109 AR_FLAGS=$lt_AR_FLAGS
19110
19111 # A C compiler.
19112 LTCC=$lt_LTCC
19113
19114 # LTCC compiler flags.
19115 LTCFLAGS=$lt_LTCFLAGS
19116
19117 # A language-specific compiler.
19118 CC=$lt_compiler_GCJ
19119
19120 # Is the compiler the GNU C compiler?
19121 with_gcc=$GCC_GCJ
19122
19123 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19124 gcc_ver=\`gcc -dumpversion\`
19125
19126 # An ERE matcher.
19127 EGREP=$lt_EGREP
19128
19129 # The linker used to build libraries.
19130 LD=$lt_LD_GCJ
19131
19132 # Whether we need hard or soft links.
19133 LN_S=$lt_LN_S
19134
19135 # A BSD-compatible nm program.
19136 NM=$lt_NM
19137
19138 # A symbol stripping program
19139 STRIP=$lt_STRIP
19140
19141 # Used to examine libraries when file_magic_cmd begins "file"
19142 MAGIC_CMD=$MAGIC_CMD
19143
19144 # Used on cygwin: DLL creation program.
19145 DLLTOOL="$DLLTOOL"
19146
19147 # Used on cygwin: object dumper.
19148 OBJDUMP="$OBJDUMP"
19149
19150 # Used on cygwin: assembler.
19151 AS="$AS"
19152
19153 # The name of the directory that contains temporary libtool files.
19154 objdir=$objdir
19155
19156 # How to create reloadable object files.
19157 reload_flag=$lt_reload_flag
19158 reload_cmds=$lt_reload_cmds
19159
19160 # How to pass a linker flag through the compiler.
19161 wl=$lt_lt_prog_compiler_wl_GCJ
19162
19163 # Object file suffix (normally "o").
19164 objext="$ac_objext"
19165
19166 # Old archive suffix (normally "a").
19167 libext="$libext"
19168
19169 # Shared library suffix (normally ".so").
19170 shrext_cmds='$shrext_cmds'
19171
19172 # Executable file suffix (normally "").
19173 exeext="$exeext"
19174
19175 # Additional compiler flags for building library objects.
19176 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19177 pic_mode=$pic_mode
19178
19179 # What is the maximum length of a command?
19180 max_cmd_len=$lt_cv_sys_max_cmd_len
19181
19182 # Does compiler simultaneously support -c and -o options?
19183 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19184
19185 # Must we lock files when doing compilation?
19186 need_locks=$lt_need_locks
19187
19188 # Do we need the lib prefix for modules?
19189 need_lib_prefix=$need_lib_prefix
19190
19191 # Do we need a version for libraries?
19192 need_version=$need_version
19193
19194 # Whether dlopen is supported.
19195 dlopen_support=$enable_dlopen
19196
19197 # Whether dlopen of programs is supported.
19198 dlopen_self=$enable_dlopen_self
19199
19200 # Whether dlopen of statically linked programs is supported.
19201 dlopen_self_static=$enable_dlopen_self_static
19202
19203 # Compiler flag to prevent dynamic linking.
19204 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19205
19206 # Compiler flag to turn off builtin functions.
19207 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19208
19209 # Compiler flag to allow reflexive dlopens.
19210 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19211
19212 # Compiler flag to generate shared objects directly from archives.
19213 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19214
19215 # Compiler flag to generate thread-safe objects.
19216 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19217
19218 # Library versioning type.
19219 version_type=$version_type
19220
19221 # Format of library name prefix.
19222 libname_spec=$lt_libname_spec
19223
19224 # List of archive names.  First name is the real one, the rest are links.
19225 # The last name is the one that the linker finds with -lNAME.
19226 library_names_spec=$lt_library_names_spec
19227
19228 # The coded name of the library, if different from the real name.
19229 soname_spec=$lt_soname_spec
19230
19231 # Commands used to build and install an old-style archive.
19232 RANLIB=$lt_RANLIB
19233 old_archive_cmds=$lt_old_archive_cmds_GCJ
19234 old_postinstall_cmds=$lt_old_postinstall_cmds
19235 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19236
19237 # Create an old-style archive from a shared archive.
19238 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19239
19240 # Create a temporary old-style archive to link instead of a shared archive.
19241 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19242
19243 # Commands used to build and install a shared archive.
19244 archive_cmds=$lt_archive_cmds_GCJ
19245 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19246 postinstall_cmds=$lt_postinstall_cmds
19247 postuninstall_cmds=$lt_postuninstall_cmds
19248
19249 # Commands used to build a loadable module (assumed same as above if empty)
19250 module_cmds=$lt_module_cmds_GCJ
19251 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19252
19253 # Commands to strip libraries.
19254 old_striplib=$lt_old_striplib
19255 striplib=$lt_striplib
19256
19257 # Dependencies to place before the objects being linked to create a
19258 # shared library.
19259 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19260
19261 # Dependencies to place after the objects being linked to create a
19262 # shared library.
19263 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19264
19265 # Dependencies to place before the objects being linked to create a
19266 # shared library.
19267 predeps=$lt_predeps_GCJ
19268
19269 # Dependencies to place after the objects being linked to create a
19270 # shared library.
19271 postdeps=$lt_postdeps_GCJ
19272
19273 # The library search path used internally by the compiler when linking
19274 # a shared library.
19275 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19276
19277 # Method to check whether dependent libraries are shared objects.
19278 deplibs_check_method=$lt_deplibs_check_method
19279
19280 # Command to use when deplibs_check_method == file_magic.
19281 file_magic_cmd=$lt_file_magic_cmd
19282
19283 # Flag that allows shared libraries with undefined symbols to be built.
19284 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19285
19286 # Flag that forces no undefined symbols.
19287 no_undefined_flag=$lt_no_undefined_flag_GCJ
19288
19289 # Commands used to finish a libtool library installation in a directory.
19290 finish_cmds=$lt_finish_cmds
19291
19292 # Same as above, but a single script fragment to be evaled but not shown.
19293 finish_eval=$lt_finish_eval
19294
19295 # Take the output of nm and produce a listing of raw symbols and C names.
19296 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19297
19298 # Transform the output of nm in a proper C declaration
19299 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19300
19301 # Transform the output of nm in a C name address pair
19302 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19303
19304 # This is the shared library runtime path variable.
19305 runpath_var=$runpath_var
19306
19307 # This is the shared library path variable.
19308 shlibpath_var=$shlibpath_var
19309
19310 # Is shlibpath searched before the hard-coded library search path?
19311 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19312
19313 # How to hardcode a shared library path into an executable.
19314 hardcode_action=$hardcode_action_GCJ
19315
19316 # Whether we should hardcode library paths into libraries.
19317 hardcode_into_libs=$hardcode_into_libs
19318
19319 # Flag to hardcode \$libdir into a binary during linking.
19320 # This must work even if \$libdir does not exist.
19321 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19322
19323 # If ld is used when linking, flag to hardcode \$libdir into
19324 # a binary during linking. This must work even if \$libdir does
19325 # not exist.
19326 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19327
19328 # Whether we need a single -rpath flag with a separated argument.
19329 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19330
19331 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19332 # resulting binary.
19333 hardcode_direct=$hardcode_direct_GCJ
19334
19335 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19336 # resulting binary.
19337 hardcode_minus_L=$hardcode_minus_L_GCJ
19338
19339 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19340 # the resulting binary.
19341 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19342
19343 # Set to yes if building a shared library automatically hardcodes DIR into the library
19344 # and all subsequent libraries and executables linked against it.
19345 hardcode_automatic=$hardcode_automatic_GCJ
19346
19347 # Variables whose values should be saved in libtool wrapper scripts and
19348 # restored at relink time.
19349 variables_saved_for_relink="$variables_saved_for_relink"
19350
19351 # Whether libtool must link a program against all its dependency libraries.
19352 link_all_deplibs=$link_all_deplibs_GCJ
19353
19354 # Compile-time system search path for libraries
19355 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19356
19357 # Run-time system search path for libraries
19358 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19359
19360 # Fix the shell variable \$srcfile for the compiler.
19361 fix_srcfile_path=$lt_fix_srcfile_path
19362
19363 # Set to yes if exported symbols are required.
19364 always_export_symbols=$always_export_symbols_GCJ
19365
19366 # The commands to list exported symbols.
19367 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19368
19369 # The commands to extract the exported symbol list from a shared archive.
19370 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19371
19372 # Symbols that should not be listed in the preloaded symbols.
19373 exclude_expsyms=$lt_exclude_expsyms_GCJ
19374
19375 # Symbols that must always be exported.
19376 include_expsyms=$lt_include_expsyms_GCJ
19377
19378 # ### END LIBTOOL TAG CONFIG: $tagname
19379
19380 __EOF__
19381
19382
19383 else
19384   # If there is no Makefile yet, we rely on a make rule to execute
19385   # `config.status --recheck' to rerun these tests and create the
19386   # libtool script then.
19387   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19388   if test -f "$ltmain_in"; then
19389     test -f Makefile && make "$ltmain"
19390   fi
19391 fi
19392
19393
19394 ac_ext=c
19395 ac_cpp='$CPP $CPPFLAGS'
19396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19399
19400 CC="$lt_save_CC"
19401
19402         else
19403           tagname=""
19404         fi
19405         ;;
19406
19407       RC)
19408
19409
19410 # Source file extension for RC test sources.
19411 ac_ext=rc
19412
19413 # Object file extension for compiled RC test sources.
19414 objext=o
19415 objext_RC=$objext
19416
19417 # Code to be used in simple compile tests
19418 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19419
19420 # Code to be used in simple link tests
19421 lt_simple_link_test_code="$lt_simple_compile_test_code"
19422
19423 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19424
19425 # If no C compiler was specified, use CC.
19426 LTCC=${LTCC-"$CC"}
19427
19428 # If no C compiler flags were specified, use CFLAGS.
19429 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19430
19431 # Allow CC to be a program name with arguments.
19432 compiler=$CC
19433
19434
19435 # save warnings/boilerplate of simple test code
19436 ac_outfile=conftest.$ac_objext
19437 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19438 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19439 _lt_compiler_boilerplate=`cat conftest.err`
19440 $rm conftest*
19441
19442 ac_outfile=conftest.$ac_objext
19443 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19444 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19445 _lt_linker_boilerplate=`cat conftest.err`
19446 $rm conftest*
19447
19448
19449 # Allow CC to be a program name with arguments.
19450 lt_save_CC="$CC"
19451 CC=${RC-"windres"}
19452 compiler=$CC
19453 compiler_RC=$CC
19454 for cc_temp in $compiler""; do
19455   case $cc_temp in
19456     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19457     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19458     \-*) ;;
19459     *) break;;
19460   esac
19461 done
19462 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19463
19464 lt_cv_prog_compiler_c_o_RC=yes
19465
19466 # The else clause should only fire when bootstrapping the
19467 # libtool distribution, otherwise you forgot to ship ltmain.sh
19468 # with your package, and you will get complaints that there are
19469 # no rules to generate ltmain.sh.
19470 if test -f "$ltmain"; then
19471   # See if we are running on zsh, and set the options which allow our commands through
19472   # without removal of \ escapes.
19473   if test -n "${ZSH_VERSION+set}" ; then
19474     setopt NO_GLOB_SUBST
19475   fi
19476   # Now quote all the things that may contain metacharacters while being
19477   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19478   # variables and quote the copies for generation of the libtool script.
19479   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19480     SED SHELL STRIP \
19481     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19482     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19483     deplibs_check_method reload_flag reload_cmds need_locks \
19484     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19485     lt_cv_sys_global_symbol_to_c_name_address \
19486     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19487     old_postinstall_cmds old_postuninstall_cmds \
19488     compiler_RC \
19489     CC_RC \
19490     LD_RC \
19491     lt_prog_compiler_wl_RC \
19492     lt_prog_compiler_pic_RC \
19493     lt_prog_compiler_static_RC \
19494     lt_prog_compiler_no_builtin_flag_RC \
19495     export_dynamic_flag_spec_RC \
19496     thread_safe_flag_spec_RC \
19497     whole_archive_flag_spec_RC \
19498     enable_shared_with_static_runtimes_RC \
19499     old_archive_cmds_RC \
19500     old_archive_from_new_cmds_RC \
19501     predep_objects_RC \
19502     postdep_objects_RC \
19503     predeps_RC \
19504     postdeps_RC \
19505     compiler_lib_search_path_RC \
19506     archive_cmds_RC \
19507     archive_expsym_cmds_RC \
19508     postinstall_cmds_RC \
19509     postuninstall_cmds_RC \
19510     old_archive_from_expsyms_cmds_RC \
19511     allow_undefined_flag_RC \
19512     no_undefined_flag_RC \
19513     export_symbols_cmds_RC \
19514     hardcode_libdir_flag_spec_RC \
19515     hardcode_libdir_flag_spec_ld_RC \
19516     hardcode_libdir_separator_RC \
19517     hardcode_automatic_RC \
19518     module_cmds_RC \
19519     module_expsym_cmds_RC \
19520     lt_cv_prog_compiler_c_o_RC \
19521     fix_srcfile_path_RC \
19522     exclude_expsyms_RC \
19523     include_expsyms_RC; do
19524
19525     case $var in
19526     old_archive_cmds_RC | \
19527     old_archive_from_new_cmds_RC | \
19528     archive_cmds_RC | \
19529     archive_expsym_cmds_RC | \
19530     module_cmds_RC | \
19531     module_expsym_cmds_RC | \
19532     old_archive_from_expsyms_cmds_RC | \
19533     export_symbols_cmds_RC | \
19534     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19535     postinstall_cmds | postuninstall_cmds | \
19536     old_postinstall_cmds | old_postuninstall_cmds | \
19537     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19538       # Double-quote double-evaled strings.
19539       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19540       ;;
19541     *)
19542       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19543       ;;
19544     esac
19545   done
19546
19547   case $lt_echo in
19548   *'\$0 --fallback-echo"')
19549     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19550     ;;
19551   esac
19552
19553 cfgfile="$ofile"
19554
19555   cat <<__EOF__ >> "$cfgfile"
19556 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19557
19558 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19559
19560 # Shell to use when invoking shell scripts.
19561 SHELL=$lt_SHELL
19562
19563 # Whether or not to build shared libraries.
19564 build_libtool_libs=$enable_shared
19565
19566 # Whether or not to build static libraries.
19567 build_old_libs=$enable_static
19568
19569 # Whether or not to add -lc for building shared libraries.
19570 build_libtool_need_lc=$archive_cmds_need_lc_RC
19571
19572 # Whether or not to disallow shared libs when runtime libs are static
19573 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19574
19575 # Whether or not to optimize for fast installation.
19576 fast_install=$enable_fast_install
19577
19578 # The host system.
19579 host_alias=$host_alias
19580 host=$host
19581 host_os=$host_os
19582
19583 # The build system.
19584 build_alias=$build_alias
19585 build=$build
19586 build_os=$build_os
19587
19588 # An echo program that does not interpret backslashes.
19589 echo=$lt_echo
19590
19591 # The archiver.
19592 AR=$lt_AR
19593 AR_FLAGS=$lt_AR_FLAGS
19594
19595 # A C compiler.
19596 LTCC=$lt_LTCC
19597
19598 # LTCC compiler flags.
19599 LTCFLAGS=$lt_LTCFLAGS
19600
19601 # A language-specific compiler.
19602 CC=$lt_compiler_RC
19603
19604 # Is the compiler the GNU C compiler?
19605 with_gcc=$GCC_RC
19606
19607 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19608 gcc_ver=\`gcc -dumpversion\`
19609
19610 # An ERE matcher.
19611 EGREP=$lt_EGREP
19612
19613 # The linker used to build libraries.
19614 LD=$lt_LD_RC
19615
19616 # Whether we need hard or soft links.
19617 LN_S=$lt_LN_S
19618
19619 # A BSD-compatible nm program.
19620 NM=$lt_NM
19621
19622 # A symbol stripping program
19623 STRIP=$lt_STRIP
19624
19625 # Used to examine libraries when file_magic_cmd begins "file"
19626 MAGIC_CMD=$MAGIC_CMD
19627
19628 # Used on cygwin: DLL creation program.
19629 DLLTOOL="$DLLTOOL"
19630
19631 # Used on cygwin: object dumper.
19632 OBJDUMP="$OBJDUMP"
19633
19634 # Used on cygwin: assembler.
19635 AS="$AS"
19636
19637 # The name of the directory that contains temporary libtool files.
19638 objdir=$objdir
19639
19640 # How to create reloadable object files.
19641 reload_flag=$lt_reload_flag
19642 reload_cmds=$lt_reload_cmds
19643
19644 # How to pass a linker flag through the compiler.
19645 wl=$lt_lt_prog_compiler_wl_RC
19646
19647 # Object file suffix (normally "o").
19648 objext="$ac_objext"
19649
19650 # Old archive suffix (normally "a").
19651 libext="$libext"
19652
19653 # Shared library suffix (normally ".so").
19654 shrext_cmds='$shrext_cmds'
19655
19656 # Executable file suffix (normally "").
19657 exeext="$exeext"
19658
19659 # Additional compiler flags for building library objects.
19660 pic_flag=$lt_lt_prog_compiler_pic_RC
19661 pic_mode=$pic_mode
19662
19663 # What is the maximum length of a command?
19664 max_cmd_len=$lt_cv_sys_max_cmd_len
19665
19666 # Does compiler simultaneously support -c and -o options?
19667 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19668
19669 # Must we lock files when doing compilation?
19670 need_locks=$lt_need_locks
19671
19672 # Do we need the lib prefix for modules?
19673 need_lib_prefix=$need_lib_prefix
19674
19675 # Do we need a version for libraries?
19676 need_version=$need_version
19677
19678 # Whether dlopen is supported.
19679 dlopen_support=$enable_dlopen
19680
19681 # Whether dlopen of programs is supported.
19682 dlopen_self=$enable_dlopen_self
19683
19684 # Whether dlopen of statically linked programs is supported.
19685 dlopen_self_static=$enable_dlopen_self_static
19686
19687 # Compiler flag to prevent dynamic linking.
19688 link_static_flag=$lt_lt_prog_compiler_static_RC
19689
19690 # Compiler flag to turn off builtin functions.
19691 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19692
19693 # Compiler flag to allow reflexive dlopens.
19694 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19695
19696 # Compiler flag to generate shared objects directly from archives.
19697 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19698
19699 # Compiler flag to generate thread-safe objects.
19700 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19701
19702 # Library versioning type.
19703 version_type=$version_type
19704
19705 # Format of library name prefix.
19706 libname_spec=$lt_libname_spec
19707
19708 # List of archive names.  First name is the real one, the rest are links.
19709 # The last name is the one that the linker finds with -lNAME.
19710 library_names_spec=$lt_library_names_spec
19711
19712 # The coded name of the library, if different from the real name.
19713 soname_spec=$lt_soname_spec
19714
19715 # Commands used to build and install an old-style archive.
19716 RANLIB=$lt_RANLIB
19717 old_archive_cmds=$lt_old_archive_cmds_RC
19718 old_postinstall_cmds=$lt_old_postinstall_cmds
19719 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19720
19721 # Create an old-style archive from a shared archive.
19722 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19723
19724 # Create a temporary old-style archive to link instead of a shared archive.
19725 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19726
19727 # Commands used to build and install a shared archive.
19728 archive_cmds=$lt_archive_cmds_RC
19729 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19730 postinstall_cmds=$lt_postinstall_cmds
19731 postuninstall_cmds=$lt_postuninstall_cmds
19732
19733 # Commands used to build a loadable module (assumed same as above if empty)
19734 module_cmds=$lt_module_cmds_RC
19735 module_expsym_cmds=$lt_module_expsym_cmds_RC
19736
19737 # Commands to strip libraries.
19738 old_striplib=$lt_old_striplib
19739 striplib=$lt_striplib
19740
19741 # Dependencies to place before the objects being linked to create a
19742 # shared library.
19743 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19744
19745 # Dependencies to place after the objects being linked to create a
19746 # shared library.
19747 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19748
19749 # Dependencies to place before the objects being linked to create a
19750 # shared library.
19751 predeps=$lt_predeps_RC
19752
19753 # Dependencies to place after the objects being linked to create a
19754 # shared library.
19755 postdeps=$lt_postdeps_RC
19756
19757 # The library search path used internally by the compiler when linking
19758 # a shared library.
19759 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19760
19761 # Method to check whether dependent libraries are shared objects.
19762 deplibs_check_method=$lt_deplibs_check_method
19763
19764 # Command to use when deplibs_check_method == file_magic.
19765 file_magic_cmd=$lt_file_magic_cmd
19766
19767 # Flag that allows shared libraries with undefined symbols to be built.
19768 allow_undefined_flag=$lt_allow_undefined_flag_RC
19769
19770 # Flag that forces no undefined symbols.
19771 no_undefined_flag=$lt_no_undefined_flag_RC
19772
19773 # Commands used to finish a libtool library installation in a directory.
19774 finish_cmds=$lt_finish_cmds
19775
19776 # Same as above, but a single script fragment to be evaled but not shown.
19777 finish_eval=$lt_finish_eval
19778
19779 # Take the output of nm and produce a listing of raw symbols and C names.
19780 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19781
19782 # Transform the output of nm in a proper C declaration
19783 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19784
19785 # Transform the output of nm in a C name address pair
19786 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19787
19788 # This is the shared library runtime path variable.
19789 runpath_var=$runpath_var
19790
19791 # This is the shared library path variable.
19792 shlibpath_var=$shlibpath_var
19793
19794 # Is shlibpath searched before the hard-coded library search path?
19795 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19796
19797 # How to hardcode a shared library path into an executable.
19798 hardcode_action=$hardcode_action_RC
19799
19800 # Whether we should hardcode library paths into libraries.
19801 hardcode_into_libs=$hardcode_into_libs
19802
19803 # Flag to hardcode \$libdir into a binary during linking.
19804 # This must work even if \$libdir does not exist.
19805 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19806
19807 # If ld is used when linking, flag to hardcode \$libdir into
19808 # a binary during linking. This must work even if \$libdir does
19809 # not exist.
19810 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19811
19812 # Whether we need a single -rpath flag with a separated argument.
19813 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19814
19815 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19816 # resulting binary.
19817 hardcode_direct=$hardcode_direct_RC
19818
19819 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19820 # resulting binary.
19821 hardcode_minus_L=$hardcode_minus_L_RC
19822
19823 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19824 # the resulting binary.
19825 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19826
19827 # Set to yes if building a shared library automatically hardcodes DIR into the library
19828 # and all subsequent libraries and executables linked against it.
19829 hardcode_automatic=$hardcode_automatic_RC
19830
19831 # Variables whose values should be saved in libtool wrapper scripts and
19832 # restored at relink time.
19833 variables_saved_for_relink="$variables_saved_for_relink"
19834
19835 # Whether libtool must link a program against all its dependency libraries.
19836 link_all_deplibs=$link_all_deplibs_RC
19837
19838 # Compile-time system search path for libraries
19839 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19840
19841 # Run-time system search path for libraries
19842 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19843
19844 # Fix the shell variable \$srcfile for the compiler.
19845 fix_srcfile_path=$lt_fix_srcfile_path
19846
19847 # Set to yes if exported symbols are required.
19848 always_export_symbols=$always_export_symbols_RC
19849
19850 # The commands to list exported symbols.
19851 export_symbols_cmds=$lt_export_symbols_cmds_RC
19852
19853 # The commands to extract the exported symbol list from a shared archive.
19854 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19855
19856 # Symbols that should not be listed in the preloaded symbols.
19857 exclude_expsyms=$lt_exclude_expsyms_RC
19858
19859 # Symbols that must always be exported.
19860 include_expsyms=$lt_include_expsyms_RC
19861
19862 # ### END LIBTOOL TAG CONFIG: $tagname
19863
19864 __EOF__
19865
19866
19867 else
19868   # If there is no Makefile yet, we rely on a make rule to execute
19869   # `config.status --recheck' to rerun these tests and create the
19870   # libtool script then.
19871   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19872   if test -f "$ltmain_in"; then
19873     test -f Makefile && make "$ltmain"
19874   fi
19875 fi
19876
19877
19878 ac_ext=c
19879 ac_cpp='$CPP $CPPFLAGS'
19880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19883
19884 CC="$lt_save_CC"
19885
19886         ;;
19887
19888       *)
19889         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19890 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19891    { (exit 1); exit 1; }; }
19892         ;;
19893       esac
19894
19895       # Append the new tag name to the list of available tags.
19896       if test -n "$tagname" ; then
19897       available_tags="$available_tags $tagname"
19898     fi
19899     fi
19900   done
19901   IFS="$lt_save_ifs"
19902
19903   # Now substitute the updated list of available tags.
19904   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19905     mv "${ofile}T" "$ofile"
19906     chmod +x "$ofile"
19907   else
19908     rm -f "${ofile}T"
19909     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19910 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19911    { (exit 1); exit 1; }; }
19912   fi
19913 fi
19914
19915
19916
19917 # This can be used to rebuild libtool when needed
19918 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19919
19920 # Always use our own libtool.
19921 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19922
19923 # Prevent multiple expansion
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945 ac_ext=c
19946 ac_cpp='$CPP $CPPFLAGS'
19947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19950
19951
19952 ac_ext=c
19953 ac_cpp='$CPP $CPPFLAGS'
19954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19957 if test -n "$ac_tool_prefix"; then
19958   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19959 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19962 if test "${ac_cv_prog_CC+set}" = set; then
19963   echo $ECHO_N "(cached) $ECHO_C" >&6
19964 else
19965   if test -n "$CC"; then
19966   ac_cv_prog_CC="$CC" # Let the user override the test.
19967 else
19968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19969 for as_dir in $PATH
19970 do
19971   IFS=$as_save_IFS
19972   test -z "$as_dir" && as_dir=.
19973   for ac_exec_ext in '' $ac_executable_extensions; do
19974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19975     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19977     break 2
19978   fi
19979 done
19980 done
19981 IFS=$as_save_IFS
19982
19983 fi
19984 fi
19985 CC=$ac_cv_prog_CC
19986 if test -n "$CC"; then
19987   { echo "$as_me:$LINENO: result: $CC" >&5
19988 echo "${ECHO_T}$CC" >&6; }
19989 else
19990   { echo "$as_me:$LINENO: result: no" >&5
19991 echo "${ECHO_T}no" >&6; }
19992 fi
19993
19994
19995 fi
19996 if test -z "$ac_cv_prog_CC"; then
19997   ac_ct_CC=$CC
19998   # Extract the first word of "gcc", so it can be a program name with args.
19999 set dummy gcc; ac_word=$2
20000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20003   echo $ECHO_N "(cached) $ECHO_C" >&6
20004 else
20005   if test -n "$ac_ct_CC"; then
20006   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20007 else
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   for ac_exec_ext in '' $ac_executable_extensions; do
20014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20015     ac_cv_prog_ac_ct_CC="gcc"
20016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20017     break 2
20018   fi
20019 done
20020 done
20021 IFS=$as_save_IFS
20022
20023 fi
20024 fi
20025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20026 if test -n "$ac_ct_CC"; then
20027   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20028 echo "${ECHO_T}$ac_ct_CC" >&6; }
20029 else
20030   { echo "$as_me:$LINENO: result: no" >&5
20031 echo "${ECHO_T}no" >&6; }
20032 fi
20033
20034   if test "x$ac_ct_CC" = x; then
20035     CC=""
20036   else
20037     case $cross_compiling:$ac_tool_warned in
20038 yes:)
20039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20040 whose name does not start with the host triplet.  If you think this
20041 configuration is useful to you, please write to autoconf@gnu.org." >&5
20042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20043 whose name does not start with the host triplet.  If you think this
20044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20045 ac_tool_warned=yes ;;
20046 esac
20047     CC=$ac_ct_CC
20048   fi
20049 else
20050   CC="$ac_cv_prog_CC"
20051 fi
20052
20053 if test -z "$CC"; then
20054           if test -n "$ac_tool_prefix"; then
20055     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20056 set dummy ${ac_tool_prefix}cc; ac_word=$2
20057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20059 if test "${ac_cv_prog_CC+set}" = set; then
20060   echo $ECHO_N "(cached) $ECHO_C" >&6
20061 else
20062   if test -n "$CC"; then
20063   ac_cv_prog_CC="$CC" # Let the user override the test.
20064 else
20065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20066 for as_dir in $PATH
20067 do
20068   IFS=$as_save_IFS
20069   test -z "$as_dir" && as_dir=.
20070   for ac_exec_ext in '' $ac_executable_extensions; do
20071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20072     ac_cv_prog_CC="${ac_tool_prefix}cc"
20073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20074     break 2
20075   fi
20076 done
20077 done
20078 IFS=$as_save_IFS
20079
20080 fi
20081 fi
20082 CC=$ac_cv_prog_CC
20083 if test -n "$CC"; then
20084   { echo "$as_me:$LINENO: result: $CC" >&5
20085 echo "${ECHO_T}$CC" >&6; }
20086 else
20087   { echo "$as_me:$LINENO: result: no" >&5
20088 echo "${ECHO_T}no" >&6; }
20089 fi
20090
20091
20092   fi
20093 fi
20094 if test -z "$CC"; then
20095   # Extract the first word of "cc", so it can be a program name with args.
20096 set dummy cc; ac_word=$2
20097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20099 if test "${ac_cv_prog_CC+set}" = set; then
20100   echo $ECHO_N "(cached) $ECHO_C" >&6
20101 else
20102   if test -n "$CC"; then
20103   ac_cv_prog_CC="$CC" # Let the user override the test.
20104 else
20105   ac_prog_rejected=no
20106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20107 for as_dir in $PATH
20108 do
20109   IFS=$as_save_IFS
20110   test -z "$as_dir" && as_dir=.
20111   for ac_exec_ext in '' $ac_executable_extensions; do
20112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20113     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20114        ac_prog_rejected=yes
20115        continue
20116      fi
20117     ac_cv_prog_CC="cc"
20118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20119     break 2
20120   fi
20121 done
20122 done
20123 IFS=$as_save_IFS
20124
20125 if test $ac_prog_rejected = yes; then
20126   # We found a bogon in the path, so make sure we never use it.
20127   set dummy $ac_cv_prog_CC
20128   shift
20129   if test $# != 0; then
20130     # We chose a different compiler from the bogus one.
20131     # However, it has the same basename, so the bogon will be chosen
20132     # first if we set CC to just the basename; use the full file name.
20133     shift
20134     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20135   fi
20136 fi
20137 fi
20138 fi
20139 CC=$ac_cv_prog_CC
20140 if test -n "$CC"; then
20141   { echo "$as_me:$LINENO: result: $CC" >&5
20142 echo "${ECHO_T}$CC" >&6; }
20143 else
20144   { echo "$as_me:$LINENO: result: no" >&5
20145 echo "${ECHO_T}no" >&6; }
20146 fi
20147
20148
20149 fi
20150 if test -z "$CC"; then
20151   if test -n "$ac_tool_prefix"; then
20152   for ac_prog in cl.exe
20153   do
20154     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20158 if test "${ac_cv_prog_CC+set}" = set; then
20159   echo $ECHO_N "(cached) $ECHO_C" >&6
20160 else
20161   if test -n "$CC"; then
20162   ac_cv_prog_CC="$CC" # Let the user override the test.
20163 else
20164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20165 for as_dir in $PATH
20166 do
20167   IFS=$as_save_IFS
20168   test -z "$as_dir" && as_dir=.
20169   for ac_exec_ext in '' $ac_executable_extensions; do
20170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20171     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20173     break 2
20174   fi
20175 done
20176 done
20177 IFS=$as_save_IFS
20178
20179 fi
20180 fi
20181 CC=$ac_cv_prog_CC
20182 if test -n "$CC"; then
20183   { echo "$as_me:$LINENO: result: $CC" >&5
20184 echo "${ECHO_T}$CC" >&6; }
20185 else
20186   { echo "$as_me:$LINENO: result: no" >&5
20187 echo "${ECHO_T}no" >&6; }
20188 fi
20189
20190
20191     test -n "$CC" && break
20192   done
20193 fi
20194 if test -z "$CC"; then
20195   ac_ct_CC=$CC
20196   for ac_prog in cl.exe
20197 do
20198   # Extract the first word of "$ac_prog", so it can be a program name with args.
20199 set dummy $ac_prog; ac_word=$2
20200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20203   echo $ECHO_N "(cached) $ECHO_C" >&6
20204 else
20205   if test -n "$ac_ct_CC"; then
20206   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20207 else
20208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20209 for as_dir in $PATH
20210 do
20211   IFS=$as_save_IFS
20212   test -z "$as_dir" && as_dir=.
20213   for ac_exec_ext in '' $ac_executable_extensions; do
20214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20215     ac_cv_prog_ac_ct_CC="$ac_prog"
20216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20217     break 2
20218   fi
20219 done
20220 done
20221 IFS=$as_save_IFS
20222
20223 fi
20224 fi
20225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20226 if test -n "$ac_ct_CC"; then
20227   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20228 echo "${ECHO_T}$ac_ct_CC" >&6; }
20229 else
20230   { echo "$as_me:$LINENO: result: no" >&5
20231 echo "${ECHO_T}no" >&6; }
20232 fi
20233
20234
20235   test -n "$ac_ct_CC" && break
20236 done
20237
20238   if test "x$ac_ct_CC" = x; then
20239     CC=""
20240   else
20241     case $cross_compiling:$ac_tool_warned in
20242 yes:)
20243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20244 whose name does not start with the host triplet.  If you think this
20245 configuration is useful to you, please write to autoconf@gnu.org." >&5
20246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20247 whose name does not start with the host triplet.  If you think this
20248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20249 ac_tool_warned=yes ;;
20250 esac
20251     CC=$ac_ct_CC
20252   fi
20253 fi
20254
20255 fi
20256
20257
20258 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20259 See \`config.log' for more details." >&5
20260 echo "$as_me: error: no acceptable C compiler found in \$PATH
20261 See \`config.log' for more details." >&2;}
20262    { (exit 1); exit 1; }; }
20263
20264 # Provide some information about the compiler.
20265 echo "$as_me:$LINENO: checking for C compiler version" >&5
20266 ac_compiler=`set X $ac_compile; echo $2`
20267 { (ac_try="$ac_compiler --version >&5"
20268 case "(($ac_try" in
20269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270   *) ac_try_echo=$ac_try;;
20271 esac
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273   (eval "$ac_compiler --version >&5") 2>&5
20274   ac_status=$?
20275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); }
20277 { (ac_try="$ac_compiler -v >&5"
20278 case "(($ac_try" in
20279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280   *) ac_try_echo=$ac_try;;
20281 esac
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283   (eval "$ac_compiler -v >&5") 2>&5
20284   ac_status=$?
20285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286   (exit $ac_status); }
20287 { (ac_try="$ac_compiler -V >&5"
20288 case "(($ac_try" in
20289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290   *) ac_try_echo=$ac_try;;
20291 esac
20292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293   (eval "$ac_compiler -V >&5") 2>&5
20294   ac_status=$?
20295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296   (exit $ac_status); }
20297
20298 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20299 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20300 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20301   echo $ECHO_N "(cached) $ECHO_C" >&6
20302 else
20303   cat >conftest.$ac_ext <<_ACEOF
20304 /* confdefs.h.  */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h.  */
20309
20310 int
20311 main ()
20312 {
20313 #ifndef __GNUC__
20314        choke me
20315 #endif
20316
20317   ;
20318   return 0;
20319 }
20320 _ACEOF
20321 rm -f conftest.$ac_objext
20322 if { (ac_try="$ac_compile"
20323 case "(($ac_try" in
20324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20325   *) ac_try_echo=$ac_try;;
20326 esac
20327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20328   (eval "$ac_compile") 2>conftest.er1
20329   ac_status=$?
20330   grep -v '^ *+' conftest.er1 >conftest.err
20331   rm -f conftest.er1
20332   cat conftest.err >&5
20333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334   (exit $ac_status); } &&
20335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20336   { (case "(($ac_try" in
20337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338   *) ac_try_echo=$ac_try;;
20339 esac
20340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341   (eval "$ac_try") 2>&5
20342   ac_status=$?
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); }; } &&
20345          { ac_try='test -s conftest.$ac_objext'
20346   { (case "(($ac_try" in
20347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348   *) ac_try_echo=$ac_try;;
20349 esac
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351   (eval "$ac_try") 2>&5
20352   ac_status=$?
20353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354   (exit $ac_status); }; }; then
20355   ac_compiler_gnu=yes
20356 else
20357   echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20359
20360         ac_compiler_gnu=no
20361 fi
20362
20363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20364 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20365
20366 fi
20367 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20368 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20369 GCC=`test $ac_compiler_gnu = yes && echo yes`
20370 ac_test_CFLAGS=${CFLAGS+set}
20371 ac_save_CFLAGS=$CFLAGS
20372 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20373 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20374 if test "${ac_cv_prog_cc_g+set}" = set; then
20375   echo $ECHO_N "(cached) $ECHO_C" >&6
20376 else
20377   ac_save_c_werror_flag=$ac_c_werror_flag
20378    ac_c_werror_flag=yes
20379    ac_cv_prog_cc_g=no
20380    CFLAGS="-g"
20381    cat >conftest.$ac_ext <<_ACEOF
20382 /* confdefs.h.  */
20383 _ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h.  */
20387
20388 int
20389 main ()
20390 {
20391
20392   ;
20393   return 0;
20394 }
20395 _ACEOF
20396 rm -f conftest.$ac_objext
20397 if { (ac_try="$ac_compile"
20398 case "(($ac_try" in
20399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400   *) ac_try_echo=$ac_try;;
20401 esac
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403   (eval "$ac_compile") 2>conftest.er1
20404   ac_status=$?
20405   grep -v '^ *+' conftest.er1 >conftest.err
20406   rm -f conftest.er1
20407   cat conftest.err >&5
20408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409   (exit $ac_status); } &&
20410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20411   { (case "(($ac_try" in
20412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413   *) ac_try_echo=$ac_try;;
20414 esac
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416   (eval "$ac_try") 2>&5
20417   ac_status=$?
20418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419   (exit $ac_status); }; } &&
20420          { ac_try='test -s conftest.$ac_objext'
20421   { (case "(($ac_try" in
20422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423   *) ac_try_echo=$ac_try;;
20424 esac
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426   (eval "$ac_try") 2>&5
20427   ac_status=$?
20428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429   (exit $ac_status); }; }; then
20430   ac_cv_prog_cc_g=yes
20431 else
20432   echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20434
20435         CFLAGS=""
20436       cat >conftest.$ac_ext <<_ACEOF
20437 /* confdefs.h.  */
20438 _ACEOF
20439 cat confdefs.h >>conftest.$ac_ext
20440 cat >>conftest.$ac_ext <<_ACEOF
20441 /* end confdefs.h.  */
20442
20443 int
20444 main ()
20445 {
20446
20447   ;
20448   return 0;
20449 }
20450 _ACEOF
20451 rm -f conftest.$ac_objext
20452 if { (ac_try="$ac_compile"
20453 case "(($ac_try" in
20454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455   *) ac_try_echo=$ac_try;;
20456 esac
20457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458   (eval "$ac_compile") 2>conftest.er1
20459   ac_status=$?
20460   grep -v '^ *+' conftest.er1 >conftest.err
20461   rm -f conftest.er1
20462   cat conftest.err >&5
20463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464   (exit $ac_status); } &&
20465          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20466   { (case "(($ac_try" in
20467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468   *) ac_try_echo=$ac_try;;
20469 esac
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471   (eval "$ac_try") 2>&5
20472   ac_status=$?
20473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474   (exit $ac_status); }; } &&
20475          { ac_try='test -s conftest.$ac_objext'
20476   { (case "(($ac_try" in
20477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478   *) ac_try_echo=$ac_try;;
20479 esac
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481   (eval "$ac_try") 2>&5
20482   ac_status=$?
20483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484   (exit $ac_status); }; }; then
20485   :
20486 else
20487   echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20489
20490         ac_c_werror_flag=$ac_save_c_werror_flag
20491          CFLAGS="-g"
20492          cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h.  */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h.  */
20498
20499 int
20500 main ()
20501 {
20502
20503   ;
20504   return 0;
20505 }
20506 _ACEOF
20507 rm -f conftest.$ac_objext
20508 if { (ac_try="$ac_compile"
20509 case "(($ac_try" in
20510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511   *) ac_try_echo=$ac_try;;
20512 esac
20513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514   (eval "$ac_compile") 2>conftest.er1
20515   ac_status=$?
20516   grep -v '^ *+' conftest.er1 >conftest.err
20517   rm -f conftest.er1
20518   cat conftest.err >&5
20519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520   (exit $ac_status); } &&
20521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20522   { (case "(($ac_try" in
20523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524   *) ac_try_echo=$ac_try;;
20525 esac
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527   (eval "$ac_try") 2>&5
20528   ac_status=$?
20529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530   (exit $ac_status); }; } &&
20531          { ac_try='test -s conftest.$ac_objext'
20532   { (case "(($ac_try" in
20533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534   *) ac_try_echo=$ac_try;;
20535 esac
20536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537   (eval "$ac_try") 2>&5
20538   ac_status=$?
20539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540   (exit $ac_status); }; }; then
20541   ac_cv_prog_cc_g=yes
20542 else
20543   echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.$ac_ext >&5
20545
20546
20547 fi
20548
20549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20550 fi
20551
20552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20553 fi
20554
20555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20556    ac_c_werror_flag=$ac_save_c_werror_flag
20557 fi
20558 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20559 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20560 if test "$ac_test_CFLAGS" = set; then
20561   CFLAGS=$ac_save_CFLAGS
20562 elif test $ac_cv_prog_cc_g = yes; then
20563   if test "$GCC" = yes; then
20564     CFLAGS="-g -O2"
20565   else
20566     CFLAGS="-g"
20567   fi
20568 else
20569   if test "$GCC" = yes; then
20570     CFLAGS="-O2"
20571   else
20572     CFLAGS=
20573   fi
20574 fi
20575 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20576 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20577 if test "${ac_cv_prog_cc_c89+set}" = set; then
20578   echo $ECHO_N "(cached) $ECHO_C" >&6
20579 else
20580   ac_cv_prog_cc_c89=no
20581 ac_save_CC=$CC
20582 cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h.  */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h.  */
20588 #include <stdarg.h>
20589 #include <stdio.h>
20590 #include <sys/types.h>
20591 #include <sys/stat.h>
20592 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20593 struct buf { int x; };
20594 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20595 static char *e (p, i)
20596      char **p;
20597      int i;
20598 {
20599   return p[i];
20600 }
20601 static char *f (char * (*g) (char **, int), char **p, ...)
20602 {
20603   char *s;
20604   va_list v;
20605   va_start (v,p);
20606   s = g (p, va_arg (v,int));
20607   va_end (v);
20608   return s;
20609 }
20610
20611 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20612    function prototypes and stuff, but not '\xHH' hex character constants.
20613    These don't provoke an error unfortunately, instead are silently treated
20614    as 'x'.  The following induces an error, until -std is added to get
20615    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20616    array size at least.  It's necessary to write '\x00'==0 to get something
20617    that's true only with -std.  */
20618 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20619
20620 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20621    inside strings and character constants.  */
20622 #define FOO(x) 'x'
20623 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20624
20625 int test (int i, double x);
20626 struct s1 {int (*f) (int a);};
20627 struct s2 {int (*f) (double a);};
20628 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20629 int argc;
20630 char **argv;
20631 int
20632 main ()
20633 {
20634 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20635   ;
20636   return 0;
20637 }
20638 _ACEOF
20639 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20640         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20641 do
20642   CC="$ac_save_CC $ac_arg"
20643   rm -f conftest.$ac_objext
20644 if { (ac_try="$ac_compile"
20645 case "(($ac_try" in
20646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647   *) ac_try_echo=$ac_try;;
20648 esac
20649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650   (eval "$ac_compile") 2>conftest.er1
20651   ac_status=$?
20652   grep -v '^ *+' conftest.er1 >conftest.err
20653   rm -f conftest.er1
20654   cat conftest.err >&5
20655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656   (exit $ac_status); } &&
20657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20658   { (case "(($ac_try" in
20659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660   *) ac_try_echo=$ac_try;;
20661 esac
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663   (eval "$ac_try") 2>&5
20664   ac_status=$?
20665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666   (exit $ac_status); }; } &&
20667          { ac_try='test -s conftest.$ac_objext'
20668   { (case "(($ac_try" in
20669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670   *) ac_try_echo=$ac_try;;
20671 esac
20672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673   (eval "$ac_try") 2>&5
20674   ac_status=$?
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); }; }; then
20677   ac_cv_prog_cc_c89=$ac_arg
20678 else
20679   echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20681
20682
20683 fi
20684
20685 rm -f core conftest.err conftest.$ac_objext
20686   test "x$ac_cv_prog_cc_c89" != "xno" && break
20687 done
20688 rm -f conftest.$ac_ext
20689 CC=$ac_save_CC
20690
20691 fi
20692 # AC_CACHE_VAL
20693 case "x$ac_cv_prog_cc_c89" in
20694   x)
20695     { echo "$as_me:$LINENO: result: none needed" >&5
20696 echo "${ECHO_T}none needed" >&6; } ;;
20697   xno)
20698     { echo "$as_me:$LINENO: result: unsupported" >&5
20699 echo "${ECHO_T}unsupported" >&6; } ;;
20700   *)
20701     CC="$CC $ac_cv_prog_cc_c89"
20702     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20703 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20704 esac
20705
20706
20707 ac_ext=c
20708 ac_cpp='$CPP $CPPFLAGS'
20709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20712
20713 depcc="$CC"   am_compiler_list=
20714
20715 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20716 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20717 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20718   echo $ECHO_N "(cached) $ECHO_C" >&6
20719 else
20720   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20721   # We make a subdir and do the tests there.  Otherwise we can end up
20722   # making bogus files that we don't know about and never remove.  For
20723   # instance it was reported that on HP-UX the gcc test will end up
20724   # making a dummy file named `D' -- because `-MD' means `put the output
20725   # in D'.
20726   mkdir conftest.dir
20727   # Copy depcomp to subdir because otherwise we won't find it if we're
20728   # using a relative directory.
20729   cp "$am_depcomp" conftest.dir
20730   cd conftest.dir
20731   # We will build objects and dependencies in a subdirectory because
20732   # it helps to detect inapplicable dependency modes.  For instance
20733   # both Tru64's cc and ICC support -MD to output dependencies as a
20734   # side effect of compilation, but ICC will put the dependencies in
20735   # the current directory while Tru64 will put them in the object
20736   # directory.
20737   mkdir sub
20738
20739   am_cv_CC_dependencies_compiler_type=none
20740   if test "$am_compiler_list" = ""; then
20741      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20742   fi
20743   for depmode in $am_compiler_list; do
20744     # Setup a source with many dependencies, because some compilers
20745     # like to wrap large dependency lists on column 80 (with \), and
20746     # we should not choose a depcomp mode which is confused by this.
20747     #
20748     # We need to recreate these files for each test, as the compiler may
20749     # overwrite some of them when testing with obscure command lines.
20750     # This happens at least with the AIX C compiler.
20751     : > sub/conftest.c
20752     for i in 1 2 3 4 5 6; do
20753       echo '#include "conftst'$i'.h"' >> sub/conftest.c
20754       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20755       # Solaris 8's {/usr,}/bin/sh.
20756       touch sub/conftst$i.h
20757     done
20758     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20759
20760     case $depmode in
20761     nosideeffect)
20762       # after this tag, mechanisms are not by side-effect, so they'll
20763       # only be used when explicitly requested
20764       if test "x$enable_dependency_tracking" = xyes; then
20765         continue
20766       else
20767         break
20768       fi
20769       ;;
20770     none) break ;;
20771     esac
20772     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20773     # mode.  It turns out that the SunPro C++ compiler does not properly
20774     # handle `-M -o', and we need to detect this.
20775     if depmode=$depmode \
20776        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20777        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20778        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20779          >/dev/null 2>conftest.err &&
20780        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20781        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20782        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20783        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20784       # icc doesn't choke on unknown options, it will just issue warnings
20785       # or remarks (even with -Werror).  So we grep stderr for any message
20786       # that says an option was ignored or not supported.
20787       # When given -MP, icc 7.0 and 7.1 complain thusly:
20788       #   icc: Command line warning: ignoring option '-M'; no argument required
20789       # The diagnosis changed in icc 8.0:
20790       #   icc: Command line remark: option '-MP' not supported
20791       if (grep 'ignoring option' conftest.err ||
20792           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20793         am_cv_CC_dependencies_compiler_type=$depmode
20794         break
20795       fi
20796     fi
20797   done
20798
20799   cd ..
20800   rm -rf conftest.dir
20801 else
20802   am_cv_CC_dependencies_compiler_type=none
20803 fi
20804
20805 fi
20806 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20807 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20808 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20809
20810  if
20811   test "x$enable_dependency_tracking" != xno \
20812   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20813   am__fastdepCC_TRUE=
20814   am__fastdepCC_FALSE='#'
20815 else
20816   am__fastdepCC_TRUE='#'
20817   am__fastdepCC_FALSE=
20818 fi
20819
20820
20821
20822 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20823 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20824 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20825 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20826   echo $ECHO_N "(cached) $ECHO_C" >&6
20827 else
20828   cat >conftest.make <<\_ACEOF
20829 SHELL = /bin/sh
20830 all:
20831         @echo '@@@%%%=$(MAKE)=@@@%%%'
20832 _ACEOF
20833 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20834 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20835   *@@@%%%=?*=@@@%%%*)
20836     eval ac_cv_prog_make_${ac_make}_set=yes;;
20837   *)
20838     eval ac_cv_prog_make_${ac_make}_set=no;;
20839 esac
20840 rm -f conftest.make
20841 fi
20842 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20843   { echo "$as_me:$LINENO: result: yes" >&5
20844 echo "${ECHO_T}yes" >&6; }
20845   SET_MAKE=
20846 else
20847   { echo "$as_me:$LINENO: result: no" >&5
20848 echo "${ECHO_T}no" >&6; }
20849   SET_MAKE="MAKE=${MAKE-make}"
20850 fi
20851
20852
20853 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20854 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20855 if test "${ac_cv_header_stdc+set}" = set; then
20856   echo $ECHO_N "(cached) $ECHO_C" >&6
20857 else
20858   cat >conftest.$ac_ext <<_ACEOF
20859 /* confdefs.h.  */
20860 _ACEOF
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h.  */
20864 #include <stdlib.h>
20865 #include <stdarg.h>
20866 #include <string.h>
20867 #include <float.h>
20868
20869 int
20870 main ()
20871 {
20872
20873   ;
20874   return 0;
20875 }
20876 _ACEOF
20877 rm -f conftest.$ac_objext
20878 if { (ac_try="$ac_compile"
20879 case "(($ac_try" in
20880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20881   *) ac_try_echo=$ac_try;;
20882 esac
20883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20884   (eval "$ac_compile") 2>conftest.er1
20885   ac_status=$?
20886   grep -v '^ *+' conftest.er1 >conftest.err
20887   rm -f conftest.er1
20888   cat conftest.err >&5
20889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890   (exit $ac_status); } &&
20891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20892   { (case "(($ac_try" in
20893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894   *) ac_try_echo=$ac_try;;
20895 esac
20896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897   (eval "$ac_try") 2>&5
20898   ac_status=$?
20899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900   (exit $ac_status); }; } &&
20901          { ac_try='test -s conftest.$ac_objext'
20902   { (case "(($ac_try" in
20903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904   *) ac_try_echo=$ac_try;;
20905 esac
20906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907   (eval "$ac_try") 2>&5
20908   ac_status=$?
20909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910   (exit $ac_status); }; }; then
20911   ac_cv_header_stdc=yes
20912 else
20913   echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20915
20916         ac_cv_header_stdc=no
20917 fi
20918
20919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20920
20921 if test $ac_cv_header_stdc = yes; then
20922   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20923   cat >conftest.$ac_ext <<_ACEOF
20924 /* confdefs.h.  */
20925 _ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h.  */
20929 #include <string.h>
20930
20931 _ACEOF
20932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20933   $EGREP "memchr" >/dev/null 2>&1; then
20934   :
20935 else
20936   ac_cv_header_stdc=no
20937 fi
20938 rm -f conftest*
20939
20940 fi
20941
20942 if test $ac_cv_header_stdc = yes; then
20943   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20944   cat >conftest.$ac_ext <<_ACEOF
20945 /* confdefs.h.  */
20946 _ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h.  */
20950 #include <stdlib.h>
20951
20952 _ACEOF
20953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20954   $EGREP "free" >/dev/null 2>&1; then
20955   :
20956 else
20957   ac_cv_header_stdc=no
20958 fi
20959 rm -f conftest*
20960
20961 fi
20962
20963 if test $ac_cv_header_stdc = yes; then
20964   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20965   if test "$cross_compiling" = yes; then
20966   :
20967 else
20968   cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h.  */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h.  */
20974 #include <ctype.h>
20975 #include <stdlib.h>
20976 #if ((' ' & 0x0FF) == 0x020)
20977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20979 #else
20980 # define ISLOWER(c) \
20981                    (('a' <= (c) && (c) <= 'i') \
20982                      || ('j' <= (c) && (c) <= 'r') \
20983                      || ('s' <= (c) && (c) <= 'z'))
20984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20985 #endif
20986
20987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20988 int
20989 main ()
20990 {
20991   int i;
20992   for (i = 0; i < 256; i++)
20993     if (XOR (islower (i), ISLOWER (i))
20994         || toupper (i) != TOUPPER (i))
20995       return 2;
20996   return 0;
20997 }
20998 _ACEOF
20999 rm -f conftest$ac_exeext
21000 if { (ac_try="$ac_link"
21001 case "(($ac_try" in
21002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003   *) ac_try_echo=$ac_try;;
21004 esac
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006   (eval "$ac_link") 2>&5
21007   ac_status=$?
21008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21010   { (case "(($ac_try" in
21011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012   *) ac_try_echo=$ac_try;;
21013 esac
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015   (eval "$ac_try") 2>&5
21016   ac_status=$?
21017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018   (exit $ac_status); }; }; then
21019   :
21020 else
21021   echo "$as_me: program exited with status $ac_status" >&5
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21024
21025 ( exit $ac_status )
21026 ac_cv_header_stdc=no
21027 fi
21028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21029 fi
21030
21031
21032 fi
21033 fi
21034 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21035 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21036 if test $ac_cv_header_stdc = yes; then
21037
21038 cat >>confdefs.h <<\_ACEOF
21039 #define STDC_HEADERS 1
21040 _ACEOF
21041
21042 fi
21043
21044
21045
21046
21047
21048
21049
21050 ac_header_dirent=no
21051 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21052   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21053 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21054 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21056   echo $ECHO_N "(cached) $ECHO_C" >&6
21057 else
21058   cat >conftest.$ac_ext <<_ACEOF
21059 /* confdefs.h.  */
21060 _ACEOF
21061 cat confdefs.h >>conftest.$ac_ext
21062 cat >>conftest.$ac_ext <<_ACEOF
21063 /* end confdefs.h.  */
21064 #include <sys/types.h>
21065 #include <$ac_hdr>
21066
21067 int
21068 main ()
21069 {
21070 if ((DIR *) 0)
21071 return 0;
21072   ;
21073   return 0;
21074 }
21075 _ACEOF
21076 rm -f conftest.$ac_objext
21077 if { (ac_try="$ac_compile"
21078 case "(($ac_try" in
21079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080   *) ac_try_echo=$ac_try;;
21081 esac
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083   (eval "$ac_compile") 2>conftest.er1
21084   ac_status=$?
21085   grep -v '^ *+' conftest.er1 >conftest.err
21086   rm -f conftest.er1
21087   cat conftest.err >&5
21088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089   (exit $ac_status); } &&
21090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21091   { (case "(($ac_try" in
21092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093   *) ac_try_echo=$ac_try;;
21094 esac
21095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096   (eval "$ac_try") 2>&5
21097   ac_status=$?
21098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099   (exit $ac_status); }; } &&
21100          { ac_try='test -s conftest.$ac_objext'
21101   { (case "(($ac_try" in
21102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103   *) ac_try_echo=$ac_try;;
21104 esac
21105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106   (eval "$ac_try") 2>&5
21107   ac_status=$?
21108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109   (exit $ac_status); }; }; then
21110   eval "$as_ac_Header=yes"
21111 else
21112   echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21114
21115         eval "$as_ac_Header=no"
21116 fi
21117
21118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21119 fi
21120 ac_res=`eval echo '${'$as_ac_Header'}'`
21121                { echo "$as_me:$LINENO: result: $ac_res" >&5
21122 echo "${ECHO_T}$ac_res" >&6; }
21123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21124   cat >>confdefs.h <<_ACEOF
21125 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21126 _ACEOF
21127
21128 ac_header_dirent=$ac_hdr; break
21129 fi
21130
21131 done
21132 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21133 if test $ac_header_dirent = dirent.h; then
21134   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21135 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21136 if test "${ac_cv_search_opendir+set}" = set; then
21137   echo $ECHO_N "(cached) $ECHO_C" >&6
21138 else
21139   ac_func_search_save_LIBS=$LIBS
21140 cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h.  */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h.  */
21146
21147 /* Override any GCC internal prototype to avoid an error.
21148    Use char because int might match the return type of a GCC
21149    builtin and then its argument prototype would still apply.  */
21150 #ifdef __cplusplus
21151 extern "C"
21152 #endif
21153 char opendir ();
21154 int
21155 main ()
21156 {
21157 return opendir ();
21158   ;
21159   return 0;
21160 }
21161 _ACEOF
21162 for ac_lib in '' dir; do
21163   if test -z "$ac_lib"; then
21164     ac_res="none required"
21165   else
21166     ac_res=-l$ac_lib
21167     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21168   fi
21169   rm -f conftest.$ac_objext conftest$ac_exeext
21170 if { (ac_try="$ac_link"
21171 case "(($ac_try" in
21172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21173   *) ac_try_echo=$ac_try;;
21174 esac
21175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21176   (eval "$ac_link") 2>conftest.er1
21177   ac_status=$?
21178   grep -v '^ *+' conftest.er1 >conftest.err
21179   rm -f conftest.er1
21180   cat conftest.err >&5
21181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182   (exit $ac_status); } &&
21183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21184   { (case "(($ac_try" in
21185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21186   *) ac_try_echo=$ac_try;;
21187 esac
21188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21189   (eval "$ac_try") 2>&5
21190   ac_status=$?
21191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192   (exit $ac_status); }; } &&
21193          { ac_try='test -s conftest$ac_exeext'
21194   { (case "(($ac_try" in
21195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21196   *) ac_try_echo=$ac_try;;
21197 esac
21198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21199   (eval "$ac_try") 2>&5
21200   ac_status=$?
21201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202   (exit $ac_status); }; }; then
21203   ac_cv_search_opendir=$ac_res
21204 else
21205   echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21207
21208
21209 fi
21210
21211 rm -f core conftest.err conftest.$ac_objext \
21212       conftest$ac_exeext
21213   if test "${ac_cv_search_opendir+set}" = set; then
21214   break
21215 fi
21216 done
21217 if test "${ac_cv_search_opendir+set}" = set; then
21218   :
21219 else
21220   ac_cv_search_opendir=no
21221 fi
21222 rm conftest.$ac_ext
21223 LIBS=$ac_func_search_save_LIBS
21224 fi
21225 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21226 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21227 ac_res=$ac_cv_search_opendir
21228 if test "$ac_res" != no; then
21229   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21230
21231 fi
21232
21233 else
21234   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21235 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21236 if test "${ac_cv_search_opendir+set}" = set; then
21237   echo $ECHO_N "(cached) $ECHO_C" >&6
21238 else
21239   ac_func_search_save_LIBS=$LIBS
21240 cat >conftest.$ac_ext <<_ACEOF
21241 /* confdefs.h.  */
21242 _ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h.  */
21246
21247 /* Override any GCC internal prototype to avoid an error.
21248    Use char because int might match the return type of a GCC
21249    builtin and then its argument prototype would still apply.  */
21250 #ifdef __cplusplus
21251 extern "C"
21252 #endif
21253 char opendir ();
21254 int
21255 main ()
21256 {
21257 return opendir ();
21258   ;
21259   return 0;
21260 }
21261 _ACEOF
21262 for ac_lib in '' x; do
21263   if test -z "$ac_lib"; then
21264     ac_res="none required"
21265   else
21266     ac_res=-l$ac_lib
21267     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21268   fi
21269   rm -f conftest.$ac_objext conftest$ac_exeext
21270 if { (ac_try="$ac_link"
21271 case "(($ac_try" in
21272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273   *) ac_try_echo=$ac_try;;
21274 esac
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276   (eval "$ac_link") 2>conftest.er1
21277   ac_status=$?
21278   grep -v '^ *+' conftest.er1 >conftest.err
21279   rm -f conftest.er1
21280   cat conftest.err >&5
21281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282   (exit $ac_status); } &&
21283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21284   { (case "(($ac_try" in
21285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21286   *) ac_try_echo=$ac_try;;
21287 esac
21288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21289   (eval "$ac_try") 2>&5
21290   ac_status=$?
21291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292   (exit $ac_status); }; } &&
21293          { ac_try='test -s conftest$ac_exeext'
21294   { (case "(($ac_try" in
21295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21296   *) ac_try_echo=$ac_try;;
21297 esac
21298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21299   (eval "$ac_try") 2>&5
21300   ac_status=$?
21301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302   (exit $ac_status); }; }; then
21303   ac_cv_search_opendir=$ac_res
21304 else
21305   echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21307
21308
21309 fi
21310
21311 rm -f core conftest.err conftest.$ac_objext \
21312       conftest$ac_exeext
21313   if test "${ac_cv_search_opendir+set}" = set; then
21314   break
21315 fi
21316 done
21317 if test "${ac_cv_search_opendir+set}" = set; then
21318   :
21319 else
21320   ac_cv_search_opendir=no
21321 fi
21322 rm conftest.$ac_ext
21323 LIBS=$ac_func_search_save_LIBS
21324 fi
21325 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21326 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21327 ac_res=$ac_cv_search_opendir
21328 if test "$ac_res" != no; then
21329   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21330
21331 fi
21332
21333 fi
21334
21335
21336
21337 for ac_header in unistd.h
21338 do
21339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21341   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21344   echo $ECHO_N "(cached) $ECHO_C" >&6
21345 fi
21346 ac_res=`eval echo '${'$as_ac_Header'}'`
21347                { echo "$as_me:$LINENO: result: $ac_res" >&5
21348 echo "${ECHO_T}$ac_res" >&6; }
21349 else
21350   # Is the header compilable?
21351 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21353 cat >conftest.$ac_ext <<_ACEOF
21354 /* confdefs.h.  */
21355 _ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h.  */
21359 $ac_includes_default
21360 #include <$ac_header>
21361 _ACEOF
21362 rm -f conftest.$ac_objext
21363 if { (ac_try="$ac_compile"
21364 case "(($ac_try" in
21365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21366   *) ac_try_echo=$ac_try;;
21367 esac
21368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21369   (eval "$ac_compile") 2>conftest.er1
21370   ac_status=$?
21371   grep -v '^ *+' conftest.er1 >conftest.err
21372   rm -f conftest.er1
21373   cat conftest.err >&5
21374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375   (exit $ac_status); } &&
21376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21377   { (case "(($ac_try" in
21378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21379   *) ac_try_echo=$ac_try;;
21380 esac
21381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21382   (eval "$ac_try") 2>&5
21383   ac_status=$?
21384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385   (exit $ac_status); }; } &&
21386          { ac_try='test -s conftest.$ac_objext'
21387   { (case "(($ac_try" in
21388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389   *) ac_try_echo=$ac_try;;
21390 esac
21391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392   (eval "$ac_try") 2>&5
21393   ac_status=$?
21394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395   (exit $ac_status); }; }; then
21396   ac_header_compiler=yes
21397 else
21398   echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21400
21401         ac_header_compiler=no
21402 fi
21403
21404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21406 echo "${ECHO_T}$ac_header_compiler" >&6; }
21407
21408 # Is the header present?
21409 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21411 cat >conftest.$ac_ext <<_ACEOF
21412 /* confdefs.h.  */
21413 _ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h.  */
21417 #include <$ac_header>
21418 _ACEOF
21419 if { (ac_try="$ac_cpp conftest.$ac_ext"
21420 case "(($ac_try" in
21421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21422   *) ac_try_echo=$ac_try;;
21423 esac
21424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21425   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21426   ac_status=$?
21427   grep -v '^ *+' conftest.er1 >conftest.err
21428   rm -f conftest.er1
21429   cat conftest.err >&5
21430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431   (exit $ac_status); } >/dev/null; then
21432   if test -s conftest.err; then
21433     ac_cpp_err=$ac_c_preproc_warn_flag
21434     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21435   else
21436     ac_cpp_err=
21437   fi
21438 else
21439   ac_cpp_err=yes
21440 fi
21441 if test -z "$ac_cpp_err"; then
21442   ac_header_preproc=yes
21443 else
21444   echo "$as_me: failed program was:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21446
21447   ac_header_preproc=no
21448 fi
21449
21450 rm -f conftest.err conftest.$ac_ext
21451 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21452 echo "${ECHO_T}$ac_header_preproc" >&6; }
21453
21454 # So?  What about this header?
21455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21456   yes:no: )
21457     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21461     ac_header_preproc=yes
21462     ;;
21463   no:yes:* )
21464     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21466     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21467 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21468     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21470     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21471 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21474     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21476
21477     ;;
21478 esac
21479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21482   echo $ECHO_N "(cached) $ECHO_C" >&6
21483 else
21484   eval "$as_ac_Header=\$ac_header_preproc"
21485 fi
21486 ac_res=`eval echo '${'$as_ac_Header'}'`
21487                { echo "$as_me:$LINENO: result: $ac_res" >&5
21488 echo "${ECHO_T}$ac_res" >&6; }
21489
21490 fi
21491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21492   cat >>confdefs.h <<_ACEOF
21493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21494 _ACEOF
21495
21496 else
21497   { { echo "$as_me:$LINENO: error: required header file missing" >&5
21498 echo "$as_me: error: required header file missing" >&2;}
21499    { (exit 1); exit 1; }; }
21500 fi
21501
21502 done
21503
21504
21505
21506
21507
21508
21509 for ac_header in sys/stat.h sys/wait.h sys/time.h sys/timeb.h
21510 do
21511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21513   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21516   echo $ECHO_N "(cached) $ECHO_C" >&6
21517 fi
21518 ac_res=`eval echo '${'$as_ac_Header'}'`
21519                { echo "$as_me:$LINENO: result: $ac_res" >&5
21520 echo "${ECHO_T}$ac_res" >&6; }
21521 else
21522   # Is the header compilable?
21523 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21525 cat >conftest.$ac_ext <<_ACEOF
21526 /* confdefs.h.  */
21527 _ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h.  */
21531 $ac_includes_default
21532 #include <$ac_header>
21533 _ACEOF
21534 rm -f conftest.$ac_objext
21535 if { (ac_try="$ac_compile"
21536 case "(($ac_try" in
21537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21538   *) ac_try_echo=$ac_try;;
21539 esac
21540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21541   (eval "$ac_compile") 2>conftest.er1
21542   ac_status=$?
21543   grep -v '^ *+' conftest.er1 >conftest.err
21544   rm -f conftest.er1
21545   cat conftest.err >&5
21546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547   (exit $ac_status); } &&
21548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21549   { (case "(($ac_try" in
21550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551   *) ac_try_echo=$ac_try;;
21552 esac
21553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554   (eval "$ac_try") 2>&5
21555   ac_status=$?
21556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557   (exit $ac_status); }; } &&
21558          { ac_try='test -s conftest.$ac_objext'
21559   { (case "(($ac_try" in
21560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561   *) ac_try_echo=$ac_try;;
21562 esac
21563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21564   (eval "$ac_try") 2>&5
21565   ac_status=$?
21566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567   (exit $ac_status); }; }; then
21568   ac_header_compiler=yes
21569 else
21570   echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21572
21573         ac_header_compiler=no
21574 fi
21575
21576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21577 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21578 echo "${ECHO_T}$ac_header_compiler" >&6; }
21579
21580 # Is the header present?
21581 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21583 cat >conftest.$ac_ext <<_ACEOF
21584 /* confdefs.h.  */
21585 _ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h.  */
21589 #include <$ac_header>
21590 _ACEOF
21591 if { (ac_try="$ac_cpp conftest.$ac_ext"
21592 case "(($ac_try" in
21593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21594   *) ac_try_echo=$ac_try;;
21595 esac
21596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21597   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21598   ac_status=$?
21599   grep -v '^ *+' conftest.er1 >conftest.err
21600   rm -f conftest.er1
21601   cat conftest.err >&5
21602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603   (exit $ac_status); } >/dev/null; then
21604   if test -s conftest.err; then
21605     ac_cpp_err=$ac_c_preproc_warn_flag
21606     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21607   else
21608     ac_cpp_err=
21609   fi
21610 else
21611   ac_cpp_err=yes
21612 fi
21613 if test -z "$ac_cpp_err"; then
21614   ac_header_preproc=yes
21615 else
21616   echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21618
21619   ac_header_preproc=no
21620 fi
21621
21622 rm -f conftest.err conftest.$ac_ext
21623 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21624 echo "${ECHO_T}$ac_header_preproc" >&6; }
21625
21626 # So?  What about this header?
21627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21628   yes:no: )
21629     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21633     ac_header_preproc=yes
21634     ;;
21635   no:yes:* )
21636     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21638     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21639 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21640     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21642     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21643 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21646     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21648
21649     ;;
21650 esac
21651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21654   echo $ECHO_N "(cached) $ECHO_C" >&6
21655 else
21656   eval "$as_ac_Header=\$ac_header_preproc"
21657 fi
21658 ac_res=`eval echo '${'$as_ac_Header'}'`
21659                { echo "$as_me:$LINENO: result: $ac_res" >&5
21660 echo "${ECHO_T}$ac_res" >&6; }
21661
21662 fi
21663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21664   cat >>confdefs.h <<_ACEOF
21665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21666 _ACEOF
21667
21668 fi
21669
21670 done
21671
21672
21673 # Check whether --enable-lua was given.
21674 if test "${enable_lua+set}" = set; then
21675   enableval=$enable_lua; case "${enableval}" in
21676        yes) lua=true ;;
21677        no)  lua=false ;;
21678        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-lua" >&5
21679 echo "$as_me: error: bad value ${enableval} for --enable-lua" >&2;}
21680    { (exit 1); exit 1; }; } ;;
21681      esac
21682 else
21683   lua=false
21684 fi
21685
21686
21687
21688 for ac_header in lua.h
21689 do
21690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21692   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21695   echo $ECHO_N "(cached) $ECHO_C" >&6
21696 fi
21697 ac_res=`eval echo '${'$as_ac_Header'}'`
21698                { echo "$as_me:$LINENO: result: $ac_res" >&5
21699 echo "${ECHO_T}$ac_res" >&6; }
21700 else
21701   # Is the header compilable?
21702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21704 cat >conftest.$ac_ext <<_ACEOF
21705 /* confdefs.h.  */
21706 _ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h.  */
21710 $ac_includes_default
21711 #include <$ac_header>
21712 _ACEOF
21713 rm -f conftest.$ac_objext
21714 if { (ac_try="$ac_compile"
21715 case "(($ac_try" in
21716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717   *) ac_try_echo=$ac_try;;
21718 esac
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720   (eval "$ac_compile") 2>conftest.er1
21721   ac_status=$?
21722   grep -v '^ *+' conftest.er1 >conftest.err
21723   rm -f conftest.er1
21724   cat conftest.err >&5
21725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726   (exit $ac_status); } &&
21727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21728   { (case "(($ac_try" in
21729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21730   *) ac_try_echo=$ac_try;;
21731 esac
21732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21733   (eval "$ac_try") 2>&5
21734   ac_status=$?
21735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736   (exit $ac_status); }; } &&
21737          { ac_try='test -s conftest.$ac_objext'
21738   { (case "(($ac_try" in
21739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21740   *) ac_try_echo=$ac_try;;
21741 esac
21742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21743   (eval "$ac_try") 2>&5
21744   ac_status=$?
21745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746   (exit $ac_status); }; }; then
21747   ac_header_compiler=yes
21748 else
21749   echo "$as_me: failed program was:" >&5
21750 sed 's/^/| /' conftest.$ac_ext >&5
21751
21752         ac_header_compiler=no
21753 fi
21754
21755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21757 echo "${ECHO_T}$ac_header_compiler" >&6; }
21758
21759 # Is the header present?
21760 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21762 cat >conftest.$ac_ext <<_ACEOF
21763 /* confdefs.h.  */
21764 _ACEOF
21765 cat confdefs.h >>conftest.$ac_ext
21766 cat >>conftest.$ac_ext <<_ACEOF
21767 /* end confdefs.h.  */
21768 #include <$ac_header>
21769 _ACEOF
21770 if { (ac_try="$ac_cpp conftest.$ac_ext"
21771 case "(($ac_try" in
21772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21773   *) ac_try_echo=$ac_try;;
21774 esac
21775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21777   ac_status=$?
21778   grep -v '^ *+' conftest.er1 >conftest.err
21779   rm -f conftest.er1
21780   cat conftest.err >&5
21781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782   (exit $ac_status); } >/dev/null; then
21783   if test -s conftest.err; then
21784     ac_cpp_err=$ac_c_preproc_warn_flag
21785     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21786   else
21787     ac_cpp_err=
21788   fi
21789 else
21790   ac_cpp_err=yes
21791 fi
21792 if test -z "$ac_cpp_err"; then
21793   ac_header_preproc=yes
21794 else
21795   echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21797
21798   ac_header_preproc=no
21799 fi
21800
21801 rm -f conftest.err conftest.$ac_ext
21802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21803 echo "${ECHO_T}$ac_header_preproc" >&6; }
21804
21805 # So?  What about this header?
21806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21807   yes:no: )
21808     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21812     ac_header_preproc=yes
21813     ;;
21814   no:yes:* )
21815     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21817     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21818 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21819     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21821     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21822 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21825     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21827
21828     ;;
21829 esac
21830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21833   echo $ECHO_N "(cached) $ECHO_C" >&6
21834 else
21835   eval "$as_ac_Header=\$ac_header_preproc"
21836 fi
21837 ac_res=`eval echo '${'$as_ac_Header'}'`
21838                { echo "$as_me:$LINENO: result: $ac_res" >&5
21839 echo "${ECHO_T}$ac_res" >&6; }
21840
21841 fi
21842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21843   cat >>confdefs.h <<_ACEOF
21844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21845 _ACEOF
21846
21847 else
21848   lua=false
21849 fi
21850
21851 done
21852
21853
21854 if test x$lua = xtrue; then
21855   { echo "$as_me:$LINENO: Will build the Lua module" >&5
21856 echo "$as_me: Will build the Lua module" >&6;}
21857 else
21858   { echo "$as_me:$LINENO: Skipping the lua module" >&5
21859 echo "$as_me: Skipping the lua module" >&6;}
21860 fi
21861
21862
21863  if test x$lua = xtrue; then
21864   WITH_LUA_TRUE=
21865   WITH_LUA_FALSE='#'
21866 else
21867   WITH_LUA_TRUE='#'
21868   WITH_LUA_FALSE=
21869 fi
21870
21871
21872
21873
21874 for ac_func in access atoi
21875 do
21876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21880   echo $ECHO_N "(cached) $ECHO_C" >&6
21881 else
21882   cat >conftest.$ac_ext <<_ACEOF
21883 /* confdefs.h.  */
21884 _ACEOF
21885 cat confdefs.h >>conftest.$ac_ext
21886 cat >>conftest.$ac_ext <<_ACEOF
21887 /* end confdefs.h.  */
21888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21890 #define $ac_func innocuous_$ac_func
21891
21892 /* System header to define __stub macros and hopefully few prototypes,
21893     which can conflict with char $ac_func (); below.
21894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21895     <limits.h> exists even on freestanding compilers.  */
21896
21897 #ifdef __STDC__
21898 # include <limits.h>
21899 #else
21900 # include <assert.h>
21901 #endif
21902
21903 #undef $ac_func
21904
21905 /* Override any GCC internal prototype to avoid an error.
21906    Use char because int might match the return type of a GCC
21907    builtin and then its argument prototype would still apply.  */
21908 #ifdef __cplusplus
21909 extern "C"
21910 #endif
21911 char $ac_func ();
21912 /* The GNU C library defines this for functions which it implements
21913     to always fail with ENOSYS.  Some functions are actually named
21914     something starting with __ and the normal name is an alias.  */
21915 #if defined __stub_$ac_func || defined __stub___$ac_func
21916 choke me
21917 #endif
21918
21919 int
21920 main ()
21921 {
21922 return $ac_func ();
21923   ;
21924   return 0;
21925 }
21926 _ACEOF
21927 rm -f conftest.$ac_objext conftest$ac_exeext
21928 if { (ac_try="$ac_link"
21929 case "(($ac_try" in
21930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931   *) ac_try_echo=$ac_try;;
21932 esac
21933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21934   (eval "$ac_link") 2>conftest.er1
21935   ac_status=$?
21936   grep -v '^ *+' conftest.er1 >conftest.err
21937   rm -f conftest.er1
21938   cat conftest.err >&5
21939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940   (exit $ac_status); } &&
21941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21942   { (case "(($ac_try" in
21943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21944   *) ac_try_echo=$ac_try;;
21945 esac
21946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21947   (eval "$ac_try") 2>&5
21948   ac_status=$?
21949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950   (exit $ac_status); }; } &&
21951          { ac_try='test -s conftest$ac_exeext'
21952   { (case "(($ac_try" in
21953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954   *) ac_try_echo=$ac_try;;
21955 esac
21956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957   (eval "$ac_try") 2>&5
21958   ac_status=$?
21959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960   (exit $ac_status); }; }; then
21961   eval "$as_ac_var=yes"
21962 else
21963   echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21965
21966         eval "$as_ac_var=no"
21967 fi
21968
21969 rm -f core conftest.err conftest.$ac_objext \
21970       conftest$ac_exeext conftest.$ac_ext
21971 fi
21972 ac_res=`eval echo '${'$as_ac_var'}'`
21973                { echo "$as_me:$LINENO: result: $ac_res" >&5
21974 echo "${ECHO_T}$ac_res" >&6; }
21975 if test `eval echo '${'$as_ac_var'}'` = yes; then
21976   cat >>confdefs.h <<_ACEOF
21977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21978 _ACEOF
21979
21980 else
21981   { { echo "$as_me:$LINENO: error: required standard library function missing" >&5
21982 echo "$as_me: error: required standard library function missing" >&2;}
21983    { (exit 1); exit 1; }; }
21984 fi
21985 done
21986
21987
21988
21989
21990
21991
21992
21993 for ac_func in snprintf gettimeofday ftime mkstemp mktemp
21994 do
21995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21998 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21999   echo $ECHO_N "(cached) $ECHO_C" >&6
22000 else
22001   cat >conftest.$ac_ext <<_ACEOF
22002 /* confdefs.h.  */
22003 _ACEOF
22004 cat confdefs.h >>conftest.$ac_ext
22005 cat >>conftest.$ac_ext <<_ACEOF
22006 /* end confdefs.h.  */
22007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22009 #define $ac_func innocuous_$ac_func
22010
22011 /* System header to define __stub macros and hopefully few prototypes,
22012     which can conflict with char $ac_func (); below.
22013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22014     <limits.h> exists even on freestanding compilers.  */
22015
22016 #ifdef __STDC__
22017 # include <limits.h>
22018 #else
22019 # include <assert.h>
22020 #endif
22021
22022 #undef $ac_func
22023
22024 /* Override any GCC internal prototype to avoid an error.
22025    Use char because int might match the return type of a GCC
22026    builtin and then its argument prototype would still apply.  */
22027 #ifdef __cplusplus
22028 extern "C"
22029 #endif
22030 char $ac_func ();
22031 /* The GNU C library defines this for functions which it implements
22032     to always fail with ENOSYS.  Some functions are actually named
22033     something starting with __ and the normal name is an alias.  */
22034 #if defined __stub_$ac_func || defined __stub___$ac_func
22035 choke me
22036 #endif
22037
22038 int
22039 main ()
22040 {
22041 return $ac_func ();
22042   ;
22043   return 0;
22044 }
22045 _ACEOF
22046 rm -f conftest.$ac_objext conftest$ac_exeext
22047 if { (ac_try="$ac_link"
22048 case "(($ac_try" in
22049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050   *) ac_try_echo=$ac_try;;
22051 esac
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053   (eval "$ac_link") 2>conftest.er1
22054   ac_status=$?
22055   grep -v '^ *+' conftest.er1 >conftest.err
22056   rm -f conftest.er1
22057   cat conftest.err >&5
22058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059   (exit $ac_status); } &&
22060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22061   { (case "(($ac_try" in
22062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22063   *) ac_try_echo=$ac_try;;
22064 esac
22065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22066   (eval "$ac_try") 2>&5
22067   ac_status=$?
22068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069   (exit $ac_status); }; } &&
22070          { ac_try='test -s conftest$ac_exeext'
22071   { (case "(($ac_try" in
22072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22073   *) ac_try_echo=$ac_try;;
22074 esac
22075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22076   (eval "$ac_try") 2>&5
22077   ac_status=$?
22078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079   (exit $ac_status); }; }; then
22080   eval "$as_ac_var=yes"
22081 else
22082   echo "$as_me: failed program was:" >&5
22083 sed 's/^/| /' conftest.$ac_ext >&5
22084
22085         eval "$as_ac_var=no"
22086 fi
22087
22088 rm -f core conftest.err conftest.$ac_objext \
22089       conftest$ac_exeext conftest.$ac_ext
22090 fi
22091 ac_res=`eval echo '${'$as_ac_var'}'`
22092                { echo "$as_me:$LINENO: result: $ac_res" >&5
22093 echo "${ECHO_T}$ac_res" >&6; }
22094 if test `eval echo '${'$as_ac_var'}'` = yes; then
22095   cat >>confdefs.h <<_ACEOF
22096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22097 _ACEOF
22098
22099 fi
22100 done
22101
22102
22103
22104
22105 { echo "$as_me:$LINENO: checking for st_mtim in struct stat" >&5
22106 echo $ECHO_N "checking for st_mtim in struct stat... $ECHO_C" >&6; }
22107 if test "${ac_cv_struct_st_mtim+set}" = set; then
22108   echo $ECHO_N "(cached) $ECHO_C" >&6
22109 else
22110   cat >conftest.$ac_ext <<_ACEOF
22111 /* confdefs.h.  */
22112 _ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h.  */
22116 #include <sys/types.h>
22117 #include <sys/stat.h>
22118 int
22119 main ()
22120 {
22121 struct stat s; s.st_mtim;
22122   ;
22123   return 0;
22124 }
22125 _ACEOF
22126 rm -f conftest.$ac_objext
22127 if { (ac_try="$ac_compile"
22128 case "(($ac_try" in
22129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130   *) ac_try_echo=$ac_try;;
22131 esac
22132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133   (eval "$ac_compile") 2>conftest.er1
22134   ac_status=$?
22135   grep -v '^ *+' conftest.er1 >conftest.err
22136   rm -f conftest.er1
22137   cat conftest.err >&5
22138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139   (exit $ac_status); } &&
22140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22141   { (case "(($ac_try" in
22142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22143   *) ac_try_echo=$ac_try;;
22144 esac
22145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22146   (eval "$ac_try") 2>&5
22147   ac_status=$?
22148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149   (exit $ac_status); }; } &&
22150          { ac_try='test -s conftest.$ac_objext'
22151   { (case "(($ac_try" in
22152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153   *) ac_try_echo=$ac_try;;
22154 esac
22155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22156   (eval "$ac_try") 2>&5
22157   ac_status=$?
22158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159   (exit $ac_status); }; }; then
22160   ac_cv_struct_st_mtim=yes
22161 else
22162   echo "$as_me: failed program was:" >&5
22163 sed 's/^/| /' conftest.$ac_ext >&5
22164
22165         ac_cv_struct_st_mtim=no
22166 fi
22167
22168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22169 fi
22170 { echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim" >&5
22171 echo "${ECHO_T}$ac_cv_struct_st_mtim" >&6; }
22172 if test $ac_cv_struct_st_mtim = yes; then
22173
22174 cat >>confdefs.h <<\_ACEOF
22175 #define HAVE_ST_MTIM 1
22176 _ACEOF
22177
22178 fi
22179
22180
22181
22182 ac_config_files="$ac_config_files Makefile"
22183
22184 cat >confcache <<\_ACEOF
22185 # This file is a shell script that caches the results of configure
22186 # tests run on this system so they can be shared between configure
22187 # scripts and configure runs, see configure's option --config-cache.
22188 # It is not useful on other systems.  If it contains results you don't
22189 # want to keep, you may remove or edit it.
22190 #
22191 # config.status only pays attention to the cache file if you give it
22192 # the --recheck option to rerun configure.
22193 #
22194 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22195 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22196 # following values.
22197
22198 _ACEOF
22199
22200 # The following way of writing the cache mishandles newlines in values,
22201 # but we know of no workaround that is simple, portable, and efficient.
22202 # So, we kill variables containing newlines.
22203 # Ultrix sh set writes to stderr and can't be redirected directly,
22204 # and sets the high bit in the cache file unless we assign to the vars.
22205 (
22206   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22207     eval ac_val=\$$ac_var
22208     case $ac_val in #(
22209     *${as_nl}*)
22210       case $ac_var in #(
22211       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22212 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22213       esac
22214       case $ac_var in #(
22215       _ | IFS | as_nl) ;; #(
22216       *) $as_unset $ac_var ;;
22217       esac ;;
22218     esac
22219   done
22220
22221   (set) 2>&1 |
22222     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22223     *${as_nl}ac_space=\ *)
22224       # `set' does not quote correctly, so add quotes (double-quote
22225       # substitution turns \\\\ into \\, and sed turns \\ into \).
22226       sed -n \
22227         "s/'/'\\\\''/g;
22228           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22229       ;; #(
22230     *)
22231       # `set' quotes correctly as required by POSIX, so do not add quotes.
22232       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22233       ;;
22234     esac |
22235     sort
22236 ) |
22237   sed '
22238      /^ac_cv_env_/b end
22239      t clear
22240      :clear
22241      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22242      t end
22243      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22244      :end' >>confcache
22245 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22246   if test -w "$cache_file"; then
22247     test "x$cache_file" != "x/dev/null" &&
22248       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22249 echo "$as_me: updating cache $cache_file" >&6;}
22250     cat confcache >$cache_file
22251   else
22252     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22253 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22254   fi
22255 fi
22256 rm -f confcache
22257
22258 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22259 # Let make expand exec_prefix.
22260 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22261
22262 DEFS=-DHAVE_CONFIG_H
22263
22264 ac_libobjs=
22265 ac_ltlibobjs=
22266 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22267   # 1. Remove the extension, and $U if already installed.
22268   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22269   ac_i=`echo "$ac_i" | sed "$ac_script"`
22270   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22271   #    will be set to the directory where LIBOBJS objects are built.
22272   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22273   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22274 done
22275 LIBOBJS=$ac_libobjs
22276
22277 LTLIBOBJS=$ac_ltlibobjs
22278
22279
22280 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22281   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22282 Usually this means the macro was only invoked conditionally." >&5
22283 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22284 Usually this means the macro was only invoked conditionally." >&2;}
22285    { (exit 1); exit 1; }; }
22286 fi
22287 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22288   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22289 Usually this means the macro was only invoked conditionally." >&5
22290 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22291 Usually this means the macro was only invoked conditionally." >&2;}
22292    { (exit 1); exit 1; }; }
22293 fi
22294 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22295   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22296 Usually this means the macro was only invoked conditionally." >&5
22297 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22298 Usually this means the macro was only invoked conditionally." >&2;}
22299    { (exit 1); exit 1; }; }
22300 fi
22301 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22302   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22303 Usually this means the macro was only invoked conditionally." >&5
22304 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22305 Usually this means the macro was only invoked conditionally." >&2;}
22306    { (exit 1); exit 1; }; }
22307 fi
22308 if test -z "${WITH_LUA_TRUE}" && test -z "${WITH_LUA_FALSE}"; then
22309   { { echo "$as_me:$LINENO: error: conditional \"WITH_LUA\" was never defined.
22310 Usually this means the macro was only invoked conditionally." >&5
22311 echo "$as_me: error: conditional \"WITH_LUA\" was never defined.
22312 Usually this means the macro was only invoked conditionally." >&2;}
22313    { (exit 1); exit 1; }; }
22314 fi
22315
22316 : ${CONFIG_STATUS=./config.status}
22317 ac_clean_files_save=$ac_clean_files
22318 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22319 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22320 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22321 cat >$CONFIG_STATUS <<_ACEOF
22322 #! $SHELL
22323 # Generated by $as_me.
22324 # Run this file to recreate the current configuration.
22325 # Compiler output produced by configure, useful for debugging
22326 # configure, is in config.log if it exists.
22327
22328 debug=false
22329 ac_cs_recheck=false
22330 ac_cs_silent=false
22331 SHELL=\${CONFIG_SHELL-$SHELL}
22332 _ACEOF
22333
22334 cat >>$CONFIG_STATUS <<\_ACEOF
22335 ## --------------------- ##
22336 ## M4sh Initialization.  ##
22337 ## --------------------- ##
22338
22339 # Be Bourne compatible
22340 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22341   emulate sh
22342   NULLCMD=:
22343   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22344   # is contrary to our usage.  Disable this feature.
22345   alias -g '${1+"$@"}'='"$@"'
22346   setopt NO_GLOB_SUBST
22347 else
22348   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22349 fi
22350 BIN_SH=xpg4; export BIN_SH # for Tru64
22351 DUALCASE=1; export DUALCASE # for MKS sh
22352
22353
22354 # PATH needs CR
22355 # Avoid depending upon Character Ranges.
22356 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22357 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22358 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22359 as_cr_digits='0123456789'
22360 as_cr_alnum=$as_cr_Letters$as_cr_digits
22361
22362 # The user is always right.
22363 if test "${PATH_SEPARATOR+set}" != set; then
22364   echo "#! /bin/sh" >conf$$.sh
22365   echo  "exit 0"   >>conf$$.sh
22366   chmod +x conf$$.sh
22367   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22368     PATH_SEPARATOR=';'
22369   else
22370     PATH_SEPARATOR=:
22371   fi
22372   rm -f conf$$.sh
22373 fi
22374
22375 # Support unset when possible.
22376 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22377   as_unset=unset
22378 else
22379   as_unset=false
22380 fi
22381
22382
22383 # IFS
22384 # We need space, tab and new line, in precisely that order.  Quoting is
22385 # there to prevent editors from complaining about space-tab.
22386 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22387 # splitting by setting IFS to empty value.)
22388 as_nl='
22389 '
22390 IFS=" ""        $as_nl"
22391
22392 # Find who we are.  Look in the path if we contain no directory separator.
22393 case $0 in
22394   *[\\/]* ) as_myself=$0 ;;
22395   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22396 for as_dir in $PATH
22397 do
22398   IFS=$as_save_IFS
22399   test -z "$as_dir" && as_dir=.
22400   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22401 done
22402 IFS=$as_save_IFS
22403
22404      ;;
22405 esac
22406 # We did not find ourselves, most probably we were run as `sh COMMAND'
22407 # in which case we are not to be found in the path.
22408 if test "x$as_myself" = x; then
22409   as_myself=$0
22410 fi
22411 if test ! -f "$as_myself"; then
22412   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22413   { (exit 1); exit 1; }
22414 fi
22415
22416 # Work around bugs in pre-3.0 UWIN ksh.
22417 for as_var in ENV MAIL MAILPATH
22418 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22419 done
22420 PS1='$ '
22421 PS2='> '
22422 PS4='+ '
22423
22424 # NLS nuisances.
22425 for as_var in \
22426   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22427   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22428   LC_TELEPHONE LC_TIME
22429 do
22430   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22431     eval $as_var=C; export $as_var
22432   else
22433     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22434   fi
22435 done
22436
22437 # Required to use basename.
22438 if expr a : '\(a\)' >/dev/null 2>&1 &&
22439    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22440   as_expr=expr
22441 else
22442   as_expr=false
22443 fi
22444
22445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22446   as_basename=basename
22447 else
22448   as_basename=false
22449 fi
22450
22451
22452 # Name of the executable.
22453 as_me=`$as_basename -- "$0" ||
22454 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22455          X"$0" : 'X\(//\)$' \| \
22456          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22457 echo X/"$0" |
22458     sed '/^.*\/\([^/][^/]*\)\/*$/{
22459             s//\1/
22460             q
22461           }
22462           /^X\/\(\/\/\)$/{
22463             s//\1/
22464             q
22465           }
22466           /^X\/\(\/\).*/{
22467             s//\1/
22468             q
22469           }
22470           s/.*/./; q'`
22471
22472 # CDPATH.
22473 $as_unset CDPATH
22474
22475
22476
22477   as_lineno_1=$LINENO
22478   as_lineno_2=$LINENO
22479   test "x$as_lineno_1" != "x$as_lineno_2" &&
22480   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22481
22482   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22483   # uniformly replaced by the line number.  The first 'sed' inserts a
22484   # line-number line after each line using $LINENO; the second 'sed'
22485   # does the real work.  The second script uses 'N' to pair each
22486   # line-number line with the line containing $LINENO, and appends
22487   # trailing '-' during substitution so that $LINENO is not a special
22488   # case at line end.
22489   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22490   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22491   # E. McMahon (1931-1989) for sed's syntax.  :-)
22492   sed -n '
22493     p
22494     /[$]LINENO/=
22495   ' <$as_myself |
22496     sed '
22497       s/[$]LINENO.*/&-/
22498       t lineno
22499       b
22500       :lineno
22501       N
22502       :loop
22503       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22504       t loop
22505       s/-\n.*//
22506     ' >$as_me.lineno &&
22507   chmod +x "$as_me.lineno" ||
22508     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22509    { (exit 1); exit 1; }; }
22510
22511   # Don't try to exec as it changes $[0], causing all sort of problems
22512   # (the dirname of $[0] is not the place where we might find the
22513   # original and so on.  Autoconf is especially sensitive to this).
22514   . "./$as_me.lineno"
22515   # Exit status is that of the last command.
22516   exit
22517 }
22518
22519
22520 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22521   as_dirname=dirname
22522 else
22523   as_dirname=false
22524 fi
22525
22526 ECHO_C= ECHO_N= ECHO_T=
22527 case `echo -n x` in
22528 -n*)
22529   case `echo 'x\c'` in
22530   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22531   *)   ECHO_C='\c';;
22532   esac;;
22533 *)
22534   ECHO_N='-n';;
22535 esac
22536
22537 if expr a : '\(a\)' >/dev/null 2>&1 &&
22538    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22539   as_expr=expr
22540 else
22541   as_expr=false
22542 fi
22543
22544 rm -f conf$$ conf$$.exe conf$$.file
22545 if test -d conf$$.dir; then
22546   rm -f conf$$.dir/conf$$.file
22547 else
22548   rm -f conf$$.dir
22549   mkdir conf$$.dir
22550 fi
22551 echo >conf$$.file
22552 if ln -s conf$$.file conf$$ 2>/dev/null; then
22553   as_ln_s='ln -s'
22554   # ... but there are two gotchas:
22555   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22556   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22557   # In both cases, we have to default to `cp -p'.
22558   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22559     as_ln_s='cp -p'
22560 elif ln conf$$.file conf$$ 2>/dev/null; then
22561   as_ln_s=ln
22562 else
22563   as_ln_s='cp -p'
22564 fi
22565 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22566 rmdir conf$$.dir 2>/dev/null
22567
22568 if mkdir -p . 2>/dev/null; then
22569   as_mkdir_p=:
22570 else
22571   test -d ./-p && rmdir ./-p
22572   as_mkdir_p=false
22573 fi
22574
22575 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22576 # systems may use methods other than mode bits to determine executability.
22577 cat >conf$$.file <<_ASEOF
22578 #! /bin/sh
22579 exit 0
22580 _ASEOF
22581 chmod +x conf$$.file
22582 if test -x conf$$.file >/dev/null 2>&1; then
22583   as_executable_p="test -x"
22584 else
22585   as_executable_p=:
22586 fi
22587 rm -f conf$$.file
22588
22589 # Sed expression to map a string onto a valid CPP name.
22590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22591
22592 # Sed expression to map a string onto a valid variable name.
22593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22594
22595
22596 exec 6>&1
22597
22598 # Save the log message, to keep $[0] and so on meaningful, and to
22599 # report actual input values of CONFIG_FILES etc. instead of their
22600 # values after options handling.
22601 ac_log="
22602 This file was extended by $as_me, which was
22603 generated by GNU Autoconf 2.60.  Invocation command line was
22604
22605   CONFIG_FILES    = $CONFIG_FILES
22606   CONFIG_HEADERS  = $CONFIG_HEADERS
22607   CONFIG_LINKS    = $CONFIG_LINKS
22608   CONFIG_COMMANDS = $CONFIG_COMMANDS
22609   $ $0 $@
22610
22611 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22612 "
22613
22614 _ACEOF
22615
22616 cat >>$CONFIG_STATUS <<_ACEOF
22617 # Files that config.status was made for.
22618 config_files="$ac_config_files"
22619 config_headers="$ac_config_headers"
22620 config_commands="$ac_config_commands"
22621
22622 _ACEOF
22623
22624 cat >>$CONFIG_STATUS <<\_ACEOF
22625 ac_cs_usage="\
22626 \`$as_me' instantiates files from templates according to the
22627 current configuration.
22628
22629 Usage: $0 [OPTIONS] [FILE]...
22630
22631   -h, --help       print this help, then exit
22632   -V, --version    print version number, then exit
22633   -q, --quiet      do not print progress messages
22634   -d, --debug      don't remove temporary files
22635       --recheck    update $as_me by reconfiguring in the same conditions
22636   --file=FILE[:TEMPLATE]
22637                    instantiate the configuration file FILE
22638   --header=FILE[:TEMPLATE]
22639                    instantiate the configuration header FILE
22640
22641 Configuration files:
22642 $config_files
22643
22644 Configuration headers:
22645 $config_headers
22646
22647 Configuration commands:
22648 $config_commands
22649
22650 Report bugs to <bug-autoconf@gnu.org>."
22651
22652 _ACEOF
22653 cat >>$CONFIG_STATUS <<_ACEOF
22654 ac_cs_version="\\
22655 config.status
22656 configured by $0, generated by GNU Autoconf 2.60,
22657   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22658
22659 Copyright (C) 2006 Free Software Foundation, Inc.
22660 This config.status script is free software; the Free Software Foundation
22661 gives unlimited permission to copy, distribute and modify it."
22662
22663 ac_pwd='$ac_pwd'
22664 srcdir='$srcdir'
22665 INSTALL='$INSTALL'
22666 MKDIR_P='$MKDIR_P'
22667 _ACEOF
22668
22669 cat >>$CONFIG_STATUS <<\_ACEOF
22670 # If no file are specified by the user, then we need to provide default
22671 # value.  By we need to know if files were specified by the user.
22672 ac_need_defaults=:
22673 while test $# != 0
22674 do
22675   case $1 in
22676   --*=*)
22677     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22678     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22679     ac_shift=:
22680     ;;
22681   *)
22682     ac_option=$1
22683     ac_optarg=$2
22684     ac_shift=shift
22685     ;;
22686   esac
22687
22688   case $ac_option in
22689   # Handling of the options.
22690   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22691     ac_cs_recheck=: ;;
22692   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22693     echo "$ac_cs_version"; exit ;;
22694   --debug | --debu | --deb | --de | --d | -d )
22695     debug=: ;;
22696   --file | --fil | --fi | --f )
22697     $ac_shift
22698     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22699     ac_need_defaults=false;;
22700   --header | --heade | --head | --hea )
22701     $ac_shift
22702     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22703     ac_need_defaults=false;;
22704   --he | --h)
22705     # Conflict between --help and --header
22706     { echo "$as_me: error: ambiguous option: $1
22707 Try \`$0 --help' for more information." >&2
22708    { (exit 1); exit 1; }; };;
22709   --help | --hel | -h )
22710     echo "$ac_cs_usage"; exit ;;
22711   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22712   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22713     ac_cs_silent=: ;;
22714
22715   # This is an error.
22716   -*) { echo "$as_me: error: unrecognized option: $1
22717 Try \`$0 --help' for more information." >&2
22718    { (exit 1); exit 1; }; } ;;
22719
22720   *) ac_config_targets="$ac_config_targets $1"
22721      ac_need_defaults=false ;;
22722
22723   esac
22724   shift
22725 done
22726
22727 ac_configure_extra_args=
22728
22729 if $ac_cs_silent; then
22730   exec 6>/dev/null
22731   ac_configure_extra_args="$ac_configure_extra_args --silent"
22732 fi
22733
22734 _ACEOF
22735 cat >>$CONFIG_STATUS <<_ACEOF
22736 if \$ac_cs_recheck; then
22737   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22738   CONFIG_SHELL=$SHELL
22739   export CONFIG_SHELL
22740   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22741 fi
22742
22743 _ACEOF
22744 cat >>$CONFIG_STATUS <<\_ACEOF
22745 exec 5>>config.log
22746 {
22747   echo
22748   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22749 ## Running $as_me. ##
22750 _ASBOX
22751   echo "$ac_log"
22752 } >&5
22753
22754 _ACEOF
22755 cat >>$CONFIG_STATUS <<_ACEOF
22756 #
22757 # INIT-COMMANDS
22758 #
22759 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22760
22761 _ACEOF
22762
22763 cat >>$CONFIG_STATUS <<\_ACEOF
22764
22765 # Handling of arguments.
22766 for ac_config_target in $ac_config_targets
22767 do
22768   case $ac_config_target in
22769     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22770     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22771     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22772
22773   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22774 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22775    { (exit 1); exit 1; }; };;
22776   esac
22777 done
22778
22779
22780 # If the user did not use the arguments to specify the items to instantiate,
22781 # then the envvar interface is used.  Set only those that are not.
22782 # We use the long form for the default assignment because of an extremely
22783 # bizarre bug on SunOS 4.1.3.
22784 if $ac_need_defaults; then
22785   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22786   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22787   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22788 fi
22789
22790 # Have a temporary directory for convenience.  Make it in the build tree
22791 # simply because there is no reason against having it here, and in addition,
22792 # creating and moving files from /tmp can sometimes cause problems.
22793 # Hook for its removal unless debugging.
22794 # Note that there is a small window in which the directory will not be cleaned:
22795 # after its creation but before its name has been assigned to `$tmp'.
22796 $debug ||
22797 {
22798   tmp=
22799   trap 'exit_status=$?
22800   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22801 ' 0
22802   trap '{ (exit 1); exit 1; }' 1 2 13 15
22803 }
22804 # Create a (secure) tmp directory for tmp files.
22805
22806 {
22807   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22808   test -n "$tmp" && test -d "$tmp"
22809 }  ||
22810 {
22811   tmp=./conf$$-$RANDOM
22812   (umask 077 && mkdir "$tmp")
22813 } ||
22814 {
22815    echo "$me: cannot create a temporary directory in ." >&2
22816    { (exit 1); exit 1; }
22817 }
22818
22819 #
22820 # Set up the sed scripts for CONFIG_FILES section.
22821 #
22822
22823 # No need to generate the scripts if there are no CONFIG_FILES.
22824 # This happens for instance when ./config.status config.h
22825 if test -n "$CONFIG_FILES"; then
22826
22827 _ACEOF
22828
22829
22830
22831 ac_delim='%!_!# '
22832 for ac_last_try in false false false false false :; do
22833   cat >conf$$subs.sed <<_ACEOF
22834 SHELL!$SHELL$ac_delim
22835 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22836 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22837 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22838 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22839 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22840 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22841 exec_prefix!$exec_prefix$ac_delim
22842 prefix!$prefix$ac_delim
22843 program_transform_name!$program_transform_name$ac_delim
22844 bindir!$bindir$ac_delim
22845 sbindir!$sbindir$ac_delim
22846 libexecdir!$libexecdir$ac_delim
22847 datarootdir!$datarootdir$ac_delim
22848 datadir!$datadir$ac_delim
22849 sysconfdir!$sysconfdir$ac_delim
22850 sharedstatedir!$sharedstatedir$ac_delim
22851 localstatedir!$localstatedir$ac_delim
22852 includedir!$includedir$ac_delim
22853 oldincludedir!$oldincludedir$ac_delim
22854 docdir!$docdir$ac_delim
22855 infodir!$infodir$ac_delim
22856 htmldir!$htmldir$ac_delim
22857 dvidir!$dvidir$ac_delim
22858 pdfdir!$pdfdir$ac_delim
22859 psdir!$psdir$ac_delim
22860 libdir!$libdir$ac_delim
22861 localedir!$localedir$ac_delim
22862 mandir!$mandir$ac_delim
22863 DEFS!$DEFS$ac_delim
22864 ECHO_C!$ECHO_C$ac_delim
22865 ECHO_N!$ECHO_N$ac_delim
22866 ECHO_T!$ECHO_T$ac_delim
22867 LIBS!$LIBS$ac_delim
22868 build_alias!$build_alias$ac_delim
22869 host_alias!$host_alias$ac_delim
22870 target_alias!$target_alias$ac_delim
22871 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22872 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22873 INSTALL_DATA!$INSTALL_DATA$ac_delim
22874 am__isrc!$am__isrc$ac_delim
22875 CYGPATH_W!$CYGPATH_W$ac_delim
22876 PACKAGE!$PACKAGE$ac_delim
22877 VERSION!$VERSION$ac_delim
22878 ACLOCAL!$ACLOCAL$ac_delim
22879 AUTOCONF!$AUTOCONF$ac_delim
22880 AUTOMAKE!$AUTOMAKE$ac_delim
22881 AUTOHEADER!$AUTOHEADER$ac_delim
22882 MAKEINFO!$MAKEINFO$ac_delim
22883 install_sh!$install_sh$ac_delim
22884 STRIP!$STRIP$ac_delim
22885 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22886 mkdir_p!$mkdir_p$ac_delim
22887 AWK!$AWK$ac_delim
22888 SET_MAKE!$SET_MAKE$ac_delim
22889 am__leading_dot!$am__leading_dot$ac_delim
22890 AMTAR!$AMTAR$ac_delim
22891 am__tar!$am__tar$ac_delim
22892 am__untar!$am__untar$ac_delim
22893 build!$build$ac_delim
22894 build_cpu!$build_cpu$ac_delim
22895 build_vendor!$build_vendor$ac_delim
22896 build_os!$build_os$ac_delim
22897 host!$host$ac_delim
22898 host_cpu!$host_cpu$ac_delim
22899 host_vendor!$host_vendor$ac_delim
22900 host_os!$host_os$ac_delim
22901 CC!$CC$ac_delim
22902 CFLAGS!$CFLAGS$ac_delim
22903 LDFLAGS!$LDFLAGS$ac_delim
22904 CPPFLAGS!$CPPFLAGS$ac_delim
22905 ac_ct_CC!$ac_ct_CC$ac_delim
22906 EXEEXT!$EXEEXT$ac_delim
22907 OBJEXT!$OBJEXT$ac_delim
22908 DEPDIR!$DEPDIR$ac_delim
22909 am__include!$am__include$ac_delim
22910 am__quote!$am__quote$ac_delim
22911 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22912 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22913 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22914 CCDEPMODE!$CCDEPMODE$ac_delim
22915 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22916 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22917 SED!$SED$ac_delim
22918 GREP!$GREP$ac_delim
22919 EGREP!$EGREP$ac_delim
22920 LN_S!$LN_S$ac_delim
22921 ECHO!$ECHO$ac_delim
22922 AR!$AR$ac_delim
22923 RANLIB!$RANLIB$ac_delim
22924 CPP!$CPP$ac_delim
22925 CXX!$CXX$ac_delim
22926 CXXFLAGS!$CXXFLAGS$ac_delim
22927 ac_ct_CXX!$ac_ct_CXX$ac_delim
22928 CXXDEPMODE!$CXXDEPMODE$ac_delim
22929 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22930 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22931 _ACEOF
22932
22933   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22934     break
22935   elif $ac_last_try; then
22936     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22937 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22938    { (exit 1); exit 1; }; }
22939   else
22940     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22941   fi
22942 done
22943
22944 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22945 if test -n "$ac_eof"; then
22946   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22947   ac_eof=`expr $ac_eof + 1`
22948 fi
22949
22950 cat >>$CONFIG_STATUS <<_ACEOF
22951 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22952 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22953 _ACEOF
22954 sed '
22955 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22956 s/^/s,@/; s/!/@,|#_!!_#|/
22957 :n
22958 t n
22959 s/'"$ac_delim"'$/,g/; t
22960 s/$/\\/; p
22961 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22962 ' >>$CONFIG_STATUS <conf$$subs.sed
22963 rm -f conf$$subs.sed
22964 cat >>$CONFIG_STATUS <<_ACEOF
22965 CEOF$ac_eof
22966 _ACEOF
22967
22968
22969 ac_delim='%!_!# '
22970 for ac_last_try in false false false false false :; do
22971   cat >conf$$subs.sed <<_ACEOF
22972 CXXCPP!$CXXCPP$ac_delim
22973 F77!$F77$ac_delim
22974 FFLAGS!$FFLAGS$ac_delim
22975 ac_ct_F77!$ac_ct_F77$ac_delim
22976 LIBTOOL!$LIBTOOL$ac_delim
22977 WITH_LUA_TRUE!$WITH_LUA_TRUE$ac_delim
22978 WITH_LUA_FALSE!$WITH_LUA_FALSE$ac_delim
22979 LIBOBJS!$LIBOBJS$ac_delim
22980 LTLIBOBJS!$LTLIBOBJS$ac_delim
22981 _ACEOF
22982
22983   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
22984     break
22985   elif $ac_last_try; then
22986     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22987 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22988    { (exit 1); exit 1; }; }
22989   else
22990     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22991   fi
22992 done
22993
22994 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22995 if test -n "$ac_eof"; then
22996   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22997   ac_eof=`expr $ac_eof + 1`
22998 fi
22999
23000 cat >>$CONFIG_STATUS <<_ACEOF
23001 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23002 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23003 _ACEOF
23004 sed '
23005 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23006 s/^/s,@/; s/!/@,|#_!!_#|/
23007 :n
23008 t n
23009 s/'"$ac_delim"'$/,g/; t
23010 s/$/\\/; p
23011 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23012 ' >>$CONFIG_STATUS <conf$$subs.sed
23013 rm -f conf$$subs.sed
23014 cat >>$CONFIG_STATUS <<_ACEOF
23015 :end
23016 s/|#_!!_#|//g
23017 CEOF$ac_eof
23018 _ACEOF
23019
23020
23021 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23022 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23023 # trailing colons and then remove the whole line if VPATH becomes empty
23024 # (actually we leave an empty line to preserve line numbers).
23025 if test "x$srcdir" = x.; then
23026   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23027 s/:*\$(srcdir):*/:/
23028 s/:*\${srcdir}:*/:/
23029 s/:*@srcdir@:*/:/
23030 s/^\([^=]*=[     ]*\):*/\1/
23031 s/:*$//
23032 s/^[^=]*=[       ]*$//
23033 }'
23034 fi
23035
23036 cat >>$CONFIG_STATUS <<\_ACEOF
23037 fi # test -n "$CONFIG_FILES"
23038
23039
23040 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23041 do
23042   case $ac_tag in
23043   :[FHLC]) ac_mode=$ac_tag; continue;;
23044   esac
23045   case $ac_mode$ac_tag in
23046   :[FHL]*:*);;
23047   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23048 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23049    { (exit 1); exit 1; }; };;
23050   :[FH]-) ac_tag=-:-;;
23051   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23052   esac
23053   ac_save_IFS=$IFS
23054   IFS=:
23055   set x $ac_tag
23056   IFS=$ac_save_IFS
23057   shift
23058   ac_file=$1
23059   shift
23060
23061   case $ac_mode in
23062   :L) ac_source=$1;;
23063   :[FH])
23064     ac_file_inputs=
23065     for ac_f
23066     do
23067       case $ac_f in
23068       -) ac_f="$tmp/stdin";;
23069       *) # Look for the file first in the build tree, then in the source tree
23070          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23071          # because $ac_f cannot contain `:'.
23072          test -f "$ac_f" ||
23073            case $ac_f in
23074            [\\/$]*) false;;
23075            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23076            esac ||
23077            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23078 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23079    { (exit 1); exit 1; }; };;
23080       esac
23081       ac_file_inputs="$ac_file_inputs $ac_f"
23082     done
23083
23084     # Let's still pretend it is `configure' which instantiates (i.e., don't
23085     # use $as_me), people would be surprised to read:
23086     #    /* config.h.  Generated by config.status.  */
23087     configure_input="Generated from "`IFS=:
23088           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23089     if test x"$ac_file" != x-; then
23090       configure_input="$ac_file.  $configure_input"
23091       { echo "$as_me:$LINENO: creating $ac_file" >&5
23092 echo "$as_me: creating $ac_file" >&6;}
23093     fi
23094
23095     case $ac_tag in
23096     *:-:* | *:-) cat >"$tmp/stdin";;
23097     esac
23098     ;;
23099   esac
23100
23101   ac_dir=`$as_dirname -- "$ac_file" ||
23102 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23103          X"$ac_file" : 'X\(//\)[^/]' \| \
23104          X"$ac_file" : 'X\(//\)$' \| \
23105          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23106 echo X"$ac_file" |
23107     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23108             s//\1/
23109             q
23110           }
23111           /^X\(\/\/\)[^/].*/{
23112             s//\1/
23113             q
23114           }
23115           /^X\(\/\/\)$/{
23116             s//\1/
23117             q
23118           }
23119           /^X\(\/\).*/{
23120             s//\1/
23121             q
23122           }
23123           s/.*/./; q'`
23124   { as_dir="$ac_dir"
23125   case $as_dir in #(
23126   -*) as_dir=./$as_dir;;
23127   esac
23128   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23129     as_dirs=
23130     while :; do
23131       case $as_dir in #(
23132       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23133       *) as_qdir=$as_dir;;
23134       esac
23135       as_dirs="'$as_qdir' $as_dirs"
23136       as_dir=`$as_dirname -- "$as_dir" ||
23137 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23138          X"$as_dir" : 'X\(//\)[^/]' \| \
23139          X"$as_dir" : 'X\(//\)$' \| \
23140          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23141 echo X"$as_dir" |
23142     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23143             s//\1/
23144             q
23145           }
23146           /^X\(\/\/\)[^/].*/{
23147             s//\1/
23148             q
23149           }
23150           /^X\(\/\/\)$/{
23151             s//\1/
23152             q
23153           }
23154           /^X\(\/\).*/{
23155             s//\1/
23156             q
23157           }
23158           s/.*/./; q'`
23159       test -d "$as_dir" && break
23160     done
23161     test -z "$as_dirs" || eval "mkdir $as_dirs"
23162   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23163 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23164    { (exit 1); exit 1; }; }; }
23165   ac_builddir=.
23166
23167 case "$ac_dir" in
23168 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23169 *)
23170   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23171   # A ".." for each directory in $ac_dir_suffix.
23172   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23173   case $ac_top_builddir_sub in
23174   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23175   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23176   esac ;;
23177 esac
23178 ac_abs_top_builddir=$ac_pwd
23179 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23180 # for backward compatibility:
23181 ac_top_builddir=$ac_top_build_prefix
23182
23183 case $srcdir in
23184   .)  # We are building in place.
23185     ac_srcdir=.
23186     ac_top_srcdir=$ac_top_builddir_sub
23187     ac_abs_top_srcdir=$ac_pwd ;;
23188   [\\/]* | ?:[\\/]* )  # Absolute name.
23189     ac_srcdir=$srcdir$ac_dir_suffix;
23190     ac_top_srcdir=$srcdir
23191     ac_abs_top_srcdir=$srcdir ;;
23192   *) # Relative name.
23193     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23194     ac_top_srcdir=$ac_top_build_prefix$srcdir
23195     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23196 esac
23197 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23198
23199
23200   case $ac_mode in
23201   :F)
23202   #
23203   # CONFIG_FILE
23204   #
23205
23206   case $INSTALL in
23207   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23208   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23209   esac
23210   ac_MKDIR_P=$MKDIR_P
23211   case $MKDIR_P in
23212   [\\/$]* | ?:[\\/]* ) ;;
23213   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23214   esac
23215 _ACEOF
23216
23217 cat >>$CONFIG_STATUS <<\_ACEOF
23218 # If the template does not know about datarootdir, expand it.
23219 # FIXME: This hack should be removed a few years after 2.60.
23220 ac_datarootdir_hack=; ac_datarootdir_seen=
23221
23222 case `sed -n '/datarootdir/ {
23223   p
23224   q
23225 }
23226 /@datadir@/p
23227 /@docdir@/p
23228 /@infodir@/p
23229 /@localedir@/p
23230 /@mandir@/p
23231 ' $ac_file_inputs` in
23232 *datarootdir*) ac_datarootdir_seen=yes;;
23233 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23234   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23235 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23236 _ACEOF
23237 cat >>$CONFIG_STATUS <<_ACEOF
23238   ac_datarootdir_hack='
23239   s&@datadir@&$datadir&g
23240   s&@docdir@&$docdir&g
23241   s&@infodir@&$infodir&g
23242   s&@localedir@&$localedir&g
23243   s&@mandir@&$mandir&g
23244     s&\\\${datarootdir}&$datarootdir&g' ;;
23245 esac
23246 _ACEOF
23247
23248 # Neutralize VPATH when `$srcdir' = `.'.
23249 # Shell code in configure.ac might set extrasub.
23250 # FIXME: do we really want to maintain this feature?
23251 cat >>$CONFIG_STATUS <<_ACEOF
23252   sed "$ac_vpsub
23253 $extrasub
23254 _ACEOF
23255 cat >>$CONFIG_STATUS <<\_ACEOF
23256 :t
23257 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23258 s&@configure_input@&$configure_input&;t t
23259 s&@top_builddir@&$ac_top_builddir_sub&;t t
23260 s&@srcdir@&$ac_srcdir&;t t
23261 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23262 s&@top_srcdir@&$ac_top_srcdir&;t t
23263 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23264 s&@builddir@&$ac_builddir&;t t
23265 s&@abs_builddir@&$ac_abs_builddir&;t t
23266 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23267 s&@INSTALL@&$ac_INSTALL&;t t
23268 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23269 $ac_datarootdir_hack
23270 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23271
23272 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23273   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23274   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23275   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23276 which seems to be undefined.  Please make sure it is defined." >&5
23277 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23278 which seems to be undefined.  Please make sure it is defined." >&2;}
23279
23280   rm -f "$tmp/stdin"
23281   case $ac_file in
23282   -) cat "$tmp/out"; rm -f "$tmp/out";;
23283   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23284   esac
23285  ;;
23286   :H)
23287   #
23288   # CONFIG_HEADER
23289   #
23290 _ACEOF
23291
23292 # Transform confdefs.h into a sed script `conftest.defines', that
23293 # substitutes the proper values into config.h.in to produce config.h.
23294 rm -f conftest.defines conftest.tail
23295 # First, append a space to every undef/define line, to ease matching.
23296 echo 's/$/ /' >conftest.defines
23297 # Then, protect against being on the right side of a sed subst, or in
23298 # an unquoted here document, in config.status.  If some macros were
23299 # called several times there might be several #defines for the same
23300 # symbol, which is useless.  But do not sort them, since the last
23301 # AC_DEFINE must be honored.
23302 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23303 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23304 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23305 # PARAMS is the parameter list in the macro definition--in most cases, it's
23306 # just an empty string.
23307 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23308 ac_dB='\\)[      (].*,\\1define\\2'
23309 ac_dC=' '
23310 ac_dD=' ,'
23311
23312 uniq confdefs.h |
23313   sed -n '
23314         t rset
23315         :rset
23316         s/^[     ]*#[    ]*define[       ][      ]*//
23317         t ok
23318         d
23319         :ok
23320         s/[\\&,]/\\&/g
23321         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23322         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23323   ' >>conftest.defines
23324
23325 # Remove the space that was appended to ease matching.
23326 # Then replace #undef with comments.  This is necessary, for
23327 # example, in the case of _POSIX_SOURCE, which is predefined and required
23328 # on some systems where configure will not decide to define it.
23329 # (The regexp can be short, since the line contains either #define or #undef.)
23330 echo 's/ $//
23331 s,^[     #]*u.*,/* & */,' >>conftest.defines
23332
23333 # Break up conftest.defines:
23334 ac_max_sed_lines=50
23335
23336 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23337 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23338 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23339 # et cetera.
23340 ac_in='$ac_file_inputs'
23341 ac_out='"$tmp/out1"'
23342 ac_nxt='"$tmp/out2"'
23343
23344 while :
23345 do
23346   # Write a here document:
23347     cat >>$CONFIG_STATUS <<_ACEOF
23348     # First, check the format of the line:
23349     cat >"\$tmp/defines.sed" <<\\CEOF
23350 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23351 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23352 b
23353 :def
23354 _ACEOF
23355   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23356   echo 'CEOF
23357     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23358   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23359   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23360   grep . conftest.tail >/dev/null || break
23361   rm -f conftest.defines
23362   mv conftest.tail conftest.defines
23363 done
23364 rm -f conftest.defines conftest.tail
23365
23366 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23367 cat >>$CONFIG_STATUS <<\_ACEOF
23368   if test x"$ac_file" != x-; then
23369     echo "/* $configure_input  */" >"$tmp/config.h"
23370     cat "$ac_result" >>"$tmp/config.h"
23371     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23372       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23373 echo "$as_me: $ac_file is unchanged" >&6;}
23374     else
23375       rm -f $ac_file
23376       mv "$tmp/config.h" $ac_file
23377     fi
23378   else
23379     echo "/* $configure_input  */"
23380     cat "$ac_result"
23381   fi
23382   rm -f "$tmp/out12"
23383 # Compute $ac_file's index in $config_headers.
23384 _am_arg=$ac_file
23385 _am_stamp_count=1
23386 for _am_header in $config_headers :; do
23387   case $_am_header in
23388     $_am_arg | $_am_arg:* )
23389       break ;;
23390     * )
23391       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23392   esac
23393 done
23394 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23395 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23396          X"$_am_arg" : 'X\(//\)[^/]' \| \
23397          X"$_am_arg" : 'X\(//\)$' \| \
23398          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23399 echo X"$_am_arg" |
23400     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23401             s//\1/
23402             q
23403           }
23404           /^X\(\/\/\)[^/].*/{
23405             s//\1/
23406             q
23407           }
23408           /^X\(\/\/\)$/{
23409             s//\1/
23410             q
23411           }
23412           /^X\(\/\).*/{
23413             s//\1/
23414             q
23415           }
23416           s/.*/./; q'`/stamp-h$_am_stamp_count
23417  ;;
23418
23419   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23420 echo "$as_me: executing $ac_file commands" >&6;}
23421  ;;
23422   esac
23423
23424
23425   case $ac_file$ac_mode in
23426     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23427   # Strip MF so we end up with the name of the file.
23428   mf=`echo "$mf" | sed -e 's/:.*$//'`
23429   # Check whether this is an Automake generated Makefile or not.
23430   # We used to match only the files named `Makefile.in', but
23431   # some people rename them; so instead we look at the file content.
23432   # Grep'ing the first line is not enough: some people post-process
23433   # each Makefile.in and add a new line on top of each file to say so.
23434   # Grep'ing the whole file is not good either: AIX grep has a line
23435   # limit of 2048, but all sed's we know have understand at least 4000.
23436   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23437     dirpart=`$as_dirname -- "$mf" ||
23438 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23439          X"$mf" : 'X\(//\)[^/]' \| \
23440          X"$mf" : 'X\(//\)$' \| \
23441          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23442 echo X"$mf" |
23443     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23444             s//\1/
23445             q
23446           }
23447           /^X\(\/\/\)[^/].*/{
23448             s//\1/
23449             q
23450           }
23451           /^X\(\/\/\)$/{
23452             s//\1/
23453             q
23454           }
23455           /^X\(\/\).*/{
23456             s//\1/
23457             q
23458           }
23459           s/.*/./; q'`
23460   else
23461     continue
23462   fi
23463   # Extract the definition of DEPDIR, am__include, and am__quote
23464   # from the Makefile without running `make'.
23465   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23466   test -z "$DEPDIR" && continue
23467   am__include=`sed -n 's/^am__include = //p' < "$mf"`
23468   test -z "am__include" && continue
23469   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23470   # When using ansi2knr, U may be empty or an underscore; expand it
23471   U=`sed -n 's/^U = //p' < "$mf"`
23472   # Find all dependency output files, they are included files with
23473   # $(DEPDIR) in their names.  We invoke sed twice because it is the
23474   # simplest approach to changing $(DEPDIR) to its actual value in the
23475   # expansion.
23476   for file in `sed -n "
23477     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23478        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23479     # Make sure the directory exists.
23480     test -f "$dirpart/$file" && continue
23481     fdir=`$as_dirname -- "$file" ||
23482 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23483          X"$file" : 'X\(//\)[^/]' \| \
23484          X"$file" : 'X\(//\)$' \| \
23485          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23486 echo X"$file" |
23487     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23488             s//\1/
23489             q
23490           }
23491           /^X\(\/\/\)[^/].*/{
23492             s//\1/
23493             q
23494           }
23495           /^X\(\/\/\)$/{
23496             s//\1/
23497             q
23498           }
23499           /^X\(\/\).*/{
23500             s//\1/
23501             q
23502           }
23503           s/.*/./; q'`
23504     { as_dir=$dirpart/$fdir
23505   case $as_dir in #(
23506   -*) as_dir=./$as_dir;;
23507   esac
23508   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23509     as_dirs=
23510     while :; do
23511       case $as_dir in #(
23512       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23513       *) as_qdir=$as_dir;;
23514       esac
23515       as_dirs="'$as_qdir' $as_dirs"
23516       as_dir=`$as_dirname -- "$as_dir" ||
23517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23518          X"$as_dir" : 'X\(//\)[^/]' \| \
23519          X"$as_dir" : 'X\(//\)$' \| \
23520          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23521 echo X"$as_dir" |
23522     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23523             s//\1/
23524             q
23525           }
23526           /^X\(\/\/\)[^/].*/{
23527             s//\1/
23528             q
23529           }
23530           /^X\(\/\/\)$/{
23531             s//\1/
23532             q
23533           }
23534           /^X\(\/\).*/{
23535             s//\1/
23536             q
23537           }
23538           s/.*/./; q'`
23539       test -d "$as_dir" && break
23540     done
23541     test -z "$as_dirs" || eval "mkdir $as_dirs"
23542   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23543 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23544    { (exit 1); exit 1; }; }; }
23545     # echo "creating $dirpart/$file"
23546     echo '# dummy' > "$dirpart/$file"
23547   done
23548 done
23549  ;;
23550
23551   esac
23552 done # for ac_tag
23553
23554
23555 { (exit 0); exit 0; }
23556 _ACEOF
23557 chmod +x $CONFIG_STATUS
23558 ac_clean_files=$ac_clean_files_save
23559
23560
23561 # configure is writing to config.log, and then calls config.status.
23562 # config.status does its own redirection, appending to config.log.
23563 # Unfortunately, on DOS this fails, as config.log is still kept open
23564 # by configure, so config.status won't be able to write to it; its
23565 # output is simply discarded.  So we exec the FD to /dev/null,
23566 # effectively closing config.log, so it can be properly (re)opened and
23567 # appended to by config.status.  When coming back to configure, we
23568 # need to make the FD available again.
23569 if test "$no_create" != yes; then
23570   ac_cs_success=:
23571   ac_config_status_args=
23572   test "$silent" = yes &&
23573     ac_config_status_args="$ac_config_status_args --quiet"
23574   exec 5>/dev/null
23575   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23576   exec 5>>config.log
23577   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23578   # would make configure fail if this is the last instruction.
23579   $ac_cs_success || { (exit 1); exit 1; }
23580 fi
23581
23582