Make util_tdb.h static since it is now used by Samba3.
[samba.git] / source4 / lib / json / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for JSON C Library 0.3.
4 #
5 # Report bugs to <michael@metaparadigm.com>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291        echo_test_string=`eval $cmd` &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='JSON C Library'
425 PACKAGE_TARNAME='json-c'
426 PACKAGE_VERSION='0.3'
427 PACKAGE_STRING='JSON C Library 0.3'
428 PACKAGE_BUGREPORT='michael@metaparadigm.com'
429
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures JSON C Library 0.3 to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 Program names:
1010   --program-prefix=PREFIX            prepend PREFIX to installed program names
1011   --program-suffix=SUFFIX            append SUFFIX to installed program names
1012   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
1014 System types:
1015   --build=BUILD     configure for building on BUILD [guessed]
1016   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1017 _ACEOF
1018 fi
1019
1020 if test -n "$ac_init_help"; then
1021   case $ac_init_help in
1022      short | recursive ) echo "Configuration of JSON C Library 0.3:";;
1023    esac
1024   cat <<\_ACEOF
1025
1026 Optional Features:
1027   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1028   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1029   --enable-shared[=PKGS]
1030                           build shared libraries [default=yes]
1031   --enable-static[=PKGS]
1032                           build static libraries [default=yes]
1033   --enable-fast-install[=PKGS]
1034                           optimize for fast installation [default=yes]
1035   --disable-libtool-lock  avoid locking (might break parallel builds)
1036
1037 Optional Packages:
1038   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1039   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1040   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1041   --with-pic              try to use only PIC/non-PIC objects [default=use
1042                           both]
1043   --with-tags[=TAGS]
1044                           include additional configurations [automatic]
1045
1046 Some influential environment variables:
1047   CC          C compiler command
1048   CFLAGS      C compiler flags
1049   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1050               nonstandard directory <lib dir>
1051   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1052               headers in a nonstandard directory <include dir>
1053   CPP         C preprocessor
1054   CXX         C++ compiler command
1055   CXXFLAGS    C++ compiler flags
1056   CXXCPP      C++ preprocessor
1057   F77         Fortran 77 compiler command
1058   FFLAGS      Fortran 77 compiler flags
1059
1060 Use these variables to override the choices made by `configure' or to help
1061 it to find libraries and programs with nonstandard names/locations.
1062
1063 Report bugs to <michael@metaparadigm.com>.
1064 _ACEOF
1065 fi
1066
1067 if test "$ac_init_help" = "recursive"; then
1068   # If there are subdirs, report their specific --help.
1069   ac_popdir=`pwd`
1070   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1071     test -d $ac_dir || continue
1072     ac_builddir=.
1073
1074 if test "$ac_dir" != .; then
1075   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1076   # A "../" for each directory in $ac_dir_suffix.
1077   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1078 else
1079   ac_dir_suffix= ac_top_builddir=
1080 fi
1081
1082 case $srcdir in
1083   .)  # No --srcdir option.  We are building in place.
1084     ac_srcdir=.
1085     if test -z "$ac_top_builddir"; then
1086        ac_top_srcdir=.
1087     else
1088        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1089     fi ;;
1090   [\\/]* | ?:[\\/]* )  # Absolute path.
1091     ac_srcdir=$srcdir$ac_dir_suffix;
1092     ac_top_srcdir=$srcdir ;;
1093   *) # Relative path.
1094     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1095     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1096 esac
1097
1098 # Do not use `cd foo && pwd` to compute absolute paths, because
1099 # the directories may not exist.
1100 case `pwd` in
1101 .) ac_abs_builddir="$ac_dir";;
1102 *)
1103   case "$ac_dir" in
1104   .) ac_abs_builddir=`pwd`;;
1105   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1106   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1107   esac;;
1108 esac
1109 case $ac_abs_builddir in
1110 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1111 *)
1112   case ${ac_top_builddir}. in
1113   .) ac_abs_top_builddir=$ac_abs_builddir;;
1114   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1115   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1116   esac;;
1117 esac
1118 case $ac_abs_builddir in
1119 .) ac_abs_srcdir=$ac_srcdir;;
1120 *)
1121   case $ac_srcdir in
1122   .) ac_abs_srcdir=$ac_abs_builddir;;
1123   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1124   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1125   esac;;
1126 esac
1127 case $ac_abs_builddir in
1128 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1129 *)
1130   case $ac_top_srcdir in
1131   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1132   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1133   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1134   esac;;
1135 esac
1136
1137     cd $ac_dir
1138     # Check for guested configure; otherwise get Cygnus style configure.
1139     if test -f $ac_srcdir/configure.gnu; then
1140       echo
1141       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1142     elif test -f $ac_srcdir/configure; then
1143       echo
1144       $SHELL $ac_srcdir/configure  --help=recursive
1145     elif test -f $ac_srcdir/configure.ac ||
1146            test -f $ac_srcdir/configure.in; then
1147       echo
1148       $ac_configure --help
1149     else
1150       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1151     fi
1152     cd "$ac_popdir"
1153   done
1154 fi
1155
1156 test -n "$ac_init_help" && exit 0
1157 if $ac_init_version; then
1158   cat <<\_ACEOF
1159 JSON C Library configure 0.3
1160 generated by GNU Autoconf 2.59
1161
1162 Copyright (C) 2003 Free Software Foundation, Inc.
1163 This configure script is free software; the Free Software Foundation
1164 gives unlimited permission to copy, distribute and modify it.
1165 _ACEOF
1166   exit 0
1167 fi
1168 exec 5>config.log
1169 cat >&5 <<_ACEOF
1170 This file contains any messages produced by compilers while
1171 running configure, to aid debugging if configure makes a mistake.
1172
1173 It was created by JSON C Library $as_me 0.3, which was
1174 generated by GNU Autoconf 2.59.  Invocation command line was
1175
1176   $ $0 $@
1177
1178 _ACEOF
1179 {
1180 cat <<_ASUNAME
1181 ## --------- ##
1182 ## Platform. ##
1183 ## --------- ##
1184
1185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1190
1191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1192 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1193
1194 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1195 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1197 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1198 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1199 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1200 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1201
1202 _ASUNAME
1203
1204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1205 for as_dir in $PATH
1206 do
1207   IFS=$as_save_IFS
1208   test -z "$as_dir" && as_dir=.
1209   echo "PATH: $as_dir"
1210 done
1211
1212 } >&5
1213
1214 cat >&5 <<_ACEOF
1215
1216
1217 ## ----------- ##
1218 ## Core tests. ##
1219 ## ----------- ##
1220
1221 _ACEOF
1222
1223
1224 # Keep a trace of the command line.
1225 # Strip out --no-create and --no-recursion so they do not pile up.
1226 # Strip out --silent because we don't want to record it for future runs.
1227 # Also quote any args containing shell meta-characters.
1228 # Make two passes to allow for proper duplicate-argument suppression.
1229 ac_configure_args=
1230 ac_configure_args0=
1231 ac_configure_args1=
1232 ac_sep=
1233 ac_must_keep_next=false
1234 for ac_pass in 1 2
1235 do
1236   for ac_arg
1237   do
1238     case $ac_arg in
1239     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1240     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241     | -silent | --silent | --silen | --sile | --sil)
1242       continue ;;
1243     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1245     esac
1246     case $ac_pass in
1247     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1248     2)
1249       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1250       if test $ac_must_keep_next = true; then
1251         ac_must_keep_next=false # Got value, back to normal.
1252       else
1253         case $ac_arg in
1254           *=* | --config-cache | -C | -disable-* | --disable-* \
1255           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1256           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1257           | -with-* | --with-* | -without-* | --without-* | --x)
1258             case "$ac_configure_args0 " in
1259               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1260             esac
1261             ;;
1262           -* ) ac_must_keep_next=true ;;
1263         esac
1264       fi
1265       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1266       # Get rid of the leading space.
1267       ac_sep=" "
1268       ;;
1269     esac
1270   done
1271 done
1272 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1273 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1274
1275 # When interrupted or exit'd, cleanup temporary files, and complete
1276 # config.log.  We remove comments because anyway the quotes in there
1277 # would cause problems or look ugly.
1278 # WARNING: Be sure not to use single quotes in there, as some shells,
1279 # such as our DU 5.0 friend, will then `close' the trap.
1280 trap 'exit_status=$?
1281   # Save into config.log some information that might help in debugging.
1282   {
1283     echo
1284
1285     cat <<\_ASBOX
1286 ## ---------------- ##
1287 ## Cache variables. ##
1288 ## ---------------- ##
1289 _ASBOX
1290     echo
1291     # The following way of writing the cache mishandles newlines in values,
1292 {
1293   (set) 2>&1 |
1294     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1295     *ac_space=\ *)
1296       sed -n \
1297         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1298           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1299       ;;
1300     *)
1301       sed -n \
1302         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1303       ;;
1304     esac;
1305 }
1306     echo
1307
1308     cat <<\_ASBOX
1309 ## ----------------- ##
1310 ## Output variables. ##
1311 ## ----------------- ##
1312 _ASBOX
1313     echo
1314     for ac_var in $ac_subst_vars
1315     do
1316       eval ac_val=$`echo $ac_var`
1317       echo "$ac_var='"'"'$ac_val'"'"'"
1318     done | sort
1319     echo
1320
1321     if test -n "$ac_subst_files"; then
1322       cat <<\_ASBOX
1323 ## ------------- ##
1324 ## Output files. ##
1325 ## ------------- ##
1326 _ASBOX
1327       echo
1328       for ac_var in $ac_subst_files
1329       do
1330         eval ac_val=$`echo $ac_var`
1331         echo "$ac_var='"'"'$ac_val'"'"'"
1332       done | sort
1333       echo
1334     fi
1335
1336     if test -s confdefs.h; then
1337       cat <<\_ASBOX
1338 ## ----------- ##
1339 ## confdefs.h. ##
1340 ## ----------- ##
1341 _ASBOX
1342       echo
1343       sed "/^$/d" confdefs.h | sort
1344       echo
1345     fi
1346     test "$ac_signal" != 0 &&
1347       echo "$as_me: caught signal $ac_signal"
1348     echo "$as_me: exit $exit_status"
1349   } >&5
1350   rm -f core *.core &&
1351   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1352     exit $exit_status
1353      ' 0
1354 for ac_signal in 1 2 13 15; do
1355   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1356 done
1357 ac_signal=0
1358
1359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1360 rm -rf conftest* confdefs.h
1361 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1362 echo >confdefs.h
1363
1364 # Predefined preprocessor variables.
1365
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_NAME "$PACKAGE_NAME"
1368 _ACEOF
1369
1370
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1373 _ACEOF
1374
1375
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1378 _ACEOF
1379
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_STRING "$PACKAGE_STRING"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1388 _ACEOF
1389
1390
1391 # Let the site file select an alternate cache file if it wants to.
1392 # Prefer explicitly selected file to automatically selected ones.
1393 if test -z "$CONFIG_SITE"; then
1394   if test "x$prefix" != xNONE; then
1395     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1396   else
1397     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1398   fi
1399 fi
1400 for ac_site_file in $CONFIG_SITE; do
1401   if test -r "$ac_site_file"; then
1402     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1403 echo "$as_me: loading site script $ac_site_file" >&6;}
1404     sed 's/^/| /' "$ac_site_file" >&5
1405     . "$ac_site_file"
1406   fi
1407 done
1408
1409 if test -r "$cache_file"; then
1410   # Some versions of bash will fail to source /dev/null (special
1411   # files actually), so we avoid doing that.
1412   if test -f "$cache_file"; then
1413     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1414 echo "$as_me: loading cache $cache_file" >&6;}
1415     case $cache_file in
1416       [\\/]* | ?:[\\/]* ) . $cache_file;;
1417       *)                      . ./$cache_file;;
1418     esac
1419   fi
1420 else
1421   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1422 echo "$as_me: creating cache $cache_file" >&6;}
1423   >$cache_file
1424 fi
1425
1426 # Check that the precious variables saved in the cache have kept the same
1427 # value.
1428 ac_cache_corrupted=false
1429 for ac_var in `(set) 2>&1 |
1430                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1431   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1432   eval ac_new_set=\$ac_env_${ac_var}_set
1433   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1434   eval ac_new_val="\$ac_env_${ac_var}_value"
1435   case $ac_old_set,$ac_new_set in
1436     set,)
1437       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1439       ac_cache_corrupted=: ;;
1440     ,set)
1441       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1443       ac_cache_corrupted=: ;;
1444     ,);;
1445     *)
1446       if test "x$ac_old_val" != "x$ac_new_val"; then
1447         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1448 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1449         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1450 echo "$as_me:   former value:  $ac_old_val" >&2;}
1451         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1452 echo "$as_me:   current value: $ac_new_val" >&2;}
1453         ac_cache_corrupted=:
1454       fi;;
1455   esac
1456   # Pass precious variables to config.status.
1457   if test "$ac_new_set" = set; then
1458     case $ac_new_val in
1459     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1461     *) ac_arg=$ac_var=$ac_new_val ;;
1462     esac
1463     case " $ac_configure_args " in
1464       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1465       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1466     esac
1467   fi
1468 done
1469 if $ac_cache_corrupted; then
1470   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1471 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1472   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1473 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1474    { (exit 1); exit 1; }; }
1475 fi
1476
1477 ac_ext=c
1478 ac_cpp='$CPP $CPPFLAGS'
1479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510 am__api_version="1.4"
1511 ac_aux_dir=
1512 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1513   if test -f $ac_dir/install-sh; then
1514     ac_aux_dir=$ac_dir
1515     ac_install_sh="$ac_aux_dir/install-sh -c"
1516     break
1517   elif test -f $ac_dir/install.sh; then
1518     ac_aux_dir=$ac_dir
1519     ac_install_sh="$ac_aux_dir/install.sh -c"
1520     break
1521   elif test -f $ac_dir/shtool; then
1522     ac_aux_dir=$ac_dir
1523     ac_install_sh="$ac_aux_dir/shtool install -c"
1524     break
1525   fi
1526 done
1527 if test -z "$ac_aux_dir"; then
1528   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1529 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1530    { (exit 1); exit 1; }; }
1531 fi
1532 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1533 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1534 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1535
1536 # Find a good install program.  We prefer a C program (faster),
1537 # so one script is as good as another.  But avoid the broken or
1538 # incompatible versions:
1539 # SysV /etc/install, /usr/sbin/install
1540 # SunOS /usr/etc/install
1541 # IRIX /sbin/install
1542 # AIX /bin/install
1543 # AmigaOS /C/install, which installs bootblocks on floppy discs
1544 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1545 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1546 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1547 # OS/2's system install, which has a completely different semantic
1548 # ./install, which can be erroneously created by make from ./install.sh.
1549 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1550 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1551 if test -z "$INSTALL"; then
1552 if test "${ac_cv_path_install+set}" = set; then
1553   echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556 for as_dir in $PATH
1557 do
1558   IFS=$as_save_IFS
1559   test -z "$as_dir" && as_dir=.
1560   # Account for people who put trailing slashes in PATH elements.
1561 case $as_dir/ in
1562   ./ | .// | /cC/* | \
1563   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1564   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1565   /usr/ucb/* ) ;;
1566   *)
1567     # OSF1 and SCO ODT 3.0 have their own names for install.
1568     # Don't use installbsd from OSF since it installs stuff as root
1569     # by default.
1570     for ac_prog in ginstall scoinst install; do
1571       for ac_exec_ext in '' $ac_executable_extensions; do
1572         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1573           if test $ac_prog = install &&
1574             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1575             # AIX install.  It has an incompatible calling convention.
1576             :
1577           elif test $ac_prog = install &&
1578             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1579             # program-specific install script used by HP pwplus--don't use.
1580             :
1581           else
1582             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1583             break 3
1584           fi
1585         fi
1586       done
1587     done
1588     ;;
1589 esac
1590 done
1591
1592
1593 fi
1594   if test "${ac_cv_path_install+set}" = set; then
1595     INSTALL=$ac_cv_path_install
1596   else
1597     # As a last resort, use the slow shell script.  We don't cache a
1598     # path for INSTALL within a source directory, because that will
1599     # break other packages using the cache if that directory is
1600     # removed, or if the path is relative.
1601     INSTALL=$ac_install_sh
1602   fi
1603 fi
1604 echo "$as_me:$LINENO: result: $INSTALL" >&5
1605 echo "${ECHO_T}$INSTALL" >&6
1606
1607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1608 # It thinks the first close brace ends the variable substitution.
1609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1610
1611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1612
1613 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1614
1615 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1616 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1617 # Just in case
1618 sleep 1
1619 echo timestamp > conftestfile
1620 # Do `set' in a subshell so we don't clobber the current shell's
1621 # arguments.  Must try -L first in case configure is actually a
1622 # symlink; some systems play weird games with the mod time of symlinks
1623 # (eg FreeBSD returns the mod time of the symlink's containing
1624 # directory).
1625 if (
1626    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1627    if test "$*" = "X"; then
1628       # -L didn't work.
1629       set X `ls -t $srcdir/configure conftestfile`
1630    fi
1631    if test "$*" != "X $srcdir/configure conftestfile" \
1632       && test "$*" != "X conftestfile $srcdir/configure"; then
1633
1634       # If neither matched, then we have a broken ls.  This can happen
1635       # if, for instance, CONFIG_SHELL is bash and it inherits a
1636       # broken ls alias from the environment.  This has actually
1637       # happened.  Such a system could not be considered "sane".
1638       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1639 alias in your environment" >&5
1640 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1641 alias in your environment" >&2;}
1642    { (exit 1); exit 1; }; }
1643    fi
1644
1645    test "$2" = conftestfile
1646    )
1647 then
1648    # Ok.
1649    :
1650 else
1651    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1652 Check your system clock" >&5
1653 echo "$as_me: error: newly created file is older than distributed files!
1654 Check your system clock" >&2;}
1655    { (exit 1); exit 1; }; }
1656 fi
1657 rm -f conftest*
1658 echo "$as_me:$LINENO: result: yes" >&5
1659 echo "${ECHO_T}yes" >&6
1660 test "$program_prefix" != NONE &&
1661   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1662 # Use a double $ so make ignores it.
1663 test "$program_suffix" != NONE &&
1664   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1665 # Double any \ or $.  echo might interpret backslashes.
1666 # By default was `s,x,x', remove it if useless.
1667 cat <<\_ACEOF >conftest.sed
1668 s/[\\$]/&&/g;s/;s,x,x,$//
1669 _ACEOF
1670 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1671 rm conftest.sed
1672
1673 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1674 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1675 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1676 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1677   echo $ECHO_N "(cached) $ECHO_C" >&6
1678 else
1679   cat >conftest.make <<\_ACEOF
1680 all:
1681         @echo 'ac_maketemp="$(MAKE)"'
1682 _ACEOF
1683 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1684 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1685 if test -n "$ac_maketemp"; then
1686   eval ac_cv_prog_make_${ac_make}_set=yes
1687 else
1688   eval ac_cv_prog_make_${ac_make}_set=no
1689 fi
1690 rm -f conftest.make
1691 fi
1692 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1693   echo "$as_me:$LINENO: result: yes" >&5
1694 echo "${ECHO_T}yes" >&6
1695   SET_MAKE=
1696 else
1697   echo "$as_me:$LINENO: result: no" >&5
1698 echo "${ECHO_T}no" >&6
1699   SET_MAKE="MAKE=${MAKE-make}"
1700 fi
1701
1702
1703 PACKAGE=JSON C Library
1704
1705 VERSION=0.3
1706
1707 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1708   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1709 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1710    { (exit 1); exit 1; }; }
1711 fi
1712
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE "$PACKAGE"
1715 _ACEOF
1716
1717
1718 cat >>confdefs.h <<_ACEOF
1719 #define VERSION "$VERSION"
1720 _ACEOF
1721
1722
1723
1724 missing_dir=`cd $ac_aux_dir && pwd`
1725 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1726 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1727 # Run test in a subshell; some versions of sh will print an error if
1728 # an executable is not found, even if stderr is redirected.
1729 # Redirect stdin to placate older versions of autoconf.  Sigh.
1730 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1731    ACLOCAL=aclocal-${am__api_version}
1732    echo "$as_me:$LINENO: result: found" >&5
1733 echo "${ECHO_T}found" >&6
1734 else
1735    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1736    echo "$as_me:$LINENO: result: missing" >&5
1737 echo "${ECHO_T}missing" >&6
1738 fi
1739
1740 echo "$as_me:$LINENO: checking for working autoconf" >&5
1741 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1742 # Run test in a subshell; some versions of sh will print an error if
1743 # an executable is not found, even if stderr is redirected.
1744 # Redirect stdin to placate older versions of autoconf.  Sigh.
1745 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1746    AUTOCONF=autoconf
1747    echo "$as_me:$LINENO: result: found" >&5
1748 echo "${ECHO_T}found" >&6
1749 else
1750    AUTOCONF="$missing_dir/missing autoconf"
1751    echo "$as_me:$LINENO: result: missing" >&5
1752 echo "${ECHO_T}missing" >&6
1753 fi
1754
1755 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1756 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1757 # Run test in a subshell; some versions of sh will print an error if
1758 # an executable is not found, even if stderr is redirected.
1759 # Redirect stdin to placate older versions of autoconf.  Sigh.
1760 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1761    AUTOMAKE=automake-${am__api_version}
1762    echo "$as_me:$LINENO: result: found" >&5
1763 echo "${ECHO_T}found" >&6
1764 else
1765    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1766    echo "$as_me:$LINENO: result: missing" >&5
1767 echo "${ECHO_T}missing" >&6
1768 fi
1769
1770 echo "$as_me:$LINENO: checking for working autoheader" >&5
1771 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1772 # Run test in a subshell; some versions of sh will print an error if
1773 # an executable is not found, even if stderr is redirected.
1774 # Redirect stdin to placate older versions of autoconf.  Sigh.
1775 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1776    AUTOHEADER=autoheader
1777    echo "$as_me:$LINENO: result: found" >&5
1778 echo "${ECHO_T}found" >&6
1779 else
1780    AUTOHEADER="$missing_dir/missing autoheader"
1781    echo "$as_me:$LINENO: result: missing" >&5
1782 echo "${ECHO_T}missing" >&6
1783 fi
1784
1785 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1786 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1787 # Run test in a subshell; some versions of sh will print an error if
1788 # an executable is not found, even if stderr is redirected.
1789 # Redirect stdin to placate older versions of autoconf.  Sigh.
1790 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1791    MAKEINFO=makeinfo
1792    echo "$as_me:$LINENO: result: found" >&5
1793 echo "${ECHO_T}found" >&6
1794 else
1795    MAKEINFO="$missing_dir/missing makeinfo"
1796    echo "$as_me:$LINENO: result: missing" >&5
1797 echo "${ECHO_T}missing" >&6
1798 fi
1799
1800
1801
1802 # Checks for programs.
1803
1804 # Checks for libraries.
1805
1806 # Checks for header files.
1807
1808           ac_config_headers="$ac_config_headers config.h"
1809
1810           ac_config_commands="$ac_config_commands default-1"
1811
1812 ac_ext=c
1813 ac_cpp='$CPP $CPPFLAGS'
1814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1817 if test -n "$ac_tool_prefix"; then
1818   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1819 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1820 echo "$as_me:$LINENO: checking for $ac_word" >&5
1821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822 if test "${ac_cv_prog_CC+set}" = set; then
1823   echo $ECHO_N "(cached) $ECHO_C" >&6
1824 else
1825   if test -n "$CC"; then
1826   ac_cv_prog_CC="$CC" # Let the user override the test.
1827 else
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 for as_dir in $PATH
1830 do
1831   IFS=$as_save_IFS
1832   test -z "$as_dir" && as_dir=.
1833   for ac_exec_ext in '' $ac_executable_extensions; do
1834   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837     break 2
1838   fi
1839 done
1840 done
1841
1842 fi
1843 fi
1844 CC=$ac_cv_prog_CC
1845 if test -n "$CC"; then
1846   echo "$as_me:$LINENO: result: $CC" >&5
1847 echo "${ECHO_T}$CC" >&6
1848 else
1849   echo "$as_me:$LINENO: result: no" >&5
1850 echo "${ECHO_T}no" >&6
1851 fi
1852
1853 fi
1854 if test -z "$ac_cv_prog_CC"; then
1855   ac_ct_CC=$CC
1856   # Extract the first word of "gcc", so it can be a program name with args.
1857 set dummy gcc; ac_word=$2
1858 echo "$as_me:$LINENO: checking for $ac_word" >&5
1859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1861   echo $ECHO_N "(cached) $ECHO_C" >&6
1862 else
1863   if test -n "$ac_ct_CC"; then
1864   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1865 else
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 for as_dir in $PATH
1868 do
1869   IFS=$as_save_IFS
1870   test -z "$as_dir" && as_dir=.
1871   for ac_exec_ext in '' $ac_executable_extensions; do
1872   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873     ac_cv_prog_ac_ct_CC="gcc"
1874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875     break 2
1876   fi
1877 done
1878 done
1879
1880 fi
1881 fi
1882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1883 if test -n "$ac_ct_CC"; then
1884   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1885 echo "${ECHO_T}$ac_ct_CC" >&6
1886 else
1887   echo "$as_me:$LINENO: result: no" >&5
1888 echo "${ECHO_T}no" >&6
1889 fi
1890
1891   CC=$ac_ct_CC
1892 else
1893   CC="$ac_cv_prog_CC"
1894 fi
1895
1896 if test -z "$CC"; then
1897   if test -n "$ac_tool_prefix"; then
1898   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1899 set dummy ${ac_tool_prefix}cc; ac_word=$2
1900 echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902 if test "${ac_cv_prog_CC+set}" = set; then
1903   echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905   if test -n "$CC"; then
1906   ac_cv_prog_CC="$CC" # Let the user override the test.
1907 else
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1910 do
1911   IFS=$as_save_IFS
1912   test -z "$as_dir" && as_dir=.
1913   for ac_exec_ext in '' $ac_executable_extensions; do
1914   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915     ac_cv_prog_CC="${ac_tool_prefix}cc"
1916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917     break 2
1918   fi
1919 done
1920 done
1921
1922 fi
1923 fi
1924 CC=$ac_cv_prog_CC
1925 if test -n "$CC"; then
1926   echo "$as_me:$LINENO: result: $CC" >&5
1927 echo "${ECHO_T}$CC" >&6
1928 else
1929   echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1931 fi
1932
1933 fi
1934 if test -z "$ac_cv_prog_CC"; then
1935   ac_ct_CC=$CC
1936   # Extract the first word of "cc", so it can be a program name with args.
1937 set dummy cc; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1941   echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943   if test -n "$ac_ct_CC"; then
1944   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1945 else
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1948 do
1949   IFS=$as_save_IFS
1950   test -z "$as_dir" && as_dir=.
1951   for ac_exec_ext in '' $ac_executable_extensions; do
1952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953     ac_cv_prog_ac_ct_CC="cc"
1954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955     break 2
1956   fi
1957 done
1958 done
1959
1960 fi
1961 fi
1962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1963 if test -n "$ac_ct_CC"; then
1964   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1965 echo "${ECHO_T}$ac_ct_CC" >&6
1966 else
1967   echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1969 fi
1970
1971   CC=$ac_ct_CC
1972 else
1973   CC="$ac_cv_prog_CC"
1974 fi
1975
1976 fi
1977 if test -z "$CC"; then
1978   # Extract the first word of "cc", so it can be a program name with args.
1979 set dummy cc; ac_word=$2
1980 echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983   echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985   if test -n "$CC"; then
1986   ac_cv_prog_CC="$CC" # Let the user override the test.
1987 else
1988   ac_prog_rejected=no
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1991 do
1992   IFS=$as_save_IFS
1993   test -z "$as_dir" && as_dir=.
1994   for ac_exec_ext in '' $ac_executable_extensions; do
1995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1997        ac_prog_rejected=yes
1998        continue
1999      fi
2000     ac_cv_prog_CC="cc"
2001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002     break 2
2003   fi
2004 done
2005 done
2006
2007 if test $ac_prog_rejected = yes; then
2008   # We found a bogon in the path, so make sure we never use it.
2009   set dummy $ac_cv_prog_CC
2010   shift
2011   if test $# != 0; then
2012     # We chose a different compiler from the bogus one.
2013     # However, it has the same basename, so the bogon will be chosen
2014     # first if we set CC to just the basename; use the full file name.
2015     shift
2016     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2017   fi
2018 fi
2019 fi
2020 fi
2021 CC=$ac_cv_prog_CC
2022 if test -n "$CC"; then
2023   echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6
2025 else
2026   echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2028 fi
2029
2030 fi
2031 if test -z "$CC"; then
2032   if test -n "$ac_tool_prefix"; then
2033   for ac_prog in cl
2034   do
2035     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2037 echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039 if test "${ac_cv_prog_CC+set}" = set; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   if test -n "$CC"; then
2043   ac_cv_prog_CC="$CC" # Let the user override the test.
2044 else
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2047 do
2048   IFS=$as_save_IFS
2049   test -z "$as_dir" && as_dir=.
2050   for ac_exec_ext in '' $ac_executable_extensions; do
2051   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054     break 2
2055   fi
2056 done
2057 done
2058
2059 fi
2060 fi
2061 CC=$ac_cv_prog_CC
2062 if test -n "$CC"; then
2063   echo "$as_me:$LINENO: result: $CC" >&5
2064 echo "${ECHO_T}$CC" >&6
2065 else
2066   echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2068 fi
2069
2070     test -n "$CC" && break
2071   done
2072 fi
2073 if test -z "$CC"; then
2074   ac_ct_CC=$CC
2075   for ac_prog in cl
2076 do
2077   # Extract the first word of "$ac_prog", so it can be a program name with args.
2078 set dummy $ac_prog; ac_word=$2
2079 echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2082   echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084   if test -n "$ac_ct_CC"; then
2085   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2086 else
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 for as_dir in $PATH
2089 do
2090   IFS=$as_save_IFS
2091   test -z "$as_dir" && as_dir=.
2092   for ac_exec_ext in '' $ac_executable_extensions; do
2093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094     ac_cv_prog_ac_ct_CC="$ac_prog"
2095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096     break 2
2097   fi
2098 done
2099 done
2100
2101 fi
2102 fi
2103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104 if test -n "$ac_ct_CC"; then
2105   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106 echo "${ECHO_T}$ac_ct_CC" >&6
2107 else
2108   echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6
2110 fi
2111
2112   test -n "$ac_ct_CC" && break
2113 done
2114
2115   CC=$ac_ct_CC
2116 fi
2117
2118 fi
2119
2120
2121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&2;}
2125    { (exit 1); exit 1; }; }
2126
2127 # Provide some information about the compiler.
2128 echo "$as_me:$LINENO:" \
2129      "checking for C compiler version" >&5
2130 ac_compiler=`set X $ac_compile; echo $2`
2131 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2132   (eval $ac_compiler --version </dev/null >&5) 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); }
2136 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2137   (eval $ac_compiler -v </dev/null >&5) 2>&5
2138   ac_status=$?
2139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140   (exit $ac_status); }
2141 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2142   (eval $ac_compiler -V </dev/null >&5) 2>&5
2143   ac_status=$?
2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145   (exit $ac_status); }
2146
2147 cat >conftest.$ac_ext <<_ACEOF
2148 /* confdefs.h.  */
2149 _ACEOF
2150 cat confdefs.h >>conftest.$ac_ext
2151 cat >>conftest.$ac_ext <<_ACEOF
2152 /* end confdefs.h.  */
2153
2154 int
2155 main ()
2156 {
2157
2158   ;
2159   return 0;
2160 }
2161 _ACEOF
2162 ac_clean_files_save=$ac_clean_files
2163 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2164 # Try to create an executable without -o first, disregard a.out.
2165 # It will help us diagnose broken compilers, and finding out an intuition
2166 # of exeext.
2167 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2168 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2169 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2170 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2171   (eval $ac_link_default) 2>&5
2172   ac_status=$?
2173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174   (exit $ac_status); }; then
2175   # Find the output, starting from the most likely.  This scheme is
2176 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2177 # resort.
2178
2179 # Be careful to initialize this variable, since it used to be cached.
2180 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2181 ac_cv_exeext=
2182 # b.out is created by i960 compilers.
2183 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2184 do
2185   test -f "$ac_file" || continue
2186   case $ac_file in
2187     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2188         ;;
2189     conftest.$ac_ext )
2190         # This is the source file.
2191         ;;
2192     [ab].out )
2193         # We found the default executable, but exeext='' is most
2194         # certainly right.
2195         break;;
2196     *.* )
2197         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198         # FIXME: I believe we export ac_cv_exeext for Libtool,
2199         # but it would be cool to find out if it's true.  Does anybody
2200         # maintain Libtool? --akim.
2201         export ac_cv_exeext
2202         break;;
2203     * )
2204         break;;
2205   esac
2206 done
2207 else
2208   echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2210
2211 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&5
2213 echo "$as_me: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&2;}
2215    { (exit 77); exit 77; }; }
2216 fi
2217
2218 ac_exeext=$ac_cv_exeext
2219 echo "$as_me:$LINENO: result: $ac_file" >&5
2220 echo "${ECHO_T}$ac_file" >&6
2221
2222 # Check the compiler produces executables we can run.  If not, either
2223 # the compiler is broken, or we cross compile.
2224 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2225 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2226 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2227 # If not cross compiling, check that we can run a simple program.
2228 if test "$cross_compiling" != yes; then
2229   if { ac_try='./$ac_file'
2230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231   (eval $ac_try) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; }; then
2235     cross_compiling=no
2236   else
2237     if test "$cross_compiling" = maybe; then
2238         cross_compiling=yes
2239     else
2240         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: cannot run C compiled programs.
2244 If you meant to cross compile, use \`--host'.
2245 See \`config.log' for more details." >&2;}
2246    { (exit 1); exit 1; }; }
2247     fi
2248   fi
2249 fi
2250 echo "$as_me:$LINENO: result: yes" >&5
2251 echo "${ECHO_T}yes" >&6
2252
2253 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2254 ac_clean_files=$ac_clean_files_save
2255 # Check the compiler produces executables we can run.  If not, either
2256 # the compiler is broken, or we cross compile.
2257 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2259 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260 echo "${ECHO_T}$cross_compiling" >&6
2261
2262 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2265   (eval $ac_link) 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; then
2269   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2270 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2271 # work properly (i.e., refer to `conftest.exe'), while it won't with
2272 # `rm'.
2273 for ac_file in conftest.exe conftest conftest.*; do
2274   test -f "$ac_file" || continue
2275   case $ac_file in
2276     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2277     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2278           export ac_cv_exeext
2279           break;;
2280     * ) break;;
2281   esac
2282 done
2283 else
2284   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&5
2286 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&2;}
2288    { (exit 1); exit 1; }; }
2289 fi
2290
2291 rm -f conftest$ac_cv_exeext
2292 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2293 echo "${ECHO_T}$ac_cv_exeext" >&6
2294
2295 rm -f conftest.$ac_ext
2296 EXEEXT=$ac_cv_exeext
2297 ac_exeext=$EXEEXT
2298 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2299 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2300 if test "${ac_cv_objext+set}" = set; then
2301   echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303   cat >conftest.$ac_ext <<_ACEOF
2304 /* confdefs.h.  */
2305 _ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h.  */
2309
2310 int
2311 main ()
2312 {
2313
2314   ;
2315   return 0;
2316 }
2317 _ACEOF
2318 rm -f conftest.o conftest.obj
2319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320   (eval $ac_compile) 2>&5
2321   ac_status=$?
2322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323   (exit $ac_status); }; then
2324   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2325   case $ac_file in
2326     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2327     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2328        break;;
2329   esac
2330 done
2331 else
2332   echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2334
2335 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&2;}
2339    { (exit 1); exit 1; }; }
2340 fi
2341
2342 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2343 fi
2344 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2345 echo "${ECHO_T}$ac_cv_objext" >&6
2346 OBJEXT=$ac_cv_objext
2347 ac_objext=$OBJEXT
2348 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2349 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2350 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2351   echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353   cat >conftest.$ac_ext <<_ACEOF
2354 /* confdefs.h.  */
2355 _ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h.  */
2359
2360 int
2361 main ()
2362 {
2363 #ifndef __GNUC__
2364        choke me
2365 #endif
2366
2367   ;
2368   return 0;
2369 }
2370 _ACEOF
2371 rm -f conftest.$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373   (eval $ac_compile) 2>conftest.er1
2374   ac_status=$?
2375   grep -v '^ *+' conftest.er1 >conftest.err
2376   rm -f conftest.er1
2377   cat conftest.err >&5
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); } &&
2380          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382   (eval $ac_try) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }; } &&
2386          { ac_try='test -s conftest.$ac_objext'
2387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388   (eval $ac_try) 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); }; }; then
2392   ac_compiler_gnu=yes
2393 else
2394   echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2396
2397 ac_compiler_gnu=no
2398 fi
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2401
2402 fi
2403 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2404 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2405 GCC=`test $ac_compiler_gnu = yes && echo yes`
2406 ac_test_CFLAGS=${CFLAGS+set}
2407 ac_save_CFLAGS=$CFLAGS
2408 CFLAGS="-g"
2409 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2410 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2411 if test "${ac_cv_prog_cc_g+set}" = set; then
2412   echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414   cat >conftest.$ac_ext <<_ACEOF
2415 /* confdefs.h.  */
2416 _ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h.  */
2420
2421 int
2422 main ()
2423 {
2424
2425   ;
2426   return 0;
2427 }
2428 _ACEOF
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431   (eval $ac_compile) 2>conftest.er1
2432   ac_status=$?
2433   grep -v '^ *+' conftest.er1 >conftest.err
2434   rm -f conftest.er1
2435   cat conftest.err >&5
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); } &&
2438          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440   (eval $ac_try) 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }; } &&
2444          { ac_try='test -s conftest.$ac_objext'
2445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446   (eval $ac_try) 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); }; }; then
2450   ac_cv_prog_cc_g=yes
2451 else
2452   echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2454
2455 ac_cv_prog_cc_g=no
2456 fi
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 fi
2459 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2460 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2461 if test "$ac_test_CFLAGS" = set; then
2462   CFLAGS=$ac_save_CFLAGS
2463 elif test $ac_cv_prog_cc_g = yes; then
2464   if test "$GCC" = yes; then
2465     CFLAGS="-g -O2"
2466   else
2467     CFLAGS="-g"
2468   fi
2469 else
2470   if test "$GCC" = yes; then
2471     CFLAGS="-O2"
2472   else
2473     CFLAGS=
2474   fi
2475 fi
2476 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2477 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2478 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2479   echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481   ac_cv_prog_cc_stdc=no
2482 ac_save_CC=$CC
2483 cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h.  */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h.  */
2489 #include <stdarg.h>
2490 #include <stdio.h>
2491 #include <sys/types.h>
2492 #include <sys/stat.h>
2493 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2494 struct buf { int x; };
2495 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2496 static char *e (p, i)
2497      char **p;
2498      int i;
2499 {
2500   return p[i];
2501 }
2502 static char *f (char * (*g) (char **, int), char **p, ...)
2503 {
2504   char *s;
2505   va_list v;
2506   va_start (v,p);
2507   s = g (p, va_arg (v,int));
2508   va_end (v);
2509   return s;
2510 }
2511
2512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2513    function prototypes and stuff, but not '\xHH' hex character constants.
2514    These don't provoke an error unfortunately, instead are silently treated
2515    as 'x'.  The following induces an error, until -std1 is added to get
2516    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2517    array size at least.  It's necessary to write '\x00'==0 to get something
2518    that's true only with -std1.  */
2519 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2520
2521 int test (int i, double x);
2522 struct s1 {int (*f) (int a);};
2523 struct s2 {int (*f) (double a);};
2524 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2525 int argc;
2526 char **argv;
2527 int
2528 main ()
2529 {
2530 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2531   ;
2532   return 0;
2533 }
2534 _ACEOF
2535 # Don't try gcc -ansi; that turns off useful extensions and
2536 # breaks some systems' header files.
2537 # AIX                   -qlanglvl=ansi
2538 # Ultrix and OSF/1      -std1
2539 # HP-UX 10.20 and later -Ae
2540 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2541 # SVR4                  -Xc -D__EXTENSIONS__
2542 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2543 do
2544   CC="$ac_save_CC $ac_arg"
2545   rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547   (eval $ac_compile) 2>conftest.er1
2548   ac_status=$?
2549   grep -v '^ *+' conftest.er1 >conftest.err
2550   rm -f conftest.er1
2551   cat conftest.err >&5
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); } &&
2554          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556   (eval $ac_try) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; } &&
2560          { ac_try='test -s conftest.$ac_objext'
2561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562   (eval $ac_try) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; }; then
2566   ac_cv_prog_cc_stdc=$ac_arg
2567 break
2568 else
2569   echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2571
2572 fi
2573 rm -f conftest.err conftest.$ac_objext
2574 done
2575 rm -f conftest.$ac_ext conftest.$ac_objext
2576 CC=$ac_save_CC
2577
2578 fi
2579
2580 case "x$ac_cv_prog_cc_stdc" in
2581   x|xno)
2582     echo "$as_me:$LINENO: result: none needed" >&5
2583 echo "${ECHO_T}none needed" >&6 ;;
2584   *)
2585     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2586 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2587     CC="$CC $ac_cv_prog_cc_stdc" ;;
2588 esac
2589
2590 # Some people use a C++ compiler to compile C.  Since we use `exit',
2591 # in C++ we need to declare it.  In case someone uses the same compiler
2592 # for both compiling C and C++ we need to have the C++ compiler decide
2593 # the declaration of exit, since it's the most demanding environment.
2594 cat >conftest.$ac_ext <<_ACEOF
2595 #ifndef __cplusplus
2596   choke me
2597 #endif
2598 _ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601   (eval $ac_compile) 2>conftest.er1
2602   ac_status=$?
2603   grep -v '^ *+' conftest.er1 >conftest.err
2604   rm -f conftest.er1
2605   cat conftest.err >&5
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); } &&
2608          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610   (eval $ac_try) 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); }; } &&
2614          { ac_try='test -s conftest.$ac_objext'
2615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616   (eval $ac_try) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; }; then
2620   for ac_declaration in \
2621    '' \
2622    'extern "C" void std::exit (int) throw (); using std::exit;' \
2623    'extern "C" void std::exit (int); using std::exit;' \
2624    'extern "C" void exit (int) throw ();' \
2625    'extern "C" void exit (int);' \
2626    'void exit (int);'
2627 do
2628   cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h.  */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h.  */
2634 $ac_declaration
2635 #include <stdlib.h>
2636 int
2637 main ()
2638 {
2639 exit (42);
2640   ;
2641   return 0;
2642 }
2643 _ACEOF
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646   (eval $ac_compile) 2>conftest.er1
2647   ac_status=$?
2648   grep -v '^ *+' conftest.er1 >conftest.err
2649   rm -f conftest.er1
2650   cat conftest.err >&5
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); } &&
2653          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655   (eval $ac_try) 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); }; } &&
2659          { ac_try='test -s conftest.$ac_objext'
2660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661   (eval $ac_try) 2>&5
2662   ac_status=$?
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); }; }; then
2665   :
2666 else
2667   echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2669
2670 continue
2671 fi
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673   cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h.  */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h.  */
2679 $ac_declaration
2680 int
2681 main ()
2682 {
2683 exit (42);
2684   ;
2685   return 0;
2686 }
2687 _ACEOF
2688 rm -f conftest.$ac_objext
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690   (eval $ac_compile) 2>conftest.er1
2691   ac_status=$?
2692   grep -v '^ *+' conftest.er1 >conftest.err
2693   rm -f conftest.er1
2694   cat conftest.err >&5
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); } &&
2697          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699   (eval $ac_try) 2>&5
2700   ac_status=$?
2701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702   (exit $ac_status); }; } &&
2703          { ac_try='test -s conftest.$ac_objext'
2704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705   (eval $ac_try) 2>&5
2706   ac_status=$?
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); }; }; then
2709   break
2710 else
2711   echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2713
2714 fi
2715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716 done
2717 rm -f conftest*
2718 if test -n "$ac_declaration"; then
2719   echo '#ifdef __cplusplus' >>confdefs.h
2720   echo $ac_declaration      >>confdefs.h
2721   echo '#endif'             >>confdefs.h
2722 fi
2723
2724 else
2725   echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2727
2728 fi
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 ac_ext=c
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2735
2736
2737 ac_ext=c
2738 ac_cpp='$CPP $CPPFLAGS'
2739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2743 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2744 # On Suns, sometimes $CPP names a directory.
2745 if test -n "$CPP" && test -d "$CPP"; then
2746   CPP=
2747 fi
2748 if test -z "$CPP"; then
2749   if test "${ac_cv_prog_CPP+set}" = set; then
2750   echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752       # Double quotes because CPP needs to be expanded
2753     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2754     do
2755       ac_preproc_ok=false
2756 for ac_c_preproc_warn_flag in '' yes
2757 do
2758   # Use a header file that comes with gcc, so configuring glibc
2759   # with a fresh cross-compiler works.
2760   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2761   # <limits.h> exists even on freestanding compilers.
2762   # On the NeXT, cc -E runs the code through the compiler's parser,
2763   # not just through cpp. "Syntax error" is here to catch this case.
2764   cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h.  */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h.  */
2770 #ifdef __STDC__
2771 # include <limits.h>
2772 #else
2773 # include <assert.h>
2774 #endif
2775                      Syntax error
2776 _ACEOF
2777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2778   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2779   ac_status=$?
2780   grep -v '^ *+' conftest.er1 >conftest.err
2781   rm -f conftest.er1
2782   cat conftest.err >&5
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); } >/dev/null; then
2785   if test -s conftest.err; then
2786     ac_cpp_err=$ac_c_preproc_warn_flag
2787     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2788   else
2789     ac_cpp_err=
2790   fi
2791 else
2792   ac_cpp_err=yes
2793 fi
2794 if test -z "$ac_cpp_err"; then
2795   :
2796 else
2797   echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2799
2800   # Broken: fails on valid input.
2801 continue
2802 fi
2803 rm -f conftest.err conftest.$ac_ext
2804
2805   # OK, works on sane cases.  Now check whether non-existent headers
2806   # can be detected and how.
2807   cat >conftest.$ac_ext <<_ACEOF
2808 /* confdefs.h.  */
2809 _ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h.  */
2813 #include <ac_nonexistent.h>
2814 _ACEOF
2815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2816   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2817   ac_status=$?
2818   grep -v '^ *+' conftest.er1 >conftest.err
2819   rm -f conftest.er1
2820   cat conftest.err >&5
2821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822   (exit $ac_status); } >/dev/null; then
2823   if test -s conftest.err; then
2824     ac_cpp_err=$ac_c_preproc_warn_flag
2825     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2826   else
2827     ac_cpp_err=
2828   fi
2829 else
2830   ac_cpp_err=yes
2831 fi
2832 if test -z "$ac_cpp_err"; then
2833   # Broken: success on invalid input.
2834 continue
2835 else
2836   echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2838
2839   # Passes both tests.
2840 ac_preproc_ok=:
2841 break
2842 fi
2843 rm -f conftest.err conftest.$ac_ext
2844
2845 done
2846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2847 rm -f conftest.err conftest.$ac_ext
2848 if $ac_preproc_ok; then
2849   break
2850 fi
2851
2852     done
2853     ac_cv_prog_CPP=$CPP
2854
2855 fi
2856   CPP=$ac_cv_prog_CPP
2857 else
2858   ac_cv_prog_CPP=$CPP
2859 fi
2860 echo "$as_me:$LINENO: result: $CPP" >&5
2861 echo "${ECHO_T}$CPP" >&6
2862 ac_preproc_ok=false
2863 for ac_c_preproc_warn_flag in '' yes
2864 do
2865   # Use a header file that comes with gcc, so configuring glibc
2866   # with a fresh cross-compiler works.
2867   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2868   # <limits.h> exists even on freestanding compilers.
2869   # On the NeXT, cc -E runs the code through the compiler's parser,
2870   # not just through cpp. "Syntax error" is here to catch this case.
2871   cat >conftest.$ac_ext <<_ACEOF
2872 /* confdefs.h.  */
2873 _ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h.  */
2877 #ifdef __STDC__
2878 # include <limits.h>
2879 #else
2880 # include <assert.h>
2881 #endif
2882                      Syntax error
2883 _ACEOF
2884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2885   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2886   ac_status=$?
2887   grep -v '^ *+' conftest.er1 >conftest.err
2888   rm -f conftest.er1
2889   cat conftest.err >&5
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); } >/dev/null; then
2892   if test -s conftest.err; then
2893     ac_cpp_err=$ac_c_preproc_warn_flag
2894     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2895   else
2896     ac_cpp_err=
2897   fi
2898 else
2899   ac_cpp_err=yes
2900 fi
2901 if test -z "$ac_cpp_err"; then
2902   :
2903 else
2904   echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2906
2907   # Broken: fails on valid input.
2908 continue
2909 fi
2910 rm -f conftest.err conftest.$ac_ext
2911
2912   # OK, works on sane cases.  Now check whether non-existent headers
2913   # can be detected and how.
2914   cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h.  */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h.  */
2920 #include <ac_nonexistent.h>
2921 _ACEOF
2922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2923   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2924   ac_status=$?
2925   grep -v '^ *+' conftest.er1 >conftest.err
2926   rm -f conftest.er1
2927   cat conftest.err >&5
2928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929   (exit $ac_status); } >/dev/null; then
2930   if test -s conftest.err; then
2931     ac_cpp_err=$ac_c_preproc_warn_flag
2932     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2933   else
2934     ac_cpp_err=
2935   fi
2936 else
2937   ac_cpp_err=yes
2938 fi
2939 if test -z "$ac_cpp_err"; then
2940   # Broken: success on invalid input.
2941 continue
2942 else
2943   echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2945
2946   # Passes both tests.
2947 ac_preproc_ok=:
2948 break
2949 fi
2950 rm -f conftest.err conftest.$ac_ext
2951
2952 done
2953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2954 rm -f conftest.err conftest.$ac_ext
2955 if $ac_preproc_ok; then
2956   :
2957 else
2958   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2961 See \`config.log' for more details." >&2;}
2962    { (exit 1); exit 1; }; }
2963 fi
2964
2965 ac_ext=c
2966 ac_cpp='$CPP $CPPFLAGS'
2967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2970
2971
2972 echo "$as_me:$LINENO: checking for egrep" >&5
2973 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2974 if test "${ac_cv_prog_egrep+set}" = set; then
2975   echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2978     then ac_cv_prog_egrep='grep -E'
2979     else ac_cv_prog_egrep='egrep'
2980     fi
2981 fi
2982 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2983 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2984  EGREP=$ac_cv_prog_egrep
2985
2986
2987 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2988 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2989 if test "${ac_cv_header_stdc+set}" = set; then
2990   echo $ECHO_N "(cached) $ECHO_C" >&6
2991 else
2992   cat >conftest.$ac_ext <<_ACEOF
2993 /* confdefs.h.  */
2994 _ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h.  */
2998 #include <stdlib.h>
2999 #include <stdarg.h>
3000 #include <string.h>
3001 #include <float.h>
3002
3003 int
3004 main ()
3005 {
3006
3007   ;
3008   return 0;
3009 }
3010 _ACEOF
3011 rm -f conftest.$ac_objext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013   (eval $ac_compile) 2>conftest.er1
3014   ac_status=$?
3015   grep -v '^ *+' conftest.er1 >conftest.err
3016   rm -f conftest.er1
3017   cat conftest.err >&5
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); } &&
3020          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022   (eval $ac_try) 2>&5
3023   ac_status=$?
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); }; } &&
3026          { ac_try='test -s conftest.$ac_objext'
3027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028   (eval $ac_try) 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); }; }; then
3032   ac_cv_header_stdc=yes
3033 else
3034   echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3036
3037 ac_cv_header_stdc=no
3038 fi
3039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3040
3041 if test $ac_cv_header_stdc = yes; then
3042   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3043   cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h.  */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h.  */
3049 #include <string.h>
3050
3051 _ACEOF
3052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3053   $EGREP "memchr" >/dev/null 2>&1; then
3054   :
3055 else
3056   ac_cv_header_stdc=no
3057 fi
3058 rm -f conftest*
3059
3060 fi
3061
3062 if test $ac_cv_header_stdc = yes; then
3063   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3064   cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h.  */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h.  */
3070 #include <stdlib.h>
3071
3072 _ACEOF
3073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3074   $EGREP "free" >/dev/null 2>&1; then
3075   :
3076 else
3077   ac_cv_header_stdc=no
3078 fi
3079 rm -f conftest*
3080
3081 fi
3082
3083 if test $ac_cv_header_stdc = yes; then
3084   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3085   if test "$cross_compiling" = yes; then
3086   :
3087 else
3088   cat >conftest.$ac_ext <<_ACEOF
3089 /* confdefs.h.  */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h.  */
3094 #include <ctype.h>
3095 #if ((' ' & 0x0FF) == 0x020)
3096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3098 #else
3099 # define ISLOWER(c) \
3100                    (('a' <= (c) && (c) <= 'i') \
3101                      || ('j' <= (c) && (c) <= 'r') \
3102                      || ('s' <= (c) && (c) <= 'z'))
3103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3104 #endif
3105
3106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3107 int
3108 main ()
3109 {
3110   int i;
3111   for (i = 0; i < 256; i++)
3112     if (XOR (islower (i), ISLOWER (i))
3113         || toupper (i) != TOUPPER (i))
3114       exit(2);
3115   exit (0);
3116 }
3117 _ACEOF
3118 rm -f conftest$ac_exeext
3119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3120   (eval $ac_link) 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125   (eval $ac_try) 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); }; }; then
3129   :
3130 else
3131   echo "$as_me: program exited with status $ac_status" >&5
3132 echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135 ( exit $ac_status )
3136 ac_cv_header_stdc=no
3137 fi
3138 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3139 fi
3140 fi
3141 fi
3142 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3143 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3144 if test $ac_cv_header_stdc = yes; then
3145
3146 cat >>confdefs.h <<\_ACEOF
3147 #define STDC_HEADERS 1
3148 _ACEOF
3149
3150 fi
3151
3152 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3163                   inttypes.h stdint.h unistd.h
3164 do
3165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3166 echo "$as_me:$LINENO: checking for $ac_header" >&5
3167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3169   echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171   cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h.  */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h.  */
3177 $ac_includes_default
3178
3179 #include <$ac_header>
3180 _ACEOF
3181 rm -f conftest.$ac_objext
3182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3183   (eval $ac_compile) 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } &&
3190          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192   (eval $ac_try) 2>&5
3193   ac_status=$?
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); }; } &&
3196          { ac_try='test -s conftest.$ac_objext'
3197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198   (eval $ac_try) 2>&5
3199   ac_status=$?
3200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201   (exit $ac_status); }; }; then
3202   eval "$as_ac_Header=yes"
3203 else
3204   echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3206
3207 eval "$as_ac_Header=no"
3208 fi
3209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3210 fi
3211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3214   cat >>confdefs.h <<_ACEOF
3215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3216 _ACEOF
3217
3218 fi
3219
3220 done
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230 for ac_header in fcntl.h limits.h strings.h syslog.h unistd.h sys/param.h stdarg.h
3231 do
3232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3234   echo "$as_me:$LINENO: checking for $ac_header" >&5
3235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3237   echo $ECHO_N "(cached) $ECHO_C" >&6
3238 fi
3239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3241 else
3242   # Is the header compilable?
3243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3245 cat >conftest.$ac_ext <<_ACEOF
3246 /* confdefs.h.  */
3247 _ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h.  */
3251 $ac_includes_default
3252 #include <$ac_header>
3253 _ACEOF
3254 rm -f conftest.$ac_objext
3255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3256   (eval $ac_compile) 2>conftest.er1
3257   ac_status=$?
3258   grep -v '^ *+' conftest.er1 >conftest.err
3259   rm -f conftest.er1
3260   cat conftest.err >&5
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); } &&
3263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265   (eval $ac_try) 2>&5
3266   ac_status=$?
3267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); }; } &&
3269          { ac_try='test -s conftest.$ac_objext'
3270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271   (eval $ac_try) 2>&5
3272   ac_status=$?
3273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274   (exit $ac_status); }; }; then
3275   ac_header_compiler=yes
3276 else
3277   echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280 ac_header_compiler=no
3281 fi
3282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3284 echo "${ECHO_T}$ac_header_compiler" >&6
3285
3286 # Is the header present?
3287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3289 cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h.  */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h.  */
3295 #include <$ac_header>
3296 _ACEOF
3297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3298   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
3305   if test -s conftest.err; then
3306     ac_cpp_err=$ac_c_preproc_warn_flag
3307     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3308   else
3309     ac_cpp_err=
3310   fi
3311 else
3312   ac_cpp_err=yes
3313 fi
3314 if test -z "$ac_cpp_err"; then
3315   ac_header_preproc=yes
3316 else
3317   echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320   ac_header_preproc=no
3321 fi
3322 rm -f conftest.err conftest.$ac_ext
3323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3324 echo "${ECHO_T}$ac_header_preproc" >&6
3325
3326 # So?  What about this header?
3327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3328   yes:no: )
3329     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3333     ac_header_preproc=yes
3334     ;;
3335   no:yes:* )
3336     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3338     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3339 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3340     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3342     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3343 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3346     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3348     (
3349       cat <<\_ASBOX
3350 ## --------------------------------------- ##
3351 ## Report this to michael@metaparadigm.com ##
3352 ## --------------------------------------- ##
3353 _ASBOX
3354     ) |
3355       sed "s/^/$as_me: WARNING:     /" >&2
3356     ;;
3357 esac
3358 echo "$as_me:$LINENO: checking for $ac_header" >&5
3359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363   eval "$as_ac_Header=\$ac_header_preproc"
3364 fi
3365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3367
3368 fi
3369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3370   cat >>confdefs.h <<_ACEOF
3371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3372 _ACEOF
3373
3374 fi
3375
3376 done
3377
3378
3379 # Checks for typedefs, structures, and compiler characteristics.
3380 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3381 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3382 if test "${ac_cv_c_const+set}" = set; then
3383   echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385   cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h.  */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h.  */
3391
3392 int
3393 main ()
3394 {
3395 /* FIXME: Include the comments suggested by Paul. */
3396 #ifndef __cplusplus
3397   /* Ultrix mips cc rejects this.  */
3398   typedef int charset[2];
3399   const charset x;
3400   /* SunOS 4.1.1 cc rejects this.  */
3401   char const *const *ccp;
3402   char **p;
3403   /* NEC SVR4.0.2 mips cc rejects this.  */
3404   struct point {int x, y;};
3405   static struct point const zero = {0,0};
3406   /* AIX XL C 1.02.0.0 rejects this.
3407      It does not let you subtract one const X* pointer from another in
3408      an arm of an if-expression whose if-part is not a constant
3409      expression */
3410   const char *g = "string";
3411   ccp = &g + (g ? g-g : 0);
3412   /* HPUX 7.0 cc rejects these. */
3413   ++ccp;
3414   p = (char**) ccp;
3415   ccp = (char const *const *) p;
3416   { /* SCO 3.2v4 cc rejects this.  */
3417     char *t;
3418     char const *s = 0 ? (char *) 0 : (char const *) 0;
3419
3420     *t++ = 0;
3421   }
3422   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3423     int x[] = {25, 17};
3424     const int *foo = &x[0];
3425     ++foo;
3426   }
3427   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3428     typedef const int *iptr;
3429     iptr p = 0;
3430     ++p;
3431   }
3432   { /* AIX XL C 1.02.0.0 rejects this saying
3433        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3434     struct s { int j; const int *ap[3]; };
3435     struct s *b; b->j = 5;
3436   }
3437   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3438     const int foo = 10;
3439   }
3440 #endif
3441
3442   ;
3443   return 0;
3444 }
3445 _ACEOF
3446 rm -f conftest.$ac_objext
3447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3448   (eval $ac_compile) 2>conftest.er1
3449   ac_status=$?
3450   grep -v '^ *+' conftest.er1 >conftest.err
3451   rm -f conftest.er1
3452   cat conftest.err >&5
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); } &&
3455          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457   (eval $ac_try) 2>&5
3458   ac_status=$?
3459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460   (exit $ac_status); }; } &&
3461          { ac_try='test -s conftest.$ac_objext'
3462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463   (eval $ac_try) 2>&5
3464   ac_status=$?
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); }; }; then
3467   ac_cv_c_const=yes
3468 else
3469   echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472 ac_cv_c_const=no
3473 fi
3474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3475 fi
3476 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3477 echo "${ECHO_T}$ac_cv_c_const" >&6
3478 if test $ac_cv_c_const = no; then
3479
3480 cat >>confdefs.h <<\_ACEOF
3481 #define const
3482 _ACEOF
3483
3484 fi
3485
3486 echo "$as_me:$LINENO: checking for size_t" >&5
3487 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3488 if test "${ac_cv_type_size_t+set}" = set; then
3489   echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491   cat >conftest.$ac_ext <<_ACEOF
3492 /* confdefs.h.  */
3493 _ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h.  */
3497 $ac_includes_default
3498 int
3499 main ()
3500 {
3501 if ((size_t *) 0)
3502   return 0;
3503 if (sizeof (size_t))
3504   return 0;
3505   ;
3506   return 0;
3507 }
3508 _ACEOF
3509 rm -f conftest.$ac_objext
3510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511   (eval $ac_compile) 2>conftest.er1
3512   ac_status=$?
3513   grep -v '^ *+' conftest.er1 >conftest.err
3514   rm -f conftest.er1
3515   cat conftest.err >&5
3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); } &&
3518          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520   (eval $ac_try) 2>&5
3521   ac_status=$?
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); }; } &&
3524          { ac_try='test -s conftest.$ac_objext'
3525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526   (eval $ac_try) 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }; }; then
3530   ac_cv_type_size_t=yes
3531 else
3532   echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 ac_cv_type_size_t=no
3536 fi
3537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3538 fi
3539 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3540 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3541 if test $ac_cv_type_size_t = yes; then
3542   :
3543 else
3544
3545 cat >>confdefs.h <<_ACEOF
3546 #define size_t unsigned
3547 _ACEOF
3548
3549 fi
3550
3551
3552 # Checks for library functions.
3553
3554 for ac_func in vprintf
3555 do
3556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3557 echo "$as_me:$LINENO: checking for $ac_func" >&5
3558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3559 if eval "test \"\${$as_ac_var+set}\" = set"; then
3560   echo $ECHO_N "(cached) $ECHO_C" >&6
3561 else
3562   cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h.  */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h.  */
3568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3569    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3570 #define $ac_func innocuous_$ac_func
3571
3572 /* System header to define __stub macros and hopefully few prototypes,
3573     which can conflict with char $ac_func (); below.
3574     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3575     <limits.h> exists even on freestanding compilers.  */
3576
3577 #ifdef __STDC__
3578 # include <limits.h>
3579 #else
3580 # include <assert.h>
3581 #endif
3582
3583 #undef $ac_func
3584
3585 /* Override any gcc2 internal prototype to avoid an error.  */
3586 #ifdef __cplusplus
3587 extern "C"
3588 {
3589 #endif
3590 /* We use char because int might match the return type of a gcc2
3591    builtin and then its argument prototype would still apply.  */
3592 char $ac_func ();
3593 /* The GNU C library defines this for functions which it implements
3594     to always fail with ENOSYS.  Some functions are actually named
3595     something starting with __ and the normal name is an alias.  */
3596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3597 choke me
3598 #else
3599 char (*f) () = $ac_func;
3600 #endif
3601 #ifdef __cplusplus
3602 }
3603 #endif
3604
3605 int
3606 main ()
3607 {
3608 return f != $ac_func;
3609   ;
3610   return 0;
3611 }
3612 _ACEOF
3613 rm -f conftest.$ac_objext conftest$ac_exeext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3615   (eval $ac_link) 2>conftest.er1
3616   ac_status=$?
3617   grep -v '^ *+' conftest.er1 >conftest.err
3618   rm -f conftest.er1
3619   cat conftest.err >&5
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } &&
3622          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624   (eval $ac_try) 2>&5
3625   ac_status=$?
3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); }; } &&
3628          { ac_try='test -s conftest$ac_exeext'
3629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630   (eval $ac_try) 2>&5
3631   ac_status=$?
3632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); }; }; then
3634   eval "$as_ac_var=yes"
3635 else
3636   echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3638
3639 eval "$as_ac_var=no"
3640 fi
3641 rm -f conftest.err conftest.$ac_objext \
3642       conftest$ac_exeext conftest.$ac_ext
3643 fi
3644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3646 if test `eval echo '${'$as_ac_var'}'` = yes; then
3647   cat >>confdefs.h <<_ACEOF
3648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3649 _ACEOF
3650
3651 echo "$as_me:$LINENO: checking for _doprnt" >&5
3652 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
3653 if test "${ac_cv_func__doprnt+set}" = set; then
3654   echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656   cat >conftest.$ac_ext <<_ACEOF
3657 /* confdefs.h.  */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h.  */
3662 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
3663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3664 #define _doprnt innocuous__doprnt
3665
3666 /* System header to define __stub macros and hopefully few prototypes,
3667     which can conflict with char _doprnt (); below.
3668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3669     <limits.h> exists even on freestanding compilers.  */
3670
3671 #ifdef __STDC__
3672 # include <limits.h>
3673 #else
3674 # include <assert.h>
3675 #endif
3676
3677 #undef _doprnt
3678
3679 /* Override any gcc2 internal prototype to avoid an error.  */
3680 #ifdef __cplusplus
3681 extern "C"
3682 {
3683 #endif
3684 /* We use char because int might match the return type of a gcc2
3685    builtin and then its argument prototype would still apply.  */
3686 char _doprnt ();
3687 /* The GNU C library defines this for functions which it implements
3688     to always fail with ENOSYS.  Some functions are actually named
3689     something starting with __ and the normal name is an alias.  */
3690 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3691 choke me
3692 #else
3693 char (*f) () = _doprnt;
3694 #endif
3695 #ifdef __cplusplus
3696 }
3697 #endif
3698
3699 int
3700 main ()
3701 {
3702 return f != _doprnt;
3703   ;
3704   return 0;
3705 }
3706 _ACEOF
3707 rm -f conftest.$ac_objext conftest$ac_exeext
3708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3709   (eval $ac_link) 2>conftest.er1
3710   ac_status=$?
3711   grep -v '^ *+' conftest.er1 >conftest.err
3712   rm -f conftest.er1
3713   cat conftest.err >&5
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); } &&
3716          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718   (eval $ac_try) 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); }; } &&
3722          { ac_try='test -s conftest$ac_exeext'
3723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724   (eval $ac_try) 2>&5
3725   ac_status=$?
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); }; }; then
3728   ac_cv_func__doprnt=yes
3729 else
3730   echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3732
3733 ac_cv_func__doprnt=no
3734 fi
3735 rm -f conftest.err conftest.$ac_objext \
3736       conftest$ac_exeext conftest.$ac_ext
3737 fi
3738 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
3739 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
3740 if test $ac_cv_func__doprnt = yes; then
3741
3742 cat >>confdefs.h <<\_ACEOF
3743 #define HAVE_DOPRNT 1
3744 _ACEOF
3745
3746 fi
3747
3748 fi
3749 done
3750
3751
3752 echo "$as_me:$LINENO: checking for working memcmp" >&5
3753 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
3754 if test "${ac_cv_func_memcmp_working+set}" = set; then
3755   echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757   if test "$cross_compiling" = yes; then
3758   ac_cv_func_memcmp_working=no
3759 else
3760   cat >conftest.$ac_ext <<_ACEOF
3761 /* confdefs.h.  */
3762 _ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h.  */
3766 $ac_includes_default
3767 int
3768 main ()
3769 {
3770
3771   /* Some versions of memcmp are not 8-bit clean.  */
3772   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3773   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
3774     exit (1);
3775
3776   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
3777      or more and with at least one buffer not starting on a 4-byte boundary.
3778      William Lewis provided this test program.   */
3779   {
3780     char foo[21];
3781     char bar[21];
3782     int i;
3783     for (i = 0; i < 4; i++)
3784       {
3785         char *a = foo + i;
3786         char *b = bar + i;
3787         strcpy (a, "--------01111111");
3788         strcpy (b, "--------10000000");
3789         if (memcmp (a, b, 16) >= 0)
3790           exit (1);
3791       }
3792     exit (0);
3793   }
3794
3795   ;
3796   return 0;
3797 }
3798 _ACEOF
3799 rm -f conftest$ac_exeext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801   (eval $ac_link) 2>&5
3802   ac_status=$?
3803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806   (eval $ac_try) 2>&5
3807   ac_status=$?
3808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809   (exit $ac_status); }; }; then
3810   ac_cv_func_memcmp_working=yes
3811 else
3812   echo "$as_me: program exited with status $ac_status" >&5
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3815
3816 ( exit $ac_status )
3817 ac_cv_func_memcmp_working=no
3818 fi
3819 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3820 fi
3821 fi
3822 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
3823 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
3824 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
3825     "memcmp.$ac_objext"   | \
3826   *" memcmp.$ac_objext"   | \
3827     "memcmp.$ac_objext "* | \
3828   *" memcmp.$ac_objext "* ) ;;
3829   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
3830 esac
3831
3832
3833
3834 for ac_header in stdlib.h
3835 do
3836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3838   echo "$as_me:$LINENO: checking for $ac_header" >&5
3839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 fi
3843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3845 else
3846   # Is the header compilable?
3847 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3849 cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h.  */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h.  */
3855 $ac_includes_default
3856 #include <$ac_header>
3857 _ACEOF
3858 rm -f conftest.$ac_objext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860   (eval $ac_compile) 2>conftest.er1
3861   ac_status=$?
3862   grep -v '^ *+' conftest.er1 >conftest.err
3863   rm -f conftest.er1
3864   cat conftest.err >&5
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); } &&
3867          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869   (eval $ac_try) 2>&5
3870   ac_status=$?
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); }; } &&
3873          { ac_try='test -s conftest.$ac_objext'
3874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875   (eval $ac_try) 2>&5
3876   ac_status=$?
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); }; }; then
3879   ac_header_compiler=yes
3880 else
3881   echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3883
3884 ac_header_compiler=no
3885 fi
3886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3888 echo "${ECHO_T}$ac_header_compiler" >&6
3889
3890 # Is the header present?
3891 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3893 cat >conftest.$ac_ext <<_ACEOF
3894 /* confdefs.h.  */
3895 _ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h.  */
3899 #include <$ac_header>
3900 _ACEOF
3901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3902   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3903   ac_status=$?
3904   grep -v '^ *+' conftest.er1 >conftest.err
3905   rm -f conftest.er1
3906   cat conftest.err >&5
3907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908   (exit $ac_status); } >/dev/null; then
3909   if test -s conftest.err; then
3910     ac_cpp_err=$ac_c_preproc_warn_flag
3911     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3912   else
3913     ac_cpp_err=
3914   fi
3915 else
3916   ac_cpp_err=yes
3917 fi
3918 if test -z "$ac_cpp_err"; then
3919   ac_header_preproc=yes
3920 else
3921   echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3923
3924   ac_header_preproc=no
3925 fi
3926 rm -f conftest.err conftest.$ac_ext
3927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3928 echo "${ECHO_T}$ac_header_preproc" >&6
3929
3930 # So?  What about this header?
3931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3932   yes:no: )
3933     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3937     ac_header_preproc=yes
3938     ;;
3939   no:yes:* )
3940     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3942     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3943 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3944     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3946     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3947 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3950     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3952     (
3953       cat <<\_ASBOX
3954 ## --------------------------------------- ##
3955 ## Report this to michael@metaparadigm.com ##
3956 ## --------------------------------------- ##
3957 _ASBOX
3958     ) |
3959       sed "s/^/$as_me: WARNING:     /" >&2
3960     ;;
3961 esac
3962 echo "$as_me:$LINENO: checking for $ac_header" >&5
3963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   eval "$as_ac_Header=\$ac_header_preproc"
3968 fi
3969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3971
3972 fi
3973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3974   cat >>confdefs.h <<_ACEOF
3975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3976 _ACEOF
3977
3978 fi
3979
3980 done
3981
3982 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
3983 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
3984 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   if test "$cross_compiling" = yes; then
3988   ac_cv_func_malloc_0_nonnull=no
3989 else
3990   cat >conftest.$ac_ext <<_ACEOF
3991 /* confdefs.h.  */
3992 _ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h.  */
3996 #if STDC_HEADERS || HAVE_STDLIB_H
3997 # include <stdlib.h>
3998 #else
3999 char *malloc ();
4000 #endif
4001
4002 int
4003 main ()
4004 {
4005 exit (malloc (0) ? 0 : 1);
4006   ;
4007   return 0;
4008 }
4009 _ACEOF
4010 rm -f conftest$ac_exeext
4011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4012   (eval $ac_link) 2>&5
4013   ac_status=$?
4014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017   (eval $ac_try) 2>&5
4018   ac_status=$?
4019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020   (exit $ac_status); }; }; then
4021   ac_cv_func_malloc_0_nonnull=yes
4022 else
4023   echo "$as_me: program exited with status $ac_status" >&5
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4026
4027 ( exit $ac_status )
4028 ac_cv_func_malloc_0_nonnull=no
4029 fi
4030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4031 fi
4032 fi
4033 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
4034 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
4035 if test $ac_cv_func_malloc_0_nonnull = yes; then
4036
4037 cat >>confdefs.h <<\_ACEOF
4038 #define HAVE_MALLOC 1
4039 _ACEOF
4040
4041 else
4042   cat >>confdefs.h <<\_ACEOF
4043 #define HAVE_MALLOC 0
4044 _ACEOF
4045
4046    case $LIBOBJS in
4047     "malloc.$ac_objext"   | \
4048   *" malloc.$ac_objext"   | \
4049     "malloc.$ac_objext "* | \
4050   *" malloc.$ac_objext "* ) ;;
4051   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
4052 esac
4053
4054
4055 cat >>confdefs.h <<\_ACEOF
4056 #define malloc rpl_malloc
4057 _ACEOF
4058
4059 fi
4060
4061
4062
4063
4064 for ac_header in stdlib.h
4065 do
4066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4068   echo "$as_me:$LINENO: checking for $ac_header" >&5
4069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4071   echo $ECHO_N "(cached) $ECHO_C" >&6
4072 fi
4073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4075 else
4076   # Is the header compilable?
4077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4079 cat >conftest.$ac_ext <<_ACEOF
4080 /* confdefs.h.  */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h.  */
4085 $ac_includes_default
4086 #include <$ac_header>
4087 _ACEOF
4088 rm -f conftest.$ac_objext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090   (eval $ac_compile) 2>conftest.er1
4091   ac_status=$?
4092   grep -v '^ *+' conftest.er1 >conftest.err
4093   rm -f conftest.er1
4094   cat conftest.err >&5
4095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096   (exit $ac_status); } &&
4097          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099   (eval $ac_try) 2>&5
4100   ac_status=$?
4101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102   (exit $ac_status); }; } &&
4103          { ac_try='test -s conftest.$ac_objext'
4104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105   (eval $ac_try) 2>&5
4106   ac_status=$?
4107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108   (exit $ac_status); }; }; then
4109   ac_header_compiler=yes
4110 else
4111   echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4113
4114 ac_header_compiler=no
4115 fi
4116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4118 echo "${ECHO_T}$ac_header_compiler" >&6
4119
4120 # Is the header present?
4121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4123 cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h.  */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h.  */
4129 #include <$ac_header>
4130 _ACEOF
4131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4133   ac_status=$?
4134   grep -v '^ *+' conftest.er1 >conftest.err
4135   rm -f conftest.er1
4136   cat conftest.err >&5
4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138   (exit $ac_status); } >/dev/null; then
4139   if test -s conftest.err; then
4140     ac_cpp_err=$ac_c_preproc_warn_flag
4141     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4142   else
4143     ac_cpp_err=
4144   fi
4145 else
4146   ac_cpp_err=yes
4147 fi
4148 if test -z "$ac_cpp_err"; then
4149   ac_header_preproc=yes
4150 else
4151   echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4153
4154   ac_header_preproc=no
4155 fi
4156 rm -f conftest.err conftest.$ac_ext
4157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4158 echo "${ECHO_T}$ac_header_preproc" >&6
4159
4160 # So?  What about this header?
4161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4162   yes:no: )
4163     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4167     ac_header_preproc=yes
4168     ;;
4169   no:yes:* )
4170     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4172     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4173 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4174     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4176     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4177 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4180     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4182     (
4183       cat <<\_ASBOX
4184 ## --------------------------------------- ##
4185 ## Report this to michael@metaparadigm.com ##
4186 ## --------------------------------------- ##
4187 _ASBOX
4188     ) |
4189       sed "s/^/$as_me: WARNING:     /" >&2
4190     ;;
4191 esac
4192 echo "$as_me:$LINENO: checking for $ac_header" >&5
4193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4195   echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197   eval "$as_ac_Header=\$ac_header_preproc"
4198 fi
4199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4201
4202 fi
4203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4204   cat >>confdefs.h <<_ACEOF
4205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4206 _ACEOF
4207
4208 fi
4209
4210 done
4211
4212 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
4213 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
4214 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
4215   echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217   if test "$cross_compiling" = yes; then
4218   ac_cv_func_realloc_0_nonnull=no
4219 else
4220   cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h.  */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h.  */
4226 #if STDC_HEADERS || HAVE_STDLIB_H
4227 # include <stdlib.h>
4228 #else
4229 char *realloc ();
4230 #endif
4231
4232 int
4233 main ()
4234 {
4235 exit (realloc (0, 0) ? 0 : 1);
4236   ;
4237   return 0;
4238 }
4239 _ACEOF
4240 rm -f conftest$ac_exeext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242   (eval $ac_link) 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247   (eval $ac_try) 2>&5
4248   ac_status=$?
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); }; }; then
4251   ac_cv_func_realloc_0_nonnull=yes
4252 else
4253   echo "$as_me: program exited with status $ac_status" >&5
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 ( exit $ac_status )
4258 ac_cv_func_realloc_0_nonnull=no
4259 fi
4260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4261 fi
4262 fi
4263 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
4264 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
4265 if test $ac_cv_func_realloc_0_nonnull = yes; then
4266
4267 cat >>confdefs.h <<\_ACEOF
4268 #define HAVE_REALLOC 1
4269 _ACEOF
4270
4271 else
4272   cat >>confdefs.h <<\_ACEOF
4273 #define HAVE_REALLOC 0
4274 _ACEOF
4275
4276    case $LIBOBJS in
4277     "realloc.$ac_objext"   | \
4278   *" realloc.$ac_objext"   | \
4279     "realloc.$ac_objext "* | \
4280   *" realloc.$ac_objext "* ) ;;
4281   *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
4282 esac
4283
4284
4285 cat >>confdefs.h <<\_ACEOF
4286 #define realloc rpl_realloc
4287 _ACEOF
4288
4289 fi
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300 for ac_func in strndup strerror vsnprintf vasprintf open vsyslog strncasecmp
4301 do
4302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4303 echo "$as_me:$LINENO: checking for $ac_func" >&5
4304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4305 if eval "test \"\${$as_ac_var+set}\" = set"; then
4306   echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308   cat >conftest.$ac_ext <<_ACEOF
4309 /* confdefs.h.  */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h.  */
4314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4315    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4316 #define $ac_func innocuous_$ac_func
4317
4318 /* System header to define __stub macros and hopefully few prototypes,
4319     which can conflict with char $ac_func (); below.
4320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4321     <limits.h> exists even on freestanding compilers.  */
4322
4323 #ifdef __STDC__
4324 # include <limits.h>
4325 #else
4326 # include <assert.h>
4327 #endif
4328
4329 #undef $ac_func
4330
4331 /* Override any gcc2 internal prototype to avoid an error.  */
4332 #ifdef __cplusplus
4333 extern "C"
4334 {
4335 #endif
4336 /* We use char because int might match the return type of a gcc2
4337    builtin and then its argument prototype would still apply.  */
4338 char $ac_func ();
4339 /* The GNU C library defines this for functions which it implements
4340     to always fail with ENOSYS.  Some functions are actually named
4341     something starting with __ and the normal name is an alias.  */
4342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4343 choke me
4344 #else
4345 char (*f) () = $ac_func;
4346 #endif
4347 #ifdef __cplusplus
4348 }
4349 #endif
4350
4351 int
4352 main ()
4353 {
4354 return f != $ac_func;
4355   ;
4356   return 0;
4357 }
4358 _ACEOF
4359 rm -f conftest.$ac_objext conftest$ac_exeext
4360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4361   (eval $ac_link) 2>conftest.er1
4362   ac_status=$?
4363   grep -v '^ *+' conftest.er1 >conftest.err
4364   rm -f conftest.er1
4365   cat conftest.err >&5
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); } &&
4368          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370   (eval $ac_try) 2>&5
4371   ac_status=$?
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); }; } &&
4374          { ac_try='test -s conftest$ac_exeext'
4375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376   (eval $ac_try) 2>&5
4377   ac_status=$?
4378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379   (exit $ac_status); }; }; then
4380   eval "$as_ac_var=yes"
4381 else
4382   echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4384
4385 eval "$as_ac_var=no"
4386 fi
4387 rm -f conftest.err conftest.$ac_objext \
4388       conftest$ac_exeext conftest.$ac_ext
4389 fi
4390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4392 if test `eval echo '${'$as_ac_var'}'` = yes; then
4393   cat >>confdefs.h <<_ACEOF
4394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4395 _ACEOF
4396
4397 fi
4398 done
4399
4400
4401 # Check whether --enable-shared or --disable-shared was given.
4402 if test "${enable_shared+set}" = set; then
4403   enableval="$enable_shared"
4404   p=${PACKAGE-default}
4405     case $enableval in
4406     yes) enable_shared=yes ;;
4407     no) enable_shared=no ;;
4408     *)
4409       enable_shared=no
4410       # Look at the argument we got.  We use all the common list separators.
4411       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4412       for pkg in $enableval; do
4413         IFS="$lt_save_ifs"
4414         if test "X$pkg" = "X$p"; then
4415           enable_shared=yes
4416         fi
4417       done
4418       IFS="$lt_save_ifs"
4419       ;;
4420     esac
4421 else
4422   enable_shared=yes
4423 fi;
4424
4425 # Check whether --enable-static or --disable-static was given.
4426 if test "${enable_static+set}" = set; then
4427   enableval="$enable_static"
4428   p=${PACKAGE-default}
4429     case $enableval in
4430     yes) enable_static=yes ;;
4431     no) enable_static=no ;;
4432     *)
4433      enable_static=no
4434       # Look at the argument we got.  We use all the common list separators.
4435       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4436       for pkg in $enableval; do
4437         IFS="$lt_save_ifs"
4438         if test "X$pkg" = "X$p"; then
4439           enable_static=yes
4440         fi
4441       done
4442       IFS="$lt_save_ifs"
4443       ;;
4444     esac
4445 else
4446   enable_static=yes
4447 fi;
4448
4449 # Check whether --enable-fast-install or --disable-fast-install was given.
4450 if test "${enable_fast_install+set}" = set; then
4451   enableval="$enable_fast_install"
4452   p=${PACKAGE-default}
4453     case $enableval in
4454     yes) enable_fast_install=yes ;;
4455     no) enable_fast_install=no ;;
4456     *)
4457       enable_fast_install=no
4458       # Look at the argument we got.  We use all the common list separators.
4459       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4460       for pkg in $enableval; do
4461         IFS="$lt_save_ifs"
4462         if test "X$pkg" = "X$p"; then
4463           enable_fast_install=yes
4464         fi
4465       done
4466       IFS="$lt_save_ifs"
4467       ;;
4468     esac
4469 else
4470   enable_fast_install=yes
4471 fi;
4472
4473 # Make sure we can run config.sub.
4474 $ac_config_sub sun4 >/dev/null 2>&1 ||
4475   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4476 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4477    { (exit 1); exit 1; }; }
4478
4479 echo "$as_me:$LINENO: checking build system type" >&5
4480 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4481 if test "${ac_cv_build+set}" = set; then
4482   echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484   ac_cv_build_alias=$build_alias
4485 test -z "$ac_cv_build_alias" &&
4486   ac_cv_build_alias=`$ac_config_guess`
4487 test -z "$ac_cv_build_alias" &&
4488   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4489 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4490    { (exit 1); exit 1; }; }
4491 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4492   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4493 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4494    { (exit 1); exit 1; }; }
4495
4496 fi
4497 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4498 echo "${ECHO_T}$ac_cv_build" >&6
4499 build=$ac_cv_build
4500 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4501 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4502 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4503
4504
4505 echo "$as_me:$LINENO: checking host system type" >&5
4506 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4507 if test "${ac_cv_host+set}" = set; then
4508   echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510   ac_cv_host_alias=$host_alias
4511 test -z "$ac_cv_host_alias" &&
4512   ac_cv_host_alias=$ac_cv_build_alias
4513 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4514   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4515 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4516    { (exit 1); exit 1; }; }
4517
4518 fi
4519 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4520 echo "${ECHO_T}$ac_cv_host" >&6
4521 host=$ac_cv_host
4522 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4523 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4524 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4525
4526
4527 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4528 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4529 if test "${lt_cv_path_SED+set}" = set; then
4530   echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532   # Loop through the user's path and test for sed and gsed.
4533 # Then use that list of sed's as ones to test for truncation.
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4536 do
4537   IFS=$as_save_IFS
4538   test -z "$as_dir" && as_dir=.
4539   for lt_ac_prog in sed gsed; do
4540     for ac_exec_ext in '' $ac_executable_extensions; do
4541       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4542         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4543       fi
4544     done
4545   done
4546 done
4547 lt_ac_max=0
4548 lt_ac_count=0
4549 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4550 # along with /bin/sed that truncates output.
4551 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4552   test ! -f $lt_ac_sed && continue
4553   cat /dev/null > conftest.in
4554   lt_ac_count=0
4555   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4556   # Check for GNU sed and select it if it is found.
4557   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4558     lt_cv_path_SED=$lt_ac_sed
4559     break
4560   fi
4561   while true; do
4562     cat conftest.in conftest.in >conftest.tmp
4563     mv conftest.tmp conftest.in
4564     cp conftest.in conftest.nl
4565     echo >>conftest.nl
4566     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4567     cmp -s conftest.out conftest.nl || break
4568     # 10000 chars as input seems more than enough
4569     test $lt_ac_count -gt 10 && break
4570     lt_ac_count=`expr $lt_ac_count + 1`
4571     if test $lt_ac_count -gt $lt_ac_max; then
4572       lt_ac_max=$lt_ac_count
4573       lt_cv_path_SED=$lt_ac_sed
4574     fi
4575   done
4576 done
4577
4578 fi
4579
4580 SED=$lt_cv_path_SED
4581 echo "$as_me:$LINENO: result: $SED" >&5
4582 echo "${ECHO_T}$SED" >&6
4583
4584
4585 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4586 if test "${with_gnu_ld+set}" = set; then
4587   withval="$with_gnu_ld"
4588   test "$withval" = no || with_gnu_ld=yes
4589 else
4590   with_gnu_ld=no
4591 fi;
4592 ac_prog=ld
4593 if test "$GCC" = yes; then
4594   # Check if gcc -print-prog-name=ld gives a path.
4595   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4596 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4597   case $host in
4598   *-*-mingw*)
4599     # gcc leaves a trailing carriage return which upsets mingw
4600     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4601   *)
4602     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4603   esac
4604   case $ac_prog in
4605     # Accept absolute paths.
4606     [\\/]* | ?:[\\/]*)
4607       re_direlt='/[^/][^/]*/\.\./'
4608       # Canonicalize the pathname of ld
4609       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4610       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4611         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4612       done
4613       test -z "$LD" && LD="$ac_prog"
4614       ;;
4615   "")
4616     # If it fails, then pretend we aren't using GCC.
4617     ac_prog=ld
4618     ;;
4619   *)
4620     # If it is relative, then search for the first ld in PATH.
4621     with_gnu_ld=unknown
4622     ;;
4623   esac
4624 elif test "$with_gnu_ld" = yes; then
4625   echo "$as_me:$LINENO: checking for GNU ld" >&5
4626 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4627 else
4628   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4629 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4630 fi
4631 if test "${lt_cv_path_LD+set}" = set; then
4632   echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634   if test -z "$LD"; then
4635   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4636   for ac_dir in $PATH; do
4637     IFS="$lt_save_ifs"
4638     test -z "$ac_dir" && ac_dir=.
4639     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4640       lt_cv_path_LD="$ac_dir/$ac_prog"
4641       # Check to see if the program is GNU ld.  I'd rather use --version,
4642       # but apparently some variants of GNU ld only accept -v.
4643       # Break only if it was the GNU/non-GNU ld that we prefer.
4644       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4645       *GNU* | *'with BFD'*)
4646         test "$with_gnu_ld" != no && break
4647         ;;
4648       *)
4649         test "$with_gnu_ld" != yes && break
4650         ;;
4651       esac
4652     fi
4653   done
4654   IFS="$lt_save_ifs"
4655 else
4656   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4657 fi
4658 fi
4659
4660 LD="$lt_cv_path_LD"
4661 if test -n "$LD"; then
4662   echo "$as_me:$LINENO: result: $LD" >&5
4663 echo "${ECHO_T}$LD" >&6
4664 else
4665   echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6
4667 fi
4668 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4669 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4670    { (exit 1); exit 1; }; }
4671 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4672 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4673 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4674   echo $ECHO_N "(cached) $ECHO_C" >&6
4675 else
4676   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4677 case `$LD -v 2>&1 </dev/null` in
4678 *GNU* | *'with BFD'*)
4679   lt_cv_prog_gnu_ld=yes
4680   ;;
4681 *)
4682   lt_cv_prog_gnu_ld=no
4683   ;;
4684 esac
4685 fi
4686 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4687 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4688 with_gnu_ld=$lt_cv_prog_gnu_ld
4689
4690
4691 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4692 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4693 if test "${lt_cv_ld_reload_flag+set}" = set; then
4694   echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696   lt_cv_ld_reload_flag='-r'
4697 fi
4698 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4699 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4700 reload_flag=$lt_cv_ld_reload_flag
4701 case $reload_flag in
4702 "" | " "*) ;;
4703 *) reload_flag=" $reload_flag" ;;
4704 esac
4705 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4706 case $host_os in
4707   darwin*)
4708     if test "$GCC" = yes; then
4709       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4710     else
4711       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4712     fi
4713     ;;
4714 esac
4715
4716 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4717 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4718 if test "${lt_cv_path_NM+set}" = set; then
4719   echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721   if test -n "$NM"; then
4722   # Let the user override the test.
4723   lt_cv_path_NM="$NM"
4724 else
4725   lt_nm_to_check="${ac_tool_prefix}nm"
4726   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4727     lt_nm_to_check="$lt_nm_to_check nm"
4728   fi
4729   for lt_tmp_nm in $lt_nm_to_check; do
4730     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4731     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4732       IFS="$lt_save_ifs"
4733       test -z "$ac_dir" && ac_dir=.
4734       tmp_nm="$ac_dir/$lt_tmp_nm"
4735       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4736         # Check to see if the nm accepts a BSD-compat flag.
4737         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4738         #   nm: unknown option "B" ignored
4739         # Tru64's nm complains that /dev/null is an invalid object file
4740         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4741         */dev/null* | *'Invalid file or object type'*)
4742           lt_cv_path_NM="$tmp_nm -B"
4743           break
4744           ;;
4745         *)
4746           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4747           */dev/null*)
4748             lt_cv_path_NM="$tmp_nm -p"
4749             break
4750             ;;
4751           *)
4752             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4753             continue # so that we can try to find one that supports BSD flags
4754             ;;
4755           esac
4756           ;;
4757         esac
4758       fi
4759     done
4760     IFS="$lt_save_ifs"
4761   done
4762   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4763 fi
4764 fi
4765 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4766 echo "${ECHO_T}$lt_cv_path_NM" >&6
4767 NM="$lt_cv_path_NM"
4768
4769 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4770 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4771 LN_S=$as_ln_s
4772 if test "$LN_S" = "ln -s"; then
4773   echo "$as_me:$LINENO: result: yes" >&5
4774 echo "${ECHO_T}yes" >&6
4775 else
4776   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4777 echo "${ECHO_T}no, using $LN_S" >&6
4778 fi
4779
4780 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4781 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4782 if test "${lt_cv_deplibs_check_method+set}" = set; then
4783   echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785   lt_cv_file_magic_cmd='$MAGIC_CMD'
4786 lt_cv_file_magic_test_file=
4787 lt_cv_deplibs_check_method='unknown'
4788 # Need to set the preceding variable on all platforms that support
4789 # interlibrary dependencies.
4790 # 'none' -- dependencies not supported.
4791 # `unknown' -- same as none, but documents that we really don't know.
4792 # 'pass_all' -- all dependencies passed with no checks.
4793 # 'test_compile' -- check by making test program.
4794 # 'file_magic [[regex]]' -- check by looking for files in library path
4795 # which responds to the $file_magic_cmd with a given extended regex.
4796 # If you have `file' or equivalent on your system and you're not sure
4797 # whether `pass_all' will *always* work, you probably want this one.
4798
4799 case $host_os in
4800 aix4* | aix5*)
4801   lt_cv_deplibs_check_method=pass_all
4802   ;;
4803
4804 beos*)
4805   lt_cv_deplibs_check_method=pass_all
4806   ;;
4807
4808 bsdi[45]*)
4809   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4810   lt_cv_file_magic_cmd='/usr/bin/file -L'
4811   lt_cv_file_magic_test_file=/shlib/libc.so
4812   ;;
4813
4814 cygwin*)
4815   # func_win32_libid is a shell function defined in ltmain.sh
4816   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4817   lt_cv_file_magic_cmd='func_win32_libid'
4818   ;;
4819
4820 mingw* | pw32*)
4821   # Base MSYS/MinGW do not provide the 'file' command needed by
4822   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4823   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4824   lt_cv_file_magic_cmd='$OBJDUMP -f'
4825   ;;
4826
4827 darwin* | rhapsody*)
4828   lt_cv_deplibs_check_method=pass_all
4829   ;;
4830
4831 freebsd* | kfreebsd*-gnu | dragonfly*)
4832   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4833     case $host_cpu in
4834     i*86 )
4835       # Not sure whether the presence of OpenBSD here was a mistake.
4836       # Let's accept both of them until this is cleared up.
4837       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4838       lt_cv_file_magic_cmd=/usr/bin/file
4839       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4840       ;;
4841     esac
4842   else
4843     lt_cv_deplibs_check_method=pass_all
4844   fi
4845   ;;
4846
4847 gnu*)
4848   lt_cv_deplibs_check_method=pass_all
4849   ;;
4850
4851 hpux10.20* | hpux11*)
4852   lt_cv_file_magic_cmd=/usr/bin/file
4853   case $host_cpu in
4854   ia64*)
4855     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4856     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4857     ;;
4858   hppa*64*)
4859     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]'
4860     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4861     ;;
4862   *)
4863     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4864     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4865     ;;
4866   esac
4867   ;;
4868
4869 interix3*)
4870   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4871   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4872   ;;
4873
4874 irix5* | irix6* | nonstopux*)
4875   case $LD in
4876   *-32|*"-32 ") libmagic=32-bit;;
4877   *-n32|*"-n32 ") libmagic=N32;;
4878   *-64|*"-64 ") libmagic=64-bit;;
4879   *) libmagic=never-match;;
4880   esac
4881   lt_cv_deplibs_check_method=pass_all
4882   ;;
4883
4884 # This must be Linux ELF.
4885 linux*)
4886   lt_cv_deplibs_check_method=pass_all
4887   ;;
4888
4889 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4890   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4891     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4892   else
4893     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4894   fi
4895   ;;
4896
4897 newos6*)
4898   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4899   lt_cv_file_magic_cmd=/usr/bin/file
4900   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4901   ;;
4902
4903 nto-qnx*)
4904   lt_cv_deplibs_check_method=unknown
4905   ;;
4906
4907 openbsd*)
4908   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4909     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4910   else
4911     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4912   fi
4913   ;;
4914
4915 osf3* | osf4* | osf5*)
4916   lt_cv_deplibs_check_method=pass_all
4917   ;;
4918
4919 solaris*)
4920   lt_cv_deplibs_check_method=pass_all
4921   ;;
4922
4923 sysv4 | sysv4.3*)
4924   case $host_vendor in
4925   motorola)
4926     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]'
4927     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4928     ;;
4929   ncr)
4930     lt_cv_deplibs_check_method=pass_all
4931     ;;
4932   sequent)
4933     lt_cv_file_magic_cmd='/bin/file'
4934     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4935     ;;
4936   sni)
4937     lt_cv_file_magic_cmd='/bin/file'
4938     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4939     lt_cv_file_magic_test_file=/lib/libc.so
4940     ;;
4941   siemens)
4942     lt_cv_deplibs_check_method=pass_all
4943     ;;
4944   pc)
4945     lt_cv_deplibs_check_method=pass_all
4946     ;;
4947   esac
4948   ;;
4949
4950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4951   lt_cv_deplibs_check_method=pass_all
4952   ;;
4953 esac
4954
4955 fi
4956 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4957 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4958 file_magic_cmd=$lt_cv_file_magic_cmd
4959 deplibs_check_method=$lt_cv_deplibs_check_method
4960 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4961
4962
4963
4964
4965 # If no C compiler was specified, use CC.
4966 LTCC=${LTCC-"$CC"}
4967
4968 # If no C compiler flags were specified, use CFLAGS.
4969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4970
4971 # Allow CC to be a program name with arguments.
4972 compiler=$CC
4973
4974 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4975 if test "${enable_libtool_lock+set}" = set; then
4976   enableval="$enable_libtool_lock"
4977
4978 fi;
4979 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4980
4981 # Some flags need to be propagated to the compiler or linker for good
4982 # libtool support.
4983 case $host in
4984 ia64-*-hpux*)
4985   # Find out which ABI we are using.
4986   echo 'int i;' > conftest.$ac_ext
4987   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4988   (eval $ac_compile) 2>&5
4989   ac_status=$?
4990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991   (exit $ac_status); }; then
4992     case `/usr/bin/file conftest.$ac_objext` in
4993     *ELF-32*)
4994       HPUX_IA64_MODE="32"
4995       ;;
4996     *ELF-64*)
4997       HPUX_IA64_MODE="64"
4998       ;;
4999     esac
5000   fi
5001   rm -rf conftest*
5002   ;;
5003 *-*-irix6*)
5004   # Find out which ABI we are using.
5005   echo '#line 5005 "configure"' > conftest.$ac_ext
5006   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5007   (eval $ac_compile) 2>&5
5008   ac_status=$?
5009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); }; then
5011    if test "$lt_cv_prog_gnu_ld" = yes; then
5012     case `/usr/bin/file conftest.$ac_objext` in
5013     *32-bit*)
5014       LD="${LD-ld} -melf32bsmip"
5015       ;;
5016     *N32*)
5017       LD="${LD-ld} -melf32bmipn32"
5018       ;;
5019     *64-bit*)
5020       LD="${LD-ld} -melf64bmip"
5021       ;;
5022     esac
5023    else
5024     case `/usr/bin/file conftest.$ac_objext` in
5025     *32-bit*)
5026       LD="${LD-ld} -32"
5027       ;;
5028     *N32*)
5029       LD="${LD-ld} -n32"
5030       ;;
5031     *64-bit*)
5032       LD="${LD-ld} -64"
5033       ;;
5034     esac
5035    fi
5036   fi
5037   rm -rf conftest*
5038   ;;
5039
5040 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5041   # Find out which ABI we are using.
5042   echo 'int i;' > conftest.$ac_ext
5043   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5044   (eval $ac_compile) 2>&5
5045   ac_status=$?
5046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047   (exit $ac_status); }; then
5048     case `/usr/bin/file conftest.o` in
5049     *32-bit*)
5050       case $host in
5051         x86_64-*linux*)
5052           LD="${LD-ld} -m elf_i386"
5053           ;;
5054         ppc64-*linux*|powerpc64-*linux*)
5055           LD="${LD-ld} -m elf32ppclinux"
5056           ;;
5057         s390x-*linux*)
5058           LD="${LD-ld} -m elf_s390"
5059           ;;
5060         sparc64-*linux*)
5061           LD="${LD-ld} -m elf32_sparc"
5062           ;;
5063       esac
5064       ;;
5065     *64-bit*)
5066       case $host in
5067         x86_64-*linux*)
5068           LD="${LD-ld} -m elf_x86_64"
5069           ;;
5070         ppc*-*linux*|powerpc*-*linux*)
5071           LD="${LD-ld} -m elf64ppc"
5072           ;;
5073         s390*-*linux*)
5074           LD="${LD-ld} -m elf64_s390"
5075           ;;
5076         sparc*-*linux*)
5077           LD="${LD-ld} -m elf64_sparc"
5078           ;;
5079       esac
5080       ;;
5081     esac
5082   fi
5083   rm -rf conftest*
5084   ;;
5085
5086 *-*-sco3.2v5*)
5087   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5088   SAVE_CFLAGS="$CFLAGS"
5089   CFLAGS="$CFLAGS -belf"
5090   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5091 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5092 if test "${lt_cv_cc_needs_belf+set}" = set; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095   ac_ext=c
5096 ac_cpp='$CPP $CPPFLAGS'
5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5100
5101      cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h.  */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h.  */
5107
5108 int
5109 main ()
5110 {
5111
5112   ;
5113   return 0;
5114 }
5115 _ACEOF
5116 rm -f conftest.$ac_objext conftest$ac_exeext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5118   (eval $ac_link) 2>conftest.er1
5119   ac_status=$?
5120   grep -v '^ *+' conftest.er1 >conftest.err
5121   rm -f conftest.er1
5122   cat conftest.err >&5
5123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124   (exit $ac_status); } &&
5125          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127   (eval $ac_try) 2>&5
5128   ac_status=$?
5129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130   (exit $ac_status); }; } &&
5131          { ac_try='test -s conftest$ac_exeext'
5132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133   (eval $ac_try) 2>&5
5134   ac_status=$?
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); }; }; then
5137   lt_cv_cc_needs_belf=yes
5138 else
5139   echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5141
5142 lt_cv_cc_needs_belf=no
5143 fi
5144 rm -f conftest.err conftest.$ac_objext \
5145       conftest$ac_exeext conftest.$ac_ext
5146      ac_ext=c
5147 ac_cpp='$CPP $CPPFLAGS'
5148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5151
5152 fi
5153 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5154 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5155   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5156     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5157     CFLAGS="$SAVE_CFLAGS"
5158   fi
5159   ;;
5160 sparc*-*solaris*)
5161   # Find out which ABI we are using.
5162   echo 'int i;' > conftest.$ac_ext
5163   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5164   (eval $ac_compile) 2>&5
5165   ac_status=$?
5166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); }; then
5168     case `/usr/bin/file conftest.o` in
5169     *64-bit*)
5170       case $lt_cv_prog_gnu_ld in
5171       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5172       *)    LD="${LD-ld} -64" ;;
5173       esac
5174       ;;
5175     esac
5176   fi
5177   rm -rf conftest*
5178   ;;
5179
5180
5181 esac
5182
5183 need_locks="$enable_libtool_lock"
5184
5185
5186
5187 for ac_header in dlfcn.h
5188 do
5189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5191   echo "$as_me:$LINENO: checking for $ac_header" >&5
5192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5194   echo $ECHO_N "(cached) $ECHO_C" >&6
5195 fi
5196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5198 else
5199   # Is the header compilable?
5200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5202 cat >conftest.$ac_ext <<_ACEOF
5203 /* confdefs.h.  */
5204 _ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h.  */
5208 $ac_includes_default
5209 #include <$ac_header>
5210 _ACEOF
5211 rm -f conftest.$ac_objext
5212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5213   (eval $ac_compile) 2>conftest.er1
5214   ac_status=$?
5215   grep -v '^ *+' conftest.er1 >conftest.err
5216   rm -f conftest.er1
5217   cat conftest.err >&5
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); } &&
5220          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222   (eval $ac_try) 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); }; } &&
5226          { ac_try='test -s conftest.$ac_objext'
5227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228   (eval $ac_try) 2>&5
5229   ac_status=$?
5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); }; }; then
5232   ac_header_compiler=yes
5233 else
5234   echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5236
5237 ac_header_compiler=no
5238 fi
5239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5241 echo "${ECHO_T}$ac_header_compiler" >&6
5242
5243 # Is the header present?
5244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5246 cat >conftest.$ac_ext <<_ACEOF
5247 /* confdefs.h.  */
5248 _ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h.  */
5252 #include <$ac_header>
5253 _ACEOF
5254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5256   ac_status=$?
5257   grep -v '^ *+' conftest.er1 >conftest.err
5258   rm -f conftest.er1
5259   cat conftest.err >&5
5260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); } >/dev/null; then
5262   if test -s conftest.err; then
5263     ac_cpp_err=$ac_c_preproc_warn_flag
5264     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5265   else
5266     ac_cpp_err=
5267   fi
5268 else
5269   ac_cpp_err=yes
5270 fi
5271 if test -z "$ac_cpp_err"; then
5272   ac_header_preproc=yes
5273 else
5274   echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5276
5277   ac_header_preproc=no
5278 fi
5279 rm -f conftest.err conftest.$ac_ext
5280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5281 echo "${ECHO_T}$ac_header_preproc" >&6
5282
5283 # So?  What about this header?
5284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5285   yes:no: )
5286     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5290     ac_header_preproc=yes
5291     ;;
5292   no:yes:* )
5293     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5295     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5296 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5297     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5299     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5300 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5303     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5305     (
5306       cat <<\_ASBOX
5307 ## --------------------------------------- ##
5308 ## Report this to michael@metaparadigm.com ##
5309 ## --------------------------------------- ##
5310 _ASBOX
5311     ) |
5312       sed "s/^/$as_me: WARNING:     /" >&2
5313     ;;
5314 esac
5315 echo "$as_me:$LINENO: checking for $ac_header" >&5
5316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5318   echo $ECHO_N "(cached) $ECHO_C" >&6
5319 else
5320   eval "$as_ac_Header=\$ac_header_preproc"
5321 fi
5322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5324
5325 fi
5326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5327   cat >>confdefs.h <<_ACEOF
5328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5329 _ACEOF
5330
5331 fi
5332
5333 done
5334
5335 ac_ext=cc
5336 ac_cpp='$CXXCPP $CPPFLAGS'
5337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5340 if test -n "$ac_tool_prefix"; then
5341   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5342   do
5343     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5345 echo "$as_me:$LINENO: checking for $ac_word" >&5
5346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5347 if test "${ac_cv_prog_CXX+set}" = set; then
5348   echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350   if test -n "$CXX"; then
5351   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5352 else
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5355 do
5356   IFS=$as_save_IFS
5357   test -z "$as_dir" && as_dir=.
5358   for ac_exec_ext in '' $ac_executable_extensions; do
5359   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362     break 2
5363   fi
5364 done
5365 done
5366
5367 fi
5368 fi
5369 CXX=$ac_cv_prog_CXX
5370 if test -n "$CXX"; then
5371   echo "$as_me:$LINENO: result: $CXX" >&5
5372 echo "${ECHO_T}$CXX" >&6
5373 else
5374   echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5376 fi
5377
5378     test -n "$CXX" && break
5379   done
5380 fi
5381 if test -z "$CXX"; then
5382   ac_ct_CXX=$CXX
5383   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5384 do
5385   # Extract the first word of "$ac_prog", so it can be a program name with args.
5386 set dummy $ac_prog; ac_word=$2
5387 echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5389 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5390   echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392   if test -n "$ac_ct_CXX"; then
5393   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5397 do
5398   IFS=$as_save_IFS
5399   test -z "$as_dir" && as_dir=.
5400   for ac_exec_ext in '' $ac_executable_extensions; do
5401   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402     ac_cv_prog_ac_ct_CXX="$ac_prog"
5403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404     break 2
5405   fi
5406 done
5407 done
5408
5409 fi
5410 fi
5411 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5412 if test -n "$ac_ct_CXX"; then
5413   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5414 echo "${ECHO_T}$ac_ct_CXX" >&6
5415 else
5416   echo "$as_me:$LINENO: result: no" >&5
5417 echo "${ECHO_T}no" >&6
5418 fi
5419
5420   test -n "$ac_ct_CXX" && break
5421 done
5422 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5423
5424   CXX=$ac_ct_CXX
5425 fi
5426
5427
5428 # Provide some information about the compiler.
5429 echo "$as_me:$LINENO:" \
5430      "checking for C++ compiler version" >&5
5431 ac_compiler=`set X $ac_compile; echo $2`
5432 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5433   (eval $ac_compiler --version </dev/null >&5) 2>&5
5434   ac_status=$?
5435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436   (exit $ac_status); }
5437 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5438   (eval $ac_compiler -v </dev/null >&5) 2>&5
5439   ac_status=$?
5440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441   (exit $ac_status); }
5442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5443   (eval $ac_compiler -V </dev/null >&5) 2>&5
5444   ac_status=$?
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); }
5447
5448 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5449 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5450 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5451   echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453   cat >conftest.$ac_ext <<_ACEOF
5454 /* confdefs.h.  */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h.  */
5459
5460 int
5461 main ()
5462 {
5463 #ifndef __GNUC__
5464        choke me
5465 #endif
5466
5467   ;
5468   return 0;
5469 }
5470 _ACEOF
5471 rm -f conftest.$ac_objext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473   (eval $ac_compile) 2>conftest.er1
5474   ac_status=$?
5475   grep -v '^ *+' conftest.er1 >conftest.err
5476   rm -f conftest.er1
5477   cat conftest.err >&5
5478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479   (exit $ac_status); } &&
5480          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482   (eval $ac_try) 2>&5
5483   ac_status=$?
5484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485   (exit $ac_status); }; } &&
5486          { ac_try='test -s conftest.$ac_objext'
5487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488   (eval $ac_try) 2>&5
5489   ac_status=$?
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); }; }; then
5492   ac_compiler_gnu=yes
5493 else
5494   echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5496
5497 ac_compiler_gnu=no
5498 fi
5499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5500 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5501
5502 fi
5503 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5504 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5505 GXX=`test $ac_compiler_gnu = yes && echo yes`
5506 ac_test_CXXFLAGS=${CXXFLAGS+set}
5507 ac_save_CXXFLAGS=$CXXFLAGS
5508 CXXFLAGS="-g"
5509 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5510 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5511 if test "${ac_cv_prog_cxx_g+set}" = set; then
5512   echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514   cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h.  */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h.  */
5520
5521 int
5522 main ()
5523 {
5524
5525   ;
5526   return 0;
5527 }
5528 _ACEOF
5529 rm -f conftest.$ac_objext
5530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5531   (eval $ac_compile) 2>conftest.er1
5532   ac_status=$?
5533   grep -v '^ *+' conftest.er1 >conftest.err
5534   rm -f conftest.er1
5535   cat conftest.err >&5
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); } &&
5538          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540   (eval $ac_try) 2>&5
5541   ac_status=$?
5542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543   (exit $ac_status); }; } &&
5544          { ac_try='test -s conftest.$ac_objext'
5545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546   (eval $ac_try) 2>&5
5547   ac_status=$?
5548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549   (exit $ac_status); }; }; then
5550   ac_cv_prog_cxx_g=yes
5551 else
5552   echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555 ac_cv_prog_cxx_g=no
5556 fi
5557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5558 fi
5559 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5560 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5561 if test "$ac_test_CXXFLAGS" = set; then
5562   CXXFLAGS=$ac_save_CXXFLAGS
5563 elif test $ac_cv_prog_cxx_g = yes; then
5564   if test "$GXX" = yes; then
5565     CXXFLAGS="-g -O2"
5566   else
5567     CXXFLAGS="-g"
5568   fi
5569 else
5570   if test "$GXX" = yes; then
5571     CXXFLAGS="-O2"
5572   else
5573     CXXFLAGS=
5574   fi
5575 fi
5576 for ac_declaration in \
5577    '' \
5578    'extern "C" void std::exit (int) throw (); using std::exit;' \
5579    'extern "C" void std::exit (int); using std::exit;' \
5580    'extern "C" void exit (int) throw ();' \
5581    'extern "C" void exit (int);' \
5582    'void exit (int);'
5583 do
5584   cat >conftest.$ac_ext <<_ACEOF
5585 /* confdefs.h.  */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h.  */
5590 $ac_declaration
5591 #include <stdlib.h>
5592 int
5593 main ()
5594 {
5595 exit (42);
5596   ;
5597   return 0;
5598 }
5599 _ACEOF
5600 rm -f conftest.$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602   (eval $ac_compile) 2>conftest.er1
5603   ac_status=$?
5604   grep -v '^ *+' conftest.er1 >conftest.err
5605   rm -f conftest.er1
5606   cat conftest.err >&5
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); } &&
5609          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611   (eval $ac_try) 2>&5
5612   ac_status=$?
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); }; } &&
5615          { ac_try='test -s conftest.$ac_objext'
5616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617   (eval $ac_try) 2>&5
5618   ac_status=$?
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); }; }; then
5621   :
5622 else
5623   echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5625
5626 continue
5627 fi
5628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5629   cat >conftest.$ac_ext <<_ACEOF
5630 /* confdefs.h.  */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h.  */
5635 $ac_declaration
5636 int
5637 main ()
5638 {
5639 exit (42);
5640   ;
5641   return 0;
5642 }
5643 _ACEOF
5644 rm -f conftest.$ac_objext
5645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646   (eval $ac_compile) 2>conftest.er1
5647   ac_status=$?
5648   grep -v '^ *+' conftest.er1 >conftest.err
5649   rm -f conftest.er1
5650   cat conftest.err >&5
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); } &&
5653          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655   (eval $ac_try) 2>&5
5656   ac_status=$?
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); }; } &&
5659          { ac_try='test -s conftest.$ac_objext'
5660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661   (eval $ac_try) 2>&5
5662   ac_status=$?
5663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664   (exit $ac_status); }; }; then
5665   break
5666 else
5667   echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5669
5670 fi
5671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5672 done
5673 rm -f conftest*
5674 if test -n "$ac_declaration"; then
5675   echo '#ifdef __cplusplus' >>confdefs.h
5676   echo $ac_declaration      >>confdefs.h
5677   echo '#endif'             >>confdefs.h
5678 fi
5679
5680 ac_ext=cc
5681 ac_cpp='$CXXCPP $CPPFLAGS'
5682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5685
5686
5687
5688 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5689     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5690     (test "X$CXX" != "Xg++"))) ; then
5691   ac_ext=cc
5692 ac_cpp='$CXXCPP $CPPFLAGS'
5693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5696 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5697 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5698 if test -z "$CXXCPP"; then
5699   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5700   echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702       # Double quotes because CXXCPP needs to be expanded
5703     for CXXCPP in "$CXX -E" "/lib/cpp"
5704     do
5705       ac_preproc_ok=false
5706 for ac_cxx_preproc_warn_flag in '' yes
5707 do
5708   # Use a header file that comes with gcc, so configuring glibc
5709   # with a fresh cross-compiler works.
5710   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5711   # <limits.h> exists even on freestanding compilers.
5712   # On the NeXT, cc -E runs the code through the compiler's parser,
5713   # not just through cpp. "Syntax error" is here to catch this case.
5714   cat >conftest.$ac_ext <<_ACEOF
5715 /* confdefs.h.  */
5716 _ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h.  */
5720 #ifdef __STDC__
5721 # include <limits.h>
5722 #else
5723 # include <assert.h>
5724 #endif
5725                      Syntax error
5726 _ACEOF
5727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5728   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5729   ac_status=$?
5730   grep -v '^ *+' conftest.er1 >conftest.err
5731   rm -f conftest.er1
5732   cat conftest.err >&5
5733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734   (exit $ac_status); } >/dev/null; then
5735   if test -s conftest.err; then
5736     ac_cpp_err=$ac_cxx_preproc_warn_flag
5737     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5738   else
5739     ac_cpp_err=
5740   fi
5741 else
5742   ac_cpp_err=yes
5743 fi
5744 if test -z "$ac_cpp_err"; then
5745   :
5746 else
5747   echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5749
5750   # Broken: fails on valid input.
5751 continue
5752 fi
5753 rm -f conftest.err conftest.$ac_ext
5754
5755   # OK, works on sane cases.  Now check whether non-existent headers
5756   # can be detected and how.
5757   cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h.  */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h.  */
5763 #include <ac_nonexistent.h>
5764 _ACEOF
5765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5766   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5767   ac_status=$?
5768   grep -v '^ *+' conftest.er1 >conftest.err
5769   rm -f conftest.er1
5770   cat conftest.err >&5
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } >/dev/null; then
5773   if test -s conftest.err; then
5774     ac_cpp_err=$ac_cxx_preproc_warn_flag
5775     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5776   else
5777     ac_cpp_err=
5778   fi
5779 else
5780   ac_cpp_err=yes
5781 fi
5782 if test -z "$ac_cpp_err"; then
5783   # Broken: success on invalid input.
5784 continue
5785 else
5786   echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5788
5789   # Passes both tests.
5790 ac_preproc_ok=:
5791 break
5792 fi
5793 rm -f conftest.err conftest.$ac_ext
5794
5795 done
5796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5797 rm -f conftest.err conftest.$ac_ext
5798 if $ac_preproc_ok; then
5799   break
5800 fi
5801
5802     done
5803     ac_cv_prog_CXXCPP=$CXXCPP
5804
5805 fi
5806   CXXCPP=$ac_cv_prog_CXXCPP
5807 else
5808   ac_cv_prog_CXXCPP=$CXXCPP
5809 fi
5810 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5811 echo "${ECHO_T}$CXXCPP" >&6
5812 ac_preproc_ok=false
5813 for ac_cxx_preproc_warn_flag in '' yes
5814 do
5815   # Use a header file that comes with gcc, so configuring glibc
5816   # with a fresh cross-compiler works.
5817   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5818   # <limits.h> exists even on freestanding compilers.
5819   # On the NeXT, cc -E runs the code through the compiler's parser,
5820   # not just through cpp. "Syntax error" is here to catch this case.
5821   cat >conftest.$ac_ext <<_ACEOF
5822 /* confdefs.h.  */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h.  */
5827 #ifdef __STDC__
5828 # include <limits.h>
5829 #else
5830 # include <assert.h>
5831 #endif
5832                      Syntax error
5833 _ACEOF
5834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5835   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5836   ac_status=$?
5837   grep -v '^ *+' conftest.er1 >conftest.err
5838   rm -f conftest.er1
5839   cat conftest.err >&5
5840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841   (exit $ac_status); } >/dev/null; then
5842   if test -s conftest.err; then
5843     ac_cpp_err=$ac_cxx_preproc_warn_flag
5844     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5845   else
5846     ac_cpp_err=
5847   fi
5848 else
5849   ac_cpp_err=yes
5850 fi
5851 if test -z "$ac_cpp_err"; then
5852   :
5853 else
5854   echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5856
5857   # Broken: fails on valid input.
5858 continue
5859 fi
5860 rm -f conftest.err conftest.$ac_ext
5861
5862   # OK, works on sane cases.  Now check whether non-existent headers
5863   # can be detected and how.
5864   cat >conftest.$ac_ext <<_ACEOF
5865 /* confdefs.h.  */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h.  */
5870 #include <ac_nonexistent.h>
5871 _ACEOF
5872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5873   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5874   ac_status=$?
5875   grep -v '^ *+' conftest.er1 >conftest.err
5876   rm -f conftest.er1
5877   cat conftest.err >&5
5878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); } >/dev/null; then
5880   if test -s conftest.err; then
5881     ac_cpp_err=$ac_cxx_preproc_warn_flag
5882     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5883   else
5884     ac_cpp_err=
5885   fi
5886 else
5887   ac_cpp_err=yes
5888 fi
5889 if test -z "$ac_cpp_err"; then
5890   # Broken: success on invalid input.
5891 continue
5892 else
5893   echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5895
5896   # Passes both tests.
5897 ac_preproc_ok=:
5898 break
5899 fi
5900 rm -f conftest.err conftest.$ac_ext
5901
5902 done
5903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5904 rm -f conftest.err conftest.$ac_ext
5905 if $ac_preproc_ok; then
5906   :
5907 else
5908   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5909 See \`config.log' for more details." >&5
5910 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5911 See \`config.log' for more details." >&2;}
5912    { (exit 1); exit 1; }; }
5913 fi
5914
5915 ac_ext=cc
5916 ac_cpp='$CXXCPP $CPPFLAGS'
5917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5920
5921 fi
5922
5923
5924 ac_ext=f
5925 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5926 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5927 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5928 if test -n "$ac_tool_prefix"; then
5929   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5930   do
5931     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5933 echo "$as_me:$LINENO: checking for $ac_word" >&5
5934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5935 if test "${ac_cv_prog_F77+set}" = set; then
5936   echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938   if test -n "$F77"; then
5939   ac_cv_prog_F77="$F77" # Let the user override the test.
5940 else
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944   IFS=$as_save_IFS
5945   test -z "$as_dir" && as_dir=.
5946   for ac_exec_ext in '' $ac_executable_extensions; do
5947   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950     break 2
5951   fi
5952 done
5953 done
5954
5955 fi
5956 fi
5957 F77=$ac_cv_prog_F77
5958 if test -n "$F77"; then
5959   echo "$as_me:$LINENO: result: $F77" >&5
5960 echo "${ECHO_T}$F77" >&6
5961 else
5962   echo "$as_me:$LINENO: result: no" >&5
5963 echo "${ECHO_T}no" >&6
5964 fi
5965
5966     test -n "$F77" && break
5967   done
5968 fi
5969 if test -z "$F77"; then
5970   ac_ct_F77=$F77
5971   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5972 do
5973   # Extract the first word of "$ac_prog", so it can be a program name with args.
5974 set dummy $ac_prog; ac_word=$2
5975 echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5977 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5978   echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980   if test -n "$ac_ct_F77"; then
5981   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986   IFS=$as_save_IFS
5987   test -z "$as_dir" && as_dir=.
5988   for ac_exec_ext in '' $ac_executable_extensions; do
5989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5990     ac_cv_prog_ac_ct_F77="$ac_prog"
5991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5992     break 2
5993   fi
5994 done
5995 done
5996
5997 fi
5998 fi
5999 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6000 if test -n "$ac_ct_F77"; then
6001   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6002 echo "${ECHO_T}$ac_ct_F77" >&6
6003 else
6004   echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6
6006 fi
6007
6008   test -n "$ac_ct_F77" && break
6009 done
6010
6011   F77=$ac_ct_F77
6012 fi
6013
6014
6015 # Provide some information about the compiler.
6016 echo "$as_me:6016:" \
6017      "checking for Fortran 77 compiler version" >&5
6018 ac_compiler=`set X $ac_compile; echo $2`
6019 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6020   (eval $ac_compiler --version </dev/null >&5) 2>&5
6021   ac_status=$?
6022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); }
6024 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6025   (eval $ac_compiler -v </dev/null >&5) 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); }
6029 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6030   (eval $ac_compiler -V </dev/null >&5) 2>&5
6031   ac_status=$?
6032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033   (exit $ac_status); }
6034 rm -f a.out
6035
6036 # If we don't use `.F' as extension, the preprocessor is not run on the
6037 # input file.  (Note that this only needs to work for GNU compilers.)
6038 ac_save_ext=$ac_ext
6039 ac_ext=F
6040 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6041 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6042 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6043   echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045   cat >conftest.$ac_ext <<_ACEOF
6046       program main
6047 #ifndef __GNUC__
6048        choke me
6049 #endif
6050
6051       end
6052 _ACEOF
6053 rm -f conftest.$ac_objext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055   (eval $ac_compile) 2>conftest.er1
6056   ac_status=$?
6057   grep -v '^ *+' conftest.er1 >conftest.err
6058   rm -f conftest.er1
6059   cat conftest.err >&5
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); } &&
6062          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
6063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064   (eval $ac_try) 2>&5
6065   ac_status=$?
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); }; } &&
6068          { ac_try='test -s conftest.$ac_objext'
6069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070   (eval $ac_try) 2>&5
6071   ac_status=$?
6072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073   (exit $ac_status); }; }; then
6074   ac_compiler_gnu=yes
6075 else
6076   echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6078
6079 ac_compiler_gnu=no
6080 fi
6081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6082 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6083
6084 fi
6085 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6086 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6087 ac_ext=$ac_save_ext
6088 ac_test_FFLAGS=${FFLAGS+set}
6089 ac_save_FFLAGS=$FFLAGS
6090 FFLAGS=
6091 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6092 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6093 if test "${ac_cv_prog_f77_g+set}" = set; then
6094   echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096   FFLAGS=-g
6097 cat >conftest.$ac_ext <<_ACEOF
6098       program main
6099
6100       end
6101 _ACEOF
6102 rm -f conftest.$ac_objext
6103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6104   (eval $ac_compile) 2>conftest.er1
6105   ac_status=$?
6106   grep -v '^ *+' conftest.er1 >conftest.err
6107   rm -f conftest.er1
6108   cat conftest.err >&5
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); } &&
6111          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
6112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113   (eval $ac_try) 2>&5
6114   ac_status=$?
6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116   (exit $ac_status); }; } &&
6117          { ac_try='test -s conftest.$ac_objext'
6118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119   (eval $ac_try) 2>&5
6120   ac_status=$?
6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); }; }; then
6123   ac_cv_prog_f77_g=yes
6124 else
6125   echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6127
6128 ac_cv_prog_f77_g=no
6129 fi
6130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6131
6132 fi
6133 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6134 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6135 if test "$ac_test_FFLAGS" = set; then
6136   FFLAGS=$ac_save_FFLAGS
6137 elif test $ac_cv_prog_f77_g = yes; then
6138   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6139     FFLAGS="-g -O2"
6140   else
6141     FFLAGS="-g"
6142   fi
6143 else
6144   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6145     FFLAGS="-O2"
6146   else
6147     FFLAGS=
6148   fi
6149 fi
6150
6151 G77=`test $ac_compiler_gnu = yes && echo yes`
6152 ac_ext=c
6153 ac_cpp='$CPP $CPPFLAGS'
6154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6157
6158
6159
6160 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6161
6162 # find the maximum length of command line arguments
6163 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6164 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6165 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6166   echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168     i=0
6169   teststring="ABCD"
6170
6171   case $build_os in
6172   msdosdjgpp*)
6173     # On DJGPP, this test can blow up pretty badly due to problems in libc
6174     # (any single argument exceeding 2000 bytes causes a buffer overrun
6175     # during glob expansion).  Even if it were fixed, the result of this
6176     # check would be larger than it should be.
6177     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6178     ;;
6179
6180   gnu*)
6181     # Under GNU Hurd, this test is not required because there is
6182     # no limit to the length of command line arguments.
6183     # Libtool will interpret -1 as no limit whatsoever
6184     lt_cv_sys_max_cmd_len=-1;
6185     ;;
6186
6187   cygwin* | mingw*)
6188     # On Win9x/ME, this test blows up -- it succeeds, but takes
6189     # about 5 minutes as the teststring grows exponentially.
6190     # Worse, since 9x/ME are not pre-emptively multitasking,
6191     # you end up with a "frozen" computer, even though with patience
6192     # the test eventually succeeds (with a max line length of 256k).
6193     # Instead, let's just punt: use the minimum linelength reported by
6194     # all of the supported platforms: 8192 (on NT/2K/XP).
6195     lt_cv_sys_max_cmd_len=8192;
6196     ;;
6197
6198   amigaos*)
6199     # On AmigaOS with pdksh, this test takes hours, literally.
6200     # So we just punt and use a minimum line length of 8192.
6201     lt_cv_sys_max_cmd_len=8192;
6202     ;;
6203
6204   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6205     # This has been around since 386BSD, at least.  Likely further.
6206     if test -x /sbin/sysctl; then
6207       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6208     elif test -x /usr/sbin/sysctl; then
6209       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6210     else
6211       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6212     fi
6213     # And add a safety zone
6214     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6215     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6216     ;;
6217
6218   interix*)
6219     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6220     lt_cv_sys_max_cmd_len=196608
6221     ;;
6222
6223   osf*)
6224     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6225     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6226     # nice to cause kernel panics so lets avoid the loop below.
6227     # First set a reasonable default.
6228     lt_cv_sys_max_cmd_len=16384
6229     #
6230     if test -x /sbin/sysconfig; then
6231       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6232         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6233       esac
6234     fi
6235     ;;
6236   sco3.2v5*)
6237     lt_cv_sys_max_cmd_len=102400
6238     ;;
6239   sysv5* | sco5v6* | sysv4.2uw2*)
6240     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6241     if test -n "$kargmax"; then
6242       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6243     else
6244       lt_cv_sys_max_cmd_len=32768
6245     fi
6246     ;;
6247   *)
6248     # If test is not a shell built-in, we'll probably end up computing a
6249     # maximum length that is only half of the actual maximum length, but
6250     # we can't tell.
6251     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6252     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6253                = "XX$teststring") >/dev/null 2>&1 &&
6254             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6255             lt_cv_sys_max_cmd_len=$new_result &&
6256             test $i != 17 # 1/2 MB should be enough
6257     do
6258       i=`expr $i + 1`
6259       teststring=$teststring$teststring
6260     done
6261     teststring=
6262     # Add a significant safety factor because C++ compilers can tack on massive
6263     # amounts of additional arguments before passing them to the linker.
6264     # It appears as though 1/2 is a usable value.
6265     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6266     ;;
6267   esac
6268
6269 fi
6270
6271 if test -n $lt_cv_sys_max_cmd_len ; then
6272   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6273 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6274 else
6275   echo "$as_me:$LINENO: result: none" >&5
6276 echo "${ECHO_T}none" >&6
6277 fi
6278
6279
6280
6281
6282 # Check for command to grab the raw symbol name followed by C symbol from nm.
6283 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6284 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6285 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6286   echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288
6289 # These are sane defaults that work on at least a few old systems.
6290 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6291
6292 # Character class describing NM global symbol codes.
6293 symcode='[BCDEGRST]'
6294
6295 # Regexp to match symbols that can be accessed directly from C.
6296 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6297
6298 # Transform an extracted symbol line into a proper C declaration
6299 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6300
6301 # Transform an extracted symbol line into symbol name and symbol address
6302 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'"
6303
6304 # Define system-specific variables.
6305 case $host_os in
6306 aix*)
6307   symcode='[BCDT]'
6308   ;;
6309 cygwin* | mingw* | pw32*)
6310   symcode='[ABCDGISTW]'
6311   ;;
6312 hpux*) # Its linker distinguishes data from code symbols
6313   if test "$host_cpu" = ia64; then
6314     symcode='[ABCDEGRST]'
6315   fi
6316   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6317   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'"
6318   ;;
6319 linux*)
6320   if test "$host_cpu" = ia64; then
6321     symcode='[ABCDGIRSTW]'
6322     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6323     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'"
6324   fi
6325   ;;
6326 irix* | nonstopux*)
6327   symcode='[BCDEGRST]'
6328   ;;
6329 osf*)
6330   symcode='[BCDEGQRST]'
6331   ;;
6332 solaris*)
6333   symcode='[BDRT]'
6334   ;;
6335 sco3.2v5*)
6336   symcode='[DT]'
6337   ;;
6338 sysv4.2uw2*)
6339   symcode='[DT]'
6340   ;;
6341 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6342   symcode='[ABDT]'
6343   ;;
6344 sysv4)
6345   symcode='[DFNSTU]'
6346   ;;
6347 esac
6348
6349 # Handle CRLF in mingw tool chain
6350 opt_cr=
6351 case $build_os in
6352 mingw*)
6353   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6354   ;;
6355 esac
6356
6357 # If we're using GNU nm, then use its standard symbol codes.
6358 case `$NM -V 2>&1` in
6359 *GNU* | *'with BFD'*)
6360   symcode='[ABCDGIRSTW]' ;;
6361 esac
6362
6363 # Try without a prefix undercore, then with it.
6364 for ac_symprfx in "" "_"; do
6365
6366   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6367   symxfrm="\\1 $ac_symprfx\\2 \\2"
6368
6369   # Write the raw and C identifiers.
6370   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6371
6372   # Check to see that the pipe works correctly.
6373   pipe_works=no
6374
6375   rm -f conftest*
6376   cat > conftest.$ac_ext <<EOF
6377 #ifdef __cplusplus
6378 extern "C" {
6379 #endif
6380 char nm_test_var;
6381 void nm_test_func(){}
6382 #ifdef __cplusplus
6383 }
6384 #endif
6385 int main(){nm_test_var='a';nm_test_func();return(0);}
6386 EOF
6387
6388   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389   (eval $ac_compile) 2>&5
6390   ac_status=$?
6391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392   (exit $ac_status); }; then
6393     # Now try to grab the symbols.
6394     nlist=conftest.nm
6395     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6396   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6397   ac_status=$?
6398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399   (exit $ac_status); } && test -s "$nlist"; then
6400       # Try sorting and uniquifying the output.
6401       if sort "$nlist" | uniq > "$nlist"T; then
6402         mv -f "$nlist"T "$nlist"
6403       else
6404         rm -f "$nlist"T
6405       fi
6406
6407       # Make sure that we snagged all the symbols we need.
6408       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6409         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6410           cat <<EOF > conftest.$ac_ext
6411 #ifdef __cplusplus
6412 extern "C" {
6413 #endif
6414
6415 EOF
6416           # Now generate the symbol file.
6417           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6418
6419           cat <<EOF >> conftest.$ac_ext
6420 #if defined (__STDC__) && __STDC__
6421 # define lt_ptr_t void *
6422 #else
6423 # define lt_ptr_t char *
6424 # define const
6425 #endif
6426
6427 /* The mapping between symbol names and symbols. */
6428 const struct {
6429   const char *name;
6430   lt_ptr_t address;
6431 }
6432 lt_preloaded_symbols[] =
6433 {
6434 EOF
6435           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6436           cat <<\EOF >> conftest.$ac_ext
6437   {0, (lt_ptr_t) 0}
6438 };
6439
6440 #ifdef __cplusplus
6441 }
6442 #endif
6443 EOF
6444           # Now try linking the two files.
6445           mv conftest.$ac_objext conftstm.$ac_objext
6446           lt_save_LIBS="$LIBS"
6447           lt_save_CFLAGS="$CFLAGS"
6448           LIBS="conftstm.$ac_objext"
6449           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6450           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451   (eval $ac_link) 2>&5
6452   ac_status=$?
6453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6455             pipe_works=yes
6456           fi
6457           LIBS="$lt_save_LIBS"
6458           CFLAGS="$lt_save_CFLAGS"
6459         else
6460           echo "cannot find nm_test_func in $nlist" >&5
6461         fi
6462       else
6463         echo "cannot find nm_test_var in $nlist" >&5
6464       fi
6465     else
6466       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6467     fi
6468   else
6469     echo "$progname: failed program was:" >&5
6470     cat conftest.$ac_ext >&5
6471   fi
6472   rm -f conftest* conftst*
6473
6474   # Do not use the global_symbol_pipe unless it works.
6475   if test "$pipe_works" = yes; then
6476     break
6477   else
6478     lt_cv_sys_global_symbol_pipe=
6479   fi
6480 done
6481
6482 fi
6483
6484 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6485   lt_cv_sys_global_symbol_to_cdecl=
6486 fi
6487 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6488   echo "$as_me:$LINENO: result: failed" >&5
6489 echo "${ECHO_T}failed" >&6
6490 else
6491   echo "$as_me:$LINENO: result: ok" >&5
6492 echo "${ECHO_T}ok" >&6
6493 fi
6494
6495 echo "$as_me:$LINENO: checking for objdir" >&5
6496 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6497 if test "${lt_cv_objdir+set}" = set; then
6498   echo $ECHO_N "(cached) $ECHO_C" >&6
6499 else
6500   rm -f .libs 2>/dev/null
6501 mkdir .libs 2>/dev/null
6502 if test -d .libs; then
6503   lt_cv_objdir=.libs
6504 else
6505   # MS-DOS does not allow filenames that begin with a dot.
6506   lt_cv_objdir=_libs
6507 fi
6508 rmdir .libs 2>/dev/null
6509 fi
6510 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6511 echo "${ECHO_T}$lt_cv_objdir" >&6
6512 objdir=$lt_cv_objdir
6513
6514
6515
6516
6517
6518 case $host_os in
6519 aix3*)
6520   # AIX sometimes has problems with the GCC collect2 program.  For some
6521   # reason, if we set the COLLECT_NAMES environment variable, the problems
6522   # vanish in a puff of smoke.
6523   if test "X${COLLECT_NAMES+set}" != Xset; then
6524     COLLECT_NAMES=
6525     export COLLECT_NAMES
6526   fi
6527   ;;
6528 esac
6529
6530 # Sed substitution that helps us do robust quoting.  It backslashifies
6531 # metacharacters that are still active within double-quoted strings.
6532 Xsed='sed -e 1s/^X//'
6533 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6534
6535 # Same as above, but do not quote variable references.
6536 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6537
6538 # Sed substitution to delay expansion of an escaped shell variable in a
6539 # double_quote_subst'ed string.
6540 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6541
6542 # Sed substitution to avoid accidental globbing in evaled expressions
6543 no_glob_subst='s/\*/\\\*/g'
6544
6545 # Constants:
6546 rm="rm -f"
6547
6548 # Global variables:
6549 default_ofile=libtool
6550 can_build_shared=yes
6551
6552 # All known linkers require a `.a' archive for static linking (except MSVC,
6553 # which needs '.lib').
6554 libext=a
6555 ltmain="$ac_aux_dir/ltmain.sh"
6556 ofile="$default_ofile"
6557 with_gnu_ld="$lt_cv_prog_gnu_ld"
6558
6559 if test -n "$ac_tool_prefix"; then
6560   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6561 set dummy ${ac_tool_prefix}ar; ac_word=$2
6562 echo "$as_me:$LINENO: checking for $ac_word" >&5
6563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6564 if test "${ac_cv_prog_AR+set}" = set; then
6565   echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567   if test -n "$AR"; then
6568   ac_cv_prog_AR="$AR" # Let the user override the test.
6569 else
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 for as_dir in $PATH
6572 do
6573   IFS=$as_save_IFS
6574   test -z "$as_dir" && as_dir=.
6575   for ac_exec_ext in '' $ac_executable_extensions; do
6576   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6577     ac_cv_prog_AR="${ac_tool_prefix}ar"
6578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579     break 2
6580   fi
6581 done
6582 done
6583
6584 fi
6585 fi
6586 AR=$ac_cv_prog_AR
6587 if test -n "$AR"; then
6588   echo "$as_me:$LINENO: result: $AR" >&5
6589 echo "${ECHO_T}$AR" >&6
6590 else
6591   echo "$as_me:$LINENO: result: no" >&5
6592 echo "${ECHO_T}no" >&6
6593 fi
6594
6595 fi
6596 if test -z "$ac_cv_prog_AR"; then
6597   ac_ct_AR=$AR
6598   # Extract the first word of "ar", so it can be a program name with args.
6599 set dummy ar; ac_word=$2
6600 echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6602 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6603   echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605   if test -n "$ac_ct_AR"; then
6606   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6607 else
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6610 do
6611   IFS=$as_save_IFS
6612   test -z "$as_dir" && as_dir=.
6613   for ac_exec_ext in '' $ac_executable_extensions; do
6614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6615     ac_cv_prog_ac_ct_AR="ar"
6616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617     break 2
6618   fi
6619 done
6620 done
6621
6622   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6623 fi
6624 fi
6625 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6626 if test -n "$ac_ct_AR"; then
6627   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6628 echo "${ECHO_T}$ac_ct_AR" >&6
6629 else
6630   echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6
6632 fi
6633
6634   AR=$ac_ct_AR
6635 else
6636   AR="$ac_cv_prog_AR"
6637 fi
6638
6639 if test -n "$ac_tool_prefix"; then
6640   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6641 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6642 echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6644 if test "${ac_cv_prog_RANLIB+set}" = set; then
6645   echo $ECHO_N "(cached) $ECHO_C" >&6
6646 else
6647   if test -n "$RANLIB"; then
6648   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6652 do
6653   IFS=$as_save_IFS
6654   test -z "$as_dir" && as_dir=.
6655   for ac_exec_ext in '' $ac_executable_extensions; do
6656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6657     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659     break 2
6660   fi
6661 done
6662 done
6663
6664 fi
6665 fi
6666 RANLIB=$ac_cv_prog_RANLIB
6667 if test -n "$RANLIB"; then
6668   echo "$as_me:$LINENO: result: $RANLIB" >&5
6669 echo "${ECHO_T}$RANLIB" >&6
6670 else
6671   echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6
6673 fi
6674
6675 fi
6676 if test -z "$ac_cv_prog_RANLIB"; then
6677   ac_ct_RANLIB=$RANLIB
6678   # Extract the first word of "ranlib", so it can be a program name with args.
6679 set dummy ranlib; ac_word=$2
6680 echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6682 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6683   echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685   if test -n "$ac_ct_RANLIB"; then
6686   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6687 else
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691   IFS=$as_save_IFS
6692   test -z "$as_dir" && as_dir=.
6693   for ac_exec_ext in '' $ac_executable_extensions; do
6694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695     ac_cv_prog_ac_ct_RANLIB="ranlib"
6696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697     break 2
6698   fi
6699 done
6700 done
6701
6702   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6703 fi
6704 fi
6705 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6706 if test -n "$ac_ct_RANLIB"; then
6707   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6708 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6709 else
6710   echo "$as_me:$LINENO: result: no" >&5
6711 echo "${ECHO_T}no" >&6
6712 fi
6713
6714   RANLIB=$ac_ct_RANLIB
6715 else
6716   RANLIB="$ac_cv_prog_RANLIB"
6717 fi
6718
6719 if test -n "$ac_tool_prefix"; then
6720   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6721 set dummy ${ac_tool_prefix}strip; ac_word=$2
6722 echo "$as_me:$LINENO: checking for $ac_word" >&5
6723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6724 if test "${ac_cv_prog_STRIP+set}" = set; then
6725   echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727   if test -n "$STRIP"; then
6728   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733   IFS=$as_save_IFS
6734   test -z "$as_dir" && as_dir=.
6735   for ac_exec_ext in '' $ac_executable_extensions; do
6736   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6737     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739     break 2
6740   fi
6741 done
6742 done
6743
6744 fi
6745 fi
6746 STRIP=$ac_cv_prog_STRIP
6747 if test -n "$STRIP"; then
6748   echo "$as_me:$LINENO: result: $STRIP" >&5
6749 echo "${ECHO_T}$STRIP" >&6
6750 else
6751   echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6
6753 fi
6754
6755 fi
6756 if test -z "$ac_cv_prog_STRIP"; then
6757   ac_ct_STRIP=$STRIP
6758   # Extract the first word of "strip", so it can be a program name with args.
6759 set dummy strip; ac_word=$2
6760 echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6762 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6763   echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765   if test -n "$ac_ct_STRIP"; then
6766   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771   IFS=$as_save_IFS
6772   test -z "$as_dir" && as_dir=.
6773   for ac_exec_ext in '' $ac_executable_extensions; do
6774   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775     ac_cv_prog_ac_ct_STRIP="strip"
6776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777     break 2
6778   fi
6779 done
6780 done
6781
6782   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6783 fi
6784 fi
6785 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6786 if test -n "$ac_ct_STRIP"; then
6787   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6788 echo "${ECHO_T}$ac_ct_STRIP" >&6
6789 else
6790   echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6
6792 fi
6793
6794   STRIP=$ac_ct_STRIP
6795 else
6796   STRIP="$ac_cv_prog_STRIP"
6797 fi
6798
6799
6800 old_CC="$CC"
6801 old_CFLAGS="$CFLAGS"
6802
6803 # Set sane defaults for various variables
6804 test -z "$AR" && AR=ar
6805 test -z "$AR_FLAGS" && AR_FLAGS=cru
6806 test -z "$AS" && AS=as
6807 test -z "$CC" && CC=cc
6808 test -z "$LTCC" && LTCC=$CC
6809 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6810 test -z "$DLLTOOL" && DLLTOOL=dlltool
6811 test -z "$LD" && LD=ld
6812 test -z "$LN_S" && LN_S="ln -s"
6813 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6814 test -z "$NM" && NM=nm
6815 test -z "$SED" && SED=sed
6816 test -z "$OBJDUMP" && OBJDUMP=objdump
6817 test -z "$RANLIB" && RANLIB=:
6818 test -z "$STRIP" && STRIP=:
6819 test -z "$ac_objext" && ac_objext=o
6820
6821 # Determine commands to create old-style static archives.
6822 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6823 old_postinstall_cmds='chmod 644 $oldlib'
6824 old_postuninstall_cmds=
6825
6826 if test -n "$RANLIB"; then
6827   case $host_os in
6828   openbsd*)
6829     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6830     ;;
6831   *)
6832     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6833     ;;
6834   esac
6835   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6836 fi
6837
6838 for cc_temp in $compiler""; do
6839   case $cc_temp in
6840     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6841     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6842     \-*) ;;
6843     *) break;;
6844   esac
6845 done
6846 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6847
6848
6849 # Only perform the check for file, if the check method requires it
6850 case $deplibs_check_method in
6851 file_magic*)
6852   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6853     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6854 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6855 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6856   echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858   case $MAGIC_CMD in
6859 [\\/*] |  ?:[\\/]*)
6860   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6861   ;;
6862 *)
6863   lt_save_MAGIC_CMD="$MAGIC_CMD"
6864   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6865   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6866   for ac_dir in $ac_dummy; do
6867     IFS="$lt_save_ifs"
6868     test -z "$ac_dir" && ac_dir=.
6869     if test -f $ac_dir/${ac_tool_prefix}file; then
6870       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6871       if test -n "$file_magic_test_file"; then
6872         case $deplibs_check_method in
6873         "file_magic "*)
6874           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6875           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6876           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6877             $EGREP "$file_magic_regex" > /dev/null; then
6878             :
6879           else
6880             cat <<EOF 1>&2
6881
6882 *** Warning: the command libtool uses to detect shared libraries,
6883 *** $file_magic_cmd, produces output that libtool cannot recognize.
6884 *** The result is that libtool may fail to recognize shared libraries
6885 *** as such.  This will affect the creation of libtool libraries that
6886 *** depend on shared libraries, but programs linked with such libtool
6887 *** libraries will work regardless of this problem.  Nevertheless, you
6888 *** may want to report the problem to your system manager and/or to
6889 *** bug-libtool@gnu.org
6890
6891 EOF
6892           fi ;;
6893         esac
6894       fi
6895       break
6896     fi
6897   done
6898   IFS="$lt_save_ifs"
6899   MAGIC_CMD="$lt_save_MAGIC_CMD"
6900   ;;
6901 esac
6902 fi
6903
6904 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6905 if test -n "$MAGIC_CMD"; then
6906   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6907 echo "${ECHO_T}$MAGIC_CMD" >&6
6908 else
6909   echo "$as_me:$LINENO: result: no" >&5
6910 echo "${ECHO_T}no" >&6
6911 fi
6912
6913 if test -z "$lt_cv_path_MAGIC_CMD"; then
6914   if test -n "$ac_tool_prefix"; then
6915     echo "$as_me:$LINENO: checking for file" >&5
6916 echo $ECHO_N "checking for file... $ECHO_C" >&6
6917 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6918   echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920   case $MAGIC_CMD in
6921 [\\/*] |  ?:[\\/]*)
6922   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6923   ;;
6924 *)
6925   lt_save_MAGIC_CMD="$MAGIC_CMD"
6926   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6927   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6928   for ac_dir in $ac_dummy; do
6929     IFS="$lt_save_ifs"
6930     test -z "$ac_dir" && ac_dir=.
6931     if test -f $ac_dir/file; then
6932       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6933       if test -n "$file_magic_test_file"; then
6934         case $deplibs_check_method in
6935         "file_magic "*)
6936           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6937           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6938           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6939             $EGREP "$file_magic_regex" > /dev/null; then
6940             :
6941           else
6942             cat <<EOF 1>&2
6943
6944 *** Warning: the command libtool uses to detect shared libraries,
6945 *** $file_magic_cmd, produces output that libtool cannot recognize.
6946 *** The result is that libtool may fail to recognize shared libraries
6947 *** as such.  This will affect the creation of libtool libraries that
6948 *** depend on shared libraries, but programs linked with such libtool
6949 *** libraries will work regardless of this problem.  Nevertheless, you
6950 *** may want to report the problem to your system manager and/or to
6951 *** bug-libtool@gnu.org
6952
6953 EOF
6954           fi ;;
6955         esac
6956       fi
6957       break
6958     fi
6959   done
6960   IFS="$lt_save_ifs"
6961   MAGIC_CMD="$lt_save_MAGIC_CMD"
6962   ;;
6963 esac
6964 fi
6965
6966 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6967 if test -n "$MAGIC_CMD"; then
6968   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6969 echo "${ECHO_T}$MAGIC_CMD" >&6
6970 else
6971   echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6
6973 fi
6974
6975   else
6976     MAGIC_CMD=:
6977   fi
6978 fi
6979
6980   fi
6981   ;;
6982 esac
6983
6984 enable_dlopen=no
6985 enable_win32_dll=no
6986
6987 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6988 if test "${enable_libtool_lock+set}" = set; then
6989   enableval="$enable_libtool_lock"
6990
6991 fi;
6992 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6993
6994
6995 # Check whether --with-pic or --without-pic was given.
6996 if test "${with_pic+set}" = set; then
6997   withval="$with_pic"
6998   pic_mode="$withval"
6999 else
7000   pic_mode=default
7001 fi;
7002 test -z "$pic_mode" && pic_mode=default
7003
7004 # Use C for the default configuration in the libtool script
7005 tagname=
7006 lt_save_CC="$CC"
7007 ac_ext=c
7008 ac_cpp='$CPP $CPPFLAGS'
7009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7012
7013
7014 # Source file extension for C test sources.
7015 ac_ext=c
7016
7017 # Object file extension for compiled C test sources.
7018 objext=o
7019 objext=$objext
7020
7021 # Code to be used in simple compile tests
7022 lt_simple_compile_test_code="int some_variable = 0;\n"
7023
7024 # Code to be used in simple link tests
7025 lt_simple_link_test_code='int main(){return(0);}\n'
7026
7027
7028 # If no C compiler was specified, use CC.
7029 LTCC=${LTCC-"$CC"}
7030
7031 # If no C compiler flags were specified, use CFLAGS.
7032 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7033
7034 # Allow CC to be a program name with arguments.
7035 compiler=$CC
7036
7037
7038 # save warnings/boilerplate of simple test code
7039 ac_outfile=conftest.$ac_objext
7040 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7041 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7042 _lt_compiler_boilerplate=`cat conftest.err`
7043 $rm conftest*
7044
7045 ac_outfile=conftest.$ac_objext
7046 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7047 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7048 _lt_linker_boilerplate=`cat conftest.err`
7049 $rm conftest*
7050
7051
7052
7053 lt_prog_compiler_no_builtin_flag=
7054
7055 if test "$GCC" = yes; then
7056   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7057
7058
7059 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7060 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7061 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7062   echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064   lt_cv_prog_compiler_rtti_exceptions=no
7065   ac_outfile=conftest.$ac_objext
7066    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7067    lt_compiler_flag="-fno-rtti -fno-exceptions"
7068    # Insert the option either (1) after the last *FLAGS variable, or
7069    # (2) before a word containing "conftest.", or (3) at the end.
7070    # Note that $ac_compile itself does not contain backslashes and begins
7071    # with a dollar sign (not a hyphen), so the echo should work correctly.
7072    # The option is referenced via a variable to avoid confusing sed.
7073    lt_compile=`echo "$ac_compile" | $SED \
7074    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7075    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7076    -e 's:$: $lt_compiler_flag:'`
7077    (eval echo "\"\$as_me:7077: $lt_compile\"" >&5)
7078    (eval "$lt_compile" 2>conftest.err)
7079    ac_status=$?
7080    cat conftest.err >&5
7081    echo "$as_me:7081: \$? = $ac_status" >&5
7082    if (exit $ac_status) && test -s "$ac_outfile"; then
7083      # The compiler can only warn and ignore the option if not recognized
7084      # So say no if there are warnings other than the usual output.
7085      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7086      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7087      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7088        lt_cv_prog_compiler_rtti_exceptions=yes
7089      fi
7090    fi
7091    $rm conftest*
7092
7093 fi
7094 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7095 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7096
7097 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7098     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7099 else
7100     :
7101 fi
7102
7103 fi
7104
7105 lt_prog_compiler_wl=
7106 lt_prog_compiler_pic=
7107 lt_prog_compiler_static=
7108
7109 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7110 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7111
7112   if test "$GCC" = yes; then
7113     lt_prog_compiler_wl='-Wl,'
7114     lt_prog_compiler_static='-static'
7115
7116     case $host_os in
7117       aix*)
7118       # All AIX code is PIC.
7119       if test "$host_cpu" = ia64; then
7120         # AIX 5 now supports IA64 processor
7121         lt_prog_compiler_static='-Bstatic'
7122       fi
7123       ;;
7124
7125     amigaos*)
7126       # FIXME: we need at least 68020 code to build shared libraries, but
7127       # adding the `-m68020' flag to GCC prevents building anything better,
7128       # like `-m68040'.
7129       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7130       ;;
7131
7132     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7133       # PIC is the default for these OSes.
7134       ;;
7135
7136     mingw* | pw32* | os2*)
7137       # This hack is so that the source file can tell whether it is being
7138       # built for inclusion in a dll (and should export symbols for example).
7139       lt_prog_compiler_pic='-DDLL_EXPORT'
7140       ;;
7141
7142     darwin* | rhapsody*)
7143       # PIC is the default on this platform
7144       # Common symbols not allowed in MH_DYLIB files
7145       lt_prog_compiler_pic='-fno-common'
7146       ;;
7147
7148     interix3*)
7149       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7150       # Instead, we relocate shared libraries at runtime.
7151       ;;
7152
7153     msdosdjgpp*)
7154       # Just because we use GCC doesn't mean we suddenly get shared libraries
7155       # on systems that don't support them.
7156       lt_prog_compiler_can_build_shared=no
7157       enable_shared=no
7158       ;;
7159
7160     sysv4*MP*)
7161       if test -d /usr/nec; then
7162         lt_prog_compiler_pic=-Kconform_pic
7163       fi
7164       ;;
7165
7166     hpux*)
7167       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7168       # not for PA HP-UX.
7169       case $host_cpu in
7170       hppa*64*|ia64*)
7171         # +Z the default
7172         ;;
7173       *)
7174         lt_prog_compiler_pic='-fPIC'
7175         ;;
7176       esac
7177       ;;
7178
7179     *)
7180       lt_prog_compiler_pic='-fPIC'
7181       ;;
7182     esac
7183   else
7184     # PORTME Check for flag to pass linker flags through the system compiler.
7185     case $host_os in
7186     aix*)
7187       lt_prog_compiler_wl='-Wl,'
7188       if test "$host_cpu" = ia64; then
7189         # AIX 5 now supports IA64 processor
7190         lt_prog_compiler_static='-Bstatic'
7191       else
7192         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7193       fi
7194       ;;
7195       darwin*)
7196         # PIC is the default on this platform
7197         # Common symbols not allowed in MH_DYLIB files
7198        case $cc_basename in
7199          xlc*)
7200          lt_prog_compiler_pic='-qnocommon'
7201          lt_prog_compiler_wl='-Wl,'
7202          ;;
7203        esac
7204        ;;
7205
7206     mingw* | pw32* | os2*)
7207       # This hack is so that the source file can tell whether it is being
7208       # built for inclusion in a dll (and should export symbols for example).
7209       lt_prog_compiler_pic='-DDLL_EXPORT'
7210       ;;
7211
7212     hpux9* | hpux10* | hpux11*)
7213       lt_prog_compiler_wl='-Wl,'
7214       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7215       # not for PA HP-UX.
7216       case $host_cpu in
7217       hppa*64*|ia64*)
7218         # +Z the default
7219         ;;
7220       *)
7221         lt_prog_compiler_pic='+Z'
7222         ;;
7223       esac
7224       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7225       lt_prog_compiler_static='${wl}-a ${wl}archive'
7226       ;;
7227
7228     irix5* | irix6* | nonstopux*)
7229       lt_prog_compiler_wl='-Wl,'
7230       # PIC (with -KPIC) is the default.
7231       lt_prog_compiler_static='-non_shared'
7232       ;;
7233
7234     newsos6)
7235       lt_prog_compiler_pic='-KPIC'
7236       lt_prog_compiler_static='-Bstatic'
7237       ;;
7238
7239     linux*)
7240       case $cc_basename in
7241       icc* | ecc*)
7242         lt_prog_compiler_wl='-Wl,'
7243         lt_prog_compiler_pic='-KPIC'
7244         lt_prog_compiler_static='-static'
7245         ;;
7246       pgcc* | pgf77* | pgf90* | pgf95*)
7247         # Portland Group compilers (*not* the Pentium gcc compiler,
7248         # which looks to be a dead project)
7249         lt_prog_compiler_wl='-Wl,'
7250         lt_prog_compiler_pic='-fpic'
7251         lt_prog_compiler_static='-Bstatic'
7252         ;;
7253       ccc*)
7254         lt_prog_compiler_wl='-Wl,'
7255         # All Alpha code is PIC.
7256         lt_prog_compiler_static='-non_shared'
7257         ;;
7258       esac
7259       ;;
7260
7261     osf3* | osf4* | osf5*)
7262       lt_prog_compiler_wl='-Wl,'
7263       # All OSF/1 code is PIC.
7264       lt_prog_compiler_static='-non_shared'
7265       ;;
7266
7267     solaris*)
7268       lt_prog_compiler_pic='-KPIC'
7269       lt_prog_compiler_static='-Bstatic'
7270       case $cc_basename in
7271       f77* | f90* | f95*)
7272         lt_prog_compiler_wl='-Qoption ld ';;
7273       *)
7274         lt_prog_compiler_wl='-Wl,';;
7275       esac
7276       ;;
7277
7278     sunos4*)
7279       lt_prog_compiler_wl='-Qoption ld '
7280       lt_prog_compiler_pic='-PIC'
7281       lt_prog_compiler_static='-Bstatic'
7282       ;;
7283
7284     sysv4 | sysv4.2uw2* | sysv4.3*)
7285       lt_prog_compiler_wl='-Wl,'
7286       lt_prog_compiler_pic='-KPIC'
7287       lt_prog_compiler_static='-Bstatic'
7288       ;;
7289
7290     sysv4*MP*)
7291       if test -d /usr/nec ;then
7292         lt_prog_compiler_pic='-Kconform_pic'
7293         lt_prog_compiler_static='-Bstatic'
7294       fi
7295       ;;
7296
7297     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7298       lt_prog_compiler_wl='-Wl,'
7299       lt_prog_compiler_pic='-KPIC'
7300       lt_prog_compiler_static='-Bstatic'
7301       ;;
7302
7303     unicos*)
7304       lt_prog_compiler_wl='-Wl,'
7305       lt_prog_compiler_can_build_shared=no
7306       ;;
7307
7308     uts4*)
7309       lt_prog_compiler_pic='-pic'
7310       lt_prog_compiler_static='-Bstatic'
7311       ;;
7312
7313     *)
7314       lt_prog_compiler_can_build_shared=no
7315       ;;
7316     esac
7317   fi
7318
7319 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7320 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7321
7322 #
7323 # Check to make sure the PIC flag actually works.
7324 #
7325 if test -n "$lt_prog_compiler_pic"; then
7326
7327 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7328 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7329 if test "${lt_prog_compiler_pic_works+set}" = set; then
7330   echo $ECHO_N "(cached) $ECHO_C" >&6
7331 else
7332   lt_prog_compiler_pic_works=no
7333   ac_outfile=conftest.$ac_objext
7334    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7335    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7336    # Insert the option either (1) after the last *FLAGS variable, or
7337    # (2) before a word containing "conftest.", or (3) at the end.
7338    # Note that $ac_compile itself does not contain backslashes and begins
7339    # with a dollar sign (not a hyphen), so the echo should work correctly.
7340    # The option is referenced via a variable to avoid confusing sed.
7341    lt_compile=`echo "$ac_compile" | $SED \
7342    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7343    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7344    -e 's:$: $lt_compiler_flag:'`
7345    (eval echo "\"\$as_me:7345: $lt_compile\"" >&5)
7346    (eval "$lt_compile" 2>conftest.err)
7347    ac_status=$?
7348    cat conftest.err >&5
7349    echo "$as_me:7349: \$? = $ac_status" >&5
7350    if (exit $ac_status) && test -s "$ac_outfile"; then
7351      # The compiler can only warn and ignore the option if not recognized
7352      # So say no if there are warnings other than the usual output.
7353      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7354      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7355      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7356        lt_prog_compiler_pic_works=yes
7357      fi
7358    fi
7359    $rm conftest*
7360
7361 fi
7362 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7363 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7364
7365 if test x"$lt_prog_compiler_pic_works" = xyes; then
7366     case $lt_prog_compiler_pic in
7367      "" | " "*) ;;
7368      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7369      esac
7370 else
7371     lt_prog_compiler_pic=
7372      lt_prog_compiler_can_build_shared=no
7373 fi
7374
7375 fi
7376 case $host_os in
7377   # For platforms which do not support PIC, -DPIC is meaningless:
7378   *djgpp*)
7379     lt_prog_compiler_pic=
7380     ;;
7381   *)
7382     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7383     ;;
7384 esac
7385
7386 #
7387 # Check to make sure the static flag actually works.
7388 #
7389 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7390 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7391 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7392 if test "${lt_prog_compiler_static_works+set}" = set; then
7393   echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395   lt_prog_compiler_static_works=no
7396    save_LDFLAGS="$LDFLAGS"
7397    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7398    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7399    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7400      # The linker can only warn and ignore the option if not recognized
7401      # So say no if there are warnings
7402      if test -s conftest.err; then
7403        # Append any errors to the config.log.
7404        cat conftest.err 1>&5
7405        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7406        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7407        if diff conftest.exp conftest.er2 >/dev/null; then
7408          lt_prog_compiler_static_works=yes
7409        fi
7410      else
7411        lt_prog_compiler_static_works=yes
7412      fi
7413    fi
7414    $rm conftest*
7415    LDFLAGS="$save_LDFLAGS"
7416
7417 fi
7418 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7419 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7420
7421 if test x"$lt_prog_compiler_static_works" = xyes; then
7422     :
7423 else
7424     lt_prog_compiler_static=
7425 fi
7426
7427
7428 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7429 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7430 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7431   echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433   lt_cv_prog_compiler_c_o=no
7434    $rm -r conftest 2>/dev/null
7435    mkdir conftest
7436    cd conftest
7437    mkdir out
7438    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7439
7440    lt_compiler_flag="-o out/conftest2.$ac_objext"
7441    # Insert the option either (1) after the last *FLAGS variable, or
7442    # (2) before a word containing "conftest.", or (3) at the end.
7443    # Note that $ac_compile itself does not contain backslashes and begins
7444    # with a dollar sign (not a hyphen), so the echo should work correctly.
7445    lt_compile=`echo "$ac_compile" | $SED \
7446    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7447    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7448    -e 's:$: $lt_compiler_flag:'`
7449    (eval echo "\"\$as_me:7449: $lt_compile\"" >&5)
7450    (eval "$lt_compile" 2>out/conftest.err)
7451    ac_status=$?
7452    cat out/conftest.err >&5
7453    echo "$as_me:7453: \$? = $ac_status" >&5
7454    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7455    then
7456      # The compiler can only warn and ignore the option if not recognized
7457      # So say no if there are warnings
7458      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7459      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7460      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7461        lt_cv_prog_compiler_c_o=yes
7462      fi
7463    fi
7464    chmod u+w . 2>&5
7465    $rm conftest*
7466    # SGI C++ compiler will create directory out/ii_files/ for
7467    # template instantiation
7468    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7469    $rm out/* && rmdir out
7470    cd ..
7471    rmdir conftest
7472    $rm conftest*
7473
7474 fi
7475 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7476 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7477
7478
7479 hard_links="nottested"
7480 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7481   # do not overwrite the value of need_locks provided by the user
7482   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7483 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7484   hard_links=yes
7485   $rm conftest*
7486   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7487   touch conftest.a
7488   ln conftest.a conftest.b 2>&5 || hard_links=no
7489   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7490   echo "$as_me:$LINENO: result: $hard_links" >&5
7491 echo "${ECHO_T}$hard_links" >&6
7492   if test "$hard_links" = no; then
7493     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7494 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7495     need_locks=warn
7496   fi
7497 else
7498   need_locks=no
7499 fi
7500
7501 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7502 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7503
7504   runpath_var=
7505   allow_undefined_flag=
7506   enable_shared_with_static_runtimes=no
7507   archive_cmds=
7508   archive_expsym_cmds=
7509   old_archive_From_new_cmds=
7510   old_archive_from_expsyms_cmds=
7511   export_dynamic_flag_spec=
7512   whole_archive_flag_spec=
7513   thread_safe_flag_spec=
7514   hardcode_libdir_flag_spec=
7515   hardcode_libdir_flag_spec_ld=
7516   hardcode_libdir_separator=
7517   hardcode_direct=no
7518   hardcode_minus_L=no
7519   hardcode_shlibpath_var=unsupported
7520   link_all_deplibs=unknown
7521   hardcode_automatic=no
7522   module_cmds=
7523   module_expsym_cmds=
7524   always_export_symbols=no
7525   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7526   # include_expsyms should be a list of space-separated symbols to be *always*
7527   # included in the symbol list
7528   include_expsyms=
7529   # exclude_expsyms can be an extended regexp of symbols to exclude
7530   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7531   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7532   # as well as any symbol that contains `d'.
7533   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7534   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7535   # platforms (ab)use it in PIC code, but their linkers get confused if
7536   # the symbol is explicitly referenced.  Since portable code cannot
7537   # rely on this symbol name, it's probably fine to never include it in
7538   # preloaded symbol tables.
7539   extract_expsyms_cmds=
7540   # Just being paranoid about ensuring that cc_basename is set.
7541   for cc_temp in $compiler""; do
7542   case $cc_temp in
7543     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7544     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7545     \-*) ;;
7546     *) break;;
7547   esac
7548 done
7549 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7550
7551   case $host_os in
7552   cygwin* | mingw* | pw32*)
7553     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7554     # When not using gcc, we currently assume that we are using
7555     # Microsoft Visual C++.
7556     if test "$GCC" != yes; then
7557       with_gnu_ld=no
7558     fi
7559     ;;
7560   interix*)
7561     # we just hope/assume this is gcc and not c89 (= MSVC++)
7562     with_gnu_ld=yes
7563     ;;
7564   openbsd*)
7565     with_gnu_ld=no
7566     ;;
7567   esac
7568
7569   ld_shlibs=yes
7570   if test "$with_gnu_ld" = yes; then
7571     # If archive_cmds runs LD, not CC, wlarc should be empty
7572     wlarc='${wl}'
7573
7574     # Set some defaults for GNU ld with shared library support. These
7575     # are reset later if shared libraries are not supported. Putting them
7576     # here allows them to be overridden if necessary.
7577     runpath_var=LD_RUN_PATH
7578     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7579     export_dynamic_flag_spec='${wl}--export-dynamic'
7580     # ancient GNU ld didn't support --whole-archive et. al.
7581     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7582         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7583       else
7584         whole_archive_flag_spec=
7585     fi
7586     supports_anon_versioning=no
7587     case `$LD -v 2>/dev/null` in
7588       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7589       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7590       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7591       *\ 2.11.*) ;; # other 2.11 versions
7592       *) supports_anon_versioning=yes ;;
7593     esac
7594
7595     # See if GNU ld supports shared libraries.
7596     case $host_os in
7597     aix3* | aix4* | aix5*)
7598       # On AIX/PPC, the GNU linker is very broken
7599       if test "$host_cpu" != ia64; then
7600         ld_shlibs=no
7601         cat <<EOF 1>&2
7602
7603 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7604 *** to be unable to reliably create shared libraries on AIX.
7605 *** Therefore, libtool is disabling shared libraries support.  If you
7606 *** really care for shared libraries, you may want to modify your PATH
7607 *** so that a non-GNU linker is found, and then restart.
7608
7609 EOF
7610       fi
7611       ;;
7612
7613     amigaos*)
7614       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)'
7615       hardcode_libdir_flag_spec='-L$libdir'
7616       hardcode_minus_L=yes
7617
7618       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7619       # that the semantics of dynamic libraries on AmigaOS, at least up
7620       # to version 4, is to share data among multiple programs linked
7621       # with the same dynamic library.  Since this doesn't match the
7622       # behavior of shared libraries on other platforms, we can't use
7623       # them.
7624       ld_shlibs=no
7625       ;;
7626
7627     beos*)
7628       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7629         allow_undefined_flag=unsupported
7630         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7631         # support --undefined.  This deserves some investigation.  FIXME
7632         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7633       else
7634         ld_shlibs=no
7635       fi
7636       ;;
7637
7638     cygwin* | mingw* | pw32*)
7639       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7640       # as there is no search path for DLLs.
7641       hardcode_libdir_flag_spec='-L$libdir'
7642       allow_undefined_flag=unsupported
7643       always_export_symbols=no
7644       enable_shared_with_static_runtimes=yes
7645       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7646
7647       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7648         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7649         # If the export-symbols file already is a .def file (1st line
7650         # is EXPORTS), use it as is; otherwise, prepend...
7651         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7652           cp $export_symbols $output_objdir/$soname.def;
7653         else
7654           echo EXPORTS > $output_objdir/$soname.def;
7655           cat $export_symbols >> $output_objdir/$soname.def;
7656         fi~
7657         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7658       else
7659         ld_shlibs=no
7660       fi
7661       ;;
7662
7663     interix3*)
7664       hardcode_direct=no
7665       hardcode_shlibpath_var=no
7666       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7667       export_dynamic_flag_spec='${wl}-E'
7668       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7669       # Instead, shared libraries are loaded at an image base (0x10000000 by
7670       # default) and relocated if they conflict, which is a slow very memory
7671       # consuming and fragmenting process.  To avoid this, we pick a random,
7672       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7673       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7674       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7675       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'
7676       ;;
7677
7678     linux*)
7679       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7680         tmp_addflag=
7681         case $cc_basename,$host_cpu in
7682         pgcc*)                          # Portland Group C compiler
7683           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'
7684           tmp_addflag=' $pic_flag'
7685           ;;
7686         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7687           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'
7688           tmp_addflag=' $pic_flag -Mnomain' ;;
7689         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7690           tmp_addflag=' -i_dynamic' ;;
7691         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7692           tmp_addflag=' -i_dynamic -nofor_main' ;;
7693         ifc* | ifort*)                  # Intel Fortran compiler
7694           tmp_addflag=' -nofor_main' ;;
7695         esac
7696         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7697
7698         if test $supports_anon_versioning = yes; then
7699           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7700   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7701   $echo "local: *; };" >> $output_objdir/$libname.ver~
7702           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7703         fi
7704         link_all_deplibs=no
7705       else
7706         ld_shlibs=no
7707       fi
7708       ;;
7709
7710     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7711       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7712         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7713         wlarc=
7714       else
7715         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7716         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7717       fi
7718       ;;
7719
7720     solaris*)
7721       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7722         ld_shlibs=no
7723         cat <<EOF 1>&2
7724
7725 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7726 *** create shared libraries on Solaris systems.  Therefore, libtool
7727 *** is disabling shared libraries support.  We urge you to upgrade GNU
7728 *** binutils to release 2.9.1 or newer.  Another option is to modify
7729 *** your PATH or compiler configuration so that the native linker is
7730 *** used, and then restart.
7731
7732 EOF
7733       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7734         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7735         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7736       else
7737         ld_shlibs=no
7738       fi
7739       ;;
7740
7741     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7742       case `$LD -v 2>&1` in
7743         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7744         ld_shlibs=no
7745         cat <<_LT_EOF 1>&2
7746
7747 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7748 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7749 *** is disabling shared libraries support.  We urge you to upgrade GNU
7750 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7751 *** your PATH or compiler configuration so that the native linker is
7752 *** used, and then restart.
7753
7754 _LT_EOF
7755         ;;
7756         *)
7757           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7758             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7759             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7760             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7761           else
7762             ld_shlibs=no
7763           fi
7764         ;;
7765       esac
7766       ;;
7767
7768     sunos4*)
7769       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7770       wlarc=
7771       hardcode_direct=yes
7772       hardcode_shlibpath_var=no
7773       ;;
7774
7775     *)
7776       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7777         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7778         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7779       else
7780         ld_shlibs=no
7781       fi
7782       ;;
7783     esac
7784
7785     if test "$ld_shlibs" = no; then
7786       runpath_var=
7787       hardcode_libdir_flag_spec=
7788       export_dynamic_flag_spec=
7789       whole_archive_flag_spec=
7790     fi
7791   else
7792     # PORTME fill in a description of your system's linker (not GNU ld)
7793     case $host_os in
7794     aix3*)
7795       allow_undefined_flag=unsupported
7796       always_export_symbols=yes
7797       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'
7798       # Note: this linker hardcodes the directories in LIBPATH if there
7799       # are no directories specified by -L.
7800       hardcode_minus_L=yes
7801       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7802         # Neither direct hardcoding nor static linking is supported with a
7803         # broken collect2.
7804         hardcode_direct=unsupported
7805       fi
7806       ;;
7807
7808     aix4* | aix5*)
7809       if test "$host_cpu" = ia64; then
7810         # On IA64, the linker does run time linking by default, so we don't
7811         # have to do anything special.
7812         aix_use_runtimelinking=no
7813         exp_sym_flag='-Bexport'
7814         no_entry_flag=""
7815       else
7816         # If we're using GNU nm, then we don't want the "-C" option.
7817         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7818         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7819           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'
7820         else
7821           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'
7822         fi
7823         aix_use_runtimelinking=no
7824
7825         # Test if we are trying to use run time linking or normal
7826         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7827         # need to do runtime linking.
7828         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7829           for ld_flag in $LDFLAGS; do
7830           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7831             aix_use_runtimelinking=yes
7832             break
7833           fi
7834           done
7835           ;;
7836         esac
7837
7838         exp_sym_flag='-bexport'
7839         no_entry_flag='-bnoentry'
7840       fi
7841
7842       # When large executables or shared objects are built, AIX ld can
7843       # have problems creating the table of contents.  If linking a library
7844       # or program results in "error TOC overflow" add -mminimal-toc to
7845       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7846       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7847
7848       archive_cmds=''
7849       hardcode_direct=yes
7850       hardcode_libdir_separator=':'
7851       link_all_deplibs=yes
7852
7853       if test "$GCC" = yes; then
7854         case $host_os in aix4.[012]|aix4.[012].*)
7855         # We only want to do this on AIX 4.2 and lower, the check
7856         # below for broken collect2 doesn't work under 4.3+
7857           collect2name=`${CC} -print-prog-name=collect2`
7858           if test -f "$collect2name" && \
7859            strings "$collect2name" | grep resolve_lib_name >/dev/null
7860           then
7861           # We have reworked collect2
7862           hardcode_direct=yes
7863           else
7864           # We have old collect2
7865           hardcode_direct=unsupported
7866           # It fails to find uninstalled libraries when the uninstalled
7867           # path is not listed in the libpath.  Setting hardcode_minus_L
7868           # to unsupported forces relinking
7869           hardcode_minus_L=yes
7870           hardcode_libdir_flag_spec='-L$libdir'
7871           hardcode_libdir_separator=
7872           fi
7873           ;;
7874         esac
7875         shared_flag='-shared'
7876         if test "$aix_use_runtimelinking" = yes; then
7877           shared_flag="$shared_flag "'${wl}-G'
7878         fi
7879       else
7880         # not using gcc
7881         if test "$host_cpu" = ia64; then
7882         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7883         # chokes on -Wl,-G. The following line is correct:
7884           shared_flag='-G'
7885         else
7886           if test "$aix_use_runtimelinking" = yes; then
7887             shared_flag='${wl}-G'
7888           else
7889             shared_flag='${wl}-bM:SRE'
7890           fi
7891         fi
7892       fi
7893
7894       # It seems that -bexpall does not export symbols beginning with
7895       # underscore (_), so it is better to generate a list of symbols to export.
7896       always_export_symbols=yes
7897       if test "$aix_use_runtimelinking" = yes; then
7898         # Warning - without using the other runtime loading flags (-brtl),
7899         # -berok will link without error, but may produce a broken library.
7900         allow_undefined_flag='-berok'
7901        # Determine the default libpath from the value encoded in an empty executable.
7902        cat >conftest.$ac_ext <<_ACEOF
7903 /* confdefs.h.  */
7904 _ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h.  */
7908
7909 int
7910 main ()
7911 {
7912
7913   ;
7914   return 0;
7915 }
7916 _ACEOF
7917 rm -f conftest.$ac_objext conftest$ac_exeext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7919   (eval $ac_link) 2>conftest.er1
7920   ac_status=$?
7921   grep -v '^ *+' conftest.er1 >conftest.err
7922   rm -f conftest.er1
7923   cat conftest.err >&5
7924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925   (exit $ac_status); } &&
7926          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928   (eval $ac_try) 2>&5
7929   ac_status=$?
7930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931   (exit $ac_status); }; } &&
7932          { ac_try='test -s conftest$ac_exeext'
7933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934   (eval $ac_try) 2>&5
7935   ac_status=$?
7936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   (exit $ac_status); }; }; then
7938
7939 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7940 }'`
7941 # Check for a 64-bit object if we didn't find anything.
7942 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7943 }'`; fi
7944 else
7945   echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7947
7948 fi
7949 rm -f conftest.err conftest.$ac_objext \
7950       conftest$ac_exeext conftest.$ac_ext
7951 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7952
7953        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7954         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"
7955        else
7956         if test "$host_cpu" = ia64; then
7957           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7958           allow_undefined_flag="-z nodefs"
7959           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"
7960         else
7961          # Determine the default libpath from the value encoded in an empty executable.
7962          cat >conftest.$ac_ext <<_ACEOF
7963 /* confdefs.h.  */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h.  */
7968
7969 int
7970 main ()
7971 {
7972
7973   ;
7974   return 0;
7975 }
7976 _ACEOF
7977 rm -f conftest.$ac_objext conftest$ac_exeext
7978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7979   (eval $ac_link) 2>conftest.er1
7980   ac_status=$?
7981   grep -v '^ *+' conftest.er1 >conftest.err
7982   rm -f conftest.er1
7983   cat conftest.err >&5
7984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); } &&
7986          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988   (eval $ac_try) 2>&5
7989   ac_status=$?
7990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991   (exit $ac_status); }; } &&
7992          { ac_try='test -s conftest$ac_exeext'
7993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994   (eval $ac_try) 2>&5
7995   ac_status=$?
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); }; }; then
7998
7999 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8000 }'`
8001 # Check for a 64-bit object if we didn't find anything.
8002 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8003 }'`; fi
8004 else
8005   echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8007
8008 fi
8009 rm -f conftest.err conftest.$ac_objext \
8010       conftest$ac_exeext conftest.$ac_ext
8011 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8012
8013          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8014           # Warning - without using the other run time loading flags,
8015           # -berok will link without error, but may produce a broken library.
8016           no_undefined_flag=' ${wl}-bernotok'
8017           allow_undefined_flag=' ${wl}-berok'
8018           # Exported symbols can be pulled into shared objects from archives
8019           whole_archive_flag_spec='$convenience'
8020           archive_cmds_need_lc=yes
8021           # This is similar to how AIX traditionally builds its shared libraries.
8022           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'
8023         fi
8024       fi
8025       ;;
8026
8027     amigaos*)
8028       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)'
8029       hardcode_libdir_flag_spec='-L$libdir'
8030       hardcode_minus_L=yes
8031       # see comment about different semantics on the GNU ld section
8032       ld_shlibs=no
8033       ;;
8034
8035     bsdi[45]*)
8036       export_dynamic_flag_spec=-rdynamic
8037       ;;
8038
8039     cygwin* | mingw* | pw32*)
8040       # When not using gcc, we currently assume that we are using
8041       # Microsoft Visual C++.
8042       # hardcode_libdir_flag_spec is actually meaningless, as there is
8043       # no search path for DLLs.
8044       hardcode_libdir_flag_spec=' '
8045       allow_undefined_flag=unsupported
8046       # Tell ltmain to make .lib files, not .a files.
8047       libext=lib
8048       # Tell ltmain to make .dll files, not .so files.
8049       shrext_cmds=".dll"
8050       # FIXME: Setting linknames here is a bad hack.
8051       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8052       # The linker will automatically build a .lib file if we build a DLL.
8053       old_archive_From_new_cmds='true'
8054       # FIXME: Should let the user specify the lib program.
8055       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8056       fix_srcfile_path='`cygpath -w "$srcfile"`'
8057       enable_shared_with_static_runtimes=yes
8058       ;;
8059
8060     darwin* | rhapsody*)
8061       case $host_os in
8062         rhapsody* | darwin1.[012])
8063          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8064          ;;
8065        *) # Darwin 1.3 on
8066          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8067            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8068          else
8069            case ${MACOSX_DEPLOYMENT_TARGET} in
8070              10.[012])
8071                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8072                ;;
8073              10.*)
8074                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8075                ;;
8076            esac
8077          fi
8078          ;;
8079       esac
8080       archive_cmds_need_lc=no
8081       hardcode_direct=no
8082       hardcode_automatic=yes
8083       hardcode_shlibpath_var=unsupported
8084       whole_archive_flag_spec=''
8085       link_all_deplibs=yes
8086     if test "$GCC" = yes ; then
8087         output_verbose_link_cmd='echo'
8088         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8089       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8090       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8091       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}'
8092       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}'
8093     else
8094       case $cc_basename in
8095         xlc*)
8096          output_verbose_link_cmd='echo'
8097          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8098          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8099           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8100          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8101           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}'
8102           ;;
8103        *)
8104          ld_shlibs=no
8105           ;;
8106       esac
8107     fi
8108       ;;
8109
8110     dgux*)
8111       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8112       hardcode_libdir_flag_spec='-L$libdir'
8113       hardcode_shlibpath_var=no
8114       ;;
8115
8116     freebsd1*)
8117       ld_shlibs=no
8118       ;;
8119
8120     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8121     # support.  Future versions do this automatically, but an explicit c++rt0.o
8122     # does not break anything, and helps significantly (at the cost of a little
8123     # extra space).
8124     freebsd2.2*)
8125       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8126       hardcode_libdir_flag_spec='-R$libdir'
8127       hardcode_direct=yes
8128       hardcode_shlibpath_var=no
8129       ;;
8130
8131     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8132     freebsd2*)
8133       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8134       hardcode_direct=yes
8135       hardcode_minus_L=yes
8136       hardcode_shlibpath_var=no
8137       ;;
8138
8139     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8140     freebsd* | dragonfly*)
8141       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8142       hardcode_libdir_flag_spec='-R$libdir'
8143       hardcode_direct=yes
8144       hardcode_shlibpath_var=no
8145       ;;
8146
8147     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
8148     kfreebsd*-gnu)
8149       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8150       hardcode_libdir_flag_spec='-R$libdir'
8151       hardcode_direct=yes
8152       hardcode_shlibpath_var=no
8153       link_all_deplibs=no
8154       ;;
8155
8156     hpux9*)
8157       if test "$GCC" = yes; then
8158         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'
8159       else
8160         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'
8161       fi
8162       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8163       hardcode_libdir_separator=:
8164       hardcode_direct=yes
8165
8166       # hardcode_minus_L: Not really in the search PATH,
8167       # but as the default location of the library.
8168       hardcode_minus_L=yes
8169       export_dynamic_flag_spec='${wl}-E'
8170       ;;
8171
8172     hpux10*)
8173       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8174         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8175       else
8176         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8177       fi
8178       if test "$with_gnu_ld" = no; then
8179         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8180         hardcode_libdir_separator=:
8181
8182         hardcode_direct=yes
8183         export_dynamic_flag_spec='${wl}-E'
8184
8185         # hardcode_minus_L: Not really in the search PATH,
8186         # but as the default location of the library.
8187         hardcode_minus_L=yes
8188       fi
8189       ;;
8190
8191     hpux11*)
8192       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8193         case $host_cpu in
8194         hppa*64*)
8195           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8196           ;;
8197         ia64*)
8198           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8199           ;;
8200         *)
8201           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8202           ;;
8203         esac
8204       else
8205         case $host_cpu in
8206         hppa*64*)
8207           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8208           ;;
8209         ia64*)
8210           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8211           ;;
8212         *)
8213           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8214           ;;
8215         esac
8216       fi
8217       if test "$with_gnu_ld" = no; then
8218         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8219         hardcode_libdir_separator=:
8220
8221         case $host_cpu in
8222         hppa*64*|ia64*)
8223           hardcode_libdir_flag_spec_ld='+b $libdir'
8224           hardcode_direct=no
8225           hardcode_shlibpath_var=no
8226           ;;
8227         *)
8228           hardcode_direct=yes
8229           export_dynamic_flag_spec='${wl}-E'
8230
8231           # hardcode_minus_L: Not really in the search PATH,
8232           # but as the default location of the library.
8233           hardcode_minus_L=yes
8234           ;;
8235         esac
8236       fi
8237       ;;
8238
8239     irix5* | irix6* | nonstopux*)
8240       if test "$GCC" = yes; then
8241         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'
8242       else
8243         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'
8244         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8245       fi
8246       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8247       hardcode_libdir_separator=:
8248       link_all_deplibs=yes
8249       ;;
8250
8251     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8252       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8253         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8254       else
8255         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8256       fi
8257       hardcode_libdir_flag_spec='-R$libdir'
8258       hardcode_direct=yes
8259       hardcode_shlibpath_var=no
8260       ;;
8261
8262     newsos6)
8263       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8264       hardcode_direct=yes
8265       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8266       hardcode_libdir_separator=:
8267       hardcode_shlibpath_var=no
8268       ;;
8269
8270     openbsd*)
8271       hardcode_direct=yes
8272       hardcode_shlibpath_var=no
8273       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8274         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8275         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8276         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8277         export_dynamic_flag_spec='${wl}-E'
8278       else
8279        case $host_os in
8280          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8281            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8282            hardcode_libdir_flag_spec='-R$libdir'
8283            ;;
8284          *)
8285            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8286            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8287            ;;
8288        esac
8289       fi
8290       ;;
8291
8292     os2*)
8293       hardcode_libdir_flag_spec='-L$libdir'
8294       hardcode_minus_L=yes
8295       allow_undefined_flag=unsupported
8296       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'
8297       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8298       ;;
8299
8300     osf3*)
8301       if test "$GCC" = yes; then
8302         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8303         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'
8304       else
8305         allow_undefined_flag=' -expect_unresolved \*'
8306         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'
8307       fi
8308       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8309       hardcode_libdir_separator=:
8310       ;;
8311
8312     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8313       if test "$GCC" = yes; then
8314         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8315         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'
8316         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8317       else
8318         allow_undefined_flag=' -expect_unresolved \*'
8319         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'
8320         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8321         $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'
8322
8323         # Both c and cxx compiler support -rpath directly
8324         hardcode_libdir_flag_spec='-rpath $libdir'
8325       fi
8326       hardcode_libdir_separator=:
8327       ;;
8328
8329     solaris*)
8330       no_undefined_flag=' -z text'
8331       if test "$GCC" = yes; then
8332         wlarc='${wl}'
8333         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8334         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8335           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8336       else
8337         wlarc=''
8338         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8339         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8340         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8341       fi
8342       hardcode_libdir_flag_spec='-R$libdir'
8343       hardcode_shlibpath_var=no
8344       case $host_os in
8345       solaris2.[0-5] | solaris2.[0-5].*) ;;
8346       *)
8347         # The compiler driver will combine linker options so we
8348         # cannot just pass the convience library names through
8349         # without $wl, iff we do not link with $LD.
8350         # Luckily, gcc supports the same syntax we need for Sun Studio.
8351         # Supported since Solaris 2.6 (maybe 2.5.1?)
8352         case $wlarc in
8353         '')
8354           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8355         *)
8356           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8357         esac ;;
8358       esac
8359       link_all_deplibs=yes
8360       ;;
8361
8362     sunos4*)
8363       if test "x$host_vendor" = xsequent; then
8364         # Use $CC to link under sequent, because it throws in some extra .o
8365         # files that make .init and .fini sections work.
8366         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8367       else
8368         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8369       fi
8370       hardcode_libdir_flag_spec='-L$libdir'
8371       hardcode_direct=yes
8372       hardcode_minus_L=yes
8373       hardcode_shlibpath_var=no
8374       ;;
8375
8376     sysv4)
8377       case $host_vendor in
8378         sni)
8379           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8380           hardcode_direct=yes # is this really true???
8381         ;;
8382         siemens)
8383           ## LD is ld it makes a PLAMLIB
8384           ## CC just makes a GrossModule.
8385           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8386           reload_cmds='$CC -r -o $output$reload_objs'
8387           hardcode_direct=no
8388         ;;
8389         motorola)
8390           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8391           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8392         ;;
8393       esac
8394       runpath_var='LD_RUN_PATH'
8395       hardcode_shlibpath_var=no
8396       ;;
8397
8398     sysv4.3*)
8399       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400       hardcode_shlibpath_var=no
8401       export_dynamic_flag_spec='-Bexport'
8402       ;;
8403
8404     sysv4*MP*)
8405       if test -d /usr/nec; then
8406         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8407         hardcode_shlibpath_var=no
8408         runpath_var=LD_RUN_PATH
8409         hardcode_runpath_var=yes
8410         ld_shlibs=yes
8411       fi
8412       ;;
8413
8414     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8415       no_undefined_flag='${wl}-z,text'
8416       archive_cmds_need_lc=no
8417       hardcode_shlibpath_var=no
8418       runpath_var='LD_RUN_PATH'
8419
8420       if test "$GCC" = yes; then
8421         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8422         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423       else
8424         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8425         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8426       fi
8427       ;;
8428
8429     sysv5* | sco3.2v5* | sco5v6*)
8430       # Note: We can NOT use -z defs as we might desire, because we do not
8431       # link with -lc, and that would cause any symbols used from libc to
8432       # always be unresolved, which means just about no library would
8433       # ever link correctly.  If we're not using GNU ld we use -z text
8434       # though, which does catch some bad symbols but isn't as heavy-handed
8435       # as -z defs.
8436       no_undefined_flag='${wl}-z,text'
8437       allow_undefined_flag='${wl}-z,nodefs'
8438       archive_cmds_need_lc=no
8439       hardcode_shlibpath_var=no
8440       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8441       hardcode_libdir_separator=':'
8442       link_all_deplibs=yes
8443       export_dynamic_flag_spec='${wl}-Bexport'
8444       runpath_var='LD_RUN_PATH'
8445
8446       if test "$GCC" = yes; then
8447         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8448         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8449       else
8450         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8451         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8452       fi
8453       ;;
8454
8455     uts4*)
8456       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8457       hardcode_libdir_flag_spec='-L$libdir'
8458       hardcode_shlibpath_var=no
8459       ;;
8460
8461     *)
8462       ld_shlibs=no
8463       ;;
8464     esac
8465   fi
8466
8467 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8468 echo "${ECHO_T}$ld_shlibs" >&6
8469 test "$ld_shlibs" = no && can_build_shared=no
8470
8471 #
8472 # Do we need to explicitly link libc?
8473 #
8474 case "x$archive_cmds_need_lc" in
8475 x|xyes)
8476   # Assume -lc should be added
8477   archive_cmds_need_lc=yes
8478
8479   if test "$enable_shared" = yes && test "$GCC" = yes; then
8480     case $archive_cmds in
8481     *'~'*)
8482       # FIXME: we may have to deal with multi-command sequences.
8483       ;;
8484     '$CC '*)
8485       # Test whether the compiler implicitly links with -lc since on some
8486       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8487       # to ld, don't add -lc before -lgcc.
8488       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8489 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8490       $rm conftest*
8491       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8492
8493       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8494   (eval $ac_compile) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); } 2>conftest.err; then
8498         soname=conftest
8499         lib=conftest
8500         libobjs=conftest.$ac_objext
8501         deplibs=
8502         wl=$lt_prog_compiler_wl
8503         pic_flag=$lt_prog_compiler_pic
8504         compiler_flags=-v
8505         linker_flags=-v
8506         verstring=
8507         output_objdir=.
8508         libname=conftest
8509         lt_save_allow_undefined_flag=$allow_undefined_flag
8510         allow_undefined_flag=
8511         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8512   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); }
8516         then
8517           archive_cmds_need_lc=no
8518         else
8519           archive_cmds_need_lc=yes
8520         fi
8521         allow_undefined_flag=$lt_save_allow_undefined_flag
8522       else
8523         cat conftest.err 1>&5
8524       fi
8525       $rm conftest*
8526       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8527 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8528       ;;
8529     esac
8530   fi
8531   ;;
8532 esac
8533
8534 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8535 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8536 library_names_spec=
8537 libname_spec='lib$name'
8538 soname_spec=
8539 shrext_cmds=".so"
8540 postinstall_cmds=
8541 postuninstall_cmds=
8542 finish_cmds=
8543 finish_eval=
8544 shlibpath_var=
8545 shlibpath_overrides_runpath=unknown
8546 version_type=none
8547 dynamic_linker="$host_os ld.so"
8548 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8549 if test "$GCC" = yes; then
8550   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8551   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8552     # if the path contains ";" then we assume it to be the separator
8553     # otherwise default to the standard path separator (i.e. ":") - it is
8554     # assumed that no part of a normal pathname contains ";" but that should
8555     # okay in the real world where ";" in dirpaths is itself problematic.
8556     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8557   else
8558     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8559   fi
8560 else
8561   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8562 fi
8563 need_lib_prefix=unknown
8564 hardcode_into_libs=no
8565
8566 # when you set need_version to no, make sure it does not cause -set_version
8567 # flags to be left without arguments
8568 need_version=unknown
8569
8570 case $host_os in
8571 aix3*)
8572   version_type=linux
8573   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8574   shlibpath_var=LIBPATH
8575
8576   # AIX 3 has no versioning support, so we append a major version to the name.
8577   soname_spec='${libname}${release}${shared_ext}$major'
8578   ;;
8579
8580 aix4* | aix5*)
8581   version_type=linux
8582   need_lib_prefix=no
8583   need_version=no
8584   hardcode_into_libs=yes
8585   if test "$host_cpu" = ia64; then
8586     # AIX 5 supports IA64
8587     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8588     shlibpath_var=LD_LIBRARY_PATH
8589   else
8590     # With GCC up to 2.95.x, collect2 would create an import file
8591     # for dependence libraries.  The import file would start with
8592     # the line `#! .'.  This would cause the generated library to
8593     # depend on `.', always an invalid library.  This was fixed in
8594     # development snapshots of GCC prior to 3.0.
8595     case $host_os in
8596       aix4 | aix4.[01] | aix4.[01].*)
8597       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8598            echo ' yes '
8599            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8600         :
8601       else
8602         can_build_shared=no
8603       fi
8604       ;;
8605     esac
8606     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8607     # soname into executable. Probably we can add versioning support to
8608     # collect2, so additional links can be useful in future.
8609     if test "$aix_use_runtimelinking" = yes; then
8610       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8611       # instead of lib<name>.a to let people know that these are not
8612       # typical AIX shared libraries.
8613       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8614     else
8615       # We preserve .a as extension for shared libraries through AIX4.2
8616       # and later when we are not doing run time linking.
8617       library_names_spec='${libname}${release}.a $libname.a'
8618       soname_spec='${libname}${release}${shared_ext}$major'
8619     fi
8620     shlibpath_var=LIBPATH
8621   fi
8622   ;;
8623
8624 amigaos*)
8625   library_names_spec='$libname.ixlibrary $libname.a'
8626   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8627   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'
8628   ;;
8629
8630 beos*)
8631   library_names_spec='${libname}${shared_ext}'
8632   dynamic_linker="$host_os ld.so"
8633   shlibpath_var=LIBRARY_PATH
8634   ;;
8635
8636 bsdi[45]*)
8637   version_type=linux
8638   need_version=no
8639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8640   soname_spec='${libname}${release}${shared_ext}$major'
8641   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8642   shlibpath_var=LD_LIBRARY_PATH
8643   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8644   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8645   # the default ld.so.conf also contains /usr/contrib/lib and
8646   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8647   # libtool to hard-code these into programs
8648   ;;
8649
8650 cygwin* | mingw* | pw32*)
8651   version_type=windows
8652   shrext_cmds=".dll"
8653   need_version=no
8654   need_lib_prefix=no
8655
8656   case $GCC,$host_os in
8657   yes,cygwin* | yes,mingw* | yes,pw32*)
8658     library_names_spec='$libname.dll.a'
8659     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8660     postinstall_cmds='base_file=`basename \${file}`~
8661       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8662       dldir=$destdir/`dirname \$dlpath`~
8663       test -d \$dldir || mkdir -p \$dldir~
8664       $install_prog $dir/$dlname \$dldir/$dlname~
8665       chmod a+x \$dldir/$dlname'
8666     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8667       dlpath=$dir/\$dldll~
8668        $rm \$dlpath'
8669     shlibpath_overrides_runpath=yes
8670
8671     case $host_os in
8672     cygwin*)
8673       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8674       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8675       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8676       ;;
8677     mingw*)
8678       # MinGW DLLs use traditional 'lib' prefix
8679       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8680       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8681       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8682         # It is most probably a Windows format PATH printed by
8683         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8684         # path with ; separators, and with drive letters. We can handle the
8685         # drive letters (cygwin fileutils understands them), so leave them,
8686         # especially as we might pass files found there to a mingw objdump,
8687         # which wouldn't understand a cygwinified path. Ahh.
8688         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8689       else
8690         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8691       fi
8692       ;;
8693     pw32*)
8694       # pw32 DLLs use 'pw' prefix rather than 'lib'
8695       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8696       ;;
8697     esac
8698     ;;
8699
8700   *)
8701     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8702     ;;
8703   esac
8704   dynamic_linker='Win32 ld.exe'
8705   # FIXME: first we should search . and the directory the executable is in
8706   shlibpath_var=PATH
8707   ;;
8708
8709 darwin* | rhapsody*)
8710   dynamic_linker="$host_os dyld"
8711   version_type=darwin
8712   need_lib_prefix=no
8713   need_version=no
8714   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8715   soname_spec='${libname}${release}${major}$shared_ext'
8716   shlibpath_overrides_runpath=yes
8717   shlibpath_var=DYLD_LIBRARY_PATH
8718   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8719   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8720   if test "$GCC" = yes; then
8721     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8722   else
8723     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8724   fi
8725   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8726   ;;
8727
8728 dgux*)
8729   version_type=linux
8730   need_lib_prefix=no
8731   need_version=no
8732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8733   soname_spec='${libname}${release}${shared_ext}$major'
8734   shlibpath_var=LD_LIBRARY_PATH
8735   ;;
8736
8737 freebsd1*)
8738   dynamic_linker=no
8739   ;;
8740
8741 kfreebsd*-gnu)
8742   version_type=linux
8743   need_lib_prefix=no
8744   need_version=no
8745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8746   soname_spec='${libname}${release}${shared_ext}$major'
8747   shlibpath_var=LD_LIBRARY_PATH
8748   shlibpath_overrides_runpath=no
8749   hardcode_into_libs=yes
8750   dynamic_linker='GNU ld.so'
8751   ;;
8752
8753 freebsd* | dragonfly*)
8754   # DragonFly does not have aout.  When/if they implement a new
8755   # versioning mechanism, adjust this.
8756   if test -x /usr/bin/objformat; then
8757     objformat=`/usr/bin/objformat`
8758   else
8759     case $host_os in
8760     freebsd[123]*) objformat=aout ;;
8761     *) objformat=elf ;;
8762     esac
8763   fi
8764   version_type=freebsd-$objformat
8765   case $version_type in
8766     freebsd-elf*)
8767       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8768       need_version=no
8769       need_lib_prefix=no
8770       ;;
8771     freebsd-*)
8772       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8773       need_version=yes
8774       ;;
8775   esac
8776   shlibpath_var=LD_LIBRARY_PATH
8777   case $host_os in
8778   freebsd2*)
8779     shlibpath_overrides_runpath=yes
8780     ;;
8781   freebsd3.[01]* | freebsdelf3.[01]*)
8782     shlibpath_overrides_runpath=yes
8783     hardcode_into_libs=yes
8784     ;;
8785   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8786   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8787     shlibpath_overrides_runpath=no
8788     hardcode_into_libs=yes
8789     ;;
8790   freebsd*) # from 4.6 on
8791     shlibpath_overrides_runpath=yes
8792     hardcode_into_libs=yes
8793     ;;
8794   esac
8795   ;;
8796
8797 gnu*)
8798   version_type=linux
8799   need_lib_prefix=no
8800   need_version=no
8801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8802   soname_spec='${libname}${release}${shared_ext}$major'
8803   shlibpath_var=LD_LIBRARY_PATH
8804   hardcode_into_libs=yes
8805   ;;
8806
8807 hpux9* | hpux10* | hpux11*)
8808   # Give a soname corresponding to the major version so that dld.sl refuses to
8809   # link against other versions.
8810   version_type=sunos
8811   need_lib_prefix=no
8812   need_version=no
8813   case $host_cpu in
8814   ia64*)
8815     shrext_cmds='.so'
8816     hardcode_into_libs=yes
8817     dynamic_linker="$host_os dld.so"
8818     shlibpath_var=LD_LIBRARY_PATH
8819     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8820     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8821     soname_spec='${libname}${release}${shared_ext}$major'
8822     if test "X$HPUX_IA64_MODE" = X32; then
8823       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8824     else
8825       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8826     fi
8827     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8828     ;;
8829    hppa*64*)
8830      shrext_cmds='.sl'
8831      hardcode_into_libs=yes
8832      dynamic_linker="$host_os dld.sl"
8833      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8834      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8835      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836      soname_spec='${libname}${release}${shared_ext}$major'
8837      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8838      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8839      ;;
8840    *)
8841     shrext_cmds='.sl'
8842     dynamic_linker="$host_os dld.sl"
8843     shlibpath_var=SHLIB_PATH
8844     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8845     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846     soname_spec='${libname}${release}${shared_ext}$major'
8847     ;;
8848   esac
8849   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8850   postinstall_cmds='chmod 555 $lib'
8851   ;;
8852
8853 interix3*)
8854   version_type=linux
8855   need_lib_prefix=no
8856   need_version=no
8857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8858   soname_spec='${libname}${release}${shared_ext}$major'
8859   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8860   shlibpath_var=LD_LIBRARY_PATH
8861   shlibpath_overrides_runpath=no
8862   hardcode_into_libs=yes
8863   ;;
8864
8865 irix5* | irix6* | nonstopux*)
8866   case $host_os in
8867     nonstopux*) version_type=nonstopux ;;
8868     *)
8869         if test "$lt_cv_prog_gnu_ld" = yes; then
8870                 version_type=linux
8871         else
8872                 version_type=irix
8873         fi ;;
8874   esac
8875   need_lib_prefix=no
8876   need_version=no
8877   soname_spec='${libname}${release}${shared_ext}$major'
8878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8879   case $host_os in
8880   irix5* | nonstopux*)
8881     libsuff= shlibsuff=
8882     ;;
8883   *)
8884     case $LD in # libtool.m4 will add one of these switches to LD
8885     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8886       libsuff= shlibsuff= libmagic=32-bit;;
8887     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8888       libsuff=32 shlibsuff=N32 libmagic=N32;;
8889     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8890       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8891     *) libsuff= shlibsuff= libmagic=never-match;;
8892     esac
8893     ;;
8894   esac
8895   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8896   shlibpath_overrides_runpath=no
8897   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8898   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8899   hardcode_into_libs=yes
8900   ;;
8901
8902 # No shared lib support for Linux oldld, aout, or coff.
8903 linux*oldld* | linux*aout* | linux*coff*)
8904   dynamic_linker=no
8905   ;;
8906
8907 # This must be Linux ELF.
8908 linux*)
8909   version_type=linux
8910   need_lib_prefix=no
8911   need_version=no
8912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913   soname_spec='${libname}${release}${shared_ext}$major'
8914   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8915   shlibpath_var=LD_LIBRARY_PATH
8916   shlibpath_overrides_runpath=no
8917   # This implies no fast_install, which is unacceptable.
8918   # Some rework will be needed to allow for fast_install
8919   # before this can be enabled.
8920   hardcode_into_libs=yes
8921
8922   # Append ld.so.conf contents to the search path
8923   if test -f /etc/ld.so.conf; then
8924     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8925     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8926   fi
8927
8928   # We used to test for /lib/ld.so.1 and disable shared libraries on
8929   # powerpc, because MkLinux only supported shared libraries with the
8930   # GNU dynamic linker.  Since this was broken with cross compilers,
8931   # most powerpc-linux boxes support dynamic linking these days and
8932   # people can always --disable-shared, the test was removed, and we
8933   # assume the GNU/Linux dynamic linker is in use.
8934   dynamic_linker='GNU/Linux ld.so'
8935   ;;
8936
8937 netbsdelf*-gnu)
8938   version_type=linux
8939   need_lib_prefix=no
8940   need_version=no
8941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8942   soname_spec='${libname}${release}${shared_ext}$major'
8943   shlibpath_var=LD_LIBRARY_PATH
8944   shlibpath_overrides_runpath=no
8945   hardcode_into_libs=yes
8946   dynamic_linker='NetBSD ld.elf_so'
8947   ;;
8948
8949 knetbsd*-gnu)
8950   version_type=linux
8951   need_lib_prefix=no
8952   need_version=no
8953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8954   soname_spec='${libname}${release}${shared_ext}$major'
8955   shlibpath_var=LD_LIBRARY_PATH
8956   shlibpath_overrides_runpath=no
8957   hardcode_into_libs=yes
8958   dynamic_linker='GNU ld.so'
8959   ;;
8960
8961 netbsd*)
8962   version_type=sunos
8963   need_lib_prefix=no
8964   need_version=no
8965   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8966     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8967     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8968     dynamic_linker='NetBSD (a.out) ld.so'
8969   else
8970     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8971     soname_spec='${libname}${release}${shared_ext}$major'
8972     dynamic_linker='NetBSD ld.elf_so'
8973   fi
8974   shlibpath_var=LD_LIBRARY_PATH
8975   shlibpath_overrides_runpath=yes
8976   hardcode_into_libs=yes
8977   ;;
8978
8979 newsos6)
8980   version_type=linux
8981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982   shlibpath_var=LD_LIBRARY_PATH
8983   shlibpath_overrides_runpath=yes
8984   ;;
8985
8986 nto-qnx*)
8987   version_type=linux
8988   need_lib_prefix=no
8989   need_version=no
8990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8991   soname_spec='${libname}${release}${shared_ext}$major'
8992   shlibpath_var=LD_LIBRARY_PATH
8993   shlibpath_overrides_runpath=yes
8994   ;;
8995
8996 openbsd*)
8997   version_type=sunos
8998   sys_lib_dlsearch_path_spec="/usr/lib"
8999   need_lib_prefix=no
9000   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9001   case $host_os in
9002     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9003     *)                         need_version=no  ;;
9004   esac
9005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9006   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9007   shlibpath_var=LD_LIBRARY_PATH
9008   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9009     case $host_os in
9010       openbsd2.[89] | openbsd2.[89].*)
9011         shlibpath_overrides_runpath=no
9012         ;;
9013       *)
9014         shlibpath_overrides_runpath=yes
9015         ;;
9016       esac
9017   else
9018     shlibpath_overrides_runpath=yes
9019   fi
9020   ;;
9021
9022 os2*)
9023   libname_spec='$name'
9024   shrext_cmds=".dll"
9025   need_lib_prefix=no
9026   library_names_spec='$libname${shared_ext} $libname.a'
9027   dynamic_linker='OS/2 ld.exe'
9028   shlibpath_var=LIBPATH
9029   ;;
9030
9031 osf3* | osf4* | osf5*)
9032   version_type=osf
9033   need_lib_prefix=no
9034   need_version=no
9035   soname_spec='${libname}${release}${shared_ext}$major'
9036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037   shlibpath_var=LD_LIBRARY_PATH
9038   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9039   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9040   ;;
9041
9042 solaris*)
9043   version_type=linux
9044   need_lib_prefix=no
9045   need_version=no
9046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047   soname_spec='${libname}${release}${shared_ext}$major'
9048   shlibpath_var=LD_LIBRARY_PATH
9049   shlibpath_overrides_runpath=yes
9050   hardcode_into_libs=yes
9051   # ldd complains unless libraries are executable
9052   postinstall_cmds='chmod +x $lib'
9053   ;;
9054
9055 sunos4*)
9056   version_type=sunos
9057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9058   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9059   shlibpath_var=LD_LIBRARY_PATH
9060   shlibpath_overrides_runpath=yes
9061   if test "$with_gnu_ld" = yes; then
9062     need_lib_prefix=no
9063   fi
9064   need_version=yes
9065   ;;
9066
9067 sysv4 | sysv4.3*)
9068   version_type=linux
9069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070   soname_spec='${libname}${release}${shared_ext}$major'
9071   shlibpath_var=LD_LIBRARY_PATH
9072   case $host_vendor in
9073     sni)
9074       shlibpath_overrides_runpath=no
9075       need_lib_prefix=no
9076       export_dynamic_flag_spec='${wl}-Blargedynsym'
9077       runpath_var=LD_RUN_PATH
9078       ;;
9079     siemens)
9080       need_lib_prefix=no
9081       ;;
9082     motorola)
9083       need_lib_prefix=no
9084       need_version=no
9085       shlibpath_overrides_runpath=no
9086       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9087       ;;
9088   esac
9089   ;;
9090
9091 sysv4*MP*)
9092   if test -d /usr/nec ;then
9093     version_type=linux
9094     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9095     soname_spec='$libname${shared_ext}.$major'
9096     shlibpath_var=LD_LIBRARY_PATH
9097   fi
9098   ;;
9099
9100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9101   version_type=freebsd-elf
9102   need_lib_prefix=no
9103   need_version=no
9104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9105   soname_spec='${libname}${release}${shared_ext}$major'
9106   shlibpath_var=LD_LIBRARY_PATH
9107   hardcode_into_libs=yes
9108   if test "$with_gnu_ld" = yes; then
9109     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9110     shlibpath_overrides_runpath=no
9111   else
9112     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9113     shlibpath_overrides_runpath=yes
9114     case $host_os in
9115       sco3.2v5*)
9116         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9117         ;;
9118     esac
9119   fi
9120   sys_lib_dlsearch_path_spec='/usr/lib'
9121   ;;
9122
9123 uts4*)
9124   version_type=linux
9125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126   soname_spec='${libname}${release}${shared_ext}$major'
9127   shlibpath_var=LD_LIBRARY_PATH
9128   ;;
9129
9130 *)
9131   dynamic_linker=no
9132   ;;
9133 esac
9134 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9135 echo "${ECHO_T}$dynamic_linker" >&6
9136 test "$dynamic_linker" = no && can_build_shared=no
9137
9138 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9139 if test "$GCC" = yes; then
9140   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9141 fi
9142
9143 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9144 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9145 hardcode_action=
9146 if test -n "$hardcode_libdir_flag_spec" || \
9147    test -n "$runpath_var" || \
9148    test "X$hardcode_automatic" = "Xyes" ; then
9149
9150   # We can hardcode non-existant directories.
9151   if test "$hardcode_direct" != no &&
9152      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9153      # have to relink, otherwise we might link with an installed library
9154      # when we should be linking with a yet-to-be-installed one
9155      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9156      test "$hardcode_minus_L" != no; then
9157     # Linking always hardcodes the temporary library directory.
9158     hardcode_action=relink
9159   else
9160     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9161     hardcode_action=immediate
9162   fi
9163 else
9164   # We cannot hardcode anything, or else we can only hardcode existing
9165   # directories.
9166   hardcode_action=unsupported
9167 fi
9168 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9169 echo "${ECHO_T}$hardcode_action" >&6
9170
9171 if test "$hardcode_action" = relink; then
9172   # Fast installation is not supported
9173   enable_fast_install=no
9174 elif test "$shlibpath_overrides_runpath" = yes ||
9175      test "$enable_shared" = no; then
9176   # Fast installation is not necessary
9177   enable_fast_install=needless
9178 fi
9179
9180 striplib=
9181 old_striplib=
9182 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9183 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9184 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9185   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9186   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9187   echo "$as_me:$LINENO: result: yes" >&5
9188 echo "${ECHO_T}yes" >&6
9189 else
9190 # FIXME - insert some real tests, host_os isn't really good enough
9191   case $host_os in
9192    darwin*)
9193        if test -n "$STRIP" ; then
9194          striplib="$STRIP -x"
9195          echo "$as_me:$LINENO: result: yes" >&5
9196 echo "${ECHO_T}yes" >&6
9197        else
9198   echo "$as_me:$LINENO: result: no" >&5
9199 echo "${ECHO_T}no" >&6
9200 fi
9201        ;;
9202    *)
9203   echo "$as_me:$LINENO: result: no" >&5
9204 echo "${ECHO_T}no" >&6
9205     ;;
9206   esac
9207 fi
9208
9209 if test "x$enable_dlopen" != xyes; then
9210   enable_dlopen=unknown
9211   enable_dlopen_self=unknown
9212   enable_dlopen_self_static=unknown
9213 else
9214   lt_cv_dlopen=no
9215   lt_cv_dlopen_libs=
9216
9217   case $host_os in
9218   beos*)
9219     lt_cv_dlopen="load_add_on"
9220     lt_cv_dlopen_libs=
9221     lt_cv_dlopen_self=yes
9222     ;;
9223
9224   mingw* | pw32*)
9225     lt_cv_dlopen="LoadLibrary"
9226     lt_cv_dlopen_libs=
9227    ;;
9228
9229   cygwin*)
9230     lt_cv_dlopen="dlopen"
9231     lt_cv_dlopen_libs=
9232    ;;
9233
9234   darwin*)
9235   # if libdl is installed we need to link against it
9236     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9237 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9238 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9239   echo $ECHO_N "(cached) $ECHO_C" >&6
9240 else
9241   ac_check_lib_save_LIBS=$LIBS
9242 LIBS="-ldl  $LIBS"
9243 cat >conftest.$ac_ext <<_ACEOF
9244 /* confdefs.h.  */
9245 _ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h.  */
9249
9250 /* Override any gcc2 internal prototype to avoid an error.  */
9251 #ifdef __cplusplus
9252 extern "C"
9253 #endif
9254 /* We use char because int might match the return type of a gcc2
9255    builtin and then its argument prototype would still apply.  */
9256 char dlopen ();
9257 int
9258 main ()
9259 {
9260 dlopen ();
9261   ;
9262   return 0;
9263 }
9264 _ACEOF
9265 rm -f conftest.$ac_objext conftest$ac_exeext
9266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9267   (eval $ac_link) 2>conftest.er1
9268   ac_status=$?
9269   grep -v '^ *+' conftest.er1 >conftest.err
9270   rm -f conftest.er1
9271   cat conftest.err >&5
9272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273   (exit $ac_status); } &&
9274          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276   (eval $ac_try) 2>&5
9277   ac_status=$?
9278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279   (exit $ac_status); }; } &&
9280          { ac_try='test -s conftest$ac_exeext'
9281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282   (eval $ac_try) 2>&5
9283   ac_status=$?
9284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285   (exit $ac_status); }; }; then
9286   ac_cv_lib_dl_dlopen=yes
9287 else
9288   echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9290
9291 ac_cv_lib_dl_dlopen=no
9292 fi
9293 rm -f conftest.err conftest.$ac_objext \
9294       conftest$ac_exeext conftest.$ac_ext
9295 LIBS=$ac_check_lib_save_LIBS
9296 fi
9297 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9298 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9299 if test $ac_cv_lib_dl_dlopen = yes; then
9300   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9301 else
9302
9303     lt_cv_dlopen="dyld"
9304     lt_cv_dlopen_libs=
9305     lt_cv_dlopen_self=yes
9306
9307 fi
9308
9309    ;;
9310
9311   *)
9312     echo "$as_me:$LINENO: checking for shl_load" >&5
9313 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9314 if test "${ac_cv_func_shl_load+set}" = set; then
9315   echo $ECHO_N "(cached) $ECHO_C" >&6
9316 else
9317   cat >conftest.$ac_ext <<_ACEOF
9318 /* confdefs.h.  */
9319 _ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h.  */
9323 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9325 #define shl_load innocuous_shl_load
9326
9327 /* System header to define __stub macros and hopefully few prototypes,
9328     which can conflict with char shl_load (); below.
9329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9330     <limits.h> exists even on freestanding compilers.  */
9331
9332 #ifdef __STDC__
9333 # include <limits.h>
9334 #else
9335 # include <assert.h>
9336 #endif
9337
9338 #undef shl_load
9339
9340 /* Override any gcc2 internal prototype to avoid an error.  */
9341 #ifdef __cplusplus
9342 extern "C"
9343 {
9344 #endif
9345 /* We use char because int might match the return type of a gcc2
9346    builtin and then its argument prototype would still apply.  */
9347 char shl_load ();
9348 /* The GNU C library defines this for functions which it implements
9349     to always fail with ENOSYS.  Some functions are actually named
9350     something starting with __ and the normal name is an alias.  */
9351 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9352 choke me
9353 #else
9354 char (*f) () = shl_load;
9355 #endif
9356 #ifdef __cplusplus
9357 }
9358 #endif
9359
9360 int
9361 main ()
9362 {
9363 return f != shl_load;
9364   ;
9365   return 0;
9366 }
9367 _ACEOF
9368 rm -f conftest.$ac_objext conftest$ac_exeext
9369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9370   (eval $ac_link) 2>conftest.er1
9371   ac_status=$?
9372   grep -v '^ *+' conftest.er1 >conftest.err
9373   rm -f conftest.er1
9374   cat conftest.err >&5
9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); } &&
9377          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379   (eval $ac_try) 2>&5
9380   ac_status=$?
9381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382   (exit $ac_status); }; } &&
9383          { ac_try='test -s conftest$ac_exeext'
9384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385   (eval $ac_try) 2>&5
9386   ac_status=$?
9387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388   (exit $ac_status); }; }; then
9389   ac_cv_func_shl_load=yes
9390 else
9391   echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9393
9394 ac_cv_func_shl_load=no
9395 fi
9396 rm -f conftest.err conftest.$ac_objext \
9397       conftest$ac_exeext conftest.$ac_ext
9398 fi
9399 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9400 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9401 if test $ac_cv_func_shl_load = yes; then
9402   lt_cv_dlopen="shl_load"
9403 else
9404   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9405 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9406 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9407   echo $ECHO_N "(cached) $ECHO_C" >&6
9408 else
9409   ac_check_lib_save_LIBS=$LIBS
9410 LIBS="-ldld  $LIBS"
9411 cat >conftest.$ac_ext <<_ACEOF
9412 /* confdefs.h.  */
9413 _ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h.  */
9417
9418 /* Override any gcc2 internal prototype to avoid an error.  */
9419 #ifdef __cplusplus
9420 extern "C"
9421 #endif
9422 /* We use char because int might match the return type of a gcc2
9423    builtin and then its argument prototype would still apply.  */
9424 char shl_load ();
9425 int
9426 main ()
9427 {
9428 shl_load ();
9429   ;
9430   return 0;
9431 }
9432 _ACEOF
9433 rm -f conftest.$ac_objext conftest$ac_exeext
9434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9435   (eval $ac_link) 2>conftest.er1
9436   ac_status=$?
9437   grep -v '^ *+' conftest.er1 >conftest.err
9438   rm -f conftest.er1
9439   cat conftest.err >&5
9440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441   (exit $ac_status); } &&
9442          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444   (eval $ac_try) 2>&5
9445   ac_status=$?
9446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447   (exit $ac_status); }; } &&
9448          { ac_try='test -s conftest$ac_exeext'
9449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450   (eval $ac_try) 2>&5
9451   ac_status=$?
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); }; }; then
9454   ac_cv_lib_dld_shl_load=yes
9455 else
9456   echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9458
9459 ac_cv_lib_dld_shl_load=no
9460 fi
9461 rm -f conftest.err conftest.$ac_objext \
9462       conftest$ac_exeext conftest.$ac_ext
9463 LIBS=$ac_check_lib_save_LIBS
9464 fi
9465 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9466 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9467 if test $ac_cv_lib_dld_shl_load = yes; then
9468   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9469 else
9470   echo "$as_me:$LINENO: checking for dlopen" >&5
9471 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9472 if test "${ac_cv_func_dlopen+set}" = set; then
9473   echo $ECHO_N "(cached) $ECHO_C" >&6
9474 else
9475   cat >conftest.$ac_ext <<_ACEOF
9476 /* confdefs.h.  */
9477 _ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h.  */
9481 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9483 #define dlopen innocuous_dlopen
9484
9485 /* System header to define __stub macros and hopefully few prototypes,
9486     which can conflict with char dlopen (); below.
9487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9488     <limits.h> exists even on freestanding compilers.  */
9489
9490 #ifdef __STDC__
9491 # include <limits.h>
9492 #else
9493 # include <assert.h>
9494 #endif
9495
9496 #undef dlopen
9497
9498 /* Override any gcc2 internal prototype to avoid an error.  */
9499 #ifdef __cplusplus
9500 extern "C"
9501 {
9502 #endif
9503 /* We use char because int might match the return type of a gcc2
9504    builtin and then its argument prototype would still apply.  */
9505 char dlopen ();
9506 /* The GNU C library defines this for functions which it implements
9507     to always fail with ENOSYS.  Some functions are actually named
9508     something starting with __ and the normal name is an alias.  */
9509 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9510 choke me
9511 #else
9512 char (*f) () = dlopen;
9513 #endif
9514 #ifdef __cplusplus
9515 }
9516 #endif
9517
9518 int
9519 main ()
9520 {
9521 return f != dlopen;
9522   ;
9523   return 0;
9524 }
9525 _ACEOF
9526 rm -f conftest.$ac_objext conftest$ac_exeext
9527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9528   (eval $ac_link) 2>conftest.er1
9529   ac_status=$?
9530   grep -v '^ *+' conftest.er1 >conftest.err
9531   rm -f conftest.er1
9532   cat conftest.err >&5
9533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534   (exit $ac_status); } &&
9535          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537   (eval $ac_try) 2>&5
9538   ac_status=$?
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); }; } &&
9541          { ac_try='test -s conftest$ac_exeext'
9542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543   (eval $ac_try) 2>&5
9544   ac_status=$?
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); }; }; then
9547   ac_cv_func_dlopen=yes
9548 else
9549   echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9551
9552 ac_cv_func_dlopen=no
9553 fi
9554 rm -f conftest.err conftest.$ac_objext \
9555       conftest$ac_exeext conftest.$ac_ext
9556 fi
9557 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9558 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9559 if test $ac_cv_func_dlopen = yes; then
9560   lt_cv_dlopen="dlopen"
9561 else
9562   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9563 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9564 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9565   echo $ECHO_N "(cached) $ECHO_C" >&6
9566 else
9567   ac_check_lib_save_LIBS=$LIBS
9568 LIBS="-ldl  $LIBS"
9569 cat >conftest.$ac_ext <<_ACEOF
9570 /* confdefs.h.  */
9571 _ACEOF
9572 cat confdefs.h >>conftest.$ac_ext
9573 cat >>conftest.$ac_ext <<_ACEOF
9574 /* end confdefs.h.  */
9575
9576 /* Override any gcc2 internal prototype to avoid an error.  */
9577 #ifdef __cplusplus
9578 extern "C"
9579 #endif
9580 /* We use char because int might match the return type of a gcc2
9581    builtin and then its argument prototype would still apply.  */
9582 char dlopen ();
9583 int
9584 main ()
9585 {
9586 dlopen ();
9587   ;
9588   return 0;
9589 }
9590 _ACEOF
9591 rm -f conftest.$ac_objext conftest$ac_exeext
9592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9593   (eval $ac_link) 2>conftest.er1
9594   ac_status=$?
9595   grep -v '^ *+' conftest.er1 >conftest.err
9596   rm -f conftest.er1
9597   cat conftest.err >&5
9598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599   (exit $ac_status); } &&
9600          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602   (eval $ac_try) 2>&5
9603   ac_status=$?
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   (exit $ac_status); }; } &&
9606          { ac_try='test -s conftest$ac_exeext'
9607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608   (eval $ac_try) 2>&5
9609   ac_status=$?
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); }; }; then
9612   ac_cv_lib_dl_dlopen=yes
9613 else
9614   echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9616
9617 ac_cv_lib_dl_dlopen=no
9618 fi
9619 rm -f conftest.err conftest.$ac_objext \
9620       conftest$ac_exeext conftest.$ac_ext
9621 LIBS=$ac_check_lib_save_LIBS
9622 fi
9623 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9624 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9625 if test $ac_cv_lib_dl_dlopen = yes; then
9626   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9627 else
9628   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9629 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9630 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9631   echo $ECHO_N "(cached) $ECHO_C" >&6
9632 else
9633   ac_check_lib_save_LIBS=$LIBS
9634 LIBS="-lsvld  $LIBS"
9635 cat >conftest.$ac_ext <<_ACEOF
9636 /* confdefs.h.  */
9637 _ACEOF
9638 cat confdefs.h >>conftest.$ac_ext
9639 cat >>conftest.$ac_ext <<_ACEOF
9640 /* end confdefs.h.  */
9641
9642 /* Override any gcc2 internal prototype to avoid an error.  */
9643 #ifdef __cplusplus
9644 extern "C"
9645 #endif
9646 /* We use char because int might match the return type of a gcc2
9647    builtin and then its argument prototype would still apply.  */
9648 char dlopen ();
9649 int
9650 main ()
9651 {
9652 dlopen ();
9653   ;
9654   return 0;
9655 }
9656 _ACEOF
9657 rm -f conftest.$ac_objext conftest$ac_exeext
9658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9659   (eval $ac_link) 2>conftest.er1
9660   ac_status=$?
9661   grep -v '^ *+' conftest.er1 >conftest.err
9662   rm -f conftest.er1
9663   cat conftest.err >&5
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); } &&
9666          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668   (eval $ac_try) 2>&5
9669   ac_status=$?
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); }; } &&
9672          { ac_try='test -s conftest$ac_exeext'
9673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674   (eval $ac_try) 2>&5
9675   ac_status=$?
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); }; }; then
9678   ac_cv_lib_svld_dlopen=yes
9679 else
9680   echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9682
9683 ac_cv_lib_svld_dlopen=no
9684 fi
9685 rm -f conftest.err conftest.$ac_objext \
9686       conftest$ac_exeext conftest.$ac_ext
9687 LIBS=$ac_check_lib_save_LIBS
9688 fi
9689 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9690 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9691 if test $ac_cv_lib_svld_dlopen = yes; then
9692   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9693 else
9694   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9695 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9696 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9697   echo $ECHO_N "(cached) $ECHO_C" >&6
9698 else
9699   ac_check_lib_save_LIBS=$LIBS
9700 LIBS="-ldld  $LIBS"
9701 cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h.  */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h.  */
9707
9708 /* Override any gcc2 internal prototype to avoid an error.  */
9709 #ifdef __cplusplus
9710 extern "C"
9711 #endif
9712 /* We use char because int might match the return type of a gcc2
9713    builtin and then its argument prototype would still apply.  */
9714 char dld_link ();
9715 int
9716 main ()
9717 {
9718 dld_link ();
9719   ;
9720   return 0;
9721 }
9722 _ACEOF
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725   (eval $ac_link) 2>conftest.er1
9726   ac_status=$?
9727   grep -v '^ *+' conftest.er1 >conftest.err
9728   rm -f conftest.er1
9729   cat conftest.err >&5
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); } &&
9732          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734   (eval $ac_try) 2>&5
9735   ac_status=$?
9736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); }; } &&
9738          { ac_try='test -s conftest$ac_exeext'
9739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740   (eval $ac_try) 2>&5
9741   ac_status=$?
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); }; }; then
9744   ac_cv_lib_dld_dld_link=yes
9745 else
9746   echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9748
9749 ac_cv_lib_dld_dld_link=no
9750 fi
9751 rm -f conftest.err conftest.$ac_objext \
9752       conftest$ac_exeext conftest.$ac_ext
9753 LIBS=$ac_check_lib_save_LIBS
9754 fi
9755 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9756 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9757 if test $ac_cv_lib_dld_dld_link = yes; then
9758   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9759 fi
9760
9761
9762 fi
9763
9764
9765 fi
9766
9767
9768 fi
9769
9770
9771 fi
9772
9773
9774 fi
9775
9776     ;;
9777   esac
9778
9779   if test "x$lt_cv_dlopen" != xno; then
9780     enable_dlopen=yes
9781   else
9782     enable_dlopen=no
9783   fi
9784
9785   case $lt_cv_dlopen in
9786   dlopen)
9787     save_CPPFLAGS="$CPPFLAGS"
9788     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9789
9790     save_LDFLAGS="$LDFLAGS"
9791     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9792
9793     save_LIBS="$LIBS"
9794     LIBS="$lt_cv_dlopen_libs $LIBS"
9795
9796     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9797 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9798 if test "${lt_cv_dlopen_self+set}" = set; then
9799   echo $ECHO_N "(cached) $ECHO_C" >&6
9800 else
9801           if test "$cross_compiling" = yes; then :
9802   lt_cv_dlopen_self=cross
9803 else
9804   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9805   lt_status=$lt_dlunknown
9806   cat > conftest.$ac_ext <<EOF
9807 #line 9807 "configure"
9808 #include "confdefs.h"
9809
9810 #if HAVE_DLFCN_H
9811 #include <dlfcn.h>
9812 #endif
9813
9814 #include <stdio.h>
9815
9816 #ifdef RTLD_GLOBAL
9817 #  define LT_DLGLOBAL           RTLD_GLOBAL
9818 #else
9819 #  ifdef DL_GLOBAL
9820 #    define LT_DLGLOBAL         DL_GLOBAL
9821 #  else
9822 #    define LT_DLGLOBAL         0
9823 #  endif
9824 #endif
9825
9826 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9827    find out it does not work in some platform. */
9828 #ifndef LT_DLLAZY_OR_NOW
9829 #  ifdef RTLD_LAZY
9830 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9831 #  else
9832 #    ifdef DL_LAZY
9833 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9834 #    else
9835 #      ifdef RTLD_NOW
9836 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9837 #      else
9838 #        ifdef DL_NOW
9839 #          define LT_DLLAZY_OR_NOW      DL_NOW
9840 #        else
9841 #          define LT_DLLAZY_OR_NOW      0
9842 #        endif
9843 #      endif
9844 #    endif
9845 #  endif
9846 #endif
9847
9848 #ifdef __cplusplus
9849 extern "C" void exit (int);
9850 #endif
9851
9852 void fnord() { int i=42;}
9853 int main ()
9854 {
9855   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9856   int status = $lt_dlunknown;
9857
9858   if (self)
9859     {
9860       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9861       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9862       /* dlclose (self); */
9863     }
9864   else
9865     puts (dlerror ());
9866
9867     exit (status);
9868 }
9869 EOF
9870   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9871   (eval $ac_link) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9875     (./conftest; exit; ) >&5 2>/dev/null
9876     lt_status=$?
9877     case x$lt_status in
9878       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9879       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9880       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9881     esac
9882   else :
9883     # compilation failed
9884     lt_cv_dlopen_self=no
9885   fi
9886 fi
9887 rm -fr conftest*
9888
9889
9890 fi
9891 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9892 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9893
9894     if test "x$lt_cv_dlopen_self" = xyes; then
9895       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9896       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9897 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9898 if test "${lt_cv_dlopen_self_static+set}" = set; then
9899   echo $ECHO_N "(cached) $ECHO_C" >&6
9900 else
9901           if test "$cross_compiling" = yes; then :
9902   lt_cv_dlopen_self_static=cross
9903 else
9904   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9905   lt_status=$lt_dlunknown
9906   cat > conftest.$ac_ext <<EOF
9907 #line 9907 "configure"
9908 #include "confdefs.h"
9909
9910 #if HAVE_DLFCN_H
9911 #include <dlfcn.h>
9912 #endif
9913
9914 #include <stdio.h>
9915
9916 #ifdef RTLD_GLOBAL
9917 #  define LT_DLGLOBAL           RTLD_GLOBAL
9918 #else
9919 #  ifdef DL_GLOBAL
9920 #    define LT_DLGLOBAL         DL_GLOBAL
9921 #  else
9922 #    define LT_DLGLOBAL         0
9923 #  endif
9924 #endif
9925
9926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9927    find out it does not work in some platform. */
9928 #ifndef LT_DLLAZY_OR_NOW
9929 #  ifdef RTLD_LAZY
9930 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9931 #  else
9932 #    ifdef DL_LAZY
9933 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9934 #    else
9935 #      ifdef RTLD_NOW
9936 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9937 #      else
9938 #        ifdef DL_NOW
9939 #          define LT_DLLAZY_OR_NOW      DL_NOW
9940 #        else
9941 #          define LT_DLLAZY_OR_NOW      0
9942 #        endif
9943 #      endif
9944 #    endif
9945 #  endif
9946 #endif
9947
9948 #ifdef __cplusplus
9949 extern "C" void exit (int);
9950 #endif
9951
9952 void fnord() { int i=42;}
9953 int main ()
9954 {
9955   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9956   int status = $lt_dlunknown;
9957
9958   if (self)
9959     {
9960       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9961       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9962       /* dlclose (self); */
9963     }
9964   else
9965     puts (dlerror ());
9966
9967     exit (status);
9968 }
9969 EOF
9970   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9971   (eval $ac_link) 2>&5
9972   ac_status=$?
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9975     (./conftest; exit; ) >&5 2>/dev/null
9976     lt_status=$?
9977     case x$lt_status in
9978       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9979       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9980       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9981     esac
9982   else :
9983     # compilation failed
9984     lt_cv_dlopen_self_static=no
9985   fi
9986 fi
9987 rm -fr conftest*
9988
9989
9990 fi
9991 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9992 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9993     fi
9994
9995     CPPFLAGS="$save_CPPFLAGS"
9996     LDFLAGS="$save_LDFLAGS"
9997     LIBS="$save_LIBS"
9998     ;;
9999   esac
10000
10001   case $lt_cv_dlopen_self in
10002   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10003   *) enable_dlopen_self=unknown ;;
10004   esac
10005
10006   case $lt_cv_dlopen_self_static in
10007   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10008   *) enable_dlopen_self_static=unknown ;;
10009   esac
10010 fi
10011
10012
10013 # Report which library types will actually be built
10014 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10015 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10016 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10017 echo "${ECHO_T}$can_build_shared" >&6
10018
10019 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10020 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10021 test "$can_build_shared" = "no" && enable_shared=no
10022
10023 # On AIX, shared libraries and static libraries use the same namespace, and
10024 # are all built from PIC.
10025 case $host_os in
10026 aix3*)
10027   test "$enable_shared" = yes && enable_static=no
10028   if test -n "$RANLIB"; then
10029     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10030     postinstall_cmds='$RANLIB $lib'
10031   fi
10032   ;;
10033
10034 aix4* | aix5*)
10035   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10036     test "$enable_shared" = yes && enable_static=no
10037   fi
10038     ;;
10039 esac
10040 echo "$as_me:$LINENO: result: $enable_shared" >&5
10041 echo "${ECHO_T}$enable_shared" >&6
10042
10043 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10044 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10045 # Make sure either enable_shared or enable_static is yes.
10046 test "$enable_shared" = yes || enable_static=yes
10047 echo "$as_me:$LINENO: result: $enable_static" >&5
10048 echo "${ECHO_T}$enable_static" >&6
10049
10050 # The else clause should only fire when bootstrapping the
10051 # libtool distribution, otherwise you forgot to ship ltmain.sh
10052 # with your package, and you will get complaints that there are
10053 # no rules to generate ltmain.sh.
10054 if test -f "$ltmain"; then
10055   # See if we are running on zsh, and set the options which allow our commands through
10056   # without removal of \ escapes.
10057   if test -n "${ZSH_VERSION+set}" ; then
10058     setopt NO_GLOB_SUBST
10059   fi
10060   # Now quote all the things that may contain metacharacters while being
10061   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10062   # variables and quote the copies for generation of the libtool script.
10063   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10064     SED SHELL STRIP \
10065     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10066     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10067     deplibs_check_method reload_flag reload_cmds need_locks \
10068     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10069     lt_cv_sys_global_symbol_to_c_name_address \
10070     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10071     old_postinstall_cmds old_postuninstall_cmds \
10072     compiler \
10073     CC \
10074     LD \
10075     lt_prog_compiler_wl \
10076     lt_prog_compiler_pic \
10077     lt_prog_compiler_static \
10078     lt_prog_compiler_no_builtin_flag \
10079     export_dynamic_flag_spec \
10080     thread_safe_flag_spec \
10081     whole_archive_flag_spec \
10082     enable_shared_with_static_runtimes \
10083     old_archive_cmds \
10084     old_archive_from_new_cmds \
10085     predep_objects \
10086     postdep_objects \
10087     predeps \
10088     postdeps \
10089     compiler_lib_search_path \
10090     archive_cmds \
10091     archive_expsym_cmds \
10092     postinstall_cmds \
10093     postuninstall_cmds \
10094     old_archive_from_expsyms_cmds \
10095     allow_undefined_flag \
10096     no_undefined_flag \
10097     export_symbols_cmds \
10098     hardcode_libdir_flag_spec \
10099     hardcode_libdir_flag_spec_ld \
10100     hardcode_libdir_separator \
10101     hardcode_automatic \
10102     module_cmds \
10103     module_expsym_cmds \
10104     lt_cv_prog_compiler_c_o \
10105     exclude_expsyms \
10106     include_expsyms; do
10107
10108     case $var in
10109     old_archive_cmds | \
10110     old_archive_from_new_cmds | \
10111     archive_cmds | \
10112     archive_expsym_cmds | \
10113     module_cmds | \
10114     module_expsym_cmds | \
10115     old_archive_from_expsyms_cmds | \
10116     export_symbols_cmds | \
10117     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10118     postinstall_cmds | postuninstall_cmds | \
10119     old_postinstall_cmds | old_postuninstall_cmds | \
10120     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10121       # Double-quote double-evaled strings.
10122       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10123       ;;
10124     *)
10125       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10126       ;;
10127     esac
10128   done
10129
10130   case $lt_echo in
10131   *'\$0 --fallback-echo"')
10132     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10133     ;;
10134   esac
10135
10136 cfgfile="${ofile}T"
10137   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10138   $rm -f "$cfgfile"
10139   { echo "$as_me:$LINENO: creating $ofile" >&5
10140 echo "$as_me: creating $ofile" >&6;}
10141
10142   cat <<__EOF__ >> "$cfgfile"
10143 #! $SHELL
10144
10145 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10146 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10147 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10148 #
10149 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10150 # Free Software Foundation, Inc.
10151 #
10152 # This file is part of GNU Libtool:
10153 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10154 #
10155 # This program is free software; you can redistribute it and/or modify
10156 # it under the terms of the GNU General Public License as published by
10157 # the Free Software Foundation; either version 3 of the License, or
10158 # (at your option) any later version.
10159 #
10160 # This program is distributed in the hope that it will be useful, but
10161 # WITHOUT ANY WARRANTY; without even the implied warranty of
10162 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10163 # General Public License for more details.
10164 #
10165 # You should have received a copy of the GNU General Public License
10166 # along with this program; if not, see <http://www.gnu.org/licenses/>.
10167 #
10168 # As a special exception to the GNU General Public License, if you
10169 # distribute this file as part of a program that contains a
10170 # configuration script generated by Autoconf, you may include it under
10171 # the same distribution terms that you use for the rest of that program.
10172
10173 # A sed program that does not truncate output.
10174 SED=$lt_SED
10175
10176 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10177 Xsed="$SED -e 1s/^X//"
10178
10179 # The HP-UX ksh and POSIX shell print the target directory to stdout
10180 # if CDPATH is set.
10181 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10182
10183 # The names of the tagged configurations supported by this script.
10184 available_tags=
10185
10186 # ### BEGIN LIBTOOL CONFIG
10187
10188 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10189
10190 # Shell to use when invoking shell scripts.
10191 SHELL=$lt_SHELL
10192
10193 # Whether or not to build shared libraries.
10194 build_libtool_libs=$enable_shared
10195
10196 # Whether or not to build static libraries.
10197 build_old_libs=$enable_static
10198
10199 # Whether or not to add -lc for building shared libraries.
10200 build_libtool_need_lc=$archive_cmds_need_lc
10201
10202 # Whether or not to disallow shared libs when runtime libs are static
10203 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10204
10205 # Whether or not to optimize for fast installation.
10206 fast_install=$enable_fast_install
10207
10208 # The host system.
10209 host_alias=$host_alias
10210 host=$host
10211 host_os=$host_os
10212
10213 # The build system.
10214 build_alias=$build_alias
10215 build=$build
10216 build_os=$build_os
10217
10218 # An echo program that does not interpret backslashes.
10219 echo=$lt_echo
10220
10221 # The archiver.
10222 AR=$lt_AR
10223 AR_FLAGS=$lt_AR_FLAGS
10224
10225 # A C compiler.
10226 LTCC=$lt_LTCC
10227
10228 # LTCC compiler flags.
10229 LTCFLAGS=$lt_LTCFLAGS
10230
10231 # A language-specific compiler.
10232 CC=$lt_compiler
10233
10234 # Is the compiler the GNU C compiler?
10235 with_gcc=$GCC
10236
10237 # An ERE matcher.
10238 EGREP=$lt_EGREP
10239
10240 # The linker used to build libraries.
10241 LD=$lt_LD
10242
10243 # Whether we need hard or soft links.
10244 LN_S=$lt_LN_S
10245
10246 # A BSD-compatible nm program.
10247 NM=$lt_NM
10248
10249 # A symbol stripping program
10250 STRIP=$lt_STRIP
10251
10252 # Used to examine libraries when file_magic_cmd begins "file"
10253 MAGIC_CMD=$MAGIC_CMD
10254
10255 # Used on cygwin: DLL creation program.
10256 DLLTOOL="$DLLTOOL"
10257
10258 # Used on cygwin: object dumper.
10259 OBJDUMP="$OBJDUMP"
10260
10261 # Used on cygwin: assembler.
10262 AS="$AS"
10263
10264 # The name of the directory that contains temporary libtool files.
10265 objdir=$objdir
10266
10267 # How to create reloadable object files.
10268 reload_flag=$lt_reload_flag
10269 reload_cmds=$lt_reload_cmds
10270
10271 # How to pass a linker flag through the compiler.
10272 wl=$lt_lt_prog_compiler_wl
10273
10274 # Object file suffix (normally "o").
10275 objext="$ac_objext"
10276
10277 # Old archive suffix (normally "a").
10278 libext="$libext"
10279
10280 # Shared library suffix (normally ".so").
10281 shrext_cmds='$shrext_cmds'
10282
10283 # Executable file suffix (normally "").
10284 exeext="$exeext"
10285
10286 # Additional compiler flags for building library objects.
10287 pic_flag=$lt_lt_prog_compiler_pic
10288 pic_mode=$pic_mode
10289
10290 # What is the maximum length of a command?
10291 max_cmd_len=$lt_cv_sys_max_cmd_len
10292
10293 # Does compiler simultaneously support -c and -o options?
10294 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10295
10296 # Must we lock files when doing compilation?
10297 need_locks=$lt_need_locks
10298
10299 # Do we need the lib prefix for modules?
10300 need_lib_prefix=$need_lib_prefix
10301
10302 # Do we need a version for libraries?
10303 need_version=$need_version
10304
10305 # Whether dlopen is supported.
10306 dlopen_support=$enable_dlopen
10307
10308 # Whether dlopen of programs is supported.
10309 dlopen_self=$enable_dlopen_self
10310
10311 # Whether dlopen of statically linked programs is supported.
10312 dlopen_self_static=$enable_dlopen_self_static
10313
10314 # Compiler flag to prevent dynamic linking.
10315 link_static_flag=$lt_lt_prog_compiler_static
10316
10317 # Compiler flag to turn off builtin functions.
10318 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10319
10320 # Compiler flag to allow reflexive dlopens.
10321 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10322
10323 # Compiler flag to generate shared objects directly from archives.
10324 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10325
10326 # Compiler flag to generate thread-safe objects.
10327 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10328
10329 # Library versioning type.
10330 version_type=$version_type
10331
10332 # Format of library name prefix.
10333 libname_spec=$lt_libname_spec
10334
10335 # List of archive names.  First name is the real one, the rest are links.
10336 # The last name is the one that the linker finds with -lNAME.
10337 library_names_spec=$lt_library_names_spec
10338
10339 # The coded name of the library, if different from the real name.
10340 soname_spec=$lt_soname_spec
10341
10342 # Commands used to build and install an old-style archive.
10343 RANLIB=$lt_RANLIB
10344 old_archive_cmds=$lt_old_archive_cmds
10345 old_postinstall_cmds=$lt_old_postinstall_cmds
10346 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10347
10348 # Create an old-style archive from a shared archive.
10349 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10350
10351 # Create a temporary old-style archive to link instead of a shared archive.
10352 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10353
10354 # Commands used to build and install a shared archive.
10355 archive_cmds=$lt_archive_cmds
10356 archive_expsym_cmds=$lt_archive_expsym_cmds
10357 postinstall_cmds=$lt_postinstall_cmds
10358 postuninstall_cmds=$lt_postuninstall_cmds
10359
10360 # Commands used to build a loadable module (assumed same as above if empty)
10361 module_cmds=$lt_module_cmds
10362 module_expsym_cmds=$lt_module_expsym_cmds
10363
10364 # Commands to strip libraries.
10365 old_striplib=$lt_old_striplib
10366 striplib=$lt_striplib
10367
10368 # Dependencies to place before the objects being linked to create a
10369 # shared library.
10370 predep_objects=$lt_predep_objects
10371
10372 # Dependencies to place after the objects being linked to create a
10373 # shared library.
10374 postdep_objects=$lt_postdep_objects
10375
10376 # Dependencies to place before the objects being linked to create a
10377 # shared library.
10378 predeps=$lt_predeps
10379
10380 # Dependencies to place after the objects being linked to create a
10381 # shared library.
10382 postdeps=$lt_postdeps
10383
10384 # The library search path used internally by the compiler when linking
10385 # a shared library.
10386 compiler_lib_search_path=$lt_compiler_lib_search_path
10387
10388 # Method to check whether dependent libraries are shared objects.
10389 deplibs_check_method=$lt_deplibs_check_method
10390
10391 # Command to use when deplibs_check_method == file_magic.
10392 file_magic_cmd=$lt_file_magic_cmd
10393
10394 # Flag that allows shared libraries with undefined symbols to be built.
10395 allow_undefined_flag=$lt_allow_undefined_flag
10396
10397 # Flag that forces no undefined symbols.
10398 no_undefined_flag=$lt_no_undefined_flag
10399
10400 # Commands used to finish a libtool library installation in a directory.
10401 finish_cmds=$lt_finish_cmds
10402
10403 # Same as above, but a single script fragment to be evaled but not shown.
10404 finish_eval=$lt_finish_eval
10405
10406 # Take the output of nm and produce a listing of raw symbols and C names.
10407 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10408
10409 # Transform the output of nm in a proper C declaration
10410 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10411
10412 # Transform the output of nm in a C name address pair
10413 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10414
10415 # This is the shared library runtime path variable.
10416 runpath_var=$runpath_var
10417
10418 # This is the shared library path variable.
10419 shlibpath_var=$shlibpath_var
10420
10421 # Is shlibpath searched before the hard-coded library search path?
10422 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10423
10424 # How to hardcode a shared library path into an executable.
10425 hardcode_action=$hardcode_action
10426
10427 # Whether we should hardcode library paths into libraries.
10428 hardcode_into_libs=$hardcode_into_libs
10429
10430 # Flag to hardcode \$libdir into a binary during linking.
10431 # This must work even if \$libdir does not exist.
10432 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10433
10434 # If ld is used when linking, flag to hardcode \$libdir into
10435 # a binary during linking. This must work even if \$libdir does
10436 # not exist.
10437 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10438
10439 # Whether we need a single -rpath flag with a separated argument.
10440 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10441
10442 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10443 # resulting binary.
10444 hardcode_direct=$hardcode_direct
10445
10446 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10447 # resulting binary.
10448 hardcode_minus_L=$hardcode_minus_L
10449
10450 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10451 # the resulting binary.
10452 hardcode_shlibpath_var=$hardcode_shlibpath_var
10453
10454 # Set to yes if building a shared library automatically hardcodes DIR into the library
10455 # and all subsequent libraries and executables linked against it.
10456 hardcode_automatic=$hardcode_automatic
10457
10458 # Variables whose values should be saved in libtool wrapper scripts and
10459 # restored at relink time.
10460 variables_saved_for_relink="$variables_saved_for_relink"
10461
10462 # Whether libtool must link a program against all its dependency libraries.
10463 link_all_deplibs=$link_all_deplibs
10464
10465 # Compile-time system search path for libraries
10466 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10467
10468 # Run-time system search path for libraries
10469 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10470
10471 # Fix the shell variable \$srcfile for the compiler.
10472 fix_srcfile_path="$fix_srcfile_path"
10473
10474 # Set to yes if exported symbols are required.
10475 always_export_symbols=$always_export_symbols
10476
10477 # The commands to list exported symbols.
10478 export_symbols_cmds=$lt_export_symbols_cmds
10479
10480 # The commands to extract the exported symbol list from a shared archive.
10481 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10482
10483 # Symbols that should not be listed in the preloaded symbols.
10484 exclude_expsyms=$lt_exclude_expsyms
10485
10486 # Symbols that must always be exported.
10487 include_expsyms=$lt_include_expsyms
10488
10489 # ### END LIBTOOL CONFIG
10490
10491 __EOF__
10492
10493
10494   case $host_os in
10495   aix3*)
10496     cat <<\EOF >> "$cfgfile"
10497
10498 # AIX sometimes has problems with the GCC collect2 program.  For some
10499 # reason, if we set the COLLECT_NAMES environment variable, the problems
10500 # vanish in a puff of smoke.
10501 if test "X${COLLECT_NAMES+set}" != Xset; then
10502   COLLECT_NAMES=
10503   export COLLECT_NAMES
10504 fi
10505 EOF
10506     ;;
10507   esac
10508
10509   # We use sed instead of cat because bash on DJGPP gets confused if
10510   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10511   # text mode, it properly converts lines to CR/LF.  This bash problem
10512   # is reportedly fixed, but why not run on old versions too?
10513   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10514
10515   mv -f "$cfgfile" "$ofile" || \
10516     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10517   chmod +x "$ofile"
10518
10519 else
10520   # If there is no Makefile yet, we rely on a make rule to execute
10521   # `config.status --recheck' to rerun these tests and create the
10522   # libtool script then.
10523   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10524   if test -f "$ltmain_in"; then
10525     test -f Makefile && make "$ltmain"
10526   fi
10527 fi
10528
10529
10530 ac_ext=c
10531 ac_cpp='$CPP $CPPFLAGS'
10532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10535
10536 CC="$lt_save_CC"
10537
10538
10539 # Check whether --with-tags or --without-tags was given.
10540 if test "${with_tags+set}" = set; then
10541   withval="$with_tags"
10542   tagnames="$withval"
10543 fi;
10544
10545 if test -f "$ltmain" && test -n "$tagnames"; then
10546   if test ! -f "${ofile}"; then
10547     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10548 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10549   fi
10550
10551   if test -z "$LTCC"; then
10552     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10553     if test -z "$LTCC"; then
10554       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10555 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10556     else
10557       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10558 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10559     fi
10560   fi
10561   if test -z "$LTCFLAGS"; then
10562     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10563   fi
10564
10565   # Extract list of available tagged configurations in $ofile.
10566   # Note that this assumes the entire list is on one line.
10567   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10568
10569   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10570   for tagname in $tagnames; do
10571     IFS="$lt_save_ifs"
10572     # Check whether tagname contains only valid characters
10573     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10574     "") ;;
10575     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10576 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10577    { (exit 1); exit 1; }; }
10578         ;;
10579     esac
10580
10581     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10582     then
10583       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10584 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10585    { (exit 1); exit 1; }; }
10586     fi
10587
10588     # Update the list of available tags.
10589     if test -n "$tagname"; then
10590       echo appending configuration tag \"$tagname\" to $ofile
10591
10592       case $tagname in
10593       CXX)
10594         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10595             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10596             (test "X$CXX" != "Xg++"))) ; then
10597           ac_ext=cc
10598 ac_cpp='$CXXCPP $CPPFLAGS'
10599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10602
10603
10604
10605
10606 archive_cmds_need_lc_CXX=no
10607 allow_undefined_flag_CXX=
10608 always_export_symbols_CXX=no
10609 archive_expsym_cmds_CXX=
10610 export_dynamic_flag_spec_CXX=
10611 hardcode_direct_CXX=no
10612 hardcode_libdir_flag_spec_CXX=
10613 hardcode_libdir_flag_spec_ld_CXX=
10614 hardcode_libdir_separator_CXX=
10615 hardcode_minus_L_CXX=no
10616 hardcode_shlibpath_var_CXX=unsupported
10617 hardcode_automatic_CXX=no
10618 module_cmds_CXX=
10619 module_expsym_cmds_CXX=
10620 link_all_deplibs_CXX=unknown
10621 old_archive_cmds_CXX=$old_archive_cmds
10622 no_undefined_flag_CXX=
10623 whole_archive_flag_spec_CXX=
10624 enable_shared_with_static_runtimes_CXX=no
10625
10626 # Dependencies to place before and after the object being linked:
10627 predep_objects_CXX=
10628 postdep_objects_CXX=
10629 predeps_CXX=
10630 postdeps_CXX=
10631 compiler_lib_search_path_CXX=
10632
10633 # Source file extension for C++ test sources.
10634 ac_ext=cpp
10635
10636 # Object file extension for compiled C++ test sources.
10637 objext=o
10638 objext_CXX=$objext
10639
10640 # Code to be used in simple compile tests
10641 lt_simple_compile_test_code="int some_variable = 0;\n"
10642
10643 # Code to be used in simple link tests
10644 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10645
10646 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10647
10648 # If no C compiler was specified, use CC.
10649 LTCC=${LTCC-"$CC"}
10650
10651 # If no C compiler flags were specified, use CFLAGS.
10652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10653
10654 # Allow CC to be a program name with arguments.
10655 compiler=$CC
10656
10657
10658 # save warnings/boilerplate of simple test code
10659 ac_outfile=conftest.$ac_objext
10660 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10662 _lt_compiler_boilerplate=`cat conftest.err`
10663 $rm conftest*
10664
10665 ac_outfile=conftest.$ac_objext
10666 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10668 _lt_linker_boilerplate=`cat conftest.err`
10669 $rm conftest*
10670
10671
10672 # Allow CC to be a program name with arguments.
10673 lt_save_CC=$CC
10674 lt_save_LD=$LD
10675 lt_save_GCC=$GCC
10676 GCC=$GXX
10677 lt_save_with_gnu_ld=$with_gnu_ld
10678 lt_save_path_LD=$lt_cv_path_LD
10679 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10680   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10681 else
10682   $as_unset lt_cv_prog_gnu_ld
10683 fi
10684 if test -n "${lt_cv_path_LDCXX+set}"; then
10685   lt_cv_path_LD=$lt_cv_path_LDCXX
10686 else
10687   $as_unset lt_cv_path_LD
10688 fi
10689 test -z "${LDCXX+set}" || LD=$LDCXX
10690 CC=${CXX-"c++"}
10691 compiler=$CC
10692 compiler_CXX=$CC
10693 for cc_temp in $compiler""; do
10694   case $cc_temp in
10695     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10696     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10697     \-*) ;;
10698     *) break;;
10699   esac
10700 done
10701 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10702
10703
10704 # We don't want -fno-exception wen compiling C++ code, so set the
10705 # no_builtin_flag separately
10706 if test "$GXX" = yes; then
10707   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10708 else
10709   lt_prog_compiler_no_builtin_flag_CXX=
10710 fi
10711
10712 if test "$GXX" = yes; then
10713   # Set up default GNU C++ configuration
10714
10715
10716 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10717 if test "${with_gnu_ld+set}" = set; then
10718   withval="$with_gnu_ld"
10719   test "$withval" = no || with_gnu_ld=yes
10720 else
10721   with_gnu_ld=no
10722 fi;
10723 ac_prog=ld
10724 if test "$GCC" = yes; then
10725   # Check if gcc -print-prog-name=ld gives a path.
10726   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10727 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10728   case $host in
10729   *-*-mingw*)
10730     # gcc leaves a trailing carriage return which upsets mingw
10731     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10732   *)
10733     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10734   esac
10735   case $ac_prog in
10736     # Accept absolute paths.
10737     [\\/]* | ?:[\\/]*)
10738       re_direlt='/[^/][^/]*/\.\./'
10739       # Canonicalize the pathname of ld
10740       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10741       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10742         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10743       done
10744       test -z "$LD" && LD="$ac_prog"
10745       ;;
10746   "")
10747     # If it fails, then pretend we aren't using GCC.
10748     ac_prog=ld
10749     ;;
10750   *)
10751     # If it is relative, then search for the first ld in PATH.
10752     with_gnu_ld=unknown
10753     ;;
10754   esac
10755 elif test "$with_gnu_ld" = yes; then
10756   echo "$as_me:$LINENO: checking for GNU ld" >&5
10757 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10758 else
10759   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10760 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10761 fi
10762 if test "${lt_cv_path_LD+set}" = set; then
10763   echo $ECHO_N "(cached) $ECHO_C" >&6
10764 else
10765   if test -z "$LD"; then
10766   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10767   for ac_dir in $PATH; do
10768     IFS="$lt_save_ifs"
10769     test -z "$ac_dir" && ac_dir=.
10770     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10771       lt_cv_path_LD="$ac_dir/$ac_prog"
10772       # Check to see if the program is GNU ld.  I'd rather use --version,
10773       # but apparently some variants of GNU ld only accept -v.
10774       # Break only if it was the GNU/non-GNU ld that we prefer.
10775       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10776       *GNU* | *'with BFD'*)
10777         test "$with_gnu_ld" != no && break
10778         ;;
10779       *)
10780         test "$with_gnu_ld" != yes && break
10781         ;;
10782       esac
10783     fi
10784   done
10785   IFS="$lt_save_ifs"
10786 else
10787   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10788 fi
10789 fi
10790
10791 LD="$lt_cv_path_LD"
10792 if test -n "$LD"; then
10793   echo "$as_me:$LINENO: result: $LD" >&5
10794 echo "${ECHO_T}$LD" >&6
10795 else
10796   echo "$as_me:$LINENO: result: no" >&5
10797 echo "${ECHO_T}no" >&6
10798 fi
10799 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10800 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10801    { (exit 1); exit 1; }; }
10802 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10803 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10804 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10805   echo $ECHO_N "(cached) $ECHO_C" >&6
10806 else
10807   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10808 case `$LD -v 2>&1 </dev/null` in
10809 *GNU* | *'with BFD'*)
10810   lt_cv_prog_gnu_ld=yes
10811   ;;
10812 *)
10813   lt_cv_prog_gnu_ld=no
10814   ;;
10815 esac
10816 fi
10817 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10818 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10819 with_gnu_ld=$lt_cv_prog_gnu_ld
10820
10821
10822
10823   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10824   # archiving commands below assume that GNU ld is being used.
10825   if test "$with_gnu_ld" = yes; then
10826     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10827     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'
10828
10829     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10830     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10831
10832     # If archive_cmds runs LD, not CC, wlarc should be empty
10833     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10834     #     investigate it a little bit more. (MM)
10835     wlarc='${wl}'
10836
10837     # ancient GNU ld didn't support --whole-archive et. al.
10838     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10839         grep 'no-whole-archive' > /dev/null; then
10840       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10841     else
10842       whole_archive_flag_spec_CXX=
10843     fi
10844   else
10845     with_gnu_ld=no
10846     wlarc=
10847
10848     # A generic and very simple default shared library creation
10849     # command for GNU C++ for the case where it uses the native
10850     # linker, instead of GNU ld.  If possible, this setting should
10851     # overridden to take advantage of the native linker features on
10852     # the platform it is being used on.
10853     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10854   fi
10855
10856   # Commands to make compiler produce verbose output that lists
10857   # what "hidden" libraries, object files and flags are used when
10858   # linking a shared library.
10859   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10860
10861 else
10862   GXX=no
10863   with_gnu_ld=no
10864   wlarc=
10865 fi
10866
10867 # PORTME: fill in a description of your system's C++ link characteristics
10868 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10869 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10870 ld_shlibs_CXX=yes
10871 case $host_os in
10872   aix3*)
10873     # FIXME: insert proper C++ library support
10874     ld_shlibs_CXX=no
10875     ;;
10876   aix4* | aix5*)
10877     if test "$host_cpu" = ia64; then
10878       # On IA64, the linker does run time linking by default, so we don't
10879       # have to do anything special.
10880       aix_use_runtimelinking=no
10881       exp_sym_flag='-Bexport'
10882       no_entry_flag=""
10883     else
10884       aix_use_runtimelinking=no
10885
10886       # Test if we are trying to use run time linking or normal
10887       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10888       # need to do runtime linking.
10889       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10890         for ld_flag in $LDFLAGS; do
10891           case $ld_flag in
10892           *-brtl*)
10893             aix_use_runtimelinking=yes
10894             break
10895             ;;
10896           esac
10897         done
10898         ;;
10899       esac
10900
10901       exp_sym_flag='-bexport'
10902       no_entry_flag='-bnoentry'
10903     fi
10904
10905     # When large executables or shared objects are built, AIX ld can
10906     # have problems creating the table of contents.  If linking a library
10907     # or program results in "error TOC overflow" add -mminimal-toc to
10908     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10909     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10910
10911     archive_cmds_CXX=''
10912     hardcode_direct_CXX=yes
10913     hardcode_libdir_separator_CXX=':'
10914     link_all_deplibs_CXX=yes
10915
10916     if test "$GXX" = yes; then
10917       case $host_os in aix4.[012]|aix4.[012].*)
10918       # We only want to do this on AIX 4.2 and lower, the check
10919       # below for broken collect2 doesn't work under 4.3+
10920         collect2name=`${CC} -print-prog-name=collect2`
10921         if test -f "$collect2name" && \
10922            strings "$collect2name" | grep resolve_lib_name >/dev/null
10923         then
10924           # We have reworked collect2
10925           hardcode_direct_CXX=yes
10926         else
10927           # We have old collect2
10928           hardcode_direct_CXX=unsupported
10929           # It fails to find uninstalled libraries when the uninstalled
10930           # path is not listed in the libpath.  Setting hardcode_minus_L
10931           # to unsupported forces relinking
10932           hardcode_minus_L_CXX=yes
10933           hardcode_libdir_flag_spec_CXX='-L$libdir'
10934           hardcode_libdir_separator_CXX=
10935         fi
10936         ;;
10937       esac
10938       shared_flag='-shared'
10939       if test "$aix_use_runtimelinking" = yes; then
10940         shared_flag="$shared_flag "'${wl}-G'
10941       fi
10942     else
10943       # not using gcc
10944       if test "$host_cpu" = ia64; then
10945         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10946         # chokes on -Wl,-G. The following line is correct:
10947         shared_flag='-G'
10948       else
10949         if test "$aix_use_runtimelinking" = yes; then
10950           shared_flag='${wl}-G'
10951         else
10952           shared_flag='${wl}-bM:SRE'
10953         fi
10954       fi
10955     fi
10956
10957     # It seems that -bexpall does not export symbols beginning with
10958     # underscore (_), so it is better to generate a list of symbols to export.
10959     always_export_symbols_CXX=yes
10960     if test "$aix_use_runtimelinking" = yes; then
10961       # Warning - without using the other runtime loading flags (-brtl),
10962       # -berok will link without error, but may produce a broken library.
10963       allow_undefined_flag_CXX='-berok'
10964       # Determine the default libpath from the value encoded in an empty executable.
10965       cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h.  */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h.  */
10971
10972 int
10973 main ()
10974 {
10975
10976   ;
10977   return 0;
10978 }
10979 _ACEOF
10980 rm -f conftest.$ac_objext conftest$ac_exeext
10981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10982   (eval $ac_link) 2>conftest.er1
10983   ac_status=$?
10984   grep -v '^ *+' conftest.er1 >conftest.err
10985   rm -f conftest.er1
10986   cat conftest.err >&5
10987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988   (exit $ac_status); } &&
10989          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991   (eval $ac_try) 2>&5
10992   ac_status=$?
10993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994   (exit $ac_status); }; } &&
10995          { ac_try='test -s conftest$ac_exeext'
10996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997   (eval $ac_try) 2>&5
10998   ac_status=$?
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); }; }; then
11001
11002 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11003 }'`
11004 # Check for a 64-bit object if we didn't find anything.
11005 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11006 }'`; fi
11007 else
11008   echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11010
11011 fi
11012 rm -f conftest.err conftest.$ac_objext \
11013       conftest$ac_exeext conftest.$ac_ext
11014 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11015
11016       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11017
11018       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"
11019      else
11020       if test "$host_cpu" = ia64; then
11021         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11022         allow_undefined_flag_CXX="-z nodefs"
11023         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"
11024       else
11025         # Determine the default libpath from the value encoded in an empty executable.
11026         cat >conftest.$ac_ext <<_ACEOF
11027 /* confdefs.h.  */
11028 _ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h.  */
11032
11033 int
11034 main ()
11035 {
11036
11037   ;
11038   return 0;
11039 }
11040 _ACEOF
11041 rm -f conftest.$ac_objext conftest$ac_exeext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11043   (eval $ac_link) 2>conftest.er1
11044   ac_status=$?
11045   grep -v '^ *+' conftest.er1 >conftest.err
11046   rm -f conftest.er1
11047   cat conftest.err >&5
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); } &&
11050          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052   (eval $ac_try) 2>&5
11053   ac_status=$?
11054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055   (exit $ac_status); }; } &&
11056          { ac_try='test -s conftest$ac_exeext'
11057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058   (eval $ac_try) 2>&5
11059   ac_status=$?
11060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061   (exit $ac_status); }; }; then
11062
11063 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11064 }'`
11065 # Check for a 64-bit object if we didn't find anything.
11066 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11067 }'`; fi
11068 else
11069   echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11071
11072 fi
11073 rm -f conftest.err conftest.$ac_objext \
11074       conftest$ac_exeext conftest.$ac_ext
11075 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11076
11077         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11078         # Warning - without using the other run time loading flags,
11079         # -berok will link without error, but may produce a broken library.
11080         no_undefined_flag_CXX=' ${wl}-bernotok'
11081         allow_undefined_flag_CXX=' ${wl}-berok'
11082         # Exported symbols can be pulled into shared objects from archives
11083         whole_archive_flag_spec_CXX='$convenience'
11084         archive_cmds_need_lc_CXX=yes
11085         # This is similar to how AIX traditionally builds its shared libraries.
11086         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'
11087       fi
11088     fi
11089     ;;
11090
11091   beos*)
11092     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11093       allow_undefined_flag_CXX=unsupported
11094       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11095       # support --undefined.  This deserves some investigation.  FIXME
11096       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11097     else
11098       ld_shlibs_CXX=no
11099     fi
11100     ;;
11101
11102   chorus*)
11103     case $cc_basename in
11104       *)
11105         # FIXME: insert proper C++ library support
11106         ld_shlibs_CXX=no
11107         ;;
11108     esac
11109     ;;
11110
11111   cygwin* | mingw* | pw32*)
11112     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11113     # as there is no search path for DLLs.
11114     hardcode_libdir_flag_spec_CXX='-L$libdir'
11115     allow_undefined_flag_CXX=unsupported
11116     always_export_symbols_CXX=no
11117     enable_shared_with_static_runtimes_CXX=yes
11118
11119     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11120       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'
11121       # If the export-symbols file already is a .def file (1st line
11122       # is EXPORTS), use it as is; otherwise, prepend...
11123       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11124         cp $export_symbols $output_objdir/$soname.def;
11125       else
11126         echo EXPORTS > $output_objdir/$soname.def;
11127         cat $export_symbols >> $output_objdir/$soname.def;
11128       fi~
11129       $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'
11130     else
11131       ld_shlibs_CXX=no
11132     fi
11133   ;;
11134       darwin* | rhapsody*)
11135         case $host_os in
11136         rhapsody* | darwin1.[012])
11137          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11138          ;;
11139        *) # Darwin 1.3 on
11140          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11141            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11142          else
11143            case ${MACOSX_DEPLOYMENT_TARGET} in
11144              10.[012])
11145                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11146                ;;
11147              10.*)
11148                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11149                ;;
11150            esac
11151          fi
11152          ;;
11153         esac
11154       archive_cmds_need_lc_CXX=no
11155       hardcode_direct_CXX=no
11156       hardcode_automatic_CXX=yes
11157       hardcode_shlibpath_var_CXX=unsupported
11158       whole_archive_flag_spec_CXX=''
11159       link_all_deplibs_CXX=yes
11160
11161     if test "$GXX" = yes ; then
11162       lt_int_apple_cc_single_mod=no
11163       output_verbose_link_cmd='echo'
11164       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11165        lt_int_apple_cc_single_mod=yes
11166       fi
11167       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11168        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11169       else
11170           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'
11171         fi
11172         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11173         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11174           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11175             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}'
11176           else
11177             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}'
11178           fi
11179             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}'
11180       else
11181       case $cc_basename in
11182         xlc*)
11183          output_verbose_link_cmd='echo'
11184           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11185           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11186           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11187           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11188           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}'
11189           ;;
11190        *)
11191          ld_shlibs_CXX=no
11192           ;;
11193       esac
11194       fi
11195         ;;
11196
11197   dgux*)
11198     case $cc_basename in
11199       ec++*)
11200         # FIXME: insert proper C++ library support
11201         ld_shlibs_CXX=no
11202         ;;
11203       ghcx*)
11204         # Green Hills C++ Compiler
11205         # FIXME: insert proper C++ library support
11206         ld_shlibs_CXX=no
11207         ;;
11208       *)
11209         # FIXME: insert proper C++ library support
11210         ld_shlibs_CXX=no
11211         ;;
11212     esac
11213     ;;
11214   freebsd[12]*)
11215     # C++ shared libraries reported to be fairly broken before switch to ELF
11216     ld_shlibs_CXX=no
11217     ;;
11218   freebsd-elf*)
11219     archive_cmds_need_lc_CXX=no
11220     ;;
11221   freebsd* | kfreebsd*-gnu | dragonfly*)
11222     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11223     # conventions
11224     ld_shlibs_CXX=yes
11225     ;;
11226   gnu*)
11227     ;;
11228   hpux9*)
11229     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11230     hardcode_libdir_separator_CXX=:
11231     export_dynamic_flag_spec_CXX='${wl}-E'
11232     hardcode_direct_CXX=yes
11233     hardcode_minus_L_CXX=yes # Not in the search PATH,
11234                                 # but as the default
11235                                 # location of the library.
11236
11237     case $cc_basename in
11238     CC*)
11239       # FIXME: insert proper C++ library support
11240       ld_shlibs_CXX=no
11241       ;;
11242     aCC*)
11243       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'
11244       # Commands to make compiler produce verbose output that lists
11245       # what "hidden" libraries, object files and flags are used when
11246       # linking a shared library.
11247       #
11248       # There doesn't appear to be a way to prevent this compiler from
11249       # explicitly linking system object files so we need to strip them
11250       # from the output so that they don't get included in the library
11251       # dependencies.
11252       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'
11253       ;;
11254     *)
11255       if test "$GXX" = yes; then
11256         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'
11257       else
11258         # FIXME: insert proper C++ library support
11259         ld_shlibs_CXX=no
11260       fi
11261       ;;
11262     esac
11263     ;;
11264   hpux10*|hpux11*)
11265     if test $with_gnu_ld = no; then
11266       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11267       hardcode_libdir_separator_CXX=:
11268
11269       case $host_cpu in
11270       hppa*64*|ia64*)
11271         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11272         ;;
11273       *)
11274         export_dynamic_flag_spec_CXX='${wl}-E'
11275         ;;
11276       esac
11277     fi
11278     case $host_cpu in
11279     hppa*64*|ia64*)
11280       hardcode_direct_CXX=no
11281       hardcode_shlibpath_var_CXX=no
11282       ;;
11283     *)
11284       hardcode_direct_CXX=yes
11285       hardcode_minus_L_CXX=yes # Not in the search PATH,
11286                                               # but as the default
11287                                               # location of the library.
11288       ;;
11289     esac
11290
11291     case $cc_basename in
11292       CC*)
11293         # FIXME: insert proper C++ library support
11294         ld_shlibs_CXX=no
11295         ;;
11296       aCC*)
11297         case $host_cpu in
11298         hppa*64*)
11299           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11300           ;;
11301         ia64*)
11302           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11303           ;;
11304         *)
11305           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11306           ;;
11307         esac
11308         # Commands to make compiler produce verbose output that lists
11309         # what "hidden" libraries, object files and flags are used when
11310         # linking a shared library.
11311         #
11312         # There doesn't appear to be a way to prevent this compiler from
11313         # explicitly linking system object files so we need to strip them
11314         # from the output so that they don't get included in the library
11315         # dependencies.
11316         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'
11317         ;;
11318       *)
11319         if test "$GXX" = yes; then
11320           if test $with_gnu_ld = no; then
11321             case $host_cpu in
11322             hppa*64*)
11323               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11324               ;;
11325             ia64*)
11326               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11327               ;;
11328             *)
11329               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'
11330               ;;
11331             esac
11332           fi
11333         else
11334           # FIXME: insert proper C++ library support
11335           ld_shlibs_CXX=no
11336         fi
11337         ;;
11338     esac
11339     ;;
11340   interix3*)
11341     hardcode_direct_CXX=no
11342     hardcode_shlibpath_var_CXX=no
11343     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11344     export_dynamic_flag_spec_CXX='${wl}-E'
11345     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11346     # Instead, shared libraries are loaded at an image base (0x10000000 by
11347     # default) and relocated if they conflict, which is a slow very memory
11348     # consuming and fragmenting process.  To avoid this, we pick a random,
11349     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11350     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11351     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'
11352     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'
11353     ;;
11354   irix5* | irix6*)
11355     case $cc_basename in
11356       CC*)
11357         # SGI C++
11358         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'
11359
11360         # Archives containing C++ object files must be created using
11361         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11362         # necessary to make sure instantiated templates are included
11363         # in the archive.
11364         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11365         ;;
11366       *)
11367         if test "$GXX" = yes; then
11368           if test "$with_gnu_ld" = no; then
11369             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'
11370           else
11371             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'
11372           fi
11373         fi
11374         link_all_deplibs_CXX=yes
11375         ;;
11376     esac
11377     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11378     hardcode_libdir_separator_CXX=:
11379     ;;
11380   linux*)
11381     case $cc_basename in
11382       KCC*)
11383         # Kuck and Associates, Inc. (KAI) C++ Compiler
11384
11385         # KCC will only create a shared library if the output file
11386         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11387         # to its proper name (with version) after linking.
11388         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'
11389         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'
11390         # Commands to make compiler produce verbose output that lists
11391         # what "hidden" libraries, object files and flags are used when
11392         # linking a shared library.
11393         #
11394         # There doesn't appear to be a way to prevent this compiler from
11395         # explicitly linking system object files so we need to strip them
11396         # from the output so that they don't get included in the library
11397         # dependencies.
11398         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'
11399
11400         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11401         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11402
11403         # Archives containing C++ object files must be created using
11404         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11405         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11406         ;;
11407       icpc*)
11408         # Intel C++
11409         with_gnu_ld=yes
11410         # version 8.0 and above of icpc choke on multiply defined symbols
11411         # if we add $predep_objects and $postdep_objects, however 7.1 and
11412         # earlier do not add the objects themselves.
11413         case `$CC -V 2>&1` in
11414         *"Version 7."*)
11415           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11416           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'
11417           ;;
11418         *)  # Version 8.0 or newer
11419           tmp_idyn=
11420           case $host_cpu in
11421             ia64*) tmp_idyn=' -i_dynamic';;
11422           esac
11423           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11424           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'
11425           ;;
11426         esac
11427         archive_cmds_need_lc_CXX=no
11428         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11429         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11430         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11431         ;;
11432       pgCC*)
11433         # Portland Group C++ compiler
11434         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11435         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'
11436
11437         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11438         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11439         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'
11440         ;;
11441       cxx*)
11442         # Compaq C++
11443         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11444         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'
11445
11446         runpath_var=LD_RUN_PATH
11447         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11448         hardcode_libdir_separator_CXX=:
11449
11450         # Commands to make compiler produce verbose output that lists
11451         # what "hidden" libraries, object files and flags are used when
11452         # linking a shared library.
11453         #
11454         # There doesn't appear to be a way to prevent this compiler from
11455         # explicitly linking system object files so we need to strip them
11456         # from the output so that they don't get included in the library
11457         # dependencies.
11458         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'
11459         ;;
11460     esac
11461     ;;
11462   lynxos*)
11463     # FIXME: insert proper C++ library support
11464     ld_shlibs_CXX=no
11465     ;;
11466   m88k*)
11467     # FIXME: insert proper C++ library support
11468     ld_shlibs_CXX=no
11469     ;;
11470   mvs*)
11471     case $cc_basename in
11472       cxx*)
11473         # FIXME: insert proper C++ library support
11474         ld_shlibs_CXX=no
11475         ;;
11476       *)
11477         # FIXME: insert proper C++ library support
11478         ld_shlibs_CXX=no
11479         ;;
11480     esac
11481     ;;
11482   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11483     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11484       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11485       wlarc=
11486       hardcode_libdir_flag_spec_CXX='-R$libdir'
11487       hardcode_direct_CXX=yes
11488       hardcode_shlibpath_var_CXX=no
11489     fi
11490     # Workaround some broken pre-1.5 toolchains
11491     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11492     ;;
11493   openbsd2*)
11494     # C++ shared libraries are fairly broken
11495     ld_shlibs_CXX=no
11496     ;;
11497   openbsd*)
11498     hardcode_direct_CXX=yes
11499     hardcode_shlibpath_var_CXX=no
11500     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11501     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11502     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11503       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11504       export_dynamic_flag_spec_CXX='${wl}-E'
11505       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11506     fi
11507     output_verbose_link_cmd='echo'
11508     ;;
11509   osf3*)
11510     case $cc_basename in
11511       KCC*)
11512         # Kuck and Associates, Inc. (KAI) C++ Compiler
11513
11514         # KCC will only create a shared library if the output file
11515         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11516         # to its proper name (with version) after linking.
11517         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'
11518
11519         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11520         hardcode_libdir_separator_CXX=:
11521
11522         # Archives containing C++ object files must be created using
11523         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11524         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11525
11526         ;;
11527       RCC*)
11528         # Rational C++ 2.4.1
11529         # FIXME: insert proper C++ library support
11530         ld_shlibs_CXX=no
11531         ;;
11532       cxx*)
11533         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11534         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'
11535
11536         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11537         hardcode_libdir_separator_CXX=:
11538
11539         # Commands to make compiler produce verbose output that lists
11540         # what "hidden" libraries, object files and flags are used when
11541         # linking a shared library.
11542         #
11543         # There doesn't appear to be a way to prevent this compiler from
11544         # explicitly linking system object files so we need to strip them
11545         # from the output so that they don't get included in the library
11546         # dependencies.
11547         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'
11548         ;;
11549       *)
11550         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11551           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11552           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'
11553
11554           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11555           hardcode_libdir_separator_CXX=:
11556
11557           # Commands to make compiler produce verbose output that lists
11558           # what "hidden" libraries, object files and flags are used when
11559           # linking a shared library.
11560           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11561
11562         else
11563           # FIXME: insert proper C++ library support
11564           ld_shlibs_CXX=no
11565         fi
11566         ;;
11567     esac
11568     ;;
11569   osf4* | osf5*)
11570     case $cc_basename in
11571       KCC*)
11572         # Kuck and Associates, Inc. (KAI) C++ Compiler
11573
11574         # KCC will only create a shared library if the output file
11575         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11576         # to its proper name (with version) after linking.
11577         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'
11578
11579         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11580         hardcode_libdir_separator_CXX=:
11581
11582         # Archives containing C++ object files must be created using
11583         # the KAI C++ compiler.
11584         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11585         ;;
11586       RCC*)
11587         # Rational C++ 2.4.1
11588         # FIXME: insert proper C++ library support
11589         ld_shlibs_CXX=no
11590         ;;
11591       cxx*)
11592         allow_undefined_flag_CXX=' -expect_unresolved \*'
11593         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'
11594         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11595           echo "-hidden">> $lib.exp~
11596           $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~
11597           $rm $lib.exp'
11598
11599         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11600         hardcode_libdir_separator_CXX=:
11601
11602         # Commands to make compiler produce verbose output that lists
11603         # what "hidden" libraries, object files and flags are used when
11604         # linking a shared library.
11605         #
11606         # There doesn't appear to be a way to prevent this compiler from
11607         # explicitly linking system object files so we need to strip them
11608         # from the output so that they don't get included in the library
11609         # dependencies.
11610         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'
11611         ;;
11612       *)
11613         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11614           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11615          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'
11616
11617           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11618           hardcode_libdir_separator_CXX=:
11619
11620           # Commands to make compiler produce verbose output that lists
11621           # what "hidden" libraries, object files and flags are used when
11622           # linking a shared library.
11623           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11624
11625         else
11626           # FIXME: insert proper C++ library support
11627           ld_shlibs_CXX=no
11628         fi
11629         ;;
11630     esac
11631     ;;
11632   psos*)
11633     # FIXME: insert proper C++ library support
11634     ld_shlibs_CXX=no
11635     ;;
11636   sunos4*)
11637     case $cc_basename in
11638       CC*)
11639         # Sun C++ 4.x
11640         # FIXME: insert proper C++ library support
11641         ld_shlibs_CXX=no
11642         ;;
11643       lcc*)
11644         # Lucid
11645         # FIXME: insert proper C++ library support
11646         ld_shlibs_CXX=no
11647         ;;
11648       *)
11649         # FIXME: insert proper C++ library support
11650         ld_shlibs_CXX=no
11651         ;;
11652     esac
11653     ;;
11654   solaris*)
11655     case $cc_basename in
11656       CC*)
11657         # Sun C++ 4.2, 5.x and Centerline C++
11658         archive_cmds_need_lc_CXX=yes
11659         no_undefined_flag_CXX=' -zdefs'
11660         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11661         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11662         $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'
11663
11664         hardcode_libdir_flag_spec_CXX='-R$libdir'
11665         hardcode_shlibpath_var_CXX=no
11666         case $host_os in
11667           solaris2.[0-5] | solaris2.[0-5].*) ;;
11668           *)
11669             # The C++ compiler is used as linker so we must use $wl
11670             # flag to pass the commands to the underlying system
11671             # linker. We must also pass each convience library through
11672             # to the system linker between allextract/defaultextract.
11673             # The C++ compiler will combine linker options so we
11674             # cannot just pass the convience library names through
11675             # without $wl.
11676             # Supported since Solaris 2.6 (maybe 2.5.1?)
11677             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11678             ;;
11679         esac
11680         link_all_deplibs_CXX=yes
11681
11682         output_verbose_link_cmd='echo'
11683
11684         # Archives containing C++ object files must be created using
11685         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11686         # necessary to make sure instantiated templates are included
11687         # in the archive.
11688         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11689         ;;
11690       gcx*)
11691         # Green Hills C++ Compiler
11692         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11693
11694         # The C++ compiler must be used to create the archive.
11695         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11696         ;;
11697       *)
11698         # GNU C++ compiler with Solaris linker
11699         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11700           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11701           if $CC --version | grep -v '^2\.7' > /dev/null; then
11702             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11703             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11704                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11705
11706             # Commands to make compiler produce verbose output that lists
11707             # what "hidden" libraries, object files and flags are used when
11708             # linking a shared library.
11709             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11710           else
11711             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11712             # platform.
11713             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11714             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11715                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11716
11717             # Commands to make compiler produce verbose output that lists
11718             # what "hidden" libraries, object files and flags are used when
11719             # linking a shared library.
11720             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11721           fi
11722
11723           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11724         fi
11725         ;;
11726     esac
11727     ;;
11728   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11729     no_undefined_flag_CXX='${wl}-z,text'
11730     archive_cmds_need_lc_CXX=no
11731     hardcode_shlibpath_var_CXX=no
11732     runpath_var='LD_RUN_PATH'
11733
11734     case $cc_basename in
11735       CC*)
11736         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11737         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11738         ;;
11739       *)
11740         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11741         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11742         ;;
11743     esac
11744     ;;
11745   sysv5* | sco3.2v5* | sco5v6*)
11746     # Note: We can NOT use -z defs as we might desire, because we do not
11747     # link with -lc, and that would cause any symbols used from libc to
11748     # always be unresolved, which means just about no library would
11749     # ever link correctly.  If we're not using GNU ld we use -z text
11750     # though, which does catch some bad symbols but isn't as heavy-handed
11751     # as -z defs.
11752     # For security reasons, it is highly recommended that you always
11753     # use absolute paths for naming shared libraries, and exclude the
11754     # DT_RUNPATH tag from executables and libraries.  But doing so
11755     # requires that you compile everything twice, which is a pain.
11756     # So that behaviour is only enabled if SCOABSPATH is set to a
11757     # non-empty value in the environment.  Most likely only useful for
11758     # creating official distributions of packages.
11759     # This is a hack until libtool officially supports absolute path
11760     # names for shared libraries.
11761     no_undefined_flag_CXX='${wl}-z,text'
11762     allow_undefined_flag_CXX='${wl}-z,nodefs'
11763     archive_cmds_need_lc_CXX=no
11764     hardcode_shlibpath_var_CXX=no
11765     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11766     hardcode_libdir_separator_CXX=':'
11767     link_all_deplibs_CXX=yes
11768     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11769     runpath_var='LD_RUN_PATH'
11770
11771     case $cc_basename in
11772       CC*)
11773         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11774         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11775         ;;
11776       *)
11777         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11778         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11779         ;;
11780     esac
11781     ;;
11782   tandem*)
11783     case $cc_basename in
11784       NCC*)
11785         # NonStop-UX NCC 3.20
11786         # FIXME: insert proper C++ library support
11787         ld_shlibs_CXX=no
11788         ;;
11789       *)
11790         # FIXME: insert proper C++ library support
11791         ld_shlibs_CXX=no
11792         ;;
11793     esac
11794     ;;
11795   vxworks*)
11796     # FIXME: insert proper C++ library support
11797     ld_shlibs_CXX=no
11798     ;;
11799   *)
11800     # FIXME: insert proper C++ library support
11801     ld_shlibs_CXX=no
11802     ;;
11803 esac
11804 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11805 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11806 test "$ld_shlibs_CXX" = no && can_build_shared=no
11807
11808 GCC_CXX="$GXX"
11809 LD_CXX="$LD"
11810
11811
11812 cat > conftest.$ac_ext <<EOF
11813 class Foo
11814 {
11815 public:
11816   Foo (void) { a = 0; }
11817 private:
11818   int a;
11819 };
11820 EOF
11821
11822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11823   (eval $ac_compile) 2>&5
11824   ac_status=$?
11825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826   (exit $ac_status); }; then
11827   # Parse the compiler output and extract the necessary
11828   # objects, libraries and library flags.
11829
11830   # Sentinel used to keep track of whether or not we are before
11831   # the conftest object file.
11832   pre_test_object_deps_done=no
11833
11834   # The `*' in the case matches for architectures that use `case' in
11835   # $output_verbose_cmd can trigger glob expansion during the loop
11836   # eval without this substitution.
11837   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11838
11839   for p in `eval $output_verbose_link_cmd`; do
11840     case $p in
11841
11842     -L* | -R* | -l*)
11843        # Some compilers place space between "-{L,R}" and the path.
11844        # Remove the space.
11845        if test $p = "-L" \
11846           || test $p = "-R"; then
11847          prev=$p
11848          continue
11849        else
11850          prev=
11851        fi
11852
11853        if test "$pre_test_object_deps_done" = no; then
11854          case $p in
11855          -L* | -R*)
11856            # Internal compiler library paths should come after those
11857            # provided the user.  The postdeps already come after the
11858            # user supplied libs so there is no need to process them.
11859            if test -z "$compiler_lib_search_path_CXX"; then
11860              compiler_lib_search_path_CXX="${prev}${p}"
11861            else
11862              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11863            fi
11864            ;;
11865          # The "-l" case would never come before the object being
11866          # linked, so don't bother handling this case.
11867          esac
11868        else
11869          if test -z "$postdeps_CXX"; then
11870            postdeps_CXX="${prev}${p}"
11871          else
11872            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11873          fi
11874        fi
11875        ;;
11876
11877     *.$objext)
11878        # This assumes that the test object file only shows up
11879        # once in the compiler output.
11880        if test "$p" = "conftest.$objext"; then
11881          pre_test_object_deps_done=yes
11882          continue
11883        fi
11884
11885        if test "$pre_test_object_deps_done" = no; then
11886          if test -z "$predep_objects_CXX"; then
11887            predep_objects_CXX="$p"
11888          else
11889            predep_objects_CXX="$predep_objects_CXX $p"
11890          fi
11891        else
11892          if test -z "$postdep_objects_CXX"; then
11893            postdep_objects_CXX="$p"
11894          else
11895            postdep_objects_CXX="$postdep_objects_CXX $p"
11896          fi
11897        fi
11898        ;;
11899
11900     *) ;; # Ignore the rest.
11901
11902     esac
11903   done
11904
11905   # Clean up.
11906   rm -f a.out a.exe
11907 else
11908   echo "libtool.m4: error: problem compiling CXX test program"
11909 fi
11910
11911 $rm -f confest.$objext
11912
11913 # PORTME: override above test on systems where it is broken
11914 case $host_os in
11915 interix3*)
11916   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11917   # hack all around it, let's just trust "g++" to DTRT.
11918   predep_objects_CXX=
11919   postdep_objects_CXX=
11920   postdeps_CXX=
11921   ;;
11922
11923 solaris*)
11924   case $cc_basename in
11925   CC*)
11926     # Adding this requires a known-good setup of shared libraries for
11927     # Sun compiler versions before 5.6, else PIC objects from an old
11928     # archive will be linked into the output, leading to subtle bugs.
11929     postdeps_CXX='-lCstd -lCrun'
11930     ;;
11931   esac
11932   ;;
11933 esac
11934
11935
11936 case " $postdeps_CXX " in
11937 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11938 esac
11939
11940 lt_prog_compiler_wl_CXX=
11941 lt_prog_compiler_pic_CXX=
11942 lt_prog_compiler_static_CXX=
11943
11944 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11945 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11946
11947   # C++ specific cases for pic, static, wl, etc.
11948   if test "$GXX" = yes; then
11949     lt_prog_compiler_wl_CXX='-Wl,'
11950     lt_prog_compiler_static_CXX='-static'
11951
11952     case $host_os in
11953     aix*)
11954       # All AIX code is PIC.
11955       if test "$host_cpu" = ia64; then
11956         # AIX 5 now supports IA64 processor
11957         lt_prog_compiler_static_CXX='-Bstatic'
11958       fi
11959       ;;
11960     amigaos*)
11961       # FIXME: we need at least 68020 code to build shared libraries, but
11962       # adding the `-m68020' flag to GCC prevents building anything better,
11963       # like `-m68040'.
11964       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11965       ;;
11966     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11967       # PIC is the default for these OSes.
11968       ;;
11969     mingw* | os2* | pw32*)
11970       # This hack is so that the source file can tell whether it is being
11971       # built for inclusion in a dll (and should export symbols for example).
11972       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11973       ;;
11974     darwin* | rhapsody*)
11975       # PIC is the default on this platform
11976       # Common symbols not allowed in MH_DYLIB files
11977       lt_prog_compiler_pic_CXX='-fno-common'
11978       ;;
11979     *djgpp*)
11980       # DJGPP does not support shared libraries at all
11981       lt_prog_compiler_pic_CXX=
11982       ;;
11983     interix3*)
11984       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11985       # Instead, we relocate shared libraries at runtime.
11986       ;;
11987     sysv4*MP*)
11988       if test -d /usr/nec; then
11989         lt_prog_compiler_pic_CXX=-Kconform_pic
11990       fi
11991       ;;
11992     hpux*)
11993       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11994       # not for PA HP-UX.
11995       case $host_cpu in
11996       hppa*64*|ia64*)
11997         ;;
11998       *)
11999         lt_prog_compiler_pic_CXX='-fPIC'
12000         ;;
12001       esac
12002       ;;
12003     *)
12004       lt_prog_compiler_pic_CXX='-fPIC'
12005       ;;
12006     esac
12007   else
12008     case $host_os in
12009       aix4* | aix5*)
12010         # All AIX code is PIC.
12011         if test "$host_cpu" = ia64; then
12012           # AIX 5 now supports IA64 processor
12013           lt_prog_compiler_static_CXX='-Bstatic'
12014         else
12015           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12016         fi
12017         ;;
12018       chorus*)
12019         case $cc_basename in
12020         cxch68*)
12021           # Green Hills C++ Compiler
12022           # _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"
12023           ;;
12024         esac
12025         ;;
12026        darwin*)
12027          # PIC is the default on this platform
12028          # Common symbols not allowed in MH_DYLIB files
12029          case $cc_basename in
12030            xlc*)
12031            lt_prog_compiler_pic_CXX='-qnocommon'
12032            lt_prog_compiler_wl_CXX='-Wl,'
12033            ;;
12034          esac
12035        ;;
12036       dgux*)
12037         case $cc_basename in
12038           ec++*)
12039             lt_prog_compiler_pic_CXX='-KPIC'
12040             ;;
12041           ghcx*)
12042             # Green Hills C++ Compiler
12043             lt_prog_compiler_pic_CXX='-pic'
12044             ;;
12045           *)
12046             ;;
12047         esac
12048         ;;
12049       freebsd* | kfreebsd*-gnu | dragonfly*)
12050         # FreeBSD uses GNU C++
12051         ;;
12052       hpux9* | hpux10* | hpux11*)
12053         case $cc_basename in
12054           CC*)
12055             lt_prog_compiler_wl_CXX='-Wl,'
12056             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12057             if test "$host_cpu" != ia64; then
12058               lt_prog_compiler_pic_CXX='+Z'
12059             fi
12060             ;;
12061           aCC*)
12062             lt_prog_compiler_wl_CXX='-Wl,'
12063             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12064             case $host_cpu in
12065             hppa*64*|ia64*)
12066               # +Z the default
12067               ;;
12068             *)
12069               lt_prog_compiler_pic_CXX='+Z'
12070               ;;
12071             esac
12072             ;;
12073           *)
12074             ;;
12075         esac
12076         ;;
12077       interix*)
12078         # This is c89, which is MS Visual C++ (no shared libs)
12079         # Anyone wants to do a port?
12080         ;;
12081       irix5* | irix6* | nonstopux*)
12082         case $cc_basename in
12083           CC*)
12084             lt_prog_compiler_wl_CXX='-Wl,'
12085             lt_prog_compiler_static_CXX='-non_shared'
12086             # CC pic flag -KPIC is the default.
12087             ;;
12088           *)
12089             ;;
12090         esac
12091         ;;
12092       linux*)
12093         case $cc_basename in
12094           KCC*)
12095             # KAI C++ Compiler
12096             lt_prog_compiler_wl_CXX='--backend -Wl,'
12097             lt_prog_compiler_pic_CXX='-fPIC'
12098             ;;
12099           icpc* | ecpc*)
12100             # Intel C++
12101             lt_prog_compiler_wl_CXX='-Wl,'
12102             lt_prog_compiler_pic_CXX='-KPIC'
12103             lt_prog_compiler_static_CXX='-static'
12104             ;;
12105           pgCC*)
12106             # Portland Group C++ compiler.
12107             lt_prog_compiler_wl_CXX='-Wl,'
12108             lt_prog_compiler_pic_CXX='-fpic'
12109             lt_prog_compiler_static_CXX='-Bstatic'
12110             ;;
12111           cxx*)
12112             # Compaq C++
12113             # Make sure the PIC flag is empty.  It appears that all Alpha
12114             # Linux and Compaq Tru64 Unix objects are PIC.
12115             lt_prog_compiler_pic_CXX=
12116             lt_prog_compiler_static_CXX='-non_shared'
12117             ;;
12118           *)
12119             ;;
12120         esac
12121         ;;
12122       lynxos*)
12123         ;;
12124       m88k*)
12125         ;;
12126       mvs*)
12127         case $cc_basename in
12128           cxx*)
12129             lt_prog_compiler_pic_CXX='-W c,exportall'
12130             ;;
12131           *)
12132             ;;
12133         esac
12134         ;;
12135       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12136         ;;
12137       osf3* | osf4* | osf5*)
12138         case $cc_basename in
12139           KCC*)
12140             lt_prog_compiler_wl_CXX='--backend -Wl,'
12141             ;;
12142           RCC*)
12143             # Rational C++ 2.4.1
12144             lt_prog_compiler_pic_CXX='-pic'
12145             ;;
12146           cxx*)
12147             # Digital/Compaq C++
12148             lt_prog_compiler_wl_CXX='-Wl,'
12149             # Make sure the PIC flag is empty.  It appears that all Alpha
12150             # Linux and Compaq Tru64 Unix objects are PIC.
12151             lt_prog_compiler_pic_CXX=
12152             lt_prog_compiler_static_CXX='-non_shared'
12153             ;;
12154           *)
12155             ;;
12156         esac
12157         ;;
12158       psos*)
12159         ;;
12160       solaris*)
12161         case $cc_basename in
12162           CC*)
12163             # Sun C++ 4.2, 5.x and Centerline C++
12164             lt_prog_compiler_pic_CXX='-KPIC'
12165             lt_prog_compiler_static_CXX='-Bstatic'
12166             lt_prog_compiler_wl_CXX='-Qoption ld '
12167             ;;
12168           gcx*)
12169             # Green Hills C++ Compiler
12170             lt_prog_compiler_pic_CXX='-PIC'
12171             ;;
12172           *)
12173             ;;
12174         esac
12175         ;;
12176       sunos4*)
12177         case $cc_basename in
12178           CC*)
12179             # Sun C++ 4.x
12180             lt_prog_compiler_pic_CXX='-pic'
12181             lt_prog_compiler_static_CXX='-Bstatic'
12182             ;;
12183           lcc*)
12184             # Lucid
12185             lt_prog_compiler_pic_CXX='-pic'
12186             ;;
12187           *)
12188             ;;
12189         esac
12190         ;;
12191       tandem*)
12192         case $cc_basename in
12193           NCC*)
12194             # NonStop-UX NCC 3.20
12195             lt_prog_compiler_pic_CXX='-KPIC'
12196             ;;
12197           *)
12198             ;;
12199         esac
12200         ;;
12201       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12202         case $cc_basename in
12203           CC*)
12204             lt_prog_compiler_wl_CXX='-Wl,'
12205             lt_prog_compiler_pic_CXX='-KPIC'
12206             lt_prog_compiler_static_CXX='-Bstatic'
12207             ;;
12208         esac
12209         ;;
12210       vxworks*)
12211         ;;
12212       *)
12213         lt_prog_compiler_can_build_shared_CXX=no
12214         ;;
12215     esac
12216   fi
12217
12218 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12219 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12220
12221 #
12222 # Check to make sure the PIC flag actually works.
12223 #
12224 if test -n "$lt_prog_compiler_pic_CXX"; then
12225
12226 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12227 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12228 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12229   echo $ECHO_N "(cached) $ECHO_C" >&6
12230 else
12231   lt_prog_compiler_pic_works_CXX=no
12232   ac_outfile=conftest.$ac_objext
12233    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12234    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12235    # Insert the option either (1) after the last *FLAGS variable, or
12236    # (2) before a word containing "conftest.", or (3) at the end.
12237    # Note that $ac_compile itself does not contain backslashes and begins
12238    # with a dollar sign (not a hyphen), so the echo should work correctly.
12239    # The option is referenced via a variable to avoid confusing sed.
12240    lt_compile=`echo "$ac_compile" | $SED \
12241    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12242    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12243    -e 's:$: $lt_compiler_flag:'`
12244    (eval echo "\"\$as_me:12245: $lt_compile\"" >&5)
12245    (eval "$lt_compile" 2>conftest.err)
12246    ac_status=$?
12247    cat conftest.err >&5
12248    echo "$as_me:12249: \$? = $ac_status" >&5
12249    if (exit $ac_status) && test -s "$ac_outfile"; then
12250      # The compiler can only warn and ignore the option if not recognized
12251      # So say no if there are warnings other than the usual output.
12252      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12253      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12254      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12255        lt_prog_compiler_pic_works_CXX=yes
12256      fi
12257    fi
12258    $rm conftest*
12259
12260 fi
12261 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12262 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12263
12264 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12265     case $lt_prog_compiler_pic_CXX in
12266      "" | " "*) ;;
12267      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12268      esac
12269 else
12270     lt_prog_compiler_pic_CXX=
12271      lt_prog_compiler_can_build_shared_CXX=no
12272 fi
12273
12274 fi
12275 case $host_os in
12276   # For platforms which do not support PIC, -DPIC is meaningless:
12277   *djgpp*)
12278     lt_prog_compiler_pic_CXX=
12279     ;;
12280   *)
12281     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12282     ;;
12283 esac
12284
12285 #
12286 # Check to make sure the static flag actually works.
12287 #
12288 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12289 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12290 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12291 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12292   echo $ECHO_N "(cached) $ECHO_C" >&6
12293 else
12294   lt_prog_compiler_static_works_CXX=no
12295    save_LDFLAGS="$LDFLAGS"
12296    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12297    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12298    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12299      # The linker can only warn and ignore the option if not recognized
12300      # So say no if there are warnings
12301      if test -s conftest.err; then
12302        # Append any errors to the config.log.
12303        cat conftest.err 1>&5
12304        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12305        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12306        if diff conftest.exp conftest.er2 >/dev/null; then
12307          lt_prog_compiler_static_works_CXX=yes
12308        fi
12309      else
12310        lt_prog_compiler_static_works_CXX=yes
12311      fi
12312    fi
12313    $rm conftest*
12314    LDFLAGS="$save_LDFLAGS"
12315
12316 fi
12317 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12318 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12319
12320 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12321     :
12322 else
12323     lt_prog_compiler_static_CXX=
12324 fi
12325
12326
12327 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12328 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12329 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12330   echo $ECHO_N "(cached) $ECHO_C" >&6
12331 else
12332   lt_cv_prog_compiler_c_o_CXX=no
12333    $rm -r conftest 2>/dev/null
12334    mkdir conftest
12335    cd conftest
12336    mkdir out
12337    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12338
12339    lt_compiler_flag="-o out/conftest2.$ac_objext"
12340    # Insert the option either (1) after the last *FLAGS variable, or
12341    # (2) before a word containing "conftest.", or (3) at the end.
12342    # Note that $ac_compile itself does not contain backslashes and begins
12343    # with a dollar sign (not a hyphen), so the echo should work correctly.
12344    lt_compile=`echo "$ac_compile" | $SED \
12345    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12346    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12347    -e 's:$: $lt_compiler_flag:'`
12348    (eval echo "\"\$as_me:12349: $lt_compile\"" >&5)
12349    (eval "$lt_compile" 2>out/conftest.err)
12350    ac_status=$?
12351    cat out/conftest.err >&5
12352    echo "$as_me:12353: \$? = $ac_status" >&5
12353    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12354    then
12355      # The compiler can only warn and ignore the option if not recognized
12356      # So say no if there are warnings
12357      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12358      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12359      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12360        lt_cv_prog_compiler_c_o_CXX=yes
12361      fi
12362    fi
12363    chmod u+w . 2>&5
12364    $rm conftest*
12365    # SGI C++ compiler will create directory out/ii_files/ for
12366    # template instantiation
12367    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12368    $rm out/* && rmdir out
12369    cd ..
12370    rmdir conftest
12371    $rm conftest*
12372
12373 fi
12374 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12375 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12376
12377
12378 hard_links="nottested"
12379 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12380   # do not overwrite the value of need_locks provided by the user
12381   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12382 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12383   hard_links=yes
12384   $rm conftest*
12385   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12386   touch conftest.a
12387   ln conftest.a conftest.b 2>&5 || hard_links=no
12388   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12389   echo "$as_me:$LINENO: result: $hard_links" >&5
12390 echo "${ECHO_T}$hard_links" >&6
12391   if test "$hard_links" = no; then
12392     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12393 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12394     need_locks=warn
12395   fi
12396 else
12397   need_locks=no
12398 fi
12399
12400 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12401 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12402
12403   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12404   case $host_os in
12405   aix4* | aix5*)
12406     # If we're using GNU nm, then we don't want the "-C" option.
12407     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12408     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12409       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'
12410     else
12411       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'
12412     fi
12413     ;;
12414   pw32*)
12415     export_symbols_cmds_CXX="$ltdll_cmds"
12416   ;;
12417   cygwin* | mingw*)
12418     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'
12419   ;;
12420   kfreebsd*-gnu)
12421     link_all_deplibs_CXX=no
12422   ;;
12423   linux*)
12424     link_all_deplibs_CXX=no
12425   ;;
12426   *)
12427     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12428   ;;
12429   esac
12430
12431 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12432 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12433 test "$ld_shlibs_CXX" = no && can_build_shared=no
12434
12435 #
12436 # Do we need to explicitly link libc?
12437 #
12438 case "x$archive_cmds_need_lc_CXX" in
12439 x|xyes)
12440   # Assume -lc should be added
12441   archive_cmds_need_lc_CXX=yes
12442
12443   if test "$enable_shared" = yes && test "$GCC" = yes; then
12444     case $archive_cmds_CXX in
12445     *'~'*)
12446       # FIXME: we may have to deal with multi-command sequences.
12447       ;;
12448     '$CC '*)
12449       # Test whether the compiler implicitly links with -lc since on some
12450       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12451       # to ld, don't add -lc before -lgcc.
12452       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12453 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12454       $rm conftest*
12455       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12456
12457       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12458   (eval $ac_compile) 2>&5
12459   ac_status=$?
12460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461   (exit $ac_status); } 2>conftest.err; then
12462         soname=conftest
12463         lib=conftest
12464         libobjs=conftest.$ac_objext
12465         deplibs=
12466         wl=$lt_prog_compiler_wl_CXX
12467         pic_flag=$lt_prog_compiler_pic_CXX
12468         compiler_flags=-v
12469         linker_flags=-v
12470         verstring=
12471         output_objdir=.
12472         libname=conftest
12473         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12474         allow_undefined_flag_CXX=
12475         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12476   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12477   ac_status=$?
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); }
12480         then
12481           archive_cmds_need_lc_CXX=no
12482         else
12483           archive_cmds_need_lc_CXX=yes
12484         fi
12485         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12486       else
12487         cat conftest.err 1>&5
12488       fi
12489       $rm conftest*
12490       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12491 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12492       ;;
12493     esac
12494   fi
12495   ;;
12496 esac
12497
12498 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12499 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12500 library_names_spec=
12501 libname_spec='lib$name'
12502 soname_spec=
12503 shrext_cmds=".so"
12504 postinstall_cmds=
12505 postuninstall_cmds=
12506 finish_cmds=
12507 finish_eval=
12508 shlibpath_var=
12509 shlibpath_overrides_runpath=unknown
12510 version_type=none
12511 dynamic_linker="$host_os ld.so"
12512 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12513 if test "$GCC" = yes; then
12514   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12515   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12516     # if the path contains ";" then we assume it to be the separator
12517     # otherwise default to the standard path separator (i.e. ":") - it is
12518     # assumed that no part of a normal pathname contains ";" but that should
12519     # okay in the real world where ";" in dirpaths is itself problematic.
12520     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12521   else
12522     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12523   fi
12524 else
12525   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12526 fi
12527 need_lib_prefix=unknown
12528 hardcode_into_libs=no
12529
12530 # when you set need_version to no, make sure it does not cause -set_version
12531 # flags to be left without arguments
12532 need_version=unknown
12533
12534 case $host_os in
12535 aix3*)
12536   version_type=linux
12537   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12538   shlibpath_var=LIBPATH
12539
12540   # AIX 3 has no versioning support, so we append a major version to the name.
12541   soname_spec='${libname}${release}${shared_ext}$major'
12542   ;;
12543
12544 aix4* | aix5*)
12545   version_type=linux
12546   need_lib_prefix=no
12547   need_version=no
12548   hardcode_into_libs=yes
12549   if test "$host_cpu" = ia64; then
12550     # AIX 5 supports IA64
12551     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12552     shlibpath_var=LD_LIBRARY_PATH
12553   else
12554     # With GCC up to 2.95.x, collect2 would create an import file
12555     # for dependence libraries.  The import file would start with
12556     # the line `#! .'.  This would cause the generated library to
12557     # depend on `.', always an invalid library.  This was fixed in
12558     # development snapshots of GCC prior to 3.0.
12559     case $host_os in
12560       aix4 | aix4.[01] | aix4.[01].*)
12561       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12562            echo ' yes '
12563            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12564         :
12565       else
12566         can_build_shared=no
12567       fi
12568       ;;
12569     esac
12570     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12571     # soname into executable. Probably we can add versioning support to
12572     # collect2, so additional links can be useful in future.
12573     if test "$aix_use_runtimelinking" = yes; then
12574       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12575       # instead of lib<name>.a to let people know that these are not
12576       # typical AIX shared libraries.
12577       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12578     else
12579       # We preserve .a as extension for shared libraries through AIX4.2
12580       # and later when we are not doing run time linking.
12581       library_names_spec='${libname}${release}.a $libname.a'
12582       soname_spec='${libname}${release}${shared_ext}$major'
12583     fi
12584     shlibpath_var=LIBPATH
12585   fi
12586   ;;
12587
12588 amigaos*)
12589   library_names_spec='$libname.ixlibrary $libname.a'
12590   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12591   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'
12592   ;;
12593
12594 beos*)
12595   library_names_spec='${libname}${shared_ext}'
12596   dynamic_linker="$host_os ld.so"
12597   shlibpath_var=LIBRARY_PATH
12598   ;;
12599
12600 bsdi[45]*)
12601   version_type=linux
12602   need_version=no
12603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12604   soname_spec='${libname}${release}${shared_ext}$major'
12605   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12606   shlibpath_var=LD_LIBRARY_PATH
12607   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12608   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12609   # the default ld.so.conf also contains /usr/contrib/lib and
12610   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12611   # libtool to hard-code these into programs
12612   ;;
12613
12614 cygwin* | mingw* | pw32*)
12615   version_type=windows
12616   shrext_cmds=".dll"
12617   need_version=no
12618   need_lib_prefix=no
12619
12620   case $GCC,$host_os in
12621   yes,cygwin* | yes,mingw* | yes,pw32*)
12622     library_names_spec='$libname.dll.a'
12623     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12624     postinstall_cmds='base_file=`basename \${file}`~
12625       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12626       dldir=$destdir/`dirname \$dlpath`~
12627       test -d \$dldir || mkdir -p \$dldir~
12628       $install_prog $dir/$dlname \$dldir/$dlname~
12629       chmod a+x \$dldir/$dlname'
12630     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12631       dlpath=$dir/\$dldll~
12632        $rm \$dlpath'
12633     shlibpath_overrides_runpath=yes
12634
12635     case $host_os in
12636     cygwin*)
12637       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12638       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12639       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12640       ;;
12641     mingw*)
12642       # MinGW DLLs use traditional 'lib' prefix
12643       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12644       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12645       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12646         # It is most probably a Windows format PATH printed by
12647         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12648         # path with ; separators, and with drive letters. We can handle the
12649         # drive letters (cygwin fileutils understands them), so leave them,
12650         # especially as we might pass files found there to a mingw objdump,
12651         # which wouldn't understand a cygwinified path. Ahh.
12652         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12653       else
12654         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12655       fi
12656       ;;
12657     pw32*)
12658       # pw32 DLLs use 'pw' prefix rather than 'lib'
12659       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12660       ;;
12661     esac
12662     ;;
12663
12664   *)
12665     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12666     ;;
12667   esac
12668   dynamic_linker='Win32 ld.exe'
12669   # FIXME: first we should search . and the directory the executable is in
12670   shlibpath_var=PATH
12671   ;;
12672
12673 darwin* | rhapsody*)
12674   dynamic_linker="$host_os dyld"
12675   version_type=darwin
12676   need_lib_prefix=no
12677   need_version=no
12678   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12679   soname_spec='${libname}${release}${major}$shared_ext'
12680   shlibpath_overrides_runpath=yes
12681   shlibpath_var=DYLD_LIBRARY_PATH
12682   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12683   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12684   if test "$GCC" = yes; then
12685     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12686   else
12687     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12688   fi
12689   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12690   ;;
12691
12692 dgux*)
12693   version_type=linux
12694   need_lib_prefix=no
12695   need_version=no
12696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12697   soname_spec='${libname}${release}${shared_ext}$major'
12698   shlibpath_var=LD_LIBRARY_PATH
12699   ;;
12700
12701 freebsd1*)
12702   dynamic_linker=no
12703   ;;
12704
12705 kfreebsd*-gnu)
12706   version_type=linux
12707   need_lib_prefix=no
12708   need_version=no
12709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12710   soname_spec='${libname}${release}${shared_ext}$major'
12711   shlibpath_var=LD_LIBRARY_PATH
12712   shlibpath_overrides_runpath=no
12713   hardcode_into_libs=yes
12714   dynamic_linker='GNU ld.so'
12715   ;;
12716
12717 freebsd* | dragonfly*)
12718   # DragonFly does not have aout.  When/if they implement a new
12719   # versioning mechanism, adjust this.
12720   if test -x /usr/bin/objformat; then
12721     objformat=`/usr/bin/objformat`
12722   else
12723     case $host_os in
12724     freebsd[123]*) objformat=aout ;;
12725     *) objformat=elf ;;
12726     esac
12727   fi
12728   version_type=freebsd-$objformat
12729   case $version_type in
12730     freebsd-elf*)
12731       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12732       need_version=no
12733       need_lib_prefix=no
12734       ;;
12735     freebsd-*)
12736       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12737       need_version=yes
12738       ;;
12739   esac
12740   shlibpath_var=LD_LIBRARY_PATH
12741   case $host_os in
12742   freebsd2*)
12743     shlibpath_overrides_runpath=yes
12744     ;;
12745   freebsd3.[01]* | freebsdelf3.[01]*)
12746     shlibpath_overrides_runpath=yes
12747     hardcode_into_libs=yes
12748     ;;
12749   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12750   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12751     shlibpath_overrides_runpath=no
12752     hardcode_into_libs=yes
12753     ;;
12754   freebsd*) # from 4.6 on
12755     shlibpath_overrides_runpath=yes
12756     hardcode_into_libs=yes
12757     ;;
12758   esac
12759   ;;
12760
12761 gnu*)
12762   version_type=linux
12763   need_lib_prefix=no
12764   need_version=no
12765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12766   soname_spec='${libname}${release}${shared_ext}$major'
12767   shlibpath_var=LD_LIBRARY_PATH
12768   hardcode_into_libs=yes
12769   ;;
12770
12771 hpux9* | hpux10* | hpux11*)
12772   # Give a soname corresponding to the major version so that dld.sl refuses to
12773   # link against other versions.
12774   version_type=sunos
12775   need_lib_prefix=no
12776   need_version=no
12777   case $host_cpu in
12778   ia64*)
12779     shrext_cmds='.so'
12780     hardcode_into_libs=yes
12781     dynamic_linker="$host_os dld.so"
12782     shlibpath_var=LD_LIBRARY_PATH
12783     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12784     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12785     soname_spec='${libname}${release}${shared_ext}$major'
12786     if test "X$HPUX_IA64_MODE" = X32; then
12787       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12788     else
12789       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12790     fi
12791     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12792     ;;
12793    hppa*64*)
12794      shrext_cmds='.sl'
12795      hardcode_into_libs=yes
12796      dynamic_linker="$host_os dld.sl"
12797      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12798      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12799      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12800      soname_spec='${libname}${release}${shared_ext}$major'
12801      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12802      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12803      ;;
12804    *)
12805     shrext_cmds='.sl'
12806     dynamic_linker="$host_os dld.sl"
12807     shlibpath_var=SHLIB_PATH
12808     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12809     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12810     soname_spec='${libname}${release}${shared_ext}$major'
12811     ;;
12812   esac
12813   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12814   postinstall_cmds='chmod 555 $lib'
12815   ;;
12816
12817 interix3*)
12818   version_type=linux
12819   need_lib_prefix=no
12820   need_version=no
12821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12822   soname_spec='${libname}${release}${shared_ext}$major'
12823   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12824   shlibpath_var=LD_LIBRARY_PATH
12825   shlibpath_overrides_runpath=no
12826   hardcode_into_libs=yes
12827   ;;
12828
12829 irix5* | irix6* | nonstopux*)
12830   case $host_os in
12831     nonstopux*) version_type=nonstopux ;;
12832     *)
12833         if test "$lt_cv_prog_gnu_ld" = yes; then
12834                 version_type=linux
12835         else
12836                 version_type=irix
12837         fi ;;
12838   esac
12839   need_lib_prefix=no
12840   need_version=no
12841   soname_spec='${libname}${release}${shared_ext}$major'
12842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12843   case $host_os in
12844   irix5* | nonstopux*)
12845     libsuff= shlibsuff=
12846     ;;
12847   *)
12848     case $LD in # libtool.m4 will add one of these switches to LD
12849     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12850       libsuff= shlibsuff= libmagic=32-bit;;
12851     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12852       libsuff=32 shlibsuff=N32 libmagic=N32;;
12853     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12854       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12855     *) libsuff= shlibsuff= libmagic=never-match;;
12856     esac
12857     ;;
12858   esac
12859   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12860   shlibpath_overrides_runpath=no
12861   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12862   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12863   hardcode_into_libs=yes
12864   ;;
12865
12866 # No shared lib support for Linux oldld, aout, or coff.
12867 linux*oldld* | linux*aout* | linux*coff*)
12868   dynamic_linker=no
12869   ;;
12870
12871 # This must be Linux ELF.
12872 linux*)
12873   version_type=linux
12874   need_lib_prefix=no
12875   need_version=no
12876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12877   soname_spec='${libname}${release}${shared_ext}$major'
12878   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12879   shlibpath_var=LD_LIBRARY_PATH
12880   shlibpath_overrides_runpath=no
12881   # This implies no fast_install, which is unacceptable.
12882   # Some rework will be needed to allow for fast_install
12883   # before this can be enabled.
12884   hardcode_into_libs=yes
12885
12886   # Append ld.so.conf contents to the search path
12887   if test -f /etc/ld.so.conf; then
12888     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12889     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12890   fi
12891
12892   # We used to test for /lib/ld.so.1 and disable shared libraries on
12893   # powerpc, because MkLinux only supported shared libraries with the
12894   # GNU dynamic linker.  Since this was broken with cross compilers,
12895   # most powerpc-linux boxes support dynamic linking these days and
12896   # people can always --disable-shared, the test was removed, and we
12897   # assume the GNU/Linux dynamic linker is in use.
12898   dynamic_linker='GNU/Linux ld.so'
12899   ;;
12900
12901 netbsdelf*-gnu)
12902   version_type=linux
12903   need_lib_prefix=no
12904   need_version=no
12905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12906   soname_spec='${libname}${release}${shared_ext}$major'
12907   shlibpath_var=LD_LIBRARY_PATH
12908   shlibpath_overrides_runpath=no
12909   hardcode_into_libs=yes
12910   dynamic_linker='NetBSD ld.elf_so'
12911   ;;
12912
12913 knetbsd*-gnu)
12914   version_type=linux
12915   need_lib_prefix=no
12916   need_version=no
12917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12918   soname_spec='${libname}${release}${shared_ext}$major'
12919   shlibpath_var=LD_LIBRARY_PATH
12920   shlibpath_overrides_runpath=no
12921   hardcode_into_libs=yes
12922   dynamic_linker='GNU ld.so'
12923   ;;
12924
12925 netbsd*)
12926   version_type=sunos
12927   need_lib_prefix=no
12928   need_version=no
12929   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12930     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12931     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12932     dynamic_linker='NetBSD (a.out) ld.so'
12933   else
12934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12935     soname_spec='${libname}${release}${shared_ext}$major'
12936     dynamic_linker='NetBSD ld.elf_so'
12937   fi
12938   shlibpath_var=LD_LIBRARY_PATH
12939   shlibpath_overrides_runpath=yes
12940   hardcode_into_libs=yes
12941   ;;
12942
12943 newsos6)
12944   version_type=linux
12945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12946   shlibpath_var=LD_LIBRARY_PATH
12947   shlibpath_overrides_runpath=yes
12948   ;;
12949
12950 nto-qnx*)
12951   version_type=linux
12952   need_lib_prefix=no
12953   need_version=no
12954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12955   soname_spec='${libname}${release}${shared_ext}$major'
12956   shlibpath_var=LD_LIBRARY_PATH
12957   shlibpath_overrides_runpath=yes
12958   ;;
12959
12960 openbsd*)
12961   version_type=sunos
12962   sys_lib_dlsearch_path_spec="/usr/lib"
12963   need_lib_prefix=no
12964   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12965   case $host_os in
12966     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12967     *)                         need_version=no  ;;
12968   esac
12969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12970   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12971   shlibpath_var=LD_LIBRARY_PATH
12972   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12973     case $host_os in
12974       openbsd2.[89] | openbsd2.[89].*)
12975         shlibpath_overrides_runpath=no
12976         ;;
12977       *)
12978         shlibpath_overrides_runpath=yes
12979         ;;
12980       esac
12981   else
12982     shlibpath_overrides_runpath=yes
12983   fi
12984   ;;
12985
12986 os2*)
12987   libname_spec='$name'
12988   shrext_cmds=".dll"
12989   need_lib_prefix=no
12990   library_names_spec='$libname${shared_ext} $libname.a'
12991   dynamic_linker='OS/2 ld.exe'
12992   shlibpath_var=LIBPATH
12993   ;;
12994
12995 osf3* | osf4* | osf5*)
12996   version_type=osf
12997   need_lib_prefix=no
12998   need_version=no
12999   soname_spec='${libname}${release}${shared_ext}$major'
13000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13001   shlibpath_var=LD_LIBRARY_PATH
13002   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13003   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13004   ;;
13005
13006 solaris*)
13007   version_type=linux
13008   need_lib_prefix=no
13009   need_version=no
13010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13011   soname_spec='${libname}${release}${shared_ext}$major'
13012   shlibpath_var=LD_LIBRARY_PATH
13013   shlibpath_overrides_runpath=yes
13014   hardcode_into_libs=yes
13015   # ldd complains unless libraries are executable
13016   postinstall_cmds='chmod +x $lib'
13017   ;;
13018
13019 sunos4*)
13020   version_type=sunos
13021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13022   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13023   shlibpath_var=LD_LIBRARY_PATH
13024   shlibpath_overrides_runpath=yes
13025   if test "$with_gnu_ld" = yes; then
13026     need_lib_prefix=no
13027   fi
13028   need_version=yes
13029   ;;
13030
13031 sysv4 | sysv4.3*)
13032   version_type=linux
13033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13034   soname_spec='${libname}${release}${shared_ext}$major'
13035   shlibpath_var=LD_LIBRARY_PATH
13036   case $host_vendor in
13037     sni)
13038       shlibpath_overrides_runpath=no
13039       need_lib_prefix=no
13040       export_dynamic_flag_spec='${wl}-Blargedynsym'
13041       runpath_var=LD_RUN_PATH
13042       ;;
13043     siemens)
13044       need_lib_prefix=no
13045       ;;
13046     motorola)
13047       need_lib_prefix=no
13048       need_version=no
13049       shlibpath_overrides_runpath=no
13050       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13051       ;;
13052   esac
13053   ;;
13054
13055 sysv4*MP*)
13056   if test -d /usr/nec ;then
13057     version_type=linux
13058     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13059     soname_spec='$libname${shared_ext}.$major'
13060     shlibpath_var=LD_LIBRARY_PATH
13061   fi
13062   ;;
13063
13064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13065   version_type=freebsd-elf
13066   need_lib_prefix=no
13067   need_version=no
13068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13069   soname_spec='${libname}${release}${shared_ext}$major'
13070   shlibpath_var=LD_LIBRARY_PATH
13071   hardcode_into_libs=yes
13072   if test "$with_gnu_ld" = yes; then
13073     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13074     shlibpath_overrides_runpath=no
13075   else
13076     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13077     shlibpath_overrides_runpath=yes
13078     case $host_os in
13079       sco3.2v5*)
13080         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13081         ;;
13082     esac
13083   fi
13084   sys_lib_dlsearch_path_spec='/usr/lib'
13085   ;;
13086
13087 uts4*)
13088   version_type=linux
13089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13090   soname_spec='${libname}${release}${shared_ext}$major'
13091   shlibpath_var=LD_LIBRARY_PATH
13092   ;;
13093
13094 *)
13095   dynamic_linker=no
13096   ;;
13097 esac
13098 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13099 echo "${ECHO_T}$dynamic_linker" >&6
13100 test "$dynamic_linker" = no && can_build_shared=no
13101
13102 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13103 if test "$GCC" = yes; then
13104   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13105 fi
13106
13107 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13108 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13109 hardcode_action_CXX=
13110 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13111    test -n "$runpath_var_CXX" || \
13112    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13113
13114   # We can hardcode non-existant directories.
13115   if test "$hardcode_direct_CXX" != no &&
13116      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13117      # have to relink, otherwise we might link with an installed library
13118      # when we should be linking with a yet-to-be-installed one
13119      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13120      test "$hardcode_minus_L_CXX" != no; then
13121     # Linking always hardcodes the temporary library directory.
13122     hardcode_action_CXX=relink
13123   else
13124     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13125     hardcode_action_CXX=immediate
13126   fi
13127 else
13128   # We cannot hardcode anything, or else we can only hardcode existing
13129   # directories.
13130   hardcode_action_CXX=unsupported
13131 fi
13132 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13133 echo "${ECHO_T}$hardcode_action_CXX" >&6
13134
13135 if test "$hardcode_action_CXX" = relink; then
13136   # Fast installation is not supported
13137   enable_fast_install=no
13138 elif test "$shlibpath_overrides_runpath" = yes ||
13139      test "$enable_shared" = no; then
13140   # Fast installation is not necessary
13141   enable_fast_install=needless
13142 fi
13143
13144
13145 # The else clause should only fire when bootstrapping the
13146 # libtool distribution, otherwise you forgot to ship ltmain.sh
13147 # with your package, and you will get complaints that there are
13148 # no rules to generate ltmain.sh.
13149 if test -f "$ltmain"; then
13150   # See if we are running on zsh, and set the options which allow our commands through
13151   # without removal of \ escapes.
13152   if test -n "${ZSH_VERSION+set}" ; then
13153     setopt NO_GLOB_SUBST
13154   fi
13155   # Now quote all the things that may contain metacharacters while being
13156   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13157   # variables and quote the copies for generation of the libtool script.
13158   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13159     SED SHELL STRIP \
13160     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13161     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13162     deplibs_check_method reload_flag reload_cmds need_locks \
13163     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13164     lt_cv_sys_global_symbol_to_c_name_address \
13165     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13166     old_postinstall_cmds old_postuninstall_cmds \
13167     compiler_CXX \
13168     CC_CXX \
13169     LD_CXX \
13170     lt_prog_compiler_wl_CXX \
13171     lt_prog_compiler_pic_CXX \
13172     lt_prog_compiler_static_CXX \
13173     lt_prog_compiler_no_builtin_flag_CXX \
13174     export_dynamic_flag_spec_CXX \
13175     thread_safe_flag_spec_CXX \
13176     whole_archive_flag_spec_CXX \
13177     enable_shared_with_static_runtimes_CXX \
13178     old_archive_cmds_CXX \
13179     old_archive_from_new_cmds_CXX \
13180     predep_objects_CXX \
13181     postdep_objects_CXX \
13182     predeps_CXX \
13183     postdeps_CXX \
13184     compiler_lib_search_path_CXX \
13185     archive_cmds_CXX \
13186     archive_expsym_cmds_CXX \
13187     postinstall_cmds_CXX \
13188     postuninstall_cmds_CXX \
13189     old_archive_from_expsyms_cmds_CXX \
13190     allow_undefined_flag_CXX \
13191     no_undefined_flag_CXX \
13192     export_symbols_cmds_CXX \
13193     hardcode_libdir_flag_spec_CXX \
13194     hardcode_libdir_flag_spec_ld_CXX \
13195     hardcode_libdir_separator_CXX \
13196     hardcode_automatic_CXX \
13197     module_cmds_CXX \
13198     module_expsym_cmds_CXX \
13199     lt_cv_prog_compiler_c_o_CXX \
13200     exclude_expsyms_CXX \
13201     include_expsyms_CXX; do
13202
13203     case $var in
13204     old_archive_cmds_CXX | \
13205     old_archive_from_new_cmds_CXX | \
13206     archive_cmds_CXX | \
13207     archive_expsym_cmds_CXX | \
13208     module_cmds_CXX | \
13209     module_expsym_cmds_CXX | \
13210     old_archive_from_expsyms_cmds_CXX | \
13211     export_symbols_cmds_CXX | \
13212     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13213     postinstall_cmds | postuninstall_cmds | \
13214     old_postinstall_cmds | old_postuninstall_cmds | \
13215     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13216       # Double-quote double-evaled strings.
13217       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13218       ;;
13219     *)
13220       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13221       ;;
13222     esac
13223   done
13224
13225   case $lt_echo in
13226   *'\$0 --fallback-echo"')
13227     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13228     ;;
13229   esac
13230
13231 cfgfile="$ofile"
13232
13233   cat <<__EOF__ >> "$cfgfile"
13234 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13235
13236 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13237
13238 # Shell to use when invoking shell scripts.
13239 SHELL=$lt_SHELL
13240
13241 # Whether or not to build shared libraries.
13242 build_libtool_libs=$enable_shared
13243
13244 # Whether or not to build static libraries.
13245 build_old_libs=$enable_static
13246
13247 # Whether or not to add -lc for building shared libraries.
13248 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13249
13250 # Whether or not to disallow shared libs when runtime libs are static
13251 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13252
13253 # Whether or not to optimize for fast installation.
13254 fast_install=$enable_fast_install
13255
13256 # The host system.
13257 host_alias=$host_alias
13258 host=$host
13259 host_os=$host_os
13260
13261 # The build system.
13262 build_alias=$build_alias
13263 build=$build
13264 build_os=$build_os
13265
13266 # An echo program that does not interpret backslashes.
13267 echo=$lt_echo
13268
13269 # The archiver.
13270 AR=$lt_AR
13271 AR_FLAGS=$lt_AR_FLAGS
13272
13273 # A C compiler.
13274 LTCC=$lt_LTCC
13275
13276 # LTCC compiler flags.
13277 LTCFLAGS=$lt_LTCFLAGS
13278
13279 # A language-specific compiler.
13280 CC=$lt_compiler_CXX
13281
13282 # Is the compiler the GNU C compiler?
13283 with_gcc=$GCC_CXX
13284
13285 # An ERE matcher.
13286 EGREP=$lt_EGREP
13287
13288 # The linker used to build libraries.
13289 LD=$lt_LD_CXX
13290
13291 # Whether we need hard or soft links.
13292 LN_S=$lt_LN_S
13293
13294 # A BSD-compatible nm program.
13295 NM=$lt_NM
13296
13297 # A symbol stripping program
13298 STRIP=$lt_STRIP
13299
13300 # Used to examine libraries when file_magic_cmd begins "file"
13301 MAGIC_CMD=$MAGIC_CMD
13302
13303 # Used on cygwin: DLL creation program.
13304 DLLTOOL="$DLLTOOL"
13305
13306 # Used on cygwin: object dumper.
13307 OBJDUMP="$OBJDUMP"
13308
13309 # Used on cygwin: assembler.
13310 AS="$AS"
13311
13312 # The name of the directory that contains temporary libtool files.
13313 objdir=$objdir
13314
13315 # How to create reloadable object files.
13316 reload_flag=$lt_reload_flag
13317 reload_cmds=$lt_reload_cmds
13318
13319 # How to pass a linker flag through the compiler.
13320 wl=$lt_lt_prog_compiler_wl_CXX
13321
13322 # Object file suffix (normally "o").
13323 objext="$ac_objext"
13324
13325 # Old archive suffix (normally "a").
13326 libext="$libext"
13327
13328 # Shared library suffix (normally ".so").
13329 shrext_cmds='$shrext_cmds'
13330
13331 # Executable file suffix (normally "").
13332 exeext="$exeext"
13333
13334 # Additional compiler flags for building library objects.
13335 pic_flag=$lt_lt_prog_compiler_pic_CXX
13336 pic_mode=$pic_mode
13337
13338 # What is the maximum length of a command?
13339 max_cmd_len=$lt_cv_sys_max_cmd_len
13340
13341 # Does compiler simultaneously support -c and -o options?
13342 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13343
13344 # Must we lock files when doing compilation?
13345 need_locks=$lt_need_locks
13346
13347 # Do we need the lib prefix for modules?
13348 need_lib_prefix=$need_lib_prefix
13349
13350 # Do we need a version for libraries?
13351 need_version=$need_version
13352
13353 # Whether dlopen is supported.
13354 dlopen_support=$enable_dlopen
13355
13356 # Whether dlopen of programs is supported.
13357 dlopen_self=$enable_dlopen_self
13358
13359 # Whether dlopen of statically linked programs is supported.
13360 dlopen_self_static=$enable_dlopen_self_static
13361
13362 # Compiler flag to prevent dynamic linking.
13363 link_static_flag=$lt_lt_prog_compiler_static_CXX
13364
13365 # Compiler flag to turn off builtin functions.
13366 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13367
13368 # Compiler flag to allow reflexive dlopens.
13369 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13370
13371 # Compiler flag to generate shared objects directly from archives.
13372 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13373
13374 # Compiler flag to generate thread-safe objects.
13375 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13376
13377 # Library versioning type.
13378 version_type=$version_type
13379
13380 # Format of library name prefix.
13381 libname_spec=$lt_libname_spec
13382
13383 # List of archive names.  First name is the real one, the rest are links.
13384 # The last name is the one that the linker finds with -lNAME.
13385 library_names_spec=$lt_library_names_spec
13386
13387 # The coded name of the library, if different from the real name.
13388 soname_spec=$lt_soname_spec
13389
13390 # Commands used to build and install an old-style archive.
13391 RANLIB=$lt_RANLIB
13392 old_archive_cmds=$lt_old_archive_cmds_CXX
13393 old_postinstall_cmds=$lt_old_postinstall_cmds
13394 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13395
13396 # Create an old-style archive from a shared archive.
13397 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13398
13399 # Create a temporary old-style archive to link instead of a shared archive.
13400 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13401
13402 # Commands used to build and install a shared archive.
13403 archive_cmds=$lt_archive_cmds_CXX
13404 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13405 postinstall_cmds=$lt_postinstall_cmds
13406 postuninstall_cmds=$lt_postuninstall_cmds
13407
13408 # Commands used to build a loadable module (assumed same as above if empty)
13409 module_cmds=$lt_module_cmds_CXX
13410 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13411
13412 # Commands to strip libraries.
13413 old_striplib=$lt_old_striplib
13414 striplib=$lt_striplib
13415
13416 # Dependencies to place before the objects being linked to create a
13417 # shared library.
13418 predep_objects=$lt_predep_objects_CXX
13419
13420 # Dependencies to place after the objects being linked to create a
13421 # shared library.
13422 postdep_objects=$lt_postdep_objects_CXX
13423
13424 # Dependencies to place before the objects being linked to create a
13425 # shared library.
13426 predeps=$lt_predeps_CXX
13427
13428 # Dependencies to place after the objects being linked to create a
13429 # shared library.
13430 postdeps=$lt_postdeps_CXX
13431
13432 # The library search path used internally by the compiler when linking
13433 # a shared library.
13434 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13435
13436 # Method to check whether dependent libraries are shared objects.
13437 deplibs_check_method=$lt_deplibs_check_method
13438
13439 # Command to use when deplibs_check_method == file_magic.
13440 file_magic_cmd=$lt_file_magic_cmd
13441
13442 # Flag that allows shared libraries with undefined symbols to be built.
13443 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13444
13445 # Flag that forces no undefined symbols.
13446 no_undefined_flag=$lt_no_undefined_flag_CXX
13447
13448 # Commands used to finish a libtool library installation in a directory.
13449 finish_cmds=$lt_finish_cmds
13450
13451 # Same as above, but a single script fragment to be evaled but not shown.
13452 finish_eval=$lt_finish_eval
13453
13454 # Take the output of nm and produce a listing of raw symbols and C names.
13455 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13456
13457 # Transform the output of nm in a proper C declaration
13458 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13459
13460 # Transform the output of nm in a C name address pair
13461 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13462
13463 # This is the shared library runtime path variable.
13464 runpath_var=$runpath_var
13465
13466 # This is the shared library path variable.
13467 shlibpath_var=$shlibpath_var
13468
13469 # Is shlibpath searched before the hard-coded library search path?
13470 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13471
13472 # How to hardcode a shared library path into an executable.
13473 hardcode_action=$hardcode_action_CXX
13474
13475 # Whether we should hardcode library paths into libraries.
13476 hardcode_into_libs=$hardcode_into_libs
13477
13478 # Flag to hardcode \$libdir into a binary during linking.
13479 # This must work even if \$libdir does not exist.
13480 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13481
13482 # If ld is used when linking, flag to hardcode \$libdir into
13483 # a binary during linking. This must work even if \$libdir does
13484 # not exist.
13485 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13486
13487 # Whether we need a single -rpath flag with a separated argument.
13488 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13489
13490 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13491 # resulting binary.
13492 hardcode_direct=$hardcode_direct_CXX
13493
13494 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13495 # resulting binary.
13496 hardcode_minus_L=$hardcode_minus_L_CXX
13497
13498 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13499 # the resulting binary.
13500 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13501
13502 # Set to yes if building a shared library automatically hardcodes DIR into the library
13503 # and all subsequent libraries and executables linked against it.
13504 hardcode_automatic=$hardcode_automatic_CXX
13505
13506 # Variables whose values should be saved in libtool wrapper scripts and
13507 # restored at relink time.
13508 variables_saved_for_relink="$variables_saved_for_relink"
13509
13510 # Whether libtool must link a program against all its dependency libraries.
13511 link_all_deplibs=$link_all_deplibs_CXX
13512
13513 # Compile-time system search path for libraries
13514 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13515
13516 # Run-time system search path for libraries
13517 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13518
13519 # Fix the shell variable \$srcfile for the compiler.
13520 fix_srcfile_path="$fix_srcfile_path_CXX"
13521
13522 # Set to yes if exported symbols are required.
13523 always_export_symbols=$always_export_symbols_CXX
13524
13525 # The commands to list exported symbols.
13526 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13527
13528 # The commands to extract the exported symbol list from a shared archive.
13529 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13530
13531 # Symbols that should not be listed in the preloaded symbols.
13532 exclude_expsyms=$lt_exclude_expsyms_CXX
13533
13534 # Symbols that must always be exported.
13535 include_expsyms=$lt_include_expsyms_CXX
13536
13537 # ### END LIBTOOL TAG CONFIG: $tagname
13538
13539 __EOF__
13540
13541
13542 else
13543   # If there is no Makefile yet, we rely on a make rule to execute
13544   # `config.status --recheck' to rerun these tests and create the
13545   # libtool script then.
13546   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13547   if test -f "$ltmain_in"; then
13548     test -f Makefile && make "$ltmain"
13549   fi
13550 fi
13551
13552
13553 ac_ext=c
13554 ac_cpp='$CPP $CPPFLAGS'
13555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13558
13559 CC=$lt_save_CC
13560 LDCXX=$LD
13561 LD=$lt_save_LD
13562 GCC=$lt_save_GCC
13563 with_gnu_ldcxx=$with_gnu_ld
13564 with_gnu_ld=$lt_save_with_gnu_ld
13565 lt_cv_path_LDCXX=$lt_cv_path_LD
13566 lt_cv_path_LD=$lt_save_path_LD
13567 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13568 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13569
13570         else
13571           tagname=""
13572         fi
13573         ;;
13574
13575       F77)
13576         if test -n "$F77" && test "X$F77" != "Xno"; then
13577
13578 ac_ext=f
13579 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13580 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13581 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13582
13583
13584 archive_cmds_need_lc_F77=no
13585 allow_undefined_flag_F77=
13586 always_export_symbols_F77=no
13587 archive_expsym_cmds_F77=
13588 export_dynamic_flag_spec_F77=
13589 hardcode_direct_F77=no
13590 hardcode_libdir_flag_spec_F77=
13591 hardcode_libdir_flag_spec_ld_F77=
13592 hardcode_libdir_separator_F77=
13593 hardcode_minus_L_F77=no
13594 hardcode_automatic_F77=no
13595 module_cmds_F77=
13596 module_expsym_cmds_F77=
13597 link_all_deplibs_F77=unknown
13598 old_archive_cmds_F77=$old_archive_cmds
13599 no_undefined_flag_F77=
13600 whole_archive_flag_spec_F77=
13601 enable_shared_with_static_runtimes_F77=no
13602
13603 # Source file extension for f77 test sources.
13604 ac_ext=f
13605
13606 # Object file extension for compiled f77 test sources.
13607 objext=o
13608 objext_F77=$objext
13609
13610 # Code to be used in simple compile tests
13611 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13612
13613 # Code to be used in simple link tests
13614 lt_simple_link_test_code="      program t\n      end\n"
13615
13616 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13617
13618 # If no C compiler was specified, use CC.
13619 LTCC=${LTCC-"$CC"}
13620
13621 # If no C compiler flags were specified, use CFLAGS.
13622 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13623
13624 # Allow CC to be a program name with arguments.
13625 compiler=$CC
13626
13627
13628 # save warnings/boilerplate of simple test code
13629 ac_outfile=conftest.$ac_objext
13630 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13631 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13632 _lt_compiler_boilerplate=`cat conftest.err`
13633 $rm conftest*
13634
13635 ac_outfile=conftest.$ac_objext
13636 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13637 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13638 _lt_linker_boilerplate=`cat conftest.err`
13639 $rm conftest*
13640
13641
13642 # Allow CC to be a program name with arguments.
13643 lt_save_CC="$CC"
13644 CC=${F77-"f77"}
13645 compiler=$CC
13646 compiler_F77=$CC
13647 for cc_temp in $compiler""; do
13648   case $cc_temp in
13649     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13650     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13651     \-*) ;;
13652     *) break;;
13653   esac
13654 done
13655 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13656
13657
13658 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13659 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13660 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13661 echo "${ECHO_T}$can_build_shared" >&6
13662
13663 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13664 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13665 test "$can_build_shared" = "no" && enable_shared=no
13666
13667 # On AIX, shared libraries and static libraries use the same namespace, and
13668 # are all built from PIC.
13669 case $host_os in
13670 aix3*)
13671   test "$enable_shared" = yes && enable_static=no
13672   if test -n "$RANLIB"; then
13673     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13674     postinstall_cmds='$RANLIB $lib'
13675   fi
13676   ;;
13677 aix4* | aix5*)
13678   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13679     test "$enable_shared" = yes && enable_static=no
13680   fi
13681   ;;
13682 esac
13683 echo "$as_me:$LINENO: result: $enable_shared" >&5
13684 echo "${ECHO_T}$enable_shared" >&6
13685
13686 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13687 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13688 # Make sure either enable_shared or enable_static is yes.
13689 test "$enable_shared" = yes || enable_static=yes
13690 echo "$as_me:$LINENO: result: $enable_static" >&5
13691 echo "${ECHO_T}$enable_static" >&6
13692
13693 GCC_F77="$G77"
13694 LD_F77="$LD"
13695
13696 lt_prog_compiler_wl_F77=
13697 lt_prog_compiler_pic_F77=
13698 lt_prog_compiler_static_F77=
13699
13700 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13701 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13702
13703   if test "$GCC" = yes; then
13704     lt_prog_compiler_wl_F77='-Wl,'
13705     lt_prog_compiler_static_F77='-static'
13706
13707     case $host_os in
13708       aix*)
13709       # All AIX code is PIC.
13710       if test "$host_cpu" = ia64; then
13711         # AIX 5 now supports IA64 processor
13712         lt_prog_compiler_static_F77='-Bstatic'
13713       fi
13714       ;;
13715
13716     amigaos*)
13717       # FIXME: we need at least 68020 code to build shared libraries, but
13718       # adding the `-m68020' flag to GCC prevents building anything better,
13719       # like `-m68040'.
13720       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13721       ;;
13722
13723     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13724       # PIC is the default for these OSes.
13725       ;;
13726
13727     mingw* | pw32* | os2*)
13728       # This hack is so that the source file can tell whether it is being
13729       # built for inclusion in a dll (and should export symbols for example).
13730       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13731       ;;
13732
13733     darwin* | rhapsody*)
13734       # PIC is the default on this platform
13735       # Common symbols not allowed in MH_DYLIB files
13736       lt_prog_compiler_pic_F77='-fno-common'
13737       ;;
13738
13739     interix3*)
13740       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13741       # Instead, we relocate shared libraries at runtime.
13742       ;;
13743
13744     msdosdjgpp*)
13745       # Just because we use GCC doesn't mean we suddenly get shared libraries
13746       # on systems that don't support them.
13747       lt_prog_compiler_can_build_shared_F77=no
13748       enable_shared=no
13749       ;;
13750
13751     sysv4*MP*)
13752       if test -d /usr/nec; then
13753         lt_prog_compiler_pic_F77=-Kconform_pic
13754       fi
13755       ;;
13756
13757     hpux*)
13758       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13759       # not for PA HP-UX.
13760       case $host_cpu in
13761       hppa*64*|ia64*)
13762         # +Z the default
13763         ;;
13764       *)
13765         lt_prog_compiler_pic_F77='-fPIC'
13766         ;;
13767       esac
13768       ;;
13769
13770     *)
13771       lt_prog_compiler_pic_F77='-fPIC'
13772       ;;
13773     esac
13774   else
13775     # PORTME Check for flag to pass linker flags through the system compiler.
13776     case $host_os in
13777     aix*)
13778       lt_prog_compiler_wl_F77='-Wl,'
13779       if test "$host_cpu" = ia64; then
13780         # AIX 5 now supports IA64 processor
13781         lt_prog_compiler_static_F77='-Bstatic'
13782       else
13783         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13784       fi
13785       ;;
13786       darwin*)
13787         # PIC is the default on this platform
13788         # Common symbols not allowed in MH_DYLIB files
13789        case $cc_basename in
13790          xlc*)
13791          lt_prog_compiler_pic_F77='-qnocommon'
13792          lt_prog_compiler_wl_F77='-Wl,'
13793          ;;
13794        esac
13795        ;;
13796
13797     mingw* | pw32* | os2*)
13798       # This hack is so that the source file can tell whether it is being
13799       # built for inclusion in a dll (and should export symbols for example).
13800       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13801       ;;
13802
13803     hpux9* | hpux10* | hpux11*)
13804       lt_prog_compiler_wl_F77='-Wl,'
13805       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13806       # not for PA HP-UX.
13807       case $host_cpu in
13808       hppa*64*|ia64*)
13809         # +Z the default
13810         ;;
13811       *)
13812         lt_prog_compiler_pic_F77='+Z'
13813         ;;
13814       esac
13815       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13816       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13817       ;;
13818
13819     irix5* | irix6* | nonstopux*)
13820       lt_prog_compiler_wl_F77='-Wl,'
13821       # PIC (with -KPIC) is the default.
13822       lt_prog_compiler_static_F77='-non_shared'
13823       ;;
13824
13825     newsos6)
13826       lt_prog_compiler_pic_F77='-KPIC'
13827       lt_prog_compiler_static_F77='-Bstatic'
13828       ;;
13829
13830     linux*)
13831       case $cc_basename in
13832       icc* | ecc*)
13833         lt_prog_compiler_wl_F77='-Wl,'
13834         lt_prog_compiler_pic_F77='-KPIC'
13835         lt_prog_compiler_static_F77='-static'
13836         ;;
13837       pgcc* | pgf77* | pgf90* | pgf95*)
13838         # Portland Group compilers (*not* the Pentium gcc compiler,
13839         # which looks to be a dead project)
13840         lt_prog_compiler_wl_F77='-Wl,'
13841         lt_prog_compiler_pic_F77='-fpic'
13842         lt_prog_compiler_static_F77='-Bstatic'
13843         ;;
13844       ccc*)
13845         lt_prog_compiler_wl_F77='-Wl,'
13846         # All Alpha code is PIC.
13847         lt_prog_compiler_static_F77='-non_shared'
13848         ;;
13849       esac
13850       ;;
13851
13852     osf3* | osf4* | osf5*)
13853       lt_prog_compiler_wl_F77='-Wl,'
13854       # All OSF/1 code is PIC.
13855       lt_prog_compiler_static_F77='-non_shared'
13856       ;;
13857
13858     solaris*)
13859       lt_prog_compiler_pic_F77='-KPIC'
13860       lt_prog_compiler_static_F77='-Bstatic'
13861       case $cc_basename in
13862       f77* | f90* | f95*)
13863         lt_prog_compiler_wl_F77='-Qoption ld ';;
13864       *)
13865         lt_prog_compiler_wl_F77='-Wl,';;
13866       esac
13867       ;;
13868
13869     sunos4*)
13870       lt_prog_compiler_wl_F77='-Qoption ld '
13871       lt_prog_compiler_pic_F77='-PIC'
13872       lt_prog_compiler_static_F77='-Bstatic'
13873       ;;
13874
13875     sysv4 | sysv4.2uw2* | sysv4.3*)
13876       lt_prog_compiler_wl_F77='-Wl,'
13877       lt_prog_compiler_pic_F77='-KPIC'
13878       lt_prog_compiler_static_F77='-Bstatic'
13879       ;;
13880
13881     sysv4*MP*)
13882       if test -d /usr/nec ;then
13883         lt_prog_compiler_pic_F77='-Kconform_pic'
13884         lt_prog_compiler_static_F77='-Bstatic'
13885       fi
13886       ;;
13887
13888     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13889       lt_prog_compiler_wl_F77='-Wl,'
13890       lt_prog_compiler_pic_F77='-KPIC'
13891       lt_prog_compiler_static_F77='-Bstatic'
13892       ;;
13893
13894     unicos*)
13895       lt_prog_compiler_wl_F77='-Wl,'
13896       lt_prog_compiler_can_build_shared_F77=no
13897       ;;
13898
13899     uts4*)
13900       lt_prog_compiler_pic_F77='-pic'
13901       lt_prog_compiler_static_F77='-Bstatic'
13902       ;;
13903
13904     *)
13905       lt_prog_compiler_can_build_shared_F77=no
13906       ;;
13907     esac
13908   fi
13909
13910 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13911 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13912
13913 #
13914 # Check to make sure the PIC flag actually works.
13915 #
13916 if test -n "$lt_prog_compiler_pic_F77"; then
13917
13918 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13919 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13920 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13921   echo $ECHO_N "(cached) $ECHO_C" >&6
13922 else
13923   lt_prog_compiler_pic_works_F77=no
13924   ac_outfile=conftest.$ac_objext
13925    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13926    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13927    # Insert the option either (1) after the last *FLAGS variable, or
13928    # (2) before a word containing "conftest.", or (3) at the end.
13929    # Note that $ac_compile itself does not contain backslashes and begins
13930    # with a dollar sign (not a hyphen), so the echo should work correctly.
13931    # The option is referenced via a variable to avoid confusing sed.
13932    lt_compile=`echo "$ac_compile" | $SED \
13933    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13934    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13935    -e 's:$: $lt_compiler_flag:'`
13936    (eval echo "\"\$as_me:13937: $lt_compile\"" >&5)
13937    (eval "$lt_compile" 2>conftest.err)
13938    ac_status=$?
13939    cat conftest.err >&5
13940    echo "$as_me:13941: \$? = $ac_status" >&5
13941    if (exit $ac_status) && test -s "$ac_outfile"; then
13942      # The compiler can only warn and ignore the option if not recognized
13943      # So say no if there are warnings other than the usual output.
13944      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13945      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13946      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13947        lt_prog_compiler_pic_works_F77=yes
13948      fi
13949    fi
13950    $rm conftest*
13951
13952 fi
13953 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13954 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13955
13956 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13957     case $lt_prog_compiler_pic_F77 in
13958      "" | " "*) ;;
13959      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13960      esac
13961 else
13962     lt_prog_compiler_pic_F77=
13963      lt_prog_compiler_can_build_shared_F77=no
13964 fi
13965
13966 fi
13967 case $host_os in
13968   # For platforms which do not support PIC, -DPIC is meaningless:
13969   *djgpp*)
13970     lt_prog_compiler_pic_F77=
13971     ;;
13972   *)
13973     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13974     ;;
13975 esac
13976
13977 #
13978 # Check to make sure the static flag actually works.
13979 #
13980 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13981 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13982 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13983 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13984   echo $ECHO_N "(cached) $ECHO_C" >&6
13985 else
13986   lt_prog_compiler_static_works_F77=no
13987    save_LDFLAGS="$LDFLAGS"
13988    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13989    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13990    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13991      # The linker can only warn and ignore the option if not recognized
13992      # So say no if there are warnings
13993      if test -s conftest.err; then
13994        # Append any errors to the config.log.
13995        cat conftest.err 1>&5
13996        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13997        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13998        if diff conftest.exp conftest.er2 >/dev/null; then
13999          lt_prog_compiler_static_works_F77=yes
14000        fi
14001      else
14002        lt_prog_compiler_static_works_F77=yes
14003      fi
14004    fi
14005    $rm conftest*
14006    LDFLAGS="$save_LDFLAGS"
14007
14008 fi
14009 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14010 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14011
14012 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14013     :
14014 else
14015     lt_prog_compiler_static_F77=
14016 fi
14017
14018
14019 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14020 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14021 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14022   echo $ECHO_N "(cached) $ECHO_C" >&6
14023 else
14024   lt_cv_prog_compiler_c_o_F77=no
14025    $rm -r conftest 2>/dev/null
14026    mkdir conftest
14027    cd conftest
14028    mkdir out
14029    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14030
14031    lt_compiler_flag="-o out/conftest2.$ac_objext"
14032    # Insert the option either (1) after the last *FLAGS variable, or
14033    # (2) before a word containing "conftest.", or (3) at the end.
14034    # Note that $ac_compile itself does not contain backslashes and begins
14035    # with a dollar sign (not a hyphen), so the echo should work correctly.
14036    lt_compile=`echo "$ac_compile" | $SED \
14037    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14038    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14039    -e 's:$: $lt_compiler_flag:'`
14040    (eval echo "\"\$as_me:14041: $lt_compile\"" >&5)
14041    (eval "$lt_compile" 2>out/conftest.err)
14042    ac_status=$?
14043    cat out/conftest.err >&5
14044    echo "$as_me:14045: \$? = $ac_status" >&5
14045    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14046    then
14047      # The compiler can only warn and ignore the option if not recognized
14048      # So say no if there are warnings
14049      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14050      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14051      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14052        lt_cv_prog_compiler_c_o_F77=yes
14053      fi
14054    fi
14055    chmod u+w . 2>&5
14056    $rm conftest*
14057    # SGI C++ compiler will create directory out/ii_files/ for
14058    # template instantiation
14059    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14060    $rm out/* && rmdir out
14061    cd ..
14062    rmdir conftest
14063    $rm conftest*
14064
14065 fi
14066 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14067 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14068
14069
14070 hard_links="nottested"
14071 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14072   # do not overwrite the value of need_locks provided by the user
14073   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14074 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14075   hard_links=yes
14076   $rm conftest*
14077   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14078   touch conftest.a
14079   ln conftest.a conftest.b 2>&5 || hard_links=no
14080   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14081   echo "$as_me:$LINENO: result: $hard_links" >&5
14082 echo "${ECHO_T}$hard_links" >&6
14083   if test "$hard_links" = no; then
14084     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14085 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14086     need_locks=warn
14087   fi
14088 else
14089   need_locks=no
14090 fi
14091
14092 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14093 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14094
14095   runpath_var=
14096   allow_undefined_flag_F77=
14097   enable_shared_with_static_runtimes_F77=no
14098   archive_cmds_F77=
14099   archive_expsym_cmds_F77=
14100   old_archive_From_new_cmds_F77=
14101   old_archive_from_expsyms_cmds_F77=
14102   export_dynamic_flag_spec_F77=
14103   whole_archive_flag_spec_F77=
14104   thread_safe_flag_spec_F77=
14105   hardcode_libdir_flag_spec_F77=
14106   hardcode_libdir_flag_spec_ld_F77=
14107   hardcode_libdir_separator_F77=
14108   hardcode_direct_F77=no
14109   hardcode_minus_L_F77=no
14110   hardcode_shlibpath_var_F77=unsupported
14111   link_all_deplibs_F77=unknown
14112   hardcode_automatic_F77=no
14113   module_cmds_F77=
14114   module_expsym_cmds_F77=
14115   always_export_symbols_F77=no
14116   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14117   # include_expsyms should be a list of space-separated symbols to be *always*
14118   # included in the symbol list
14119   include_expsyms_F77=
14120   # exclude_expsyms can be an extended regexp of symbols to exclude
14121   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14122   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14123   # as well as any symbol that contains `d'.
14124   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14125   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14126   # platforms (ab)use it in PIC code, but their linkers get confused if
14127   # the symbol is explicitly referenced.  Since portable code cannot
14128   # rely on this symbol name, it's probably fine to never include it in
14129   # preloaded symbol tables.
14130   extract_expsyms_cmds=
14131   # Just being paranoid about ensuring that cc_basename is set.
14132   for cc_temp in $compiler""; do
14133   case $cc_temp in
14134     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14135     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14136     \-*) ;;
14137     *) break;;
14138   esac
14139 done
14140 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14141
14142   case $host_os in
14143   cygwin* | mingw* | pw32*)
14144     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14145     # When not using gcc, we currently assume that we are using
14146     # Microsoft Visual C++.
14147     if test "$GCC" != yes; then
14148       with_gnu_ld=no
14149     fi
14150     ;;
14151   interix*)
14152     # we just hope/assume this is gcc and not c89 (= MSVC++)
14153     with_gnu_ld=yes
14154     ;;
14155   openbsd*)
14156     with_gnu_ld=no
14157     ;;
14158   esac
14159
14160   ld_shlibs_F77=yes
14161   if test "$with_gnu_ld" = yes; then
14162     # If archive_cmds runs LD, not CC, wlarc should be empty
14163     wlarc='${wl}'
14164
14165     # Set some defaults for GNU ld with shared library support. These
14166     # are reset later if shared libraries are not supported. Putting them
14167     # here allows them to be overridden if necessary.
14168     runpath_var=LD_RUN_PATH
14169     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14170     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14171     # ancient GNU ld didn't support --whole-archive et. al.
14172     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14173         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14174       else
14175         whole_archive_flag_spec_F77=
14176     fi
14177     supports_anon_versioning=no
14178     case `$LD -v 2>/dev/null` in
14179       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14180       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14181       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14182       *\ 2.11.*) ;; # other 2.11 versions
14183       *) supports_anon_versioning=yes ;;
14184     esac
14185
14186     # See if GNU ld supports shared libraries.
14187     case $host_os in
14188     aix3* | aix4* | aix5*)
14189       # On AIX/PPC, the GNU linker is very broken
14190       if test "$host_cpu" != ia64; then
14191         ld_shlibs_F77=no
14192         cat <<EOF 1>&2
14193
14194 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14195 *** to be unable to reliably create shared libraries on AIX.
14196 *** Therefore, libtool is disabling shared libraries support.  If you
14197 *** really care for shared libraries, you may want to modify your PATH
14198 *** so that a non-GNU linker is found, and then restart.
14199
14200 EOF
14201       fi
14202       ;;
14203
14204     amigaos*)
14205       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)'
14206       hardcode_libdir_flag_spec_F77='-L$libdir'
14207       hardcode_minus_L_F77=yes
14208
14209       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14210       # that the semantics of dynamic libraries on AmigaOS, at least up
14211       # to version 4, is to share data among multiple programs linked
14212       # with the same dynamic library.  Since this doesn't match the
14213       # behavior of shared libraries on other platforms, we can't use
14214       # them.
14215       ld_shlibs_F77=no
14216       ;;
14217
14218     beos*)
14219       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14220         allow_undefined_flag_F77=unsupported
14221         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14222         # support --undefined.  This deserves some investigation.  FIXME
14223         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14224       else
14225         ld_shlibs_F77=no
14226       fi
14227       ;;
14228
14229     cygwin* | mingw* | pw32*)
14230       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14231       # as there is no search path for DLLs.
14232       hardcode_libdir_flag_spec_F77='-L$libdir'
14233       allow_undefined_flag_F77=unsupported
14234       always_export_symbols_F77=no
14235       enable_shared_with_static_runtimes_F77=yes
14236       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14237
14238       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14239         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14240         # If the export-symbols file already is a .def file (1st line
14241         # is EXPORTS), use it as is; otherwise, prepend...
14242         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14243           cp $export_symbols $output_objdir/$soname.def;
14244         else
14245           echo EXPORTS > $output_objdir/$soname.def;
14246           cat $export_symbols >> $output_objdir/$soname.def;
14247         fi~
14248         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14249       else
14250         ld_shlibs_F77=no
14251       fi
14252       ;;
14253
14254     interix3*)
14255       hardcode_direct_F77=no
14256       hardcode_shlibpath_var_F77=no
14257       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14258       export_dynamic_flag_spec_F77='${wl}-E'
14259       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14260       # Instead, shared libraries are loaded at an image base (0x10000000 by
14261       # default) and relocated if they conflict, which is a slow very memory
14262       # consuming and fragmenting process.  To avoid this, we pick a random,
14263       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14264       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14265       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'
14266       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'
14267       ;;
14268
14269     linux*)
14270       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14271         tmp_addflag=
14272         case $cc_basename,$host_cpu in
14273         pgcc*)                          # Portland Group C compiler
14274           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'
14275           tmp_addflag=' $pic_flag'
14276           ;;
14277         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14278           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'
14279           tmp_addflag=' $pic_flag -Mnomain' ;;
14280         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14281           tmp_addflag=' -i_dynamic' ;;
14282         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14283           tmp_addflag=' -i_dynamic -nofor_main' ;;
14284         ifc* | ifort*)                  # Intel Fortran compiler
14285           tmp_addflag=' -nofor_main' ;;
14286         esac
14287         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14288
14289         if test $supports_anon_versioning = yes; then
14290           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14291   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14292   $echo "local: *; };" >> $output_objdir/$libname.ver~
14293           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14294         fi
14295         link_all_deplibs_F77=no
14296       else
14297         ld_shlibs_F77=no
14298       fi
14299       ;;
14300
14301     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14302       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14303         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14304         wlarc=
14305       else
14306         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14307         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14308       fi
14309       ;;
14310
14311     solaris*)
14312       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14313         ld_shlibs_F77=no
14314         cat <<EOF 1>&2
14315
14316 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14317 *** create shared libraries on Solaris systems.  Therefore, libtool
14318 *** is disabling shared libraries support.  We urge you to upgrade GNU
14319 *** binutils to release 2.9.1 or newer.  Another option is to modify
14320 *** your PATH or compiler configuration so that the native linker is
14321 *** used, and then restart.
14322
14323 EOF
14324       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14325         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14326         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14327       else
14328         ld_shlibs_F77=no
14329       fi
14330       ;;
14331
14332     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14333       case `$LD -v 2>&1` in
14334         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14335         ld_shlibs_F77=no
14336         cat <<_LT_EOF 1>&2
14337
14338 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14339 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14340 *** is disabling shared libraries support.  We urge you to upgrade GNU
14341 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14342 *** your PATH or compiler configuration so that the native linker is
14343 *** used, and then restart.
14344
14345 _LT_EOF
14346         ;;
14347         *)
14348           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14349             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14350             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14351             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14352           else
14353             ld_shlibs_F77=no
14354           fi
14355         ;;
14356       esac
14357       ;;
14358
14359     sunos4*)
14360       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14361       wlarc=
14362       hardcode_direct_F77=yes
14363       hardcode_shlibpath_var_F77=no
14364       ;;
14365
14366     *)
14367       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14368         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14369         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14370       else
14371         ld_shlibs_F77=no
14372       fi
14373       ;;
14374     esac
14375
14376     if test "$ld_shlibs_F77" = no; then
14377       runpath_var=
14378       hardcode_libdir_flag_spec_F77=
14379       export_dynamic_flag_spec_F77=
14380       whole_archive_flag_spec_F77=
14381     fi
14382   else
14383     # PORTME fill in a description of your system's linker (not GNU ld)
14384     case $host_os in
14385     aix3*)
14386       allow_undefined_flag_F77=unsupported
14387       always_export_symbols_F77=yes
14388       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'
14389       # Note: this linker hardcodes the directories in LIBPATH if there
14390       # are no directories specified by -L.
14391       hardcode_minus_L_F77=yes
14392       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14393         # Neither direct hardcoding nor static linking is supported with a
14394         # broken collect2.
14395         hardcode_direct_F77=unsupported
14396       fi
14397       ;;
14398
14399     aix4* | aix5*)
14400       if test "$host_cpu" = ia64; then
14401         # On IA64, the linker does run time linking by default, so we don't
14402         # have to do anything special.
14403         aix_use_runtimelinking=no
14404         exp_sym_flag='-Bexport'
14405         no_entry_flag=""
14406       else
14407         # If we're using GNU nm, then we don't want the "-C" option.
14408         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14409         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14410           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'
14411         else
14412           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'
14413         fi
14414         aix_use_runtimelinking=no
14415
14416         # Test if we are trying to use run time linking or normal
14417         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14418         # need to do runtime linking.
14419         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14420           for ld_flag in $LDFLAGS; do
14421           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14422             aix_use_runtimelinking=yes
14423             break
14424           fi
14425           done
14426           ;;
14427         esac
14428
14429         exp_sym_flag='-bexport'
14430         no_entry_flag='-bnoentry'
14431       fi
14432
14433       # When large executables or shared objects are built, AIX ld can
14434       # have problems creating the table of contents.  If linking a library
14435       # or program results in "error TOC overflow" add -mminimal-toc to
14436       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14437       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14438
14439       archive_cmds_F77=''
14440       hardcode_direct_F77=yes
14441       hardcode_libdir_separator_F77=':'
14442       link_all_deplibs_F77=yes
14443
14444       if test "$GCC" = yes; then
14445         case $host_os in aix4.[012]|aix4.[012].*)
14446         # We only want to do this on AIX 4.2 and lower, the check
14447         # below for broken collect2 doesn't work under 4.3+
14448           collect2name=`${CC} -print-prog-name=collect2`
14449           if test -f "$collect2name" && \
14450            strings "$collect2name" | grep resolve_lib_name >/dev/null
14451           then
14452           # We have reworked collect2
14453           hardcode_direct_F77=yes
14454           else
14455           # We have old collect2
14456           hardcode_direct_F77=unsupported
14457           # It fails to find uninstalled libraries when the uninstalled
14458           # path is not listed in the libpath.  Setting hardcode_minus_L
14459           # to unsupported forces relinking
14460           hardcode_minus_L_F77=yes
14461           hardcode_libdir_flag_spec_F77='-L$libdir'
14462           hardcode_libdir_separator_F77=
14463           fi
14464           ;;
14465         esac
14466         shared_flag='-shared'
14467         if test "$aix_use_runtimelinking" = yes; then
14468           shared_flag="$shared_flag "'${wl}-G'
14469         fi
14470       else
14471         # not using gcc
14472         if test "$host_cpu" = ia64; then
14473         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14474         # chokes on -Wl,-G. The following line is correct:
14475           shared_flag='-G'
14476         else
14477           if test "$aix_use_runtimelinking" = yes; then
14478             shared_flag='${wl}-G'
14479           else
14480             shared_flag='${wl}-bM:SRE'
14481           fi
14482         fi
14483       fi
14484
14485       # It seems that -bexpall does not export symbols beginning with
14486       # underscore (_), so it is better to generate a list of symbols to export.
14487       always_export_symbols_F77=yes
14488       if test "$aix_use_runtimelinking" = yes; then
14489         # Warning - without using the other runtime loading flags (-brtl),
14490         # -berok will link without error, but may produce a broken library.
14491         allow_undefined_flag_F77='-berok'
14492        # Determine the default libpath from the value encoded in an empty executable.
14493        cat >conftest.$ac_ext <<_ACEOF
14494       program main
14495
14496       end
14497 _ACEOF
14498 rm -f conftest.$ac_objext conftest$ac_exeext
14499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14500   (eval $ac_link) 2>conftest.er1
14501   ac_status=$?
14502   grep -v '^ *+' conftest.er1 >conftest.err
14503   rm -f conftest.er1
14504   cat conftest.err >&5
14505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506   (exit $ac_status); } &&
14507          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509   (eval $ac_try) 2>&5
14510   ac_status=$?
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); }; } &&
14513          { ac_try='test -s conftest$ac_exeext'
14514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515   (eval $ac_try) 2>&5
14516   ac_status=$?
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); }; }; then
14519
14520 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14521 }'`
14522 # Check for a 64-bit object if we didn't find anything.
14523 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14524 }'`; fi
14525 else
14526   echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14528
14529 fi
14530 rm -f conftest.err conftest.$ac_objext \
14531       conftest$ac_exeext conftest.$ac_ext
14532 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14533
14534        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14535         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"
14536        else
14537         if test "$host_cpu" = ia64; then
14538           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14539           allow_undefined_flag_F77="-z nodefs"
14540           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"
14541         else
14542          # Determine the default libpath from the value encoded in an empty executable.
14543          cat >conftest.$ac_ext <<_ACEOF
14544       program main
14545
14546       end
14547 _ACEOF
14548 rm -f conftest.$ac_objext conftest$ac_exeext
14549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14550   (eval $ac_link) 2>conftest.er1
14551   ac_status=$?
14552   grep -v '^ *+' conftest.er1 >conftest.err
14553   rm -f conftest.er1
14554   cat conftest.err >&5
14555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556   (exit $ac_status); } &&
14557          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559   (eval $ac_try) 2>&5
14560   ac_status=$?
14561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562   (exit $ac_status); }; } &&
14563          { ac_try='test -s conftest$ac_exeext'
14564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565   (eval $ac_try) 2>&5
14566   ac_status=$?
14567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568   (exit $ac_status); }; }; then
14569
14570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14571 }'`
14572 # Check for a 64-bit object if we didn't find anything.
14573 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14574 }'`; fi
14575 else
14576   echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14578
14579 fi
14580 rm -f conftest.err conftest.$ac_objext \
14581       conftest$ac_exeext conftest.$ac_ext
14582 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14583
14584          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14585           # Warning - without using the other run time loading flags,
14586           # -berok will link without error, but may produce a broken library.
14587           no_undefined_flag_F77=' ${wl}-bernotok'
14588           allow_undefined_flag_F77=' ${wl}-berok'
14589           # Exported symbols can be pulled into shared objects from archives
14590           whole_archive_flag_spec_F77='$convenience'
14591           archive_cmds_need_lc_F77=yes
14592           # This is similar to how AIX traditionally builds its shared libraries.
14593           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'
14594         fi
14595       fi
14596       ;;
14597
14598     amigaos*)
14599       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)'
14600       hardcode_libdir_flag_spec_F77='-L$libdir'
14601       hardcode_minus_L_F77=yes
14602       # see comment about different semantics on the GNU ld section
14603       ld_shlibs_F77=no
14604       ;;
14605
14606     bsdi[45]*)
14607       export_dynamic_flag_spec_F77=-rdynamic
14608       ;;
14609
14610     cygwin* | mingw* | pw32*)
14611       # When not using gcc, we currently assume that we are using
14612       # Microsoft Visual C++.
14613       # hardcode_libdir_flag_spec is actually meaningless, as there is
14614       # no search path for DLLs.
14615       hardcode_libdir_flag_spec_F77=' '
14616       allow_undefined_flag_F77=unsupported
14617       # Tell ltmain to make .lib files, not .a files.
14618       libext=lib
14619       # Tell ltmain to make .dll files, not .so files.
14620       shrext_cmds=".dll"
14621       # FIXME: Setting linknames here is a bad hack.
14622       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14623       # The linker will automatically build a .lib file if we build a DLL.
14624       old_archive_From_new_cmds_F77='true'
14625       # FIXME: Should let the user specify the lib program.
14626       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14627       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14628       enable_shared_with_static_runtimes_F77=yes
14629       ;;
14630
14631     darwin* | rhapsody*)
14632       case $host_os in
14633         rhapsody* | darwin1.[012])
14634          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14635          ;;
14636        *) # Darwin 1.3 on
14637          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14638            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14639          else
14640            case ${MACOSX_DEPLOYMENT_TARGET} in
14641              10.[012])
14642                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14643                ;;
14644              10.*)
14645                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14646                ;;
14647            esac
14648          fi
14649          ;;
14650       esac
14651       archive_cmds_need_lc_F77=no
14652       hardcode_direct_F77=no
14653       hardcode_automatic_F77=yes
14654       hardcode_shlibpath_var_F77=unsupported
14655       whole_archive_flag_spec_F77=''
14656       link_all_deplibs_F77=yes
14657     if test "$GCC" = yes ; then
14658         output_verbose_link_cmd='echo'
14659         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14660       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14661       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14662       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}'
14663       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}'
14664     else
14665       case $cc_basename in
14666         xlc*)
14667          output_verbose_link_cmd='echo'
14668          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14669          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14670           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14671          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14672           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}'
14673           ;;
14674        *)
14675          ld_shlibs_F77=no
14676           ;;
14677       esac
14678     fi
14679       ;;
14680
14681     dgux*)
14682       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14683       hardcode_libdir_flag_spec_F77='-L$libdir'
14684       hardcode_shlibpath_var_F77=no
14685       ;;
14686
14687     freebsd1*)
14688       ld_shlibs_F77=no
14689       ;;
14690
14691     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14692     # support.  Future versions do this automatically, but an explicit c++rt0.o
14693     # does not break anything, and helps significantly (at the cost of a little
14694     # extra space).
14695     freebsd2.2*)
14696       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14697       hardcode_libdir_flag_spec_F77='-R$libdir'
14698       hardcode_direct_F77=yes
14699       hardcode_shlibpath_var_F77=no
14700       ;;
14701
14702     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14703     freebsd2*)
14704       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14705       hardcode_direct_F77=yes
14706       hardcode_minus_L_F77=yes
14707       hardcode_shlibpath_var_F77=no
14708       ;;
14709
14710     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14711     freebsd* | dragonfly*)
14712       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14713       hardcode_libdir_flag_spec_F77='-R$libdir'
14714       hardcode_direct_F77=yes
14715       hardcode_shlibpath_var_F77=no
14716       ;;
14717
14718     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
14719     kfreebsd*-gnu)
14720       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14721       hardcode_libdir_flag_spec_F77='-R$libdir'
14722       hardcode_direct_F77=yes
14723       hardcode_shlibpath_var_F77=no
14724       link_all_deplibs_F77=no
14725       ;;
14726
14727     hpux9*)
14728       if test "$GCC" = yes; then
14729         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'
14730       else
14731         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'
14732       fi
14733       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14734       hardcode_libdir_separator_F77=:
14735       hardcode_direct_F77=yes
14736
14737       # hardcode_minus_L: Not really in the search PATH,
14738       # but as the default location of the library.
14739       hardcode_minus_L_F77=yes
14740       export_dynamic_flag_spec_F77='${wl}-E'
14741       ;;
14742
14743     hpux10*)
14744       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14745         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14746       else
14747         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14748       fi
14749       if test "$with_gnu_ld" = no; then
14750         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14751         hardcode_libdir_separator_F77=:
14752
14753         hardcode_direct_F77=yes
14754         export_dynamic_flag_spec_F77='${wl}-E'
14755
14756         # hardcode_minus_L: Not really in the search PATH,
14757         # but as the default location of the library.
14758         hardcode_minus_L_F77=yes
14759       fi
14760       ;;
14761
14762     hpux11*)
14763       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14764         case $host_cpu in
14765         hppa*64*)
14766           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14767           ;;
14768         ia64*)
14769           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14770           ;;
14771         *)
14772           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14773           ;;
14774         esac
14775       else
14776         case $host_cpu in
14777         hppa*64*)
14778           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14779           ;;
14780         ia64*)
14781           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14782           ;;
14783         *)
14784           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14785           ;;
14786         esac
14787       fi
14788       if test "$with_gnu_ld" = no; then
14789         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14790         hardcode_libdir_separator_F77=:
14791
14792         case $host_cpu in
14793         hppa*64*|ia64*)
14794           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14795           hardcode_direct_F77=no
14796           hardcode_shlibpath_var_F77=no
14797           ;;
14798         *)
14799           hardcode_direct_F77=yes
14800           export_dynamic_flag_spec_F77='${wl}-E'
14801
14802           # hardcode_minus_L: Not really in the search PATH,
14803           # but as the default location of the library.
14804           hardcode_minus_L_F77=yes
14805           ;;
14806         esac
14807       fi
14808       ;;
14809
14810     irix5* | irix6* | nonstopux*)
14811       if test "$GCC" = yes; then
14812         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'
14813       else
14814         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'
14815         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14816       fi
14817       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14818       hardcode_libdir_separator_F77=:
14819       link_all_deplibs_F77=yes
14820       ;;
14821
14822     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14823       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14824         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14825       else
14826         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14827       fi
14828       hardcode_libdir_flag_spec_F77='-R$libdir'
14829       hardcode_direct_F77=yes
14830       hardcode_shlibpath_var_F77=no
14831       ;;
14832
14833     newsos6)
14834       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14835       hardcode_direct_F77=yes
14836       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14837       hardcode_libdir_separator_F77=:
14838       hardcode_shlibpath_var_F77=no
14839       ;;
14840
14841     openbsd*)
14842       hardcode_direct_F77=yes
14843       hardcode_shlibpath_var_F77=no
14844       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14845         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14846         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14847         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14848         export_dynamic_flag_spec_F77='${wl}-E'
14849       else
14850        case $host_os in
14851          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14852            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14853            hardcode_libdir_flag_spec_F77='-R$libdir'
14854            ;;
14855          *)
14856            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14857            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14858            ;;
14859        esac
14860       fi
14861       ;;
14862
14863     os2*)
14864       hardcode_libdir_flag_spec_F77='-L$libdir'
14865       hardcode_minus_L_F77=yes
14866       allow_undefined_flag_F77=unsupported
14867       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'
14868       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14869       ;;
14870
14871     osf3*)
14872       if test "$GCC" = yes; then
14873         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14874         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'
14875       else
14876         allow_undefined_flag_F77=' -expect_unresolved \*'
14877         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'
14878       fi
14879       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14880       hardcode_libdir_separator_F77=:
14881       ;;
14882
14883     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14884       if test "$GCC" = yes; then
14885         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14886         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'
14887         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14888       else
14889         allow_undefined_flag_F77=' -expect_unresolved \*'
14890         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'
14891         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~
14892         $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'
14893
14894         # Both c and cxx compiler support -rpath directly
14895         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14896       fi
14897       hardcode_libdir_separator_F77=:
14898       ;;
14899
14900     solaris*)
14901       no_undefined_flag_F77=' -z text'
14902       if test "$GCC" = yes; then
14903         wlarc='${wl}'
14904         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14905         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14906           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14907       else
14908         wlarc=''
14909         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14910         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14911         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14912       fi
14913       hardcode_libdir_flag_spec_F77='-R$libdir'
14914       hardcode_shlibpath_var_F77=no
14915       case $host_os in
14916       solaris2.[0-5] | solaris2.[0-5].*) ;;
14917       *)
14918         # The compiler driver will combine linker options so we
14919         # cannot just pass the convience library names through
14920         # without $wl, iff we do not link with $LD.
14921         # Luckily, gcc supports the same syntax we need for Sun Studio.
14922         # Supported since Solaris 2.6 (maybe 2.5.1?)
14923         case $wlarc in
14924         '')
14925           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14926         *)
14927           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14928         esac ;;
14929       esac
14930       link_all_deplibs_F77=yes
14931       ;;
14932
14933     sunos4*)
14934       if test "x$host_vendor" = xsequent; then
14935         # Use $CC to link under sequent, because it throws in some extra .o
14936         # files that make .init and .fini sections work.
14937         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14938       else
14939         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14940       fi
14941       hardcode_libdir_flag_spec_F77='-L$libdir'
14942       hardcode_direct_F77=yes
14943       hardcode_minus_L_F77=yes
14944       hardcode_shlibpath_var_F77=no
14945       ;;
14946
14947     sysv4)
14948       case $host_vendor in
14949         sni)
14950           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14951           hardcode_direct_F77=yes # is this really true???
14952         ;;
14953         siemens)
14954           ## LD is ld it makes a PLAMLIB
14955           ## CC just makes a GrossModule.
14956           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14957           reload_cmds_F77='$CC -r -o $output$reload_objs'
14958           hardcode_direct_F77=no
14959         ;;
14960         motorola)
14961           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14962           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14963         ;;
14964       esac
14965       runpath_var='LD_RUN_PATH'
14966       hardcode_shlibpath_var_F77=no
14967       ;;
14968
14969     sysv4.3*)
14970       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14971       hardcode_shlibpath_var_F77=no
14972       export_dynamic_flag_spec_F77='-Bexport'
14973       ;;
14974
14975     sysv4*MP*)
14976       if test -d /usr/nec; then
14977         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14978         hardcode_shlibpath_var_F77=no
14979         runpath_var=LD_RUN_PATH
14980         hardcode_runpath_var=yes
14981         ld_shlibs_F77=yes
14982       fi
14983       ;;
14984
14985     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14986       no_undefined_flag_F77='${wl}-z,text'
14987       archive_cmds_need_lc_F77=no
14988       hardcode_shlibpath_var_F77=no
14989       runpath_var='LD_RUN_PATH'
14990
14991       if test "$GCC" = yes; then
14992         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14993         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14994       else
14995         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14996         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14997       fi
14998       ;;
14999
15000     sysv5* | sco3.2v5* | sco5v6*)
15001       # Note: We can NOT use -z defs as we might desire, because we do not
15002       # link with -lc, and that would cause any symbols used from libc to
15003       # always be unresolved, which means just about no library would
15004       # ever link correctly.  If we're not using GNU ld we use -z text
15005       # though, which does catch some bad symbols but isn't as heavy-handed
15006       # as -z defs.
15007       no_undefined_flag_F77='${wl}-z,text'
15008       allow_undefined_flag_F77='${wl}-z,nodefs'
15009       archive_cmds_need_lc_F77=no
15010       hardcode_shlibpath_var_F77=no
15011       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15012       hardcode_libdir_separator_F77=':'
15013       link_all_deplibs_F77=yes
15014       export_dynamic_flag_spec_F77='${wl}-Bexport'
15015       runpath_var='LD_RUN_PATH'
15016
15017       if test "$GCC" = yes; then
15018         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15019         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15020       else
15021         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15022         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15023       fi
15024       ;;
15025
15026     uts4*)
15027       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15028       hardcode_libdir_flag_spec_F77='-L$libdir'
15029       hardcode_shlibpath_var_F77=no
15030       ;;
15031
15032     *)
15033       ld_shlibs_F77=no
15034       ;;
15035     esac
15036   fi
15037
15038 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15039 echo "${ECHO_T}$ld_shlibs_F77" >&6
15040 test "$ld_shlibs_F77" = no && can_build_shared=no
15041
15042 #
15043 # Do we need to explicitly link libc?
15044 #
15045 case "x$archive_cmds_need_lc_F77" in
15046 x|xyes)
15047   # Assume -lc should be added
15048   archive_cmds_need_lc_F77=yes
15049
15050   if test "$enable_shared" = yes && test "$GCC" = yes; then
15051     case $archive_cmds_F77 in
15052     *'~'*)
15053       # FIXME: we may have to deal with multi-command sequences.
15054       ;;
15055     '$CC '*)
15056       # Test whether the compiler implicitly links with -lc since on some
15057       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15058       # to ld, don't add -lc before -lgcc.
15059       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15060 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15061       $rm conftest*
15062       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15063
15064       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15065   (eval $ac_compile) 2>&5
15066   ac_status=$?
15067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068   (exit $ac_status); } 2>conftest.err; then
15069         soname=conftest
15070         lib=conftest
15071         libobjs=conftest.$ac_objext
15072         deplibs=
15073         wl=$lt_prog_compiler_wl_F77
15074         pic_flag=$lt_prog_compiler_pic_F77
15075         compiler_flags=-v
15076         linker_flags=-v
15077         verstring=
15078         output_objdir=.
15079         libname=conftest
15080         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15081         allow_undefined_flag_F77=
15082         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15083   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15084   ac_status=$?
15085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086   (exit $ac_status); }
15087         then
15088           archive_cmds_need_lc_F77=no
15089         else
15090           archive_cmds_need_lc_F77=yes
15091         fi
15092         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15093       else
15094         cat conftest.err 1>&5
15095       fi
15096       $rm conftest*
15097       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15098 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15099       ;;
15100     esac
15101   fi
15102   ;;
15103 esac
15104
15105 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15106 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15107 library_names_spec=
15108 libname_spec='lib$name'
15109 soname_spec=
15110 shrext_cmds=".so"
15111 postinstall_cmds=
15112 postuninstall_cmds=
15113 finish_cmds=
15114 finish_eval=
15115 shlibpath_var=
15116 shlibpath_overrides_runpath=unknown
15117 version_type=none
15118 dynamic_linker="$host_os ld.so"
15119 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15120 if test "$GCC" = yes; then
15121   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15122   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15123     # if the path contains ";" then we assume it to be the separator
15124     # otherwise default to the standard path separator (i.e. ":") - it is
15125     # assumed that no part of a normal pathname contains ";" but that should
15126     # okay in the real world where ";" in dirpaths is itself problematic.
15127     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15128   else
15129     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15130   fi
15131 else
15132   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15133 fi
15134 need_lib_prefix=unknown
15135 hardcode_into_libs=no
15136
15137 # when you set need_version to no, make sure it does not cause -set_version
15138 # flags to be left without arguments
15139 need_version=unknown
15140
15141 case $host_os in
15142 aix3*)
15143   version_type=linux
15144   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15145   shlibpath_var=LIBPATH
15146
15147   # AIX 3 has no versioning support, so we append a major version to the name.
15148   soname_spec='${libname}${release}${shared_ext}$major'
15149   ;;
15150
15151 aix4* | aix5*)
15152   version_type=linux
15153   need_lib_prefix=no
15154   need_version=no
15155   hardcode_into_libs=yes
15156   if test "$host_cpu" = ia64; then
15157     # AIX 5 supports IA64
15158     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15159     shlibpath_var=LD_LIBRARY_PATH
15160   else
15161     # With GCC up to 2.95.x, collect2 would create an import file
15162     # for dependence libraries.  The import file would start with
15163     # the line `#! .'.  This would cause the generated library to
15164     # depend on `.', always an invalid library.  This was fixed in
15165     # development snapshots of GCC prior to 3.0.
15166     case $host_os in
15167       aix4 | aix4.[01] | aix4.[01].*)
15168       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15169            echo ' yes '
15170            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15171         :
15172       else
15173         can_build_shared=no
15174       fi
15175       ;;
15176     esac
15177     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15178     # soname into executable. Probably we can add versioning support to
15179     # collect2, so additional links can be useful in future.
15180     if test "$aix_use_runtimelinking" = yes; then
15181       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15182       # instead of lib<name>.a to let people know that these are not
15183       # typical AIX shared libraries.
15184       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15185     else
15186       # We preserve .a as extension for shared libraries through AIX4.2
15187       # and later when we are not doing run time linking.
15188       library_names_spec='${libname}${release}.a $libname.a'
15189       soname_spec='${libname}${release}${shared_ext}$major'
15190     fi
15191     shlibpath_var=LIBPATH
15192   fi
15193   ;;
15194
15195 amigaos*)
15196   library_names_spec='$libname.ixlibrary $libname.a'
15197   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15198   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'
15199   ;;
15200
15201 beos*)
15202   library_names_spec='${libname}${shared_ext}'
15203   dynamic_linker="$host_os ld.so"
15204   shlibpath_var=LIBRARY_PATH
15205   ;;
15206
15207 bsdi[45]*)
15208   version_type=linux
15209   need_version=no
15210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211   soname_spec='${libname}${release}${shared_ext}$major'
15212   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15213   shlibpath_var=LD_LIBRARY_PATH
15214   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15215   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15216   # the default ld.so.conf also contains /usr/contrib/lib and
15217   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15218   # libtool to hard-code these into programs
15219   ;;
15220
15221 cygwin* | mingw* | pw32*)
15222   version_type=windows
15223   shrext_cmds=".dll"
15224   need_version=no
15225   need_lib_prefix=no
15226
15227   case $GCC,$host_os in
15228   yes,cygwin* | yes,mingw* | yes,pw32*)
15229     library_names_spec='$libname.dll.a'
15230     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15231     postinstall_cmds='base_file=`basename \${file}`~
15232       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15233       dldir=$destdir/`dirname \$dlpath`~
15234       test -d \$dldir || mkdir -p \$dldir~
15235       $install_prog $dir/$dlname \$dldir/$dlname~
15236       chmod a+x \$dldir/$dlname'
15237     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15238       dlpath=$dir/\$dldll~
15239        $rm \$dlpath'
15240     shlibpath_overrides_runpath=yes
15241
15242     case $host_os in
15243     cygwin*)
15244       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15245       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15246       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15247       ;;
15248     mingw*)
15249       # MinGW DLLs use traditional 'lib' prefix
15250       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15251       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15252       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15253         # It is most probably a Windows format PATH printed by
15254         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15255         # path with ; separators, and with drive letters. We can handle the
15256         # drive letters (cygwin fileutils understands them), so leave them,
15257         # especially as we might pass files found there to a mingw objdump,
15258         # which wouldn't understand a cygwinified path. Ahh.
15259         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15260       else
15261         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15262       fi
15263       ;;
15264     pw32*)
15265       # pw32 DLLs use 'pw' prefix rather than 'lib'
15266       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15267       ;;
15268     esac
15269     ;;
15270
15271   *)
15272     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15273     ;;
15274   esac
15275   dynamic_linker='Win32 ld.exe'
15276   # FIXME: first we should search . and the directory the executable is in
15277   shlibpath_var=PATH
15278   ;;
15279
15280 darwin* | rhapsody*)
15281   dynamic_linker="$host_os dyld"
15282   version_type=darwin
15283   need_lib_prefix=no
15284   need_version=no
15285   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15286   soname_spec='${libname}${release}${major}$shared_ext'
15287   shlibpath_overrides_runpath=yes
15288   shlibpath_var=DYLD_LIBRARY_PATH
15289   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15290   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15291   if test "$GCC" = yes; then
15292     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15293   else
15294     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15295   fi
15296   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15297   ;;
15298
15299 dgux*)
15300   version_type=linux
15301   need_lib_prefix=no
15302   need_version=no
15303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15304   soname_spec='${libname}${release}${shared_ext}$major'
15305   shlibpath_var=LD_LIBRARY_PATH
15306   ;;
15307
15308 freebsd1*)
15309   dynamic_linker=no
15310   ;;
15311
15312 kfreebsd*-gnu)
15313   version_type=linux
15314   need_lib_prefix=no
15315   need_version=no
15316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15317   soname_spec='${libname}${release}${shared_ext}$major'
15318   shlibpath_var=LD_LIBRARY_PATH
15319   shlibpath_overrides_runpath=no
15320   hardcode_into_libs=yes
15321   dynamic_linker='GNU ld.so'
15322   ;;
15323
15324 freebsd* | dragonfly*)
15325   # DragonFly does not have aout.  When/if they implement a new
15326   # versioning mechanism, adjust this.
15327   if test -x /usr/bin/objformat; then
15328     objformat=`/usr/bin/objformat`
15329   else
15330     case $host_os in
15331     freebsd[123]*) objformat=aout ;;
15332     *) objformat=elf ;;
15333     esac
15334   fi
15335   version_type=freebsd-$objformat
15336   case $version_type in
15337     freebsd-elf*)
15338       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15339       need_version=no
15340       need_lib_prefix=no
15341       ;;
15342     freebsd-*)
15343       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15344       need_version=yes
15345       ;;
15346   esac
15347   shlibpath_var=LD_LIBRARY_PATH
15348   case $host_os in
15349   freebsd2*)
15350     shlibpath_overrides_runpath=yes
15351     ;;
15352   freebsd3.[01]* | freebsdelf3.[01]*)
15353     shlibpath_overrides_runpath=yes
15354     hardcode_into_libs=yes
15355     ;;
15356   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15357   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15358     shlibpath_overrides_runpath=no
15359     hardcode_into_libs=yes
15360     ;;
15361   freebsd*) # from 4.6 on
15362     shlibpath_overrides_runpath=yes
15363     hardcode_into_libs=yes
15364     ;;
15365   esac
15366   ;;
15367
15368 gnu*)
15369   version_type=linux
15370   need_lib_prefix=no
15371   need_version=no
15372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15373   soname_spec='${libname}${release}${shared_ext}$major'
15374   shlibpath_var=LD_LIBRARY_PATH
15375   hardcode_into_libs=yes
15376   ;;
15377
15378 hpux9* | hpux10* | hpux11*)
15379   # Give a soname corresponding to the major version so that dld.sl refuses to
15380   # link against other versions.
15381   version_type=sunos
15382   need_lib_prefix=no
15383   need_version=no
15384   case $host_cpu in
15385   ia64*)
15386     shrext_cmds='.so'
15387     hardcode_into_libs=yes
15388     dynamic_linker="$host_os dld.so"
15389     shlibpath_var=LD_LIBRARY_PATH
15390     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15391     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392     soname_spec='${libname}${release}${shared_ext}$major'
15393     if test "X$HPUX_IA64_MODE" = X32; then
15394       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15395     else
15396       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15397     fi
15398     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15399     ;;
15400    hppa*64*)
15401      shrext_cmds='.sl'
15402      hardcode_into_libs=yes
15403      dynamic_linker="$host_os dld.sl"
15404      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15405      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15406      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407      soname_spec='${libname}${release}${shared_ext}$major'
15408      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15409      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15410      ;;
15411    *)
15412     shrext_cmds='.sl'
15413     dynamic_linker="$host_os dld.sl"
15414     shlibpath_var=SHLIB_PATH
15415     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15416     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15417     soname_spec='${libname}${release}${shared_ext}$major'
15418     ;;
15419   esac
15420   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15421   postinstall_cmds='chmod 555 $lib'
15422   ;;
15423
15424 interix3*)
15425   version_type=linux
15426   need_lib_prefix=no
15427   need_version=no
15428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15429   soname_spec='${libname}${release}${shared_ext}$major'
15430   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15431   shlibpath_var=LD_LIBRARY_PATH
15432   shlibpath_overrides_runpath=no
15433   hardcode_into_libs=yes
15434   ;;
15435
15436 irix5* | irix6* | nonstopux*)
15437   case $host_os in
15438     nonstopux*) version_type=nonstopux ;;
15439     *)
15440         if test "$lt_cv_prog_gnu_ld" = yes; then
15441                 version_type=linux
15442         else
15443                 version_type=irix
15444         fi ;;
15445   esac
15446   need_lib_prefix=no
15447   need_version=no
15448   soname_spec='${libname}${release}${shared_ext}$major'
15449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15450   case $host_os in
15451   irix5* | nonstopux*)
15452     libsuff= shlibsuff=
15453     ;;
15454   *)
15455     case $LD in # libtool.m4 will add one of these switches to LD
15456     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15457       libsuff= shlibsuff= libmagic=32-bit;;
15458     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15459       libsuff=32 shlibsuff=N32 libmagic=N32;;
15460     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15461       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15462     *) libsuff= shlibsuff= libmagic=never-match;;
15463     esac
15464     ;;
15465   esac
15466   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15467   shlibpath_overrides_runpath=no
15468   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15469   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15470   hardcode_into_libs=yes
15471   ;;
15472
15473 # No shared lib support for Linux oldld, aout, or coff.
15474 linux*oldld* | linux*aout* | linux*coff*)
15475   dynamic_linker=no
15476   ;;
15477
15478 # This must be Linux ELF.
15479 linux*)
15480   version_type=linux
15481   need_lib_prefix=no
15482   need_version=no
15483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484   soname_spec='${libname}${release}${shared_ext}$major'
15485   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15486   shlibpath_var=LD_LIBRARY_PATH
15487   shlibpath_overrides_runpath=no
15488   # This implies no fast_install, which is unacceptable.
15489   # Some rework will be needed to allow for fast_install
15490   # before this can be enabled.
15491   hardcode_into_libs=yes
15492
15493   # Append ld.so.conf contents to the search path
15494   if test -f /etc/ld.so.conf; then
15495     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15496     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15497   fi
15498
15499   # We used to test for /lib/ld.so.1 and disable shared libraries on
15500   # powerpc, because MkLinux only supported shared libraries with the
15501   # GNU dynamic linker.  Since this was broken with cross compilers,
15502   # most powerpc-linux boxes support dynamic linking these days and
15503   # people can always --disable-shared, the test was removed, and we
15504   # assume the GNU/Linux dynamic linker is in use.
15505   dynamic_linker='GNU/Linux ld.so'
15506   ;;
15507
15508 netbsdelf*-gnu)
15509   version_type=linux
15510   need_lib_prefix=no
15511   need_version=no
15512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15513   soname_spec='${libname}${release}${shared_ext}$major'
15514   shlibpath_var=LD_LIBRARY_PATH
15515   shlibpath_overrides_runpath=no
15516   hardcode_into_libs=yes
15517   dynamic_linker='NetBSD ld.elf_so'
15518   ;;
15519
15520 knetbsd*-gnu)
15521   version_type=linux
15522   need_lib_prefix=no
15523   need_version=no
15524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15525   soname_spec='${libname}${release}${shared_ext}$major'
15526   shlibpath_var=LD_LIBRARY_PATH
15527   shlibpath_overrides_runpath=no
15528   hardcode_into_libs=yes
15529   dynamic_linker='GNU ld.so'
15530   ;;
15531
15532 netbsd*)
15533   version_type=sunos
15534   need_lib_prefix=no
15535   need_version=no
15536   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15537     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15538     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15539     dynamic_linker='NetBSD (a.out) ld.so'
15540   else
15541     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15542     soname_spec='${libname}${release}${shared_ext}$major'
15543     dynamic_linker='NetBSD ld.elf_so'
15544   fi
15545   shlibpath_var=LD_LIBRARY_PATH
15546   shlibpath_overrides_runpath=yes
15547   hardcode_into_libs=yes
15548   ;;
15549
15550 newsos6)
15551   version_type=linux
15552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15553   shlibpath_var=LD_LIBRARY_PATH
15554   shlibpath_overrides_runpath=yes
15555   ;;
15556
15557 nto-qnx*)
15558   version_type=linux
15559   need_lib_prefix=no
15560   need_version=no
15561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15562   soname_spec='${libname}${release}${shared_ext}$major'
15563   shlibpath_var=LD_LIBRARY_PATH
15564   shlibpath_overrides_runpath=yes
15565   ;;
15566
15567 openbsd*)
15568   version_type=sunos
15569   sys_lib_dlsearch_path_spec="/usr/lib"
15570   need_lib_prefix=no
15571   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15572   case $host_os in
15573     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15574     *)                         need_version=no  ;;
15575   esac
15576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15577   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15578   shlibpath_var=LD_LIBRARY_PATH
15579   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15580     case $host_os in
15581       openbsd2.[89] | openbsd2.[89].*)
15582         shlibpath_overrides_runpath=no
15583         ;;
15584       *)
15585         shlibpath_overrides_runpath=yes
15586         ;;
15587       esac
15588   else
15589     shlibpath_overrides_runpath=yes
15590   fi
15591   ;;
15592
15593 os2*)
15594   libname_spec='$name'
15595   shrext_cmds=".dll"
15596   need_lib_prefix=no
15597   library_names_spec='$libname${shared_ext} $libname.a'
15598   dynamic_linker='OS/2 ld.exe'
15599   shlibpath_var=LIBPATH
15600   ;;
15601
15602 osf3* | osf4* | osf5*)
15603   version_type=osf
15604   need_lib_prefix=no
15605   need_version=no
15606   soname_spec='${libname}${release}${shared_ext}$major'
15607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15608   shlibpath_var=LD_LIBRARY_PATH
15609   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15610   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15611   ;;
15612
15613 solaris*)
15614   version_type=linux
15615   need_lib_prefix=no
15616   need_version=no
15617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618   soname_spec='${libname}${release}${shared_ext}$major'
15619   shlibpath_var=LD_LIBRARY_PATH
15620   shlibpath_overrides_runpath=yes
15621   hardcode_into_libs=yes
15622   # ldd complains unless libraries are executable
15623   postinstall_cmds='chmod +x $lib'
15624   ;;
15625
15626 sunos4*)
15627   version_type=sunos
15628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15629   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15630   shlibpath_var=LD_LIBRARY_PATH
15631   shlibpath_overrides_runpath=yes
15632   if test "$with_gnu_ld" = yes; then
15633     need_lib_prefix=no
15634   fi
15635   need_version=yes
15636   ;;
15637
15638 sysv4 | sysv4.3*)
15639   version_type=linux
15640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15641   soname_spec='${libname}${release}${shared_ext}$major'
15642   shlibpath_var=LD_LIBRARY_PATH
15643   case $host_vendor in
15644     sni)
15645       shlibpath_overrides_runpath=no
15646       need_lib_prefix=no
15647       export_dynamic_flag_spec='${wl}-Blargedynsym'
15648       runpath_var=LD_RUN_PATH
15649       ;;
15650     siemens)
15651       need_lib_prefix=no
15652       ;;
15653     motorola)
15654       need_lib_prefix=no
15655       need_version=no
15656       shlibpath_overrides_runpath=no
15657       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15658       ;;
15659   esac
15660   ;;
15661
15662 sysv4*MP*)
15663   if test -d /usr/nec ;then
15664     version_type=linux
15665     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15666     soname_spec='$libname${shared_ext}.$major'
15667     shlibpath_var=LD_LIBRARY_PATH
15668   fi
15669   ;;
15670
15671 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15672   version_type=freebsd-elf
15673   need_lib_prefix=no
15674   need_version=no
15675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15676   soname_spec='${libname}${release}${shared_ext}$major'
15677   shlibpath_var=LD_LIBRARY_PATH
15678   hardcode_into_libs=yes
15679   if test "$with_gnu_ld" = yes; then
15680     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15681     shlibpath_overrides_runpath=no
15682   else
15683     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15684     shlibpath_overrides_runpath=yes
15685     case $host_os in
15686       sco3.2v5*)
15687         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15688         ;;
15689     esac
15690   fi
15691   sys_lib_dlsearch_path_spec='/usr/lib'
15692   ;;
15693
15694 uts4*)
15695   version_type=linux
15696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697   soname_spec='${libname}${release}${shared_ext}$major'
15698   shlibpath_var=LD_LIBRARY_PATH
15699   ;;
15700
15701 *)
15702   dynamic_linker=no
15703   ;;
15704 esac
15705 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15706 echo "${ECHO_T}$dynamic_linker" >&6
15707 test "$dynamic_linker" = no && can_build_shared=no
15708
15709 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15710 if test "$GCC" = yes; then
15711   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15712 fi
15713
15714 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15715 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15716 hardcode_action_F77=
15717 if test -n "$hardcode_libdir_flag_spec_F77" || \
15718    test -n "$runpath_var_F77" || \
15719    test "X$hardcode_automatic_F77" = "Xyes" ; then
15720
15721   # We can hardcode non-existant directories.
15722   if test "$hardcode_direct_F77" != no &&
15723      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15724      # have to relink, otherwise we might link with an installed library
15725      # when we should be linking with a yet-to-be-installed one
15726      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15727      test "$hardcode_minus_L_F77" != no; then
15728     # Linking always hardcodes the temporary library directory.
15729     hardcode_action_F77=relink
15730   else
15731     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15732     hardcode_action_F77=immediate
15733   fi
15734 else
15735   # We cannot hardcode anything, or else we can only hardcode existing
15736   # directories.
15737   hardcode_action_F77=unsupported
15738 fi
15739 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15740 echo "${ECHO_T}$hardcode_action_F77" >&6
15741
15742 if test "$hardcode_action_F77" = relink; then
15743   # Fast installation is not supported
15744   enable_fast_install=no
15745 elif test "$shlibpath_overrides_runpath" = yes ||
15746      test "$enable_shared" = no; then
15747   # Fast installation is not necessary
15748   enable_fast_install=needless
15749 fi
15750
15751
15752 # The else clause should only fire when bootstrapping the
15753 # libtool distribution, otherwise you forgot to ship ltmain.sh
15754 # with your package, and you will get complaints that there are
15755 # no rules to generate ltmain.sh.
15756 if test -f "$ltmain"; then
15757   # See if we are running on zsh, and set the options which allow our commands through
15758   # without removal of \ escapes.
15759   if test -n "${ZSH_VERSION+set}" ; then
15760     setopt NO_GLOB_SUBST
15761   fi
15762   # Now quote all the things that may contain metacharacters while being
15763   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15764   # variables and quote the copies for generation of the libtool script.
15765   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15766     SED SHELL STRIP \
15767     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15768     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15769     deplibs_check_method reload_flag reload_cmds need_locks \
15770     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15771     lt_cv_sys_global_symbol_to_c_name_address \
15772     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15773     old_postinstall_cmds old_postuninstall_cmds \
15774     compiler_F77 \
15775     CC_F77 \
15776     LD_F77 \
15777     lt_prog_compiler_wl_F77 \
15778     lt_prog_compiler_pic_F77 \
15779     lt_prog_compiler_static_F77 \
15780     lt_prog_compiler_no_builtin_flag_F77 \
15781     export_dynamic_flag_spec_F77 \
15782     thread_safe_flag_spec_F77 \
15783     whole_archive_flag_spec_F77 \
15784     enable_shared_with_static_runtimes_F77 \
15785     old_archive_cmds_F77 \
15786     old_archive_from_new_cmds_F77 \
15787     predep_objects_F77 \
15788     postdep_objects_F77 \
15789     predeps_F77 \
15790     postdeps_F77 \
15791     compiler_lib_search_path_F77 \
15792     archive_cmds_F77 \
15793     archive_expsym_cmds_F77 \
15794     postinstall_cmds_F77 \
15795     postuninstall_cmds_F77 \
15796     old_archive_from_expsyms_cmds_F77 \
15797     allow_undefined_flag_F77 \
15798     no_undefined_flag_F77 \
15799     export_symbols_cmds_F77 \
15800     hardcode_libdir_flag_spec_F77 \
15801     hardcode_libdir_flag_spec_ld_F77 \
15802     hardcode_libdir_separator_F77 \
15803     hardcode_automatic_F77 \
15804     module_cmds_F77 \
15805     module_expsym_cmds_F77 \
15806     lt_cv_prog_compiler_c_o_F77 \
15807     exclude_expsyms_F77 \
15808     include_expsyms_F77; do
15809
15810     case $var in
15811     old_archive_cmds_F77 | \
15812     old_archive_from_new_cmds_F77 | \
15813     archive_cmds_F77 | \
15814     archive_expsym_cmds_F77 | \
15815     module_cmds_F77 | \
15816     module_expsym_cmds_F77 | \
15817     old_archive_from_expsyms_cmds_F77 | \
15818     export_symbols_cmds_F77 | \
15819     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15820     postinstall_cmds | postuninstall_cmds | \
15821     old_postinstall_cmds | old_postuninstall_cmds | \
15822     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15823       # Double-quote double-evaled strings.
15824       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15825       ;;
15826     *)
15827       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15828       ;;
15829     esac
15830   done
15831
15832   case $lt_echo in
15833   *'\$0 --fallback-echo"')
15834     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15835     ;;
15836   esac
15837
15838 cfgfile="$ofile"
15839
15840   cat <<__EOF__ >> "$cfgfile"
15841 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15842
15843 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15844
15845 # Shell to use when invoking shell scripts.
15846 SHELL=$lt_SHELL
15847
15848 # Whether or not to build shared libraries.
15849 build_libtool_libs=$enable_shared
15850
15851 # Whether or not to build static libraries.
15852 build_old_libs=$enable_static
15853
15854 # Whether or not to add -lc for building shared libraries.
15855 build_libtool_need_lc=$archive_cmds_need_lc_F77
15856
15857 # Whether or not to disallow shared libs when runtime libs are static
15858 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15859
15860 # Whether or not to optimize for fast installation.
15861 fast_install=$enable_fast_install
15862
15863 # The host system.
15864 host_alias=$host_alias
15865 host=$host
15866 host_os=$host_os
15867
15868 # The build system.
15869 build_alias=$build_alias
15870 build=$build
15871 build_os=$build_os
15872
15873 # An echo program that does not interpret backslashes.
15874 echo=$lt_echo
15875
15876 # The archiver.
15877 AR=$lt_AR
15878 AR_FLAGS=$lt_AR_FLAGS
15879
15880 # A C compiler.
15881 LTCC=$lt_LTCC
15882
15883 # LTCC compiler flags.
15884 LTCFLAGS=$lt_LTCFLAGS
15885
15886 # A language-specific compiler.
15887 CC=$lt_compiler_F77
15888
15889 # Is the compiler the GNU C compiler?
15890 with_gcc=$GCC_F77
15891
15892 # An ERE matcher.
15893 EGREP=$lt_EGREP
15894
15895 # The linker used to build libraries.
15896 LD=$lt_LD_F77
15897
15898 # Whether we need hard or soft links.
15899 LN_S=$lt_LN_S
15900
15901 # A BSD-compatible nm program.
15902 NM=$lt_NM
15903
15904 # A symbol stripping program
15905 STRIP=$lt_STRIP
15906
15907 # Used to examine libraries when file_magic_cmd begins "file"
15908 MAGIC_CMD=$MAGIC_CMD
15909
15910 # Used on cygwin: DLL creation program.
15911 DLLTOOL="$DLLTOOL"
15912
15913 # Used on cygwin: object dumper.
15914 OBJDUMP="$OBJDUMP"
15915
15916 # Used on cygwin: assembler.
15917 AS="$AS"
15918
15919 # The name of the directory that contains temporary libtool files.
15920 objdir=$objdir
15921
15922 # How to create reloadable object files.
15923 reload_flag=$lt_reload_flag
15924 reload_cmds=$lt_reload_cmds
15925
15926 # How to pass a linker flag through the compiler.
15927 wl=$lt_lt_prog_compiler_wl_F77
15928
15929 # Object file suffix (normally "o").
15930 objext="$ac_objext"
15931
15932 # Old archive suffix (normally "a").
15933 libext="$libext"
15934
15935 # Shared library suffix (normally ".so").
15936 shrext_cmds='$shrext_cmds'
15937
15938 # Executable file suffix (normally "").
15939 exeext="$exeext"
15940
15941 # Additional compiler flags for building library objects.
15942 pic_flag=$lt_lt_prog_compiler_pic_F77
15943 pic_mode=$pic_mode
15944
15945 # What is the maximum length of a command?
15946 max_cmd_len=$lt_cv_sys_max_cmd_len
15947
15948 # Does compiler simultaneously support -c and -o options?
15949 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15950
15951 # Must we lock files when doing compilation?
15952 need_locks=$lt_need_locks
15953
15954 # Do we need the lib prefix for modules?
15955 need_lib_prefix=$need_lib_prefix
15956
15957 # Do we need a version for libraries?
15958 need_version=$need_version
15959
15960 # Whether dlopen is supported.
15961 dlopen_support=$enable_dlopen
15962
15963 # Whether dlopen of programs is supported.
15964 dlopen_self=$enable_dlopen_self
15965
15966 # Whether dlopen of statically linked programs is supported.
15967 dlopen_self_static=$enable_dlopen_self_static
15968
15969 # Compiler flag to prevent dynamic linking.
15970 link_static_flag=$lt_lt_prog_compiler_static_F77
15971
15972 # Compiler flag to turn off builtin functions.
15973 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15974
15975 # Compiler flag to allow reflexive dlopens.
15976 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15977
15978 # Compiler flag to generate shared objects directly from archives.
15979 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15980
15981 # Compiler flag to generate thread-safe objects.
15982 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15983
15984 # Library versioning type.
15985 version_type=$version_type
15986
15987 # Format of library name prefix.
15988 libname_spec=$lt_libname_spec
15989
15990 # List of archive names.  First name is the real one, the rest are links.
15991 # The last name is the one that the linker finds with -lNAME.
15992 library_names_spec=$lt_library_names_spec
15993
15994 # The coded name of the library, if different from the real name.
15995 soname_spec=$lt_soname_spec
15996
15997 # Commands used to build and install an old-style archive.
15998 RANLIB=$lt_RANLIB
15999 old_archive_cmds=$lt_old_archive_cmds_F77
16000 old_postinstall_cmds=$lt_old_postinstall_cmds
16001 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16002
16003 # Create an old-style archive from a shared archive.
16004 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16005
16006 # Create a temporary old-style archive to link instead of a shared archive.
16007 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16008
16009 # Commands used to build and install a shared archive.
16010 archive_cmds=$lt_archive_cmds_F77
16011 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16012 postinstall_cmds=$lt_postinstall_cmds
16013 postuninstall_cmds=$lt_postuninstall_cmds
16014
16015 # Commands used to build a loadable module (assumed same as above if empty)
16016 module_cmds=$lt_module_cmds_F77
16017 module_expsym_cmds=$lt_module_expsym_cmds_F77
16018
16019 # Commands to strip libraries.
16020 old_striplib=$lt_old_striplib
16021 striplib=$lt_striplib
16022
16023 # Dependencies to place before the objects being linked to create a
16024 # shared library.
16025 predep_objects=$lt_predep_objects_F77
16026
16027 # Dependencies to place after the objects being linked to create a
16028 # shared library.
16029 postdep_objects=$lt_postdep_objects_F77
16030
16031 # Dependencies to place before the objects being linked to create a
16032 # shared library.
16033 predeps=$lt_predeps_F77
16034
16035 # Dependencies to place after the objects being linked to create a
16036 # shared library.
16037 postdeps=$lt_postdeps_F77
16038
16039 # The library search path used internally by the compiler when linking
16040 # a shared library.
16041 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16042
16043 # Method to check whether dependent libraries are shared objects.
16044 deplibs_check_method=$lt_deplibs_check_method
16045
16046 # Command to use when deplibs_check_method == file_magic.
16047 file_magic_cmd=$lt_file_magic_cmd
16048
16049 # Flag that allows shared libraries with undefined symbols to be built.
16050 allow_undefined_flag=$lt_allow_undefined_flag_F77
16051
16052 # Flag that forces no undefined symbols.
16053 no_undefined_flag=$lt_no_undefined_flag_F77
16054
16055 # Commands used to finish a libtool library installation in a directory.
16056 finish_cmds=$lt_finish_cmds
16057
16058 # Same as above, but a single script fragment to be evaled but not shown.
16059 finish_eval=$lt_finish_eval
16060
16061 # Take the output of nm and produce a listing of raw symbols and C names.
16062 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16063
16064 # Transform the output of nm in a proper C declaration
16065 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16066
16067 # Transform the output of nm in a C name address pair
16068 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16069
16070 # This is the shared library runtime path variable.
16071 runpath_var=$runpath_var
16072
16073 # This is the shared library path variable.
16074 shlibpath_var=$shlibpath_var
16075
16076 # Is shlibpath searched before the hard-coded library search path?
16077 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16078
16079 # How to hardcode a shared library path into an executable.
16080 hardcode_action=$hardcode_action_F77
16081
16082 # Whether we should hardcode library paths into libraries.
16083 hardcode_into_libs=$hardcode_into_libs
16084
16085 # Flag to hardcode \$libdir into a binary during linking.
16086 # This must work even if \$libdir does not exist.
16087 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16088
16089 # If ld is used when linking, flag to hardcode \$libdir into
16090 # a binary during linking. This must work even if \$libdir does
16091 # not exist.
16092 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16093
16094 # Whether we need a single -rpath flag with a separated argument.
16095 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16096
16097 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16098 # resulting binary.
16099 hardcode_direct=$hardcode_direct_F77
16100
16101 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16102 # resulting binary.
16103 hardcode_minus_L=$hardcode_minus_L_F77
16104
16105 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16106 # the resulting binary.
16107 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16108
16109 # Set to yes if building a shared library automatically hardcodes DIR into the library
16110 # and all subsequent libraries and executables linked against it.
16111 hardcode_automatic=$hardcode_automatic_F77
16112
16113 # Variables whose values should be saved in libtool wrapper scripts and
16114 # restored at relink time.
16115 variables_saved_for_relink="$variables_saved_for_relink"
16116
16117 # Whether libtool must link a program against all its dependency libraries.
16118 link_all_deplibs=$link_all_deplibs_F77
16119
16120 # Compile-time system search path for libraries
16121 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16122
16123 # Run-time system search path for libraries
16124 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16125
16126 # Fix the shell variable \$srcfile for the compiler.
16127 fix_srcfile_path="$fix_srcfile_path_F77"
16128
16129 # Set to yes if exported symbols are required.
16130 always_export_symbols=$always_export_symbols_F77
16131
16132 # The commands to list exported symbols.
16133 export_symbols_cmds=$lt_export_symbols_cmds_F77
16134
16135 # The commands to extract the exported symbol list from a shared archive.
16136 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16137
16138 # Symbols that should not be listed in the preloaded symbols.
16139 exclude_expsyms=$lt_exclude_expsyms_F77
16140
16141 # Symbols that must always be exported.
16142 include_expsyms=$lt_include_expsyms_F77
16143
16144 # ### END LIBTOOL TAG CONFIG: $tagname
16145
16146 __EOF__
16147
16148
16149 else
16150   # If there is no Makefile yet, we rely on a make rule to execute
16151   # `config.status --recheck' to rerun these tests and create the
16152   # libtool script then.
16153   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16154   if test -f "$ltmain_in"; then
16155     test -f Makefile && make "$ltmain"
16156   fi
16157 fi
16158
16159
16160 ac_ext=c
16161 ac_cpp='$CPP $CPPFLAGS'
16162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16165
16166 CC="$lt_save_CC"
16167
16168         else
16169           tagname=""
16170         fi
16171         ;;
16172
16173       GCJ)
16174         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16175
16176
16177
16178 # Source file extension for Java test sources.
16179 ac_ext=java
16180
16181 # Object file extension for compiled Java test sources.
16182 objext=o
16183 objext_GCJ=$objext
16184
16185 # Code to be used in simple compile tests
16186 lt_simple_compile_test_code="class foo {}\n"
16187
16188 # Code to be used in simple link tests
16189 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16190
16191 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16192
16193 # If no C compiler was specified, use CC.
16194 LTCC=${LTCC-"$CC"}
16195
16196 # If no C compiler flags were specified, use CFLAGS.
16197 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16198
16199 # Allow CC to be a program name with arguments.
16200 compiler=$CC
16201
16202
16203 # save warnings/boilerplate of simple test code
16204 ac_outfile=conftest.$ac_objext
16205 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16206 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16207 _lt_compiler_boilerplate=`cat conftest.err`
16208 $rm conftest*
16209
16210 ac_outfile=conftest.$ac_objext
16211 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16212 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16213 _lt_linker_boilerplate=`cat conftest.err`
16214 $rm conftest*
16215
16216
16217 # Allow CC to be a program name with arguments.
16218 lt_save_CC="$CC"
16219 CC=${GCJ-"gcj"}
16220 compiler=$CC
16221 compiler_GCJ=$CC
16222 for cc_temp in $compiler""; do
16223   case $cc_temp in
16224     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16225     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16226     \-*) ;;
16227     *) break;;
16228   esac
16229 done
16230 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16231
16232
16233 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16234 archive_cmds_need_lc_GCJ=no
16235
16236 old_archive_cmds_GCJ=$old_archive_cmds
16237
16238
16239 lt_prog_compiler_no_builtin_flag_GCJ=
16240
16241 if test "$GCC" = yes; then
16242   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16243
16244
16245 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16246 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16247 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16248   echo $ECHO_N "(cached) $ECHO_C" >&6
16249 else
16250   lt_cv_prog_compiler_rtti_exceptions=no
16251   ac_outfile=conftest.$ac_objext
16252    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16253    lt_compiler_flag="-fno-rtti -fno-exceptions"
16254    # Insert the option either (1) after the last *FLAGS variable, or
16255    # (2) before a word containing "conftest.", or (3) at the end.
16256    # Note that $ac_compile itself does not contain backslashes and begins
16257    # with a dollar sign (not a hyphen), so the echo should work correctly.
16258    # The option is referenced via a variable to avoid confusing sed.
16259    lt_compile=`echo "$ac_compile" | $SED \
16260    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16261    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16262    -e 's:$: $lt_compiler_flag:'`
16263    (eval echo "\"\$as_me:16264: $lt_compile\"" >&5)
16264    (eval "$lt_compile" 2>conftest.err)
16265    ac_status=$?
16266    cat conftest.err >&5
16267    echo "$as_me:16268: \$? = $ac_status" >&5
16268    if (exit $ac_status) && test -s "$ac_outfile"; then
16269      # The compiler can only warn and ignore the option if not recognized
16270      # So say no if there are warnings other than the usual output.
16271      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16272      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16273      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16274        lt_cv_prog_compiler_rtti_exceptions=yes
16275      fi
16276    fi
16277    $rm conftest*
16278
16279 fi
16280 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16281 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16282
16283 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16284     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16285 else
16286     :
16287 fi
16288
16289 fi
16290
16291 lt_prog_compiler_wl_GCJ=
16292 lt_prog_compiler_pic_GCJ=
16293 lt_prog_compiler_static_GCJ=
16294
16295 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16296 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16297
16298   if test "$GCC" = yes; then
16299     lt_prog_compiler_wl_GCJ='-Wl,'
16300     lt_prog_compiler_static_GCJ='-static'
16301
16302     case $host_os in
16303       aix*)
16304       # All AIX code is PIC.
16305       if test "$host_cpu" = ia64; then
16306         # AIX 5 now supports IA64 processor
16307         lt_prog_compiler_static_GCJ='-Bstatic'
16308       fi
16309       ;;
16310
16311     amigaos*)
16312       # FIXME: we need at least 68020 code to build shared libraries, but
16313       # adding the `-m68020' flag to GCC prevents building anything better,
16314       # like `-m68040'.
16315       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16316       ;;
16317
16318     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16319       # PIC is the default for these OSes.
16320       ;;
16321
16322     mingw* | pw32* | os2*)
16323       # This hack is so that the source file can tell whether it is being
16324       # built for inclusion in a dll (and should export symbols for example).
16325       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16326       ;;
16327
16328     darwin* | rhapsody*)
16329       # PIC is the default on this platform
16330       # Common symbols not allowed in MH_DYLIB files
16331       lt_prog_compiler_pic_GCJ='-fno-common'
16332       ;;
16333
16334     interix3*)
16335       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16336       # Instead, we relocate shared libraries at runtime.
16337       ;;
16338
16339     msdosdjgpp*)
16340       # Just because we use GCC doesn't mean we suddenly get shared libraries
16341       # on systems that don't support them.
16342       lt_prog_compiler_can_build_shared_GCJ=no
16343       enable_shared=no
16344       ;;
16345
16346     sysv4*MP*)
16347       if test -d /usr/nec; then
16348         lt_prog_compiler_pic_GCJ=-Kconform_pic
16349       fi
16350       ;;
16351
16352     hpux*)
16353       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16354       # not for PA HP-UX.
16355       case $host_cpu in
16356       hppa*64*|ia64*)
16357         # +Z the default
16358         ;;
16359       *)
16360         lt_prog_compiler_pic_GCJ='-fPIC'
16361         ;;
16362       esac
16363       ;;
16364
16365     *)
16366       lt_prog_compiler_pic_GCJ='-fPIC'
16367       ;;
16368     esac
16369   else
16370     # PORTME Check for flag to pass linker flags through the system compiler.
16371     case $host_os in
16372     aix*)
16373       lt_prog_compiler_wl_GCJ='-Wl,'
16374       if test "$host_cpu" = ia64; then
16375         # AIX 5 now supports IA64 processor
16376         lt_prog_compiler_static_GCJ='-Bstatic'
16377       else
16378         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16379       fi
16380       ;;
16381       darwin*)
16382         # PIC is the default on this platform
16383         # Common symbols not allowed in MH_DYLIB files
16384        case $cc_basename in
16385          xlc*)
16386          lt_prog_compiler_pic_GCJ='-qnocommon'
16387          lt_prog_compiler_wl_GCJ='-Wl,'
16388          ;;
16389        esac
16390        ;;
16391
16392     mingw* | pw32* | os2*)
16393       # This hack is so that the source file can tell whether it is being
16394       # built for inclusion in a dll (and should export symbols for example).
16395       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16396       ;;
16397
16398     hpux9* | hpux10* | hpux11*)
16399       lt_prog_compiler_wl_GCJ='-Wl,'
16400       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16401       # not for PA HP-UX.
16402       case $host_cpu in
16403       hppa*64*|ia64*)
16404         # +Z the default
16405         ;;
16406       *)
16407         lt_prog_compiler_pic_GCJ='+Z'
16408         ;;
16409       esac
16410       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16411       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16412       ;;
16413
16414     irix5* | irix6* | nonstopux*)
16415       lt_prog_compiler_wl_GCJ='-Wl,'
16416       # PIC (with -KPIC) is the default.
16417       lt_prog_compiler_static_GCJ='-non_shared'
16418       ;;
16419
16420     newsos6)
16421       lt_prog_compiler_pic_GCJ='-KPIC'
16422       lt_prog_compiler_static_GCJ='-Bstatic'
16423       ;;
16424
16425     linux*)
16426       case $cc_basename in
16427       icc* | ecc*)
16428         lt_prog_compiler_wl_GCJ='-Wl,'
16429         lt_prog_compiler_pic_GCJ='-KPIC'
16430         lt_prog_compiler_static_GCJ='-static'
16431         ;;
16432       pgcc* | pgf77* | pgf90* | pgf95*)
16433         # Portland Group compilers (*not* the Pentium gcc compiler,
16434         # which looks to be a dead project)
16435         lt_prog_compiler_wl_GCJ='-Wl,'
16436         lt_prog_compiler_pic_GCJ='-fpic'
16437         lt_prog_compiler_static_GCJ='-Bstatic'
16438         ;;
16439       ccc*)
16440         lt_prog_compiler_wl_GCJ='-Wl,'
16441         # All Alpha code is PIC.
16442         lt_prog_compiler_static_GCJ='-non_shared'
16443         ;;
16444       esac
16445       ;;
16446
16447     osf3* | osf4* | osf5*)
16448       lt_prog_compiler_wl_GCJ='-Wl,'
16449       # All OSF/1 code is PIC.
16450       lt_prog_compiler_static_GCJ='-non_shared'
16451       ;;
16452
16453     solaris*)
16454       lt_prog_compiler_pic_GCJ='-KPIC'
16455       lt_prog_compiler_static_GCJ='-Bstatic'
16456       case $cc_basename in
16457       f77* | f90* | f95*)
16458         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16459       *)
16460         lt_prog_compiler_wl_GCJ='-Wl,';;
16461       esac
16462       ;;
16463
16464     sunos4*)
16465       lt_prog_compiler_wl_GCJ='-Qoption ld '
16466       lt_prog_compiler_pic_GCJ='-PIC'
16467       lt_prog_compiler_static_GCJ='-Bstatic'
16468       ;;
16469
16470     sysv4 | sysv4.2uw2* | sysv4.3*)
16471       lt_prog_compiler_wl_GCJ='-Wl,'
16472       lt_prog_compiler_pic_GCJ='-KPIC'
16473       lt_prog_compiler_static_GCJ='-Bstatic'
16474       ;;
16475
16476     sysv4*MP*)
16477       if test -d /usr/nec ;then
16478         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16479         lt_prog_compiler_static_GCJ='-Bstatic'
16480       fi
16481       ;;
16482
16483     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16484       lt_prog_compiler_wl_GCJ='-Wl,'
16485       lt_prog_compiler_pic_GCJ='-KPIC'
16486       lt_prog_compiler_static_GCJ='-Bstatic'
16487       ;;
16488
16489     unicos*)
16490       lt_prog_compiler_wl_GCJ='-Wl,'
16491       lt_prog_compiler_can_build_shared_GCJ=no
16492       ;;
16493
16494     uts4*)
16495       lt_prog_compiler_pic_GCJ='-pic'
16496       lt_prog_compiler_static_GCJ='-Bstatic'
16497       ;;
16498
16499     *)
16500       lt_prog_compiler_can_build_shared_GCJ=no
16501       ;;
16502     esac
16503   fi
16504
16505 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16506 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16507
16508 #
16509 # Check to make sure the PIC flag actually works.
16510 #
16511 if test -n "$lt_prog_compiler_pic_GCJ"; then
16512
16513 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16514 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16515 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16516   echo $ECHO_N "(cached) $ECHO_C" >&6
16517 else
16518   lt_prog_compiler_pic_works_GCJ=no
16519   ac_outfile=conftest.$ac_objext
16520    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16521    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16522    # Insert the option either (1) after the last *FLAGS variable, or
16523    # (2) before a word containing "conftest.", or (3) at the end.
16524    # Note that $ac_compile itself does not contain backslashes and begins
16525    # with a dollar sign (not a hyphen), so the echo should work correctly.
16526    # The option is referenced via a variable to avoid confusing sed.
16527    lt_compile=`echo "$ac_compile" | $SED \
16528    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16529    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16530    -e 's:$: $lt_compiler_flag:'`
16531    (eval echo "\"\$as_me:16532: $lt_compile\"" >&5)
16532    (eval "$lt_compile" 2>conftest.err)
16533    ac_status=$?
16534    cat conftest.err >&5
16535    echo "$as_me:16536: \$? = $ac_status" >&5
16536    if (exit $ac_status) && test -s "$ac_outfile"; then
16537      # The compiler can only warn and ignore the option if not recognized
16538      # So say no if there are warnings other than the usual output.
16539      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16540      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16541      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16542        lt_prog_compiler_pic_works_GCJ=yes
16543      fi
16544    fi
16545    $rm conftest*
16546
16547 fi
16548 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16549 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16550
16551 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16552     case $lt_prog_compiler_pic_GCJ in
16553      "" | " "*) ;;
16554      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16555      esac
16556 else
16557     lt_prog_compiler_pic_GCJ=
16558      lt_prog_compiler_can_build_shared_GCJ=no
16559 fi
16560
16561 fi
16562 case $host_os in
16563   # For platforms which do not support PIC, -DPIC is meaningless:
16564   *djgpp*)
16565     lt_prog_compiler_pic_GCJ=
16566     ;;
16567   *)
16568     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16569     ;;
16570 esac
16571
16572 #
16573 # Check to make sure the static flag actually works.
16574 #
16575 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16576 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16577 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16578 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16579   echo $ECHO_N "(cached) $ECHO_C" >&6
16580 else
16581   lt_prog_compiler_static_works_GCJ=no
16582    save_LDFLAGS="$LDFLAGS"
16583    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16584    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16585    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16586      # The linker can only warn and ignore the option if not recognized
16587      # So say no if there are warnings
16588      if test -s conftest.err; then
16589        # Append any errors to the config.log.
16590        cat conftest.err 1>&5
16591        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16592        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16593        if diff conftest.exp conftest.er2 >/dev/null; then
16594          lt_prog_compiler_static_works_GCJ=yes
16595        fi
16596      else
16597        lt_prog_compiler_static_works_GCJ=yes
16598      fi
16599    fi
16600    $rm conftest*
16601    LDFLAGS="$save_LDFLAGS"
16602
16603 fi
16604 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16605 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16606
16607 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16608     :
16609 else
16610     lt_prog_compiler_static_GCJ=
16611 fi
16612
16613
16614 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16615 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16616 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16617   echo $ECHO_N "(cached) $ECHO_C" >&6
16618 else
16619   lt_cv_prog_compiler_c_o_GCJ=no
16620    $rm -r conftest 2>/dev/null
16621    mkdir conftest
16622    cd conftest
16623    mkdir out
16624    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16625
16626    lt_compiler_flag="-o out/conftest2.$ac_objext"
16627    # Insert the option either (1) after the last *FLAGS variable, or
16628    # (2) before a word containing "conftest.", or (3) at the end.
16629    # Note that $ac_compile itself does not contain backslashes and begins
16630    # with a dollar sign (not a hyphen), so the echo should work correctly.
16631    lt_compile=`echo "$ac_compile" | $SED \
16632    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16633    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16634    -e 's:$: $lt_compiler_flag:'`
16635    (eval echo "\"\$as_me:16636: $lt_compile\"" >&5)
16636    (eval "$lt_compile" 2>out/conftest.err)
16637    ac_status=$?
16638    cat out/conftest.err >&5
16639    echo "$as_me:16640: \$? = $ac_status" >&5
16640    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16641    then
16642      # The compiler can only warn and ignore the option if not recognized
16643      # So say no if there are warnings
16644      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16645      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16646      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16647        lt_cv_prog_compiler_c_o_GCJ=yes
16648      fi
16649    fi
16650    chmod u+w . 2>&5
16651    $rm conftest*
16652    # SGI C++ compiler will create directory out/ii_files/ for
16653    # template instantiation
16654    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16655    $rm out/* && rmdir out
16656    cd ..
16657    rmdir conftest
16658    $rm conftest*
16659
16660 fi
16661 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16662 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16663
16664
16665 hard_links="nottested"
16666 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16667   # do not overwrite the value of need_locks provided by the user
16668   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16669 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16670   hard_links=yes
16671   $rm conftest*
16672   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16673   touch conftest.a
16674   ln conftest.a conftest.b 2>&5 || hard_links=no
16675   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16676   echo "$as_me:$LINENO: result: $hard_links" >&5
16677 echo "${ECHO_T}$hard_links" >&6
16678   if test "$hard_links" = no; then
16679     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16680 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16681     need_locks=warn
16682   fi
16683 else
16684   need_locks=no
16685 fi
16686
16687 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16688 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16689
16690   runpath_var=
16691   allow_undefined_flag_GCJ=
16692   enable_shared_with_static_runtimes_GCJ=no
16693   archive_cmds_GCJ=
16694   archive_expsym_cmds_GCJ=
16695   old_archive_From_new_cmds_GCJ=
16696   old_archive_from_expsyms_cmds_GCJ=
16697   export_dynamic_flag_spec_GCJ=
16698   whole_archive_flag_spec_GCJ=
16699   thread_safe_flag_spec_GCJ=
16700   hardcode_libdir_flag_spec_GCJ=
16701   hardcode_libdir_flag_spec_ld_GCJ=
16702   hardcode_libdir_separator_GCJ=
16703   hardcode_direct_GCJ=no
16704   hardcode_minus_L_GCJ=no
16705   hardcode_shlibpath_var_GCJ=unsupported
16706   link_all_deplibs_GCJ=unknown
16707   hardcode_automatic_GCJ=no
16708   module_cmds_GCJ=
16709   module_expsym_cmds_GCJ=
16710   always_export_symbols_GCJ=no
16711   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16712   # include_expsyms should be a list of space-separated symbols to be *always*
16713   # included in the symbol list
16714   include_expsyms_GCJ=
16715   # exclude_expsyms can be an extended regexp of symbols to exclude
16716   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16717   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16718   # as well as any symbol that contains `d'.
16719   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16720   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16721   # platforms (ab)use it in PIC code, but their linkers get confused if
16722   # the symbol is explicitly referenced.  Since portable code cannot
16723   # rely on this symbol name, it's probably fine to never include it in
16724   # preloaded symbol tables.
16725   extract_expsyms_cmds=
16726   # Just being paranoid about ensuring that cc_basename is set.
16727   for cc_temp in $compiler""; do
16728   case $cc_temp in
16729     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16730     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16731     \-*) ;;
16732     *) break;;
16733   esac
16734 done
16735 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16736
16737   case $host_os in
16738   cygwin* | mingw* | pw32*)
16739     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16740     # When not using gcc, we currently assume that we are using
16741     # Microsoft Visual C++.
16742     if test "$GCC" != yes; then
16743       with_gnu_ld=no
16744     fi
16745     ;;
16746   interix*)
16747     # we just hope/assume this is gcc and not c89 (= MSVC++)
16748     with_gnu_ld=yes
16749     ;;
16750   openbsd*)
16751     with_gnu_ld=no
16752     ;;
16753   esac
16754
16755   ld_shlibs_GCJ=yes
16756   if test "$with_gnu_ld" = yes; then
16757     # If archive_cmds runs LD, not CC, wlarc should be empty
16758     wlarc='${wl}'
16759
16760     # Set some defaults for GNU ld with shared library support. These
16761     # are reset later if shared libraries are not supported. Putting them
16762     # here allows them to be overridden if necessary.
16763     runpath_var=LD_RUN_PATH
16764     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16765     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16766     # ancient GNU ld didn't support --whole-archive et. al.
16767     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16768         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16769       else
16770         whole_archive_flag_spec_GCJ=
16771     fi
16772     supports_anon_versioning=no
16773     case `$LD -v 2>/dev/null` in
16774       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16775       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16776       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16777       *\ 2.11.*) ;; # other 2.11 versions
16778       *) supports_anon_versioning=yes ;;
16779     esac
16780
16781     # See if GNU ld supports shared libraries.
16782     case $host_os in
16783     aix3* | aix4* | aix5*)
16784       # On AIX/PPC, the GNU linker is very broken
16785       if test "$host_cpu" != ia64; then
16786         ld_shlibs_GCJ=no
16787         cat <<EOF 1>&2
16788
16789 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16790 *** to be unable to reliably create shared libraries on AIX.
16791 *** Therefore, libtool is disabling shared libraries support.  If you
16792 *** really care for shared libraries, you may want to modify your PATH
16793 *** so that a non-GNU linker is found, and then restart.
16794
16795 EOF
16796       fi
16797       ;;
16798
16799     amigaos*)
16800       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)'
16801       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16802       hardcode_minus_L_GCJ=yes
16803
16804       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16805       # that the semantics of dynamic libraries on AmigaOS, at least up
16806       # to version 4, is to share data among multiple programs linked
16807       # with the same dynamic library.  Since this doesn't match the
16808       # behavior of shared libraries on other platforms, we can't use
16809       # them.
16810       ld_shlibs_GCJ=no
16811       ;;
16812
16813     beos*)
16814       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16815         allow_undefined_flag_GCJ=unsupported
16816         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16817         # support --undefined.  This deserves some investigation.  FIXME
16818         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16819       else
16820         ld_shlibs_GCJ=no
16821       fi
16822       ;;
16823
16824     cygwin* | mingw* | pw32*)
16825       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16826       # as there is no search path for DLLs.
16827       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16828       allow_undefined_flag_GCJ=unsupported
16829       always_export_symbols_GCJ=no
16830       enable_shared_with_static_runtimes_GCJ=yes
16831       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16832
16833       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16834         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16835         # If the export-symbols file already is a .def file (1st line
16836         # is EXPORTS), use it as is; otherwise, prepend...
16837         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16838           cp $export_symbols $output_objdir/$soname.def;
16839         else
16840           echo EXPORTS > $output_objdir/$soname.def;
16841           cat $export_symbols >> $output_objdir/$soname.def;
16842         fi~
16843         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16844       else
16845         ld_shlibs_GCJ=no
16846       fi
16847       ;;
16848
16849     interix3*)
16850       hardcode_direct_GCJ=no
16851       hardcode_shlibpath_var_GCJ=no
16852       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16853       export_dynamic_flag_spec_GCJ='${wl}-E'
16854       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16855       # Instead, shared libraries are loaded at an image base (0x10000000 by
16856       # default) and relocated if they conflict, which is a slow very memory
16857       # consuming and fragmenting process.  To avoid this, we pick a random,
16858       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16859       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16860       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'
16861       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'
16862       ;;
16863
16864     linux*)
16865       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16866         tmp_addflag=
16867         case $cc_basename,$host_cpu in
16868         pgcc*)                          # Portland Group C compiler
16869           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'
16870           tmp_addflag=' $pic_flag'
16871           ;;
16872         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16873           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'
16874           tmp_addflag=' $pic_flag -Mnomain' ;;
16875         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16876           tmp_addflag=' -i_dynamic' ;;
16877         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16878           tmp_addflag=' -i_dynamic -nofor_main' ;;
16879         ifc* | ifort*)                  # Intel Fortran compiler
16880           tmp_addflag=' -nofor_main' ;;
16881         esac
16882         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16883
16884         if test $supports_anon_versioning = yes; then
16885           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16886   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16887   $echo "local: *; };" >> $output_objdir/$libname.ver~
16888           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16889         fi
16890         link_all_deplibs_GCJ=no
16891       else
16892         ld_shlibs_GCJ=no
16893       fi
16894       ;;
16895
16896     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16897       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16898         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16899         wlarc=
16900       else
16901         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16902         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16903       fi
16904       ;;
16905
16906     solaris*)
16907       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16908         ld_shlibs_GCJ=no
16909         cat <<EOF 1>&2
16910
16911 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16912 *** create shared libraries on Solaris systems.  Therefore, libtool
16913 *** is disabling shared libraries support.  We urge you to upgrade GNU
16914 *** binutils to release 2.9.1 or newer.  Another option is to modify
16915 *** your PATH or compiler configuration so that the native linker is
16916 *** used, and then restart.
16917
16918 EOF
16919       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16920         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16921         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16922       else
16923         ld_shlibs_GCJ=no
16924       fi
16925       ;;
16926
16927     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16928       case `$LD -v 2>&1` in
16929         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16930         ld_shlibs_GCJ=no
16931         cat <<_LT_EOF 1>&2
16932
16933 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16934 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16935 *** is disabling shared libraries support.  We urge you to upgrade GNU
16936 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16937 *** your PATH or compiler configuration so that the native linker is
16938 *** used, and then restart.
16939
16940 _LT_EOF
16941         ;;
16942         *)
16943           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16944             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16945             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16946             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16947           else
16948             ld_shlibs_GCJ=no
16949           fi
16950         ;;
16951       esac
16952       ;;
16953
16954     sunos4*)
16955       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16956       wlarc=
16957       hardcode_direct_GCJ=yes
16958       hardcode_shlibpath_var_GCJ=no
16959       ;;
16960
16961     *)
16962       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16963         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16964         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16965       else
16966         ld_shlibs_GCJ=no
16967       fi
16968       ;;
16969     esac
16970
16971     if test "$ld_shlibs_GCJ" = no; then
16972       runpath_var=
16973       hardcode_libdir_flag_spec_GCJ=
16974       export_dynamic_flag_spec_GCJ=
16975       whole_archive_flag_spec_GCJ=
16976     fi
16977   else
16978     # PORTME fill in a description of your system's linker (not GNU ld)
16979     case $host_os in
16980     aix3*)
16981       allow_undefined_flag_GCJ=unsupported
16982       always_export_symbols_GCJ=yes
16983       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'
16984       # Note: this linker hardcodes the directories in LIBPATH if there
16985       # are no directories specified by -L.
16986       hardcode_minus_L_GCJ=yes
16987       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16988         # Neither direct hardcoding nor static linking is supported with a
16989         # broken collect2.
16990         hardcode_direct_GCJ=unsupported
16991       fi
16992       ;;
16993
16994     aix4* | aix5*)
16995       if test "$host_cpu" = ia64; then
16996         # On IA64, the linker does run time linking by default, so we don't
16997         # have to do anything special.
16998         aix_use_runtimelinking=no
16999         exp_sym_flag='-Bexport'
17000         no_entry_flag=""
17001       else
17002         # If we're using GNU nm, then we don't want the "-C" option.
17003         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17004         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17005           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'
17006         else
17007           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'
17008         fi
17009         aix_use_runtimelinking=no
17010
17011         # Test if we are trying to use run time linking or normal
17012         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17013         # need to do runtime linking.
17014         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17015           for ld_flag in $LDFLAGS; do
17016           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17017             aix_use_runtimelinking=yes
17018             break
17019           fi
17020           done
17021           ;;
17022         esac
17023
17024         exp_sym_flag='-bexport'
17025         no_entry_flag='-bnoentry'
17026       fi
17027
17028       # When large executables or shared objects are built, AIX ld can
17029       # have problems creating the table of contents.  If linking a library
17030       # or program results in "error TOC overflow" add -mminimal-toc to
17031       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17032       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17033
17034       archive_cmds_GCJ=''
17035       hardcode_direct_GCJ=yes
17036       hardcode_libdir_separator_GCJ=':'
17037       link_all_deplibs_GCJ=yes
17038
17039       if test "$GCC" = yes; then
17040         case $host_os in aix4.[012]|aix4.[012].*)
17041         # We only want to do this on AIX 4.2 and lower, the check
17042         # below for broken collect2 doesn't work under 4.3+
17043           collect2name=`${CC} -print-prog-name=collect2`
17044           if test -f "$collect2name" && \
17045            strings "$collect2name" | grep resolve_lib_name >/dev/null
17046           then
17047           # We have reworked collect2
17048           hardcode_direct_GCJ=yes
17049           else
17050           # We have old collect2
17051           hardcode_direct_GCJ=unsupported
17052           # It fails to find uninstalled libraries when the uninstalled
17053           # path is not listed in the libpath.  Setting hardcode_minus_L
17054           # to unsupported forces relinking
17055           hardcode_minus_L_GCJ=yes
17056           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17057           hardcode_libdir_separator_GCJ=
17058           fi
17059           ;;
17060         esac
17061         shared_flag='-shared'
17062         if test "$aix_use_runtimelinking" = yes; then
17063           shared_flag="$shared_flag "'${wl}-G'
17064         fi
17065       else
17066         # not using gcc
17067         if test "$host_cpu" = ia64; then
17068         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17069         # chokes on -Wl,-G. The following line is correct:
17070           shared_flag='-G'
17071         else
17072           if test "$aix_use_runtimelinking" = yes; then
17073             shared_flag='${wl}-G'
17074           else
17075             shared_flag='${wl}-bM:SRE'
17076           fi
17077         fi
17078       fi
17079
17080       # It seems that -bexpall does not export symbols beginning with
17081       # underscore (_), so it is better to generate a list of symbols to export.
17082       always_export_symbols_GCJ=yes
17083       if test "$aix_use_runtimelinking" = yes; then
17084         # Warning - without using the other runtime loading flags (-brtl),
17085         # -berok will link without error, but may produce a broken library.
17086         allow_undefined_flag_GCJ='-berok'
17087        # Determine the default libpath from the value encoded in an empty executable.
17088        cat >conftest.$ac_ext <<_ACEOF
17089 /* confdefs.h.  */
17090 _ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h.  */
17094
17095 int
17096 main ()
17097 {
17098
17099   ;
17100   return 0;
17101 }
17102 _ACEOF
17103 rm -f conftest.$ac_objext conftest$ac_exeext
17104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17105   (eval $ac_link) 2>conftest.er1
17106   ac_status=$?
17107   grep -v '^ *+' conftest.er1 >conftest.err
17108   rm -f conftest.er1
17109   cat conftest.err >&5
17110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111   (exit $ac_status); } &&
17112          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114   (eval $ac_try) 2>&5
17115   ac_status=$?
17116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117   (exit $ac_status); }; } &&
17118          { ac_try='test -s conftest$ac_exeext'
17119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120   (eval $ac_try) 2>&5
17121   ac_status=$?
17122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123   (exit $ac_status); }; }; then
17124
17125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17126 }'`
17127 # Check for a 64-bit object if we didn't find anything.
17128 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17129 }'`; fi
17130 else
17131   echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17133
17134 fi
17135 rm -f conftest.err conftest.$ac_objext \
17136       conftest$ac_exeext conftest.$ac_ext
17137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17138
17139        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17140         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"
17141        else
17142         if test "$host_cpu" = ia64; then
17143           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17144           allow_undefined_flag_GCJ="-z nodefs"
17145           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"
17146         else
17147          # Determine the default libpath from the value encoded in an empty executable.
17148          cat >conftest.$ac_ext <<_ACEOF
17149 /* confdefs.h.  */
17150 _ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h.  */
17154
17155 int
17156 main ()
17157 {
17158
17159   ;
17160   return 0;
17161 }
17162 _ACEOF
17163 rm -f conftest.$ac_objext conftest$ac_exeext
17164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17165   (eval $ac_link) 2>conftest.er1
17166   ac_status=$?
17167   grep -v '^ *+' conftest.er1 >conftest.err
17168   rm -f conftest.er1
17169   cat conftest.err >&5
17170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171   (exit $ac_status); } &&
17172          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174   (eval $ac_try) 2>&5
17175   ac_status=$?
17176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177   (exit $ac_status); }; } &&
17178          { ac_try='test -s conftest$ac_exeext'
17179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180   (eval $ac_try) 2>&5
17181   ac_status=$?
17182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183   (exit $ac_status); }; }; then
17184
17185 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17186 }'`
17187 # Check for a 64-bit object if we didn't find anything.
17188 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17189 }'`; fi
17190 else
17191   echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17193
17194 fi
17195 rm -f conftest.err conftest.$ac_objext \
17196       conftest$ac_exeext conftest.$ac_ext
17197 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17198
17199          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17200           # Warning - without using the other run time loading flags,
17201           # -berok will link without error, but may produce a broken library.
17202           no_undefined_flag_GCJ=' ${wl}-bernotok'
17203           allow_undefined_flag_GCJ=' ${wl}-berok'
17204           # Exported symbols can be pulled into shared objects from archives
17205           whole_archive_flag_spec_GCJ='$convenience'
17206           archive_cmds_need_lc_GCJ=yes
17207           # This is similar to how AIX traditionally builds its shared libraries.
17208           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'
17209         fi
17210       fi
17211       ;;
17212
17213     amigaos*)
17214       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)'
17215       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17216       hardcode_minus_L_GCJ=yes
17217       # see comment about different semantics on the GNU ld section
17218       ld_shlibs_GCJ=no
17219       ;;
17220
17221     bsdi[45]*)
17222       export_dynamic_flag_spec_GCJ=-rdynamic
17223       ;;
17224
17225     cygwin* | mingw* | pw32*)
17226       # When not using gcc, we currently assume that we are using
17227       # Microsoft Visual C++.
17228       # hardcode_libdir_flag_spec is actually meaningless, as there is
17229       # no search path for DLLs.
17230       hardcode_libdir_flag_spec_GCJ=' '
17231       allow_undefined_flag_GCJ=unsupported
17232       # Tell ltmain to make .lib files, not .a files.
17233       libext=lib
17234       # Tell ltmain to make .dll files, not .so files.
17235       shrext_cmds=".dll"
17236       # FIXME: Setting linknames here is a bad hack.
17237       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17238       # The linker will automatically build a .lib file if we build a DLL.
17239       old_archive_From_new_cmds_GCJ='true'
17240       # FIXME: Should let the user specify the lib program.
17241       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17242       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17243       enable_shared_with_static_runtimes_GCJ=yes
17244       ;;
17245
17246     darwin* | rhapsody*)
17247       case $host_os in
17248         rhapsody* | darwin1.[012])
17249          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17250          ;;
17251        *) # Darwin 1.3 on
17252          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17253            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17254          else
17255            case ${MACOSX_DEPLOYMENT_TARGET} in
17256              10.[012])
17257                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17258                ;;
17259              10.*)
17260                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17261                ;;
17262            esac
17263          fi
17264          ;;
17265       esac
17266       archive_cmds_need_lc_GCJ=no
17267       hardcode_direct_GCJ=no
17268       hardcode_automatic_GCJ=yes
17269       hardcode_shlibpath_var_GCJ=unsupported
17270       whole_archive_flag_spec_GCJ=''
17271       link_all_deplibs_GCJ=yes
17272     if test "$GCC" = yes ; then
17273         output_verbose_link_cmd='echo'
17274         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17275       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17276       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17277       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}'
17278       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}'
17279     else
17280       case $cc_basename in
17281         xlc*)
17282          output_verbose_link_cmd='echo'
17283          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17284          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17285           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17286          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17287           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}'
17288           ;;
17289        *)
17290          ld_shlibs_GCJ=no
17291           ;;
17292       esac
17293     fi
17294       ;;
17295
17296     dgux*)
17297       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17298       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17299       hardcode_shlibpath_var_GCJ=no
17300       ;;
17301
17302     freebsd1*)
17303       ld_shlibs_GCJ=no
17304       ;;
17305
17306     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17307     # support.  Future versions do this automatically, but an explicit c++rt0.o
17308     # does not break anything, and helps significantly (at the cost of a little
17309     # extra space).
17310     freebsd2.2*)
17311       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17312       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17313       hardcode_direct_GCJ=yes
17314       hardcode_shlibpath_var_GCJ=no
17315       ;;
17316
17317     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17318     freebsd2*)
17319       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17320       hardcode_direct_GCJ=yes
17321       hardcode_minus_L_GCJ=yes
17322       hardcode_shlibpath_var_GCJ=no
17323       ;;
17324
17325     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17326     freebsd* | dragonfly*)
17327       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17328       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17329       hardcode_direct_GCJ=yes
17330       hardcode_shlibpath_var_GCJ=no
17331       ;;
17332
17333     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
17334     kfreebsd*-gnu)
17335       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17336       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17337       hardcode_direct_GCJ=yes
17338       hardcode_shlibpath_var_GCJ=no
17339       link_all_deplibs_GCJ=no
17340       ;;
17341
17342     hpux9*)
17343       if test "$GCC" = yes; then
17344         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'
17345       else
17346         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'
17347       fi
17348       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17349       hardcode_libdir_separator_GCJ=:
17350       hardcode_direct_GCJ=yes
17351
17352       # hardcode_minus_L: Not really in the search PATH,
17353       # but as the default location of the library.
17354       hardcode_minus_L_GCJ=yes
17355       export_dynamic_flag_spec_GCJ='${wl}-E'
17356       ;;
17357
17358     hpux10*)
17359       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17360         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17361       else
17362         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17363       fi
17364       if test "$with_gnu_ld" = no; then
17365         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17366         hardcode_libdir_separator_GCJ=:
17367
17368         hardcode_direct_GCJ=yes
17369         export_dynamic_flag_spec_GCJ='${wl}-E'
17370
17371         # hardcode_minus_L: Not really in the search PATH,
17372         # but as the default location of the library.
17373         hardcode_minus_L_GCJ=yes
17374       fi
17375       ;;
17376
17377     hpux11*)
17378       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17379         case $host_cpu in
17380         hppa*64*)
17381           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17382           ;;
17383         ia64*)
17384           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17385           ;;
17386         *)
17387           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17388           ;;
17389         esac
17390       else
17391         case $host_cpu in
17392         hppa*64*)
17393           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17394           ;;
17395         ia64*)
17396           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17397           ;;
17398         *)
17399           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17400           ;;
17401         esac
17402       fi
17403       if test "$with_gnu_ld" = no; then
17404         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17405         hardcode_libdir_separator_GCJ=:
17406
17407         case $host_cpu in
17408         hppa*64*|ia64*)
17409           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17410           hardcode_direct_GCJ=no
17411           hardcode_shlibpath_var_GCJ=no
17412           ;;
17413         *)
17414           hardcode_direct_GCJ=yes
17415           export_dynamic_flag_spec_GCJ='${wl}-E'
17416
17417           # hardcode_minus_L: Not really in the search PATH,
17418           # but as the default location of the library.
17419           hardcode_minus_L_GCJ=yes
17420           ;;
17421         esac
17422       fi
17423       ;;
17424
17425     irix5* | irix6* | nonstopux*)
17426       if test "$GCC" = yes; then
17427         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'
17428       else
17429         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'
17430         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17431       fi
17432       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17433       hardcode_libdir_separator_GCJ=:
17434       link_all_deplibs_GCJ=yes
17435       ;;
17436
17437     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17438       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17439         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17440       else
17441         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17442       fi
17443       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17444       hardcode_direct_GCJ=yes
17445       hardcode_shlibpath_var_GCJ=no
17446       ;;
17447
17448     newsos6)
17449       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17450       hardcode_direct_GCJ=yes
17451       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17452       hardcode_libdir_separator_GCJ=:
17453       hardcode_shlibpath_var_GCJ=no
17454       ;;
17455
17456     openbsd*)
17457       hardcode_direct_GCJ=yes
17458       hardcode_shlibpath_var_GCJ=no
17459       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17460         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17461         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17462         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17463         export_dynamic_flag_spec_GCJ='${wl}-E'
17464       else
17465        case $host_os in
17466          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17467            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17468            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17469            ;;
17470          *)
17471            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17472            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17473            ;;
17474        esac
17475       fi
17476       ;;
17477
17478     os2*)
17479       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17480       hardcode_minus_L_GCJ=yes
17481       allow_undefined_flag_GCJ=unsupported
17482       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'
17483       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17484       ;;
17485
17486     osf3*)
17487       if test "$GCC" = yes; then
17488         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17489         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'
17490       else
17491         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17492         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'
17493       fi
17494       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17495       hardcode_libdir_separator_GCJ=:
17496       ;;
17497
17498     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17499       if test "$GCC" = yes; then
17500         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17501         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'
17502         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17503       else
17504         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17505         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'
17506         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~
17507         $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'
17508
17509         # Both c and cxx compiler support -rpath directly
17510         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17511       fi
17512       hardcode_libdir_separator_GCJ=:
17513       ;;
17514
17515     solaris*)
17516       no_undefined_flag_GCJ=' -z text'
17517       if test "$GCC" = yes; then
17518         wlarc='${wl}'
17519         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17520         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17521           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17522       else
17523         wlarc=''
17524         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17525         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17526         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17527       fi
17528       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17529       hardcode_shlibpath_var_GCJ=no
17530       case $host_os in
17531       solaris2.[0-5] | solaris2.[0-5].*) ;;
17532       *)
17533         # The compiler driver will combine linker options so we
17534         # cannot just pass the convience library names through
17535         # without $wl, iff we do not link with $LD.
17536         # Luckily, gcc supports the same syntax we need for Sun Studio.
17537         # Supported since Solaris 2.6 (maybe 2.5.1?)
17538         case $wlarc in
17539         '')
17540           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17541         *)
17542           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17543         esac ;;
17544       esac
17545       link_all_deplibs_GCJ=yes
17546       ;;
17547
17548     sunos4*)
17549       if test "x$host_vendor" = xsequent; then
17550         # Use $CC to link under sequent, because it throws in some extra .o
17551         # files that make .init and .fini sections work.
17552         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17553       else
17554         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17555       fi
17556       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17557       hardcode_direct_GCJ=yes
17558       hardcode_minus_L_GCJ=yes
17559       hardcode_shlibpath_var_GCJ=no
17560       ;;
17561
17562     sysv4)
17563       case $host_vendor in
17564         sni)
17565           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17566           hardcode_direct_GCJ=yes # is this really true???
17567         ;;
17568         siemens)
17569           ## LD is ld it makes a PLAMLIB
17570           ## CC just makes a GrossModule.
17571           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17572           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17573           hardcode_direct_GCJ=no
17574         ;;
17575         motorola)
17576           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17577           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17578         ;;
17579       esac
17580       runpath_var='LD_RUN_PATH'
17581       hardcode_shlibpath_var_GCJ=no
17582       ;;
17583
17584     sysv4.3*)
17585       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17586       hardcode_shlibpath_var_GCJ=no
17587       export_dynamic_flag_spec_GCJ='-Bexport'
17588       ;;
17589
17590     sysv4*MP*)
17591       if test -d /usr/nec; then
17592         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17593         hardcode_shlibpath_var_GCJ=no
17594         runpath_var=LD_RUN_PATH
17595         hardcode_runpath_var=yes
17596         ld_shlibs_GCJ=yes
17597       fi
17598       ;;
17599
17600     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17601       no_undefined_flag_GCJ='${wl}-z,text'
17602       archive_cmds_need_lc_GCJ=no
17603       hardcode_shlibpath_var_GCJ=no
17604       runpath_var='LD_RUN_PATH'
17605
17606       if test "$GCC" = yes; then
17607         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17608         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17609       else
17610         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17611         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17612       fi
17613       ;;
17614
17615     sysv5* | sco3.2v5* | sco5v6*)
17616       # Note: We can NOT use -z defs as we might desire, because we do not
17617       # link with -lc, and that would cause any symbols used from libc to
17618       # always be unresolved, which means just about no library would
17619       # ever link correctly.  If we're not using GNU ld we use -z text
17620       # though, which does catch some bad symbols but isn't as heavy-handed
17621       # as -z defs.
17622       no_undefined_flag_GCJ='${wl}-z,text'
17623       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17624       archive_cmds_need_lc_GCJ=no
17625       hardcode_shlibpath_var_GCJ=no
17626       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17627       hardcode_libdir_separator_GCJ=':'
17628       link_all_deplibs_GCJ=yes
17629       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17630       runpath_var='LD_RUN_PATH'
17631
17632       if test "$GCC" = yes; then
17633         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17634         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17635       else
17636         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17637         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17638       fi
17639       ;;
17640
17641     uts4*)
17642       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17643       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17644       hardcode_shlibpath_var_GCJ=no
17645       ;;
17646
17647     *)
17648       ld_shlibs_GCJ=no
17649       ;;
17650     esac
17651   fi
17652
17653 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17654 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17655 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17656
17657 #
17658 # Do we need to explicitly link libc?
17659 #
17660 case "x$archive_cmds_need_lc_GCJ" in
17661 x|xyes)
17662   # Assume -lc should be added
17663   archive_cmds_need_lc_GCJ=yes
17664
17665   if test "$enable_shared" = yes && test "$GCC" = yes; then
17666     case $archive_cmds_GCJ in
17667     *'~'*)
17668       # FIXME: we may have to deal with multi-command sequences.
17669       ;;
17670     '$CC '*)
17671       # Test whether the compiler implicitly links with -lc since on some
17672       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17673       # to ld, don't add -lc before -lgcc.
17674       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17675 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17676       $rm conftest*
17677       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17678
17679       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17680   (eval $ac_compile) 2>&5
17681   ac_status=$?
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); } 2>conftest.err; then
17684         soname=conftest
17685         lib=conftest
17686         libobjs=conftest.$ac_objext
17687         deplibs=
17688         wl=$lt_prog_compiler_wl_GCJ
17689         pic_flag=$lt_prog_compiler_pic_GCJ
17690         compiler_flags=-v
17691         linker_flags=-v
17692         verstring=
17693         output_objdir=.
17694         libname=conftest
17695         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17696         allow_undefined_flag_GCJ=
17697         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17698   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17699   ac_status=$?
17700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701   (exit $ac_status); }
17702         then
17703           archive_cmds_need_lc_GCJ=no
17704         else
17705           archive_cmds_need_lc_GCJ=yes
17706         fi
17707         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17708       else
17709         cat conftest.err 1>&5
17710       fi
17711       $rm conftest*
17712       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17713 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17714       ;;
17715     esac
17716   fi
17717   ;;
17718 esac
17719
17720 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17721 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17722 library_names_spec=
17723 libname_spec='lib$name'
17724 soname_spec=
17725 shrext_cmds=".so"
17726 postinstall_cmds=
17727 postuninstall_cmds=
17728 finish_cmds=
17729 finish_eval=
17730 shlibpath_var=
17731 shlibpath_overrides_runpath=unknown
17732 version_type=none
17733 dynamic_linker="$host_os ld.so"
17734 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17735 if test "$GCC" = yes; then
17736   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17737   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17738     # if the path contains ";" then we assume it to be the separator
17739     # otherwise default to the standard path separator (i.e. ":") - it is
17740     # assumed that no part of a normal pathname contains ";" but that should
17741     # okay in the real world where ";" in dirpaths is itself problematic.
17742     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17743   else
17744     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17745   fi
17746 else
17747   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17748 fi
17749 need_lib_prefix=unknown
17750 hardcode_into_libs=no
17751
17752 # when you set need_version to no, make sure it does not cause -set_version
17753 # flags to be left without arguments
17754 need_version=unknown
17755
17756 case $host_os in
17757 aix3*)
17758   version_type=linux
17759   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17760   shlibpath_var=LIBPATH
17761
17762   # AIX 3 has no versioning support, so we append a major version to the name.
17763   soname_spec='${libname}${release}${shared_ext}$major'
17764   ;;
17765
17766 aix4* | aix5*)
17767   version_type=linux
17768   need_lib_prefix=no
17769   need_version=no
17770   hardcode_into_libs=yes
17771   if test "$host_cpu" = ia64; then
17772     # AIX 5 supports IA64
17773     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17774     shlibpath_var=LD_LIBRARY_PATH
17775   else
17776     # With GCC up to 2.95.x, collect2 would create an import file
17777     # for dependence libraries.  The import file would start with
17778     # the line `#! .'.  This would cause the generated library to
17779     # depend on `.', always an invalid library.  This was fixed in
17780     # development snapshots of GCC prior to 3.0.
17781     case $host_os in
17782       aix4 | aix4.[01] | aix4.[01].*)
17783       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17784            echo ' yes '
17785            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17786         :
17787       else
17788         can_build_shared=no
17789       fi
17790       ;;
17791     esac
17792     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17793     # soname into executable. Probably we can add versioning support to
17794     # collect2, so additional links can be useful in future.
17795     if test "$aix_use_runtimelinking" = yes; then
17796       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17797       # instead of lib<name>.a to let people know that these are not
17798       # typical AIX shared libraries.
17799       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17800     else
17801       # We preserve .a as extension for shared libraries through AIX4.2
17802       # and later when we are not doing run time linking.
17803       library_names_spec='${libname}${release}.a $libname.a'
17804       soname_spec='${libname}${release}${shared_ext}$major'
17805     fi
17806     shlibpath_var=LIBPATH
17807   fi
17808   ;;
17809
17810 amigaos*)
17811   library_names_spec='$libname.ixlibrary $libname.a'
17812   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17813   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'
17814   ;;
17815
17816 beos*)
17817   library_names_spec='${libname}${shared_ext}'
17818   dynamic_linker="$host_os ld.so"
17819   shlibpath_var=LIBRARY_PATH
17820   ;;
17821
17822 bsdi[45]*)
17823   version_type=linux
17824   need_version=no
17825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17826   soname_spec='${libname}${release}${shared_ext}$major'
17827   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17828   shlibpath_var=LD_LIBRARY_PATH
17829   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17830   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17831   # the default ld.so.conf also contains /usr/contrib/lib and
17832   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17833   # libtool to hard-code these into programs
17834   ;;
17835
17836 cygwin* | mingw* | pw32*)
17837   version_type=windows
17838   shrext_cmds=".dll"
17839   need_version=no
17840   need_lib_prefix=no
17841
17842   case $GCC,$host_os in
17843   yes,cygwin* | yes,mingw* | yes,pw32*)
17844     library_names_spec='$libname.dll.a'
17845     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17846     postinstall_cmds='base_file=`basename \${file}`~
17847       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17848       dldir=$destdir/`dirname \$dlpath`~
17849       test -d \$dldir || mkdir -p \$dldir~
17850       $install_prog $dir/$dlname \$dldir/$dlname~
17851       chmod a+x \$dldir/$dlname'
17852     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17853       dlpath=$dir/\$dldll~
17854        $rm \$dlpath'
17855     shlibpath_overrides_runpath=yes
17856
17857     case $host_os in
17858     cygwin*)
17859       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17860       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17861       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17862       ;;
17863     mingw*)
17864       # MinGW DLLs use traditional 'lib' prefix
17865       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17866       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17867       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17868         # It is most probably a Windows format PATH printed by
17869         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17870         # path with ; separators, and with drive letters. We can handle the
17871         # drive letters (cygwin fileutils understands them), so leave them,
17872         # especially as we might pass files found there to a mingw objdump,
17873         # which wouldn't understand a cygwinified path. Ahh.
17874         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17875       else
17876         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17877       fi
17878       ;;
17879     pw32*)
17880       # pw32 DLLs use 'pw' prefix rather than 'lib'
17881       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17882       ;;
17883     esac
17884     ;;
17885
17886   *)
17887     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17888     ;;
17889   esac
17890   dynamic_linker='Win32 ld.exe'
17891   # FIXME: first we should search . and the directory the executable is in
17892   shlibpath_var=PATH
17893   ;;
17894
17895 darwin* | rhapsody*)
17896   dynamic_linker="$host_os dyld"
17897   version_type=darwin
17898   need_lib_prefix=no
17899   need_version=no
17900   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17901   soname_spec='${libname}${release}${major}$shared_ext'
17902   shlibpath_overrides_runpath=yes
17903   shlibpath_var=DYLD_LIBRARY_PATH
17904   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17905   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17906   if test "$GCC" = yes; then
17907     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17908   else
17909     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17910   fi
17911   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17912   ;;
17913
17914 dgux*)
17915   version_type=linux
17916   need_lib_prefix=no
17917   need_version=no
17918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17919   soname_spec='${libname}${release}${shared_ext}$major'
17920   shlibpath_var=LD_LIBRARY_PATH
17921   ;;
17922
17923 freebsd1*)
17924   dynamic_linker=no
17925   ;;
17926
17927 kfreebsd*-gnu)
17928   version_type=linux
17929   need_lib_prefix=no
17930   need_version=no
17931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17932   soname_spec='${libname}${release}${shared_ext}$major'
17933   shlibpath_var=LD_LIBRARY_PATH
17934   shlibpath_overrides_runpath=no
17935   hardcode_into_libs=yes
17936   dynamic_linker='GNU ld.so'
17937   ;;
17938
17939 freebsd* | dragonfly*)
17940   # DragonFly does not have aout.  When/if they implement a new
17941   # versioning mechanism, adjust this.
17942   if test -x /usr/bin/objformat; then
17943     objformat=`/usr/bin/objformat`
17944   else
17945     case $host_os in
17946     freebsd[123]*) objformat=aout ;;
17947     *) objformat=elf ;;
17948     esac
17949   fi
17950   version_type=freebsd-$objformat
17951   case $version_type in
17952     freebsd-elf*)
17953       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17954       need_version=no
17955       need_lib_prefix=no
17956       ;;
17957     freebsd-*)
17958       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17959       need_version=yes
17960       ;;
17961   esac
17962   shlibpath_var=LD_LIBRARY_PATH
17963   case $host_os in
17964   freebsd2*)
17965     shlibpath_overrides_runpath=yes
17966     ;;
17967   freebsd3.[01]* | freebsdelf3.[01]*)
17968     shlibpath_overrides_runpath=yes
17969     hardcode_into_libs=yes
17970     ;;
17971   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17972   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17973     shlibpath_overrides_runpath=no
17974     hardcode_into_libs=yes
17975     ;;
17976   freebsd*) # from 4.6 on
17977     shlibpath_overrides_runpath=yes
17978     hardcode_into_libs=yes
17979     ;;
17980   esac
17981   ;;
17982
17983 gnu*)
17984   version_type=linux
17985   need_lib_prefix=no
17986   need_version=no
17987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17988   soname_spec='${libname}${release}${shared_ext}$major'
17989   shlibpath_var=LD_LIBRARY_PATH
17990   hardcode_into_libs=yes
17991   ;;
17992
17993 hpux9* | hpux10* | hpux11*)
17994   # Give a soname corresponding to the major version so that dld.sl refuses to
17995   # link against other versions.
17996   version_type=sunos
17997   need_lib_prefix=no
17998   need_version=no
17999   case $host_cpu in
18000   ia64*)
18001     shrext_cmds='.so'
18002     hardcode_into_libs=yes
18003     dynamic_linker="$host_os dld.so"
18004     shlibpath_var=LD_LIBRARY_PATH
18005     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18006     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18007     soname_spec='${libname}${release}${shared_ext}$major'
18008     if test "X$HPUX_IA64_MODE" = X32; then
18009       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18010     else
18011       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18012     fi
18013     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18014     ;;
18015    hppa*64*)
18016      shrext_cmds='.sl'
18017      hardcode_into_libs=yes
18018      dynamic_linker="$host_os dld.sl"
18019      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18020      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18021      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18022      soname_spec='${libname}${release}${shared_ext}$major'
18023      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18024      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18025      ;;
18026    *)
18027     shrext_cmds='.sl'
18028     dynamic_linker="$host_os dld.sl"
18029     shlibpath_var=SHLIB_PATH
18030     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18032     soname_spec='${libname}${release}${shared_ext}$major'
18033     ;;
18034   esac
18035   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18036   postinstall_cmds='chmod 555 $lib'
18037   ;;
18038
18039 interix3*)
18040   version_type=linux
18041   need_lib_prefix=no
18042   need_version=no
18043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18044   soname_spec='${libname}${release}${shared_ext}$major'
18045   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18046   shlibpath_var=LD_LIBRARY_PATH
18047   shlibpath_overrides_runpath=no
18048   hardcode_into_libs=yes
18049   ;;
18050
18051 irix5* | irix6* | nonstopux*)
18052   case $host_os in
18053     nonstopux*) version_type=nonstopux ;;
18054     *)
18055         if test "$lt_cv_prog_gnu_ld" = yes; then
18056                 version_type=linux
18057         else
18058                 version_type=irix
18059         fi ;;
18060   esac
18061   need_lib_prefix=no
18062   need_version=no
18063   soname_spec='${libname}${release}${shared_ext}$major'
18064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18065   case $host_os in
18066   irix5* | nonstopux*)
18067     libsuff= shlibsuff=
18068     ;;
18069   *)
18070     case $LD in # libtool.m4 will add one of these switches to LD
18071     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18072       libsuff= shlibsuff= libmagic=32-bit;;
18073     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18074       libsuff=32 shlibsuff=N32 libmagic=N32;;
18075     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18076       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18077     *) libsuff= shlibsuff= libmagic=never-match;;
18078     esac
18079     ;;
18080   esac
18081   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18082   shlibpath_overrides_runpath=no
18083   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18084   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18085   hardcode_into_libs=yes
18086   ;;
18087
18088 # No shared lib support for Linux oldld, aout, or coff.
18089 linux*oldld* | linux*aout* | linux*coff*)
18090   dynamic_linker=no
18091   ;;
18092
18093 # This must be Linux ELF.
18094 linux*)
18095   version_type=linux
18096   need_lib_prefix=no
18097   need_version=no
18098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18099   soname_spec='${libname}${release}${shared_ext}$major'
18100   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18101   shlibpath_var=LD_LIBRARY_PATH
18102   shlibpath_overrides_runpath=no
18103   # This implies no fast_install, which is unacceptable.
18104   # Some rework will be needed to allow for fast_install
18105   # before this can be enabled.
18106   hardcode_into_libs=yes
18107
18108   # Append ld.so.conf contents to the search path
18109   if test -f /etc/ld.so.conf; then
18110     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18111     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18112   fi
18113
18114   # We used to test for /lib/ld.so.1 and disable shared libraries on
18115   # powerpc, because MkLinux only supported shared libraries with the
18116   # GNU dynamic linker.  Since this was broken with cross compilers,
18117   # most powerpc-linux boxes support dynamic linking these days and
18118   # people can always --disable-shared, the test was removed, and we
18119   # assume the GNU/Linux dynamic linker is in use.
18120   dynamic_linker='GNU/Linux ld.so'
18121   ;;
18122
18123 netbsdelf*-gnu)
18124   version_type=linux
18125   need_lib_prefix=no
18126   need_version=no
18127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18128   soname_spec='${libname}${release}${shared_ext}$major'
18129   shlibpath_var=LD_LIBRARY_PATH
18130   shlibpath_overrides_runpath=no
18131   hardcode_into_libs=yes
18132   dynamic_linker='NetBSD ld.elf_so'
18133   ;;
18134
18135 knetbsd*-gnu)
18136   version_type=linux
18137   need_lib_prefix=no
18138   need_version=no
18139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18140   soname_spec='${libname}${release}${shared_ext}$major'
18141   shlibpath_var=LD_LIBRARY_PATH
18142   shlibpath_overrides_runpath=no
18143   hardcode_into_libs=yes
18144   dynamic_linker='GNU ld.so'
18145   ;;
18146
18147 netbsd*)
18148   version_type=sunos
18149   need_lib_prefix=no
18150   need_version=no
18151   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18152     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18153     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18154     dynamic_linker='NetBSD (a.out) ld.so'
18155   else
18156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18157     soname_spec='${libname}${release}${shared_ext}$major'
18158     dynamic_linker='NetBSD ld.elf_so'
18159   fi
18160   shlibpath_var=LD_LIBRARY_PATH
18161   shlibpath_overrides_runpath=yes
18162   hardcode_into_libs=yes
18163   ;;
18164
18165 newsos6)
18166   version_type=linux
18167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18168   shlibpath_var=LD_LIBRARY_PATH
18169   shlibpath_overrides_runpath=yes
18170   ;;
18171
18172 nto-qnx*)
18173   version_type=linux
18174   need_lib_prefix=no
18175   need_version=no
18176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18177   soname_spec='${libname}${release}${shared_ext}$major'
18178   shlibpath_var=LD_LIBRARY_PATH
18179   shlibpath_overrides_runpath=yes
18180   ;;
18181
18182 openbsd*)
18183   version_type=sunos
18184   sys_lib_dlsearch_path_spec="/usr/lib"
18185   need_lib_prefix=no
18186   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18187   case $host_os in
18188     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18189     *)                         need_version=no  ;;
18190   esac
18191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18192   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18193   shlibpath_var=LD_LIBRARY_PATH
18194   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18195     case $host_os in
18196       openbsd2.[89] | openbsd2.[89].*)
18197         shlibpath_overrides_runpath=no
18198         ;;
18199       *)
18200         shlibpath_overrides_runpath=yes
18201         ;;
18202       esac
18203   else
18204     shlibpath_overrides_runpath=yes
18205   fi
18206   ;;
18207
18208 os2*)
18209   libname_spec='$name'
18210   shrext_cmds=".dll"
18211   need_lib_prefix=no
18212   library_names_spec='$libname${shared_ext} $libname.a'
18213   dynamic_linker='OS/2 ld.exe'
18214   shlibpath_var=LIBPATH
18215   ;;
18216
18217 osf3* | osf4* | osf5*)
18218   version_type=osf
18219   need_lib_prefix=no
18220   need_version=no
18221   soname_spec='${libname}${release}${shared_ext}$major'
18222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18223   shlibpath_var=LD_LIBRARY_PATH
18224   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18225   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18226   ;;
18227
18228 solaris*)
18229   version_type=linux
18230   need_lib_prefix=no
18231   need_version=no
18232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18233   soname_spec='${libname}${release}${shared_ext}$major'
18234   shlibpath_var=LD_LIBRARY_PATH
18235   shlibpath_overrides_runpath=yes
18236   hardcode_into_libs=yes
18237   # ldd complains unless libraries are executable
18238   postinstall_cmds='chmod +x $lib'
18239   ;;
18240
18241 sunos4*)
18242   version_type=sunos
18243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18244   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18245   shlibpath_var=LD_LIBRARY_PATH
18246   shlibpath_overrides_runpath=yes
18247   if test "$with_gnu_ld" = yes; then
18248     need_lib_prefix=no
18249   fi
18250   need_version=yes
18251   ;;
18252
18253 sysv4 | sysv4.3*)
18254   version_type=linux
18255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18256   soname_spec='${libname}${release}${shared_ext}$major'
18257   shlibpath_var=LD_LIBRARY_PATH
18258   case $host_vendor in
18259     sni)
18260       shlibpath_overrides_runpath=no
18261       need_lib_prefix=no
18262       export_dynamic_flag_spec='${wl}-Blargedynsym'
18263       runpath_var=LD_RUN_PATH
18264       ;;
18265     siemens)
18266       need_lib_prefix=no
18267       ;;
18268     motorola)
18269       need_lib_prefix=no
18270       need_version=no
18271       shlibpath_overrides_runpath=no
18272       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18273       ;;
18274   esac
18275   ;;
18276
18277 sysv4*MP*)
18278   if test -d /usr/nec ;then
18279     version_type=linux
18280     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18281     soname_spec='$libname${shared_ext}.$major'
18282     shlibpath_var=LD_LIBRARY_PATH
18283   fi
18284   ;;
18285
18286 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18287   version_type=freebsd-elf
18288   need_lib_prefix=no
18289   need_version=no
18290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18291   soname_spec='${libname}${release}${shared_ext}$major'
18292   shlibpath_var=LD_LIBRARY_PATH
18293   hardcode_into_libs=yes
18294   if test "$with_gnu_ld" = yes; then
18295     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18296     shlibpath_overrides_runpath=no
18297   else
18298     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18299     shlibpath_overrides_runpath=yes
18300     case $host_os in
18301       sco3.2v5*)
18302         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18303         ;;
18304     esac
18305   fi
18306   sys_lib_dlsearch_path_spec='/usr/lib'
18307   ;;
18308
18309 uts4*)
18310   version_type=linux
18311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18312   soname_spec='${libname}${release}${shared_ext}$major'
18313   shlibpath_var=LD_LIBRARY_PATH
18314   ;;
18315
18316 *)
18317   dynamic_linker=no
18318   ;;
18319 esac
18320 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18321 echo "${ECHO_T}$dynamic_linker" >&6
18322 test "$dynamic_linker" = no && can_build_shared=no
18323
18324 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18325 if test "$GCC" = yes; then
18326   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18327 fi
18328
18329 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18330 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18331 hardcode_action_GCJ=
18332 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18333    test -n "$runpath_var_GCJ" || \
18334    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18335
18336   # We can hardcode non-existant directories.
18337   if test "$hardcode_direct_GCJ" != no &&
18338      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18339      # have to relink, otherwise we might link with an installed library
18340      # when we should be linking with a yet-to-be-installed one
18341      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18342      test "$hardcode_minus_L_GCJ" != no; then
18343     # Linking always hardcodes the temporary library directory.
18344     hardcode_action_GCJ=relink
18345   else
18346     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18347     hardcode_action_GCJ=immediate
18348   fi
18349 else
18350   # We cannot hardcode anything, or else we can only hardcode existing
18351   # directories.
18352   hardcode_action_GCJ=unsupported
18353 fi
18354 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18355 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18356
18357 if test "$hardcode_action_GCJ" = relink; then
18358   # Fast installation is not supported
18359   enable_fast_install=no
18360 elif test "$shlibpath_overrides_runpath" = yes ||
18361      test "$enable_shared" = no; then
18362   # Fast installation is not necessary
18363   enable_fast_install=needless
18364 fi
18365
18366
18367 # The else clause should only fire when bootstrapping the
18368 # libtool distribution, otherwise you forgot to ship ltmain.sh
18369 # with your package, and you will get complaints that there are
18370 # no rules to generate ltmain.sh.
18371 if test -f "$ltmain"; then
18372   # See if we are running on zsh, and set the options which allow our commands through
18373   # without removal of \ escapes.
18374   if test -n "${ZSH_VERSION+set}" ; then
18375     setopt NO_GLOB_SUBST
18376   fi
18377   # Now quote all the things that may contain metacharacters while being
18378   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18379   # variables and quote the copies for generation of the libtool script.
18380   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18381     SED SHELL STRIP \
18382     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18383     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18384     deplibs_check_method reload_flag reload_cmds need_locks \
18385     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18386     lt_cv_sys_global_symbol_to_c_name_address \
18387     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18388     old_postinstall_cmds old_postuninstall_cmds \
18389     compiler_GCJ \
18390     CC_GCJ \
18391     LD_GCJ \
18392     lt_prog_compiler_wl_GCJ \
18393     lt_prog_compiler_pic_GCJ \
18394     lt_prog_compiler_static_GCJ \
18395     lt_prog_compiler_no_builtin_flag_GCJ \
18396     export_dynamic_flag_spec_GCJ \
18397     thread_safe_flag_spec_GCJ \
18398     whole_archive_flag_spec_GCJ \
18399     enable_shared_with_static_runtimes_GCJ \
18400     old_archive_cmds_GCJ \
18401     old_archive_from_new_cmds_GCJ \
18402     predep_objects_GCJ \
18403     postdep_objects_GCJ \
18404     predeps_GCJ \
18405     postdeps_GCJ \
18406     compiler_lib_search_path_GCJ \
18407     archive_cmds_GCJ \
18408     archive_expsym_cmds_GCJ \
18409     postinstall_cmds_GCJ \
18410     postuninstall_cmds_GCJ \
18411     old_archive_from_expsyms_cmds_GCJ \
18412     allow_undefined_flag_GCJ \
18413     no_undefined_flag_GCJ \
18414     export_symbols_cmds_GCJ \
18415     hardcode_libdir_flag_spec_GCJ \
18416     hardcode_libdir_flag_spec_ld_GCJ \
18417     hardcode_libdir_separator_GCJ \
18418     hardcode_automatic_GCJ \
18419     module_cmds_GCJ \
18420     module_expsym_cmds_GCJ \
18421     lt_cv_prog_compiler_c_o_GCJ \
18422     exclude_expsyms_GCJ \
18423     include_expsyms_GCJ; do
18424
18425     case $var in
18426     old_archive_cmds_GCJ | \
18427     old_archive_from_new_cmds_GCJ | \
18428     archive_cmds_GCJ | \
18429     archive_expsym_cmds_GCJ | \
18430     module_cmds_GCJ | \
18431     module_expsym_cmds_GCJ | \
18432     old_archive_from_expsyms_cmds_GCJ | \
18433     export_symbols_cmds_GCJ | \
18434     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18435     postinstall_cmds | postuninstall_cmds | \
18436     old_postinstall_cmds | old_postuninstall_cmds | \
18437     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18438       # Double-quote double-evaled strings.
18439       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18440       ;;
18441     *)
18442       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18443       ;;
18444     esac
18445   done
18446
18447   case $lt_echo in
18448   *'\$0 --fallback-echo"')
18449     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18450     ;;
18451   esac
18452
18453 cfgfile="$ofile"
18454
18455   cat <<__EOF__ >> "$cfgfile"
18456 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18457
18458 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18459
18460 # Shell to use when invoking shell scripts.
18461 SHELL=$lt_SHELL
18462
18463 # Whether or not to build shared libraries.
18464 build_libtool_libs=$enable_shared
18465
18466 # Whether or not to build static libraries.
18467 build_old_libs=$enable_static
18468
18469 # Whether or not to add -lc for building shared libraries.
18470 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18471
18472 # Whether or not to disallow shared libs when runtime libs are static
18473 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18474
18475 # Whether or not to optimize for fast installation.
18476 fast_install=$enable_fast_install
18477
18478 # The host system.
18479 host_alias=$host_alias
18480 host=$host
18481 host_os=$host_os
18482
18483 # The build system.
18484 build_alias=$build_alias
18485 build=$build
18486 build_os=$build_os
18487
18488 # An echo program that does not interpret backslashes.
18489 echo=$lt_echo
18490
18491 # The archiver.
18492 AR=$lt_AR
18493 AR_FLAGS=$lt_AR_FLAGS
18494
18495 # A C compiler.
18496 LTCC=$lt_LTCC
18497
18498 # LTCC compiler flags.
18499 LTCFLAGS=$lt_LTCFLAGS
18500
18501 # A language-specific compiler.
18502 CC=$lt_compiler_GCJ
18503
18504 # Is the compiler the GNU C compiler?
18505 with_gcc=$GCC_GCJ
18506
18507 # An ERE matcher.
18508 EGREP=$lt_EGREP
18509
18510 # The linker used to build libraries.
18511 LD=$lt_LD_GCJ
18512
18513 # Whether we need hard or soft links.
18514 LN_S=$lt_LN_S
18515
18516 # A BSD-compatible nm program.
18517 NM=$lt_NM
18518
18519 # A symbol stripping program
18520 STRIP=$lt_STRIP
18521
18522 # Used to examine libraries when file_magic_cmd begins "file"
18523 MAGIC_CMD=$MAGIC_CMD
18524
18525 # Used on cygwin: DLL creation program.
18526 DLLTOOL="$DLLTOOL"
18527
18528 # Used on cygwin: object dumper.
18529 OBJDUMP="$OBJDUMP"
18530
18531 # Used on cygwin: assembler.
18532 AS="$AS"
18533
18534 # The name of the directory that contains temporary libtool files.
18535 objdir=$objdir
18536
18537 # How to create reloadable object files.
18538 reload_flag=$lt_reload_flag
18539 reload_cmds=$lt_reload_cmds
18540
18541 # How to pass a linker flag through the compiler.
18542 wl=$lt_lt_prog_compiler_wl_GCJ
18543
18544 # Object file suffix (normally "o").
18545 objext="$ac_objext"
18546
18547 # Old archive suffix (normally "a").
18548 libext="$libext"
18549
18550 # Shared library suffix (normally ".so").
18551 shrext_cmds='$shrext_cmds'
18552
18553 # Executable file suffix (normally "").
18554 exeext="$exeext"
18555
18556 # Additional compiler flags for building library objects.
18557 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18558 pic_mode=$pic_mode
18559
18560 # What is the maximum length of a command?
18561 max_cmd_len=$lt_cv_sys_max_cmd_len
18562
18563 # Does compiler simultaneously support -c and -o options?
18564 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18565
18566 # Must we lock files when doing compilation?
18567 need_locks=$lt_need_locks
18568
18569 # Do we need the lib prefix for modules?
18570 need_lib_prefix=$need_lib_prefix
18571
18572 # Do we need a version for libraries?
18573 need_version=$need_version
18574
18575 # Whether dlopen is supported.
18576 dlopen_support=$enable_dlopen
18577
18578 # Whether dlopen of programs is supported.
18579 dlopen_self=$enable_dlopen_self
18580
18581 # Whether dlopen of statically linked programs is supported.
18582 dlopen_self_static=$enable_dlopen_self_static
18583
18584 # Compiler flag to prevent dynamic linking.
18585 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18586
18587 # Compiler flag to turn off builtin functions.
18588 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18589
18590 # Compiler flag to allow reflexive dlopens.
18591 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18592
18593 # Compiler flag to generate shared objects directly from archives.
18594 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18595
18596 # Compiler flag to generate thread-safe objects.
18597 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18598
18599 # Library versioning type.
18600 version_type=$version_type
18601
18602 # Format of library name prefix.
18603 libname_spec=$lt_libname_spec
18604
18605 # List of archive names.  First name is the real one, the rest are links.
18606 # The last name is the one that the linker finds with -lNAME.
18607 library_names_spec=$lt_library_names_spec
18608
18609 # The coded name of the library, if different from the real name.
18610 soname_spec=$lt_soname_spec
18611
18612 # Commands used to build and install an old-style archive.
18613 RANLIB=$lt_RANLIB
18614 old_archive_cmds=$lt_old_archive_cmds_GCJ
18615 old_postinstall_cmds=$lt_old_postinstall_cmds
18616 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18617
18618 # Create an old-style archive from a shared archive.
18619 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18620
18621 # Create a temporary old-style archive to link instead of a shared archive.
18622 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18623
18624 # Commands used to build and install a shared archive.
18625 archive_cmds=$lt_archive_cmds_GCJ
18626 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18627 postinstall_cmds=$lt_postinstall_cmds
18628 postuninstall_cmds=$lt_postuninstall_cmds
18629
18630 # Commands used to build a loadable module (assumed same as above if empty)
18631 module_cmds=$lt_module_cmds_GCJ
18632 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18633
18634 # Commands to strip libraries.
18635 old_striplib=$lt_old_striplib
18636 striplib=$lt_striplib
18637
18638 # Dependencies to place before the objects being linked to create a
18639 # shared library.
18640 predep_objects=$lt_predep_objects_GCJ
18641
18642 # Dependencies to place after the objects being linked to create a
18643 # shared library.
18644 postdep_objects=$lt_postdep_objects_GCJ
18645
18646 # Dependencies to place before the objects being linked to create a
18647 # shared library.
18648 predeps=$lt_predeps_GCJ
18649
18650 # Dependencies to place after the objects being linked to create a
18651 # shared library.
18652 postdeps=$lt_postdeps_GCJ
18653
18654 # The library search path used internally by the compiler when linking
18655 # a shared library.
18656 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18657
18658 # Method to check whether dependent libraries are shared objects.
18659 deplibs_check_method=$lt_deplibs_check_method
18660
18661 # Command to use when deplibs_check_method == file_magic.
18662 file_magic_cmd=$lt_file_magic_cmd
18663
18664 # Flag that allows shared libraries with undefined symbols to be built.
18665 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18666
18667 # Flag that forces no undefined symbols.
18668 no_undefined_flag=$lt_no_undefined_flag_GCJ
18669
18670 # Commands used to finish a libtool library installation in a directory.
18671 finish_cmds=$lt_finish_cmds
18672
18673 # Same as above, but a single script fragment to be evaled but not shown.
18674 finish_eval=$lt_finish_eval
18675
18676 # Take the output of nm and produce a listing of raw symbols and C names.
18677 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18678
18679 # Transform the output of nm in a proper C declaration
18680 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18681
18682 # Transform the output of nm in a C name address pair
18683 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18684
18685 # This is the shared library runtime path variable.
18686 runpath_var=$runpath_var
18687
18688 # This is the shared library path variable.
18689 shlibpath_var=$shlibpath_var
18690
18691 # Is shlibpath searched before the hard-coded library search path?
18692 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18693
18694 # How to hardcode a shared library path into an executable.
18695 hardcode_action=$hardcode_action_GCJ
18696
18697 # Whether we should hardcode library paths into libraries.
18698 hardcode_into_libs=$hardcode_into_libs
18699
18700 # Flag to hardcode \$libdir into a binary during linking.
18701 # This must work even if \$libdir does not exist.
18702 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18703
18704 # If ld is used when linking, flag to hardcode \$libdir into
18705 # a binary during linking. This must work even if \$libdir does
18706 # not exist.
18707 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18708
18709 # Whether we need a single -rpath flag with a separated argument.
18710 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18711
18712 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18713 # resulting binary.
18714 hardcode_direct=$hardcode_direct_GCJ
18715
18716 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18717 # resulting binary.
18718 hardcode_minus_L=$hardcode_minus_L_GCJ
18719
18720 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18721 # the resulting binary.
18722 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18723
18724 # Set to yes if building a shared library automatically hardcodes DIR into the library
18725 # and all subsequent libraries and executables linked against it.
18726 hardcode_automatic=$hardcode_automatic_GCJ
18727
18728 # Variables whose values should be saved in libtool wrapper scripts and
18729 # restored at relink time.
18730 variables_saved_for_relink="$variables_saved_for_relink"
18731
18732 # Whether libtool must link a program against all its dependency libraries.
18733 link_all_deplibs=$link_all_deplibs_GCJ
18734
18735 # Compile-time system search path for libraries
18736 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18737
18738 # Run-time system search path for libraries
18739 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18740
18741 # Fix the shell variable \$srcfile for the compiler.
18742 fix_srcfile_path="$fix_srcfile_path_GCJ"
18743
18744 # Set to yes if exported symbols are required.
18745 always_export_symbols=$always_export_symbols_GCJ
18746
18747 # The commands to list exported symbols.
18748 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18749
18750 # The commands to extract the exported symbol list from a shared archive.
18751 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18752
18753 # Symbols that should not be listed in the preloaded symbols.
18754 exclude_expsyms=$lt_exclude_expsyms_GCJ
18755
18756 # Symbols that must always be exported.
18757 include_expsyms=$lt_include_expsyms_GCJ
18758
18759 # ### END LIBTOOL TAG CONFIG: $tagname
18760
18761 __EOF__
18762
18763
18764 else
18765   # If there is no Makefile yet, we rely on a make rule to execute
18766   # `config.status --recheck' to rerun these tests and create the
18767   # libtool script then.
18768   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18769   if test -f "$ltmain_in"; then
18770     test -f Makefile && make "$ltmain"
18771   fi
18772 fi
18773
18774
18775 ac_ext=c
18776 ac_cpp='$CPP $CPPFLAGS'
18777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18780
18781 CC="$lt_save_CC"
18782
18783         else
18784           tagname=""
18785         fi
18786         ;;
18787
18788       RC)
18789
18790
18791
18792 # Source file extension for RC test sources.
18793 ac_ext=rc
18794
18795 # Object file extension for compiled RC test sources.
18796 objext=o
18797 objext_RC=$objext
18798
18799 # Code to be used in simple compile tests
18800 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18801
18802 # Code to be used in simple link tests
18803 lt_simple_link_test_code="$lt_simple_compile_test_code"
18804
18805 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18806
18807 # If no C compiler was specified, use CC.
18808 LTCC=${LTCC-"$CC"}
18809
18810 # If no C compiler flags were specified, use CFLAGS.
18811 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18812
18813 # Allow CC to be a program name with arguments.
18814 compiler=$CC
18815
18816
18817 # save warnings/boilerplate of simple test code
18818 ac_outfile=conftest.$ac_objext
18819 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18820 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18821 _lt_compiler_boilerplate=`cat conftest.err`
18822 $rm conftest*
18823
18824 ac_outfile=conftest.$ac_objext
18825 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18826 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18827 _lt_linker_boilerplate=`cat conftest.err`
18828 $rm conftest*
18829
18830
18831 # Allow CC to be a program name with arguments.
18832 lt_save_CC="$CC"
18833 CC=${RC-"windres"}
18834 compiler=$CC
18835 compiler_RC=$CC
18836 for cc_temp in $compiler""; do
18837   case $cc_temp in
18838     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18839     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18840     \-*) ;;
18841     *) break;;
18842   esac
18843 done
18844 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18845
18846 lt_cv_prog_compiler_c_o_RC=yes
18847
18848 # The else clause should only fire when bootstrapping the
18849 # libtool distribution, otherwise you forgot to ship ltmain.sh
18850 # with your package, and you will get complaints that there are
18851 # no rules to generate ltmain.sh.
18852 if test -f "$ltmain"; then
18853   # See if we are running on zsh, and set the options which allow our commands through
18854   # without removal of \ escapes.
18855   if test -n "${ZSH_VERSION+set}" ; then
18856     setopt NO_GLOB_SUBST
18857   fi
18858   # Now quote all the things that may contain metacharacters while being
18859   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18860   # variables and quote the copies for generation of the libtool script.
18861   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18862     SED SHELL STRIP \
18863     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18864     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18865     deplibs_check_method reload_flag reload_cmds need_locks \
18866     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18867     lt_cv_sys_global_symbol_to_c_name_address \
18868     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18869     old_postinstall_cmds old_postuninstall_cmds \
18870     compiler_RC \
18871     CC_RC \
18872     LD_RC \
18873     lt_prog_compiler_wl_RC \
18874     lt_prog_compiler_pic_RC \
18875     lt_prog_compiler_static_RC \
18876     lt_prog_compiler_no_builtin_flag_RC \
18877     export_dynamic_flag_spec_RC \
18878     thread_safe_flag_spec_RC \
18879     whole_archive_flag_spec_RC \
18880     enable_shared_with_static_runtimes_RC \
18881     old_archive_cmds_RC \
18882     old_archive_from_new_cmds_RC \
18883     predep_objects_RC \
18884     postdep_objects_RC \
18885     predeps_RC \
18886     postdeps_RC \
18887     compiler_lib_search_path_RC \
18888     archive_cmds_RC \
18889     archive_expsym_cmds_RC \
18890     postinstall_cmds_RC \
18891     postuninstall_cmds_RC \
18892     old_archive_from_expsyms_cmds_RC \
18893     allow_undefined_flag_RC \
18894     no_undefined_flag_RC \
18895     export_symbols_cmds_RC \
18896     hardcode_libdir_flag_spec_RC \
18897     hardcode_libdir_flag_spec_ld_RC \
18898     hardcode_libdir_separator_RC \
18899     hardcode_automatic_RC \
18900     module_cmds_RC \
18901     module_expsym_cmds_RC \
18902     lt_cv_prog_compiler_c_o_RC \
18903     exclude_expsyms_RC \
18904     include_expsyms_RC; do
18905
18906     case $var in
18907     old_archive_cmds_RC | \
18908     old_archive_from_new_cmds_RC | \
18909     archive_cmds_RC | \
18910     archive_expsym_cmds_RC | \
18911     module_cmds_RC | \
18912     module_expsym_cmds_RC | \
18913     old_archive_from_expsyms_cmds_RC | \
18914     export_symbols_cmds_RC | \
18915     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18916     postinstall_cmds | postuninstall_cmds | \
18917     old_postinstall_cmds | old_postuninstall_cmds | \
18918     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18919       # Double-quote double-evaled strings.
18920       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18921       ;;
18922     *)
18923       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18924       ;;
18925     esac
18926   done
18927
18928   case $lt_echo in
18929   *'\$0 --fallback-echo"')
18930     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18931     ;;
18932   esac
18933
18934 cfgfile="$ofile"
18935
18936   cat <<__EOF__ >> "$cfgfile"
18937 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18938
18939 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18940
18941 # Shell to use when invoking shell scripts.
18942 SHELL=$lt_SHELL
18943
18944 # Whether or not to build shared libraries.
18945 build_libtool_libs=$enable_shared
18946
18947 # Whether or not to build static libraries.
18948 build_old_libs=$enable_static
18949
18950 # Whether or not to add -lc for building shared libraries.
18951 build_libtool_need_lc=$archive_cmds_need_lc_RC
18952
18953 # Whether or not to disallow shared libs when runtime libs are static
18954 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18955
18956 # Whether or not to optimize for fast installation.
18957 fast_install=$enable_fast_install
18958
18959 # The host system.
18960 host_alias=$host_alias
18961 host=$host
18962 host_os=$host_os
18963
18964 # The build system.
18965 build_alias=$build_alias
18966 build=$build
18967 build_os=$build_os
18968
18969 # An echo program that does not interpret backslashes.
18970 echo=$lt_echo
18971
18972 # The archiver.
18973 AR=$lt_AR
18974 AR_FLAGS=$lt_AR_FLAGS
18975
18976 # A C compiler.
18977 LTCC=$lt_LTCC
18978
18979 # LTCC compiler flags.
18980 LTCFLAGS=$lt_LTCFLAGS
18981
18982 # A language-specific compiler.
18983 CC=$lt_compiler_RC
18984
18985 # Is the compiler the GNU C compiler?
18986 with_gcc=$GCC_RC
18987
18988 # An ERE matcher.
18989 EGREP=$lt_EGREP
18990
18991 # The linker used to build libraries.
18992 LD=$lt_LD_RC
18993
18994 # Whether we need hard or soft links.
18995 LN_S=$lt_LN_S
18996
18997 # A BSD-compatible nm program.
18998 NM=$lt_NM
18999
19000 # A symbol stripping program
19001 STRIP=$lt_STRIP
19002
19003 # Used to examine libraries when file_magic_cmd begins "file"
19004 MAGIC_CMD=$MAGIC_CMD
19005
19006 # Used on cygwin: DLL creation program.
19007 DLLTOOL="$DLLTOOL"
19008
19009 # Used on cygwin: object dumper.
19010 OBJDUMP="$OBJDUMP"
19011
19012 # Used on cygwin: assembler.
19013 AS="$AS"
19014
19015 # The name of the directory that contains temporary libtool files.
19016 objdir=$objdir
19017
19018 # How to create reloadable object files.
19019 reload_flag=$lt_reload_flag
19020 reload_cmds=$lt_reload_cmds
19021
19022 # How to pass a linker flag through the compiler.
19023 wl=$lt_lt_prog_compiler_wl_RC
19024
19025 # Object file suffix (normally "o").
19026 objext="$ac_objext"
19027
19028 # Old archive suffix (normally "a").
19029 libext="$libext"
19030
19031 # Shared library suffix (normally ".so").
19032 shrext_cmds='$shrext_cmds'
19033
19034 # Executable file suffix (normally "").
19035 exeext="$exeext"
19036
19037 # Additional compiler flags for building library objects.
19038 pic_flag=$lt_lt_prog_compiler_pic_RC
19039 pic_mode=$pic_mode
19040
19041 # What is the maximum length of a command?
19042 max_cmd_len=$lt_cv_sys_max_cmd_len
19043
19044 # Does compiler simultaneously support -c and -o options?
19045 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19046
19047 # Must we lock files when doing compilation?
19048 need_locks=$lt_need_locks
19049
19050 # Do we need the lib prefix for modules?
19051 need_lib_prefix=$need_lib_prefix
19052
19053 # Do we need a version for libraries?
19054 need_version=$need_version
19055
19056 # Whether dlopen is supported.
19057 dlopen_support=$enable_dlopen
19058
19059 # Whether dlopen of programs is supported.
19060 dlopen_self=$enable_dlopen_self
19061
19062 # Whether dlopen of statically linked programs is supported.
19063 dlopen_self_static=$enable_dlopen_self_static
19064
19065 # Compiler flag to prevent dynamic linking.
19066 link_static_flag=$lt_lt_prog_compiler_static_RC
19067
19068 # Compiler flag to turn off builtin functions.
19069 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19070
19071 # Compiler flag to allow reflexive dlopens.
19072 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19073
19074 # Compiler flag to generate shared objects directly from archives.
19075 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19076
19077 # Compiler flag to generate thread-safe objects.
19078 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19079
19080 # Library versioning type.
19081 version_type=$version_type
19082
19083 # Format of library name prefix.
19084 libname_spec=$lt_libname_spec
19085
19086 # List of archive names.  First name is the real one, the rest are links.
19087 # The last name is the one that the linker finds with -lNAME.
19088 library_names_spec=$lt_library_names_spec
19089
19090 # The coded name of the library, if different from the real name.
19091 soname_spec=$lt_soname_spec
19092
19093 # Commands used to build and install an old-style archive.
19094 RANLIB=$lt_RANLIB
19095 old_archive_cmds=$lt_old_archive_cmds_RC
19096 old_postinstall_cmds=$lt_old_postinstall_cmds
19097 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19098
19099 # Create an old-style archive from a shared archive.
19100 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19101
19102 # Create a temporary old-style archive to link instead of a shared archive.
19103 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19104
19105 # Commands used to build and install a shared archive.
19106 archive_cmds=$lt_archive_cmds_RC
19107 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19108 postinstall_cmds=$lt_postinstall_cmds
19109 postuninstall_cmds=$lt_postuninstall_cmds
19110
19111 # Commands used to build a loadable module (assumed same as above if empty)
19112 module_cmds=$lt_module_cmds_RC
19113 module_expsym_cmds=$lt_module_expsym_cmds_RC
19114
19115 # Commands to strip libraries.
19116 old_striplib=$lt_old_striplib
19117 striplib=$lt_striplib
19118
19119 # Dependencies to place before the objects being linked to create a
19120 # shared library.
19121 predep_objects=$lt_predep_objects_RC
19122
19123 # Dependencies to place after the objects being linked to create a
19124 # shared library.
19125 postdep_objects=$lt_postdep_objects_RC
19126
19127 # Dependencies to place before the objects being linked to create a
19128 # shared library.
19129 predeps=$lt_predeps_RC
19130
19131 # Dependencies to place after the objects being linked to create a
19132 # shared library.
19133 postdeps=$lt_postdeps_RC
19134
19135 # The library search path used internally by the compiler when linking
19136 # a shared library.
19137 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19138
19139 # Method to check whether dependent libraries are shared objects.
19140 deplibs_check_method=$lt_deplibs_check_method
19141
19142 # Command to use when deplibs_check_method == file_magic.
19143 file_magic_cmd=$lt_file_magic_cmd
19144
19145 # Flag that allows shared libraries with undefined symbols to be built.
19146 allow_undefined_flag=$lt_allow_undefined_flag_RC
19147
19148 # Flag that forces no undefined symbols.
19149 no_undefined_flag=$lt_no_undefined_flag_RC
19150
19151 # Commands used to finish a libtool library installation in a directory.
19152 finish_cmds=$lt_finish_cmds
19153
19154 # Same as above, but a single script fragment to be evaled but not shown.
19155 finish_eval=$lt_finish_eval
19156
19157 # Take the output of nm and produce a listing of raw symbols and C names.
19158 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19159
19160 # Transform the output of nm in a proper C declaration
19161 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19162
19163 # Transform the output of nm in a C name address pair
19164 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19165
19166 # This is the shared library runtime path variable.
19167 runpath_var=$runpath_var
19168
19169 # This is the shared library path variable.
19170 shlibpath_var=$shlibpath_var
19171
19172 # Is shlibpath searched before the hard-coded library search path?
19173 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19174
19175 # How to hardcode a shared library path into an executable.
19176 hardcode_action=$hardcode_action_RC
19177
19178 # Whether we should hardcode library paths into libraries.
19179 hardcode_into_libs=$hardcode_into_libs
19180
19181 # Flag to hardcode \$libdir into a binary during linking.
19182 # This must work even if \$libdir does not exist.
19183 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19184
19185 # If ld is used when linking, flag to hardcode \$libdir into
19186 # a binary during linking. This must work even if \$libdir does
19187 # not exist.
19188 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19189
19190 # Whether we need a single -rpath flag with a separated argument.
19191 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19192
19193 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19194 # resulting binary.
19195 hardcode_direct=$hardcode_direct_RC
19196
19197 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19198 # resulting binary.
19199 hardcode_minus_L=$hardcode_minus_L_RC
19200
19201 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19202 # the resulting binary.
19203 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19204
19205 # Set to yes if building a shared library automatically hardcodes DIR into the library
19206 # and all subsequent libraries and executables linked against it.
19207 hardcode_automatic=$hardcode_automatic_RC
19208
19209 # Variables whose values should be saved in libtool wrapper scripts and
19210 # restored at relink time.
19211 variables_saved_for_relink="$variables_saved_for_relink"
19212
19213 # Whether libtool must link a program against all its dependency libraries.
19214 link_all_deplibs=$link_all_deplibs_RC
19215
19216 # Compile-time system search path for libraries
19217 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19218
19219 # Run-time system search path for libraries
19220 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19221
19222 # Fix the shell variable \$srcfile for the compiler.
19223 fix_srcfile_path="$fix_srcfile_path_RC"
19224
19225 # Set to yes if exported symbols are required.
19226 always_export_symbols=$always_export_symbols_RC
19227
19228 # The commands to list exported symbols.
19229 export_symbols_cmds=$lt_export_symbols_cmds_RC
19230
19231 # The commands to extract the exported symbol list from a shared archive.
19232 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19233
19234 # Symbols that should not be listed in the preloaded symbols.
19235 exclude_expsyms=$lt_exclude_expsyms_RC
19236
19237 # Symbols that must always be exported.
19238 include_expsyms=$lt_include_expsyms_RC
19239
19240 # ### END LIBTOOL TAG CONFIG: $tagname
19241
19242 __EOF__
19243
19244
19245 else
19246   # If there is no Makefile yet, we rely on a make rule to execute
19247   # `config.status --recheck' to rerun these tests and create the
19248   # libtool script then.
19249   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19250   if test -f "$ltmain_in"; then
19251     test -f Makefile && make "$ltmain"
19252   fi
19253 fi
19254
19255
19256 ac_ext=c
19257 ac_cpp='$CPP $CPPFLAGS'
19258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19261
19262 CC="$lt_save_CC"
19263
19264         ;;
19265
19266       *)
19267         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19268 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19269    { (exit 1); exit 1; }; }
19270         ;;
19271       esac
19272
19273       # Append the new tag name to the list of available tags.
19274       if test -n "$tagname" ; then
19275       available_tags="$available_tags $tagname"
19276     fi
19277     fi
19278   done
19279   IFS="$lt_save_ifs"
19280
19281   # Now substitute the updated list of available tags.
19282   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19283     mv "${ofile}T" "$ofile"
19284     chmod +x "$ofile"
19285   else
19286     rm -f "${ofile}T"
19287     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19288 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19289    { (exit 1); exit 1; }; }
19290   fi
19291 fi
19292
19293
19294
19295 # This can be used to rebuild libtool when needed
19296 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19297
19298 # Always use our own libtool.
19299 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19300
19301 # Prevent multiple expansion
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323                     ac_config_files="$ac_config_files Makefile json.pc"
19324 cat >confcache <<\_ACEOF
19325 # This file is a shell script that caches the results of configure
19326 # tests run on this system so they can be shared between configure
19327 # scripts and configure runs, see configure's option --config-cache.
19328 # It is not useful on other systems.  If it contains results you don't
19329 # want to keep, you may remove or edit it.
19330 #
19331 # config.status only pays attention to the cache file if you give it
19332 # the --recheck option to rerun configure.
19333 #
19334 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19335 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19336 # following values.
19337
19338 _ACEOF
19339
19340 # The following way of writing the cache mishandles newlines in values,
19341 # but we know of no workaround that is simple, portable, and efficient.
19342 # So, don't put newlines in cache variables' values.
19343 # Ultrix sh set writes to stderr and can't be redirected directly,
19344 # and sets the high bit in the cache file unless we assign to the vars.
19345 {
19346   (set) 2>&1 |
19347     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19348     *ac_space=\ *)
19349       # `set' does not quote correctly, so add quotes (double-quote
19350       # substitution turns \\\\ into \\, and sed turns \\ into \).
19351       sed -n \
19352         "s/'/'\\\\''/g;
19353           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19354       ;;
19355     *)
19356       # `set' quotes correctly as required by POSIX, so do not add quotes.
19357       sed -n \
19358         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19359       ;;
19360     esac;
19361 } |
19362   sed '
19363      t clear
19364      : clear
19365      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19366      t end
19367      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19368      : end' >>confcache
19369 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19370   if test -w $cache_file; then
19371     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19372     cat confcache >$cache_file
19373   else
19374     echo "not updating unwritable cache $cache_file"
19375   fi
19376 fi
19377 rm -f confcache
19378
19379 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19380 # Let make expand exec_prefix.
19381 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19382
19383 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19384 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19385 # trailing colons and then remove the whole line if VPATH becomes empty
19386 # (actually we leave an empty line to preserve line numbers).
19387 if test "x$srcdir" = x.; then
19388   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19389 s/:*\$(srcdir):*/:/;
19390 s/:*\${srcdir}:*/:/;
19391 s/:*@srcdir@:*/:/;
19392 s/^\([^=]*=[     ]*\):*/\1/;
19393 s/:*$//;
19394 s/^[^=]*=[       ]*$//;
19395 }'
19396 fi
19397
19398 DEFS=-DHAVE_CONFIG_H
19399
19400 ac_libobjs=
19401 ac_ltlibobjs=
19402 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19403   # 1. Remove the extension, and $U if already installed.
19404   ac_i=`echo "$ac_i" |
19405          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19406   # 2. Add them.
19407   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19408   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19409 done
19410 LIBOBJS=$ac_libobjs
19411
19412 LTLIBOBJS=$ac_ltlibobjs
19413
19414
19415
19416 : ${CONFIG_STATUS=./config.status}
19417 ac_clean_files_save=$ac_clean_files
19418 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19419 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19420 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19421 cat >$CONFIG_STATUS <<_ACEOF
19422 #! $SHELL
19423 # Generated by $as_me.
19424 # Run this file to recreate the current configuration.
19425 # Compiler output produced by configure, useful for debugging
19426 # configure, is in config.log if it exists.
19427
19428 debug=false
19429 ac_cs_recheck=false
19430 ac_cs_silent=false
19431 SHELL=\${CONFIG_SHELL-$SHELL}
19432 _ACEOF
19433
19434 cat >>$CONFIG_STATUS <<\_ACEOF
19435 ## --------------------- ##
19436 ## M4sh Initialization.  ##
19437 ## --------------------- ##
19438
19439 # Be Bourne compatible
19440 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19441   emulate sh
19442   NULLCMD=:
19443   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19444   # is contrary to our usage.  Disable this feature.
19445   alias -g '${1+"$@"}'='"$@"'
19446 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19447   set -o posix
19448 fi
19449 DUALCASE=1; export DUALCASE # for MKS sh
19450
19451 # Support unset when possible.
19452 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19453   as_unset=unset
19454 else
19455   as_unset=false
19456 fi
19457
19458
19459 # Work around bugs in pre-3.0 UWIN ksh.
19460 $as_unset ENV MAIL MAILPATH
19461 PS1='$ '
19462 PS2='> '
19463 PS4='+ '
19464
19465 # NLS nuisances.
19466 for as_var in \
19467   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19468   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19469   LC_TELEPHONE LC_TIME
19470 do
19471   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19472     eval $as_var=C; export $as_var
19473   else
19474     $as_unset $as_var
19475   fi
19476 done
19477
19478 # Required to use basename.
19479 if expr a : '\(a\)' >/dev/null 2>&1; then
19480   as_expr=expr
19481 else
19482   as_expr=false
19483 fi
19484
19485 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19486   as_basename=basename
19487 else
19488   as_basename=false
19489 fi
19490
19491
19492 # Name of the executable.
19493 as_me=`$as_basename "$0" ||
19494 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19495          X"$0" : 'X\(//\)$' \| \
19496          X"$0" : 'X\(/\)$' \| \
19497          .     : '\(.\)' 2>/dev/null ||
19498 echo X/"$0" |
19499     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19500           /^X\/\(\/\/\)$/{ s//\1/; q; }
19501           /^X\/\(\/\).*/{ s//\1/; q; }
19502           s/.*/./; q'`
19503
19504
19505 # PATH needs CR, and LINENO needs CR and PATH.
19506 # Avoid depending upon Character Ranges.
19507 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19508 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19509 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19510 as_cr_digits='0123456789'
19511 as_cr_alnum=$as_cr_Letters$as_cr_digits
19512
19513 # The user is always right.
19514 if test "${PATH_SEPARATOR+set}" != set; then
19515   echo "#! /bin/sh" >conf$$.sh
19516   echo  "exit 0"   >>conf$$.sh
19517   chmod +x conf$$.sh
19518   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19519     PATH_SEPARATOR=';'
19520   else
19521     PATH_SEPARATOR=:
19522   fi
19523   rm -f conf$$.sh
19524 fi
19525
19526
19527   as_lineno_1=$LINENO
19528   as_lineno_2=$LINENO
19529   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19530   test "x$as_lineno_1" != "x$as_lineno_2" &&
19531   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19532   # Find who we are.  Look in the path if we contain no path at all
19533   # relative or not.
19534   case $0 in
19535     *[\\/]* ) as_myself=$0 ;;
19536     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19537 for as_dir in $PATH
19538 do
19539   IFS=$as_save_IFS
19540   test -z "$as_dir" && as_dir=.
19541   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19542 done
19543
19544        ;;
19545   esac
19546   # We did not find ourselves, most probably we were run as `sh COMMAND'
19547   # in which case we are not to be found in the path.
19548   if test "x$as_myself" = x; then
19549     as_myself=$0
19550   fi
19551   if test ! -f "$as_myself"; then
19552     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19553 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19554    { (exit 1); exit 1; }; }
19555   fi
19556   case $CONFIG_SHELL in
19557   '')
19558     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19559 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19560 do
19561   IFS=$as_save_IFS
19562   test -z "$as_dir" && as_dir=.
19563   for as_base in sh bash ksh sh5; do
19564          case $as_dir in
19565          /*)
19566            if ("$as_dir/$as_base" -c '
19567   as_lineno_1=$LINENO
19568   as_lineno_2=$LINENO
19569   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19570   test "x$as_lineno_1" != "x$as_lineno_2" &&
19571   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19572              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19573              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19574              CONFIG_SHELL=$as_dir/$as_base
19575              export CONFIG_SHELL
19576              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19577            fi;;
19578          esac
19579        done
19580 done
19581 ;;
19582   esac
19583
19584   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19585   # uniformly replaced by the line number.  The first 'sed' inserts a
19586   # line-number line before each line; the second 'sed' does the real
19587   # work.  The second script uses 'N' to pair each line-number line
19588   # with the numbered line, and appends trailing '-' during
19589   # substitution so that $LINENO is not a special case at line end.
19590   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19591   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19592   sed '=' <$as_myself |
19593     sed '
19594       N
19595       s,$,-,
19596       : loop
19597       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19598       t loop
19599       s,-$,,
19600       s,^['$as_cr_digits']*\n,,
19601     ' >$as_me.lineno &&
19602   chmod +x $as_me.lineno ||
19603     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19604 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19605    { (exit 1); exit 1; }; }
19606
19607   # Don't try to exec as it changes $[0], causing all sort of problems
19608   # (the dirname of $[0] is not the place where we might find the
19609   # original and so on.  Autoconf is especially sensible to this).
19610   . ./$as_me.lineno
19611   # Exit status is that of the last command.
19612   exit
19613 }
19614
19615
19616 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19617   *c*,-n*) ECHO_N= ECHO_C='
19618 ' ECHO_T='      ' ;;
19619   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19620   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19621 esac
19622
19623 if expr a : '\(a\)' >/dev/null 2>&1; then
19624   as_expr=expr
19625 else
19626   as_expr=false
19627 fi
19628
19629 rm -f conf$$ conf$$.exe conf$$.file
19630 echo >conf$$.file
19631 if ln -s conf$$.file conf$$ 2>/dev/null; then
19632   # We could just check for DJGPP; but this test a) works b) is more generic
19633   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19634   if test -f conf$$.exe; then
19635     # Don't use ln at all; we don't have any links
19636     as_ln_s='cp -p'
19637   else
19638     as_ln_s='ln -s'
19639   fi
19640 elif ln conf$$.file conf$$ 2>/dev/null; then
19641   as_ln_s=ln
19642 else
19643   as_ln_s='cp -p'
19644 fi
19645 rm -f conf$$ conf$$.exe conf$$.file
19646
19647 if mkdir -p . 2>/dev/null; then
19648   as_mkdir_p=:
19649 else
19650   test -d ./-p && rmdir ./-p
19651   as_mkdir_p=false
19652 fi
19653
19654 as_executable_p="test -f"
19655
19656 # Sed expression to map a string onto a valid CPP name.
19657 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19658
19659 # Sed expression to map a string onto a valid variable name.
19660 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19661
19662
19663 # IFS
19664 # We need space, tab and new line, in precisely that order.
19665 as_nl='
19666 '
19667 IFS="   $as_nl"
19668
19669 # CDPATH.
19670 $as_unset CDPATH
19671
19672 exec 6>&1
19673
19674 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19675 # report actual input values of CONFIG_FILES etc. instead of their
19676 # values after options handling.  Logging --version etc. is OK.
19677 exec 5>>config.log
19678 {
19679   echo
19680   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19681 ## Running $as_me. ##
19682 _ASBOX
19683 } >&5
19684 cat >&5 <<_CSEOF
19685
19686 This file was extended by JSON C Library $as_me 0.3, which was
19687 generated by GNU Autoconf 2.59.  Invocation command line was
19688
19689   CONFIG_FILES    = $CONFIG_FILES
19690   CONFIG_HEADERS  = $CONFIG_HEADERS
19691   CONFIG_LINKS    = $CONFIG_LINKS
19692   CONFIG_COMMANDS = $CONFIG_COMMANDS
19693   $ $0 $@
19694
19695 _CSEOF
19696 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19697 echo >&5
19698 _ACEOF
19699
19700 # Files that config.status was made for.
19701 if test -n "$ac_config_files"; then
19702   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19703 fi
19704
19705 if test -n "$ac_config_headers"; then
19706   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19707 fi
19708
19709 if test -n "$ac_config_links"; then
19710   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19711 fi
19712
19713 if test -n "$ac_config_commands"; then
19714   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19715 fi
19716
19717 cat >>$CONFIG_STATUS <<\_ACEOF
19718
19719 ac_cs_usage="\
19720 \`$as_me' instantiates files from templates according to the
19721 current configuration.
19722
19723 Usage: $0 [OPTIONS] [FILE]...
19724
19725   -h, --help       print this help, then exit
19726   -V, --version    print version number, then exit
19727   -q, --quiet      do not print progress messages
19728   -d, --debug      don't remove temporary files
19729       --recheck    update $as_me by reconfiguring in the same conditions
19730   --file=FILE[:TEMPLATE]
19731                    instantiate the configuration file FILE
19732   --header=FILE[:TEMPLATE]
19733                    instantiate the configuration header FILE
19734
19735 Configuration files:
19736 $config_files
19737
19738 Configuration headers:
19739 $config_headers
19740
19741 Configuration commands:
19742 $config_commands
19743
19744 Report bugs to <bug-autoconf@gnu.org>."
19745 _ACEOF
19746
19747 cat >>$CONFIG_STATUS <<_ACEOF
19748 ac_cs_version="\\
19749 JSON C Library config.status 0.3
19750 configured by $0, generated by GNU Autoconf 2.59,
19751   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19752
19753 Copyright (C) 2003 Free Software Foundation, Inc.
19754 This config.status script is free software; the Free Software Foundation
19755 gives unlimited permission to copy, distribute and modify it."
19756 srcdir=$srcdir
19757 INSTALL="$INSTALL"
19758 _ACEOF
19759
19760 cat >>$CONFIG_STATUS <<\_ACEOF
19761 # If no file are specified by the user, then we need to provide default
19762 # value.  By we need to know if files were specified by the user.
19763 ac_need_defaults=:
19764 while test $# != 0
19765 do
19766   case $1 in
19767   --*=*)
19768     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19769     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19770     ac_shift=:
19771     ;;
19772   -*)
19773     ac_option=$1
19774     ac_optarg=$2
19775     ac_shift=shift
19776     ;;
19777   *) # This is not an option, so the user has probably given explicit
19778      # arguments.
19779      ac_option=$1
19780      ac_need_defaults=false;;
19781   esac
19782
19783   case $ac_option in
19784   # Handling of the options.
19785 _ACEOF
19786 cat >>$CONFIG_STATUS <<\_ACEOF
19787   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19788     ac_cs_recheck=: ;;
19789   --version | --vers* | -V )
19790     echo "$ac_cs_version"; exit 0 ;;
19791   --he | --h)
19792     # Conflict between --help and --header
19793     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19794 Try \`$0 --help' for more information." >&5
19795 echo "$as_me: error: ambiguous option: $1
19796 Try \`$0 --help' for more information." >&2;}
19797    { (exit 1); exit 1; }; };;
19798   --help | --hel | -h )
19799     echo "$ac_cs_usage"; exit 0 ;;
19800   --debug | --d* | -d )
19801     debug=: ;;
19802   --file | --fil | --fi | --f )
19803     $ac_shift
19804     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19805     ac_need_defaults=false;;
19806   --header | --heade | --head | --hea )
19807     $ac_shift
19808     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19809     ac_need_defaults=false;;
19810   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19811   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19812     ac_cs_silent=: ;;
19813
19814   # This is an error.
19815   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19816 Try \`$0 --help' for more information." >&5
19817 echo "$as_me: error: unrecognized option: $1
19818 Try \`$0 --help' for more information." >&2;}
19819    { (exit 1); exit 1; }; } ;;
19820
19821   *) ac_config_targets="$ac_config_targets $1" ;;
19822
19823   esac
19824   shift
19825 done
19826
19827 ac_configure_extra_args=
19828
19829 if $ac_cs_silent; then
19830   exec 6>/dev/null
19831   ac_configure_extra_args="$ac_configure_extra_args --silent"
19832 fi
19833
19834 _ACEOF
19835 cat >>$CONFIG_STATUS <<_ACEOF
19836 if \$ac_cs_recheck; then
19837   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19838   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19839 fi
19840
19841 _ACEOF
19842
19843 cat >>$CONFIG_STATUS <<_ACEOF
19844 #
19845 # INIT-COMMANDS section.
19846 #
19847
19848
19849
19850 _ACEOF
19851
19852
19853
19854 cat >>$CONFIG_STATUS <<\_ACEOF
19855 for ac_config_target in $ac_config_targets
19856 do
19857   case "$ac_config_target" in
19858   # Handling of arguments.
19859   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19860   "json.pc" ) CONFIG_FILES="$CONFIG_FILES json.pc" ;;
19861   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19862   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19863   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19864 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19865    { (exit 1); exit 1; }; };;
19866   esac
19867 done
19868
19869 # If the user did not use the arguments to specify the items to instantiate,
19870 # then the envvar interface is used.  Set only those that are not.
19871 # We use the long form for the default assignment because of an extremely
19872 # bizarre bug on SunOS 4.1.3.
19873 if $ac_need_defaults; then
19874   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19875   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19876   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19877 fi
19878
19879 # Have a temporary directory for convenience.  Make it in the build tree
19880 # simply because there is no reason to put it here, and in addition,
19881 # creating and moving files from /tmp can sometimes cause problems.
19882 # Create a temporary directory, and hook for its removal unless debugging.
19883 $debug ||
19884 {
19885   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19886   trap '{ (exit 1); exit 1; }' 1 2 13 15
19887 }
19888
19889 # Create a (secure) tmp directory for tmp files.
19890
19891 {
19892   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19893   test -n "$tmp" && test -d "$tmp"
19894 }  ||
19895 {
19896   tmp=./confstat$$-$RANDOM
19897   (umask 077 && mkdir $tmp)
19898 } ||
19899 {
19900    echo "$me: cannot create a temporary directory in ." >&2
19901    { (exit 1); exit 1; }
19902 }
19903
19904 _ACEOF
19905
19906 cat >>$CONFIG_STATUS <<_ACEOF
19907
19908 #
19909 # CONFIG_FILES section.
19910 #
19911
19912 # No need to generate the scripts if there are no CONFIG_FILES.
19913 # This happens for instance when ./config.status config.h
19914 if test -n "\$CONFIG_FILES"; then
19915   # Protect against being on the right side of a sed subst in config.status.
19916   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19917    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19918 s,@SHELL@,$SHELL,;t t
19919 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19920 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19921 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19922 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19923 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19924 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19925 s,@exec_prefix@,$exec_prefix,;t t
19926 s,@prefix@,$prefix,;t t
19927 s,@program_transform_name@,$program_transform_name,;t t
19928 s,@bindir@,$bindir,;t t
19929 s,@sbindir@,$sbindir,;t t
19930 s,@libexecdir@,$libexecdir,;t t
19931 s,@datadir@,$datadir,;t t
19932 s,@sysconfdir@,$sysconfdir,;t t
19933 s,@sharedstatedir@,$sharedstatedir,;t t
19934 s,@localstatedir@,$localstatedir,;t t
19935 s,@libdir@,$libdir,;t t
19936 s,@includedir@,$includedir,;t t
19937 s,@oldincludedir@,$oldincludedir,;t t
19938 s,@infodir@,$infodir,;t t
19939 s,@mandir@,$mandir,;t t
19940 s,@build_alias@,$build_alias,;t t
19941 s,@host_alias@,$host_alias,;t t
19942 s,@target_alias@,$target_alias,;t t
19943 s,@DEFS@,$DEFS,;t t
19944 s,@ECHO_C@,$ECHO_C,;t t
19945 s,@ECHO_N@,$ECHO_N,;t t
19946 s,@ECHO_T@,$ECHO_T,;t t
19947 s,@LIBS@,$LIBS,;t t
19948 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19949 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19950 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19951 s,@PACKAGE@,$PACKAGE,;t t
19952 s,@VERSION@,$VERSION,;t t
19953 s,@ACLOCAL@,$ACLOCAL,;t t
19954 s,@AUTOCONF@,$AUTOCONF,;t t
19955 s,@AUTOMAKE@,$AUTOMAKE,;t t
19956 s,@AUTOHEADER@,$AUTOHEADER,;t t
19957 s,@MAKEINFO@,$MAKEINFO,;t t
19958 s,@SET_MAKE@,$SET_MAKE,;t t
19959 s,@CC@,$CC,;t t
19960 s,@CFLAGS@,$CFLAGS,;t t
19961 s,@LDFLAGS@,$LDFLAGS,;t t
19962 s,@CPPFLAGS@,$CPPFLAGS,;t t
19963 s,@ac_ct_CC@,$ac_ct_CC,;t t
19964 s,@EXEEXT@,$EXEEXT,;t t
19965 s,@OBJEXT@,$OBJEXT,;t t
19966 s,@CPP@,$CPP,;t t
19967 s,@EGREP@,$EGREP,;t t
19968 s,@LIBOBJS@,$LIBOBJS,;t t
19969 s,@build@,$build,;t t
19970 s,@build_cpu@,$build_cpu,;t t
19971 s,@build_vendor@,$build_vendor,;t t
19972 s,@build_os@,$build_os,;t t
19973 s,@host@,$host,;t t
19974 s,@host_cpu@,$host_cpu,;t t
19975 s,@host_vendor@,$host_vendor,;t t
19976 s,@host_os@,$host_os,;t t
19977 s,@LN_S@,$LN_S,;t t
19978 s,@ECHO@,$ECHO,;t t
19979 s,@AR@,$AR,;t t
19980 s,@ac_ct_AR@,$ac_ct_AR,;t t
19981 s,@RANLIB@,$RANLIB,;t t
19982 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19983 s,@STRIP@,$STRIP,;t t
19984 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19985 s,@CXX@,$CXX,;t t
19986 s,@CXXFLAGS@,$CXXFLAGS,;t t
19987 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19988 s,@CXXCPP@,$CXXCPP,;t t
19989 s,@F77@,$F77,;t t
19990 s,@FFLAGS@,$FFLAGS,;t t
19991 s,@ac_ct_F77@,$ac_ct_F77,;t t
19992 s,@LIBTOOL@,$LIBTOOL,;t t
19993 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19994 CEOF
19995
19996 _ACEOF
19997
19998   cat >>$CONFIG_STATUS <<\_ACEOF
19999   # Split the substitutions into bite-sized pieces for seds with
20000   # small command number limits, like on Digital OSF/1 and HP-UX.
20001   ac_max_sed_lines=48
20002   ac_sed_frag=1 # Number of current file.
20003   ac_beg=1 # First line for current file.
20004   ac_end=$ac_max_sed_lines # Line after last line for current file.
20005   ac_more_lines=:
20006   ac_sed_cmds=
20007   while $ac_more_lines; do
20008     if test $ac_beg -gt 1; then
20009       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20010     else
20011       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20012     fi
20013     if test ! -s $tmp/subs.frag; then
20014       ac_more_lines=false
20015     else
20016       # The purpose of the label and of the branching condition is to
20017       # speed up the sed processing (if there are no `@' at all, there
20018       # is no need to browse any of the substitutions).
20019       # These are the two extra sed commands mentioned above.
20020       (echo ':t
20021   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20022       if test -z "$ac_sed_cmds"; then
20023         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20024       else
20025         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20026       fi
20027       ac_sed_frag=`expr $ac_sed_frag + 1`
20028       ac_beg=$ac_end
20029       ac_end=`expr $ac_end + $ac_max_sed_lines`
20030     fi
20031   done
20032   if test -z "$ac_sed_cmds"; then
20033     ac_sed_cmds=cat
20034   fi
20035 fi # test -n "$CONFIG_FILES"
20036
20037 _ACEOF
20038 cat >>$CONFIG_STATUS <<\_ACEOF
20039 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20040   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20041   case $ac_file in
20042   - | *:- | *:-:* ) # input from stdin
20043         cat >$tmp/stdin
20044         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20045         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20046   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20047         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20048   * )   ac_file_in=$ac_file.in ;;
20049   esac
20050
20051   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20052   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20053 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20054          X"$ac_file" : 'X\(//\)[^/]' \| \
20055          X"$ac_file" : 'X\(//\)$' \| \
20056          X"$ac_file" : 'X\(/\)' \| \
20057          .     : '\(.\)' 2>/dev/null ||
20058 echo X"$ac_file" |
20059     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20060           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20061           /^X\(\/\/\)$/{ s//\1/; q; }
20062           /^X\(\/\).*/{ s//\1/; q; }
20063           s/.*/./; q'`
20064   { if $as_mkdir_p; then
20065     mkdir -p "$ac_dir"
20066   else
20067     as_dir="$ac_dir"
20068     as_dirs=
20069     while test ! -d "$as_dir"; do
20070       as_dirs="$as_dir $as_dirs"
20071       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20073          X"$as_dir" : 'X\(//\)[^/]' \| \
20074          X"$as_dir" : 'X\(//\)$' \| \
20075          X"$as_dir" : 'X\(/\)' \| \
20076          .     : '\(.\)' 2>/dev/null ||
20077 echo X"$as_dir" |
20078     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20079           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20080           /^X\(\/\/\)$/{ s//\1/; q; }
20081           /^X\(\/\).*/{ s//\1/; q; }
20082           s/.*/./; q'`
20083     done
20084     test ! -n "$as_dirs" || mkdir $as_dirs
20085   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20086 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20087    { (exit 1); exit 1; }; }; }
20088
20089   ac_builddir=.
20090
20091 if test "$ac_dir" != .; then
20092   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20093   # A "../" for each directory in $ac_dir_suffix.
20094   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20095 else
20096   ac_dir_suffix= ac_top_builddir=
20097 fi
20098
20099 case $srcdir in
20100   .)  # No --srcdir option.  We are building in place.
20101     ac_srcdir=.
20102     if test -z "$ac_top_builddir"; then
20103        ac_top_srcdir=.
20104     else
20105        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20106     fi ;;
20107   [\\/]* | ?:[\\/]* )  # Absolute path.
20108     ac_srcdir=$srcdir$ac_dir_suffix;
20109     ac_top_srcdir=$srcdir ;;
20110   *) # Relative path.
20111     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20112     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20113 esac
20114
20115 # Do not use `cd foo && pwd` to compute absolute paths, because
20116 # the directories may not exist.
20117 case `pwd` in
20118 .) ac_abs_builddir="$ac_dir";;
20119 *)
20120   case "$ac_dir" in
20121   .) ac_abs_builddir=`pwd`;;
20122   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20123   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20124   esac;;
20125 esac
20126 case $ac_abs_builddir in
20127 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20128 *)
20129   case ${ac_top_builddir}. in
20130   .) ac_abs_top_builddir=$ac_abs_builddir;;
20131   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20132   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20133   esac;;
20134 esac
20135 case $ac_abs_builddir in
20136 .) ac_abs_srcdir=$ac_srcdir;;
20137 *)
20138   case $ac_srcdir in
20139   .) ac_abs_srcdir=$ac_abs_builddir;;
20140   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20141   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20142   esac;;
20143 esac
20144 case $ac_abs_builddir in
20145 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20146 *)
20147   case $ac_top_srcdir in
20148   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20149   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20150   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20151   esac;;
20152 esac
20153
20154
20155   case $INSTALL in
20156   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20157   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20158   esac
20159
20160   # Let's still pretend it is `configure' which instantiates (i.e., don't
20161   # use $as_me), people would be surprised to read:
20162   #    /* config.h.  Generated by config.status.  */
20163   if test x"$ac_file" = x-; then
20164     configure_input=
20165   else
20166     configure_input="$ac_file.  "
20167   fi
20168   configure_input=$configure_input"Generated from `echo $ac_file_in |
20169                                      sed 's,.*/,,'` by configure."
20170
20171   # First look for the input files in the build tree, otherwise in the
20172   # src tree.
20173   ac_file_inputs=`IFS=:
20174     for f in $ac_file_in; do
20175       case $f in
20176       -) echo $tmp/stdin ;;
20177       [\\/$]*)
20178          # Absolute (can't be DOS-style, as IFS=:)
20179          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20180 echo "$as_me: error: cannot find input file: $f" >&2;}
20181    { (exit 1); exit 1; }; }
20182          echo "$f";;
20183       *) # Relative
20184          if test -f "$f"; then
20185            # Build tree
20186            echo "$f"
20187          elif test -f "$srcdir/$f"; then
20188            # Source tree
20189            echo "$srcdir/$f"
20190          else
20191            # /dev/null tree
20192            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20193 echo "$as_me: error: cannot find input file: $f" >&2;}
20194    { (exit 1); exit 1; }; }
20195          fi;;
20196       esac
20197     done` || { (exit 1); exit 1; }
20198
20199   if test x"$ac_file" != x-; then
20200     { echo "$as_me:$LINENO: creating $ac_file" >&5
20201 echo "$as_me: creating $ac_file" >&6;}
20202     rm -f "$ac_file"
20203   fi
20204 _ACEOF
20205 cat >>$CONFIG_STATUS <<_ACEOF
20206   sed "$ac_vpsub
20207 $extrasub
20208 _ACEOF
20209 cat >>$CONFIG_STATUS <<\_ACEOF
20210 :t
20211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20212 s,@configure_input@,$configure_input,;t t
20213 s,@srcdir@,$ac_srcdir,;t t
20214 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20215 s,@top_srcdir@,$ac_top_srcdir,;t t
20216 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20217 s,@builddir@,$ac_builddir,;t t
20218 s,@abs_builddir@,$ac_abs_builddir,;t t
20219 s,@top_builddir@,$ac_top_builddir,;t t
20220 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20221 s,@INSTALL@,$ac_INSTALL,;t t
20222 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20223   rm -f $tmp/stdin
20224   if test x"$ac_file" != x-; then
20225     mv $tmp/out $ac_file
20226   else
20227     cat $tmp/out
20228     rm -f $tmp/out
20229   fi
20230
20231 done
20232 _ACEOF
20233 cat >>$CONFIG_STATUS <<\_ACEOF
20234
20235 #
20236 # CONFIG_HEADER section.
20237 #
20238
20239 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20240 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20241 #
20242 # ac_d sets the value in "#define NAME VALUE" lines.
20243 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20244 ac_dB='[         ].*$,\1#\2'
20245 ac_dC=' '
20246 ac_dD=',;t'
20247 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20248 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20249 ac_uB='$,\1#\2define\3'
20250 ac_uC=' '
20251 ac_uD=',;t'
20252
20253 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20254   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20255   case $ac_file in
20256   - | *:- | *:-:* ) # input from stdin
20257         cat >$tmp/stdin
20258         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20259         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20260   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20261         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20262   * )   ac_file_in=$ac_file.in ;;
20263   esac
20264
20265   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20266 echo "$as_me: creating $ac_file" >&6;}
20267
20268   # First look for the input files in the build tree, otherwise in the
20269   # src tree.
20270   ac_file_inputs=`IFS=:
20271     for f in $ac_file_in; do
20272       case $f in
20273       -) echo $tmp/stdin ;;
20274       [\\/$]*)
20275          # Absolute (can't be DOS-style, as IFS=:)
20276          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20277 echo "$as_me: error: cannot find input file: $f" >&2;}
20278    { (exit 1); exit 1; }; }
20279          # Do quote $f, to prevent DOS paths from being IFS'd.
20280          echo "$f";;
20281       *) # Relative
20282          if test -f "$f"; then
20283            # Build tree
20284            echo "$f"
20285          elif test -f "$srcdir/$f"; then
20286            # Source tree
20287            echo "$srcdir/$f"
20288          else
20289            # /dev/null tree
20290            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20291 echo "$as_me: error: cannot find input file: $f" >&2;}
20292    { (exit 1); exit 1; }; }
20293          fi;;
20294       esac
20295     done` || { (exit 1); exit 1; }
20296   # Remove the trailing spaces.
20297   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20298
20299 _ACEOF
20300
20301 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20302 # `conftest.undefs', that substitutes the proper values into
20303 # config.h.in to produce config.h.  The first handles `#define'
20304 # templates, and the second `#undef' templates.
20305 # And first: Protect against being on the right side of a sed subst in
20306 # config.status.  Protect against being in an unquoted here document
20307 # in config.status.
20308 rm -f conftest.defines conftest.undefs
20309 # Using a here document instead of a string reduces the quoting nightmare.
20310 # Putting comments in sed scripts is not portable.
20311 #
20312 # `end' is used to avoid that the second main sed command (meant for
20313 # 0-ary CPP macros) applies to n-ary macro definitions.
20314 # See the Autoconf documentation for `clear'.
20315 cat >confdef2sed.sed <<\_ACEOF
20316 s/[\\&,]/\\&/g
20317 s,[\\$`],\\&,g
20318 t clear
20319 : clear
20320 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20321 t end
20322 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20323 : end
20324 _ACEOF
20325 # If some macros were called several times there might be several times
20326 # the same #defines, which is useless.  Nevertheless, we may not want to
20327 # sort them, since we want the *last* AC-DEFINE to be honored.
20328 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20329 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20330 rm -f confdef2sed.sed
20331
20332 # This sed command replaces #undef with comments.  This is necessary, for
20333 # example, in the case of _POSIX_SOURCE, which is predefined and required
20334 # on some systems where configure will not decide to define it.
20335 cat >>conftest.undefs <<\_ACEOF
20336 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20337 _ACEOF
20338
20339 # Break up conftest.defines because some shells have a limit on the size
20340 # of here documents, and old seds have small limits too (100 cmds).
20341 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20342 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20343 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20344 echo '  :' >>$CONFIG_STATUS
20345 rm -f conftest.tail
20346 while grep . conftest.defines >/dev/null
20347 do
20348   # Write a limited-size here document to $tmp/defines.sed.
20349   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20350   # Speed up: don't consider the non `#define' lines.
20351   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20352   # Work around the forget-to-reset-the-flag bug.
20353   echo 't clr' >>$CONFIG_STATUS
20354   echo ': clr' >>$CONFIG_STATUS
20355   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20356   echo 'CEOF
20357   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20358   rm -f $tmp/in
20359   mv $tmp/out $tmp/in
20360 ' >>$CONFIG_STATUS
20361   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20362   rm -f conftest.defines
20363   mv conftest.tail conftest.defines
20364 done
20365 rm -f conftest.defines
20366 echo '  fi # grep' >>$CONFIG_STATUS
20367 echo >>$CONFIG_STATUS
20368
20369 # Break up conftest.undefs because some shells have a limit on the size
20370 # of here documents, and old seds have small limits too (100 cmds).
20371 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20372 rm -f conftest.tail
20373 while grep . conftest.undefs >/dev/null
20374 do
20375   # Write a limited-size here document to $tmp/undefs.sed.
20376   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20377   # Speed up: don't consider the non `#undef'
20378   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20379   # Work around the forget-to-reset-the-flag bug.
20380   echo 't clr' >>$CONFIG_STATUS
20381   echo ': clr' >>$CONFIG_STATUS
20382   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20383   echo 'CEOF
20384   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20385   rm -f $tmp/in
20386   mv $tmp/out $tmp/in
20387 ' >>$CONFIG_STATUS
20388   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20389   rm -f conftest.undefs
20390   mv conftest.tail conftest.undefs
20391 done
20392 rm -f conftest.undefs
20393
20394 cat >>$CONFIG_STATUS <<\_ACEOF
20395   # Let's still pretend it is `configure' which instantiates (i.e., don't
20396   # use $as_me), people would be surprised to read:
20397   #    /* config.h.  Generated by config.status.  */
20398   if test x"$ac_file" = x-; then
20399     echo "/* Generated by configure.  */" >$tmp/config.h
20400   else
20401     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20402   fi
20403   cat $tmp/in >>$tmp/config.h
20404   rm -f $tmp/in
20405   if test x"$ac_file" != x-; then
20406     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20407       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20408 echo "$as_me: $ac_file is unchanged" >&6;}
20409     else
20410       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20412          X"$ac_file" : 'X\(//\)[^/]' \| \
20413          X"$ac_file" : 'X\(//\)$' \| \
20414          X"$ac_file" : 'X\(/\)' \| \
20415          .     : '\(.\)' 2>/dev/null ||
20416 echo X"$ac_file" |
20417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20418           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20419           /^X\(\/\/\)$/{ s//\1/; q; }
20420           /^X\(\/\).*/{ s//\1/; q; }
20421           s/.*/./; q'`
20422       { if $as_mkdir_p; then
20423     mkdir -p "$ac_dir"
20424   else
20425     as_dir="$ac_dir"
20426     as_dirs=
20427     while test ! -d "$as_dir"; do
20428       as_dirs="$as_dir $as_dirs"
20429       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20431          X"$as_dir" : 'X\(//\)[^/]' \| \
20432          X"$as_dir" : 'X\(//\)$' \| \
20433          X"$as_dir" : 'X\(/\)' \| \
20434          .     : '\(.\)' 2>/dev/null ||
20435 echo X"$as_dir" |
20436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20437           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20438           /^X\(\/\/\)$/{ s//\1/; q; }
20439           /^X\(\/\).*/{ s//\1/; q; }
20440           s/.*/./; q'`
20441     done
20442     test ! -n "$as_dirs" || mkdir $as_dirs
20443   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20444 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20445    { (exit 1); exit 1; }; }; }
20446
20447       rm -f $ac_file
20448       mv $tmp/config.h $ac_file
20449     fi
20450   else
20451     cat $tmp/config.h
20452     rm -f $tmp/config.h
20453   fi
20454 done
20455 _ACEOF
20456 cat >>$CONFIG_STATUS <<\_ACEOF
20457
20458 #
20459 # CONFIG_COMMANDS section.
20460 #
20461 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20462   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20463   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20464   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20465 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20466          X"$ac_dest" : 'X\(//\)[^/]' \| \
20467          X"$ac_dest" : 'X\(//\)$' \| \
20468          X"$ac_dest" : 'X\(/\)' \| \
20469          .     : '\(.\)' 2>/dev/null ||
20470 echo X"$ac_dest" |
20471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20472           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20473           /^X\(\/\/\)$/{ s//\1/; q; }
20474           /^X\(\/\).*/{ s//\1/; q; }
20475           s/.*/./; q'`
20476   { if $as_mkdir_p; then
20477     mkdir -p "$ac_dir"
20478   else
20479     as_dir="$ac_dir"
20480     as_dirs=
20481     while test ! -d "$as_dir"; do
20482       as_dirs="$as_dir $as_dirs"
20483       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20484 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20485          X"$as_dir" : 'X\(//\)[^/]' \| \
20486          X"$as_dir" : 'X\(//\)$' \| \
20487          X"$as_dir" : 'X\(/\)' \| \
20488          .     : '\(.\)' 2>/dev/null ||
20489 echo X"$as_dir" |
20490     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20491           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20492           /^X\(\/\/\)$/{ s//\1/; q; }
20493           /^X\(\/\).*/{ s//\1/; q; }
20494           s/.*/./; q'`
20495     done
20496     test ! -n "$as_dirs" || mkdir $as_dirs
20497   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20498 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20499    { (exit 1); exit 1; }; }; }
20500
20501   ac_builddir=.
20502
20503 if test "$ac_dir" != .; then
20504   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20505   # A "../" for each directory in $ac_dir_suffix.
20506   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20507 else
20508   ac_dir_suffix= ac_top_builddir=
20509 fi
20510
20511 case $srcdir in
20512   .)  # No --srcdir option.  We are building in place.
20513     ac_srcdir=.
20514     if test -z "$ac_top_builddir"; then
20515        ac_top_srcdir=.
20516     else
20517        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20518     fi ;;
20519   [\\/]* | ?:[\\/]* )  # Absolute path.
20520     ac_srcdir=$srcdir$ac_dir_suffix;
20521     ac_top_srcdir=$srcdir ;;
20522   *) # Relative path.
20523     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20524     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20525 esac
20526
20527 # Do not use `cd foo && pwd` to compute absolute paths, because
20528 # the directories may not exist.
20529 case `pwd` in
20530 .) ac_abs_builddir="$ac_dir";;
20531 *)
20532   case "$ac_dir" in
20533   .) ac_abs_builddir=`pwd`;;
20534   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20535   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20536   esac;;
20537 esac
20538 case $ac_abs_builddir in
20539 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20540 *)
20541   case ${ac_top_builddir}. in
20542   .) ac_abs_top_builddir=$ac_abs_builddir;;
20543   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20544   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20545   esac;;
20546 esac
20547 case $ac_abs_builddir in
20548 .) ac_abs_srcdir=$ac_srcdir;;
20549 *)
20550   case $ac_srcdir in
20551   .) ac_abs_srcdir=$ac_abs_builddir;;
20552   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20553   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20554   esac;;
20555 esac
20556 case $ac_abs_builddir in
20557 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20558 *)
20559   case $ac_top_srcdir in
20560   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20561   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20562   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20563   esac;;
20564 esac
20565
20566
20567   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20568 echo "$as_me: executing $ac_dest commands" >&6;}
20569   case $ac_dest in
20570     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
20571   esac
20572 done
20573 _ACEOF
20574
20575 cat >>$CONFIG_STATUS <<\_ACEOF
20576
20577 { (exit 0); exit 0; }
20578 _ACEOF
20579 chmod +x $CONFIG_STATUS
20580 ac_clean_files=$ac_clean_files_save
20581
20582
20583 # configure is writing to config.log, and then calls config.status.
20584 # config.status does its own redirection, appending to config.log.
20585 # Unfortunately, on DOS this fails, as config.log is still kept open
20586 # by configure, so config.status won't be able to write to it; its
20587 # output is simply discarded.  So we exec the FD to /dev/null,
20588 # effectively closing config.log, so it can be properly (re)opened and
20589 # appended to by config.status.  When coming back to configure, we
20590 # need to make the FD available again.
20591 if test "$no_create" != yes; then
20592   ac_cs_success=:
20593   ac_config_status_args=
20594   test "$silent" = yes &&
20595     ac_config_status_args="$ac_config_status_args --quiet"
20596   exec 5>/dev/null
20597   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20598   exec 5>>config.log
20599   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20600   # would make configure fail if this is the last instruction.
20601   $ac_cs_success || { (exit 1); exit 1; }
20602 fi
20603