Add header.
[chise/libchise.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for libchise 0.2.0.
4 #
5 # Report bugs to <chise-en@m17n.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/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 -n "`(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   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=${tagnames+${tagnames},}CXX
396
397 tagnames=${tagnames+${tagnames},}F77
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME='libchise'
424 PACKAGE_TARNAME='libchise'
425 PACKAGE_VERSION='0.2.0'
426 PACKAGE_STRING='libchise 0.2.0'
427 PACKAGE_BUGREPORT='chise-en@m17n.org'
428
429 ac_unique_file="chise.c"
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ALLOCA LIBOBJS 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 libchise 0.2.0 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 System types:
1010   --build=BUILD     configure for building on BUILD [guessed]
1011   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1012   --target=TARGET   configure for building compilers for TARGET [HOST]
1013 _ACEOF
1014 fi
1015
1016 if test -n "$ac_init_help"; then
1017   case $ac_init_help in
1018      short | recursive ) echo "Configuration of libchise 0.2.0:";;
1019    esac
1020   cat <<\_ACEOF
1021
1022 Optional Features:
1023   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1024   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1025   --enable-shared[=PKGS]
1026                           build shared libraries [default=yes]
1027   --enable-static[=PKGS]
1028                           build static libraries [default=yes]
1029   --enable-fast-install[=PKGS]
1030                           optimize for fast installation [default=yes]
1031   --disable-libtool-lock  avoid locking (might break parallel builds)
1032
1033 Optional Packages:
1034   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1035   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1036   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1037   --with-pic              try to use only PIC/non-PIC objects [default=use
1038                           both]
1039   --with-tags[=TAGS]
1040                           include additional configurations [automatic]
1041
1042 Some influential environment variables:
1043   CC          C compiler command
1044   CFLAGS      C compiler flags
1045   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1046               nonstandard directory <lib dir>
1047   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1048               headers in a nonstandard directory <include dir>
1049   CPP         C preprocessor
1050   CXX         C++ compiler command
1051   CXXFLAGS    C++ compiler flags
1052   CXXCPP      C++ preprocessor
1053   F77         Fortran 77 compiler command
1054   FFLAGS      Fortran 77 compiler flags
1055
1056 Use these variables to override the choices made by `configure' or to help
1057 it to find libraries and programs with nonstandard names/locations.
1058
1059 Report bugs to <chise-en@m17n.org>.
1060 _ACEOF
1061 fi
1062
1063 if test "$ac_init_help" = "recursive"; then
1064   # If there are subdirs, report their specific --help.
1065   ac_popdir=`pwd`
1066   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1067     test -d $ac_dir || continue
1068     ac_builddir=.
1069
1070 if test "$ac_dir" != .; then
1071   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1072   # A "../" for each directory in $ac_dir_suffix.
1073   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1074 else
1075   ac_dir_suffix= ac_top_builddir=
1076 fi
1077
1078 case $srcdir in
1079   .)  # No --srcdir option.  We are building in place.
1080     ac_srcdir=.
1081     if test -z "$ac_top_builddir"; then
1082        ac_top_srcdir=.
1083     else
1084        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1085     fi ;;
1086   [\\/]* | ?:[\\/]* )  # Absolute path.
1087     ac_srcdir=$srcdir$ac_dir_suffix;
1088     ac_top_srcdir=$srcdir ;;
1089   *) # Relative path.
1090     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1091     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1092 esac
1093 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1094 # absolute.
1095 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1096 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1097 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1098 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1099
1100     cd $ac_dir
1101     # Check for guested configure; otherwise get Cygnus style configure.
1102     if test -f $ac_srcdir/configure.gnu; then
1103       echo
1104       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1105     elif test -f $ac_srcdir/configure; then
1106       echo
1107       $SHELL $ac_srcdir/configure  --help=recursive
1108     elif test -f $ac_srcdir/configure.ac ||
1109            test -f $ac_srcdir/configure.in; then
1110       echo
1111       $ac_configure --help
1112     else
1113       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1114     fi
1115     cd $ac_popdir
1116   done
1117 fi
1118
1119 test -n "$ac_init_help" && exit 0
1120 if $ac_init_version; then
1121   cat <<\_ACEOF
1122 libchise configure 0.2.0
1123 generated by GNU Autoconf 2.57
1124
1125 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1126 Free Software Foundation, Inc.
1127 This configure script is free software; the Free Software Foundation
1128 gives unlimited permission to copy, distribute and modify it.
1129 _ACEOF
1130   exit 0
1131 fi
1132 exec 5>config.log
1133 cat >&5 <<_ACEOF
1134 This file contains any messages produced by compilers while
1135 running configure, to aid debugging if configure makes a mistake.
1136
1137 It was created by libchise $as_me 0.2.0, which was
1138 generated by GNU Autoconf 2.57.  Invocation command line was
1139
1140   $ $0 $@
1141
1142 _ACEOF
1143 {
1144 cat <<_ASUNAME
1145 ## --------- ##
1146 ## Platform. ##
1147 ## --------- ##
1148
1149 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1150 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1151 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1152 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1153 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1154
1155 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1156 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1157
1158 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1159 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1160 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1161 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1162 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1163 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1164 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1165
1166 _ASUNAME
1167
1168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1169 for as_dir in $PATH
1170 do
1171   IFS=$as_save_IFS
1172   test -z "$as_dir" && as_dir=.
1173   echo "PATH: $as_dir"
1174 done
1175
1176 } >&5
1177
1178 cat >&5 <<_ACEOF
1179
1180
1181 ## ----------- ##
1182 ## Core tests. ##
1183 ## ----------- ##
1184
1185 _ACEOF
1186
1187
1188 # Keep a trace of the command line.
1189 # Strip out --no-create and --no-recursion so they do not pile up.
1190 # Strip out --silent because we don't want to record it for future runs.
1191 # Also quote any args containing shell meta-characters.
1192 # Make two passes to allow for proper duplicate-argument suppression.
1193 ac_configure_args=
1194 ac_configure_args0=
1195 ac_configure_args1=
1196 ac_sep=
1197 ac_must_keep_next=false
1198 for ac_pass in 1 2
1199 do
1200   for ac_arg
1201   do
1202     case $ac_arg in
1203     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1204     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205     | -silent | --silent | --silen | --sile | --sil)
1206       continue ;;
1207     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1208       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1209     esac
1210     case $ac_pass in
1211     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1212     2)
1213       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1214       if test $ac_must_keep_next = true; then
1215         ac_must_keep_next=false # Got value, back to normal.
1216       else
1217         case $ac_arg in
1218           *=* | --config-cache | -C | -disable-* | --disable-* \
1219           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1220           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1221           | -with-* | --with-* | -without-* | --without-* | --x)
1222             case "$ac_configure_args0 " in
1223               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1224             esac
1225             ;;
1226           -* ) ac_must_keep_next=true ;;
1227         esac
1228       fi
1229       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1230       # Get rid of the leading space.
1231       ac_sep=" "
1232       ;;
1233     esac
1234   done
1235 done
1236 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1237 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1238
1239 # When interrupted or exit'd, cleanup temporary files, and complete
1240 # config.log.  We remove comments because anyway the quotes in there
1241 # would cause problems or look ugly.
1242 # WARNING: Be sure not to use single quotes in there, as some shells,
1243 # such as our DU 5.0 friend, will then `close' the trap.
1244 trap 'exit_status=$?
1245   # Save into config.log some information that might help in debugging.
1246   {
1247     echo
1248
1249     cat <<\_ASBOX
1250 ## ---------------- ##
1251 ## Cache variables. ##
1252 ## ---------------- ##
1253 _ASBOX
1254     echo
1255     # The following way of writing the cache mishandles newlines in values,
1256 {
1257   (set) 2>&1 |
1258     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1259     *ac_space=\ *)
1260       sed -n \
1261         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1262           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1263       ;;
1264     *)
1265       sed -n \
1266         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1267       ;;
1268     esac;
1269 }
1270     echo
1271
1272     cat <<\_ASBOX
1273 ## ----------------- ##
1274 ## Output variables. ##
1275 ## ----------------- ##
1276 _ASBOX
1277     echo
1278     for ac_var in $ac_subst_vars
1279     do
1280       eval ac_val=$`echo $ac_var`
1281       echo "$ac_var='"'"'$ac_val'"'"'"
1282     done | sort
1283     echo
1284
1285     if test -n "$ac_subst_files"; then
1286       cat <<\_ASBOX
1287 ## ------------- ##
1288 ## Output files. ##
1289 ## ------------- ##
1290 _ASBOX
1291       echo
1292       for ac_var in $ac_subst_files
1293       do
1294         eval ac_val=$`echo $ac_var`
1295         echo "$ac_var='"'"'$ac_val'"'"'"
1296       done | sort
1297       echo
1298     fi
1299
1300     if test -s confdefs.h; then
1301       cat <<\_ASBOX
1302 ## ----------- ##
1303 ## confdefs.h. ##
1304 ## ----------- ##
1305 _ASBOX
1306       echo
1307       sed "/^$/d" confdefs.h | sort
1308       echo
1309     fi
1310     test "$ac_signal" != 0 &&
1311       echo "$as_me: caught signal $ac_signal"
1312     echo "$as_me: exit $exit_status"
1313   } >&5
1314   rm -f core core.* *.core &&
1315   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1316     exit $exit_status
1317      ' 0
1318 for ac_signal in 1 2 13 15; do
1319   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1320 done
1321 ac_signal=0
1322
1323 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1324 rm -rf conftest* confdefs.h
1325 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1326 echo >confdefs.h
1327
1328 # Predefined preprocessor variables.
1329
1330 cat >>confdefs.h <<_ACEOF
1331 #define PACKAGE_NAME "$PACKAGE_NAME"
1332 _ACEOF
1333
1334
1335 cat >>confdefs.h <<_ACEOF
1336 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1337 _ACEOF
1338
1339
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1342 _ACEOF
1343
1344
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_STRING "$PACKAGE_STRING"
1347 _ACEOF
1348
1349
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1352 _ACEOF
1353
1354
1355 # Let the site file select an alternate cache file if it wants to.
1356 # Prefer explicitly selected file to automatically selected ones.
1357 if test -z "$CONFIG_SITE"; then
1358   if test "x$prefix" != xNONE; then
1359     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1360   else
1361     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1362   fi
1363 fi
1364 for ac_site_file in $CONFIG_SITE; do
1365   if test -r "$ac_site_file"; then
1366     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1367 echo "$as_me: loading site script $ac_site_file" >&6;}
1368     sed 's/^/| /' "$ac_site_file" >&5
1369     . "$ac_site_file"
1370   fi
1371 done
1372
1373 if test -r "$cache_file"; then
1374   # Some versions of bash will fail to source /dev/null (special
1375   # files actually), so we avoid doing that.
1376   if test -f "$cache_file"; then
1377     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1378 echo "$as_me: loading cache $cache_file" >&6;}
1379     case $cache_file in
1380       [\\/]* | ?:[\\/]* ) . $cache_file;;
1381       *)                      . ./$cache_file;;
1382     esac
1383   fi
1384 else
1385   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1386 echo "$as_me: creating cache $cache_file" >&6;}
1387   >$cache_file
1388 fi
1389
1390 # Check that the precious variables saved in the cache have kept the same
1391 # value.
1392 ac_cache_corrupted=false
1393 for ac_var in `(set) 2>&1 |
1394                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1395   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1396   eval ac_new_set=\$ac_env_${ac_var}_set
1397   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1398   eval ac_new_val="\$ac_env_${ac_var}_value"
1399   case $ac_old_set,$ac_new_set in
1400     set,)
1401       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1402 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1403       ac_cache_corrupted=: ;;
1404     ,set)
1405       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1406 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1407       ac_cache_corrupted=: ;;
1408     ,);;
1409     *)
1410       if test "x$ac_old_val" != "x$ac_new_val"; then
1411         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1412 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1413         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1414 echo "$as_me:   former value:  $ac_old_val" >&2;}
1415         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1416 echo "$as_me:   current value: $ac_new_val" >&2;}
1417         ac_cache_corrupted=:
1418       fi;;
1419   esac
1420   # Pass precious variables to config.status.
1421   if test "$ac_new_set" = set; then
1422     case $ac_new_val in
1423     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1424       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1425     *) ac_arg=$ac_var=$ac_new_val ;;
1426     esac
1427     case " $ac_configure_args " in
1428       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1429       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1430     esac
1431   fi
1432 done
1433 if $ac_cache_corrupted; then
1434   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1435 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1436   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1437 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1438    { (exit 1); exit 1; }; }
1439 fi
1440
1441 ac_ext=c
1442 ac_cpp='$CPP $CPPFLAGS'
1443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474           ac_config_headers="$ac_config_headers config.h"
1475
1476
1477 ac_aux_dir=
1478 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1479   if test -f $ac_dir/install-sh; then
1480     ac_aux_dir=$ac_dir
1481     ac_install_sh="$ac_aux_dir/install-sh -c"
1482     break
1483   elif test -f $ac_dir/install.sh; then
1484     ac_aux_dir=$ac_dir
1485     ac_install_sh="$ac_aux_dir/install.sh -c"
1486     break
1487   elif test -f $ac_dir/shtool; then
1488     ac_aux_dir=$ac_dir
1489     ac_install_sh="$ac_aux_dir/shtool install -c"
1490     break
1491   fi
1492 done
1493 if test -z "$ac_aux_dir"; then
1494   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1495 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1496    { (exit 1); exit 1; }; }
1497 fi
1498 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1499 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1500 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1501
1502 # Make sure we can run config.sub.
1503 $ac_config_sub sun4 >/dev/null 2>&1 ||
1504   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1505 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1506    { (exit 1); exit 1; }; }
1507
1508 echo "$as_me:$LINENO: checking build system type" >&5
1509 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1510 if test "${ac_cv_build+set}" = set; then
1511   echo $ECHO_N "(cached) $ECHO_C" >&6
1512 else
1513   ac_cv_build_alias=$build_alias
1514 test -z "$ac_cv_build_alias" &&
1515   ac_cv_build_alias=`$ac_config_guess`
1516 test -z "$ac_cv_build_alias" &&
1517   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1518 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1519    { (exit 1); exit 1; }; }
1520 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1521   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1522 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1523    { (exit 1); exit 1; }; }
1524
1525 fi
1526 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1527 echo "${ECHO_T}$ac_cv_build" >&6
1528 build=$ac_cv_build
1529 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1532
1533
1534 echo "$as_me:$LINENO: checking host system type" >&5
1535 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1536 if test "${ac_cv_host+set}" = set; then
1537   echo $ECHO_N "(cached) $ECHO_C" >&6
1538 else
1539   ac_cv_host_alias=$host_alias
1540 test -z "$ac_cv_host_alias" &&
1541   ac_cv_host_alias=$ac_cv_build_alias
1542 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1543   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1544 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1545    { (exit 1); exit 1; }; }
1546
1547 fi
1548 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1549 echo "${ECHO_T}$ac_cv_host" >&6
1550 host=$ac_cv_host
1551 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1552 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1553 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1554
1555
1556 echo "$as_me:$LINENO: checking target system type" >&5
1557 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1558 if test "${ac_cv_target+set}" = set; then
1559   echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561   ac_cv_target_alias=$target_alias
1562 test "x$ac_cv_target_alias" = "x" &&
1563   ac_cv_target_alias=$ac_cv_host_alias
1564 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1565   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1566 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1567    { (exit 1); exit 1; }; }
1568
1569 fi
1570 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1571 echo "${ECHO_T}$ac_cv_target" >&6
1572 target=$ac_cv_target
1573 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
1577
1578 # The aliases save the names the user supplied, while $host etc.
1579 # will get canonicalized.
1580 test -n "$target_alias" &&
1581   test "$program_prefix$program_suffix$program_transform_name" = \
1582     NONENONEs,x,x, &&
1583   program_prefix=${target_alias}-
1584
1585 # Checks for programs.
1586 ac_ext=c
1587 ac_cpp='$CPP $CPPFLAGS'
1588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1591 if test -n "$ac_tool_prefix"; then
1592   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1593 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_CC+set}" = set; then
1597   echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599   if test -n "$CC"; then
1600   ac_cv_prog_CC="$CC" # Let the user override the test.
1601 else
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605   IFS=$as_save_IFS
1606   test -z "$as_dir" && as_dir=.
1607   for ac_exec_ext in '' $ac_executable_extensions; do
1608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611     break 2
1612   fi
1613 done
1614 done
1615
1616 fi
1617 fi
1618 CC=$ac_cv_prog_CC
1619 if test -n "$CC"; then
1620   echo "$as_me:$LINENO: result: $CC" >&5
1621 echo "${ECHO_T}$CC" >&6
1622 else
1623   echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1625 fi
1626
1627 fi
1628 if test -z "$ac_cv_prog_CC"; then
1629   ac_ct_CC=$CC
1630   # Extract the first word of "gcc", so it can be a program name with args.
1631 set dummy gcc; ac_word=$2
1632 echo "$as_me:$LINENO: checking for $ac_word" >&5
1633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1634 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1635   echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637   if test -n "$ac_ct_CC"; then
1638   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1639 else
1640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 for as_dir in $PATH
1642 do
1643   IFS=$as_save_IFS
1644   test -z "$as_dir" && as_dir=.
1645   for ac_exec_ext in '' $ac_executable_extensions; do
1646   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1647     ac_cv_prog_ac_ct_CC="gcc"
1648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1649     break 2
1650   fi
1651 done
1652 done
1653
1654 fi
1655 fi
1656 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1657 if test -n "$ac_ct_CC"; then
1658   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1659 echo "${ECHO_T}$ac_ct_CC" >&6
1660 else
1661   echo "$as_me:$LINENO: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1663 fi
1664
1665   CC=$ac_ct_CC
1666 else
1667   CC="$ac_cv_prog_CC"
1668 fi
1669
1670 if test -z "$CC"; then
1671   if test -n "$ac_tool_prefix"; then
1672   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1673 set dummy ${ac_tool_prefix}cc; ac_word=$2
1674 echo "$as_me:$LINENO: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_CC+set}" = set; then
1677   echo $ECHO_N "(cached) $ECHO_C" >&6
1678 else
1679   if test -n "$CC"; then
1680   ac_cv_prog_CC="$CC" # Let the user override the test.
1681 else
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 for as_dir in $PATH
1684 do
1685   IFS=$as_save_IFS
1686   test -z "$as_dir" && as_dir=.
1687   for ac_exec_ext in '' $ac_executable_extensions; do
1688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689     ac_cv_prog_CC="${ac_tool_prefix}cc"
1690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691     break 2
1692   fi
1693 done
1694 done
1695
1696 fi
1697 fi
1698 CC=$ac_cv_prog_CC
1699 if test -n "$CC"; then
1700   echo "$as_me:$LINENO: result: $CC" >&5
1701 echo "${ECHO_T}$CC" >&6
1702 else
1703   echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1705 fi
1706
1707 fi
1708 if test -z "$ac_cv_prog_CC"; then
1709   ac_ct_CC=$CC
1710   # Extract the first word of "cc", so it can be a program name with args.
1711 set dummy cc; ac_word=$2
1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1715   echo $ECHO_N "(cached) $ECHO_C" >&6
1716 else
1717   if test -n "$ac_ct_CC"; then
1718   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1719 else
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 for as_dir in $PATH
1722 do
1723   IFS=$as_save_IFS
1724   test -z "$as_dir" && as_dir=.
1725   for ac_exec_ext in '' $ac_executable_extensions; do
1726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727     ac_cv_prog_ac_ct_CC="cc"
1728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729     break 2
1730   fi
1731 done
1732 done
1733
1734 fi
1735 fi
1736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1737 if test -n "$ac_ct_CC"; then
1738   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1739 echo "${ECHO_T}$ac_ct_CC" >&6
1740 else
1741   echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1743 fi
1744
1745   CC=$ac_ct_CC
1746 else
1747   CC="$ac_cv_prog_CC"
1748 fi
1749
1750 fi
1751 if test -z "$CC"; then
1752   # Extract the first word of "cc", so it can be a program name with args.
1753 set dummy cc; ac_word=$2
1754 echo "$as_me:$LINENO: checking for $ac_word" >&5
1755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1756 if test "${ac_cv_prog_CC+set}" = set; then
1757   echo $ECHO_N "(cached) $ECHO_C" >&6
1758 else
1759   if test -n "$CC"; then
1760   ac_cv_prog_CC="$CC" # Let the user override the test.
1761 else
1762   ac_prog_rejected=no
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1765 do
1766   IFS=$as_save_IFS
1767   test -z "$as_dir" && as_dir=.
1768   for ac_exec_ext in '' $ac_executable_extensions; do
1769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1771        ac_prog_rejected=yes
1772        continue
1773      fi
1774     ac_cv_prog_CC="cc"
1775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1776     break 2
1777   fi
1778 done
1779 done
1780
1781 if test $ac_prog_rejected = yes; then
1782   # We found a bogon in the path, so make sure we never use it.
1783   set dummy $ac_cv_prog_CC
1784   shift
1785   if test $# != 0; then
1786     # We chose a different compiler from the bogus one.
1787     # However, it has the same basename, so the bogon will be chosen
1788     # first if we set CC to just the basename; use the full file name.
1789     shift
1790     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1791   fi
1792 fi
1793 fi
1794 fi
1795 CC=$ac_cv_prog_CC
1796 if test -n "$CC"; then
1797   echo "$as_me:$LINENO: result: $CC" >&5
1798 echo "${ECHO_T}$CC" >&6
1799 else
1800   echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1802 fi
1803
1804 fi
1805 if test -z "$CC"; then
1806   if test -n "$ac_tool_prefix"; then
1807   for ac_prog in cl
1808   do
1809     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1811 echo "$as_me:$LINENO: checking for $ac_word" >&5
1812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813 if test "${ac_cv_prog_CC+set}" = set; then
1814   echo $ECHO_N "(cached) $ECHO_C" >&6
1815 else
1816   if test -n "$CC"; then
1817   ac_cv_prog_CC="$CC" # Let the user override the test.
1818 else
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 for as_dir in $PATH
1821 do
1822   IFS=$as_save_IFS
1823   test -z "$as_dir" && as_dir=.
1824   for ac_exec_ext in '' $ac_executable_extensions; do
1825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828     break 2
1829   fi
1830 done
1831 done
1832
1833 fi
1834 fi
1835 CC=$ac_cv_prog_CC
1836 if test -n "$CC"; then
1837   echo "$as_me:$LINENO: result: $CC" >&5
1838 echo "${ECHO_T}$CC" >&6
1839 else
1840   echo "$as_me:$LINENO: result: no" >&5
1841 echo "${ECHO_T}no" >&6
1842 fi
1843
1844     test -n "$CC" && break
1845   done
1846 fi
1847 if test -z "$CC"; then
1848   ac_ct_CC=$CC
1849   for ac_prog in cl
1850 do
1851   # Extract the first word of "$ac_prog", so it can be a program name with args.
1852 set dummy $ac_prog; ac_word=$2
1853 echo "$as_me:$LINENO: checking for $ac_word" >&5
1854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1856   echo $ECHO_N "(cached) $ECHO_C" >&6
1857 else
1858   if test -n "$ac_ct_CC"; then
1859   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1860 else
1861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 for as_dir in $PATH
1863 do
1864   IFS=$as_save_IFS
1865   test -z "$as_dir" && as_dir=.
1866   for ac_exec_ext in '' $ac_executable_extensions; do
1867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868     ac_cv_prog_ac_ct_CC="$ac_prog"
1869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870     break 2
1871   fi
1872 done
1873 done
1874
1875 fi
1876 fi
1877 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1878 if test -n "$ac_ct_CC"; then
1879   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1880 echo "${ECHO_T}$ac_ct_CC" >&6
1881 else
1882   echo "$as_me:$LINENO: result: no" >&5
1883 echo "${ECHO_T}no" >&6
1884 fi
1885
1886   test -n "$ac_ct_CC" && break
1887 done
1888
1889   CC=$ac_ct_CC
1890 fi
1891
1892 fi
1893
1894
1895 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1896 See \`config.log' for more details." >&5
1897 echo "$as_me: error: no acceptable C compiler found in \$PATH
1898 See \`config.log' for more details." >&2;}
1899    { (exit 1); exit 1; }; }
1900
1901 # Provide some information about the compiler.
1902 echo "$as_me:$LINENO:" \
1903      "checking for C compiler version" >&5
1904 ac_compiler=`set X $ac_compile; echo $2`
1905 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1906   (eval $ac_compiler --version </dev/null >&5) 2>&5
1907   ac_status=$?
1908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909   (exit $ac_status); }
1910 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1911   (eval $ac_compiler -v </dev/null >&5) 2>&5
1912   ac_status=$?
1913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914   (exit $ac_status); }
1915 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1916   (eval $ac_compiler -V </dev/null >&5) 2>&5
1917   ac_status=$?
1918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919   (exit $ac_status); }
1920
1921 cat >conftest.$ac_ext <<_ACEOF
1922 #line $LINENO "configure"
1923 /* confdefs.h.  */
1924 _ACEOF
1925 cat confdefs.h >>conftest.$ac_ext
1926 cat >>conftest.$ac_ext <<_ACEOF
1927 /* end confdefs.h.  */
1928
1929 int
1930 main ()
1931 {
1932
1933   ;
1934   return 0;
1935 }
1936 _ACEOF
1937 ac_clean_files_save=$ac_clean_files
1938 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1939 # Try to create an executable without -o first, disregard a.out.
1940 # It will help us diagnose broken compilers, and finding out an intuition
1941 # of exeext.
1942 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1943 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1944 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1945 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1946   (eval $ac_link_default) 2>&5
1947   ac_status=$?
1948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949   (exit $ac_status); }; then
1950   # Find the output, starting from the most likely.  This scheme is
1951 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1952 # resort.
1953
1954 # Be careful to initialize this variable, since it used to be cached.
1955 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1956 ac_cv_exeext=
1957 # b.out is created by i960 compilers.
1958 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1959 do
1960   test -f "$ac_file" || continue
1961   case $ac_file in
1962     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1963         ;;
1964     conftest.$ac_ext )
1965         # This is the source file.
1966         ;;
1967     [ab].out )
1968         # We found the default executable, but exeext='' is most
1969         # certainly right.
1970         break;;
1971     *.* )
1972         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1973         # FIXME: I believe we export ac_cv_exeext for Libtool,
1974         # but it would be cool to find out if it's true.  Does anybody
1975         # maintain Libtool? --akim.
1976         export ac_cv_exeext
1977         break;;
1978     * )
1979         break;;
1980   esac
1981 done
1982 else
1983   echo "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1985
1986 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1987 See \`config.log' for more details." >&5
1988 echo "$as_me: error: C compiler cannot create executables
1989 See \`config.log' for more details." >&2;}
1990    { (exit 77); exit 77; }; }
1991 fi
1992
1993 ac_exeext=$ac_cv_exeext
1994 echo "$as_me:$LINENO: result: $ac_file" >&5
1995 echo "${ECHO_T}$ac_file" >&6
1996
1997 # Check the compiler produces executables we can run.  If not, either
1998 # the compiler is broken, or we cross compile.
1999 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2000 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2001 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2002 # If not cross compiling, check that we can run a simple program.
2003 if test "$cross_compiling" != yes; then
2004   if { ac_try='./$ac_file'
2005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006   (eval $ac_try) 2>&5
2007   ac_status=$?
2008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009   (exit $ac_status); }; }; then
2010     cross_compiling=no
2011   else
2012     if test "$cross_compiling" = maybe; then
2013         cross_compiling=yes
2014     else
2015         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2016 If you meant to cross compile, use \`--host'.
2017 See \`config.log' for more details." >&5
2018 echo "$as_me: error: cannot run C compiled programs.
2019 If you meant to cross compile, use \`--host'.
2020 See \`config.log' for more details." >&2;}
2021    { (exit 1); exit 1; }; }
2022     fi
2023   fi
2024 fi
2025 echo "$as_me:$LINENO: result: yes" >&5
2026 echo "${ECHO_T}yes" >&6
2027
2028 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2029 ac_clean_files=$ac_clean_files_save
2030 # Check the compiler produces executables we can run.  If not, either
2031 # the compiler is broken, or we cross compile.
2032 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2033 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2034 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2035 echo "${ECHO_T}$cross_compiling" >&6
2036
2037 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2038 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2040   (eval $ac_link) 2>&5
2041   ac_status=$?
2042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043   (exit $ac_status); }; then
2044   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2045 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2046 # work properly (i.e., refer to `conftest.exe'), while it won't with
2047 # `rm'.
2048 for ac_file in conftest.exe conftest conftest.*; do
2049   test -f "$ac_file" || continue
2050   case $ac_file in
2051     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2052     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2053           export ac_cv_exeext
2054           break;;
2055     * ) break;;
2056   esac
2057 done
2058 else
2059   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2060 See \`config.log' for more details." >&5
2061 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2062 See \`config.log' for more details." >&2;}
2063    { (exit 1); exit 1; }; }
2064 fi
2065
2066 rm -f conftest$ac_cv_exeext
2067 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2068 echo "${ECHO_T}$ac_cv_exeext" >&6
2069
2070 rm -f conftest.$ac_ext
2071 EXEEXT=$ac_cv_exeext
2072 ac_exeext=$EXEEXT
2073 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2074 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2075 if test "${ac_cv_objext+set}" = set; then
2076   echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078   cat >conftest.$ac_ext <<_ACEOF
2079 #line $LINENO "configure"
2080 /* confdefs.h.  */
2081 _ACEOF
2082 cat confdefs.h >>conftest.$ac_ext
2083 cat >>conftest.$ac_ext <<_ACEOF
2084 /* end confdefs.h.  */
2085
2086 int
2087 main ()
2088 {
2089
2090   ;
2091   return 0;
2092 }
2093 _ACEOF
2094 rm -f conftest.o conftest.obj
2095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096   (eval $ac_compile) 2>&5
2097   ac_status=$?
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); }; then
2100   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2101   case $ac_file in
2102     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2103     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2104        break;;
2105   esac
2106 done
2107 else
2108   echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2110
2111 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2112 See \`config.log' for more details." >&5
2113 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2114 See \`config.log' for more details." >&2;}
2115    { (exit 1); exit 1; }; }
2116 fi
2117
2118 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2119 fi
2120 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2121 echo "${ECHO_T}$ac_cv_objext" >&6
2122 OBJEXT=$ac_cv_objext
2123 ac_objext=$OBJEXT
2124 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2125 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2126 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2127   echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129   cat >conftest.$ac_ext <<_ACEOF
2130 #line $LINENO "configure"
2131 /* confdefs.h.  */
2132 _ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h.  */
2136
2137 int
2138 main ()
2139 {
2140 #ifndef __GNUC__
2141        choke me
2142 #endif
2143
2144   ;
2145   return 0;
2146 }
2147 _ACEOF
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150   (eval $ac_compile) 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); } &&
2154          { ac_try='test -s conftest.$ac_objext'
2155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156   (eval $ac_try) 2>&5
2157   ac_status=$?
2158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159   (exit $ac_status); }; }; then
2160   ac_compiler_gnu=yes
2161 else
2162   echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2164
2165 ac_compiler_gnu=no
2166 fi
2167 rm -f conftest.$ac_objext conftest.$ac_ext
2168 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2169
2170 fi
2171 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2172 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2173 GCC=`test $ac_compiler_gnu = yes && echo yes`
2174 ac_test_CFLAGS=${CFLAGS+set}
2175 ac_save_CFLAGS=$CFLAGS
2176 CFLAGS="-g"
2177 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2178 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2179 if test "${ac_cv_prog_cc_g+set}" = set; then
2180   echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182   cat >conftest.$ac_ext <<_ACEOF
2183 #line $LINENO "configure"
2184 /* confdefs.h.  */
2185 _ACEOF
2186 cat confdefs.h >>conftest.$ac_ext
2187 cat >>conftest.$ac_ext <<_ACEOF
2188 /* end confdefs.h.  */
2189
2190 int
2191 main ()
2192 {
2193
2194   ;
2195   return 0;
2196 }
2197 _ACEOF
2198 rm -f conftest.$ac_objext
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200   (eval $ac_compile) 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); } &&
2204          { ac_try='test -s conftest.$ac_objext'
2205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206   (eval $ac_try) 2>&5
2207   ac_status=$?
2208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209   (exit $ac_status); }; }; then
2210   ac_cv_prog_cc_g=yes
2211 else
2212   echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214
2215 ac_cv_prog_cc_g=no
2216 fi
2217 rm -f conftest.$ac_objext conftest.$ac_ext
2218 fi
2219 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2220 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2221 if test "$ac_test_CFLAGS" = set; then
2222   CFLAGS=$ac_save_CFLAGS
2223 elif test $ac_cv_prog_cc_g = yes; then
2224   if test "$GCC" = yes; then
2225     CFLAGS="-g -O2"
2226   else
2227     CFLAGS="-g"
2228   fi
2229 else
2230   if test "$GCC" = yes; then
2231     CFLAGS="-O2"
2232   else
2233     CFLAGS=
2234   fi
2235 fi
2236 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2237 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2238 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2239   echo $ECHO_N "(cached) $ECHO_C" >&6
2240 else
2241   ac_cv_prog_cc_stdc=no
2242 ac_save_CC=$CC
2243 cat >conftest.$ac_ext <<_ACEOF
2244 #line $LINENO "configure"
2245 /* confdefs.h.  */
2246 _ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h.  */
2250 #include <stdarg.h>
2251 #include <stdio.h>
2252 #include <sys/types.h>
2253 #include <sys/stat.h>
2254 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2255 struct buf { int x; };
2256 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2257 static char *e (p, i)
2258      char **p;
2259      int i;
2260 {
2261   return p[i];
2262 }
2263 static char *f (char * (*g) (char **, int), char **p, ...)
2264 {
2265   char *s;
2266   va_list v;
2267   va_start (v,p);
2268   s = g (p, va_arg (v,int));
2269   va_end (v);
2270   return s;
2271 }
2272 int test (int i, double x);
2273 struct s1 {int (*f) (int a);};
2274 struct s2 {int (*f) (double a);};
2275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2276 int argc;
2277 char **argv;
2278 int
2279 main ()
2280 {
2281 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2282   ;
2283   return 0;
2284 }
2285 _ACEOF
2286 # Don't try gcc -ansi; that turns off useful extensions and
2287 # breaks some systems' header files.
2288 # AIX                   -qlanglvl=ansi
2289 # Ultrix and OSF/1      -std1
2290 # HP-UX 10.20 and later -Ae
2291 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2292 # SVR4                  -Xc -D__EXTENSIONS__
2293 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2294 do
2295   CC="$ac_save_CC $ac_arg"
2296   rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298   (eval $ac_compile) 2>&5
2299   ac_status=$?
2300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301   (exit $ac_status); } &&
2302          { ac_try='test -s conftest.$ac_objext'
2303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304   (eval $ac_try) 2>&5
2305   ac_status=$?
2306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307   (exit $ac_status); }; }; then
2308   ac_cv_prog_cc_stdc=$ac_arg
2309 break
2310 else
2311   echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2313
2314 fi
2315 rm -f conftest.$ac_objext
2316 done
2317 rm -f conftest.$ac_ext conftest.$ac_objext
2318 CC=$ac_save_CC
2319
2320 fi
2321
2322 case "x$ac_cv_prog_cc_stdc" in
2323   x|xno)
2324     echo "$as_me:$LINENO: result: none needed" >&5
2325 echo "${ECHO_T}none needed" >&6 ;;
2326   *)
2327     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2328 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2329     CC="$CC $ac_cv_prog_cc_stdc" ;;
2330 esac
2331
2332 # Some people use a C++ compiler to compile C.  Since we use `exit',
2333 # in C++ we need to declare it.  In case someone uses the same compiler
2334 # for both compiling C and C++ we need to have the C++ compiler decide
2335 # the declaration of exit, since it's the most demanding environment.
2336 cat >conftest.$ac_ext <<_ACEOF
2337 #ifndef __cplusplus
2338   choke me
2339 #endif
2340 _ACEOF
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343   (eval $ac_compile) 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); } &&
2347          { ac_try='test -s conftest.$ac_objext'
2348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349   (eval $ac_try) 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }; }; then
2353   for ac_declaration in \
2354    ''\
2355    '#include <stdlib.h>' \
2356    'extern "C" void std::exit (int) throw (); using std::exit;' \
2357    'extern "C" void std::exit (int); using std::exit;' \
2358    'extern "C" void exit (int) throw ();' \
2359    'extern "C" void exit (int);' \
2360    'void exit (int);'
2361 do
2362   cat >conftest.$ac_ext <<_ACEOF
2363 #line $LINENO "configure"
2364 /* confdefs.h.  */
2365 _ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h.  */
2369 #include <stdlib.h>
2370 $ac_declaration
2371 int
2372 main ()
2373 {
2374 exit (42);
2375   ;
2376   return 0;
2377 }
2378 _ACEOF
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381   (eval $ac_compile) 2>&5
2382   ac_status=$?
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); } &&
2385          { ac_try='test -s conftest.$ac_objext'
2386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387   (eval $ac_try) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); }; }; then
2391   :
2392 else
2393   echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396 continue
2397 fi
2398 rm -f conftest.$ac_objext conftest.$ac_ext
2399   cat >conftest.$ac_ext <<_ACEOF
2400 #line $LINENO "configure"
2401 /* confdefs.h.  */
2402 _ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h.  */
2406 $ac_declaration
2407 int
2408 main ()
2409 {
2410 exit (42);
2411   ;
2412   return 0;
2413 }
2414 _ACEOF
2415 rm -f conftest.$ac_objext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417   (eval $ac_compile) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); } &&
2421          { ac_try='test -s conftest.$ac_objext'
2422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423   (eval $ac_try) 2>&5
2424   ac_status=$?
2425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426   (exit $ac_status); }; }; then
2427   break
2428 else
2429   echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2431
2432 fi
2433 rm -f conftest.$ac_objext conftest.$ac_ext
2434 done
2435 rm -f conftest*
2436 if test -n "$ac_declaration"; then
2437   echo '#ifdef __cplusplus' >>confdefs.h
2438   echo $ac_declaration      >>confdefs.h
2439   echo '#endif'             >>confdefs.h
2440 fi
2441
2442 else
2443   echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2445
2446 fi
2447 rm -f conftest.$ac_objext conftest.$ac_ext
2448 ac_ext=c
2449 ac_cpp='$CPP $CPPFLAGS'
2450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2453
2454 # Check whether --enable-shared or --disable-shared was given.
2455 if test "${enable_shared+set}" = set; then
2456   enableval="$enable_shared"
2457   p=${PACKAGE-default}
2458     case $enableval in
2459     yes) enable_shared=yes ;;
2460     no) enable_shared=no ;;
2461     *)
2462       enable_shared=no
2463       # Look at the argument we got.  We use all the common list separators.
2464       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2465       for pkg in $enableval; do
2466         IFS="$lt_save_ifs"
2467         if test "X$pkg" = "X$p"; then
2468           enable_shared=yes
2469         fi
2470       done
2471       IFS="$lt_save_ifs"
2472       ;;
2473     esac
2474 else
2475   enable_shared=yes
2476 fi;
2477
2478 # Check whether --enable-static or --disable-static was given.
2479 if test "${enable_static+set}" = set; then
2480   enableval="$enable_static"
2481   p=${PACKAGE-default}
2482     case $enableval in
2483     yes) enable_static=yes ;;
2484     no) enable_static=no ;;
2485     *)
2486      enable_static=no
2487       # Look at the argument we got.  We use all the common list separators.
2488       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2489       for pkg in $enableval; do
2490         IFS="$lt_save_ifs"
2491         if test "X$pkg" = "X$p"; then
2492           enable_static=yes
2493         fi
2494       done
2495       IFS="$lt_save_ifs"
2496       ;;
2497     esac
2498 else
2499   enable_static=yes
2500 fi;
2501
2502 # Check whether --enable-fast-install or --disable-fast-install was given.
2503 if test "${enable_fast_install+set}" = set; then
2504   enableval="$enable_fast_install"
2505   p=${PACKAGE-default}
2506     case $enableval in
2507     yes) enable_fast_install=yes ;;
2508     no) enable_fast_install=no ;;
2509     *)
2510       enable_fast_install=no
2511       # Look at the argument we got.  We use all the common list separators.
2512       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2513       for pkg in $enableval; do
2514         IFS="$lt_save_ifs"
2515         if test "X$pkg" = "X$p"; then
2516           enable_fast_install=yes
2517         fi
2518       done
2519       IFS="$lt_save_ifs"
2520       ;;
2521     esac
2522 else
2523   enable_fast_install=yes
2524 fi;
2525
2526 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2527 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2528 if test "${lt_cv_path_SED+set}" = set; then
2529   echo $ECHO_N "(cached) $ECHO_C" >&6
2530 else
2531   # Loop through the user's path and test for sed and gsed.
2532 # Then use that list of sed's as ones to test for truncation.
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536   IFS=$as_save_IFS
2537   test -z "$as_dir" && as_dir=.
2538   for lt_ac_prog in sed gsed; do
2539     for ac_exec_ext in '' $ac_executable_extensions; do
2540       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2541         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2542       fi
2543     done
2544   done
2545 done
2546 lt_ac_max=0
2547 lt_ac_count=0
2548 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2549 # along with /bin/sed that truncates output.
2550 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2551   test ! -f $lt_ac_sed && break
2552   cat /dev/null > conftest.in
2553   lt_ac_count=0
2554   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2555   # Check for GNU sed and select it if it is found.
2556   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2557     lt_cv_path_SED=$lt_ac_sed
2558     break
2559   fi
2560   while true; do
2561     cat conftest.in conftest.in >conftest.tmp
2562     mv conftest.tmp conftest.in
2563     cp conftest.in conftest.nl
2564     echo >>conftest.nl
2565     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2566     cmp -s conftest.out conftest.nl || break
2567     # 10000 chars as input seems more than enough
2568     test $lt_ac_count -gt 10 && break
2569     lt_ac_count=`expr $lt_ac_count + 1`
2570     if test $lt_ac_count -gt $lt_ac_max; then
2571       lt_ac_max=$lt_ac_count
2572       lt_cv_path_SED=$lt_ac_sed
2573     fi
2574   done
2575 done
2576 SED=$lt_cv_path_SED
2577
2578 fi
2579
2580 echo "$as_me:$LINENO: result: $SED" >&5
2581 echo "${ECHO_T}$SED" >&6
2582
2583 echo "$as_me:$LINENO: checking for egrep" >&5
2584 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2585 if test "${ac_cv_prog_egrep+set}" = set; then
2586   echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2589     then ac_cv_prog_egrep='grep -E'
2590     else ac_cv_prog_egrep='egrep'
2591     fi
2592 fi
2593 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2594 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2595  EGREP=$ac_cv_prog_egrep
2596
2597
2598
2599 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2600 if test "${with_gnu_ld+set}" = set; then
2601   withval="$with_gnu_ld"
2602   test "$withval" = no || with_gnu_ld=yes
2603 else
2604   with_gnu_ld=no
2605 fi;
2606 ac_prog=ld
2607 if test "$GCC" = yes; then
2608   # Check if gcc -print-prog-name=ld gives a path.
2609   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2610 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2611   case $host in
2612   *-*-mingw*)
2613     # gcc leaves a trailing carriage return which upsets mingw
2614     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2615   *)
2616     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2617   esac
2618   case $ac_prog in
2619     # Accept absolute paths.
2620     [\\/]* | ?:[\\/]*)
2621       re_direlt='/[^/][^/]*/\.\./'
2622       # Canonicalize the pathname of ld
2623       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2624       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2625         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2626       done
2627       test -z "$LD" && LD="$ac_prog"
2628       ;;
2629   "")
2630     # If it fails, then pretend we aren't using GCC.
2631     ac_prog=ld
2632     ;;
2633   *)
2634     # If it is relative, then search for the first ld in PATH.
2635     with_gnu_ld=unknown
2636     ;;
2637   esac
2638 elif test "$with_gnu_ld" = yes; then
2639   echo "$as_me:$LINENO: checking for GNU ld" >&5
2640 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2641 else
2642   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2643 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2644 fi
2645 if test "${lt_cv_path_LD+set}" = set; then
2646   echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648   if test -z "$LD"; then
2649   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2650   for ac_dir in $PATH; do
2651     IFS="$lt_save_ifs"
2652     test -z "$ac_dir" && ac_dir=.
2653     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2654       lt_cv_path_LD="$ac_dir/$ac_prog"
2655       # Check to see if the program is GNU ld.  I'd rather use --version,
2656       # but apparently some GNU ld's only accept -v.
2657       # Break only if it was the GNU/non-GNU ld that we prefer.
2658       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2659       *GNU* | *'with BFD'*)
2660         test "$with_gnu_ld" != no && break
2661         ;;
2662       *)
2663         test "$with_gnu_ld" != yes && break
2664         ;;
2665       esac
2666     fi
2667   done
2668   IFS="$lt_save_ifs"
2669 else
2670   lt_cv_path_LD="$LD" # Let the user override the test with a path.
2671 fi
2672 fi
2673
2674 LD="$lt_cv_path_LD"
2675 if test -n "$LD"; then
2676   echo "$as_me:$LINENO: result: $LD" >&5
2677 echo "${ECHO_T}$LD" >&6
2678 else
2679   echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6
2681 fi
2682 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2683 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2684    { (exit 1); exit 1; }; }
2685 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2686 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2687 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2688   echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2691 case `$LD -v 2>&1 </dev/null` in
2692 *GNU* | *'with BFD'*)
2693   lt_cv_prog_gnu_ld=yes
2694   ;;
2695 *)
2696   lt_cv_prog_gnu_ld=no
2697   ;;
2698 esac
2699 fi
2700 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2701 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2702 with_gnu_ld=$lt_cv_prog_gnu_ld
2703
2704
2705 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2706 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2707 if test "${lt_cv_ld_reload_flag+set}" = set; then
2708   echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710   lt_cv_ld_reload_flag='-r'
2711 fi
2712 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2713 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2714 reload_flag=$lt_cv_ld_reload_flag
2715 case $reload_flag in
2716 "" | " "*) ;;
2717 *) reload_flag=" $reload_flag" ;;
2718 esac
2719 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2720
2721 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2722 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2723 if test "${lt_cv_path_NM+set}" = set; then
2724   echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726   if test -n "$NM"; then
2727   # Let the user override the test.
2728   lt_cv_path_NM="$NM"
2729 else
2730   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2731   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2732     IFS="$lt_save_ifs"
2733     test -z "$ac_dir" && ac_dir=.
2734     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2735     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2736       # Check to see if the nm accepts a BSD-compat flag.
2737       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2738       #   nm: unknown option "B" ignored
2739       # Tru64's nm complains that /dev/null is an invalid object file
2740       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2741       */dev/null* | *'Invalid file or object type'*)
2742         lt_cv_path_NM="$tmp_nm -B"
2743         break
2744         ;;
2745       *)
2746         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2747         */dev/null*)
2748           lt_cv_path_NM="$tmp_nm -p"
2749           break
2750           ;;
2751         *)
2752           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2753           continue # so that we can try to find one that supports BSD flags
2754           ;;
2755         esac
2756       esac
2757     fi
2758   done
2759   IFS="$lt_save_ifs"
2760   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2761 fi
2762 fi
2763 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2764 echo "${ECHO_T}$lt_cv_path_NM" >&6
2765 NM="$lt_cv_path_NM"
2766
2767 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2768 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2769 LN_S=$as_ln_s
2770 if test "$LN_S" = "ln -s"; then
2771   echo "$as_me:$LINENO: result: yes" >&5
2772 echo "${ECHO_T}yes" >&6
2773 else
2774   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2775 echo "${ECHO_T}no, using $LN_S" >&6
2776 fi
2777
2778 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2779 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2780 if test "${lt_cv_deplibs_check_method+set}" = set; then
2781   echo $ECHO_N "(cached) $ECHO_C" >&6
2782 else
2783   lt_cv_file_magic_cmd='$MAGIC_CMD'
2784 lt_cv_file_magic_test_file=
2785 lt_cv_deplibs_check_method='unknown'
2786 # Need to set the preceding variable on all platforms that support
2787 # interlibrary dependencies.
2788 # 'none' -- dependencies not supported.
2789 # `unknown' -- same as none, but documents that we really don't know.
2790 # 'pass_all' -- all dependencies passed with no checks.
2791 # 'test_compile' -- check by making test program.
2792 # 'file_magic [[regex]]' -- check by looking for files in library path
2793 # which responds to the $file_magic_cmd with a given extended regex.
2794 # If you have `file' or equivalent on your system and you're not sure
2795 # whether `pass_all' will *always* work, you probably want this one.
2796
2797 case $host_os in
2798 aix4* | aix5*)
2799   lt_cv_deplibs_check_method=pass_all
2800   ;;
2801
2802 beos*)
2803   lt_cv_deplibs_check_method=pass_all
2804   ;;
2805
2806 bsdi4*)
2807   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2808   lt_cv_file_magic_cmd='/usr/bin/file -L'
2809   lt_cv_file_magic_test_file=/shlib/libc.so
2810   ;;
2811
2812 cygwin* | mingw* | pw32*)
2813   # win32_libid is a shell function defined in ltmain.sh
2814   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2815   lt_cv_file_magic_cmd='win32_libid'
2816   ;;
2817
2818 darwin* | rhapsody*)
2819   # this will be overwritten by pass_all, but leave it in just in case
2820   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2821   lt_cv_file_magic_cmd='/usr/bin/file -L'
2822   case "$host_os" in
2823   rhapsody* | darwin1.[012])
2824     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
2825     ;;
2826   *) # Darwin 1.3 on
2827     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2828     ;;
2829   esac
2830   lt_cv_deplibs_check_method=pass_all
2831   ;;
2832
2833 freebsd* | kfreebsd*-gnu)
2834   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2835     case $host_cpu in
2836     i*86 )
2837       # Not sure whether the presence of OpenBSD here was a mistake.
2838       # Let's accept both of them until this is cleared up.
2839       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2840       lt_cv_file_magic_cmd=/usr/bin/file
2841       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2842       ;;
2843     esac
2844   else
2845     lt_cv_deplibs_check_method=pass_all
2846   fi
2847   ;;
2848
2849 gnu*)
2850   lt_cv_deplibs_check_method=pass_all
2851   ;;
2852
2853 hpux10.20* | hpux11*)
2854   lt_cv_file_magic_cmd=/usr/bin/file
2855   case "$host_cpu" in
2856   ia64*)
2857     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2858     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2859     ;;
2860   hppa*64*)
2861     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]'
2862     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2863     ;;
2864   *)
2865     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2866     lt_cv_file_magic_test_file=/usr/lib/libc.sl
2867     ;;
2868   esac
2869   ;;
2870
2871 irix5* | irix6* | nonstopux*)
2872   case $host_os in
2873   irix5* | nonstopux*)
2874     # this will be overridden with pass_all, but let us keep it just in case
2875     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2876     ;;
2877   *)
2878     case $LD in
2879     *-32|*"-32 ") libmagic=32-bit;;
2880     *-n32|*"-n32 ") libmagic=N32;;
2881     *-64|*"-64 ") libmagic=64-bit;;
2882     *) libmagic=never-match;;
2883     esac
2884     # this will be overridden with pass_all, but let us keep it just in case
2885     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2886     ;;
2887   esac
2888   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2889   lt_cv_deplibs_check_method=pass_all
2890   ;;
2891
2892 # This must be Linux ELF.
2893 linux*)
2894   # linux always uses pass_all now, this code is the old way (tm)
2895   case $host_cpu in
2896   alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
2897     lt_cv_deplibs_check_method=pass_all ;;
2898   *)
2899     # glibc up to 2.1.1 does not perform some relocations on ARM
2900     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2901   esac
2902   lt_cv_deplibs_check_method=pass_all
2903   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2904   ;;
2905
2906 netbsd*)
2907   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2908     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2909   else
2910     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
2911   fi
2912   ;;
2913
2914 newos6*)
2915   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2916   lt_cv_file_magic_cmd=/usr/bin/file
2917   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2918   ;;
2919
2920 nto-qnx*)
2921   lt_cv_deplibs_check_method=unknown
2922   ;;
2923
2924 openbsd*)
2925   lt_cv_file_magic_cmd=/usr/bin/file
2926   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2927   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2928     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2929   else
2930     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2931   fi
2932   ;;
2933
2934 osf3* | osf4* | osf5*)
2935   # this will be overridden with pass_all, but let us keep it just in case
2936   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2937   lt_cv_file_magic_test_file=/shlib/libc.so
2938   lt_cv_deplibs_check_method=pass_all
2939   ;;
2940
2941 sco3.2v5*)
2942   lt_cv_deplibs_check_method=pass_all
2943   ;;
2944
2945 solaris*)
2946   lt_cv_deplibs_check_method=pass_all
2947   lt_cv_file_magic_test_file=/lib/libc.so
2948   ;;
2949
2950 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2951   case $host_vendor in
2952   motorola)
2953     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]'
2954     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2955     ;;
2956   ncr)
2957     lt_cv_deplibs_check_method=pass_all
2958     ;;
2959   sequent)
2960     lt_cv_file_magic_cmd='/bin/file'
2961     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2962     ;;
2963   sni)
2964     lt_cv_file_magic_cmd='/bin/file'
2965     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2966     lt_cv_file_magic_test_file=/lib/libc.so
2967     ;;
2968   siemens)
2969     lt_cv_deplibs_check_method=pass_all
2970     ;;
2971   esac
2972   ;;
2973
2974 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
2975   lt_cv_deplibs_check_method=pass_all
2976   ;;
2977 esac
2978
2979 fi
2980 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
2981 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2982 file_magic_cmd=$lt_cv_file_magic_cmd
2983 deplibs_check_method=$lt_cv_deplibs_check_method
2984 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2985
2986
2987
2988
2989 # If no C compiler was specified, use CC.
2990 LTCC=${LTCC-"$CC"}
2991
2992 # Allow CC to be a program name with arguments.
2993 compiler=$CC
2994
2995
2996 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2997 if test "${enable_libtool_lock+set}" = set; then
2998   enableval="$enable_libtool_lock"
2999
3000 fi;
3001 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3002
3003 # Some flags need to be propagated to the compiler or linker for good
3004 # libtool support.
3005 case $host in
3006 ia64-*-hpux*)
3007   # Find out which ABI we are using.
3008   echo 'int i;' > conftest.$ac_ext
3009   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3010   (eval $ac_compile) 2>&5
3011   ac_status=$?
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); }; then
3014     case `/usr/bin/file conftest.$ac_objext` in
3015     *ELF-32*)
3016       HPUX_IA64_MODE="32"
3017       ;;
3018     *ELF-64*)
3019       HPUX_IA64_MODE="64"
3020       ;;
3021     esac
3022   fi
3023   rm -rf conftest*
3024   ;;
3025 *-*-irix6*)
3026   # Find out which ABI we are using.
3027   echo '#line 3027 "configure"' > conftest.$ac_ext
3028   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029   (eval $ac_compile) 2>&5
3030   ac_status=$?
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); }; then
3033    if test "$lt_cv_prog_gnu_ld" = yes; then
3034     case `/usr/bin/file conftest.$ac_objext` in
3035     *32-bit*)
3036       LD="${LD-ld} -melf32bsmip"
3037       ;;
3038     *N32*)
3039       LD="${LD-ld} -melf32bmipn32"
3040       ;;
3041     *64-bit*)
3042       LD="${LD-ld} -melf64bmip"
3043       ;;
3044     esac
3045    else
3046     case `/usr/bin/file conftest.$ac_objext` in
3047     *32-bit*)
3048       LD="${LD-ld} -32"
3049       ;;
3050     *N32*)
3051       LD="${LD-ld} -n32"
3052       ;;
3053     *64-bit*)
3054       LD="${LD-ld} -64"
3055       ;;
3056     esac
3057    fi
3058   fi
3059   rm -rf conftest*
3060   ;;
3061
3062 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3063   # Find out which ABI we are using.
3064   echo 'int i;' > conftest.$ac_ext
3065   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3066   (eval $ac_compile) 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); }; then
3070     case "`/usr/bin/file conftest.o`" in
3071     *32-bit*)
3072       case $host in
3073         x86_64-*linux*)
3074           LD="${LD-ld} -m elf_i386"
3075           ;;
3076         ppc64-*linux*|powerpc64-*linux*)
3077           LD="${LD-ld} -m elf32ppclinux"
3078           ;;
3079         s390x-*linux*)
3080           LD="${LD-ld} -m elf_s390"
3081           ;;
3082         sparc64-*linux*)
3083           LD="${LD-ld} -m elf32_sparc"
3084           ;;
3085       esac
3086       ;;
3087     *64-bit*)
3088       case $host in
3089         x86_64-*linux*)
3090           LD="${LD-ld} -m elf_x86_64"
3091           ;;
3092         ppc*-*linux*|powerpc*-*linux*)
3093           LD="${LD-ld} -m elf64ppc"
3094           ;;
3095         s390*-*linux*)
3096           LD="${LD-ld} -m elf64_s390"
3097           ;;
3098         sparc*-*linux*)
3099           LD="${LD-ld} -m elf64_sparc"
3100           ;;
3101       esac
3102       ;;
3103     esac
3104   fi
3105   rm -rf conftest*
3106   ;;
3107
3108 *-*-sco3.2v5*)
3109   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3110   SAVE_CFLAGS="$CFLAGS"
3111   CFLAGS="$CFLAGS -belf"
3112   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3113 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3114 if test "${lt_cv_cc_needs_belf+set}" = set; then
3115   echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117   ac_ext=c
3118 ac_cpp='$CPP $CPPFLAGS'
3119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122
3123      cat >conftest.$ac_ext <<_ACEOF
3124 #line $LINENO "configure"
3125 /* confdefs.h.  */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h.  */
3130
3131 int
3132 main ()
3133 {
3134
3135   ;
3136   return 0;
3137 }
3138 _ACEOF
3139 rm -f conftest.$ac_objext conftest$ac_exeext
3140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3141   (eval $ac_link) 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } &&
3145          { ac_try='test -s conftest$ac_exeext'
3146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147   (eval $ac_try) 2>&5
3148   ac_status=$?
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); }; }; then
3151   lt_cv_cc_needs_belf=yes
3152 else
3153   echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3155
3156 lt_cv_cc_needs_belf=no
3157 fi
3158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3159      ac_ext=c
3160 ac_cpp='$CPP $CPPFLAGS'
3161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164
3165 fi
3166 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3167 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3168   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3169     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3170     CFLAGS="$SAVE_CFLAGS"
3171   fi
3172   ;;
3173
3174 esac
3175
3176 need_locks="$enable_libtool_lock"
3177
3178
3179 ac_ext=c
3180 ac_cpp='$CPP $CPPFLAGS'
3181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3185 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3186 # On Suns, sometimes $CPP names a directory.
3187 if test -n "$CPP" && test -d "$CPP"; then
3188   CPP=
3189 fi
3190 if test -z "$CPP"; then
3191   if test "${ac_cv_prog_CPP+set}" = set; then
3192   echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194       # Double quotes because CPP needs to be expanded
3195     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3196     do
3197       ac_preproc_ok=false
3198 for ac_c_preproc_warn_flag in '' yes
3199 do
3200   # Use a header file that comes with gcc, so configuring glibc
3201   # with a fresh cross-compiler works.
3202   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3203   # <limits.h> exists even on freestanding compilers.
3204   # On the NeXT, cc -E runs the code through the compiler's parser,
3205   # not just through cpp. "Syntax error" is here to catch this case.
3206   cat >conftest.$ac_ext <<_ACEOF
3207 #line $LINENO "configure"
3208 /* confdefs.h.  */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h.  */
3213 #ifdef __STDC__
3214 # include <limits.h>
3215 #else
3216 # include <assert.h>
3217 #endif
3218                      Syntax error
3219 _ACEOF
3220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3221   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3222   ac_status=$?
3223   grep -v '^ *+' conftest.er1 >conftest.err
3224   rm -f conftest.er1
3225   cat conftest.err >&5
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); } >/dev/null; then
3228   if test -s conftest.err; then
3229     ac_cpp_err=$ac_c_preproc_warn_flag
3230   else
3231     ac_cpp_err=
3232   fi
3233 else
3234   ac_cpp_err=yes
3235 fi
3236 if test -z "$ac_cpp_err"; then
3237   :
3238 else
3239   echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3241
3242   # Broken: fails on valid input.
3243 continue
3244 fi
3245 rm -f conftest.err conftest.$ac_ext
3246
3247   # OK, works on sane cases.  Now check whether non-existent headers
3248   # can be detected and how.
3249   cat >conftest.$ac_ext <<_ACEOF
3250 #line $LINENO "configure"
3251 /* confdefs.h.  */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h.  */
3256 #include <ac_nonexistent.h>
3257 _ACEOF
3258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3259   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3260   ac_status=$?
3261   grep -v '^ *+' conftest.er1 >conftest.err
3262   rm -f conftest.er1
3263   cat conftest.err >&5
3264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265   (exit $ac_status); } >/dev/null; then
3266   if test -s conftest.err; then
3267     ac_cpp_err=$ac_c_preproc_warn_flag
3268   else
3269     ac_cpp_err=
3270   fi
3271 else
3272   ac_cpp_err=yes
3273 fi
3274 if test -z "$ac_cpp_err"; then
3275   # Broken: success on invalid input.
3276 continue
3277 else
3278   echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3280
3281   # Passes both tests.
3282 ac_preproc_ok=:
3283 break
3284 fi
3285 rm -f conftest.err conftest.$ac_ext
3286
3287 done
3288 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3289 rm -f conftest.err conftest.$ac_ext
3290 if $ac_preproc_ok; then
3291   break
3292 fi
3293
3294     done
3295     ac_cv_prog_CPP=$CPP
3296
3297 fi
3298   CPP=$ac_cv_prog_CPP
3299 else
3300   ac_cv_prog_CPP=$CPP
3301 fi
3302 echo "$as_me:$LINENO: result: $CPP" >&5
3303 echo "${ECHO_T}$CPP" >&6
3304 ac_preproc_ok=false
3305 for ac_c_preproc_warn_flag in '' yes
3306 do
3307   # Use a header file that comes with gcc, so configuring glibc
3308   # with a fresh cross-compiler works.
3309   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3310   # <limits.h> exists even on freestanding compilers.
3311   # On the NeXT, cc -E runs the code through the compiler's parser,
3312   # not just through cpp. "Syntax error" is here to catch this case.
3313   cat >conftest.$ac_ext <<_ACEOF
3314 #line $LINENO "configure"
3315 /* confdefs.h.  */
3316 _ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h.  */
3320 #ifdef __STDC__
3321 # include <limits.h>
3322 #else
3323 # include <assert.h>
3324 #endif
3325                      Syntax error
3326 _ACEOF
3327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3329   ac_status=$?
3330   grep -v '^ *+' conftest.er1 >conftest.err
3331   rm -f conftest.er1
3332   cat conftest.err >&5
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); } >/dev/null; then
3335   if test -s conftest.err; then
3336     ac_cpp_err=$ac_c_preproc_warn_flag
3337   else
3338     ac_cpp_err=
3339   fi
3340 else
3341   ac_cpp_err=yes
3342 fi
3343 if test -z "$ac_cpp_err"; then
3344   :
3345 else
3346   echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3348
3349   # Broken: fails on valid input.
3350 continue
3351 fi
3352 rm -f conftest.err conftest.$ac_ext
3353
3354   # OK, works on sane cases.  Now check whether non-existent headers
3355   # can be detected and how.
3356   cat >conftest.$ac_ext <<_ACEOF
3357 #line $LINENO "configure"
3358 /* confdefs.h.  */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h.  */
3363 #include <ac_nonexistent.h>
3364 _ACEOF
3365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3366   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3367   ac_status=$?
3368   grep -v '^ *+' conftest.er1 >conftest.err
3369   rm -f conftest.er1
3370   cat conftest.err >&5
3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372   (exit $ac_status); } >/dev/null; then
3373   if test -s conftest.err; then
3374     ac_cpp_err=$ac_c_preproc_warn_flag
3375   else
3376     ac_cpp_err=
3377   fi
3378 else
3379   ac_cpp_err=yes
3380 fi
3381 if test -z "$ac_cpp_err"; then
3382   # Broken: success on invalid input.
3383 continue
3384 else
3385   echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3387
3388   # Passes both tests.
3389 ac_preproc_ok=:
3390 break
3391 fi
3392 rm -f conftest.err conftest.$ac_ext
3393
3394 done
3395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3396 rm -f conftest.err conftest.$ac_ext
3397 if $ac_preproc_ok; then
3398   :
3399 else
3400   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3401 See \`config.log' for more details." >&5
3402 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3403 See \`config.log' for more details." >&2;}
3404    { (exit 1); exit 1; }; }
3405 fi
3406
3407 ac_ext=c
3408 ac_cpp='$CPP $CPPFLAGS'
3409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412
3413
3414 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3415 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3416 if test "${ac_cv_header_stdc+set}" = set; then
3417   echo $ECHO_N "(cached) $ECHO_C" >&6
3418 else
3419   cat >conftest.$ac_ext <<_ACEOF
3420 #line $LINENO "configure"
3421 /* confdefs.h.  */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h.  */
3426 #include <stdlib.h>
3427 #include <stdarg.h>
3428 #include <string.h>
3429 #include <float.h>
3430
3431 int
3432 main ()
3433 {
3434
3435   ;
3436   return 0;
3437 }
3438 _ACEOF
3439 rm -f conftest.$ac_objext
3440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441   (eval $ac_compile) 2>&5
3442   ac_status=$?
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } &&
3445          { ac_try='test -s conftest.$ac_objext'
3446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447   (eval $ac_try) 2>&5
3448   ac_status=$?
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); }; }; then
3451   ac_cv_header_stdc=yes
3452 else
3453   echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3455
3456 ac_cv_header_stdc=no
3457 fi
3458 rm -f conftest.$ac_objext conftest.$ac_ext
3459
3460 if test $ac_cv_header_stdc = yes; then
3461   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3462   cat >conftest.$ac_ext <<_ACEOF
3463 #line $LINENO "configure"
3464 /* confdefs.h.  */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h.  */
3469 #include <string.h>
3470
3471 _ACEOF
3472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3473   $EGREP "memchr" >/dev/null 2>&1; then
3474   :
3475 else
3476   ac_cv_header_stdc=no
3477 fi
3478 rm -f conftest*
3479
3480 fi
3481
3482 if test $ac_cv_header_stdc = yes; then
3483   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3484   cat >conftest.$ac_ext <<_ACEOF
3485 #line $LINENO "configure"
3486 /* confdefs.h.  */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h.  */
3491 #include <stdlib.h>
3492
3493 _ACEOF
3494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3495   $EGREP "free" >/dev/null 2>&1; then
3496   :
3497 else
3498   ac_cv_header_stdc=no
3499 fi
3500 rm -f conftest*
3501
3502 fi
3503
3504 if test $ac_cv_header_stdc = yes; then
3505   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3506   if test "$cross_compiling" = yes; then
3507   :
3508 else
3509   cat >conftest.$ac_ext <<_ACEOF
3510 #line $LINENO "configure"
3511 /* confdefs.h.  */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h.  */
3516 #include <ctype.h>
3517 #if ((' ' & 0x0FF) == 0x020)
3518 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3519 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3520 #else
3521 # define ISLOWER(c) \
3522                    (('a' <= (c) && (c) <= 'i') \
3523                      || ('j' <= (c) && (c) <= 'r') \
3524                      || ('s' <= (c) && (c) <= 'z'))
3525 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3526 #endif
3527
3528 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3529 int
3530 main ()
3531 {
3532   int i;
3533   for (i = 0; i < 256; i++)
3534     if (XOR (islower (i), ISLOWER (i))
3535         || toupper (i) != TOUPPER (i))
3536       exit(2);
3537   exit (0);
3538 }
3539 _ACEOF
3540 rm -f conftest$ac_exeext
3541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3542   (eval $ac_link) 2>&5
3543   ac_status=$?
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547   (eval $ac_try) 2>&5
3548   ac_status=$?
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); }; }; then
3551   :
3552 else
3553   echo "$as_me: program exited with status $ac_status" >&5
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 ( exit $ac_status )
3558 ac_cv_header_stdc=no
3559 fi
3560 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3561 fi
3562 fi
3563 fi
3564 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3565 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3566 if test $ac_cv_header_stdc = yes; then
3567
3568 cat >>confdefs.h <<\_ACEOF
3569 #define STDC_HEADERS 1
3570 _ACEOF
3571
3572 fi
3573
3574 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3585                   inttypes.h stdint.h unistd.h
3586 do
3587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3588 echo "$as_me:$LINENO: checking for $ac_header" >&5
3589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3591   echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593   cat >conftest.$ac_ext <<_ACEOF
3594 #line $LINENO "configure"
3595 /* confdefs.h.  */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h.  */
3600 $ac_includes_default
3601
3602 #include <$ac_header>
3603 _ACEOF
3604 rm -f conftest.$ac_objext
3605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606   (eval $ac_compile) 2>&5
3607   ac_status=$?
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); } &&
3610          { ac_try='test -s conftest.$ac_objext'
3611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612   (eval $ac_try) 2>&5
3613   ac_status=$?
3614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615   (exit $ac_status); }; }; then
3616   eval "$as_ac_Header=yes"
3617 else
3618   echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3620
3621 eval "$as_ac_Header=no"
3622 fi
3623 rm -f conftest.$ac_objext conftest.$ac_ext
3624 fi
3625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3628   cat >>confdefs.h <<_ACEOF
3629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3630 _ACEOF
3631
3632 fi
3633
3634 done
3635
3636
3637
3638 for ac_header in dlfcn.h
3639 do
3640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3642   echo "$as_me:$LINENO: checking for $ac_header" >&5
3643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3645   echo $ECHO_N "(cached) $ECHO_C" >&6
3646 fi
3647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3649 else
3650   # Is the header compilable?
3651 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3653 cat >conftest.$ac_ext <<_ACEOF
3654 #line $LINENO "configure"
3655 /* confdefs.h.  */
3656 _ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h.  */
3660 $ac_includes_default
3661 #include <$ac_header>
3662 _ACEOF
3663 rm -f conftest.$ac_objext
3664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3665   (eval $ac_compile) 2>&5
3666   ac_status=$?
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); } &&
3669          { ac_try='test -s conftest.$ac_objext'
3670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671   (eval $ac_try) 2>&5
3672   ac_status=$?
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); }; }; then
3675   ac_header_compiler=yes
3676 else
3677   echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3679
3680 ac_header_compiler=no
3681 fi
3682 rm -f conftest.$ac_objext conftest.$ac_ext
3683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3684 echo "${ECHO_T}$ac_header_compiler" >&6
3685
3686 # Is the header present?
3687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3689 cat >conftest.$ac_ext <<_ACEOF
3690 #line $LINENO "configure"
3691 /* confdefs.h.  */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h.  */
3696 #include <$ac_header>
3697 _ACEOF
3698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3699   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3700   ac_status=$?
3701   grep -v '^ *+' conftest.er1 >conftest.err
3702   rm -f conftest.er1
3703   cat conftest.err >&5
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); } >/dev/null; then
3706   if test -s conftest.err; then
3707     ac_cpp_err=$ac_c_preproc_warn_flag
3708   else
3709     ac_cpp_err=
3710   fi
3711 else
3712   ac_cpp_err=yes
3713 fi
3714 if test -z "$ac_cpp_err"; then
3715   ac_header_preproc=yes
3716 else
3717   echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3719
3720   ac_header_preproc=no
3721 fi
3722 rm -f conftest.err conftest.$ac_ext
3723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3724 echo "${ECHO_T}$ac_header_preproc" >&6
3725
3726 # So?  What about this header?
3727 case $ac_header_compiler:$ac_header_preproc in
3728   yes:no )
3729     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3733     (
3734       cat <<\_ASBOX
3735 ## ------------------------------------ ##
3736 ## Report this to bug-autoconf@gnu.org. ##
3737 ## ------------------------------------ ##
3738 _ASBOX
3739     ) |
3740       sed "s/^/$as_me: WARNING:     /" >&2
3741     ;;
3742   no:yes )
3743     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3745     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3749     (
3750       cat <<\_ASBOX
3751 ## ------------------------------------ ##
3752 ## Report this to bug-autoconf@gnu.org. ##
3753 ## ------------------------------------ ##
3754 _ASBOX
3755     ) |
3756       sed "s/^/$as_me: WARNING:     /" >&2
3757     ;;
3758 esac
3759 echo "$as_me:$LINENO: checking for $ac_header" >&5
3760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3762   echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764   eval "$as_ac_Header=$ac_header_preproc"
3765 fi
3766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3768
3769 fi
3770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3771   cat >>confdefs.h <<_ACEOF
3772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3773 _ACEOF
3774
3775 fi
3776
3777 done
3778
3779 ac_ext=cc
3780 ac_cpp='$CXXCPP $CPPFLAGS'
3781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3784 if test -n "$ac_tool_prefix"; then
3785   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3786   do
3787     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3788 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3789 echo "$as_me:$LINENO: checking for $ac_word" >&5
3790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3791 if test "${ac_cv_prog_CXX+set}" = set; then
3792   echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794   if test -n "$CXX"; then
3795   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3799 do
3800   IFS=$as_save_IFS
3801   test -z "$as_dir" && as_dir=.
3802   for ac_exec_ext in '' $ac_executable_extensions; do
3803   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3804     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3806     break 2
3807   fi
3808 done
3809 done
3810
3811 fi
3812 fi
3813 CXX=$ac_cv_prog_CXX
3814 if test -n "$CXX"; then
3815   echo "$as_me:$LINENO: result: $CXX" >&5
3816 echo "${ECHO_T}$CXX" >&6
3817 else
3818   echo "$as_me:$LINENO: result: no" >&5
3819 echo "${ECHO_T}no" >&6
3820 fi
3821
3822     test -n "$CXX" && break
3823   done
3824 fi
3825 if test -z "$CXX"; then
3826   ac_ct_CXX=$CXX
3827   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3828 do
3829   # Extract the first word of "$ac_prog", so it can be a program name with args.
3830 set dummy $ac_prog; ac_word=$2
3831 echo "$as_me:$LINENO: checking for $ac_word" >&5
3832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3833 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   if test -n "$ac_ct_CXX"; then
3837   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3841 do
3842   IFS=$as_save_IFS
3843   test -z "$as_dir" && as_dir=.
3844   for ac_exec_ext in '' $ac_executable_extensions; do
3845   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846     ac_cv_prog_ac_ct_CXX="$ac_prog"
3847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3848     break 2
3849   fi
3850 done
3851 done
3852
3853 fi
3854 fi
3855 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3856 if test -n "$ac_ct_CXX"; then
3857   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3858 echo "${ECHO_T}$ac_ct_CXX" >&6
3859 else
3860   echo "$as_me:$LINENO: result: no" >&5
3861 echo "${ECHO_T}no" >&6
3862 fi
3863
3864   test -n "$ac_ct_CXX" && break
3865 done
3866 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3867
3868   CXX=$ac_ct_CXX
3869 fi
3870
3871
3872 # Provide some information about the compiler.
3873 echo "$as_me:$LINENO:" \
3874      "checking for C++ compiler version" >&5
3875 ac_compiler=`set X $ac_compile; echo $2`
3876 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3877   (eval $ac_compiler --version </dev/null >&5) 2>&5
3878   ac_status=$?
3879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880   (exit $ac_status); }
3881 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3882   (eval $ac_compiler -v </dev/null >&5) 2>&5
3883   ac_status=$?
3884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885   (exit $ac_status); }
3886 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3887   (eval $ac_compiler -V </dev/null >&5) 2>&5
3888   ac_status=$?
3889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890   (exit $ac_status); }
3891
3892 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3893 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3894 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3895   echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897   cat >conftest.$ac_ext <<_ACEOF
3898 #line $LINENO "configure"
3899 /* confdefs.h.  */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h.  */
3904
3905 int
3906 main ()
3907 {
3908 #ifndef __GNUC__
3909        choke me
3910 #endif
3911
3912   ;
3913   return 0;
3914 }
3915 _ACEOF
3916 rm -f conftest.$ac_objext
3917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3918   (eval $ac_compile) 2>&5
3919   ac_status=$?
3920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921   (exit $ac_status); } &&
3922          { ac_try='test -s conftest.$ac_objext'
3923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924   (eval $ac_try) 2>&5
3925   ac_status=$?
3926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927   (exit $ac_status); }; }; then
3928   ac_compiler_gnu=yes
3929 else
3930   echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3932
3933 ac_compiler_gnu=no
3934 fi
3935 rm -f conftest.$ac_objext conftest.$ac_ext
3936 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3937
3938 fi
3939 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3940 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3941 GXX=`test $ac_compiler_gnu = yes && echo yes`
3942 ac_test_CXXFLAGS=${CXXFLAGS+set}
3943 ac_save_CXXFLAGS=$CXXFLAGS
3944 CXXFLAGS="-g"
3945 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3946 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3947 if test "${ac_cv_prog_cxx_g+set}" = set; then
3948   echo $ECHO_N "(cached) $ECHO_C" >&6
3949 else
3950   cat >conftest.$ac_ext <<_ACEOF
3951 #line $LINENO "configure"
3952 /* confdefs.h.  */
3953 _ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h.  */
3957
3958 int
3959 main ()
3960 {
3961
3962   ;
3963   return 0;
3964 }
3965 _ACEOF
3966 rm -f conftest.$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968   (eval $ac_compile) 2>&5
3969   ac_status=$?
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } &&
3972          { ac_try='test -s conftest.$ac_objext'
3973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974   (eval $ac_try) 2>&5
3975   ac_status=$?
3976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); }; }; then
3978   ac_cv_prog_cxx_g=yes
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983 ac_cv_prog_cxx_g=no
3984 fi
3985 rm -f conftest.$ac_objext conftest.$ac_ext
3986 fi
3987 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3988 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3989 if test "$ac_test_CXXFLAGS" = set; then
3990   CXXFLAGS=$ac_save_CXXFLAGS
3991 elif test $ac_cv_prog_cxx_g = yes; then
3992   if test "$GXX" = yes; then
3993     CXXFLAGS="-g -O2"
3994   else
3995     CXXFLAGS="-g"
3996   fi
3997 else
3998   if test "$GXX" = yes; then
3999     CXXFLAGS="-O2"
4000   else
4001     CXXFLAGS=
4002   fi
4003 fi
4004 for ac_declaration in \
4005    ''\
4006    '#include <stdlib.h>' \
4007    'extern "C" void std::exit (int) throw (); using std::exit;' \
4008    'extern "C" void std::exit (int); using std::exit;' \
4009    'extern "C" void exit (int) throw ();' \
4010    'extern "C" void exit (int);' \
4011    'void exit (int);'
4012 do
4013   cat >conftest.$ac_ext <<_ACEOF
4014 #line $LINENO "configure"
4015 /* confdefs.h.  */
4016 _ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h.  */
4020 #include <stdlib.h>
4021 $ac_declaration
4022 int
4023 main ()
4024 {
4025 exit (42);
4026   ;
4027   return 0;
4028 }
4029 _ACEOF
4030 rm -f conftest.$ac_objext
4031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4032   (eval $ac_compile) 2>&5
4033   ac_status=$?
4034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); } &&
4036          { ac_try='test -s conftest.$ac_objext'
4037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038   (eval $ac_try) 2>&5
4039   ac_status=$?
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); }; }; then
4042   :
4043 else
4044   echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4046
4047 continue
4048 fi
4049 rm -f conftest.$ac_objext conftest.$ac_ext
4050   cat >conftest.$ac_ext <<_ACEOF
4051 #line $LINENO "configure"
4052 /* confdefs.h.  */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h.  */
4057 $ac_declaration
4058 int
4059 main ()
4060 {
4061 exit (42);
4062   ;
4063   return 0;
4064 }
4065 _ACEOF
4066 rm -f conftest.$ac_objext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068   (eval $ac_compile) 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); } &&
4072          { ac_try='test -s conftest.$ac_objext'
4073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074   (eval $ac_try) 2>&5
4075   ac_status=$?
4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); }; }; then
4078   break
4079 else
4080   echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4082
4083 fi
4084 rm -f conftest.$ac_objext conftest.$ac_ext
4085 done
4086 rm -f conftest*
4087 if test -n "$ac_declaration"; then
4088   echo '#ifdef __cplusplus' >>confdefs.h
4089   echo $ac_declaration      >>confdefs.h
4090   echo '#endif'             >>confdefs.h
4091 fi
4092
4093 ac_ext=cc
4094 ac_cpp='$CXXCPP $CPPFLAGS'
4095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4098
4099 ac_ext=cc
4100 ac_cpp='$CXXCPP $CPPFLAGS'
4101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4104 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4105 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4106 if test -z "$CXXCPP"; then
4107   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4108   echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110       # Double quotes because CXXCPP needs to be expanded
4111     for CXXCPP in "$CXX -E" "/lib/cpp"
4112     do
4113       ac_preproc_ok=false
4114 for ac_cxx_preproc_warn_flag in '' yes
4115 do
4116   # Use a header file that comes with gcc, so configuring glibc
4117   # with a fresh cross-compiler works.
4118   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4119   # <limits.h> exists even on freestanding compilers.
4120   # On the NeXT, cc -E runs the code through the compiler's parser,
4121   # not just through cpp. "Syntax error" is here to catch this case.
4122   cat >conftest.$ac_ext <<_ACEOF
4123 #line $LINENO "configure"
4124 /* confdefs.h.  */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h.  */
4129 #ifdef __STDC__
4130 # include <limits.h>
4131 #else
4132 # include <assert.h>
4133 #endif
4134                      Syntax error
4135 _ACEOF
4136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4138   ac_status=$?
4139   grep -v '^ *+' conftest.er1 >conftest.err
4140   rm -f conftest.er1
4141   cat conftest.err >&5
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); } >/dev/null; then
4144   if test -s conftest.err; then
4145     ac_cpp_err=$ac_cxx_preproc_warn_flag
4146   else
4147     ac_cpp_err=
4148   fi
4149 else
4150   ac_cpp_err=yes
4151 fi
4152 if test -z "$ac_cpp_err"; then
4153   :
4154 else
4155   echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4157
4158   # Broken: fails on valid input.
4159 continue
4160 fi
4161 rm -f conftest.err conftest.$ac_ext
4162
4163   # OK, works on sane cases.  Now check whether non-existent headers
4164   # can be detected and how.
4165   cat >conftest.$ac_ext <<_ACEOF
4166 #line $LINENO "configure"
4167 /* confdefs.h.  */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h.  */
4172 #include <ac_nonexistent.h>
4173 _ACEOF
4174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4175   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4176   ac_status=$?
4177   grep -v '^ *+' conftest.er1 >conftest.err
4178   rm -f conftest.er1
4179   cat conftest.err >&5
4180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181   (exit $ac_status); } >/dev/null; then
4182   if test -s conftest.err; then
4183     ac_cpp_err=$ac_cxx_preproc_warn_flag
4184   else
4185     ac_cpp_err=
4186   fi
4187 else
4188   ac_cpp_err=yes
4189 fi
4190 if test -z "$ac_cpp_err"; then
4191   # Broken: success on invalid input.
4192 continue
4193 else
4194   echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4196
4197   # Passes both tests.
4198 ac_preproc_ok=:
4199 break
4200 fi
4201 rm -f conftest.err conftest.$ac_ext
4202
4203 done
4204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4205 rm -f conftest.err conftest.$ac_ext
4206 if $ac_preproc_ok; then
4207   break
4208 fi
4209
4210     done
4211     ac_cv_prog_CXXCPP=$CXXCPP
4212
4213 fi
4214   CXXCPP=$ac_cv_prog_CXXCPP
4215 else
4216   ac_cv_prog_CXXCPP=$CXXCPP
4217 fi
4218 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4219 echo "${ECHO_T}$CXXCPP" >&6
4220 ac_preproc_ok=false
4221 for ac_cxx_preproc_warn_flag in '' yes
4222 do
4223   # Use a header file that comes with gcc, so configuring glibc
4224   # with a fresh cross-compiler works.
4225   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4226   # <limits.h> exists even on freestanding compilers.
4227   # On the NeXT, cc -E runs the code through the compiler's parser,
4228   # not just through cpp. "Syntax error" is here to catch this case.
4229   cat >conftest.$ac_ext <<_ACEOF
4230 #line $LINENO "configure"
4231 /* confdefs.h.  */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h.  */
4236 #ifdef __STDC__
4237 # include <limits.h>
4238 #else
4239 # include <assert.h>
4240 #endif
4241                      Syntax error
4242 _ACEOF
4243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4244   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4245   ac_status=$?
4246   grep -v '^ *+' conftest.er1 >conftest.err
4247   rm -f conftest.er1
4248   cat conftest.err >&5
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); } >/dev/null; then
4251   if test -s conftest.err; then
4252     ac_cpp_err=$ac_cxx_preproc_warn_flag
4253   else
4254     ac_cpp_err=
4255   fi
4256 else
4257   ac_cpp_err=yes
4258 fi
4259 if test -z "$ac_cpp_err"; then
4260   :
4261 else
4262   echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4264
4265   # Broken: fails on valid input.
4266 continue
4267 fi
4268 rm -f conftest.err conftest.$ac_ext
4269
4270   # OK, works on sane cases.  Now check whether non-existent headers
4271   # can be detected and how.
4272   cat >conftest.$ac_ext <<_ACEOF
4273 #line $LINENO "configure"
4274 /* confdefs.h.  */
4275 _ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h.  */
4279 #include <ac_nonexistent.h>
4280 _ACEOF
4281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4282   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4283   ac_status=$?
4284   grep -v '^ *+' conftest.er1 >conftest.err
4285   rm -f conftest.er1
4286   cat conftest.err >&5
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); } >/dev/null; then
4289   if test -s conftest.err; then
4290     ac_cpp_err=$ac_cxx_preproc_warn_flag
4291   else
4292     ac_cpp_err=
4293   fi
4294 else
4295   ac_cpp_err=yes
4296 fi
4297 if test -z "$ac_cpp_err"; then
4298   # Broken: success on invalid input.
4299 continue
4300 else
4301   echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4303
4304   # Passes both tests.
4305 ac_preproc_ok=:
4306 break
4307 fi
4308 rm -f conftest.err conftest.$ac_ext
4309
4310 done
4311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4312 rm -f conftest.err conftest.$ac_ext
4313 if $ac_preproc_ok; then
4314   :
4315 else
4316   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4317 See \`config.log' for more details." >&5
4318 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4319 See \`config.log' for more details." >&2;}
4320    { (exit 1); exit 1; }; }
4321 fi
4322
4323 ac_ext=cc
4324 ac_cpp='$CXXCPP $CPPFLAGS'
4325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4328
4329
4330 ac_ext=f
4331 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4332 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4333 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4334 if test -n "$ac_tool_prefix"; then
4335   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4336   do
4337     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4339 echo "$as_me:$LINENO: checking for $ac_word" >&5
4340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4341 if test "${ac_cv_prog_F77+set}" = set; then
4342   echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344   if test -n "$F77"; then
4345   ac_cv_prog_F77="$F77" # Let the user override the test.
4346 else
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4349 do
4350   IFS=$as_save_IFS
4351   test -z "$as_dir" && as_dir=.
4352   for ac_exec_ext in '' $ac_executable_extensions; do
4353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4356     break 2
4357   fi
4358 done
4359 done
4360
4361 fi
4362 fi
4363 F77=$ac_cv_prog_F77
4364 if test -n "$F77"; then
4365   echo "$as_me:$LINENO: result: $F77" >&5
4366 echo "${ECHO_T}$F77" >&6
4367 else
4368   echo "$as_me:$LINENO: result: no" >&5
4369 echo "${ECHO_T}no" >&6
4370 fi
4371
4372     test -n "$F77" && break
4373   done
4374 fi
4375 if test -z "$F77"; then
4376   ac_ct_F77=$F77
4377   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4378 do
4379   # Extract the first word of "$ac_prog", so it can be a program name with args.
4380 set dummy $ac_prog; ac_word=$2
4381 echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4383 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386   if test -n "$ac_ct_F77"; then
4387   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4388 else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4391 do
4392   IFS=$as_save_IFS
4393   test -z "$as_dir" && as_dir=.
4394   for ac_exec_ext in '' $ac_executable_extensions; do
4395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4396     ac_cv_prog_ac_ct_F77="$ac_prog"
4397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398     break 2
4399   fi
4400 done
4401 done
4402
4403 fi
4404 fi
4405 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4406 if test -n "$ac_ct_F77"; then
4407   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4408 echo "${ECHO_T}$ac_ct_F77" >&6
4409 else
4410   echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6
4412 fi
4413
4414   test -n "$ac_ct_F77" && break
4415 done
4416
4417   F77=$ac_ct_F77
4418 fi
4419
4420
4421 # Provide some information about the compiler.
4422 echo "$as_me:4422:" \
4423      "checking for Fortran 77 compiler version" >&5
4424 ac_compiler=`set X $ac_compile; echo $2`
4425 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4426   (eval $ac_compiler --version </dev/null >&5) 2>&5
4427   ac_status=$?
4428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429   (exit $ac_status); }
4430 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4431   (eval $ac_compiler -v </dev/null >&5) 2>&5
4432   ac_status=$?
4433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434   (exit $ac_status); }
4435 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4436   (eval $ac_compiler -V </dev/null >&5) 2>&5
4437   ac_status=$?
4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439   (exit $ac_status); }
4440
4441 # If we don't use `.F' as extension, the preprocessor is not run on the
4442 # input file.
4443 ac_save_ext=$ac_ext
4444 ac_ext=F
4445 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4446 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4447 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4448   echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450   cat >conftest.$ac_ext <<_ACEOF
4451       program main
4452 #ifndef __GNUC__
4453        choke me
4454 #endif
4455
4456       end
4457 _ACEOF
4458 rm -f conftest.$ac_objext
4459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4460   (eval $ac_compile) 2>&5
4461   ac_status=$?
4462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463   (exit $ac_status); } &&
4464          { ac_try='test -s conftest.$ac_objext'
4465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466   (eval $ac_try) 2>&5
4467   ac_status=$?
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); }; }; then
4470   ac_compiler_gnu=yes
4471 else
4472   echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4474
4475 ac_compiler_gnu=no
4476 fi
4477 rm -f conftest.$ac_objext conftest.$ac_ext
4478 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4479
4480 fi
4481 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4482 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4483 ac_ext=$ac_save_ext
4484 G77=`test $ac_compiler_gnu = yes && echo yes`
4485 ac_test_FFLAGS=${FFLAGS+set}
4486 ac_save_FFLAGS=$FFLAGS
4487 FFLAGS=
4488 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4489 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4490 if test "${ac_cv_prog_f77_g+set}" = set; then
4491   echo $ECHO_N "(cached) $ECHO_C" >&6
4492 else
4493   FFLAGS=-g
4494 cat >conftest.$ac_ext <<_ACEOF
4495       program main
4496
4497       end
4498 _ACEOF
4499 rm -f conftest.$ac_objext
4500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4501   (eval $ac_compile) 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); } &&
4505          { ac_try='test -s conftest.$ac_objext'
4506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507   (eval $ac_try) 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); }; }; then
4511   ac_cv_prog_f77_g=yes
4512 else
4513   echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4515
4516 ac_cv_prog_f77_g=no
4517 fi
4518 rm -f conftest.$ac_objext conftest.$ac_ext
4519
4520 fi
4521 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4522 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4523 if test "$ac_test_FFLAGS" = set; then
4524   FFLAGS=$ac_save_FFLAGS
4525 elif test $ac_cv_prog_f77_g = yes; then
4526   if test "$G77" = yes; then
4527     FFLAGS="-g -O2"
4528   else
4529     FFLAGS="-g"
4530   fi
4531 else
4532   if test "$G77" = yes; then
4533     FFLAGS="-O2"
4534   else
4535     FFLAGS=
4536   fi
4537 fi
4538 ac_ext=c
4539 ac_cpp='$CPP $CPPFLAGS'
4540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4543
4544
4545
4546 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4547
4548 # find the maximum length of command line arguments
4549 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4550 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4551 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554     i=0
4555   testring="ABCD"
4556
4557   case $build_os in
4558   msdosdjgpp*)
4559     # On DJGPP, this test can blow up pretty badly due to problems in libc
4560     # (any single argument exceeding 2000 bytes causes a buffer overrun
4561     # during glob expansion).  Even if it were fixed, the result of this
4562     # check would be larger than it should be.
4563     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4564     ;;
4565
4566   gnu*)
4567     # Under GNU Hurd, this test is not required because there is
4568     # no limit to the length of command line arguments.
4569     # Libtool will interpret -1 as no limit whatsoever
4570     lt_cv_sys_max_cmd_len=-1;
4571     ;;
4572
4573   cygwin* | mingw*)
4574     # On Win9x/ME, this test blows up -- it succeeds, but takes
4575     # about 5 minutes as the teststring grows exponentially.
4576     # Worse, since 9x/ME are not pre-emptively multitasking,
4577     # you end up with a "frozen" computer, even though with patience
4578     # the test eventually succeeds (with a max line length of 256k).
4579     # Instead, let's just punt: use the minimum linelength reported by
4580     # all of the supported platforms: 8192 (on NT/2K/XP).
4581     lt_cv_sys_max_cmd_len=8192;
4582     ;;
4583
4584   amigaos*)
4585     # On AmigaOS with pdksh, this test takes hours, literally.
4586     # So we just punt and use a minimum line length of 8192.
4587     lt_cv_sys_max_cmd_len=8192;
4588     ;;
4589
4590  *)
4591     # If test is not a shell built-in, we'll probably end up computing a
4592     # maximum length that is only half of the actual maximum length, but
4593     # we can't tell.
4594     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4595                = "XX$testring") >/dev/null 2>&1 &&
4596             new_result=`expr "X$testring" : ".*" 2>&1` &&
4597             lt_cv_sys_max_cmd_len=$new_result &&
4598             test $i != 17 # 1/2 MB should be enough
4599     do
4600       i=`expr $i + 1`
4601       testring=$testring$testring
4602     done
4603     testring=
4604     # Add a significant safety factor because C++ compilers can tack on massive
4605     # amounts of additional arguments before passing them to the linker.
4606     # It appears as though 1/2 is a usable value.
4607     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4608     ;;
4609   esac
4610
4611 fi
4612
4613 if test -n $lt_cv_sys_max_cmd_len ; then
4614   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4615 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4616 else
4617   echo "$as_me:$LINENO: result: none" >&5
4618 echo "${ECHO_T}none" >&6
4619 fi
4620
4621
4622
4623
4624 # Check for command to grab the raw symbol name followed by C symbol from nm.
4625 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4626 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4627 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4628   echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630
4631 # These are sane defaults that work on at least a few old systems.
4632 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4633
4634 # Character class describing NM global symbol codes.
4635 symcode='[BCDEGRST]'
4636
4637 # Regexp to match symbols that can be accessed directly from C.
4638 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4639
4640 # Transform the above into a raw symbol and a C symbol.
4641 symxfrm='\1 \2\3 \3'
4642
4643 # Transform an extracted symbol line into a proper C declaration
4644 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4645
4646 # Transform an extracted symbol line into symbol name and symbol address
4647 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'"
4648
4649 # Define system-specific variables.
4650 case $host_os in
4651 aix*)
4652   symcode='[BCDT]'
4653   ;;
4654 cygwin* | mingw* | pw32*)
4655   symcode='[ABCDGISTW]'
4656   ;;
4657 hpux*) # Its linker distinguishes data from code symbols
4658   if test "$host_cpu" = ia64; then
4659     symcode='[ABCDEGRST]'
4660   fi
4661   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4662   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'"
4663   ;;
4664 irix* | nonstopux*)
4665   symcode='[BCDEGRST]'
4666   ;;
4667 osf*)
4668   symcode='[BCDEGQRST]'
4669   ;;
4670 solaris* | sysv5*)
4671   symcode='[BDRT]'
4672   ;;
4673 sysv4)
4674   symcode='[DFNSTU]'
4675   ;;
4676 esac
4677
4678 # Handle CRLF in mingw tool chain
4679 opt_cr=
4680 case $build_os in
4681 mingw*)
4682   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4683   ;;
4684 esac
4685
4686 # If we're using GNU nm, then use its standard symbol codes.
4687 case `$NM -V 2>&1` in
4688 *GNU* | *'with BFD'*)
4689   symcode='[ABCDGIRSTW]' ;;
4690 esac
4691
4692 # Try without a prefix undercore, then with it.
4693 for ac_symprfx in "" "_"; do
4694
4695   # Write the raw and C identifiers.
4696   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4697
4698   # Check to see that the pipe works correctly.
4699   pipe_works=no
4700
4701   rm -f conftest*
4702   cat > conftest.$ac_ext <<EOF
4703 #ifdef __cplusplus
4704 extern "C" {
4705 #endif
4706 char nm_test_var;
4707 void nm_test_func(){}
4708 #ifdef __cplusplus
4709 }
4710 #endif
4711 int main(){nm_test_var='a';nm_test_func();return(0);}
4712 EOF
4713
4714   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4715   (eval $ac_compile) 2>&5
4716   ac_status=$?
4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); }; then
4719     # Now try to grab the symbols.
4720     nlist=conftest.nm
4721     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4722   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4723   ac_status=$?
4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725   (exit $ac_status); } && test -s "$nlist"; then
4726       # Try sorting and uniquifying the output.
4727       if sort "$nlist" | uniq > "$nlist"T; then
4728         mv -f "$nlist"T "$nlist"
4729       else
4730         rm -f "$nlist"T
4731       fi
4732
4733       # Make sure that we snagged all the symbols we need.
4734       if grep ' nm_test_var$' "$nlist" >/dev/null; then
4735         if grep ' nm_test_func$' "$nlist" >/dev/null; then
4736           cat <<EOF > conftest.$ac_ext
4737 #ifdef __cplusplus
4738 extern "C" {
4739 #endif
4740
4741 EOF
4742           # Now generate the symbol file.
4743           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4744
4745           cat <<EOF >> conftest.$ac_ext
4746 #if defined (__STDC__) && __STDC__
4747 # define lt_ptr_t void *
4748 #else
4749 # define lt_ptr_t char *
4750 # define const
4751 #endif
4752
4753 /* The mapping between symbol names and symbols. */
4754 const struct {
4755   const char *name;
4756   lt_ptr_t address;
4757 }
4758 lt_preloaded_symbols[] =
4759 {
4760 EOF
4761           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4762           cat <<\EOF >> conftest.$ac_ext
4763   {0, (lt_ptr_t) 0}
4764 };
4765
4766 #ifdef __cplusplus
4767 }
4768 #endif
4769 EOF
4770           # Now try linking the two files.
4771           mv conftest.$ac_objext conftstm.$ac_objext
4772           lt_save_LIBS="$LIBS"
4773           lt_save_CFLAGS="$CFLAGS"
4774           LIBS="conftstm.$ac_objext"
4775           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4776           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4777   (eval $ac_link) 2>&5
4778   ac_status=$?
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); } && test -s conftest${ac_exeext}; then
4781             pipe_works=yes
4782           fi
4783           LIBS="$lt_save_LIBS"
4784           CFLAGS="$lt_save_CFLAGS"
4785         else
4786           echo "cannot find nm_test_func in $nlist" >&5
4787         fi
4788       else
4789         echo "cannot find nm_test_var in $nlist" >&5
4790       fi
4791     else
4792       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4793     fi
4794   else
4795     echo "$progname: failed program was:" >&5
4796     cat conftest.$ac_ext >&5
4797   fi
4798   rm -f conftest* conftst*
4799
4800   # Do not use the global_symbol_pipe unless it works.
4801   if test "$pipe_works" = yes; then
4802     break
4803   else
4804     lt_cv_sys_global_symbol_pipe=
4805   fi
4806 done
4807
4808 fi
4809
4810 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4811   lt_cv_sys_global_symbol_to_cdecl=
4812 fi
4813 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4814   echo "$as_me:$LINENO: result: failed" >&5
4815 echo "${ECHO_T}failed" >&6
4816 else
4817   echo "$as_me:$LINENO: result: ok" >&5
4818 echo "${ECHO_T}ok" >&6
4819 fi
4820
4821 echo "$as_me:$LINENO: checking for objdir" >&5
4822 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4823 if test "${lt_cv_objdir+set}" = set; then
4824   echo $ECHO_N "(cached) $ECHO_C" >&6
4825 else
4826   rm -f .libs 2>/dev/null
4827 mkdir .libs 2>/dev/null
4828 if test -d .libs; then
4829   lt_cv_objdir=.libs
4830 else
4831   # MS-DOS does not allow filenames that begin with a dot.
4832   lt_cv_objdir=_libs
4833 fi
4834 rmdir .libs 2>/dev/null
4835 fi
4836 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
4837 echo "${ECHO_T}$lt_cv_objdir" >&6
4838 objdir=$lt_cv_objdir
4839
4840
4841
4842
4843
4844 case $host_os in
4845 aix3*)
4846   # AIX sometimes has problems with the GCC collect2 program.  For some
4847   # reason, if we set the COLLECT_NAMES environment variable, the problems
4848   # vanish in a puff of smoke.
4849   if test "X${COLLECT_NAMES+set}" != Xset; then
4850     COLLECT_NAMES=
4851     export COLLECT_NAMES
4852   fi
4853   ;;
4854 esac
4855
4856 # Sed substitution that helps us do robust quoting.  It backslashifies
4857 # metacharacters that are still active within double-quoted strings.
4858 Xsed='sed -e s/^X//'
4859 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4860
4861 # Same as above, but do not quote variable references.
4862 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4863
4864 # Sed substitution to delay expansion of an escaped shell variable in a
4865 # double_quote_subst'ed string.
4866 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4867
4868 # Sed substitution to avoid accidental globbing in evaled expressions
4869 no_glob_subst='s/\*/\\\*/g'
4870
4871 # Constants:
4872 rm="rm -f"
4873
4874 # Global variables:
4875 default_ofile=libtool
4876 can_build_shared=yes
4877
4878 # All known linkers require a `.a' archive for static linking (except M$VC,
4879 # which needs '.lib').
4880 libext=a
4881 ltmain="$ac_aux_dir/ltmain.sh"
4882 ofile="$default_ofile"
4883 with_gnu_ld="$lt_cv_prog_gnu_ld"
4884
4885 if test -n "$ac_tool_prefix"; then
4886   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4887 set dummy ${ac_tool_prefix}ar; ac_word=$2
4888 echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4890 if test "${ac_cv_prog_AR+set}" = set; then
4891   echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893   if test -n "$AR"; then
4894   ac_cv_prog_AR="$AR" # Let the user override the test.
4895 else
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899   IFS=$as_save_IFS
4900   test -z "$as_dir" && as_dir=.
4901   for ac_exec_ext in '' $ac_executable_extensions; do
4902   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4903     ac_cv_prog_AR="${ac_tool_prefix}ar"
4904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905     break 2
4906   fi
4907 done
4908 done
4909
4910 fi
4911 fi
4912 AR=$ac_cv_prog_AR
4913 if test -n "$AR"; then
4914   echo "$as_me:$LINENO: result: $AR" >&5
4915 echo "${ECHO_T}$AR" >&6
4916 else
4917   echo "$as_me:$LINENO: result: no" >&5
4918 echo "${ECHO_T}no" >&6
4919 fi
4920
4921 fi
4922 if test -z "$ac_cv_prog_AR"; then
4923   ac_ct_AR=$AR
4924   # Extract the first word of "ar", so it can be a program name with args.
4925 set dummy ar; ac_word=$2
4926 echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4928 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4929   echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931   if test -n "$ac_ct_AR"; then
4932   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4936 do
4937   IFS=$as_save_IFS
4938   test -z "$as_dir" && as_dir=.
4939   for ac_exec_ext in '' $ac_executable_extensions; do
4940   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941     ac_cv_prog_ac_ct_AR="ar"
4942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943     break 2
4944   fi
4945 done
4946 done
4947
4948   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4949 fi
4950 fi
4951 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4952 if test -n "$ac_ct_AR"; then
4953   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4954 echo "${ECHO_T}$ac_ct_AR" >&6
4955 else
4956   echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6
4958 fi
4959
4960   AR=$ac_ct_AR
4961 else
4962   AR="$ac_cv_prog_AR"
4963 fi
4964
4965 if test -n "$ac_tool_prefix"; then
4966   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4967 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4968 echo "$as_me:$LINENO: checking for $ac_word" >&5
4969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4970 if test "${ac_cv_prog_RANLIB+set}" = set; then
4971   echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973   if test -n "$RANLIB"; then
4974   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979   IFS=$as_save_IFS
4980   test -z "$as_dir" && as_dir=.
4981   for ac_exec_ext in '' $ac_executable_extensions; do
4982   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985     break 2
4986   fi
4987 done
4988 done
4989
4990 fi
4991 fi
4992 RANLIB=$ac_cv_prog_RANLIB
4993 if test -n "$RANLIB"; then
4994   echo "$as_me:$LINENO: result: $RANLIB" >&5
4995 echo "${ECHO_T}$RANLIB" >&6
4996 else
4997   echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6
4999 fi
5000
5001 fi
5002 if test -z "$ac_cv_prog_RANLIB"; then
5003   ac_ct_RANLIB=$RANLIB
5004   # Extract the first word of "ranlib", so it can be a program name with args.
5005 set dummy ranlib; ac_word=$2
5006 echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5008 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5009   echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011   if test -n "$ac_ct_RANLIB"; then
5012   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017   IFS=$as_save_IFS
5018   test -z "$as_dir" && as_dir=.
5019   for ac_exec_ext in '' $ac_executable_extensions; do
5020   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021     ac_cv_prog_ac_ct_RANLIB="ranlib"
5022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023     break 2
5024   fi
5025 done
5026 done
5027
5028   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5029 fi
5030 fi
5031 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5032 if test -n "$ac_ct_RANLIB"; then
5033   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5034 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5035 else
5036   echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6
5038 fi
5039
5040   RANLIB=$ac_ct_RANLIB
5041 else
5042   RANLIB="$ac_cv_prog_RANLIB"
5043 fi
5044
5045 if test -n "$ac_tool_prefix"; then
5046   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5047 set dummy ${ac_tool_prefix}strip; ac_word=$2
5048 echo "$as_me:$LINENO: checking for $ac_word" >&5
5049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5050 if test "${ac_cv_prog_STRIP+set}" = set; then
5051   echo $ECHO_N "(cached) $ECHO_C" >&6
5052 else
5053   if test -n "$STRIP"; then
5054   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059   IFS=$as_save_IFS
5060   test -z "$as_dir" && as_dir=.
5061   for ac_exec_ext in '' $ac_executable_extensions; do
5062   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065     break 2
5066   fi
5067 done
5068 done
5069
5070 fi
5071 fi
5072 STRIP=$ac_cv_prog_STRIP
5073 if test -n "$STRIP"; then
5074   echo "$as_me:$LINENO: result: $STRIP" >&5
5075 echo "${ECHO_T}$STRIP" >&6
5076 else
5077   echo "$as_me:$LINENO: result: no" >&5
5078 echo "${ECHO_T}no" >&6
5079 fi
5080
5081 fi
5082 if test -z "$ac_cv_prog_STRIP"; then
5083   ac_ct_STRIP=$STRIP
5084   # Extract the first word of "strip", so it can be a program name with args.
5085 set dummy strip; ac_word=$2
5086 echo "$as_me:$LINENO: checking for $ac_word" >&5
5087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5088 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5089   echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091   if test -n "$ac_ct_STRIP"; then
5092   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5096 do
5097   IFS=$as_save_IFS
5098   test -z "$as_dir" && as_dir=.
5099   for ac_exec_ext in '' $ac_executable_extensions; do
5100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5101     ac_cv_prog_ac_ct_STRIP="strip"
5102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5103     break 2
5104   fi
5105 done
5106 done
5107
5108   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5109 fi
5110 fi
5111 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5112 if test -n "$ac_ct_STRIP"; then
5113   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5114 echo "${ECHO_T}$ac_ct_STRIP" >&6
5115 else
5116   echo "$as_me:$LINENO: result: no" >&5
5117 echo "${ECHO_T}no" >&6
5118 fi
5119
5120   STRIP=$ac_ct_STRIP
5121 else
5122   STRIP="$ac_cv_prog_STRIP"
5123 fi
5124
5125
5126 old_CC="$CC"
5127 old_CFLAGS="$CFLAGS"
5128
5129 # Set sane defaults for various variables
5130 test -z "$AR" && AR=ar
5131 test -z "$AR_FLAGS" && AR_FLAGS=cru
5132 test -z "$AS" && AS=as
5133 test -z "$CC" && CC=cc
5134 test -z "$LTCC" && LTCC=$CC
5135 test -z "$DLLTOOL" && DLLTOOL=dlltool
5136 test -z "$LD" && LD=ld
5137 test -z "$LN_S" && LN_S="ln -s"
5138 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5139 test -z "$NM" && NM=nm
5140 test -z "$SED" && SED=sed
5141 test -z "$OBJDUMP" && OBJDUMP=objdump
5142 test -z "$RANLIB" && RANLIB=:
5143 test -z "$STRIP" && STRIP=:
5144 test -z "$ac_objext" && ac_objext=o
5145
5146 # Determine commands to create old-style static archives.
5147 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5148 old_postinstall_cmds='chmod 644 $oldlib'
5149 old_postuninstall_cmds=
5150
5151 if test -n "$RANLIB"; then
5152   case $host_os in
5153   openbsd*)
5154     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5155     ;;
5156   *)
5157     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5158     ;;
5159   esac
5160   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5161 fi
5162
5163 # Only perform the check for file, if the check method requires it
5164 case $deplibs_check_method in
5165 file_magic*)
5166   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5167     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5168 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5169 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5170   echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172   case $MAGIC_CMD in
5173 [\\/*] |  ?:[\\/]*)
5174   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5175   ;;
5176 *)
5177   lt_save_MAGIC_CMD="$MAGIC_CMD"
5178   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5179   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5180   for ac_dir in $ac_dummy; do
5181     IFS="$lt_save_ifs"
5182     test -z "$ac_dir" && ac_dir=.
5183     if test -f $ac_dir/${ac_tool_prefix}file; then
5184       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5185       if test -n "$file_magic_test_file"; then
5186         case $deplibs_check_method in
5187         "file_magic "*)
5188           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5189           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5190           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5191             $EGREP "$file_magic_regex" > /dev/null; then
5192             :
5193           else
5194             cat <<EOF 1>&2
5195
5196 *** Warning: the command libtool uses to detect shared libraries,
5197 *** $file_magic_cmd, produces output that libtool cannot recognize.
5198 *** The result is that libtool may fail to recognize shared libraries
5199 *** as such.  This will affect the creation of libtool libraries that
5200 *** depend on shared libraries, but programs linked with such libtool
5201 *** libraries will work regardless of this problem.  Nevertheless, you
5202 *** may want to report the problem to your system manager and/or to
5203 *** bug-libtool@gnu.org
5204
5205 EOF
5206           fi ;;
5207         esac
5208       fi
5209       break
5210     fi
5211   done
5212   IFS="$lt_save_ifs"
5213   MAGIC_CMD="$lt_save_MAGIC_CMD"
5214   ;;
5215 esac
5216 fi
5217
5218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5219 if test -n "$MAGIC_CMD"; then
5220   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5221 echo "${ECHO_T}$MAGIC_CMD" >&6
5222 else
5223   echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6
5225 fi
5226
5227 if test -z "$lt_cv_path_MAGIC_CMD"; then
5228   if test -n "$ac_tool_prefix"; then
5229     echo "$as_me:$LINENO: checking for file" >&5
5230 echo $ECHO_N "checking for file... $ECHO_C" >&6
5231 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5232   echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234   case $MAGIC_CMD in
5235 [\\/*] |  ?:[\\/]*)
5236   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5237   ;;
5238 *)
5239   lt_save_MAGIC_CMD="$MAGIC_CMD"
5240   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5241   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5242   for ac_dir in $ac_dummy; do
5243     IFS="$lt_save_ifs"
5244     test -z "$ac_dir" && ac_dir=.
5245     if test -f $ac_dir/file; then
5246       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5247       if test -n "$file_magic_test_file"; then
5248         case $deplibs_check_method in
5249         "file_magic "*)
5250           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5251           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5252           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5253             $EGREP "$file_magic_regex" > /dev/null; then
5254             :
5255           else
5256             cat <<EOF 1>&2
5257
5258 *** Warning: the command libtool uses to detect shared libraries,
5259 *** $file_magic_cmd, produces output that libtool cannot recognize.
5260 *** The result is that libtool may fail to recognize shared libraries
5261 *** as such.  This will affect the creation of libtool libraries that
5262 *** depend on shared libraries, but programs linked with such libtool
5263 *** libraries will work regardless of this problem.  Nevertheless, you
5264 *** may want to report the problem to your system manager and/or to
5265 *** bug-libtool@gnu.org
5266
5267 EOF
5268           fi ;;
5269         esac
5270       fi
5271       break
5272     fi
5273   done
5274   IFS="$lt_save_ifs"
5275   MAGIC_CMD="$lt_save_MAGIC_CMD"
5276   ;;
5277 esac
5278 fi
5279
5280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5281 if test -n "$MAGIC_CMD"; then
5282   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5283 echo "${ECHO_T}$MAGIC_CMD" >&6
5284 else
5285   echo "$as_me:$LINENO: result: no" >&5
5286 echo "${ECHO_T}no" >&6
5287 fi
5288
5289   else
5290     MAGIC_CMD=:
5291   fi
5292 fi
5293
5294   fi
5295   ;;
5296 esac
5297
5298 enable_dlopen=no
5299 enable_win32_dll=no
5300
5301 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5302 if test "${enable_libtool_lock+set}" = set; then
5303   enableval="$enable_libtool_lock"
5304
5305 fi;
5306 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5307
5308
5309 # Check whether --with-pic or --without-pic was given.
5310 if test "${with_pic+set}" = set; then
5311   withval="$with_pic"
5312   pic_mode="$withval"
5313 else
5314   pic_mode=default
5315 fi;
5316 test -z "$pic_mode" && pic_mode=default
5317
5318 # Use C for the default configuration in the libtool script
5319 tagname=
5320 lt_save_CC="$CC"
5321 ac_ext=c
5322 ac_cpp='$CPP $CPPFLAGS'
5323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5326
5327
5328 # Source file extension for C test sources.
5329 ac_ext=c
5330
5331 # Object file extension for compiled C test sources.
5332 objext=o
5333 objext=$objext
5334
5335 # Code to be used in simple compile tests
5336 lt_simple_compile_test_code="int some_variable = 0;\n"
5337
5338 # Code to be used in simple link tests
5339 lt_simple_link_test_code='int main(){return(0);}\n'
5340
5341
5342 # If no C compiler was specified, use CC.
5343 LTCC=${LTCC-"$CC"}
5344
5345 # Allow CC to be a program name with arguments.
5346 compiler=$CC
5347
5348
5349 #
5350 # Check for any special shared library compilation flags.
5351 #
5352 lt_prog_cc_shlib=
5353 if test "$GCC" = no; then
5354   case $host_os in
5355   sco3.2v5*)
5356     lt_prog_cc_shlib='-belf'
5357     ;;
5358   esac
5359 fi
5360 if test -n "$lt_prog_cc_shlib"; then
5361   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5362 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5363   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5364   else
5365     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5366 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5367     lt_cv_prog_cc_can_build_shared=no
5368   fi
5369 fi
5370
5371
5372 #
5373 # Check to make sure the static flag actually works.
5374 #
5375 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5376 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5377 if test "${lt_prog_compiler_static_works+set}" = set; then
5378   echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380   lt_prog_compiler_static_works=no
5381    save_LDFLAGS="$LDFLAGS"
5382    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5383    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5384    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5385      # The compiler can only warn and ignore the option if not recognized
5386      # So say no if there are warnings
5387      if test -s conftest.err; then
5388        # Append any errors to the config.log.
5389        cat conftest.err 1>&5
5390      else
5391        lt_prog_compiler_static_works=yes
5392      fi
5393    fi
5394    $rm conftest*
5395    LDFLAGS="$save_LDFLAGS"
5396
5397 fi
5398 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5399 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5400
5401 if test x"$lt_prog_compiler_static_works" = xyes; then
5402     :
5403 else
5404     lt_prog_compiler_static=
5405 fi
5406
5407
5408
5409 ## CAVEAT EMPTOR:
5410 ## There is no encapsulation within the following macros, do not change
5411 ## the running order or otherwise move them around unless you know exactly
5412 ## what you are doing...
5413
5414 lt_prog_compiler_no_builtin_flag=
5415
5416 if test "$GCC" = yes; then
5417   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5418
5419
5420 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5421 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5422 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5423   echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425   lt_cv_prog_compiler_rtti_exceptions=no
5426   ac_outfile=conftest.$ac_objext
5427    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5428    lt_compiler_flag="-fno-rtti -fno-exceptions"
5429    # Insert the option either (1) after the last *FLAGS variable, or
5430    # (2) before a word containing "conftest.", or (3) at the end.
5431    # Note that $ac_compile itself does not contain backslashes and begins
5432    # with a dollar sign (not a hyphen), so the echo should work correctly.
5433    # The option is referenced via a variable to avoid confusing sed.
5434    lt_compile=`echo "$ac_compile" | $SED \
5435    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5436    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5437    -e 's:$: $lt_compiler_flag:'`
5438    (eval echo "\"\$as_me:5438: $lt_compile\"" >&5)
5439    (eval "$lt_compile" 2>conftest.err)
5440    ac_status=$?
5441    cat conftest.err >&5
5442    echo "$as_me:5442: \$? = $ac_status" >&5
5443    if (exit $ac_status) && test -s "$ac_outfile"; then
5444      # The compiler can only warn and ignore the option if not recognized
5445      # So say no if there are warnings
5446      if test ! -s conftest.err; then
5447        lt_cv_prog_compiler_rtti_exceptions=yes
5448      fi
5449    fi
5450    $rm conftest*
5451
5452 fi
5453 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5454 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5455
5456 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5457     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5458 else
5459     :
5460 fi
5461
5462 fi
5463
5464 lt_prog_compiler_wl=
5465 lt_prog_compiler_pic=
5466 lt_prog_compiler_static=
5467
5468 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5469 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5470
5471   if test "$GCC" = yes; then
5472     lt_prog_compiler_wl='-Wl,'
5473     lt_prog_compiler_static='-static'
5474
5475     case $host_os in
5476       aix*)
5477       # All AIX code is PIC.
5478       if test "$host_cpu" = ia64; then
5479         # AIX 5 now supports IA64 processor
5480         lt_prog_compiler_static='-Bstatic'
5481       fi
5482       ;;
5483
5484     amigaos*)
5485       # FIXME: we need at least 68020 code to build shared libraries, but
5486       # adding the `-m68020' flag to GCC prevents building anything better,
5487       # like `-m68040'.
5488       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5489       ;;
5490
5491     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5492       # PIC is the default for these OSes.
5493       ;;
5494
5495     mingw* | pw32* | os2*)
5496       # This hack is so that the source file can tell whether it is being
5497       # built for inclusion in a dll (and should export symbols for example).
5498       lt_prog_compiler_pic='-DDLL_EXPORT'
5499       ;;
5500
5501     darwin* | rhapsody*)
5502       # PIC is the default on this platform
5503       # Common symbols not allowed in MH_DYLIB files
5504       lt_prog_compiler_pic='-fno-common'
5505       ;;
5506
5507     msdosdjgpp*)
5508       # Just because we use GCC doesn't mean we suddenly get shared libraries
5509       # on systems that don't support them.
5510       lt_prog_compiler_can_build_shared=no
5511       enable_shared=no
5512       ;;
5513
5514     sysv4*MP*)
5515       if test -d /usr/nec; then
5516         lt_prog_compiler_pic=-Kconform_pic
5517       fi
5518       ;;
5519
5520     hpux*)
5521       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5522       # not for PA HP-UX.
5523       case "$host_cpu" in
5524       hppa*64*|ia64*)
5525         # +Z the default
5526         ;;
5527       *)
5528         lt_prog_compiler_pic='-fPIC'
5529         ;;
5530       esac
5531       ;;
5532
5533     *)
5534       lt_prog_compiler_pic='-fPIC'
5535       ;;
5536     esac
5537   else
5538     # PORTME Check for flag to pass linker flags through the system compiler.
5539     case $host_os in
5540     aix*)
5541       lt_prog_compiler_wl='-Wl,'
5542       if test "$host_cpu" = ia64; then
5543         # AIX 5 now supports IA64 processor
5544         lt_prog_compiler_static='-Bstatic'
5545       else
5546         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5547       fi
5548       ;;
5549
5550     mingw* | pw32* | os2*)
5551       # This hack is so that the source file can tell whether it is being
5552       # built for inclusion in a dll (and should export symbols for example).
5553       lt_prog_compiler_pic='-DDLL_EXPORT'
5554       ;;
5555
5556     hpux9* | hpux10* | hpux11*)
5557       lt_prog_compiler_wl='-Wl,'
5558       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5559       # not for PA HP-UX.
5560       case "$host_cpu" in
5561       hppa*64*|ia64*)
5562         # +Z the default
5563         ;;
5564       *)
5565         lt_prog_compiler_pic='+Z'
5566         ;;
5567       esac
5568       # Is there a better lt_prog_compiler_static that works with the bundled CC?
5569       lt_prog_compiler_static='${wl}-a ${wl}archive'
5570       ;;
5571
5572     irix5* | irix6* | nonstopux*)
5573       lt_prog_compiler_wl='-Wl,'
5574       # PIC (with -KPIC) is the default.
5575       lt_prog_compiler_static='-non_shared'
5576       ;;
5577
5578     newsos6)
5579       lt_prog_compiler_pic='-KPIC'
5580       lt_prog_compiler_static='-Bstatic'
5581       ;;
5582
5583     linux*)
5584       case $CC in
5585       icc* | ecc*)
5586         lt_prog_compiler_wl='-Wl,'
5587         lt_prog_compiler_pic='-KPIC'
5588         lt_prog_compiler_static='-static'
5589         ;;
5590       ccc*)
5591         lt_prog_compiler_wl='-Wl,'
5592         # All Alpha code is PIC.
5593         lt_prog_compiler_static='-non_shared'
5594         ;;
5595       esac
5596       ;;
5597
5598     osf3* | osf4* | osf5*)
5599       lt_prog_compiler_wl='-Wl,'
5600       # All OSF/1 code is PIC.
5601       lt_prog_compiler_static='-non_shared'
5602       ;;
5603
5604     sco3.2v5*)
5605       lt_prog_compiler_pic='-Kpic'
5606       lt_prog_compiler_static='-dn'
5607       ;;
5608
5609     solaris*)
5610       lt_prog_compiler_wl='-Wl,'
5611       lt_prog_compiler_pic='-KPIC'
5612       lt_prog_compiler_static='-Bstatic'
5613       ;;
5614
5615     sunos4*)
5616       lt_prog_compiler_wl='-Qoption ld '
5617       lt_prog_compiler_pic='-PIC'
5618       lt_prog_compiler_static='-Bstatic'
5619       ;;
5620
5621     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5622       lt_prog_compiler_wl='-Wl,'
5623       lt_prog_compiler_pic='-KPIC'
5624       lt_prog_compiler_static='-Bstatic'
5625       ;;
5626
5627     sysv4*MP*)
5628       if test -d /usr/nec ;then
5629         lt_prog_compiler_pic='-Kconform_pic'
5630         lt_prog_compiler_static='-Bstatic'
5631       fi
5632       ;;
5633
5634     uts4*)
5635       lt_prog_compiler_pic='-pic'
5636       lt_prog_compiler_static='-Bstatic'
5637       ;;
5638
5639     *)
5640       lt_prog_compiler_can_build_shared=no
5641       ;;
5642     esac
5643   fi
5644
5645 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5646 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5647
5648 #
5649 # Check to make sure the PIC flag actually works.
5650 #
5651 if test -n "$lt_prog_compiler_pic"; then
5652
5653 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5654 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5655 if test "${lt_prog_compiler_pic_works+set}" = set; then
5656   echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658   lt_prog_compiler_pic_works=no
5659   ac_outfile=conftest.$ac_objext
5660    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5661    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5662    # Insert the option either (1) after the last *FLAGS variable, or
5663    # (2) before a word containing "conftest.", or (3) at the end.
5664    # Note that $ac_compile itself does not contain backslashes and begins
5665    # with a dollar sign (not a hyphen), so the echo should work correctly.
5666    # The option is referenced via a variable to avoid confusing sed.
5667    lt_compile=`echo "$ac_compile" | $SED \
5668    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5669    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5670    -e 's:$: $lt_compiler_flag:'`
5671    (eval echo "\"\$as_me:5671: $lt_compile\"" >&5)
5672    (eval "$lt_compile" 2>conftest.err)
5673    ac_status=$?
5674    cat conftest.err >&5
5675    echo "$as_me:5675: \$? = $ac_status" >&5
5676    if (exit $ac_status) && test -s "$ac_outfile"; then
5677      # The compiler can only warn and ignore the option if not recognized
5678      # So say no if there are warnings
5679      if test ! -s conftest.err; then
5680        lt_prog_compiler_pic_works=yes
5681      fi
5682    fi
5683    $rm conftest*
5684
5685 fi
5686 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5687 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5688
5689 if test x"$lt_prog_compiler_pic_works" = xyes; then
5690     case $lt_prog_compiler_pic in
5691      "" | " "*) ;;
5692      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5693      esac
5694 else
5695     lt_prog_compiler_pic=
5696      lt_prog_compiler_can_build_shared=no
5697 fi
5698
5699 fi
5700 case "$host_os" in
5701   # For platforms which do not support PIC, -DPIC is meaningless:
5702   *djgpp*)
5703     lt_prog_compiler_pic=
5704     ;;
5705   *)
5706     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5707     ;;
5708 esac
5709
5710 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5711 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5712 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5713   echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715   lt_cv_prog_compiler_c_o=no
5716    $rm -r conftest 2>/dev/null
5717    mkdir conftest
5718    cd conftest
5719    mkdir out
5720    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5721
5722    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5723    # that will create temporary files in the current directory regardless of
5724    # the output directory.  Thus, making CWD read-only will cause this test
5725    # to fail, enabling locking or at least warning the user not to do parallel
5726    # builds.
5727    chmod -w .
5728
5729    lt_compiler_flag="-o out/conftest2.$ac_objext"
5730    # Insert the option either (1) after the last *FLAGS variable, or
5731    # (2) before a word containing "conftest.", or (3) at the end.
5732    # Note that $ac_compile itself does not contain backslashes and begins
5733    # with a dollar sign (not a hyphen), so the echo should work correctly.
5734    lt_compile=`echo "$ac_compile" | $SED \
5735    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5736    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5737    -e 's:$: $lt_compiler_flag:'`
5738    (eval echo "\"\$as_me:5738: $lt_compile\"" >&5)
5739    (eval "$lt_compile" 2>out/conftest.err)
5740    ac_status=$?
5741    cat out/conftest.err >&5
5742    echo "$as_me:5742: \$? = $ac_status" >&5
5743    if (exit $ac_status) && test -s out/conftest2.$ac_objext
5744    then
5745      # The compiler can only warn and ignore the option if not recognized
5746      # So say no if there are warnings
5747      if test ! -s out/conftest.err; then
5748        lt_cv_prog_compiler_c_o=yes
5749      fi
5750    fi
5751    chmod u+w .
5752    $rm conftest*
5753    # SGI C++ compiler will create directory out/ii_files/ for
5754    # template instantiation
5755    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
5756    $rm out/* && rmdir out
5757    cd ..
5758    rmdir conftest
5759    $rm conftest*
5760
5761 fi
5762 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5763 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5764
5765
5766 hard_links="nottested"
5767 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5768   # do not overwrite the value of need_locks provided by the user
5769   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5770 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5771   hard_links=yes
5772   $rm conftest*
5773   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5774   touch conftest.a
5775   ln conftest.a conftest.b 2>&5 || hard_links=no
5776   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5777   echo "$as_me:$LINENO: result: $hard_links" >&5
5778 echo "${ECHO_T}$hard_links" >&6
5779   if test "$hard_links" = no; then
5780     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5781 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5782     need_locks=warn
5783   fi
5784 else
5785   need_locks=no
5786 fi
5787
5788 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5789 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5790
5791   runpath_var=
5792   allow_undefined_flag=
5793   enable_shared_with_static_runtimes=no
5794   archive_cmds=
5795   archive_expsym_cmds=
5796   old_archive_From_new_cmds=
5797   old_archive_from_expsyms_cmds=
5798   export_dynamic_flag_spec=
5799   whole_archive_flag_spec=
5800   thread_safe_flag_spec=
5801   hardcode_libdir_flag_spec=
5802   hardcode_libdir_flag_spec_ld=
5803   hardcode_libdir_separator=
5804   hardcode_direct=no
5805   hardcode_minus_L=no
5806   hardcode_shlibpath_var=unsupported
5807   link_all_deplibs=unknown
5808   hardcode_automatic=no
5809   module_cmds=
5810   module_expsym_cmds=
5811   always_export_symbols=no
5812   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5813   # include_expsyms should be a list of space-separated symbols to be *always*
5814   # included in the symbol list
5815   include_expsyms=
5816   # exclude_expsyms can be an extended regexp of symbols to exclude
5817   # it will be wrapped by ` (' and `)$', so one must not match beginning or
5818   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5819   # as well as any symbol that contains `d'.
5820   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5821   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5822   # platforms (ab)use it in PIC code, but their linkers get confused if
5823   # the symbol is explicitly referenced.  Since portable code cannot
5824   # rely on this symbol name, it's probably fine to never include it in
5825   # preloaded symbol tables.
5826   extract_expsyms_cmds=
5827
5828   case $host_os in
5829   cygwin* | mingw* | pw32*)
5830     # FIXME: the MSVC++ port hasn't been tested in a loooong time
5831     # When not using gcc, we currently assume that we are using
5832     # Microsoft Visual C++.
5833     if test "$GCC" != yes; then
5834       with_gnu_ld=no
5835     fi
5836     ;;
5837   openbsd*)
5838     with_gnu_ld=no
5839     ;;
5840   esac
5841
5842   ld_shlibs=yes
5843   if test "$with_gnu_ld" = yes; then
5844     # If archive_cmds runs LD, not CC, wlarc should be empty
5845     wlarc='${wl}'
5846
5847     # See if GNU ld supports shared libraries.
5848     case $host_os in
5849     aix3* | aix4* | aix5*)
5850       # On AIX/PPC, the GNU linker is very broken
5851       if test "$host_cpu" != ia64; then
5852         ld_shlibs=no
5853         cat <<EOF 1>&2
5854
5855 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5856 *** to be unable to reliably create shared libraries on AIX.
5857 *** Therefore, libtool is disabling shared libraries support.  If you
5858 *** really care for shared libraries, you may want to modify your PATH
5859 *** so that a non-GNU linker is found, and then restart.
5860
5861 EOF
5862       fi
5863       ;;
5864
5865     amigaos*)
5866       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)'
5867       hardcode_libdir_flag_spec='-L$libdir'
5868       hardcode_minus_L=yes
5869
5870       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5871       # that the semantics of dynamic libraries on AmigaOS, at least up
5872       # to version 4, is to share data among multiple programs linked
5873       # with the same dynamic library.  Since this doesn't match the
5874       # behavior of shared libraries on other platforms, we can't use
5875       # them.
5876       ld_shlibs=no
5877       ;;
5878
5879     beos*)
5880       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5881         allow_undefined_flag=unsupported
5882         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5883         # support --undefined.  This deserves some investigation.  FIXME
5884         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5885       else
5886         ld_shlibs=no
5887       fi
5888       ;;
5889
5890     cygwin* | mingw* | pw32*)
5891       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
5892       # as there is no search path for DLLs.
5893       hardcode_libdir_flag_spec='-L$libdir'
5894       allow_undefined_flag=unsupported
5895       always_export_symbols=no
5896       enable_shared_with_static_runtimes=yes
5897       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
5898
5899       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5900         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5901         # If the export-symbols file already is a .def file (1st line
5902         # is EXPORTS), use it as is; otherwise, prepend...
5903         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5904           cp $export_symbols $output_objdir/$soname.def;
5905         else
5906           echo EXPORTS > $output_objdir/$soname.def;
5907           cat $export_symbols >> $output_objdir/$soname.def;
5908         fi~
5909         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
5910       else
5911         ld_shlibs=no
5912       fi
5913       ;;
5914
5915     netbsd*)
5916       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5917         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5918         wlarc=
5919       else
5920         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5921         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5922       fi
5923       ;;
5924
5925     solaris* | sysv5*)
5926       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5927         ld_shlibs=no
5928         cat <<EOF 1>&2
5929
5930 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5931 *** create shared libraries on Solaris systems.  Therefore, libtool
5932 *** is disabling shared libraries support.  We urge you to upgrade GNU
5933 *** binutils to release 2.9.1 or newer.  Another option is to modify
5934 *** your PATH or compiler configuration so that the native linker is
5935 *** used, and then restart.
5936
5937 EOF
5938       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5939         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5940         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5941       else
5942         ld_shlibs=no
5943       fi
5944       ;;
5945
5946     sunos4*)
5947       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5948       wlarc=
5949       hardcode_direct=yes
5950       hardcode_shlibpath_var=no
5951       ;;
5952
5953   linux*)
5954     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5955         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5956         archive_cmds="$tmp_archive_cmds"
5957       supports_anon_versioning=no
5958       case `$LD -v 2>/dev/null` in
5959         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5960         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5961         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5962         *\ 2.11.*) ;; # other 2.11 versions
5963         *) supports_anon_versioning=yes ;;
5964       esac
5965       if test $supports_anon_versioning = yes; then
5966         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5967 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5968 $echo "local: *; };" >> $output_objdir/$libname.ver~
5969         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5970       else
5971         archive_expsym_cmds="$tmp_archive_cmds"
5972       fi
5973     else
5974       ld_shlibs=no
5975     fi
5976     ;;
5977
5978     *)
5979       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5980         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5981         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5982       else
5983         ld_shlibs=no
5984       fi
5985       ;;
5986     esac
5987
5988     if test "$ld_shlibs" = yes; then
5989       runpath_var=LD_RUN_PATH
5990       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5991       export_dynamic_flag_spec='${wl}--export-dynamic'
5992       # ancient GNU ld didn't support --whole-archive et. al.
5993       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5994         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5995       else
5996         whole_archive_flag_spec=
5997       fi
5998     fi
5999   else
6000     # PORTME fill in a description of your system's linker (not GNU ld)
6001     case $host_os in
6002     aix3*)
6003       allow_undefined_flag=unsupported
6004       always_export_symbols=yes
6005       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'
6006       # Note: this linker hardcodes the directories in LIBPATH if there
6007       # are no directories specified by -L.
6008       hardcode_minus_L=yes
6009       if test "$GCC" = yes && test -z "$link_static_flag"; then
6010         # Neither direct hardcoding nor static linking is supported with a
6011         # broken collect2.
6012         hardcode_direct=unsupported
6013       fi
6014       ;;
6015
6016     aix4* | aix5*)
6017       if test "$host_cpu" = ia64; then
6018         # On IA64, the linker does run time linking by default, so we don't
6019         # have to do anything special.
6020         aix_use_runtimelinking=no
6021         exp_sym_flag='-Bexport'
6022         no_entry_flag=""
6023       else
6024         # If we're using GNU nm, then we don't want the "-C" option.
6025         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6026         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6027           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'
6028         else
6029           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'
6030         fi
6031         aix_use_runtimelinking=no
6032
6033         # Test if we are trying to use run time linking or normal
6034         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6035         # need to do runtime linking.
6036         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6037           for ld_flag in $LDFLAGS; do
6038           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6039             aix_use_runtimelinking=yes
6040             break
6041           fi
6042           done
6043         esac
6044
6045         exp_sym_flag='-bexport'
6046         no_entry_flag='-bnoentry'
6047       fi
6048
6049       # When large executables or shared objects are built, AIX ld can
6050       # have problems creating the table of contents.  If linking a library
6051       # or program results in "error TOC overflow" add -mminimal-toc to
6052       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6053       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6054
6055       archive_cmds=''
6056       hardcode_direct=yes
6057       hardcode_libdir_separator=':'
6058       link_all_deplibs=yes
6059
6060       if test "$GCC" = yes; then
6061         case $host_os in aix4.012|aix4.012.*)
6062         # We only want to do this on AIX 4.2 and lower, the check
6063         # below for broken collect2 doesn't work under 4.3+
6064           collect2name=`${CC} -print-prog-name=collect2`
6065           if test -f "$collect2name" && \
6066            strings "$collect2name" | grep resolve_lib_name >/dev/null
6067           then
6068           # We have reworked collect2
6069           hardcode_direct=yes
6070           else
6071           # We have old collect2
6072           hardcode_direct=unsupported
6073           # It fails to find uninstalled libraries when the uninstalled
6074           # path is not listed in the libpath.  Setting hardcode_minus_L
6075           # to unsupported forces relinking
6076           hardcode_minus_L=yes
6077           hardcode_libdir_flag_spec='-L$libdir'
6078           hardcode_libdir_separator=
6079           fi
6080         esac
6081         shared_flag='-shared'
6082       else
6083         # not using gcc
6084         if test "$host_cpu" = ia64; then
6085         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6086         # chokes on -Wl,-G. The following line is correct:
6087           shared_flag='-G'
6088         else
6089         if test "$aix_use_runtimelinking" = yes; then
6090             shared_flag='${wl}-G'
6091           else
6092             shared_flag='${wl}-bM:SRE'
6093         fi
6094         fi
6095       fi
6096
6097       # It seems that -bexpall does not export symbols beginning with
6098       # underscore (_), so it is better to generate a list of symbols to export.
6099       always_export_symbols=yes
6100       if test "$aix_use_runtimelinking" = yes; then
6101         # Warning - without using the other runtime loading flags (-brtl),
6102         # -berok will link without error, but may produce a broken library.
6103         allow_undefined_flag='-berok'
6104        # Determine the default libpath from the value encoded in an empty executable.
6105        cat >conftest.$ac_ext <<_ACEOF
6106 #line $LINENO "configure"
6107 /* confdefs.h.  */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h.  */
6112
6113 int
6114 main ()
6115 {
6116
6117   ;
6118   return 0;
6119 }
6120 _ACEOF
6121 rm -f conftest.$ac_objext conftest$ac_exeext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6123   (eval $ac_link) 2>&5
6124   ac_status=$?
6125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126   (exit $ac_status); } &&
6127          { ac_try='test -s conftest$ac_exeext'
6128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129   (eval $ac_try) 2>&5
6130   ac_status=$?
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); }; }; then
6133
6134 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6135 }'`
6136 # Check for a 64-bit object if we didn't find anything.
6137 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; }
6138 }'`; fi
6139 else
6140   echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6142
6143 fi
6144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6145 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6146
6147        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6148         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6149        else
6150         if test "$host_cpu" = ia64; then
6151           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6152           allow_undefined_flag="-z nodefs"
6153           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6154         else
6155          # Determine the default libpath from the value encoded in an empty executable.
6156          cat >conftest.$ac_ext <<_ACEOF
6157 #line $LINENO "configure"
6158 /* confdefs.h.  */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h.  */
6163
6164 int
6165 main ()
6166 {
6167
6168   ;
6169   return 0;
6170 }
6171 _ACEOF
6172 rm -f conftest.$ac_objext conftest$ac_exeext
6173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6174   (eval $ac_link) 2>&5
6175   ac_status=$?
6176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177   (exit $ac_status); } &&
6178          { ac_try='test -s conftest$ac_exeext'
6179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180   (eval $ac_try) 2>&5
6181   ac_status=$?
6182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183   (exit $ac_status); }; }; then
6184
6185 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6186 }'`
6187 # Check for a 64-bit object if we didn't find anything.
6188 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; }
6189 }'`; fi
6190 else
6191   echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6193
6194 fi
6195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6196 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6197
6198          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6199           # Warning - without using the other run time loading flags,
6200           # -berok will link without error, but may produce a broken library.
6201           no_undefined_flag=' ${wl}-bernotok'
6202           allow_undefined_flag=' ${wl}-berok'
6203           # -bexpall does not export symbols beginning with underscore (_)
6204           always_export_symbols=yes
6205           # Exported symbols can be pulled into shared objects from archives
6206           whole_archive_flag_spec=' '
6207           archive_cmds_need_lc=yes
6208           # This is similar to how AIX traditionally builds it's shared libraries.
6209           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6210         fi
6211       fi
6212       ;;
6213
6214     amigaos*)
6215       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)'
6216       hardcode_libdir_flag_spec='-L$libdir'
6217       hardcode_minus_L=yes
6218       # see comment about different semantics on the GNU ld section
6219       ld_shlibs=no
6220       ;;
6221
6222     bsdi4*)
6223       export_dynamic_flag_spec=-rdynamic
6224       ;;
6225
6226     cygwin* | mingw* | pw32*)
6227       # When not using gcc, we currently assume that we are using
6228       # Microsoft Visual C++.
6229       # hardcode_libdir_flag_spec is actually meaningless, as there is
6230       # no search path for DLLs.
6231       hardcode_libdir_flag_spec=' '
6232       allow_undefined_flag=unsupported
6233       # Tell ltmain to make .lib files, not .a files.
6234       libext=lib
6235       # Tell ltmain to make .dll files, not .so files.
6236       shrext=".dll"
6237       # FIXME: Setting linknames here is a bad hack.
6238       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6239       # The linker will automatically build a .lib file if we build a DLL.
6240       old_archive_From_new_cmds='true'
6241       # FIXME: Should let the user specify the lib program.
6242       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6243       fix_srcfile_path='`cygpath -w "$srcfile"`'
6244       enable_shared_with_static_runtimes=yes
6245       ;;
6246
6247     darwin* | rhapsody*)
6248     if test "$GXX" = yes ; then
6249       archive_cmds_need_lc=no
6250       case "$host_os" in
6251       rhapsody* | darwin1.[012])
6252         allow_undefined_flag='-undefined suppress'
6253         ;;
6254       *) # Darwin 1.3 on
6255       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6256         allow_undefined_flag='-flat_namespace -undefined suppress'
6257       else
6258         case ${MACOSX_DEPLOYMENT_TARGET} in
6259           10.[012])
6260             allow_undefined_flag='-flat_namespace -undefined suppress'
6261             ;;
6262           10.*)
6263             allow_undefined_flag='-undefined dynamic_lookup'
6264             ;;
6265         esac
6266       fi
6267         ;;
6268       esac
6269         lt_int_apple_cc_single_mod=no
6270         output_verbose_link_cmd='echo'
6271         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6272           lt_int_apple_cc_single_mod=yes
6273         fi
6274         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6275           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6276         else
6277         archive_cmds='$CC -r ${wl}-bind_at_load -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'
6278       fi
6279       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6280       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6281         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6282           archive_expsym_cmds='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}'
6283         else
6284           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
6285         fi
6286           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}'
6287       hardcode_direct=no
6288       hardcode_automatic=yes
6289       hardcode_shlibpath_var=unsupported
6290       whole_archive_flag_spec='-all_load $convenience'
6291       link_all_deplibs=yes
6292     else
6293       ld_shlibs=no
6294     fi
6295       ;;
6296
6297     dgux*)
6298       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6299       hardcode_libdir_flag_spec='-L$libdir'
6300       hardcode_shlibpath_var=no
6301       ;;
6302
6303     freebsd1*)
6304       ld_shlibs=no
6305       ;;
6306
6307     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6308     # support.  Future versions do this automatically, but an explicit c++rt0.o
6309     # does not break anything, and helps significantly (at the cost of a little
6310     # extra space).
6311     freebsd2.2*)
6312       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6313       hardcode_libdir_flag_spec='-R$libdir'
6314       hardcode_direct=yes
6315       hardcode_shlibpath_var=no
6316       ;;
6317
6318     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6319     freebsd2*)
6320       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6321       hardcode_direct=yes
6322       hardcode_minus_L=yes
6323       hardcode_shlibpath_var=no
6324       ;;
6325
6326     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6327     freebsd* | kfreebsd*-gnu)
6328       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6329       hardcode_libdir_flag_spec='-R$libdir'
6330       hardcode_direct=yes
6331       hardcode_shlibpath_var=no
6332       ;;
6333
6334     hpux9*)
6335       if test "$GCC" = yes; then
6336         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'
6337       else
6338         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'
6339       fi
6340       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6341       hardcode_libdir_separator=:
6342       hardcode_direct=yes
6343
6344       # hardcode_minus_L: Not really in the search PATH,
6345       # but as the default location of the library.
6346       hardcode_minus_L=yes
6347       export_dynamic_flag_spec='${wl}-E'
6348       ;;
6349
6350     hpux10* | hpux11*)
6351       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6352         case "$host_cpu" in
6353         hppa*64*|ia64*)
6354           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6355           ;;
6356         *)
6357           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6358           ;;
6359         esac
6360       else
6361         case "$host_cpu" in
6362         hppa*64*|ia64*)
6363           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6364           ;;
6365         *)
6366           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6367           ;;
6368         esac
6369       fi
6370       if test "$with_gnu_ld" = no; then
6371         case "$host_cpu" in
6372         hppa*64*)
6373           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6374           hardcode_libdir_flag_spec_ld='+b $libdir'
6375           hardcode_libdir_separator=:
6376           hardcode_direct=no
6377           hardcode_shlibpath_var=no
6378           ;;
6379         ia64*)
6380           hardcode_libdir_flag_spec='-L$libdir'
6381           hardcode_direct=no
6382           hardcode_shlibpath_var=no
6383
6384           # hardcode_minus_L: Not really in the search PATH,
6385           # but as the default location of the library.
6386           hardcode_minus_L=yes
6387           ;;
6388         *)
6389           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6390           hardcode_libdir_separator=:
6391           hardcode_direct=yes
6392           export_dynamic_flag_spec='${wl}-E'
6393
6394           # hardcode_minus_L: Not really in the search PATH,
6395           # but as the default location of the library.
6396           hardcode_minus_L=yes
6397           ;;
6398         esac
6399       fi
6400       ;;
6401
6402     irix5* | irix6* | nonstopux*)
6403       if test "$GCC" = yes; then
6404         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'
6405       else
6406         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'
6407         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6408       fi
6409       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6410       hardcode_libdir_separator=:
6411       link_all_deplibs=yes
6412       ;;
6413
6414     netbsd*)
6415       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6416         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6417       else
6418         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6419       fi
6420       hardcode_libdir_flag_spec='-R$libdir'
6421       hardcode_direct=yes
6422       hardcode_shlibpath_var=no
6423       ;;
6424
6425     newsos6)
6426       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6427       hardcode_direct=yes
6428       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6429       hardcode_libdir_separator=:
6430       hardcode_shlibpath_var=no
6431       ;;
6432
6433     openbsd*)
6434       hardcode_direct=yes
6435       hardcode_shlibpath_var=no
6436       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6437         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6438         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6439         export_dynamic_flag_spec='${wl}-E'
6440       else
6441        case $host_os in
6442          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6443            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6444            hardcode_libdir_flag_spec='-R$libdir'
6445            ;;
6446          *)
6447            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6448            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6449            ;;
6450        esac
6451       fi
6452       ;;
6453
6454     os2*)
6455       hardcode_libdir_flag_spec='-L$libdir'
6456       hardcode_minus_L=yes
6457       allow_undefined_flag=unsupported
6458       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'
6459       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6460       ;;
6461
6462     osf3*)
6463       if test "$GCC" = yes; then
6464         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6465         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'
6466       else
6467         allow_undefined_flag=' -expect_unresolved \*'
6468         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'
6469       fi
6470       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6471       hardcode_libdir_separator=:
6472       ;;
6473
6474     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6475       if test "$GCC" = yes; then
6476         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6477         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'
6478         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6479       else
6480         allow_undefined_flag=' -expect_unresolved \*'
6481         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'
6482         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6483         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6484
6485         # Both c and cxx compiler support -rpath directly
6486         hardcode_libdir_flag_spec='-rpath $libdir'
6487       fi
6488       hardcode_libdir_separator=:
6489       ;;
6490
6491     sco3.2v5*)
6492       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6493       hardcode_shlibpath_var=no
6494       export_dynamic_flag_spec='${wl}-Bexport'
6495       runpath_var=LD_RUN_PATH
6496       hardcode_runpath_var=yes
6497       ;;
6498
6499     solaris*)
6500       no_undefined_flag=' -z text'
6501       if test "$GCC" = yes; then
6502         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6503         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6504           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6505       else
6506         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6507         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6508         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6509       fi
6510       hardcode_libdir_flag_spec='-R$libdir'
6511       hardcode_shlibpath_var=no
6512       case $host_os in
6513       solaris2.[0-5] | solaris2.[0-5].*) ;;
6514       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6515         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6516       esac
6517       link_all_deplibs=yes
6518       ;;
6519
6520     sunos4*)
6521       if test "x$host_vendor" = xsequent; then
6522         # Use $CC to link under sequent, because it throws in some extra .o
6523         # files that make .init and .fini sections work.
6524         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6525       else
6526         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6527       fi
6528       hardcode_libdir_flag_spec='-L$libdir'
6529       hardcode_direct=yes
6530       hardcode_minus_L=yes
6531       hardcode_shlibpath_var=no
6532       ;;
6533
6534     sysv4)
6535       case $host_vendor in
6536         sni)
6537           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6538           hardcode_direct=yes # is this really true???
6539         ;;
6540         siemens)
6541           ## LD is ld it makes a PLAMLIB
6542           ## CC just makes a GrossModule.
6543           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6544           reload_cmds='$CC -r -o $output$reload_objs'
6545           hardcode_direct=no
6546         ;;
6547         motorola)
6548           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6549           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6550         ;;
6551       esac
6552       runpath_var='LD_RUN_PATH'
6553       hardcode_shlibpath_var=no
6554       ;;
6555
6556     sysv4.3*)
6557       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6558       hardcode_shlibpath_var=no
6559       export_dynamic_flag_spec='-Bexport'
6560       ;;
6561
6562     sysv4*MP*)
6563       if test -d /usr/nec; then
6564         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6565         hardcode_shlibpath_var=no
6566         runpath_var=LD_RUN_PATH
6567         hardcode_runpath_var=yes
6568         ld_shlibs=yes
6569       fi
6570       ;;
6571
6572     sysv4.2uw2*)
6573       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6574       hardcode_direct=yes
6575       hardcode_minus_L=no
6576       hardcode_shlibpath_var=no
6577       hardcode_runpath_var=yes
6578       runpath_var=LD_RUN_PATH
6579       ;;
6580
6581    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
6582       no_undefined_flag='${wl}-z ${wl}text'
6583       if test "$GCC" = yes; then
6584         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6585       else
6586         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6587       fi
6588       runpath_var='LD_RUN_PATH'
6589       hardcode_shlibpath_var=no
6590       ;;
6591
6592     sysv5*)
6593       no_undefined_flag=' -z text'
6594       # $CC -shared without GNU ld will not create a library from C++
6595       # object files and a static libstdc++, better avoid it by now
6596       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6597       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6598                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6599       hardcode_libdir_flag_spec=
6600       hardcode_shlibpath_var=no
6601       runpath_var='LD_RUN_PATH'
6602       ;;
6603
6604     uts4*)
6605       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6606       hardcode_libdir_flag_spec='-L$libdir'
6607       hardcode_shlibpath_var=no
6608       ;;
6609
6610     *)
6611       ld_shlibs=no
6612       ;;
6613     esac
6614   fi
6615
6616 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6617 echo "${ECHO_T}$ld_shlibs" >&6
6618 test "$ld_shlibs" = no && can_build_shared=no
6619
6620 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6621 if test "$GCC" = yes; then
6622   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6623 fi
6624
6625 #
6626 # Do we need to explicitly link libc?
6627 #
6628 case "x$archive_cmds_need_lc" in
6629 x|xyes)
6630   # Assume -lc should be added
6631   archive_cmds_need_lc=yes
6632
6633   if test "$enable_shared" = yes && test "$GCC" = yes; then
6634     case $archive_cmds in
6635     *'~'*)
6636       # FIXME: we may have to deal with multi-command sequences.
6637       ;;
6638     '$CC '*)
6639       # Test whether the compiler implicitly links with -lc since on some
6640       # systems, -lgcc has to come before -lc. If gcc already passes -lc
6641       # to ld, don't add -lc before -lgcc.
6642       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6643 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6644       $rm conftest*
6645       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6646
6647       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6648   (eval $ac_compile) 2>&5
6649   ac_status=$?
6650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651   (exit $ac_status); } 2>conftest.err; then
6652         soname=conftest
6653         lib=conftest
6654         libobjs=conftest.$ac_objext
6655         deplibs=
6656         wl=$lt_prog_compiler_wl
6657         compiler_flags=-v
6658         linker_flags=-v
6659         verstring=
6660         output_objdir=.
6661         libname=conftest
6662         lt_save_allow_undefined_flag=$allow_undefined_flag
6663         allow_undefined_flag=
6664         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6665   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6666   ac_status=$?
6667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668   (exit $ac_status); }
6669         then
6670           archive_cmds_need_lc=no
6671         else
6672           archive_cmds_need_lc=yes
6673         fi
6674         allow_undefined_flag=$lt_save_allow_undefined_flag
6675       else
6676         cat conftest.err 1>&5
6677       fi
6678       $rm conftest*
6679       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6680 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6681       ;;
6682     esac
6683   fi
6684   ;;
6685 esac
6686
6687 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6688 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6689 library_names_spec=
6690 libname_spec='lib$name'
6691 soname_spec=
6692 shrext=".so"
6693 postinstall_cmds=
6694 postuninstall_cmds=
6695 finish_cmds=
6696 finish_eval=
6697 shlibpath_var=
6698 shlibpath_overrides_runpath=unknown
6699 version_type=none
6700 dynamic_linker="$host_os ld.so"
6701 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6702 if test "$GCC" = yes; then
6703   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6704   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6705     # if the path contains ";" then we assume it to be the separator
6706     # otherwise default to the standard path separator (i.e. ":") - it is
6707     # assumed that no part of a normal pathname contains ";" but that should
6708     # okay in the real world where ";" in dirpaths is itself problematic.
6709     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6710   else
6711     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6712   fi
6713 else
6714   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6715 fi
6716 need_lib_prefix=unknown
6717 hardcode_into_libs=no
6718
6719 # when you set need_version to no, make sure it does not cause -set_version
6720 # flags to be left without arguments
6721 need_version=unknown
6722
6723 case $host_os in
6724 aix3*)
6725   version_type=linux
6726   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6727   shlibpath_var=LIBPATH
6728
6729   # AIX 3 has no versioning support, so we append a major version to the name.
6730   soname_spec='${libname}${release}${shared_ext}$major'
6731   ;;
6732
6733 aix4* | aix5*)
6734   version_type=linux
6735   need_lib_prefix=no
6736   need_version=no
6737   hardcode_into_libs=yes
6738   if test "$host_cpu" = ia64; then
6739     # AIX 5 supports IA64
6740     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6741     shlibpath_var=LD_LIBRARY_PATH
6742   else
6743     # With GCC up to 2.95.x, collect2 would create an import file
6744     # for dependence libraries.  The import file would start with
6745     # the line `#! .'.  This would cause the generated library to
6746     # depend on `.', always an invalid library.  This was fixed in
6747     # development snapshots of GCC prior to 3.0.
6748     case $host_os in
6749       aix4 | aix4.[01] | aix4.[01].*)
6750       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6751            echo ' yes '
6752            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6753         :
6754       else
6755         can_build_shared=no
6756       fi
6757       ;;
6758     esac
6759     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6760     # soname into executable. Probably we can add versioning support to
6761     # collect2, so additional links can be useful in future.
6762     if test "$aix_use_runtimelinking" = yes; then
6763       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6764       # instead of lib<name>.a to let people know that these are not
6765       # typical AIX shared libraries.
6766       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6767     else
6768       # We preserve .a as extension for shared libraries through AIX4.2
6769       # and later when we are not doing run time linking.
6770       library_names_spec='${libname}${release}.a $libname.a'
6771       soname_spec='${libname}${release}${shared_ext}$major'
6772     fi
6773     shlibpath_var=LIBPATH
6774   fi
6775   ;;
6776
6777 amigaos*)
6778   library_names_spec='$libname.ixlibrary $libname.a'
6779   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6780   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'
6781   ;;
6782
6783 beos*)
6784   library_names_spec='${libname}${shared_ext}'
6785   dynamic_linker="$host_os ld.so"
6786   shlibpath_var=LIBRARY_PATH
6787   ;;
6788
6789 bsdi4*)
6790   version_type=linux
6791   need_version=no
6792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6793   soname_spec='${libname}${release}${shared_ext}$major'
6794   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6795   shlibpath_var=LD_LIBRARY_PATH
6796   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6797   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6798   # the default ld.so.conf also contains /usr/contrib/lib and
6799   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6800   # libtool to hard-code these into programs
6801   ;;
6802
6803 cygwin* | mingw* | pw32*)
6804   version_type=windows
6805   shrext=".dll"
6806   need_version=no
6807   need_lib_prefix=no
6808
6809   case $GCC,$host_os in
6810   yes,cygwin* | yes,mingw* | yes,pw32*)
6811     library_names_spec='$libname.dll.a'
6812     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6813     postinstall_cmds='base_file=`basename \${file}`~
6814       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6815       dldir=$destdir/`dirname \$dlpath`~
6816       test -d \$dldir || mkdir -p \$dldir~
6817       $install_prog $dir/$dlname \$dldir/$dlname'
6818     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6819       dlpath=$dir/\$dldll~
6820        $rm \$dlpath'
6821     shlibpath_overrides_runpath=yes
6822
6823     case $host_os in
6824     cygwin*)
6825       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6826       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6827       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6828       ;;
6829     mingw*)
6830       # MinGW DLLs use traditional 'lib' prefix
6831       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6832       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6833       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6834         # It is most probably a Windows format PATH printed by
6835         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6836         # path with ; separators, and with drive letters. We can handle the
6837         # drive letters (cygwin fileutils understands them), so leave them,
6838         # especially as we might pass files found there to a mingw objdump,
6839         # which wouldn't understand a cygwinified path. Ahh.
6840         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6841       else
6842         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6843       fi
6844       ;;
6845     pw32*)
6846       # pw32 DLLs use 'pw' prefix rather than 'lib'
6847       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6848       ;;
6849     esac
6850     ;;
6851
6852   *)
6853     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6854     ;;
6855   esac
6856   dynamic_linker='Win32 ld.exe'
6857   # FIXME: first we should search . and the directory the executable is in
6858   shlibpath_var=PATH
6859   ;;
6860
6861 darwin* | rhapsody*)
6862   dynamic_linker="$host_os dyld"
6863   version_type=darwin
6864   need_lib_prefix=no
6865   need_version=no
6866   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6867   soname_spec='${libname}${release}${major}$shared_ext'
6868   shlibpath_overrides_runpath=yes
6869   shlibpath_var=DYLD_LIBRARY_PATH
6870   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6871   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6872   if test "$GCC" = yes; then
6873     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"`
6874   else
6875     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6876   fi
6877   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6878   ;;
6879
6880 dgux*)
6881   version_type=linux
6882   need_lib_prefix=no
6883   need_version=no
6884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6885   soname_spec='${libname}${release}${shared_ext}$major'
6886   shlibpath_var=LD_LIBRARY_PATH
6887   ;;
6888
6889 freebsd1*)
6890   dynamic_linker=no
6891   ;;
6892
6893 kfreebsd*-gnu)
6894   version_type=linux
6895   need_lib_prefix=no
6896   need_version=no
6897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6898   soname_spec='${libname}${release}${shared_ext}$major'
6899   shlibpath_var=LD_LIBRARY_PATH
6900   shlibpath_overrides_runpath=no
6901   hardcode_into_libs=yes
6902   dynamic_linker='GNU ld.so'
6903   ;;
6904
6905 freebsd*)
6906   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6907   version_type=freebsd-$objformat
6908   case $version_type in
6909     freebsd-elf*)
6910       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6911       need_version=no
6912       need_lib_prefix=no
6913       ;;
6914     freebsd-*)
6915       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6916       need_version=yes
6917       ;;
6918   esac
6919   shlibpath_var=LD_LIBRARY_PATH
6920   case $host_os in
6921   freebsd2*)
6922     shlibpath_overrides_runpath=yes
6923     ;;
6924   freebsd3.01* | freebsdelf3.01*)
6925     shlibpath_overrides_runpath=yes
6926     hardcode_into_libs=yes
6927     ;;
6928   *) # from 3.2 on
6929     shlibpath_overrides_runpath=no
6930     hardcode_into_libs=yes
6931     ;;
6932   esac
6933   ;;
6934
6935 gnu*)
6936   version_type=linux
6937   need_lib_prefix=no
6938   need_version=no
6939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6940   soname_spec='${libname}${release}${shared_ext}$major'
6941   shlibpath_var=LD_LIBRARY_PATH
6942   hardcode_into_libs=yes
6943   ;;
6944
6945 hpux9* | hpux10* | hpux11*)
6946   # Give a soname corresponding to the major version so that dld.sl refuses to
6947   # link against other versions.
6948   version_type=sunos
6949   need_lib_prefix=no
6950   need_version=no
6951   case "$host_cpu" in
6952   ia64*)
6953     shrext='.so'
6954     hardcode_into_libs=yes
6955     dynamic_linker="$host_os dld.so"
6956     shlibpath_var=LD_LIBRARY_PATH
6957     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6958     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6959     soname_spec='${libname}${release}${shared_ext}$major'
6960     if test "X$HPUX_IA64_MODE" = X32; then
6961       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6962     else
6963       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6964     fi
6965     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6966     ;;
6967    hppa*64*)
6968      shrext='.sl'
6969      hardcode_into_libs=yes
6970      dynamic_linker="$host_os dld.sl"
6971      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6972      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6973      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6974      soname_spec='${libname}${release}${shared_ext}$major'
6975      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6976      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6977      ;;
6978    *)
6979     shrext='.sl'
6980     dynamic_linker="$host_os dld.sl"
6981     shlibpath_var=SHLIB_PATH
6982     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6983     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6984     soname_spec='${libname}${release}${shared_ext}$major'
6985     ;;
6986   esac
6987   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6988   postinstall_cmds='chmod 555 $lib'
6989   ;;
6990
6991 irix5* | irix6* | nonstopux*)
6992   case $host_os in
6993     nonstopux*) version_type=nonstopux ;;
6994     *)
6995         if test "$lt_cv_prog_gnu_ld" = yes; then
6996                 version_type=linux
6997         else
6998                 version_type=irix
6999         fi ;;
7000   esac
7001   need_lib_prefix=no
7002   need_version=no
7003   soname_spec='${libname}${release}${shared_ext}$major'
7004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7005   case $host_os in
7006   irix5* | nonstopux*)
7007     libsuff= shlibsuff=
7008     ;;
7009   *)
7010     case $LD in # libtool.m4 will add one of these switches to LD
7011     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7012       libsuff= shlibsuff= libmagic=32-bit;;
7013     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7014       libsuff=32 shlibsuff=N32 libmagic=N32;;
7015     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7016       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7017     *) libsuff= shlibsuff= libmagic=never-match;;
7018     esac
7019     ;;
7020   esac
7021   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7022   shlibpath_overrides_runpath=no
7023   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7024   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7025   hardcode_into_libs=yes
7026   ;;
7027
7028 # No shared lib support for Linux oldld, aout, or coff.
7029 linux*oldld* | linux*aout* | linux*coff*)
7030   dynamic_linker=no
7031   ;;
7032
7033 # This must be Linux ELF.
7034 linux*)
7035   version_type=linux
7036   need_lib_prefix=no
7037   need_version=no
7038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7039   soname_spec='${libname}${release}${shared_ext}$major'
7040   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7041   shlibpath_var=LD_LIBRARY_PATH
7042   shlibpath_overrides_runpath=no
7043   # This implies no fast_install, which is unacceptable.
7044   # Some rework will be needed to allow for fast_install
7045   # before this can be enabled.
7046   hardcode_into_libs=yes
7047
7048   # We used to test for /lib/ld.so.1 and disable shared libraries on
7049   # powerpc, because MkLinux only supported shared libraries with the
7050   # GNU dynamic linker.  Since this was broken with cross compilers,
7051   # most powerpc-linux boxes support dynamic linking these days and
7052   # people can always --disable-shared, the test was removed, and we
7053   # assume the GNU/Linux dynamic linker is in use.
7054   dynamic_linker='GNU/Linux ld.so'
7055   ;;
7056
7057 netbsd*)
7058   version_type=sunos
7059   need_lib_prefix=no
7060   need_version=no
7061   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7062     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7063     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7064     dynamic_linker='NetBSD (a.out) ld.so'
7065   else
7066     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7067     soname_spec='${libname}${release}${shared_ext}$major'
7068     dynamic_linker='NetBSD ld.elf_so'
7069   fi
7070   shlibpath_var=LD_LIBRARY_PATH
7071   shlibpath_overrides_runpath=yes
7072   hardcode_into_libs=yes
7073   ;;
7074
7075 newsos6)
7076   version_type=linux
7077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7078   shlibpath_var=LD_LIBRARY_PATH
7079   shlibpath_overrides_runpath=yes
7080   ;;
7081
7082 nto-qnx*)
7083   version_type=linux
7084   need_lib_prefix=no
7085   need_version=no
7086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7087   soname_spec='${libname}${release}${shared_ext}$major'
7088   shlibpath_var=LD_LIBRARY_PATH
7089   shlibpath_overrides_runpath=yes
7090   ;;
7091
7092 openbsd*)
7093   version_type=sunos
7094   need_lib_prefix=no
7095   need_version=no
7096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7097   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7098   shlibpath_var=LD_LIBRARY_PATH
7099   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7100     case $host_os in
7101       openbsd2.[89] | openbsd2.[89].*)
7102         shlibpath_overrides_runpath=no
7103         ;;
7104       *)
7105         shlibpath_overrides_runpath=yes
7106         ;;
7107       esac
7108   else
7109     shlibpath_overrides_runpath=yes
7110   fi
7111   ;;
7112
7113 os2*)
7114   libname_spec='$name'
7115   shrext=".dll"
7116   need_lib_prefix=no
7117   library_names_spec='$libname${shared_ext} $libname.a'
7118   dynamic_linker='OS/2 ld.exe'
7119   shlibpath_var=LIBPATH
7120   ;;
7121
7122 osf3* | osf4* | osf5*)
7123   version_type=osf
7124   need_lib_prefix=no
7125   need_version=no
7126   soname_spec='${libname}${release}${shared_ext}$major'
7127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7128   shlibpath_var=LD_LIBRARY_PATH
7129   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7130   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7131   ;;
7132
7133 sco3.2v5*)
7134   version_type=osf
7135   soname_spec='${libname}${release}${shared_ext}$major'
7136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7137   shlibpath_var=LD_LIBRARY_PATH
7138   ;;
7139
7140 solaris*)
7141   version_type=linux
7142   need_lib_prefix=no
7143   need_version=no
7144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7145   soname_spec='${libname}${release}${shared_ext}$major'
7146   shlibpath_var=LD_LIBRARY_PATH
7147   shlibpath_overrides_runpath=yes
7148   hardcode_into_libs=yes
7149   # ldd complains unless libraries are executable
7150   postinstall_cmds='chmod +x $lib'
7151   ;;
7152
7153 sunos4*)
7154   version_type=sunos
7155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7156   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7157   shlibpath_var=LD_LIBRARY_PATH
7158   shlibpath_overrides_runpath=yes
7159   if test "$with_gnu_ld" = yes; then
7160     need_lib_prefix=no
7161   fi
7162   need_version=yes
7163   ;;
7164
7165 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7166   version_type=linux
7167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7168   soname_spec='${libname}${release}${shared_ext}$major'
7169   shlibpath_var=LD_LIBRARY_PATH
7170   case $host_vendor in
7171     sni)
7172       shlibpath_overrides_runpath=no
7173       need_lib_prefix=no
7174       export_dynamic_flag_spec='${wl}-Blargedynsym'
7175       runpath_var=LD_RUN_PATH
7176       ;;
7177     siemens)
7178       need_lib_prefix=no
7179       ;;
7180     motorola)
7181       need_lib_prefix=no
7182       need_version=no
7183       shlibpath_overrides_runpath=no
7184       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7185       ;;
7186   esac
7187   ;;
7188
7189 sysv4*MP*)
7190   if test -d /usr/nec ;then
7191     version_type=linux
7192     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7193     soname_spec='$libname${shared_ext}.$major'
7194     shlibpath_var=LD_LIBRARY_PATH
7195   fi
7196   ;;
7197
7198 uts4*)
7199   version_type=linux
7200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7201   soname_spec='${libname}${release}${shared_ext}$major'
7202   shlibpath_var=LD_LIBRARY_PATH
7203   ;;
7204
7205 *)
7206   dynamic_linker=no
7207   ;;
7208 esac
7209 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7210 echo "${ECHO_T}$dynamic_linker" >&6
7211 test "$dynamic_linker" = no && can_build_shared=no
7212
7213 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7214 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7215 hardcode_action=
7216 if test -n "$hardcode_libdir_flag_spec" || \
7217    test -n "$runpath_var " || \
7218    test "X$hardcode_automatic"="Xyes" ; then
7219
7220   # We can hardcode non-existant directories.
7221   if test "$hardcode_direct" != no &&
7222      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7223      # have to relink, otherwise we might link with an installed library
7224      # when we should be linking with a yet-to-be-installed one
7225      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7226      test "$hardcode_minus_L" != no; then
7227     # Linking always hardcodes the temporary library directory.
7228     hardcode_action=relink
7229   else
7230     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7231     hardcode_action=immediate
7232   fi
7233 else
7234   # We cannot hardcode anything, or else we can only hardcode existing
7235   # directories.
7236   hardcode_action=unsupported
7237 fi
7238 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7239 echo "${ECHO_T}$hardcode_action" >&6
7240
7241 if test "$hardcode_action" = relink; then
7242   # Fast installation is not supported
7243   enable_fast_install=no
7244 elif test "$shlibpath_overrides_runpath" = yes ||
7245      test "$enable_shared" = no; then
7246   # Fast installation is not necessary
7247   enable_fast_install=needless
7248 fi
7249
7250 striplib=
7251 old_striplib=
7252 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7253 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7254 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7255   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7256   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7257   echo "$as_me:$LINENO: result: yes" >&5
7258 echo "${ECHO_T}yes" >&6
7259 else
7260 # FIXME - insert some real tests, host_os isn't really good enough
7261   case $host_os in
7262    darwin*)
7263        if test -n "$STRIP" ; then
7264          striplib="$STRIP -x"
7265          echo "$as_me:$LINENO: result: yes" >&5
7266 echo "${ECHO_T}yes" >&6
7267        else
7268   echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6
7270 fi
7271        ;;
7272    *)
7273   echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6
7275     ;;
7276   esac
7277 fi
7278
7279 if test "x$enable_dlopen" != xyes; then
7280   enable_dlopen=unknown
7281   enable_dlopen_self=unknown
7282   enable_dlopen_self_static=unknown
7283 else
7284   lt_cv_dlopen=no
7285   lt_cv_dlopen_libs=
7286
7287   case $host_os in
7288   beos*)
7289     lt_cv_dlopen="load_add_on"
7290     lt_cv_dlopen_libs=
7291     lt_cv_dlopen_self=yes
7292     ;;
7293
7294   mingw* | pw32*)
7295     lt_cv_dlopen="LoadLibrary"
7296     lt_cv_dlopen_libs=
7297    ;;
7298
7299   cygwin*)
7300     lt_cv_dlopen="dlopen"
7301     lt_cv_dlopen_libs=
7302    ;;
7303
7304   darwin*)
7305   # if libdl is installed we need to link against it
7306     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7307 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7308 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7309   echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311   ac_check_lib_save_LIBS=$LIBS
7312 LIBS="-ldl  $LIBS"
7313 cat >conftest.$ac_ext <<_ACEOF
7314 #line $LINENO "configure"
7315 /* confdefs.h.  */
7316 _ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h.  */
7320
7321 /* Override any gcc2 internal prototype to avoid an error.  */
7322 #ifdef __cplusplus
7323 extern "C"
7324 #endif
7325 /* We use char because int might match the return type of a gcc2
7326    builtin and then its argument prototype would still apply.  */
7327 char dlopen ();
7328 int
7329 main ()
7330 {
7331 dlopen ();
7332   ;
7333   return 0;
7334 }
7335 _ACEOF
7336 rm -f conftest.$ac_objext conftest$ac_exeext
7337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7338   (eval $ac_link) 2>&5
7339   ac_status=$?
7340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341   (exit $ac_status); } &&
7342          { ac_try='test -s conftest$ac_exeext'
7343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344   (eval $ac_try) 2>&5
7345   ac_status=$?
7346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347   (exit $ac_status); }; }; then
7348   ac_cv_lib_dl_dlopen=yes
7349 else
7350   echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7352
7353 ac_cv_lib_dl_dlopen=no
7354 fi
7355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7356 LIBS=$ac_check_lib_save_LIBS
7357 fi
7358 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7359 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7360 if test $ac_cv_lib_dl_dlopen = yes; then
7361   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7362 else
7363
7364     lt_cv_dlopen="dyld"
7365     lt_cv_dlopen_libs=
7366     lt_cv_dlopen_self=yes
7367
7368 fi
7369
7370    ;;
7371
7372   *)
7373     echo "$as_me:$LINENO: checking for shl_load" >&5
7374 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7375 if test "${ac_cv_func_shl_load+set}" = set; then
7376   echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378   cat >conftest.$ac_ext <<_ACEOF
7379 #line $LINENO "configure"
7380 /* confdefs.h.  */
7381 _ACEOF
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h.  */
7385 /* System header to define __stub macros and hopefully few prototypes,
7386     which can conflict with char shl_load (); below.
7387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7388     <limits.h> exists even on freestanding compilers.  */
7389 #ifdef __STDC__
7390 # include <limits.h>
7391 #else
7392 # include <assert.h>
7393 #endif
7394 /* Override any gcc2 internal prototype to avoid an error.  */
7395 #ifdef __cplusplus
7396 extern "C"
7397 {
7398 #endif
7399 /* We use char because int might match the return type of a gcc2
7400    builtin and then its argument prototype would still apply.  */
7401 char shl_load ();
7402 /* The GNU C library defines this for functions which it implements
7403     to always fail with ENOSYS.  Some functions are actually named
7404     something starting with __ and the normal name is an alias.  */
7405 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7406 choke me
7407 #else
7408 char (*f) () = shl_load;
7409 #endif
7410 #ifdef __cplusplus
7411 }
7412 #endif
7413
7414 int
7415 main ()
7416 {
7417 return f != shl_load;
7418   ;
7419   return 0;
7420 }
7421 _ACEOF
7422 rm -f conftest.$ac_objext conftest$ac_exeext
7423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7424   (eval $ac_link) 2>&5
7425   ac_status=$?
7426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427   (exit $ac_status); } &&
7428          { ac_try='test -s conftest$ac_exeext'
7429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430   (eval $ac_try) 2>&5
7431   ac_status=$?
7432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433   (exit $ac_status); }; }; then
7434   ac_cv_func_shl_load=yes
7435 else
7436   echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7438
7439 ac_cv_func_shl_load=no
7440 fi
7441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7442 fi
7443 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7444 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7445 if test $ac_cv_func_shl_load = yes; then
7446   lt_cv_dlopen="shl_load"
7447 else
7448   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7449 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7450 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453   ac_check_lib_save_LIBS=$LIBS
7454 LIBS="-ldld  $LIBS"
7455 cat >conftest.$ac_ext <<_ACEOF
7456 #line $LINENO "configure"
7457 /* confdefs.h.  */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h.  */
7462
7463 /* Override any gcc2 internal prototype to avoid an error.  */
7464 #ifdef __cplusplus
7465 extern "C"
7466 #endif
7467 /* We use char because int might match the return type of a gcc2
7468    builtin and then its argument prototype would still apply.  */
7469 char shl_load ();
7470 int
7471 main ()
7472 {
7473 shl_load ();
7474   ;
7475   return 0;
7476 }
7477 _ACEOF
7478 rm -f conftest.$ac_objext conftest$ac_exeext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7480   (eval $ac_link) 2>&5
7481   ac_status=$?
7482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483   (exit $ac_status); } &&
7484          { ac_try='test -s conftest$ac_exeext'
7485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486   (eval $ac_try) 2>&5
7487   ac_status=$?
7488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489   (exit $ac_status); }; }; then
7490   ac_cv_lib_dld_shl_load=yes
7491 else
7492   echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7494
7495 ac_cv_lib_dld_shl_load=no
7496 fi
7497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7498 LIBS=$ac_check_lib_save_LIBS
7499 fi
7500 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7501 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7502 if test $ac_cv_lib_dld_shl_load = yes; then
7503   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7504 else
7505   echo "$as_me:$LINENO: checking for dlopen" >&5
7506 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7507 if test "${ac_cv_func_dlopen+set}" = set; then
7508   echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510   cat >conftest.$ac_ext <<_ACEOF
7511 #line $LINENO "configure"
7512 /* confdefs.h.  */
7513 _ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h.  */
7517 /* System header to define __stub macros and hopefully few prototypes,
7518     which can conflict with char dlopen (); below.
7519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7520     <limits.h> exists even on freestanding compilers.  */
7521 #ifdef __STDC__
7522 # include <limits.h>
7523 #else
7524 # include <assert.h>
7525 #endif
7526 /* Override any gcc2 internal prototype to avoid an error.  */
7527 #ifdef __cplusplus
7528 extern "C"
7529 {
7530 #endif
7531 /* We use char because int might match the return type of a gcc2
7532    builtin and then its argument prototype would still apply.  */
7533 char dlopen ();
7534 /* The GNU C library defines this for functions which it implements
7535     to always fail with ENOSYS.  Some functions are actually named
7536     something starting with __ and the normal name is an alias.  */
7537 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7538 choke me
7539 #else
7540 char (*f) () = dlopen;
7541 #endif
7542 #ifdef __cplusplus
7543 }
7544 #endif
7545
7546 int
7547 main ()
7548 {
7549 return f != dlopen;
7550   ;
7551   return 0;
7552 }
7553 _ACEOF
7554 rm -f conftest.$ac_objext conftest$ac_exeext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7556   (eval $ac_link) 2>&5
7557   ac_status=$?
7558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559   (exit $ac_status); } &&
7560          { ac_try='test -s conftest$ac_exeext'
7561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562   (eval $ac_try) 2>&5
7563   ac_status=$?
7564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565   (exit $ac_status); }; }; then
7566   ac_cv_func_dlopen=yes
7567 else
7568   echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7570
7571 ac_cv_func_dlopen=no
7572 fi
7573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7574 fi
7575 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7576 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7577 if test $ac_cv_func_dlopen = yes; then
7578   lt_cv_dlopen="dlopen"
7579 else
7580   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7581 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7582 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7583   echo $ECHO_N "(cached) $ECHO_C" >&6
7584 else
7585   ac_check_lib_save_LIBS=$LIBS
7586 LIBS="-ldl  $LIBS"
7587 cat >conftest.$ac_ext <<_ACEOF
7588 #line $LINENO "configure"
7589 /* confdefs.h.  */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h.  */
7594
7595 /* Override any gcc2 internal prototype to avoid an error.  */
7596 #ifdef __cplusplus
7597 extern "C"
7598 #endif
7599 /* We use char because int might match the return type of a gcc2
7600    builtin and then its argument prototype would still apply.  */
7601 char dlopen ();
7602 int
7603 main ()
7604 {
7605 dlopen ();
7606   ;
7607   return 0;
7608 }
7609 _ACEOF
7610 rm -f conftest.$ac_objext conftest$ac_exeext
7611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7612   (eval $ac_link) 2>&5
7613   ac_status=$?
7614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615   (exit $ac_status); } &&
7616          { ac_try='test -s conftest$ac_exeext'
7617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618   (eval $ac_try) 2>&5
7619   ac_status=$?
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); }; }; then
7622   ac_cv_lib_dl_dlopen=yes
7623 else
7624   echo "$as_me: failed program was:" >&5
7625 sed 's/^/| /' conftest.$ac_ext >&5
7626
7627 ac_cv_lib_dl_dlopen=no
7628 fi
7629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7630 LIBS=$ac_check_lib_save_LIBS
7631 fi
7632 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7633 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7634 if test $ac_cv_lib_dl_dlopen = yes; then
7635   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7636 else
7637   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7638 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7639 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7640   echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642   ac_check_lib_save_LIBS=$LIBS
7643 LIBS="-lsvld  $LIBS"
7644 cat >conftest.$ac_ext <<_ACEOF
7645 #line $LINENO "configure"
7646 /* confdefs.h.  */
7647 _ACEOF
7648 cat confdefs.h >>conftest.$ac_ext
7649 cat >>conftest.$ac_ext <<_ACEOF
7650 /* end confdefs.h.  */
7651
7652 /* Override any gcc2 internal prototype to avoid an error.  */
7653 #ifdef __cplusplus
7654 extern "C"
7655 #endif
7656 /* We use char because int might match the return type of a gcc2
7657    builtin and then its argument prototype would still apply.  */
7658 char dlopen ();
7659 int
7660 main ()
7661 {
7662 dlopen ();
7663   ;
7664   return 0;
7665 }
7666 _ACEOF
7667 rm -f conftest.$ac_objext conftest$ac_exeext
7668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7669   (eval $ac_link) 2>&5
7670   ac_status=$?
7671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672   (exit $ac_status); } &&
7673          { ac_try='test -s conftest$ac_exeext'
7674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675   (eval $ac_try) 2>&5
7676   ac_status=$?
7677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678   (exit $ac_status); }; }; then
7679   ac_cv_lib_svld_dlopen=yes
7680 else
7681   echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7683
7684 ac_cv_lib_svld_dlopen=no
7685 fi
7686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7687 LIBS=$ac_check_lib_save_LIBS
7688 fi
7689 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7690 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7691 if test $ac_cv_lib_svld_dlopen = yes; then
7692   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7693 else
7694   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7695 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7696 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7697   echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699   ac_check_lib_save_LIBS=$LIBS
7700 LIBS="-ldld  $LIBS"
7701 cat >conftest.$ac_ext <<_ACEOF
7702 #line $LINENO "configure"
7703 /* confdefs.h.  */
7704 _ACEOF
7705 cat confdefs.h >>conftest.$ac_ext
7706 cat >>conftest.$ac_ext <<_ACEOF
7707 /* end confdefs.h.  */
7708
7709 /* Override any gcc2 internal prototype to avoid an error.  */
7710 #ifdef __cplusplus
7711 extern "C"
7712 #endif
7713 /* We use char because int might match the return type of a gcc2
7714    builtin and then its argument prototype would still apply.  */
7715 char dld_link ();
7716 int
7717 main ()
7718 {
7719 dld_link ();
7720   ;
7721   return 0;
7722 }
7723 _ACEOF
7724 rm -f conftest.$ac_objext conftest$ac_exeext
7725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7726   (eval $ac_link) 2>&5
7727   ac_status=$?
7728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729   (exit $ac_status); } &&
7730          { ac_try='test -s conftest$ac_exeext'
7731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732   (eval $ac_try) 2>&5
7733   ac_status=$?
7734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735   (exit $ac_status); }; }; then
7736   ac_cv_lib_dld_dld_link=yes
7737 else
7738   echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.$ac_ext >&5
7740
7741 ac_cv_lib_dld_dld_link=no
7742 fi
7743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7744 LIBS=$ac_check_lib_save_LIBS
7745 fi
7746 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7747 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7748 if test $ac_cv_lib_dld_dld_link = yes; then
7749   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7750 fi
7751
7752
7753 fi
7754
7755
7756 fi
7757
7758
7759 fi
7760
7761
7762 fi
7763
7764
7765 fi
7766
7767     ;;
7768   esac
7769
7770   if test "x$lt_cv_dlopen" != xno; then
7771     enable_dlopen=yes
7772   else
7773     enable_dlopen=no
7774   fi
7775
7776   case $lt_cv_dlopen in
7777   dlopen)
7778     save_CPPFLAGS="$CPPFLAGS"
7779     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7780
7781     save_LDFLAGS="$LDFLAGS"
7782     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7783
7784     save_LIBS="$LIBS"
7785     LIBS="$lt_cv_dlopen_libs $LIBS"
7786
7787     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7788 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7789 if test "${lt_cv_dlopen_self+set}" = set; then
7790   echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792           if test "$cross_compiling" = yes; then :
7793   lt_cv_dlopen_self=cross
7794 else
7795   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7796   lt_status=$lt_dlunknown
7797   cat > conftest.$ac_ext <<EOF
7798 #line 7798 "configure"
7799 #include "confdefs.h"
7800
7801 #if HAVE_DLFCN_H
7802 #include <dlfcn.h>
7803 #endif
7804
7805 #include <stdio.h>
7806
7807 #ifdef RTLD_GLOBAL
7808 #  define LT_DLGLOBAL           RTLD_GLOBAL
7809 #else
7810 #  ifdef DL_GLOBAL
7811 #    define LT_DLGLOBAL         DL_GLOBAL
7812 #  else
7813 #    define LT_DLGLOBAL         0
7814 #  endif
7815 #endif
7816
7817 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7818    find out it does not work in some platform. */
7819 #ifndef LT_DLLAZY_OR_NOW
7820 #  ifdef RTLD_LAZY
7821 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7822 #  else
7823 #    ifdef DL_LAZY
7824 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7825 #    else
7826 #      ifdef RTLD_NOW
7827 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7828 #      else
7829 #        ifdef DL_NOW
7830 #          define LT_DLLAZY_OR_NOW      DL_NOW
7831 #        else
7832 #          define LT_DLLAZY_OR_NOW      0
7833 #        endif
7834 #      endif
7835 #    endif
7836 #  endif
7837 #endif
7838
7839 #ifdef __cplusplus
7840 extern "C" void exit (int);
7841 #endif
7842
7843 void fnord() { int i=42;}
7844 int main ()
7845 {
7846   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7847   int status = $lt_dlunknown;
7848
7849   if (self)
7850     {
7851       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7852       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7853       /* dlclose (self); */
7854     }
7855
7856     exit (status);
7857 }
7858 EOF
7859   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7860   (eval $ac_link) 2>&5
7861   ac_status=$?
7862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7864     (./conftest; exit; ) 2>/dev/null
7865     lt_status=$?
7866     case x$lt_status in
7867       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7868       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7869       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7870     esac
7871   else :
7872     # compilation failed
7873     lt_cv_dlopen_self=no
7874   fi
7875 fi
7876 rm -fr conftest*
7877
7878
7879 fi
7880 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7881 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7882
7883     if test "x$lt_cv_dlopen_self" = xyes; then
7884       LDFLAGS="$LDFLAGS $link_static_flag"
7885       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7886 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7887 if test "${lt_cv_dlopen_self_static+set}" = set; then
7888   echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890           if test "$cross_compiling" = yes; then :
7891   lt_cv_dlopen_self_static=cross
7892 else
7893   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7894   lt_status=$lt_dlunknown
7895   cat > conftest.$ac_ext <<EOF
7896 #line 7896 "configure"
7897 #include "confdefs.h"
7898
7899 #if HAVE_DLFCN_H
7900 #include <dlfcn.h>
7901 #endif
7902
7903 #include <stdio.h>
7904
7905 #ifdef RTLD_GLOBAL
7906 #  define LT_DLGLOBAL           RTLD_GLOBAL
7907 #else
7908 #  ifdef DL_GLOBAL
7909 #    define LT_DLGLOBAL         DL_GLOBAL
7910 #  else
7911 #    define LT_DLGLOBAL         0
7912 #  endif
7913 #endif
7914
7915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7916    find out it does not work in some platform. */
7917 #ifndef LT_DLLAZY_OR_NOW
7918 #  ifdef RTLD_LAZY
7919 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7920 #  else
7921 #    ifdef DL_LAZY
7922 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7923 #    else
7924 #      ifdef RTLD_NOW
7925 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7926 #      else
7927 #        ifdef DL_NOW
7928 #          define LT_DLLAZY_OR_NOW      DL_NOW
7929 #        else
7930 #          define LT_DLLAZY_OR_NOW      0
7931 #        endif
7932 #      endif
7933 #    endif
7934 #  endif
7935 #endif
7936
7937 #ifdef __cplusplus
7938 extern "C" void exit (int);
7939 #endif
7940
7941 void fnord() { int i=42;}
7942 int main ()
7943 {
7944   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7945   int status = $lt_dlunknown;
7946
7947   if (self)
7948     {
7949       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7950       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7951       /* dlclose (self); */
7952     }
7953
7954     exit (status);
7955 }
7956 EOF
7957   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7958   (eval $ac_link) 2>&5
7959   ac_status=$?
7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7962     (./conftest; exit; ) 2>/dev/null
7963     lt_status=$?
7964     case x$lt_status in
7965       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7966       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7967       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7968     esac
7969   else :
7970     # compilation failed
7971     lt_cv_dlopen_self_static=no
7972   fi
7973 fi
7974 rm -fr conftest*
7975
7976
7977 fi
7978 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7979 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7980     fi
7981
7982     CPPFLAGS="$save_CPPFLAGS"
7983     LDFLAGS="$save_LDFLAGS"
7984     LIBS="$save_LIBS"
7985     ;;
7986   esac
7987
7988   case $lt_cv_dlopen_self in
7989   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7990   *) enable_dlopen_self=unknown ;;
7991   esac
7992
7993   case $lt_cv_dlopen_self_static in
7994   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7995   *) enable_dlopen_self_static=unknown ;;
7996   esac
7997 fi
7998
7999
8000 # Report which librarie types wil actually be built
8001 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8002 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8003 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8004 echo "${ECHO_T}$can_build_shared" >&6
8005
8006 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8007 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8008 test "$can_build_shared" = "no" && enable_shared=no
8009
8010 # On AIX, shared libraries and static libraries use the same namespace, and
8011 # are all built from PIC.
8012 case "$host_os" in
8013 aix3*)
8014   test "$enable_shared" = yes && enable_static=no
8015   if test -n "$RANLIB"; then
8016     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8017     postinstall_cmds='$RANLIB $lib'
8018   fi
8019   ;;
8020
8021 aix4*)
8022   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8023     test "$enable_shared" = yes && enable_static=no
8024   fi
8025   ;;
8026   darwin* | rhapsody*)
8027   if test "$GCC" = yes; then
8028     archive_cmds_need_lc=no
8029     case "$host_os" in
8030     rhapsody* | darwin1.[012])
8031       allow_undefined_flag='-undefined suppress'
8032       ;;
8033     *) # Darwin 1.3 on
8034       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8035         allow_undefined_flag='-flat_namespace -undefined suppress'
8036       else
8037         case ${MACOSX_DEPLOYMENT_TARGET} in
8038           10.[012])
8039             allow_undefined_flag='-flat_namespace -undefined suppress'
8040             ;;
8041           10.*)
8042             allow_undefined_flag='-undefined dynamic_lookup'
8043             ;;
8044         esac
8045       fi
8046       ;;
8047     esac
8048     output_verbose_link_cmd='echo'
8049     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8050     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8051     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8052     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}'
8053     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}'
8054     hardcode_direct=no
8055     hardcode_automatic=yes
8056     hardcode_shlibpath_var=unsupported
8057     whole_archive_flag_spec='-all_load $convenience'
8058     link_all_deplibs=yes
8059   else
8060     ld_shlibs=no
8061   fi
8062     ;;
8063 esac
8064 echo "$as_me:$LINENO: result: $enable_shared" >&5
8065 echo "${ECHO_T}$enable_shared" >&6
8066
8067 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8068 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8069 # Make sure either enable_shared or enable_static is yes.
8070 test "$enable_shared" = yes || enable_static=yes
8071 echo "$as_me:$LINENO: result: $enable_static" >&5
8072 echo "${ECHO_T}$enable_static" >&6
8073
8074 # The else clause should only fire when bootstrapping the
8075 # libtool distribution, otherwise you forgot to ship ltmain.sh
8076 # with your package, and you will get complaints that there are
8077 # no rules to generate ltmain.sh.
8078 if test -f "$ltmain"; then
8079   # See if we are running on zsh, and set the options which allow our commands through
8080   # without removal of \ escapes.
8081   if test -n "${ZSH_VERSION+set}" ; then
8082     setopt NO_GLOB_SUBST
8083   fi
8084   # Now quote all the things that may contain metacharacters while being
8085   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8086   # variables and quote the copies for generation of the libtool script.
8087   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8088     SED SHELL STRIP \
8089     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8090     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8091     deplibs_check_method reload_flag reload_cmds need_locks \
8092     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8093     lt_cv_sys_global_symbol_to_c_name_address \
8094     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8095     old_postinstall_cmds old_postuninstall_cmds \
8096     compiler \
8097     CC \
8098     LD \
8099     lt_prog_compiler_wl \
8100     lt_prog_compiler_pic \
8101     lt_prog_compiler_static \
8102     lt_prog_compiler_no_builtin_flag \
8103     export_dynamic_flag_spec \
8104     thread_safe_flag_spec \
8105     whole_archive_flag_spec \
8106     enable_shared_with_static_runtimes \
8107     old_archive_cmds \
8108     old_archive_from_new_cmds \
8109     predep_objects \
8110     postdep_objects \
8111     predeps \
8112     postdeps \
8113     compiler_lib_search_path \
8114     archive_cmds \
8115     archive_expsym_cmds \
8116     postinstall_cmds \
8117     postuninstall_cmds \
8118     old_archive_from_expsyms_cmds \
8119     allow_undefined_flag \
8120     no_undefined_flag \
8121     export_symbols_cmds \
8122     hardcode_libdir_flag_spec \
8123     hardcode_libdir_flag_spec_ld \
8124     hardcode_libdir_separator \
8125     hardcode_automatic \
8126     module_cmds \
8127     module_expsym_cmds \
8128     lt_cv_prog_compiler_c_o \
8129     exclude_expsyms \
8130     include_expsyms; do
8131
8132     case $var in
8133     old_archive_cmds | \
8134     old_archive_from_new_cmds | \
8135     archive_cmds | \
8136     archive_expsym_cmds | \
8137     module_cmds | \
8138     module_expsym_cmds | \
8139     old_archive_from_expsyms_cmds | \
8140     export_symbols_cmds | \
8141     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8142     postinstall_cmds | postuninstall_cmds | \
8143     old_postinstall_cmds | old_postuninstall_cmds | \
8144     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8145       # Double-quote double-evaled strings.
8146       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8147       ;;
8148     *)
8149       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8150       ;;
8151     esac
8152   done
8153
8154   case $lt_echo in
8155   *'\$0 --fallback-echo"')
8156     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8157     ;;
8158   esac
8159
8160 cfgfile="${ofile}T"
8161   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8162   $rm -f "$cfgfile"
8163   { echo "$as_me:$LINENO: creating $ofile" >&5
8164 echo "$as_me: creating $ofile" >&6;}
8165
8166   cat <<__EOF__ >> "$cfgfile"
8167 #! $SHELL
8168
8169 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8170 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8171 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8172 #
8173 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8174 # Free Software Foundation, Inc.
8175 #
8176 # This file is part of GNU Libtool:
8177 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8178 #
8179 # This program is free software; you can redistribute it and/or modify
8180 # it under the terms of the GNU General Public License as published by
8181 # the Free Software Foundation; either version 2 of the License, or
8182 # (at your option) any later version.
8183 #
8184 # This program is distributed in the hope that it will be useful, but
8185 # WITHOUT ANY WARRANTY; without even the implied warranty of
8186 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8187 # General Public License for more details.
8188 #
8189 # You should have received a copy of the GNU General Public License
8190 # along with this program; if not, write to the Free Software
8191 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8192 #
8193 # As a special exception to the GNU General Public License, if you
8194 # distribute this file as part of a program that contains a
8195 # configuration script generated by Autoconf, you may include it under
8196 # the same distribution terms that you use for the rest of that program.
8197
8198 # A sed program that does not truncate output.
8199 SED=$lt_SED
8200
8201 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8202 Xsed="$SED -e s/^X//"
8203
8204 # The HP-UX ksh and POSIX shell print the target directory to stdout
8205 # if CDPATH is set.
8206 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8207
8208 # The names of the tagged configurations supported by this script.
8209 available_tags=
8210
8211 # ### BEGIN LIBTOOL CONFIG
8212
8213 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8214
8215 # Shell to use when invoking shell scripts.
8216 SHELL=$lt_SHELL
8217
8218 # Whether or not to build shared libraries.
8219 build_libtool_libs=$enable_shared
8220
8221 # Whether or not to build static libraries.
8222 build_old_libs=$enable_static
8223
8224 # Whether or not to add -lc for building shared libraries.
8225 build_libtool_need_lc=$archive_cmds_need_lc
8226
8227 # Whether or not to disallow shared libs when runtime libs are static
8228 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8229
8230 # Whether or not to optimize for fast installation.
8231 fast_install=$enable_fast_install
8232
8233 # The host system.
8234 host_alias=$host_alias
8235 host=$host
8236
8237 # An echo program that does not interpret backslashes.
8238 echo=$lt_echo
8239
8240 # The archiver.
8241 AR=$lt_AR
8242 AR_FLAGS=$lt_AR_FLAGS
8243
8244 # A C compiler.
8245 LTCC=$lt_LTCC
8246
8247 # A language-specific compiler.
8248 CC=$lt_compiler
8249
8250 # Is the compiler the GNU C compiler?
8251 with_gcc=$GCC
8252
8253 # An ERE matcher.
8254 EGREP=$lt_EGREP
8255
8256 # The linker used to build libraries.
8257 LD=$lt_LD
8258
8259 # Whether we need hard or soft links.
8260 LN_S=$lt_LN_S
8261
8262 # A BSD-compatible nm program.
8263 NM=$lt_NM
8264
8265 # A symbol stripping program
8266 STRIP=$lt_STRIP
8267
8268 # Used to examine libraries when file_magic_cmd begins "file"
8269 MAGIC_CMD=$MAGIC_CMD
8270
8271 # Used on cygwin: DLL creation program.
8272 DLLTOOL="$DLLTOOL"
8273
8274 # Used on cygwin: object dumper.
8275 OBJDUMP="$OBJDUMP"
8276
8277 # Used on cygwin: assembler.
8278 AS="$AS"
8279
8280 # The name of the directory that contains temporary libtool files.
8281 objdir=$objdir
8282
8283 # How to create reloadable object files.
8284 reload_flag=$lt_reload_flag
8285 reload_cmds=$lt_reload_cmds
8286
8287 # How to pass a linker flag through the compiler.
8288 wl=$lt_lt_prog_compiler_wl
8289
8290 # Object file suffix (normally "o").
8291 objext="$ac_objext"
8292
8293 # Old archive suffix (normally "a").
8294 libext="$libext"
8295
8296 # Shared library suffix (normally ".so").
8297 shrext='$shrext'
8298
8299 # Executable file suffix (normally "").
8300 exeext="$exeext"
8301
8302 # Additional compiler flags for building library objects.
8303 pic_flag=$lt_lt_prog_compiler_pic
8304 pic_mode=$pic_mode
8305
8306 # What is the maximum length of a command?
8307 max_cmd_len=$lt_cv_sys_max_cmd_len
8308
8309 # Does compiler simultaneously support -c and -o options?
8310 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8311
8312 # Must we lock files when doing compilation ?
8313 need_locks=$lt_need_locks
8314
8315 # Do we need the lib prefix for modules?
8316 need_lib_prefix=$need_lib_prefix
8317
8318 # Do we need a version for libraries?
8319 need_version=$need_version
8320
8321 # Whether dlopen is supported.
8322 dlopen_support=$enable_dlopen
8323
8324 # Whether dlopen of programs is supported.
8325 dlopen_self=$enable_dlopen_self
8326
8327 # Whether dlopen of statically linked programs is supported.
8328 dlopen_self_static=$enable_dlopen_self_static
8329
8330 # Compiler flag to prevent dynamic linking.
8331 link_static_flag=$lt_lt_prog_compiler_static
8332
8333 # Compiler flag to turn off builtin functions.
8334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8335
8336 # Compiler flag to allow reflexive dlopens.
8337 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8338
8339 # Compiler flag to generate shared objects directly from archives.
8340 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8341
8342 # Compiler flag to generate thread-safe objects.
8343 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8344
8345 # Library versioning type.
8346 version_type=$version_type
8347
8348 # Format of library name prefix.
8349 libname_spec=$lt_libname_spec
8350
8351 # List of archive names.  First name is the real one, the rest are links.
8352 # The last name is the one that the linker finds with -lNAME.
8353 library_names_spec=$lt_library_names_spec
8354
8355 # The coded name of the library, if different from the real name.
8356 soname_spec=$lt_soname_spec
8357
8358 # Commands used to build and install an old-style archive.
8359 RANLIB=$lt_RANLIB
8360 old_archive_cmds=$lt_old_archive_cmds
8361 old_postinstall_cmds=$lt_old_postinstall_cmds
8362 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8363
8364 # Create an old-style archive from a shared archive.
8365 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8366
8367 # Create a temporary old-style archive to link instead of a shared archive.
8368 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8369
8370 # Commands used to build and install a shared archive.
8371 archive_cmds=$lt_archive_cmds
8372 archive_expsym_cmds=$lt_archive_expsym_cmds
8373 postinstall_cmds=$lt_postinstall_cmds
8374 postuninstall_cmds=$lt_postuninstall_cmds
8375
8376 # Commands used to build a loadable module (assumed same as above if empty)
8377 module_cmds=$lt_module_cmds
8378 module_expsym_cmds=$lt_module_expsym_cmds
8379
8380 # Commands to strip libraries.
8381 old_striplib=$lt_old_striplib
8382 striplib=$lt_striplib
8383
8384 # Dependencies to place before the objects being linked to create a
8385 # shared library.
8386 predep_objects=$lt_predep_objects
8387
8388 # Dependencies to place after the objects being linked to create a
8389 # shared library.
8390 postdep_objects=$lt_postdep_objects
8391
8392 # Dependencies to place before the objects being linked to create a
8393 # shared library.
8394 predeps=$lt_predeps
8395
8396 # Dependencies to place after the objects being linked to create a
8397 # shared library.
8398 postdeps=$lt_postdeps
8399
8400 # The library search path used internally by the compiler when linking
8401 # a shared library.
8402 compiler_lib_search_path=$lt_compiler_lib_search_path
8403
8404 # Method to check whether dependent libraries are shared objects.
8405 deplibs_check_method=$lt_deplibs_check_method
8406
8407 # Command to use when deplibs_check_method == file_magic.
8408 file_magic_cmd=$lt_file_magic_cmd
8409
8410 # Flag that allows shared libraries with undefined symbols to be built.
8411 allow_undefined_flag=$lt_allow_undefined_flag
8412
8413 # Flag that forces no undefined symbols.
8414 no_undefined_flag=$lt_no_undefined_flag
8415
8416 # Commands used to finish a libtool library installation in a directory.
8417 finish_cmds=$lt_finish_cmds
8418
8419 # Same as above, but a single script fragment to be evaled but not shown.
8420 finish_eval=$lt_finish_eval
8421
8422 # Take the output of nm and produce a listing of raw symbols and C names.
8423 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8424
8425 # Transform the output of nm in a proper C declaration
8426 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8427
8428 # Transform the output of nm in a C name address pair
8429 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8430
8431 # This is the shared library runtime path variable.
8432 runpath_var=$runpath_var
8433
8434 # This is the shared library path variable.
8435 shlibpath_var=$shlibpath_var
8436
8437 # Is shlibpath searched before the hard-coded library search path?
8438 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8439
8440 # How to hardcode a shared library path into an executable.
8441 hardcode_action=$hardcode_action
8442
8443 # Whether we should hardcode library paths into libraries.
8444 hardcode_into_libs=$hardcode_into_libs
8445
8446 # Flag to hardcode \$libdir into a binary during linking.
8447 # This must work even if \$libdir does not exist.
8448 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8449
8450 # If ld is used when linking, flag to hardcode \$libdir into
8451 # a binary during linking. This must work even if \$libdir does
8452 # not exist.
8453 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8454
8455 # Whether we need a single -rpath flag with a separated argument.
8456 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8457
8458 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8459 # resulting binary.
8460 hardcode_direct=$hardcode_direct
8461
8462 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8463 # resulting binary.
8464 hardcode_minus_L=$hardcode_minus_L
8465
8466 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8467 # the resulting binary.
8468 hardcode_shlibpath_var=$hardcode_shlibpath_var
8469
8470 # Set to yes if building a shared library automatically hardcodes DIR into the library
8471 # and all subsequent libraries and executables linked against it.
8472 hardcode_automatic=$hardcode_automatic
8473
8474 # Variables whose values should be saved in libtool wrapper scripts and
8475 # restored at relink time.
8476 variables_saved_for_relink="$variables_saved_for_relink"
8477
8478 # Whether libtool must link a program against all its dependency libraries.
8479 link_all_deplibs=$link_all_deplibs
8480
8481 # Compile-time system search path for libraries
8482 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8483
8484 # Run-time system search path for libraries
8485 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8486
8487 # Fix the shell variable \$srcfile for the compiler.
8488 fix_srcfile_path="$fix_srcfile_path"
8489
8490 # Set to yes if exported symbols are required.
8491 always_export_symbols=$always_export_symbols
8492
8493 # The commands to list exported symbols.
8494 export_symbols_cmds=$lt_export_symbols_cmds
8495
8496 # The commands to extract the exported symbol list from a shared archive.
8497 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8498
8499 # Symbols that should not be listed in the preloaded symbols.
8500 exclude_expsyms=$lt_exclude_expsyms
8501
8502 # Symbols that must always be exported.
8503 include_expsyms=$lt_include_expsyms
8504
8505 # ### END LIBTOOL CONFIG
8506
8507 __EOF__
8508
8509
8510   case $host_os in
8511   aix3*)
8512     cat <<\EOF >> "$cfgfile"
8513
8514 # AIX sometimes has problems with the GCC collect2 program.  For some
8515 # reason, if we set the COLLECT_NAMES environment variable, the problems
8516 # vanish in a puff of smoke.
8517 if test "X${COLLECT_NAMES+set}" != Xset; then
8518   COLLECT_NAMES=
8519   export COLLECT_NAMES
8520 fi
8521 EOF
8522     ;;
8523   esac
8524
8525   # We use sed instead of cat because bash on DJGPP gets confused if
8526   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8527   # text mode, it properly converts lines to CR/LF.  This bash problem
8528   # is reportedly fixed, but why not run on old versions too?
8529   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8530
8531   mv -f "$cfgfile" "$ofile" || \
8532     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8533   chmod +x "$ofile"
8534
8535 else
8536   # If there is no Makefile yet, we rely on a make rule to execute
8537   # `config.status --recheck' to rerun these tests and create the
8538   # libtool script then.
8539   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8540   if test -f "$ltmain_in"; then
8541     test -f Makefile && make "$ltmain"
8542   fi
8543 fi
8544
8545
8546 ac_ext=c
8547 ac_cpp='$CPP $CPPFLAGS'
8548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8551
8552 CC="$lt_save_CC"
8553
8554
8555 # Check whether --with-tags or --without-tags was given.
8556 if test "${with_tags+set}" = set; then
8557   withval="$with_tags"
8558   tagnames="$withval"
8559 fi;
8560
8561 if test -f "$ltmain" && test -n "$tagnames"; then
8562   if test ! -f "${ofile}"; then
8563     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8564 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8565   fi
8566
8567   if test -z "$LTCC"; then
8568     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8569     if test -z "$LTCC"; then
8570       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8571 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8572     else
8573       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8574 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8575     fi
8576   fi
8577
8578   # Extract list of available tagged configurations in $ofile.
8579   # Note that this assumes the entire list is on one line.
8580   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8581
8582   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8583   for tagname in $tagnames; do
8584     IFS="$lt_save_ifs"
8585     # Check whether tagname contains only valid characters
8586     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8587     "") ;;
8588     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8589 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8590    { (exit 1); exit 1; }; }
8591         ;;
8592     esac
8593
8594     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8595     then
8596       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8597 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8598    { (exit 1); exit 1; }; }
8599     fi
8600
8601     # Update the list of available tags.
8602     if test -n "$tagname"; then
8603       echo appending configuration tag \"$tagname\" to $ofile
8604
8605       case $tagname in
8606       CXX)
8607         if test -n "$CXX" && test "X$CXX" != "Xno"; then
8608           ac_ext=cc
8609 ac_cpp='$CXXCPP $CPPFLAGS'
8610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8613
8614
8615
8616
8617 archive_cmds_need_lc_CXX=no
8618 allow_undefined_flag_CXX=
8619 always_export_symbols_CXX=no
8620 archive_expsym_cmds_CXX=
8621 export_dynamic_flag_spec_CXX=
8622 hardcode_direct_CXX=no
8623 hardcode_libdir_flag_spec_CXX=
8624 hardcode_libdir_flag_spec_ld_CXX=
8625 hardcode_libdir_separator_CXX=
8626 hardcode_minus_L_CXX=no
8627 hardcode_automatic_CXX=no
8628 module_cmds_CXX=
8629 module_expsym_cmds_CXX=
8630 link_all_deplibs_CXX=unknown
8631 old_archive_cmds_CXX=$old_archive_cmds
8632 no_undefined_flag_CXX=
8633 whole_archive_flag_spec_CXX=
8634 enable_shared_with_static_runtimes_CXX=no
8635
8636 # Dependencies to place before and after the object being linked:
8637 predep_objects_CXX=
8638 postdep_objects_CXX=
8639 predeps_CXX=
8640 postdeps_CXX=
8641 compiler_lib_search_path_CXX=
8642
8643 # Source file extension for C++ test sources.
8644 ac_ext=cc
8645
8646 # Object file extension for compiled C++ test sources.
8647 objext=o
8648 objext_CXX=$objext
8649
8650 # Code to be used in simple compile tests
8651 lt_simple_compile_test_code="int some_variable = 0;\n"
8652
8653 # Code to be used in simple link tests
8654 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8655
8656 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8657
8658 # If no C compiler was specified, use CC.
8659 LTCC=${LTCC-"$CC"}
8660
8661 # Allow CC to be a program name with arguments.
8662 compiler=$CC
8663
8664
8665 # Allow CC to be a program name with arguments.
8666 lt_save_CC=$CC
8667 lt_save_LD=$LD
8668 lt_save_GCC=$GCC
8669 GCC=$GXX
8670 lt_save_with_gnu_ld=$with_gnu_ld
8671 lt_save_path_LD=$lt_cv_path_LD
8672 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8673   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8674 else
8675   unset lt_cv_prog_gnu_ld
8676 fi
8677 if test -n "${lt_cv_path_LDCXX+set}"; then
8678   lt_cv_path_LD=$lt_cv_path_LDCXX
8679 else
8680   unset lt_cv_path_LD
8681 fi
8682 test -z "${LDCXX+set}" || LD=$LDCXX
8683 CC=${CXX-"c++"}
8684 compiler=$CC
8685 compiler_CXX=$CC
8686 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8687
8688 # We don't want -fno-exception wen compiling C++ code, so set the
8689 # no_builtin_flag separately
8690 if test "$GXX" = yes; then
8691   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8692 else
8693   lt_prog_compiler_no_builtin_flag_CXX=
8694 fi
8695
8696 if test "$GXX" = yes; then
8697   # Set up default GNU C++ configuration
8698
8699
8700 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8701 if test "${with_gnu_ld+set}" = set; then
8702   withval="$with_gnu_ld"
8703   test "$withval" = no || with_gnu_ld=yes
8704 else
8705   with_gnu_ld=no
8706 fi;
8707 ac_prog=ld
8708 if test "$GCC" = yes; then
8709   # Check if gcc -print-prog-name=ld gives a path.
8710   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8711 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8712   case $host in
8713   *-*-mingw*)
8714     # gcc leaves a trailing carriage return which upsets mingw
8715     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8716   *)
8717     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8718   esac
8719   case $ac_prog in
8720     # Accept absolute paths.
8721     [\\/]* | ?:[\\/]*)
8722       re_direlt='/[^/][^/]*/\.\./'
8723       # Canonicalize the pathname of ld
8724       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8725       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8726         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8727       done
8728       test -z "$LD" && LD="$ac_prog"
8729       ;;
8730   "")
8731     # If it fails, then pretend we aren't using GCC.
8732     ac_prog=ld
8733     ;;
8734   *)
8735     # If it is relative, then search for the first ld in PATH.
8736     with_gnu_ld=unknown
8737     ;;
8738   esac
8739 elif test "$with_gnu_ld" = yes; then
8740   echo "$as_me:$LINENO: checking for GNU ld" >&5
8741 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8742 else
8743   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8744 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8745 fi
8746 if test "${lt_cv_path_LD+set}" = set; then
8747   echo $ECHO_N "(cached) $ECHO_C" >&6
8748 else
8749   if test -z "$LD"; then
8750   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8751   for ac_dir in $PATH; do
8752     IFS="$lt_save_ifs"
8753     test -z "$ac_dir" && ac_dir=.
8754     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8755       lt_cv_path_LD="$ac_dir/$ac_prog"
8756       # Check to see if the program is GNU ld.  I'd rather use --version,
8757       # but apparently some GNU ld's only accept -v.
8758       # Break only if it was the GNU/non-GNU ld that we prefer.
8759       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8760       *GNU* | *'with BFD'*)
8761         test "$with_gnu_ld" != no && break
8762         ;;
8763       *)
8764         test "$with_gnu_ld" != yes && break
8765         ;;
8766       esac
8767     fi
8768   done
8769   IFS="$lt_save_ifs"
8770 else
8771   lt_cv_path_LD="$LD" # Let the user override the test with a path.
8772 fi
8773 fi
8774
8775 LD="$lt_cv_path_LD"
8776 if test -n "$LD"; then
8777   echo "$as_me:$LINENO: result: $LD" >&5
8778 echo "${ECHO_T}$LD" >&6
8779 else
8780   echo "$as_me:$LINENO: result: no" >&5
8781 echo "${ECHO_T}no" >&6
8782 fi
8783 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8784 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8785    { (exit 1); exit 1; }; }
8786 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8787 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8788 if test "${lt_cv_prog_gnu_ld+set}" = set; then
8789   echo $ECHO_N "(cached) $ECHO_C" >&6
8790 else
8791   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8792 case `$LD -v 2>&1 </dev/null` in
8793 *GNU* | *'with BFD'*)
8794   lt_cv_prog_gnu_ld=yes
8795   ;;
8796 *)
8797   lt_cv_prog_gnu_ld=no
8798   ;;
8799 esac
8800 fi
8801 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8802 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
8803 with_gnu_ld=$lt_cv_prog_gnu_ld
8804
8805
8806
8807   # Check if GNU C++ uses GNU ld as the underlying linker, since the
8808   # archiving commands below assume that GNU ld is being used.
8809   if test "$with_gnu_ld" = yes; then
8810     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8811     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'
8812
8813     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
8814     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
8815
8816     # If archive_cmds runs LD, not CC, wlarc should be empty
8817     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8818     #     investigate it a little bit more. (MM)
8819     wlarc='${wl}'
8820
8821     # ancient GNU ld didn't support --whole-archive et. al.
8822     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
8823         grep 'no-whole-archive' > /dev/null; then
8824       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8825     else
8826       whole_archive_flag_spec_CXX=
8827     fi
8828   else
8829     with_gnu_ld=no
8830     wlarc=
8831
8832     # A generic and very simple default shared library creation
8833     # command for GNU C++ for the case where it uses the native
8834     # linker, instead of GNU ld.  If possible, this setting should
8835     # overridden to take advantage of the native linker features on
8836     # the platform it is being used on.
8837     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8838   fi
8839
8840   # Commands to make compiler produce verbose output that lists
8841   # what "hidden" libraries, object files and flags are used when
8842   # linking a shared library.
8843   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
8844
8845 else
8846   GXX=no
8847   with_gnu_ld=no
8848   wlarc=
8849 fi
8850
8851 # PORTME: fill in a description of your system's C++ link characteristics
8852 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8853 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8854 ld_shlibs_CXX=yes
8855 case $host_os in
8856   aix3*)
8857     # FIXME: insert proper C++ library support
8858     ld_shlibs_CXX=no
8859     ;;
8860   aix4* | aix5*)
8861     if test "$host_cpu" = ia64; then
8862       # On IA64, the linker does run time linking by default, so we don't
8863       # have to do anything special.
8864       aix_use_runtimelinking=no
8865       exp_sym_flag='-Bexport'
8866       no_entry_flag=""
8867     else
8868       aix_use_runtimelinking=no
8869
8870       # Test if we are trying to use run time linking or normal
8871       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8872       # need to do runtime linking.
8873       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8874         for ld_flag in $LDFLAGS; do
8875           case $ld_flag in
8876           *-brtl*)
8877             aix_use_runtimelinking=yes
8878             break
8879             ;;
8880           esac
8881         done
8882       esac
8883
8884       exp_sym_flag='-bexport'
8885       no_entry_flag='-bnoentry'
8886     fi
8887
8888     # When large executables or shared objects are built, AIX ld can
8889     # have problems creating the table of contents.  If linking a library
8890     # or program results in "error TOC overflow" add -mminimal-toc to
8891     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8892     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8893
8894     archive_cmds_CXX=''
8895     hardcode_direct_CXX=yes
8896     hardcode_libdir_separator_CXX=':'
8897     link_all_deplibs_CXX=yes
8898
8899     if test "$GXX" = yes; then
8900       case $host_os in aix4.012|aix4.012.*)
8901       # We only want to do this on AIX 4.2 and lower, the check
8902       # below for broken collect2 doesn't work under 4.3+
8903         collect2name=`${CC} -print-prog-name=collect2`
8904         if test -f "$collect2name" && \
8905            strings "$collect2name" | grep resolve_lib_name >/dev/null
8906         then
8907           # We have reworked collect2
8908           hardcode_direct_CXX=yes
8909         else
8910           # We have old collect2
8911           hardcode_direct_CXX=unsupported
8912           # It fails to find uninstalled libraries when the uninstalled
8913           # path is not listed in the libpath.  Setting hardcode_minus_L
8914           # to unsupported forces relinking
8915           hardcode_minus_L_CXX=yes
8916           hardcode_libdir_flag_spec_CXX='-L$libdir'
8917           hardcode_libdir_separator_CXX=
8918         fi
8919       esac
8920       shared_flag='-shared'
8921     else
8922       # not using gcc
8923       if test "$host_cpu" = ia64; then
8924         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8925         # chokes on -Wl,-G. The following line is correct:
8926         shared_flag='-G'
8927       else
8928         if test "$aix_use_runtimelinking" = yes; then
8929           shared_flag='${wl}-G'
8930         else
8931           shared_flag='${wl}-bM:SRE'
8932         fi
8933       fi
8934     fi
8935
8936     # It seems that -bexpall does not export symbols beginning with
8937     # underscore (_), so it is better to generate a list of symbols to export.
8938     always_export_symbols_CXX=yes
8939     if test "$aix_use_runtimelinking" = yes; then
8940       # Warning - without using the other runtime loading flags (-brtl),
8941       # -berok will link without error, but may produce a broken library.
8942       allow_undefined_flag_CXX='-berok'
8943       # Determine the default libpath from the value encoded in an empty executable.
8944       cat >conftest.$ac_ext <<_ACEOF
8945 #line $LINENO "configure"
8946 /* confdefs.h.  */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h.  */
8951
8952 int
8953 main ()
8954 {
8955
8956   ;
8957   return 0;
8958 }
8959 _ACEOF
8960 rm -f conftest.$ac_objext conftest$ac_exeext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8962   (eval $ac_link) 2>&5
8963   ac_status=$?
8964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   (exit $ac_status); } &&
8966          { ac_try='test -s conftest$ac_exeext'
8967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968   (eval $ac_try) 2>&5
8969   ac_status=$?
8970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971   (exit $ac_status); }; }; then
8972
8973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8974 }'`
8975 # Check for a 64-bit object if we didn't find anything.
8976 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; }
8977 }'`; fi
8978 else
8979   echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8981
8982 fi
8983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8985
8986       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
8987
8988       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8989      else
8990       if test "$host_cpu" = ia64; then
8991         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
8992         allow_undefined_flag_CXX="-z nodefs"
8993         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8994       else
8995         # Determine the default libpath from the value encoded in an empty executable.
8996         cat >conftest.$ac_ext <<_ACEOF
8997 #line $LINENO "configure"
8998 /* confdefs.h.  */
8999 _ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h.  */
9003
9004 int
9005 main ()
9006 {
9007
9008   ;
9009   return 0;
9010 }
9011 _ACEOF
9012 rm -f conftest.$ac_objext conftest$ac_exeext
9013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9014   (eval $ac_link) 2>&5
9015   ac_status=$?
9016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017   (exit $ac_status); } &&
9018          { ac_try='test -s conftest$ac_exeext'
9019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020   (eval $ac_try) 2>&5
9021   ac_status=$?
9022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023   (exit $ac_status); }; }; then
9024
9025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9026 }'`
9027 # Check for a 64-bit object if we didn't find anything.
9028 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; }
9029 }'`; fi
9030 else
9031   echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9033
9034 fi
9035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9037
9038         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9039         # Warning - without using the other run time loading flags,
9040         # -berok will link without error, but may produce a broken library.
9041         no_undefined_flag_CXX=' ${wl}-bernotok'
9042         allow_undefined_flag_CXX=' ${wl}-berok'
9043         # -bexpall does not export symbols beginning with underscore (_)
9044         always_export_symbols_CXX=yes
9045         # Exported symbols can be pulled into shared objects from archives
9046         whole_archive_flag_spec_CXX=' '
9047         archive_cmds_need_lc_CXX=yes
9048         # This is similar to how AIX traditionally builds it's shared libraries.
9049         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9050       fi
9051     fi
9052     ;;
9053   chorus*)
9054     case $cc_basename in
9055       *)
9056         # FIXME: insert proper C++ library support
9057         ld_shlibs_CXX=no
9058         ;;
9059     esac
9060     ;;
9061
9062   cygwin* | mingw* | pw32*)
9063     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9064     # as there is no search path for DLLs.
9065     hardcode_libdir_flag_spec_CXX='-L$libdir'
9066     allow_undefined_flag_CXX=unsupported
9067     always_export_symbols_CXX=no
9068     enable_shared_with_static_runtimes_CXX=yes
9069
9070     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9071       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9072       # If the export-symbols file already is a .def file (1st line
9073       # is EXPORTS), use it as is; otherwise, prepend...
9074       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9075         cp $export_symbols $output_objdir/$soname.def;
9076       else
9077         echo EXPORTS > $output_objdir/$soname.def;
9078         cat $export_symbols >> $output_objdir/$soname.def;
9079       fi~
9080       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9081     else
9082       ld_shlibs_CXX=no
9083     fi
9084   ;;
9085
9086   darwin* | rhapsody*)
9087   if test "$GXX" = yes; then
9088     archive_cmds_need_lc_CXX=no
9089     case "$host_os" in
9090     rhapsody* | darwin1.[012])
9091       allow_undefined_flag_CXX='-undefined suppress'
9092       ;;
9093     *) # Darwin 1.3 on
9094       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9095         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9096       else
9097         case ${MACOSX_DEPLOYMENT_TARGET} in
9098           10.[012])
9099             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9100             ;;
9101           10.*)
9102             allow_undefined_flag_CXX='-undefined dynamic_lookup'
9103             ;;
9104         esac
9105       fi
9106       ;;
9107     esac
9108     lt_int_apple_cc_single_mod=no
9109     output_verbose_link_cmd='echo'
9110     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9111       lt_int_apple_cc_single_mod=yes
9112     fi
9113     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9114       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9115     else
9116       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9117     fi
9118     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9119
9120     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9121     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9122       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}'
9123     else
9124       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
9125     fi
9126     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}'
9127     hardcode_direct_CXX=no
9128     hardcode_automatic_CXX=yes
9129     hardcode_shlibpath_var_CXX=unsupported
9130     whole_archive_flag_spec_CXX='-all_load $convenience'
9131     link_all_deplibs_CXX=yes
9132   else
9133     ld_shlibs_CXX=no
9134   fi
9135     ;;
9136
9137   dgux*)
9138     case $cc_basename in
9139       ec++)
9140         # FIXME: insert proper C++ library support
9141         ld_shlibs_CXX=no
9142         ;;
9143       ghcx)
9144         # Green Hills C++ Compiler
9145         # FIXME: insert proper C++ library support
9146         ld_shlibs_CXX=no
9147         ;;
9148       *)
9149         # FIXME: insert proper C++ library support
9150         ld_shlibs_CXX=no
9151         ;;
9152     esac
9153     ;;
9154   freebsd12*)
9155     # C++ shared libraries reported to be fairly broken before switch to ELF
9156     ld_shlibs_CXX=no
9157     ;;
9158   freebsd-elf*)
9159     archive_cmds_need_lc_CXX=no
9160     ;;
9161   freebsd* | kfreebsd*-gnu)
9162     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9163     # conventions
9164     ld_shlibs_CXX=yes
9165     ;;
9166   gnu*)
9167     ;;
9168   hpux9*)
9169     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9170     hardcode_libdir_separator_CXX=:
9171     export_dynamic_flag_spec_CXX='${wl}-E'
9172     hardcode_direct_CXX=yes
9173     hardcode_minus_L_CXX=yes # Not in the search PATH,
9174                                 # but as the default
9175                                 # location of the library.
9176
9177     case $cc_basename in
9178     CC)
9179       # FIXME: insert proper C++ library support
9180       ld_shlibs_CXX=no
9181       ;;
9182     aCC)
9183       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'
9184       # Commands to make compiler produce verbose output that lists
9185       # what "hidden" libraries, object files and flags are used when
9186       # linking a shared library.
9187       #
9188       # There doesn't appear to be a way to prevent this compiler from
9189       # explicitly linking system object files so we need to strip them
9190       # from the output so that they don't get included in the library
9191       # dependencies.
9192       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9193       ;;
9194     *)
9195       if test "$GXX" = yes; then
9196         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'
9197       else
9198         # FIXME: insert proper C++ library support
9199         ld_shlibs_CXX=no
9200       fi
9201       ;;
9202     esac
9203     ;;
9204   hpux10*|hpux11*)
9205     if test $with_gnu_ld = no; then
9206       case "$host_cpu" in
9207       hppa*64*)
9208         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9209         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9210         hardcode_libdir_separator_CXX=:
9211         ;;
9212       ia64*)
9213         hardcode_libdir_flag_spec_CXX='-L$libdir'
9214         ;;
9215       *)
9216         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9217         hardcode_libdir_separator_CXX=:
9218         export_dynamic_flag_spec_CXX='${wl}-E'
9219         ;;
9220       esac
9221     fi
9222     case "$host_cpu" in
9223     hppa*64*)
9224       hardcode_direct_CXX=no
9225       hardcode_shlibpath_var_CXX=no
9226       ;;
9227     ia64*)
9228       hardcode_direct_CXX=no
9229       hardcode_shlibpath_var_CXX=no
9230       hardcode_minus_L_CXX=yes # Not in the search PATH,
9231                                               # but as the default
9232                                               # location of the library.
9233       ;;
9234     *)
9235       hardcode_direct_CXX=yes
9236       hardcode_minus_L_CXX=yes # Not in the search PATH,
9237                                               # but as the default
9238                                               # location of the library.
9239       ;;
9240     esac
9241
9242     case $cc_basename in
9243       CC)
9244         # FIXME: insert proper C++ library support
9245         ld_shlibs_CXX=no
9246         ;;
9247       aCC)
9248         case "$host_cpu" in
9249         hppa*64*|ia64*)
9250           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9251           ;;
9252         *)
9253           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9254           ;;
9255         esac
9256         # Commands to make compiler produce verbose output that lists
9257         # what "hidden" libraries, object files and flags are used when
9258         # linking a shared library.
9259         #
9260         # There doesn't appear to be a way to prevent this compiler from
9261         # explicitly linking system object files so we need to strip them
9262         # from the output so that they don't get included in the library
9263         # dependencies.
9264         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'
9265         ;;
9266       *)
9267         if test "$GXX" = yes; then
9268           if test $with_gnu_ld = no; then
9269             case "$host_cpu" in
9270             ia64*|hppa*64*)
9271               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9272               ;;
9273             *)
9274               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'
9275               ;;
9276             esac
9277           fi
9278         else
9279           # FIXME: insert proper C++ library support
9280           ld_shlibs_CXX=no
9281         fi
9282         ;;
9283     esac
9284     ;;
9285   irix5* | irix6*)
9286     case $cc_basename in
9287       CC)
9288         # SGI C++
9289         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 ${objdir}/so_locations -o $lib'
9290
9291         # Archives containing C++ object files must be created using
9292         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9293         # necessary to make sure instantiated templates are included
9294         # in the archive.
9295         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9296         ;;
9297       *)
9298         if test "$GXX" = yes; then
9299           if test "$with_gnu_ld" = no; then
9300             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}${objdir}/so_locations -o $lib'
9301           else
9302             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'
9303           fi
9304         fi
9305         link_all_deplibs_CXX=yes
9306         ;;
9307     esac
9308     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9309     hardcode_libdir_separator_CXX=:
9310     ;;
9311   linux*)
9312     case $cc_basename in
9313       KCC)
9314         # Kuck and Associates, Inc. (KAI) C++ Compiler
9315
9316         # KCC will only create a shared library if the output file
9317         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9318         # to its proper name (with version) after linking.
9319         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'
9320         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'
9321         # Commands to make compiler produce verbose output that lists
9322         # what "hidden" libraries, object files and flags are used when
9323         # linking a shared library.
9324         #
9325         # There doesn't appear to be a way to prevent this compiler from
9326         # explicitly linking system object files so we need to strip them
9327         # from the output so that they don't get included in the library
9328         # dependencies.
9329         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'
9330
9331         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9332         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9333
9334         # Archives containing C++ object files must be created using
9335         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9336         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9337         ;;
9338       icpc)
9339         # Intel C++
9340         with_gnu_ld=yes
9341         archive_cmds_need_lc_CXX=no
9342         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343         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'
9344         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9345         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9346         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9347         ;;
9348       cxx)
9349         # Compaq C++
9350         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9351         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'
9352
9353         runpath_var=LD_RUN_PATH
9354         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9355         hardcode_libdir_separator_CXX=:
9356
9357         # Commands to make compiler produce verbose output that lists
9358         # what "hidden" libraries, object files and flags are used when
9359         # linking a shared library.
9360         #
9361         # There doesn't appear to be a way to prevent this compiler from
9362         # explicitly linking system object files so we need to strip them
9363         # from the output so that they don't get included in the library
9364         # dependencies.
9365         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'
9366         ;;
9367     esac
9368     ;;
9369   lynxos*)
9370     # FIXME: insert proper C++ library support
9371     ld_shlibs_CXX=no
9372     ;;
9373   m88k*)
9374     # FIXME: insert proper C++ library support
9375     ld_shlibs_CXX=no
9376     ;;
9377   mvs*)
9378     case $cc_basename in
9379       cxx)
9380         # FIXME: insert proper C++ library support
9381         ld_shlibs_CXX=no
9382         ;;
9383       *)
9384         # FIXME: insert proper C++ library support
9385         ld_shlibs_CXX=no
9386         ;;
9387     esac
9388     ;;
9389   netbsd*)
9390     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9391       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9392       wlarc=
9393       hardcode_libdir_flag_spec_CXX='-R$libdir'
9394       hardcode_direct_CXX=yes
9395       hardcode_shlibpath_var_CXX=no
9396     fi
9397     # Workaround some broken pre-1.5 toolchains
9398     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9399     ;;
9400   osf3*)
9401     case $cc_basename in
9402       KCC)
9403         # Kuck and Associates, Inc. (KAI) C++ Compiler
9404
9405         # KCC will only create a shared library if the output file
9406         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9407         # to its proper name (with version) after linking.
9408         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'
9409
9410         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9411         hardcode_libdir_separator_CXX=:
9412
9413         # Archives containing C++ object files must be created using
9414         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9415         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9416
9417         ;;
9418       RCC)
9419         # Rational C++ 2.4.1
9420         # FIXME: insert proper C++ library support
9421         ld_shlibs_CXX=no
9422         ;;
9423       cxx)
9424         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9425         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 ${objdir}/so_locations -o $lib'
9426
9427         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9428         hardcode_libdir_separator_CXX=:
9429
9430         # Commands to make compiler produce verbose output that lists
9431         # what "hidden" libraries, object files and flags are used when
9432         # linking a shared library.
9433         #
9434         # There doesn't appear to be a way to prevent this compiler from
9435         # explicitly linking system object files so we need to strip them
9436         # from the output so that they don't get included in the library
9437         # dependencies.
9438         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'
9439         ;;
9440       *)
9441         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9442           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9443           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}${objdir}/so_locations -o $lib'
9444
9445           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9446           hardcode_libdir_separator_CXX=:
9447
9448           # Commands to make compiler produce verbose output that lists
9449           # what "hidden" libraries, object files and flags are used when
9450           # linking a shared library.
9451           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9452
9453         else
9454           # FIXME: insert proper C++ library support
9455           ld_shlibs_CXX=no
9456         fi
9457         ;;
9458     esac
9459     ;;
9460   osf4* | osf5*)
9461     case $cc_basename in
9462       KCC)
9463         # Kuck and Associates, Inc. (KAI) C++ Compiler
9464
9465         # KCC will only create a shared library if the output file
9466         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9467         # to its proper name (with version) after linking.
9468         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'
9469
9470         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9471         hardcode_libdir_separator_CXX=:
9472
9473         # Archives containing C++ object files must be created using
9474         # the KAI C++ compiler.
9475         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9476         ;;
9477       RCC)
9478         # Rational C++ 2.4.1
9479         # FIXME: insert proper C++ library support
9480         ld_shlibs_CXX=no
9481         ;;
9482       cxx)
9483         allow_undefined_flag_CXX=' -expect_unresolved \*'
9484         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 ${objdir}/so_locations -o $lib'
9485         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9486           echo "-hidden">> $lib.exp~
9487           $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 $objdir/so_locations -o $lib~
9488           $rm $lib.exp'
9489
9490         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9491         hardcode_libdir_separator_CXX=:
9492
9493         # Commands to make compiler produce verbose output that lists
9494         # what "hidden" libraries, object files and flags are used when
9495         # linking a shared library.
9496         #
9497         # There doesn't appear to be a way to prevent this compiler from
9498         # explicitly linking system object files so we need to strip them
9499         # from the output so that they don't get included in the library
9500         # dependencies.
9501         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'
9502         ;;
9503       *)
9504         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9505           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9506          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}${objdir}/so_locations -o $lib'
9507
9508           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9509           hardcode_libdir_separator_CXX=:
9510
9511           # Commands to make compiler produce verbose output that lists
9512           # what "hidden" libraries, object files and flags are used when
9513           # linking a shared library.
9514           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9515
9516         else
9517           # FIXME: insert proper C++ library support
9518           ld_shlibs_CXX=no
9519         fi
9520         ;;
9521     esac
9522     ;;
9523   psos*)
9524     # FIXME: insert proper C++ library support
9525     ld_shlibs_CXX=no
9526     ;;
9527   sco*)
9528     archive_cmds_need_lc_CXX=no
9529     case $cc_basename in
9530       CC)
9531         # FIXME: insert proper C++ library support
9532         ld_shlibs_CXX=no
9533         ;;
9534       *)
9535         # FIXME: insert proper C++ library support
9536         ld_shlibs_CXX=no
9537         ;;
9538     esac
9539     ;;
9540   sunos4*)
9541     case $cc_basename in
9542       CC)
9543         # Sun C++ 4.x
9544         # FIXME: insert proper C++ library support
9545         ld_shlibs_CXX=no
9546         ;;
9547       lcc)
9548         # Lucid
9549         # FIXME: insert proper C++ library support
9550         ld_shlibs_CXX=no
9551         ;;
9552       *)
9553         # FIXME: insert proper C++ library support
9554         ld_shlibs_CXX=no
9555         ;;
9556     esac
9557     ;;
9558   solaris*)
9559     case $cc_basename in
9560       CC)
9561         # Sun C++ 4.2, 5.x and Centerline C++
9562         no_undefined_flag_CXX=' -zdefs'
9563         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9564         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9565         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9566
9567         hardcode_libdir_flag_spec_CXX='-R$libdir'
9568         hardcode_shlibpath_var_CXX=no
9569         case $host_os in
9570           solaris2.0-5 | solaris2.0-5.*) ;;
9571           *)
9572             # The C++ compiler is used as linker so we must use $wl
9573             # flag to pass the commands to the underlying system
9574             # linker.
9575             # Supported since Solaris 2.6 (maybe 2.5.1?)
9576             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9577             ;;
9578         esac
9579         link_all_deplibs_CXX=yes
9580
9581         # Commands to make compiler produce verbose output that lists
9582         # what "hidden" libraries, object files and flags are used when
9583         # linking a shared library.
9584         #
9585         # There doesn't appear to be a way to prevent this compiler from
9586         # explicitly linking system object files so we need to strip them
9587         # from the output so that they don't get included in the library
9588         # dependencies.
9589         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9590
9591         # Archives containing C++ object files must be created using
9592         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9593         # necessary to make sure instantiated templates are included
9594         # in the archive.
9595         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9596         ;;
9597       gcx)
9598         # Green Hills C++ Compiler
9599         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9600
9601         # The C++ compiler must be used to create the archive.
9602         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9603         ;;
9604       *)
9605         # GNU C++ compiler with Solaris linker
9606         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9607           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9608           if $CC --version | grep -v '^2\.7' > /dev/null; then
9609             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9610             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9611                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9612
9613             # Commands to make compiler produce verbose output that lists
9614             # what "hidden" libraries, object files and flags are used when
9615             # linking a shared library.
9616             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9617           else
9618             # g++ 2.7 appears to require `-G' NOT `-shared' on this
9619             # platform.
9620             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9621             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9622                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9623
9624             # Commands to make compiler produce verbose output that lists
9625             # what "hidden" libraries, object files and flags are used when
9626             # linking a shared library.
9627             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9628           fi
9629
9630           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9631         fi
9632         ;;
9633     esac
9634     ;;
9635   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9636     archive_cmds_need_lc_CXX=no
9637     ;;
9638   tandem*)
9639     case $cc_basename in
9640       NCC)
9641         # NonStop-UX NCC 3.20
9642         # FIXME: insert proper C++ library support
9643         ld_shlibs_CXX=no
9644         ;;
9645       *)
9646         # FIXME: insert proper C++ library support
9647         ld_shlibs_CXX=no
9648         ;;
9649     esac
9650     ;;
9651   vxworks*)
9652     # FIXME: insert proper C++ library support
9653     ld_shlibs_CXX=no
9654     ;;
9655   *)
9656     # FIXME: insert proper C++ library support
9657     ld_shlibs_CXX=no
9658     ;;
9659 esac
9660 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9661 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9662 test "$ld_shlibs_CXX" = no && can_build_shared=no
9663
9664 GCC_CXX="$GXX"
9665 LD_CXX="$LD"
9666
9667 ## CAVEAT EMPTOR:
9668 ## There is no encapsulation within the following macros, do not change
9669 ## the running order or otherwise move them around unless you know exactly
9670 ## what you are doing...
9671
9672 cat > conftest.$ac_ext <<EOF
9673 class Foo
9674 {
9675 public:
9676   Foo (void) { a = 0; }
9677 private:
9678   int a;
9679 };
9680 EOF
9681
9682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9683   (eval $ac_compile) 2>&5
9684   ac_status=$?
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); }; then
9687   # Parse the compiler output and extract the necessary
9688   # objects, libraries and library flags.
9689
9690   # Sentinel used to keep track of whether or not we are before
9691   # the conftest object file.
9692   pre_test_object_deps_done=no
9693
9694   # The `*' in the case matches for architectures that use `case' in
9695   # $output_verbose_cmd can trigger glob expansion during the loop
9696   # eval without this substitution.
9697   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9698
9699   for p in `eval $output_verbose_link_cmd`; do
9700     case $p in
9701
9702     -L* | -R* | -l*)
9703        # Some compilers place space between "-{L,R}" and the path.
9704        # Remove the space.
9705        if test $p = "-L" \
9706           || test $p = "-R"; then
9707          prev=$p
9708          continue
9709        else
9710          prev=
9711        fi
9712
9713        if test "$pre_test_object_deps_done" = no; then
9714          case $p in
9715          -L* | -R*)
9716            # Internal compiler library paths should come after those
9717            # provided the user.  The postdeps already come after the
9718            # user supplied libs so there is no need to process them.
9719            if test -z "$compiler_lib_search_path_CXX"; then
9720              compiler_lib_search_path_CXX="${prev}${p}"
9721            else
9722              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9723            fi
9724            ;;
9725          # The "-l" case would never come before the object being
9726          # linked, so don't bother handling this case.
9727          esac
9728        else
9729          if test -z "$postdeps_CXX"; then
9730            postdeps_CXX="${prev}${p}"
9731          else
9732            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9733          fi
9734        fi
9735        ;;
9736
9737     *.$objext)
9738        # This assumes that the test object file only shows up
9739        # once in the compiler output.
9740        if test "$p" = "conftest.$objext"; then
9741          pre_test_object_deps_done=yes
9742          continue
9743        fi
9744
9745        if test "$pre_test_object_deps_done" = no; then
9746          if test -z "$predep_objects_CXX"; then
9747            predep_objects_CXX="$p"
9748          else
9749            predep_objects_CXX="$predep_objects_CXX $p"
9750          fi
9751        else
9752          if test -z "$postdep_objects_CXX"; then
9753            postdep_objects_CXX="$p"
9754          else
9755            postdep_objects_CXX="$postdep_objects_CXX $p"
9756          fi
9757        fi
9758        ;;
9759
9760     *) ;; # Ignore the rest.
9761
9762     esac
9763   done
9764
9765   # Clean up.
9766   rm -f a.out a.exe
9767 else
9768   echo "libtool.m4: error: problem compiling CXX test program"
9769 fi
9770
9771 $rm -f confest.$objext
9772
9773 case " $postdeps_CXX " in
9774 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
9775 esac
9776
9777 lt_prog_compiler_wl_CXX=
9778 lt_prog_compiler_pic_CXX=
9779 lt_prog_compiler_static_CXX=
9780
9781 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9782 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9783
9784   # C++ specific cases for pic, static, wl, etc.
9785   if test "$GXX" = yes; then
9786     lt_prog_compiler_wl_CXX='-Wl,'
9787     lt_prog_compiler_static_CXX='-static'
9788
9789     case $host_os in
9790     aix*)
9791       # All AIX code is PIC.
9792       if test "$host_cpu" = ia64; then
9793         # AIX 5 now supports IA64 processor
9794         lt_prog_compiler_static_CXX='-Bstatic'
9795       fi
9796       ;;
9797     amigaos*)
9798       # FIXME: we need at least 68020 code to build shared libraries, but
9799       # adding the `-m68020' flag to GCC prevents building anything better,
9800       # like `-m68040'.
9801       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9802       ;;
9803     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9804       # PIC is the default for these OSes.
9805       ;;
9806     mingw* | os2* | pw32*)
9807       # This hack is so that the source file can tell whether it is being
9808       # built for inclusion in a dll (and should export symbols for example).
9809       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9810       ;;
9811     darwin* | rhapsody*)
9812       # PIC is the default on this platform
9813       # Common symbols not allowed in MH_DYLIB files
9814       lt_prog_compiler_pic_CXX='-fno-common'
9815       ;;
9816     *djgpp*)
9817       # DJGPP does not support shared libraries at all
9818       lt_prog_compiler_pic_CXX=
9819       ;;
9820     sysv4*MP*)
9821       if test -d /usr/nec; then
9822         lt_prog_compiler_pic_CXX=-Kconform_pic
9823       fi
9824       ;;
9825     hpux*)
9826       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9827       # not for PA HP-UX.
9828       case "$host_cpu" in
9829       hppa*64*|ia64*)
9830         ;;
9831       *)
9832         lt_prog_compiler_pic_CXX='-fPIC'
9833         ;;
9834       esac
9835       ;;
9836     *)
9837       lt_prog_compiler_pic_CXX='-fPIC'
9838       ;;
9839     esac
9840   else
9841     case $host_os in
9842       aix4* | aix5*)
9843         # All AIX code is PIC.
9844         if test "$host_cpu" = ia64; then
9845           # AIX 5 now supports IA64 processor
9846           lt_prog_compiler_static_CXX='-Bstatic'
9847         else
9848           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9849         fi
9850         ;;
9851       chorus*)
9852         case $cc_basename in
9853         cxch68)
9854           # Green Hills C++ Compiler
9855           # _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"
9856           ;;
9857         esac
9858         ;;
9859       dgux*)
9860         case $cc_basename in
9861           ec++)
9862             lt_prog_compiler_pic_CXX='-KPIC'
9863             ;;
9864           ghcx)
9865             # Green Hills C++ Compiler
9866             lt_prog_compiler_pic_CXX='-pic'
9867             ;;
9868           *)
9869             ;;
9870         esac
9871         ;;
9872       freebsd* | kfreebsd*-gnu)
9873         # FreeBSD uses GNU C++
9874         ;;
9875       hpux9* | hpux10* | hpux11*)
9876         case $cc_basename in
9877           CC)
9878             lt_prog_compiler_wl_CXX='-Wl,'
9879             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9880             if test "$host_cpu" != ia64; then
9881               lt_prog_compiler_pic_CXX='+Z'
9882             fi
9883             ;;
9884           aCC)
9885             lt_prog_compiler_wl_CXX='-Wl,'
9886             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9887             case "$host_cpu" in
9888             hppa*64*|ia64*)
9889               # +Z the default
9890               ;;
9891             *)
9892               lt_prog_compiler_pic_CXX='+Z'
9893               ;;
9894             esac
9895             ;;
9896           *)
9897             ;;
9898         esac
9899         ;;
9900       irix5* | irix6* | nonstopux*)
9901         case $cc_basename in
9902           CC)
9903             lt_prog_compiler_wl_CXX='-Wl,'
9904             lt_prog_compiler_static_CXX='-non_shared'
9905             # CC pic flag -KPIC is the default.
9906             ;;
9907           *)
9908             ;;
9909         esac
9910         ;;
9911       linux*)
9912         case $cc_basename in
9913           KCC)
9914             # KAI C++ Compiler
9915             lt_prog_compiler_wl_CXX='--backend -Wl,'
9916             lt_prog_compiler_pic_CXX='-fPIC'
9917             ;;
9918           icpc)
9919             # Intel C++
9920             lt_prog_compiler_wl_CXX='-Wl,'
9921             lt_prog_compiler_pic_CXX='-KPIC'
9922             lt_prog_compiler_static_CXX='-static'
9923             ;;
9924           cxx)
9925             # Compaq C++
9926             # Make sure the PIC flag is empty.  It appears that all Alpha
9927             # Linux and Compaq Tru64 Unix objects are PIC.
9928             lt_prog_compiler_pic_CXX=
9929             lt_prog_compiler_static_CXX='-non_shared'
9930             ;;
9931           *)
9932             ;;
9933         esac
9934         ;;
9935       lynxos*)
9936         ;;
9937       m88k*)
9938         ;;
9939       mvs*)
9940         case $cc_basename in
9941           cxx)
9942             lt_prog_compiler_pic_CXX='-W c,exportall'
9943             ;;
9944           *)
9945             ;;
9946         esac
9947         ;;
9948       netbsd*)
9949         ;;
9950       osf3* | osf4* | osf5*)
9951         case $cc_basename in
9952           KCC)
9953             lt_prog_compiler_wl_CXX='--backend -Wl,'
9954             ;;
9955           RCC)
9956             # Rational C++ 2.4.1
9957             lt_prog_compiler_pic_CXX='-pic'
9958             ;;
9959           cxx)
9960             # Digital/Compaq C++
9961             lt_prog_compiler_wl_CXX='-Wl,'
9962             # Make sure the PIC flag is empty.  It appears that all Alpha
9963             # Linux and Compaq Tru64 Unix objects are PIC.
9964             lt_prog_compiler_pic_CXX=
9965             lt_prog_compiler_static_CXX='-non_shared'
9966             ;;
9967           *)
9968             ;;
9969         esac
9970         ;;
9971       psos*)
9972         ;;
9973       sco*)
9974         case $cc_basename in
9975           CC)
9976             lt_prog_compiler_pic_CXX='-fPIC'
9977             ;;
9978           *)
9979             ;;
9980         esac
9981         ;;
9982       solaris*)
9983         case $cc_basename in
9984           CC)
9985             # Sun C++ 4.2, 5.x and Centerline C++
9986             lt_prog_compiler_pic_CXX='-KPIC'
9987             lt_prog_compiler_static_CXX='-Bstatic'
9988             lt_prog_compiler_wl_CXX='-Qoption ld '
9989             ;;
9990           gcx)
9991             # Green Hills C++ Compiler
9992             lt_prog_compiler_pic_CXX='-PIC'
9993             ;;
9994           *)
9995             ;;
9996         esac
9997         ;;
9998       sunos4*)
9999         case $cc_basename in
10000           CC)
10001             # Sun C++ 4.x
10002             lt_prog_compiler_pic_CXX='-pic'
10003             lt_prog_compiler_static_CXX='-Bstatic'
10004             ;;
10005           lcc)
10006             # Lucid
10007             lt_prog_compiler_pic_CXX='-pic'
10008             ;;
10009           *)
10010             ;;
10011         esac
10012         ;;
10013       tandem*)
10014         case $cc_basename in
10015           NCC)
10016             # NonStop-UX NCC 3.20
10017             lt_prog_compiler_pic_CXX='-KPIC'
10018             ;;
10019           *)
10020             ;;
10021         esac
10022         ;;
10023       unixware*)
10024         ;;
10025       vxworks*)
10026         ;;
10027       *)
10028         lt_prog_compiler_can_build_shared_CXX=no
10029         ;;
10030     esac
10031   fi
10032
10033 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10034 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10035
10036 #
10037 # Check to make sure the PIC flag actually works.
10038 #
10039 if test -n "$lt_prog_compiler_pic_CXX"; then
10040
10041 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10042 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10043 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10044   echo $ECHO_N "(cached) $ECHO_C" >&6
10045 else
10046   lt_prog_compiler_pic_works_CXX=no
10047   ac_outfile=conftest.$ac_objext
10048    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10049    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10050    # Insert the option either (1) after the last *FLAGS variable, or
10051    # (2) before a word containing "conftest.", or (3) at the end.
10052    # Note that $ac_compile itself does not contain backslashes and begins
10053    # with a dollar sign (not a hyphen), so the echo should work correctly.
10054    # The option is referenced via a variable to avoid confusing sed.
10055    lt_compile=`echo "$ac_compile" | $SED \
10056    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10057    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10058    -e 's:$: $lt_compiler_flag:'`
10059    (eval echo "\"\$as_me:10059: $lt_compile\"" >&5)
10060    (eval "$lt_compile" 2>conftest.err)
10061    ac_status=$?
10062    cat conftest.err >&5
10063    echo "$as_me:10063: \$? = $ac_status" >&5
10064    if (exit $ac_status) && test -s "$ac_outfile"; then
10065      # The compiler can only warn and ignore the option if not recognized
10066      # So say no if there are warnings
10067      if test ! -s conftest.err; then
10068        lt_prog_compiler_pic_works_CXX=yes
10069      fi
10070    fi
10071    $rm conftest*
10072
10073 fi
10074 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10075 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10076
10077 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10078     case $lt_prog_compiler_pic_CXX in
10079      "" | " "*) ;;
10080      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10081      esac
10082 else
10083     lt_prog_compiler_pic_CXX=
10084      lt_prog_compiler_can_build_shared_CXX=no
10085 fi
10086
10087 fi
10088 case "$host_os" in
10089   # For platforms which do not support PIC, -DPIC is meaningless:
10090   *djgpp*)
10091     lt_prog_compiler_pic_CXX=
10092     ;;
10093   *)
10094     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10095     ;;
10096 esac
10097
10098 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10099 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10100 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10101   echo $ECHO_N "(cached) $ECHO_C" >&6
10102 else
10103   lt_cv_prog_compiler_c_o_CXX=no
10104    $rm -r conftest 2>/dev/null
10105    mkdir conftest
10106    cd conftest
10107    mkdir out
10108    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10109
10110    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10111    # that will create temporary files in the current directory regardless of
10112    # the output directory.  Thus, making CWD read-only will cause this test
10113    # to fail, enabling locking or at least warning the user not to do parallel
10114    # builds.
10115    chmod -w .
10116
10117    lt_compiler_flag="-o out/conftest2.$ac_objext"
10118    # Insert the option either (1) after the last *FLAGS variable, or
10119    # (2) before a word containing "conftest.", or (3) at the end.
10120    # Note that $ac_compile itself does not contain backslashes and begins
10121    # with a dollar sign (not a hyphen), so the echo should work correctly.
10122    lt_compile=`echo "$ac_compile" | $SED \
10123    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10124    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10125    -e 's:$: $lt_compiler_flag:'`
10126    (eval echo "\"\$as_me:10126: $lt_compile\"" >&5)
10127    (eval "$lt_compile" 2>out/conftest.err)
10128    ac_status=$?
10129    cat out/conftest.err >&5
10130    echo "$as_me:10130: \$? = $ac_status" >&5
10131    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10132    then
10133      # The compiler can only warn and ignore the option if not recognized
10134      # So say no if there are warnings
10135      if test ! -s out/conftest.err; then
10136        lt_cv_prog_compiler_c_o_CXX=yes
10137      fi
10138    fi
10139    chmod u+w .
10140    $rm conftest*
10141    # SGI C++ compiler will create directory out/ii_files/ for
10142    # template instantiation
10143    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10144    $rm out/* && rmdir out
10145    cd ..
10146    rmdir conftest
10147    $rm conftest*
10148
10149 fi
10150 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10151 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10152
10153
10154 hard_links="nottested"
10155 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10156   # do not overwrite the value of need_locks provided by the user
10157   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10158 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10159   hard_links=yes
10160   $rm conftest*
10161   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10162   touch conftest.a
10163   ln conftest.a conftest.b 2>&5 || hard_links=no
10164   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10165   echo "$as_me:$LINENO: result: $hard_links" >&5
10166 echo "${ECHO_T}$hard_links" >&6
10167   if test "$hard_links" = no; then
10168     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10169 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10170     need_locks=warn
10171   fi
10172 else
10173   need_locks=no
10174 fi
10175
10176 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10177 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10178
10179   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10180   case $host_os in
10181   aix4* | aix5*)
10182     # If we're using GNU nm, then we don't want the "-C" option.
10183     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10184     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10185       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'
10186     else
10187       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'
10188     fi
10189     ;;
10190   pw32*)
10191     export_symbols_cmds_CXX="$ltdll_cmds"
10192   ;;
10193   cygwin* | mingw*)
10194     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10195   ;;
10196   *)
10197     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10198   ;;
10199   esac
10200
10201 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10202 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10203 test "$ld_shlibs_CXX" = no && can_build_shared=no
10204
10205 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10206 if test "$GCC" = yes; then
10207   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10208 fi
10209
10210 #
10211 # Do we need to explicitly link libc?
10212 #
10213 case "x$archive_cmds_need_lc_CXX" in
10214 x|xyes)
10215   # Assume -lc should be added
10216   archive_cmds_need_lc_CXX=yes
10217
10218   if test "$enable_shared" = yes && test "$GCC" = yes; then
10219     case $archive_cmds_CXX in
10220     *'~'*)
10221       # FIXME: we may have to deal with multi-command sequences.
10222       ;;
10223     '$CC '*)
10224       # Test whether the compiler implicitly links with -lc since on some
10225       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10226       # to ld, don't add -lc before -lgcc.
10227       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10228 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10229       $rm conftest*
10230       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10231
10232       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10233   (eval $ac_compile) 2>&5
10234   ac_status=$?
10235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236   (exit $ac_status); } 2>conftest.err; then
10237         soname=conftest
10238         lib=conftest
10239         libobjs=conftest.$ac_objext
10240         deplibs=
10241         wl=$lt_prog_compiler_wl_CXX
10242         compiler_flags=-v
10243         linker_flags=-v
10244         verstring=
10245         output_objdir=.
10246         libname=conftest
10247         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10248         allow_undefined_flag_CXX=
10249         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10250   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }
10254         then
10255           archive_cmds_need_lc_CXX=no
10256         else
10257           archive_cmds_need_lc_CXX=yes
10258         fi
10259         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10260       else
10261         cat conftest.err 1>&5
10262       fi
10263       $rm conftest*
10264       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10265 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10266       ;;
10267     esac
10268   fi
10269   ;;
10270 esac
10271
10272 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10273 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10274 library_names_spec=
10275 libname_spec='lib$name'
10276 soname_spec=
10277 shrext=".so"
10278 postinstall_cmds=
10279 postuninstall_cmds=
10280 finish_cmds=
10281 finish_eval=
10282 shlibpath_var=
10283 shlibpath_overrides_runpath=unknown
10284 version_type=none
10285 dynamic_linker="$host_os ld.so"
10286 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10287 if test "$GCC" = yes; then
10288   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10289   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10290     # if the path contains ";" then we assume it to be the separator
10291     # otherwise default to the standard path separator (i.e. ":") - it is
10292     # assumed that no part of a normal pathname contains ";" but that should
10293     # okay in the real world where ";" in dirpaths is itself problematic.
10294     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10295   else
10296     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10297   fi
10298 else
10299   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10300 fi
10301 need_lib_prefix=unknown
10302 hardcode_into_libs=no
10303
10304 # when you set need_version to no, make sure it does not cause -set_version
10305 # flags to be left without arguments
10306 need_version=unknown
10307
10308 case $host_os in
10309 aix3*)
10310   version_type=linux
10311   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10312   shlibpath_var=LIBPATH
10313
10314   # AIX 3 has no versioning support, so we append a major version to the name.
10315   soname_spec='${libname}${release}${shared_ext}$major'
10316   ;;
10317
10318 aix4* | aix5*)
10319   version_type=linux
10320   need_lib_prefix=no
10321   need_version=no
10322   hardcode_into_libs=yes
10323   if test "$host_cpu" = ia64; then
10324     # AIX 5 supports IA64
10325     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10326     shlibpath_var=LD_LIBRARY_PATH
10327   else
10328     # With GCC up to 2.95.x, collect2 would create an import file
10329     # for dependence libraries.  The import file would start with
10330     # the line `#! .'.  This would cause the generated library to
10331     # depend on `.', always an invalid library.  This was fixed in
10332     # development snapshots of GCC prior to 3.0.
10333     case $host_os in
10334       aix4 | aix4.[01] | aix4.[01].*)
10335       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10336            echo ' yes '
10337            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10338         :
10339       else
10340         can_build_shared=no
10341       fi
10342       ;;
10343     esac
10344     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10345     # soname into executable. Probably we can add versioning support to
10346     # collect2, so additional links can be useful in future.
10347     if test "$aix_use_runtimelinking" = yes; then
10348       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10349       # instead of lib<name>.a to let people know that these are not
10350       # typical AIX shared libraries.
10351       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352     else
10353       # We preserve .a as extension for shared libraries through AIX4.2
10354       # and later when we are not doing run time linking.
10355       library_names_spec='${libname}${release}.a $libname.a'
10356       soname_spec='${libname}${release}${shared_ext}$major'
10357     fi
10358     shlibpath_var=LIBPATH
10359   fi
10360   ;;
10361
10362 amigaos*)
10363   library_names_spec='$libname.ixlibrary $libname.a'
10364   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10365   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'
10366   ;;
10367
10368 beos*)
10369   library_names_spec='${libname}${shared_ext}'
10370   dynamic_linker="$host_os ld.so"
10371   shlibpath_var=LIBRARY_PATH
10372   ;;
10373
10374 bsdi4*)
10375   version_type=linux
10376   need_version=no
10377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378   soname_spec='${libname}${release}${shared_ext}$major'
10379   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10380   shlibpath_var=LD_LIBRARY_PATH
10381   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10382   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10383   # the default ld.so.conf also contains /usr/contrib/lib and
10384   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10385   # libtool to hard-code these into programs
10386   ;;
10387
10388 cygwin* | mingw* | pw32*)
10389   version_type=windows
10390   shrext=".dll"
10391   need_version=no
10392   need_lib_prefix=no
10393
10394   case $GCC,$host_os in
10395   yes,cygwin* | yes,mingw* | yes,pw32*)
10396     library_names_spec='$libname.dll.a'
10397     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10398     postinstall_cmds='base_file=`basename \${file}`~
10399       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10400       dldir=$destdir/`dirname \$dlpath`~
10401       test -d \$dldir || mkdir -p \$dldir~
10402       $install_prog $dir/$dlname \$dldir/$dlname'
10403     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10404       dlpath=$dir/\$dldll~
10405        $rm \$dlpath'
10406     shlibpath_overrides_runpath=yes
10407
10408     case $host_os in
10409     cygwin*)
10410       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10411       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10412       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10413       ;;
10414     mingw*)
10415       # MinGW DLLs use traditional 'lib' prefix
10416       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10417       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10418       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10419         # It is most probably a Windows format PATH printed by
10420         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10421         # path with ; separators, and with drive letters. We can handle the
10422         # drive letters (cygwin fileutils understands them), so leave them,
10423         # especially as we might pass files found there to a mingw objdump,
10424         # which wouldn't understand a cygwinified path. Ahh.
10425         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10426       else
10427         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10428       fi
10429       ;;
10430     pw32*)
10431       # pw32 DLLs use 'pw' prefix rather than 'lib'
10432       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10433       ;;
10434     esac
10435     ;;
10436
10437   *)
10438     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10439     ;;
10440   esac
10441   dynamic_linker='Win32 ld.exe'
10442   # FIXME: first we should search . and the directory the executable is in
10443   shlibpath_var=PATH
10444   ;;
10445
10446 darwin* | rhapsody*)
10447   dynamic_linker="$host_os dyld"
10448   version_type=darwin
10449   need_lib_prefix=no
10450   need_version=no
10451   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10452   soname_spec='${libname}${release}${major}$shared_ext'
10453   shlibpath_overrides_runpath=yes
10454   shlibpath_var=DYLD_LIBRARY_PATH
10455   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10456   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10457   if test "$GCC" = yes; then
10458     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"`
10459   else
10460     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10461   fi
10462   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10463   ;;
10464
10465 dgux*)
10466   version_type=linux
10467   need_lib_prefix=no
10468   need_version=no
10469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10470   soname_spec='${libname}${release}${shared_ext}$major'
10471   shlibpath_var=LD_LIBRARY_PATH
10472   ;;
10473
10474 freebsd1*)
10475   dynamic_linker=no
10476   ;;
10477
10478 kfreebsd*-gnu)
10479   version_type=linux
10480   need_lib_prefix=no
10481   need_version=no
10482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10483   soname_spec='${libname}${release}${shared_ext}$major'
10484   shlibpath_var=LD_LIBRARY_PATH
10485   shlibpath_overrides_runpath=no
10486   hardcode_into_libs=yes
10487   dynamic_linker='GNU ld.so'
10488   ;;
10489
10490 freebsd*)
10491   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10492   version_type=freebsd-$objformat
10493   case $version_type in
10494     freebsd-elf*)
10495       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10496       need_version=no
10497       need_lib_prefix=no
10498       ;;
10499     freebsd-*)
10500       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10501       need_version=yes
10502       ;;
10503   esac
10504   shlibpath_var=LD_LIBRARY_PATH
10505   case $host_os in
10506   freebsd2*)
10507     shlibpath_overrides_runpath=yes
10508     ;;
10509   freebsd3.01* | freebsdelf3.01*)
10510     shlibpath_overrides_runpath=yes
10511     hardcode_into_libs=yes
10512     ;;
10513   *) # from 3.2 on
10514     shlibpath_overrides_runpath=no
10515     hardcode_into_libs=yes
10516     ;;
10517   esac
10518   ;;
10519
10520 gnu*)
10521   version_type=linux
10522   need_lib_prefix=no
10523   need_version=no
10524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10525   soname_spec='${libname}${release}${shared_ext}$major'
10526   shlibpath_var=LD_LIBRARY_PATH
10527   hardcode_into_libs=yes
10528   ;;
10529
10530 hpux9* | hpux10* | hpux11*)
10531   # Give a soname corresponding to the major version so that dld.sl refuses to
10532   # link against other versions.
10533   version_type=sunos
10534   need_lib_prefix=no
10535   need_version=no
10536   case "$host_cpu" in
10537   ia64*)
10538     shrext='.so'
10539     hardcode_into_libs=yes
10540     dynamic_linker="$host_os dld.so"
10541     shlibpath_var=LD_LIBRARY_PATH
10542     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10543     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544     soname_spec='${libname}${release}${shared_ext}$major'
10545     if test "X$HPUX_IA64_MODE" = X32; then
10546       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10547     else
10548       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10549     fi
10550     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10551     ;;
10552    hppa*64*)
10553      shrext='.sl'
10554      hardcode_into_libs=yes
10555      dynamic_linker="$host_os dld.sl"
10556      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10557      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10558      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559      soname_spec='${libname}${release}${shared_ext}$major'
10560      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10561      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10562      ;;
10563    *)
10564     shrext='.sl'
10565     dynamic_linker="$host_os dld.sl"
10566     shlibpath_var=SHLIB_PATH
10567     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10568     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569     soname_spec='${libname}${release}${shared_ext}$major'
10570     ;;
10571   esac
10572   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10573   postinstall_cmds='chmod 555 $lib'
10574   ;;
10575
10576 irix5* | irix6* | nonstopux*)
10577   case $host_os in
10578     nonstopux*) version_type=nonstopux ;;
10579     *)
10580         if test "$lt_cv_prog_gnu_ld" = yes; then
10581                 version_type=linux
10582         else
10583                 version_type=irix
10584         fi ;;
10585   esac
10586   need_lib_prefix=no
10587   need_version=no
10588   soname_spec='${libname}${release}${shared_ext}$major'
10589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10590   case $host_os in
10591   irix5* | nonstopux*)
10592     libsuff= shlibsuff=
10593     ;;
10594   *)
10595     case $LD in # libtool.m4 will add one of these switches to LD
10596     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10597       libsuff= shlibsuff= libmagic=32-bit;;
10598     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10599       libsuff=32 shlibsuff=N32 libmagic=N32;;
10600     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10601       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10602     *) libsuff= shlibsuff= libmagic=never-match;;
10603     esac
10604     ;;
10605   esac
10606   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10607   shlibpath_overrides_runpath=no
10608   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10609   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10610   hardcode_into_libs=yes
10611   ;;
10612
10613 # No shared lib support for Linux oldld, aout, or coff.
10614 linux*oldld* | linux*aout* | linux*coff*)
10615   dynamic_linker=no
10616   ;;
10617
10618 # This must be Linux ELF.
10619 linux*)
10620   version_type=linux
10621   need_lib_prefix=no
10622   need_version=no
10623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10624   soname_spec='${libname}${release}${shared_ext}$major'
10625   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10626   shlibpath_var=LD_LIBRARY_PATH
10627   shlibpath_overrides_runpath=no
10628   # This implies no fast_install, which is unacceptable.
10629   # Some rework will be needed to allow for fast_install
10630   # before this can be enabled.
10631   hardcode_into_libs=yes
10632
10633   # We used to test for /lib/ld.so.1 and disable shared libraries on
10634   # powerpc, because MkLinux only supported shared libraries with the
10635   # GNU dynamic linker.  Since this was broken with cross compilers,
10636   # most powerpc-linux boxes support dynamic linking these days and
10637   # people can always --disable-shared, the test was removed, and we
10638   # assume the GNU/Linux dynamic linker is in use.
10639   dynamic_linker='GNU/Linux ld.so'
10640   ;;
10641
10642 netbsd*)
10643   version_type=sunos
10644   need_lib_prefix=no
10645   need_version=no
10646   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10647     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10648     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10649     dynamic_linker='NetBSD (a.out) ld.so'
10650   else
10651     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10652     soname_spec='${libname}${release}${shared_ext}$major'
10653     dynamic_linker='NetBSD ld.elf_so'
10654   fi
10655   shlibpath_var=LD_LIBRARY_PATH
10656   shlibpath_overrides_runpath=yes
10657   hardcode_into_libs=yes
10658   ;;
10659
10660 newsos6)
10661   version_type=linux
10662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663   shlibpath_var=LD_LIBRARY_PATH
10664   shlibpath_overrides_runpath=yes
10665   ;;
10666
10667 nto-qnx*)
10668   version_type=linux
10669   need_lib_prefix=no
10670   need_version=no
10671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672   soname_spec='${libname}${release}${shared_ext}$major'
10673   shlibpath_var=LD_LIBRARY_PATH
10674   shlibpath_overrides_runpath=yes
10675   ;;
10676
10677 openbsd*)
10678   version_type=sunos
10679   need_lib_prefix=no
10680   need_version=no
10681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10682   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10683   shlibpath_var=LD_LIBRARY_PATH
10684   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10685     case $host_os in
10686       openbsd2.[89] | openbsd2.[89].*)
10687         shlibpath_overrides_runpath=no
10688         ;;
10689       *)
10690         shlibpath_overrides_runpath=yes
10691         ;;
10692       esac
10693   else
10694     shlibpath_overrides_runpath=yes
10695   fi
10696   ;;
10697
10698 os2*)
10699   libname_spec='$name'
10700   shrext=".dll"
10701   need_lib_prefix=no
10702   library_names_spec='$libname${shared_ext} $libname.a'
10703   dynamic_linker='OS/2 ld.exe'
10704   shlibpath_var=LIBPATH
10705   ;;
10706
10707 osf3* | osf4* | osf5*)
10708   version_type=osf
10709   need_lib_prefix=no
10710   need_version=no
10711   soname_spec='${libname}${release}${shared_ext}$major'
10712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10713   shlibpath_var=LD_LIBRARY_PATH
10714   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10715   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10716   ;;
10717
10718 sco3.2v5*)
10719   version_type=osf
10720   soname_spec='${libname}${release}${shared_ext}$major'
10721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722   shlibpath_var=LD_LIBRARY_PATH
10723   ;;
10724
10725 solaris*)
10726   version_type=linux
10727   need_lib_prefix=no
10728   need_version=no
10729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10730   soname_spec='${libname}${release}${shared_ext}$major'
10731   shlibpath_var=LD_LIBRARY_PATH
10732   shlibpath_overrides_runpath=yes
10733   hardcode_into_libs=yes
10734   # ldd complains unless libraries are executable
10735   postinstall_cmds='chmod +x $lib'
10736   ;;
10737
10738 sunos4*)
10739   version_type=sunos
10740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10741   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10742   shlibpath_var=LD_LIBRARY_PATH
10743   shlibpath_overrides_runpath=yes
10744   if test "$with_gnu_ld" = yes; then
10745     need_lib_prefix=no
10746   fi
10747   need_version=yes
10748   ;;
10749
10750 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10751   version_type=linux
10752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10753   soname_spec='${libname}${release}${shared_ext}$major'
10754   shlibpath_var=LD_LIBRARY_PATH
10755   case $host_vendor in
10756     sni)
10757       shlibpath_overrides_runpath=no
10758       need_lib_prefix=no
10759       export_dynamic_flag_spec='${wl}-Blargedynsym'
10760       runpath_var=LD_RUN_PATH
10761       ;;
10762     siemens)
10763       need_lib_prefix=no
10764       ;;
10765     motorola)
10766       need_lib_prefix=no
10767       need_version=no
10768       shlibpath_overrides_runpath=no
10769       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10770       ;;
10771   esac
10772   ;;
10773
10774 sysv4*MP*)
10775   if test -d /usr/nec ;then
10776     version_type=linux
10777     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10778     soname_spec='$libname${shared_ext}.$major'
10779     shlibpath_var=LD_LIBRARY_PATH
10780   fi
10781   ;;
10782
10783 uts4*)
10784   version_type=linux
10785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786   soname_spec='${libname}${release}${shared_ext}$major'
10787   shlibpath_var=LD_LIBRARY_PATH
10788   ;;
10789
10790 *)
10791   dynamic_linker=no
10792   ;;
10793 esac
10794 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10795 echo "${ECHO_T}$dynamic_linker" >&6
10796 test "$dynamic_linker" = no && can_build_shared=no
10797
10798 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10799 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10800 hardcode_action_CXX=
10801 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10802    test -n "$runpath_var CXX" || \
10803    test "X$hardcode_automatic_CXX"="Xyes" ; then
10804
10805   # We can hardcode non-existant directories.
10806   if test "$hardcode_direct_CXX" != no &&
10807      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10808      # have to relink, otherwise we might link with an installed library
10809      # when we should be linking with a yet-to-be-installed one
10810      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10811      test "$hardcode_minus_L_CXX" != no; then
10812     # Linking always hardcodes the temporary library directory.
10813     hardcode_action_CXX=relink
10814   else
10815     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10816     hardcode_action_CXX=immediate
10817   fi
10818 else
10819   # We cannot hardcode anything, or else we can only hardcode existing
10820   # directories.
10821   hardcode_action_CXX=unsupported
10822 fi
10823 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10824 echo "${ECHO_T}$hardcode_action_CXX" >&6
10825
10826 if test "$hardcode_action_CXX" = relink; then
10827   # Fast installation is not supported
10828   enable_fast_install=no
10829 elif test "$shlibpath_overrides_runpath" = yes ||
10830      test "$enable_shared" = no; then
10831   # Fast installation is not necessary
10832   enable_fast_install=needless
10833 fi
10834
10835 striplib=
10836 old_striplib=
10837 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10838 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10839 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10840   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10841   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10842   echo "$as_me:$LINENO: result: yes" >&5
10843 echo "${ECHO_T}yes" >&6
10844 else
10845 # FIXME - insert some real tests, host_os isn't really good enough
10846   case $host_os in
10847    darwin*)
10848        if test -n "$STRIP" ; then
10849          striplib="$STRIP -x"
10850          echo "$as_me:$LINENO: result: yes" >&5
10851 echo "${ECHO_T}yes" >&6
10852        else
10853   echo "$as_me:$LINENO: result: no" >&5
10854 echo "${ECHO_T}no" >&6
10855 fi
10856        ;;
10857    *)
10858   echo "$as_me:$LINENO: result: no" >&5
10859 echo "${ECHO_T}no" >&6
10860     ;;
10861   esac
10862 fi
10863
10864 if test "x$enable_dlopen" != xyes; then
10865   enable_dlopen=unknown
10866   enable_dlopen_self=unknown
10867   enable_dlopen_self_static=unknown
10868 else
10869   lt_cv_dlopen=no
10870   lt_cv_dlopen_libs=
10871
10872   case $host_os in
10873   beos*)
10874     lt_cv_dlopen="load_add_on"
10875     lt_cv_dlopen_libs=
10876     lt_cv_dlopen_self=yes
10877     ;;
10878
10879   mingw* | pw32*)
10880     lt_cv_dlopen="LoadLibrary"
10881     lt_cv_dlopen_libs=
10882    ;;
10883
10884   cygwin*)
10885     lt_cv_dlopen="dlopen"
10886     lt_cv_dlopen_libs=
10887    ;;
10888
10889   darwin*)
10890   # if libdl is installed we need to link against it
10891     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10892 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10893 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10894   echo $ECHO_N "(cached) $ECHO_C" >&6
10895 else
10896   ac_check_lib_save_LIBS=$LIBS
10897 LIBS="-ldl  $LIBS"
10898 cat >conftest.$ac_ext <<_ACEOF
10899 #line $LINENO "configure"
10900 /* confdefs.h.  */
10901 _ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h.  */
10905
10906 /* Override any gcc2 internal prototype to avoid an error.  */
10907 #ifdef __cplusplus
10908 extern "C"
10909 #endif
10910 /* We use char because int might match the return type of a gcc2
10911    builtin and then its argument prototype would still apply.  */
10912 char dlopen ();
10913 int
10914 main ()
10915 {
10916 dlopen ();
10917   ;
10918   return 0;
10919 }
10920 _ACEOF
10921 rm -f conftest.$ac_objext conftest$ac_exeext
10922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10923   (eval $ac_link) 2>&5
10924   ac_status=$?
10925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926   (exit $ac_status); } &&
10927          { ac_try='test -s conftest$ac_exeext'
10928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929   (eval $ac_try) 2>&5
10930   ac_status=$?
10931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932   (exit $ac_status); }; }; then
10933   ac_cv_lib_dl_dlopen=yes
10934 else
10935   echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10937
10938 ac_cv_lib_dl_dlopen=no
10939 fi
10940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10941 LIBS=$ac_check_lib_save_LIBS
10942 fi
10943 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10944 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10945 if test $ac_cv_lib_dl_dlopen = yes; then
10946   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10947 else
10948
10949     lt_cv_dlopen="dyld"
10950     lt_cv_dlopen_libs=
10951     lt_cv_dlopen_self=yes
10952
10953 fi
10954
10955    ;;
10956
10957   *)
10958     echo "$as_me:$LINENO: checking for shl_load" >&5
10959 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10960 if test "${ac_cv_func_shl_load+set}" = set; then
10961   echo $ECHO_N "(cached) $ECHO_C" >&6
10962 else
10963   cat >conftest.$ac_ext <<_ACEOF
10964 #line $LINENO "configure"
10965 /* confdefs.h.  */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h.  */
10970 /* System header to define __stub macros and hopefully few prototypes,
10971     which can conflict with char shl_load (); below.
10972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10973     <limits.h> exists even on freestanding compilers.  */
10974 #ifdef __STDC__
10975 # include <limits.h>
10976 #else
10977 # include <assert.h>
10978 #endif
10979 /* Override any gcc2 internal prototype to avoid an error.  */
10980 #ifdef __cplusplus
10981 extern "C"
10982 {
10983 #endif
10984 /* We use char because int might match the return type of a gcc2
10985    builtin and then its argument prototype would still apply.  */
10986 char shl_load ();
10987 /* The GNU C library defines this for functions which it implements
10988     to always fail with ENOSYS.  Some functions are actually named
10989     something starting with __ and the normal name is an alias.  */
10990 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10991 choke me
10992 #else
10993 char (*f) () = shl_load;
10994 #endif
10995 #ifdef __cplusplus
10996 }
10997 #endif
10998
10999 int
11000 main ()
11001 {
11002 return f != shl_load;
11003   ;
11004   return 0;
11005 }
11006 _ACEOF
11007 rm -f conftest.$ac_objext conftest$ac_exeext
11008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11009   (eval $ac_link) 2>&5
11010   ac_status=$?
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); } &&
11013          { ac_try='test -s conftest$ac_exeext'
11014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015   (eval $ac_try) 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); }; }; then
11019   ac_cv_func_shl_load=yes
11020 else
11021   echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11023
11024 ac_cv_func_shl_load=no
11025 fi
11026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11027 fi
11028 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11029 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11030 if test $ac_cv_func_shl_load = yes; then
11031   lt_cv_dlopen="shl_load"
11032 else
11033   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11034 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11035 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11036   echo $ECHO_N "(cached) $ECHO_C" >&6
11037 else
11038   ac_check_lib_save_LIBS=$LIBS
11039 LIBS="-ldld  $LIBS"
11040 cat >conftest.$ac_ext <<_ACEOF
11041 #line $LINENO "configure"
11042 /* confdefs.h.  */
11043 _ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h.  */
11047
11048 /* Override any gcc2 internal prototype to avoid an error.  */
11049 #ifdef __cplusplus
11050 extern "C"
11051 #endif
11052 /* We use char because int might match the return type of a gcc2
11053    builtin and then its argument prototype would still apply.  */
11054 char shl_load ();
11055 int
11056 main ()
11057 {
11058 shl_load ();
11059   ;
11060   return 0;
11061 }
11062 _ACEOF
11063 rm -f conftest.$ac_objext conftest$ac_exeext
11064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11065   (eval $ac_link) 2>&5
11066   ac_status=$?
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); } &&
11069          { ac_try='test -s conftest$ac_exeext'
11070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071   (eval $ac_try) 2>&5
11072   ac_status=$?
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); }; }; then
11075   ac_cv_lib_dld_shl_load=yes
11076 else
11077   echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11079
11080 ac_cv_lib_dld_shl_load=no
11081 fi
11082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11083 LIBS=$ac_check_lib_save_LIBS
11084 fi
11085 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11086 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11087 if test $ac_cv_lib_dld_shl_load = yes; then
11088   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11089 else
11090   echo "$as_me:$LINENO: checking for dlopen" >&5
11091 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11092 if test "${ac_cv_func_dlopen+set}" = set; then
11093   echo $ECHO_N "(cached) $ECHO_C" >&6
11094 else
11095   cat >conftest.$ac_ext <<_ACEOF
11096 #line $LINENO "configure"
11097 /* confdefs.h.  */
11098 _ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h.  */
11102 /* System header to define __stub macros and hopefully few prototypes,
11103     which can conflict with char dlopen (); below.
11104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11105     <limits.h> exists even on freestanding compilers.  */
11106 #ifdef __STDC__
11107 # include <limits.h>
11108 #else
11109 # include <assert.h>
11110 #endif
11111 /* Override any gcc2 internal prototype to avoid an error.  */
11112 #ifdef __cplusplus
11113 extern "C"
11114 {
11115 #endif
11116 /* We use char because int might match the return type of a gcc2
11117    builtin and then its argument prototype would still apply.  */
11118 char dlopen ();
11119 /* The GNU C library defines this for functions which it implements
11120     to always fail with ENOSYS.  Some functions are actually named
11121     something starting with __ and the normal name is an alias.  */
11122 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11123 choke me
11124 #else
11125 char (*f) () = dlopen;
11126 #endif
11127 #ifdef __cplusplus
11128 }
11129 #endif
11130
11131 int
11132 main ()
11133 {
11134 return f != dlopen;
11135   ;
11136   return 0;
11137 }
11138 _ACEOF
11139 rm -f conftest.$ac_objext conftest$ac_exeext
11140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11141   (eval $ac_link) 2>&5
11142   ac_status=$?
11143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144   (exit $ac_status); } &&
11145          { ac_try='test -s conftest$ac_exeext'
11146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147   (eval $ac_try) 2>&5
11148   ac_status=$?
11149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150   (exit $ac_status); }; }; then
11151   ac_cv_func_dlopen=yes
11152 else
11153   echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11155
11156 ac_cv_func_dlopen=no
11157 fi
11158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11159 fi
11160 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11161 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11162 if test $ac_cv_func_dlopen = yes; then
11163   lt_cv_dlopen="dlopen"
11164 else
11165   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11166 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11167 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11168   echo $ECHO_N "(cached) $ECHO_C" >&6
11169 else
11170   ac_check_lib_save_LIBS=$LIBS
11171 LIBS="-ldl  $LIBS"
11172 cat >conftest.$ac_ext <<_ACEOF
11173 #line $LINENO "configure"
11174 /* confdefs.h.  */
11175 _ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h.  */
11179
11180 /* Override any gcc2 internal prototype to avoid an error.  */
11181 #ifdef __cplusplus
11182 extern "C"
11183 #endif
11184 /* We use char because int might match the return type of a gcc2
11185    builtin and then its argument prototype would still apply.  */
11186 char dlopen ();
11187 int
11188 main ()
11189 {
11190 dlopen ();
11191   ;
11192   return 0;
11193 }
11194 _ACEOF
11195 rm -f conftest.$ac_objext conftest$ac_exeext
11196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11197   (eval $ac_link) 2>&5
11198   ac_status=$?
11199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200   (exit $ac_status); } &&
11201          { ac_try='test -s conftest$ac_exeext'
11202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203   (eval $ac_try) 2>&5
11204   ac_status=$?
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); }; }; then
11207   ac_cv_lib_dl_dlopen=yes
11208 else
11209   echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11211
11212 ac_cv_lib_dl_dlopen=no
11213 fi
11214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11215 LIBS=$ac_check_lib_save_LIBS
11216 fi
11217 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11218 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11219 if test $ac_cv_lib_dl_dlopen = yes; then
11220   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11221 else
11222   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11223 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11224 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11225   echo $ECHO_N "(cached) $ECHO_C" >&6
11226 else
11227   ac_check_lib_save_LIBS=$LIBS
11228 LIBS="-lsvld  $LIBS"
11229 cat >conftest.$ac_ext <<_ACEOF
11230 #line $LINENO "configure"
11231 /* confdefs.h.  */
11232 _ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h.  */
11236
11237 /* Override any gcc2 internal prototype to avoid an error.  */
11238 #ifdef __cplusplus
11239 extern "C"
11240 #endif
11241 /* We use char because int might match the return type of a gcc2
11242    builtin and then its argument prototype would still apply.  */
11243 char dlopen ();
11244 int
11245 main ()
11246 {
11247 dlopen ();
11248   ;
11249   return 0;
11250 }
11251 _ACEOF
11252 rm -f conftest.$ac_objext conftest$ac_exeext
11253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11254   (eval $ac_link) 2>&5
11255   ac_status=$?
11256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257   (exit $ac_status); } &&
11258          { ac_try='test -s conftest$ac_exeext'
11259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260   (eval $ac_try) 2>&5
11261   ac_status=$?
11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263   (exit $ac_status); }; }; then
11264   ac_cv_lib_svld_dlopen=yes
11265 else
11266   echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11268
11269 ac_cv_lib_svld_dlopen=no
11270 fi
11271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11272 LIBS=$ac_check_lib_save_LIBS
11273 fi
11274 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11275 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11276 if test $ac_cv_lib_svld_dlopen = yes; then
11277   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11278 else
11279   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11280 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11281 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11282   echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284   ac_check_lib_save_LIBS=$LIBS
11285 LIBS="-ldld  $LIBS"
11286 cat >conftest.$ac_ext <<_ACEOF
11287 #line $LINENO "configure"
11288 /* confdefs.h.  */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h.  */
11293
11294 /* Override any gcc2 internal prototype to avoid an error.  */
11295 #ifdef __cplusplus
11296 extern "C"
11297 #endif
11298 /* We use char because int might match the return type of a gcc2
11299    builtin and then its argument prototype would still apply.  */
11300 char dld_link ();
11301 int
11302 main ()
11303 {
11304 dld_link ();
11305   ;
11306   return 0;
11307 }
11308 _ACEOF
11309 rm -f conftest.$ac_objext conftest$ac_exeext
11310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11311   (eval $ac_link) 2>&5
11312   ac_status=$?
11313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314   (exit $ac_status); } &&
11315          { ac_try='test -s conftest$ac_exeext'
11316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317   (eval $ac_try) 2>&5
11318   ac_status=$?
11319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320   (exit $ac_status); }; }; then
11321   ac_cv_lib_dld_dld_link=yes
11322 else
11323   echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11325
11326 ac_cv_lib_dld_dld_link=no
11327 fi
11328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11329 LIBS=$ac_check_lib_save_LIBS
11330 fi
11331 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11332 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11333 if test $ac_cv_lib_dld_dld_link = yes; then
11334   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11335 fi
11336
11337
11338 fi
11339
11340
11341 fi
11342
11343
11344 fi
11345
11346
11347 fi
11348
11349
11350 fi
11351
11352     ;;
11353   esac
11354
11355   if test "x$lt_cv_dlopen" != xno; then
11356     enable_dlopen=yes
11357   else
11358     enable_dlopen=no
11359   fi
11360
11361   case $lt_cv_dlopen in
11362   dlopen)
11363     save_CPPFLAGS="$CPPFLAGS"
11364     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11365
11366     save_LDFLAGS="$LDFLAGS"
11367     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11368
11369     save_LIBS="$LIBS"
11370     LIBS="$lt_cv_dlopen_libs $LIBS"
11371
11372     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11373 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11374 if test "${lt_cv_dlopen_self+set}" = set; then
11375   echo $ECHO_N "(cached) $ECHO_C" >&6
11376 else
11377           if test "$cross_compiling" = yes; then :
11378   lt_cv_dlopen_self=cross
11379 else
11380   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11381   lt_status=$lt_dlunknown
11382   cat > conftest.$ac_ext <<EOF
11383 #line 11383 "configure"
11384 #include "confdefs.h"
11385
11386 #if HAVE_DLFCN_H
11387 #include <dlfcn.h>
11388 #endif
11389
11390 #include <stdio.h>
11391
11392 #ifdef RTLD_GLOBAL
11393 #  define LT_DLGLOBAL           RTLD_GLOBAL
11394 #else
11395 #  ifdef DL_GLOBAL
11396 #    define LT_DLGLOBAL         DL_GLOBAL
11397 #  else
11398 #    define LT_DLGLOBAL         0
11399 #  endif
11400 #endif
11401
11402 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11403    find out it does not work in some platform. */
11404 #ifndef LT_DLLAZY_OR_NOW
11405 #  ifdef RTLD_LAZY
11406 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11407 #  else
11408 #    ifdef DL_LAZY
11409 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11410 #    else
11411 #      ifdef RTLD_NOW
11412 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11413 #      else
11414 #        ifdef DL_NOW
11415 #          define LT_DLLAZY_OR_NOW      DL_NOW
11416 #        else
11417 #          define LT_DLLAZY_OR_NOW      0
11418 #        endif
11419 #      endif
11420 #    endif
11421 #  endif
11422 #endif
11423
11424 #ifdef __cplusplus
11425 extern "C" void exit (int);
11426 #endif
11427
11428 void fnord() { int i=42;}
11429 int main ()
11430 {
11431   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11432   int status = $lt_dlunknown;
11433
11434   if (self)
11435     {
11436       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11437       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11438       /* dlclose (self); */
11439     }
11440
11441     exit (status);
11442 }
11443 EOF
11444   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11445   (eval $ac_link) 2>&5
11446   ac_status=$?
11447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11449     (./conftest; exit; ) 2>/dev/null
11450     lt_status=$?
11451     case x$lt_status in
11452       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11453       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11454       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11455     esac
11456   else :
11457     # compilation failed
11458     lt_cv_dlopen_self=no
11459   fi
11460 fi
11461 rm -fr conftest*
11462
11463
11464 fi
11465 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11466 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11467
11468     if test "x$lt_cv_dlopen_self" = xyes; then
11469       LDFLAGS="$LDFLAGS $link_static_flag"
11470       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11471 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11472 if test "${lt_cv_dlopen_self_static+set}" = set; then
11473   echo $ECHO_N "(cached) $ECHO_C" >&6
11474 else
11475           if test "$cross_compiling" = yes; then :
11476   lt_cv_dlopen_self_static=cross
11477 else
11478   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11479   lt_status=$lt_dlunknown
11480   cat > conftest.$ac_ext <<EOF
11481 #line 11481 "configure"
11482 #include "confdefs.h"
11483
11484 #if HAVE_DLFCN_H
11485 #include <dlfcn.h>
11486 #endif
11487
11488 #include <stdio.h>
11489
11490 #ifdef RTLD_GLOBAL
11491 #  define LT_DLGLOBAL           RTLD_GLOBAL
11492 #else
11493 #  ifdef DL_GLOBAL
11494 #    define LT_DLGLOBAL         DL_GLOBAL
11495 #  else
11496 #    define LT_DLGLOBAL         0
11497 #  endif
11498 #endif
11499
11500 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11501    find out it does not work in some platform. */
11502 #ifndef LT_DLLAZY_OR_NOW
11503 #  ifdef RTLD_LAZY
11504 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11505 #  else
11506 #    ifdef DL_LAZY
11507 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11508 #    else
11509 #      ifdef RTLD_NOW
11510 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11511 #      else
11512 #        ifdef DL_NOW
11513 #          define LT_DLLAZY_OR_NOW      DL_NOW
11514 #        else
11515 #          define LT_DLLAZY_OR_NOW      0
11516 #        endif
11517 #      endif
11518 #    endif
11519 #  endif
11520 #endif
11521
11522 #ifdef __cplusplus
11523 extern "C" void exit (int);
11524 #endif
11525
11526 void fnord() { int i=42;}
11527 int main ()
11528 {
11529   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11530   int status = $lt_dlunknown;
11531
11532   if (self)
11533     {
11534       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11535       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11536       /* dlclose (self); */
11537     }
11538
11539     exit (status);
11540 }
11541 EOF
11542   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11543   (eval $ac_link) 2>&5
11544   ac_status=$?
11545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11547     (./conftest; exit; ) 2>/dev/null
11548     lt_status=$?
11549     case x$lt_status in
11550       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11551       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11552       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11553     esac
11554   else :
11555     # compilation failed
11556     lt_cv_dlopen_self_static=no
11557   fi
11558 fi
11559 rm -fr conftest*
11560
11561
11562 fi
11563 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11564 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11565     fi
11566
11567     CPPFLAGS="$save_CPPFLAGS"
11568     LDFLAGS="$save_LDFLAGS"
11569     LIBS="$save_LIBS"
11570     ;;
11571   esac
11572
11573   case $lt_cv_dlopen_self in
11574   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11575   *) enable_dlopen_self=unknown ;;
11576   esac
11577
11578   case $lt_cv_dlopen_self_static in
11579   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11580   *) enable_dlopen_self_static=unknown ;;
11581   esac
11582 fi
11583
11584
11585 # The else clause should only fire when bootstrapping the
11586 # libtool distribution, otherwise you forgot to ship ltmain.sh
11587 # with your package, and you will get complaints that there are
11588 # no rules to generate ltmain.sh.
11589 if test -f "$ltmain"; then
11590   # See if we are running on zsh, and set the options which allow our commands through
11591   # without removal of \ escapes.
11592   if test -n "${ZSH_VERSION+set}" ; then
11593     setopt NO_GLOB_SUBST
11594   fi
11595   # Now quote all the things that may contain metacharacters while being
11596   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11597   # variables and quote the copies for generation of the libtool script.
11598   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11599     SED SHELL STRIP \
11600     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11601     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11602     deplibs_check_method reload_flag reload_cmds need_locks \
11603     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11604     lt_cv_sys_global_symbol_to_c_name_address \
11605     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11606     old_postinstall_cmds old_postuninstall_cmds \
11607     compiler_CXX \
11608     CC_CXX \
11609     LD_CXX \
11610     lt_prog_compiler_wl_CXX \
11611     lt_prog_compiler_pic_CXX \
11612     lt_prog_compiler_static_CXX \
11613     lt_prog_compiler_no_builtin_flag_CXX \
11614     export_dynamic_flag_spec_CXX \
11615     thread_safe_flag_spec_CXX \
11616     whole_archive_flag_spec_CXX \
11617     enable_shared_with_static_runtimes_CXX \
11618     old_archive_cmds_CXX \
11619     old_archive_from_new_cmds_CXX \
11620     predep_objects_CXX \
11621     postdep_objects_CXX \
11622     predeps_CXX \
11623     postdeps_CXX \
11624     compiler_lib_search_path_CXX \
11625     archive_cmds_CXX \
11626     archive_expsym_cmds_CXX \
11627     postinstall_cmds_CXX \
11628     postuninstall_cmds_CXX \
11629     old_archive_from_expsyms_cmds_CXX \
11630     allow_undefined_flag_CXX \
11631     no_undefined_flag_CXX \
11632     export_symbols_cmds_CXX \
11633     hardcode_libdir_flag_spec_CXX \
11634     hardcode_libdir_flag_spec_ld_CXX \
11635     hardcode_libdir_separator_CXX \
11636     hardcode_automatic_CXX \
11637     module_cmds_CXX \
11638     module_expsym_cmds_CXX \
11639     lt_cv_prog_compiler_c_o_CXX \
11640     exclude_expsyms_CXX \
11641     include_expsyms_CXX; do
11642
11643     case $var in
11644     old_archive_cmds_CXX | \
11645     old_archive_from_new_cmds_CXX | \
11646     archive_cmds_CXX | \
11647     archive_expsym_cmds_CXX | \
11648     module_cmds_CXX | \
11649     module_expsym_cmds_CXX | \
11650     old_archive_from_expsyms_cmds_CXX | \
11651     export_symbols_cmds_CXX | \
11652     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11653     postinstall_cmds | postuninstall_cmds | \
11654     old_postinstall_cmds | old_postuninstall_cmds | \
11655     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11656       # Double-quote double-evaled strings.
11657       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11658       ;;
11659     *)
11660       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11661       ;;
11662     esac
11663   done
11664
11665   case $lt_echo in
11666   *'\$0 --fallback-echo"')
11667     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11668     ;;
11669   esac
11670
11671 cfgfile="$ofile"
11672
11673   cat <<__EOF__ >> "$cfgfile"
11674 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11675
11676 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11677
11678 # Shell to use when invoking shell scripts.
11679 SHELL=$lt_SHELL
11680
11681 # Whether or not to build shared libraries.
11682 build_libtool_libs=$enable_shared
11683
11684 # Whether or not to build static libraries.
11685 build_old_libs=$enable_static
11686
11687 # Whether or not to add -lc for building shared libraries.
11688 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11689
11690 # Whether or not to disallow shared libs when runtime libs are static
11691 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11692
11693 # Whether or not to optimize for fast installation.
11694 fast_install=$enable_fast_install
11695
11696 # The host system.
11697 host_alias=$host_alias
11698 host=$host
11699
11700 # An echo program that does not interpret backslashes.
11701 echo=$lt_echo
11702
11703 # The archiver.
11704 AR=$lt_AR
11705 AR_FLAGS=$lt_AR_FLAGS
11706
11707 # A C compiler.
11708 LTCC=$lt_LTCC
11709
11710 # A language-specific compiler.
11711 CC=$lt_compiler_CXX
11712
11713 # Is the compiler the GNU C compiler?
11714 with_gcc=$GCC_CXX
11715
11716 # An ERE matcher.
11717 EGREP=$lt_EGREP
11718
11719 # The linker used to build libraries.
11720 LD=$lt_LD_CXX
11721
11722 # Whether we need hard or soft links.
11723 LN_S=$lt_LN_S
11724
11725 # A BSD-compatible nm program.
11726 NM=$lt_NM
11727
11728 # A symbol stripping program
11729 STRIP=$lt_STRIP
11730
11731 # Used to examine libraries when file_magic_cmd begins "file"
11732 MAGIC_CMD=$MAGIC_CMD
11733
11734 # Used on cygwin: DLL creation program.
11735 DLLTOOL="$DLLTOOL"
11736
11737 # Used on cygwin: object dumper.
11738 OBJDUMP="$OBJDUMP"
11739
11740 # Used on cygwin: assembler.
11741 AS="$AS"
11742
11743 # The name of the directory that contains temporary libtool files.
11744 objdir=$objdir
11745
11746 # How to create reloadable object files.
11747 reload_flag=$lt_reload_flag
11748 reload_cmds=$lt_reload_cmds
11749
11750 # How to pass a linker flag through the compiler.
11751 wl=$lt_lt_prog_compiler_wl_CXX
11752
11753 # Object file suffix (normally "o").
11754 objext="$ac_objext"
11755
11756 # Old archive suffix (normally "a").
11757 libext="$libext"
11758
11759 # Shared library suffix (normally ".so").
11760 shrext='$shrext'
11761
11762 # Executable file suffix (normally "").
11763 exeext="$exeext"
11764
11765 # Additional compiler flags for building library objects.
11766 pic_flag=$lt_lt_prog_compiler_pic_CXX
11767 pic_mode=$pic_mode
11768
11769 # What is the maximum length of a command?
11770 max_cmd_len=$lt_cv_sys_max_cmd_len
11771
11772 # Does compiler simultaneously support -c and -o options?
11773 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11774
11775 # Must we lock files when doing compilation ?
11776 need_locks=$lt_need_locks
11777
11778 # Do we need the lib prefix for modules?
11779 need_lib_prefix=$need_lib_prefix
11780
11781 # Do we need a version for libraries?
11782 need_version=$need_version
11783
11784 # Whether dlopen is supported.
11785 dlopen_support=$enable_dlopen
11786
11787 # Whether dlopen of programs is supported.
11788 dlopen_self=$enable_dlopen_self
11789
11790 # Whether dlopen of statically linked programs is supported.
11791 dlopen_self_static=$enable_dlopen_self_static
11792
11793 # Compiler flag to prevent dynamic linking.
11794 link_static_flag=$lt_lt_prog_compiler_static_CXX
11795
11796 # Compiler flag to turn off builtin functions.
11797 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11798
11799 # Compiler flag to allow reflexive dlopens.
11800 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11801
11802 # Compiler flag to generate shared objects directly from archives.
11803 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11804
11805 # Compiler flag to generate thread-safe objects.
11806 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11807
11808 # Library versioning type.
11809 version_type=$version_type
11810
11811 # Format of library name prefix.
11812 libname_spec=$lt_libname_spec
11813
11814 # List of archive names.  First name is the real one, the rest are links.
11815 # The last name is the one that the linker finds with -lNAME.
11816 library_names_spec=$lt_library_names_spec
11817
11818 # The coded name of the library, if different from the real name.
11819 soname_spec=$lt_soname_spec
11820
11821 # Commands used to build and install an old-style archive.
11822 RANLIB=$lt_RANLIB
11823 old_archive_cmds=$lt_old_archive_cmds_CXX
11824 old_postinstall_cmds=$lt_old_postinstall_cmds
11825 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11826
11827 # Create an old-style archive from a shared archive.
11828 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
11829
11830 # Create a temporary old-style archive to link instead of a shared archive.
11831 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
11832
11833 # Commands used to build and install a shared archive.
11834 archive_cmds=$lt_archive_cmds_CXX
11835 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
11836 postinstall_cmds=$lt_postinstall_cmds
11837 postuninstall_cmds=$lt_postuninstall_cmds
11838
11839 # Commands used to build a loadable module (assumed same as above if empty)
11840 module_cmds=$lt_module_cmds_CXX
11841 module_expsym_cmds=$lt_module_expsym_cmds_CXX
11842
11843 # Commands to strip libraries.
11844 old_striplib=$lt_old_striplib
11845 striplib=$lt_striplib
11846
11847 # Dependencies to place before the objects being linked to create a
11848 # shared library.
11849 predep_objects=$lt_predep_objects_CXX
11850
11851 # Dependencies to place after the objects being linked to create a
11852 # shared library.
11853 postdep_objects=$lt_postdep_objects_CXX
11854
11855 # Dependencies to place before the objects being linked to create a
11856 # shared library.
11857 predeps=$lt_predeps_CXX
11858
11859 # Dependencies to place after the objects being linked to create a
11860 # shared library.
11861 postdeps=$lt_postdeps_CXX
11862
11863 # The library search path used internally by the compiler when linking
11864 # a shared library.
11865 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
11866
11867 # Method to check whether dependent libraries are shared objects.
11868 deplibs_check_method=$lt_deplibs_check_method
11869
11870 # Command to use when deplibs_check_method == file_magic.
11871 file_magic_cmd=$lt_file_magic_cmd
11872
11873 # Flag that allows shared libraries with undefined symbols to be built.
11874 allow_undefined_flag=$lt_allow_undefined_flag_CXX
11875
11876 # Flag that forces no undefined symbols.
11877 no_undefined_flag=$lt_no_undefined_flag_CXX
11878
11879 # Commands used to finish a libtool library installation in a directory.
11880 finish_cmds=$lt_finish_cmds
11881
11882 # Same as above, but a single script fragment to be evaled but not shown.
11883 finish_eval=$lt_finish_eval
11884
11885 # Take the output of nm and produce a listing of raw symbols and C names.
11886 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11887
11888 # Transform the output of nm in a proper C declaration
11889 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11890
11891 # Transform the output of nm in a C name address pair
11892 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11893
11894 # This is the shared library runtime path variable.
11895 runpath_var=$runpath_var
11896
11897 # This is the shared library path variable.
11898 shlibpath_var=$shlibpath_var
11899
11900 # Is shlibpath searched before the hard-coded library search path?
11901 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11902
11903 # How to hardcode a shared library path into an executable.
11904 hardcode_action=$hardcode_action_CXX
11905
11906 # Whether we should hardcode library paths into libraries.
11907 hardcode_into_libs=$hardcode_into_libs
11908
11909 # Flag to hardcode \$libdir into a binary during linking.
11910 # This must work even if \$libdir does not exist.
11911 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
11912
11913 # If ld is used when linking, flag to hardcode \$libdir into
11914 # a binary during linking. This must work even if \$libdir does
11915 # not exist.
11916 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
11917
11918 # Whether we need a single -rpath flag with a separated argument.
11919 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
11920
11921 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11922 # resulting binary.
11923 hardcode_direct=$hardcode_direct_CXX
11924
11925 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11926 # resulting binary.
11927 hardcode_minus_L=$hardcode_minus_L_CXX
11928
11929 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11930 # the resulting binary.
11931 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
11932
11933 # Set to yes if building a shared library automatically hardcodes DIR into the library
11934 # and all subsequent libraries and executables linked against it.
11935 hardcode_automatic=$hardcode_automatic_CXX
11936
11937 # Variables whose values should be saved in libtool wrapper scripts and
11938 # restored at relink time.
11939 variables_saved_for_relink="$variables_saved_for_relink"
11940
11941 # Whether libtool must link a program against all its dependency libraries.
11942 link_all_deplibs=$link_all_deplibs_CXX
11943
11944 # Compile-time system search path for libraries
11945 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11946
11947 # Run-time system search path for libraries
11948 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11949
11950 # Fix the shell variable \$srcfile for the compiler.
11951 fix_srcfile_path="$fix_srcfile_path_CXX"
11952
11953 # Set to yes if exported symbols are required.
11954 always_export_symbols=$always_export_symbols_CXX
11955
11956 # The commands to list exported symbols.
11957 export_symbols_cmds=$lt_export_symbols_cmds_CXX
11958
11959 # The commands to extract the exported symbol list from a shared archive.
11960 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11961
11962 # Symbols that should not be listed in the preloaded symbols.
11963 exclude_expsyms=$lt_exclude_expsyms_CXX
11964
11965 # Symbols that must always be exported.
11966 include_expsyms=$lt_include_expsyms_CXX
11967
11968 # ### END LIBTOOL TAG CONFIG: $tagname
11969
11970 __EOF__
11971
11972
11973 else
11974   # If there is no Makefile yet, we rely on a make rule to execute
11975   # `config.status --recheck' to rerun these tests and create the
11976   # libtool script then.
11977   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11978   if test -f "$ltmain_in"; then
11979     test -f Makefile && make "$ltmain"
11980   fi
11981 fi
11982
11983
11984 ac_ext=c
11985 ac_cpp='$CPP $CPPFLAGS'
11986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11989
11990 CC=$lt_save_CC
11991 LDCXX=$LD
11992 LD=$lt_save_LD
11993 GCC=$lt_save_GCC
11994 with_gnu_ldcxx=$with_gnu_ld
11995 with_gnu_ld=$lt_save_with_gnu_ld
11996 lt_cv_path_LDCXX=$lt_cv_path_LD
11997 lt_cv_path_LD=$lt_save_path_LD
11998 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
11999 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12000
12001         else
12002           tagname=""
12003         fi
12004         ;;
12005
12006       F77)
12007         if test -n "$F77" && test "X$F77" != "Xno"; then
12008
12009 ac_ext=f
12010 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12011 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12012 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12013
12014
12015 archive_cmds_need_lc_F77=no
12016 allow_undefined_flag_F77=
12017 always_export_symbols_F77=no
12018 archive_expsym_cmds_F77=
12019 export_dynamic_flag_spec_F77=
12020 hardcode_direct_F77=no
12021 hardcode_libdir_flag_spec_F77=
12022 hardcode_libdir_flag_spec_ld_F77=
12023 hardcode_libdir_separator_F77=
12024 hardcode_minus_L_F77=no
12025 hardcode_automatic_F77=no
12026 module_cmds_F77=
12027 module_expsym_cmds_F77=
12028 link_all_deplibs_F77=unknown
12029 old_archive_cmds_F77=$old_archive_cmds
12030 no_undefined_flag_F77=
12031 whole_archive_flag_spec_F77=
12032 enable_shared_with_static_runtimes_F77=no
12033
12034 # Source file extension for f77 test sources.
12035 ac_ext=f
12036
12037 # Object file extension for compiled f77 test sources.
12038 objext=o
12039 objext_F77=$objext
12040
12041 # Code to be used in simple compile tests
12042 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12043
12044 # Code to be used in simple link tests
12045 lt_simple_link_test_code="      program t\n      end\n"
12046
12047 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12048
12049 # If no C compiler was specified, use CC.
12050 LTCC=${LTCC-"$CC"}
12051
12052 # Allow CC to be a program name with arguments.
12053 compiler=$CC
12054
12055
12056 # Allow CC to be a program name with arguments.
12057 lt_save_CC="$CC"
12058 CC=${F77-"f77"}
12059 compiler=$CC
12060 compiler_F77=$CC
12061 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12062
12063 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12064 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12065 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12066 echo "${ECHO_T}$can_build_shared" >&6
12067
12068 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12069 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12070 test "$can_build_shared" = "no" && enable_shared=no
12071
12072 # On AIX, shared libraries and static libraries use the same namespace, and
12073 # are all built from PIC.
12074 case "$host_os" in
12075 aix3*)
12076   test "$enable_shared" = yes && enable_static=no
12077   if test -n "$RANLIB"; then
12078     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12079     postinstall_cmds='$RANLIB $lib'
12080   fi
12081   ;;
12082 aix4*)
12083   test "$enable_shared" = yes && enable_static=no
12084   ;;
12085 esac
12086 echo "$as_me:$LINENO: result: $enable_shared" >&5
12087 echo "${ECHO_T}$enable_shared" >&6
12088
12089 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12090 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12091 # Make sure either enable_shared or enable_static is yes.
12092 test "$enable_shared" = yes || enable_static=yes
12093 echo "$as_me:$LINENO: result: $enable_static" >&5
12094 echo "${ECHO_T}$enable_static" >&6
12095
12096 test "$ld_shlibs_F77" = no && can_build_shared=no
12097
12098 GCC_F77="$G77"
12099 LD_F77="$LD"
12100
12101 lt_prog_compiler_wl_F77=
12102 lt_prog_compiler_pic_F77=
12103 lt_prog_compiler_static_F77=
12104
12105 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12106 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12107
12108   if test "$GCC" = yes; then
12109     lt_prog_compiler_wl_F77='-Wl,'
12110     lt_prog_compiler_static_F77='-static'
12111
12112     case $host_os in
12113       aix*)
12114       # All AIX code is PIC.
12115       if test "$host_cpu" = ia64; then
12116         # AIX 5 now supports IA64 processor
12117         lt_prog_compiler_static_F77='-Bstatic'
12118       fi
12119       ;;
12120
12121     amigaos*)
12122       # FIXME: we need at least 68020 code to build shared libraries, but
12123       # adding the `-m68020' flag to GCC prevents building anything better,
12124       # like `-m68040'.
12125       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12126       ;;
12127
12128     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12129       # PIC is the default for these OSes.
12130       ;;
12131
12132     mingw* | pw32* | os2*)
12133       # This hack is so that the source file can tell whether it is being
12134       # built for inclusion in a dll (and should export symbols for example).
12135       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12136       ;;
12137
12138     darwin* | rhapsody*)
12139       # PIC is the default on this platform
12140       # Common symbols not allowed in MH_DYLIB files
12141       lt_prog_compiler_pic_F77='-fno-common'
12142       ;;
12143
12144     msdosdjgpp*)
12145       # Just because we use GCC doesn't mean we suddenly get shared libraries
12146       # on systems that don't support them.
12147       lt_prog_compiler_can_build_shared_F77=no
12148       enable_shared=no
12149       ;;
12150
12151     sysv4*MP*)
12152       if test -d /usr/nec; then
12153         lt_prog_compiler_pic_F77=-Kconform_pic
12154       fi
12155       ;;
12156
12157     hpux*)
12158       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12159       # not for PA HP-UX.
12160       case "$host_cpu" in
12161       hppa*64*|ia64*)
12162         # +Z the default
12163         ;;
12164       *)
12165         lt_prog_compiler_pic_F77='-fPIC'
12166         ;;
12167       esac
12168       ;;
12169
12170     *)
12171       lt_prog_compiler_pic_F77='-fPIC'
12172       ;;
12173     esac
12174   else
12175     # PORTME Check for flag to pass linker flags through the system compiler.
12176     case $host_os in
12177     aix*)
12178       lt_prog_compiler_wl_F77='-Wl,'
12179       if test "$host_cpu" = ia64; then
12180         # AIX 5 now supports IA64 processor
12181         lt_prog_compiler_static_F77='-Bstatic'
12182       else
12183         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12184       fi
12185       ;;
12186
12187     mingw* | pw32* | os2*)
12188       # This hack is so that the source file can tell whether it is being
12189       # built for inclusion in a dll (and should export symbols for example).
12190       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12191       ;;
12192
12193     hpux9* | hpux10* | hpux11*)
12194       lt_prog_compiler_wl_F77='-Wl,'
12195       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12196       # not for PA HP-UX.
12197       case "$host_cpu" in
12198       hppa*64*|ia64*)
12199         # +Z the default
12200         ;;
12201       *)
12202         lt_prog_compiler_pic_F77='+Z'
12203         ;;
12204       esac
12205       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12206       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12207       ;;
12208
12209     irix5* | irix6* | nonstopux*)
12210       lt_prog_compiler_wl_F77='-Wl,'
12211       # PIC (with -KPIC) is the default.
12212       lt_prog_compiler_static_F77='-non_shared'
12213       ;;
12214
12215     newsos6)
12216       lt_prog_compiler_pic_F77='-KPIC'
12217       lt_prog_compiler_static_F77='-Bstatic'
12218       ;;
12219
12220     linux*)
12221       case $CC in
12222       icc* | ecc*)
12223         lt_prog_compiler_wl_F77='-Wl,'
12224         lt_prog_compiler_pic_F77='-KPIC'
12225         lt_prog_compiler_static_F77='-static'
12226         ;;
12227       ccc*)
12228         lt_prog_compiler_wl_F77='-Wl,'
12229         # All Alpha code is PIC.
12230         lt_prog_compiler_static_F77='-non_shared'
12231         ;;
12232       esac
12233       ;;
12234
12235     osf3* | osf4* | osf5*)
12236       lt_prog_compiler_wl_F77='-Wl,'
12237       # All OSF/1 code is PIC.
12238       lt_prog_compiler_static_F77='-non_shared'
12239       ;;
12240
12241     sco3.2v5*)
12242       lt_prog_compiler_pic_F77='-Kpic'
12243       lt_prog_compiler_static_F77='-dn'
12244       ;;
12245
12246     solaris*)
12247       lt_prog_compiler_wl_F77='-Wl,'
12248       lt_prog_compiler_pic_F77='-KPIC'
12249       lt_prog_compiler_static_F77='-Bstatic'
12250       ;;
12251
12252     sunos4*)
12253       lt_prog_compiler_wl_F77='-Qoption ld '
12254       lt_prog_compiler_pic_F77='-PIC'
12255       lt_prog_compiler_static_F77='-Bstatic'
12256       ;;
12257
12258     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12259       lt_prog_compiler_wl_F77='-Wl,'
12260       lt_prog_compiler_pic_F77='-KPIC'
12261       lt_prog_compiler_static_F77='-Bstatic'
12262       ;;
12263
12264     sysv4*MP*)
12265       if test -d /usr/nec ;then
12266         lt_prog_compiler_pic_F77='-Kconform_pic'
12267         lt_prog_compiler_static_F77='-Bstatic'
12268       fi
12269       ;;
12270
12271     uts4*)
12272       lt_prog_compiler_pic_F77='-pic'
12273       lt_prog_compiler_static_F77='-Bstatic'
12274       ;;
12275
12276     *)
12277       lt_prog_compiler_can_build_shared_F77=no
12278       ;;
12279     esac
12280   fi
12281
12282 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12283 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12284
12285 #
12286 # Check to make sure the PIC flag actually works.
12287 #
12288 if test -n "$lt_prog_compiler_pic_F77"; then
12289
12290 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12291 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12292 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12293   echo $ECHO_N "(cached) $ECHO_C" >&6
12294 else
12295   lt_prog_compiler_pic_works_F77=no
12296   ac_outfile=conftest.$ac_objext
12297    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12298    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12299    # Insert the option either (1) after the last *FLAGS variable, or
12300    # (2) before a word containing "conftest.", or (3) at the end.
12301    # Note that $ac_compile itself does not contain backslashes and begins
12302    # with a dollar sign (not a hyphen), so the echo should work correctly.
12303    # The option is referenced via a variable to avoid confusing sed.
12304    lt_compile=`echo "$ac_compile" | $SED \
12305    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12306    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12307    -e 's:$: $lt_compiler_flag:'`
12308    (eval echo "\"\$as_me:12308: $lt_compile\"" >&5)
12309    (eval "$lt_compile" 2>conftest.err)
12310    ac_status=$?
12311    cat conftest.err >&5
12312    echo "$as_me:12312: \$? = $ac_status" >&5
12313    if (exit $ac_status) && test -s "$ac_outfile"; then
12314      # The compiler can only warn and ignore the option if not recognized
12315      # So say no if there are warnings
12316      if test ! -s conftest.err; then
12317        lt_prog_compiler_pic_works_F77=yes
12318      fi
12319    fi
12320    $rm conftest*
12321
12322 fi
12323 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12324 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12325
12326 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12327     case $lt_prog_compiler_pic_F77 in
12328      "" | " "*) ;;
12329      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12330      esac
12331 else
12332     lt_prog_compiler_pic_F77=
12333      lt_prog_compiler_can_build_shared_F77=no
12334 fi
12335
12336 fi
12337 case "$host_os" in
12338   # For platforms which do not support PIC, -DPIC is meaningless:
12339   *djgpp*)
12340     lt_prog_compiler_pic_F77=
12341     ;;
12342   *)
12343     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12344     ;;
12345 esac
12346
12347 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12348 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12349 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12350   echo $ECHO_N "(cached) $ECHO_C" >&6
12351 else
12352   lt_cv_prog_compiler_c_o_F77=no
12353    $rm -r conftest 2>/dev/null
12354    mkdir conftest
12355    cd conftest
12356    mkdir out
12357    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12358
12359    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12360    # that will create temporary files in the current directory regardless of
12361    # the output directory.  Thus, making CWD read-only will cause this test
12362    # to fail, enabling locking or at least warning the user not to do parallel
12363    # builds.
12364    chmod -w .
12365
12366    lt_compiler_flag="-o out/conftest2.$ac_objext"
12367    # Insert the option either (1) after the last *FLAGS variable, or
12368    # (2) before a word containing "conftest.", or (3) at the end.
12369    # Note that $ac_compile itself does not contain backslashes and begins
12370    # with a dollar sign (not a hyphen), so the echo should work correctly.
12371    lt_compile=`echo "$ac_compile" | $SED \
12372    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12373    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12374    -e 's:$: $lt_compiler_flag:'`
12375    (eval echo "\"\$as_me:12375: $lt_compile\"" >&5)
12376    (eval "$lt_compile" 2>out/conftest.err)
12377    ac_status=$?
12378    cat out/conftest.err >&5
12379    echo "$as_me:12379: \$? = $ac_status" >&5
12380    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12381    then
12382      # The compiler can only warn and ignore the option if not recognized
12383      # So say no if there are warnings
12384      if test ! -s out/conftest.err; then
12385        lt_cv_prog_compiler_c_o_F77=yes
12386      fi
12387    fi
12388    chmod u+w .
12389    $rm conftest*
12390    # SGI C++ compiler will create directory out/ii_files/ for
12391    # template instantiation
12392    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12393    $rm out/* && rmdir out
12394    cd ..
12395    rmdir conftest
12396    $rm conftest*
12397
12398 fi
12399 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12400 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12401
12402
12403 hard_links="nottested"
12404 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12405   # do not overwrite the value of need_locks provided by the user
12406   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12407 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12408   hard_links=yes
12409   $rm conftest*
12410   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12411   touch conftest.a
12412   ln conftest.a conftest.b 2>&5 || hard_links=no
12413   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12414   echo "$as_me:$LINENO: result: $hard_links" >&5
12415 echo "${ECHO_T}$hard_links" >&6
12416   if test "$hard_links" = no; then
12417     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12418 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12419     need_locks=warn
12420   fi
12421 else
12422   need_locks=no
12423 fi
12424
12425 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12426 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12427
12428   runpath_var=
12429   allow_undefined_flag_F77=
12430   enable_shared_with_static_runtimes_F77=no
12431   archive_cmds_F77=
12432   archive_expsym_cmds_F77=
12433   old_archive_From_new_cmds_F77=
12434   old_archive_from_expsyms_cmds_F77=
12435   export_dynamic_flag_spec_F77=
12436   whole_archive_flag_spec_F77=
12437   thread_safe_flag_spec_F77=
12438   hardcode_libdir_flag_spec_F77=
12439   hardcode_libdir_flag_spec_ld_F77=
12440   hardcode_libdir_separator_F77=
12441   hardcode_direct_F77=no
12442   hardcode_minus_L_F77=no
12443   hardcode_shlibpath_var_F77=unsupported
12444   link_all_deplibs_F77=unknown
12445   hardcode_automatic_F77=no
12446   module_cmds_F77=
12447   module_expsym_cmds_F77=
12448   always_export_symbols_F77=no
12449   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12450   # include_expsyms should be a list of space-separated symbols to be *always*
12451   # included in the symbol list
12452   include_expsyms_F77=
12453   # exclude_expsyms can be an extended regexp of symbols to exclude
12454   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12455   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12456   # as well as any symbol that contains `d'.
12457   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12458   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12459   # platforms (ab)use it in PIC code, but their linkers get confused if
12460   # the symbol is explicitly referenced.  Since portable code cannot
12461   # rely on this symbol name, it's probably fine to never include it in
12462   # preloaded symbol tables.
12463   extract_expsyms_cmds=
12464
12465   case $host_os in
12466   cygwin* | mingw* | pw32*)
12467     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12468     # When not using gcc, we currently assume that we are using
12469     # Microsoft Visual C++.
12470     if test "$GCC" != yes; then
12471       with_gnu_ld=no
12472     fi
12473     ;;
12474   openbsd*)
12475     with_gnu_ld=no
12476     ;;
12477   esac
12478
12479   ld_shlibs_F77=yes
12480   if test "$with_gnu_ld" = yes; then
12481     # If archive_cmds runs LD, not CC, wlarc should be empty
12482     wlarc='${wl}'
12483
12484     # See if GNU ld supports shared libraries.
12485     case $host_os in
12486     aix3* | aix4* | aix5*)
12487       # On AIX/PPC, the GNU linker is very broken
12488       if test "$host_cpu" != ia64; then
12489         ld_shlibs_F77=no
12490         cat <<EOF 1>&2
12491
12492 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12493 *** to be unable to reliably create shared libraries on AIX.
12494 *** Therefore, libtool is disabling shared libraries support.  If you
12495 *** really care for shared libraries, you may want to modify your PATH
12496 *** so that a non-GNU linker is found, and then restart.
12497
12498 EOF
12499       fi
12500       ;;
12501
12502     amigaos*)
12503       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)'
12504       hardcode_libdir_flag_spec_F77='-L$libdir'
12505       hardcode_minus_L_F77=yes
12506
12507       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12508       # that the semantics of dynamic libraries on AmigaOS, at least up
12509       # to version 4, is to share data among multiple programs linked
12510       # with the same dynamic library.  Since this doesn't match the
12511       # behavior of shared libraries on other platforms, we can't use
12512       # them.
12513       ld_shlibs_F77=no
12514       ;;
12515
12516     beos*)
12517       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12518         allow_undefined_flag_F77=unsupported
12519         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12520         # support --undefined.  This deserves some investigation.  FIXME
12521         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12522       else
12523         ld_shlibs_F77=no
12524       fi
12525       ;;
12526
12527     cygwin* | mingw* | pw32*)
12528       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12529       # as there is no search path for DLLs.
12530       hardcode_libdir_flag_spec_F77='-L$libdir'
12531       allow_undefined_flag_F77=unsupported
12532       always_export_symbols_F77=no
12533       enable_shared_with_static_runtimes_F77=yes
12534       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12535
12536       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12537         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12538         # If the export-symbols file already is a .def file (1st line
12539         # is EXPORTS), use it as is; otherwise, prepend...
12540         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12541           cp $export_symbols $output_objdir/$soname.def;
12542         else
12543           echo EXPORTS > $output_objdir/$soname.def;
12544           cat $export_symbols >> $output_objdir/$soname.def;
12545         fi~
12546         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12547       else
12548         ld_shlibs=no
12549       fi
12550       ;;
12551
12552     netbsd*)
12553       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12554         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12555         wlarc=
12556       else
12557         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12558         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12559       fi
12560       ;;
12561
12562     solaris* | sysv5*)
12563       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12564         ld_shlibs_F77=no
12565         cat <<EOF 1>&2
12566
12567 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12568 *** create shared libraries on Solaris systems.  Therefore, libtool
12569 *** is disabling shared libraries support.  We urge you to upgrade GNU
12570 *** binutils to release 2.9.1 or newer.  Another option is to modify
12571 *** your PATH or compiler configuration so that the native linker is
12572 *** used, and then restart.
12573
12574 EOF
12575       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12576         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12577         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12578       else
12579         ld_shlibs_F77=no
12580       fi
12581       ;;
12582
12583     sunos4*)
12584       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12585       wlarc=
12586       hardcode_direct_F77=yes
12587       hardcode_shlibpath_var_F77=no
12588       ;;
12589
12590   linux*)
12591     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12592         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12593         archive_cmds_F77="$tmp_archive_cmds"
12594       supports_anon_versioning=no
12595       case `$LD -v 2>/dev/null` in
12596         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12597         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12598         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12599         *\ 2.11.*) ;; # other 2.11 versions
12600         *) supports_anon_versioning=yes ;;
12601       esac
12602       if test $supports_anon_versioning = yes; then
12603         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
12604 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12605 $echo "local: *; };" >> $output_objdir/$libname.ver~
12606         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12607       else
12608         archive_expsym_cmds_F77="$tmp_archive_cmds"
12609       fi
12610     else
12611       ld_shlibs_F77=no
12612     fi
12613     ;;
12614
12615     *)
12616       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12617         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12618         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12619       else
12620         ld_shlibs_F77=no
12621       fi
12622       ;;
12623     esac
12624
12625     if test "$ld_shlibs_F77" = yes; then
12626       runpath_var=LD_RUN_PATH
12627       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12628       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12629       # ancient GNU ld didn't support --whole-archive et. al.
12630       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12631         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12632       else
12633         whole_archive_flag_spec_F77=
12634       fi
12635     fi
12636   else
12637     # PORTME fill in a description of your system's linker (not GNU ld)
12638     case $host_os in
12639     aix3*)
12640       allow_undefined_flag_F77=unsupported
12641       always_export_symbols_F77=yes
12642       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'
12643       # Note: this linker hardcodes the directories in LIBPATH if there
12644       # are no directories specified by -L.
12645       hardcode_minus_L_F77=yes
12646       if test "$GCC" = yes && test -z "$link_static_flag"; then
12647         # Neither direct hardcoding nor static linking is supported with a
12648         # broken collect2.
12649         hardcode_direct_F77=unsupported
12650       fi
12651       ;;
12652
12653     aix4* | aix5*)
12654       if test "$host_cpu" = ia64; then
12655         # On IA64, the linker does run time linking by default, so we don't
12656         # have to do anything special.
12657         aix_use_runtimelinking=no
12658         exp_sym_flag='-Bexport'
12659         no_entry_flag=""
12660       else
12661         # If we're using GNU nm, then we don't want the "-C" option.
12662         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12663         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12664           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'
12665         else
12666           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'
12667         fi
12668         aix_use_runtimelinking=no
12669
12670         # Test if we are trying to use run time linking or normal
12671         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12672         # need to do runtime linking.
12673         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12674           for ld_flag in $LDFLAGS; do
12675           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12676             aix_use_runtimelinking=yes
12677             break
12678           fi
12679           done
12680         esac
12681
12682         exp_sym_flag='-bexport'
12683         no_entry_flag='-bnoentry'
12684       fi
12685
12686       # When large executables or shared objects are built, AIX ld can
12687       # have problems creating the table of contents.  If linking a library
12688       # or program results in "error TOC overflow" add -mminimal-toc to
12689       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12690       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12691
12692       archive_cmds_F77=''
12693       hardcode_direct_F77=yes
12694       hardcode_libdir_separator_F77=':'
12695       link_all_deplibs_F77=yes
12696
12697       if test "$GCC" = yes; then
12698         case $host_os in aix4.012|aix4.012.*)
12699         # We only want to do this on AIX 4.2 and lower, the check
12700         # below for broken collect2 doesn't work under 4.3+
12701           collect2name=`${CC} -print-prog-name=collect2`
12702           if test -f "$collect2name" && \
12703            strings "$collect2name" | grep resolve_lib_name >/dev/null
12704           then
12705           # We have reworked collect2
12706           hardcode_direct_F77=yes
12707           else
12708           # We have old collect2
12709           hardcode_direct_F77=unsupported
12710           # It fails to find uninstalled libraries when the uninstalled
12711           # path is not listed in the libpath.  Setting hardcode_minus_L
12712           # to unsupported forces relinking
12713           hardcode_minus_L_F77=yes
12714           hardcode_libdir_flag_spec_F77='-L$libdir'
12715           hardcode_libdir_separator_F77=
12716           fi
12717         esac
12718         shared_flag='-shared'
12719       else
12720         # not using gcc
12721         if test "$host_cpu" = ia64; then
12722         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12723         # chokes on -Wl,-G. The following line is correct:
12724           shared_flag='-G'
12725         else
12726         if test "$aix_use_runtimelinking" = yes; then
12727             shared_flag='${wl}-G'
12728           else
12729             shared_flag='${wl}-bM:SRE'
12730         fi
12731         fi
12732       fi
12733
12734       # It seems that -bexpall does not export symbols beginning with
12735       # underscore (_), so it is better to generate a list of symbols to export.
12736       always_export_symbols_F77=yes
12737       if test "$aix_use_runtimelinking" = yes; then
12738         # Warning - without using the other runtime loading flags (-brtl),
12739         # -berok will link without error, but may produce a broken library.
12740         allow_undefined_flag_F77='-berok'
12741        # Determine the default libpath from the value encoded in an empty executable.
12742        cat >conftest.$ac_ext <<_ACEOF
12743       program main
12744
12745       end
12746 _ACEOF
12747 rm -f conftest.$ac_objext conftest$ac_exeext
12748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12749   (eval $ac_link) 2>&5
12750   ac_status=$?
12751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752   (exit $ac_status); } &&
12753          { ac_try='test -s conftest$ac_exeext'
12754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755   (eval $ac_try) 2>&5
12756   ac_status=$?
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); }; }; then
12759
12760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12761 }'`
12762 # Check for a 64-bit object if we didn't find anything.
12763 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; }
12764 }'`; fi
12765 else
12766   echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12768
12769 fi
12770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12772
12773        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12774         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12775        else
12776         if test "$host_cpu" = ia64; then
12777           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12778           allow_undefined_flag_F77="-z nodefs"
12779           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12780         else
12781          # Determine the default libpath from the value encoded in an empty executable.
12782          cat >conftest.$ac_ext <<_ACEOF
12783       program main
12784
12785       end
12786 _ACEOF
12787 rm -f conftest.$ac_objext conftest$ac_exeext
12788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12789   (eval $ac_link) 2>&5
12790   ac_status=$?
12791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792   (exit $ac_status); } &&
12793          { ac_try='test -s conftest$ac_exeext'
12794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795   (eval $ac_try) 2>&5
12796   ac_status=$?
12797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); }; }; then
12799
12800 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12801 }'`
12802 # Check for a 64-bit object if we didn't find anything.
12803 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; }
12804 }'`; fi
12805 else
12806   echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.$ac_ext >&5
12808
12809 fi
12810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12811 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12812
12813          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12814           # Warning - without using the other run time loading flags,
12815           # -berok will link without error, but may produce a broken library.
12816           no_undefined_flag_F77=' ${wl}-bernotok'
12817           allow_undefined_flag_F77=' ${wl}-berok'
12818           # -bexpall does not export symbols beginning with underscore (_)
12819           always_export_symbols_F77=yes
12820           # Exported symbols can be pulled into shared objects from archives
12821           whole_archive_flag_spec_F77=' '
12822           archive_cmds_need_lc_F77=yes
12823           # This is similar to how AIX traditionally builds it's shared libraries.
12824           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12825         fi
12826       fi
12827       ;;
12828
12829     amigaos*)
12830       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)'
12831       hardcode_libdir_flag_spec_F77='-L$libdir'
12832       hardcode_minus_L_F77=yes
12833       # see comment about different semantics on the GNU ld section
12834       ld_shlibs_F77=no
12835       ;;
12836
12837     bsdi4*)
12838       export_dynamic_flag_spec_F77=-rdynamic
12839       ;;
12840
12841     cygwin* | mingw* | pw32*)
12842       # When not using gcc, we currently assume that we are using
12843       # Microsoft Visual C++.
12844       # hardcode_libdir_flag_spec is actually meaningless, as there is
12845       # no search path for DLLs.
12846       hardcode_libdir_flag_spec_F77=' '
12847       allow_undefined_flag_F77=unsupported
12848       # Tell ltmain to make .lib files, not .a files.
12849       libext=lib
12850       # Tell ltmain to make .dll files, not .so files.
12851       shrext=".dll"
12852       # FIXME: Setting linknames here is a bad hack.
12853       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12854       # The linker will automatically build a .lib file if we build a DLL.
12855       old_archive_From_new_cmds_F77='true'
12856       # FIXME: Should let the user specify the lib program.
12857       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
12858       fix_srcfile_path='`cygpath -w "$srcfile"`'
12859       enable_shared_with_static_runtimes_F77=yes
12860       ;;
12861
12862     darwin* | rhapsody*)
12863     if test "$GXX" = yes ; then
12864       archive_cmds_need_lc_F77=no
12865       case "$host_os" in
12866       rhapsody* | darwin1.[012])
12867         allow_undefined_flag_F77='-undefined suppress'
12868         ;;
12869       *) # Darwin 1.3 on
12870       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12871         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
12872       else
12873         case ${MACOSX_DEPLOYMENT_TARGET} in
12874           10.[012])
12875             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
12876             ;;
12877           10.*)
12878             allow_undefined_flag_F77='-undefined dynamic_lookup'
12879             ;;
12880         esac
12881       fi
12882         ;;
12883       esac
12884         lt_int_apple_cc_single_mod=no
12885         output_verbose_link_cmd='echo'
12886         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12887           lt_int_apple_cc_single_mod=yes
12888         fi
12889         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12890           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12891         else
12892         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
12893       fi
12894       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12895       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12896         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12897           archive_expsym_cmds_F77='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}'
12898         else
12899           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
12900         fi
12901           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}'
12902       hardcode_direct_F77=no
12903       hardcode_automatic_F77=yes
12904       hardcode_shlibpath_var_F77=unsupported
12905       whole_archive_flag_spec_F77='-all_load $convenience'
12906       link_all_deplibs_F77=yes
12907     else
12908       ld_shlibs_F77=no
12909     fi
12910       ;;
12911
12912     dgux*)
12913       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12914       hardcode_libdir_flag_spec_F77='-L$libdir'
12915       hardcode_shlibpath_var_F77=no
12916       ;;
12917
12918     freebsd1*)
12919       ld_shlibs_F77=no
12920       ;;
12921
12922     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12923     # support.  Future versions do this automatically, but an explicit c++rt0.o
12924     # does not break anything, and helps significantly (at the cost of a little
12925     # extra space).
12926     freebsd2.2*)
12927       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12928       hardcode_libdir_flag_spec_F77='-R$libdir'
12929       hardcode_direct_F77=yes
12930       hardcode_shlibpath_var_F77=no
12931       ;;
12932
12933     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12934     freebsd2*)
12935       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12936       hardcode_direct_F77=yes
12937       hardcode_minus_L_F77=yes
12938       hardcode_shlibpath_var_F77=no
12939       ;;
12940
12941     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12942     freebsd* | kfreebsd*-gnu)
12943       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12944       hardcode_libdir_flag_spec_F77='-R$libdir'
12945       hardcode_direct_F77=yes
12946       hardcode_shlibpath_var_F77=no
12947       ;;
12948
12949     hpux9*)
12950       if test "$GCC" = yes; then
12951         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'
12952       else
12953         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'
12954       fi
12955       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
12956       hardcode_libdir_separator_F77=:
12957       hardcode_direct_F77=yes
12958
12959       # hardcode_minus_L: Not really in the search PATH,
12960       # but as the default location of the library.
12961       hardcode_minus_L_F77=yes
12962       export_dynamic_flag_spec_F77='${wl}-E'
12963       ;;
12964
12965     hpux10* | hpux11*)
12966       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12967         case "$host_cpu" in
12968         hppa*64*|ia64*)
12969           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12970           ;;
12971         *)
12972           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12973           ;;
12974         esac
12975       else
12976         case "$host_cpu" in
12977         hppa*64*|ia64*)
12978           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12979           ;;
12980         *)
12981           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12982           ;;
12983         esac
12984       fi
12985       if test "$with_gnu_ld" = no; then
12986         case "$host_cpu" in
12987         hppa*64*)
12988           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
12989           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
12990           hardcode_libdir_separator_F77=:
12991           hardcode_direct_F77=no
12992           hardcode_shlibpath_var_F77=no
12993           ;;
12994         ia64*)
12995           hardcode_libdir_flag_spec_F77='-L$libdir'
12996           hardcode_direct_F77=no
12997           hardcode_shlibpath_var_F77=no
12998
12999           # hardcode_minus_L: Not really in the search PATH,
13000           # but as the default location of the library.
13001           hardcode_minus_L_F77=yes
13002           ;;
13003         *)
13004           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13005           hardcode_libdir_separator_F77=:
13006           hardcode_direct_F77=yes
13007           export_dynamic_flag_spec_F77='${wl}-E'
13008
13009           # hardcode_minus_L: Not really in the search PATH,
13010           # but as the default location of the library.
13011           hardcode_minus_L_F77=yes
13012           ;;
13013         esac
13014       fi
13015       ;;
13016
13017     irix5* | irix6* | nonstopux*)
13018       if test "$GCC" = yes; then
13019         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'
13020       else
13021         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'
13022         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13023       fi
13024       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13025       hardcode_libdir_separator_F77=:
13026       link_all_deplibs_F77=yes
13027       ;;
13028
13029     netbsd*)
13030       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13031         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13032       else
13033         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13034       fi
13035       hardcode_libdir_flag_spec_F77='-R$libdir'
13036       hardcode_direct_F77=yes
13037       hardcode_shlibpath_var_F77=no
13038       ;;
13039
13040     newsos6)
13041       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13042       hardcode_direct_F77=yes
13043       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13044       hardcode_libdir_separator_F77=:
13045       hardcode_shlibpath_var_F77=no
13046       ;;
13047
13048     openbsd*)
13049       hardcode_direct_F77=yes
13050       hardcode_shlibpath_var_F77=no
13051       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13052         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13053         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13054         export_dynamic_flag_spec_F77='${wl}-E'
13055       else
13056        case $host_os in
13057          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13058            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13059            hardcode_libdir_flag_spec_F77='-R$libdir'
13060            ;;
13061          *)
13062            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13063            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13064            ;;
13065        esac
13066       fi
13067       ;;
13068
13069     os2*)
13070       hardcode_libdir_flag_spec_F77='-L$libdir'
13071       hardcode_minus_L_F77=yes
13072       allow_undefined_flag_F77=unsupported
13073       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'
13074       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13075       ;;
13076
13077     osf3*)
13078       if test "$GCC" = yes; then
13079         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13080         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'
13081       else
13082         allow_undefined_flag_F77=' -expect_unresolved \*'
13083         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'
13084       fi
13085       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13086       hardcode_libdir_separator_F77=:
13087       ;;
13088
13089     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13090       if test "$GCC" = yes; then
13091         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13092         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'
13093         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13094       else
13095         allow_undefined_flag_F77=' -expect_unresolved \*'
13096         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'
13097         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~
13098         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13099
13100         # Both c and cxx compiler support -rpath directly
13101         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13102       fi
13103       hardcode_libdir_separator_F77=:
13104       ;;
13105
13106     sco3.2v5*)
13107       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13108       hardcode_shlibpath_var_F77=no
13109       export_dynamic_flag_spec_F77='${wl}-Bexport'
13110       runpath_var=LD_RUN_PATH
13111       hardcode_runpath_var=yes
13112       ;;
13113
13114     solaris*)
13115       no_undefined_flag_F77=' -z text'
13116       if test "$GCC" = yes; then
13117         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13118         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13119           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13120       else
13121         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13122         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13123         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13124       fi
13125       hardcode_libdir_flag_spec_F77='-R$libdir'
13126       hardcode_shlibpath_var_F77=no
13127       case $host_os in
13128       solaris2.[0-5] | solaris2.[0-5].*) ;;
13129       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13130         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13131       esac
13132       link_all_deplibs_F77=yes
13133       ;;
13134
13135     sunos4*)
13136       if test "x$host_vendor" = xsequent; then
13137         # Use $CC to link under sequent, because it throws in some extra .o
13138         # files that make .init and .fini sections work.
13139         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13140       else
13141         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13142       fi
13143       hardcode_libdir_flag_spec_F77='-L$libdir'
13144       hardcode_direct_F77=yes
13145       hardcode_minus_L_F77=yes
13146       hardcode_shlibpath_var_F77=no
13147       ;;
13148
13149     sysv4)
13150       case $host_vendor in
13151         sni)
13152           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13153           hardcode_direct_F77=yes # is this really true???
13154         ;;
13155         siemens)
13156           ## LD is ld it makes a PLAMLIB
13157           ## CC just makes a GrossModule.
13158           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13159           reload_cmds_F77='$CC -r -o $output$reload_objs'
13160           hardcode_direct_F77=no
13161         ;;
13162         motorola)
13163           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13164           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13165         ;;
13166       esac
13167       runpath_var='LD_RUN_PATH'
13168       hardcode_shlibpath_var_F77=no
13169       ;;
13170
13171     sysv4.3*)
13172       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13173       hardcode_shlibpath_var_F77=no
13174       export_dynamic_flag_spec_F77='-Bexport'
13175       ;;
13176
13177     sysv4*MP*)
13178       if test -d /usr/nec; then
13179         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13180         hardcode_shlibpath_var_F77=no
13181         runpath_var=LD_RUN_PATH
13182         hardcode_runpath_var=yes
13183         ld_shlibs_F77=yes
13184       fi
13185       ;;
13186
13187     sysv4.2uw2*)
13188       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13189       hardcode_direct_F77=yes
13190       hardcode_minus_L_F77=no
13191       hardcode_shlibpath_var_F77=no
13192       hardcode_runpath_var=yes
13193       runpath_var=LD_RUN_PATH
13194       ;;
13195
13196    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13197       no_undefined_flag_F77='${wl}-z ${wl}text'
13198       if test "$GCC" = yes; then
13199         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13200       else
13201         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13202       fi
13203       runpath_var='LD_RUN_PATH'
13204       hardcode_shlibpath_var_F77=no
13205       ;;
13206
13207     sysv5*)
13208       no_undefined_flag_F77=' -z text'
13209       # $CC -shared without GNU ld will not create a library from C++
13210       # object files and a static libstdc++, better avoid it by now
13211       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13212       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13213                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13214       hardcode_libdir_flag_spec_F77=
13215       hardcode_shlibpath_var_F77=no
13216       runpath_var='LD_RUN_PATH'
13217       ;;
13218
13219     uts4*)
13220       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13221       hardcode_libdir_flag_spec_F77='-L$libdir'
13222       hardcode_shlibpath_var_F77=no
13223       ;;
13224
13225     *)
13226       ld_shlibs_F77=no
13227       ;;
13228     esac
13229   fi
13230
13231 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13232 echo "${ECHO_T}$ld_shlibs_F77" >&6
13233 test "$ld_shlibs_F77" = no && can_build_shared=no
13234
13235 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13236 if test "$GCC" = yes; then
13237   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13238 fi
13239
13240 #
13241 # Do we need to explicitly link libc?
13242 #
13243 case "x$archive_cmds_need_lc_F77" in
13244 x|xyes)
13245   # Assume -lc should be added
13246   archive_cmds_need_lc_F77=yes
13247
13248   if test "$enable_shared" = yes && test "$GCC" = yes; then
13249     case $archive_cmds_F77 in
13250     *'~'*)
13251       # FIXME: we may have to deal with multi-command sequences.
13252       ;;
13253     '$CC '*)
13254       # Test whether the compiler implicitly links with -lc since on some
13255       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13256       # to ld, don't add -lc before -lgcc.
13257       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13258 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13259       $rm conftest*
13260       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13261
13262       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13263   (eval $ac_compile) 2>&5
13264   ac_status=$?
13265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266   (exit $ac_status); } 2>conftest.err; then
13267         soname=conftest
13268         lib=conftest
13269         libobjs=conftest.$ac_objext
13270         deplibs=
13271         wl=$lt_prog_compiler_wl_F77
13272         compiler_flags=-v
13273         linker_flags=-v
13274         verstring=
13275         output_objdir=.
13276         libname=conftest
13277         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13278         allow_undefined_flag_F77=
13279         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13280   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13281   ac_status=$?
13282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283   (exit $ac_status); }
13284         then
13285           archive_cmds_need_lc_F77=no
13286         else
13287           archive_cmds_need_lc_F77=yes
13288         fi
13289         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13290       else
13291         cat conftest.err 1>&5
13292       fi
13293       $rm conftest*
13294       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13295 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13296       ;;
13297     esac
13298   fi
13299   ;;
13300 esac
13301
13302 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13303 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13304 library_names_spec=
13305 libname_spec='lib$name'
13306 soname_spec=
13307 shrext=".so"
13308 postinstall_cmds=
13309 postuninstall_cmds=
13310 finish_cmds=
13311 finish_eval=
13312 shlibpath_var=
13313 shlibpath_overrides_runpath=unknown
13314 version_type=none
13315 dynamic_linker="$host_os ld.so"
13316 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13317 if test "$GCC" = yes; then
13318   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13319   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13320     # if the path contains ";" then we assume it to be the separator
13321     # otherwise default to the standard path separator (i.e. ":") - it is
13322     # assumed that no part of a normal pathname contains ";" but that should
13323     # okay in the real world where ";" in dirpaths is itself problematic.
13324     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13325   else
13326     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13327   fi
13328 else
13329   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13330 fi
13331 need_lib_prefix=unknown
13332 hardcode_into_libs=no
13333
13334 # when you set need_version to no, make sure it does not cause -set_version
13335 # flags to be left without arguments
13336 need_version=unknown
13337
13338 case $host_os in
13339 aix3*)
13340   version_type=linux
13341   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13342   shlibpath_var=LIBPATH
13343
13344   # AIX 3 has no versioning support, so we append a major version to the name.
13345   soname_spec='${libname}${release}${shared_ext}$major'
13346   ;;
13347
13348 aix4* | aix5*)
13349   version_type=linux
13350   need_lib_prefix=no
13351   need_version=no
13352   hardcode_into_libs=yes
13353   if test "$host_cpu" = ia64; then
13354     # AIX 5 supports IA64
13355     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13356     shlibpath_var=LD_LIBRARY_PATH
13357   else
13358     # With GCC up to 2.95.x, collect2 would create an import file
13359     # for dependence libraries.  The import file would start with
13360     # the line `#! .'.  This would cause the generated library to
13361     # depend on `.', always an invalid library.  This was fixed in
13362     # development snapshots of GCC prior to 3.0.
13363     case $host_os in
13364       aix4 | aix4.[01] | aix4.[01].*)
13365       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13366            echo ' yes '
13367            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13368         :
13369       else
13370         can_build_shared=no
13371       fi
13372       ;;
13373     esac
13374     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13375     # soname into executable. Probably we can add versioning support to
13376     # collect2, so additional links can be useful in future.
13377     if test "$aix_use_runtimelinking" = yes; then
13378       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13379       # instead of lib<name>.a to let people know that these are not
13380       # typical AIX shared libraries.
13381       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13382     else
13383       # We preserve .a as extension for shared libraries through AIX4.2
13384       # and later when we are not doing run time linking.
13385       library_names_spec='${libname}${release}.a $libname.a'
13386       soname_spec='${libname}${release}${shared_ext}$major'
13387     fi
13388     shlibpath_var=LIBPATH
13389   fi
13390   ;;
13391
13392 amigaos*)
13393   library_names_spec='$libname.ixlibrary $libname.a'
13394   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13395   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'
13396   ;;
13397
13398 beos*)
13399   library_names_spec='${libname}${shared_ext}'
13400   dynamic_linker="$host_os ld.so"
13401   shlibpath_var=LIBRARY_PATH
13402   ;;
13403
13404 bsdi4*)
13405   version_type=linux
13406   need_version=no
13407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13408   soname_spec='${libname}${release}${shared_ext}$major'
13409   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13410   shlibpath_var=LD_LIBRARY_PATH
13411   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13412   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13413   # the default ld.so.conf also contains /usr/contrib/lib and
13414   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13415   # libtool to hard-code these into programs
13416   ;;
13417
13418 cygwin* | mingw* | pw32*)
13419   version_type=windows
13420   shrext=".dll"
13421   need_version=no
13422   need_lib_prefix=no
13423
13424   case $GCC,$host_os in
13425   yes,cygwin* | yes,mingw* | yes,pw32*)
13426     library_names_spec='$libname.dll.a'
13427     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13428     postinstall_cmds='base_file=`basename \${file}`~
13429       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13430       dldir=$destdir/`dirname \$dlpath`~
13431       test -d \$dldir || mkdir -p \$dldir~
13432       $install_prog $dir/$dlname \$dldir/$dlname'
13433     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13434       dlpath=$dir/\$dldll~
13435        $rm \$dlpath'
13436     shlibpath_overrides_runpath=yes
13437
13438     case $host_os in
13439     cygwin*)
13440       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13441       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13442       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13443       ;;
13444     mingw*)
13445       # MinGW DLLs use traditional 'lib' prefix
13446       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13447       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13448       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13449         # It is most probably a Windows format PATH printed by
13450         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13451         # path with ; separators, and with drive letters. We can handle the
13452         # drive letters (cygwin fileutils understands them), so leave them,
13453         # especially as we might pass files found there to a mingw objdump,
13454         # which wouldn't understand a cygwinified path. Ahh.
13455         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13456       else
13457         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13458       fi
13459       ;;
13460     pw32*)
13461       # pw32 DLLs use 'pw' prefix rather than 'lib'
13462       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13463       ;;
13464     esac
13465     ;;
13466
13467   *)
13468     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13469     ;;
13470   esac
13471   dynamic_linker='Win32 ld.exe'
13472   # FIXME: first we should search . and the directory the executable is in
13473   shlibpath_var=PATH
13474   ;;
13475
13476 darwin* | rhapsody*)
13477   dynamic_linker="$host_os dyld"
13478   version_type=darwin
13479   need_lib_prefix=no
13480   need_version=no
13481   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13482   soname_spec='${libname}${release}${major}$shared_ext'
13483   shlibpath_overrides_runpath=yes
13484   shlibpath_var=DYLD_LIBRARY_PATH
13485   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13486   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13487   if test "$GCC" = yes; then
13488     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"`
13489   else
13490     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13491   fi
13492   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13493   ;;
13494
13495 dgux*)
13496   version_type=linux
13497   need_lib_prefix=no
13498   need_version=no
13499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13500   soname_spec='${libname}${release}${shared_ext}$major'
13501   shlibpath_var=LD_LIBRARY_PATH
13502   ;;
13503
13504 freebsd1*)
13505   dynamic_linker=no
13506   ;;
13507
13508 kfreebsd*-gnu)
13509   version_type=linux
13510   need_lib_prefix=no
13511   need_version=no
13512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13513   soname_spec='${libname}${release}${shared_ext}$major'
13514   shlibpath_var=LD_LIBRARY_PATH
13515   shlibpath_overrides_runpath=no
13516   hardcode_into_libs=yes
13517   dynamic_linker='GNU ld.so'
13518   ;;
13519
13520 freebsd*)
13521   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13522   version_type=freebsd-$objformat
13523   case $version_type in
13524     freebsd-elf*)
13525       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13526       need_version=no
13527       need_lib_prefix=no
13528       ;;
13529     freebsd-*)
13530       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13531       need_version=yes
13532       ;;
13533   esac
13534   shlibpath_var=LD_LIBRARY_PATH
13535   case $host_os in
13536   freebsd2*)
13537     shlibpath_overrides_runpath=yes
13538     ;;
13539   freebsd3.01* | freebsdelf3.01*)
13540     shlibpath_overrides_runpath=yes
13541     hardcode_into_libs=yes
13542     ;;
13543   *) # from 3.2 on
13544     shlibpath_overrides_runpath=no
13545     hardcode_into_libs=yes
13546     ;;
13547   esac
13548   ;;
13549
13550 gnu*)
13551   version_type=linux
13552   need_lib_prefix=no
13553   need_version=no
13554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13555   soname_spec='${libname}${release}${shared_ext}$major'
13556   shlibpath_var=LD_LIBRARY_PATH
13557   hardcode_into_libs=yes
13558   ;;
13559
13560 hpux9* | hpux10* | hpux11*)
13561   # Give a soname corresponding to the major version so that dld.sl refuses to
13562   # link against other versions.
13563   version_type=sunos
13564   need_lib_prefix=no
13565   need_version=no
13566   case "$host_cpu" in
13567   ia64*)
13568     shrext='.so'
13569     hardcode_into_libs=yes
13570     dynamic_linker="$host_os dld.so"
13571     shlibpath_var=LD_LIBRARY_PATH
13572     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13574     soname_spec='${libname}${release}${shared_ext}$major'
13575     if test "X$HPUX_IA64_MODE" = X32; then
13576       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13577     else
13578       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13579     fi
13580     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13581     ;;
13582    hppa*64*)
13583      shrext='.sl'
13584      hardcode_into_libs=yes
13585      dynamic_linker="$host_os dld.sl"
13586      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13587      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13588      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13589      soname_spec='${libname}${release}${shared_ext}$major'
13590      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13591      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13592      ;;
13593    *)
13594     shrext='.sl'
13595     dynamic_linker="$host_os dld.sl"
13596     shlibpath_var=SHLIB_PATH
13597     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13599     soname_spec='${libname}${release}${shared_ext}$major'
13600     ;;
13601   esac
13602   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13603   postinstall_cmds='chmod 555 $lib'
13604   ;;
13605
13606 irix5* | irix6* | nonstopux*)
13607   case $host_os in
13608     nonstopux*) version_type=nonstopux ;;
13609     *)
13610         if test "$lt_cv_prog_gnu_ld" = yes; then
13611                 version_type=linux
13612         else
13613                 version_type=irix
13614         fi ;;
13615   esac
13616   need_lib_prefix=no
13617   need_version=no
13618   soname_spec='${libname}${release}${shared_ext}$major'
13619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13620   case $host_os in
13621   irix5* | nonstopux*)
13622     libsuff= shlibsuff=
13623     ;;
13624   *)
13625     case $LD in # libtool.m4 will add one of these switches to LD
13626     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13627       libsuff= shlibsuff= libmagic=32-bit;;
13628     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13629       libsuff=32 shlibsuff=N32 libmagic=N32;;
13630     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13631       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13632     *) libsuff= shlibsuff= libmagic=never-match;;
13633     esac
13634     ;;
13635   esac
13636   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13637   shlibpath_overrides_runpath=no
13638   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13639   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13640   hardcode_into_libs=yes
13641   ;;
13642
13643 # No shared lib support for Linux oldld, aout, or coff.
13644 linux*oldld* | linux*aout* | linux*coff*)
13645   dynamic_linker=no
13646   ;;
13647
13648 # This must be Linux ELF.
13649 linux*)
13650   version_type=linux
13651   need_lib_prefix=no
13652   need_version=no
13653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13654   soname_spec='${libname}${release}${shared_ext}$major'
13655   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13656   shlibpath_var=LD_LIBRARY_PATH
13657   shlibpath_overrides_runpath=no
13658   # This implies no fast_install, which is unacceptable.
13659   # Some rework will be needed to allow for fast_install
13660   # before this can be enabled.
13661   hardcode_into_libs=yes
13662
13663   # We used to test for /lib/ld.so.1 and disable shared libraries on
13664   # powerpc, because MkLinux only supported shared libraries with the
13665   # GNU dynamic linker.  Since this was broken with cross compilers,
13666   # most powerpc-linux boxes support dynamic linking these days and
13667   # people can always --disable-shared, the test was removed, and we
13668   # assume the GNU/Linux dynamic linker is in use.
13669   dynamic_linker='GNU/Linux ld.so'
13670   ;;
13671
13672 netbsd*)
13673   version_type=sunos
13674   need_lib_prefix=no
13675   need_version=no
13676   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13677     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13678     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13679     dynamic_linker='NetBSD (a.out) ld.so'
13680   else
13681     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13682     soname_spec='${libname}${release}${shared_ext}$major'
13683     dynamic_linker='NetBSD ld.elf_so'
13684   fi
13685   shlibpath_var=LD_LIBRARY_PATH
13686   shlibpath_overrides_runpath=yes
13687   hardcode_into_libs=yes
13688   ;;
13689
13690 newsos6)
13691   version_type=linux
13692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13693   shlibpath_var=LD_LIBRARY_PATH
13694   shlibpath_overrides_runpath=yes
13695   ;;
13696
13697 nto-qnx*)
13698   version_type=linux
13699   need_lib_prefix=no
13700   need_version=no
13701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13702   soname_spec='${libname}${release}${shared_ext}$major'
13703   shlibpath_var=LD_LIBRARY_PATH
13704   shlibpath_overrides_runpath=yes
13705   ;;
13706
13707 openbsd*)
13708   version_type=sunos
13709   need_lib_prefix=no
13710   need_version=no
13711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13712   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13713   shlibpath_var=LD_LIBRARY_PATH
13714   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13715     case $host_os in
13716       openbsd2.[89] | openbsd2.[89].*)
13717         shlibpath_overrides_runpath=no
13718         ;;
13719       *)
13720         shlibpath_overrides_runpath=yes
13721         ;;
13722       esac
13723   else
13724     shlibpath_overrides_runpath=yes
13725   fi
13726   ;;
13727
13728 os2*)
13729   libname_spec='$name'
13730   shrext=".dll"
13731   need_lib_prefix=no
13732   library_names_spec='$libname${shared_ext} $libname.a'
13733   dynamic_linker='OS/2 ld.exe'
13734   shlibpath_var=LIBPATH
13735   ;;
13736
13737 osf3* | osf4* | osf5*)
13738   version_type=osf
13739   need_lib_prefix=no
13740   need_version=no
13741   soname_spec='${libname}${release}${shared_ext}$major'
13742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13743   shlibpath_var=LD_LIBRARY_PATH
13744   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13745   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13746   ;;
13747
13748 sco3.2v5*)
13749   version_type=osf
13750   soname_spec='${libname}${release}${shared_ext}$major'
13751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13752   shlibpath_var=LD_LIBRARY_PATH
13753   ;;
13754
13755 solaris*)
13756   version_type=linux
13757   need_lib_prefix=no
13758   need_version=no
13759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13760   soname_spec='${libname}${release}${shared_ext}$major'
13761   shlibpath_var=LD_LIBRARY_PATH
13762   shlibpath_overrides_runpath=yes
13763   hardcode_into_libs=yes
13764   # ldd complains unless libraries are executable
13765   postinstall_cmds='chmod +x $lib'
13766   ;;
13767
13768 sunos4*)
13769   version_type=sunos
13770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13771   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13772   shlibpath_var=LD_LIBRARY_PATH
13773   shlibpath_overrides_runpath=yes
13774   if test "$with_gnu_ld" = yes; then
13775     need_lib_prefix=no
13776   fi
13777   need_version=yes
13778   ;;
13779
13780 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13781   version_type=linux
13782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13783   soname_spec='${libname}${release}${shared_ext}$major'
13784   shlibpath_var=LD_LIBRARY_PATH
13785   case $host_vendor in
13786     sni)
13787       shlibpath_overrides_runpath=no
13788       need_lib_prefix=no
13789       export_dynamic_flag_spec='${wl}-Blargedynsym'
13790       runpath_var=LD_RUN_PATH
13791       ;;
13792     siemens)
13793       need_lib_prefix=no
13794       ;;
13795     motorola)
13796       need_lib_prefix=no
13797       need_version=no
13798       shlibpath_overrides_runpath=no
13799       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13800       ;;
13801   esac
13802   ;;
13803
13804 sysv4*MP*)
13805   if test -d /usr/nec ;then
13806     version_type=linux
13807     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13808     soname_spec='$libname${shared_ext}.$major'
13809     shlibpath_var=LD_LIBRARY_PATH
13810   fi
13811   ;;
13812
13813 uts4*)
13814   version_type=linux
13815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13816   soname_spec='${libname}${release}${shared_ext}$major'
13817   shlibpath_var=LD_LIBRARY_PATH
13818   ;;
13819
13820 *)
13821   dynamic_linker=no
13822   ;;
13823 esac
13824 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13825 echo "${ECHO_T}$dynamic_linker" >&6
13826 test "$dynamic_linker" = no && can_build_shared=no
13827
13828 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13829 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13830 hardcode_action_F77=
13831 if test -n "$hardcode_libdir_flag_spec_F77" || \
13832    test -n "$runpath_var F77" || \
13833    test "X$hardcode_automatic_F77"="Xyes" ; then
13834
13835   # We can hardcode non-existant directories.
13836   if test "$hardcode_direct_F77" != no &&
13837      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13838      # have to relink, otherwise we might link with an installed library
13839      # when we should be linking with a yet-to-be-installed one
13840      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13841      test "$hardcode_minus_L_F77" != no; then
13842     # Linking always hardcodes the temporary library directory.
13843     hardcode_action_F77=relink
13844   else
13845     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13846     hardcode_action_F77=immediate
13847   fi
13848 else
13849   # We cannot hardcode anything, or else we can only hardcode existing
13850   # directories.
13851   hardcode_action_F77=unsupported
13852 fi
13853 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13854 echo "${ECHO_T}$hardcode_action_F77" >&6
13855
13856 if test "$hardcode_action_F77" = relink; then
13857   # Fast installation is not supported
13858   enable_fast_install=no
13859 elif test "$shlibpath_overrides_runpath" = yes ||
13860      test "$enable_shared" = no; then
13861   # Fast installation is not necessary
13862   enable_fast_install=needless
13863 fi
13864
13865 striplib=
13866 old_striplib=
13867 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13868 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13869 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13870   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13871   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13872   echo "$as_me:$LINENO: result: yes" >&5
13873 echo "${ECHO_T}yes" >&6
13874 else
13875 # FIXME - insert some real tests, host_os isn't really good enough
13876   case $host_os in
13877    darwin*)
13878        if test -n "$STRIP" ; then
13879          striplib="$STRIP -x"
13880          echo "$as_me:$LINENO: result: yes" >&5
13881 echo "${ECHO_T}yes" >&6
13882        else
13883   echo "$as_me:$LINENO: result: no" >&5
13884 echo "${ECHO_T}no" >&6
13885 fi
13886        ;;
13887    *)
13888   echo "$as_me:$LINENO: result: no" >&5
13889 echo "${ECHO_T}no" >&6
13890     ;;
13891   esac
13892 fi
13893
13894
13895
13896 # The else clause should only fire when bootstrapping the
13897 # libtool distribution, otherwise you forgot to ship ltmain.sh
13898 # with your package, and you will get complaints that there are
13899 # no rules to generate ltmain.sh.
13900 if test -f "$ltmain"; then
13901   # See if we are running on zsh, and set the options which allow our commands through
13902   # without removal of \ escapes.
13903   if test -n "${ZSH_VERSION+set}" ; then
13904     setopt NO_GLOB_SUBST
13905   fi
13906   # Now quote all the things that may contain metacharacters while being
13907   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13908   # variables and quote the copies for generation of the libtool script.
13909   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13910     SED SHELL STRIP \
13911     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13912     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13913     deplibs_check_method reload_flag reload_cmds need_locks \
13914     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13915     lt_cv_sys_global_symbol_to_c_name_address \
13916     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13917     old_postinstall_cmds old_postuninstall_cmds \
13918     compiler_F77 \
13919     CC_F77 \
13920     LD_F77 \
13921     lt_prog_compiler_wl_F77 \
13922     lt_prog_compiler_pic_F77 \
13923     lt_prog_compiler_static_F77 \
13924     lt_prog_compiler_no_builtin_flag_F77 \
13925     export_dynamic_flag_spec_F77 \
13926     thread_safe_flag_spec_F77 \
13927     whole_archive_flag_spec_F77 \
13928     enable_shared_with_static_runtimes_F77 \
13929     old_archive_cmds_F77 \
13930     old_archive_from_new_cmds_F77 \
13931     predep_objects_F77 \
13932     postdep_objects_F77 \
13933     predeps_F77 \
13934     postdeps_F77 \
13935     compiler_lib_search_path_F77 \
13936     archive_cmds_F77 \
13937     archive_expsym_cmds_F77 \
13938     postinstall_cmds_F77 \
13939     postuninstall_cmds_F77 \
13940     old_archive_from_expsyms_cmds_F77 \
13941     allow_undefined_flag_F77 \
13942     no_undefined_flag_F77 \
13943     export_symbols_cmds_F77 \
13944     hardcode_libdir_flag_spec_F77 \
13945     hardcode_libdir_flag_spec_ld_F77 \
13946     hardcode_libdir_separator_F77 \
13947     hardcode_automatic_F77 \
13948     module_cmds_F77 \
13949     module_expsym_cmds_F77 \
13950     lt_cv_prog_compiler_c_o_F77 \
13951     exclude_expsyms_F77 \
13952     include_expsyms_F77; do
13953
13954     case $var in
13955     old_archive_cmds_F77 | \
13956     old_archive_from_new_cmds_F77 | \
13957     archive_cmds_F77 | \
13958     archive_expsym_cmds_F77 | \
13959     module_cmds_F77 | \
13960     module_expsym_cmds_F77 | \
13961     old_archive_from_expsyms_cmds_F77 | \
13962     export_symbols_cmds_F77 | \
13963     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13964     postinstall_cmds | postuninstall_cmds | \
13965     old_postinstall_cmds | old_postuninstall_cmds | \
13966     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13967       # Double-quote double-evaled strings.
13968       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13969       ;;
13970     *)
13971       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13972       ;;
13973     esac
13974   done
13975
13976   case $lt_echo in
13977   *'\$0 --fallback-echo"')
13978     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13979     ;;
13980   esac
13981
13982 cfgfile="$ofile"
13983
13984   cat <<__EOF__ >> "$cfgfile"
13985 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13986
13987 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13988
13989 # Shell to use when invoking shell scripts.
13990 SHELL=$lt_SHELL
13991
13992 # Whether or not to build shared libraries.
13993 build_libtool_libs=$enable_shared
13994
13995 # Whether or not to build static libraries.
13996 build_old_libs=$enable_static
13997
13998 # Whether or not to add -lc for building shared libraries.
13999 build_libtool_need_lc=$archive_cmds_need_lc_F77
14000
14001 # Whether or not to disallow shared libs when runtime libs are static
14002 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14003
14004 # Whether or not to optimize for fast installation.
14005 fast_install=$enable_fast_install
14006
14007 # The host system.
14008 host_alias=$host_alias
14009 host=$host
14010
14011 # An echo program that does not interpret backslashes.
14012 echo=$lt_echo
14013
14014 # The archiver.
14015 AR=$lt_AR
14016 AR_FLAGS=$lt_AR_FLAGS
14017
14018 # A C compiler.
14019 LTCC=$lt_LTCC
14020
14021 # A language-specific compiler.
14022 CC=$lt_compiler_F77
14023
14024 # Is the compiler the GNU C compiler?
14025 with_gcc=$GCC_F77
14026
14027 # An ERE matcher.
14028 EGREP=$lt_EGREP
14029
14030 # The linker used to build libraries.
14031 LD=$lt_LD_F77
14032
14033 # Whether we need hard or soft links.
14034 LN_S=$lt_LN_S
14035
14036 # A BSD-compatible nm program.
14037 NM=$lt_NM
14038
14039 # A symbol stripping program
14040 STRIP=$lt_STRIP
14041
14042 # Used to examine libraries when file_magic_cmd begins "file"
14043 MAGIC_CMD=$MAGIC_CMD
14044
14045 # Used on cygwin: DLL creation program.
14046 DLLTOOL="$DLLTOOL"
14047
14048 # Used on cygwin: object dumper.
14049 OBJDUMP="$OBJDUMP"
14050
14051 # Used on cygwin: assembler.
14052 AS="$AS"
14053
14054 # The name of the directory that contains temporary libtool files.
14055 objdir=$objdir
14056
14057 # How to create reloadable object files.
14058 reload_flag=$lt_reload_flag
14059 reload_cmds=$lt_reload_cmds
14060
14061 # How to pass a linker flag through the compiler.
14062 wl=$lt_lt_prog_compiler_wl_F77
14063
14064 # Object file suffix (normally "o").
14065 objext="$ac_objext"
14066
14067 # Old archive suffix (normally "a").
14068 libext="$libext"
14069
14070 # Shared library suffix (normally ".so").
14071 shrext='$shrext'
14072
14073 # Executable file suffix (normally "").
14074 exeext="$exeext"
14075
14076 # Additional compiler flags for building library objects.
14077 pic_flag=$lt_lt_prog_compiler_pic_F77
14078 pic_mode=$pic_mode
14079
14080 # What is the maximum length of a command?
14081 max_cmd_len=$lt_cv_sys_max_cmd_len
14082
14083 # Does compiler simultaneously support -c and -o options?
14084 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14085
14086 # Must we lock files when doing compilation ?
14087 need_locks=$lt_need_locks
14088
14089 # Do we need the lib prefix for modules?
14090 need_lib_prefix=$need_lib_prefix
14091
14092 # Do we need a version for libraries?
14093 need_version=$need_version
14094
14095 # Whether dlopen is supported.
14096 dlopen_support=$enable_dlopen
14097
14098 # Whether dlopen of programs is supported.
14099 dlopen_self=$enable_dlopen_self
14100
14101 # Whether dlopen of statically linked programs is supported.
14102 dlopen_self_static=$enable_dlopen_self_static
14103
14104 # Compiler flag to prevent dynamic linking.
14105 link_static_flag=$lt_lt_prog_compiler_static_F77
14106
14107 # Compiler flag to turn off builtin functions.
14108 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14109
14110 # Compiler flag to allow reflexive dlopens.
14111 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14112
14113 # Compiler flag to generate shared objects directly from archives.
14114 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14115
14116 # Compiler flag to generate thread-safe objects.
14117 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14118
14119 # Library versioning type.
14120 version_type=$version_type
14121
14122 # Format of library name prefix.
14123 libname_spec=$lt_libname_spec
14124
14125 # List of archive names.  First name is the real one, the rest are links.
14126 # The last name is the one that the linker finds with -lNAME.
14127 library_names_spec=$lt_library_names_spec
14128
14129 # The coded name of the library, if different from the real name.
14130 soname_spec=$lt_soname_spec
14131
14132 # Commands used to build and install an old-style archive.
14133 RANLIB=$lt_RANLIB
14134 old_archive_cmds=$lt_old_archive_cmds_F77
14135 old_postinstall_cmds=$lt_old_postinstall_cmds
14136 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14137
14138 # Create an old-style archive from a shared archive.
14139 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14140
14141 # Create a temporary old-style archive to link instead of a shared archive.
14142 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14143
14144 # Commands used to build and install a shared archive.
14145 archive_cmds=$lt_archive_cmds_F77
14146 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14147 postinstall_cmds=$lt_postinstall_cmds
14148 postuninstall_cmds=$lt_postuninstall_cmds
14149
14150 # Commands used to build a loadable module (assumed same as above if empty)
14151 module_cmds=$lt_module_cmds_F77
14152 module_expsym_cmds=$lt_module_expsym_cmds_F77
14153
14154 # Commands to strip libraries.
14155 old_striplib=$lt_old_striplib
14156 striplib=$lt_striplib
14157
14158 # Dependencies to place before the objects being linked to create a
14159 # shared library.
14160 predep_objects=$lt_predep_objects_F77
14161
14162 # Dependencies to place after the objects being linked to create a
14163 # shared library.
14164 postdep_objects=$lt_postdep_objects_F77
14165
14166 # Dependencies to place before the objects being linked to create a
14167 # shared library.
14168 predeps=$lt_predeps_F77
14169
14170 # Dependencies to place after the objects being linked to create a
14171 # shared library.
14172 postdeps=$lt_postdeps_F77
14173
14174 # The library search path used internally by the compiler when linking
14175 # a shared library.
14176 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14177
14178 # Method to check whether dependent libraries are shared objects.
14179 deplibs_check_method=$lt_deplibs_check_method
14180
14181 # Command to use when deplibs_check_method == file_magic.
14182 file_magic_cmd=$lt_file_magic_cmd
14183
14184 # Flag that allows shared libraries with undefined symbols to be built.
14185 allow_undefined_flag=$lt_allow_undefined_flag_F77
14186
14187 # Flag that forces no undefined symbols.
14188 no_undefined_flag=$lt_no_undefined_flag_F77
14189
14190 # Commands used to finish a libtool library installation in a directory.
14191 finish_cmds=$lt_finish_cmds
14192
14193 # Same as above, but a single script fragment to be evaled but not shown.
14194 finish_eval=$lt_finish_eval
14195
14196 # Take the output of nm and produce a listing of raw symbols and C names.
14197 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14198
14199 # Transform the output of nm in a proper C declaration
14200 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14201
14202 # Transform the output of nm in a C name address pair
14203 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14204
14205 # This is the shared library runtime path variable.
14206 runpath_var=$runpath_var
14207
14208 # This is the shared library path variable.
14209 shlibpath_var=$shlibpath_var
14210
14211 # Is shlibpath searched before the hard-coded library search path?
14212 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14213
14214 # How to hardcode a shared library path into an executable.
14215 hardcode_action=$hardcode_action_F77
14216
14217 # Whether we should hardcode library paths into libraries.
14218 hardcode_into_libs=$hardcode_into_libs
14219
14220 # Flag to hardcode \$libdir into a binary during linking.
14221 # This must work even if \$libdir does not exist.
14222 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14223
14224 # If ld is used when linking, flag to hardcode \$libdir into
14225 # a binary during linking. This must work even if \$libdir does
14226 # not exist.
14227 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14228
14229 # Whether we need a single -rpath flag with a separated argument.
14230 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14231
14232 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14233 # resulting binary.
14234 hardcode_direct=$hardcode_direct_F77
14235
14236 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14237 # resulting binary.
14238 hardcode_minus_L=$hardcode_minus_L_F77
14239
14240 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14241 # the resulting binary.
14242 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14243
14244 # Set to yes if building a shared library automatically hardcodes DIR into the library
14245 # and all subsequent libraries and executables linked against it.
14246 hardcode_automatic=$hardcode_automatic_F77
14247
14248 # Variables whose values should be saved in libtool wrapper scripts and
14249 # restored at relink time.
14250 variables_saved_for_relink="$variables_saved_for_relink"
14251
14252 # Whether libtool must link a program against all its dependency libraries.
14253 link_all_deplibs=$link_all_deplibs_F77
14254
14255 # Compile-time system search path for libraries
14256 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14257
14258 # Run-time system search path for libraries
14259 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14260
14261 # Fix the shell variable \$srcfile for the compiler.
14262 fix_srcfile_path="$fix_srcfile_path_F77"
14263
14264 # Set to yes if exported symbols are required.
14265 always_export_symbols=$always_export_symbols_F77
14266
14267 # The commands to list exported symbols.
14268 export_symbols_cmds=$lt_export_symbols_cmds_F77
14269
14270 # The commands to extract the exported symbol list from a shared archive.
14271 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14272
14273 # Symbols that should not be listed in the preloaded symbols.
14274 exclude_expsyms=$lt_exclude_expsyms_F77
14275
14276 # Symbols that must always be exported.
14277 include_expsyms=$lt_include_expsyms_F77
14278
14279 # ### END LIBTOOL TAG CONFIG: $tagname
14280
14281 __EOF__
14282
14283
14284 else
14285   # If there is no Makefile yet, we rely on a make rule to execute
14286   # `config.status --recheck' to rerun these tests and create the
14287   # libtool script then.
14288   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14289   if test -f "$ltmain_in"; then
14290     test -f Makefile && make "$ltmain"
14291   fi
14292 fi
14293
14294
14295 ac_ext=c
14296 ac_cpp='$CPP $CPPFLAGS'
14297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14300
14301 CC="$lt_save_CC"
14302
14303         else
14304           tagname=""
14305         fi
14306         ;;
14307
14308       GCJ)
14309         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14310
14311
14312
14313 # Source file extension for Java test sources.
14314 ac_ext=java
14315
14316 # Object file extension for compiled Java test sources.
14317 objext=o
14318 objext_GCJ=$objext
14319
14320 # Code to be used in simple compile tests
14321 lt_simple_compile_test_code="class foo {}\n"
14322
14323 # Code to be used in simple link tests
14324 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14325
14326 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14327
14328 # If no C compiler was specified, use CC.
14329 LTCC=${LTCC-"$CC"}
14330
14331 # Allow CC to be a program name with arguments.
14332 compiler=$CC
14333
14334
14335 # Allow CC to be a program name with arguments.
14336 lt_save_CC="$CC"
14337 CC=${GCJ-"gcj"}
14338 compiler=$CC
14339 compiler_GCJ=$CC
14340
14341 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14342 archive_cmds_need_lc_GCJ=no
14343
14344 ## CAVEAT EMPTOR:
14345 ## There is no encapsulation within the following macros, do not change
14346 ## the running order or otherwise move them around unless you know exactly
14347 ## what you are doing...
14348
14349 lt_prog_compiler_no_builtin_flag_GCJ=
14350
14351 if test "$GCC" = yes; then
14352   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14353
14354
14355 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14356 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14357 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14358   echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360   lt_cv_prog_compiler_rtti_exceptions=no
14361   ac_outfile=conftest.$ac_objext
14362    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14363    lt_compiler_flag="-fno-rtti -fno-exceptions"
14364    # Insert the option either (1) after the last *FLAGS variable, or
14365    # (2) before a word containing "conftest.", or (3) at the end.
14366    # Note that $ac_compile itself does not contain backslashes and begins
14367    # with a dollar sign (not a hyphen), so the echo should work correctly.
14368    # The option is referenced via a variable to avoid confusing sed.
14369    lt_compile=`echo "$ac_compile" | $SED \
14370    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14371    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14372    -e 's:$: $lt_compiler_flag:'`
14373    (eval echo "\"\$as_me:14373: $lt_compile\"" >&5)
14374    (eval "$lt_compile" 2>conftest.err)
14375    ac_status=$?
14376    cat conftest.err >&5
14377    echo "$as_me:14377: \$? = $ac_status" >&5
14378    if (exit $ac_status) && test -s "$ac_outfile"; then
14379      # The compiler can only warn and ignore the option if not recognized
14380      # So say no if there are warnings
14381      if test ! -s conftest.err; then
14382        lt_cv_prog_compiler_rtti_exceptions=yes
14383      fi
14384    fi
14385    $rm conftest*
14386
14387 fi
14388 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14389 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14390
14391 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14392     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14393 else
14394     :
14395 fi
14396
14397 fi
14398
14399 lt_prog_compiler_wl_GCJ=
14400 lt_prog_compiler_pic_GCJ=
14401 lt_prog_compiler_static_GCJ=
14402
14403 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14404 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14405
14406   if test "$GCC" = yes; then
14407     lt_prog_compiler_wl_GCJ='-Wl,'
14408     lt_prog_compiler_static_GCJ='-static'
14409
14410     case $host_os in
14411       aix*)
14412       # All AIX code is PIC.
14413       if test "$host_cpu" = ia64; then
14414         # AIX 5 now supports IA64 processor
14415         lt_prog_compiler_static_GCJ='-Bstatic'
14416       fi
14417       ;;
14418
14419     amigaos*)
14420       # FIXME: we need at least 68020 code to build shared libraries, but
14421       # adding the `-m68020' flag to GCC prevents building anything better,
14422       # like `-m68040'.
14423       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14424       ;;
14425
14426     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14427       # PIC is the default for these OSes.
14428       ;;
14429
14430     mingw* | pw32* | os2*)
14431       # This hack is so that the source file can tell whether it is being
14432       # built for inclusion in a dll (and should export symbols for example).
14433       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14434       ;;
14435
14436     darwin* | rhapsody*)
14437       # PIC is the default on this platform
14438       # Common symbols not allowed in MH_DYLIB files
14439       lt_prog_compiler_pic_GCJ='-fno-common'
14440       ;;
14441
14442     msdosdjgpp*)
14443       # Just because we use GCC doesn't mean we suddenly get shared libraries
14444       # on systems that don't support them.
14445       lt_prog_compiler_can_build_shared_GCJ=no
14446       enable_shared=no
14447       ;;
14448
14449     sysv4*MP*)
14450       if test -d /usr/nec; then
14451         lt_prog_compiler_pic_GCJ=-Kconform_pic
14452       fi
14453       ;;
14454
14455     hpux*)
14456       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14457       # not for PA HP-UX.
14458       case "$host_cpu" in
14459       hppa*64*|ia64*)
14460         # +Z the default
14461         ;;
14462       *)
14463         lt_prog_compiler_pic_GCJ='-fPIC'
14464         ;;
14465       esac
14466       ;;
14467
14468     *)
14469       lt_prog_compiler_pic_GCJ='-fPIC'
14470       ;;
14471     esac
14472   else
14473     # PORTME Check for flag to pass linker flags through the system compiler.
14474     case $host_os in
14475     aix*)
14476       lt_prog_compiler_wl_GCJ='-Wl,'
14477       if test "$host_cpu" = ia64; then
14478         # AIX 5 now supports IA64 processor
14479         lt_prog_compiler_static_GCJ='-Bstatic'
14480       else
14481         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14482       fi
14483       ;;
14484
14485     mingw* | pw32* | os2*)
14486       # This hack is so that the source file can tell whether it is being
14487       # built for inclusion in a dll (and should export symbols for example).
14488       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14489       ;;
14490
14491     hpux9* | hpux10* | hpux11*)
14492       lt_prog_compiler_wl_GCJ='-Wl,'
14493       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14494       # not for PA HP-UX.
14495       case "$host_cpu" in
14496       hppa*64*|ia64*)
14497         # +Z the default
14498         ;;
14499       *)
14500         lt_prog_compiler_pic_GCJ='+Z'
14501         ;;
14502       esac
14503       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14504       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14505       ;;
14506
14507     irix5* | irix6* | nonstopux*)
14508       lt_prog_compiler_wl_GCJ='-Wl,'
14509       # PIC (with -KPIC) is the default.
14510       lt_prog_compiler_static_GCJ='-non_shared'
14511       ;;
14512
14513     newsos6)
14514       lt_prog_compiler_pic_GCJ='-KPIC'
14515       lt_prog_compiler_static_GCJ='-Bstatic'
14516       ;;
14517
14518     linux*)
14519       case $CC in
14520       icc* | ecc*)
14521         lt_prog_compiler_wl_GCJ='-Wl,'
14522         lt_prog_compiler_pic_GCJ='-KPIC'
14523         lt_prog_compiler_static_GCJ='-static'
14524         ;;
14525       ccc*)
14526         lt_prog_compiler_wl_GCJ='-Wl,'
14527         # All Alpha code is PIC.
14528         lt_prog_compiler_static_GCJ='-non_shared'
14529         ;;
14530       esac
14531       ;;
14532
14533     osf3* | osf4* | osf5*)
14534       lt_prog_compiler_wl_GCJ='-Wl,'
14535       # All OSF/1 code is PIC.
14536       lt_prog_compiler_static_GCJ='-non_shared'
14537       ;;
14538
14539     sco3.2v5*)
14540       lt_prog_compiler_pic_GCJ='-Kpic'
14541       lt_prog_compiler_static_GCJ='-dn'
14542       ;;
14543
14544     solaris*)
14545       lt_prog_compiler_wl_GCJ='-Wl,'
14546       lt_prog_compiler_pic_GCJ='-KPIC'
14547       lt_prog_compiler_static_GCJ='-Bstatic'
14548       ;;
14549
14550     sunos4*)
14551       lt_prog_compiler_wl_GCJ='-Qoption ld '
14552       lt_prog_compiler_pic_GCJ='-PIC'
14553       lt_prog_compiler_static_GCJ='-Bstatic'
14554       ;;
14555
14556     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14557       lt_prog_compiler_wl_GCJ='-Wl,'
14558       lt_prog_compiler_pic_GCJ='-KPIC'
14559       lt_prog_compiler_static_GCJ='-Bstatic'
14560       ;;
14561
14562     sysv4*MP*)
14563       if test -d /usr/nec ;then
14564         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14565         lt_prog_compiler_static_GCJ='-Bstatic'
14566       fi
14567       ;;
14568
14569     uts4*)
14570       lt_prog_compiler_pic_GCJ='-pic'
14571       lt_prog_compiler_static_GCJ='-Bstatic'
14572       ;;
14573
14574     *)
14575       lt_prog_compiler_can_build_shared_GCJ=no
14576       ;;
14577     esac
14578   fi
14579
14580 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14581 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14582
14583 #
14584 # Check to make sure the PIC flag actually works.
14585 #
14586 if test -n "$lt_prog_compiler_pic_GCJ"; then
14587
14588 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14589 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14590 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14591   echo $ECHO_N "(cached) $ECHO_C" >&6
14592 else
14593   lt_prog_compiler_pic_works_GCJ=no
14594   ac_outfile=conftest.$ac_objext
14595    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14596    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14597    # Insert the option either (1) after the last *FLAGS variable, or
14598    # (2) before a word containing "conftest.", or (3) at the end.
14599    # Note that $ac_compile itself does not contain backslashes and begins
14600    # with a dollar sign (not a hyphen), so the echo should work correctly.
14601    # The option is referenced via a variable to avoid confusing sed.
14602    lt_compile=`echo "$ac_compile" | $SED \
14603    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14604    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14605    -e 's:$: $lt_compiler_flag:'`
14606    (eval echo "\"\$as_me:14606: $lt_compile\"" >&5)
14607    (eval "$lt_compile" 2>conftest.err)
14608    ac_status=$?
14609    cat conftest.err >&5
14610    echo "$as_me:14610: \$? = $ac_status" >&5
14611    if (exit $ac_status) && test -s "$ac_outfile"; then
14612      # The compiler can only warn and ignore the option if not recognized
14613      # So say no if there are warnings
14614      if test ! -s conftest.err; then
14615        lt_prog_compiler_pic_works_GCJ=yes
14616      fi
14617    fi
14618    $rm conftest*
14619
14620 fi
14621 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14622 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14623
14624 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14625     case $lt_prog_compiler_pic_GCJ in
14626      "" | " "*) ;;
14627      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14628      esac
14629 else
14630     lt_prog_compiler_pic_GCJ=
14631      lt_prog_compiler_can_build_shared_GCJ=no
14632 fi
14633
14634 fi
14635 case "$host_os" in
14636   # For platforms which do not support PIC, -DPIC is meaningless:
14637   *djgpp*)
14638     lt_prog_compiler_pic_GCJ=
14639     ;;
14640   *)
14641     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14642     ;;
14643 esac
14644
14645 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14646 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14647 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14648   echo $ECHO_N "(cached) $ECHO_C" >&6
14649 else
14650   lt_cv_prog_compiler_c_o_GCJ=no
14651    $rm -r conftest 2>/dev/null
14652    mkdir conftest
14653    cd conftest
14654    mkdir out
14655    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14656
14657    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14658    # that will create temporary files in the current directory regardless of
14659    # the output directory.  Thus, making CWD read-only will cause this test
14660    # to fail, enabling locking or at least warning the user not to do parallel
14661    # builds.
14662    chmod -w .
14663
14664    lt_compiler_flag="-o out/conftest2.$ac_objext"
14665    # Insert the option either (1) after the last *FLAGS variable, or
14666    # (2) before a word containing "conftest.", or (3) at the end.
14667    # Note that $ac_compile itself does not contain backslashes and begins
14668    # with a dollar sign (not a hyphen), so the echo should work correctly.
14669    lt_compile=`echo "$ac_compile" | $SED \
14670    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14671    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14672    -e 's:$: $lt_compiler_flag:'`
14673    (eval echo "\"\$as_me:14673: $lt_compile\"" >&5)
14674    (eval "$lt_compile" 2>out/conftest.err)
14675    ac_status=$?
14676    cat out/conftest.err >&5
14677    echo "$as_me:14677: \$? = $ac_status" >&5
14678    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14679    then
14680      # The compiler can only warn and ignore the option if not recognized
14681      # So say no if there are warnings
14682      if test ! -s out/conftest.err; then
14683        lt_cv_prog_compiler_c_o_GCJ=yes
14684      fi
14685    fi
14686    chmod u+w .
14687    $rm conftest*
14688    # SGI C++ compiler will create directory out/ii_files/ for
14689    # template instantiation
14690    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14691    $rm out/* && rmdir out
14692    cd ..
14693    rmdir conftest
14694    $rm conftest*
14695
14696 fi
14697 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14698 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14699
14700
14701 hard_links="nottested"
14702 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14703   # do not overwrite the value of need_locks provided by the user
14704   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14705 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14706   hard_links=yes
14707   $rm conftest*
14708   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14709   touch conftest.a
14710   ln conftest.a conftest.b 2>&5 || hard_links=no
14711   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14712   echo "$as_me:$LINENO: result: $hard_links" >&5
14713 echo "${ECHO_T}$hard_links" >&6
14714   if test "$hard_links" = no; then
14715     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14716 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14717     need_locks=warn
14718   fi
14719 else
14720   need_locks=no
14721 fi
14722
14723 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14724 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14725
14726   runpath_var=
14727   allow_undefined_flag_GCJ=
14728   enable_shared_with_static_runtimes_GCJ=no
14729   archive_cmds_GCJ=
14730   archive_expsym_cmds_GCJ=
14731   old_archive_From_new_cmds_GCJ=
14732   old_archive_from_expsyms_cmds_GCJ=
14733   export_dynamic_flag_spec_GCJ=
14734   whole_archive_flag_spec_GCJ=
14735   thread_safe_flag_spec_GCJ=
14736   hardcode_libdir_flag_spec_GCJ=
14737   hardcode_libdir_flag_spec_ld_GCJ=
14738   hardcode_libdir_separator_GCJ=
14739   hardcode_direct_GCJ=no
14740   hardcode_minus_L_GCJ=no
14741   hardcode_shlibpath_var_GCJ=unsupported
14742   link_all_deplibs_GCJ=unknown
14743   hardcode_automatic_GCJ=no
14744   module_cmds_GCJ=
14745   module_expsym_cmds_GCJ=
14746   always_export_symbols_GCJ=no
14747   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14748   # include_expsyms should be a list of space-separated symbols to be *always*
14749   # included in the symbol list
14750   include_expsyms_GCJ=
14751   # exclude_expsyms can be an extended regexp of symbols to exclude
14752   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14753   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14754   # as well as any symbol that contains `d'.
14755   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14756   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14757   # platforms (ab)use it in PIC code, but their linkers get confused if
14758   # the symbol is explicitly referenced.  Since portable code cannot
14759   # rely on this symbol name, it's probably fine to never include it in
14760   # preloaded symbol tables.
14761   extract_expsyms_cmds=
14762
14763   case $host_os in
14764   cygwin* | mingw* | pw32*)
14765     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14766     # When not using gcc, we currently assume that we are using
14767     # Microsoft Visual C++.
14768     if test "$GCC" != yes; then
14769       with_gnu_ld=no
14770     fi
14771     ;;
14772   openbsd*)
14773     with_gnu_ld=no
14774     ;;
14775   esac
14776
14777   ld_shlibs_GCJ=yes
14778   if test "$with_gnu_ld" = yes; then
14779     # If archive_cmds runs LD, not CC, wlarc should be empty
14780     wlarc='${wl}'
14781
14782     # See if GNU ld supports shared libraries.
14783     case $host_os in
14784     aix3* | aix4* | aix5*)
14785       # On AIX/PPC, the GNU linker is very broken
14786       if test "$host_cpu" != ia64; then
14787         ld_shlibs_GCJ=no
14788         cat <<EOF 1>&2
14789
14790 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14791 *** to be unable to reliably create shared libraries on AIX.
14792 *** Therefore, libtool is disabling shared libraries support.  If you
14793 *** really care for shared libraries, you may want to modify your PATH
14794 *** so that a non-GNU linker is found, and then restart.
14795
14796 EOF
14797       fi
14798       ;;
14799
14800     amigaos*)
14801       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)'
14802       hardcode_libdir_flag_spec_GCJ='-L$libdir'
14803       hardcode_minus_L_GCJ=yes
14804
14805       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14806       # that the semantics of dynamic libraries on AmigaOS, at least up
14807       # to version 4, is to share data among multiple programs linked
14808       # with the same dynamic library.  Since this doesn't match the
14809       # behavior of shared libraries on other platforms, we can't use
14810       # them.
14811       ld_shlibs_GCJ=no
14812       ;;
14813
14814     beos*)
14815       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14816         allow_undefined_flag_GCJ=unsupported
14817         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14818         # support --undefined.  This deserves some investigation.  FIXME
14819         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14820       else
14821         ld_shlibs_GCJ=no
14822       fi
14823       ;;
14824
14825     cygwin* | mingw* | pw32*)
14826       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
14827       # as there is no search path for DLLs.
14828       hardcode_libdir_flag_spec_GCJ='-L$libdir'
14829       allow_undefined_flag_GCJ=unsupported
14830       always_export_symbols_GCJ=no
14831       enable_shared_with_static_runtimes_GCJ=yes
14832       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14833
14834       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14835         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14836         # If the export-symbols file already is a .def file (1st line
14837         # is EXPORTS), use it as is; otherwise, prepend...
14838         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14839           cp $export_symbols $output_objdir/$soname.def;
14840         else
14841           echo EXPORTS > $output_objdir/$soname.def;
14842           cat $export_symbols >> $output_objdir/$soname.def;
14843         fi~
14844         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14845       else
14846         ld_shlibs=no
14847       fi
14848       ;;
14849
14850     netbsd*)
14851       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14852         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14853         wlarc=
14854       else
14855         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14856         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14857       fi
14858       ;;
14859
14860     solaris* | sysv5*)
14861       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14862         ld_shlibs_GCJ=no
14863         cat <<EOF 1>&2
14864
14865 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14866 *** create shared libraries on Solaris systems.  Therefore, libtool
14867 *** is disabling shared libraries support.  We urge you to upgrade GNU
14868 *** binutils to release 2.9.1 or newer.  Another option is to modify
14869 *** your PATH or compiler configuration so that the native linker is
14870 *** used, and then restart.
14871
14872 EOF
14873       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14874         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14875         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14876       else
14877         ld_shlibs_GCJ=no
14878       fi
14879       ;;
14880
14881     sunos4*)
14882       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14883       wlarc=
14884       hardcode_direct_GCJ=yes
14885       hardcode_shlibpath_var_GCJ=no
14886       ;;
14887
14888   linux*)
14889     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14890         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14891         archive_cmds_GCJ="$tmp_archive_cmds"
14892       supports_anon_versioning=no
14893       case `$LD -v 2>/dev/null` in
14894         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14895         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14896         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14897         *\ 2.11.*) ;; # other 2.11 versions
14898         *) supports_anon_versioning=yes ;;
14899       esac
14900       if test $supports_anon_versioning = yes; then
14901         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
14902 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14903 $echo "local: *; };" >> $output_objdir/$libname.ver~
14904         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14905       else
14906         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
14907       fi
14908     else
14909       ld_shlibs_GCJ=no
14910     fi
14911     ;;
14912
14913     *)
14914       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14915         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14916         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14917       else
14918         ld_shlibs_GCJ=no
14919       fi
14920       ;;
14921     esac
14922
14923     if test "$ld_shlibs_GCJ" = yes; then
14924       runpath_var=LD_RUN_PATH
14925       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
14926       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
14927       # ancient GNU ld didn't support --whole-archive et. al.
14928       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14929         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14930       else
14931         whole_archive_flag_spec_GCJ=
14932       fi
14933     fi
14934   else
14935     # PORTME fill in a description of your system's linker (not GNU ld)
14936     case $host_os in
14937     aix3*)
14938       allow_undefined_flag_GCJ=unsupported
14939       always_export_symbols_GCJ=yes
14940       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'
14941       # Note: this linker hardcodes the directories in LIBPATH if there
14942       # are no directories specified by -L.
14943       hardcode_minus_L_GCJ=yes
14944       if test "$GCC" = yes && test -z "$link_static_flag"; then
14945         # Neither direct hardcoding nor static linking is supported with a
14946         # broken collect2.
14947         hardcode_direct_GCJ=unsupported
14948       fi
14949       ;;
14950
14951     aix4* | aix5*)
14952       if test "$host_cpu" = ia64; then
14953         # On IA64, the linker does run time linking by default, so we don't
14954         # have to do anything special.
14955         aix_use_runtimelinking=no
14956         exp_sym_flag='-Bexport'
14957         no_entry_flag=""
14958       else
14959         # If we're using GNU nm, then we don't want the "-C" option.
14960         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14961         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14962           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'
14963         else
14964           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'
14965         fi
14966         aix_use_runtimelinking=no
14967
14968         # Test if we are trying to use run time linking or normal
14969         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14970         # need to do runtime linking.
14971         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14972           for ld_flag in $LDFLAGS; do
14973           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14974             aix_use_runtimelinking=yes
14975             break
14976           fi
14977           done
14978         esac
14979
14980         exp_sym_flag='-bexport'
14981         no_entry_flag='-bnoentry'
14982       fi
14983
14984       # When large executables or shared objects are built, AIX ld can
14985       # have problems creating the table of contents.  If linking a library
14986       # or program results in "error TOC overflow" add -mminimal-toc to
14987       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14988       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14989
14990       archive_cmds_GCJ=''
14991       hardcode_direct_GCJ=yes
14992       hardcode_libdir_separator_GCJ=':'
14993       link_all_deplibs_GCJ=yes
14994
14995       if test "$GCC" = yes; then
14996         case $host_os in aix4.012|aix4.012.*)
14997         # We only want to do this on AIX 4.2 and lower, the check
14998         # below for broken collect2 doesn't work under 4.3+
14999           collect2name=`${CC} -print-prog-name=collect2`
15000           if test -f "$collect2name" && \
15001            strings "$collect2name" | grep resolve_lib_name >/dev/null
15002           then
15003           # We have reworked collect2
15004           hardcode_direct_GCJ=yes
15005           else
15006           # We have old collect2
15007           hardcode_direct_GCJ=unsupported
15008           # It fails to find uninstalled libraries when the uninstalled
15009           # path is not listed in the libpath.  Setting hardcode_minus_L
15010           # to unsupported forces relinking
15011           hardcode_minus_L_GCJ=yes
15012           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15013           hardcode_libdir_separator_GCJ=
15014           fi
15015         esac
15016         shared_flag='-shared'
15017       else
15018         # not using gcc
15019         if test "$host_cpu" = ia64; then
15020         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15021         # chokes on -Wl,-G. The following line is correct:
15022           shared_flag='-G'
15023         else
15024         if test "$aix_use_runtimelinking" = yes; then
15025             shared_flag='${wl}-G'
15026           else
15027             shared_flag='${wl}-bM:SRE'
15028         fi
15029         fi
15030       fi
15031
15032       # It seems that -bexpall does not export symbols beginning with
15033       # underscore (_), so it is better to generate a list of symbols to export.
15034       always_export_symbols_GCJ=yes
15035       if test "$aix_use_runtimelinking" = yes; then
15036         # Warning - without using the other runtime loading flags (-brtl),
15037         # -berok will link without error, but may produce a broken library.
15038         allow_undefined_flag_GCJ='-berok'
15039        # Determine the default libpath from the value encoded in an empty executable.
15040        cat >conftest.$ac_ext <<_ACEOF
15041 #line $LINENO "configure"
15042 /* confdefs.h.  */
15043 _ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h.  */
15047
15048 int
15049 main ()
15050 {
15051
15052   ;
15053   return 0;
15054 }
15055 _ACEOF
15056 rm -f conftest.$ac_objext conftest$ac_exeext
15057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15058   (eval $ac_link) 2>&5
15059   ac_status=$?
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); } &&
15062          { ac_try='test -s conftest$ac_exeext'
15063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064   (eval $ac_try) 2>&5
15065   ac_status=$?
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); }; }; then
15068
15069 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15070 }'`
15071 # Check for a 64-bit object if we didn't find anything.
15072 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; }
15073 }'`; fi
15074 else
15075   echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15077
15078 fi
15079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15081
15082        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15083         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15084        else
15085         if test "$host_cpu" = ia64; then
15086           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15087           allow_undefined_flag_GCJ="-z nodefs"
15088           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15089         else
15090          # Determine the default libpath from the value encoded in an empty executable.
15091          cat >conftest.$ac_ext <<_ACEOF
15092 #line $LINENO "configure"
15093 /* confdefs.h.  */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h.  */
15098
15099 int
15100 main ()
15101 {
15102
15103   ;
15104   return 0;
15105 }
15106 _ACEOF
15107 rm -f conftest.$ac_objext conftest$ac_exeext
15108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15109   (eval $ac_link) 2>&5
15110   ac_status=$?
15111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112   (exit $ac_status); } &&
15113          { ac_try='test -s conftest$ac_exeext'
15114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115   (eval $ac_try) 2>&5
15116   ac_status=$?
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); }; }; then
15119
15120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15121 }'`
15122 # Check for a 64-bit object if we didn't find anything.
15123 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; }
15124 }'`; fi
15125 else
15126   echo "$as_me: failed program was:" >&5
15127 sed 's/^/| /' conftest.$ac_ext >&5
15128
15129 fi
15130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15131 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15132
15133          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15134           # Warning - without using the other run time loading flags,
15135           # -berok will link without error, but may produce a broken library.
15136           no_undefined_flag_GCJ=' ${wl}-bernotok'
15137           allow_undefined_flag_GCJ=' ${wl}-berok'
15138           # -bexpall does not export symbols beginning with underscore (_)
15139           always_export_symbols_GCJ=yes
15140           # Exported symbols can be pulled into shared objects from archives
15141           whole_archive_flag_spec_GCJ=' '
15142           archive_cmds_need_lc_GCJ=yes
15143           # This is similar to how AIX traditionally builds it's shared libraries.
15144           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15145         fi
15146       fi
15147       ;;
15148
15149     amigaos*)
15150       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)'
15151       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15152       hardcode_minus_L_GCJ=yes
15153       # see comment about different semantics on the GNU ld section
15154       ld_shlibs_GCJ=no
15155       ;;
15156
15157     bsdi4*)
15158       export_dynamic_flag_spec_GCJ=-rdynamic
15159       ;;
15160
15161     cygwin* | mingw* | pw32*)
15162       # When not using gcc, we currently assume that we are using
15163       # Microsoft Visual C++.
15164       # hardcode_libdir_flag_spec is actually meaningless, as there is
15165       # no search path for DLLs.
15166       hardcode_libdir_flag_spec_GCJ=' '
15167       allow_undefined_flag_GCJ=unsupported
15168       # Tell ltmain to make .lib files, not .a files.
15169       libext=lib
15170       # Tell ltmain to make .dll files, not .so files.
15171       shrext=".dll"
15172       # FIXME: Setting linknames here is a bad hack.
15173       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15174       # The linker will automatically build a .lib file if we build a DLL.
15175       old_archive_From_new_cmds_GCJ='true'
15176       # FIXME: Should let the user specify the lib program.
15177       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15178       fix_srcfile_path='`cygpath -w "$srcfile"`'
15179       enable_shared_with_static_runtimes_GCJ=yes
15180       ;;
15181
15182     darwin* | rhapsody*)
15183     if test "$GXX" = yes ; then
15184       archive_cmds_need_lc_GCJ=no
15185       case "$host_os" in
15186       rhapsody* | darwin1.[012])
15187         allow_undefined_flag_GCJ='-undefined suppress'
15188         ;;
15189       *) # Darwin 1.3 on
15190       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15191         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15192       else
15193         case ${MACOSX_DEPLOYMENT_TARGET} in
15194           10.[012])
15195             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15196             ;;
15197           10.*)
15198             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15199             ;;
15200         esac
15201       fi
15202         ;;
15203       esac
15204         lt_int_apple_cc_single_mod=no
15205         output_verbose_link_cmd='echo'
15206         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15207           lt_int_apple_cc_single_mod=yes
15208         fi
15209         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15210           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15211         else
15212         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
15213       fi
15214       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15215       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15216         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15217           archive_expsym_cmds_GCJ='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}'
15218         else
15219           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
15220         fi
15221           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}'
15222       hardcode_direct_GCJ=no
15223       hardcode_automatic_GCJ=yes
15224       hardcode_shlibpath_var_GCJ=unsupported
15225       whole_archive_flag_spec_GCJ='-all_load $convenience'
15226       link_all_deplibs_GCJ=yes
15227     else
15228       ld_shlibs_GCJ=no
15229     fi
15230       ;;
15231
15232     dgux*)
15233       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15234       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15235       hardcode_shlibpath_var_GCJ=no
15236       ;;
15237
15238     freebsd1*)
15239       ld_shlibs_GCJ=no
15240       ;;
15241
15242     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15243     # support.  Future versions do this automatically, but an explicit c++rt0.o
15244     # does not break anything, and helps significantly (at the cost of a little
15245     # extra space).
15246     freebsd2.2*)
15247       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15248       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15249       hardcode_direct_GCJ=yes
15250       hardcode_shlibpath_var_GCJ=no
15251       ;;
15252
15253     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15254     freebsd2*)
15255       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15256       hardcode_direct_GCJ=yes
15257       hardcode_minus_L_GCJ=yes
15258       hardcode_shlibpath_var_GCJ=no
15259       ;;
15260
15261     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15262     freebsd* | kfreebsd*-gnu)
15263       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15264       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15265       hardcode_direct_GCJ=yes
15266       hardcode_shlibpath_var_GCJ=no
15267       ;;
15268
15269     hpux9*)
15270       if test "$GCC" = yes; then
15271         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'
15272       else
15273         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'
15274       fi
15275       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15276       hardcode_libdir_separator_GCJ=:
15277       hardcode_direct_GCJ=yes
15278
15279       # hardcode_minus_L: Not really in the search PATH,
15280       # but as the default location of the library.
15281       hardcode_minus_L_GCJ=yes
15282       export_dynamic_flag_spec_GCJ='${wl}-E'
15283       ;;
15284
15285     hpux10* | hpux11*)
15286       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15287         case "$host_cpu" in
15288         hppa*64*|ia64*)
15289           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15290           ;;
15291         *)
15292           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15293           ;;
15294         esac
15295       else
15296         case "$host_cpu" in
15297         hppa*64*|ia64*)
15298           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15299           ;;
15300         *)
15301           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15302           ;;
15303         esac
15304       fi
15305       if test "$with_gnu_ld" = no; then
15306         case "$host_cpu" in
15307         hppa*64*)
15308           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15309           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15310           hardcode_libdir_separator_GCJ=:
15311           hardcode_direct_GCJ=no
15312           hardcode_shlibpath_var_GCJ=no
15313           ;;
15314         ia64*)
15315           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15316           hardcode_direct_GCJ=no
15317           hardcode_shlibpath_var_GCJ=no
15318
15319           # hardcode_minus_L: Not really in the search PATH,
15320           # but as the default location of the library.
15321           hardcode_minus_L_GCJ=yes
15322           ;;
15323         *)
15324           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15325           hardcode_libdir_separator_GCJ=:
15326           hardcode_direct_GCJ=yes
15327           export_dynamic_flag_spec_GCJ='${wl}-E'
15328
15329           # hardcode_minus_L: Not really in the search PATH,
15330           # but as the default location of the library.
15331           hardcode_minus_L_GCJ=yes
15332           ;;
15333         esac
15334       fi
15335       ;;
15336
15337     irix5* | irix6* | nonstopux*)
15338       if test "$GCC" = yes; then
15339         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'
15340       else
15341         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'
15342         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15343       fi
15344       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15345       hardcode_libdir_separator_GCJ=:
15346       link_all_deplibs_GCJ=yes
15347       ;;
15348
15349     netbsd*)
15350       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15351         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15352       else
15353         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15354       fi
15355       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15356       hardcode_direct_GCJ=yes
15357       hardcode_shlibpath_var_GCJ=no
15358       ;;
15359
15360     newsos6)
15361       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15362       hardcode_direct_GCJ=yes
15363       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15364       hardcode_libdir_separator_GCJ=:
15365       hardcode_shlibpath_var_GCJ=no
15366       ;;
15367
15368     openbsd*)
15369       hardcode_direct_GCJ=yes
15370       hardcode_shlibpath_var_GCJ=no
15371       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15372         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15373         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15374         export_dynamic_flag_spec_GCJ='${wl}-E'
15375       else
15376        case $host_os in
15377          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15378            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15379            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15380            ;;
15381          *)
15382            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15383            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15384            ;;
15385        esac
15386       fi
15387       ;;
15388
15389     os2*)
15390       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15391       hardcode_minus_L_GCJ=yes
15392       allow_undefined_flag_GCJ=unsupported
15393       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'
15394       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15395       ;;
15396
15397     osf3*)
15398       if test "$GCC" = yes; then
15399         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15400         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'
15401       else
15402         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15403         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'
15404       fi
15405       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15406       hardcode_libdir_separator_GCJ=:
15407       ;;
15408
15409     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15410       if test "$GCC" = yes; then
15411         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15412         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'
15413         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15414       else
15415         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15416         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'
15417         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~
15418         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15419
15420         # Both c and cxx compiler support -rpath directly
15421         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15422       fi
15423       hardcode_libdir_separator_GCJ=:
15424       ;;
15425
15426     sco3.2v5*)
15427       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15428       hardcode_shlibpath_var_GCJ=no
15429       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15430       runpath_var=LD_RUN_PATH
15431       hardcode_runpath_var=yes
15432       ;;
15433
15434     solaris*)
15435       no_undefined_flag_GCJ=' -z text'
15436       if test "$GCC" = yes; then
15437         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15438         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15439           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15440       else
15441         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15442         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15443         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15444       fi
15445       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15446       hardcode_shlibpath_var_GCJ=no
15447       case $host_os in
15448       solaris2.[0-5] | solaris2.[0-5].*) ;;
15449       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15450         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15451       esac
15452       link_all_deplibs_GCJ=yes
15453       ;;
15454
15455     sunos4*)
15456       if test "x$host_vendor" = xsequent; then
15457         # Use $CC to link under sequent, because it throws in some extra .o
15458         # files that make .init and .fini sections work.
15459         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15460       else
15461         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15462       fi
15463       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15464       hardcode_direct_GCJ=yes
15465       hardcode_minus_L_GCJ=yes
15466       hardcode_shlibpath_var_GCJ=no
15467       ;;
15468
15469     sysv4)
15470       case $host_vendor in
15471         sni)
15472           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15473           hardcode_direct_GCJ=yes # is this really true???
15474         ;;
15475         siemens)
15476           ## LD is ld it makes a PLAMLIB
15477           ## CC just makes a GrossModule.
15478           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15479           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15480           hardcode_direct_GCJ=no
15481         ;;
15482         motorola)
15483           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15484           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15485         ;;
15486       esac
15487       runpath_var='LD_RUN_PATH'
15488       hardcode_shlibpath_var_GCJ=no
15489       ;;
15490
15491     sysv4.3*)
15492       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15493       hardcode_shlibpath_var_GCJ=no
15494       export_dynamic_flag_spec_GCJ='-Bexport'
15495       ;;
15496
15497     sysv4*MP*)
15498       if test -d /usr/nec; then
15499         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15500         hardcode_shlibpath_var_GCJ=no
15501         runpath_var=LD_RUN_PATH
15502         hardcode_runpath_var=yes
15503         ld_shlibs_GCJ=yes
15504       fi
15505       ;;
15506
15507     sysv4.2uw2*)
15508       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15509       hardcode_direct_GCJ=yes
15510       hardcode_minus_L_GCJ=no
15511       hardcode_shlibpath_var_GCJ=no
15512       hardcode_runpath_var=yes
15513       runpath_var=LD_RUN_PATH
15514       ;;
15515
15516    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15517       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15518       if test "$GCC" = yes; then
15519         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15520       else
15521         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15522       fi
15523       runpath_var='LD_RUN_PATH'
15524       hardcode_shlibpath_var_GCJ=no
15525       ;;
15526
15527     sysv5*)
15528       no_undefined_flag_GCJ=' -z text'
15529       # $CC -shared without GNU ld will not create a library from C++
15530       # object files and a static libstdc++, better avoid it by now
15531       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15532       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15533                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15534       hardcode_libdir_flag_spec_GCJ=
15535       hardcode_shlibpath_var_GCJ=no
15536       runpath_var='LD_RUN_PATH'
15537       ;;
15538
15539     uts4*)
15540       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15541       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15542       hardcode_shlibpath_var_GCJ=no
15543       ;;
15544
15545     *)
15546       ld_shlibs_GCJ=no
15547       ;;
15548     esac
15549   fi
15550
15551 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15552 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15553 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15554
15555 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15556 if test "$GCC" = yes; then
15557   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15558 fi
15559
15560 #
15561 # Do we need to explicitly link libc?
15562 #
15563 case "x$archive_cmds_need_lc_GCJ" in
15564 x|xyes)
15565   # Assume -lc should be added
15566   archive_cmds_need_lc_GCJ=yes
15567
15568   if test "$enable_shared" = yes && test "$GCC" = yes; then
15569     case $archive_cmds_GCJ in
15570     *'~'*)
15571       # FIXME: we may have to deal with multi-command sequences.
15572       ;;
15573     '$CC '*)
15574       # Test whether the compiler implicitly links with -lc since on some
15575       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15576       # to ld, don't add -lc before -lgcc.
15577       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15578 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15579       $rm conftest*
15580       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15581
15582       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15583   (eval $ac_compile) 2>&5
15584   ac_status=$?
15585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586   (exit $ac_status); } 2>conftest.err; then
15587         soname=conftest
15588         lib=conftest
15589         libobjs=conftest.$ac_objext
15590         deplibs=
15591         wl=$lt_prog_compiler_wl_GCJ
15592         compiler_flags=-v
15593         linker_flags=-v
15594         verstring=
15595         output_objdir=.
15596         libname=conftest
15597         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15598         allow_undefined_flag_GCJ=
15599         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15600   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15601   ac_status=$?
15602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603   (exit $ac_status); }
15604         then
15605           archive_cmds_need_lc_GCJ=no
15606         else
15607           archive_cmds_need_lc_GCJ=yes
15608         fi
15609         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15610       else
15611         cat conftest.err 1>&5
15612       fi
15613       $rm conftest*
15614       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15615 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15616       ;;
15617     esac
15618   fi
15619   ;;
15620 esac
15621
15622 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15623 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15624 library_names_spec=
15625 libname_spec='lib$name'
15626 soname_spec=
15627 shrext=".so"
15628 postinstall_cmds=
15629 postuninstall_cmds=
15630 finish_cmds=
15631 finish_eval=
15632 shlibpath_var=
15633 shlibpath_overrides_runpath=unknown
15634 version_type=none
15635 dynamic_linker="$host_os ld.so"
15636 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15637 if test "$GCC" = yes; then
15638   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15639   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15640     # if the path contains ";" then we assume it to be the separator
15641     # otherwise default to the standard path separator (i.e. ":") - it is
15642     # assumed that no part of a normal pathname contains ";" but that should
15643     # okay in the real world where ";" in dirpaths is itself problematic.
15644     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15645   else
15646     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15647   fi
15648 else
15649   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15650 fi
15651 need_lib_prefix=unknown
15652 hardcode_into_libs=no
15653
15654 # when you set need_version to no, make sure it does not cause -set_version
15655 # flags to be left without arguments
15656 need_version=unknown
15657
15658 case $host_os in
15659 aix3*)
15660   version_type=linux
15661   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15662   shlibpath_var=LIBPATH
15663
15664   # AIX 3 has no versioning support, so we append a major version to the name.
15665   soname_spec='${libname}${release}${shared_ext}$major'
15666   ;;
15667
15668 aix4* | aix5*)
15669   version_type=linux
15670   need_lib_prefix=no
15671   need_version=no
15672   hardcode_into_libs=yes
15673   if test "$host_cpu" = ia64; then
15674     # AIX 5 supports IA64
15675     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15676     shlibpath_var=LD_LIBRARY_PATH
15677   else
15678     # With GCC up to 2.95.x, collect2 would create an import file
15679     # for dependence libraries.  The import file would start with
15680     # the line `#! .'.  This would cause the generated library to
15681     # depend on `.', always an invalid library.  This was fixed in
15682     # development snapshots of GCC prior to 3.0.
15683     case $host_os in
15684       aix4 | aix4.[01] | aix4.[01].*)
15685       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15686            echo ' yes '
15687            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15688         :
15689       else
15690         can_build_shared=no
15691       fi
15692       ;;
15693     esac
15694     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15695     # soname into executable. Probably we can add versioning support to
15696     # collect2, so additional links can be useful in future.
15697     if test "$aix_use_runtimelinking" = yes; then
15698       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15699       # instead of lib<name>.a to let people know that these are not
15700       # typical AIX shared libraries.
15701       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15702     else
15703       # We preserve .a as extension for shared libraries through AIX4.2
15704       # and later when we are not doing run time linking.
15705       library_names_spec='${libname}${release}.a $libname.a'
15706       soname_spec='${libname}${release}${shared_ext}$major'
15707     fi
15708     shlibpath_var=LIBPATH
15709   fi
15710   ;;
15711
15712 amigaos*)
15713   library_names_spec='$libname.ixlibrary $libname.a'
15714   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15715   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'
15716   ;;
15717
15718 beos*)
15719   library_names_spec='${libname}${shared_ext}'
15720   dynamic_linker="$host_os ld.so"
15721   shlibpath_var=LIBRARY_PATH
15722   ;;
15723
15724 bsdi4*)
15725   version_type=linux
15726   need_version=no
15727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728   soname_spec='${libname}${release}${shared_ext}$major'
15729   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15730   shlibpath_var=LD_LIBRARY_PATH
15731   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15732   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15733   # the default ld.so.conf also contains /usr/contrib/lib and
15734   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15735   # libtool to hard-code these into programs
15736   ;;
15737
15738 cygwin* | mingw* | pw32*)
15739   version_type=windows
15740   shrext=".dll"
15741   need_version=no
15742   need_lib_prefix=no
15743
15744   case $GCC,$host_os in
15745   yes,cygwin* | yes,mingw* | yes,pw32*)
15746     library_names_spec='$libname.dll.a'
15747     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15748     postinstall_cmds='base_file=`basename \${file}`~
15749       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15750       dldir=$destdir/`dirname \$dlpath`~
15751       test -d \$dldir || mkdir -p \$dldir~
15752       $install_prog $dir/$dlname \$dldir/$dlname'
15753     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15754       dlpath=$dir/\$dldll~
15755        $rm \$dlpath'
15756     shlibpath_overrides_runpath=yes
15757
15758     case $host_os in
15759     cygwin*)
15760       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15761       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15762       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15763       ;;
15764     mingw*)
15765       # MinGW DLLs use traditional 'lib' prefix
15766       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15767       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15768       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15769         # It is most probably a Windows format PATH printed by
15770         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15771         # path with ; separators, and with drive letters. We can handle the
15772         # drive letters (cygwin fileutils understands them), so leave them,
15773         # especially as we might pass files found there to a mingw objdump,
15774         # which wouldn't understand a cygwinified path. Ahh.
15775         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15776       else
15777         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15778       fi
15779       ;;
15780     pw32*)
15781       # pw32 DLLs use 'pw' prefix rather than 'lib'
15782       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15783       ;;
15784     esac
15785     ;;
15786
15787   *)
15788     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15789     ;;
15790   esac
15791   dynamic_linker='Win32 ld.exe'
15792   # FIXME: first we should search . and the directory the executable is in
15793   shlibpath_var=PATH
15794   ;;
15795
15796 darwin* | rhapsody*)
15797   dynamic_linker="$host_os dyld"
15798   version_type=darwin
15799   need_lib_prefix=no
15800   need_version=no
15801   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15802   soname_spec='${libname}${release}${major}$shared_ext'
15803   shlibpath_overrides_runpath=yes
15804   shlibpath_var=DYLD_LIBRARY_PATH
15805   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15806   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15807   if test "$GCC" = yes; then
15808     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"`
15809   else
15810     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15811   fi
15812   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15813   ;;
15814
15815 dgux*)
15816   version_type=linux
15817   need_lib_prefix=no
15818   need_version=no
15819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15820   soname_spec='${libname}${release}${shared_ext}$major'
15821   shlibpath_var=LD_LIBRARY_PATH
15822   ;;
15823
15824 freebsd1*)
15825   dynamic_linker=no
15826   ;;
15827
15828 kfreebsd*-gnu)
15829   version_type=linux
15830   need_lib_prefix=no
15831   need_version=no
15832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15833   soname_spec='${libname}${release}${shared_ext}$major'
15834   shlibpath_var=LD_LIBRARY_PATH
15835   shlibpath_overrides_runpath=no
15836   hardcode_into_libs=yes
15837   dynamic_linker='GNU ld.so'
15838   ;;
15839
15840 freebsd*)
15841   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15842   version_type=freebsd-$objformat
15843   case $version_type in
15844     freebsd-elf*)
15845       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15846       need_version=no
15847       need_lib_prefix=no
15848       ;;
15849     freebsd-*)
15850       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15851       need_version=yes
15852       ;;
15853   esac
15854   shlibpath_var=LD_LIBRARY_PATH
15855   case $host_os in
15856   freebsd2*)
15857     shlibpath_overrides_runpath=yes
15858     ;;
15859   freebsd3.01* | freebsdelf3.01*)
15860     shlibpath_overrides_runpath=yes
15861     hardcode_into_libs=yes
15862     ;;
15863   *) # from 3.2 on
15864     shlibpath_overrides_runpath=no
15865     hardcode_into_libs=yes
15866     ;;
15867   esac
15868   ;;
15869
15870 gnu*)
15871   version_type=linux
15872   need_lib_prefix=no
15873   need_version=no
15874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15875   soname_spec='${libname}${release}${shared_ext}$major'
15876   shlibpath_var=LD_LIBRARY_PATH
15877   hardcode_into_libs=yes
15878   ;;
15879
15880 hpux9* | hpux10* | hpux11*)
15881   # Give a soname corresponding to the major version so that dld.sl refuses to
15882   # link against other versions.
15883   version_type=sunos
15884   need_lib_prefix=no
15885   need_version=no
15886   case "$host_cpu" in
15887   ia64*)
15888     shrext='.so'
15889     hardcode_into_libs=yes
15890     dynamic_linker="$host_os dld.so"
15891     shlibpath_var=LD_LIBRARY_PATH
15892     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15893     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15894     soname_spec='${libname}${release}${shared_ext}$major'
15895     if test "X$HPUX_IA64_MODE" = X32; then
15896       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15897     else
15898       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15899     fi
15900     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15901     ;;
15902    hppa*64*)
15903      shrext='.sl'
15904      hardcode_into_libs=yes
15905      dynamic_linker="$host_os dld.sl"
15906      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15907      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15908      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15909      soname_spec='${libname}${release}${shared_ext}$major'
15910      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15911      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15912      ;;
15913    *)
15914     shrext='.sl'
15915     dynamic_linker="$host_os dld.sl"
15916     shlibpath_var=SHLIB_PATH
15917     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15918     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15919     soname_spec='${libname}${release}${shared_ext}$major'
15920     ;;
15921   esac
15922   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15923   postinstall_cmds='chmod 555 $lib'
15924   ;;
15925
15926 irix5* | irix6* | nonstopux*)
15927   case $host_os in
15928     nonstopux*) version_type=nonstopux ;;
15929     *)
15930         if test "$lt_cv_prog_gnu_ld" = yes; then
15931                 version_type=linux
15932         else
15933                 version_type=irix
15934         fi ;;
15935   esac
15936   need_lib_prefix=no
15937   need_version=no
15938   soname_spec='${libname}${release}${shared_ext}$major'
15939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15940   case $host_os in
15941   irix5* | nonstopux*)
15942     libsuff= shlibsuff=
15943     ;;
15944   *)
15945     case $LD in # libtool.m4 will add one of these switches to LD
15946     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15947       libsuff= shlibsuff= libmagic=32-bit;;
15948     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15949       libsuff=32 shlibsuff=N32 libmagic=N32;;
15950     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15951       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15952     *) libsuff= shlibsuff= libmagic=never-match;;
15953     esac
15954     ;;
15955   esac
15956   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15957   shlibpath_overrides_runpath=no
15958   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15959   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15960   hardcode_into_libs=yes
15961   ;;
15962
15963 # No shared lib support for Linux oldld, aout, or coff.
15964 linux*oldld* | linux*aout* | linux*coff*)
15965   dynamic_linker=no
15966   ;;
15967
15968 # This must be Linux ELF.
15969 linux*)
15970   version_type=linux
15971   need_lib_prefix=no
15972   need_version=no
15973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15974   soname_spec='${libname}${release}${shared_ext}$major'
15975   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15976   shlibpath_var=LD_LIBRARY_PATH
15977   shlibpath_overrides_runpath=no
15978   # This implies no fast_install, which is unacceptable.
15979   # Some rework will be needed to allow for fast_install
15980   # before this can be enabled.
15981   hardcode_into_libs=yes
15982
15983   # We used to test for /lib/ld.so.1 and disable shared libraries on
15984   # powerpc, because MkLinux only supported shared libraries with the
15985   # GNU dynamic linker.  Since this was broken with cross compilers,
15986   # most powerpc-linux boxes support dynamic linking these days and
15987   # people can always --disable-shared, the test was removed, and we
15988   # assume the GNU/Linux dynamic linker is in use.
15989   dynamic_linker='GNU/Linux ld.so'
15990   ;;
15991
15992 netbsd*)
15993   version_type=sunos
15994   need_lib_prefix=no
15995   need_version=no
15996   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15997     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15998     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15999     dynamic_linker='NetBSD (a.out) ld.so'
16000   else
16001     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16002     soname_spec='${libname}${release}${shared_ext}$major'
16003     dynamic_linker='NetBSD ld.elf_so'
16004   fi
16005   shlibpath_var=LD_LIBRARY_PATH
16006   shlibpath_overrides_runpath=yes
16007   hardcode_into_libs=yes
16008   ;;
16009
16010 newsos6)
16011   version_type=linux
16012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16013   shlibpath_var=LD_LIBRARY_PATH
16014   shlibpath_overrides_runpath=yes
16015   ;;
16016
16017 nto-qnx*)
16018   version_type=linux
16019   need_lib_prefix=no
16020   need_version=no
16021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16022   soname_spec='${libname}${release}${shared_ext}$major'
16023   shlibpath_var=LD_LIBRARY_PATH
16024   shlibpath_overrides_runpath=yes
16025   ;;
16026
16027 openbsd*)
16028   version_type=sunos
16029   need_lib_prefix=no
16030   need_version=no
16031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16032   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16033   shlibpath_var=LD_LIBRARY_PATH
16034   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16035     case $host_os in
16036       openbsd2.[89] | openbsd2.[89].*)
16037         shlibpath_overrides_runpath=no
16038         ;;
16039       *)
16040         shlibpath_overrides_runpath=yes
16041         ;;
16042       esac
16043   else
16044     shlibpath_overrides_runpath=yes
16045   fi
16046   ;;
16047
16048 os2*)
16049   libname_spec='$name'
16050   shrext=".dll"
16051   need_lib_prefix=no
16052   library_names_spec='$libname${shared_ext} $libname.a'
16053   dynamic_linker='OS/2 ld.exe'
16054   shlibpath_var=LIBPATH
16055   ;;
16056
16057 osf3* | osf4* | osf5*)
16058   version_type=osf
16059   need_lib_prefix=no
16060   need_version=no
16061   soname_spec='${libname}${release}${shared_ext}$major'
16062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16063   shlibpath_var=LD_LIBRARY_PATH
16064   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16065   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16066   ;;
16067
16068 sco3.2v5*)
16069   version_type=osf
16070   soname_spec='${libname}${release}${shared_ext}$major'
16071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16072   shlibpath_var=LD_LIBRARY_PATH
16073   ;;
16074
16075 solaris*)
16076   version_type=linux
16077   need_lib_prefix=no
16078   need_version=no
16079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16080   soname_spec='${libname}${release}${shared_ext}$major'
16081   shlibpath_var=LD_LIBRARY_PATH
16082   shlibpath_overrides_runpath=yes
16083   hardcode_into_libs=yes
16084   # ldd complains unless libraries are executable
16085   postinstall_cmds='chmod +x $lib'
16086   ;;
16087
16088 sunos4*)
16089   version_type=sunos
16090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16091   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16092   shlibpath_var=LD_LIBRARY_PATH
16093   shlibpath_overrides_runpath=yes
16094   if test "$with_gnu_ld" = yes; then
16095     need_lib_prefix=no
16096   fi
16097   need_version=yes
16098   ;;
16099
16100 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16101   version_type=linux
16102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16103   soname_spec='${libname}${release}${shared_ext}$major'
16104   shlibpath_var=LD_LIBRARY_PATH
16105   case $host_vendor in
16106     sni)
16107       shlibpath_overrides_runpath=no
16108       need_lib_prefix=no
16109       export_dynamic_flag_spec='${wl}-Blargedynsym'
16110       runpath_var=LD_RUN_PATH
16111       ;;
16112     siemens)
16113       need_lib_prefix=no
16114       ;;
16115     motorola)
16116       need_lib_prefix=no
16117       need_version=no
16118       shlibpath_overrides_runpath=no
16119       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16120       ;;
16121   esac
16122   ;;
16123
16124 sysv4*MP*)
16125   if test -d /usr/nec ;then
16126     version_type=linux
16127     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16128     soname_spec='$libname${shared_ext}.$major'
16129     shlibpath_var=LD_LIBRARY_PATH
16130   fi
16131   ;;
16132
16133 uts4*)
16134   version_type=linux
16135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16136   soname_spec='${libname}${release}${shared_ext}$major'
16137   shlibpath_var=LD_LIBRARY_PATH
16138   ;;
16139
16140 *)
16141   dynamic_linker=no
16142   ;;
16143 esac
16144 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16145 echo "${ECHO_T}$dynamic_linker" >&6
16146 test "$dynamic_linker" = no && can_build_shared=no
16147
16148 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16149 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16150 hardcode_action_GCJ=
16151 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16152    test -n "$runpath_var GCJ" || \
16153    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16154
16155   # We can hardcode non-existant directories.
16156   if test "$hardcode_direct_GCJ" != no &&
16157      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16158      # have to relink, otherwise we might link with an installed library
16159      # when we should be linking with a yet-to-be-installed one
16160      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16161      test "$hardcode_minus_L_GCJ" != no; then
16162     # Linking always hardcodes the temporary library directory.
16163     hardcode_action_GCJ=relink
16164   else
16165     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16166     hardcode_action_GCJ=immediate
16167   fi
16168 else
16169   # We cannot hardcode anything, or else we can only hardcode existing
16170   # directories.
16171   hardcode_action_GCJ=unsupported
16172 fi
16173 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16174 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16175
16176 if test "$hardcode_action_GCJ" = relink; then
16177   # Fast installation is not supported
16178   enable_fast_install=no
16179 elif test "$shlibpath_overrides_runpath" = yes ||
16180      test "$enable_shared" = no; then
16181   # Fast installation is not necessary
16182   enable_fast_install=needless
16183 fi
16184
16185 striplib=
16186 old_striplib=
16187 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16188 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16189 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16190   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16191   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16192   echo "$as_me:$LINENO: result: yes" >&5
16193 echo "${ECHO_T}yes" >&6
16194 else
16195 # FIXME - insert some real tests, host_os isn't really good enough
16196   case $host_os in
16197    darwin*)
16198        if test -n "$STRIP" ; then
16199          striplib="$STRIP -x"
16200          echo "$as_me:$LINENO: result: yes" >&5
16201 echo "${ECHO_T}yes" >&6
16202        else
16203   echo "$as_me:$LINENO: result: no" >&5
16204 echo "${ECHO_T}no" >&6
16205 fi
16206        ;;
16207    *)
16208   echo "$as_me:$LINENO: result: no" >&5
16209 echo "${ECHO_T}no" >&6
16210     ;;
16211   esac
16212 fi
16213
16214 if test "x$enable_dlopen" != xyes; then
16215   enable_dlopen=unknown
16216   enable_dlopen_self=unknown
16217   enable_dlopen_self_static=unknown
16218 else
16219   lt_cv_dlopen=no
16220   lt_cv_dlopen_libs=
16221
16222   case $host_os in
16223   beos*)
16224     lt_cv_dlopen="load_add_on"
16225     lt_cv_dlopen_libs=
16226     lt_cv_dlopen_self=yes
16227     ;;
16228
16229   mingw* | pw32*)
16230     lt_cv_dlopen="LoadLibrary"
16231     lt_cv_dlopen_libs=
16232    ;;
16233
16234   cygwin*)
16235     lt_cv_dlopen="dlopen"
16236     lt_cv_dlopen_libs=
16237    ;;
16238
16239   darwin*)
16240   # if libdl is installed we need to link against it
16241     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16242 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16243 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16244   echo $ECHO_N "(cached) $ECHO_C" >&6
16245 else
16246   ac_check_lib_save_LIBS=$LIBS
16247 LIBS="-ldl  $LIBS"
16248 cat >conftest.$ac_ext <<_ACEOF
16249 #line $LINENO "configure"
16250 /* confdefs.h.  */
16251 _ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h.  */
16255
16256 /* Override any gcc2 internal prototype to avoid an error.  */
16257 #ifdef __cplusplus
16258 extern "C"
16259 #endif
16260 /* We use char because int might match the return type of a gcc2
16261    builtin and then its argument prototype would still apply.  */
16262 char dlopen ();
16263 int
16264 main ()
16265 {
16266 dlopen ();
16267   ;
16268   return 0;
16269 }
16270 _ACEOF
16271 rm -f conftest.$ac_objext conftest$ac_exeext
16272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16273   (eval $ac_link) 2>&5
16274   ac_status=$?
16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276   (exit $ac_status); } &&
16277          { ac_try='test -s conftest$ac_exeext'
16278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279   (eval $ac_try) 2>&5
16280   ac_status=$?
16281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282   (exit $ac_status); }; }; then
16283   ac_cv_lib_dl_dlopen=yes
16284 else
16285   echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16287
16288 ac_cv_lib_dl_dlopen=no
16289 fi
16290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16291 LIBS=$ac_check_lib_save_LIBS
16292 fi
16293 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16294 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16295 if test $ac_cv_lib_dl_dlopen = yes; then
16296   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16297 else
16298
16299     lt_cv_dlopen="dyld"
16300     lt_cv_dlopen_libs=
16301     lt_cv_dlopen_self=yes
16302
16303 fi
16304
16305    ;;
16306
16307   *)
16308     echo "$as_me:$LINENO: checking for shl_load" >&5
16309 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16310 if test "${ac_cv_func_shl_load+set}" = set; then
16311   echo $ECHO_N "(cached) $ECHO_C" >&6
16312 else
16313   cat >conftest.$ac_ext <<_ACEOF
16314 #line $LINENO "configure"
16315 /* confdefs.h.  */
16316 _ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h.  */
16320 /* System header to define __stub macros and hopefully few prototypes,
16321     which can conflict with char shl_load (); below.
16322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16323     <limits.h> exists even on freestanding compilers.  */
16324 #ifdef __STDC__
16325 # include <limits.h>
16326 #else
16327 # include <assert.h>
16328 #endif
16329 /* Override any gcc2 internal prototype to avoid an error.  */
16330 #ifdef __cplusplus
16331 extern "C"
16332 {
16333 #endif
16334 /* We use char because int might match the return type of a gcc2
16335    builtin and then its argument prototype would still apply.  */
16336 char shl_load ();
16337 /* The GNU C library defines this for functions which it implements
16338     to always fail with ENOSYS.  Some functions are actually named
16339     something starting with __ and the normal name is an alias.  */
16340 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16341 choke me
16342 #else
16343 char (*f) () = shl_load;
16344 #endif
16345 #ifdef __cplusplus
16346 }
16347 #endif
16348
16349 int
16350 main ()
16351 {
16352 return f != shl_load;
16353   ;
16354   return 0;
16355 }
16356 _ACEOF
16357 rm -f conftest.$ac_objext conftest$ac_exeext
16358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16359   (eval $ac_link) 2>&5
16360   ac_status=$?
16361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362   (exit $ac_status); } &&
16363          { ac_try='test -s conftest$ac_exeext'
16364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365   (eval $ac_try) 2>&5
16366   ac_status=$?
16367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); }; }; then
16369   ac_cv_func_shl_load=yes
16370 else
16371   echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16373
16374 ac_cv_func_shl_load=no
16375 fi
16376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16377 fi
16378 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16379 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16380 if test $ac_cv_func_shl_load = yes; then
16381   lt_cv_dlopen="shl_load"
16382 else
16383   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16384 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16385 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16386   echo $ECHO_N "(cached) $ECHO_C" >&6
16387 else
16388   ac_check_lib_save_LIBS=$LIBS
16389 LIBS="-ldld  $LIBS"
16390 cat >conftest.$ac_ext <<_ACEOF
16391 #line $LINENO "configure"
16392 /* confdefs.h.  */
16393 _ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h.  */
16397
16398 /* Override any gcc2 internal prototype to avoid an error.  */
16399 #ifdef __cplusplus
16400 extern "C"
16401 #endif
16402 /* We use char because int might match the return type of a gcc2
16403    builtin and then its argument prototype would still apply.  */
16404 char shl_load ();
16405 int
16406 main ()
16407 {
16408 shl_load ();
16409   ;
16410   return 0;
16411 }
16412 _ACEOF
16413 rm -f conftest.$ac_objext conftest$ac_exeext
16414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16415   (eval $ac_link) 2>&5
16416   ac_status=$?
16417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418   (exit $ac_status); } &&
16419          { ac_try='test -s conftest$ac_exeext'
16420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421   (eval $ac_try) 2>&5
16422   ac_status=$?
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); }; }; then
16425   ac_cv_lib_dld_shl_load=yes
16426 else
16427   echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16429
16430 ac_cv_lib_dld_shl_load=no
16431 fi
16432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16433 LIBS=$ac_check_lib_save_LIBS
16434 fi
16435 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16436 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16437 if test $ac_cv_lib_dld_shl_load = yes; then
16438   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16439 else
16440   echo "$as_me:$LINENO: checking for dlopen" >&5
16441 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16442 if test "${ac_cv_func_dlopen+set}" = set; then
16443   echo $ECHO_N "(cached) $ECHO_C" >&6
16444 else
16445   cat >conftest.$ac_ext <<_ACEOF
16446 #line $LINENO "configure"
16447 /* confdefs.h.  */
16448 _ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h.  */
16452 /* System header to define __stub macros and hopefully few prototypes,
16453     which can conflict with char dlopen (); below.
16454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16455     <limits.h> exists even on freestanding compilers.  */
16456 #ifdef __STDC__
16457 # include <limits.h>
16458 #else
16459 # include <assert.h>
16460 #endif
16461 /* Override any gcc2 internal prototype to avoid an error.  */
16462 #ifdef __cplusplus
16463 extern "C"
16464 {
16465 #endif
16466 /* We use char because int might match the return type of a gcc2
16467    builtin and then its argument prototype would still apply.  */
16468 char dlopen ();
16469 /* The GNU C library defines this for functions which it implements
16470     to always fail with ENOSYS.  Some functions are actually named
16471     something starting with __ and the normal name is an alias.  */
16472 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16473 choke me
16474 #else
16475 char (*f) () = dlopen;
16476 #endif
16477 #ifdef __cplusplus
16478 }
16479 #endif
16480
16481 int
16482 main ()
16483 {
16484 return f != dlopen;
16485   ;
16486   return 0;
16487 }
16488 _ACEOF
16489 rm -f conftest.$ac_objext conftest$ac_exeext
16490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16491   (eval $ac_link) 2>&5
16492   ac_status=$?
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); } &&
16495          { ac_try='test -s conftest$ac_exeext'
16496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497   (eval $ac_try) 2>&5
16498   ac_status=$?
16499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500   (exit $ac_status); }; }; then
16501   ac_cv_func_dlopen=yes
16502 else
16503   echo "$as_me: failed program was:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16505
16506 ac_cv_func_dlopen=no
16507 fi
16508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16509 fi
16510 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16511 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16512 if test $ac_cv_func_dlopen = yes; then
16513   lt_cv_dlopen="dlopen"
16514 else
16515   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16516 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16517 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16518   echo $ECHO_N "(cached) $ECHO_C" >&6
16519 else
16520   ac_check_lib_save_LIBS=$LIBS
16521 LIBS="-ldl  $LIBS"
16522 cat >conftest.$ac_ext <<_ACEOF
16523 #line $LINENO "configure"
16524 /* confdefs.h.  */
16525 _ACEOF
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h.  */
16529
16530 /* Override any gcc2 internal prototype to avoid an error.  */
16531 #ifdef __cplusplus
16532 extern "C"
16533 #endif
16534 /* We use char because int might match the return type of a gcc2
16535    builtin and then its argument prototype would still apply.  */
16536 char dlopen ();
16537 int
16538 main ()
16539 {
16540 dlopen ();
16541   ;
16542   return 0;
16543 }
16544 _ACEOF
16545 rm -f conftest.$ac_objext conftest$ac_exeext
16546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16547   (eval $ac_link) 2>&5
16548   ac_status=$?
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); } &&
16551          { ac_try='test -s conftest$ac_exeext'
16552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16553   (eval $ac_try) 2>&5
16554   ac_status=$?
16555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556   (exit $ac_status); }; }; then
16557   ac_cv_lib_dl_dlopen=yes
16558 else
16559   echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16561
16562 ac_cv_lib_dl_dlopen=no
16563 fi
16564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16565 LIBS=$ac_check_lib_save_LIBS
16566 fi
16567 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16568 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16569 if test $ac_cv_lib_dl_dlopen = yes; then
16570   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16571 else
16572   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16573 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16574 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16575   echo $ECHO_N "(cached) $ECHO_C" >&6
16576 else
16577   ac_check_lib_save_LIBS=$LIBS
16578 LIBS="-lsvld  $LIBS"
16579 cat >conftest.$ac_ext <<_ACEOF
16580 #line $LINENO "configure"
16581 /* confdefs.h.  */
16582 _ACEOF
16583 cat confdefs.h >>conftest.$ac_ext
16584 cat >>conftest.$ac_ext <<_ACEOF
16585 /* end confdefs.h.  */
16586
16587 /* Override any gcc2 internal prototype to avoid an error.  */
16588 #ifdef __cplusplus
16589 extern "C"
16590 #endif
16591 /* We use char because int might match the return type of a gcc2
16592    builtin and then its argument prototype would still apply.  */
16593 char dlopen ();
16594 int
16595 main ()
16596 {
16597 dlopen ();
16598   ;
16599   return 0;
16600 }
16601 _ACEOF
16602 rm -f conftest.$ac_objext conftest$ac_exeext
16603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16604   (eval $ac_link) 2>&5
16605   ac_status=$?
16606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); } &&
16608          { ac_try='test -s conftest$ac_exeext'
16609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610   (eval $ac_try) 2>&5
16611   ac_status=$?
16612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613   (exit $ac_status); }; }; then
16614   ac_cv_lib_svld_dlopen=yes
16615 else
16616   echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16618
16619 ac_cv_lib_svld_dlopen=no
16620 fi
16621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16622 LIBS=$ac_check_lib_save_LIBS
16623 fi
16624 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16625 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16626 if test $ac_cv_lib_svld_dlopen = yes; then
16627   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16628 else
16629   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16630 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16631 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16632   echo $ECHO_N "(cached) $ECHO_C" >&6
16633 else
16634   ac_check_lib_save_LIBS=$LIBS
16635 LIBS="-ldld  $LIBS"
16636 cat >conftest.$ac_ext <<_ACEOF
16637 #line $LINENO "configure"
16638 /* confdefs.h.  */
16639 _ACEOF
16640 cat confdefs.h >>conftest.$ac_ext
16641 cat >>conftest.$ac_ext <<_ACEOF
16642 /* end confdefs.h.  */
16643
16644 /* Override any gcc2 internal prototype to avoid an error.  */
16645 #ifdef __cplusplus
16646 extern "C"
16647 #endif
16648 /* We use char because int might match the return type of a gcc2
16649    builtin and then its argument prototype would still apply.  */
16650 char dld_link ();
16651 int
16652 main ()
16653 {
16654 dld_link ();
16655   ;
16656   return 0;
16657 }
16658 _ACEOF
16659 rm -f conftest.$ac_objext conftest$ac_exeext
16660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16661   (eval $ac_link) 2>&5
16662   ac_status=$?
16663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); } &&
16665          { ac_try='test -s conftest$ac_exeext'
16666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667   (eval $ac_try) 2>&5
16668   ac_status=$?
16669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670   (exit $ac_status); }; }; then
16671   ac_cv_lib_dld_dld_link=yes
16672 else
16673   echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16675
16676 ac_cv_lib_dld_dld_link=no
16677 fi
16678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16679 LIBS=$ac_check_lib_save_LIBS
16680 fi
16681 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16682 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16683 if test $ac_cv_lib_dld_dld_link = yes; then
16684   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16685 fi
16686
16687
16688 fi
16689
16690
16691 fi
16692
16693
16694 fi
16695
16696
16697 fi
16698
16699
16700 fi
16701
16702     ;;
16703   esac
16704
16705   if test "x$lt_cv_dlopen" != xno; then
16706     enable_dlopen=yes
16707   else
16708     enable_dlopen=no
16709   fi
16710
16711   case $lt_cv_dlopen in
16712   dlopen)
16713     save_CPPFLAGS="$CPPFLAGS"
16714     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16715
16716     save_LDFLAGS="$LDFLAGS"
16717     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16718
16719     save_LIBS="$LIBS"
16720     LIBS="$lt_cv_dlopen_libs $LIBS"
16721
16722     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16723 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16724 if test "${lt_cv_dlopen_self+set}" = set; then
16725   echo $ECHO_N "(cached) $ECHO_C" >&6
16726 else
16727           if test "$cross_compiling" = yes; then :
16728   lt_cv_dlopen_self=cross
16729 else
16730   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16731   lt_status=$lt_dlunknown
16732   cat > conftest.$ac_ext <<EOF
16733 #line 16733 "configure"
16734 #include "confdefs.h"
16735
16736 #if HAVE_DLFCN_H
16737 #include <dlfcn.h>
16738 #endif
16739
16740 #include <stdio.h>
16741
16742 #ifdef RTLD_GLOBAL
16743 #  define LT_DLGLOBAL           RTLD_GLOBAL
16744 #else
16745 #  ifdef DL_GLOBAL
16746 #    define LT_DLGLOBAL         DL_GLOBAL
16747 #  else
16748 #    define LT_DLGLOBAL         0
16749 #  endif
16750 #endif
16751
16752 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16753    find out it does not work in some platform. */
16754 #ifndef LT_DLLAZY_OR_NOW
16755 #  ifdef RTLD_LAZY
16756 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16757 #  else
16758 #    ifdef DL_LAZY
16759 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16760 #    else
16761 #      ifdef RTLD_NOW
16762 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16763 #      else
16764 #        ifdef DL_NOW
16765 #          define LT_DLLAZY_OR_NOW      DL_NOW
16766 #        else
16767 #          define LT_DLLAZY_OR_NOW      0
16768 #        endif
16769 #      endif
16770 #    endif
16771 #  endif
16772 #endif
16773
16774 #ifdef __cplusplus
16775 extern "C" void exit (int);
16776 #endif
16777
16778 void fnord() { int i=42;}
16779 int main ()
16780 {
16781   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16782   int status = $lt_dlunknown;
16783
16784   if (self)
16785     {
16786       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16787       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16788       /* dlclose (self); */
16789     }
16790
16791     exit (status);
16792 }
16793 EOF
16794   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16795   (eval $ac_link) 2>&5
16796   ac_status=$?
16797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16799     (./conftest; exit; ) 2>/dev/null
16800     lt_status=$?
16801     case x$lt_status in
16802       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16803       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16804       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16805     esac
16806   else :
16807     # compilation failed
16808     lt_cv_dlopen_self=no
16809   fi
16810 fi
16811 rm -fr conftest*
16812
16813
16814 fi
16815 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16816 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16817
16818     if test "x$lt_cv_dlopen_self" = xyes; then
16819       LDFLAGS="$LDFLAGS $link_static_flag"
16820       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16821 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16822 if test "${lt_cv_dlopen_self_static+set}" = set; then
16823   echo $ECHO_N "(cached) $ECHO_C" >&6
16824 else
16825           if test "$cross_compiling" = yes; then :
16826   lt_cv_dlopen_self_static=cross
16827 else
16828   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16829   lt_status=$lt_dlunknown
16830   cat > conftest.$ac_ext <<EOF
16831 #line 16831 "configure"
16832 #include "confdefs.h"
16833
16834 #if HAVE_DLFCN_H
16835 #include <dlfcn.h>
16836 #endif
16837
16838 #include <stdio.h>
16839
16840 #ifdef RTLD_GLOBAL
16841 #  define LT_DLGLOBAL           RTLD_GLOBAL
16842 #else
16843 #  ifdef DL_GLOBAL
16844 #    define LT_DLGLOBAL         DL_GLOBAL
16845 #  else
16846 #    define LT_DLGLOBAL         0
16847 #  endif
16848 #endif
16849
16850 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16851    find out it does not work in some platform. */
16852 #ifndef LT_DLLAZY_OR_NOW
16853 #  ifdef RTLD_LAZY
16854 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16855 #  else
16856 #    ifdef DL_LAZY
16857 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16858 #    else
16859 #      ifdef RTLD_NOW
16860 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16861 #      else
16862 #        ifdef DL_NOW
16863 #          define LT_DLLAZY_OR_NOW      DL_NOW
16864 #        else
16865 #          define LT_DLLAZY_OR_NOW      0
16866 #        endif
16867 #      endif
16868 #    endif
16869 #  endif
16870 #endif
16871
16872 #ifdef __cplusplus
16873 extern "C" void exit (int);
16874 #endif
16875
16876 void fnord() { int i=42;}
16877 int main ()
16878 {
16879   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16880   int status = $lt_dlunknown;
16881
16882   if (self)
16883     {
16884       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16885       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16886       /* dlclose (self); */
16887     }
16888
16889     exit (status);
16890 }
16891 EOF
16892   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16893   (eval $ac_link) 2>&5
16894   ac_status=$?
16895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16897     (./conftest; exit; ) 2>/dev/null
16898     lt_status=$?
16899     case x$lt_status in
16900       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16901       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16902       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16903     esac
16904   else :
16905     # compilation failed
16906     lt_cv_dlopen_self_static=no
16907   fi
16908 fi
16909 rm -fr conftest*
16910
16911
16912 fi
16913 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16914 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16915     fi
16916
16917     CPPFLAGS="$save_CPPFLAGS"
16918     LDFLAGS="$save_LDFLAGS"
16919     LIBS="$save_LIBS"
16920     ;;
16921   esac
16922
16923   case $lt_cv_dlopen_self in
16924   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16925   *) enable_dlopen_self=unknown ;;
16926   esac
16927
16928   case $lt_cv_dlopen_self_static in
16929   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16930   *) enable_dlopen_self_static=unknown ;;
16931   esac
16932 fi
16933
16934
16935 # The else clause should only fire when bootstrapping the
16936 # libtool distribution, otherwise you forgot to ship ltmain.sh
16937 # with your package, and you will get complaints that there are
16938 # no rules to generate ltmain.sh.
16939 if test -f "$ltmain"; then
16940   # See if we are running on zsh, and set the options which allow our commands through
16941   # without removal of \ escapes.
16942   if test -n "${ZSH_VERSION+set}" ; then
16943     setopt NO_GLOB_SUBST
16944   fi
16945   # Now quote all the things that may contain metacharacters while being
16946   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16947   # variables and quote the copies for generation of the libtool script.
16948   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16949     SED SHELL STRIP \
16950     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16951     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16952     deplibs_check_method reload_flag reload_cmds need_locks \
16953     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16954     lt_cv_sys_global_symbol_to_c_name_address \
16955     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16956     old_postinstall_cmds old_postuninstall_cmds \
16957     compiler_GCJ \
16958     CC_GCJ \
16959     LD_GCJ \
16960     lt_prog_compiler_wl_GCJ \
16961     lt_prog_compiler_pic_GCJ \
16962     lt_prog_compiler_static_GCJ \
16963     lt_prog_compiler_no_builtin_flag_GCJ \
16964     export_dynamic_flag_spec_GCJ \
16965     thread_safe_flag_spec_GCJ \
16966     whole_archive_flag_spec_GCJ \
16967     enable_shared_with_static_runtimes_GCJ \
16968     old_archive_cmds_GCJ \
16969     old_archive_from_new_cmds_GCJ \
16970     predep_objects_GCJ \
16971     postdep_objects_GCJ \
16972     predeps_GCJ \
16973     postdeps_GCJ \
16974     compiler_lib_search_path_GCJ \
16975     archive_cmds_GCJ \
16976     archive_expsym_cmds_GCJ \
16977     postinstall_cmds_GCJ \
16978     postuninstall_cmds_GCJ \
16979     old_archive_from_expsyms_cmds_GCJ \
16980     allow_undefined_flag_GCJ \
16981     no_undefined_flag_GCJ \
16982     export_symbols_cmds_GCJ \
16983     hardcode_libdir_flag_spec_GCJ \
16984     hardcode_libdir_flag_spec_ld_GCJ \
16985     hardcode_libdir_separator_GCJ \
16986     hardcode_automatic_GCJ \
16987     module_cmds_GCJ \
16988     module_expsym_cmds_GCJ \
16989     lt_cv_prog_compiler_c_o_GCJ \
16990     exclude_expsyms_GCJ \
16991     include_expsyms_GCJ; do
16992
16993     case $var in
16994     old_archive_cmds_GCJ | \
16995     old_archive_from_new_cmds_GCJ | \
16996     archive_cmds_GCJ | \
16997     archive_expsym_cmds_GCJ | \
16998     module_cmds_GCJ | \
16999     module_expsym_cmds_GCJ | \
17000     old_archive_from_expsyms_cmds_GCJ | \
17001     export_symbols_cmds_GCJ | \
17002     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17003     postinstall_cmds | postuninstall_cmds | \
17004     old_postinstall_cmds | old_postuninstall_cmds | \
17005     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17006       # Double-quote double-evaled strings.
17007       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17008       ;;
17009     *)
17010       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17011       ;;
17012     esac
17013   done
17014
17015   case $lt_echo in
17016   *'\$0 --fallback-echo"')
17017     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17018     ;;
17019   esac
17020
17021 cfgfile="$ofile"
17022
17023   cat <<__EOF__ >> "$cfgfile"
17024 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17025
17026 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17027
17028 # Shell to use when invoking shell scripts.
17029 SHELL=$lt_SHELL
17030
17031 # Whether or not to build shared libraries.
17032 build_libtool_libs=$enable_shared
17033
17034 # Whether or not to build static libraries.
17035 build_old_libs=$enable_static
17036
17037 # Whether or not to add -lc for building shared libraries.
17038 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17039
17040 # Whether or not to disallow shared libs when runtime libs are static
17041 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17042
17043 # Whether or not to optimize for fast installation.
17044 fast_install=$enable_fast_install
17045
17046 # The host system.
17047 host_alias=$host_alias
17048 host=$host
17049
17050 # An echo program that does not interpret backslashes.
17051 echo=$lt_echo
17052
17053 # The archiver.
17054 AR=$lt_AR
17055 AR_FLAGS=$lt_AR_FLAGS
17056
17057 # A C compiler.
17058 LTCC=$lt_LTCC
17059
17060 # A language-specific compiler.
17061 CC=$lt_compiler_GCJ
17062
17063 # Is the compiler the GNU C compiler?
17064 with_gcc=$GCC_GCJ
17065
17066 # An ERE matcher.
17067 EGREP=$lt_EGREP
17068
17069 # The linker used to build libraries.
17070 LD=$lt_LD_GCJ
17071
17072 # Whether we need hard or soft links.
17073 LN_S=$lt_LN_S
17074
17075 # A BSD-compatible nm program.
17076 NM=$lt_NM
17077
17078 # A symbol stripping program
17079 STRIP=$lt_STRIP
17080
17081 # Used to examine libraries when file_magic_cmd begins "file"
17082 MAGIC_CMD=$MAGIC_CMD
17083
17084 # Used on cygwin: DLL creation program.
17085 DLLTOOL="$DLLTOOL"
17086
17087 # Used on cygwin: object dumper.
17088 OBJDUMP="$OBJDUMP"
17089
17090 # Used on cygwin: assembler.
17091 AS="$AS"
17092
17093 # The name of the directory that contains temporary libtool files.
17094 objdir=$objdir
17095
17096 # How to create reloadable object files.
17097 reload_flag=$lt_reload_flag
17098 reload_cmds=$lt_reload_cmds
17099
17100 # How to pass a linker flag through the compiler.
17101 wl=$lt_lt_prog_compiler_wl_GCJ
17102
17103 # Object file suffix (normally "o").
17104 objext="$ac_objext"
17105
17106 # Old archive suffix (normally "a").
17107 libext="$libext"
17108
17109 # Shared library suffix (normally ".so").
17110 shrext='$shrext'
17111
17112 # Executable file suffix (normally "").
17113 exeext="$exeext"
17114
17115 # Additional compiler flags for building library objects.
17116 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17117 pic_mode=$pic_mode
17118
17119 # What is the maximum length of a command?
17120 max_cmd_len=$lt_cv_sys_max_cmd_len
17121
17122 # Does compiler simultaneously support -c and -o options?
17123 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17124
17125 # Must we lock files when doing compilation ?
17126 need_locks=$lt_need_locks
17127
17128 # Do we need the lib prefix for modules?
17129 need_lib_prefix=$need_lib_prefix
17130
17131 # Do we need a version for libraries?
17132 need_version=$need_version
17133
17134 # Whether dlopen is supported.
17135 dlopen_support=$enable_dlopen
17136
17137 # Whether dlopen of programs is supported.
17138 dlopen_self=$enable_dlopen_self
17139
17140 # Whether dlopen of statically linked programs is supported.
17141 dlopen_self_static=$enable_dlopen_self_static
17142
17143 # Compiler flag to prevent dynamic linking.
17144 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17145
17146 # Compiler flag to turn off builtin functions.
17147 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17148
17149 # Compiler flag to allow reflexive dlopens.
17150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17151
17152 # Compiler flag to generate shared objects directly from archives.
17153 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17154
17155 # Compiler flag to generate thread-safe objects.
17156 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17157
17158 # Library versioning type.
17159 version_type=$version_type
17160
17161 # Format of library name prefix.
17162 libname_spec=$lt_libname_spec
17163
17164 # List of archive names.  First name is the real one, the rest are links.
17165 # The last name is the one that the linker finds with -lNAME.
17166 library_names_spec=$lt_library_names_spec
17167
17168 # The coded name of the library, if different from the real name.
17169 soname_spec=$lt_soname_spec
17170
17171 # Commands used to build and install an old-style archive.
17172 RANLIB=$lt_RANLIB
17173 old_archive_cmds=$lt_old_archive_cmds_GCJ
17174 old_postinstall_cmds=$lt_old_postinstall_cmds
17175 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17176
17177 # Create an old-style archive from a shared archive.
17178 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17179
17180 # Create a temporary old-style archive to link instead of a shared archive.
17181 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17182
17183 # Commands used to build and install a shared archive.
17184 archive_cmds=$lt_archive_cmds_GCJ
17185 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17186 postinstall_cmds=$lt_postinstall_cmds
17187 postuninstall_cmds=$lt_postuninstall_cmds
17188
17189 # Commands used to build a loadable module (assumed same as above if empty)
17190 module_cmds=$lt_module_cmds_GCJ
17191 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17192
17193 # Commands to strip libraries.
17194 old_striplib=$lt_old_striplib
17195 striplib=$lt_striplib
17196
17197 # Dependencies to place before the objects being linked to create a
17198 # shared library.
17199 predep_objects=$lt_predep_objects_GCJ
17200
17201 # Dependencies to place after the objects being linked to create a
17202 # shared library.
17203 postdep_objects=$lt_postdep_objects_GCJ
17204
17205 # Dependencies to place before the objects being linked to create a
17206 # shared library.
17207 predeps=$lt_predeps_GCJ
17208
17209 # Dependencies to place after the objects being linked to create a
17210 # shared library.
17211 postdeps=$lt_postdeps_GCJ
17212
17213 # The library search path used internally by the compiler when linking
17214 # a shared library.
17215 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17216
17217 # Method to check whether dependent libraries are shared objects.
17218 deplibs_check_method=$lt_deplibs_check_method
17219
17220 # Command to use when deplibs_check_method == file_magic.
17221 file_magic_cmd=$lt_file_magic_cmd
17222
17223 # Flag that allows shared libraries with undefined symbols to be built.
17224 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17225
17226 # Flag that forces no undefined symbols.
17227 no_undefined_flag=$lt_no_undefined_flag_GCJ
17228
17229 # Commands used to finish a libtool library installation in a directory.
17230 finish_cmds=$lt_finish_cmds
17231
17232 # Same as above, but a single script fragment to be evaled but not shown.
17233 finish_eval=$lt_finish_eval
17234
17235 # Take the output of nm and produce a listing of raw symbols and C names.
17236 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17237
17238 # Transform the output of nm in a proper C declaration
17239 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17240
17241 # Transform the output of nm in a C name address pair
17242 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17243
17244 # This is the shared library runtime path variable.
17245 runpath_var=$runpath_var
17246
17247 # This is the shared library path variable.
17248 shlibpath_var=$shlibpath_var
17249
17250 # Is shlibpath searched before the hard-coded library search path?
17251 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17252
17253 # How to hardcode a shared library path into an executable.
17254 hardcode_action=$hardcode_action_GCJ
17255
17256 # Whether we should hardcode library paths into libraries.
17257 hardcode_into_libs=$hardcode_into_libs
17258
17259 # Flag to hardcode \$libdir into a binary during linking.
17260 # This must work even if \$libdir does not exist.
17261 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17262
17263 # If ld is used when linking, flag to hardcode \$libdir into
17264 # a binary during linking. This must work even if \$libdir does
17265 # not exist.
17266 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17267
17268 # Whether we need a single -rpath flag with a separated argument.
17269 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17270
17271 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17272 # resulting binary.
17273 hardcode_direct=$hardcode_direct_GCJ
17274
17275 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17276 # resulting binary.
17277 hardcode_minus_L=$hardcode_minus_L_GCJ
17278
17279 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17280 # the resulting binary.
17281 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17282
17283 # Set to yes if building a shared library automatically hardcodes DIR into the library
17284 # and all subsequent libraries and executables linked against it.
17285 hardcode_automatic=$hardcode_automatic_GCJ
17286
17287 # Variables whose values should be saved in libtool wrapper scripts and
17288 # restored at relink time.
17289 variables_saved_for_relink="$variables_saved_for_relink"
17290
17291 # Whether libtool must link a program against all its dependency libraries.
17292 link_all_deplibs=$link_all_deplibs_GCJ
17293
17294 # Compile-time system search path for libraries
17295 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17296
17297 # Run-time system search path for libraries
17298 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17299
17300 # Fix the shell variable \$srcfile for the compiler.
17301 fix_srcfile_path="$fix_srcfile_path_GCJ"
17302
17303 # Set to yes if exported symbols are required.
17304 always_export_symbols=$always_export_symbols_GCJ
17305
17306 # The commands to list exported symbols.
17307 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17308
17309 # The commands to extract the exported symbol list from a shared archive.
17310 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17311
17312 # Symbols that should not be listed in the preloaded symbols.
17313 exclude_expsyms=$lt_exclude_expsyms_GCJ
17314
17315 # Symbols that must always be exported.
17316 include_expsyms=$lt_include_expsyms_GCJ
17317
17318 # ### END LIBTOOL TAG CONFIG: $tagname
17319
17320 __EOF__
17321
17322
17323 else
17324   # If there is no Makefile yet, we rely on a make rule to execute
17325   # `config.status --recheck' to rerun these tests and create the
17326   # libtool script then.
17327   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17328   if test -f "$ltmain_in"; then
17329     test -f Makefile && make "$ltmain"
17330   fi
17331 fi
17332
17333
17334 ac_ext=c
17335 ac_cpp='$CPP $CPPFLAGS'
17336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17339
17340 CC="$lt_save_CC"
17341
17342         else
17343           tagname=""
17344         fi
17345         ;;
17346
17347       RC)
17348
17349
17350
17351 # Source file extension for RC test sources.
17352 ac_ext=rc
17353
17354 # Object file extension for compiled RC test sources.
17355 objext=o
17356 objext_RC=$objext
17357
17358 # Code to be used in simple compile tests
17359 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17360
17361 # Code to be used in simple link tests
17362 lt_simple_link_test_code="$lt_simple_compile_test_code"
17363
17364 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17365
17366 # If no C compiler was specified, use CC.
17367 LTCC=${LTCC-"$CC"}
17368
17369 # Allow CC to be a program name with arguments.
17370 compiler=$CC
17371
17372
17373 # Allow CC to be a program name with arguments.
17374 lt_save_CC="$CC"
17375 CC=${RC-"windres"}
17376 compiler=$CC
17377 compiler_RC=$CC
17378 lt_cv_prog_compiler_c_o_RC=yes
17379
17380 # The else clause should only fire when bootstrapping the
17381 # libtool distribution, otherwise you forgot to ship ltmain.sh
17382 # with your package, and you will get complaints that there are
17383 # no rules to generate ltmain.sh.
17384 if test -f "$ltmain"; then
17385   # See if we are running on zsh, and set the options which allow our commands through
17386   # without removal of \ escapes.
17387   if test -n "${ZSH_VERSION+set}" ; then
17388     setopt NO_GLOB_SUBST
17389   fi
17390   # Now quote all the things that may contain metacharacters while being
17391   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17392   # variables and quote the copies for generation of the libtool script.
17393   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17394     SED SHELL STRIP \
17395     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17396     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17397     deplibs_check_method reload_flag reload_cmds need_locks \
17398     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17399     lt_cv_sys_global_symbol_to_c_name_address \
17400     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17401     old_postinstall_cmds old_postuninstall_cmds \
17402     compiler_RC \
17403     CC_RC \
17404     LD_RC \
17405     lt_prog_compiler_wl_RC \
17406     lt_prog_compiler_pic_RC \
17407     lt_prog_compiler_static_RC \
17408     lt_prog_compiler_no_builtin_flag_RC \
17409     export_dynamic_flag_spec_RC \
17410     thread_safe_flag_spec_RC \
17411     whole_archive_flag_spec_RC \
17412     enable_shared_with_static_runtimes_RC \
17413     old_archive_cmds_RC \
17414     old_archive_from_new_cmds_RC \
17415     predep_objects_RC \
17416     postdep_objects_RC \
17417     predeps_RC \
17418     postdeps_RC \
17419     compiler_lib_search_path_RC \
17420     archive_cmds_RC \
17421     archive_expsym_cmds_RC \
17422     postinstall_cmds_RC \
17423     postuninstall_cmds_RC \
17424     old_archive_from_expsyms_cmds_RC \
17425     allow_undefined_flag_RC \
17426     no_undefined_flag_RC \
17427     export_symbols_cmds_RC \
17428     hardcode_libdir_flag_spec_RC \
17429     hardcode_libdir_flag_spec_ld_RC \
17430     hardcode_libdir_separator_RC \
17431     hardcode_automatic_RC \
17432     module_cmds_RC \
17433     module_expsym_cmds_RC \
17434     lt_cv_prog_compiler_c_o_RC \
17435     exclude_expsyms_RC \
17436     include_expsyms_RC; do
17437
17438     case $var in
17439     old_archive_cmds_RC | \
17440     old_archive_from_new_cmds_RC | \
17441     archive_cmds_RC | \
17442     archive_expsym_cmds_RC | \
17443     module_cmds_RC | \
17444     module_expsym_cmds_RC | \
17445     old_archive_from_expsyms_cmds_RC | \
17446     export_symbols_cmds_RC | \
17447     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17448     postinstall_cmds | postuninstall_cmds | \
17449     old_postinstall_cmds | old_postuninstall_cmds | \
17450     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17451       # Double-quote double-evaled strings.
17452       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17453       ;;
17454     *)
17455       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17456       ;;
17457     esac
17458   done
17459
17460   case $lt_echo in
17461   *'\$0 --fallback-echo"')
17462     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17463     ;;
17464   esac
17465
17466 cfgfile="$ofile"
17467
17468   cat <<__EOF__ >> "$cfgfile"
17469 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17470
17471 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17472
17473 # Shell to use when invoking shell scripts.
17474 SHELL=$lt_SHELL
17475
17476 # Whether or not to build shared libraries.
17477 build_libtool_libs=$enable_shared
17478
17479 # Whether or not to build static libraries.
17480 build_old_libs=$enable_static
17481
17482 # Whether or not to add -lc for building shared libraries.
17483 build_libtool_need_lc=$archive_cmds_need_lc_RC
17484
17485 # Whether or not to disallow shared libs when runtime libs are static
17486 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17487
17488 # Whether or not to optimize for fast installation.
17489 fast_install=$enable_fast_install
17490
17491 # The host system.
17492 host_alias=$host_alias
17493 host=$host
17494
17495 # An echo program that does not interpret backslashes.
17496 echo=$lt_echo
17497
17498 # The archiver.
17499 AR=$lt_AR
17500 AR_FLAGS=$lt_AR_FLAGS
17501
17502 # A C compiler.
17503 LTCC=$lt_LTCC
17504
17505 # A language-specific compiler.
17506 CC=$lt_compiler_RC
17507
17508 # Is the compiler the GNU C compiler?
17509 with_gcc=$GCC_RC
17510
17511 # An ERE matcher.
17512 EGREP=$lt_EGREP
17513
17514 # The linker used to build libraries.
17515 LD=$lt_LD_RC
17516
17517 # Whether we need hard or soft links.
17518 LN_S=$lt_LN_S
17519
17520 # A BSD-compatible nm program.
17521 NM=$lt_NM
17522
17523 # A symbol stripping program
17524 STRIP=$lt_STRIP
17525
17526 # Used to examine libraries when file_magic_cmd begins "file"
17527 MAGIC_CMD=$MAGIC_CMD
17528
17529 # Used on cygwin: DLL creation program.
17530 DLLTOOL="$DLLTOOL"
17531
17532 # Used on cygwin: object dumper.
17533 OBJDUMP="$OBJDUMP"
17534
17535 # Used on cygwin: assembler.
17536 AS="$AS"
17537
17538 # The name of the directory that contains temporary libtool files.
17539 objdir=$objdir
17540
17541 # How to create reloadable object files.
17542 reload_flag=$lt_reload_flag
17543 reload_cmds=$lt_reload_cmds
17544
17545 # How to pass a linker flag through the compiler.
17546 wl=$lt_lt_prog_compiler_wl_RC
17547
17548 # Object file suffix (normally "o").
17549 objext="$ac_objext"
17550
17551 # Old archive suffix (normally "a").
17552 libext="$libext"
17553
17554 # Shared library suffix (normally ".so").
17555 shrext='$shrext'
17556
17557 # Executable file suffix (normally "").
17558 exeext="$exeext"
17559
17560 # Additional compiler flags for building library objects.
17561 pic_flag=$lt_lt_prog_compiler_pic_RC
17562 pic_mode=$pic_mode
17563
17564 # What is the maximum length of a command?
17565 max_cmd_len=$lt_cv_sys_max_cmd_len
17566
17567 # Does compiler simultaneously support -c and -o options?
17568 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17569
17570 # Must we lock files when doing compilation ?
17571 need_locks=$lt_need_locks
17572
17573 # Do we need the lib prefix for modules?
17574 need_lib_prefix=$need_lib_prefix
17575
17576 # Do we need a version for libraries?
17577 need_version=$need_version
17578
17579 # Whether dlopen is supported.
17580 dlopen_support=$enable_dlopen
17581
17582 # Whether dlopen of programs is supported.
17583 dlopen_self=$enable_dlopen_self
17584
17585 # Whether dlopen of statically linked programs is supported.
17586 dlopen_self_static=$enable_dlopen_self_static
17587
17588 # Compiler flag to prevent dynamic linking.
17589 link_static_flag=$lt_lt_prog_compiler_static_RC
17590
17591 # Compiler flag to turn off builtin functions.
17592 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17593
17594 # Compiler flag to allow reflexive dlopens.
17595 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17596
17597 # Compiler flag to generate shared objects directly from archives.
17598 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17599
17600 # Compiler flag to generate thread-safe objects.
17601 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17602
17603 # Library versioning type.
17604 version_type=$version_type
17605
17606 # Format of library name prefix.
17607 libname_spec=$lt_libname_spec
17608
17609 # List of archive names.  First name is the real one, the rest are links.
17610 # The last name is the one that the linker finds with -lNAME.
17611 library_names_spec=$lt_library_names_spec
17612
17613 # The coded name of the library, if different from the real name.
17614 soname_spec=$lt_soname_spec
17615
17616 # Commands used to build and install an old-style archive.
17617 RANLIB=$lt_RANLIB
17618 old_archive_cmds=$lt_old_archive_cmds_RC
17619 old_postinstall_cmds=$lt_old_postinstall_cmds
17620 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17621
17622 # Create an old-style archive from a shared archive.
17623 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17624
17625 # Create a temporary old-style archive to link instead of a shared archive.
17626 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17627
17628 # Commands used to build and install a shared archive.
17629 archive_cmds=$lt_archive_cmds_RC
17630 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17631 postinstall_cmds=$lt_postinstall_cmds
17632 postuninstall_cmds=$lt_postuninstall_cmds
17633
17634 # Commands used to build a loadable module (assumed same as above if empty)
17635 module_cmds=$lt_module_cmds_RC
17636 module_expsym_cmds=$lt_module_expsym_cmds_RC
17637
17638 # Commands to strip libraries.
17639 old_striplib=$lt_old_striplib
17640 striplib=$lt_striplib
17641
17642 # Dependencies to place before the objects being linked to create a
17643 # shared library.
17644 predep_objects=$lt_predep_objects_RC
17645
17646 # Dependencies to place after the objects being linked to create a
17647 # shared library.
17648 postdep_objects=$lt_postdep_objects_RC
17649
17650 # Dependencies to place before the objects being linked to create a
17651 # shared library.
17652 predeps=$lt_predeps_RC
17653
17654 # Dependencies to place after the objects being linked to create a
17655 # shared library.
17656 postdeps=$lt_postdeps_RC
17657
17658 # The library search path used internally by the compiler when linking
17659 # a shared library.
17660 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17661
17662 # Method to check whether dependent libraries are shared objects.
17663 deplibs_check_method=$lt_deplibs_check_method
17664
17665 # Command to use when deplibs_check_method == file_magic.
17666 file_magic_cmd=$lt_file_magic_cmd
17667
17668 # Flag that allows shared libraries with undefined symbols to be built.
17669 allow_undefined_flag=$lt_allow_undefined_flag_RC
17670
17671 # Flag that forces no undefined symbols.
17672 no_undefined_flag=$lt_no_undefined_flag_RC
17673
17674 # Commands used to finish a libtool library installation in a directory.
17675 finish_cmds=$lt_finish_cmds
17676
17677 # Same as above, but a single script fragment to be evaled but not shown.
17678 finish_eval=$lt_finish_eval
17679
17680 # Take the output of nm and produce a listing of raw symbols and C names.
17681 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17682
17683 # Transform the output of nm in a proper C declaration
17684 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17685
17686 # Transform the output of nm in a C name address pair
17687 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17688
17689 # This is the shared library runtime path variable.
17690 runpath_var=$runpath_var
17691
17692 # This is the shared library path variable.
17693 shlibpath_var=$shlibpath_var
17694
17695 # Is shlibpath searched before the hard-coded library search path?
17696 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17697
17698 # How to hardcode a shared library path into an executable.
17699 hardcode_action=$hardcode_action_RC
17700
17701 # Whether we should hardcode library paths into libraries.
17702 hardcode_into_libs=$hardcode_into_libs
17703
17704 # Flag to hardcode \$libdir into a binary during linking.
17705 # This must work even if \$libdir does not exist.
17706 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17707
17708 # If ld is used when linking, flag to hardcode \$libdir into
17709 # a binary during linking. This must work even if \$libdir does
17710 # not exist.
17711 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17712
17713 # Whether we need a single -rpath flag with a separated argument.
17714 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17715
17716 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17717 # resulting binary.
17718 hardcode_direct=$hardcode_direct_RC
17719
17720 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17721 # resulting binary.
17722 hardcode_minus_L=$hardcode_minus_L_RC
17723
17724 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17725 # the resulting binary.
17726 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17727
17728 # Set to yes if building a shared library automatically hardcodes DIR into the library
17729 # and all subsequent libraries and executables linked against it.
17730 hardcode_automatic=$hardcode_automatic_RC
17731
17732 # Variables whose values should be saved in libtool wrapper scripts and
17733 # restored at relink time.
17734 variables_saved_for_relink="$variables_saved_for_relink"
17735
17736 # Whether libtool must link a program against all its dependency libraries.
17737 link_all_deplibs=$link_all_deplibs_RC
17738
17739 # Compile-time system search path for libraries
17740 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17741
17742 # Run-time system search path for libraries
17743 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17744
17745 # Fix the shell variable \$srcfile for the compiler.
17746 fix_srcfile_path="$fix_srcfile_path_RC"
17747
17748 # Set to yes if exported symbols are required.
17749 always_export_symbols=$always_export_symbols_RC
17750
17751 # The commands to list exported symbols.
17752 export_symbols_cmds=$lt_export_symbols_cmds_RC
17753
17754 # The commands to extract the exported symbol list from a shared archive.
17755 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17756
17757 # Symbols that should not be listed in the preloaded symbols.
17758 exclude_expsyms=$lt_exclude_expsyms_RC
17759
17760 # Symbols that must always be exported.
17761 include_expsyms=$lt_include_expsyms_RC
17762
17763 # ### END LIBTOOL TAG CONFIG: $tagname
17764
17765 __EOF__
17766
17767
17768 else
17769   # If there is no Makefile yet, we rely on a make rule to execute
17770   # `config.status --recheck' to rerun these tests and create the
17771   # libtool script then.
17772   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17773   if test -f "$ltmain_in"; then
17774     test -f Makefile && make "$ltmain"
17775   fi
17776 fi
17777
17778
17779 ac_ext=c
17780 ac_cpp='$CPP $CPPFLAGS'
17781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17784
17785 CC="$lt_save_CC"
17786
17787         ;;
17788
17789       *)
17790         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
17791 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
17792    { (exit 1); exit 1; }; }
17793         ;;
17794       esac
17795
17796       # Append the new tag name to the list of available tags.
17797       if test -n "$tagname" ; then
17798       available_tags="$available_tags $tagname"
17799     fi
17800     fi
17801   done
17802   IFS="$lt_save_ifs"
17803
17804   # Now substitute the updated list of available tags.
17805   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17806     mv "${ofile}T" "$ofile"
17807     chmod +x "$ofile"
17808   else
17809     rm -f "${ofile}T"
17810     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
17811 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
17812    { (exit 1); exit 1; }; }
17813   fi
17814 fi
17815
17816
17817
17818 # This can be used to rebuild libtool when needed
17819 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17820
17821 # Always use our own libtool.
17822 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17823
17824 # Prevent multiple expansion
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845 #  AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
17846 #       /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
17847
17848 # Checks for libraries.
17849 if test -f /sw/include/db3/db.h; then
17850         CFLAGS="-I/sw/include/db3 $CFLAGS"
17851         LIBS="-L/sw/lib -ldb-3 $LIBS"
17852 elif test -f /sw/include/db4/db.h; then
17853         CFLAGS="-I/sw/include/db4 $CFLAGS"
17854         LIBS="-L/sw/lib -ldb-4 $LIBS"
17855 else
17856         LIBS="-ldb $LIBS"
17857 fi
17858
17859 # Checks for header files.
17860
17861 # Checks for typedefs, structures, and compiler characteristics.
17862 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17863 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17864 if test "${ac_cv_c_const+set}" = set; then
17865   echo $ECHO_N "(cached) $ECHO_C" >&6
17866 else
17867   cat >conftest.$ac_ext <<_ACEOF
17868 #line $LINENO "configure"
17869 /* confdefs.h.  */
17870 _ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h.  */
17874
17875 int
17876 main ()
17877 {
17878 /* FIXME: Include the comments suggested by Paul. */
17879 #ifndef __cplusplus
17880   /* Ultrix mips cc rejects this.  */
17881   typedef int charset[2];
17882   const charset x;
17883   /* SunOS 4.1.1 cc rejects this.  */
17884   char const *const *ccp;
17885   char **p;
17886   /* NEC SVR4.0.2 mips cc rejects this.  */
17887   struct point {int x, y;};
17888   static struct point const zero = {0,0};
17889   /* AIX XL C 1.02.0.0 rejects this.
17890      It does not let you subtract one const X* pointer from another in
17891      an arm of an if-expression whose if-part is not a constant
17892      expression */
17893   const char *g = "string";
17894   ccp = &g + (g ? g-g : 0);
17895   /* HPUX 7.0 cc rejects these. */
17896   ++ccp;
17897   p = (char**) ccp;
17898   ccp = (char const *const *) p;
17899   { /* SCO 3.2v4 cc rejects this.  */
17900     char *t;
17901     char const *s = 0 ? (char *) 0 : (char const *) 0;
17902
17903     *t++ = 0;
17904   }
17905   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17906     int x[] = {25, 17};
17907     const int *foo = &x[0];
17908     ++foo;
17909   }
17910   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17911     typedef const int *iptr;
17912     iptr p = 0;
17913     ++p;
17914   }
17915   { /* AIX XL C 1.02.0.0 rejects this saying
17916        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17917     struct s { int j; const int *ap[3]; };
17918     struct s *b; b->j = 5;
17919   }
17920   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17921     const int foo = 10;
17922   }
17923 #endif
17924
17925   ;
17926   return 0;
17927 }
17928 _ACEOF
17929 rm -f conftest.$ac_objext
17930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17931   (eval $ac_compile) 2>&5
17932   ac_status=$?
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); } &&
17935          { ac_try='test -s conftest.$ac_objext'
17936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937   (eval $ac_try) 2>&5
17938   ac_status=$?
17939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940   (exit $ac_status); }; }; then
17941   ac_cv_c_const=yes
17942 else
17943   echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17945
17946 ac_cv_c_const=no
17947 fi
17948 rm -f conftest.$ac_objext conftest.$ac_ext
17949 fi
17950 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17951 echo "${ECHO_T}$ac_cv_c_const" >&6
17952 if test $ac_cv_c_const = no; then
17953
17954 cat >>confdefs.h <<\_ACEOF
17955 #define const
17956 _ACEOF
17957
17958 fi
17959
17960 echo "$as_me:$LINENO: checking for inline" >&5
17961 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17962 if test "${ac_cv_c_inline+set}" = set; then
17963   echo $ECHO_N "(cached) $ECHO_C" >&6
17964 else
17965   ac_cv_c_inline=no
17966 for ac_kw in inline __inline__ __inline; do
17967   cat >conftest.$ac_ext <<_ACEOF
17968 #line $LINENO "configure"
17969 /* confdefs.h.  */
17970 _ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h.  */
17974 #ifndef __cplusplus
17975 typedef int foo_t;
17976 static $ac_kw foo_t static_foo () {return 0; }
17977 $ac_kw foo_t foo () {return 0; }
17978 #endif
17979
17980 _ACEOF
17981 rm -f conftest.$ac_objext
17982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17983   (eval $ac_compile) 2>&5
17984   ac_status=$?
17985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986   (exit $ac_status); } &&
17987          { ac_try='test -s conftest.$ac_objext'
17988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17989   (eval $ac_try) 2>&5
17990   ac_status=$?
17991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992   (exit $ac_status); }; }; then
17993   ac_cv_c_inline=$ac_kw; break
17994 else
17995   echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17997
17998 fi
17999 rm -f conftest.$ac_objext conftest.$ac_ext
18000 done
18001
18002 fi
18003 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18004 echo "${ECHO_T}$ac_cv_c_inline" >&6
18005 case $ac_cv_c_inline in
18006   inline | yes) ;;
18007   no)
18008 cat >>confdefs.h <<\_ACEOF
18009 #define inline
18010 _ACEOF
18011  ;;
18012   *)  cat >>confdefs.h <<_ACEOF
18013 #define inline $ac_cv_c_inline
18014 _ACEOF
18015  ;;
18016 esac
18017
18018
18019 # Checks for library functions.
18020 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18021 # for constant arguments.  Useless!
18022 echo "$as_me:$LINENO: checking for working alloca.h" >&5
18023 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
18024 if test "${ac_cv_working_alloca_h+set}" = set; then
18025   echo $ECHO_N "(cached) $ECHO_C" >&6
18026 else
18027   cat >conftest.$ac_ext <<_ACEOF
18028 #line $LINENO "configure"
18029 /* confdefs.h.  */
18030 _ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h.  */
18034 #include <alloca.h>
18035 int
18036 main ()
18037 {
18038 char *p = (char *) alloca (2 * sizeof (int));
18039   ;
18040   return 0;
18041 }
18042 _ACEOF
18043 rm -f conftest.$ac_objext conftest$ac_exeext
18044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18045   (eval $ac_link) 2>&5
18046   ac_status=$?
18047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048   (exit $ac_status); } &&
18049          { ac_try='test -s conftest$ac_exeext'
18050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051   (eval $ac_try) 2>&5
18052   ac_status=$?
18053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054   (exit $ac_status); }; }; then
18055   ac_cv_working_alloca_h=yes
18056 else
18057   echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18059
18060 ac_cv_working_alloca_h=no
18061 fi
18062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18063 fi
18064 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
18065 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
18066 if test $ac_cv_working_alloca_h = yes; then
18067
18068 cat >>confdefs.h <<\_ACEOF
18069 #define HAVE_ALLOCA_H 1
18070 _ACEOF
18071
18072 fi
18073
18074 echo "$as_me:$LINENO: checking for alloca" >&5
18075 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
18076 if test "${ac_cv_func_alloca_works+set}" = set; then
18077   echo $ECHO_N "(cached) $ECHO_C" >&6
18078 else
18079   cat >conftest.$ac_ext <<_ACEOF
18080 #line $LINENO "configure"
18081 /* confdefs.h.  */
18082 _ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h.  */
18086 #ifdef __GNUC__
18087 # define alloca __builtin_alloca
18088 #else
18089 # ifdef _MSC_VER
18090 #  include <malloc.h>
18091 #  define alloca _alloca
18092 # else
18093 #  if HAVE_ALLOCA_H
18094 #   include <alloca.h>
18095 #  else
18096 #   ifdef _AIX
18097  #pragma alloca
18098 #   else
18099 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18100 char *alloca ();
18101 #    endif
18102 #   endif
18103 #  endif
18104 # endif
18105 #endif
18106
18107 int
18108 main ()
18109 {
18110 char *p = (char *) alloca (1);
18111   ;
18112   return 0;
18113 }
18114 _ACEOF
18115 rm -f conftest.$ac_objext conftest$ac_exeext
18116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18117   (eval $ac_link) 2>&5
18118   ac_status=$?
18119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120   (exit $ac_status); } &&
18121          { ac_try='test -s conftest$ac_exeext'
18122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123   (eval $ac_try) 2>&5
18124   ac_status=$?
18125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126   (exit $ac_status); }; }; then
18127   ac_cv_func_alloca_works=yes
18128 else
18129   echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18131
18132 ac_cv_func_alloca_works=no
18133 fi
18134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18135 fi
18136 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
18137 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
18138
18139 if test $ac_cv_func_alloca_works = yes; then
18140
18141 cat >>confdefs.h <<\_ACEOF
18142 #define HAVE_ALLOCA 1
18143 _ACEOF
18144
18145 else
18146   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18147 # that cause trouble.  Some versions do not even contain alloca or
18148 # contain a buggy version.  If you still want to use their alloca,
18149 # use ar to extract alloca.o from them instead of compiling alloca.c.
18150
18151 ALLOCA=alloca.$ac_objext
18152
18153 cat >>confdefs.h <<\_ACEOF
18154 #define C_ALLOCA 1
18155 _ACEOF
18156
18157
18158 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
18159 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
18160 if test "${ac_cv_os_cray+set}" = set; then
18161   echo $ECHO_N "(cached) $ECHO_C" >&6
18162 else
18163   cat >conftest.$ac_ext <<_ACEOF
18164 #line $LINENO "configure"
18165 /* confdefs.h.  */
18166 _ACEOF
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h.  */
18170 #if defined(CRAY) && ! defined(CRAY2)
18171 webecray
18172 #else
18173 wenotbecray
18174 #endif
18175
18176 _ACEOF
18177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18178   $EGREP "webecray" >/dev/null 2>&1; then
18179   ac_cv_os_cray=yes
18180 else
18181   ac_cv_os_cray=no
18182 fi
18183 rm -f conftest*
18184
18185 fi
18186 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18187 echo "${ECHO_T}$ac_cv_os_cray" >&6
18188 if test $ac_cv_os_cray = yes; then
18189   for ac_func in _getb67 GETB67 getb67; do
18190     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18191 echo "$as_me:$LINENO: checking for $ac_func" >&5
18192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18193 if eval "test \"\${$as_ac_var+set}\" = set"; then
18194   echo $ECHO_N "(cached) $ECHO_C" >&6
18195 else
18196   cat >conftest.$ac_ext <<_ACEOF
18197 #line $LINENO "configure"
18198 /* confdefs.h.  */
18199 _ACEOF
18200 cat confdefs.h >>conftest.$ac_ext
18201 cat >>conftest.$ac_ext <<_ACEOF
18202 /* end confdefs.h.  */
18203 /* System header to define __stub macros and hopefully few prototypes,
18204     which can conflict with char $ac_func (); below.
18205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18206     <limits.h> exists even on freestanding compilers.  */
18207 #ifdef __STDC__
18208 # include <limits.h>
18209 #else
18210 # include <assert.h>
18211 #endif
18212 /* Override any gcc2 internal prototype to avoid an error.  */
18213 #ifdef __cplusplus
18214 extern "C"
18215 {
18216 #endif
18217 /* We use char because int might match the return type of a gcc2
18218    builtin and then its argument prototype would still apply.  */
18219 char $ac_func ();
18220 /* The GNU C library defines this for functions which it implements
18221     to always fail with ENOSYS.  Some functions are actually named
18222     something starting with __ and the normal name is an alias.  */
18223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18224 choke me
18225 #else
18226 char (*f) () = $ac_func;
18227 #endif
18228 #ifdef __cplusplus
18229 }
18230 #endif
18231
18232 int
18233 main ()
18234 {
18235 return f != $ac_func;
18236   ;
18237   return 0;
18238 }
18239 _ACEOF
18240 rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18242   (eval $ac_link) 2>&5
18243   ac_status=$?
18244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245   (exit $ac_status); } &&
18246          { ac_try='test -s conftest$ac_exeext'
18247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248   (eval $ac_try) 2>&5
18249   ac_status=$?
18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251   (exit $ac_status); }; }; then
18252   eval "$as_ac_var=yes"
18253 else
18254   echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.$ac_ext >&5
18256
18257 eval "$as_ac_var=no"
18258 fi
18259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18260 fi
18261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18263 if test `eval echo '${'$as_ac_var'}'` = yes; then
18264
18265 cat >>confdefs.h <<_ACEOF
18266 #define CRAY_STACKSEG_END $ac_func
18267 _ACEOF
18268
18269     break
18270 fi
18271
18272   done
18273 fi
18274
18275 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18276 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
18277 if test "${ac_cv_c_stack_direction+set}" = set; then
18278   echo $ECHO_N "(cached) $ECHO_C" >&6
18279 else
18280   if test "$cross_compiling" = yes; then
18281   ac_cv_c_stack_direction=0
18282 else
18283   cat >conftest.$ac_ext <<_ACEOF
18284 #line $LINENO "configure"
18285 /* confdefs.h.  */
18286 _ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h.  */
18290 int
18291 find_stack_direction ()
18292 {
18293   static char *addr = 0;
18294   auto char dummy;
18295   if (addr == 0)
18296     {
18297       addr = &dummy;
18298       return find_stack_direction ();
18299     }
18300   else
18301     return (&dummy > addr) ? 1 : -1;
18302 }
18303
18304 int
18305 main ()
18306 {
18307   exit (find_stack_direction () < 0);
18308 }
18309 _ACEOF
18310 rm -f conftest$ac_exeext
18311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18312   (eval $ac_link) 2>&5
18313   ac_status=$?
18314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317   (eval $ac_try) 2>&5
18318   ac_status=$?
18319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320   (exit $ac_status); }; }; then
18321   ac_cv_c_stack_direction=1
18322 else
18323   echo "$as_me: program exited with status $ac_status" >&5
18324 echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18326
18327 ( exit $ac_status )
18328 ac_cv_c_stack_direction=-1
18329 fi
18330 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18331 fi
18332 fi
18333 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18334 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
18335
18336 cat >>confdefs.h <<_ACEOF
18337 #define STACK_DIRECTION $ac_cv_c_stack_direction
18338 _ACEOF
18339
18340
18341 fi
18342
18343 echo "$as_me:$LINENO: checking for working strnlen" >&5
18344 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
18345 if test "${ac_cv_func_strnlen_working+set}" = set; then
18346   echo $ECHO_N "(cached) $ECHO_C" >&6
18347 else
18348   if test "$cross_compiling" = yes; then
18349   ac_cv_func_strnlen_working=no
18350 else
18351   cat >conftest.$ac_ext <<_ACEOF
18352 #line $LINENO "configure"
18353 /* confdefs.h.  */
18354 _ACEOF
18355 cat confdefs.h >>conftest.$ac_ext
18356 cat >>conftest.$ac_ext <<_ACEOF
18357 /* end confdefs.h.  */
18358
18359 int
18360 main ()
18361 {
18362
18363 #define S "foobar"
18364 #define S_LEN (sizeof S - 1)
18365
18366   /* At least one implementation is buggy: that of AIX 4.3 would
18367      give strnlen (S, 1) == 3.  */
18368
18369   int i;
18370   for (i = 0; i < S_LEN + 1; ++i)
18371     {
18372       int expected = i <= S_LEN ? i : S_LEN;
18373       if (strnlen (S, i) != expected)
18374         exit (1);
18375     }
18376   exit (0);
18377
18378   ;
18379   return 0;
18380 }
18381 _ACEOF
18382 rm -f conftest$ac_exeext
18383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18384   (eval $ac_link) 2>&5
18385   ac_status=$?
18386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389   (eval $ac_try) 2>&5
18390   ac_status=$?
18391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392   (exit $ac_status); }; }; then
18393   ac_cv_func_strnlen_working=yes
18394 else
18395   echo "$as_me: program exited with status $ac_status" >&5
18396 echo "$as_me: failed program was:" >&5
18397 sed 's/^/| /' conftest.$ac_ext >&5
18398
18399 ( exit $ac_status )
18400 ac_cv_func_strnlen_working=no
18401 fi
18402 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18403 fi
18404 fi
18405 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
18406 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
18407 test $ac_cv_func_strnlen_working = no && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18408
18409
18410
18411 for ac_func in strnlen
18412 do
18413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18414 echo "$as_me:$LINENO: checking for $ac_func" >&5
18415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18416 if eval "test \"\${$as_ac_var+set}\" = set"; then
18417   echo $ECHO_N "(cached) $ECHO_C" >&6
18418 else
18419   cat >conftest.$ac_ext <<_ACEOF
18420 #line $LINENO "configure"
18421 /* confdefs.h.  */
18422 _ACEOF
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h.  */
18426 /* System header to define __stub macros and hopefully few prototypes,
18427     which can conflict with char $ac_func (); below.
18428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18429     <limits.h> exists even on freestanding compilers.  */
18430 #ifdef __STDC__
18431 # include <limits.h>
18432 #else
18433 # include <assert.h>
18434 #endif
18435 /* Override any gcc2 internal prototype to avoid an error.  */
18436 #ifdef __cplusplus
18437 extern "C"
18438 {
18439 #endif
18440 /* We use char because int might match the return type of a gcc2
18441    builtin and then its argument prototype would still apply.  */
18442 char $ac_func ();
18443 /* The GNU C library defines this for functions which it implements
18444     to always fail with ENOSYS.  Some functions are actually named
18445     something starting with __ and the normal name is an alias.  */
18446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18447 choke me
18448 #else
18449 char (*f) () = $ac_func;
18450 #endif
18451 #ifdef __cplusplus
18452 }
18453 #endif
18454
18455 int
18456 main ()
18457 {
18458 return f != $ac_func;
18459   ;
18460   return 0;
18461 }
18462 _ACEOF
18463 rm -f conftest.$ac_objext conftest$ac_exeext
18464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18465   (eval $ac_link) 2>&5
18466   ac_status=$?
18467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468   (exit $ac_status); } &&
18469          { ac_try='test -s conftest$ac_exeext'
18470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471   (eval $ac_try) 2>&5
18472   ac_status=$?
18473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474   (exit $ac_status); }; }; then
18475   eval "$as_ac_var=yes"
18476 else
18477   echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18479
18480 eval "$as_ac_var=no"
18481 fi
18482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18483 fi
18484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18486 if test `eval echo '${'$as_ac_var'}'` = yes; then
18487   cat >>confdefs.h <<_ACEOF
18488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18489 _ACEOF
18490
18491 fi
18492 done
18493
18494
18495           ac_config_files="$ac_config_files Makefile"
18496
18497 cat >confcache <<\_ACEOF
18498 # This file is a shell script that caches the results of configure
18499 # tests run on this system so they can be shared between configure
18500 # scripts and configure runs, see configure's option --config-cache.
18501 # It is not useful on other systems.  If it contains results you don't
18502 # want to keep, you may remove or edit it.
18503 #
18504 # config.status only pays attention to the cache file if you give it
18505 # the --recheck option to rerun configure.
18506 #
18507 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18508 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18509 # following values.
18510
18511 _ACEOF
18512
18513 # The following way of writing the cache mishandles newlines in values,
18514 # but we know of no workaround that is simple, portable, and efficient.
18515 # So, don't put newlines in cache variables' values.
18516 # Ultrix sh set writes to stderr and can't be redirected directly,
18517 # and sets the high bit in the cache file unless we assign to the vars.
18518 {
18519   (set) 2>&1 |
18520     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18521     *ac_space=\ *)
18522       # `set' does not quote correctly, so add quotes (double-quote
18523       # substitution turns \\\\ into \\, and sed turns \\ into \).
18524       sed -n \
18525         "s/'/'\\\\''/g;
18526           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18527       ;;
18528     *)
18529       # `set' quotes correctly as required by POSIX, so do not add quotes.
18530       sed -n \
18531         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18532       ;;
18533     esac;
18534 } |
18535   sed '
18536      t clear
18537      : clear
18538      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18539      t end
18540      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18541      : end' >>confcache
18542 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18543   if test -w $cache_file; then
18544     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18545     cat confcache >$cache_file
18546   else
18547     echo "not updating unwritable cache $cache_file"
18548   fi
18549 fi
18550 rm -f confcache
18551
18552 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18553 # Let make expand exec_prefix.
18554 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18555
18556 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18557 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18558 # trailing colons and then remove the whole line if VPATH becomes empty
18559 # (actually we leave an empty line to preserve line numbers).
18560 if test "x$srcdir" = x.; then
18561   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18562 s/:*\$(srcdir):*/:/;
18563 s/:*\${srcdir}:*/:/;
18564 s/:*@srcdir@:*/:/;
18565 s/^\([^=]*=[    ]*\):*/\1/;
18566 s/:*$//;
18567 s/^[^=]*=[      ]*$//;
18568 }'
18569 fi
18570
18571 DEFS=-DHAVE_CONFIG_H
18572
18573 ac_libobjs=
18574 ac_ltlibobjs=
18575 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18576   # 1. Remove the extension, and $U if already installed.
18577   ac_i=`echo "$ac_i" |
18578          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18579   # 2. Add them.
18580   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18581   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18582 done
18583 LIBOBJS=$ac_libobjs
18584
18585 LTLIBOBJS=$ac_ltlibobjs
18586
18587
18588
18589 : ${CONFIG_STATUS=./config.status}
18590 ac_clean_files_save=$ac_clean_files
18591 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18592 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18593 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18594 cat >$CONFIG_STATUS <<_ACEOF
18595 #! $SHELL
18596 # Generated by $as_me.
18597 # Run this file to recreate the current configuration.
18598 # Compiler output produced by configure, useful for debugging
18599 # configure, is in config.log if it exists.
18600
18601 debug=false
18602 ac_cs_recheck=false
18603 ac_cs_silent=false
18604 SHELL=\${CONFIG_SHELL-$SHELL}
18605 _ACEOF
18606
18607 cat >>$CONFIG_STATUS <<\_ACEOF
18608 ## --------------------- ##
18609 ## M4sh Initialization.  ##
18610 ## --------------------- ##
18611
18612 # Be Bourne compatible
18613 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18614   emulate sh
18615   NULLCMD=:
18616   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18617   # is contrary to our usage.  Disable this feature.
18618   alias -g '${1+"$@"}'='"$@"'
18619 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18620   set -o posix
18621 fi
18622
18623 # Support unset when possible.
18624 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18625   as_unset=unset
18626 else
18627   as_unset=false
18628 fi
18629
18630
18631 # Work around bugs in pre-3.0 UWIN ksh.
18632 $as_unset ENV MAIL MAILPATH
18633 PS1='$ '
18634 PS2='> '
18635 PS4='+ '
18636
18637 # NLS nuisances.
18638 for as_var in \
18639   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18640   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18641   LC_TELEPHONE LC_TIME
18642 do
18643   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18644     eval $as_var=C; export $as_var
18645   else
18646     $as_unset $as_var
18647   fi
18648 done
18649
18650 # Required to use basename.
18651 if expr a : '\(a\)' >/dev/null 2>&1; then
18652   as_expr=expr
18653 else
18654   as_expr=false
18655 fi
18656
18657 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18658   as_basename=basename
18659 else
18660   as_basename=false
18661 fi
18662
18663
18664 # Name of the executable.
18665 as_me=`$as_basename "$0" ||
18666 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18667          X"$0" : 'X\(//\)$' \| \
18668          X"$0" : 'X\(/\)$' \| \
18669          .     : '\(.\)' 2>/dev/null ||
18670 echo X/"$0" |
18671     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18672           /^X\/\(\/\/\)$/{ s//\1/; q; }
18673           /^X\/\(\/\).*/{ s//\1/; q; }
18674           s/.*/./; q'`
18675
18676
18677 # PATH needs CR, and LINENO needs CR and PATH.
18678 # Avoid depending upon Character Ranges.
18679 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18680 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18681 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18682 as_cr_digits='0123456789'
18683 as_cr_alnum=$as_cr_Letters$as_cr_digits
18684
18685 # The user is always right.
18686 if test "${PATH_SEPARATOR+set}" != set; then
18687   echo "#! /bin/sh" >conf$$.sh
18688   echo  "exit 0"   >>conf$$.sh
18689   chmod +x conf$$.sh
18690   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18691     PATH_SEPARATOR=';'
18692   else
18693     PATH_SEPARATOR=:
18694   fi
18695   rm -f conf$$.sh
18696 fi
18697
18698
18699   as_lineno_1=$LINENO
18700   as_lineno_2=$LINENO
18701   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18702   test "x$as_lineno_1" != "x$as_lineno_2" &&
18703   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18704   # Find who we are.  Look in the path if we contain no path at all
18705   # relative or not.
18706   case $0 in
18707     *[\\/]* ) as_myself=$0 ;;
18708     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18709 for as_dir in $PATH
18710 do
18711   IFS=$as_save_IFS
18712   test -z "$as_dir" && as_dir=.
18713   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18714 done
18715
18716        ;;
18717   esac
18718   # We did not find ourselves, most probably we were run as `sh COMMAND'
18719   # in which case we are not to be found in the path.
18720   if test "x$as_myself" = x; then
18721     as_myself=$0
18722   fi
18723   if test ! -f "$as_myself"; then
18724     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18725 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18726    { (exit 1); exit 1; }; }
18727   fi
18728   case $CONFIG_SHELL in
18729   '')
18730     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18731 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18732 do
18733   IFS=$as_save_IFS
18734   test -z "$as_dir" && as_dir=.
18735   for as_base in sh bash ksh sh5; do
18736          case $as_dir in
18737          /*)
18738            if ("$as_dir/$as_base" -c '
18739   as_lineno_1=$LINENO
18740   as_lineno_2=$LINENO
18741   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18742   test "x$as_lineno_1" != "x$as_lineno_2" &&
18743   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18744              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18745              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18746              CONFIG_SHELL=$as_dir/$as_base
18747              export CONFIG_SHELL
18748              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18749            fi;;
18750          esac
18751        done
18752 done
18753 ;;
18754   esac
18755
18756   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18757   # uniformly replaced by the line number.  The first 'sed' inserts a
18758   # line-number line before each line; the second 'sed' does the real
18759   # work.  The second script uses 'N' to pair each line-number line
18760   # with the numbered line, and appends trailing '-' during
18761   # substitution so that $LINENO is not a special case at line end.
18762   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18763   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18764   sed '=' <$as_myself |
18765     sed '
18766       N
18767       s,$,-,
18768       : loop
18769       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18770       t loop
18771       s,-$,,
18772       s,^['$as_cr_digits']*\n,,
18773     ' >$as_me.lineno &&
18774   chmod +x $as_me.lineno ||
18775     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18776 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18777    { (exit 1); exit 1; }; }
18778
18779   # Don't try to exec as it changes $[0], causing all sort of problems
18780   # (the dirname of $[0] is not the place where we might find the
18781   # original and so on.  Autoconf is especially sensible to this).
18782   . ./$as_me.lineno
18783   # Exit status is that of the last command.
18784   exit
18785 }
18786
18787
18788 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18789   *c*,-n*) ECHO_N= ECHO_C='
18790 ' ECHO_T='      ' ;;
18791   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18792   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18793 esac
18794
18795 if expr a : '\(a\)' >/dev/null 2>&1; then
18796   as_expr=expr
18797 else
18798   as_expr=false
18799 fi
18800
18801 rm -f conf$$ conf$$.exe conf$$.file
18802 echo >conf$$.file
18803 if ln -s conf$$.file conf$$ 2>/dev/null; then
18804   # We could just check for DJGPP; but this test a) works b) is more generic
18805   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18806   if test -f conf$$.exe; then
18807     # Don't use ln at all; we don't have any links
18808     as_ln_s='cp -p'
18809   else
18810     as_ln_s='ln -s'
18811   fi
18812 elif ln conf$$.file conf$$ 2>/dev/null; then
18813   as_ln_s=ln
18814 else
18815   as_ln_s='cp -p'
18816 fi
18817 rm -f conf$$ conf$$.exe conf$$.file
18818
18819 if mkdir -p . 2>/dev/null; then
18820   as_mkdir_p=:
18821 else
18822   as_mkdir_p=false
18823 fi
18824
18825 as_executable_p="test -f"
18826
18827 # Sed expression to map a string onto a valid CPP name.
18828 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18829
18830 # Sed expression to map a string onto a valid variable name.
18831 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18832
18833
18834 # IFS
18835 # We need space, tab and new line, in precisely that order.
18836 as_nl='
18837 '
18838 IFS="   $as_nl"
18839
18840 # CDPATH.
18841 $as_unset CDPATH
18842
18843 exec 6>&1
18844
18845 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18846 # report actual input values of CONFIG_FILES etc. instead of their
18847 # values after options handling.  Logging --version etc. is OK.
18848 exec 5>>config.log
18849 {
18850   echo
18851   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18852 ## Running $as_me. ##
18853 _ASBOX
18854 } >&5
18855 cat >&5 <<_CSEOF
18856
18857 This file was extended by libchise $as_me 0.2.0, which was
18858 generated by GNU Autoconf 2.57.  Invocation command line was
18859
18860   CONFIG_FILES    = $CONFIG_FILES
18861   CONFIG_HEADERS  = $CONFIG_HEADERS
18862   CONFIG_LINKS    = $CONFIG_LINKS
18863   CONFIG_COMMANDS = $CONFIG_COMMANDS
18864   $ $0 $@
18865
18866 _CSEOF
18867 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18868 echo >&5
18869 _ACEOF
18870
18871 # Files that config.status was made for.
18872 if test -n "$ac_config_files"; then
18873   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18874 fi
18875
18876 if test -n "$ac_config_headers"; then
18877   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18878 fi
18879
18880 if test -n "$ac_config_links"; then
18881   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18882 fi
18883
18884 if test -n "$ac_config_commands"; then
18885   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18886 fi
18887
18888 cat >>$CONFIG_STATUS <<\_ACEOF
18889
18890 ac_cs_usage="\
18891 \`$as_me' instantiates files from templates according to the
18892 current configuration.
18893
18894 Usage: $0 [OPTIONS] [FILE]...
18895
18896   -h, --help       print this help, then exit
18897   -V, --version    print version number, then exit
18898   -q, --quiet      do not print progress messages
18899   -d, --debug      don't remove temporary files
18900       --recheck    update $as_me by reconfiguring in the same conditions
18901   --file=FILE[:TEMPLATE]
18902                    instantiate the configuration file FILE
18903   --header=FILE[:TEMPLATE]
18904                    instantiate the configuration header FILE
18905
18906 Configuration files:
18907 $config_files
18908
18909 Configuration headers:
18910 $config_headers
18911
18912 Report bugs to <bug-autoconf@gnu.org>."
18913 _ACEOF
18914
18915 cat >>$CONFIG_STATUS <<_ACEOF
18916 ac_cs_version="\\
18917 libchise config.status 0.2.0
18918 configured by $0, generated by GNU Autoconf 2.57,
18919   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18920
18921 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18922 Free Software Foundation, Inc.
18923 This config.status script is free software; the Free Software Foundation
18924 gives unlimited permission to copy, distribute and modify it."
18925 srcdir=$srcdir
18926 _ACEOF
18927
18928 cat >>$CONFIG_STATUS <<\_ACEOF
18929 # If no file are specified by the user, then we need to provide default
18930 # value.  By we need to know if files were specified by the user.
18931 ac_need_defaults=:
18932 while test $# != 0
18933 do
18934   case $1 in
18935   --*=*)
18936     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18937     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18938     ac_shift=:
18939     ;;
18940   -*)
18941     ac_option=$1
18942     ac_optarg=$2
18943     ac_shift=shift
18944     ;;
18945   *) # This is not an option, so the user has probably given explicit
18946      # arguments.
18947      ac_option=$1
18948      ac_need_defaults=false;;
18949   esac
18950
18951   case $ac_option in
18952   # Handling of the options.
18953 _ACEOF
18954 cat >>$CONFIG_STATUS <<\_ACEOF
18955   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18956     ac_cs_recheck=: ;;
18957   --version | --vers* | -V )
18958     echo "$ac_cs_version"; exit 0 ;;
18959   --he | --h)
18960     # Conflict between --help and --header
18961     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18962 Try \`$0 --help' for more information." >&5
18963 echo "$as_me: error: ambiguous option: $1
18964 Try \`$0 --help' for more information." >&2;}
18965    { (exit 1); exit 1; }; };;
18966   --help | --hel | -h )
18967     echo "$ac_cs_usage"; exit 0 ;;
18968   --debug | --d* | -d )
18969     debug=: ;;
18970   --file | --fil | --fi | --f )
18971     $ac_shift
18972     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18973     ac_need_defaults=false;;
18974   --header | --heade | --head | --hea )
18975     $ac_shift
18976     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18977     ac_need_defaults=false;;
18978   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18979   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18980     ac_cs_silent=: ;;
18981
18982   # This is an error.
18983   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18984 Try \`$0 --help' for more information." >&5
18985 echo "$as_me: error: unrecognized option: $1
18986 Try \`$0 --help' for more information." >&2;}
18987    { (exit 1); exit 1; }; } ;;
18988
18989   *) ac_config_targets="$ac_config_targets $1" ;;
18990
18991   esac
18992   shift
18993 done
18994
18995 ac_configure_extra_args=
18996
18997 if $ac_cs_silent; then
18998   exec 6>/dev/null
18999   ac_configure_extra_args="$ac_configure_extra_args --silent"
19000 fi
19001
19002 _ACEOF
19003 cat >>$CONFIG_STATUS <<_ACEOF
19004 if \$ac_cs_recheck; then
19005   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19006   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19007 fi
19008
19009 _ACEOF
19010
19011
19012
19013
19014
19015 cat >>$CONFIG_STATUS <<\_ACEOF
19016 for ac_config_target in $ac_config_targets
19017 do
19018   case "$ac_config_target" in
19019   # Handling of arguments.
19020   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19021   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19022   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19023 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19024    { (exit 1); exit 1; }; };;
19025   esac
19026 done
19027
19028 # If the user did not use the arguments to specify the items to instantiate,
19029 # then the envvar interface is used.  Set only those that are not.
19030 # We use the long form for the default assignment because of an extremely
19031 # bizarre bug on SunOS 4.1.3.
19032 if $ac_need_defaults; then
19033   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19034   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19035 fi
19036
19037 # Have a temporary directory for convenience.  Make it in the build tree
19038 # simply because there is no reason to put it here, and in addition,
19039 # creating and moving files from /tmp can sometimes cause problems.
19040 # Create a temporary directory, and hook for its removal unless debugging.
19041 $debug ||
19042 {
19043   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19044   trap '{ (exit 1); exit 1; }' 1 2 13 15
19045 }
19046
19047 # Create a (secure) tmp directory for tmp files.
19048
19049 {
19050   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19051   test -n "$tmp" && test -d "$tmp"
19052 }  ||
19053 {
19054   tmp=./confstat$$-$RANDOM
19055   (umask 077 && mkdir $tmp)
19056 } ||
19057 {
19058    echo "$me: cannot create a temporary directory in ." >&2
19059    { (exit 1); exit 1; }
19060 }
19061
19062 _ACEOF
19063
19064 cat >>$CONFIG_STATUS <<_ACEOF
19065
19066 #
19067 # CONFIG_FILES section.
19068 #
19069
19070 # No need to generate the scripts if there are no CONFIG_FILES.
19071 # This happens for instance when ./config.status config.h
19072 if test -n "\$CONFIG_FILES"; then
19073   # Protect against being on the right side of a sed subst in config.status.
19074   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19075    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19076 s,@SHELL@,$SHELL,;t t
19077 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19078 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19079 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19080 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19081 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19082 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19083 s,@exec_prefix@,$exec_prefix,;t t
19084 s,@prefix@,$prefix,;t t
19085 s,@program_transform_name@,$program_transform_name,;t t
19086 s,@bindir@,$bindir,;t t
19087 s,@sbindir@,$sbindir,;t t
19088 s,@libexecdir@,$libexecdir,;t t
19089 s,@datadir@,$datadir,;t t
19090 s,@sysconfdir@,$sysconfdir,;t t
19091 s,@sharedstatedir@,$sharedstatedir,;t t
19092 s,@localstatedir@,$localstatedir,;t t
19093 s,@libdir@,$libdir,;t t
19094 s,@includedir@,$includedir,;t t
19095 s,@oldincludedir@,$oldincludedir,;t t
19096 s,@infodir@,$infodir,;t t
19097 s,@mandir@,$mandir,;t t
19098 s,@build_alias@,$build_alias,;t t
19099 s,@host_alias@,$host_alias,;t t
19100 s,@target_alias@,$target_alias,;t t
19101 s,@DEFS@,$DEFS,;t t
19102 s,@ECHO_C@,$ECHO_C,;t t
19103 s,@ECHO_N@,$ECHO_N,;t t
19104 s,@ECHO_T@,$ECHO_T,;t t
19105 s,@LIBS@,$LIBS,;t t
19106 s,@build@,$build,;t t
19107 s,@build_cpu@,$build_cpu,;t t
19108 s,@build_vendor@,$build_vendor,;t t
19109 s,@build_os@,$build_os,;t t
19110 s,@host@,$host,;t t
19111 s,@host_cpu@,$host_cpu,;t t
19112 s,@host_vendor@,$host_vendor,;t t
19113 s,@host_os@,$host_os,;t t
19114 s,@target@,$target,;t t
19115 s,@target_cpu@,$target_cpu,;t t
19116 s,@target_vendor@,$target_vendor,;t t
19117 s,@target_os@,$target_os,;t t
19118 s,@CC@,$CC,;t t
19119 s,@CFLAGS@,$CFLAGS,;t t
19120 s,@LDFLAGS@,$LDFLAGS,;t t
19121 s,@CPPFLAGS@,$CPPFLAGS,;t t
19122 s,@ac_ct_CC@,$ac_ct_CC,;t t
19123 s,@EXEEXT@,$EXEEXT,;t t
19124 s,@OBJEXT@,$OBJEXT,;t t
19125 s,@EGREP@,$EGREP,;t t
19126 s,@LN_S@,$LN_S,;t t
19127 s,@ECHO@,$ECHO,;t t
19128 s,@AR@,$AR,;t t
19129 s,@ac_ct_AR@,$ac_ct_AR,;t t
19130 s,@RANLIB@,$RANLIB,;t t
19131 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19132 s,@STRIP@,$STRIP,;t t
19133 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19134 s,@CPP@,$CPP,;t t
19135 s,@CXX@,$CXX,;t t
19136 s,@CXXFLAGS@,$CXXFLAGS,;t t
19137 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19138 s,@CXXCPP@,$CXXCPP,;t t
19139 s,@F77@,$F77,;t t
19140 s,@FFLAGS@,$FFLAGS,;t t
19141 s,@ac_ct_F77@,$ac_ct_F77,;t t
19142 s,@LIBTOOL@,$LIBTOOL,;t t
19143 s,@ALLOCA@,$ALLOCA,;t t
19144 s,@LIBOBJS@,$LIBOBJS,;t t
19145 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19146 CEOF
19147
19148 _ACEOF
19149
19150   cat >>$CONFIG_STATUS <<\_ACEOF
19151   # Split the substitutions into bite-sized pieces for seds with
19152   # small command number limits, like on Digital OSF/1 and HP-UX.
19153   ac_max_sed_lines=48
19154   ac_sed_frag=1 # Number of current file.
19155   ac_beg=1 # First line for current file.
19156   ac_end=$ac_max_sed_lines # Line after last line for current file.
19157   ac_more_lines=:
19158   ac_sed_cmds=
19159   while $ac_more_lines; do
19160     if test $ac_beg -gt 1; then
19161       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19162     else
19163       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19164     fi
19165     if test ! -s $tmp/subs.frag; then
19166       ac_more_lines=false
19167     else
19168       # The purpose of the label and of the branching condition is to
19169       # speed up the sed processing (if there are no `@' at all, there
19170       # is no need to browse any of the substitutions).
19171       # These are the two extra sed commands mentioned above.
19172       (echo ':t
19173   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19174       if test -z "$ac_sed_cmds"; then
19175         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19176       else
19177         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19178       fi
19179       ac_sed_frag=`expr $ac_sed_frag + 1`
19180       ac_beg=$ac_end
19181       ac_end=`expr $ac_end + $ac_max_sed_lines`
19182     fi
19183   done
19184   if test -z "$ac_sed_cmds"; then
19185     ac_sed_cmds=cat
19186   fi
19187 fi # test -n "$CONFIG_FILES"
19188
19189 _ACEOF
19190 cat >>$CONFIG_STATUS <<\_ACEOF
19191 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19192   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19193   case $ac_file in
19194   - | *:- | *:-:* ) # input from stdin
19195         cat >$tmp/stdin
19196         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19197         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19198   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19199         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19200   * )   ac_file_in=$ac_file.in ;;
19201   esac
19202
19203   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19204   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19205 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19206          X"$ac_file" : 'X\(//\)[^/]' \| \
19207          X"$ac_file" : 'X\(//\)$' \| \
19208          X"$ac_file" : 'X\(/\)' \| \
19209          .     : '\(.\)' 2>/dev/null ||
19210 echo X"$ac_file" |
19211     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19212           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19213           /^X\(\/\/\)$/{ s//\1/; q; }
19214           /^X\(\/\).*/{ s//\1/; q; }
19215           s/.*/./; q'`
19216   { if $as_mkdir_p; then
19217     mkdir -p "$ac_dir"
19218   else
19219     as_dir="$ac_dir"
19220     as_dirs=
19221     while test ! -d "$as_dir"; do
19222       as_dirs="$as_dir $as_dirs"
19223       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19224 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19225          X"$as_dir" : 'X\(//\)[^/]' \| \
19226          X"$as_dir" : 'X\(//\)$' \| \
19227          X"$as_dir" : 'X\(/\)' \| \
19228          .     : '\(.\)' 2>/dev/null ||
19229 echo X"$as_dir" |
19230     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19231           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19232           /^X\(\/\/\)$/{ s//\1/; q; }
19233           /^X\(\/\).*/{ s//\1/; q; }
19234           s/.*/./; q'`
19235     done
19236     test ! -n "$as_dirs" || mkdir $as_dirs
19237   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19238 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19239    { (exit 1); exit 1; }; }; }
19240
19241   ac_builddir=.
19242
19243 if test "$ac_dir" != .; then
19244   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19245   # A "../" for each directory in $ac_dir_suffix.
19246   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19247 else
19248   ac_dir_suffix= ac_top_builddir=
19249 fi
19250
19251 case $srcdir in
19252   .)  # No --srcdir option.  We are building in place.
19253     ac_srcdir=.
19254     if test -z "$ac_top_builddir"; then
19255        ac_top_srcdir=.
19256     else
19257        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19258     fi ;;
19259   [\\/]* | ?:[\\/]* )  # Absolute path.
19260     ac_srcdir=$srcdir$ac_dir_suffix;
19261     ac_top_srcdir=$srcdir ;;
19262   *) # Relative path.
19263     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19264     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19265 esac
19266 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19267 # absolute.
19268 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19269 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19270 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19271 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19272
19273
19274
19275   if test x"$ac_file" != x-; then
19276     { echo "$as_me:$LINENO: creating $ac_file" >&5
19277 echo "$as_me: creating $ac_file" >&6;}
19278     rm -f "$ac_file"
19279   fi
19280   # Let's still pretend it is `configure' which instantiates (i.e., don't
19281   # use $as_me), people would be surprised to read:
19282   #    /* config.h.  Generated by config.status.  */
19283   if test x"$ac_file" = x-; then
19284     configure_input=
19285   else
19286     configure_input="$ac_file.  "
19287   fi
19288   configure_input=$configure_input"Generated from `echo $ac_file_in |
19289                                      sed 's,.*/,,'` by configure."
19290
19291   # First look for the input files in the build tree, otherwise in the
19292   # src tree.
19293   ac_file_inputs=`IFS=:
19294     for f in $ac_file_in; do
19295       case $f in
19296       -) echo $tmp/stdin ;;
19297       [\\/$]*)
19298          # Absolute (can't be DOS-style, as IFS=:)
19299          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19300 echo "$as_me: error: cannot find input file: $f" >&2;}
19301    { (exit 1); exit 1; }; }
19302          echo $f;;
19303       *) # Relative
19304          if test -f "$f"; then
19305            # Build tree
19306            echo $f
19307          elif test -f "$srcdir/$f"; then
19308            # Source tree
19309            echo $srcdir/$f
19310          else
19311            # /dev/null tree
19312            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19313 echo "$as_me: error: cannot find input file: $f" >&2;}
19314    { (exit 1); exit 1; }; }
19315          fi;;
19316       esac
19317     done` || { (exit 1); exit 1; }
19318 _ACEOF
19319 cat >>$CONFIG_STATUS <<_ACEOF
19320   sed "$ac_vpsub
19321 $extrasub
19322 _ACEOF
19323 cat >>$CONFIG_STATUS <<\_ACEOF
19324 :t
19325 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19326 s,@configure_input@,$configure_input,;t t
19327 s,@srcdir@,$ac_srcdir,;t t
19328 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19329 s,@top_srcdir@,$ac_top_srcdir,;t t
19330 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19331 s,@builddir@,$ac_builddir,;t t
19332 s,@abs_builddir@,$ac_abs_builddir,;t t
19333 s,@top_builddir@,$ac_top_builddir,;t t
19334 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19335 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19336   rm -f $tmp/stdin
19337   if test x"$ac_file" != x-; then
19338     mv $tmp/out $ac_file
19339   else
19340     cat $tmp/out
19341     rm -f $tmp/out
19342   fi
19343
19344 done
19345 _ACEOF
19346 cat >>$CONFIG_STATUS <<\_ACEOF
19347
19348 #
19349 # CONFIG_HEADER section.
19350 #
19351
19352 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19353 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19354 #
19355 # ac_d sets the value in "#define NAME VALUE" lines.
19356 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19357 ac_dB='[        ].*$,\1#\2'
19358 ac_dC=' '
19359 ac_dD=',;t'
19360 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19361 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19362 ac_uB='$,\1#\2define\3'
19363 ac_uC=' '
19364 ac_uD=',;t'
19365
19366 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19367   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19368   case $ac_file in
19369   - | *:- | *:-:* ) # input from stdin
19370         cat >$tmp/stdin
19371         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19372         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19373   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19374         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19375   * )   ac_file_in=$ac_file.in ;;
19376   esac
19377
19378   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19379 echo "$as_me: creating $ac_file" >&6;}
19380
19381   # First look for the input files in the build tree, otherwise in the
19382   # src tree.
19383   ac_file_inputs=`IFS=:
19384     for f in $ac_file_in; do
19385       case $f in
19386       -) echo $tmp/stdin ;;
19387       [\\/$]*)
19388          # Absolute (can't be DOS-style, as IFS=:)
19389          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19390 echo "$as_me: error: cannot find input file: $f" >&2;}
19391    { (exit 1); exit 1; }; }
19392          echo $f;;
19393       *) # Relative
19394          if test -f "$f"; then
19395            # Build tree
19396            echo $f
19397          elif test -f "$srcdir/$f"; then
19398            # Source tree
19399            echo $srcdir/$f
19400          else
19401            # /dev/null tree
19402            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19403 echo "$as_me: error: cannot find input file: $f" >&2;}
19404    { (exit 1); exit 1; }; }
19405          fi;;
19406       esac
19407     done` || { (exit 1); exit 1; }
19408   # Remove the trailing spaces.
19409   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19410
19411 _ACEOF
19412
19413 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19414 # `conftest.undefs', that substitutes the proper values into
19415 # config.h.in to produce config.h.  The first handles `#define'
19416 # templates, and the second `#undef' templates.
19417 # And first: Protect against being on the right side of a sed subst in
19418 # config.status.  Protect against being in an unquoted here document
19419 # in config.status.
19420 rm -f conftest.defines conftest.undefs
19421 # Using a here document instead of a string reduces the quoting nightmare.
19422 # Putting comments in sed scripts is not portable.
19423 #
19424 # `end' is used to avoid that the second main sed command (meant for
19425 # 0-ary CPP macros) applies to n-ary macro definitions.
19426 # See the Autoconf documentation for `clear'.
19427 cat >confdef2sed.sed <<\_ACEOF
19428 s/[\\&,]/\\&/g
19429 s,[\\$`],\\&,g
19430 t clear
19431 : clear
19432 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19433 t end
19434 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19435 : end
19436 _ACEOF
19437 # If some macros were called several times there might be several times
19438 # the same #defines, which is useless.  Nevertheless, we may not want to
19439 # sort them, since we want the *last* AC-DEFINE to be honored.
19440 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19441 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19442 rm -f confdef2sed.sed
19443
19444 # This sed command replaces #undef with comments.  This is necessary, for
19445 # example, in the case of _POSIX_SOURCE, which is predefined and required
19446 # on some systems where configure will not decide to define it.
19447 cat >>conftest.undefs <<\_ACEOF
19448 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19449 _ACEOF
19450
19451 # Break up conftest.defines because some shells have a limit on the size
19452 # of here documents, and old seds have small limits too (100 cmds).
19453 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19454 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19455 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19456 echo '  :' >>$CONFIG_STATUS
19457 rm -f conftest.tail
19458 while grep . conftest.defines >/dev/null
19459 do
19460   # Write a limited-size here document to $tmp/defines.sed.
19461   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19462   # Speed up: don't consider the non `#define' lines.
19463   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19464   # Work around the forget-to-reset-the-flag bug.
19465   echo 't clr' >>$CONFIG_STATUS
19466   echo ': clr' >>$CONFIG_STATUS
19467   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19468   echo 'CEOF
19469   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19470   rm -f $tmp/in
19471   mv $tmp/out $tmp/in
19472 ' >>$CONFIG_STATUS
19473   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19474   rm -f conftest.defines
19475   mv conftest.tail conftest.defines
19476 done
19477 rm -f conftest.defines
19478 echo '  fi # grep' >>$CONFIG_STATUS
19479 echo >>$CONFIG_STATUS
19480
19481 # Break up conftest.undefs because some shells have a limit on the size
19482 # of here documents, and old seds have small limits too (100 cmds).
19483 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19484 rm -f conftest.tail
19485 while grep . conftest.undefs >/dev/null
19486 do
19487   # Write a limited-size here document to $tmp/undefs.sed.
19488   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19489   # Speed up: don't consider the non `#undef'
19490   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19491   # Work around the forget-to-reset-the-flag bug.
19492   echo 't clr' >>$CONFIG_STATUS
19493   echo ': clr' >>$CONFIG_STATUS
19494   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19495   echo 'CEOF
19496   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19497   rm -f $tmp/in
19498   mv $tmp/out $tmp/in
19499 ' >>$CONFIG_STATUS
19500   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19501   rm -f conftest.undefs
19502   mv conftest.tail conftest.undefs
19503 done
19504 rm -f conftest.undefs
19505
19506 cat >>$CONFIG_STATUS <<\_ACEOF
19507   # Let's still pretend it is `configure' which instantiates (i.e., don't
19508   # use $as_me), people would be surprised to read:
19509   #    /* config.h.  Generated by config.status.  */
19510   if test x"$ac_file" = x-; then
19511     echo "/* Generated by configure.  */" >$tmp/config.h
19512   else
19513     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19514   fi
19515   cat $tmp/in >>$tmp/config.h
19516   rm -f $tmp/in
19517   if test x"$ac_file" != x-; then
19518     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19519       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19520 echo "$as_me: $ac_file is unchanged" >&6;}
19521     else
19522       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19523 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19524          X"$ac_file" : 'X\(//\)[^/]' \| \
19525          X"$ac_file" : 'X\(//\)$' \| \
19526          X"$ac_file" : 'X\(/\)' \| \
19527          .     : '\(.\)' 2>/dev/null ||
19528 echo X"$ac_file" |
19529     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19530           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19531           /^X\(\/\/\)$/{ s//\1/; q; }
19532           /^X\(\/\).*/{ s//\1/; q; }
19533           s/.*/./; q'`
19534       { if $as_mkdir_p; then
19535     mkdir -p "$ac_dir"
19536   else
19537     as_dir="$ac_dir"
19538     as_dirs=
19539     while test ! -d "$as_dir"; do
19540       as_dirs="$as_dir $as_dirs"
19541       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19542 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19543          X"$as_dir" : 'X\(//\)[^/]' \| \
19544          X"$as_dir" : 'X\(//\)$' \| \
19545          X"$as_dir" : 'X\(/\)' \| \
19546          .     : '\(.\)' 2>/dev/null ||
19547 echo X"$as_dir" |
19548     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19549           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19550           /^X\(\/\/\)$/{ s//\1/; q; }
19551           /^X\(\/\).*/{ s//\1/; q; }
19552           s/.*/./; q'`
19553     done
19554     test ! -n "$as_dirs" || mkdir $as_dirs
19555   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19556 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19557    { (exit 1); exit 1; }; }; }
19558
19559       rm -f $ac_file
19560       mv $tmp/config.h $ac_file
19561     fi
19562   else
19563     cat $tmp/config.h
19564     rm -f $tmp/config.h
19565   fi
19566 done
19567 _ACEOF
19568
19569 cat >>$CONFIG_STATUS <<\_ACEOF
19570
19571 { (exit 0); exit 0; }
19572 _ACEOF
19573 chmod +x $CONFIG_STATUS
19574 ac_clean_files=$ac_clean_files_save
19575
19576
19577 # configure is writing to config.log, and then calls config.status.
19578 # config.status does its own redirection, appending to config.log.
19579 # Unfortunately, on DOS this fails, as config.log is still kept open
19580 # by configure, so config.status won't be able to write to it; its
19581 # output is simply discarded.  So we exec the FD to /dev/null,
19582 # effectively closing config.log, so it can be properly (re)opened and
19583 # appended to by config.status.  When coming back to configure, we
19584 # need to make the FD available again.
19585 if test "$no_create" != yes; then
19586   ac_cs_success=:
19587   ac_config_status_args=
19588   test "$silent" = yes &&
19589     ac_config_status_args="$ac_config_status_args --quiet"
19590   exec 5>/dev/null
19591   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19592   exec 5>>config.log
19593   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19594   # would make configure fail if this is the last instruction.
19595   $ac_cs_success || { (exit 1); exit 1; }
19596 fi
19597